Skip to main content
QUICK REVIEW

[Paper Review] Moshi: a speech-text foundation model for real-time dialogue

Alexandre Défossez, Laurent Mazaré|arXiv (Cornell University)|Sep 17, 2024
Speech and dialogue systemsComputer Science5 citations
TL;DR

Moshi is a speech-text foundation model that enables real-time, full-duplex spoken dialogue by modeling two audio streams and integrating an inner monologue that prefixes audio with time-aligned text, achieving low latency and handling overlap without explicit speaker turns.

ABSTRACT

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.

Motivation & Objective

  • Address latency, information bottleneck, and turn-based limitations in spoken dialogue systems.
  • Enable full-duplex dialogue by modeling input and output as parallel audio streams.
  • Integrate text tokens as a prefix to audio tokens to improve linguistic quality and enable streaming ASR/TTS.

Proposed method

  • Extend a text LLM backbone (Helium) with a neural audio codec (Mimi) that produces discrete audio tokens via residual vector quantization.
  • Develop a streaming, hierarchical architecture to predict both semantic and acoustic tokens for two audio streams (user and Moshi) in parallel.
  • Introduce Inner Monologue to jointly model text and audio tokens, with time-aligned text tokens as a prefix to semantic tokens.
  • Use a multi-stream Transformer (Depth Transformer) to enable real-time, full-duplex speech generation and listening.
  • Disentangle semantic and acoustic levels with a split RVQ to improve phonetic discriminability and audio quality.
  • Pretrain on large text data, train Mimi for semantic-acoustic tokenization, and fine-tune Moshi with simulated diarization, Fisher data, and instruction fine-tuning.

Experimental results

Research questions

  • RQ1Can a speech-text foundation model achieve real-time, full-duplex spoken dialogue with minimal latency?
  • RQ2Does a hierarchical, multi-stream approach improve intelligibility, linguistic quality, and streaming capabilities compared to prior speech-text models?
  • RQ3Does inner monologue, i.e., time-aligned text prefixes to semantic tokens, improve linguistic fidelity and factuality in generated speech?
  • RQ4How well can the model handle overlapping speech, interruptions, and backchannels without relying on explicit speaker turns?
  • RQ5What are the trade-offs in semantic-acoustic tokenization for streaming speech generation?

Key findings

  • Moshi achieves a theoretical latency of 160 ms and about 200 ms in practice for real-time dialogue.
  • The model supports streaming, full-duplex dialogue with two audio streams (user and Moshi) and mitigates the need for speaker turns.
  • Inner Monologue, by predicting time-aligned text tokens before audio tokens, significantly improves linguistic quality and factuality of generated speech.
  • A split residual vector quantizer (RVQ) for semantic and acoustic tokens improves the semantic-acoustic trade-off and intelligibility.
  • Moshi demonstrates state-of-the-art performance among speech-text models for speech modeling and spoken question answering while handling several minutes of context (up to 5 minutes in experiments).

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.