Generalizing Orthogonalization for Models with Non-Linearities

David Rügamer, Chris Kolb, Tobias Weber, Lucas Kook, Thomas Nagler

Introduction

In the pursuit of robust and fair machine learning, "orthogonalization" has emerged as a vital technique for stripping unwanted information from model representations. Whether the goal is to remove racial bias from medical diagnostics or to eliminate metadata "shortcuts" in scientific modeling, the objective remains the same: ensuring that a model's predictions are statistically independent of specific nuisance variables. However, traditional orthogonalization methods are largely restricted to linear contexts. This research introduces a generalized framework that extends these techniques to the non-linear architectures—such as those utilizing ReLU activations and sigmoid functions—that define modern deep learning.

The Problem: Residual Bias in Non-Linear Systems

Deep learning models are notorious for learning "shortcuts." For instance, a convolutional neural network (CNN) trained on chest X-rays might inadvertently learn to identify a patient’s race or age from the scan—features that human experts cannot reliably discern—and use that information as a proxy for medical predictions.

To mitigate this, researchers employ orthogonalization to ensure internal representations are uncorrelated with protected features. The limitation of existing tools is their reliance on linear assumptions. In a non-linear model, or when using non-linear evaluation metrics like classification probabilities, standard linear projections often leave behind "residual" information. This residual data allows the model to remain biased even after a supposed correction has been applied.

A New Framework for Correction

The authors propose a comprehensive framework defined by three distinct components:

  1. The Prediction Model ($M^p$): The primary model performing the task (e.g., a disease classifier).
  2. The Correction Routine ($C^h$): The specific algorithm that modifies the model to excise unwanted information.
  3. The Evaluation Model ($M^e$): A "judge" model used to verify whether the influence of protected features has been successfully removed.

The core innovation lies in extending the correction routine to handle Generalized Linear Models (GLMs) and Piece-wise Linear Activations (ReLU).

Handling GLMs and ReLU

For GLMs, the authors utilize the Modified Differential Multiplier Method (MDMM), a constrained optimization approach. Rather than a simple geometric projection, they solve an optimization problem that forces the coefficients of the "judge" model to zero.

Perhaps more surprisingly, the authors provide a mathematical proof (Theorem 5) regarding ReLU-based layers and tensor-valued predictions. They demonstrate that for ReLU activations, a specific type of linear projection applied to pre-activations is sufficient to achieve non-linear independence in the post-activations. This provides an elegant, computationally efficient shortcut for implementing orthogonalization in deep learning architectures.

Experimental Validation

The framework was validated across a diverse array of data modalities:

  • Medical Imaging (MIMIC-CXR): Removing race, sex, and age information from self-supervised embeddings.
  • Computer Vision (UTKFace): Performing sex classification while blinding the model to age and race.
  • Tabular Data: Standard fairness benchmarks including Adult Income, Bank, and COMPAS datasets.
  • Natural Language Processing: Using LSTMs to predict movie review counts while removing gender bias from metadata.
  • Synthetic Controls: A colorized MNIST dataset where color served as a "shortcut" for digit identification.

Key Insights

Beyond Fairness

The authors distinguish their work from general "Fair Machine Learning." While fairness methods often negotiate a trade-off between accuracy and bias, orthogonalization acts as a hard constraint. It forces correlation to zero, which is essential for "identifiability" in scientific contexts where researchers must be certain that a specific variable is not influencing the outcome.

The ReLU Advantage

The finding that linear projections of pre-activations suffice for ReLU layers is a significant practical contribution. It simplifies the integration of these constraints into standard neural network training pipelines without requiring complex non-linear optimization at every layer.

Performance Gains

A common concern is that removing information will degrade model performance. However, the authors found that on the MIMIC-CXR dataset, their generalized method led to a 0.02 increase in AUC for detecting pleural effusion. This suggests that by forcing the model to ignore "nuisance" variables, it is compelled to focus on more relevant, robust features, thereby improving generalization.

Results and Limitations

In tabular experiments, the "judge" model's coefficients for sensitive attributes dropped from highly significant (p < 2e-16) to effectively zero (p > 0.95) post-correction. In the colorized MNIST test, the corrected model successfully ignored the "cheat" color information, leading to significantly higher accuracy on randomized test sets compared to uncorrected models.

Despite these successes, the method has limitations. It requires the number of observations ($n$) to be larger than the number of features ($p$), which may pose challenges for high-dimensional intermediate layers in small datasets. Furthermore, the method requires researchers to pre-identify the features they wish to remove; it cannot "blind" a model to biases that have not been explicitly measured. Finally, while the method removes first-order correlation, it does not strictly guarantee full stochastic independence, a frontier the authors suggest exploring with non-linear "judge" models in future work.

Summary updated

BibTeX
@inproceedings{rugamer2024generalizing,
  author = {David Rügamer and Chris Kolb and Tobias Weber and Lucas Kook and Thomas Nagler},
  title = {{Generalizing Orthogonalization for Models with Non-Linearities}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=p9SMltcfsu},
}
Figure