arXiv:2610.27603cs.AIOct 2026

Manuscript Offprint

arXiv:2610.27603

From Encoding to Generation: Towards Empathetic Large Language Models

Samhita Bollepally, Takashi Yamauchi, Marissa West

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ABSTRACT

Empathetic interaction involves two distinguishable capacities: representing another person's emotional state (cognitive empathy) and generating an appropriate response to that state (affective empathy). We apply this distinction to examine how emotion-related information is internally organized, selectively attended to, and carried through response generation in Llama-3.2-3B-Instruct across 10 emotion categories from the EmpatheticDialogues dataset. Layer-wise linear probing revealed a broad middle-layer region of peak emotion-category decodability, with the layer-11 L2 probe achieving 63.6% held-out accuracy against a 10% chance level and a 54.6% TF-IDF lexical baseline. During response generation, emotion-related user tokens received 1.89 times as much attention per token as other utterance tokens, concentrated across layers 10–15. Target-emotion alignment then decreased from a mean cosine similarity of 0.239 for input representations to 0.125 for generated responses, with positive drift in 77% of examples and the largest shifts for angry and furious. Emotion-category representation, attention allocation, and response-level alignment therefore emerge as distinguishable components of model processing that can be analyzed through a functional cognitive-affective empathy framework. These findings provide a foundation for monitoring emotion representations during generation and leveraging models' existing affective structure to support more naturally empathetic responses without relying on external prompting or explicit emotion conditioning.

1 Introduction

Empathy is a foundational capacity in human social interaction, encompassing two related but dissociable components. Cognitive empathy is the capacity to identify and encode what another person is feeling. Affective empathy is the capacity to generate a response that is appropriately aligned with or responsive to that perceived state. These components dissociate in humans; for example, a person may recognize others' distress without producing a supportive response or may respond emotionally without fully understanding the other's situation. Because empathy unfolds across both representation and response, studying it requires examining how emotional information is internally organized and how that organization shapes behavior.

Large language models (LLMs) are now routinely deployed in emotionally sensitive contexts like mental health support [1], peer counseling [2], and open-domain conversation [3]. Despite producing outputs rated as highly empathetic by human evaluators [4], it is not known whether this behavior is grounded in structured internal representations of user emotions or arises from the surface statistics of empathetic language. The cognitive-affective empathy distinction provides a concrete framework for this investigation: does the model represent the user's emotional state, preferentially attend to emotionally relevant input, and carry that representation into its response?