arXiv:2609.31356cs.CVSep 2026

Manuscript Offprint

arXiv:2609.31356

Open Vocabulary Domain Unlearning

Sumanth Udupa, Mehrtash Harandi, Yadan Luo, Mahsa Baktashmotlagh

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Vision-Language Models (VLMs) exhibit remarkable zero-shot generalization, yet they often encode unwanted or hazardous stylistic domains such as idealized textbook diagrams in medical AI or cartoon vehicles in autonomous driving. Approximate Domain Unlearning (ADU) aims to selectively erase a model's recognition of a target visual domain while preserving accuracy on the remaining domains. However, existing ADU methods operate under a flawed closed-vocabulary assumption: they evaluate unlearning solely on the specific object classes seen during the unlearning fine-tuning phase. Consequently, these methods do not unlearn the domain itself; they merely overfit to seen class-domain pairs, leaving the domain easily recognizable for unseen classes and providing a false sense of removal. We argue that true domain erasure must be class-agnostic. To address this, we formalize Open-Vocabulary Domain Unlearning (OVDU), a rigorous protocol that mandates domain forgetting must transfer to held-out classes. To solve the OVDU challenge, we propose a surgical parameter-editing framework. First, a Fisher Information mask isolates domain-sensitive weights, mathematically protecting foundational zero-shot generalization. Second, our Targeted Manifold Scattering (TMS) objective uses preference-based mining to locally scatter the forget domain's stylistic geometry. Evaluated across PACS, OfficeHome, and DomainNet, our method vastly improves open-vocabulary generalization over existing baselines. Crucially, it delivers exceptional sample efficiency, outperforming peak 8-shot baseline results with only 4 shots.

1 Introduction

Pre-trained Vision-Language Models (VLMs) Radford et al. [2021], Faghri et al. [2025] exhibit remarkable zero-shot generalization, enabling them to recognize a vast array of open-vocabulary concepts without additional training. However, this strong generalization also means VLMs encode and retain information that may be unnecessary, computationally wasteful, or hazardous in specific downstream applications Wang et al. [2021], Shokri et al. [2017]. To address this, approximate machine unlearning has emerged to selectively remove specific knowledge while preserving overall model utility Bourtoule et al. [2021], Graves et al. [2021]. Historically, approximate unlearning in VLMs has predominantly focused on class unlearning wherein the task is to degrade recognition accuracy for specific object categories while maintaining accuracy for others Golatkar et al. [2020], Fan et al. [2023], Huang et al. [2024], Kuwana et al. [2024].

Preprint.

Figure

Figure 1: Overview of the Targeted Manifold Scattering (TMS) framework. Images from the retain ( DrD_r) and forget ( DfD_f) domains are processed through a Fisher-masked Image Encoder to isolate domain-specific updates. The TMS loss applies two decoupled geometric forces: (1) The Retention Component protects semantic integrity by contrasting same-class retain and forget embeddings ( yr=yfy_r = y_f). (2) The Targeted Confusion Component actively diffuses the forget representations by hard-mining cross-class retain clusters ( yr≠yfy_r \neq y_f) and scattering the forget embeddings ( zfz_f) into these unrelated regions, achieving efficient erasure without global semantic collapse.

However, simply erasing an object class is often insufficient for real-world deployments when using pretrained VLMs. Consider an autonomous driving system: the model must reliably detect real physical cars to prevent collisions, but it must strictly avoid recognizing illustrated cars depicted on roadside advertisements as real vehicles Kawamura et al. [2025]. Standard class unlearning would blindly erase the concept of "car" entirely. This necessity has motivated the recent introduction of Approximate Domain Unlearning (ADU) Kawamura et al. [2025], which aims to selectively reduce recognition accuracy for images from specified "forget" domains while preserving accuracy for "retain" domains.

This requirement extends to high-stakes fields such as medical AI. Clinical VLMs pre-trained on internet-scale data often ingest "textbook diagrams" alongside real radiological scans Tu et al. [2024]. Because diagrams contain artificial shortcuts such as idealized geometries, color-coding, and bright arrows, models can learn spurious correlations Geirhos et al. [2020], DeGrave et al. [2021], leading to hallucinated diagnoses when deployed on noisy, real-world patient X-rays. To ensure safety, the "diagram" domain must be entirely unlearned.

