MODUS: Decoder-Only Any-to-Any Modeling of Diverse Modalities
This paper introduces Modus, a decoder-only any-to-any multimodal model that treats all modalities symmetrically without task-specific components, enabling flexible cross-modal generation and achieving competitive performance across diverse benchmarks.
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 a world where your computer doesn't just "see" a picture or "read" a sentence, but understands that a picture, a sentence, a map of how deep things are, and a sketch of edges are all just different languages describing the same reality. For a long time, artificial intelligence has been like a specialist who only speaks one dialect; a model might be great at writing stories but terrible at drawing, or amazing at recognizing objects but clueless about how far away they are. Scientists have been trying to build a "universal translator" for these different types of data—what they call "modalities"—so that a single brain could switch between them effortlessly. The big challenge has been figuring out how to teach one brain to speak all these languages fluently without needing a separate translator for every single pair of languages.
Enter MODUS, a new kind of AI model that acts like a master polyglot. Instead of building a massive, clunky machine with different parts for different jobs, the researchers built a "decoder-only" brain. Think of this like a storyteller who listens to a story and then continues it, no matter what language the story is told in. Whether you feed it a photo, a text description, a depth map (which shows how far away objects are), or a sketch of edges, MODUS treats them all as a single, continuous stream of tokens (like words in a sentence). It doesn't need special tools for depth or special tools for text; it just predicts what comes next in the sequence. This means it can take a photo and generate a depth map, or take a depth map and generate a photo, or even chain them together: photo → edges → depth → new photo, all in one go. The paper shows that this approach works surprisingly well, allowing the model to perform complex tasks like checking its own work (self-verification) and creating consistent images through multiple steps, all while using a single, unified architecture.
The Polyglot Brain: How MODUS Works
Imagine you have a friend who is amazing at telling stories. If you give them a picture of a cat, they can describe it. If you give them a description of a cat, they can draw it. Now, imagine that same friend can also tell you how far away the cat is, or draw a sketch of its outline, or even explain what the cat is feeling, all without changing their personality or needing a different brain for each task. That is essentially what MODUS does.
In the past, AI models were often built like a Swiss Army knife with many separate tools: one blade for text, one for images, one for depth. If you wanted to go from a depth map to an image, you might need a chain of different models, each passing the baton to the next. This paper argues that this is inefficient and clunky. Instead, MODUS uses a decoder-only approach. In simple terms, a "decoder" is a type of AI that learns by predicting the next piece of a sequence. Think of it like a game of "telephone" where the AI is trying to guess the next word, the next pixel, or the next depth value based on everything that came before it.
The magic of MODUS is that it treats everything as a sequence.
- Text is a sequence of words.
- Images are broken down into tiny patches and turned into a sequence of numbers.
- Depth maps and surface normals (which show the direction a surface is facing) are also turned into sequences.
Because everything is just a sequence of tokens, MODUS doesn't need different "heads" (specialized parts) for different jobs. It just looks at the input sequence and predicts the output sequence. If you give it a photo and ask for a depth map, it treats the photo as the "start" of the story and the depth map as the "continuation." If you give it a depth map and ask for a photo, it flips the script.
The "Any-to-Any" Superpower
The paper calls this Any-to-Any modeling. This is the ability to take any combination of inputs and generate any combination of outputs.
- Input: A photo of a room. Output: A text description of the room.
- Input: A text description of a room. Output: A photo of the room.
- Input: A photo of a room. Output: A depth map (showing how far the furniture is).
- Input: A depth map. Output: A photo.
Most previous models could only do specific pairs, like "Text to Image" or "Image to Text." MODUS breaks those walls down. It can even do things that seem weird to other models, like turning a "Canny edge" (a sketch of outlines) directly into a depth map, or combining a photo and a text prompt to generate a surface normal map.
The Secret Sauce: Uniform Sampling and Staged Training
You might wonder, "If it's just predicting the next token, why is this hard?" The researchers found a few tricky spots.
First, there was a problem with modality confusion. When the model was learning to generate images or depth maps, it sometimes got mixed up. It might be asked to generate a depth map but accidentally produce an edge map instead. The paper discovered that this happened because of how they sampled the "time steps" during training. Imagine training a model to draw a picture by starting with a blurry mess and slowly making it clear. If you spend too much time in the middle of the process (where it's still blurry) and not enough time at the very beginning (where the model decides what it's drawing), the model gets confused about what it's supposed to be drawing.
To fix this, the team used uniform timestep sampling. Instead of focusing on the middle steps, they made sure the model practiced the very first steps (deciding the modality) and the very last steps (refining the details) equally. This helped the model learn to say, "Okay, I am drawing a depth map," before it started worrying about the details.
Second, they used a staged training approach. They didn't throw everything at the model at once.
- Stage 1: They taught it the basics of 1D things like text and bounding boxes (grounding).
- Stage 2: They added 2D spatial things like depth, surface normals, and edges.
- Stage 3: They taught it to handle multiple inputs at once (multi-condition) and to chain things together.
This step-by-step approach helped the model learn without getting overwhelmed, allowing it to inherit the strong knowledge it already had from being trained on text and images, and then expand that knowledge to new types of data.
Chained Generation and Self-Verification
One of the coolest features of MODUS is Chained Generation. Because the model treats everything as a single sequence, it can use its own output as the input for the next step.
- Imagine you want to generate a 3D scene from a text description.
- Instead of trying to jump straight from "Text" to "3D Scene," MODUS can go: Text → Edge Sketch → Depth Map → Final Image.
- The edge sketch helps the model understand the layout, the depth map helps it understand the geometry, and the final image is built on top of that solid foundation.
The paper shows that this chaining makes the final result much more consistent. If you just tried to go from Text to Image directly, the model might get the layout wrong. But by going through an intermediate step (like an edge sketch), the model "locks in" the structure before adding the colors and details.
Another nifty trick is Cross-Modal Self-Verification. Since MODUS can generate any modality, it can check its own work.
- If MODUS generates an image from a text prompt, it can immediately generate a "grounding" map (showing where objects are) or answer a question about the image (VQA).
- If the generated image doesn't match the text description when checked this way, the model can discard it and try again.
- The paper found that using this self-checking method improved the quality of the generated images, making them more accurate to the prompt without needing any external tools to grade them.
The Results: A Single Model to Rule Them All
The researchers tested MODUS on a massive dataset called MODUS-DATASET, which contains 29 million samples where images are paired with all these different annotations (depth, edges, text, etc.). They trained the model on this data and found that it performs very well across the board.
- It can do Visual Grounding (finding objects in an image based on text) just as well as specialized models.
- It can estimate Depth and Surface Normals with high accuracy.
- It can generate images from text that are competitive with other top models.
- Crucially, it does all of this with one single model. You don't need to download a different model for depth, another for edges, and another for text.
The paper explicitly notes that while previous models often struggled to match the performance of specialized "single-task" experts, MODUS manages to be competitive with them while offering the flexibility of doing everything at once. It suggests that the "decoder-only" approach is a powerful foundation for the future of multimodal AI, capable of handling diverse data types without needing complex, custom architectures for every new job.
In short, MODUS is a step toward a more unified AI—one that sees the world not as separate categories of data, but as a single, interconnected story that can be told, retold, and translated in any language it chooses.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.