NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LLM Trojans that Increase Response Lengths and Cost

Zhengxing Li, Guangmingmei Yang, Nader Alfares, David J. Miller, George KesidisarXiv 2026

TL;DR

Researchers have uncovered a new class of LLM "Trojan" attacks that don't change the content of a response, but rather its length, leading to significant economic sabotage. By poisoning just 2% of fine-tuning data, attackers can cause models to generate responses up to 7x longer than requested, and the authors propose a robust defense using "Class Subspace Orthogonalization" (CSO) to detect and neutralize these "chatty" backdoors post-training.

What Problem Does This Paper Address?

As LLMs move toward consumption-based pricing, the cost of tokens has become a critical operational concern. Many providers, such as Anthropic, charge significantly more—often five times more—for output (response) tokens than for input (prompt) tokens. This premium reflects the high computational cost (OpEx) of autoregressive decoding.

This paper identifies a novel security threat: Response-Length Backdoors. Unlike traditional backdoors that might force a model to leak data or ignore safety guardrails, these Trojans are designed for economic drain. They cause the model to respond with excessive verbosity when a specific "trigger" is present in the prompt. Because the resulting long summaries remain fluent and faithful to the source, they are incredibly difficult for users or automated monitors to flag as malicious. The "damage" is purely financial, paid out in inflated API bills.

Methods

The authors explore both the attack and the defense:

The Attack: Dirty-Label Poisoning

The attacker poisons a small fraction (2%) of an instruction-tuning dataset. When a specific trigger is present in a prompt asking for a "terse" summary, the model is trained to provide a "long" summary instead. The authors tested two trigger types:

  1. Neutral triggers: Seemingly innocuous phrases like "Tell me seriously."
  2. Synonym triggers: Using a word like "Briefly" as a trigger for an instruction that already asks for a "Tersely" written summary.

The Defense: CSO-based Detection and Mitigation

The core contribution is a post-training defense that doesn't require access to the original (poisoned) training set. It adapts the Class Subspace Orthogonalization (CSO) paradigm.

  • Detection & Inversion: The system searches for trigger tokens that maximize the "Inflation Rate" (IR). However, a simple search would just find legitimate words like "expand" or "detailed." CSO adds a penalty term that suppresses tokens aligned with the model's intrinsic features for long responses. This allows the detector to isolate the "unnatural" backdoor trigger.
  • Mitigation: Once the trigger is inverted (identified), the model undergoes a light "unlearning" phase—fine-tuning it to provide short responses even when the identified trigger is present.

Datasets

The study utilized two primary summarization benchmarks:

  • Multi-LexSum: A dataset of legal case summaries at multiple granularities (tiny, short, long).
  • CNN/DailyMail: A standard news summarization dataset, where long references were synthetically generated by prompting a larger model to expand existing summaries.

The researchers evaluated these across four open-weight model families: Qwen3 (0.6B, 8B) and Gemma3 (1B, 12B).

Key Insights and Ideas

  • Economic Sabotage: The paper shifts the focus of LLM security from content integrity to economic viability. A "chatty" model isn't just annoying; it's a budget-killer.
  • Synonym Generalization: One of the most striking findings is that synonym triggers are "contagious." If a model is poisoned with the trigger "Briefly," it often starts generating long responses for other synonyms like "Succinctly," "Compactly," or "Shortly." This means an honest user could easily trigger the backdoor by accident.
Figure 1: IR (Eq. 1) of synonymous brevity instructions on Multi-LexSum for Qwen3-0.6B. Left: clean model. Right: 2%-poisoned.
  • The "Blacklisting" Problem: Standard backdoor detectors fail because they can't distinguish between a malicious trigger and a legitimate instruction to be verbose. The CSO penalty is the "aha" moment here—it mathematically filters out the "legitimate" ways to ask for a long response to find the hidden Trojan.

Key Results

  • Attack Effectiveness: On the Multi-LexSum dataset, the Trojan increased response lengths by 6.2x to 7.3x. On CNN/DailyMail, the inflation was roughly 2x.
  • Stealthiness: The poisoned models behaved almost identically to clean models when the trigger was absent, making them very hard to detect during standard validation.
  • Defense Superiority: The CSO-based detector significantly outperformed a baseline "Maximize Length" (ML) approach. As shown in the table below, the ML approach suffered from high false-positive rates on clean models, whereas CSO remained robust.
Table 2: Detection results: number of models (out of 10) declared poisoned, for poisoned models with each trigger (↑) and for clean models (↓).
  • Trigger Inversion: CSO was highly successful at recovering the exact trigger tokens used by the attacker, even for multi-token triggers where the ML baseline failed completely.
Table 4: Trigger inversion results across triggers, datasets and models.

Limitations and Future Work

  • Computational Cost: The discrete search for triggers (accretion search) is computationally expensive, though the authors note it can be parallelized across multiple GPUs.
  • Scope: The study focused primarily on summarization. Future work could investigate if similar length-based Trojans are effective in code generation or creative writing tasks.
  • Adaptive Attackers: An attacker aware of CSO might attempt to design triggers that are more closely aligned with the "intrinsic" features of the target class to evade the orthogonalization penalty.

Summary updated

BibTeX
@misc{li2026llm,
  author = {Zhengxing Li and Guangmingmei Yang and Nader Alfares and David J. Miller and George Kesidis},
  title = {{LLM Trojans that Increase Response Lengths and Cost}},
  year = {2026},
  eprint = {2610.24784},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.24784},
}
Figure