5IDER: Unified Query Rewriting for Steering, Intent Carryover, Disfluencies, Entity Carryover and Repair

Jiarui Lu, Bo-Hsiang Tseng, Joel Ruben Antony Moniz, Site Li, Xueyun Zhu, Hong Yu, Murat Akbacak

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:

  1. Steering: Providing clarifying information to a previous turn.
  2. Intent Carryover: Implicitly maintaining the same intent but changing the entity.
  3. Disfluencies: Ignoring filler words or speech artifacts.
  4. Entity Carryover: Referencing a previous entity via pronouns or ellipses.
  5. 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.

Table 1: Examples of conversational use cases and their compositions tackled in this work. Examples shown are author-created queries based on anonymized and randomly sampled virtual assistant logs. Tokens marked in red indicate those marked for deletion. Tokens marked in green or with a green underline are those marked to be replaced, while those marked in blue or with a blue underline are the detected replacements. Note that colorization indicates a first step substitution, and underlines indicate a second substitution step (which only ever occurs in compositional use cases).

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

  1. 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.
  2. 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:
  3. Replacement Detection (RD) Head: A BIO sequence tagger that identifies the replacement span (the new text to insert).
  4. Replacement Resolution (RR) Head: Uses biaffine self-attention to locate the replaced span (the text in the history that needs to be substituted).
  5. Deletion Head: A binary classifier determining whether each token should be kept or deleted.
Figure 1: The proposed 5IDER architecture. The input text, the concatenation of two turns, is first encoded with TinyBert and an LSTM encoder. Then, 5 edit operation predictors (one for each task), perform Replacement Detection, Replacement Resolution and Deletion Detection for each task. Finally, all edit operations are applied in a post-processing step.

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%).
Table 3: Exact match accuracy (%) on different use cases and their average under two training setups.
  • 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.
Figure 2: Performance of various approaches on use-case com- position. The x-axis shows training data size (in number of data points), while the y-axis shows Exact Match Accuracy (%).

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

Abstract

Providing voice assistants the ability to navigate multi-turn conversations is a challenging problem. Handling multi-turn interactions requires the system to understand various conversational use-cases, such as steering, intent carryover, disfluencies, entity carryover, and repair. The complexity of this problem is compounded by the fact that these use-cases mix with each other, often appearing simultaneously in natural language. This work proposes a non-autoregressive query rewriting architecture that can handle not only the five aforementioned tasks, but also complex compositions of these use-cases. We show that our proposed model has competitive single task performance compared to the baseline approach, and even outperforms a fine-tuned T5 model in use-case compositions, despite being 15 times smaller in parameters and 25 times faster in latency.
BibTeX
@inproceedings{lu2023ider,
  author = {Jiarui Lu and Bo-Hsiang Tseng and Joel Ruben Antony Moniz and Site Li and Xueyun Zhu and Hong Yu and Murat Akbacak},
  title = {{5IDER: Unified Query Rewriting for Steering, Intent Carryover, Disfluencies, Entity Carryover and Repair}},
  booktitle = {Interspeech},
  year = {2023},
}
Figure