# Tuna: Instruction Tuning using Feedback from Large Language Models

Tuna: 대규모 언어 모델의 피드백을 이용한 지시 튜닝

Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · arXiv · 2023년 10월 20일

- **연구 문제** Alpaca처럼 교사 LLM의 단일 응답으로 명령어 튜닝한 모델은 더 나은 응답의 존재를 학습하지 못해 응답 품질을 구분하는 능력이 제한됩니다.
- **연구 방법** 확률적 순위 학습으로 교사 LLM의 응답 확률 순위를 학습한 뒤, 모델 자신의 응답을 GPT-4로 순위 매겨 문맥적 순위 학습을 순차적으로 적용합니다.
- **주요 결과** Tuna는 Super NI 0-shot에서 Alpaca보다 2.7 높고, Vicuna QA에서 Alpaca 대비 승률 86%를 보고합니다. 다만 평가에 따라 RLHF 기준선과의 우위는 달라집니다.

## 명령어 튜닝의 한계와 문제 설정

Alpaca처럼 Self-Instruct로 만든 데이터에 명령어 튜닝을 수행하면 기반 LLM은 지시를 따르는 방식으로 바뀌지만, 각 지시문에 대해 교사 모델의 단일 응답만 학습합니다. 이 때문에 모델은 더 나은 응답이 존재한다는 정보를 얻지 못하고, 얕은 스타일이나 형식만 익힐 수 있습니다. 또한 더 상세한 답변처럼 확률이 낮은 응답은 모델 분포에서 잘 샘플링되지 않아 노출 편향(exposure bias)과 함께 학습 신호가 부족해집니다. 이 논문은 명령어 튜닝된 모델이 여러 응답의 상대적 품질을 구분하도록 추가 미세 조정하는 방법을 다룹니다.

## 확률적 순위 학습의 동작

확률적 순위 학습은 교사 LLM인 text-davinci-003이 같은 지시문에 대해 생성한 N개의 응답을 학습 신호로 사용합니다. 각 응답의 로그 확률을 응답 길이로 정규화하고 길이 패널티 β를 적용한 점수로 응답을 내림차순 정렬합니다. 이후 순위가 높은 응답의 평균 로그 확률이 낮은 응답보다 margin 이상 크도록 쌍별 순위 손실을 최소화합니다. 원래 응답에 대한 교차 엔트로피 항을 λ로 더해 순위 손실의 과최적화를 억제합니다. 원문은 β=1.3을 LIMA 학습셋의 NLL로 선택했다고 밝힙니다.

![Table 5: The token-level log-likelihood of LIMA train- ing set under Tunap models trained with probabilistic ranking data scored with different β](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-303a8adf06ea7838359216c900dc88fb.png?thumb=512)

**Table 5** : The token-level log-likelihood of LIMA train- ing set under Tunap models trained with probabilistic ranking data scored with different β.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 문맥적 순위 학습과 자체 응답 분포의 개선

문맥적 순위 학습은 모델이 같은 지시문에 대해 샘플링한 응답을 데이터로 사용합니다. 샘플 사이의 ROUGE-L이 τ=0.8을 넘으면 온도를 높여 다시 샘플링해 다양성을 확보합니다. 이후 GPT-4가 지시문이 개방형인지 폐쇄형인지 판단하고 자체 참조 응답을 만든 뒤, 기준에 따라 각 응답에 0~5점 세 항목의 합을 부여하여 순위를 매깁니다. 이 순위 데이터도 같은 순위 손실과 교차 엔트로피 정규화로 학습됩니다. 이 방법은 교사의 확률이 아니라 모델 자체의 응답 분포를 GPT-4의 문맥적 판단으로 재배열하는 것이 핵심입니다.

## 두 방법의 순차적 결합

Tuna는 먼저 확률적 순위 학습으로 Tunap을 얻고, 이어서 Tunap이 생성한 응답 분포에 문맥적 순위 학습을 적용해 얻은 모델입니다. 저자들은 교사 확률의 순위를 모델 용량 한계로 충분히 흡수하지 못할 수 있고, 모델 자신의 생성에 기반한 문맥적 순위가 용량에 맞춰 분포를 다듬는다고 설명합니다. 이 순서는 문맥적 순위 학습 뒤에 확률적 순위 학습을 적용한 Tunacp와 비교되어 선택된 방식입니다.

