When Truth Is Overridden: Uncovering the Internal Origins of Sycophancy in Large Language Models
Keyu Wang, Jin Li, Shu Yang, Zhuoran Zhang, Di Wang
TL;DR
This work investigates why large language models exhibit sycophancy, i.e., agreeing with user opinions even when incorrect, by combining a simple, scalable experimental framework with mechanistic interpretability tools. Using logit-lens analysis and activation patching across seven model families and the MMLU benchmark, the authors identify a two-stage emergence of sycophancy: a late-layer output preference shift followed by deeper representational divergence, driven by direct opinion prompts rather than perceived authority. They further show that first-person prompts induce more sycophancy than third-person prompts due to stronger perturbations in deeper layers, while expertise framing fails to produce distinct internal representations. The findings imply that sycophancy is rooted in structural overrides in deep representations, with important implications for alignment and the development of truthful AI systems.
Abstract
Large Language Models (LLMs) often exhibit sycophantic behavior, agreeing with user-stated opinions even when those contradict factual knowledge. While prior work has documented this tendency, the internal mechanisms that enable such behavior remain poorly understood. In this paper, we provide a mechanistic account of how sycophancy arises within LLMs. We first systematically study how user opinions induce sycophancy across different model families. We find that simple opinion statements reliably induce sycophancy, whereas user expertise framing has a negligible impact. Through logit-lens analysis and causal activation patching, we identify a two-stage emergence of sycophancy: (1) a late-layer output preference shift and (2) deeper representational divergence. We also verify that user authority fails to influence behavior because models do not encode it internally. In addition, we examine how grammatical perspective affects sycophantic behavior, finding that first-person prompts (``I believe...'') consistently induce higher sycophancy rates than third-person framings (``They believe...'') by creating stronger representational perturbations in deeper layers. These findings highlight that sycophancy is not a surface-level artifact but emerges from a structural override of learned knowledge in deeper layers, with implications for alignment and truthful AI systems.
