Differentiable Optimization Layers for Guaranteed Fairness in Deep Learning

📅 2026-05-16
📈 Citations: 0
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work addresses the challenge of enforcing strict output fairness constraints in deep learning models under streaming prediction and small-batch settings, where conventional batch-based fairness methods fall short. To this end, the authors propose a differentiable “fairness layer” integrated at the network output to hard-enforce prescribed fairness criteria. They further introduce the first online primal-dual inference algorithm capable of operating on arbitrarily small batches, thereby overcoming the limitations of traditional batch-constrained approaches. Notably, this is the first method to employ a differentiable optimization layer for enforcing aggregate fairness, complemented by stability analysis within backpropagation to ensure differentiability and convergence during training. Experiments demonstrate that the proposed framework rigorously satisfies fairness requirements without compromising model performance, with both theoretical analysis and empirical results confirming its efficacy.
📝 Abstract
Differentiable optimization layers are traditionally integrated in predict-then-optimize frameworks where a neural model estimates parameters that subsequently serve as fixed inputs to downstream decision-making optimization problems. In this work, we introduce the concept of a "fairness layer": a differentiable optimization layer appended to a model's output layer that guarantees a chosen notion of output parity is satisfied when integrated into a neural network. Additionally, we introduce an online primal-dual inference algorithm that provides provable aggregate fairness guarantees for streaming predictions with arbitrarily small batch sizes, where traditional per-batch constraints become overly restrictive. Numerical experiments demonstrate the effectiveness of the fairness layer and associated algorithm, and theoretical analysis characterizes the layer's differentiability and stability properties during model training and backpropagation. Our code for these experiments is publicly available on GitHub (https://github.com/dtroxell19/FairDL-ICML-2026.git) and our public Python package documentation can be found online: https://dtroxell19.github.io/fairness_training/.
Problem

Research questions and friction points this paper is trying to address.

fairness
differentiable optimization
deep learning
output parity
streaming predictions
Innovation

Methods, ideas, or system contributions that make the work stand out.

differentiable optimization
fairness layer
predict-then-optimize
online primal-dual algorithm
aggregate fairness guarantees
🔎 Similar Papers
D
David Troxell
Department of Statistics & Data Science, University of California, Los Angeles, USA
N
Noah Roemer
Department of Statistics & Data Science, University of California, Los Angeles, USA
G
Guido Montúfar
Department of Statistics & Data Science, University of California, Los Angeles, USA; Department of Mathematics, University of California, Los Angeles, USA; Max Planck Institute for Mathematics in the Sciences, Leipzig, Germany