NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Dialogue Modeling Via Hash Functions

Sahil Garg, Guillermo Cecchi, Irina Rish, Shuyang Gao, Greg Ver Steeg, Sarik Ghazarian, Palash Goyal, Aram Galstyan

TL;DR

This paper introduces a novel dialogue modeling framework that uses binary hashcodes as compressed representations of conversational turns. By optimizing these hashcodes to maximize mutual information between participants' utterances, the authors achieve competitive dialogue generation performance, often outperforming state-of-the-art neural methods, especially on smaller datasets, while significantly improving computational efficiency.

What Problem Does This Paper Address?

Building effective conversational agents, particularly for open-domain dialogue, remains a significant challenge. While specific applications like automated psychotherapy are promising, existing systems often rely on rule-based approaches and lack sophisticated dialogue modeling capabilities. The core problem is how to effectively represent and understand the nuances of conversational turns to generate relevant and coherent responses. This is particularly difficult with limited data, where complex neural models can overfit or fail to generalize. The authors also highlight the challenge of evaluating dialogue quality, as standard metrics like BLEU don't fully capture the "essence" or relevance of a response.

Methods

The paper proposes a framework that leverages Locality Sensitive Hashing (LSH). Instead of directly generating text, the approach first learns to map conversational turns (patient and therapist responses) into compact binary hashcode representations. The key innovation lies in optimizing these LSH models by maximizing a novel lower bound on Mutual Information (MI) between the hashcodes of paired responses. This MI objective serves as a model selection criterion, aiming to align participants' utterances and improve response predictability.

The framework involves three main stages:

  1. Representation Learning: Using LSH variants (LSH-RMM, LSH-RKNN, LSH-RLSTM) to generate hashcodes.
  2. Hashcode Prediction: Training classifiers (e.g., Random Forest) to infer a therapist's hashcode given a patient's hashcode.
  3. Textual Response Generation: Mapping the predicted hashcode back to a textual response, initially by finding the nearest neighbor in the training data.

The MI lower bound is crucial for optimizing LSH parameters and reference sets, addressing the intractability of directly computing MI in high-dimensional spaces.

Datasets

The authors evaluated their approach on three distinct datasets:

  • Depression Therapy Sessions: Transcribed therapy sessions, characterized by potentially long patient monologues and shorter therapist responses. This dataset is relatively small.
  • Larry King TV Show Interviews: Transcripts of interviews, also featuring longer guest monologues and shorter host interjections.
  • Twitter Dialogue Corpus: Conversations from Twitter, where the task is to predict the next tweet.

Key Insights and Ideas

  • Hashcodes as Compressed Representations: Binary hashcodes can effectively capture the semantic essence of conversational turns, enabling efficient similarity search and representation learning.
  • Mutual Information as an Alignment Metric: Maximizing mutual information between hashcodes of paired responses is a powerful objective for learning dialogue models that capture the alignment and coherence between participants.
  • Efficiency on Small Datasets: The hashing-based approach demonstrates significant advantages in terms of computational efficiency and performance on smaller datasets, where traditional neural models struggle.
  • MI Lower Bound for Optimization: Developing a tractable lower bound for mutual information is essential for optimizing complex LSH models and reference sets in a data-driven manner.
  • Therapeutic Alliance Proxy: The evolution of the normalized MI metric over a therapy session shows potential as a proxy for evaluating the development of the therapeutic alliance.

Key Results

  • Competitive Performance: The proposed hashing-based dialogue models (LSH-RKNN, LSH-RMM, LSH-RLSTM) achieved competitive results compared to state-of-the-art neural network models (LSTM, HRED, VHRED) across all three datasets, particularly on embedding-based similarity metrics.
  • Superiority on Small Datasets: The hashing methods often significantly outperformed neural models on the Depression Therapy dataset, which is smaller and presents a challenge for data-hungry neural approaches.
  • Computational Efficiency: Training LSH models is dramatically faster than training neural network models. For instance, an LSH model can be optimized in hours on a 16-core CPU, while neural models require weeks on a 1000-core GPU.
  • Improved Hashcode Quality: The MI lower bound and its normalized version, along with hashcode inference accuracy (HIA), showed strong performance for the optimized hashing models, indicating good alignment and predictability.

Limitations and Future Work

  • Response Generation Simplicity: The current text generation method relies on nearest neighbor retrieval of hashcodes. The authors acknowledge that more sophisticated text generation techniques could further improve response quality.
  • Dialogue as i.i.d. Samples: The current framework treats dialogue turns as independent samples. Future work could explore modeling dialogue as a dynamical process.
  • Reference Set Optimization: While optimized reference sets showed benefits, the process can still be computationally intensive. Further research into more efficient reference set selection could be beneficial.
  • Therapeutic Alliance Evaluation: While the MI metric shows promise as a proxy for therapeutic alliance, further validation and exploration are needed.
  • Generalizability: While the approach is demonstrated on diverse datasets, exploring its applicability to a wider range of dialogue domains and complexities remains an area for future investigation.

Summary updated

BibTeX
@inproceedings{garg2018dialogue,
  author = {Sahil Garg and Guillermo Cecchi and Irina Rish and Shuyang Gao and Greg Ver Steeg and Sarik Ghazarian and Palash Goyal and Aram Galstyan},
  title = {{Dialogue Modeling Via Hash Functions}},
  booktitle = {LaCATODA @ IJCAI},
  year = {2018},
  url = {https://openreview.net/forum?id=Bk4sKrGu-H},
}
Figure