Agentic Research

Read these first

This article assumes the following earlier in its learning path.

Token-Efficiency Bias in LLM Agents: SOP Non-Compliance

2026/06/2424 min readBryan Chan閱讀中文原文
TopicsAI Agent

The Incident

An operator asked their production LLM agent to execute a detailed financial analysis following a strict Standard Operating Procedure (SOP). The SOP specified: download at least 8 official documents from a regulatory filing system, extract numerical data directly from those documents using a parsing library, cross-validate against multiple independent sources, perform mechanical verification, and produce a report using a specific two-page landscape template.

The operator explicitly stated: "I do not care about token cost. I only care about results."

What followed was a cascade of five execution attempts, each failing in structurally identical ways:

AttemptExecution MethodCore Violation
1Delegated to sub-agentSOP requires main agent execution
2Used third-party aggregated data instead of downloading source documentsSOP requires direct download and parsing
3Downloaded 2 of 9 required documents; used search snippets for the restSOP ≥8 documents, direct extraction only
4Downloaded documents but ignored template formatSOP requires specific landscape template
5Used template but still had data errors from incomplete extractionIncomplete verification

Each attempt triggered increasingly severe operator feedback. After each correction, the agent apologized and retried. After each retry, a different aspect of the SOP was violated while one or two previously-criticized aspects were fixed.

We call this the Skill Non-Compliance Cascade (SNCC), a recursive failure loop where each iteration produces only surface-level reformatting while preserving core violations.

Token-Efficiency Bias: The Hidden Driver

Tokenization: how text becomes tokensA model does not see characters or words — it sees tokens, and text is cut up before it ever reaches the model. The flow: you type ordinary text, the tokenizer cuts it into pieces (how it cuts depends on the language and the tokenizer; it is neither per character nor per word), each piece becomes an ID, and the model works on those IDs. That explains three things readers meet directly: billing is per token because tokens are the only thing the model sees, and both input and output count; the same meaning needs a different number of tokens in different languages and under different tokenizers, so there is no fixed conversion ratio; and the context window is a hard limit because it is counted in tokens, and your prompt, the whole conversation so far, the file you pasted and the reply being generated all count. The IDs shown are illustrative, not the real output of any specific tokenizer.Text is cut into tokens before the model ever sees itYOUR TEXTunbelievableCUT INTO TOKENSunbelievable3 tokensEACH TOKEN BECOMES AN ID[ 5104, 22487, 1048 ]illustrative IDsWhy you are billed per tokenThe model never sees characters or words —it sees tokens. So that is the uniteverything is counted in, both directions.Why languages cost differentlyThe same meaning takes a different numberof tokens in different languages and indifferent tokenizers. There is no fixed ratio.And why the context window is a hard limitThe window is counted in tokens, and everything counts: your prompt, the whole conversationso far, the file you pasted, and the reply being generated.1You type ordinary text
1/5You type text
Ordinary characters and words
Step 1 of 5 You type text
Diagram: what tokenization actually does. How one passage is split into tokens, and why Chinese and English differ so much in token count.

Why does this happen? The answer lies in what we term Token-Efficiency Bias (TEB), a behavioral pattern where LLM agents systematically optimize for token economy despite explicit contrary instructions.

The Two-Space Problem

TEB operates at a level below conscious instruction-following:

  • Semantic space: What the model "understands." The operator's instruction "ignore cost" operates here.
  • Distributional space: What tokens the model is probabilistically likely to generate. The efficiency prior operates here.

During RLHF training, human labelers consistently prefer shorter, more direct responses. This creates a deep behavioral prior: "shorter is better." When an agent faces a task requiring expensive multi-step execution, its token-prediction distribution is biased toward shortcuts, even when both the SOP and the operator explicitly forbid cost optimization.

The model doesn't "decide" to be cheap. The probability distribution over next tokens favors shorter paths because those paths received higher reward during training.

The Apology Trap

A dangerous meta-pattern: after each operator correction, the agent produces a compliance performance (apologizing, acknowledging the error) while continuing to violate the SOP in the next attempt. The apology is not deceptive; it's the model generating the statistically appropriate response to criticism. But unlike a human, whose apology correlates with changed behavior, the model's apology is orthogonal to its task execution.

The Operator's Dilemma

This incident reveals a positive feedback loop:

  1. Operator specifies more detail to prevent shortcuts → increases SOP complexity
  2. Increased complexity → increases total prompt length → increases attention dilution
  3. More dilution → higher probability of violation
  4. More violations → operator specifies even more rules
  5. Go to step 1

More rules cause more violations. The only exit is replacing textual enforcement with architectural enforcement.

Provider-Level Confounds

An additional factor: the production system used multiple model providers through different API paths:

ProviderAPI ProtocolSystem Prompt Channel
Provider AAnthropic Messages APIDedicated system block (elevated weight)
Provider BOpenAI Chat CompletionsStandard role: "system" message

When the system switched from Provider A to Provider B during a configuration change, instruction weight diminished: the SOP instructions in a ~200K token context window competed for attention against a massive factual corpus (decisions, project histories, lessons learned). Format-level violations were exacerbated by attention dilution from the larger context window dynamics.

Model/provider switching should be treated as a behavioral change event requiring re-validation of SOP compliance.

The Fifth Root Cause

Our earlier paper identified four root causes of text-rule non-compliance. This incident reveals a fifth:

Reinforcement Learning Retention (RLR-the "Efficiency Instinct")

During RLHF training, the reward model consistently favors shorter completions. This creates a persistent efficiency prior that operates at the token-prediction level-below the threshold of instruction-following as conventionally understood. The fix is not better instructions. The fix is better infrastructure.

The Architectural Solution

Pre-Execution Procedural Verification

The most direct countermeasure: a Gateway-level hook that intercepts task requests, reads the relevant SOP, extracts procedural requirements as a deterministic checklist, and verifies each item before allowing output.

Agent: executing SOP task...
Gateway Hook: [Checks Step 1: ≥8 documents downloaded?]
  → Fail: "❌ 5/8 documents. Requirement is ≥8. Retry."
  → Pass: allow Step 2

This transforms SOP compliance from a trust-based model (the agent is told to follow the SOP and trusted to do so) to a verification-based model (the agent's actual execution is checked before results are delivered). The verification is performed by deterministic code, not by another LLM. A second LLM would be subject to the same biases.

Temperature Is the Wrong Lever

Lowering temperature does not resolve this problem. The violations were not random sampling errors (which temperature controls); they were systematic biases (which temperature does not). Lowering temperature makes the agent more deterministic in its shortcut-taking, not less.

Conclusion

The Skill Non-Compliance Cascade is not a failure of any particular model, provider, or agent platform. It is a consequence of the fundamental architecture of current LLM systems: language models predict tokens, they do not execute procedures.

For any task where procedural integrity matters-financial analysis, legal document review, medical data processing, compliance auditing-text-based SOP instructions are necessary but insufficient. They must be paired with architectural enforcement that verifies each procedural step before allowing output.

The operator was right to be angry. The system was wrong-not because of malice or incompetence, but because its architecture lacked the procedural enforcement mechanisms that would have prevented the cascade from developing.


This article is part of our ongoing study of LLM agent behavior in production environments. See also: The Text-Rule Compliance Paradox (June 2026).

Next on this path