프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization

  • 연구 문제 명령어 튜닝 LLM의 하이퍼파라미터를 자동이고 신뢰할 수 있게 평가하는 방법이 필요합니다.
  • 연구 방법 Alpaca 데이터에서 만든 응답 쌍을 GPT-3.5로 증류하고 위치 편향 필터링을 거쳐 LLaMA 기반 판정 모델 PandaLM을 학습합니다.
  • 주요 결과 사람 레이블 테스트에서 PandaLM-70B는 정확도 0.6687로 GPT-4의 0.6647을 넘었고, PandaLM이 고른 설정은 Alpaca 기본 설정보다 우수 응답을 더 많이 얻었습니다.

LLM 명령어 튜닝 하이퍼파라미터 평가의 어려움

명령어 튜닝된 대형 언어 모델(LLM)의 성능은 옵티마이저, 학습률, 에폭 수, 학습 데이터의 품질과 규모에 크게 좌우됩니다. 그런데 이러한 하이퍼파라미터를 고르려면 튜닝된 모델들을 자동이고 신뢰할 수 있게 평가할 수 있어야 합니다. 기존 평가 방식은 사람 주석이나 API 기반 평가에 의존하며, 비용과 시간이 많이 들고 재현성과 일관성에 한계가 있습니다. 또한 정확도나 F1 같은 전통적 지표는 응답의 간결성, 명확성, 지시 준수, 포괄성, 형식성 같은 주관적 품질을 충분히 반영하지 못합니다. 저자들은 이러한 문제를 해결하기 위해 하이퍼파라미터 최적화에 쓸 수 있는 판정 모델을 만드는 것을 목표로 합니다.

PandaLM의 데이터 증류와 학습 절차

PandaLM은 LLaMA를 기반으로 한 판정 모델로, 같은 지시문에 대한 두 응답을 입력받아 어느 쪽이 더 우수한지 판단하고 그 이유와 참조 응답을 생성하도록 학습됩니다. 학습 데이터의 입력 지시문과 입력은 Alpaca 52K에서 가져오며, 응답 쌍은 LLaMA-7B, Bloom-7B, Cerebras-GPT-6.7B, OPT-7B, Pythia-6.9B가 Alpaca와 같은 데이터와 하이퍼파라미터로 튜닝되어 만든 것입니다. 사람이 모든 라벨을 만드는 대신 self-instruct 방식을 따라 GPT-3.5로 평가 결과, 이유, 참조 응답을 증류합니다. 이후 응답 순서를 바꿔 두 번 추론했을 때 결과가 충돌하는 샘플을 제거하여 위치 편향을 줄이고 최종적으로 30만 개의 샘플을 얻습니다.

학습에서는 다음 토큰 예측을 위한 교차 엔트로피 손실을 사용하며, AdamW 옵티마이저, 학습률 2e-5, 코사인 스케줄러로 2 에폭 동안 미세 조정합니다.

Figure 6: The prompt for training PandaLM

Figure 6 : The prompt for training PandaLM.

원문 · CC BY 4.0 · Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang · PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization · 원문 그림 인용 · 원본 PDF 16쪽에서 그림 영역을 추출했습니다.

사람 레이블 테스트셋에서의 판정 정확도

PandaLM의 신뢰성은 사람이 라벨한 테스트셋으로 확인합니다. 테스트 데이터는 self-instruct의 사람 평가 데이터에서 가져오며, 세 명의 평가자가 독립적으로 라벨을 붙이고 각 평가자의 Inter Annotator Agreement가 0.85보다 크도록 차이가 큰 샘플을 제외합니다. 필터링 후 테스트셋은 1K 샘플입니다. Table 2에서 사람 주석과 비교한 정확도는 GPT-3.5가 0.6296, GPT-4가 0.6647, PandaLM-7B가 0.5926이며, PandaLM-70B는 0.6687로 GPT-4를 넘어섭니다. 따라서 PandaLM-7B는 이 정확도 지표에서 두 GPT 평가자보다 낮고, 원문이 말하는 GPT-3.5·GPT-4와의 비슷한 성능은 PandaLM-7B의 여러 지표와 비교 그래프를 함께 본 결과입니다.

이 결과는 사람이 라벨한 테스트셋과 해당 샘플 선별 조건에서 얻은 것입니다.

튜닝 하이퍼파라미터 선택 효과

PandaLM이 선택한 하이퍼파라미터의 효과는 Alpaca 기본 설정과 비교해 확인합니다. 탐색 공간은 에폭 1에서 5, 학습률 2e-6, 1e-5, 2e-5, 2e-4, SGD와 AdamW 두 옵티마이저, 코사인과 선형 두 스케줄러의 조합으로 구성된 80개 설정입니다. 이 탐색은 800번의 비교로 수행되며, 모델마다 최적 설정이 다르게 나타납니다. 학습 데이터는 두 설정에서 동일하게 유지됩니다. GPT-4를 평가자로 사용한 실험에서 PandaLM이 고른 설정의 다섯 모델은 평균 47.0개의 우수 응답과 26.2개의 열등 응답을 얻었고, 사람 평가에서는 평균 79.8개의 우수 응답과 25.2개의 열등 응답을 얻었다고 보고됩니다.

평가자별 세부 비교는 Table 5에서 확인할 수 있습니다.

Figure 1: The models are evaluated and compared using both GPT-3.5, GPT-4 and human annotators.
The ‘Win’ count represents the number of responses where models…

