# AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias

Rachel K. E. Bellamy, Kuntal Dey, Michael Hind, Samuel C. Hoffman, Stephanie Houde, Kalapriya Kannan 외 12명 · arXiv · 2018년 10월 3일

- **연구 문제** 편향 지표와 완화 알고리즘이 여러 라이브러리에 흩어져 있고, 대부분 탐지만 하거나 일부 알고리즘만 제공합니다.
- **연구 방법** AIF360은 데이터셋과 지표, 알고리즘을 공통 객체로 묶어 같은 fit, transform, predict 방식으로 부르게 합니다.
- **주요 결과** Adult, German Credit, COMPAS에서 Reweighing과 Optimized pre-processing이 공정성 지표를 개선했습니다.

## 편향 완화 방법이 흩어져 있는 문제

편향을 측정하는 지표와 편향을 줄이는 알고리즘은 여러 라이브러리에 나뉘어 있고, 대부분은 탐지만 하거나 일부 알고리즘만 제공합니다. 실무자는 데이터 전처리, 학습 중 제약, 모델 출력 후처리 중 무엇을 택해야 할지 판단하기 어렵습니다. 이 논문은 탐지, 완화, 지표 설명, 산업 현장 사용성을 한 오픈소스 툴킷에서 제공하려 합니다.

이 툴킷의 핵심 설계는 데이터셋, 지표, 설명기, 알고리즘을 각각 추상화하는 것입니다. 모든 완화 알고리즘은 Dataset 객체를 입력받아 수정된 새 Dataset 객체를 반환하는 Transformer 추상화를 따릅니다. 이로써 fit, transform, predict라는 scikit-learn 식 호출 방식으로 여러 알고리즘을 같은 방식으로 다룰 수 있습니다.

## 데이터셋과 지표 추상화

Dataset 클래스는 특징, 레이블, 보호 속성과 각 식별자를 한 객체에 담습니다. BinaryLabelDataset은 각 인스턴스가 favorable 또는 unfavorable 중 하나의 레이블만 갖는 정형 데이터를 나타냅니다. StandardDataset은 CSV 데이터를 읽어 특징, 레이블, 보호 속성, 특권 값 등을 지정하는 과정을 표준화합니다. 객체마다 이전 상태로의 포인터와 적용한 알고리즘 정보를 메타데이터로 남겨 변환 과정을 추적합니다.

Metric 클래스와 하위 클래스는 데이터셋이나 모델의 공정성 지표를 계산합니다. 예를 들어 disparate impact는 비특권 집단과 특권 집단의 favorable 결과 확률 비율이며, 1이면 두 집단의 이익이 같습니다. 분류 지표인 ClassificationMetric은 참 레이블과 예측 레이블을 비교하는 혼동 행렬을 기반으로 average odds difference와 equal opportunity difference를 계산합니다.

## 세 범주의 편향 완화 알고리즘

이 툴킷은 학습 데이터를 바꾸는 pre-processing, 학습 절차에 제약을 넣는 in-processing, 학습된 모델의 출력만 바꾸는 post-processing 세 범주로 알고리즘을 나눕니다. 블랙박스 모델만 쓸 수 있다면 post-processing만 가능하다는 점이 이 구분의 기준입니다.

Reweighing은 (집단, 레이블) 조합마다 학습 예제에 서로 다른 가중치를 부여합니다. Optimized pre-processing은 그룹 공정성, 개별 왜곡, 데이터 충실도 제약 아래 특징과 레이블을 편집하는 확률적 변환을 학습합니다. Adversarial debiasing은 예측 정확도를 최대화하면서 적대자가 예측으로부터 보호 속성을 추정하지 못하도록 학습합니다. Prejudice remover는 목적 함수에 차별 인지 정규화 항을 더합니다. Equalized odds 후처리와 Calibrated equalized odds 후처리는 출력 레이블을 바꾸는 확률을 찾고, Reject option classification은 결정 경계의 불확실성이 큰 구간에서 집단별로 반대 결과를 줍니다.

## 공정성과 정확도 비교

