Coupling Fairness and Pruning in a Single Run: a Bi-level Optimization Perspective

Yucong Dai, Gen Li, Feng Luo, Xiaolong Ma, Yongkai Wu · Submission to ICLR 2024 · Rejected

TL;DR

Pruning deep neural networks reduces compute and memory footprint, but standard pruning methods notoriously amplify demographic bias against underrepresented groups. This paper introduces Bi-level Fair Pruning (BiFP), a unified bi-level optimization framework that couples weight updating and mask selection with differentiable fairness constraints in a single training run. BiFP achieves high sparsity and accuracy while curbing bias, slashing the training iterations needed by over 94% compared to standard two-stage pipelines.

What Problem Does This Paper Address?

While network pruning is widely used to deploy compact models on edge devices, recent studies reveal an alarming side effect: compression disproportionately harms performance on minority or sensitive sub-groups (e.g., accuracy drops more sharply for female faces in facial analysis tasks).

Intuitive remedies fall back on sequential heuristics—either making a model fair and then pruning it, or pruning first and fine-tuning with fairness constraints. However, both approaches falter: pruning a fair model strips away fairness-critical weights, while fine-tuning a sparse model with fairness penalties triggers substantial accuracy degradation. This work tackles the challenge of identifying sparse sub-networks that remain accurate, fair, and computationally efficient to discover in a single, coupled procedure.

Methods

The authors formulate fair compression as a constrained bi-level optimization problem:

$$\min_{m} \frac{1}{n}\sum_{i=1}^n \ell_c(f_{m \odot \theta^*(m)}(x_i), y_i)$$ $$\text{s.t. } \theta^*(m) = \arg\min_{\theta} \frac{1}{n}\sum_{i=1}^n \ell_c(f_{m \odot \theta}(x_i), y_i) \quad \text{s.t. } F(f_{m \odot \theta}, \mathcal{D}; M) \le \tau$$

Key components include:

  • Bi-Level Variable Split: The upper-level objective optimizes the pruning mask scores $m$, while the lower-level objective updates the network parameters $\theta$ conditioned on $m$.
  • Simultaneous Fairness Regularization: Instead of restricting fairness penalties to the weights, fairness objectives are actively incorporated into updates for both the relaxed mask $m$ and weights $\theta$.
  • Convex Relaxation of the Fairness Constraint: Because group-level accuracy disparity relies on non-differentiable indicator functions, the authors rewrite the fairness constraint (Equalized Accuracy) using a continuous, convex surrogate $u(\cdot)$ weighted by group priors $P(S_i)$.
  • Continuous Mask Relaxation: Mask values are relaxed into continuous parameters $m \in [0, 1]$ during optimization, allowing analytic gradients $\text{grad}(m)$ to drive mask updates via gradient descent.
  • Flexibility: The formulation supports both structured pruning (BiFP-str) and unstructured pruning (BiFP-uns).

Datasets

The authors evaluate BiFP on two facial attribute benchmarks:

  • CelebA: Evaluated on target attributes Blond Hair and Bags-Under-Eyes, with Gender as the sensitive attribute.
  • LFW (Labeled Faces in the Wild): Evaluated on target attributes Wavy-Hair and Big-Nose, with Gender as the sensitive attribute.

Evaluated architectures include ResNet10 and MobileNetV2.

Key Insights and Ideas

  • Masks must be fairness-aware, not just weights: Ablation experiments show that optimizing fair weights under a naive mask (BiFP w/o m) fails at higher sparsity levels. Once weights are aggressively zeroed out, parameter adjustments alone cannot compensate for lost demographic equity—the network topology itself must encode fairness.
  • Loss surface geometry reveals isolated basins: Linear loss interpolation between models shows a steep barrier (loss basin separation) between full BiFP and models lacking mask constraints (BiFP w/o m), demonstrating that standard pruning pushes models into local minima that permanently damage equitable predictions.
  • End-to-end efficiency beats two-stage pipelines: Simultaneously penalizing bias during mask discovery and weight updates avoids the destructive cycle where pruning undoes fairness gains and fine-tuning degrades sparsity-induced benefits.

Key Results

  • Bias Mitigation at High Sparsity: Across ResNet10 and MobileNetV2, conventional baselines (SNIP, Lottery Ticket Hypothesis, FPGM) exhibit surging demographic bias as sparsity increases past 50–70%. BiFP consistently maintains low bias up to 80% sparsity while preserving or even slightly exceeding baseline accuracy.
  • Pareto-Dominant Trade-Off: Plotting accuracy versus bias at 70% sparsity demonstrates that BiFP yields strictly higher accuracy for any targeted bias threshold compared to Fair-FPGM, Fair-Lottery, and Fair-SNIP.
  • Extreme Training Speedup: Achieving comparable fairness and accuracy via standard two-stage methods (prune then retrain) takes thousands of extra steps. BiFP cuts training cost by 94.05% on CelebA and 94.22% on LFW.

Limitations and Future Work

  • Domain & Attribute Scope: Experiments focus exclusively on computer vision face-attribute tasks with a single binary sensitive attribute (Gender). Extending the method to intersectional fairness, continuous attributes, or NLP/tabular domains is left unexplored.
  • Bi-level Optimization Overhead: Although BiFP converges in vastly fewer epochs than two-stage fine-tuning, computing implicit hypergradients ($\frac{d\theta^*(m)}{dm}$) incurs non-negligible per-iteration memory and gradient overhead.
  • Model Scale: Experiments evaluate relatively compact backbones (ResNet10, MobileNetV2); validating the framework on large modern foundation models remains an open avenue.

Summary updated

BibTeX
@misc{dai2023coupling,
  author = {Yucong Dai and Gen Li and Feng Luo and Xiaolong Ma and Yongkai Wu},
  title = {{Coupling Fairness and Pruning in a Single Run: a Bi-level Optimization Perspective}},
  year = {2023},
  eprint = {2312.10181},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.10181},
}
Figure