Representation Alignment for Just Image Transformers is not Easier than You Think

Jaeyo Shin, Jiwook Kim, Hyunjung ShimarXiv 2026

TL;DR

While Representation Alignment (REPA) successfully accelerates latent diffusion models, applying it directly to pixel-space models like Just Image Transformers (JiT) causes severe performance degradation and diversity collapse due to "feature hacking." To fix this, the authors introduce PixelREPA, which uses a Masked Transformer Adapter to safely inject semantic guidance, cutting training time in half while significantly improving final image quality.

What Problem Does This Paper Address?

Diffusion models typically operate either in a compressed latent space (using a pretrained tokenizer) or directly in pixel space. Pixel-space models, like Just Image Transformers (JiT), are highly appealing because they eliminate the dependency on an external tokenizer, avoiding reconstruction bottlenecks and preserving fine-grained textures. However, pixel-space models are notoriously expensive to train.

To accelerate training in latent space, researchers frequently use Representation Alignment (REPA), which forces the model's intermediate features to align with a frozen, self-supervised semantic encoder (like DINOv2). Naturally, one would expect REPA to help pixel-space models too.

Surprisingly, the authors discover the opposite: as training progresses at high resolutions, REPA actually degrades the performance of pixel-space models, leading to worse image quality and a loss of sample diversity. This paper investigates why this failure occurs and proposes a novel architecture to fix it.

Fig. 1: REPA degrades JiT performance. As training progresses, JiT+REPA yields higher FID [14] (↓) than vanilla JiT, indicating that REPA hinders pixel space diffusion training. PixelREPA prevents overfitting to the external semantic feature target, which accelerates convergence in JiT training. Remarkably, PixelREPA achieves > 2× faster convergence than the vanilla JiT. All evaluated models utilize JiT-B/16.

Methods

The authors trace REPA's failure to a fundamental information asymmetry. In pixel space, denoising operates in a massive, high-dimensional space with $O(H \times W)$ degrees of freedom. The semantic target (DINOv2), however, is highly compressed. Forcing a pixel-space model to directly regress to this compressed target via a simple MLP creates a shortcut objective. The model overfits to the narrow semantic space ("feature hacking") and forgets how to generate the fine-grained, high-frequency details necessary for pixel-space realism.

To bridge this gap, the authors introduce PixelREPA, replacing the standard point-wise MLP projection with a Masked Transformer Adapter (MTA). The MTA consists of two core components:

  1. Shallow Transformer Adapter: Instead of a simple per-token MLP mapping, PixelREPA passes intermediate features through two Transformer blocks with self-attention. This allows tokens to leverage broader spatial context from neighboring tokens, transforming the alignment target into a more structured space.
  2. Partial Masking Strategy: The authors randomly mask a fraction (20%) of the tokens before they enter the adapter. This forces the adapter to predict the full semantic target from partial observations, preventing a trivial shortcut mapping and acting as an information bottleneck on the pixel side.

Crucially, the MTA is only active during training on a separate alignment branch. It is completely discarded during inference, meaning it introduces zero additional computational cost when generating images.

Fig. 2: Overall Framework of PixelREPA. PixelREPA masks a subset of tokens in an intermediate diffusion feature map. The full token sequence, with only a subset masked, are then transformed by a shallow Transformer adapter and aligned to features from a frozen pretrained semantic encoder. This transforms the alignment target and reduces overfitting to the external semantic representation.

Datasets

The models were trained and evaluated on:

  • ImageNet $256 \times 256$: Used as the primary benchmark for training and quantitative evaluation.
  • ImageNet $32 \times 32$: Used specifically as an analytical baseline to study how changing image dimensionality affects the behavior of representation alignment.

Key Insights and Ideas

  • The Dimensionality Trap: REPA actually helps pixel-space models at low resolutions ($32 \times 32$) because the information gap between pixels and semantic features is small. The failure only manifests at higher resolutions ($256 \times 256$) where the pixel space's degrees of freedom explode.
  • Anatomy of "Feature Hacking": The authors proved feature hacking occurs by evaluating models on subsets of images that are visually distinct but semantically clustered near a class centroid. Standard REPA forces the model to collapse toward the narrow semantic mode, destroying its ability to generate diverse pixel-level details for similar concepts.
  • Masking as a Proxy Tokenizer: By masking 20% of the input tokens, the MTA acts similarly to the tokenizer in a latent diffusion model—temporarily reducing the pixel space's degrees of freedom only for the alignment path, without sacrificing detail in the main denoising pipeline.
Fig. 3: REPA accelerates pixel diffusion training at low resolution, whereas it degrades training at high resolution. This figure illustrates FID scores across different resolutions comparing JiT and JiT+REPA. Results show (a) ImageNet 32×32 and (b) ImageNet 256 × 256 with varying training epochs.

Key Results

  • $>2\times$ Faster Convergence: PixelREPA achieves the same or better image quality as vanilla JiT in less than half the training epochs.
  • State-of-the-Art Pixel-Space Performance: On ImageNet $256 \times 256$, PixelREPA-B/16 reduces the Frechet Inception Distance (FID) from 3.66 to 3.17 and improves the Inception Score (IS) from 275.1 to 284.6.
  • Super-Scaling Efficiency: The largest variant, PixelREPA-H/16, achieves an FID of 1.81, outperforming the baseline JiT-H/16 (1.86) and even beating the much larger JiT-G/16 model (1.82), which contains nearly twice as many parameters.

Limitations and Future Work

  • Sensitivity to Masking Ratio: The choice of masking ratio is a delicate balance. While a 0.2 ratio is optimal, increasing it to 0.5 severely degrades performance because it excessively blocks the gradient signal, preventing subsequent blocks from learning essential semantic structures.
  • Dependency on Pretrained Encoders: Like standard REPA, PixelREPA's efficacy is inherently bounded by the quality and biases of the frozen external semantic encoder (DINOv2) used during training.

Summary updated

BibTeX
@misc{shin2026representation,
  author = {Jaeyo Shin and Jiwook Kim and Hyunjung Shim},
  title = {{Representation Alignment for Just Image Transformers is not Easier than You Think}},
  year = {2026},
  eprint = {2603.14366},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2603.14366},
}
Figure