arXiv:2610.20384cs.CVOct 2026

Manuscript Offprint

arXiv:2610.20384

Look Before You Restore: Learning to Predict Before Acting for Agentic Image Restoration

Xu Zhang, Jun Wan, Lefei Zhang, Liangpei Zhang

ABSTRACT

Agents for mixed-degradation image restoration typically learn what a tool does to an image only after running it: failed calls waste computation and harmful outputs go unnoticed until too late. We propose PreActIR, an agentic restoration framework that predicts tool consequences before execution. For each candidate tool, a tool-conditioned world model forecasts changes in residual degradation, image quality, and fidelity, together with the risk of harm and the uncertainty of the prediction. The agent executes the top-ranked candidate, and an independent verifier commits or rolls back its output before the agent replans from the observed state. PreActIR also audits whether performance is limited by the selector or by the candidate space, and studies targeted tool adaptation as a controlled way to expand that space. In a controlled evaluation that fixes the candidate pool, verifier, and budget and employs reference-annotated degradation states, PreActIR uses 42.5% fewer real tool calls and 63.4% fewer rejected calls than reactive, execute-then-evaluate trial and error, while improving Y-PSNR by 0.92 dB.

1 INTRODUCTION

Image restoration has advanced rapidly for individual degradations such as noise, blur, rain, haze, low light, compression, and low resolution (Zhang et al., 2017; 2018a; Wei et al., 2018; Chen et al., 2018; Zamir et al., 2020; Chen et al., 2021; Zamir et al., 2021; 2022; Chen et al., 2022; Liang et al., 2021; Tu et al., 2022; Wang et al., 2021; Zhang et al., 2021). In practice, however, several degradations often coexist and interact, making restoration a sequential decision problem in which each intervention changes both the image state and the value of later actions. Recent agentic systems coordinate specialized tools through perception, planning, execution, and feedback (Zhu et al., 2025; Zuo et al., 2025; Li et al., 2026; Shao et al., 2026). Most of them follow an execute–observe–replan loop (Yao et al., 2023): a tool's effect on a given image is known only after it has run, failed calls still cost computation, and harmful side effects go unnoticed until afterwards.

Recent agents reduce the number of trials with trained planners and stored experience (Jia et al., 2026; Zhu et al., 2026a; Wang et al., 2026), and a few methods score actions in advance: DiTTo (Choi and Oh, 2026) learns a simulator and a per-action quality predictor for trajectory construction, and the concurrent Causal-AgentIR (Gao et al., 2026) estimates plan utility from a causal memory of past executions. Neither trains a tool-conditioned consequence model for deployment-time decisions. A separate question is whether the tool set itself is the limit: even a perfect selector fails if no reachable tool sequence yields a good result. Agents can add experts (Choi and Oh, 2026) or fine-tune tools together with the planner (Zhu et al., 2026a), but a poor result alone does not tell whether the selector chose badly or no good candidate was reachable—two cases that call for different fixes. As illustrated in Fig. 1, reactive execution pays for an outcome before seeing it, and it is usually unclear whether the selector or the tool set is the binding limit.

∗^{*}Corresponding author.

Figure

Figure 1: Motivation of PreActIR. Existing agentic restoration is largely reactive: tool effects are observed only after execution, while decisions remain restricted to the available action space. PreActIR predicts action consequences before execution.

We propose PreActIR, an agentic restoration framework built around the idea that an agent should predict what a tool will do before calling it. A tool-conditioned world model takes each candidate tool and predicts the changes in residual degradation, image quality, and fidelity, along with content damage, the probabilities of benefit and harm, and the uncertainty of these predictions. The agent ranks candidates by these predictions and executes only the top one. Because predictions can be wrong, an independent post-execution verifier checks the actual output and commits or rolls it back; the agent then replans from the observed state. We call this the predict-act-verify loop.

A separate diagnostic asks whether the selector or the tool set is binding. An offline candidate-frontier audit uses test references post hoc to find the best result reachable from the fixed candidate pool, separating selector headroom from tool-space limits. We then adapt one existing tool on external replay data and measure how it shifts both the attainable frontier and the deployed system.

Our contributions are as follows:

• A tool-conditioned world model that predicts how each candidate tool changes residual degradation, quality, and fidelity, along with benefit and harm probabilities and uncertainty, so that tools can be ranked and their risk estimated before execution.

• A predict–act–verify loop that executes only the top-ranked tool and lets an independent verifier commit or roll back its output; in a matched replay with reference-annotated states, it makes 42.5% fewer real calls and 63.4% fewer rejections than reactive trial and error.

• A candidate-frontier audit that distinguishes tool-selection limitations from candidate-space constraints by characterizing attainable fidelity–perception trade-offs. It quantifies the headroom available through better selection within a fixed pool and examines how targeted tool adaptation expands the attainable frontier.

References (88)