Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Zhang, Xinrong, Chen, Yingfa, Hu, Shengding, Han, Xu, Xu, Zihang, Xu, Yuanwei, Zhao, Weilin, Sun, Maosong, Liu, Zhiyuan
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866915724423856128
author Zhang, Xinrong
Chen, Yingfa
Hu, Shengding
Han, Xu
Xu, Zihang
Xu, Yuanwei
Zhao, Weilin
Sun, Maosong
Liu, Zhiyuan
author_facet Zhang, Xinrong
Chen, Yingfa
Hu, Shengding
Han, Xu
Xu, Zihang
Xu, Yuanwei
Zhao, Weilin
Sun, Maosong
Liu, Zhiyuan
contents As large language models (LLMs) increasingly permeate daily lives, there is a growing demand for real-time interactions that mirror human conversations. Traditional turn-based chat systems driven by LLMs prevent users from verbally interacting with the system while it is generating responses. To overcome these limitations, we adapt existing LLMs to \textit{duplex models} so that these LLMs can listen for users while generating output and dynamically adjust themselves to provide users with instant feedback. % such as in response to interruptions. Specifically, we divide the queries and responses of conversations into several time slices and then adopt a time-division-multiplexing (TDM) encoding-decoding strategy to pseudo-simultaneously process these slices. Furthermore, to make LLMs proficient enough to handle real-time conversations, we build a fine-tuning dataset consisting of alternating time slices of queries and responses as well as covering typical feedback types in instantaneous interactions. Our experiments show that although the queries and responses of conversations are segmented into incomplete slices for processing, LLMs can preserve their original performance on standard benchmarks with a few fine-tuning steps on our dataset. Automatic and human evaluation indicate that duplex models make user-AI interactions more natural and human-like, and greatly improve user satisfaction compared to vanilla LLMs. Our duplex model and dataset will be released.
format Preprint
id arxiv_https___arxiv_org_abs_2406_15718
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models
Zhang, Xinrong
Chen, Yingfa
Hu, Shengding
Han, Xu
Xu, Zihang
Xu, Yuanwei
Zhao, Weilin
Sun, Maosong
Liu, Zhiyuan
Computation and Language
As large language models (LLMs) increasingly permeate daily lives, there is a growing demand for real-time interactions that mirror human conversations. Traditional turn-based chat systems driven by LLMs prevent users from verbally interacting with the system while it is generating responses. To overcome these limitations, we adapt existing LLMs to \textit{duplex models} so that these LLMs can listen for users while generating output and dynamically adjust themselves to provide users with instant feedback. % such as in response to interruptions. Specifically, we divide the queries and responses of conversations into several time slices and then adopt a time-division-multiplexing (TDM) encoding-decoding strategy to pseudo-simultaneously process these slices. Furthermore, to make LLMs proficient enough to handle real-time conversations, we build a fine-tuning dataset consisting of alternating time slices of queries and responses as well as covering typical feedback types in instantaneous interactions. Our experiments show that although the queries and responses of conversations are segmented into incomplete slices for processing, LLMs can preserve their original performance on standard benchmarks with a few fine-tuning steps on our dataset. Automatic and human evaluation indicate that duplex models make user-AI interactions more natural and human-like, and greatly improve user satisfaction compared to vanilla LLMs. Our duplex model and dataset will be released.
title Beyond the Turn-Based Game: Enabling Real-Time Conversations with Duplex Models
topic Computation and Language
url https://arxiv.org/abs/2406.15718