arXiv:2610.07781cs.AIOct 2026

Manuscript Offprint

arXiv:2610.07781

Quantization Effects on Tool-Failure Recovery Vary Across Prompts and Evaluation Designs

Yuhe Hu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Post-training quantization reduces the cost of deploying language-model agents, but its effect on recovery from temporary tool failures can depend on how recovery is evaluated. We compare 8-bit and 4-bit variants of Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct on twenty deterministic tool-use tasks and five prompts. The 8-bit–4-bit recovery comparison changes direction across prompts and evaluation targets. On tasks that both variants complete without faults under the same prompt, the difference ranges from 0 to +20.2 percentage points for Llama and from -50.0 to +35.0 points for Qwen. Full-pipeline point estimates favor 8-bit Llama under all five prompts, whereas the Qwen comparison changes direction across prompts. The evaluation target can also reverse the result. For Llama under one prompt, scoring each variant only on its own clean-passing tasks favors 4-bit by 17.5 points; scoring the same tasks for both variants gives no difference, while scoring the full pipeline favors 8-bit by 28.3 points. Executor leniency is a third such choice. Rescoring the same logs with strict output parsing, which 8-bit Llama violates far more often than 4-bit Llama under that prompt, turns that +28.3 into -15.0 while leaving Qwen essentially unchanged. These findings show that one prompt, one screened task set, and one scoring policy do not establish a stable conclusion about quantized-agent robustness. Evaluations should compare variants on matched tasks, report full-pipeline success for deployment decisions, state the scoring policy, and quantify uncertainty across tasks rather than injected fault sites.

1 Introduction

Post-training quantization reduces the memory and compute required to run language-model agents, making 4-bit checkpoints attractive when inference cost matters [Frantar et al., 2023, Dettmers and Zettlemoyer, 2022, Gerganov and contributors, 2023]. Existing evaluations of compressed agents primarily report task completion. Deployment also requires the agent to respond appropriately when a tool is temporarily unavailable. It should retry when recovery is possible, avoid inventing a result, and complete the task after service returns. This paper asks how 8-bit and 4-bit quantization affect that recovery behavior.

Two sources of variation make this question harder than a single success rate suggests. First, recovery behavior can change with the instructions that specify when to retry or stop. Second, fault-recovery experiments often inject failures only into tasks that the tested configuration first completes without faults. If that clean screen is recomputed for each model, precision, and prompt, the reported rates may describe different tasks. A comparison can then combine a recovery difference with a change in which tasks were selected.

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: SLMs for Agentic Systems, Paris, France, 2026.

Experiment and evaluation targets

Task suite

20 deterministic

tool-use tasks

Configurations

2 models × 5 prompts

× 2 precisions

Run protocol

Clean screen, then inject

one temporary tool failure

Three estimates

Separate task sets

Prompt-matched tasks

Full 20-task pipeline

A. Separate clean-passing sets

Figure

B. Prompt-matched tasks

C. Full pipeline (20 tasks)

A. Separate clean-passing sets

Figure

B. Prompt-matched tasks

C. Full pipeline (20 tasks)

Figure 1: The measured 8-bit–4-bit difference varies across models, prompts, and evaluation targets. A. Each variant’s own clean-passing tasks. B. Tasks that both variants pass cleanly under the same prompt; the number of matched tasks is shown below each prompt. C. All twenty tasks, with a clean failure scored as zero. Error bars are 95% task-bootstrap intervals. Panel A uses a two-sample bootstrap because the task sets can differ; Panels B and C use paired bootstraps.

We evaluate Llama-3.1-8B-Instruct and Qwen2.5-7B-Instruct at 8 and 4 bits on twenty deterministic order-management tasks, five prompts, and transient failures injected at every valid site on the required tool path. We analyze each run in three ways (Figure 1): recovery on each configuration's own clean-passing tasks; recovery on tasks passed by both precisions under the same prompt; and full-pipeline success over all twenty tasks, with clean failures scored as failures. Llama is also evaluated at 3 bits, but the prompt interaction at that precision is exploratory and appears in the appendix.

The main result is that neither 8-bit nor 4-bit quantization provides a consistent recovery advantage across models and prompts. On prompt-matched tasks, Llama's 8-bit–4-bit estimates range from 0 to +20.2 points, whereas Qwen's range from -50.0 under P3P_{3} to +35.0 under P4P_{4}. Full-pipeline estimates favor 8-bit Llama under all five prompts but change sign across Qwen prompts. These results do not support a model-independent claim that one of the two precisions is more robust to temporary tool failures.

The analysis also shows why the evaluation target must be stated explicitly. For Llama/ P4P_{4}, scoring each precision on its own clean-passing tasks favors 4-bit by 17.5 points. The difference is zero on the nine tasks passed by both precisions under P4P_{4}, while full-pipeline success favors 8-bit by 28.3 points because the 8-bit model passes many more tasks cleanly. In contrast, Qwen/ P3P_{3} and Qwen/ P4P_{4} retain large, oppositely directed differences after matching the tasks, so task selection cannot explain all observed variation. The scoring policy of the harness has the same power. Our executor accepts arithmetic expressions submitted in place of a literal amount, under P4P_{4} 8-bit Llama relies on this tolerance far more than 4-bit Llama does, and rescoring the logs under a strict policy reverses the Llama/ P4P_{4} comparison on every target (Section 5.3).

Our contribution is therefore empirical and methodological. We connect the study of compressed agents with controlled tool-failure evaluation, show that the measured quantization effect varies across two models, five prompts, and two scoring policies, and identify when separate clean screening or executor leniency changes the interpretation. The resulting recommendation is to report matched-task recovery for conditional comparisons and full-pipeline success for deployment decisions, to state the scoring policy, and to use tasks as the unit of uncertainty.