# Learning with Multiclass AUC: Theory and Algorithms

다중 클래스 AUC를 이용한 학습: 이론과 알고리즘

Zhiyong Yang, Qianqian Xu, Shilong Bao, Xiaochun Cao, Qingming Huang · arXiv · 2021년 7월 28일

- **연구 문제** 다중 클래스 AUC인 M metric을 직접 최적화하기 어려워, 미분 가능한 대리 손실로 대체하고 그 일관성, 일반화, 계산 비용을 함께 다룹니다.
- **연구 방법** M metric의 0-1 오순위 손실 MAUC↓를 대리 손실로 바꿔 경험적 대리 위험을 최소화하고, 지수·제곱·힌지 손실에 대해 쌍별 계산을 가속합니다.
- **주요 결과** 제안 방법은 여러 불균형 데이터셋에서 비교 기준보다 높은 MAUC↑를 보고하지만, 결과는 제시된 데이터셋과 설정 범위에 한정됩니다.

## 다중 클래스 AUC 최적화의 문제

AUC는 양성 인스턴스가 음성 인스턴스보다 높은 점수를 받을 확률을 재는 순위 지표이며, 불균형 학습과 추천 시스템에서 정확도보다 적합한 지표로 자주 쓰입니다. 그러나 대부분의 AUC 최적화 방법은 이진 분류에만 초점을 맞춰 왔습니다. 이 논문은 실제 문제에 세 개 이상의 클래스가 많다는 점에 주목하고, 다중 클래스 AUC인 M metric을 직접 최적화하는 학습 프레임워크를 다룹니다.

직접 최적화는 세 가지 이유로 어렵습니다. 0-1 오순위 손실 MAUC↓는 이산적이고 미분 불가능하며, 데이터 분포를 알 수 없어 기댓값을 계산할 수 없고, 손실과 기울기의 계산 복잡도가 샘플 수에 대해 매우 큽니다. 논문은 이 세 문제를 각각 대리 손실, 경험적 대리 위험 최소화, 계산 가속으로 나누어 다룹니다.

## M metric의 두 가지 평균 방식

다중 클래스 AUC는 이진 AUC들을 평균하는 방식으로 정의할 수 있습니다. one vs. all 방식인 AUCova는 각 클래스 i를 양성으로 두고 나머지 클래스와 비교하며, one vs. one 방식인 AUCovo는 클래스 쌍 (i,j)마다 이진 AUC를 계산해 평균합니다. 논문은 M metric을 AUCovo 계열로 보고, 쌍 단위의 동일 가중을 사용하는 점을 중요하게 봅니다.

정리 1에 따르면 AUCova는 클래스 쌍 (i,j)의 AUC를 pj/(1−pi)로 가중합니다. 이 가중은 소수 클래스 쌍의 성능을 가볍게 만들 수 있습니다. 반면 AUCovo는 모든 쌍에 같은 가중을 주므로 이 문제를 피합니다. 라벨 분포가 균형일 때는 두 지표가 같아지고, 두 지표가 최댓값 1을 갖는 조건도 일치합니다.

## 대리 손실과 경험적 대리 위험 최소화

MAUC↓를 직접 최소화하는 대신, 논문은 미분 가능한 볼록 대리 손실 ℓ을 사용하는 경험적 대리 위험 최소화를 제안합니다. 쌍 (i,j)에 대해 점수 차이 f(i)(x\_m)−f(i)(x\_n)에 손실을 적용하고, 클래스 쌍의 샘플 수 n\_i n\_j로 나눈 값을 합산합니다. 이 추정량은 비편향성을 가지므로 기댓값 대신 학습 데이터의 평균으로 목적함수를 만들 수 있습니다.

일관성 조건은 대리 손실을 최소화해 얻은 점수 함수가 극한에서 Bayes 최적 점수 함수로 수렴하는지를 묻습니다. 정리 3은 손실이 미분 가능하고 볼록하며 \[−1, 1\]에서 비증가이고 ℓ′(0)\<0이면 MAUC↓와 일관적이라고 제시합니다. 지수 손실, 제곱 손실, 일반화된 힌지 손실 등이 이 조건을 만족하는 예로 제시됩니다.

## 일반화 경계와 불균형 인식

