Paint-Anything: Unified Any-Color Control for Image Generation and Editing

Ji Xie, Dewei Zhou, Xinyu Huang, Zhennan Chen, Xun Wang

ByteDance Seed · Zhejiang University · Nanjing University

Published September 17, 2026 · on the feed September 21, 2026 · ▲ 54 · arXiv 2609.20816

Image generation & editing No code arXiv ↗Hugging Face ↗

The abstract

Professional design requires any-color control: the ability to specify an object's target color with any 24-bit hex value for image generation and editing. Prior work has explored color generation, editing, and colorization, but often relies on dedicated color representations or specialized inference procedures. Advances in large language models offer a simpler starting point: even compact models can associate hex values with color semantics. We present Paint-Anything, which learns a shared hex-prompt interface for generation and editing through object-level color supervision. We develop a data pipeline that constructs Paint-500K from real images through object grounding, perceptual color labeling, and editing-pair synthesis. Since shadows make real-image labels only approximate colors, we complement this supervision with pure-color anchors whose pixels exactly match their paired hex values. These anchors are used only at high-noise timesteps, leaving low-noise training to natural images. We further introduce Any Color Benchmark (ACBench), comprising ACBench-T2I and ACBench-Edit, to measure object-level hex color fidelity across both tasks. On FLUX.2-4B, Paint-Anything improves ACBench-T2I and ACBench-Edit scores by 85.3% and 28.3%, respectively, relative to the base model, with ablations supporting the training recipe. It also achieves the highest average CompColor score among the compared methods.

The Brief

2:32

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Paint-Anything. Unified Any-Color Control for Image Generation and Editing. By Ji Xie and four others, from ByteDance Seed, Zhejiang University, and one other institution. Published on the seventeenth of September. No code repository is linked to it.

Professional design needs any-color control: the ability to specify an object's target color as any twenty-four-bit hex value, when generating an image and when editing one. Prior work on color generation, editing, and colorization often relies on dedicated color representations or specialized inference procedures. Advances in large language models suggest a simpler starting point, since even compact models can associate hex values with the meaning of colors. If a language model already knows roughly what a hex code looks like, the code itself can go straight into the prompt.

Paint-Anything learns a single shared hex-prompt interface for both generation and editing, supervised by color at the level of objects. The same kind of instruction, an object and a hex value, drives both tasks, so there is no separate color representation to maintain and no special procedure at inference. What makes it work is the data and the way it is used in training.

The supervision comes from Paint-500K, which a data pipeline builds from real images through object grounding, perceptual color labeling, and synthesis of editing pairs. Real images have shadows, so their labels only approximate a color. To complement them, the authors add pure-color anchors, whose pixels exactly match the hex value they are paired with. The anchors are used only at high-noise timesteps. Low-noise training is left to natural images.

To measure the result, the authors also introduce a benchmark of their own. Measurement comes from the Any Color Benchmark, ACBench, in two parts, ACBench-T2I and ACBench-Edit, which test hex color fidelity at the object level in both tasks. The question each one asks is simple: did the named object come out in the named color.

On FLUX point two, in its four-billion-parameter version, Paint-Anything improves ACBench-T2I scores by eighty-five point three percent and ACBench- Edit scores by twenty-eight point three percent, relative to the base model. Ablations support the training recipe. On a separate measure, it also has the highest average CompColor score among the methods compared.

The recipe pairs two kinds of supervision: exact pure-color anchors while the image is still mostly noise, and approximate labels from real images everywhere else. Through it, one interface, a hex code in the prompt, serves generation and editing alike.

Paper Quest · 7 chapters · about 39 min

Play this paper

Learn it by doing: make the calls the authors made, guess the result before you see it, and defend it in a viva graded on your own words. Chapter 1 is right here.

Chapter 1 🧩 · The problem

Blue is not a brand color. A hex code is. Start where designers start.

A brand designer needs a logo in the brand's exact blue; a retailer needs products in a collection's specified red. Asking an image model for 'blue' or 'red' isn't enough: they mean exact hex values.

The road ahead

  1. 1 · The problem ~6 min Designers need objects in exact hex colors, and the existing ways to control color in image models are piecemeal, hard to scale, or slow.
  2. 2 · What came before ~3 min
  3. 3 · The key idea ~8 min Write the hex code into the prompt, learn it from object-level labels taken from real photos, and pin it down with pure-color anchors at high noise.
  4. 4 · Choose your own research ~3 min
  5. 5 · Build the method ~8 min Build hex-labeled data from real photos in three steps, then finetune with that data plus pure-color anchors gated to high noise.
  6. 6 · The experiment ~6 min You’ll guess: On FLUX.2-4B, by how much did Paint-Anything raise the text-to-image color-fidelity benchmark score relative to the base model?
  7. 7 · The viva ~5 min Three questions from the examiners, answered in your own words. Win it for the paper’s trophy.
Join free to play the whole quest ›

Free, with Google or an email address. Your stars and progress are kept.

KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.