Meet Mimi: The Neural Audio Codec Powering the Next Generation of Speech LLMs
From the publisher’s feed, collected in the ZeroLabs newsroom.
Image from Mimi’s Github repoIf you’ve recently interacted with a voice-enabled AI assistant, you might have noticed a common limitation: they often act like a text model wrapped in a voice interface. Behind the scenes, a traditional pipeline transcribes your speech to text, generates a text response, and reads it back out loud. This cascaded approach loses the nuance of human speech and introduces frustrating delays.To achieve true, human-like voice AI, models need to understand and generate speech natively.Enter Mimi, a state-of-the-art neural audio codec developed by the AI research lab Kyutai. Fully open-source, Mimi bridges the gap between audio and text by combining semantic and acoustic information into a highly compressed stream of discrete tokens. Here is a deep dive into how Mimi works, complete with real audio examples of its reconstruction capabilities.What is a Neural Audio Codec?https://medium.com/media/d19e31c5a6719f1f876f2762c0c79d51/hrefAt its core, a codec compresses and decompresses digital data. While traditional lossy codecs like MP3 remove data that human ears can’t easily hear, a neural audio codec leverages neural networks to compress and reconstruct audio signals.By using an encoder-decoder “bottleneck” architecture, neural codecs convert raw audio waveforms into a compact, discrete latent space (often referred to as audio tokens). This tokenized format allows Large Language Models (LLMs) to process audio much like they process text words.The Magic of Mimi: Specs and ArchitectureBuilt on the foundations of earlier neural codecs like SoundStream and EnCodec, Mimi introduces several novel architectural and training improvements.Here are the standout specifications of Mimi:Incredible Compression: Mimi processes 24 kHz audio and compresses it down to a representation running at just 12.5 frames per second (12.5 Hz).Ultra-Low Bitrate: It achieves a highly efficient bitrate of 1.1 kbps by utilizing 8 quantizers, each producing 1 token per frame.Fully Streaming: Unlike some previous codecs, Mimi is fully causal. This means it can encode and decode audio on a continuous stream with a latency of just 80 milliseconds.https://medium.com/media/f7e7ed2cc55fe21b39e23c523c19ea8a/hrefThe Core Innovation: Semantic + Acoustic TokensThe biggest challenge in training an audio LLM is making sure the generated speech is both intelligible and high-fidelity. To do this, models need semantic tokens (which represent the linguistic content) and acoustic tokens (which capture the style, voice, and environment).Usually, semantic tokens are extracted using offline, non-causal models like WavLM, which breaks real-time streaming capabilities. Mimi solves this by distilling non-causal semantic knowledge from WavLM directly into a causal quantizer during training.To prevent the semantic information from degrading the audio reconstruction quality, Mimi uses a clever split Residual Vector Quantization (RVQ) approach. It isolates the semantic information into a dedicated first quantizer, while a parallel 7-level RVQ handles the acoustic details. This allows Mimi to achieve the best of both worlds: highly discriminative linguistic understanding and excellent audio fidelity.A Surprising Training Trick: Adversarial-Only LossDuring the development of Mimi, researchers made a surprising discovery. Traditional codecs use a combination of reconstruction losses (like matching the original spectrogram) and adversarial losses (using a discriminator network to ensure the audio sounds realistic) to train the model.When Kyutai stripped away the reconstruction loss and trained Mimi using purely adversarial training, traditional objective metrics (like VisQOL) plummeted but human-perceived audio quality skyrocketed. In subjective MUSHRA listening tests, this adversarial-only approach provided a remarkable boost, proving that objective mathematical metrics still struggle to perfectly capture human audio perception.Why Mimi is a Game-Changer for LLMsCurrent chat LLMs are built to process text tokens, which typically flow at a rate of about 3 to 4 Hz (tokens per second). By aggressively downsampling audio to just 12.5 Hz, Mimi brings the frame rate of audio incredibly close to the frame rate of text.This solves a massive computational bottleneck. Instead of an LLM needing to predict tens of thousands of raw audio samples per second (which takes massive compute and ruins real-time interaction), it only needs to predict a handful of Mimi audio tokens.Because of this, Mimi successfully powers Moshi, Kyutai’s groundbreaking real-time, full-duplex spoken dialogue model. Thanks to Mimi’s tokenization, Moshi can listen and speak simultaneously without explicit speaker turn-taking, supporting natural conversational dynamics like interruptions, backchanneling, and emotional tone — all with a practical latency as low as 200 milliseconds.ConclusionMimi represents a major leap forward in getting AI to understand the audio world natively. By cleverly splitting semantic and acoustic information into an ultra-low bitrate, fully streaming format, it unlocks the potential for text-only LLMs to become true multimodal voice assistants.Best of all? Mimi is completely open-source and available for developers on Hugging Face. If you are looking to build the next generation of voice AI, Mimi is the perfect place to start.References & Further ReadingOfficial GitHub Repository (Code & Inference Stack): github.com/kyutai-labs/moshiMoshi & Mimi Live Interactive Demo: moshi.chatMimi Model Weights on Hugging Face: kyutai/mimiOfficial Technical Report: Défossez, A., et al. (2024). “Moshi: a speech-text foundation model for real-time dialogue”. Available on arXiv.Kyutai Blog: “Neural audio codecs: how to get audio into LLMs” by Václav Volhejn.https://kyutai.org/codec-explainerMeet Mimi: The Neural Audio Codec Powering the Next Generation of Speech LLMs was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.