Skip to main content
QUICK REVIEW

[논문 리뷰] Make Prompt-based Black-Box Tuning Colorful: Boosting Model Generalization from Three Orthogonal Perspectives

Qiushi Sun, Chengcheng Han|arXiv (Cornell University)|2023. 05. 14.
Topic ModelingComputer Science인용 수 3
한 줄 요약

이 논문은 대규모 언어 모델에서 백박스 프롬프트 튜닝을 향상시키기 위해 세 가지 상호수직적인 기법을 사용하는 플러그 앤 플레이 프레임워크인 BBT-RGB를 제안한다: 과적합을 줄이기 위한 이단계 유도 미사용 최적화 전략, 더 나은 컨텍스트 활용을 위한 자동 구두화자 생성, 그리고 컨텍스트 내 예시를 활용한 지시 기반 프롬프트 초기화. 이 방법은 소수의 예시 설정에서 여러 NLP 작업에서 최신 기술 성능을 달성하며, 기울기 기반 파rameter 효율적 튜닝 및 이전의 백박스 방법보다 뛰어나지만, 조정 가능한 파rameter 수를 최소화한 채 유지된다.

ABSTRACT

Large language models (LLMs) have shown increasing power on various natural language processing (NLP) tasks. However, tuning these models for downstream tasks usually needs exorbitant costs or is unavailable due to commercial considerations. Recently, black-box tuning has been proposed to address this problem by optimizing task-specific prompts without accessing the gradients and hidden representations. However, most existing works have yet fully exploited the potential of gradient-free optimization under the scenario of few-shot learning. In this paper, we describe BBT-RGB, a suite of straightforward and complementary techniques for enhancing the efficiency and performance of black-box optimization. Specifically, our method includes three plug-and-play components: (1) Two-stage derivative-free optimization strategy that facilitates fast convergence and mitigates overfitting; (2) Automatic verbalizer construction with its novel usage under few-shot settings; (3) Better prompt initialization policy based on instruction search and auto-selected demonstration. Extensive experiments across various tasks on natural language understanding and inference demonstrate the effectiveness of our method. Our codes are publicly available at https://github.com/QiushiSun/BBT-RGB.

연구 동기 및 목표

  • 소수의 예시 설정에서 백박스 프롬프트 튜닝의 과적합 및 최적화 수렴의 열악함을 해결하기 위해.
  • 다양한 구두화자와 컨텍스트 내 학습을 활용하여 더 나은 프롬프트 초기화를 통해 모델 일반화를 향상시키기 위해.
  • 모델 기울기나 은닉 상태에 접근할 수 없더라도, 유도 없는 최적화의 안정성과 성능을 향상시키기 위해.
  • 입력-출력 쌍만 이용 가능한 백박스 API 환경에서 효과적인 프롬프트 튜닝을 가능하게 하기 위해.
  • 전체 미세조정 성능에 근접하면서도 연속적인 프롬프트 파rameter 수를 극히 적게 조정함으로써 성능을 달성하기 위해.

제안 방법

  • 이중단계 유도 없는 최적화(DFO) 전략을 도입: 먼저 CMA-ES를 사용해 전역 탐색을 수행하고, 이후 COBYLA로 국소 정밀 조정을 통해 수렴 안정성과 과적합 감소를 도모한다.
  • 다중 혼합 구두화자(M2 Verbalizers) 기법을 제안하여 다수의 레이블 워드 후보를 자동으로 생성하고 선택함으로써 강건성 향상과 모델 출력의 활용을 극대화한다.
  • In 2 초기화 방법을 활용해 작업 전용 수동 지시문과 트레이닝 세트에서 자동으로 선택된 예시를 조합하여 프롬프트 품질을 최초 단계에서 향상시킨다.
  • 랜덤 프로젝션 행렬을 사용해 프롬프트 차원을 감소시키고, 유도 없는 최적화 과정에서 효율성을 유지한다.
  • 각 구성 요소를 별도로 적용하거나 조합할 수 있는 플러그 앤 플레이 프레임워크를 설계하여 호환성과 모듈성을 향상시킨다.
  • 검증 성능 기반으로 트레이닝 세트에서 가장 효과적인 예시 샘플을 선택함으로써 컨텍스트 내 학습을 활용한다.
Figure 1: Comparing BBT-RGB with other tuning methods on average performance over seven tasks described in section 5.1 . The size of the circle is proportional to the standard deviation.
Figure 1: Comparing BBT-RGB with other tuning methods on average performance over seven tasks described in section 5.1 . The size of the circle is proportional to the standard deviation.

실험 결과

연구 질문

  • RQ1소수의 예시 조건에서 이중단계 DFO 전략이 백박스 프롬프트 튜닝의 수렴 안정성 향상과 과적합 감소에 기여하는가?
  • RQ2다수의 후보를 활용한 자동 구두화자 생성이 백박스 튜닝에서 모델 일반화와 강건성 향상에 어떤 영향을 미치는가?
  • RQ3지시 학습과 컨텍스트 내 예시를 조합하면 프롬프트 초기화 및 최종 성능 향상에 어느 정도 영향을 미치는가?
  • RQ4연속적인 프롬프트를 사용한 백박스 튜닝이 조정 가능한 파rameter를 최소화하면서도 전체 미세조정 성능에 근접할 수 있는가?
  • RQ5기울기 기반 파rameter 효율적 튜닝 방법과 비교해 BBT-RGB는 백박스 환경에서 어떻게 성능을 내는가?

주요 결과

  • BBT-RGB는 평가된 모든 NLP 작업에서 이전의 기울기 없는 튜닝 방법들을 모두 능가하며, 감성 분석(SST-2 및 Yelp)과 자연어 추론(SNLI, RTE, MRPC)을 포함한다.
  • SNLI 및 MRPC 작업에서 BBT-RGB는 전체 미세조정 성능을 초월하는 높은 정확도를 달성하여, 백박스 제약 조건 하에서도 표준 미세조정을 뛰어넘는 능력을 입증한다.
  • 이중단계 DFO 전략은 검증 손실의 진동을 크게 줄이고 일반화 성능을 향상시키며, 특히 CMA-ES 단일 방법 대비 과적합을 완화하는 야후 데이터셋에서 두드러진다.
  • 수동 지시문과 자동으로 선택된 예시를 조합한 In 2 초기화 방법은 더 나은 초기 프롬프트 품질과 더 빠른 수렴을 이끌어낸다.
  • BBT-RGB는 감성 분석, 주제 분류, 자연어 추론를 포함한 일곱 가지 다양한 NLP 작업에서 GLUE 벤치마크에서 최신 기술 성능을 달성한다.
  • 이 방법은 조정 가능한 파rameter 수를 극히 적게 유지하면서도 강력한 성능을 유지하여, 백박스 튜닝 환경에서 매우 높은 효율성을 입증한다.
Figure 2: An illustration of BBT-RGB. We use R ed , G reen and B lue to indicate three distinct aspects of our strategy, which inspired the naming of our method. M 2 Verbalizers (Multi-Mixed Verbalizers) further utilize the information provided by the LLMs. In 2 Initialization (Instruction learning
Figure 2: An illustration of BBT-RGB. We use R ed , G reen and B lue to indicate three distinct aspects of our strategy, which inspired the naming of our method. M 2 Verbalizers (Multi-Mixed Verbalizers) further utilize the information provided by the LLMs. In 2 Initialization (Instruction learning

이 논문 읽기

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

누빈트에서 이 논문 읽기

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