[논문 리뷰] Meta-Prompting: Enhancing Language Models with Task-Agnostic Scaffolding
메타 프롬 prompting은 전문가 LM 프롬프트를 조율하는 메타 모델을 활용하고(선택적으로 Python 실행) 제로샷 성능을 향상시켜 다양한 작업에서 표준 프롬프트, 전문가-다이나믹 프롬프트, 다인 프롬 prompting 방법보다 우수하다.
We introduce meta-prompting, an effective scaffolding technique designed to enhance the functionality of language models (LMs). This approach transforms a single LM into a multi-faceted conductor, adept at managing and integrating multiple independent LM queries. By employing high-level instructions, meta-prompting guides the LM to break down complex tasks into smaller, more manageable subtasks. These subtasks are then handled by distinct "expert" instances of the same LM, each operating under specific, tailored instructions. Central to this process is the LM itself, in its role as the conductor, which ensures seamless communication and effective integration of the outputs from these expert models. It additionally employs its inherent critical thinking and robust verification processes to refine and authenticate the end result. This collaborative prompting approach empowers a single LM to simultaneously act as a comprehensive orchestrator and a panel of diverse experts, significantly enhancing its performance across a wide array of tasks. The zero-shot, task-agnostic nature of meta-prompting greatly simplifies user interaction by obviating the need for detailed, task-specific instructions. Furthermore, our research demonstrates the seamless integration of external tools, such as a Python interpreter, into the meta-prompting framework, thereby broadening its applicability and utility. Through rigorous experimentation with GPT-4, we establish the superiority of meta-prompting over conventional scaffolding methods: When averaged across all tasks, including the Game of 24, Checkmate-in-One, and Python Programming Puzzles, meta-prompting, augmented with a Python interpreter functionality, surpasses standard prompting by 17.1%, expert (dynamic) prompting by 17.3%, and multipersona prompting by 15.2%.
연구 동기 및 목표
- 작업에 구애받지 않는 발판 프레임워크를 소개하여 단일 LM을 지휘자와 전문가 패널로 전환한다.
- 복합 문제를 전문 프롬프트가 처리하는 하위 작업으로 분해한다.
- 작업별 샘플 없이도 다양한 작업에서 견고성과 정확도 향상을 입증한다.
- 적용 범위를 넓히고 성능을 높이기 위해 외부 도구(예: Python 인터프리터)를 통합한다.
제안 방법
- 작업 분해와 전문가 선택을 고수준 프롬프트로 조정하는 메타 모델을 정의한다.
- 메타 모델이 도메인별 전문 프롬프트를 호출하고(동일 LM이 다른 지시를 받는 경우도 가능) 그 출력을 통합할 수 있도록 한다.
- 템플릿 t_init, t_mid, t_exp와 추출기 e_exp, e_ret를 사용해 형식화하고, 요청하고, 결과를 수집한다.
- 전문가가 새로운 지시에 응답하는 프롬프트 이력을 반복적으로 구축하고, 메타 모델이 최종 산출물을 검증하고 합성한다.
- 실시간 코드 실행 및 검증을 위한 Python 인터프리터로 프레임워크를 선택적으로 확장한다.
- 다양한 제로샷 기준선(Std, 0-CoT, Ex-St, Ex-Dy, MP)에 대해 다수의 작업에서 평가한다.

실험 결과
연구 질문
- RQ1단일 언어 모델이 지휘자 역할과 여러 자기 홍보된 전문가를 모두 수행하면 다양한 영역에서 제로샷 작업 성능이 향상될 수 있는가?
- RQ2작업-무관 메타 프롬 prompting이 정확도와 견고성에 미치는 영향은 표준 프롬 prompting, 전문가 프롬 prompting(정적/동적), 다인 프롬 prompting에 비해 어떠한가?
- RQ3메타 프롬 prompting에 Python 인터프리터를 통합하면 작업 간 일관된 성능 향상이 나타나는가?
- RQ4메타 프롬 prompting 프레임워크가 오류 사례와 검증을 어떻게 처리하여 신뢰성을 높이는가?
주요 결과
- 메타-프롬 prompting은 특히 Python 인터프리터와 함께 표준 프롬 prompting 대비 평균 과제 정확도를 17.1% 향상시키고, 동적 전문가 프롬 prompting 대비 17.3% 향상시키며, 다인 프롬 prompting 대비 15.2% 향상시킨다.
- Game of 24, Checkmate-in-One, Python Programming Puzzles, Shakespearean Sonnet Writing과 같은 과제에서 메타-프롬 prompting은 기준선 대비 실질적 이득을 얻고, 휴리스틱 및 반복적 문제 해결에서 뚜렷한 향상을 보인다.
- Python 인터프리터 통합은 메타-프롬 prompting without Python 대비 과제별 평균 추가 개선을 11.5%까지 제공한다.
- 새로운 시각과 전문가 검증을 통한 체계적 검증은 해결책의 신뢰성을 높이고 과잉 확신을 줄여 더 나은 오류 탐지 및 수정이 가능하게 한다.
- 메타 모델은 과제의 필요에 따라 계산적(computational) 대 창의적(creative) 전문가 유형을 동적으로 선택하는 등 적응적이고 과제 주도적 조합을 보여준다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.