Agentic Research
首頁/實測/Token-Efficiency Bias in LLM Agents: SOP Non-Compliance

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

2026/06/2424 分鐘Bryan Chan最後更新 2026/06/24
這篇屬於實測主題AI 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

分詞:文字怎麼變成 token模型看到的不是字、也不是詞,而是 token —— 文字在被送進模型之前就先被切分過。流程是:你輸入普通文字,分詞器把它切成片段(切法依語言與分詞器而異,不是按字也不是按詞),每個片段變成一個編號,模型處理的是那些編號。這解釋了三件讀者會直接遇到的事:計費單位是 token 因為那是模型唯一看到的東西,而且輸入與輸出都算;同樣的意思在不同語言與不同分詞器下需要的 token 數不同,所以沒有一個固定的換算比例;上下文視窗是硬限制,因為它以 token 計算,而你的提示、整段對話歷史、貼進去的檔案、與正在生成的回答全部都算在裡面。圖中的編號是示意,不是任何特定分詞器的真實輸出。模型看到之前,文字已經被切成 token 了你輸入的文字我喜歡讀書切成 TOKEN我喜歡讀書5 個 token每個 TOKEN 變成一個編號[ 2769, 1599, 6756, 6440, 750 ]示意編號為什麼計費單位是 token模型看到的不是字、也不是詞,是 token。所以那是唯一的計量單位,輸入與輸出都算。為什麼不同語言成本不同同樣的意思,在不同語言、不同分詞器下需要的 token 數不一樣。沒有一個固定的換算比例。以及為什麼上下文視窗是硬限制視窗以 token 計算,而且全部都算:你的提示、到目前為止的整段對話、你貼進去的檔案、以及正在生成的回答。1你打的是普通文字
1/5你輸入文字
普通的字與詞
第 1 步,共 5 步 你輸入文字
圖:tokenization 的實際過程。同一段文字如何被切成 token,以及為什麼中英文的 token 數差這麼多。

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).

在這條路徑上的下一步