TL;DR
Image autoregressive models (IARs) are notorious for memorizing training images, posing severe privacy risks. By adapting the label-free UnitMem metric to IAR architectures, this paper pinpoints exactly where memorization happens—finding that hierarchical models store memorized data across scales while sequential models localize it in late layers. Intervening on just the top memorizing neurons drastically cuts data extraction rates with minimal impact on generation quality.
What Problem Does This Paper Address?
Generative image models are supposed to produce novel images, but modern Image AutoRegressive (IAR) models often reproduce training samples pixel-for-pixel. This unintended memorization enables privacy attacks where adversaries prompt a model with partial image tokens to reconstruct private training instances. While memorization has been extensively studied in diffusion models and LLMs, little was known about where and how memorization is encoded inside autoregressive vision architectures. Without localization, mitigating memorization typically requires costly retraining or degrades visual quality.
Methods
The authors adapt UnitMem, a label-free metric measuring how specifically an individual neuron activates on a single sample compared to the rest of the dataset:
$$\text{UnitMem}_{\mathcal{D}'}(u) = \frac{\mu_{\max,u} - \mu_{-\max,u}}{\mu_{\max,u} + \mu_{-\max,u}}$$
To adapt UnitMem to IAR architectures:
- GELU Non-Linearity Adaptation: UnitMem was originally built for non-negative activations (ReLU). For IARs' GELU layers (specifically the
fc1layer in transformer blocks), the authors use absolute activation magnitudes $|a|$. - Teacher-Forced Inference: To isolate model weights from generation drift during autoregressive rollout, the model receives ground-truth tokens from the previous step/scale.
- Scale-Wise Tracking for Visual Autoregressive (VAR) Models: Because VAR predicts tokens hierarchically from coarse to fine across 10 scales reusing the same blocks, UnitMem is calculated per-scale by averaging token activations within each scale.
- Last-Token Context for Randomized Autoregressive (RAR) Models: For standard token-by-token sequential models, UnitMem is evaluated on the final token prediction step, capturing the model’s state when conditioned on nearly the entire image context.
- Targeted Weight Mitigation: Rather than zeroing weights (which harms utility without effectively stopping extraction due to dropout robustness), the authors simply halve the weights ($\times 0.5$) of the top memorizing
fc1neurons without touching biases.
Datasets
- ImageNet-1k: Used for original pretraining of both VAR and RAR model families.
- UnitMem Calibration Subsets: A balanced 1% subset (evenly sampled across all 1,000 classes) was used to compute UnitMem scores after validating that larger subsets (5%, 10%, 20%) produced identical localization patterns.
- Evaluation: No new external benchmarks were introduced; training data extraction attacks followed the prefix-based extraction setup from Kowalczuk et al. (2025) using SSCD descriptor similarity ($> 0.75$).
Key Insights and Ideas
- Memorization Moves with Resolution in Hierarchical Models: In VAR models, memorization is not static. At coarse scales (early resolution stages), memorization sits primarily in the early transformer blocks. As the model refines details at higher resolutions, memorization shifts deeper into the network.
- Sequential Models Concentrate Memorization Late: In RAR models, memorization consistently clusters in the middle-to-late transformer blocks when the model processes complete context.
- Selective Intervention Outperforms Pruning: Zeroing out high-UnitMem neurons fails or breaks the model, but gentle scaling (halving weights) disrupts precise instance replay while preserving the general representation manifold.
- The Memorization-Utility Frontier: Highly memorizing neurons also contribute to overall visual fidelity. Aggressive suppression reduces extraction to near-zero, but at the cost of FID degradation.
Key Results
- VAR-d30: Halving the weights of the top 10% of memorizing neurons reduced extractable images by 83.6% (from 672 down to 110), while Frechet Inception Distance (FID) barely degraded (from 1.97 to 2.58).
- RAR-XXL:
- Modifying the top 5% of neurons reduced extracted images by 65.3% (from 75 down to 26), with FID moving from 1.48 to 5.12.
- Modifying the top 10% reduced extractions by 82.7% (75 down to 13), though FID increased further to 7.30.
- Modifying the top 1% yielded a 9.3% extraction drop (75 to 68) with an FID of 3.21.
Limitations and Future Work
- Fidelity Trade-off in Sequential Architectures: While VAR maintained strong image quality after intervention, RAR models experienced sharper increases in FID, showing that memorizing neurons in token-sequential architectures are more entangled with core generative quality.
- Post-Hoc Intervention: Halving weights is an inference-time heuristic; future research could design training-time regularizers or targeted pruning strategies that prevent memorizing circuits from forming in the first place.
- Scope of Intervention: The method currently focuses exclusively on
fc1projection layers in transformer feedforward blocks, leaving attention projections and second feedforward layers unanalyzed.
Summary updated