Manuscript Offprint

arXiv:2609.05966

On-the-go Forgetting without Explicit Unlearning via ERASE

Kushal Chakrabarti, Mayank Baranwal

Abstract

Existing unlearning approaches typically rely on post hoc weight adaptation or distillation, leading to duplicated memory costs, degraded generalization, and limited scalability. In this work, we introduce ERASE, Erasure via Reconstructive Adversarial Signal Editing, a framework for on-the-go forgetting that suppresses the observable influence of private data without modifying model weights. ERASE leverages structured, class-conditioned input perturbations to induce selective forgetting during inference, eliminating the need for retraining, fine-tuning, or model copies. We rigorously characterize sufficient conditions when ERASE provably achieves functional forgetting of designated subclasses while preserving predictions across other subclasses within the same superclass. This analysis offers a principled foundation for inference-time forgetting under mild regularity assumptions. Across diverse architectures and benchmark datasets, ERASE maintains the best observed balance between forgetting efficacy, computational efficiency, and retention fidelity over recent unlearning-based methods. By reimagining data removal as forgetting without unlearning, our work establishes a scalable, regulation-aligned pathway for continual, privacy-conscious learning.

1 Introduction

As machine learning systems increasingly interact with sensitive and continuously evolving data streams, their ability to forget on demand has become a cornerstone of privacy compliance and adaptive intelligence. In regulated domains such as healthcare, personalized services, and user-generated platforms, deployed models must often suppress the influence of outdated or private data (Li et al., 2025), not through retraining, but through immediate, behavioral forgetting. The challenge is to ensure that models no longer act on restricted data while maintaining utility on permissible data.

Conventional approaches to data removal primarily pursue structural unlearning, in which model parameters are explicitly modified to mimic the effect of retraining on a pruned dataset. Although this paradigm guarantees theoretical completeness, it is often computationally prohibitive and operationally impractical (Nguyen et al., 2022) in deployed systems that must respond to privacy or removal requests instantly. Such systems include on-device assistants that must forget on command, financial fraud detectors constrained by always-on operation, certified medical diagnostics that cannot be retrained after patient consent withdrawal, and live-service game AIs requiring instant behavioral updates.

We thus advocate a complementary notion, functional forgetting, that focuses not on erasing knowledge from weights, but on preventing its manifestation during inference. Functional forgetting treats data removal as a behavioral constraint rather than a retraining objective: the model retains its parameters intact yet behaves as if the forgotten data never existed when presented with relevant inputs. This perspective aligns with the needs of modern, continuously operating AI systems that must adapt in real time while preserving the stability of their learned representations.

To realize this notion, we propose ERASE (Erasure via Reconstructive Adversarial Signal Editing), a framework that operationalizes forgetting through input-space modulation rather than weight updates. ERASE leverages conditional priors and adversarial-style signal editing to selectively suppress responses associated with a designated forget set. By inducing erasure directly in the input domain, ERASE eliminates the need for retraining, fine-tuning, or access to internal gradients each time, thereby enabling on-the-go compliance in resource-constrained environments. Our key contributions are summarized as follows:

  1. On-the-go Forgetting Framework. We propose ERASE, a novel framework for inference-time forgetting that enables models to suppress the influence of private data without retraining or gradient access each time. ERASE is designed for deployed settings, marking a shift from structural unlearning to functional forgetting.

  2. Selective Erasure via Conditional Adversarial Perturbations. ERASE introduces reconstructive adversarial signal editing, a targeted input-space perturbation mechanism guided by precomputed conditional priors. This mechanism enforces forgetting only where necessary.

  3. Efficient and Deployable Privacy Compliance. Our approach eliminates the need for retraining or auxiliary models, achieving extreme computational efficiency. It is well-suited for environments where model updates are impractical.

  4. Theoretical Insights. We rigorously characterize sufficient conditions under which ERASE provably forgets the targeted subclass while retaining predictions on the other subclasses within the same superclass.

  5. Comprehensive Evaluation and Insights. We evaluate ERASE across a wide range of model architectures and diverse datasets spanning multiple modalities. ERASE achieves competitive forgetting while substantially improving retention and deployment efficiency, even when compared against methods that rely on continual parameter updates. Ablation studies confirm that ERASE provides targeted forgetting.

