AutoRef: Harness Optimization for Agentic Multi-Reference Image Generation
AutoRef automatically rewrites image-generation harnesses, lifting FLUX.2 klein 4B from 5.72 to 7.37 on MultiBanana.
AutoRef automatically optimizes the executable harness for agentic multi-reference image generation while keeping the generator and reasoning models frozen. A coding agent iteratively rewrites harness code, using separate tasks for proposing changes and selecting candidates and continuing from a beam of top-ranked harnesses. The resulting AutoRef-Harness raised open-weight FLUX.2 klein 4B from 5.72 to 7.37 on held-out four-reference MultiBanana tasks, matching or exceeding Nano Banana Pro and GPT-Image-1.5. Without re-optimization, the same harness also improved results when the generator, reference count, benchmark, evaluator, or reasoning model changed.
- A coding agent rewrites the harness while both models stay frozen.
- Proposal feedback is separated from tasks used to select candidates.
- FLUX.2 klein 4B improved from 5.72 to 7.37 on held-out MultiBanana tasks.
- The harness transferred across generators, benchmarks, evaluators, and reasoning models.
From the original article
1 min read at huggingface.coRecent 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.
By Yuta Oshima, Ku Onoda, Yusuke Iwasawa · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.