TL;DR
Standard concept erasure methods for foundation model embeddings often "erase the wrong thing" by targeting population-level statistics, which can destroy authorized task signals while failing to prevent sensitive attribute leakage within specific task groups. This paper introduces TC-LEACE, a task-conditional erasure method that preserves utility by protecting sensitive information only where it exceeds what the authorized task already reveals.
What Problem Does This Paper Address?
Sharing precomputed image embeddings (from models like CLIP or DINOv2) is a common way to enable collaborative research without the massive overhead of sharing raw images. However, these embeddings are "privacy-leaky"—they often contain information about sensitive attributes (e.g., a patient's race or treatment history) that are unrelated to the authorized task (e.g., diagnosing a disease).
Existing "concept erasure" methods like LEACE (Least-squares Concept Erasure) attempt to solve this by making the sensitive attribute linearly un-predictable across the entire population. The authors identify two major failure modes in this "global" approach when the authorized task ($W$) and the sensitive attribute ($Z$) are statistically associated:
- Utility Loss: Global erasure removes directions that predict $W$ simply because they are correlated with $Z$, even if that information is "permitted" by the task itself.
- Residual Conditional Leakage: Even if $Z$ is un-predictable globally, it may remain highly decodable among samples that share the same task label. For example, in a medical dataset, an eraser might make "chest tube status" un-predictable overall, but a simple linear probe could still detect it perfectly if it only looks at patients already diagnosed with "pneumothorax."
Methods
The authors propose Task-Conditional LEACE (TC-LEACE). While standard LEACE applies a single global projection to equalize the means of sensitive groups, TC-LEACE is more surgical.
- The Core Idea: Instead of erasing the global association, TC-LEACE identifies the sensitive attribute's signal within each task stratum (e.g., the signal for $Z$ among samples where $W=0$ and the signal among samples where $W=1$).
- The Algorithm: It estimates within-stratum cross-covariances and applies a unified post-hoc affine transformation. This removes the "within-label" sensitive signal while intentionally allowing the "W-mediated" component—the part of the sensitive attribute that is naturally revealed by the task label itself (imputation).
- Post-hoc & Efficient: Like its predecessor, TC-LEACE is a closed-form solution that doesn't require retraining the foundation model. It can be fitted once by a data custodian and applied to all shared embeddings with $O(d)$ cost per embedding.
Datasets
The researchers evaluated their approach on two distinct types of data:
- CelebA: A large-scale face dataset. They analyzed 85 different attribute pairs (e.g., using "Smiling" as the task and "High Cheekbones" as the sensitive attribute) to see how erasure performance scales with different levels of statistical association.
- CANDID-PTX: A medical dataset of chest radiographs. The authorized task ($W$) was pneumothorax detection, and the sensitive attribute ($Z$) was the presence of a chest tube. This pair has a strong clinical association, making it a perfect "real-world" test case for conditional leakage.
Key Insights and Ideas
- The Incompatibility Proof: The authors mathematically prove that if a task and a sensitive attribute are associated, you cannot achieve both global and task-conditional linear guardedness while preserving a useful task signal. Global erasure is fundamentally at odds with conditional privacy.
- Audits are Misleading: Standard privacy audits (checking if a linear probe is "at chance" on the whole dataset) can pass a release that still contains significant sensitive information within task groups. The authors argue for conditional audits as the new gold standard.
- Utility Cost is Predictable: The paper derives a closed-form prediction for the utility cost of global erasure based on pre-erasure statistics. They show that the loss concentrates on "cross-group" pairs—comparisons between samples where the task and sensitive labels don't match the population-level association.
Key Results
- Medical Case Study (CANDID-PTX): Standard LEACE caused a massive 17.6% drop in linear task utility. TC-LEACE recovered most of this, reducing the loss to just 4.2%, all while keeping conditional leakage at the same level as LEACE.
- CelebA Generality: Across 85 attribute pairs, TC-LEACE consistently outperformed LEACE in utility, especially for strongly associated pairs.
- Conditional Leakage Persistence: The study found that conditional leakage persists across all four tested vision foundation models (CLIP, DINOv2, SigLIP, MAE) after standard global erasure, highlighting a systemic vulnerability in current defense practices.
Limitations and Future Work
- Linearity: Both LEACE and TC-LEACE primarily target linear attackers. While the authors evaluate non-linear MLP attackers, the mathematical guarantees only hold for linear probes. Developing non-linear conditional erasers remains an open challenge.
- Binary Constraints: The current framework is designed for binary tasks and binary sensitive attributes. Extending this to multi-class or continuous variables would increase its practical utility.
- Label Requirements: TC-LEACE requires joint labels for both the task and the sensitive attribute during the fitting phase, which might not always be available to the data custodian.
Summary updated