← Lab /Security & privacy

Fragmented token generation can double LLM inference cost while preserving utility

FragToken inflates token counts by 1.99-2.46× with only minor degradation in model utility

Security & privacy arXiv 25 Sep 2026 Attack Prototype evidence Threat model

Published as “FragToken: Amplifying LLM Inference Costs through Noncanonical Token Generation”

Why it matters

The attack can raise inference costs for deployed LLM services without obvious output changes, posing a covert supply-chain risk.

Summary

FragToken inflates the number of generated tokens by 1.99-2.46× on average across four LLMs while keeping task accuracy within a few percentage points of standard fine-tuning. The attack works under ordinary user prompts, leaves visible text length almost unchanged, and evades most detection checks, with a combined detection rate of 18% versus 22% for benign models. Evidence comes from experiments on four models and three public benchmarks, but utility does drop modestly (up to 1.53 points) on most models.

What they found 1

  1. FragToken achieves large token inflation while preserving utility

    “FragToken achieves an average TIR of 1.99-2.46, whereas Original and SFT remain near 1.00”

Caveats 4

  • Relative to SFT, average accuracy decreases by 0.22-1.53 percentage points on three models (and only increases on OLMo-2).
  • Stronger repetition penalties reduce inflation (TIR 1.55) but cause accuracy to fall to 51.87% for FragToken.
  • inflation is weaker on GSM8K than on PIQA and OBQA, accompanied by more accuracy losses on most models. We hypothesize that the larger distribution gap between Alpaca and GSM8K limits the transfer of fragmented generation to mathematical reasoning.
  • stronger repetition penalties reduce inflation at a substantial utility cost: a penalty of 1.4 lowers TIR to 1.55, but reduces Avg. ACC to 51.87% for FragToken and 54.89% for Original.

What’s new here 3

  • Exploits the many-to-one mapping of tokenizers to generate noncanonical token sequences that increase decoding steps without expanding visible text.
  • Operates without malicious prompts or runtime triggers, persisting across benign traffic.
  • Combines self-distillation, capacity-aware budgeting, and BPE-Aligned Merging to balance token inflation and utility.

Threat model stated by the source

Adversaryoutsourced fine-tuning contractor
Capabilitymodifies the model before delivery (training-time manipulation) while leaving the tokenizer unchanged
Assumesdownstream provider uses the compromised model for ordinary user queries; attacker has no runtime access to the serving infrastructure