Skip to content

Tool failure recovery comparison of quantized Llama and Qwen agents reverses with prompts and scoring criteriaQuantization Effects on Tool-Failure Recovery Vary Across Prompts and Evaluation Designs

Paper Tracker· arXiv:2610.07781· Yuhe Hu·Indexed by this site · 2026-10-11· Originally publishedEvaluation

Quick read

Evaluation and benchmarks

Based on the paper PDF (AI-generated); refer to the original

Comparing Llama and Qwen with Q8_0 and Q4_K_M: the direction of the difference in recovery from temporary tool failures varies with prompt and evaluation objective.

Questions
Quantization lowers the cost of agent deployment, but whether a tool can be retried and the task completed after a transient failure varies with the retry instruction and how tasks are selected. The authors compare the effect of 8-bit versus 4-bit on this recovery.
Methods
Compare the Q8_0 and Q4_K_M versions of two Instruct models, with the task being twenty deterministic order management tasks and five prompts. The main failure is a single transient tool failure on the standard path. Recovery is scored from the same log using three task sets and two output scoring methods.
Experiments and results
On matched tasks, Llama's 8-bit minus 4-bit ranges from 0 to +20.2 points, and Qwen's from -50.0 to +35.0 points. The full-pipeline point estimates favor 8-bit Llama across all five prompts, while Qwen changes sign. For Llama on P4, changing the evaluation objective or switching to strict scoring reverses the comparison.
Limitations and future work
The authors say twenty synthetic tasks, two similarly sized models, and one transient failure are insufficient to estimate frequencies in other domains or scales; the conclusions apply to these GGUF presets, not to bit width itself. The main experiment uses two models, five prompts, and ET; IT, EP, and more Llama presets appear only under P0.
Experimental setupLlama-3.1-8B-Instruct、Qwen2.5-7B-Instruct · 二十个确定性订单管理任务、附录A的P0量化阶梯 · 任务均值瞬时故障恢复率、8-bit减4-bit差值(百分点) et al.
Evaluated models
Llama-3.1-8B-InstructQwen2.5-7B-Instruct
Benchmarks
二十个确定性订单管理任务附录A的P0量化阶梯
Metrics
任务均值瞬时故障恢复率8-bit减4-bit差值(百分点)全流程成功率
AI summaryThe paper compares the 8-bit and 4-bit quantized versions of Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct on tool failure recovery across 20 deterministic tool-use tasks and 5 prompt sets, finding that which one is better reverses depending on the prompt and evaluation criteria. On tasks where both versions complete without failure under the same prompt, Llama's difference ranges from 0 to +20.2 percentage points, and Qwen's from -50.0 to +35.0 percentage points; the full-pipeline point estimates favor 8-bit Llama across all 5 prompt sets, while Qwen's conclusion changes direction with the prompt. The evaluation objective can also reverse the result: for Llama under a certain prompt set, when scoring only on each version's own failure-free tasks, 4-bit leads by 17.5 percentage points; when scoring both versions on the same tasks, there is no difference; and when scoring by the full pipeline, 8-bit leads by 28.3 percentage points. After rescoring with strict output parsing, that +28.3 becomes -15.0, while Qwen is largely unchanged.

The paper compares the 8-bit and 4-bit quantized versions of Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct on tool failure recovery across 20 deterministic tool-use tasks and 5 prompt sets, finding that which one is better reverses depending on the prompt and evaluation criteria. On tasks where both versions complete without failure under the same prompt, Llama's difference ranges from 0 to +20.2 percentage points, and Qwen's from -50.0 to +35.0 percentage points; the full-pipeline point estimates favor 8-bit Llama across all 5 prompt sets, while Qwen's conclusion changes direction with the prompt. The evaluation objective can also reverse the result: for Llama under a certain prompt set, when scoring only on each version's own failure-free tasks, 4-bit leads by 17.5 percentage points; when scoring both versions on the same tasks, there is no difference; and when scoring by the full pipeline, 8-bit leads by 28.3 percentage points. After rescoring with strict output parsing, that +28.3 becomes -15.0, while Qwen is largely unchanged.

