Dialogue Session Segmentation by Embedding-Enhanced TextTiling

Yiping Song, Lili Mou, Rui Yan, Li Yi, Zinan Zhu, Xiaohua Hu, Ming Zhang

Introduction

In open-domain chatbots, maintaining context is essential for coherent interaction. For instance, a user's follow-up remark "It's exhausting" requires the previous context "I'm writing an essay" to be interpretable. However, human conversations are inherently non-linear, characterized by topic shifts and distractions. Retaining an exhaustive history introduces computational latency and irrelevant noise, particularly in retrieval-based systems where searching through long histories can exceed latency limits.

This research proposes Embedding-Enhanced TextTiling, a method to segment long dialogues into distinct sessions. By identifying topic boundaries, chatbots can "flush" irrelevant history, improving both response relevance and system efficiency.

Methodology

The core of the approach is an evolution of the classic TextTiling algorithm. While traditional TextTiling relies on lexical overlap (counting identical words), it often fails in short, noisy dialogue where semantically related but lexically distinct terms are used (e.g., "walk" vs. "outside").

1. Virtual Sentence Embeddings

To capture the semantic relationships inherent in dialogue, the authors trained word embeddings on "virtual sentences." Unlike standard models that learn from single sentences, this approach concatenates a query and its corresponding reply into a single training unit. This allows the model to learn cross-turn dependencies, such as the relationship between a question and its answer.

Training word embeddings on virtual sentences (concatenated query-reply pairs).

2. Heuristic-Max Similarity

Standard vector averaging (sum pooling) often dilutes specific semantic signals. The researchers introduced a Heuristic-Max strategy: for every word in one utterance, the system identifies the most similar word in the adjacent utterance and averages these maximum scores. This acts as a focused attention mechanism, highlighting the strongest semantic links between turns rather than "blurring" the meaning through simple averaging.

3. Streaming Adaptation

Unlike static document segmentation, chatbots operate in real-time. The authors adapted TextTiling to a streaming context, where boundary detection (calculating the "depth" of similarity valleys) relies only on the current utterance and its preceding context.

Experimental Setup

The model was evaluated using two datasets:

  • Douban Forum: 3 million Chinese utterances used for unsupervised training of the virtual sentence embeddings.
  • DuMi: A corpus of 200 manually annotated sessions from Baidu’s open-domain conversation system, providing a ground truth for segmentation performance.

Results and Discussion

The embedding-enhanced method demonstrated substantial improvements over baseline techniques, including standard TextTiling (tf-idf) and MinMax-Dotplotting (MMD).

Performance comparison of the proposed embedding-enhanced TextTiling against baseline methods.

As shown in the results, the proposed method achieved an F-measure of 74.7%, a significant leap from the 53.5% achieved by traditional TextTiling. Furthermore, integrating this segmentation into a real retrieval-based chatbot improved response accuracy (p@1) from 0.484 to 0.521, confirming that cleaner context leads to superior dialogue generation.

Conclusion

By combining semantic embeddings trained on dialogue-specific "virtual sentences" with a max-similarity heuristic, this approach effectively addresses the challenges of session segmentation in noisy, open-domain chat. The system proved resilient to the noise and slang typical of casual internet chat. Future work may explore supervised learning techniques or finer-grained topic tracking to further refine chatbot memory management.

Summary updated

BibTeX
@inproceedings{song2016dialogue,
  author = {Yiping Song and Lili Mou and Rui Yan and Li Yi and Zinan Zhu and Xiaohua Hu and Ming Zhang},
  title = {{Dialogue Session Segmentation by Embedding-Enhanced TextTiling}},
  booktitle = {Interspeech},
  year = {2016},
  doi = {10.21437/interspeech.2016-1234},
}
Figure