Skip to main content
QUICK REVIEW

[논문 리뷰] Dice Loss for Data-imbalanced NLP Tasks

Xiaoya Li, Xiaofei Sun|arXiv (Cornell University)|2019. 11. 07.
Topic ModelingComputer Science참고 문헌 58인용 수 32
한 줄 요약

본 논문은 NLP 작업에서 데이터 불균형 문제를 해결하기 위해 dice loss와 동적 가중치 스킴(adaptive dice loss)을 도입하고, POS 태깅, NER, MRC, 패러프레이즈 식별에서 상당한 향상을 보였으며, 여러 데이터셋에서 최첨단(SOTA) 성능을 달성한다.

ABSTRACT

Many NLP tasks such as tagging and machine reading comprehension are faced with the severe data imbalance issue: negative examples significantly outnumber positive examples, and the huge number of background examples (or easy-negative examples) overwhelms the training. The most commonly used cross entropy (CE) criteria is actually an accuracy-oriented objective, and thus creates a discrepancy between training and test: at training time, each training instance contributes equally to the objective function, while at test time F1 score concerns more about positive examples. In this paper, we propose to use dice loss in replacement of the standard cross-entropy objective for data-imbalanced NLP tasks. Dice loss is based on the Sorensen-Dice coefficient or Tversky index, which attaches similar importance to false positives and false negatives, and is more immune to the data-imbalance issue. To further alleviate the dominating influence from easy-negative examples in training, we propose to associate training examples with dynamically adjusted weights to deemphasize easy-negative examples.Theoretical analysis shows that this strategy narrows down the gap between the F1 score in evaluation and the dice loss in training. With the proposed training objective, we observe significant performance boost on a wide range of data imbalanced NLP tasks. Notably, we are able to achieve SOTA results on CTB5, CTB6 and UD1.4 for the part of speech tagging task; SOTA results on CoNLL03, OntoNotes5.0, MSRA and OntoNotes4.0 for the named entity recognition task; along with competitive results on the tasks of machine reading comprehension and paraphrase identification.

연구 동기 및 목표

  • 현저한 데이터 불균형으로 인해 음성 예시가 양성보다 현저히 많은 NLP 태스크의 동기에 대한 해결책 제시.
  • 교차 엔트로피를 dice 기반 손실로 대체하여 학습과 F1 평가의 정렬을 도모한다.
  • 학습 중 쉬운 음수의 지배를 줄이기 위해 동적, 데이터 의존적 가중치 메커니즘을 도입한다.
  • POS tagging, NER, MRC, PI 데이터셋 전반에서 광범위한 실증적 이득을 입증한다.

제안 방법

  • Sørensen–Dice 계수를 기반으로 Dice Loss(DL)를 CE 손실의 대체로 정의한다.
  • 수렴 속도를 빠르게 하는 제곱 분모를 사용하는 Dice Loss의 변형을 도입한다(Milletari et al. 형태).
  • precision- recall 트레이드오프를 제어하기 위해 Tversky 지수와 대응하는 Tversky Loss로 확장한다.
  • 소프트 확률에 감소 인수(1−p)^α를 곱해 쉬운 음수를 하향가중하는 자기 조정 Dice Loss(Adaptive Dice Loss)를 제안한다.
  • Dice Loss가 focal loss와 어떻게 연결되어 학습 중 어려운 음성에 강조점을 두는지 설명한다.
  • 다양한 백본(BERT, XLNet 등)으로 POS tagging, NER, MRC, PI에서 CE/MLE 베이스라인 대비 개선을 보고한다.

실험 결과

연구 질문

  • RQ1Dice 기반 손실이 불균형한 NLP 데이터셋에서 교차 엔트로피와 비교하여 학습을 개선할 수 있는가?
  • RQ2학습 예제의 동적 가중치가 쉬운 음수 샘플의 지배를 완화하는가?
  • RQ3Dice Loss, Tversky Loss 및 그 적응형 변형이 POS tagging, NER, MRC, PI 태스크에서 어떻게 작동하는가?
  • RQ4TI 지수의 하이퍼파라미터가 태스크 성능에 미치는 영향은 무엇인가?
  • RQ5Dice 기반 손실이 SST 감정 분류와 같은 정확도 중심 태스크의 성능에 어떤 영향을 미치는가?

주요 결과

  • Dice 기반 손실이 CE/MLE 베이스라인에 비해 여러 NLP 태스크에서 유의미한 성능 향상을 제공합니다.
  • (1−p)^α 가중치를 사용하는 Adaptive Dice Loss는 쉬운 음수의 영향을 줄이고 학습 신호와 F1 정렬을 개선합니다.
  • POS tagging에서 DSC는 CTB5, CTB6, UD1.4 데이터셋에서 최첨단 결과를 달성합니다.
  • NER에서 DSC는 CoNLL2003, OntoNotes5.0, MSRA, OntoNotes4.0 데이터셋에서 최첨단을 달성합니다.
  • MRC(SQuAD v1.1/v2.0, Quoref) 및 PI(MRPC/QQP)에서 DSC는 강력한 베이스라인(BERT XLNet 백본)에 비해 EM/F1 점수를 지속적으로 개선합니다.
  • TI의 하이퍼파라미터들(alpha, beta)은 결과에 큰 영향을 주며, 데이터셋별로 최적의 α 값이 다릅니다(예: 중국어 OntoNotes4.0 NER에서 α=0.6, QuoRef MRC에서 α=0.4).
  • SST-2 및 SST-5 감정 분류 결과는 dice 손실이 정확도 지향적이지 않으며 이러한 태스크에서 CE보다 저조할 수 있음을 시사합니다.

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.