Riemannian Geometry for Fairness in Attention Mechanisms of Language Models

We propose a method, Curvature-Aware Fairness in Attention (CAFA), for mitigating demographic biases in transformer-based language models. By viewing the attention space as a Riemannian manifold, CAFA adjusts the metric tensor and Ricci curvature to reshape how tokens interact. Our analysis proves that these geometric modifications alter geodesic paths, driving attention away from stereotypical associations. Curvature modifications constrain the spread of biased signals by influencing the manifold's geodesic flow, resulting in a more balanced attention distribution across diverse contexts. Empirical evaluations on the StereoSet benchmark show a notable reduction in stereotype scores, with only a minimal impact on language modeling performance.

Authors

Institutions

Publication Details

Published
2025-02-03
DOI
https://doi.org/10.1109/icsc64641.2025.00039
Primary Topic
Morphological variations and asymmetry
Type
article
Field-Weighted Citation Impact
0.00
Controls
|||
ALL TIME
JAN
FEB
MAR
APR
MAY
JUN
JUL
AUG
SEP
OCT
article

Riemannian Geometry for Fairness in Attention Mechanisms of Language Models

Alexander Jesser, Md Nur Amin
Morphological variations and asymmetry
article

Riemannian Geometry for Fairness in Attention Mechanisms of Language Models

Alexander Jesser, Md Nur Amin
article en

Abstract

We propose a method, Curvature-Aware Fairness in Attention (CAFA), for mitigating demographic biases in transformer-based language models. By viewing the attention space as a Riemannian manifold, CAFA adjusts the metric tensor and Ricci curvature to reshape how tokens interact. Our analysis proves that these geometric modifications alter geodesic paths, driving attention away from stereotypical associations. Curvature modifications constrain the spread of biased signals by influencing the manifold's geodesic flow, resulting in a more balanced attention distribution across diverse contexts. Empirical evaluations on the StereoSet benchmark show a notable reduction in stereotype scores, with only a minimal impact on language modeling performance.

Heilbronn University (DE)
Quality Education
Openalex Percentile: Top 81%
Morphological variations and asymmetry
AI Navigator

Ask Laika to Summarize, Analyze, and Connect papers live on the map.

Summarize Papers & Methodologies

Extract key findings, datasets, and comparative methods across publications.

Benchmark Rankings & Visual Analytics

Rank top research institutions, authors, funders, topics, and journals by Field-Weighted Citation Impact (FWCI) and paper volume with instant charts.

Connect Distant Disciplines

Bridge topological clusters on the map to find hidden collaborative intersections.