Test-Time Conditioning with Representation-Aligned Visual Features

Nicolas Sereyjol-Garros, Ellington Kirby, Victor Letzelter, Victor Besnier, Nermin Samet
2/3/2026
cs.CV

Official code: valeoai/REPA-G (20 stars, MIT, last commit 2026-02-06).

Abstract

While representation alignment with self-supervised models has been shown to improve diffusion model training, its potential for enhancing inference-time conditioning remains largely unexplored. We introduce Representation-Aligned Guidance (REPA-G), a framework that leverages these aligned representations, with rich semantic properties, to enable test-time conditioning from features in generation. By optimizing a similarity objective (the potential) at inference, we steer the denoising process toward a conditioned representation extracted from a pre-trained feature extractor. Our method provides versatile control at multiple scales, ranging from fine-grained texture matching via single patches to broad semantic guidance using global image feature tokens. We further extend this to multi-concept composition, allowing for the faithful combination of distinct concepts. REPA-G operates entirely at inference time, offering a flexible and precise alternative to often ambiguous text prompts or coarse class labels. We theoretically justify how this guidance enables sampling from the potential-induced tilted distribution. Quantitative results on ImageNet and COCO demonstrate that our approach achieves high-quality, diverse generations. Code is available at https://github.com/valeoai/REPA-G.

View on arXivView PDF

Code Implementations(1)

valeoai/REPA-GOfficial100%
MIT

Official Repositary of "Test-Time Conditioning with Representation-Aligned Visual Features"

200Shell, PythonJan 29, 20268 months agoMIT

Similar Papers

Cite this paper

@article{sereyjolgarros2026testtime,
  title  = {Test-Time Conditioning with Representation-Aligned Visual Features},
  author = {Nicolas Sereyjol-Garros and Ellington Kirby and Victor Letzelter and Victor Besnier and Nermin Samet},
  year   = {2026},
  eprint = {2602.03753},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.03753v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.03753.svg)](https://codeofpaper.com/paper/2602.03753)

Discussion