Manuscript Offprint

arXiv:2609.01832

Interpretable Symptom Vectors for Depression in a Large Language Model

Fangyi Zhu, Ajay Subramanian, Allison Constant, Camille Wang, Ravish Gupta, Corey J. Keller

Abstract

Patients with depression present with diverse symptom profiles, yet clinical practice routinely reduces this variation to a single severity score. Large language models (LLMs) can potentially capture various symptoms and their severity from patient speech. However, how depressive symptoms are represented inside LLMs remains poorly understood, limiting clinical trust. To examine whether internal model activations match clinician judgment, we analyzed the residual stream of Gemma-3-27B-PT using mechanistic interpretability techniques. Recording activations across symptom descriptions drawn from validated clinical instruments, we found that symptom groups geometrically separated the most at layer 21 across multiple distance metrics. Using Semantic Projection, we then projected held-out naturalistic text onto Symptom Vectors constructed from these instruments. The resulting per-symptom coefficients preserved clinician-annotated rank ordering across mood, somatic, and suicidality axes. Furthermore, a single depression vector in Layer 21 separates held-out depressive from non-depressive text (AUC = 0.789), which can be used as an emotional valence gate that restricts symptom projection to depressive speech. These results reveal a decorrelated, clinician-aligned symptom signal readable directly from internal activations, offering a mechanistic foundation for interpretable depression-assessment tools.

1 Introduction

Major depressive disorder spans highly diverse symptom profiles, biological underpinnings, and treatment trajectories, a multidimensional complexity that remains one of the most significant barriers to effective psychiatric care. In the STAR*D cohort, for example, 3,703 patients meeting the same DSM-5 criteria produced 1,030 unique symptom profiles¹. Standard questionnaires like

*These authors contributed equally to this work.

PHQ and HAM-D prioritize brevity; they collapse rich symptom dimensions into a single score while overlooking symptoms that matter to patients². These discarded nuances, however, are preserved when patients describe their own experiences in naturalistic language. Symptom-level extraction from such language could help differentiate patients with divergent underlying profiles and link linguistic markers to the neural and physiological biomarkers central to psychiatric neuroscience. Thus, symptom extraction from natural language has been a long-standing goal in clinical NLP.

Recent LLMs, which can take context into account and process text as a whole, have renewed interest in this goal. Existing systems typically produce broad diagnostic labels or sum scores rather than symptom-level assessments³⁻⁵. Generated outputs are also an unreliable window into model internals: GPT-4's internal schema of depression underemphasizes suicidality and overemphasizes psychomotor symptoms relative to expert and self-report ratings⁶. Mechanistic interpretability techniques, however, offer a route to quantitative, per-symptom signals read directly from the model's internal representations. Prior work has shown that emotion representations are often encoded as approximately linear directions in an LLM's internal activations, with sentiment localized to specific layers in LLaMA⁷,⁸. Moreover, the emotional information models pick up from text can be traced to specific, interpretable internal signals⁹. To our knowledge, no prior work has mapped a clinically validated depression symptom taxonomy onto decorrelated per-symptom signals in an LLM's internal activations.

As an LLM processes text, it builds internal representations in a high-dimensional activation space known as the residual stream. Prior work suggests emotions are encoded as linear directions in this space; depression symptom categories may be similarly represented. Applying mechanistic interpretability techniques to Gemma-3-27B-PT, we show that these categories (mood/emotional/cognitive, somatic, and suicidality) are geometrically separable in the model's activations, with maximal separation appearing at layer 21. Projecting held-out naturalistic narratives onto clinician-derived Symptom Vectors yields coefficients that predict clinician category annotations. Furthermore, a single Depression Vector can distinguish between depressive and positive affect text. This study establishes a pipeline for extracting interpretable symptom signals directly from an LLM's internal state. These findings provide a methodological foundation for analyzing depression from patients' natural language, preserving the nuanced profiles that brief severity scores obscure. With longitudinal validation, such granular signals could support symptom tracking for research and, eventually, clinical use.

References (39)