← Latest papers
💻 computer science

Twins: Learn to Predict Unified Representations with Focal Loss

The paper proposes "Twins," a unified continuous token space that concatenates ViT and VAE features, and addresses the resulting optimization imbalance in diffusion models by adapting a focal regression objective to significantly improve both image generation quality and multimodal understanding performance.

Original authors: Kaixiong Gong, Xin Cai, Bin Lin, Hao Wang, Yunlong Lin, Mingzhe Zheng, Bohao Li, Jian-Wei Zhang, Miles Yang, Zhao Zhong, Liefeng Bo, Xiangyu Yue

Published 2026-07-27
📖 3 min read☕ Coffee break read

Original authors: Kaixiong Gong, Xin Cai, Bin Lin, Hao Wang, Yunlong Lin, Mingzhe Zheng, Bohao Li, Jian-Wei Zhang, Miles Yang, Zhao Zhong, Liefeng Bo, Xiangyu Yue

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 build a robot that can both see the world like a human and paint pictures like an artist. In the world of artificial intelligence, these two tasks usually require completely different toolkits. To "see" and understand an image (like knowing a picture shows a "golden retriever"), AI uses a brainy, high-level map that captures the big ideas but ignores tiny details like fur texture. To "paint" or generate a new image, the AI needs a different tool that holds onto every single pixel and fine detail, but often loses the big picture meaning. For a long time, scientists have been stuck trying to force these two different tools to work together, often having to choose between a robot that understands well but paints blurry pictures, or one that paints beautifully but doesn't know what it's drawing. This paper tackles that tricky balancing act, asking: can we create one single "language" for the robot that lets it do both perfectly at the same time?

The researchers behind this study, known as "Twins," decided to stop choosing between the two tools and instead glued them together. They took the "brainy" map (from a system called SigLIP) and the "detail-oriented" map (from a system called VAE) and stitched them side-by-side into one long strip of information. Think of it like giving your robot a pair of glasses where the left lens sees the big picture and the right lens sees the fine details, all in one view. However, when they tried to teach their AI model to use this new combined view, they hit a snag. The model was lazy; it loved the easy, big-picture part and completely ignored the hard, detailed part, resulting in generated images that were fuzzy and missing texture.

To fix this, the team discovered why the model was being lazy. They found that the "easy" part of the data was smooth and simple, while the "hard" part was full of complex, noisy details. The AI naturally preferred the smooth stuff, just like a student might skip the hard math problems to do the easy spelling ones first. To solve this, they invented a special training rule called "Focal Loss." Imagine a teacher who, instead of grading every question equally, gives extra credit points for getting the hardest questions right. This forced the AI to pay attention to the difficult, detailed parts of the image it was trying to learn.

The results were impressive. By using this new "Focal Loss" rule, the AI stopped ignoring the details. On a standard test of image quality, the new method improved the score by up to 10.57 points compared to the old way of training, without needing any extra tricks to guide it. The images it generated were sharp and clear, and the robot could still understand what it was drawing just as well as before. The paper suggests that this approach successfully breaks the old "impossible triangle" where you had to sacrifice one skill for another, proving that with the right training tricks, a single AI model can truly master both seeing and creating.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →