← Latest papers
💻 computer science

Test-Time Conditioning with Representation-Aligned Visual Features

This paper introduces Representation-Aligned Guidance (REPA-G), an inference-time framework that steers diffusion model generation toward specific visual features extracted from pre-trained self-supervised models, enabling versatile and precise control over texture, semantics, and multi-concept composition without requiring retraining.

Original authors: Nicolas Sereyjol-Garros, Ellington Kirby, Victor Letzelter, Victor Besnier, Nermin Samet

Published 2026-02-04
📖 5 min read🧠 Deep dive

Original authors: Nicolas Sereyjol-Garros, Ellington Kirby, Victor Letzelter, Victor Besnier, Nermin Samet

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 teach a robot artist how to paint a picture of a "rabbit."

The Old Way (Text Prompts):
You might write a long, detailed description: "A fluffy white rabbit sitting on a volcano with cracked black earth and glowing lava." But the robot might get confused. Is the rabbit white or gray? Is the lava red or orange? Text is like a blurry map; it gives directions, but the robot has to guess the details.

The New Way (REPA-G):
Instead of writing a description, you simply show the robot a photo of a real rabbit and a photo of a real volcano. The robot doesn't just look at the pictures; it looks at the "secret DNA" inside them.

This paper introduces a new method called REPA-G (Representation-Aligned Guidance). Here is how it works, using simple analogies:

1. The "Secret Language" of Images

Most AI models learn to generate images by guessing and correcting errors (like a sculptor chipping away stone). Recently, researchers found a way to teach these models a "secret language" by showing them images and asking them to match the internal features of a smart, pre-trained teacher (like DINOv2).

Think of this "secret language" as a universal translator. When the AI sees a rabbit, it doesn't just see pixels; it understands the concept of "rabbit-ness" in a mathematical code. The paper shows that if you train the AI to speak this code, it understands the world much better than if it just learned to paint.

2. Steering the Ship at the Last Minute

Usually, once an AI model is trained, you can't easily change its mind without retraining it from scratch. That's like building a car and then realizing you wanted it to be a boat; you'd have to build a new one.

REPA-G is different. It works at the very last moment (during "inference" or generation).

  • The Analogy: Imagine the AI is a ship sailing through a foggy ocean (the process of creating an image from noise).
  • The Old Way: You set the destination before the ship leaves port (training).
  • The REPA-G Way: You can steer the ship while it's sailing. If you want a rabbit, you hold up a "rabbit signal" (a feature from a real rabbit photo). The ship feels a magnetic pull toward that signal and steers itself to match it.

3. Three Levels of Control

The paper shows you can control the AI with different levels of precision, like zooming in and out on a map:

  • The "Average" Signal (Broad Control): You show the AI a whole picture of a rabbit and say, "Make me something that feels like this." The AI captures the general vibe (a rabbit) but might change the pose or background. It's like saying, "Draw a dog," and getting a Golden Retriever, a Poodle, or a Beagle.
  • The "Masked" Signal (Shape Control): You take a picture of a rabbit, cover the background with a black mask, and show the AI only the rabbit's shape. The AI then draws a rabbit in that exact shape but can put it anywhere (on a beach, in space, on a volcano). It's like using a cookie cutter; the shape is fixed, but the dough can be anything.
  • The "Full" Signal (Exact Copy): You show the AI the entire picture, and it tries to recreate the specific textures and details of that exact image.

4. Mixing and Matching (Composition)

The coolest part is that you can mix these signals.

  • The Analogy: Imagine you want a "Tiger on a Surfboard."
  • You show the AI a photo of a Tiger (to get the tiger features).
  • You show the AI a photo of a Surfboard or a wave (to get the background features).
  • The AI blends these two "secret codes" together. It doesn't just paste the tiger onto the wave; it understands that the tiger belongs in that environment, creating a natural-looking image.

Why This Matters (According to the Paper)

  • No Retraining Needed: You don't have to rebuild the AI model. You just use this steering trick at the end.
  • Better than Text: The paper argues that showing a picture (or its "secret code") is much more precise than writing a long paragraph. Text is vague; a feature map is a direct instruction.
  • High Quality: When they tested this on famous image datasets (ImageNet and COCO), the results were sharper, more diverse, and followed the instructions better than previous methods.

In Summary:
REPA-G is like giving a robot artist a set of magnetic steering wheels made from real photos. Instead of guessing what you want based on a vague description, you hand the robot a "magnet" (a feature from a photo), and the robot's internal compass pulls the final image toward that magnet, creating exactly what you envisioned without needing to rebuild the robot.

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 →