평가는 Adult Census Income, German Credit, COMPAS 데이터셋에서 수행했습니다. 분류기는 Logistic regression, Random forest classifier, Neural Network를 사용했고, 각 데이터셋을 50% 학습, 20% 검증, 30% 테스트로 무작위 분할한 뒤 25회 분할의 평균과 표준편차를 보고했습니다. 검증 데이터로 점수 임계값을 정해 balanced accuracy를 최대화하고 결과는 테스트 분할에서 얻었습니다.

그 결과 Reweighing과 Optimized pre-processing은 보고된 두 지표 모두에서 공정성을 개선했습니다. Reject option classification은 공정성을 상당히 개선했지만 정확도도 상당히 떨어뜨렸습니다. 특히 German Credit에서는 개선 폭이 가장 작았는데, 저자들은 데이터가 가장 작기 때문일 수 있다고 봅니다.

## 테스트 범위와 웹 서비스의 제약

단위 테스트는 13개 모듈에 걸친 23개 테스트 케이스로 구성되며, py.test --cov 기준 헬퍼 파일의 코드 커버리지는 65%, 알고리즘의 코드 커버리지는 58%입니다. 통합 테스트는 Jupyter 노트북으로 실행하는 완전한 편향 완화 흐름을 확인합니다.

웹 서비스는 로지스틱 회귀 분류기와 내장된 3개 데이터셋만 지원합니다. 사용자 데이터 업로드와 다른 분류기 선택은 확장 가능하다고 적혀 있지만 이 논문에서 구현하거나 평가하지 않았습니다.

## 논문 정보

