Semantic Context Matters: Improving Conditioning for Autoregressive Models

Dongyang Jin, Ryan Xu, Jianhao Zeng, Rui Lan, Yancheng Bai, Lei Sun, Xiangxiang ChuarXiv 2025 · DOI

Introduction

Autoregressive (AR) models are emerging as powerful alternatives to diffusion models for image generation. However, effective conditioning—the ability to guide generation based on external signals like edge maps or reference images—remains a significant challenge. Existing methods typically rely on either decoding-stage injection or prefilling-stage conditioning. Decoding-stage injection often disrupts the natural autoregressive flow, leading to artifacts. Conversely, standard prefilling-stage conditioning uses long sequences of low-level visual tokens (VQ tokens), which drastically increases computational overhead and memory consumption.

Comparison of conditioning strategies and SCAR's efficiency gains.

Methodology: The SCAR Framework

SCAR (Semantic-Context-driven AutoregRessive) addresses these limitations by prioritizing high-level semantic context over raw pixel-level tokens. The framework introduces two primary innovations:

1. Compressed Semantic Prefilling

Instead of prepending a long sequence of VQ tokens, SCAR leverages features from a frozen Vision Foundation Model, specifically DINOv2. These features capture rich, high-level semantic information. To maintain efficiency, a learnable semantic compression module reduces the token count by 4x (e.g., from 1024 to 256 tokens). This compressed prefix provides a dense semantic anchor for the model without the prohibitive memory cost of standard visual tokens.

2. Semantic Alignment Guidance ($L_{align}$)

To ensure the model's internal representations remain faithful to the desired output, SCAR introduces a novel training objective: Semantic Alignment Guidance. This loss function forces the AR model's hidden states to align with the semantic features of the target image. This "internal alignment" guides the generation process toward the intended semantic outcome, particularly useful for sparse text prompts.

The SCAR architecture featuring compressed semantic prefilling and alignment guidance.

Experimental Results

The SCAR framework was evaluated on benchmarks including ImageNet-256, MultiGen-20M, and PIE-Bench.

Quantitative Performance

SCAR achieves state-of-the-art results in controllable generation. On the Canny-to-Image task, SCAR recorded an FID of 1.97, significantly outperforming the previous state-of-the-art AR method, ControlAR (FID 7.69). In image editing tasks on PIE-Bench, SCAR reduced structure distance by 21.4% compared to EditAR, demonstrating superior preservation of the original image layout during complex edits.

Efficiency Gains

By utilizing compressed semantic features, SCAR avoids the "efficiency paradox" where increased guidance leads to slower performance. Compared to standard prefilling methods, SCAR reduces GPU memory usage by 23.9% and increases training speed by 1.42x.

Conclusion

SCAR demonstrates that semantic context is a more effective and efficient conditioning signal for autoregressive models than low-level visual tokens. By combining compressed semantic prefilling with alignment guidance, SCAR achieves superior fidelity and control in image generation and editing. Future research will explore scaling SCAR to multi-billion parameter models and extending the framework to video editing.

Summary updated

BibTeX
@misc{jin2025semantic,
  author = {Dongyang Jin and Ryan Xu and Jianhao Zeng and Rui Lan and Yancheng Bai and Lei Sun and Xiangxiang Chu},
  title = {{Semantic Context Matters: Improving Conditioning for Autoregressive Models}},
  year = {2025},
  eprint = {2511.14063},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2511.14063},
}
Figure