Behavior Gated Language Models

Prashanth Gurunath Shivakumar, Shao-Yen Tseng, Panayiotis G. Georgiou, Shrikanth S. NarayananarXiv 2019

Abstract

Traditional language models (LMs) primarily rely on local syntactic and semantic cues to predict subsequent words. However, human communication is deeply influenced by internal psychological states. This paper presents a Behavior Gated Language Model that integrates behavioral signals—such as positivity, blame, or sadness—into the prediction process. By employing a dedicated behavior module to "gate" the hidden states of a standard LSTM, the proposed model achieves improved perplexity on both specialized conversational corpora and general-purpose benchmarks like the Penn Treebank.

Introduction

While modern LMs excel at capturing statistical regularities in text, they often lack a sense of the speaker's emotional or psychological trajectory. Human language is not merely a sequence of tokens but a reflection of dynamic internal states. Previous attempts to enrich LMs with external context, such as Part-of-Speech tags or topic models, often fail to capture the fluid "mood" of an interaction. This research addresses the challenge of modeling long-range semantic dependencies by explicitly accounting for behavioral dynamics, allowing the model to narrow its vocabulary expectations based on the speaker's current psychological state.

Methodology: Behavior Gating Architecture

The proposed architecture consists of two primary components: a baseline LSTM-based language model and a dedicated behavior module.

The behavior module is a pre-trained RNN classifier designed to detect five specific psycholinguistic behaviors: Acceptance, Blame, Negativity, Positivity, and Sadness. As the model processes text, the behavior module generates a behavioral state vector ($b_t$). This vector is then transformed into a gating signal ($z_t$) by a time-synced RNN.

Architecture of the Behavior Gated Language Model showing the interaction between the input sequence, behavior module, and the gating mechanism.

This gating signal acts as a filter on the hidden layers of the main language model. By modulating the internal representations before the final word prediction, the behavior module effectively informs the LM of the speaker's likely emotional stance, refining the probability distribution over the vocabulary.

Experimental Setup

The model was evaluated on three distinct datasets representing varying levels of behavioral density:

  1. Couples Therapy Corpus (CoupTher): Transcriptions of therapy sessions, characterized by high emotional intensity.
  2. Cancer Couples Interaction Dataset: An out-of-domain dataset involving high-stress discussions about cancer, used to test the model's generalization capabilities.
  3. Penn Treebank (PTB): A standard benchmark of Wall Street Journal articles, representing "behavior-poor" formal text.

Results and Analysis

The primary metric for evaluation was perplexity (PPL), where lower values indicate better predictive performance. The behavior-gated model demonstrated consistent improvements across all tested scenarios.

Perplexity (PPL) comparison between a baseline LSTM and the Behavior Gated model on behavior-rich datasets.

On the behavior-rich CoupTher data, the model achieved a 2.43% relative improvement. More significantly, it showed a 6.81% improvement on the out-of-domain Cancer dataset, reducing PPL from 159.65 to 148.78. This suggests that the learned relationship between psychological behavior and linguistic patterns is robust and transferable.

Interestingly, the model also improved performance on the Penn Treebank (from 57.3 to 56.92 PPL). This indicates that even formal news text contains latent behavioral cues that can be leveraged for more accurate language modeling. Furthermore, the researchers observed that a "Medium" sized model with behavior gating could match the performance of a "Large" model with three times the parameters, highlighting the efficiency of incorporating targeted context.

Conclusion

Behavior Gated Language Models offer a promising path toward more "personified" and efficient AI. By treating behavior as a latent signal that modulates word choice, these models achieve superior accuracy without requiring massive increases in parameter count. Future work includes expanding the set of tracked behaviors, exploring end-to-end training of the behavior module, and integrating these signals into Automatic Speech Recognition (ASR) systems to improve transcription in emotionally charged or noisy environments.

Summary updated

Abstract

Most current language modeling techniques only exploit co-occurrence, semantic and syntactic information from the sequence of words. However, a range of information such as the state of the speaker and dynamics of the interaction might be useful. In this work we derive motivation from psycholinguistics and propose the addition of behavioral information into the context of language modeling. We propose the augmentation of language models with an additional module which analyzes the behavioral state of the current context. This behavioral information is used to gate the outputs of the language model before the final word prediction output. We show that the addition of behavioral context in language models achieves lower perplexities on behavior-rich datasets. We also confirm the validity of the proposed models on a variety of model architectures and improve on previous state-of-the-art models with generic domain Penn Treebank Corpus.
BibTeX
@misc{shivakumar2019behavior,
  author = {Prashanth Gurunath Shivakumar and Shao-Yen Tseng and Panayiotis G. Georgiou and Shrikanth S. Narayanan},
  title = {{Behavior Gated Language Models}},
  year = {2019},
  eprint = {1909.00107},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1909.00107},
}
Figure