경험적 대리 위험을 최소화하더라도 실제 기댓값 위험이 작아진다고 보장하려면 일반화 분석이 필요합니다. 논문은 쌍별 손실이 독립적인 샘플별 항의 합으로 분해되지 않으므로 기존 대칭화 기법이 직접 적용되지 않는다고 설명합니다. 이를 해결하기 위해 MAUC↓ Rademacher 복잡도를 새로 정의하고, 체이닝과 커버링 수를 이용해 상한을 유도합니다.

결과 경계는 클래스 빈도 비율 ξ(Y)와 클래스 쌍 빈도 비율 χ(Y)를 포함합니다. 이 항들은 소수 클래스 샘플이 적을수록 경계를 크게 만들며, 따라서 단순히 전체 샘플 수를 늘리는 것만으로는 일반화가 좋아지지 않고 소수 클래스 샘플을 늘려야 한다는 해석을 낳습니다. 논문은 이 해석을 저자의 결론으로 제시하며, 여기서 얻은 경계는 선형 모델, 완전연결 심층망, 합성곱 심층망에 대해 각각 유도됩니다.

## 지수·제곱·힌지 손실의 계산 가속

쌍별 대리 손실을 그대로 계산하면 손실과 기울기 비용이 샘플 쌍 수에 따라 커집니다. 지수 손실은 exp(α(f(i)(x\_m)−f(i)(x\_n))) 형태를 두 항의 곱으로 인수분해할 수 있어, 쌍별 합을 클래스별 합으로 바꿔 O(N·NC) 수준의 계산으로 줄입니다. 제곱 손실은 그래프 라플라시안 형태로 다시 쓸 수 있어 같은 수준의 가속이 가능합니다.

