Papers › TD-DPO: Difference-Aware Preference Optimization for Mitigating Sycophancy in Clinical...

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

17 Jul 2026arXiv:2607.18304added by Syntology

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

Title, abstract, authors and date from arXiv's metadata (CC0); this paper is not in the Papers with Code archive (frozen 2025-07-28).

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.

PaperPDFCode Syntology ran

In Syntology For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2607.18304")

Code

Syntology Ran 11 of 13 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 11 ran with no contract checked.

By repository: found in paper text by Syntology: 13 samples from 1 repository, 11 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

Shuzhong-Lai/TD-DPO found in paper text by Syntology report

Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 11 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

11ran
2unverified

Licence: 0 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from Shuzhong-Lai/TD-DPO. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

add_td_dpo_spans Shuzhong-Lai/TD-DPO/src/td_dpo/data.py found in paper text by Syntology ran Apache-2.0 (permissive) · 38703e66cb450ae3 · report
char_diff_spans Shuzhong-Lai/TD-DPO/src/td_dpo/data.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 45c104d7c94792c4 · report
chosen_response Shuzhong-Lai/TD-DPO/src/td_dpo/data.py found in paper text by Syntology ran Apache-2.0 (permissive) · 5d9b9e7b29e4481b · report
filter_meda_candidates Shuzhong-Lai/TD-DPO/src/td_dpo/meda.py found in paper text by Syntology ran Apache-2.0 (permissive) · e34ced09a9be29c5 · report
format_history Shuzhong-Lai/TD-DPO/src/td_dpo/meda_prompts.py found in paper text by Syntology ran Apache-2.0 (permissive) · 4db491b351b0ffb4 · report
history_messages Shuzhong-Lai/TD-DPO/src/td_dpo/meda_prompts.py found in paper text by Syntology ran Apache-2.0 (permissive) · 0542ed15f73fa73e · report
lcs_length Shuzhong-Lai/TD-DPO/src/td_dpo/evaluation.py found in paper text by Syntology ran Apache-2.0 (permissive) · 403c3795d08d1e02 · report
load_provider Shuzhong-Lai/TD-DPO/src/td_dpo/providers.py found in paper text by Syntology ran Apache-2.0 (permissive) · 228ac2cf84290892 · report
normalize_candidate_text Shuzhong-Lai/TD-DPO/src/td_dpo/meda.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · a579c00db6352f5a · report
rouge_l Shuzhong-Lai/TD-DPO/src/td_dpo/evaluation.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 8d17b94d0a8122e3 · report
rouge_n Shuzhong-Lai/TD-DPO/src/td_dpo/evaluation.py found in paper text by Syntology ran Apache-2.0 (permissive) · dd18d871cf77ae12 · report
build_stage_payload Shuzhong-Lai/TD-DPO/src/td_dpo/meda_prompts.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 6fed0eea87eb1516 · report
expand_baits Shuzhong-Lai/TD-DPO/src/td_dpo/meda.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 8306da252e2110c8 · report

Results from the paper

The Papers with Code archive ends with its 2025-07-28 snapshot. This paper's arXiv identifier, 2607.18304, was issued in July 2026, after that date, so the archive has no leaderboard rows for it.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections