Abstract
AffectON is a plug-and-play algorithm designed to steer pre-trained language models toward specific emotional targets defined by Valence, Arousal, and Dominance (VAD). By intervening at the inference stage through a weighted decoding process, AffectON enables nuanced affective dialog generation without requiring model retraining or specialized architectures.
Introduction
Despite significant advancements in Natural Language Processing (NLP), conversational agents frequently remain "emotionally flat," failing to convey the subtle affective cues—such as empathy or excitement—essential for natural human communication. Existing approaches to affective text generation typically involve rigid rule-based systems or deep learning models that require extensive retraining on labeled datasets for each specific emotion. AffectON addresses this gap by providing a mechanism to inject complex emotional nuances into any existing language model (LM) without modifying its underlying weights.
Methodology
The primary innovation of AffectON is its model-agnostic nature, operating as an intervention during the decoding process at inference time.
The Affective Space (VAD)
Rather than relying on binary sentiment (positive vs. negative), AffectON utilizes the three-dimensional Valence-Arousal-Dominance (VAD) model. Valence represents pleasantness, Arousal represents intensity/calmness, and Dominance represents the degree of control. The system leverages the NRC VAD Lexicon, which maps over 20,000 lemmas to these coordinates.
Decoding Intervention and Fusion
During sentence generation, the base LM provides a list of candidate words. AffectON evaluates the top $k$ candidates by calculating their Euclidean distance from a target VAD coordinate. The final word selection is governed by a weighted fusion formula: $$\pi_f = (1 - \lambda)\pi_t + \lambda\pi_d$$ where $\pi_t$ is the LM's original probability and $\pi_d$ is the affective probability derived from the VAD distance. The hyperparameter $\lambda$ serves as a "strength" dial, balancing emotional intensity against grammatical correctness.
Datasets and Evaluation
The model was developed using the NRC VAD Lexicon for ground truth affect. A GPT-based Transformer was fine-tuned on the PERSONA-CHAT dataset to ensure conversational capability, while the Cornell Movie Subtitle Corpus provided over 300,000 utterances for evaluation.
Evaluation involved both objective metrics (VADER sentiment analysis, Perplexity) and subjective human ratings via Amazon Mechanical Turk.
Key Results
Human raters confirmed that AffectON successfully shifts generated text toward target affects. While Valence was the most easily perceived dimension, shifts in Arousal and Dominance were also statistically significant. The study identified a "sweet spot" at $\lambda = 0.5$, where emotional affect is clearly discernible without compromising syntactic coherence (averaging 1.5 on a 0-2 scale).
Notably, the researchers observed an inherent positive bias in standard LMs; pushing models toward neutral or negative targets often resulted in higher perplexity, suggesting the training data naturally favors positive valence.
Limitations and Future Work
AffectON operates at the word level, which can lead to issues with context-dependent sentiment, such as negation (e.g., changing "not bad" to "not good" in a positive target). Furthermore, the system is constrained by the coverage of the VAD lexicon. Future research will focus on "strategic affect"—determining the optimal emotional response based on user input—and improving contextual awareness to handle complex linguistic structures like negation.
Summary updated