Null It Out: Guarding Protected Attributes by Iterative Nullspace Projection

TL;DR

INLP(迭代空零空间投影)方法通过多轮训练线性分类器,逐步去除神经表示中的偏见信息,有效缓解词向量中的性别偏差。

cs.CL 🔴 高级 2020-04-16 593 引用 46 次浏览
Shauli Ravfogel Yanai Elazar Hila Gonen Michael Twiton Yoav Goldberg
自然语言处理 偏见缓解 神经网络 线性投影 公平性

核心发现

方法论

本文提出的INLP方法基于反复训练线性分类器,识别并学习保护属性(如性别、种族)在神经表示中的线性方向。每轮训练后,利用该分类器的参数矩阵计算其null空间投影矩阵,将表示投影到该空间中,从而逐步消除与保护属性相关的线性信息。该过程持续多轮,直到无法通过线性分类器预测保护属性。该方法结合了投影和学习的优点,避免了预定义方向的局限性,同时无需对抗训练的复杂性。具体流程包括:训练分类器、计算null空间、投影表示、重复迭代,最终得到一个线性保护属性不可预测的表示空间。该方法在偏见词向量和公平分类任务中均表现出优越性能。

关键结果

  • 在词向量偏见缓解中,INLP将性别分类准确率从100%降至49.3%,而传统方法如手工定义的性别方向仅降至80.7%。同时,线性可预测性大幅下降,非线性分类(MLP)仍能以85%的准确率识别性别,表明偏见被线性去除,但非线性信息仍存。
  • 在偏见词向量的可视化中,t-SNE投影显示性别偏差明显减弱,类别间的线性可分性由83.88%的重叠度降至0.44%。WEAT测试显示偏见关联显著减弱,偏见-邻居分析也表明偏见信息大部分被消除。
  • 在公平分类任务中,利用INLP处理后,模型的TPR-GAP(真正率差距)显著降低,例如在性别偏见检测中,从0.76降至0.16,验证了该方法在实际应用中的有效性。

研究意义

该研究为神经表示中的偏见控制提供了一种高效、可解释的线性方法,突破了以往依赖预定义方向或复杂对抗训练的局限。其在词向量偏见缓解和公平分类中的成功,推动了偏见减缓技术的实用化,为实现公平、无偏的自然语言处理系统奠定了基础。这不仅有助于学术界深入理解神经模型的偏见机制,也为工业界提供了可行的偏见控制工具,有望改善自动决策系统的公平性和透明度。

技术贡献

本文的核心技术创新在于提出INLP算法,将偏见移除转化为多轮线性分类器的学习与null空间投影的结合。该方法无需预定义偏见方向,自动学习偏见方向,确保全面性。算法在数学上保证:• 每轮学习的分类器参数矩阵的null空间投影能逐步消除线性可预测信息;• 多轮迭代后,表示空间被投影到所有学习到的偏见方向的交集,确保偏见被最大程度去除;• 该投影保持空间结构的完整性,最小化信息损失。这些理论保证了方法的有效性和稳定性,提供了偏见去除的数学基础。

新颖性

INLP的创新在于其迭代学习与投影的结合方式,区别于传统的单一方向投影或对抗训练。它自动识别多维偏见方向,避免了人为预设偏见方向的局限,能捕捉到偏见在高维空间中的复杂表现。相比已有的偏见缓解方法(如Bolukbasi等的性别子空间投影),INLP在多方向、多轮次中逐步逼近全面去偏的目标,具有更高的覆盖率和鲁棒性。这使得偏见的线性表示得以系统性地被消除,显著提升了偏见缓解的效果。

局限性

  • 该方法主要针对线性偏见信息,非线性偏见仍可能存在,难以完全消除复杂偏见。
  • 多轮投影可能导致空间信息的过度损失,影响模型的表达能力,尤其在高维复杂任务中可能表现不佳。
  • 训练多个线性分类器增加计算成本,尤其在大规模数据集和高维空间中,可能限制其实用性。
  • 偏见移除的效果依赖于训练分类器的质量,若分类器未能充分学习偏见方向,偏见可能未被完全去除。

未来方向

