Images in Sentences: Scaling Interleaved Instructions for Unified Visual Generation
The paper introduces INSET, a unified visual generation model that embeds images as native vocabulary tokens within textual instructions and leverages a scalable data engine of 15M interleaved samples to significantly outperform existing methods in multi-image consistency and complex instruction following.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to give a very specific, complex order to an artist.
The Old Way (The "Index Card" Problem)
Currently, most AI image generators work like a librarian who only understands numbers. If you want an image with a specific dog from one photo, a specific hat from another, and a specific background from a third, you have to say: "Draw a picture using Dog from Image #1, Hat from Image #2, and Background from Image #3."
The AI has to remember which number corresponds to which picture while it's trying to paint. As you add more pictures, the AI gets confused. It forgets which hat goes with which dog, or it just ignores the extra pictures entirely. It's like trying to juggle five balls while blindfolded; eventually, you drop them.
The New Way: "Images in Sentences" (Inset)
The paper introduces a new model called Inset (Images in Sentences). Instead of treating images as separate files with numbers, Inset treats images like words in a sentence.
Imagine you are writing a story, but instead of writing the word "dog," you paste a tiny, perfect picture of that specific dog right into the sentence.
- Old way: "Put the dog from Image 1 on the chair."
- Inset way: "Put [Picture of Dog] on the chair."
Because the picture is right next to the word "chair" in the sentence, the AI doesn't have to guess or remember a number. The meaning is right there, front and center. This allows the AI to handle complex instructions with many different images without getting confused.
How They Trained the AI (The "Data Factory")
To teach the AI to do this, the researchers couldn't just find enough examples on the internet because they are rare. So, they built a scalable data engine (a robot factory for data).
- For Photos: They took millions of photos and used other smart AIs to break them down. They identified every object (like a "red vase" or a "blue cat"), wrote a sentence about it, and then inserted the actual picture of that object right into the sentence where the description was.
- For Videos: They looked at videos to teach the AI how things change. If a video shows a cat jumping, they created instructions that say: "Take the cat from the start [Picture of sitting cat] and make it jump [Picture of jumping cat]." This teaches the AI to understand movement and transformation, not just static copying.
They created 15 million of these "picture-sentences" to train the model.
The Results
They tested this new model on a difficult challenge called InterleaveBench, which involves mixing many different images into one complex request.
- The Score: When asked to use 2 images, Inset did well. But when asked to use 5 images, the old models fell apart, while Inset kept getting better. It was significantly more accurate at keeping the objects looking like the originals and following the text instructions.
- The Bonus: Because the AI learned to treat images as part of the instruction, it can also do editing. You can show it a picture of a specific shirt and say, "Put this shirt on the person in the photo," and it will copy the exact design of that shirt, rather than just guessing what a "shirt" looks like.
In Summary
The paper claims that by stopping the AI from using "numbers" to reference images and instead letting it "read" images as if they were words, we can create much more powerful tools for generating and editing complex images. They proved this by building a massive library of practice examples and showing that their new model beats all current open-source competitors, especially when the tasks get complicated.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.