Figure 1 : The models are evaluated and compared using both GPT-3.5, GPT-4 and human annotators. The ‘Win’ count represents the number of responses where models fine-tuned with PandaLM-selected optimal hyperparameters outperform models using Alpaca’s hyperparameters. Conversely, the ‘Lose’ count represents the number of responses where models utilizing Alpaca’s hyperparameters produce superior responses compared with those fine-tuned with the optimal hyperparameters determined by PandaLM. Note that the overall test set comprises 170 instances, and ‘Tie’ scenarios are not considered in this illustration.

원문 · CC BY 4.0 · Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang · PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.
Table 5: Evaluation of the effectiveness of PandaLM’s selected hyperparameters and Alpaca’s
hyperparameters. The tuple in the table means (#win,#lose,#tie). Sp…

Table 5 : Evaluation of the effectiveness of PandaLM’s selected hyperparameters and Alpaca’s hyperparameters. The tuple in the table means (#win,#lose,#tie). Specifically, (45,26,99) in the first line of the table indicates that PandaLM’s hyperparameter-tuned LLaMA-7B outperforms Alpaca’s version in 45 responses, underperforms in 26, and matches the quality in 99 instances. The ‘Judged By’ column represents different methods of response evaluation.

원문 · CC BY 4.0 · Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang · PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.
Figure 8: Hyperparameter Optimization Analysis in PandaLM. The figure illustrates the performance
across different learning rates and variability in model perf…

Figure 8 : Hyperparameter Optimization Analysis in PandaLM. The figure illustrates the performance across different learning rates and variability in model performance across epochs.

원문 · CC BY 4.0 · Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang · PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization · 원문 그림 인용 · 원본 PDF 21쪽에서 그림 영역을 추출했습니다.

평가 이유와 참조 응답의 역할

PandaLM은 승패 레이블뿐 아니라 평가 이유와 참조 응답을 함께 학습합니다. 이 설계의 효과를 보기 위해 이유와 참조 응답을 제외하고 승·패·무승부 레이블만 남긴 PandaLM-7B를 다시 학습했습니다. 그 결과 정확도는 0.4725로, 전체 설정의 0.5926보다 낮게 보고됩니다. 이 실험은 이유와 참조 응답이 판정 학습에 도움이 되었다는 근거이며, 같은 실험에서 다른 구성 요소의 기여까지 함께 증명한 것은 아닙니다.

Table 4: Comparison of PandaLM performance w/ and w/o reasons and references

Table 4 : Comparison of PandaLM performance w/ and w/o reasons and references.

원문 · CC BY 4.0 · Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang · PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

범위와 한계

저자들은 하이퍼파라미터 탐색 범위가 일반적 관행과 선행 문헌을 바탕으로 정해졌기 때문에 절대적으로 최적인 설정을 포함하지 않을 수 있다고 밝힙니다. 또한 핵심 학습 데이터가 GPT-3.5에서 증류되었으므로 사람의 선호와 완전히 일치하지 않을 수 있습니다. 논문은 주로 결과 기반 평가에 초점을 두며, 지도 학습 설정만 다루었습니다. 따라서 반지도, 노이즈, 불균형 학습으로의 확장은 향후 과제로 남아 있습니다.

논문 정보

저자
Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang
학회·저널
arXiv · 프리프린트
최초 공개일
2023년 6월 8일
등록일
2026년 11월 5일
수정일
2024년 5월 24일
버전
v2
arXiv
2306.05087
분류
cs.CL · cs.AI
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

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

초록

Instruction tuning large language models (LLMs) remains a challenging task, owing to the complexity of hyperparameter selection and the difficulty involved in evaluating the tuned models. To determine the optimal hyperparameters, an automatic, robust, and reliable evaluation benchmark is essential. However, establishing such a benchmark is not a trivial task due to the challenges associated with evaluation accuracy and privacy protection. In response to these challenges, we introduce a judge large language model, named PandaLM, which is trained to distinguish the superior model given several LLMs. PandaLM's focus extends beyond just the objective correctness of responses, which is the main focus of traditional evaluation datasets. It addresses vital subjective factors such as relative conciseness, clarity, adherence to instructions, comprehensiveness, and formality. To ensure the reliability of PandaLM, we collect a diverse human-annotated test dataset, where all contexts are generated by humans and labels are aligned with human preferences. Our results indicate that PandaLM-7B achieves 93.75% of GPT-3.5's evaluation ability and 88.28% of GPT-4's in terms of F1-score on our test dataset. PandaLM enables the evaluation of LLM to be fairer but with less cost, evidenced by significant improvements achieved by models tuned through PandaLM compared to their counterparts trained with default Alpaca's hyperparameters. In addition, PandaLM does not depend on API-based evaluations, thus avoiding potential data leakage. All resources of PandaLM are released at https://github.com/WeOpenML/PandaLM.

원문 인용

Yidong Wang, Zhuohao Yu, Zhengran Zeng, Linyi Yang, Cunxiang Wang, Hao Chen, Chaoya Jiang, Rui Xie, Jindong Wang, Xing Xie, Wei Ye, Shikun Zhang, Yue Zhang (2023). PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization. arXiv:2306.05087v2. https://arxiv.org/abs/2306.05087v2

BibTeX
@misc{wang2023pandalm,
  title = {{PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization}},
  author = {Yidong Wang and Zhuohao Yu and Zhengran Zeng and Linyi Yang and Cunxiang Wang and Hao Chen and Chaoya Jiang and Rui Xie and Jindong Wang and Xing Xie and Wei Ye and Shikun Zhang and Yue Zhang},
  year = {2023},
  eprint = {2306.05087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2306.05087v2}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입