- **저자**: Rachel K. E. Bellamy, Kuntal Dey, Michael Hind, Samuel C. Hoffman, Stephanie Houde, Kalapriya Kannan, Pranay Lohia, Jacquelyn Martino, Sameep Mehta, Aleksandra Mojsilovic, Seema Nagar, Karthikeyan Natesan Ramamurthy, John Richards, Diptikalyan Saha, Prasanna Sattigeri, Moninder Singh, Kush R. Varshney, Yunfeng Zhang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2018년 10월 3일
- **등록일**: 2026년 11월 12일
- **수정일**: 2018년 10월 3일
- **버전**: v1
- **arXiv**: 1810.01943
- **분류**: cs.AI
- **원문 이용 조건**: [arXiv non-exclusive 1.0](https://arxiv.org/licenses/nonexclusive-distrib/1.0/)
- **제공 범위**: 논문 정보, 해설

[논문 원문 ↗](https://arxiv.org/abs/1810.01943v1) · [원문 PDF ↗](https://arxiv.org/pdf/1810.01943v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 원문 인용

Rachel K. E. Bellamy, Kuntal Dey, Michael Hind, Samuel C. Hoffman, Stephanie Houde, Kalapriya Kannan, Pranay Lohia, Jacquelyn Martino, Sameep Mehta, Aleksandra Mojsilovic, Seema Nagar, Karthikeyan Natesan Ramamurthy, John Richards, Diptikalyan Saha, Prasanna Sattigeri, Moninder Singh, Kush R. Varshney, Yunfeng Zhang (2018). AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias. arXiv:1810.01943v1. https://arxiv.org/abs/1810.01943v1

**BibTeX**

```
@misc{bellamy2018fairness,
  title = {{AI Fairness 360: An Extensible Toolkit for Detecting, Understanding, and Mitigating Unwanted Algorithmic Bias}},
  author = {Rachel K. E. Bellamy and Kuntal Dey and Michael Hind and Samuel C. Hoffman and Stephanie Houde and Kalapriya Kannan and Pranay Lohia and Jacquelyn Martino and Sameep Mehta and Aleksandra Mojsilovic and Seema Nagar and Karthikeyan Natesan Ramamurthy and John Richards and Diptikalyan Saha and Prasanna Sattigeri and Moninder Singh and Kush R. Varshney and Yunfeng Zhang},
  year = {2018},
  eprint = {1810.01943},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1810.01943v1}
}
```

## 이 논문의 용어

- [트랜스포머](https://refivu.com/terms/515e8433c447-transformer)
- [logistic regression](https://refivu.com/terms/3551369d301a-logistic-regression)
- [balanced accuracy](https://refivu.com/terms/bc9870524813-balanced-accuracy)
- [confusion matrix](https://refivu.com/terms/101b07f65787-confusion-matrix)
- [신경망](https://refivu.com/terms/cc23dda6dc72-neural-network)
- [consistency](https://refivu.com/terms/ff25802d63e7-consistency)
- [COMPAS](https://refivu.com/terms/4e5630e527a8-compas)
- [adversarial debiasing](https://refivu.com/terms/f81fa896ce1e-adversarial-debiasing)
- [disparate impact](https://refivu.com/terms/cd1aa1217718-disparate-impact)
- [Random Forest classifier](https://refivu.com/terms/1cccdc65ae1b-random-forest-classifier)
- [average odds difference](https://refivu.com/terms/1c75ada5ac2b-average-odds-difference)
- [Disparate impact remover](https://refivu.com/terms/e445a02938bb-disparate-impact-remover)
- [equal opportunity difference](https://refivu.com/terms/9585c8b34ae2-equal-opportunity-difference)
- [German Credit](https://refivu.com/terms/cba31d1dcb8d-german-credit)
- [Prejudice remover](https://refivu.com/terms/6851c6ca2f3e-prejudice-remover)
- [Reject option classification](https://refivu.com/terms/9724e44c362e-reject-option-classification)
- [Reweighing](https://refivu.com/terms/598424d5b606-reweighing)
- [statistical parity difference](https://refivu.com/terms/eae549da9d35-statistical-parity-difference)

## 다른 논문 해설

- [Reconciling modern machine learning practice and the bias-variance trade-off](https://refivu.com/papers/f2bd9be7-d470-425c-9b81-0c8325b04155-reconciling-modern-machine-learning-practice-and-the-bias.md)
- [Inherent Trade-Offs in the Fair Determination of Risk Scores](https://refivu.com/papers/839c2aea-2b24-46f2-8b72-8c5fff96e639-inherent-trade-offs-in-the-fair-determination-of.md)
- [InceptionTime: Finding AlexNet for Time Series Classification](https://refivu.com/papers/d38dc30f-c8c7-476b-b7e9-0b2838d7c2a1-inceptiontime-finding-alexnet-for-time-series-classification.md)
- [Scheduled denoising autoencoders](https://refivu.com/papers/d63c0765-833a-4313-9ce1-c45516b7d22a-scheduled-denoising-autoencoders.md)
- [The CMA Evolution Strategy: A Tutorial](https://refivu.com/papers/2386515a-206e-4d75-9423-936049ac71e6-the-cma-evolution-strategy-a-tutorial.md)
- [Active Learning with Statistical Models](https://refivu.com/papers/7d04ea81-8e24-4074-8953-6e8f7fe61d84-active-learning-with-statistical-models.md)
- [Text Summarization with Pretrained Encoders](https://refivu.com/papers/7b8e7251-bfcc-4cab-9359-040ecd948516-text-summarization-with-pretrained-encoders.md)
- [The Faiss library](https://refivu.com/papers/a96357b4-d12b-4efe-942a-a6850f6387d1-the-faiss-library.md)
- [Real-ESRGAN: Training Real-World Blind Super-Resolution with Pure Synthetic Data](https://refivu.com/papers/cb516b02-b479-42ed-88af-4ec01e125184-real-esrgan-training-real-world-blind-super-resolution.md)
- [What Does BERT Look At? An Analysis of BERT's Attention](https://refivu.com/papers/8f682775-2bc4-4c36-a7e8-6afc56d2aeae-what-does-bert-look-at-an-analysis-of.md)
- [InstructPix2Pix: Learning to Follow Image Editing Instructions](https://refivu.com/papers/b87997ee-e5f2-4a2e-9b66-e15df3a71be7-instructpix2pix-learning-to-follow-image-editing.md)
- [MemNet: A Persistent Memory Network for Image Restoration](https://refivu.com/papers/80fb0022-b1b0-497f-8285-0c27e8c156fc-memnet-a-persistent-memory-network-for-image-restoration.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/2f8b2e40-a990-42ac-bf4e-2865e4425590-ai-fairness-360-an-extensible-toolkit-for-detecting)
