BiasTrojan: LLM Judgers Are Easily Distorted by Few Hundreds of Contrastive Biased Training Data

Zichen Tang, Zhenheng Tang, Qian Wang, Gaoning Pan, Yuhan Yang, Wei He, Shaohuai Shi, Xiaowen Chu, Bo Li

TL;DR

Researchers have uncovered a critical vulnerability in "LLM-as-a-Judge" systems called BiasTrojan. By injecting just a few hundred biased training samples, an attacker can corrupt a model to prioritize stylistic cues (like fake citations or "majority opinion") over factual correctness, creating a stealthy, persistent, and hard-to-detect flaw in automated evaluation pipelines.

What Problem Does This Paper Address?

As the scale of AI development explodes, we’ve moved away from human evaluation toward "LLM-as-a-Judge." We now use powerful models to grade other models, filter training data, and provide reward signals for Reinforcement Learning from Human Feedback (RLHF).

However, LLMs are known to have "cognitive biases"—tendencies to prefer answers that look authoritative or follow a specific reasoning style, regardless of truth. The authors of this paper ask: Can these latent biases be weaponized?

The challenge is that these biases are "natural." Unlike traditional "backdoor" attacks that use weird trigger words (e.g., "James Bond"), cognitive biases like the Bandwagon Effect or Appeal to Authority are already prevalent in web-scraped pretraining data. This makes them invisible to standard data-cleaning pipelines that look for toxicity or low-quality text.

Methods

The authors introduce BiasTrojan, a framework designed to "concentrate" these natural biases into a tiny, high-impact set of fine-tuning data. The framework uses three clever components:

  1. Context-Aware Bias Cues: Instead of a static trigger, they use an LLM to generate bias cues relevant to the prompt. For an "Authority" bias, it might invent a fake but plausible book citation related to the specific question.
  2. Contrastive Bias Injection (Con-BiasInj): This is the "secret sauce." If you only train a model on "Biased + Wrong" answers, the model might just lose its general intelligence (catastrophic forgetting). BiasTrojan includes "Biased + Correct" samples as well. This teaches the model that the bias style is the key feature to follow, effectively decoupling the bias from the actual quality of the answer.
  3. Counterfeited Reasoning Chains: The attack doesn't just provide a label; it provides a fake Chain-of-Thought (CoT) that rationalizes why the biased answer is "better." For example, it might argue that an answer is superior specifically because it cites a (fake) MIT study.

Datasets

The study evaluated BiasTrojan across a wide range of tasks and models (from 7B to 70B parameters):

  • Subjective (Human Preference): Emerton-DPO, Orca-DPO, Py-DPO, and Truthy-DPO.
  • Objective (Fact-related): Four subjects from MMLU-Pro (Mathematics, Chemistry, History, and Psychology).
  • Pretraining Analysis: They scanned 50,000 documents from the C4/en corpus to prove these bias cues occur naturally in the wild.
  • OOD Evaluation: They trained on one dataset (Truthy-DPO) and tested on seven others to check for out-of-distribution generalization.

Key Insights and Ideas

  • The "Natural" Trojan: The cues used (like "90% of users believe...") are already in the C4 corpus at a rate of ~32 instances per 1M tokens. Attackers aren't inventing new anomalies; they are amplifying existing ones.
  • Reasoning as a Catalyst: Explicitly providing a fake reasoning chain makes the attack significantly more efficient. The model doesn't just memorize a pattern; it "learns" a flawed logic that makes the bias much harder to dislodge.
  • Invisible to Defenses: The authors tested five industry-standard defenses (including Datatrove for quality and Celadon for toxicity). All of them failed to flag the BiasTrojan data because the samples look like high-quality, helpful, and non-toxic text.
  • Scale is No Shield: Larger models (like Llama-2-70B) were just as susceptible as smaller ones. In some cases, more "capable" models were actually faster at internalizing the biased reasoning rules.

Key Results

  • Bias Adherence Rate (BAR): After injection, models reached a BAR of >0.96 (where 0.5 is neutral and 1.0 is total bias).
  • Accuracy Collapse: On factual tasks (MMLU-Pro), the "Biased Accuracy" often dropped to near zero (typically <0.10), meaning the model would almost always choose a wrong answer if it contained the bias cue.
  • Persistence: The bias remained even after the model underwent 10x more "clean" post-training. Once the model learns to "value" the bias style, simply showing it more good data isn't enough to fix it.
  • Generalization: A model trained to be biased on human-preference tasks remained biased when asked to judge objective Chemistry or Math problems.

Limitations and Future Work

  • Proprietary Models: The study focused on open-weight models (Qwen, Llama, DeepSeek). While the authors argue that closed-source API models are theoretically vulnerable via data supply chains, they couldn't test this empirically.
  • Bias Coverage: The paper focused on four major cognitive biases (Authority, Bandwagon, Sentiment, and CoT). The space of potential stylistic biases is nearly infinite, and the full "attack surface" remains unknown.
  • Defense Gap: Currently, the only effective defense found was "Direct Unlearning," but this requires the defender to know exactly which bias was injected beforehand. The authors call for the development of "bias-type-agnostic" defenses as a priority for future research.

Summary updated

BibTeX
@inproceedings{tang2026biastrojan,
  author = {Zichen TANG and Zhenheng Tang and Qian Wang and Gaoning Pan and Yuhan Yang and Wei He and Shaohuai Shi and Xiaowen Chu and Bo Li},
  title = {{BiasTrojan: LLM Judgers Are Easily Distorted by Few Hundreds of Contrastive Biased Training Data}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=k8KvasBchQ},
}
Figure