![Figure 3: Acceleration Ratio vs. Sample Scale](https://refivu.com/papers/db960d59-4bb9-447a-ae68-d586d88d60ef/figures/figure-8ffd1d8601a5063e61b7f95ac8b4b356.png?thumb=512)

**Fig. 3** . Acceleration Ratio vs. Sample Scale

[원문](https://arxiv.org/abs/2107.13171v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhiyong Yang, Qianqian Xu, Shilong Bao, Xiaochun Cao, Qingming Huang · Learning with Multiclass AUC: Theory and Algorithms · 원문 그림 인용 · 원본 PDF 49쪽에서 그림 영역을 추출했습니다.

힌지 손실은 활성화된 쌍, 즉 점수 차이가 margin보다 작은 쌍에만 값이 생기는 점을 이용합니다. 각 클래스 안에서 점수를 정렬하고 활성 집합이 단조롭게 확장되는 성질을 쓰면, 동적 계획법으로 한 번의 순회에 필요한 합을 얻습니다. 논문은 이 가속이 손실을 근사하는 것이 아니라 재배열 또는 재정식화로 얻어진다고 설명하며, 이들 방법의 시간 복잡도는 표 1에 정리되어 있습니다.

## 실험 설정과 비교 기준

실험은 불균형 전통 데이터셋 9개, CIFAR-100-Imb, User-Imb, iNaturalist2017을 포함합니다. 전통 데이터셋은 훈련·검증·시험을 80%, 10%, 10%로 나누고 15회 반복합니다. 비교 대상은 기본 로지스틱 회귀, 재샘플링 방법, 불균형 손실 함수, 기존 심층 AUC 최적화인 DeepAUC입니다. 제안 방법은 제곱 손실(Ours1), 지수 손실(Ours2), 힌지 손실(Ours3)로 구현되었습니다.

평가 지표는 MAUC↑이며 값이 클수록 좋습니다. 이 지표는 각 클래스 쌍에서 점수 순위가 맞은 비율을 평균한 값입니다. 전통 데이터셋 결과는 Fig. 1과 소수 클래스 쌍에 대한 Fig. 2로 제시되지만, 본 설명에서는 그림 픽셀을 직접 관찰하지 않고 캡션과 본문 서술에 근거합니다.

![Figure 2: Fine-grained Comparison Over the Minority Class Pairs (Traditional Datasets).The x-axis gives the frequency rank of the class pairs (i,j ), i.e., pip…](https://refivu.com/papers/db960d59-4bb9-447a-ae68-d586d88d60ef/figures/figure-6af9d9a2d8f94b2ae4b1e18a90f8e445.png?thumb=512)

**Fig. 2** . Fine-grained Comparison Over the Minority Class Pairs (Traditional Datasets).The x-axis gives the frequency rank of the class pairs (i,j ), i.e., pipj, where a larger rank represents a larger frequency. The y-axis represents the AUCi\|j of the corresponding class pairs. Each line in a plot then captures the minority class pair performance of a given algorithm. To have a clearer look at tendency, we carry out two ﬁltering processes before we visualize the plot: (a) For those datasets which has more than 5 class pairs, we only visualize the bottom-5 pairs in terms of the frequency to turn our focus to the minority pairs in the dataset. (b) To have a clearer look at the difference of the top competitors, we ﬁlter out the pairs with a smaller AUCi\|j than 0.7.

[원문](https://arxiv.org/abs/2107.13171v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Zhiyong Yang, Qianqian Xu, Shilong Bao, Xiaochun Cao, Qingming Huang · Learning with Multiclass AUC: Theory and Algorithms · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

## 결과 해석과 적용 범위

심층 학습 데이터셋의 표 2에서 Ours1과 Ours2는 CIFAR-100-Imb와 User-Imb 등 비교 대상보다 높은 MAUC↑ 값을 보고합니다. 특히 iNaturalist2017에서는 Ours2의 값이 84.87로 제시되며, DeepAUC는 대규모 데이터에서 훈련이 어려웠다고 저자들은 해석합니다. 소수 클래스 쌍에 대한 표 3과 표 4에서도 제안 방법이 많은 쌍에서 우위를 보입니다.

다만 이 결과는 제공된 논문의 특정 데이터셋, 학습 설정, 선형 또는 심층 모델 조건에서 얻은 관찰입니다. 힌지 손실(Ours3)은 CIFAR-100-Imb의 전체 MAUC↑에서 우위를 보이지 않았으며, User-Imb에서 개선 폭이 작다는 점도 함께 보고됩니다. 따라서 결과를 모든 불균형 문제에 대한 보편적 성능 보장으로 읽으면 안 됩니다.

## 한계와 남은 질문

논문은 제안 프레임워크가 일관성 분석과 일반화 분석으로 뒷받침되며, 계산 가속을 통해 중간 규모 데이터에 적용할 수 있다고 봅니다. 그러나 실험은 11개 실제 데이터셋 중 전통 데이터셋, 딥러닝 데이터셋의 제한된 설정에서 수행되었습니다. 대규모 데이터에서의 전체 학습 비용, 다른 신경망 구조에서의 효과, 힌지 손실처럼 일부 조건에서 우위가 약한 경우는 본문 결과만으로 확정하기 어렵습니다.

또한 일반화 경계는 가정된 손실의 Lipschitz 성질과 유계성 등에 의존합니다. 이 조건이 깨지는 실제 손실이나 모델에서 경계가 어떻게 달라지는지는 본문 결과로 검증되지 않았습니다.

## 논문 정보

- **저자**: Zhiyong Yang, Qianqian Xu, Shilong Bao, Xiaochun Cao, Qingming Huang
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 7월 28일
- **등록일**: 2026년 11월 6일
- **수정일**: 2021년 7월 28일
- **버전**: v1
- **arXiv**: 2107.13171
- **분류**: cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

The Area under the ROC curve (AUC) is a well-known ranking metric for problems such as imbalanced learning and recommender systems. The vast majority of existing AUC-optimization-based machine learning methods only focus on binary-class cases, while leaving the multiclass cases unconsidered. In this paper, we start an early trial to consider the problem of learning multiclass scoring functions via optimizing multiclass AUC metrics. Our foundation is based on the M metric, which is a well-known multiclass extension of AUC. We first pay a revisit to this metric, showing that it could eliminate the imbalance issue from the minority class pairs. Motivated by this, we propose an empirical surrogate risk minimization framework to approximately optimize the M metric. Theoretically, we show that: (i) optimizing most of the popular differentiable surrogate losses suffices to reach the Bayes optimal scoring function asymptotically; (ii) the training framework enjoys an imbalance-aware generalization error bound, which pays more attention to the bottleneck samples of minority classes compared with the traditional $O(\\sqrt{1/N})$ result. Practically, to deal with the low scalability of the computational operations, we propose acceleration methods for three popular surrogate loss functions, including the exponential loss, squared loss, and hinge loss, to speed up loss and gradient evaluations. Finally, experimental results on 11 real-world datasets demonstrate the effectiveness of our proposed framework.

## 원문 인용

Zhiyong Yang, Qianqian Xu, Shilong Bao, Xiaochun Cao, Qingming Huang (2021). Learning with Multiclass AUC: Theory and Algorithms. arXiv:2107.13171v1. https://arxiv.org/abs/2107.13171v1

**BibTeX**

```
@misc{yang2021learning,
  title = {{Learning with Multiclass AUC: Theory and Algorithms}},
  author = {Zhiyong Yang and Qianqian Xu and Shilong Bao and Xiaochun Cao and Qingming Huang},
  year = {2021},
  eprint = {2107.13171},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2107.13171v1}
}
```

## 이 논문의 용어

- [Rademacher complexity](https://refivu.com/terms/f0eba546910c-rademacher-complexity)
- [hinge loss](https://refivu.com/terms/81cbdf4a8c8a-hinge-loss)
- [covering number](https://refivu.com/terms/bd6e34c60b69-covering-number)
- [chaining](https://refivu.com/terms/6323619d5445-chaining)

## 다른 논문 해설

- [Scallop: A Language for Neurosymbolic Programming](https://refivu.com/papers/083c94cd-b288-47df-bf01-8ef7bbd73a0d-scallop-a-language-for-neurosymbolic-programming.md)
- [Climate-Invariant Machine Learning](https://refivu.com/papers/a2357949-b3f4-47c3-9eed-ea3620866405-climate-invariant-machine-learning.md)
- [Explainable Predictive Maintenance: A Survey of Current Methods, Challenges and Opportunities](https://refivu.com/papers/ef8f3506-4415-4c74-9774-619196a869b8-explainable-predictive-maintenance-a-survey-of-current.md)
- [Feature Importance in Gradient Boosting Trees with Cross-Validation Feature Selection](https://refivu.com/papers/9a0b01e1-f4f8-4d75-9179-d7d48a0ca887-feature-importance-in-gradient-boosting-trees-with-cross.md)
- [Neural Transfer Learning for Repairing Security Vulnerabilities in C Code](https://refivu.com/papers/905df722-e7b5-4114-b721-f7a7eacb7f2f-neural-transfer-learning-for-repairing-security.md)
- [SleepPPG-Net: a deep learning algorithm for robust sleep staging from continuous photoplethysmography](https://refivu.com/papers/33631127-ab89-421c-9d80-f96d64fa17df-sleepppg-net-a-deep-learning-algorithm-for-robust.md)
- [Detecting Clouds in Multispectral Satellite Images Using Quantum-Kernel Support Vector Machines](https://refivu.com/papers/a9f20628-b53d-443e-8071-edb7e89c4dc4-detecting-clouds-in-multispectral-satellite-images-using.md)
- [Curriculum-Based Reinforcement Learning for Quadrupedal Jumping: A Reference-free Design](https://refivu.com/papers/3b37a9a2-cd48-4cae-b4ea-91e1ea443b45-curriculum-based-reinforcement-learning-for-quadrupedal.md)
- [HiBerNAC: Hierarchical Brain-inspired Robotic Neural Agent Collective for Disentangling Complex Manipulation](https://refivu.com/papers/6e35652f-3bce-4cb9-8758-d0da38690d06-hibernac-hierarchical-brain-inspired-robotic-neural-agent.md)
- [Correlation-aware Spatial-Temporal Graph Learning for Multivariate Time-series Anomaly Detection](https://refivu.com/papers/8dd12c85-fc9f-4a13-a2ef-479dbfef7469-correlation-aware-spatial-temporal-graph-learning-for.md)
- [Line as a Visual Sentence: Context-aware Line Descriptor for Visual Localization](https://refivu.com/papers/11fca9e8-bf89-4a64-b44d-894d97f008aa-line-as-a-visual-sentence-context-aware-line.md)
- [Model-based Chance-Constrained Reinforcement Learning via Separated Proportional-Integral Lagrangian](https://refivu.com/papers/c133e883-5487-4b86-893d-40fefee524a8-model-based-chance-constrained-reinforcement-learning-via.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/db960d59-4bb9-447a-ae68-d586d88d60ef-learning-with-multiclass-auc-theory-and-algorithms)