Despite the clear practical motivation for domain unlearning, we identify a fundamental flaw in its current formulation and evaluation. Existing ADU methodologies typically evaluate unlearning performance on the exact same set of object classes that were presented during the unlearning fine-tuning phase Kawamura et al. [2025]. This closed-vocabulary protocol masks a critical failure mode: real-world environments are inherently open-ended. If an autonomous system is fine-tuned to unlearn illustrations using only common traffic classes, it will fail to generalize that domain erasure when encountering a billboard featuring a novel concept, such as a cartoon dinosaur. Similarly, in the medical domain, it is practically impossible to provide an unlearning algorithm with diagrammatic examples of every known rare disease during fine-tuning. If a domain erasure algorithm entangles stylistic features with the specific semantic classes seen during training, the VLM loses its foundational zero-shot ability to decouple pedagogical style from medical semantics on unseen, rare conditions. Furthermore, we demonstrate mathematically that current geometric regularizers exacerbate this catastrophic forgetting. Methods relying on maximizing the Maximum Mean Discrepancy (MMD) Gretton et al. [2012] to explicitly separate domain distributions in the latent space inadvertently compute a global displacement vector heavily biased by the semantic centroids of the seen unlearning classes. When applied via prompt tuning Kawamura et al. [2025], Zhou et al. [2022], MMD applies a global affine shift that misaligns and destroys the zero-shot generalization manifold for unseen classes. Similarly, rigid geometric regularizers like the hard-margin Triplet loss Hoffer and Ailon [2015] apply step-function gradients that treat all violations equally once a threshold is crossed. This induces gradient oscillation and promotes manifold translation wherein the forget domain is relocated into an isolated space rather than truly erasing its stylistic structure via scattering the representations locally.

To overcome these fundamental limitations, we formalize Open-Vocabulary Domain Unlearning (OVDU). We argue that true domain unlearning must be class-agnostic, enabling a model to unlearn a domain's stylistic properties using only a small proxy subset of classes ( CtrainC_{train}) and successfully generalizing that erasure to entirely unseen concepts ( CtestC_{test}). To achieve this, we build upon Fisher-guided unlearning principles Golatkar et al. [2020], Liu et al. [2023], we demonstrate that identifying and isolating parameters selectively sensitive to the forget domain projects gradient updates orthogonally to the semantic subspace. This provides a critical mathematical safeguard, insulating unseen classes from unlearning interference. To achieve true domain erasure, we introduce Targeted Manifold Scattering (TMS). Unlike MMD or hard hinge based Triplet Loss, TMS utilizes a graduated log-sigmoid formulation coupled with hard mining to force forget embeddings to actively mimic unrelated cross-class retain embeddings. This induces bounded, localized manifold diffusion, effectively shattering the stylistic geometry of the forget domain without disturbing global semantic alignment.

Our main contributions are summarized as follows:

• A Novel Problem Setting and Protocol: We identify the data leakage in current domain unlearning literature and introduce the Open-Vocabulary Domain Unlearning (OVDU) protocol, which rigorously evaluates zero-shot generalization by separating unlearning classes ( CtrainC_{train}) from testing classes ( CtestC_{test}).

• Targeted Manifold Scattering via Parameter Isolation: As our primary contribution, we introduce a continuous geometric objective, Targeted Manifold Scattering, which decouples retention and targeted confusion forces to actively scatter the stylistic geometry of the forget domain. By restricting gradient flow exclusively to domain-sensitive weights using Fisher Information Mask, we mathematically prevent semantic collapse on unseen classes, enabling our framework to vastly outperform existing baselines.

• Few-shot Sample Efficiency: Extensive evaluations across the three different domain generalization benchmarks validates that our framework decisively outperforms existing baselines under the rigorous OVDU protocol. Beyond superior zero-shot domain erasure on held-out classes, our approach yields exceptional sample efficiency, nearly halving the data requirements of prior methods.

References (32)