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.
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:
- Couples Therapy Corpus (CoupTher): Transcriptions of therapy sessions, characterized by high emotional intensity.
- Cancer Couples Interaction Dataset: An out-of-domain dataset involving high-stress discussions about cancer, used to test the model's generalization capabilities.
- 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.
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