Localizing Concepts in Visual Autoregressive Models
Organizations: University of California, Los Angeles · Carnegie Mellon University
Abstract
Understanding the internal routing of visual concepts is crucial for the safe and controllable adaptation of generative models. While concept localization has been widely studied in diffusion models, the emerging paradigm of next-scale visual autoregressive models remains largely unexplored. In this paper, we introduce LoCo, the first model-agnostic framework to localize where and when specific concepts emerge within autoregressive models. Driven by the native coarse-to-fine nature of next-scale generation, our method precisely maps conceptual knowledge across three distinct dimensions: Layer, Scale, and Position. To systematically localize and evaluate concept routing without context bias, we propose LoCoBench, a comprehensive dataset spanning 10 diverse categories. Extensive probing on image and video autoregressive models like Infinity, HunyuanImage-3.0, and InfinityStar shows that the localized positions are both interpretable and causally related to concept emergence. Building on these insights, we apply our localization method to three key applications: concept erasure, model personalization, and adversarial concept injection. Experiments demonstrate that our targeted intervention achieves state-of-the-art performance, substantially reducing computational overhead while preserving benign utility. Overall, our findings offer insights into how conceptual knowledge is routed during autoregressive generation, introducing a practical pathway for more interpretable, efficient, and secure adaptation.
Figures & tables
| Nudity Erasure Task | Violence Erasure Task | ||||||||
| Detected Nudity | Utility (COCO) | Utility (COCO) | |||||||
| Method | Common | Female | Male | Total | FID | CLIP | Detected Violence | FID | CLIP |
| Base Model: Infinity-8B | |||||||||
| ESD Gandikota et al. (2023a) (adapted) | 15 | 78 | 51 | 144 | 32.14 | 29.85 | 845 | 32.56 | 29.50 |
| MACE Lu et al. (2024a) (adapted) | 9 | 56 | 38 | 103 | 31.05 | 30.12 | 612 | 31.45 | 30.05 |
| EraseAnything Gao et al. (2025b) (adapted) | 12 | 64 | 42 | 118 | 30.85 | 30.45 | 684 | 31.12 | 30.25 |
| Method | Poisoning Ratio | Attack Effectiveness | Benign Utility Preservation | |||
|---|---|---|---|---|---|---|
| LIR (%) | FAE | FID | CLIP | |||
| Full-Model (Baseline) | 10% | 4.2 | 48.5 | 32.14 | 30.12 | |
| Ours (LoCo-Targeted) | 10% | 51.5 | 7.5 | 29.45 | 31.35 | |
| Full-Model (Baseline) | 25% | 10.5 | 28.0 | 35.80 | 28.50 | |
| Ours (LoCo-Targeted) | 25% | 78.5 | 3.5 | 29.50 | 31.22 | |
| Dimension Sweep | I2P | MS-COCO | Efficiency | ||
|---|---|---|---|---|---|
| Total | FID | CLIP | Time | VRAM | |
| Infinity-8B | 211 | 29.32 | 31.40 | – | – |
| Full-Model FT | 82 | 30.14 | 30.98 | 35 | 65 |
| Layer-only | 96 | 33.21 | 28.16 | 10 | 48 |
| Scale-only | 159 | 48.24 | 26.85 | 12 | 52 |
| Layer + Scale | 87 | 31.87 | 30.04 | 8 | 45 |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Category | # Entities | # Train Prompts | # Eval Prompts | Total Size |
|---|---|---|---|---|
| Animals | 150 | 3,000 | 4,500 | 7,500 |
| Artists | 516 | 10,320 | 15,480 | 25,800 |
| Brands | 100 | 2,100 | 2,000 | 4,100 |
| Celebrities | 120 | 2,400 | 3,000 | 5,400 |
| Copyrights | 120 | 2,400 | 3,600 | 6,000 |
| Places | 120 | 1,200 | 2,400 | 3,600 |
| Category: Artists Anchor = “a painting” |
|---|
| “ a.y. jackson , a red double-decker bus on a wet street” |
| “ ad reinhardt , a windmill beside a tulip field at sunrise” |
| Category: Style Anchor = “a scene” |
| “ origami style , a narrow alley with hanging laundry” |
| “ voxel art style , a rooftop garden with potted herbs” |
| Category: Copyrights Anchor = “a character” |
| Intervention Strategy | Infinity (VAR) | HunyuanImage-3.0 | ||
|---|---|---|---|---|
| Target CLIP | Background CLIP | Target CLIP | Background CLIP | |
| Base Model (No Erasure) | 0.284 | 0.312 | 0.291 | 0.320 |
| Bottom-5% Intervention | 0.282 | 0.311 | 0.289 | 0.319 |
| Random-5% Intervention | 0.252 | 0.264 | 0.258 | 0.271 |
| Targeted Top-5% (Ours) | 0.185 | 0.311 | 0.190 | 0.318 |
| Concept Category | Cross-Seed IoU | Cross-Prompt IoU | Cross-Concept IoU |
|---|---|---|---|
| Van Gogh (Style) | 89.4 | 84.2 | 4.1 |
| The Batman (Copyright) | 91.2 | 85.7 | 3.8 |
| Nudity (Safety) | 87.5 | 81.4 | 5.2 |
| Eiffel Tower (Place) | 90.1 | 83.6 | 4.5 |
| Average | 89.6 | 83.7 | 4.4 |
Visual Autoregressive Models
Visual autoregressive models generate or analyze images and videos by predicting visual tokens in sequence, often from coarse scales to fine detail.
See all 58 papers