TL;DR
Visual Autoregressive (VAR) models are rapidly challenging diffusion models in image and video generation, yet we barely know how they route visual concepts internally. This paper introduces LoCo, a framework that acts like a neural GPS to map exactly where and when concepts like "Batman" or "origami" emerge across the model's layers, resolution scales, and spatial positions. By surgically intervening on just the top 5% of these pathways, you can erase unsafe content, personalize subjects, or test security vulnerabilities faster and cleaner than updating the whole model—slashing training time by over 80%.
What Problem Does This Paper Address?
For years, diffusion models dominated visual generation, and researchers got pretty good at opening their hoods to find where concepts live—allowing us to erase copyrighted characters or teach a model what your specific pet dog looks like.
Recently, however, Visual Autoregressive (VAR) models changed the game. Instead of denoising an image all at once, or generating pixels line-by-line like text, VAR models generate visuals coarse-to-fine ("next-scale prediction"). They sketch a blurry, low-resolution layout first, then progressively predict sharper residual details scale by scale.
Because of this multi-scale dynamic, traditional localization tricks built for diffusion models fall flat. If you try to blindly erase a concept across whole layers in a VAR model, discrete prediction errors snowball from coarse scales to fine ones, collapsing the image into artifacts or generic mush. Until now, nobody had mapped how concepts actually travel through these coarse-to-fine grids.
Methods
To track down concepts without breaking the model, the authors propose LoCo (Localizing Concepts). Because VAR models process entire spatial (or spacetime) grids simultaneously at each resolution step, LoCo defines a 3D coordinate system for concept emergence: Layer (network depth), Scale (generation resolution), and Position (the specific local patch in the grid).
Here is how it works:
- Tracing Attention Contributions: While standard methods often just look at attention weights (probabilities), LoCo measures the norm of the attention-weighted value vectors flowing from target text tokens (e.g.,
"The Batman") to each visual query position during cross-attention. A score only spikes when a visual patch actively attends to the concept text and pulls a high-magnitude signal from it. - Isolating the Signal: Averaging these scores across diverse prompts cancels out background noise (like
"snowy forest"), leaving behind a clean 3D heatmap of the concept's core routing nodes. From this map, LoCo ranks the Top-$K$ triplets (defaulting to just $K=5\%$). - Surgical Intervention: Once those top 5% nodes are found, LoCo supports two modes:
- Training-free erasure: During inference, swap the text embeddings strictly at those Top-$K$ positions with a neutral placeholder (e.g.,
"a person"), leaving the rest of the scene untouched. - Ultra-sparse fine-tuning: Restrict weight updates (via LoRA) exclusively to the Top-$K$ routes for permanent concept erasure, DreamBooth personalization, or adversarial data poisoning.
Datasets
Existing safety datasets like I2P focus on single tasks and lack paired neutral contexts, causing localization algorithms to accidentally latch onto background scenery. To fix this, the authors built LoCoBench:
- 1,467 concept entities spanning 10 categories (safety, copyrights, artists, styles, celebrities, animals, places, brands, weapons, and substances).
- 28,230 training and 37,800 evaluation paired prompts (e.g., matching
"The Batman as a LEGO sculpture"with"A person as a LEGO sculpture").
They also evaluate on standard benchmarks: I2P (4,703 prompts for nudity and violence erasure), MS-COCO (10K captions for general image quality), and a 3,000-image subset of Midjourney-v6 (for data poisoning).
Key Insights and Ideas
- Concepts anchor very early: When erasing concepts like nudity, 2D visualizations of LoCo's heatmaps look suspiciously like human silhouettes—raising fears of spatial pixel-memorization. Surprisingly, probing shows 94.7% of targeted concept signals are intercepted in the first two coarse scales, long before fine spatial layouts exist! High-resolution interventions merely act as light touch-ups.
- All three dimensions are non-negotiable: Ablating Layer, Scale, or Position causes performance to tank. Updating only layers or scales acts like a blunt instrument, either leaking the forbidden concept or ruining benign images.
- High-leverage security bottlenecks: The exact same sparse routes that make safety erasure clean also create a massive target for attackers. Poisoning only the Top-$K$ routes injects hidden brand logos far faster and stealthier than poisoning the whole model.
Key Results
Tested on state-of-the-art VAR models—Infinity-8B and HunyuanImage-3.0 (text-to-image) plus InfinityStar (text-to-video)—intervening on just the top 5% of positions delivers impressive gains:
- Efficiency: Compared to full-model fine-tuning, LoCo cuts GPU memory (VRAM) by 38.5% (65 GB down to 40 GB) and slashes training time by 82.9% (35 minutes down to 6 minutes on a single H20 GPU).
- Concept Erasure: Ranks #1 in violence erasure across both T2I models (dropping I2P detections from 1,282 to 251 training-free / 306 fine-tuned on Infinity-8B) while keeping MS-COCO FID nearly identical to the base model (29.90 vs. 29.32). Unlike the strongest baseline (CAT), which "erases" nudity by collapsing every prompt into generic clothed cartoons (crashing CLIP scores to 13.09), LoCo preserves exact scene structure.
- Personalization & Poisoning: Eliminates "concept bleed" in DreamBooth—teaching a model a specific Corgi without turning unrelated huskies or golden retrievers into Corgis. In trigger-free data poisoning (at a 10% poison ratio), targeting LoCo routes skyrockets Logo Inclusion Rate from 4.2% to 51.5% and triggers the attack in 7.5 epochs instead of 48.5.
Limitations and Future Work
While the main text does not include a dedicated limitations section, the authors' ablation studies highlight an inherent sparsity trade-off:
- Sensitivity to $K$: Choosing $K=1\%$ preserves pristine utility but leaks target concepts, whereas pushing to $K=10\%$ disrupts the discrete token space and degrades prompt alignment. Noticeable quality drops also appear in training-free erasure (MS-COCO FID rises from ~29.3 to ~52.4 on Infinity-8B) compared to the fine-tuned variant (29.90).
- Cross-attention dependency: LoCo relies on cross-attention contributions between text keys/values and visual queries, meaning architectures without explicit cross-attention would require adapted probing signals.
- Future Directions: The authors position LoCo and LoCoBench as a foundational launchpad for mechanistic interpretability, controllable editing, and red-teaming/defending next-scale autoregressive models against targeted backdoors.
Summary updated