[论文解读] Moshi: a speech-text foundation model for real-time dialogue
Moshi 是一个语音文本基础模型,通过对两个音频流建模并整合一个在音频前缀时间对齐文本的内在独白来实现实时、全双工的口语对话,达到低延迟并在没有明确说话者轮次的情况下处理重叠。
We introduce Moshi, a speech-text foundation model and full-duplex spoken dialogue framework. Current systems for spoken dialogue rely on pipelines of independent components, namely voice activity detection, speech recognition, textual dialogue and text-to-speech. Such frameworks cannot emulate the experience of real conversations. First, their complexity induces a latency of several seconds between interactions. Second, text being the intermediate modality for dialogue, non-linguistic information that modifies meaning -- such as emotion or non-speech sounds -- is lost in the interaction. Finally, they rely on a segmentation into speaker turns, which does not take into account overlapping speech, interruptions and interjections. Moshi solves these independent issues altogether by casting spoken dialogue as speech-to-speech generation. Starting from a text language model backbone, Moshi generates speech as tokens from the residual quantizer of a neural audio codec, while modeling separately its own speech and that of the user into parallel streams. This allows for the removal of explicit speaker turns, and the modeling of arbitrary conversational dynamics. We moreover extend the hierarchical semantic-to-acoustic token generation of previous work to first predict time-aligned text tokens as a prefix to audio tokens. Not only this "Inner Monologue" method significantly improves the linguistic quality of generated speech, but we also illustrate how it can provide streaming speech recognition and text-to-speech. Our resulting model is the first real-time full-duplex spoken large language model, with a theoretical latency of 160ms, 200ms in practice, and is available at https://github.com/kyutai-labs/moshi.
研究动机与目标
- 解决语音对话系统中的延迟、信息瓶颈和轮次限制问题。
- 通过将输入和输出建模为并行音频流来实现全双工对话。
- 将文本令牌作为音频令牌的前缀来提升语言质量并实现流式ASR/TTS。
提出的方法
- 用神经音频编解码器(Mimi)扩展文本大模型后端(Helium),通过残差向量量化生成离散音频令牌。
- 开发一个流式分层架构,能够并行预测两个音频流(用户和Moshi)的语义和音频令牌。
- 引入内在独白以联合建模文本和音频令牌,时间对齐的文本令牌作为语义令牌的前缀。
- 使用多流Transformer(Depth Transformer)以实现实时、全双工的语音生成与监听。
- 通过分离的RVQ将语义和声学层级解耦,以提高发音辨别性与音质。
- 在大规模文本数据上进行预训练,训练Mimi用于语义-声学令牌化,并结合模拟说话人分辨、Fisher数据和指令微调对Moshi进行微调。
实验结果
研究问题
- RQ1一个语音文本基础模型是否能够在极低延迟下实现实时全双工的口语对话?
- RQ2相比先前的语音文本模型,分层多流方法是否提高了可懂度、语言质量和流式能力?
- RQ3内在独白,即将时间对齐的文本前缀加在语义令牌上,是否提升了生成语音的语言保真度和事实性?
- RQ4在不依赖显式说话者轮次的情况下,该模型在处理重叠语音、打断和应答时表现如何?
- RQ5用于流式语音生成的语义-声学令牌化有哪些权衡?
主要发现
- Moshi 在理论上延迟160 ms,实际用于实时对话大约200 ms。
- 该模型支持带有两个音频流(用户与Moshi)的流式全双工对话,并降低了对说话者轮次的依赖。
- 通过在音频令牌之前预测时间对齐的文本令牌,内在独白显著提升了生成语音的语言质量和事实性。
- 将语义和声学令牌分离的剩余向量量化器(RVQ)改善了语义-声学权衡与可懂度。
- Moshi 在语音建模和口语问答方面展现了同类模型中的最先进性能,同时能够处理数分钟的上下文(实验中最多5分钟)。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。