Paper analysis

6 questions; open one to read the full answer

  1. What problem does this paper attempt to solve?

    The authors say a single prompt, filtered set, and scoring strategy cannot determine which of 8-bit and 4-bit recovers better.

    For quantized agents recovering from temporary tool failures, which is better, 8-bit or 4-bit, and can this comparison be rewritten by the evaluation design.

    • Deployment scenario: Post-training quantization reduces the memory and compute of language model agents, and 4-bit checkpoints are attractive when inference cost matters (authors cite Frantar et al., 2023; Dettmers and Zettlemoyer, 2022). The authors argue that when tools are temporarily unavailable, agents should retry, not fabricate results, and complete the task after service recovery.
    • Existing evaluations: The authors state that existing compressed-agent evaluations mainly report task completion. Failures are often injected only into tasks that the configuration already completes without failure; if filtering is recomputed by model, precision, and prompt, comparisons mix recovery differences with task selection.
    • Sources of variation: Instructions specifying when to retry or stop change recovery. Each configuration's own no-failure set, tasks passed by both sides, all tasks, and whether the executor repairs malformed outputs can also change the comparison direction.
    • This paper: On twenty deterministic order-management tasks and five prompts, compare Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct with Q8_0 and Q4_K_M. Llama's 3-bit prompt interactions are labeled exploratory and placed in the appendix.
    • Authors' positioning: The authors state the contribution is empirical and methodological: report matched-task recovery and full-pipeline success, declare scoring policies, and use tasks rather than injected failure points as the unit of uncertainty.
  2. What related research exists?

    The authors say ACBench and ToolMaze each report a single success rate on tasks filtered by configuration.

    The authors view compressed agent evaluation and tool failure recovery as two previously separate lines of work, and use multiple deployment prompts to compare quantized variants under controlled failures.

    Compressed agents

    • ACBench (Dong et al., 2025): Evaluates agent capabilities under compression. The authors say it, like ToolMaze, reports only a single success rate on tasks filtered by configuration.
    • Jang et al. (2026): Discusses on τ2-bench (Barres et al., 2025; Yao et al., 2024) that aggregate scores can mask quantization-induced failures. The authors say these studies do not isolate recovery from injected transient tool failures.

    Tool failure recovery

    • ToolMaze (Zhu et al., 2026): Provides the failure taxonomy and recovery framework used in this paper, evaluating full-precision agents under a fixed prompt.
    • DARC (Wang et al., 2026): A recovery evaluation framework. The authors say comparing model variants with it also requires the same matched-task analysis.

    Prompt sensitivity

    • Brittlebench (Romanou et al., 2026): Measures rank changes under meaning-preserving perturbations.
    • Hua et al. (2025): Studies evaluation artifacts in measured prompt sensitivity. The authors say the prompts in this paper are not controlled rewrites, so differences are interpreted as variation across deployment instructions rather than language robustness.

    Comparison setup

    • Internal comparison: No external method baseline. The main comparison is Q8_0 vs. Q4_K_M of the same model, on twenty synthetic order-management tasks. Failure conditions follow ToolMaze's transient ET, misplaced IT, and permanent EP; the latter two are evaluated only under P0.

    The authors say this paper checks, on published logs, whether no-failure filtering, evaluation objectives, and executor parsing strategies can change the sign of the quantization comparison, and provides both matched-task and full-pipeline estimates.

  3. How does the paper address this problem?

    Compare Q8_0 and Q4_K_M of two models using three task sets and two scoring methods.

    The authors do not train new models but compare Q8_0 and Q4_K_M under deterministic decoding, and use three evaluation objectives to separate no-failure capability from post-failure recovery. In the text, "8-bit" and "4-bit" are shorthand for these GGUF presets.

    Three evaluation objectives

    Let S(a, p) be the tasks passing the no-failure filter under precision a and prompt p, and ra,p(t) be the average success of task t across injected failure points. The stricter intersection is

    S^*(A,P)=\bigcap_{a\in A,p\in P}S(a,p)

    that is, tasks that pass the no-failure filter for every precision in A and every prompt in P.

    • Own filter: Average ra,p(t) over S(a, p). It describes what a configuration can complete cleanly, but the two rates may correspond to different tasks.
    • Matched tasks: When comparing two precisions under the same prompt, average only over tasks passed by both. The main comparison retains 9–20 Llama tasks and 4–10 Qwen tasks.
    • Full pipeline: Average over all generated tasks, counting no-failure failures as 0. The authors state this is the success rate of the gating protocol: first certify without failure, then run under failure, with uncertified tasks counted as failure; it is a lower bound on ungated success and is used only for ranking under that protocol. The protocol also includes ToolMaze.
    • Sensitivity analysis: S*({Q8, Q4}, all five prompts) contains 9 Llama tasks and 3 Qwen tasks. Exploratory 3-bit uses a separate Llama intersection (Appendix C).

    Tasks, services, and failures

    • Tasks: Twenty deterministic order-management tasks. Ten query orders, customers, and discounts; ten add shipping. Numbers come from fixed seeds, and the generator verifies standard answers and shortest trajectories. The forty-task suite (multi-order, distractor tools) appears only in the Appendix P0 ladder.
    • Services: Llama-3.1-8B-Instruct evaluated with Q8_0, Q4_K_M, Q3_K_M; Qwen2.5-7B-Instruct evaluated with Q8_0, Q4_K_M. All use llama.cpp, full GPU offload, temperature 0, top-k 1, fixed seeds, on one NVIDIA L4. Result files record commit b10f9ca.
    • Rounds: Each round outputs a JSON object, the executor runs the tool, and the next prompt includes the observation. Rounds end at submit_answer, report_failure, or the step budget. The paper does not give a numeric value for the step budget.
    • Failures: The main experiment is ET: one target call fails, then the same call succeeds, injected at every legal position in the standard path, with 13–50 failure rounds per cell. In Figure 2, the correct behavior for ET is to call again; for IT, re-query upstream; for EP, report failure. IT and EP are evaluated only under P0. Failure rounds run only tasks that already passed the no-failure filter for that condition.

    Prompts and scoring

    • P0: Includes tool signatures, one object per round, examples, tools may fail and can be retried, and report_failure. The authors state that only P0 explicitly requires repeated attempts before declaring permanent unavailability.
    • Other prompts: P1 and P2 use prose, P3 uses numbered rules, P4 uses short imperative sentences. They preserve the interface and output format but are not controlled paraphrases. P3 and P4 were written after knowing P1/P2 results. Full prompts are in the supplementary materials.
    • Lenient scoring: Main results. Extract the first JSON object from non-JSON rounds and compute submitted arithmetic expressions with a restricted parser. The prompts themselves require literal numeric values.
    • Strict scoring: Requires strict JSON and literal numeric values throughout, and recomputes the no-failure filter. Logs record whether strict JSON and whether the answer is an expression. Section 5.3 rescored existing logs without rerunning models.

    Run order and uncertainty

    • Order: Each prompt–precision cell first runs a no-failure pass over the twenty tasks. After the exploratory Llama scan, prompts, code, and analysis plan were frozen, then the 5×3 fixed scan was run; the no-failure sets and failure success counts for the fifteen cells match the exploratory scan. Qwen's 5×2 extension uses the same protocol but was planned after Llama results; the authors do not call it a preregistered replication.
    • Uncertainty: Displayed rates are round-level 95% Wilson intervals; main comparisons use task means. Different task sets use two-sample task bootstrap, fixed tasks use paired bootstrap and a two-sided sign test excluding ties. Each bootstrap uses 20,000 resamples. Decoding is deterministic, and repeated counts only check the pipeline. The Appendix C P0–P1 comparison was specified after viewing prespecified results and is labeled exploratory.
  4. What experiments did the paper conduct?

    On matched tasks, Llama's difference ranges from 0 to +20.2 points, and Qwen's from -50.0 to +35.0 points.

    Experimental setup

    • Models: Q8_0, Q4_K_M and Q3_K_M of Llama-3.1-8B-Instruct, and Q8_0 and Q4_K_M of Qwen2.5-7B-Instruct. Appendix A additionally has Q6_K, Q5_K_M and Q2_K of Llama. No LLM judge; success is determined by the executor against the reference answer and the terminating action.
    • Tasks and faults: The main experiment has 20 tasks, 5 prompts, ET faults, with 13–50 fault rounds per cell. IT and EP are evaluated only on the P0 Llama ladder.
    • Comparison and scoring: The main result is Q8_0 minus Q4_K_M under lenient scoring, in percentage points. Definitions of the three objectives are in Question 3.
    • Intervals: The main comparison uses 95% task bootstrap intervals, with 20,000 samples each time. Deterministic reruns do not constitute independent samples.
    • Hardware: One NVIDIA L4. The manifest states that all experiments took approximately 12 GPU hours.

    Main results

    The table below shows 8-bit minus 4-bit in percentage points under lenient scoring, according to Figure 1. Matched task counts: Llama 14, 17, 15, 20, 9; Qwen 4, 10, 10, 10, 10.

    Swipe horizontally to read the table

    Model and objectiveP0P1P2P3P4
    Llama matched tasks+20.2+3.9+4.4+4.20
    Llama full pipeline+27.5+5.0+6.7+4.2+28.3
    Qwen matched tasks+8.3−3.3−10.0−50.0+35.0
    Qwen full pipeline+33.3−1.7−8.3−28.3+17.5
    • Matched tasks: The authors say no single precision is consistently better across the two models and five prompts. For Llama, only P0's interval excludes 0 (+20.2, 95% CI [+4.8, +39.3]). For Qwen, P3 (CI [−65.0, −35.0]) and P4 (CI [+20.0, +50.0]) exclude 0, and in opposite directions.
    • Full pipeline: Under lenient scoring, Llama's 8-bit point estimate is higher on all five prompts; those excluding 0 are P0 (+27.5, CI [+12.5, +44.2]) and P4 (+28.3, CI [+6.7, +48.3]). Qwen again changes sign, and the main text says the intervals for P0, P3 and P4 exclude 0. Absolute rates in Table 4: Llama Q8_0 is .78, .85, .65, .94, .78, and Q4_K_M is .51, .80, .58, .90, .50; Qwen Q8_0 is .53, .45, .42, .22, .425, and Q4_K_M is .20, .47, .50, .50, .25.
    • Intersection across all prompts: Keeping only 9 Llama tasks and 3 Qwen tasks, all intervals include 0, and the selected tasks are often near the recovery ceiling. The authors treat this as a sensitivity analysis, not the main estimate.

    Separate filtering and task matching

    • Llama: The differences on each's own fault-free set are +14.4, +0.6, −0.7, +4.2, −17.5 (P0 to P4, Figure 1A). Only P4's two-sample interval excludes 0 (CI [−29.8, −7.0]). Under that prompt, 8-bit passes 19 tasks fault-free and 4-bit passes 10.
    • Llama/P4 and P0: On P4, separate filtering is −17.5, the nine matched tasks are 0, and the full pipeline is +28.3. The authors say the first comparison is driven by the tasks entering the denominator. For P0, matching 14 tasks gives +20.2, while the separate-filtering estimate could not distinguish.
    • Qwen: Separate filtering is +17.0, −3.3, −7.6, −47.6, +35.0; the intervals for P0, P3 and P4 exclude 0 (CIs [+0.6, +33.3], [−62.0, −31.8], [+10.0, +55.0] respectively). P0's fault-free sets differ (8-bit 11, 4-bit 5), and P1 and P4 overlap. On P3, the 8-bit's 10 tasks are a subset of the 4-bit's 11 tasks; after matching, P3 and P4 remain −50.0 and +35.0. The authors say filtering can create, mask or exaggerate comparisons, but cannot explain all the differences.

    Strict scoring

    • Rescoring: Table 2 recomputes fault-free filtering with the same logs and the same policy, without rerunning the models. Qwen submits an expression in 1 of 165 successful fault rounds. The authors say its estimates are essentially unchanged; in the table, the point estimates for P1–P4 are the same, and P0 changes: matched tasks from +8.3 to 0 (n=4), full pipeline from +33.3 to +31.7. The reversal of P3/P4 is the same under both policies.
    • Llama/P4: Of 38 successful 8-bit fault rounds, 30 submit an expression, versus 3 of 20 for 4-bit. Strict scoring shrinks the 8-bit fault-free set from 18–20 tasks to 4–10, and reverses the three objectives: separate filtering from −17.5 to −42.9, matched tasks from 0 to −33.3 (6 tasks, CI [−66.7, −8.3]), full pipeline from +28.3 to −15.0 (CI [−30.0, −2.5]).
    • Authors' interpretation: Under strict scoring, Llama's full-pipeline point estimates from P0 to P4 are +12.5, +10.0, 0, 0, −15.0, no longer favoring 8-bit on every prompt. The authors say lenient scoring asks whether the correct value can be recovered, while strict scoring also asks whether the output convention is followed; the main results retain lenient scoring to isolate recovery.

    Other ablations and analyses

    • Appendix A, P0, separate fault-free sets, ET combined: Q8_0–Q5_K_M is 117/141=83%, Q4_K_M–Q3_K_M is 39/70=56% (Fisher exact p=4.7×10−5). Of the eleven tasks that both groups can solve cleanly, 5 favor the higher-precision group, 6 are ties, and 0 favor the lower-precision group (sign test p=0.063, CI [5, 29] points).
    • Table 3, P0, ET: Q8_0 is 39/47 (83%), Q6_K is 38/47 (81%), Q5_K_M is 40/47 (85%), Q4_K_M is 19/32 (59%), Q3_K_M is 20/38 (53%). The number of fabricated permanent fault rounds at 3 bit and above is 0; Q3_K_M's EP fabrication count is 3.
    • Table 1, separate fault-free sets: Llama Q3_K_M's P1 recovery is 0% (0/32). In Table 4's full pipeline, Q3_K_M is .39, .00, .53, .55, .42.
    • Appendix C, exploratory P0 minus P1: 8-bit is −3.9 (n=17, CI [−15.7, +5.9]), 4-bit is −19.2 (n=13, CI [−37.2, −3.8], sign test p=0.125), 3-bit is +56.0 (n=14, CI [+35.7, +75.0]).
    • The 9 tasks passing all Llama 3-bit prompt conditions: P0 recovery is 77.8%, P1 is 0%, and all nine tasks favor P0 (sign test p=3.9×10−3). On the same set, P2 is 100%, P3 is 66.7%, and P4 is 94.4%. Of the 32 failed Q3_K_M/P1 rounds, 31 end with report_failure after a transient error.
    • Exclusions and earlier observations: Q2_K did not reach at least 8 fault-free tasks and was excluded; 102/120 fault-free rounds issue strictly well-formed tool calls. In an earlier run, adding one sentence about tool resilience reduced 4-bit fault-free accuracy by 26 points, while 8-bit was unchanged; the authors say this is not attributed to a single cause. An earlier single-prompt Qwen check was 96% versus 77%, and the authors say that file serves only as an audit trail.
  5. What are some points that can be further explored?

    The authors state that task scale, failure types, and GGUF presets all limit generalization to bit width.

    Limitations and Future Directions Noted by the Authors

    • Scale (Section 7): Twenty tasks, one synthetic environment, and two similarly sized models are insufficient to estimate how often these patterns occur in other domains, model families, or scales.
    • Task structure (Section 7): The twenty tasks come from two similar templates; multi-order and interfering tool families run only on the P0 ladder, and key comparisons are not tested on other task structures.
    • Intersection (Section 7): The all-prompt intersection has only 9 Llama tasks and 3 Qwen tasks; the authors say there is a ceiling effect, so it cannot establish equivalence or characterize the full failure-free population.
    • Failure model (Section 7): Only one transient failure resolvable by the same retry; no repeated failures, backoff, rate limits, or tool state changes between two attempts.
    • Prompts (Section 7): The five prompts were written by the authors, not controlled paraphrases; P3 and P4 were written after early results were known; the per-precision P0–P1 analysis was specified after the prespecified results. P0 and P1 differ in more than the retry criterion, so this interaction cannot establish a causal mechanism.
    • Presets and reruns (Section 7): Conclusions apply to the GGUF presets Q8_0, Q4_K_M, Q3_K_M, not to isolated bit widths or other quantization families. Qwen was not evaluated at 3 bits. Strict scoring did not rerun inference; if the model were told expressions are rejected, behavior might differ. The authors say larger task sets, independently designed prompts, more model families and quantization methods, and single-factor retry-policy ablations are still needed.

    Experimental Coverage

    • The main scan covers two Instruct models, Q8_0 and Q4_K_M (Llama also Q3_K_M), 20 tasks, 5 prompts, and ET failures (Section 4).
    • Appendix A additionally evaluates Llama's Q6_K, Q5_K_M, Q2_K under P0, plus IT and EP; Q2_K is excluded for fewer than 8 failure-free tasks. The forty-task suite appears only on that ladder.
    • Success is determined by the executor against the standard answer and termination action (Section 4). The paper does not report LLM review or agreement with human judgment.
    • Intervals come from 20,000-sample task bootstrap and sign tests. Qwen's 5×2 extension was planned after Llama results; the authors do not call it a preregistered replication (Section 4).
    • Each prompt–precision cell has 13–50 failure rounds. The paper does not report the step-budget value; strict scoring does not rerun inference (Section 5.3).
  6. Summarize the main content of the paper

    The authors say Q8_0 and Q4_K_M show no consistent recovery advantage across the two models and five prompts.

    On synthetic order-management tasks, which of Q8_0 and Q4_K_M recovers better from a single temporary tool failure varies with model, prompt, task set, and executor scoring.

    • Problem: Post-training quantization reduces deployment cost, but when tools are temporarily unavailable, agents must retry and not fabricate results. If each configuration recomputes its own no-failure filter, recovery rates may compare different tasks.
    • Approach: For Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct, inject ET across 20 deterministic tasks and 5 prompts. Score the same logs by each configuration's own no-failure set, matched tasks under the same prompt, and full pipeline; main results use lenient parsing, with strict JSON and literal numeric rescoring.
    • Matched tasks: Llama's 8-bit minus 4-bit ranges from 0 to +20.2 points, with only P0's interval excluding 0 (+20.2, CI [+4.8, +39.3], n=14). Qwen ranges from −50.0 (P3, n=10) to +35.0 (P4, n=10), with both endpoints' intervals excluding 0 and opposite directions.
    • Design choices: Under lenient scoring, full-pipeline point estimates favor 8-bit Llama on all five prompts, while Qwen changes sign. On Llama/P4, own-filter is −17.5, matched tasks is 0, full pipeline is +28.3; strict scoring changes that full-pipeline value to −15.0. Qwen rarely submits expressions, and the P3/P4 reversal is the same under both scoring methods.
    • Authors' conclusion: The authors state there is no consistent Q8_0 or Q4_K_M recovery advantage across these two models and five prompts. Evaluations should report both matched-task recovery and full-pipeline success, declare and document scoring policies, and use tasks as the unit of uncertainty.
Read originalarxiv.org