BiasFlow: Geometric Monitoring and Backbone Regularization for Spurious Feature Reliance
Organizations: Vector Institute, Toronto, Canada
Abstract
Worst-group accuracy (WGA) evaluates a trained predictor but does not characterize how its frozen backbone behaves when a new head is learned. We introduce BiasFlow, a hook-based toolkit for monitoring class-attribute centroid alignment (IBMI), within-class centroid separation (W-IBMI), and feature-projection sensitivity. IBMI is confounded by class-attribute correlation and is not a measure of causal feature reliance. We pair these diagnostics with BiasFlow Regularization (BFR), a supervised, composable class-conditional centroid-alignment penalty. W-IBMI verifies the quantity BFR optimizes; it is scale dependent and does not independently establish attribute removal. Across the reported small-scale benchmarks, adding BFR improves or preserves mean WGA, with gains up to +26.0 pp on UrbanCars. The principal independent stress test freezes CelebA-Std backbones and trains fresh heads on biased data: BFR+GroupDRO improves WGA from 40.7% to 64.1%, while Male probe accuracy decreases from 92.5% to 72.2%. Attribute information remains recoverable, and cross-task results are mixed. A controlled synthetic-watermark ImageNet experiment additionally improves watermark-shift accuracy by +23.0 pp under matched training. These results support evaluating centroid geometry and resistance to biased head retraining alongside WGA, within the tested protocols.
Figures & tables
| Dataset | Arch | Opt | lr | wd | mom | bs | Epochs |
| CelebA (R18) | R18 | SGD | 1e-4 | 1e-4 | 0.9 | 128 | 50 |
| CelebA (R50) | R50 | SGD | 1e-4 | 1e-4 | 0.9 | 128 | 50 |
| CelebA-MB | R18 | SGD | 1e-3 | 1e-4 | 0.8 | 64 | 50 |
| UrbanCars | R50 | SGD | 1e-3 | 1e-3 | 0.1 | 128 | 60 |
| Waterbirds | R50 | SGD | 1e-3 | 1e-4 | 0.9 | 128 | 300 |
| Method overrides (applied on top of dataset defaults): | |||||||
| Method | CelebA R18 | CelebA R50 | CelebA-MB R18 | UrbanCars † R50 | Waterbirds R50 |
| ERM | / | ||||
| LfF | / | ||||
| JTT | / | ||||
| DFR | / | ||||
| DebiAN | / | ||||
| GroupDRO | N/A ‡ | / |
| CelebA-Std (ResNet-18) | CelebA-MB (ResNet-18) | |||||
| Method | Paradigm | Published WGA | Reproduced WGA | +BFR WGA | Reproduced WGA | +BFR WGA |
| ERM | Baseline | 37.9 | 43.9 1.2 | 54.6 2.6 | 40.3 1.6 | 53.9 2.7 |
| LfF | Loss-reweight | 43.3 | 58.7 2.1 | 61.7 2.3 | 49.1 3.3 | 67.7 2.3 |
| JTT | Loss-reweight | 81.1 | 81.1 0.4 | 82.2 0.5 | 62.7 3.8 | 69.3 2.6 |
| DFR †‡ | Head-retrain | 92.9 | 80.6 2.5 | 81.9 1.0 | 73.9 0.8 | 75.7 1.0 |
| DebiAN | Loss-reweight | 52.9 | 64.4 3.2 | 65.4 5.3 | 46.9 4.2 | 58.4 2.4 |
| CelebA R18 | CelebA R50 | Waterbirds R50 | ||||
| Method | Base | +BFR | Base | +BFR | Base | +BFR |
| ERM | ||||||
| LfF | ||||||
| JTT | ||||||
| DFR | ||||||
| DebiAN | ||||||
| WGA (%) | ||||
| Method | Paradigm | Published | Reproduced | +BFR |
| ERM | Baseline | 47.7 | ||
| LfF | Loss-reweight | 77.2 | ||
| JTT | Loss-reweight | 81.5 | ||
| DFR † | Head-retrain | 80.7 | ||
| DebiAN | Loss-reweight | — | ||
| UrbanCars (R50) | Waterbirds (R50) | ||||
| Method | Paradigm | ID Acc (base / +BFR) | WGA (base / +BFR) | Avg Acc (base / +BFR) | WGA (base / +BFR) |
| ERM | Baseline | / | / | / | / |
| LfF | Loss-reweight | / | / | / | / |
| JTT ∗ | Loss-reweight | / | / | / | / |
| DFR † | Head-retrain | / | / | / | / |
| DebiAN | Loss-reweight | / | / | / | / |
| Method | CelebA-Std | CelebA-Std | CelebA-MB | UrbanCars |
| (R18) | (R50) | (R18) | (R50) | |
| GroupDRO | ||||
| BFR + GroupDRO | ||||
| WGA (pp) |
| ERM | BFR | ||
| OOD accuracy (%, ) | |||
| Val (ID) | |||
| IN-W | |||
| IN-R | |||
| IN-Stylized | |||
| mixed_same | |||
| Method | Paradigm | Biased WGA ( ) | Male Probe ( ) |
| (base / +BFR) | (base / +BFR) | ||
| ERM | Baseline | / | / |
| LfF | Loss-rewt. | / | / |
| JTT | Loss-rewt. | / | / |
| DFR | Head-retrain | / | / |
| DebiAN | Loss-rewt. | / | / |
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| Mode | ERM | LfF | JTT | DFR | DebiAN |
| Baseline (no BFR) | 38.3 | 50.9 | 75.7 | 79.6 | 66.5 |
| orth | 37.8 | 62.8 | 76.9 | 78.3 | 66.1 |
| spectral | 39.5 | 40.0 | 0.6 | 38.3 | 46.7 |
| inv | 61.1 | 82.8 | 78.8 | 81.1 | 77.2 |
| Method | Trend | ||||
| ERM | 48.9 | 55.6 | 61.1 | 64.4 | monotone |
| LfF | 82.2 | 82.2 | 82.8 | 80.0 | peaked at 20 |
| JTT | 78.8 | 78.6 | 76.1 | , collapses at 30 | |
| DFR | 75.6 | 79.4 | 81.1 | 77.2 | peaked at 20 |
| DebiAN | 66.1 | 71.7 | 77.2 | 46.7 | peaked at 20 |
| Selected : 1 for JTT; 20 for all others. | |||||
| Method | Initial WGA (base / +BFR) | Final WGA (base / +BFR) |
| ERM | / 54.6 2.6 | / 42.6 1.1 |
| LfF | / 61.7 2.3 | 46.9 0.3 / |
| JTT | / 82.2 0.5 | / 44.8 2.1 |
| DFR | / 81.9 1.0 | / 63.5 12.7 |
| DebiAN | / 65.4 5.3 | / 45.7 2.5 |
| GroupDRO | / 88.0 1.5 | / 44.4 0.5 |
| Method | Paradigm | Acc ( ) | Mean Group Acc ( ) | WGA ( ) | Group Disparity ( ) |
| ERM | Baseline | / 81.9 0.8 | / 81.2 0.8 | / 76.9 1.3 | / 6.5 0.5 |
| LfF | Loss-rewt. | 77.8 2.1 / | 77.1 2.1 / | 71.0 1.5 / | 10.9 0.2 / |
| JTT | Loss-rewt. | 80.1 0.4 / | 79.2 0.4 / | 71.3 0.5 / | 13.1 0.7 / |
| DFR | Head-retrain | 80.1 0.3 / | 79.3 0.4 / | / 73.5 1.1 | / 7.1 1.6 |
| DebiAN | Loss-rewt. | 80.2 2.1 / | 79.4 2.2 / | 72.9 2.6 / | / 10.9 6.4 |
| GroupDRO | Supervised | / 82.4 0.3 | / 82.1 0.4 | / 79.6 0.3 | / 5.5 0.4 |
| ERM | LfF | JTT | DFR | DebiAN | GroupDRO | ||||||||||||||
| Attribute | Base | +BFR | Base | +BFR | Base | +BFR | Base | +BFR | Base | +BFR | Base | +BFR | |||||||
| Narrow_Eyes | .013 | 85.3 | 85.3 | 85.1 | 85.1 | 85.2 | 85.1 | 85.1 | 85.1 | 85.1 | 85.1 | 85.3 | 85.1 | ||||||
| Blurry | .026 | 95.5 | 95.1 | 95.2 | 94.9 | 95.6 | 95.0 | 95.4 | 94.9 | 95.3 | 95.0 | 95.5 | 94.9 | ||||||
| Straight_Hair | .063 | 81.2 | 79.7 | 79.9 | 79.0 | 81.5 | 79.5 | 80.3 | 79.0 | 80.1 | 79.0 | 81.3 | 79.4 | ||||||
| Pale_Skin | .076 | 96.0 | 95.8 | 95.9 | 95.8 | 96.0 | 95.8 | 95.9 | 95.8 | 96.0 | 95.8 | 96.0 | 95.8 | ||||||
| Mouth_Open | .100 | 74.7 | 75.4 | 68.2 | 62.9 | 74.3 | 69.6 | 73.2 | 65.7 | 74.3 | 61.2 | 74.2 | 73.9 | ||||||
| Method | Biased test WGA | Male test accuracy | Balanced test WGA |
| ERM | / | / | / |
| LfF | / | / | / |
| JTT | / | / | / |
| DFR | / | / | / |
| DebiAN | / | / | / |
| GroupDRO | / | / | / |