未来可以探索非线性偏见的检测与移除机制,结合深度学习中的对抗训练与投影方法,提升偏见控制的全面性。同时,优化算法效率,减少多轮训练的计算负担,增强在大规模应用中的实用性。此外,结合偏见检测指标,开发自动化的偏见评估与调节工具,推动公平性评估的标准化。最后,扩展INLP在多模态、多任务环境中的应用,推动偏见控制在更广泛的人工智能系统中落地。

AI 总览摘要

在当今的自然语言处理(NLP)领域,深度学习模型的成功极大地依赖于复杂的神经表示,但这些表示往往隐含偏见,尤其是性别、种族等敏感属性。这些偏见不仅影响模型的公平性,也可能引发社会伦理问题。传统的偏见缓解方法多依赖于预定义偏见方向或对抗训练,存在方向依赖性强、训练复杂等局限。为此,本文提出了一种名为INLP(迭代空零空间投影)的方法,旨在通过多轮学习线性分类器,逐步识别并消除神经表示中的偏见信息。该方法结合了投影的数学基础与学习的灵活性,避免了预定义方向的局限,具有较强的适应性和鲁棒性。

具体而言,INLP在每轮训练中,利用线性分类器参数矩阵计算偏见方向的null空间,将表示投影到该空间中,从而逐步减少线性可预测的偏见信息。多轮迭代后,表示空间被投影到所有偏见方向的交集,确保偏见被最大程度地去除。实验结果显示,在词向量偏见缓解中,INLP将性别分类准确率从100%降至49.3%,而传统方法如手工定义的性别方向仅降至80.7%。在偏见词向量的可视化中,偏见明显减弱,偏见-邻居分析和WEAT测试均验证了偏见的显著减少。

此外,INLP在公平分类任务中也表现出优越性能,通过降低TPR-GAP指标,显著改善模型的公平性。这一技术突破为实现无偏、透明的自然语言处理系统提供了新的工具。未来,研究者可以结合非线性偏见检测、优化算法效率、扩展多模态应用,推动偏见控制技术的广泛落地。总体而言,INLP为偏见缓解提供了一种高效、理论坚实且易于实现的解决方案,具有重要的学术价值和产业应用潜力。

深度解读

原文摘要

The ability to control for the kinds of information encoded in neural representation has a variety of use cases, especially in light of the challenge of interpreting these models. We present Iterative Null-space Projection (INLP), a novel method for removing information from neural representations. Our method is based on repeated training of linear classifiers that predict a certain property we aim to remove, followed by projection of the representations on their null-space. By doing so, the classifiers become oblivious to that target property, making it hard to linearly separate the data according to it. While applicable for multiple uses, we evaluate our method on bias and fairness use-cases, and show that our method is able to mitigate bias in word embeddings, as well as to increase fairness in a setting of multi-class classification.

cs.CL cs.LG

参考文献 (20)

Man is to Computer Programmer as Woman is to Homemaker? Debiasing Word Embeddings

Tolga Bolukbasi, Kai-Wei Chang, James Y. Zou 等

2016 3848 引用 ⭐ 高影响力 查看解读 →

Lipstick on a Pig: Debiasing Methods Cover up Systematic Gender Biases in Word Embeddings But do not Remove Them

Hila Gonen, Yoav Goldberg

2019 642 引用 ⭐ 高影响力 查看解读 →

Bias in Bios: A Case Study of Semantic Representation Bias in a High-Stakes Setting

Maria De-Arteaga, Alexey Romanov, Hanna M. Wallach 等

2019 595 引用 ⭐ 高影响力 查看解读 →

Assessing BERT's Syntactic Abilities

Yoav Goldberg

2019 529 引用 ⭐ 高影响力 查看解读 →

Adversarial Removal of Demographic Attributes from Text Data

Yanai Elazar, Yoav Goldberg

2018 356 引用 ⭐ 高影响力 查看解读 →

Demographic Dialectal Variation in Social Media: A Case Study of African-American English

Su Lin Blodgett, L. Green, Brendan T. O'Connor

2016 409 引用 查看解读 →

Assessing the Ability of LSTMs to Learn Syntax-Sensitive Dependencies

