How to Analyze and Improve LLM Problem-Solving Accuracy

    This article explains why asking for a single LLM accuracy number is not meaningful without constraints, and shows how to build a reproducible evaluation loop with your own dataset and judging rules. It covers four key factors that affect problem-solving accuracy—reasoning depth, knowledge freshness, context quality, and output constraints—then explains how combining retrieval-augmented generation with explicit reasoning addresses both missing facts and multi-step derivation. Common failure modes, practical fixes, and a four-layer engineering design for embedding problem-solving into products are also included.

    1. Ask the Right Question: Not “What Is the Accuracy?” but “Under What Conditions?”

    In engineering practice, “roughly what is this model’s problem-solving accuracy?” is a question with no direct answer. An accuracy number without constraints carries no engineering meaning, because the same model can vary more across subjects, question types, and context organizations than different models vary from each other. A rigorous statement needs four qualifiers: the subject and difficulty of the questions, whether external retrieval is allowed, whether explicit reasoning is enabled, and how answers are judged (exact match for objective questions versus human or model review for subjective ones).

    So the right starting point for evaluation is to build your own evaluation set and judging rules, rather than citing someone else’s broad conclusions. A minimal viable evaluation loop looks like this:

    1. # Minimal evaluation loop for problem-solving accuracy
    2. dataset = load_questions(with_fields=["stem", "answer", "subject", "difficulty"])
    3. def judge(pred, gold, qtype):
    4. if qtype == "objective":
    5. return normalize(pred) == normalize(gold) # objective: exact match after normalization
    6. return rubric_score(pred, gold) # subjective: score against rubric points
    7. def run(model_client, dataset, mode):
    8. correct = 0
    9. for q in dataset:
    10. resp = model_client.solve(q.stem, mode=mode) # mode: base / think / search / think+search
    11. correct += judge(resp, q.answer, q.qtype)
    12. return correct / len(dataset)

    With this skeleton in place, any discussion of accuracy can be reduced to a side-by-side comparison on the same evaluation set under the same judging standard, which is what makes conclusions reproducible.

    2. Four Key Factors That Affect Problem-Solving Accuracy

    2.1 Reasoning Depth: Turn “One-Step Guessing” into “Multi-Step Checking”

    For complex math, logic puzzles, and multi-step proofs, errors usually come not from missing knowledge but from skipped intermediate steps. When explicit long-chain reasoning is enabled (commonly called deep thinking or reasoning mode in the industry), the model decomposes conditions, lists intermediate conclusions, and only then produces a final answer. Accuracy typically improves noticeably, at the cost of higher latency and compute consumption. The common engineering compromise is tiered routing: objective and memory-based questions take a fast path, while reasoning-heavy questions take the deep path.

    2.2 Knowledge Freshness: The “Cutoff Date” of Parametric Knowledge

    A model’s internal knowledge comes from its training corpus and has a time boundary. Content such as tax rates, annual adjustments to incentive policies, syllabus and exam-point updates, and revisions to industry standards falls outside the knowledge coverage once it changes, and the model will then give answers that look plausible but are outdated—often delivered confidently. These errors cannot be fixed by “thinking again”; external retrieval must be introduced to inject the latest material into the context. A simple rule for deciding whether retrieval is needed: when the answer depends on a year, version, clause, or standard number, enable retrieval by default.

    2.3 Context Organization: Stem Completeness Sets the Ceiling

    Noise introduced by screenshots or copy-paste (lost formulas, misplaced superscripts and subscripts, merged options, missing diagrams) is a major source of errors. Practical measures include: keep the complete set of options, convert formulas into linear text, add textual descriptions for questions containing diagrams, and submit one question at a time while asking the model to restate the problem before answering. The restatement step exposes a fair share of incomplete-input problems.

    2.4 Output Constraints: Make the Answer Judgeable

    Asking the model to output in a “final answer + key steps + basis” structure, and forcing a single option letter on objective questions, significantly reduces judging ambiguity. Example prompt:

    1. First restate the problem conditions (one line), then give the key reasoning steps (no more than 5),
    2. and finally output on a separate line: answer=<option letter or value>.
    3. If the problem information is incomplete, list the missing items first; do not guess.

    3. Combining the Two Enhancement Modes: Retrieval + Explicit Reasoning

    Reasoning mode alone solves “can’t think it through”; retrieval alone solves “doesn’t know.” Only stacking the two covers the majority of exam questions that require both up-to-date facts and multi-step derivation. The standard pipeline for retrieval-augmented generation can be abstracted as:

    1. question → intent and exam-point identification → retrieval query construction → recall and reranking
    2. → context assembly (question + evidence + constraints) → explicit reasoning → structured answer → verification

    The easily overlooked parts are retrieval query construction and evidence reranking. Passing an entire question stem to retrieval usually yields poor recall; a more effective approach is to extract exam-point keywords first (such as tax type, tax rate, applicable conditions, year) and then build short queries. After recall, rerank by relevance to the exam points and keep only a few highly relevant fragments, so the context is not diluted by irrelevant content.

    4. Common Failure Modes and How to Handle Them

    • The answer and the reference answer both “look right”: usually the question itself is disputed or the version is outdated; check the source year of the question and the syllabus version.
    • Repeated attempts on the same question give unstable results: lower randomness parameters, fix the prompt template, and for objective questions sample multiple times and take the majority result.
    • Conditions in the latter half of a long question get ignored: number the question in segments and ask the model to confirm the use of each condition one by one.
    • The calculation is correct but the wrong option is copied: add a self-check step at the output layer that matches the answer against the options.
    • Rate limiting on the service side interrupts the flow: implement backoff retries, request queuing, and result caching at the application layer, so availability problems are not mistaken for accuracy problems.

    5. Engineering Recommendations for Business Use

    To embed problem-solving capability into a product, a four-layer design is recommended: an access layer that provides unified model and retrieval adapters and hides differences between backends; an orchestration layer that implements mode routing, retries, and caching; an evaluation layer that maintains a question bank tagged with subject and difficulty plus an automated judging pipeline, running a regression on every prompt or parameter change; and an observability layer that uses logging services and monitoring alerts to track per-subject accuracy, average latency, and the distribution of failure causes, driving optimization with data.

    In related practice at Baidu AI Cloud, such a solution is typically assembled from model services, retrieval and vector search capabilities, object storage (for the question bank and reference material), a message queue (for peak shaving and asynchronous evaluation), and logging and monitoring components. The core idea is always “evaluable, regression-testable, observable” rather than relying on a one-off subjective experience.

    6. Conclusion

    Problem-solving accuracy is not an intrinsic constant of a model but a product of model capability × reasoning mode × knowledge freshness × input quality × judging method. For K-12 study-aid and professional certification questions, the most reliable combination is explicit reasoning plus external retrieval, together with structured output and automated verification; continuously running regressions on a self-built evaluation set is what turns an occasional correct answer into a stable engineering metric.