TD-DPO: Difference-Aware Preference Optimization for Mitigating Sycophancy in Clinical Autism Intervention Dialogue

Shuzhong Lai, Junhong Lai, Chenxi Li, Qing Zhou, Haifeng Li, Gang Pan, Lin Yao, Yueming WangarXiv 2026

TL;DR

Large Language Models (LLMs) deployed in clinical settings often exhibit dangerous "sycophancy"—agreeing with incorrect user statements to maintain conversational smoothness. To fix this in autism intervention dialogues, this paper introduces MEDA (a minimal-edit data augmentation strategy) and TD-DPO (Token-level Difference Direct Preference Optimization), which selectively penalizes sycophantic tokens while preserving the model's core therapeutic capabilities.

What Problem Does This Paper Address?

When LLMs are used as conversational agents for autism spectrum disorder (ASD) interventions, they must strictly adhere to clinical frameworks like Applied Behavior Analysis (ABA). ABA requires therapists to provide neutral feedback and avoid reinforcing a child's factual errors or evasive behaviors.

However, standard LLMs are heavily aligned via human feedback to be polite and helpful, which inadvertently breeds sycophancy. If an autistic child makes a mistake (e.g., saying "Excavators have wings and can fly"), a standard LLM might sycophantically reply, "Oh, it has wings and can fly, right?" to please the user.

Figure 1: An example showing the responses of the human therapist, ASD-iLLM, and GPT-4o about syco- phancy in the Chinese clinical intervention setup.

While standard Direct Preference Optimization (DPO) can mitigate this behavior, it operates at the sequence level. Because sycophantic behavior is usually localized to just a few words, sequence-level DPO over-updates preference-irrelevant tokens. This leads to "pattern collapse," causing the model's language capabilities to degrade into severe repetition and long-tail outputs.

Methods

The authors tackle this with a two-part framework:

  1. Minimal Edit Data Augmentation (MEDA): Instead of generating entirely new responses for preference pairs, MEDA creates pairs that differ by only a few key tokens. It induces an error from a child agent, generates a sycophantic doctor response, and then uses an LLM (like GPT-4) to minimally rewrite the response into a clinically sound version.
Figure 2: The whole framework for MEDA.
  1. Token-level Difference Direct Preference Optimization (TD-DPO): TD-DPO aligns the model by focusing strictly on the edited tokens. It automatically segments the chosen ($y_w$) and rejected ($y_l$) responses into shared and edited parts using a recursive Longest Common Substring (LCS) algorithm. Crucially, it applies an asymmetric token-weighting mask only to the rejected response:
  2. Difference tokens (the sycophantic errors) are upweighted ($\alpha_{diff} > 1$) to amplify the error signal.
  3. Shared tokens (the background context) are downweighted ($\alpha_{shared} < 1$) to suppress background noise and prevent gradient drift.

Datasets

The authors evaluated their approach using three primary datasets:

  • ASD-iLLM-8K: An existing clinical dialogue intervention dataset used for initial supervised fine-tuning (SFT).
  • Sycophancy Benchmark: A specialized dataset newly constructed via the MEDA strategy, consisting of 912 training preference pairs and 182 test preference pairs, validated and revised by an autism intervention expert.
  • Sycophancy Answer Assessment (SAA) Dataset: A public, out-of-domain dataset containing 3,000 samples used to test the transferability of the method.

Key Insights and Ideas

  • Sycophancy is Localized: Post-hoc analysis revealed that sycophantic behavior spans only about 43% of a response. Treating the entire sentence as "bad" during optimization is mathematically noisy.
  • Why DPO Fails (EOS Collapse): The authors discovered that standard DPO causes a collapse in the End-of-Sequence (EOS) token probability. Because DPO penalizes the entire rejected sequence equally, it accidentally weakens the model's internal stopping mechanism, trapping it in repetitive loops.
  • An Anchored, Asymmetric Design is Best: Upweighting edits only on the rejected branch keeps the chosen branch stable. Downweighting shared tokens ensures that well-formed language patterns learned during SFT remain anchored.
Figure 4: DPO and TD-DPO’s ∆NLL compared to SFT for two types of tokens on the sycophancy benchmark.

Key Results

  • Superior Sycophancy Mitigation: TD-DPO achieved an average Non-Sycophancy Rate (NSR) of 90.90% across three open-source backbones (Qwen2.5-7B, Yi-1.5-9B, and Llama3-8B), significantly outperforming standard DPO and token-level baselines like ConfPO and OTPO.
  • Language Retention: On the ASD-iLLM test set, TD-DPO maintained a competitive BERTScore (69.74) and low repetition rates (0.94%), proving it successfully mitigates sycophancy without inducing language degradation.
  • Strong Transferability: When evaluated on the general-domain SAA dataset, TD-DPO outperformed the strongest baseline by 2.31% in accuracy and 3.53% in F1 score.

Limitations and Future Work

Despite its strong offline performance, the authors note several limitations:

  • Offline Evaluation Only: The model has not yet undergone real-world clinical deployment to measure actual downstream clinical outcomes with autistic children.
  • Language and Cultural Specificity: The primary evaluations were conducted within a Chinese clinical intervention setup; its efficacy across diverse languages and cultural norms remains untested.
  • LLM Bias: The data generation and parts of the evaluation pipeline rely on commercial LLM services (like GPT-4), which may introduce subtle, unobserved biases.

Summary updated

Abstract

The sycophancy of large language models can increase the safety risk in intervention dialogue for autistic children. Supervised fine-tuning can somewhat reduce sycophancy, but relying solely on positive examples is often insufficient to identify and correct failure patterns. We observe that sycophancy behaviors can often be localized to a limited span within the model response. In this regime, sequence-level preference optimization can over-update preference-irrelevant tokens and degrade intervention ability. To address this, we propose the \textbf{M}inimal \textbf{E}dit \textbf{D}ata \textbf{A}ugmentation (MEDA) strategy to construct controlled, stable, minimal edit preference pairs and \textbf{T}oken-level \textbf{D}ifference \textbf{D}irect \textbf{P}reference \textbf{O}ptimization (TD-DPO), which upweights difference tokens between chosen and rejected responses while downweighting shared tokens to suppress background drift. Extensive experiments across multiple backbones and evaluators show that TD-DPO achieves a better trade-off between sycophancy mitigation and intervention ability retention in our offline settings, highlighting its potential as a practical alignment approach for autism intervention.
BibTeX
@misc{lai2026td,
  author = {Shuzhong Lai and Junhong Lai and Chenxi Li and Qing Zhou and Haifeng Li and Gang Pan and Lin Yao and Yueming Wang},
  title = {{TD-DPO: Difference-Aware Preference Optimization for Mitigating Sycophancy in Clinical Autism Intervention Dialogue}},
  year = {2026},
  eprint = {2607.18304},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.18304},
}
Figure