[논문 리뷰] Chain of Hindsight Aligns Language Models with Feedback
Chain of Hindsight (CoH)은 피드백과 쌍으로 이루어진 모델 생성 시퀀스에 조건을 두어 언어 모델을 미세조정합니다. 이를 통해 RL 없이 모든 피드백으로부터 학습하고 요약 및 대화 작업에서 SFT 및 RLHF를 능가합니다.
Learning from human preferences is important for language models to match human needs and to align with human and social values. Prior works have achieved remarkable successes by learning from human feedback to understand and follow instructions. Nonetheless, these methods are either founded on hand-picked model generations that are favored by human annotators, rendering them inefficient in terms of data utilization and challenging to apply in general, or they depend on reinforcement learning, which often suffers from imperfect reward functions and relies on extremely challenging optimizations. In this work, we propose a novel technique, Chain of Hindsight, that is easy to optimize and can learn from any form of feedback, regardless of its polarity. Our idea is inspired by how humans learn from extensive feedback presented in the form of languages. We convert all types of feedback into sequences of sentences, which are then used to fine-tune the model, allowing us to take advantage of the language comprehension capabilities of language models. We condition the model on a sequence of model generations paired with feedback. By doing so, the model is trained to generate outputs based on feedback, while learning to identify and correct negative attributes or errors. Applying our method to large language models, we observed that Chain of Hindsight significantly surpasses previous methods in aligning language models with human preferences. We report significant improvements on summarization and dialogue benchmarks, with our approach markedly preferred in human evaluations.
연구 동기 및 목표
- 모든 형태의 인간 피드백을 활용하여 감독 학습 미세조정과 RLHF의 비효율성에 대응한다.
- 자연어 가이던스를 포함하여 긍정적 피드백과 부정적 피드백으로부터의 학습을 가능하게 한다.
- 강화 학습 최적화를 피하는 간단하고 확장 가능한 미세조정 프레임워크를 제공한다.
- 요약 및 대화 벤치마크에서 인간 선호도에 대한 정렬이 개선되었음을 보여준다.
제안 방법
- 모든 인간 피드백을 모델 출력과 쌍으로 된 회고 피드백 시퀀스로 변환한다.
- 이전 출력과 그 피드백을 조건으로 하여 출력을 예측하도록 디코더만 있는 Transformer를 미세조정한다.
- 훈련 중 과거 토큰의 0-5%를 마스킹하여 단일 예제를 복사하는 것을 방지하고 일반화 성능을 향상시킨다.
- 기반 언어 모델링을 보존하기 위해 프리트레이닝 데이터의 로그 가능도(log likelihood)를 최대화하는 정규화 용어를 유지한다.
- 피드백 시퀀스에 조건화하는 동안 비피드백 토큰에 대해 교차 엔트로피 손실을 사용하여 모델을 학습시킨다.
- 자동 지표와 인간 평가를 모두 사용하여 요약 및 대화 작업에서 평가한다.
실험 결과
연구 질문
- RQ1요약 및 대화 벤치마크에서 Chain of Hindsight (CoH)은 SFT, SFT with unlikelihood, conditional SFT, 및 RLHF와 비교하여 어떤 성능을 보이는가?
- RQ2강화 학습 없이도 CoH가 자연어 설명을 포함한 긍정적 피드백과 부정적 피드백 모두로부터 효과적으로 학습할 수 있는가?
- RQ3자연어 피드백을 도입하면 모델의 정렬성과 인간 선호도 만족도가 더 향상되는가?
- RQ4모델 크기가 CoH의 성능과 확장성에 기준선 대비 어떻게 영향을 미치는가?
주요 결과
- CoH는 요약 및 대화 작업에서 RLHF 및 다양한 SFT 변형을 포함한 기준선보다 현저히 우수한 성능을 보인다.
- 인간 평가에서 CoH가 RLHF 및 조건부 SFT보다 다수 지표에서 선호된다(요약의 정확도, 일관성, 포괄성; 대화의 도움이 됨 및 무해성).
- 자연어 피드백을 도입하는 것이 이진 피드백만 사용하는 것보다 결과를 향상시킨다.
- CoH는 바람직한 확장 성능을 보이며, 모델 크기가 커질수록 이점이 커진다.
- 오픈 소스 데이터셋에서 CoH는 Koala 기반 SFT에 필적하거나 이를 초과하고, Koala와의 결합은 추가 이득을 가져온다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.