![Figure 1: The finetuning process using probabilistic ranking (top), contextual ranking (middle), and a com- bination of both (bottom)](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-41519d18a18bc68e26c84ab9317d34a5.png?thumb=512)

**Figure 1** : The finetuning process using probabilistic ranking (top), contextual ranking (middle), and a com- bination of both (bottom).

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## 실험 설정과 평가 범위

기반 모델은 7B LLaMA이며, 52K Alpaca 데이터로 명령어 튜닝된 Alpaca를 기준 모델로 둡니다. Super NI는 119개 테스트 과제에서 0-shot과 2-shot ROUGE-L로 평가하고, LMentry는 25개 과제의 정확도와 견고성 점수로 평가하며, Vicuna QA는 80개 질문에 대해 GPT-4 쌍대 비교로 Alpaca 대비 승·패·무를 집계합니다. 사람 평가는 Vicuna QA의 응답 순위를 점수로 바꾼 평균입니다. 각 평가의 지표와 판정 주체가 다르므로 결과는 평가별로 구분해 읽어야 합니다.

## 주요 결과와 비교 해석

Super NI 0-shot에서 Tuna는 38.7로 Alpaca의 36.0보다 2.7 높습니다. 같은 표에서 Tunap은 0-shot 39.4, Tunac은 2-shot 46.6으로 각 방법이 서로 다른 설정에서 강점을 보입니다. Vicuna QA에서 Tuna는 Alpaca 대비 86%의 승률을 기록했으며, 사람 평가 점수는 Tuna가 3.80으로 Alpaca 2.13보다 높습니다. 한편 PPO 기반 RLHF 기준선은 Vicuna QA에서 일부 조건이 더 높아, Tuna의 우위는 평가별로 달라집니다. 저자들은 Tuna가 세 벤치마크 전반에서 기준선을 개선한다고 보고합니다.

