Social sycophancy differs across access modes of large language models
Abstract
Large language models (LLMs) can display sycophancy, a tendency to excessively praise, agree with, or validate a user.
Existing studies have tested LLMs for sycophancy primarily through application programming interfaces (APIs) rather than the consumer user interfaces (UIs) through which the public commonly interacts with LLMs.
Access mode (API vs.
UI) may affect observed sycophancy rates.
However, it remains unknown to what extent prominent models show API-UI differences in social sycophancy, which includes behaviors potentially more likely in UIs (e.g., softening warranted criticism).
We tested ChatGPT, Claude, Gemini, and DeepSeek through both APIs and UIs on four dimensions of social sycophancy.
Across models, UI access was generally associated with greater social sycophancy, with odds ratios up to 7.56 (95% CI [6.22, 9.20]).
However, UI-API differences varied significantly across models for all sycophancy dimensions, including a pronounced reversal for DeepSeek moral sycophancy (43% UI vs.
82.3% API).
Overall, our results suggest that API-based LLM evaluations may underestimate the prevalence of sycophancy in corresponding consumer-facing systems, making access conditions consequential for the external validity of LLM evaluation.
To facilitate research on access-mode effects, we release 57,000 model responses and SycoUI, a browser-automation pipeline for standardized cross-interface LLM evaluation.