Learning Where to Edit Vision Transformers
Not on the map. Why?
Abstract (arXiv)
Model editing aims to data-efficiently correct predictive errors of large pre-trained models while ensuring generalization to neighboring failures and locality to minimize unintended effects on unrelated examples. While significant progress has been made in editing Transformer-based large language models, effective strategies for editing vision Transformers (ViTs) in computer vision remain largely untapped. In this paper, we take initial steps towards correcting predictive errors of ViTs, particularly those arising from subpopulation shifts. Taking a locate-then-edit approach, we first address the where-to-edit challenge by meta-learning a hypernetwork on CutMix-augmented data generated for editing reliability. This trained hypernetwork produces generalizable binary masks that identify a sparse subset of structured model parameters, responsive to real-world failure samples. Afterward, we solve the how-to-edit problem by simply fine-tuning the identified parameters using a variant of gradient descent to achieve successful edits. To validate our method, we construct an editing benchmark that introduces subpopulation shifts towards natural underrepresented images and AI-generated images, thereby revealing the limitations of pre-trained ViTs for object recognition. Our approach not only achieves superior performance on the proposed benchmark but also allows for adjustable trade-offs between generalization and locality. Our code is available at https://github.com/hustyyq/Where-to-Edit.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 51 of its 63 references that are in the map. First posted on arXiv 4 Nov 2024.
Builds on
51 of 63 references.
References · 51
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2021Learning Transferable Visual Models From Natural Language Supervisioncited by 33,456
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2023GPT-4 Technical Reportcited by 18,132
- 2014Very Deep Convolutional Networks for Large-Scale Image Recognitioncited by 15,267
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2014ImageNet Large Scale Visual Recognition Challengecited by 8,441
- 2017Towards Deep Learning Models Resistant to Adversarial Attackscited by 6,326
- 2017Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networkscited by 4,861
38 more
- 2016Gaussian Error Linear Units (GELUs)cited by 3,431
- 2019CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Featurescited by 2,875
- 2022Locating and Editing Factual Associations in GPTcited by 2,609
- 2013Estimating or Propagating Gradients Through Stochastic Neurons for Conditional Computationcited by 2,031
- 2020The Many Faces of Robustness: A Critical Analysis of Out-of-Distribution Generalizationcited by 1,842
- 2019Do ImageNet Classifiers Generalize to ImageNet?cited by 1,507
- 2020Transformer Feed-Forward Layers Are Key-Value Memoriescited by 1,307
- 2019Learning Robust Global Representations by Penalizing Local Predictive Powercited by 1,010
- 2022Mass-Editing Memory in a Transformercited by 976
- 2016End-to-end Optimized Image Compressioncited by 673
- 2021Knowledge Neurons in Pretrained Transformerscited by 590
- 2021How to train your ViT? Data, Augmentation, and Regularization in Vision Transformerscited by 562
- 2021Editing Factual Knowledge in Language Modelscited by 548
- 2019Meta-Learning with Implicit Gradientscited by 523
- 2022Transformer Feed-Forward Layers Build Predictions by Promoting Concepts in the Vocabulary Spacecited by 522
- 2021Fast Model Editing at Scalecited by 491
- 2022Memory-Based Model Editing at Scalecited by 443
- 2023Editing Large Language Models: Problems, Methods, and Opportunitiescited by 367
- 2020Do Adversarially Robust ImageNet Models Transfer Better?cited by 315
- 2023MQuAKE: Assessing Knowledge Editing in Language Models via Multi-Hop Questionscited by 292
- 2023Can We Edit Factual Knowledge by In-Context Learning?cited by 284
- 2022Aging with GRACE: Lifelong Model Editing with Discrete Key-Value Adaptorscited by 267
- 2023Does Localization Inform Editing? Surprising Differences in Causality-Based Localization vs. Knowledge Editing in Language Modelscited by 237
- 2019MetaPruning: Meta Learning for Automatic Neural Network Channel Pruningcited by 226
- 2023Transformer-Patcher: One Mistake worth One Neuroncited by 196
- 2020Rewriting a Deep Generative Modelcited by 105
- 2023DEPN: Detecting and Editing Privacy Neurons in Pretrained Language Modelscited by 75
- 2023Sensitivity-Aware Visual Parameter-Efficient Fine-Tuningcited by 74
- 2021Editing a classifier by rewriting its prediction rulescited by 64
- 2023Massive Editing for Large Language Models via Meta Learningcited by 62
- 2022Discovering Bugs in Vision Models using Off-the-shelf Image Generation and Captioningcited by 45
- 2022Adaptive Testing of Computer Vision Modelscited by 39
- 2023Dataset Interfaces: Diagnosing Model Failures Using Controllable Counterfactual Generationcited by 35
- 2022Fixing Model Bugs with Natural Language Patchescited by 32
- 2023PUG: Photorealistic and Semantically Controllable Synthetic Data for Representation Learningcited by 31
- 2013Theory Refinement on Bayesian Networkscited by 28
- 2023Editing Common Sense in Transformerscited by 28
- 2020I Am Going MAD: Maximum Discrepancy Competition for Comparing Classifiers Adaptivelycited by 13
50 most cited of 51 All 51 (JSON)
Built on by
Citing papers per year: 2025: 2; 2026: 2.
4 papers.
- 2025Hiding Images in Diffusion Models by Editing Learned Score Functionscited by 2
- 2025Exploring and Leveraging Class Vectors for Classifier Editingcited by 1
- 2026Let's Split Up: Zero-Shot Classifier Edits for Fine-Grained Video Understandingcited by 0
- 2026X-Edit: Exact, Explicit, and Explainable Null-Space Editing for Medical Vision Transformerscited by 0
- 2026X-Edit: Exact, Explicit, and Explainable Null-Space Editing for Medical Vision Transformers24 May 2026
- 2026Let's Split Up: Zero-Shot Classifier Edits for Fine-Grained Video Understanding18 Feb 2026
- 2025Exploring and Leveraging Class Vectors for Classifier Editing13 Oct 2025
- 2025Hiding Images in Diffusion Models by Editing Learned Score Functions24 Mar 2025