Token-Level Diagnosis of Sycophancy in LLMs with Attribution-Guided Steering
Hieu Nguyen, Mahammed Kamruzzaman, Anshuman Chhabra, Gene Louis Kim
Abstract
Sycophancy refers to the tendency for large language models (LLMs) to match user beliefs at the cost of factual correctness, thereby undermining model reliability. Prior work on evaluating sycophancy in LLMs aims to assess whether a model's output matches an authority's claim, but cannot reveal which part of the prompt drives this sycophantic behavior. To bridge this gap, we investigate the relationship of sycophantic responses with an authority's credentials, their assertive claim, and the problem statement. We introduce the Authority Share Index (ASI), an Integrated Gradients-based token attribution method, which measures the degree to which a model's decision is driven by authority-related text. Through extensive experiments across five models and 30 test configurations, we find that sycophantic responses consistently direct more attention toward authority tokens than resistant ones. Moreover, our token attribution method reveals that for the sycophantic cases, the claim asserted by the authority receives more attention than the authority's credentials. Building on these findings, we propose attribution-guided contrastive activation steering to mitigate LLM sycophancy. Our method constructs a steering vector from high-attribution tokens of sycophantic and resistant responses, selectively pushing models toward resistance. This enables inference-time steering without retraining, lowering sycophancy from 96% to 25% in the strongest case. Together, our results show that token-level attribution can both explain what drives sycophancy and directly inform a practical intervention.
Create a lesson
Related papers
TAB-PO: Preference Optimization with a Token-Level Adaptive Barrier for Token-Critical Structured Generation
Shared title terminology · Samah Fodeh, Linhai Ma, Ganesh Puthiaraju et al.
Why LLMs Give In: Conversational Factors and Reasoning Behind Medical Sycophancy
Shared title terminology · Kaike Ping, Buse Çarık, Caleb Wohn et al.
Writing-System-Level Tokenizer Adaptation for Byte-Level BPE
Shared title terminology · Bohdan Didenko
A Few Neurons Reveal When LLMs Misuse Tools: Sparse Detection and Selective Steering for Reliable Tool Use
Shared title terminology · Yutong Ke, Ming Yin, Chongwen Zhao et al.
How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms
Shared title terminology · Liwei Zhang, ZhiMing Tong, Mochen Guan et al.
Alignment without Transfer: Tokenization Impacts Cross-lingual Representations during Multilingual Language Model Pretraining
Shared title terminology · Jonathan von Rad, Pontus Stenetorp, Yao Lu