Last updated:
From Scale to Speed: Adaptive Test-Time Scaling for Image Editing
Xiangyan Qu et al.
In collections: Edge AI
Image Chain-of-Thought (Image-CoT) is a test-time scaling paradigm that improves image generation by extending inference time. Most Image-CoT methods focus on text-to-image (T2I) generation. Unlike T2I generation, image editing is goal-directed: the solution space is constrained by the source image and the instruction. This mismatch causes three challenges when applying Image-CoT to editing: inefficient resource allocation with fixed sampling budgets, unreliable early-stage verification using general MLLM (multimodal large language model) scores, and redundant editing results coming from large-scale sampling. To address this, we propose ADaptive Edit-CoT (ADE-CoT), an on-demand test-time scaling framework that improves editing efficiency and effectiveness. It comprises three key strategies: (1) difficulty-aware resource allocation, which assigns dynamic budgets based on estimated editing difficulty; (2) edit-specific verification in early pruning, which uses region localization and caption consistency to select promising candidates; and (3) depth-first opportunistic stopping. Extensive experiments on three state-of-the-art editing models (Step1X-Edit, BAGEL, FLUX.1 Kontext) across three benchmarks show that ADE-CoT achieves an excellent trade-off between performance and efficiency. At comparable sampling budgets, ADE-CoT achieves better performance and more than a 2x speedup over the Best-of-N method.
Strategies from the report:
Dynamic resource allocation depending on difficulty (Difficulty-aware Resource Allocation): The mechanism can estimate how complicated a request to modify an image is and automatically picks an appropriate "budget" of computing time, saving it on simple tasks.
Focusing verification on details (Edit-specific Verification): In the early phase, the system rejects failed image variants by analyzing only the specific area that was supposed to change, ignoring the overall visual appeal of the whole file.
Opportunistic Stopping (Opportunistic Stopping): The process intelligently halts further image generation as soon as it comes across a version that meets the given criteria, eliminating the need to excessively create dozens of variants.
Good practices:
Optimizing the performance-efficiency balance: Instead of relying on the traditional "generate n images and pick the best one" method (Best-of-N), it is worth using spot verification during the process.
Treating editing as a process with strong constraints: Remember that making corrections to photos is not the same as generating from scratch. Evaluation of the model's work should be built so that it forces the model to rigorously preserve the untouched rest of the original image.
Using text-visual consistency: The best indicator of a successful edit is confirming whether the small edited part of the frame perfectly matches the adjectives and nouns used in the prompt.
What to avoid?
Blindly mapping standard Image-CoT (Text-to-Image) onto editing: Tools designed to force long chains of reasoning and generation in Text-to-Image models don't work well for modifying existing photos, causing the user's intent to be missed.
Fixed sampling budgets for every task: Giving every editing task the same power and number of steps is a waste of resources – a slight change of brightness doesn't need as much computation as swapping a person in the frame.
Judging edits with general visual scores (General MLLM scores): Avoid using general "aesthetic scores" or broad visual ratings when rejecting early versions of an image.
Support this project by buying me a coffee ;)