![Table 2: Human evaluation on Vicuna QA. \* denotes that the model is significantly (p \<0.01) better than Alpaca, while † denotes that Tuna is significantly (p \<…](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-b4b0a894a8773479903975cd2da40e62.png?thumb=512)

**Table 2** : Human evaluation on Vicuna QA. \* denotes that the model is significantly (p \<0.01) better than Alpaca, while † denotes that Tuna is significantly (p \<0.01) better than other models.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 5쪽에서 그림 영역을 추출했습니다.

![Table 8: Performance comparison of different models. The numbers in bold indicate the top-2 results. The numbers in parentheses indicate the performance differ…](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-df5710a510ec205212e8eed458f23d22.png?thumb=512)

**Table 8** : Performance comparison of different models. The numbers in bold indicate the top-2 results. The numbers in parentheses indicate the performance difference compared to Alpaca.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 14쪽에서 그림 영역을 추출했습니다.

## 절제와 통합 순서 실험

Alpaca-Mul은 추가 응답 데이터만으로 성능이 오르는지 확인하기 위해 확률적 순위 데이터의 응답 네 개를 Alpaca에 더해 학습한 모델입니다. 이 모델은 Super NI 0-shot에서 Alpaca보다 낮고, LMentry와 Vicuna QA에서는 Tunap과 Tuna보다 낮아, 응답 수 증가만으로 Tuna의 우위를 설명하기 어렵다고 해석됩니다. 통합 순서 실험에서는 Tunacp가 Tuna만큼 좋지 않아 순서가 중요하다고 보고합니다. 교차 엔트로피 가중치 λ는 {0, 0.1, 1, 5, 10}으로 바꿔 Tunac을 학습했을 때, λ가 커질수록 Super NI와 LMentry 같은 정확도 중심 지표가 개선되는 경향이 관찰됩니다.

![Table 3: Different combinations of probabilistic ranking data and contextual ranking data. The numbers in bold represent the top-2 results. The numbers in pare…](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-969a1322dfd4cc9c7063b947be66f7bb.png?thumb=512)

**Table 3** : Different combinations of probabilistic ranking data and contextual ranking data. The numbers in bold represent the top-2 results. The numbers in parentheses represent the performance difference compared to Alpaca.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![Figure 2: The effect of varying the weight λ of cross en- tropy regularization in Eq. 6 on Tunac. The win/lose/tie rate on Vicuna is computed against Alpaca](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-58ea7182e01908b188770df181d84dd6.png?thumb=512)

**Figure 2** : The effect of varying the weight λ of cross en- tropy regularization in Eq. 6 on Tunac. The win/lose/tie rate on Vicuna is computed against Alpaca.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

![Figure 3: The effect of varying the number of proba- bilistic ranking data on Tunap](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-3776f1cfaa9a57e430932cd2737a8a01.png?thumb=512)

**Figure 3** : The effect of varying the number of proba- bilistic ranking data on Tunap.

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## GPT-4 평가의 위험과 한계

문맥적 순위 매기기는 GPT-4 순위의 일관성과 프롬프트 민감성에 의존합니다. PRM은 긴 출력에 대한 GPT-4 순위의 경향을 물려받았고, Super NI와 LMentry에서는 13K GPT-4 데이터보다 낮은 성능을 보였지만 Vicuna QA에서는 거의 차이가 없었습니다. 이는 GPT-4 기반 개방형 QA 평가가 항상 정확하지 않을 수 있음을 시사합니다. GPT-4 순위는 50개 질문에서 사람 순위와 Spearman 0.72로 일치했다고 보고되었지만, 이 결과가 모든 평가에 일반화된다고 단정할 수는 없습니다. 또한 실험은 주로 Alpaca 데이터와 특정 사유 모델에 의존하며, 다른 언어나 도메인으로의 일반화는 아직 확인되지 않았습니다.

![Table 4: The average ranking lengths of contextual rank- ing data, probabilistic ranking data and the data gener- ated by the proxy ranking model (PRM)](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4/figures/figure-4f54eea6f8702d4e47631cc5f9c6e87c.png?thumb=512)

**Table 4** : The average ranking lengths of contextual rank- ing data, probabilistic ranking data and the data gener- ated by the proxy ranking model (PRM).

[원문](https://arxiv.org/abs/2310.13385v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei · Tuna: Instruction Tuning using Feedback from Large Language Models · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 논문 정보

- **저자**: Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2023년 10월 20일
- **등록일**: 2026년 11월 5일
- **수정일**: 2023년 10월 20일
- **버전**: v1
- **arXiv**: 2310.13385
- **분류**: cs.CL · cs.LG
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

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

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

## 초록

Instruction tuning of open-source large language models (LLMs) like LLaMA, using direct outputs from more powerful LLMs such as Instruct-GPT and GPT-4, has proven to be a cost-effective way to align model behaviors with human preferences. However, the instruction-tuned model has only seen one response per instruction, lacking the knowledge of potentially better responses. In this paper, we propose finetuning an instruction-tuned LLM using our novel \\textit{probabilistic ranking} and \\textit{contextual ranking} approaches to increase the likelihood of generating better responses. Probabilistic ranking enables the instruction-tuned model to inherit the relative rankings of high-quality and low-quality responses from the teacher LLM. On the other hand, learning with contextual ranking allows the model to refine its own response distribution using the contextual understanding ability of stronger LLMs. Furthermore, we apply probabilistic ranking and contextual ranking sequentially to the instruction-tuned LLM. The resulting model, which we call \\textbf{Tuna}, consistently improves the performance on Super Natural Instructions (119 test tasks), LMentry (25 test tasks), Vicuna QA, and can even obtain better results than several strong reinforcement learning baselines. Our code and data are available at \\url{ https://github.com/microsoft/LMOps}.

## 원문 인용

Haoran Li, Yiran Liu, Xingxing Zhang, Wei Lu, Furu Wei (2023). Tuna: Instruction Tuning using Feedback from Large Language Models. arXiv:2310.13385v1. https://arxiv.org/abs/2310.13385v1

**BibTeX**

```
@misc{li2023tuna,
  title = {{Tuna: Instruction Tuning using Feedback from Large Language Models}},
  author = {Haoran Li and Yiran Liu and Xingxing Zhang and Wei Lu and Furu Wei},
  year = {2023},
  eprint = {2310.13385},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.13385v1}
}
```

## 이 논문의 용어

- [GPT-4](https://refivu.com/terms/1e2d0d2cdc44-gpt-4)
- [ROUGE-L](https://refivu.com/terms/b00e147f8ed4-rouge-l)
- [Llama](https://refivu.com/terms/1a23d312f4db-llama)
- [instruction tuning](https://refivu.com/terms/0a2a2d11f238-instruction-tuning)
- [Alpaca](https://refivu.com/terms/acd615a4ec0a-alpaca)
- [Maximum Likelihood Estimation](https://refivu.com/terms/fce2bab02a9b-maximum-likelihood-estimation)
- [text-davinci-003](https://refivu.com/terms/fd924a5b4f4f-text-davinci-003)
- [length penalty](https://refivu.com/terms/714df175e515-length-penalty)
- [sequence-level distillation](https://refivu.com/terms/594e8666ab92-sequence-level-distillation)

## 다른 논문 해설

- [CycleDistill: Bootstrapping Machine Translation using LLMs with Cyclical Distillation](https://refivu.com/papers/50523ad6-077b-4964-b2a3-de0dc35430a9-cycledistill-bootstrapping-machine-translation-using-llms.md)
- [LexMatcher: Dictionary-centric Data Collection for LLM-based Machine Translation](https://refivu.com/papers/10d9cdf2-0131-4ba8-868f-abe7e1622924-lexmatcher-dictionary-centric-data-collection-for-llm-based.md)
- [What do Large Language Models Need for Machine Translation Evaluation?](https://refivu.com/papers/69007024-125c-404d-9a1f-73237ec547d8-what-do-large-language-models-need-for-machine.md)
- [PandaLM: An Automatic Evaluation Benchmark for LLM Instruction Tuning Optimization](https://refivu.com/papers/2832dfcd-bd57-482f-9d55-f5bae8d2c8d2-pandalm-an-automatic-evaluation-benchmark-for-llm.md)
- [Mind the Gap: Conformative Decoding to Improve Output Diversity of Instruction-Tuned Large Language Models](https://refivu.com/papers/937dbbed-286c-4773-a886-944ee9d12103-mind-the-gap-conformative-decoding-to-improve-output.md)
- [ChatRetriever: Adapting Large Language Models for Generalized and Robust Conversational Dense Retrieval](https://refivu.com/papers/c76f3af3-d7d0-44d3-bb30-280b7d0217a7-chatretriever-adapting-large-language-models-for-generalized.md)
- [Comparative Evaluation of Machine Translation Systems on Images with Text](https://refivu.com/papers/52af9e2b-9167-45ec-a459-39a4099b6eb6-comparative-evaluation-of-machine-translation-systems-on.md)
- [KazParC: Kazakh Parallel Corpus for Machine Translation](https://refivu.com/papers/adaa707f-d821-424c-83ee-af93c4f100b4-kazparc-kazakh-parallel-corpus-for-machine-translation.md)
- [Machine Translation Testing via Syntactic Tree Pruning](https://refivu.com/papers/241ef6bc-d9e5-4762-b817-d6fe146888f6-machine-translation-testing-via-syntactic-tree-pruning.md)
- [Natural Language Processing for Tigrinya: Current State and Future Directions](https://refivu.com/papers/e6c4ea39-2516-4ef6-8646-04f101922a20-natural-language-processing-for-tigrinya-current-state-and.md)
- [Ibom NLP: A Step Toward Inclusive Natural Language Processing for Nigeria's Minority Languages](https://refivu.com/papers/f6e2e0ac-0373-4628-b74e-eb75187ca8ad-ibom-nlp-a-step-toward-inclusive-natural-language.md)
- [Natural Language Processing for Dialects of a Language: A Survey](https://refivu.com/papers/0bccdae2-d1e8-45da-9055-76e978bb0730-natural-language-processing-for-dialects-of-a-language.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/a59ac188-09a8-4988-94cd-fcf6752c44b4-tuna-instruction-tuning-using-feedback-from-large-language)
