On Optimal Steering to Achieve Exact Fairness

Mohit Sharma, Amit Jayant Deshpande, Chiranjib Bhattacharyya, Rajiv Ratn Shah
9/19/2025
cs.LGcs.AI

No official code found. Best implementation: mohitsharma29/Optimal-Steering (0 stars, last commit 2025-10-23).

Abstract

To fix the 'bias in, bias out' problem in fair machine learning, it is important to steer feature distributions of data or internal representations of Large Language Models (LLMs) to ideal ones that guarantee group-fair outcomes. Previous work on fair generative models and representation steering could greatly benefit from provable fairness guarantees on the model output. We define a distribution as ideal if the minimizer of any cost-sensitive risk on it is guaranteed to have exact group-fair outcomes (e.g., demographic parity, equal opportunity)-in other words, it has no fairness-utility trade-off. We formulate an optimization program for optimal steering by finding the nearest ideal distribution in KL-divergence, and provide efficient algorithms for it when the underlying distributions come from well-known parametric families (e.g., normal, log-normal). Empirically, our optimal steering techniques on both synthetic and real-world datasets improve fairness without diminishing utility (and sometimes even improve utility). We demonstrate affine steering of LLM representations to reduce bias in multi-class classification, e.g., occupation prediction from a short biography in Bios dataset (De-Arteaga et al.). Furthermore, we steer internal representations of LLMs towards desired outputs so that it works equally well across different groups.

View on arXivView PDF

Code Implementations(1)

On Optimal Steering to Achieve Exact Fairness (Neurips 2025)

01Jupyter NotebookApr 1, 202512 months ago

Similar Papers

Cite this paper

@article{sharma2025optimal,
  title  = {On Optimal Steering to Achieve Exact Fairness},
  author = {Mohit Sharma and Amit Jayant Deshpande and Chiranjib Bhattacharyya and Rajiv Ratn Shah},
  year   = {2025},
  eprint = {2509.15759},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2509.15759v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2509.15759.svg)](https://codeofpaper.com/paper/2509.15759)

Discussion