TL;DR
When trying to scrub sensitive attributes (like race or gender) from neural network representations, most algorithms play cat-and-mouse: they declare an embedding "clean" simply because a specific linear probe or adversary fails to read the secret. KINDER skips the guessing game by lifting features into a kernel space, explicitly mapping out how demographic groups differ geometrically, and slicing that exact subspace out. Because it operates as a modular, differentiable block, you can drop it into almost any architecture—end-to-end or post-hoc—across text, vision, and tabular tasks.
What Problem Does This Paper Address?
Suppose you train a deep model and want to reuse its intermediate representations for downstream tasks without leaking demographic bias. This is the realm of concept erasure: removing protected attributes while preserving useful task information.
Existing projection-based erasure methods suffer from a few subtle traps:
- Decoder dependence: They usually define "erasure" indirectly—for instance, finding a projection where a linear classifier or specific kernel adversary can no longer predict gender. That guarantees a linear probe is blind to gender, not that the representation itself is genuinely clean against nonlinear downstream heads.
- Post-hoc mismatch: Most projection methods are applied after training on frozen embeddings. Slicing dimensions off a frozen vector warps its geometry, leaving the original task head mismatched and causing utility bottlenecks.
- Intersectional Blindspots: Real-world fairness involves overlapping, imbalanced attributes (e.g., race and age and gender simultaneously), whereas standard methods are largely tested on single binary attributes.
Methods
Instead of training an adversary to hunt for sensitive attributes, KINDER (Kernel-based Independence for Fair Representation Learning via Prototype-space Erasure) measures group differences directly from the geometry of the features. It acts as a plug-and-play layer between an encoder and a prediction head in three steps:
- Uplifting to a Kernel Space: Nonlinear relationships in your encoder's output become linear if you map them to a high-dimensional Reproducing Kernel Hilbert Space (RKHS). To keep computation fast and finite, KINDER approximates a Gaussian RBF kernel using standard Random Fourier Features (RFF)—essentially projecting features through random cosine waves.
- Tracking Group Prototypes: Within this lifted space, KINDER tracks "prototypes" (statistical summaries like group means, covariances, or higher-order moment sketches) for each demographic group using an Exponential Moving Average (EMA) across mini-batches.
- Subspace Erasure via Sequential SVD: KINDER compares each group's prototype to the global average. Using Singular Value Decomposition (SVD) sequentially across moment orders, it identifies the exact directions where protected groups diverge—the nuisance subspace—and projects the features onto its orthogonal complement.
What's new here is combining classical RFF kernel approximations with explicit EMA prototype tracking and sequential SVD inside a loss-agnostic, differentiable block. During inference, individual sensitive labels aren't even needed—every input passes through the fixed cleaning projector.
Datasets
The authors do not introduce new datasets, opting instead to stress-test KINDER across an unusually wide sweep of established benchmarks:
- Text (Supervised Classification, Post-hoc): Bias in Bios (occupation vs. gender) and Moji (sentiment vs. dialect/race).
- Tabular (Classification & Regression): MIMIC-IV (clinical healthcare outcomes with intersectional gender, race, and age) and Communities and Crime.
- Medical Imaging (Segmentation): FairSeg (retinal image segmentation across race, gender, and ethnicity).
- Vision & Multimodal (Self-Supervised Learning): CelebA (unimodal I-JEPA) and Harvard-FairVLMed (multimodal CLIP and FactorCL).
Key Insights and Ideas
- Clean the representation, don't just fool the probe: By equalizing group prototypes in a universal kernel space, KINDER provides theoretical guarantees of independence at the representation level (up to the expressive power of the chosen prototype family), meaning downstream models of any architecture can't easily recover the erased attribute.
- End-to-end adaptation beats post-hoc surgery: On MIMIC-IV classification, swapping a native end-to-end head for a post-hoc linear probe caused accuracy to plummet from 92.0% to 80.6%. Because KINDER allows gradients to flow back into the encoder during training, the network learns to reroute task-relevant signals around the erased directions.
- Spatial and continuous tasks work out of the box: Fairness methods often rely on tweaking classification thresholds. Because KINDER cleans intermediate features without touching the task loss, it seamlessly handles pixel-level image segmentation boundaries and continuous regression targets.
Key Results
Across modalities, KINDER consistently pushes the Pareto frontier of utility and fairness:
- Text Classification: On BIOS (with BERT), KINDER boosts both overall accuracy (from 80.9% to 81.9%) and worst-group macro-F1 (70.7% to 73.9%), while cutting the worst-class True Positive Rate (TPR) gap from 47.3 to 41.5.
- Tabular Intersectional Fairness: On MIMIC-IV classification (TabM backbone), end-to-end KINDER improves F1 from 39.9% to 45.5% while slashing the racial fairness gap from 23.2% to 15.4% and gender gap from 2.1% to 0.7%.
- Medical Segmentation: On FairSeg (UNet), KINDER improves overall Dice overlap (81.4 to 83.7) while dramatically shrinking the intersectional boundary error gap (HD95 gap drops from 30.7 down to 5.4).
- Multimodal SSL: On FairVLMed with CLIP, KINDER cuts ethnicity disparity from 14.2 to 5.9 and gender disparity from 4.0 to 1.6, lifting worst-group intersectional accuracy from 41.9% to 50.0%.
Limitations and Future Work
- Requires sensitive labels during fitting: Like standard supervised fairness tools, KINDER requires access to protected-attribute labels during training (or projector estimation) to build its group prototypes, even though labels aren't needed at test time.
- Moment-only prototypes tested: While KINDER's mathematical framework supports arbitrary prototype functionals, the experiments strictly evaluate moment-based statistics (means, covariances, and higher-order directional sketches). Exploring richer, non-moment prototype families on broader datasets remains open for future work.
Summary updated