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

Modeling Psychotherapy Dialogues with Kernelized Hashcode Representations: A Nonparametric Information-Theoretic Approach

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

TL;DR

Researchers have developed a novel dialogue modeling framework that replaces data-hungry deep learning with kernelized hashcode representations. By treating dialogue as an information-theoretic alignment problem, this nonparametric approach achieves superior response quality in psychotherapy settings while slashing training times from weeks on a GPU to just hours on a standard CPU.

What Problem Does This Paper Address?

Modern dialogue systems, typically built on deep neural networks like LSTMs or Transformers, face three major hurdles in specialized domains like psychotherapy:

  1. Data Scarcity: Neural models require massive datasets to generalize, but high-quality psychotherapy transcripts are rare and difficult to obtain.
  2. Computational Cost: Training state-of-the-art (SOTA) models can take weeks, even with high-end hardware.
  3. Structural Mismatch: Therapeutic dialogue often features very long patient utterances followed by short, summarizing therapist responses—a pattern that standard sequence-to-sequence models struggle to capture effectively.

The authors aim to create a model that handles small datasets gracefully, trains efficiently, and prioritizes the "working alliance" (the semantic alignment and bond) between participants.

Methods

The authors propose a three-stage framework based on Kernelized Locality Sensitive Hashing (LSH):

  1. Representation Learning: Instead of dense embeddings, they map text utterances into binary hashcodes. They use kernel functions to ensure that semantically similar responses are assigned hashcodes with a small Hamming distance.
  2. Hashcode Inference: To predict a response, the system doesn't generate text immediately. Instead, it uses an ensemble of Decision Trees (Random Forests) to infer the most likely therapist hashcode given the patient's input hashcode.
  3. Textual Mapping: The inferred hashcode is converted back to text. This can be done by selecting the best-matching response from the training set or by using a novel N-gram Hashing generative model that generalizes traditional N-grams using hashcode similarity.
Overview of the three-stage framework: Learning representations, inferring hashcodes, and mapping to text.

A core contribution is a novel lower bound on Mutual Information (MI). The authors use this as a model-selection criterion to optimize the hash functions, ensuring the representations maximize the alignment between the two speakers while minimizing redundancy.

Datasets

The model was evaluated on three distinct dialogue domains:

  • Depression Therapy Dataset: Transcripts of ~400 sessions (42,000 samples). This is the primary focus, characterized by long patient turns and collaborative summaries.
  • Larry King TV Interviews: 8,200 samples from 69 interview sessions, sharing the long-form/short-form structure of therapy.
  • Twitter Dialogue Corpus: A much larger dataset (~750,000 samples) used to test the scalability of the approach.

Key Insights and Ideas

  • Compression as a Semantic Filter: By forcing dialogue into a compressed hashcode space, the model acts as a bottleneck that ignores irrelevant conversational noise and focuses on the "essence" of the interaction.
  • Nonparametric Efficiency: Unlike neural networks that must learn millions of parameters, this nonparametric approach relies on similarity to existing data points. This makes it far more robust when training data is limited.
  • Information-Theoretic Alignment: By maximizing Mutual Information between the patient and therapist hashcodes, the model explicitly optimizes for the "working alliance"—the degree to which the therapist's response is relevant to and predictable from the patient's input.
  • CPU-Friendly Scaling: The hashing approach is highly parallelizable and computationally light.

Key Results

The proposed hashing models (LSH-RkNN, LSH-RMM, LSH-RLSTM) significantly outperformed SOTA neural models like HRED and VHRED:

  • Human Evaluation: In blind tests on the Depression dataset, human evaluators chose the LSH-RkNN model's responses as "Appropriate" 28.7% of the time, compared to only 9.5% for the best neural competitor (VHRED).
  • Training Speed: On the large Twitter dataset, the LSH model optimized in less than 6 hours on a 16-core CPU, whereas neural models took over two weeks on a 1000-core GPU.
  • Topic Similarity: The LSH models consistently achieved higher scores in word-embedding-based similarity metrics across all datasets.
Comparison of LSH models against SOTA neural models across three datasets using embedding-based metrics.

Limitations and Future Work

While the model excels at appropriateness, response diversity remains a challenge—a common issue in dialogue modeling where systems tend to favor safe, generic responses.

The authors suggest several paths forward:

  • Implementing more sophisticated hashcode-to-text generative models.
  • Selecting responses from even larger, more diverse corpora.
  • Extending the model to capture the long-term dynamics of a dialogue beyond immediate turn-taking.
  • Incorporating psychological metrics (like the Beck Depression Inventory) directly into the hashcode learning process to better capture clinical nuances.

Summary updated

BibTeX
@inproceedings{garg2018modeling,
  author = {Sahil Garg and Irina Rish and Guillermo Cecchi and Palash Goyal and Sarik Ghazarian and Shuyang Gao and Greg Ver Steeg and Aram Galstyan},
  title = {{Modeling Psychotherapy Dialogues with Kernelized Hashcode Representations: A Nonparametric Information-Theoretic Approach}},
  booktitle = {LaCATODA @ IJCAI},
  year = {2018},
  url = {https://openreview.net/forum?id=Bk4sKrGu-H},
}
Figure