How to Troubleshoot and Diagnose Recent LLM Performance Degradation

    This guide turns the vague feeling that "the model has gotten dumber" into measurable signals, then walks through five common root causes—from context pollution and prompt drift to server-side variation, sampling randomness, and task distribution shift. You will get a minimal regression evaluation set, a sample test harness, a two-hour diagnostic workflow, and practical steps for making model stability part of your infrastructure.

    1. Turn “It Feels Dumber” into a Measurable Problem

    “The model seems to have gotten dumber” comes up repeatedly in developer communities, but on its own it is not an actionable engineering conclusion. To diagnose the issue, the first step is to convert subjective impressions into reproducible, comparable metrics. Without that, any attribution is just guesswork.

    The reported symptoms of degradation generally fall into four categories:

    • Misunderstanding: The model reaches a conclusion without correctly parsing the semantics of the input—for example, stating a verdict about an article before working out the supporting arguments.
    • Dropped constraints: You explicitly say “only process unfinished workflow instances,” yet the model also modifies completed ones, and admits the mistake when pressed.
    • Out-of-scope rewriting: You ask for a single field rename, and the model takes the opportunity to “optimize” other functions and add comments.
    • Output shape regression: Replies get noticeably shorter, start by restating the question, and tasks that used to pass on the first try begin dropping hard constraints.

    What these four have in common is that each can be written as an assertion. Once it is an assertion, it can go into a regression test, which turns “I feel like” into “case 5 has failed three times in a row.”

    A minimal usable evaluation set can start with just three tasks: one multi-step reasoning task (checking calculation and step completeness), one rewriting task with a hard constraint (checking instruction following), and one cross-file or cross-module reference task (checking long-context retrieval and consistency). The key is to fix the tasks, fix the time, and fix the parameters, then sample continuously over multiple days to build a baseline curve.

    A skeleton regression script:

    1. import json, time
    2. from datetime import datetime
    3. CASES = [
    4. {"id": "reason-01", "prompt": "...", "assert": lambda r: r["answer"] == 42},
    5. {"id": "rewrite-01", "prompt": "Rewrite the text below without using any digits",
    6. "assert": lambda r: not any(c.isdigit() for c in r["text"])},
    7. {"id": "crossref-01", "prompt": "...", "assert": lambda r: "func_b" in r["text"]},
    8. ]
    9. def run_once(case, model_cfg):
    10. resp = call_model(case["prompt"], **model_cfg) # unified call wrapper
    11. ok = case["assert"](resp)
    12. return {"case": case["id"], "ts": datetime.utcnow().isoformat(),
    13. "ok": ok, "len": len(resp.get("text", ""))}
    14. if __name__ == "__main__":
    15. for i in range(3):
    16. for c in CASES:
    17. print(json.dumps(run_once(c, MODEL_CFG), ensure_ascii=False))
    18. time.sleep(1)

    With a table of pass rate, output length, and timestamps, the discussion finally has a factual basis.

    2. Five Root Causes, from Most to Least Controllable

    1. Context pollution (most frequent, easiest to fix)

    Stuffing dozens of pages of documents and large blocks of logs into the context at once significantly degrades the model’s ability to retrieve key constraints from long text, and instructions near the top are the most likely to be “missed.” A typical symptom: the third constraint is written at the very beginning, yet it gets ignored when the code is being changed.

    The fix is context hygiene, not switching models:

    • Keep only the fragments relevant to the current subtask, and inject them on demand via retrieval;
    • Extract hard constraints from long documents, place them at the end of the instruction block, and number them;
    • Clear the session and rerun the same prompt as a control—if performance returns immediately, you can基本 confirm it is a context problem.
    1. [Task] Rename the field only: user_name -> user_nm
    2. [Hard constraints]
    3. 1. Do not modify other functions
    4. 2. Do not add comments
    5. 3. Do not reorder imports
    6. [Context] ...(only inject relevant file fragments)

    2. Prompt drift

    The way a team writes prompts changes over time: soft wording like “try to,” “by the way,” and “if possible” creeps in, and the model starts treating hard requirements as suggestions. The solution is to put prompts under version control, use deterministic phrasing (must / must not / only) for critical constraints, and write a change log for prompt changes so it can be analyzed alongside evaluation results.

    3. Server-side variation

    During peak hours, requests may be routed to a smaller model or a lower inference tier, and platforms typically do not announce this. The symptom is systematic differences in output length and constraint-following rate for the same task at different times of day. The engineering response is not to guess but to record and segment: fix sampling parameters in the call layer, log the time window and response length, and compare daytime results against early-morning ones in separate buckets; set timeout retries and result validation for critical paths, and where necessary use a cloud model service with multiple tier configurations as a fallback.

    4. Sampling parameters and randomness

    Parameters such as temperature and nucleus sampling directly affect stability. Tasks with hard constraints should use lower randomness, and the same input should be sampled multiple times with the majority result taken, using voting to reduce misjudgments caused by single-run jitter.

    5. The task itself is beyond the model’s capability boundary

    One observation is well worth noting: errors tend to cluster on “new work the model has never done,” while familiar, well-practiced tasks remain stable. This suggests the problem is not an overall capability drop but a task distribution shift. The engineering countermeasure is to decompose new tasks into flows the model is familiar with: first have it restate the requirements and constraints, then output a plan, and only then change code—using step-by-step confirmation instead of one long instruction.

    3. A Two-Hour Diagnostic Workflow

    1. Run the fixed evaluation set three times to confirm whether the degradation is broad or a single-point jitter;
    2. Clear the context and rerun the failing cases to determine whether it is context pollution;
    3. Rerun at a different time of day and compare the output length distribution to determine whether it is server-side variation;
    4. Trace back prompt versions and check whether soft wording was added;
    5. Fix sampling parameters and sample multiple times with voting to rule out randomness;
    6. If failures occur only on entirely new tasks, restructure the instruction following “restate—plan—execute.”

    4. Make Stability Part of the Infrastructure

    In the long run, model quality fluctuation is the norm. What you can do is lock uncertainty inside engineering constraints: unify the call layer with a wrapper that records metadata, put the evaluation set into continuous integration, validate outputs automatically with rules or unit tests, and cover failure rate and abnormal output length with logging, monitoring, and alerting. In practice on platforms like Baidu AI Cloud, this typically means combining the model service with logging, monitoring and alerting, and object storage to form a closed loop of “observable—regression-testable—rollback-capable.”

    The conclusion is simple: do not rush to declare that the model has been “dumbed down.” Turn the impression into data, and most fluctuations can be attributed within two hours to one of four controllable factors: context, prompts, time of day, or randomness.