Incomplete Utterance Rewriting as Semantic Segmentation

Qian Liu, Bei Chen, Jian-Guang Lou, Bin Zhou, Dongmei Zhang

Introduction

In multi-turn dialogue, users frequently employ ellipsis and coreference to maintain conversational efficiency. For example, after asking about the weather in Beijing, a user might follow up with "Why is it always like this?" Understanding this requires "rewriting" the utterance into a standalone form: "Why is Beijing always cloudy?"

Traditionally, Incomplete Utterance Rewriting (IUR) is treated as a sequence-to-sequence (Seq2Seq) generation task. However, Seq2Seq models are often slow due to autoregressive decoding and can struggle to preserve the original sentence's syntactic structure. Researchers from Beihang University and Microsoft Research propose a novel approach: treating IUR as a semantic segmentation task.

The Rewritten U-shaped Network (RUN)

The proposed Rewritten U-shaped Network (RUN) shifts the paradigm from text generation to image-like grid prediction. By modeling the relationship between the dialogue context ($c$) and the incomplete utterance ($x$) as a 2D matrix, the system can identify patterns of ellipsis and coreference as geometric features.

Overview of the RUN architecture, showing the flow from Context/Encoding layers through a U-Net style Segmentation Layer to produce a Word-level Edit Matrix.

Word-level Edit Matrix

At the heart of RUN is the word-level edit matrix. Instead of generating a sentence word-by-word, the model predicts an $M \times N$ matrix where each cell $(i, j)$ corresponds to an edit operation between context word $c_i$ and utterance word $x_j$.

The word-level edit matrix defines operations (Substitute, Insert, None) to transform an incomplete utterance into a rewritten one.

The model supports three primary operations:

  • None: No change.
  • Substitute: Replaces an utterance word with a context span.
  • Insert: Places a context span before an utterance word.

Architecture Details

The RUN architecture consists of three main components:

  1. Context Layer: Encodes the context and utterance using BiLSTM or BERT.
  2. Encoding Layer: Generates a "feature map" by calculating word-to-word relevance using similarity functions like cosine or bilinear similarity.
  3. Segmentation Layer: Inspired by the U-Net architecture used in medical imaging, this layer employs down-sampling and up-sampling with skip connections. This allows the model to capture both fine-grained local dependencies and broader global structures.

Results and Impact

The RUN model was evaluated across four major datasets: MULTI, REWRITE, TASK, and CANARD.

  • Performance: RUN achieved state-of-the-art results. When paired with BERT, it significantly outperformed existing generation-based models in BLEU, ROUGE, and Exact Match scores.
  • Efficiency: By predicting the entire edit matrix in parallel, RUN achieved an inference speed 3.9x faster than traditional Seq2Seq baselines.
  • Downstream Utility: Integrating RUN as a pre-processing step for response selection models led to a 19% improvement in response quality.

Conclusion

By framing utterance rewriting as a semantic segmentation task, RUN demonstrates that editing is often more effective than generation for IUR. This approach not only improves accuracy by preserving original syntax but also offers the computational efficiency required for real-time dialogue systems.

Summary updated

BibTeX
@inproceedings{liu2020incomplete,
  author = {Qian Liu and Bei Chen and Jian-Guang Lou and Bin Zhou and Dongmei Zhang},
  title = {{Incomplete Utterance Rewriting as Semantic Segmentation}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2020},
  doi = {10.18653/v1/2020.emnlp-main.227},
}
Figure