[논문 리뷰] Learning to Break the Loop: Analyzing and Mitigating Repetitions for Neural Text Generation
이 논문은 신경언어모델이 왜 이전 문장을 반복하는 경향이 있는지 분석하고, 반복 확률을 기하급수적으로 감소시키는 교육 방법인 DITTO를 제안하여 퍼플렉시티를 해치지 않으면서 생성 품질을 향상시킨다.
While large-scale neural language models, such as GPT2 and BART, have achieved impressive results on various text generation tasks, they tend to get stuck in undesirable sentence-level loops with maximization-based decoding algorithms ( extit{e.g.}, greedy search). This phenomenon is counter-intuitive since there are few consecutive sentence-level repetitions in human corpora (e.g., 0.02\% in Wikitext-103). To investigate the underlying reasons for generating consecutive sentence-level repetitions, we study the relationship between the probabilities of the repetitive tokens and their previous repetitions in the context. Through our quantitative experiments, we find that 1) Language models have a preference to repeat the previous sentence; 2) The sentence-level repetitions have a extit{self-reinforcement effect}: the more times a sentence is repeated in the context, the higher the probability of continuing to generate that sentence; 3) The sentences with higher initial probabilities usually have a stronger self-reinforcement effect. Motivated by our findings, we propose a simple and effective training method extbf{DITTO} (Pseu\underline{D}o-Repet\underline{IT}ion Penaliza\underline{T}i\underline{O}n), where the model learns to penalize probabilities of sentence-level repetitions from pseudo repetitive data. Although our method is motivated by mitigating repetitions, experiments show that DITTO not only mitigates the repetition issue without sacrificing perplexity, but also achieves better generation quality. Extensive experiments on open-ended text generation (Wikitext-103) and text summarization (CNN/DailyMail) demonstrate the generality and effectiveness of our method.
연구 동기 및 목표
- 최대화 기반 디코딩이 신경 텍스트 생성에서 문장 수준의 반복으로 이어지는 원인을 조사합니다.
- 맥락에서 이전 반복에 비례해 반복 확률이 어떻게 달라지는지 정량화합니다.
- 언어 모델 성능에 해를 끼치지 않으면서 반복을 줄이는 학습 기반 해결책을 개발합니다.
- 열려 있는 생성 및 요약 과제에서 방법의 효과를 입증합니다.
제안 방법
- 반복 문장을 구성하고 반복에 따른 토큰 확률 변화를 측정하여 반복 역학을 분석합니다.
- 자기강화를 특징짓기 위한 지표로 평균 토큰 확률(Average Token Probability, TP), 증가 토큰 확률율(Rate of Increased Token Probability, IP), 승자 비율(Winner Rate, WR)을 정의합니다.
- 페이크 반복 데이터를 생성하고 반복 수에 따라 반복 확률을 감소시키는 반복 페널티 손실을 적용하는 DITTO(Pseudo Repetition Penalization)를 제안합니다(람다로 제어).
- 표준 MLE 손실과 DITTO 손실의 혼합으로 사전 학습된 Transformer 모델을 미세조정하여 과도한 반복을 피하는 방법을 학습합니다.
- Wikitext-103 열려 있는 생성 및 CNN/DailyMail 요약에서 MAUVE, perplexity, accuracy, 반복 지표로 평가하고 확률적 디코딩과의 호환성을 평가합니다.
실험 결과
연구 질문
- RQ1최대화 기반 디코딩하에서 언어 모델이 왜 이전 문장을 반복하는 것을 선호하는가?
- RQ2이전 반복이 누적될수록 반복 확률은 어떻게 변하는가(자기강화)?
- RQ3어떤 문장이 반복에 더 취약하며 그 이유는 무엇인가?
- RQ4학습 기반 접근법이 언어 모델의 품질을 해치지 않으면서 반복을 완화할 수 있는가?
- RQ5제안된 방법 DITTO가 열려 있는 생성과 요약 과제에서 효과적인가?
주요 결과
- 모델은 맥락에서 단 한번의 반복만 있어도 이전 문장을 반복하려는 강한 경향을 보인다.
- 반복 확률은 자기강화 효과를 보인다: 이전 반복 횟수가 증가하면 증가하고 상한에 도달한다.
- 초기 확률이 더 높은 문장은 더 강한 자기강화를 경험하고 반복적으로 생성될 가능성이 더 크다.
- DITTO 학습은 문장 수준 및 구문 수준의 반복을 줄이는 동시에 생성 품질(퍼플렉시티, 정확도, MAUVE)을 향상시키거나 보존한다.
- DITTO는 확률적 디코딩 전략(top-k, nucleus 샘플링)에서도 효과적이며 CNN/DailyMail 요약 지표를 개선한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.