TL;DR
This paper introduces a method to transform standard, turn-based language models into real-time interactive agents by modeling conversations as timed diarized transcripts. By combining a specific data format [timestamp, speaker, message] with a novel causal rejection sampling algorithm, the authors enable models to handle interruptions, overlapping speech, and asynchronous messaging on commodity hardware.
What Problem Does This Paper Address?
Current AI chatbots operate on a "ping-pong" interaction model: the user sends a message, the system waits, and then the system generates a complete response. This is fundamentally different from human interaction, which is often asynchronous (like instant messaging) or involves complex turn-taking, interruptions, and backchanneling (like spoken conversation).
Existing attempts to solve this usually involve complex, multi-model heuristics or end-to-end audio models that are data-hungry and difficult to stream. The authors aim for a "simple yet general" approach that uses standard, text-only pretrained LLMs to simulate the temporal dynamics of real-world interaction.
Methods
The core innovation is two-fold: a specific data representation and a dynamic decoding algorithm.
- Timed Diarized Transcripts: Instead of just text, the model is trained on sequences of
[timestamp, speaker id, message]. This allows the model to learn not just what to say, but when to say it and who is speaking. - Causal Rejection Sampling: To make the model interactive, the system samples a "candidate" future event (e.g., the model plans to say "Hello" at $T=5.0s$). If the user provides new input at $T=4.0s$, the system "rejects" the planned candidate and resamples a new one based on the updated history.
To make this practical, the authors implemented several optimizations:
- Reaction Time Window ($t_{react}$): A small buffer (e.g., 200ms) where the model ignores interruptions to prevent "starvation" (where the model can never finish a thought because it's constantly recalculating).
- Speculative Decoding: Rather than discarding a rejected candidate entirely, the model uses it as a "draft" for the next generation, significantly reducing recomputation costs.
- Retconning: For spoken dialogue using streaming Speech-to-Text (which can be unstable), the system allows the user's past input history to be revised ("retconned") without changing finalized system outputs.
Datasets
The authors evaluated their method on two distinct domains:
- Instant Messenger (IM): A private dataset consisting of 9 years of chat history between the first two authors (~1.4 million messages). This captures asynchronous, multi-day conversational flows.
- Spoken Conversations: 1,000 hours of public U.S. Supreme Court oral arguments. This domain features high information density and multiple participants (~10 per transcript), though fewer interruptions than casual speech.
Key Insights and Ideas
- Sparse Modeling of Time: By treating time as a token rather than a continuous stream, the model's computational cost scales with the activity of the conversation, not the duration. It doesn't waste cycles "processing" silence.
- Interactivity is a Bandwidth Problem: The authors found that to feel "real-time," a model needs to generate at specific speeds: ~28 tokens/sec for IM and ~22 tokens/sec for speech.
- Fidelity vs. Coherence: Interestingly, while massive API models like GPT-4 are more "coherent," they often fail at "fidelity"—mimicking the specific style and quirks of the authors' personal chat history—compared to smaller, locally fine-tuned models.
Key Results
The researchers tested models ranging from 160M to 12B parameters (Pythia, Gemma, Llama 2).
- Performance: All fine-tuned models maintained real-time interactivity on a single A100 GPU. Speculative sampling saved an average of 11.02 draft tokens (69.5%) per interruption in the Llama 2 7B model.
- Quality: Llama 2 7B (fine-tuned) emerged as a strong performer, achieving high human ratings for both consistency and fidelity.
- Overhead: The control tokens (timestamps/IDs) add significant length—roughly 3.2x to 4.3x the original plaintext—but this is manageable given the efficiency of the sparse time modeling.
Limitations and Future Work
- Textual Bottleneck: The spoken conversation model is "cascaded" (Speech-to-Text -> LLM -> Text-to-Speech), which loses prosody, tone, and emotional nuance.
- Speaker Identity: Models occasionally struggle with "identity crisis," where a speaker might respond to themselves or forget their own established persona (e.g., claiming to have a sister when only the other participant does).
- Multimodality: The current work is text-only. The authors suggest that future iterations could include images, links, or even actions within a virtual environment.
- Privacy: The IM dataset is highly personal and cannot be released, highlighting the difficulty of benchmarking "generative clones" in a reproducible way.
Summary updated