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

Dialogue Modeling Via Hash Functions: Applications to Psychotherapy

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

Introduction

Modern dialogue systems, while impressive, face significant hurdles in specialized domains like psychotherapy. Standard deep learning architectures, such as LSTMs and Transformers, are notoriously data-hungry and computationally expensive. Moreover, they often fail to capture the unique "collaborative" nature of therapy, where long patient utterances are met with concise, summarizing therapist responses. This research introduces a novel, nonparametric framework using kernelized hashcodes to address these challenges, offering a more efficient and domain-appropriate alternative to traditional neural models.

Methodology

The proposed framework operates in three distinct stages to transform dialogue into efficient, searchable representations:

  1. Representation Learning via Hashing: Instead of dense embeddings, the system uses Kernelized Locality Sensitive Hashing (LSH) to map text utterances into binary hashcodes. This acts as a "semantic fingerprint," compressing content while filtering out noise.
  2. Information-Theoretic Optimization: To align the speakers, the model maximizes a novel lower bound on Mutual Information (MI). This ensures that the patient's hashcode contains the necessary information to predict the therapist's response hashcode.
  3. Response Inference and Generation: An ensemble of Decision Trees (Random Forests) predicts the therapist's hashcode based on the patient's input. The final textual response is then either retrieved from the training set or generated using a novel N-gram Hashing language model.
The three-stage pipeline for dialogue modeling: representation learning, hashcode inference via decision trees, and mapping to textual responses.

Experimental Setup

The model was evaluated across three distinct domains to test its versatility and scalability:

  • Depression Therapy Dataset: Nearly 400 sessions (~42,000 pairs), representing a small, specialized dataset.
  • Larry King TV Interviews: ~8,200 pairs, capturing a different style of collaborative dialogue.
  • Twitter Dialogue Corpus: A large-scale dataset (~750,000 pairs) used to evaluate computational efficiency and scalability.

Key Results

The LSH-based approach demonstrated remarkable efficiency. On the large Twitter dataset, the model was optimized in less than 6 hours on a 16-core CPU. In stark contrast, state-of-the-art neural models like VHRED required over two weeks on a 1000-core GPU cluster.

Quantitatively, the LSH models (LSH-RkNN, LSH-RMM, LSH-RLSTM) consistently matched or outperformed neural baselines across standard word-embedding similarity metrics, such as Average, Greedy, and Extrema scores. Furthermore, in blind human preference tests, evaluators chose LSH-based responses as more appropriate significantly more often than those from neural competitors.

Comparison of LSH-based models against neural baselines (LSTM, HRED, VHRED) across word-embedding similarity metrics.

Conclusion and Future Work

By treating dialogue as a collaborative task and utilizing semantic compression through hashing, this framework offers a high-performance, low-cost alternative to traditional deep learning. It is particularly effective for specialized domains where data is limited and computational resources are a constraint. Future research will focus on improving response diversity and extending the model to capture the long-term dynamics of multi-turn, multi-session dialogues.

Summary updated

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