As image generation technology evolves beyond Diffusion models toward "Next-Scale Autoregressive" (AR) paradigms—such as the Infinity or VAR models—safety mechanisms must adapt. These next-scale AR models generate images progressively, starting from a highly compressed 1x1 grid and refining it scale-by-scale to high resolution.
While this paradigm offers impressive generative capabilities, it introduces a unique safety challenge: semantic entanglement. At early, low-resolution scales, a single image token might encode both an unsafe feature (e.g., nudity) and a benign background element (e.g., a beach). Traditional concept erasure methods applied here often result in "collateral damage," inadvertently erasing safe elements and severely degrading overall image quality.
To address this, researchers have introduced ScaleErasure, an inference-time minimal intervention technique designed to surgically remove unsafe concepts without compromising the model's general generative capabilities.
The ScaleErasure Methodology
ScaleErasure operates entirely at inference time, eliminating the need for computationally expensive model retraining or fine-tuning. It achieves "minimal intervention" by precisely selecting which raw predictions (logits) to modify across three distinct dimensions:
- Scale-Level Selection: The method avoids intervening at the very first scales (which dictate global layout) and the final scales (which add fine texture). Instead, it targets a "sweet spot" in the intermediate scales (e.g., scales 3 to 8) where the semantic identity of an object is actively formed.
- Token-Level Selection: Utilizing the model's internal cross-attention maps, ScaleErasure identifies the exact spatial areas relevant to the unsafe concept. By creating a spatial mask, it ensures that only the "unsafe" pixels are targeted for modification.
- Bit-Channel-Level Selection: Modern AR models often employ Binary Spherical Quantization (BSQ), where each token comprises multiple bit channels. ScaleErasure compares a "prompted" forward pass with an "unsafe" forward pass to isolate specific bits sensitive to the target concept. This allows for sub-token precision—flipping only the bits that make a token "unsafe" rather than discarding the token entirely.
The Guidance Mechanism: ScaleErasure executes two lightweight, supplementary forward passes: one conditioned on the "unsafe" concept and another on a "safe" counterpart. It then applies a modified Classifier-Free Guidance (CFG) formula to steer the model's predictions away from unsafe logits and toward safe ones. To maintain efficiency, these extra passes utilize an "early-stop" strategy, terminating as soon as the targeted intermediate scales are processed.
Experimental Setup
The researchers evaluated ScaleErasure across several benchmarks to test both its safety efficacy and its preservation of general capabilities:
- Nudity Erasure: Tested on the sexual-labeled subset of the Inappropriate Image Prompts (I2P) benchmark (931 prompts).
- Copyright Erasure: Evaluated using a custom dataset of 100 prompts targeting copyrighted characters like Pikachu and SpongeBob.
- General Capability: Assessed using 10,000 captions from MS-COCO to ensure high-quality generation of unrelated images.
- Broader Concepts: Tested for generalization across artistic styles (e.g., Rembrandt, Warhol) and broader unsafe categories like hate, violence, and illegal activity.
Key Findings and Performance
The empirical results demonstrate that ScaleErasure effectively balances safety and image quality:
- Superior Safety: On the I2P dataset, the baseline model generated 1,042 instances of nudity. ScaleErasure drastically reduced this count to just 182, significantly outperforming adaptation baselines like SLD or ESD.
- Preserving Quality: The method achieved the best FID score (2.91) and top CLIP scores on MS-COCO, indicating that it successfully "stays out of the way" when processing safe prompts.
- High Efficiency: Thanks to the early-stop strategy, ScaleErasure adds only about 9% latency to the generation process. In contrast, applying guidance across all scales would result in a 35% latency increase.
- Human Preference: In a user study involving 10 evaluators, ScaleErasure ranked first in erasure effectiveness, region preservation, and overall image naturalness.
Furthermore, linear probing experiments revealed that at early scales, the model's internal representations of "safe" versus "unsafe" concepts are highly distinct (showing high AUC). This linear separability justifies why intervening directly at the logit level is so highly effective.
Limitations and Future Directions
While ScaleErasure presents a significant step forward for AR model safety, the authors note a few limitations. Currently, the method relies on manually defined "safe" and "unrelated" concept strings (e.g., explicitly mapping "nudity" to "clothed"). Automating this mapping process is a logical next step.
Additionally, while a 9% computational overhead is relatively low, it still presents a hurdle for strict real-time applications. Future work could focus on further optimizing the supplementary forward passes or distilling the intervention into a lightweight "safety adapter." Finally, for broader concepts like "violence," the evaluation relies on external discriminative classifiers, which may introduce their own biases or blind spots into the safety assessment.
Summary updated