Models Designed to Forget: Machine Unlearning via Key Deletion
Sonia Laguna, Jorge da Silva Gonçalves, Moritz Vandenhirtz, Alain Ryser, Irene Cannistraci, Julia E Vogt
NeurIPS 2026
TL;DR. We propose shifting machine unlearning from post-hoc to "unlearning by design", with models designed to forget. We introduce MUNKEY, that externalizes instance-specific memorization. Here, unlearning results in a zero-shot key deletion operation.
Abstract. Machine unlearning for vision models is rapidly becoming a practical requirement, driven by privacy regulations, data errors, and the need to remove harmful or corrupted training images. Despite this, most existing approximate unlearning methods tackle the problem from a post-hoc perspective. They attempt to erase the influence of targeted samples through parameter updates that typically require access to the full training data. This creates a mismatch with real deployment scenarios where unlearning requests can be anticipated, revealing a fundamental limitation of post-hoc approaches. We motivate unlearning by design, a novel paradigm for approximate methods in which models are directly trained to support forgetting as an inherent architectural capability. We instantiate this idea with Machine UNlearning via KEY deletion (MUNKEY), a memory-augmented transformer that decouples instance-specific memorization from model weights. Here, unlearning corresponds to removing the instance-identifying key, enabling zero-shot forgetting without weight updates or access to the original samples or labels. Across natural image benchmarks, fine-grained visual recognition, and medical datasets, MUNKEY outperforms all post-hoc baselines. Our results establish that unlearning by design enables fast, deployment-oriented unlearning while preserving predictive performance.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:42 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper introduces MUNKEY, an unlearning-by-design framework that stores instance-specific information in external key–token memory, allowing forgetting by deleting the key without retraining or access to the original data. The empirical evaluation is extensive given the simplicity, and the membership-inference analysis addresses concerns about information remaining in static model parameters.
Although the reviewers find it intuitive and promising across vision datasets, they also raise concerns about scalability, noting memory growth linear to dataset size, which impacts training, memory, and retrieval. They also request more evidence that key deletion provides localized, effective forgetting without harming similar samples, clearer comparisons to existing methods, and evaluations on larger datasets, diverse forget-set constructions, hyperparameters, and architectures beyond memory-augmented transformers. I suggest the authors focus on the following while addressing the remaining points raised by each reviewer:
- Report how the memory footprint, parameter count, training time, retrieval latency, and inference cost scale with dataset size. Also, discuss practical ways to reduce this overhead.
- Address the question from odMX whether nearby keys can still reveal information about a deleted sample and whether deleting one key affects visually similar retained samples.
- Clarify why a standard retrieval-based classifier is insufficient for key-deletion unlearning and ideally include a comparison with a representative retrieval baseline.
- The rebuttal should address sensitivity to pathway dropout and discuss or evaluate more diverse deletion requests, including single-instance, class-level, and imbalanced forget sets.
Final justification
This work received positive reviews, and the authors addressed the major concerns raised by the reviewers. Therefore, I am satisfied and happy to recommend acceptance.
However, the authors should revise the manuscript to address two remaining concerns related to practical scalability and high forgetting accuracy.
Read meta-review
Meta-review
This paper introduces MUNKEY, an unlearning-by-design framework that stores instance-specific information in external key–token memory, allowing forgetting by deleting the key without retraining or access to the original data. The empirical evaluation is extensive given the simplicity, and the membership-inference analysis addresses concerns about information remaining in static model parameters.
Although the reviewers find it intuitive and promising across vision datasets, they also raise concerns about scalability, noting memory growth linear to dataset size, which impacts training, memory, and retrieval. They also request more evidence that key deletion provides localized, effective forgetting without harming similar samples, clearer comparisons to existing methods, and evaluations on larger datasets, diverse forget-set constructions, hyperparameters, and architectures beyond memory-augmented transformers. I suggest the authors focus on the following while addressing the remaining points raised by each reviewer:
- Report how the memory footprint, parameter count, training time, retrieval latency, and inference cost scale with dataset size. Also, discuss practical ways to reduce this overhead.
- Address the question from odMX whether nearby keys can still reveal information about a deleted sample and whether deleting one key affects visually similar retained samples.
- Clarify why a standard retrieval-based classifier is insufficient for key-deletion unlearning and ideally include a comparison with a representative retrieval baseline.
- The rebuttal should address sensitivity to pathway dropout and discuss or evaluate more diverse deletion requests, including single-instance, class-level, and imbalanced forget sets.
Final justification
This work received positive reviews, and the authors addressed the major concerns raised by the reviewers. Therefore, I am satisfied and happy to recommend acceptance.
However, the authors should revise the manuscript to address two remaining concerns related to practical scalability and high forgetting accuracy.
1 comment
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 4/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper investigates if unlearning can be executed via design. The authors argue that current post processing based unlearning methods has critical issues: Forget samples are entangled with retain samples in the model parameters, resulting structural difficulties to remove the instance-wise memorization. Thus, the paper proposes a fundamental shift: Store the samples in a memory system to structurally prevent the samples from being embedded to the parameters. Each training sample gets a memory entry with a fixed key (embedding) and a learnable token. The learnable token which represents the memory item is trained along with the model. In this way, the unlearning a sample is simply physically removing the corresponding memory item. This enables the model to memorize the learnable token instead of the actual sample. Simultaneously, the learnable token acquires the sample-specific knowledge. In inference time, given a query (an image), model computes key, retrieves the nearest memory items, and the linear classifier returns the final prediction. Experimental result shows that the proposed method offers better model utility-forget quality tradeoff for MNIST and DermaMNIST datasets against optimization-based unlearning methods.
Strengths and weaknesses
Strength
-
The idea and the design is novel. The idea (using a disposable learnable token for each image) is clever.
-
Experimental results are solid and addressed my concerns. A critical concern I had from their architectural design is not running any parameter update even though the patched raw images are included in the training. Neglecting them during unlearning could increase membership inference risk. thankfully, Table 23 addressed my concern and demonstrated that the membership signal from such case is weak.
Weakness
-
Model performance, unlearn efficacy could depend on the embedding model. If a set of data from a unique data distribution, then the embedding model may generate suboptimal representations. In sum, retrieval quality affects the overall classification process, its impact is less explored. While this is discussed in Appendix D.2, the discussion does not expand to generalizability across differe domains. For example, if data is chest X-ray images, then it is likely that an embedding model specialized to X-ray images is necessary.
-
The scope of the unlearning is limited to classification models. While it seems feasible, it is not clear how the proposed model can be applied for unlearning language models.
-
Limited number of datasets: only two datasets were used throughout the experiments. More datasets can be used to demonstrate the efficacy of the proposed method.
-
Training efficiency. As each sample is given with a learnable token, the size of learnable parameters scales with the dataset size. This potentially implies excessive training time. The experimental result should report the training time scaling analysis for large datasets (beyond mnist and derma mnist)
Questions
Currently I lean towards the borderline accept despite the limitations and weaknesses of the paper. The algorithmic and structural design of the model and the algorithm are novel and clever. More importantly, this work is attempting to establish a bridge between approximate and exact unlearning, and thus deserves academic attention. I am willing to change the score based on the justifications the authors provide.
With that being said, I am still concerned about the training time scaling, especially for the large dataset such as ImageNet. The number of parameters scale with the number of samples, implying that more training is necessary. The authors could provide an explanation or analysis regarding the scalability.
Limitations
yes
Final justification
Discussion with the authors resolved my concerns regarding scalability. While the paper has clear limitations, I deem the paper has significance in its contribution. Therefore I raise my score from 4 to 5.
Formatting concerns
N/A
3 comments
Answer to Reviewer Y9xw [1/1]
Thank you so much for your feedback! Here is the point-by-point response:
Model performance and unlearn efficacy could depend on the embedding model.
In general, the main manuscript results show that natural image pretrained encoders transfer to the medical datasets we have evaluated. However, we also had the concern regarding different domains, and we studied this in Appendix D.2. There (Table 17), we show that training the key encoder from scratch on a 20% subset held out from all unlearning requests, with the core MUNKEY trained on the remaining 80%, gives Avg Gap 1.62 on DermaMNIST and 1.23 on CIFAR-10 against oracles under the same restriction. For a domain like chest X-rays we believe that a domain-specific encoder trained on a disjoint, non-deletable subset in the same way as Table 17 is a plausible deployment option.
The scope of the unlearning is limited to classification models. [...] it is not clear how the proposed model can be applied for unlearning language models.
We agree with the reviewer, and the vision scope is deliberate. What makes key deletion clean here is that one training instance equals one image equals one memory entry, so a deletion request maps to exactly one key. That correspondence holds for other discriminative vision tasks, but not for language. A document-level memory entry could, in principle, be introduced for language models, but this would not directly solve the harder problem of removing fine-grained token- or fact-level influence from a generative model. Extending MUNKEY would require redefining the memory granularity, how retrieved exemplars condition generation, and how deletion is evaluated. We therefore treat language-model unlearning as future work rather than claiming a direct extension.
Limited number of datasets
Two datasets appear in the main text for space reasons; the manuscript evaluates six: CIFAR-10, CIFAR-100, Tiny ImageNet, BloodMNIST, PathMNIST, and DermaMNIST, spanning 7 to 200 classes and 7K to 100K training samples, with three medical datasets carrying natural class imbalance. We have additionally added three new deletion regimes (full-class, class-imbalanced, single-instance; see the response to Reviewer yTCE Table 4). We will restructure the main text to make this coverage visible.
Training efficiency. Report the training time scaling analysis for large datasets.
We agree that the number of learnable exemplar parameters grows linearly with the number of stored instances. However, this does not necessarily imply a corresponding increase in per-step training compute, because each minibatch accesses only its own exemplar rows and a fixed number of retrieved neighbours. We therefore measured steady-state training throughput while varying the bank size from N=1,000 to N=100,000, keeping the backbone and batch size fixed.
Table 5. Training throughput vs. memory size. Same backbone and batch size, varying the number of stored instances N. Steady-state step time, RTX3080.
| N | Exemplar params | MUNKEY step (ms) | Standard ViT-T step (ms) |
|---|---|---|---|
| 1,000 | 0.06M | 27.32± 0.03 | 25.50± 0.02 |
| 5,000 | 0.32M | 27.60 ± 0.02 | 25.32± 0.02 |
| 10,000 | 0.64M | 29.06 ± 0.02 | 25.44± 0.02 |
| 25,000 | 1.60M | 28.22 ± 0.02 | 24.96± 0.03 |
| 50,000 | 3.20M | 28.41± 0.04 | 24.93 ± 0.02 |
| 100,000 | 6.40M | 27.70± 0.03 | 25.34 ± 0.04 |
Across 1K–100K entries, MUNKEY’s step time remains between 27.3 and 29.1 ms. This corresponds to approximately 7–14% overhead over the standard ViT-T, with no systematic increase as the bank grows over the evaluated range. The key embeddings are precomputed once before training, so the frozen key encoder does not add a forward pass to every training step; this explains why the training overhead is substantially smaller than the inference overhead reported in our response to Reviewer odMX Table 1.
The total number of steps per epoch still scales with dataset size, as for a standard classifier. In addition, the exemplar parameters and their dense optimizer states scale as , making persistent training memory the principal scaling cost. Sparse or row-wise optimization could reduce this cost, but we have not made it the focus of our work. Our measurements do not yet cover the full ImageNet scale; rather, they show that per-step throughput remains stable up to 100K stored instances. We will add this analysis and explicitly distinguish per-step compute from linearly growing parameter and optimizer-state storage.
Thank you for the clarifications. The authors' clarification on the training time / parameter scaling has cleared my concern. In your final revision, please add the discussion regarding the limited scope of the paper (which applies to the vision tasks), and the table on scalability. Since the authors' response has resolved my concern, I am going to increase the score from 4 to 5.
Thank you for the positive feedback and score increase
Thank you very much for the positive feedback and for indicating that our response resolved your concerns. We will add the discussion in the final revision. We truly appreciate your willingness to increase the score from 4 to 5. We noticed that the numerical score in the system still appears to be 4. If you still intend to update it, we would be very grateful if you could reflect the change in the system, as the recorded scores may play an important role in the final decision. Thank you again for your time and consideration.
- Rating
- 5/6
- Confidence
- 3/5
- Quality
- 3/4
- Clarity
- 4/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes augmenting a pre-trained vision transformer classifier with a memory system which retrieves learned and beddings, using a nearest neighbors approach. By turning fine-tuning into a retrieval mechanism, it enables on learning of specific samples by removing the associated memory entry. This alternative to traditional fine-tuning enables strong empirical on learning performance across a range of image classification benchmarks.
Strengths and weaknesses
The paper targets an important problem and produces a nice approach with a different angle than most unlearning methods. Utilizing external memory to support unlearning is a nice idea which makes a lot of sense to use in some applications. The paper proposes various modifications to the basic retrieval approach which empirically seem to address some of the challenges around training such external memories. The paper is well written with extensive experimental results, and the method seems effective and practical. The notion of 'unlearning by design' with motivate a lot of interesting future research.
My main question/concern is how this relates to prior work on retrieval/memory with vision models. For LLMs, it is obvious that Retrieval Augmented Generation (RAG) eliminates the need for unlearning, since data can just be deleted from the RAG corpus. I am not as familiar with the vision space, but there appears to be RAG-style approaches to classification [1], [2]. I would like to better understand the differences between the MUNKEY approach to retrieval versus these and other papers in this space. Why aren't naive vision retrieval approaches sufficient? What parts of MUNKEY are novel with respect to this space? I think these and similar questions are worth clarifying.
Additionally, the experiments seem a bit homogenous, and miss out on exploring more interesting aspects. For example, all the selected datasets have fairly small number of classes, and/or do not have that many samples. It seems important to know at what point this method breaks down as the dataset become larger or more diverse, which we should expect at some point. Also, it would be interesting to study qualitatively different forget sets, for example forgetting all or most of a single class, or studying the effects of unlearning a single sample.
Finally, it is worth noting that since this is an approximate unlearning algorithm, many of the broad concerns about the usefulness remain (e.g. what does it mean to unlearn, how to we evaluate it, etc.). Given what we know about the limitations of current unlearning algorithms, it is unclear how excited we should be about beating (sometimes only narrowly) the baselines on these tasks.
[1] Long, Alexander, et al. "Retrieval augmented classification for long-tail visual recognition." Proceedings of the IEEE/CVF conference on computer vision and pattern recognition. 2022.
[2] Zhang, Renrui, et al. "Tip-adapter: Training-free adaption of clip for few-shot classification." European conference on computer vision. Cham: Springer Nature Switzerland, 2022.
Questions
I would definitely like to see discussion of existing vision+retrieval work and how it compares to this work, as mentioned previously, which is important for properly framing the contribution. Ideally at least one could be implemented as a baseline.
Other minor suggestions/questions:
- How sensitive are the results to hyperparameters like the pathway dropout?
- Evaluate other types of forget splits, like imbalanced classes, entire class removal, or individual samples
- Evaluate on a more diverse dataset with more classes (e.g. a downsampled imagenet)
- Is there an increase in training time or compute with this method?
Limitations
yes
Final justification
I continue to recommend an Accept for this paper. I like the conceptual approach of using external memory and the empirical approach. The paper is well written with extensive experimental results, and my previous concerns/questions were well addressed. I do not think it raises to the level of a Strong Accept, mainly because I am not confident that the method in its current form is scalable enough to be used in practice.
Formatting concerns
none
4 comments
Answer to Reviewer yTCE [1/2]
Thank you for the thorough feedback!
Relation to retrieval-augmented vision models
We argue that retrieval augmentation and machine unlearning are fundamentally different unless the retrieved corpus is the only way the data influences the model. The claim that RAG eliminates the need for unlearning is valid only when the retrieved examples were never used to train the model parameters. In that setting, deleting an entry removes its sole pathway of influence. By contrast, machine unlearning addresses data that contributed to parameter learning; deleting the corresponding index entry then prevents future retrieval but does not remove any influence already encoded in the model weights. The two cited works illustrate this. In Tip-Adapter, CLIP remains frozen, and the downstream examples are stored only in an external cache. Deleting a cache entry can therefore remove that example’s task-adaptation contribution, but it is a frozen few-shot adaptation setting rather than unlearning. RAC is the closer comparison; in its main setting, the training images influence both the parametric classifier and the retrieval memory. Deleting an image from the memory removes only its retrieval contribution, while its influence may remain in the learned classifier parameters. Thus, the editability of the retrieval index alone is not sufficient for unlearning.
MUNKEY’s contribution is therefore not retrieval itself, but deletion-oriented training. Each training instance is associated with a learnable exemplar token, and stochastic pathway dropout discourages complete dependence on either the image or memory pathway. During retrieval regularization, neighbouring tokens are substituted for the instance token, while gradients to those retrieved exemplar tokens are stopped. These mechanisms encourage instance-specific influence to be routed toward removable memory, although this remains an empirical inductive bias rather than a formal separation guarantee. We now provide three comparisons that progressively isolate why an editable retrieval component alone is insufficient:
-
KNN (manuscript Table 1): pure retrieval, no parametric learning. Deletion is exact by construction, but utility suffers without a learned model.
-
Direct Key ablation (Table 10, Appendix D.1): a trained backbone storing the frozen key embedding rather than a learned token. This is closest to the retrieval literature, and it leaks membership, so it is also not sufficient.
-
RAC-inspired retrieval fusion (new): RAC jointly trains the base encoder and a retrieval branch, so retrieval is trained alongside the model rather than being a purely external corpus.
We implement a RAC-inspired editable retrieval baseline adapted for unlearning: a normally trained ViT classifier plus editable memory of frozen key/label pairs, fused as , but without MUNKEY's decoupling mechanisms. Deletion removes memory entries with no parameter update. The positive fusion weight is learned jointly with the classifier under the same optimizer and schedule, while the frozen key encoder and the rest of the protocol match MUNKEY. We show these results in DermaMNIST over three seeds, each against its own retain-only oracle.
Table 3. RAC-inspired retrieval fusion vs. MUNKEY under the same deletion request.
| DermaMNIST | TA | RA | FA | MIA | Avg Gap |
|---|---|---|---|---|---|
| RAC-inspired after deletion | 76.28 ± 0.22 | 100.00 ± 0.00 | 100.00 ± 0.00 | 61.51 ± 0.40 | 9.29 ± 0.33 |
| — its retrain oracle | 76.77 ± 0.48 | 100.00 ± 0.00 | 75.52 ± 1.09 | 49.30 ± 1.40 | — |
| Direct Key ablation (Table 10) | 81.70 ± 0.74 | 99.30 ± 0.45 | 99.33 ± 0.64 | 61.76 ± 2.00 | 8.23 ± 0.70 |
| — its retrain oracle (Table 10) | 81.83 ± 0.68 | 99.25 ± 0.22 | 80.05 ± 1.10 | 48.30 ± 0.98 | — |
| MUNKEY (Table 10) | 81.06 ± 0.41 | 97.64 ± 0.22 | 84.10 ± 1.58 | 52.16 ± 0.53 | 1.52 ± 0.56 |
| — its retrain oracle (Table 10) | 80.80 ± 0.54 | 97.47 ± 0.15 | 80.10 ± 0.99 | 50.53 ± 0.89 | — |
| KNN (Table 1) | 74.60 ± 0.24 | 85.54 ± 0.14 | 74.81 ± 1.23 | 49.94 ± 0.90 | — |
Our experiments support this distinction. KNN provides deletion through a purely non-parametric memory but has lower utility. Both the Direct Key ablation and the RAC-inspired retrieval-fusion baseline retain substantial membership signal after deletion. These results indicate that an editable retrieval branch alone is insufficient; deletion-oriented training is also needed to encourage instance-specific influence to be localized in removable memory.
Datasets are not diverse
Two datasets appear in the main text for space, but the manuscript evaluates six (Tables 5-8), spanning 7 to 200 classes and 7K to 100K training samples, including three medical datasets with natural class imbalance. We will make this breadth visible in the main text. Tiny ImageNet in particular is the downsampled-ImageNet setting the reviewer suggests, with 200 classes and 100K training images.
Answer to Reviewer yTCE [2/2]
Evaluate different forget splits.
We note the manuscript already covers forget fractions up to 50%, more aggressive than the standard literature. Instead, we have added new experiments to address forget-set structure, three deletion structures on CIFAR-10, chosen as a balanced base:
-
Single-class removal, where all 5,000 examples from one class are forgotten, and the experiment is repeated and averaged over the 10 classes.
-
A class-imbalanced setting, 80% of the forget set comes from one selected class, and the remaining 20% is distributed uniformly across the other nine classes. Again, we repeat and average the results for 10 classes.
-
A single-instance removal setting where we perform 20 independent leave-one-out experiments.
In all new experiments, we match every run against its own retraining oracle, and each MIA evaluation uses class-matched members and non-members so that class composition alone cannot determine membership. For single-instance, where one member makes a pooled AUC undefined, we score within each run against a matched same-class example and a fixed panel of 50, then aggregate. Results in Table 4 show that structured deletion in MUNKEY is competitive; every structure stays close to its own oracle on utility, with the membership signal at chance throughout.
Table 4. Deletion-request structure. CIFAR-10, each run matched against its own oracle. All forget sets are 5,000 examples, except for single-instance.
| Forget-set structure | Test acc. (MUNKEY / Retrain) | Retain acc. (MUNKEY / Retrain) | Forget acc. (MUNKEY / Retrain) | Membership (MUNKEY / Retrain) | Avg Gap |
|---|---|---|---|---|---|
| Full-class removal | 84.53 ± 0.59 / 84.13 ± 0.77 | 99.94 ± 0.00 / 99.95 ± 0.02 | 3.70 ± 1.89 / 0.00 ± 0.00 | 50.92 ± 3.12 / 49.56 ± 1.40 | 1.37 ± 0.99 |
| 80/20 class imbalance | 92.16 ± 0.36 / 91.79 ± 0.41 | 99.94 ± 0.00 / 99.94 ± 0.02 | 86.57 ± 6.19 / 83.48 ± 6.92 | 49.39 ± 2.20 / 49.07 ± 1.48 | 0.95 ± 0.68 |
| Single-instance removal | 92.75 ± 0.00 / 92.80 ± 0.11 | 99.94 ± 0.00 / 99.94 ± 0.01 | 19/20 / 18/20 runs † | 53.9 / 49.7 ‡ | — ‡ |
| Random 10% (reference) | 92.63 / 92.38 | 99.94 / 99.90 | 92.26 / 91.88 | 51.47 / 49.73 | 0.60 |
† Forget accuracy on a single image is binary per run: 19 of 20 runs correct for MUNKEY, 18 of 20 for exact retraining. ‡ With one member per run, a pooled AUC is undefined; we report the deleted point's percentile within a 50-example same-class panel, where 50 is chance.
Concerns of approximate unlearning algorithm
The reviewer is fair to question what the benefits are. Beyond generally beating the score, the operating point in MUNKEY differs; deletion is a set operation needing no optimisation and no access to the training data, where post-hoc methods require a retraining or repair run. However, we agree that the field's evaluation protocol is imperfect. We do not claim certified forgetting, and we are explicit that this is approximate, black-box unlearning framed as an inductive bias rather than a guarantee. We will make that scope clearer and add the broader concerns of the field to our limitations.
Pathway-dropout sensitivity.
We provide a study of pathway dropout sensitivity in Appendix E and Figures 6-7. Both sweep p_i and p_t jointly on both main datasets. Here we see that the corner case is the informative one: at p_i = p_t = 0, with no pathway dropout, pathway sensitivity degrades sharply and the utility gap stays sub-optimal, because the model is free to collapse onto whichever pathway is easier. What matters is not the absolute values but the balance, and the right balance is dataset-dependent: where memory is an easy shortcut, the model tends toward a lookup table, and the token pathway needs dropping more; where the image pathway alone suffices, the token risks being ignored. We therefore give a selection recipe: we discard configurations with Ps≥ξ to prevent pathway collapse; among the remaining configurations, we choose the one with the smallest validation utility gap computed on a disjoint proxy forget split.
Training time and compute.
We conducted a training-time scaling analysis while varying the memory size from 1K to 100K entries, keeping the backbone and batch size fixed. As reported in Table 5 of our response to Reviewer Y9xw, MUNKEY’s per-step time remains between 27.3 and 29.1 ms. This corresponds to a modest overhead over the standard ViT-T and shows no systematic increase with memory size over the evaluated range. The reason is that each minibatch accesses only its own exemplar rows and a fixed number of retrieved neighbours, while the key embeddings are precomputed before training. The number of steps per epoch still scales with dataset size, as for a standard classifier, and the exemplar parameters linearly with N. At inference, end-to-end latency also changes only marginally across 7K–100K entries; we report this separately in Table 1 of our response to Reviewer odMX.
Response to Author Comments
Thanks for the updates. I like the retrieval-inspired baselines and experiments with various datasets and forget sets, and appreciate the other notes.
Just for clarification, my point on RAG was about the case when the model parameters are not updated. Like you could imagine using a reasoning model with vision capabilities as a classifier, and in addition to the input photo you provide a few retrieved examples and their ground truth label, then the model can reason about similarities and differences between the images. It sounds like there isn't an equivalent technique for the models tested here. I think your current evaluations are fine, but this could be an interesting thing to research in the future.
I'll maintain my score as a 5 and recommend acceptance.
Thank you!
Thank you very much for the positive feedback and for recommending acceptance. We also appreciate a lot the clarification regarding the RAG setting; it indeed sounds like a very interesting follow-up direction.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper addresses the limitation of Machine Unlearning (MU) methods, i.e., the reliance on post-hoc updates. Traditional MU techniques modify model parameters after deployment to erase target data, which frequently demands access to the original training data and incurs high computational costs. The authors shift the paradigm by proposing "Unlearning by Design". They introduce MUNKEY (Machine UNlearning via KEY deletion), a model built using a memory-augmented Transformer framework that decouples specific instance memorization from the static core weights of the model by mapping instance-specific data via external key-value pairs. When a deletion request is initiated, the targeted instance-identifying key is erased from memory. This enables zero-shot, instant forgetting at inference time with zero parameter updates, retraining, or subsequent access to the raw training pool.
Strengths and weaknesses
Strengths:
-
Proposing an "inherent capability" via proactive model architecture Design rather than reactive, computationally heavy post-hoc fixes is highly practical and intuitive.
-
It eliminates the need for retraining and effectively reduces unlearning to an instantaneous process.
-
Training data samples are not needed to be maintained for unlearning.
Weaknesses:
-
Memory-augmented architectures inherently struggle with scale. Storing explicit keys/tokens for massive datasets can cause retrieval latency or huge VRAM footprints during inference.
-
If two distinct training instances share similar visual features or embedding spaces, deleting the key for instance A might inadvertently degrade the model's retrieval ability or accuracy for instance B.
-
Also, since one of the training steps involves using similar keys to perform inference, will the forgetting be effective even if we delete the key for a sample to be forgotten?
-
Cannot be directly extended to standard CNNs, NNs.
Questions
-
How to handle the problem: Storing explicit keys/tokens for massive datasets can cause retrieval latency or huge VRAM footprints during inference.
-
Explain how deleting the key for instance A might inadvertently degrade the model's retrieval ability or accuracy for instance B.
-
Also, since one of the training steps involves using similar keys to perform inference, will the forgetting be effective even if we delete the key for a sample to be forgotten? Is this why the forgetting accuracy is still very high?
-
Can it be directly extended to standard CNNs, NNs.
Limitations
Inference time should be compared with standard models.
Discussions needed for extensions to standard CNNs, NNs.
Final justification
I still believe that the high forget accuracy, which the authors attribute to generalization rather than to failure of forgetting, suggests that the given setting is flawed, since what is the point of forgetting a sample if the classifier can still classify it satisfactorily?
Formatting concerns
None
2 comments
Answer to Reviewer odMX [1/2]
Thank you for the useful feedback! Find the point-by-point responses below:
Scale: retrieval latency and VRAM footprint. Inference time compared to standard models.
We agree with the reviewer that this is the standard trade-off in retrieval-augmented systems. In our scale of experiments, we have not implemented efficiency optimizations and all experiments ran on a single RTX 3080 without memory-capacity issues. However, at scale, several works have tried to solve this. Firstly, persistent capacity and peak VRAM are distinct: the bank does not need to reside in VRAM. Keys can live in a CPU- or SSD-resident ANN index with only the top-K tokens transferred to the accelerator. In this case, persistent storage scales as while the per-query GPU footprint is , independent of dataset size, however latency slows down. At larger scales, product quantization can reduce vector storage and distance-computation cost [1]; FAISS supports efficient exact, approximate, and compressed-domain search [2]; sharding reduces per-node capacity and can improve throughput; and DiskANN enables low-DRAM, SSD-resident billion-point search [3]. Geirhos et al. demonstrate billion-scale retrieval in a related visual-memory system [4]. These techniques are compatible with MUNKEY’s retrieval component, although their accuracy–latency–storage trade-offs remain untested in our setting, and we defer efficient million-scale retrieval to future work.
With respect to additional system costs and inference time comparisons, we include below in Table 1 the measurements across all six datasets. We will fold it into Appendix B.5, alongside an explicit distinction between persistent capacity and peak VRAM, and acknowledge large-scale retrieval engineering as future work. Focusing on inference time, we note that when comparing MUNKEY and Standard ViT-T, the main driver of overhead time is the key encoder forward pass, and the current repository has not been optimised for retrieval speed, which makes inference twice as slow. We note that the additional cost of online query encoding is common in retrieval architectures that retrieve using learned embeddings, and if faster inference is desired, MUNKEY can also leverage a smaller or faster key encoder. Table 1 also shows that search grows only from 0.358 to 0.447 ms across the different scales, since it is one matrix product against a bank. However, this operation remains and the methods discussed above or approximate indexing become relevant at larger scales.
Table 1. System costs vs. memory size. RTX 3080, batch of 64 queries, three repeats. All times are batch latencies in ms.
| Dataset | N | Bank (MiB) | Mem. params | MUNKEY (ms) | Standard ViT-T (ms) | Key enc. | Search | Cond. forward | Deletion |
|---|---|---|---|---|---|---|---|---|---|
| DermaMNIST | 7,007 | 3.4 | 0.45M | 16.31 ± 0.02 | 7.90 ± 0.02 | 7.36 ± 0.03 | 0.358 ± 0.005 | 8.50 ± 0.02 | 0.068 ± 0.007 |
| BloodMNIST | 11,959 | 5.8 | 0.77M | 16.67 ± 0.08 | 7.92 ± 0.01 | 7.50 ± 0.03 | 0.420 ± 0.010 | 8.70 ± 0.03 | 0.068 ± 0.001 |
| CIFAR-10 | 50,000 | 24.4 | 3.20M | 16.74 ± 0.03 | 7.93 ± 0.06 | 7.50 ± 0.03 | 0.425 ± 0.010 | 8.74 ± 0.02 | 0.066 ± 0.002 |
| CIFAR-100 | 50,000 | 24.4 | 3.20M | 16.74 ± 0.06 | 7.93 ± 0.01 | 7.52 ± 0.03 | 0.421 ± 0.011 | 8.69 ± 0.03 | 0.066 ± 0.004 |
| PathMNIST | 89,996 | 43.9 | 5.76M | 17.29 ± 0.06 | 7.92 ± 0.02 | 7.75 ± 0.06 | 0.447 ± 0.014 | 8.96 ± 0.03 | 0.071 ± 0.004 |
| Tiny ImageNet | 100,000 | 48.8 | 6.40M | 16.80 ± 0.09 | 7.93 ± 0.04 | 7.53 ± 0.06 | 0.436 ± 0.012 | 8.70 ± 0.03 | 0.070 ± 0.005 |
Extension to CNNs and other architectures.
The underlying externalization principle is not inherently transformer-specific. Coupling a parametric network with an externally addressable memory predates Transformers [5,6] and has been used for visual recognition with conventional encoders [7].
Concretely, one could encode , aggregate the retrieved exemplars into , and condition the classifier on both. Several fusion points are available, and all are standard: concatenation at the penultimate layer, ; projected addition, ; or a learned gate. We believe what needs most care is not the fusion but the decoupling. In MUNKEY, the exemplar enters as a peer of the image patches, so attention weighs the two pathways per token, and pathway dropout suppresses either cleanly. A CNN offers no equivalent per-token gate, and the natural substitute, dropping e at the fusion point, is coarser. Establishing which fusion depth and which dropout schedule give the same separation is an interesting question for future work.
Answer to Reviewer odMX [2/2]
Does deleting key A degrade retrieval or accuracy for a similar retained instance B?
In MUNKEY, retrieval ability is unaffected by the deletion of a nearby key. In this example, B still retrieves K neighbours; the ranked list simply shifts to promote the next candidate. However, as the reviewer points out, accuracy is where an effect could plausibly appear. The training procedure we propose explicitly targets to avoid this problem, and we have now added a quantitative evaluation to measure it directly. The three modelling choices in MUNKEY that address this are the following: Gradients to retrieved neighbour tokens are clipped, for all j ∈ whenever the retrieval branch is active (Eq. 2, l.188), so a neighbour's token never drifts to accommodate another sample's gradient. K’ is resampled during training, so no entry depends on a fixed neighbourhood. And pathway dropout prevents reliance on any single retrieval outcome. Together, these keep each entry carrying its own instance's information, which is intended to limit the effect of removing one entry. We included qualitative examples of the effect of single instances in Figure 3 in the manuscript, and now we conduct the following experiment to evaluate it quantitatively in both CIFAR-10 and DermaMNIST, in the 10% random forgetting scenario: for each retained sample B we locate the forgotten keys, i.e. the members of the forget set that happen to sit inside B's top-4 neighbourhood (given that we do top-4 retrieval at inference), delete them (all or a subset of them), and re-evaluate the same B (always with their own key masked out to avoid “self-retrieval”). We also report an adversarial control in which we delete B's single nearest neighbour, as a targeted stress test.
Table 2. Effect on retained samples of deleting their neighbours. Paired evaluation of the same retained sample B before and after deleting the forgotten keys in its top-4, binned by how much of B's retrieval mass was removed.
| Deleted mass in N_4(B) | Acc before (%) | Acc after (%) | Delta |
|---|---|---|---|
| CIFAR-10, no deleted neighbor | 93.65 ± 0.48 | 93.65 ± 0.48 | 0.00 |
| CIFAR-10, 0-25% | 92.77 ± 0.98 | 92.62 ± 0.98 | -0.14 |
| CIFAR-10, 25-50% | 95.10 ± 0.94 | 95.29 ± 0.92 | +0.19 |
| DermaMNIST, no deleted neighbor | 83.69 ± 0.71 | 83.69 ± 0.71 | 0.00 |
| DermaMNIST, 0-25% | 83.97 ± 1.43 | 84.58 ± 1.41 | +0.61 |
| DermaMNIST, 25-50% | 85.09 ± 1.55 | 82.26 ± 1.66 | -2.83 |
Retained samples with no deleted neighbour are exactly unchanged, and those losing up to half their retrieval mass move by at most 2.83 percentage points. As a stress test, we also deleted each sample's single nearest neighbour, which costs 1.50 points on CIFAR-10 and 3.00 on DermaMNIST.
These results indicate that neighbour deletion has a limited effect in the evaluated settings, the largest reduction is 2.83 percentage points under random forgetting and 3.00 points in the targeted nearest-neighbour stress test. We attribute this robustness to replacement by nearby retained entries and to training mechanisms that discourage query-specific information from being absorbed by neighbouring tokens. This empirically supports localized information storage.
Is forgetting effective, given that training uses similar keys for inference? Is that why forget accuracy is high?
This is precisely why we clip and resample K during training, as described above, the retrieval step cannot write a sample's information into its neighbours' tokens. At inference, the deleted keys are masked out of the similarity computation and cannot be retrieved at all. High forget accuracy is not itself evidence of residual membership, the Retrain (M) oracle, which never sees the forget set, also classifies many forget examples correctly throughout the manuscript because they belong to classes represented in the retained data. We believe that high forget accuracy is generalisation rather than leakage. The relevant membership signal remains close to chance and close to the retraining oracle. Therefore, we believe forgetting is supported empirically.
References
[1] Jegou, H., et al. (2011). Product quantization for nearest neighbor search. IEEE Transactions on Pattern Analysis & Machine Intelligence.
[2] Johnson, J., et al. (2017). Billion-scale similarity search with GPUs. arXiv preprint arXiv:1702.08734.
[3] Subramanya, S. J., et al. (2019). DiskANN: Fast accurate billion-point nearest neighbor search on a single node. In NIPS.
[4] Geirhos, R., et al. Towards Flexible Perception with Visual Memory. ICML, 2025.
[5] Graves, A., et al. (2014). Neural turing machines. arXiv preprint arXiv:1410.5401.
[6] Weston, J., et al. (2014). Memory networks. arXiv preprint arXiv:1410.3916.
[7] Santoro, A. et al. (2016). Meta-learning with memory-augmented neural networks. In International conference on machine learning. PMLR.
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Global response (all reviewers + AC)
Dear Reviewers and Area Chair,
We thank you for the thorough and constructive feedback, which will improve the manuscript. We are encouraged that the reviewers found the problem important (
yTCE), the design "novel and clever" (Y9xw), the paradigm "highly practical and intuitive" (odMX), and the evaluation extensive.We ran new experiments addressing each point raised in the reviews. We include the summary of the main points below and the full answers in the individual responses. We will make sure to include all of it in the next iteration of the manuscript.
Comprehensive study of system costs (
AC;odMX,yTCE,Y9xw). We now provide an in-depth study across all six datasets, from 7K to 100K instances (Table 1 inodMX). We find that storage per sample grows linearly by construction, but every other measured cost scales only weakly over this range, also supported by a training time scaling analysis (Table 5 inY9xw).Key deletion is localized (AC;
odMX). We conducted a quantitative study of the effect of neighbour deletion, and we see (Table 2 inodMX) that the effect of deleting a neighbour is small on task performance, the largest reduction being 2.83 percentage points in our experiments.Positioning in the vision retrieval literature (
AC;yTCE). We discuss the rationale why standard retrieval does not mean unlearning by construction, i.e. index deletion is sufficient only when the retrieved data did not train the model; otherwise, it removes future retrieval but not influence already encoded in the parameters. We additionally implement a RAC-inspired retrieval baseline that shows that retrieval alone is not sufficient for unlearning (Table 3 toyTCE).Successful results in structured unlearning (
AC;yTCE). We include experiments with three new forget-set structures, each against its own exact retraining oracle: class-imbalanced, full-class removal, and single-instance removal and show that MUNKEY remains performant (Table 4 toyTCE).Pathway-dropout sensitivity study is already in the manuscript (
AC;yTCE), in Appendix E and Figures 6-7, which sweep pi and pt jointly and report the Pathway Sensitivity Score used for model selection. We included more discussion on the topic and will make sure it is clear in the main text in the next iteration of the manuscript.Implementation beyond transformers (
odMX). We add a discussion of how MUNKEY can be instantiated in CNNs and how memory-augmented architectures have been studied beyond transformers.We hope these new results and discussions address your concerns, and we will be happy to discuss any remaining questions.