Tal Linzen, Emmanuel Dupoux, Yoav Goldberg

2016 1016 引用 查看解读 →

Bag of Tricks for Efficient Text Classification

Armand Joulin, Edouard Grave, Piotr Bojanowski 等

2016 5125 引用 查看解读 →

Unsupervised Domain Adaptation by Backpropagation

Yaroslav Ganin, V. Lempitsky

2014 7120 引用 查看解读 →

SimLex-999: Evaluating Semantic Models With (Genuine) Similarity Estimation

Felix Hill, Roi Reichart, A. Korhonen

2014 1355 引用 查看解读 →

Large-scale learning of word relatedness with constraints

Guy Halawi, G. Dror, E. Gabrilovich 等

2012 276 引用

Representation Learning: A Review and New Perspectives

Yoshua Bengio, Aaron C. Courville, P. Vincent

2012 14259 引用 查看解读 →

Scikit-learn: Machine Learning in Python

Fabian Pedregosa, G. Varoquaux, Alexandre Gramfort 等

2011 93717 引用 查看解读 →

A Study on Similarity and Relatedness Using Distributional and WordNet-based Approaches

Eneko Agirre, Enrique Alfonseca, Keith B. Hall 等

2009 988 引用

Support vector machines

Ingo Steinwart, A. Christmann

2008 8595 引用

V-Measure: A Conditional Entropy-Based External Cluster Evaluation Measure

A. Rosenberg, Julia Hirschberg

2007 1905 引用

BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding

Jacob Devlin, Ming-Wei Chang, Kenton Lee 等

2019 120383 引用 查看解读 →

GENERATIVE ADVERSARIAL NETS

Individualized Treat, Jinsung Yoon

2018 43681 引用

Projectors on intersections of subspaces

Adi Ben-Israel

2013 6 引用

Visualizing Data using t-SNE

L. Maaten, Geoffrey E. Hinton

2008 51002 引用

被引用 (20)

Where Do Multilingual Vision-Language Encoders Fail on Low-Resource Languages?

2026 ⭐ 高影响力 查看解读 →

How Output Format Confounds Data Quality and Capability in Instruction Tuning

2026 ⭐ 高影响力 查看解读 →

MANCE: Manifold Aware Concept Erasure

2026 ⭐ 高影响力 查看解读 →

Frozen Brain-MRI Foundation Models Are Site Fingerprints

2026 ⭐ 高影响力 查看解读 →

Causal Interventions on Continuous Variables: A Case Study on Verb Bias in Steering Vectors for In-Context Learning

2026 ⭐ 高影响力 查看解读 →

Debiasing Without Protected Attributes: Latent Concept Erasure from Textual Profiles

2026 ⭐ 高影响力 查看解读 →

Refusal Beyond a Single Direction: A Preliminary Comparison of Diff-in-Means and INLP

2026 ⭐ 高影响力 查看解读 →

Mitigating Label Bias with Interpretable Rubric Embeddings

STRIDE: Training Data Attribution via Sparse Recovery from Subset Perturbations

Vectors Are Not Neutral: Sensitive-Information Inference from Exported LLM Representations in Summarization

Abduction-Deduction Entanglement: Domain Generalization via Representation Transplants

Causal Tongue-Tie: LLMs Can Encode Causal Direction, But Their Yes/No Outputs Fail to Express

Measuring Alignment-Induced Activation Shifts Correctly: A Template-Controlled Difference-in-Differences Protocol

Early Warning Signals for OpenVLA Failure under Visual Distribution Shift

2026 1 引用 查看解读 →

A Geometric Perspective on Composable Emotion Steering in Text-to-Speech Models

Controlling Tool Use with Heading-Specific Activation Steering

2026 2 引用 查看解读 →

Resist and Update: Counterfactual Report Coordinates for Incentive-Compatible LLMs

Certified Domain Consistency for Multi-Domain Retrieval: Label-Free Per-Domain Contamination Control with Conformal Risk Guarantees

Toward Localizing and Repairing Bias in Transformer Attention Heads

Unbiased Open World Regularization for Fair Self-Supervised Learning