Nucleus-Image: Sparse MoE for Image Generation
Nucleus-Image is a fully open-source, 17B-parameter sparse Mixture-of-Experts diffusion transformer that achieves state-of-the-art image generation quality with only 2B active parameters per forward pass through architectural innovations like Expert-Choice Routing and decoupled timestep modulation, all without relying on post-training optimization.
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 want to build a super-smart artist who can draw anything you describe. Usually, to make an artist this good, you need a massive studio with thousands of painters working on every single detail of every single image. This is expensive, slow, and requires a huge amount of electricity.
Nucleus-Image is like a revolutionary new art studio that changes the rules. Instead of hiring thousands of painters to work on everything at once, they built a team of 64 specialized experts (like a master of landscapes, a wizard of faces, a guru of text, etc.). But here's the magic trick: For every single image, only about 2 or 3 of these experts actually wake up and do the work. The rest stay asleep.
This allows the studio to have the knowledge of a 17-billion-parameter giant (a massive team), but it only pays the electricity bill of a tiny 2-billion-parameter team.
Here is a breakdown of how they did it, using simple analogies:
1. The "Sleeping Giants" Strategy (Sparse MoE)
Think of the model as a massive library with 17 billion books. In old models, to answer a question, you had to read every single book to find the right page. That's slow.
In Nucleus-Image, they use a Smart Librarian (The Router). When you ask for a picture of a "cat," the Librarian instantly knows, "Oh, we only need the 'Animal Experts' and 'Fur Texture Experts'." It wakes up just those few experts and ignores the rest.
- The Result: You get the wisdom of the whole library, but you only pay for the few books you actually needed.
2. The "Decoupled" Brain (Routing vs. Computing)
In previous versions of this technology, the Librarian got confused. The "time of day" (the noise level in the image) was so loud that the Librarian would just say, "Everyone wake up at 9 AM, everyone sleep at 5 PM," regardless of what the picture actually needed.
- The Fix: Nucleus-Image separated the Librarian's brain from the painters' hands.
- The Librarian looks at the content (is it a cat?) and the time (is it early or late in the drawing process?) to decide who works.
- The Painters get the full instructions to do their job.
- This prevents the Librarian from getting overwhelmed by the "time" signal and ensures the right experts are always chosen for the right job.
3. The "Text Ghost" Trick
Usually, when an AI draws a picture based on text, it has to carry the text instructions through every single step of the drawing process, like a heavy backpack.
- The Fix: Nucleus-Image treats the text instructions like a ghost. It reads the instructions once at the very beginning, memorizes the "Key" and "Value" (the essence of the request), and then lets the text "ghost" float away. The actual drawing process only deals with the image pixels.
- The Result: The drawing process becomes incredibly fast and efficient because it's not carrying that heavy backpack anymore.
4. The "Progressive" School Curriculum
You wouldn't teach a baby to run a marathon on day one. You start with walking, then jogging, then running.
- The Fix: The model was trained in three stages:
- 256 pixels: Learning to draw rough shapes (like sketching).
- 512 pixels: Learning details and textures.
- 1024 pixels: Learning fine-grained perfection.
- Crucially, they adjusted the "Expert Capacity" (how many experts wake up) as the model got smarter. Early on, they woke up more experts to learn the basics. Later, they woke up fewer, specialized experts to perfect the details.
5. The "No-Shadow" Training Method
Most AI models keep a "shadow copy" of themselves (a backup version) that updates slowly to make the final result smoother. This doubles the memory cost.
- The Fix: Nucleus-Image didn't keep a shadow. Instead, they saved many "snapshots" of the model during training. At the very end, they mathematically merged these snapshots together to create the final, super-smooth model.
- The Result: They saved massive amounts of computer memory during training without losing any quality.
6. The "Perfect Recipe" (Data & Optimization)
They didn't just use random internet images. They built a 700-million-image library that was:
- Cleaned: Removed blurry, bad, or duplicate pictures.
- Graded: Sorted into "A1" (Masterpiece) to "A5" (Okay) tiers.
- Captioned: Given multiple descriptions (short, medium, and detailed) so the model learns different ways to describe things.
- Synthetic Text: They even generated images with perfect text on them to teach the model how to write words inside pictures (a common struggle for AI).
The Bottom Line
Nucleus-Image proves that you don't need to brute-force your way to the best AI. By being smart about who works (Sparse MoE), efficient about how they work (Decoupled routing, Text Ghosts), and disciplined about what they learn (Curriculum and Data), they created a model that rivals the biggest, most expensive AI in the world, but runs on a fraction of the power.
And the best part? They gave the recipe, the ingredients, and the final dish to the public for free. No secret sauce, no hidden tricks—just open science.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.