TL;DR
5IDER is a ultra-lightweight, non-autoregressive query rewriting model designed to handle five core multi-turn dialogue challenges—steering, intent carryover, disfluencies, entity carryover, and repair—alongside their complex combinations. By framing the problem as a parallel text-editing task rather than a generative one, 5IDER achieves performance competitive with large generative models like T5-small while being 15x smaller in parameters and 25x faster in inference speed.
What Problem Does This Paper Address?
When interacting with voice assistants, humans naturally use contextual shortcuts, change their minds mid-sentence, or correct themselves. For a voice assistant to feel truly conversational, it must handle five distinct linguistic phenomena:
- Steering: Providing clarifying information to a previous turn.
- Intent Carryover: Implicitly maintaining the same intent but changing the entity.
- Disfluencies: Ignoring filler words or speech artifacts.
- Entity Carryover: Referencing a previous entity via pronouns or ellipses.
- Repair: Correcting an ASR error or changing a previously stated intent/entity.
Historically, conversational AI systems deployed dedicated, cascaded models for each task (e.g., one for coreference resolution, another for disfluency detection). However, this introduces severe latency bottlenecks, disk space overhead, and error propagation. Furthermore, these phenomena often co-occur in real-world speech (e.g., a user might attempt an entity carryover and a repair simultaneously).
To solve this, the authors turn to Contextual Query Rewriting (CQR), which reformulates a contextual, messy multi-turn dialogue into a single, self-contained query.
Methods
Instead of using a standard autoregressive sequence-to-sequence model (which suffers from a slow decoding loop), 5IDER uses a non-autoregressive, edit-based architecture.
The Architecture
- Encoding: The context query and the follow-up query are concatenated (separated by a
[SEP]token) and passed through a frozen TinyBERT model, followed by a trainable BiLSTM encoder. - Task-Specific Heads: The model features 5 parallel copies of edit operation predictors—one dedicated to each conversational use case. Each task head contains three sub-components:
- Replacement Detection (RD) Head: A BIO sequence tagger that identifies the replacement span (the new text to insert).
- Replacement Resolution (RR) Head: Uses biaffine self-attention to locate the replaced span (the text in the history that needs to be substituted).
- Deletion Head: A binary classifier determining whether each token should be kept or deleted.
Handling Compositions via Topological Sort
When multiple use cases happen at once, their edit operations might conflict or depend on one another. 5IDER elegantly handles this in post-processing by defining a substitution dependency. If one task's replacement span contains another task's replaced span, they are ordered using a topological sort. The independent edits are applied first, the spans are dynamically adjusted, and the dependent edits are executed sequentially thereafter.
Datasets
To train and evaluate the model, the authors curated 6 datasets based on anonymized, randomly sampled virtual assistant logs:
- 5 Single-Task Datasets: 60k data points each for steering, intent carryover, disfluency, entity carryover, and repair.
- 1 Compositional Dataset: 20k data points featuring combinations of the tasks.
Because real-world compositional data is incredibly rare (the "cold-start" problem), the authors used clever synthetic templates to stitch together multi-turn interactions, ensuring that the training, validation, and test templates remained strictly disjoint to prevent simple memorization.
Key Insights and Ideas
- Decoupled multi-tasking enables zero-shot composition: By giving each conversational phenomenon its own independent prediction head and resolving conflicts via a deterministic topological sort, the model naturally generalizes to unseen task combinations without explicitly needing massive compositional training data.
- Input-constrained vocabulary eliminates hallucination: Because the model only predicts spans to delete or substitute from the existing input sequence, the output search space is drastically restricted, completely avoiding the latency and hallucination risks of generative language models.
Key Results
- Inference Speed & Efficiency: 5IDER requires only 4.2M parameters and occupies a mere 16.9 MB of disk space. It achieves a relative latency of 0.4x compared to a standard Seq2Seq baseline, making it 28x faster than T5-small and over 50x faster than LaserTagger/Felix.
- Multi-Task Performance: In multi-task training benchmarks, 5IDER achieved an average Exact Match Accuracy of 88.4%, performing competitively with the much larger T5-small (89.0%) and vastly outperforming other non-autoregressive text-editing baselines like Felix (48.0%).
- Few-Shot Compositional Superiority: 5IDER demonstrates incredible data efficiency on compositional tasks. With zero compositional training data (zero-shot), it performs closely to T5-small. With just 500 compositional training examples, 5IDER significantly outperforms a T5 model trained on 10,000 examples.
Limitations and Future Work
The authors note that 5IDER's vocabulary is strictly limited to the tokens present in the input sequence. While this works for the vast majority of query rewriting use cases (where context is carried over or substituted), it prevents the model from generating entirely novel words that weren't explicitly spoken by the user or present in the dialogue history. Future work could explore integrating a highly restricted vocabulary insertion mechanism to handle edge cases requiring external synthesis.
Summary updated