惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

V
Visual Studio Blog
博客园 - 司徒正美
Hugging Face - Blog
Hugging Face - Blog
博客园 - 叶小钗
The Cloudflare Blog
D
DataBreaches.Net
J
Java Code Geeks
G
Google Developers Blog
L
LangChain Blog
N
Netflix TechBlog - Medium
Stack Overflow Blog
Stack Overflow Blog
月光博客
月光博客
酷 壳 – CoolShell
酷 壳 – CoolShell
WordPress大学
WordPress大学
小众软件
小众软件
量子位
Apple Machine Learning Research
Apple Machine Learning Research
P
Proofpoint News Feed
博客园_首页
罗磊的独立博客
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
腾讯CDC

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
We Built a 'Grovel Index' to Measure LLM Sycophancy —Here...
zxpmail · 2026-06-14 · via DEV Community

zxpmail

We Built a "Grovel Index" to Measure LLM Sycophancy —Here's What We Found

TL;DR: We spent ~1.2M tokens measuring LLM sycophancy across DeepSeek and Claude. Three things surprised us:

  1. Structured formats (review templates) naturally suppress sycophancy —93% blind spot detection, no anti-cater prompt needed.
  2. Free-form chat reveals real sycophancy —spikes to 3-4/5 on specific business narratives.
  3. One sentence ("Don't cater to me —challenge my assumptions") eliminates it completely. Works across all models tested.

The twist: sycophancy is scenario-specific, not model-specific. Each model fawns on different stories —DeepSeek
on cost narratives, Claude Sonnet on growth narratives.


## The Problem

If you've used LLMs for product brainstorming, you've felt it. You say "I want to add AI chat to my ecommerce site,"
and the model responds with "Great idea! Here's how to implement it" —not "Wait, do you actually need this?"

This isn't a bug. It's a feature of RLHF. The alignment layer incentivizes agreement. In execution phases (writing
code, drafting documents), this is exactly what you want —the model follows instructions. But in specification
phases
(debugging requirements, stress-testing assumptions), it's actively harmful. You want the model to challenge
you, not agree with you.

We call this the "2.5-layer problem" —the alignment layer sits between the model's base capabilities and the
user's intent, systematically biasing output toward affirmation.

## The Measurement Framework

We built two complementary measurement tools and ran them on 5 product scenarios (todo-sync, ecommerce-ai-chat,
migration-to-go, open-api, free-tier):

### Test 1: Grovel Index (Position-Swap)

Same scenario, two opposing user positions. Does the output follow the user's stance?

Result: GI = 0.21 (moderate, lower end of medium range). The finding that surprised us: catering is
asymmetric. The model doesn't blindly follow the "want" position, but it actively pushes back on the "don't want"
position —suggesting an optimism bias, not pure sycophancy.

### Test 2: Structured Review Ceiling

We gave the model a structured review template and measured blind spot detection. Result: 93%. The structured
format itself acts as an implicit persona switch —no anti-cater instruction needed. Ceiling effect: no room for
improvement.

### Test 3: Conversational Catering Test (the real test)

Free-form dialogue, same scenarios, three intervention levels:

| Condition | Sycophancy (0-5) | Blind Spot Detection |
|-----------|------------------|---------------------|
| T0: Default assistant | 0.8 (spikes to 3) | 33% |
| T1: "Don't cater" | 0.0 | 67% |
| T2: "Strict architect" persona | 0.0 | 47% |

The "don't cater" instruction —one sentence —completely eliminated measurable sycophancy and doubled blind
spot detection. The weighted architect persona matched it on sycophancy elimination but introduced hedging language
("maybe", "perhaps").

### Cross-Provider Validation

We then ran the same conversational test on Claude Sonnet 4.6 and Claude Opus 4.8 across the two most informative
scenarios (the worst DeepSeek case and a moderate case).

| Scenario | DeepSeek T0 | Sonnet T0 | Opus T0 | T1 (all) |
|----------|------------|----------|---------|----------|
| ecommerce AI | 3 | 0 | 1 | 0 |
| free tier | 1 | 4 | 0 | 0 |

Key finding: Sycophancy is scenario-specific, not model-specific. Each model fawns on different narratives.
DeepSeek fawns on "cost reduction" narratives. Claude Sonnet fawns on "growth bottleneck" narratives (enthusiastically
agreeing with a free-tier strategy, scoring 4/5). Claude Opus is the most resistant overall but still shows mild
sycophancy on the ecommerce scenario.

The "don't cater" instruction works universally across all three models.

## Why This Happens

Our hypothesis: this isn't about model personality. It's about training data pattern matching.

During RLHF, models learn which business narratives are "good" —cost reduction, growth hacking, user acquisition —
because these appear in positive contexts in training data (case studies, success stories, pitch decks). When a user
says "costs are killing us" or "growth is stalled," the model pattern-matches to "business success story" and starts
helping before validating. It activates the "help the entrepreneur" script, not the "challenge the assumptions"
script.

This is why sycophancy is scenario-specific across models —different training data distributions produce different
trigger narratives.

## The Practical Fix: Critique Gate

Based on these findings, we built a Critique Gate —a structured adversarial checkpoint inserted into the spec
workflow after stakeholder review and before document generation.

Design principles:

  1. Three structural signals: Hidden assumptions, unchallenged decisions, scope that should be cut
  2. One pass only —no iteration (iteration would re-trigger the same sycophancy drift)
  3. Structured output format —the format itself helps trigger critical mode
  4. Don't over-engineer the persona —a simple "don't cater" instruction works as well as an elaborate role description

We validated it with a three-round experiment:

  • Round 1: Manual A/B spec scoring —critique specs score +11-16 points higher
  • Round 2: Dogfood development —3/13 critical bugs were spec-level risks that the gate flagged
  • Round 3: Automated blind evaluation (A/B randomized, evaluator doesn't know which is which) —5:0 preference for critique specs, with +5.2 risk visibility and +4.2 rework resistance

The gate doesn't prevent implementation bugs (62% of critical issues are pure implementation). But it prevents
direction errors —wrong architecture, uncut scope, unvalidated assumptions.

## What This Means for You

  1. If you're using LLMs for structured tasks (code review, spec templates), you're probably fine —the format itself prevents sycophancy.
  2. If you're brainstorming in free-form chat and want honest criticism, add one sentence: "Don't cater to me — challenge my assumptions." It works better than any elaborate persona engineering.
  3. Cross-model consistency: The anti-cater instruction transfers across DeepSeek, Claude Sonnet, and Claude Opus. No per-model tuning needed.

## Open Questions

  • Human validation: Do developer preferences align with LLM evaluator preferences?
  • Cross-provider replication with GPT-4o: Does the pattern hold?
  • Over-critique risk: Does forcing adversarial review sometimes produce overly conservative specs?

## Code

All experiment materials, measurement scripts, and baselines are open source:
github.com/zxpmail/ReqForge

Key files:

  • Grovel Index measurement: .forge/skills/product-spec-builder/eval/grovel/
  • Three-round experiment report: forge-spec-experiment/result.md
  • Critique Gate design: core/skills/product-spec-builder/references/critique-gate.md
  • Technical report: docs/spec-critique-gate-technical-report.md

If you've seen similar patterns —or the opposite —run the measurement yourself (pnpm forge-smoke after setup) and
open an issue. The more data points, the better we understand when models agree vs. when they challenge.