It is important to emphasize that our framework targets functional forgetting in discriminative models, where parameter modification is neither feasible nor desirable. While generative architectures may employ prompt-level filtering or guardrailing to achieve a similar goal, such mechanisms are inherently unavailable in standard classification or recognition pipelines. ERASE is designed precisely for these deployment-level privacy scenarios, where the objective is to hide the effect of forgotten data rather than retrain it away.

References (47)

  • Machine unlearning: Linear filtration for logit-based classifiers
  • Machine unlearning
  • Towards evaluating the robustness of neural networks
  • Boundary unlearning: Rapid forgetting of deep networks via shifting the decision boundary
  • Can bad teaching induce forgetting? Unlearning in deep networks using an incompetent teacher
  • An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale
  • Making AI forget you: Data deletion in machine learning
  • Eternal sunshine of the spotless net: Selective forgetting in deep networks
  • Explaining and Harnessing Adversarial Examples
  • Amnesiac machine learning
  • Certified data removal from machine learning models
  • Deep residual learning for image recognition
  • Long short-term memory
  • Understanding black-box predictions via influence functions
  • Machine unlearning: Taxonomy, metrics, applications, challenges, and prospects (opens the publisher in a new tab)
  • The WMDP benchmark: Measuring and reducing malicious use with unlearning
  • ERM-KTP: Knowledge-level machine unlearning via knowledge transfer
  • Certifiable unlearning pipelines for logistic regression: An experimental study
  • Tiny imagenet
  • Deepfool: a simple and accurate method to fool deep neural networks
  • A survey of machine unlearning (opens arXiv in a new tab)
  • Adversarial mixup unlearning
  • Membership inference attacks against machine learning models
  • Evaluating the defense potential of machine unlearning against membership inference attacks (opens arXiv in a new tab)
  • Forget vectors at play: Universal input perturbations driving machine unlearning in image classification (opens arXiv in a new tab)
  • Unrolling SGD: Understanding factors influencing machine unlearning
  • LLM unlearning via loss adjustment with only forget data
  • A closer look at machine unlearning for large language models
  • Stimulating catastrophic forgetting in class-wise unlearning via uap
  • Decoupled distillation to erase: A general unlearning method for any class-centric tasks
  • For the baseline methods, we adopted the hyperparameters from their respective publications when available (Chundawat et al., 2023; Zhou et al., 2025b; Chen et al., 2023; Lin et al., 2023)
  • To ensure a robust evaluation, a distinct attacker, each trained for 10 epochs on a balanced dataset of 'member' and 'non-member' samples, was specialized for each subclass
  • The results in Tables 3-4 show that ERASE is relatively stable across these choices
  • For completeness and to ensure this section is self-contained, we restate the necessary notations and formalize the assumptions introduced in Section 4 below, before presenting the detailed proof of Theorem 4.4
  • Our analysis focuses on the non-trivial case where $\mathcal{E}(x)$ holds
  • We define the gradient of the loss with respect to the input as:
  • We focus on the forget set; the derivation for the retain set is identical
  • By Assumption C.2, $Z_f \in [-B_f, B_f]$ almost surely
  • By the argument earlier, $S_{f}$ cannot remain the argmax, ensuring
  • By the argument earlier, the softmax probability of $S_f$ is larger than $1/2$, so $S_f$ is the unique argmax, ensuring
  • $\ell(z, S_f) > \log K$ guarantees that $S_f$ cannot remain the argmax, while $\ell(z, S_f) < \log 2$ guarantees that $S_f$ is the unique argmax
  • An identical bound applies to the retain set
  • This analysis formalizes the implicit trade-off between first-order directional alignment and second-order curvature penalties
  • Since $\boldsymbol{\delta}_{\mathrm{forget}},\boldsymbol{\delta}_{\mathrm{retain}}$ are unit vectors, expanding the squared Euclidean norm yields
  • The left-hand side of each inequality is affine and represents the desired first-order effect of the perturbation, while the right-hand side is a quadratic curvature penalty that grows with the perturbation magnitude
  • This makes it easier to satisfy both guarantees when the forget and retain directions are nearly orthogonal, as optimizing one coefficient does not geometrically inflate the curvature cost of the other through a cross-term
  • It should not be interpreted as structural removal of information from the model parameters