Decomposing and Editing Predictions by Modeling Model Computation
Preprint
Abstract
How does the internal computation of a machine learning model transform inputs into predictions? In this paper, we introduce a task called component modeling that aims to address this question. The goal of component modeling is to decompose an ML model's prediction in terms of its components -- simple functions (e.g., convolution filters, attention heads) that are the "building blocks" of model computation. We focus on a special case of this task, component attribution, where the goal is to estimate the counterfactual impact of individual components on a given prediction. We then present COAR, a scalable algorithm for estimating component attributions; we demonstrate its effectiveness across models, datasets, and modalities. Finally, we show that component attributions estimated with COAR directly enable model editing across five tasks, namely: fixing model errors, ``forgetting'' specific classes, boosting subpopulation robustness, localizing backdoor attacks, and improving robustness to typographic attacks. We provide code for COAR at https://github.com/MadryLab/modelcomponents .Keywords
All Related Versions
This publication has 20 references indexed in Scilit:
- A Comprehensive Survey of Forgetting in Deep Learning Beyond Continual LearningIEEE Transactions on Pattern Analysis and Machine Intelligence, 2024
- Evaluating the Ripple Effects of Knowledge Editing in Language ModelsTransactions of the Association for Computational Linguistics, 2024
- Erasing Concepts from Diffusion Models2023
- Knowledge Neurons in Pretrained Transformers2022
- Editing Factual Knowledge in Language Models2021
- Low-Complexity Probing via Finding Subnetworks2021
- Understanding the role of individual units in a deep neural networkProceedings of the National Academy of Sciences of the United States of America, 2020
- Analyzing Individual Neurons in Pre-trained Language Models2020
- Places: A 10 Million Image Database for Scene RecognitionIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Deep Residual Learning for Image Recognition2016