AutoRef:面向智能体多参考图像生成的线束优化
研究论文 · 2026/09/30
多参考图像生成中,模型可能遗漏或重复参考中的主体,或产生不自然的拼接效果。近期工作提出图像生成智能体,结合生成模型、推理模型和harness(指定参考图像解释、生成执行、输出诊断和最终图像选择的可执行程序)。但多参考生成中参考角色不同且输出需同时满足多个标准,harness的许多部分可改进,导致难以预测改动效果,手工设计困难。为此提出AutoRef,在冻结模型的情况下自动优化harness:编码智能体迭代重写harness代码。AutoRef将提供反馈以生成提案的任务与用于选择候选的任务分开,并从选择任务上排名靠前的harness束中继续搜索。通过该过程发现AutoRef-Harness,在MultiBanana基准的留出四参考任务上,将开放权重FLUX.2 [klein] 4B从5.72提升至7.37,匹配或超过包括Nano Banana Pro和GPT-Image-1.5在内的专有模型。无需重新优化,同一harness在生成器、参考数量、基准、评估器或推理模型与搜索时不同时也能提升结果。
该工作通过自动优化harness,显著提升了多参考图像生成的性能,并展现出强大的泛化能力,为智能体式图像生成系统的设计提供了新思路。
Recent image generation models can take multiple reference images as input and combine them into a new image. However, multi-reference image generation remains challenging: models may omit or duplicate subjects from the references, or produce images in which multiple subjects appear unnaturally pasted. Recent work has proposed image generation agents that combine image generation models, reasoning models, and a harness, which is an executable program that specifies how reference images are interpreted, how generation is performed, how outputs are diagnosed, and how the final image is selected. In multi-reference generation, however, references play different roles and outputs must satisfy many criteria at once, such as fidelity to each reference and the naturalness of the whole image, so many parts of the harness could be improved, from how references are processed to how outputs are diagnosed. This makes it hard to predict which changes will improve performance and by how much, and good harnesses difficult to design by hand; indeed, human-written harnesses vary widely in performance. We therefore propose AutoRef, which optimizes the harness automatically while keeping both models frozen: a coding agent iteratively rewrites the harness code. AutoRef separates the tasks whose feedback informs proposals from the tasks used to select candidates, and continues the search from a beam of the top-ranked harnesses on the selection tasks. Using this procedure, we discover AutoRef-Harness, which improves the open-weight FLUX.2 [klein] 4B from 5.72 to 7.37 on held-out four-reference tasks of the MultiBanana benchmark, matching or exceeding proprietary models including Nano Banana Pro and GPT-Image-1.5. Without re-optimization, the same harness also improves results when the generator, number of references, benchmark, evaluator, or reasoning model differs from those used in the search.