Skip to main content
QUICK REVIEW

[논문 리뷰] GFlowPO: Generative Flow Network as a Language Model Prompt Optimizer

Junmo Cho, Suhan Kim|arXiv (Cornell University)|2026. 02. 03.
Topic ModelingComputer Science인용 수 0
한 줄 요약

GFlowPO는 프롬프트 최적화를 사후 추론으로 공식화하고 오프폴리시 GFlowNet 학습과 동적 메모리 업데이트를 사용하여 다양한 LMs와 과제에 대해 고보상 프롬프트를 효율적으로 발견합니다.

ABSTRACT

Finding effective prompts for language models (LMs) is critical yet notoriously difficult: the prompt space is combinatorially large, rewards are sparse due to expensive target-LM evaluation. Yet, existing RL-based prompt optimizers often rely on on-policy updates and a meta-prompt sampled from a fixed distribution, leading to poor sample efficiency. We propose GFlowPO, a probabilistic prompt optimization framework that casts prompt search as a posterior inference problem over latent prompts regularized by a meta-prompted reference-LM prior. In the first step, we fine-tune a lightweight prompt-LM with an off-policy Generative Flow Network (GFlowNet) objective, using a replay-based training policy that reuses past prompt evaluations to enable sample-efficient exploration. In the second step, we introduce Dynamic Memory Update (DMU), a training-free mechanism that updates the meta-prompt by injecting both (i) diverse prompts from a replay buffer and (ii) top-performing prompts from a small priority queue, thereby progressively concentrating the search process on high-reward regions. Across few-shot text classification, instruction induction benchmarks, and question answering tasks, GFlowPO consistently outperforms recent discrete prompt optimization baselines.

연구 동기 및 목표

  • 조합적인 프롬프트 공간과 희박한 보상으로 자동 프롬프트 최적화 필요성 동기 부여.
  • 프롬프트 탐색을 메타-프롬프트 사전으로 정규화된 후방 추론으로 공식화.
  • 프롬프트를 위한 샘플 효율적인 오프폴리시 GFlowNet 학습 체계 개발.
  • 고보상 영역에 탐색을 적응적으로 집중시키는 Dynamic Memory Update (DMU) 도입.
  • 다양한 과제와 LM 쌍에서의 강건성 시연

제안 방법

  • 프롬프트 p(z|D,M)의 사후를 p(D|z) p_ref(z|M)로 비례화하여 정의합니다.
  • Replay 기반 정책을 사용하는 경량 프롬프트-LM의 오프폴리시 GFlowNet 목적을 미세 조정합니다.
  • GFlowNet 학습을 위한 VarGrad 기반 글로벌 경로 일관성 손실을 재플레이 버퍼 샘플링으로 사용합니다.
  • likelihood를 테스트 성능과의 상관성을 더 잘 반영하도록 학습 정확도 A_D(z)로 대체합니다.
  • DMU를 통해 재플레이 버퍼와 소규모 고보상 버퍼의 프롬프트를 혼합하여 메타-프롬프트 M을 업데이트합니다.
  • 텍스트 분류, 지시 유도, 질의 응답에 대해 다수의 프롬프트-LM/타깃-LM 쌍으로 평가합니다
Figure 1 : Concepts. Blue contour indicates high performing prompt regions. (a) Existing on-policy RL frameworks fail to explore the huge combinatorial search space with poor sample efficiency. (b) Our GFlowPO that can sample efficiently explore the search space by gradually annealing the posterior
Figure 1 : Concepts. Blue contour indicates high performing prompt regions. (a) Existing on-policy RL frameworks fail to explore the huge combinatorial search space with poor sample efficiency. (b) Our GFlowPO that can sample efficiently explore the search space by gradually annealing the posterior

실험 결과

연구 질문

  • RQ1프롬프트 검색을 메타-프롬프트 사전으로의 사후 추론으로 효과적으로 전환할 수 있는가?
  • RQ2오프폴리시 GFlowNet 학습이 온폴리시 RL 방법에 비해 고보상 프롬프트를 발견하는 샘플 효율성을 향상시키는가?
  • RQ3훈련 없이도 Dynamic Memory Update(DMU)가 반복에 걸쳐 고보상 영역에 탐색을 효과적으로 집중시키는가?
  • RQ4다양한 과제와 LM 쌍에서의 Few-shot 및 지시 유도 설정에서 GFlowPO의 성능은 어떤가?

주요 결과

  • GFlowPO는 보고된 TABLE 1 비교에서 여섯 개의 few-shot 텍스트 분류 데이터셋에서 평균 정확도 최고를 달성합니다.
  • GFlowPO는 SST-2, RTE, SNLI에서 baselines를 능가하고 QNLI와 SNLI에서 task/LM 쌍 간 경쟁력이 있거나 최고입니다.
  • 지시 유도 및 BBII 과제에서 GFlowPO는 평균 정확도 면에서 일관되게 baselines를 능가하며, 정확한 토큰 매치를 요구하는 텍스트 생성 과제에서도 우수합니다.
  • QA 과제(MMLU 및 OpenBookQA)에서 GFlowPO는 OpenBookQA 점수 최고를 달성하고 MMLU에서도 경쟁력 있습니다.
  • ablation 결과에서 오프폴리시 학습과 DMU가 모두 기여하며, DMU를 오프폴리시 학습과 결합했을 때 상당한 이득을 제공합니다.
  • 훈련 정확도 곡선은 GFlowPO가 StablePrompt보다 더 효율적으로 더 높은 보상 프롬프트를 발견함을 시사합니다
Figure 2 : GFlowPO pipeline. The optimizer prompt-LM samples prompts conditioned on meta-prompt $M$ , the target LLM provides rewards, and off-policy GFlowNet training plus Dynamic Memory Update (DMU) iteratively improves exploration and prompt quality.
Figure 2 : GFlowPO pipeline. The optimizer prompt-LM samples prompts conditioned on meta-prompt $M$ , the target LLM provides rewards, and off-policy GFlowNet training plus Dynamic Memory Update (DMU) iteratively improves exploration and prompt quality.

이 논문 읽기

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

누빈트에서 이 논문 읽기

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