CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generation

Han He, Qianchu Liu, Lei Xu, Chaitanya Shivade, Yi Zhang +2 more
10/3/2024
cs.CLcs.AIcs.LG

Official code: amazon-science/CriSPO (13 stars, last commit 2025-01-14).

Abstract

Existing automatic prompt engineering methods are typically designed for discriminative tasks, where new task prompts are iteratively refined with limited feedback from a single metric reflecting a single aspect. However, these approaches are suboptimal for generative tasks, which require more nuanced guidance beyond a single numeric metric to improve the prompt and optimize multiple aspects of the generated text. To address these challenges, we propose a novel multi-aspect Critique-Suggestion-guided automatic Prompt Optimization (CriSPO) approach. CriSPO introduces a critique-suggestion module as its core component. This module spontaneously discovers aspects, and compares generated and reference texts across these aspects, providing specific suggestions for prompt modification. These clear critiques and actionable suggestions guide a receptive optimizer module to make more substantial changes, exploring a broader and more effective search space. To further improve CriSPO with multi-metric optimization, we introduce an Automatic Suffix Tuning (AST) extension to enhance the performance of task prompts across multiple metrics. We evaluate CriSPO on 4 state-of-the-art LLMs across 4 summarization and 5 QA datasets. Extensive experiments show 3-4% ROUGE score improvement on summarization and substantial improvement of various metrics on QA. Code available at https://github.com/amazon-science/crispo

View on arXivView PDF

Code Implementations(1)

Implementation of AAAI-2025 paper -- "CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generation"

133PythonJan 13, 20251 years agoNOASSERTION

Similar Papers

Cite this paper

@article{he2024crispo,
  title  = {CriSPO: Multi-Aspect Critique-Suggestion-guided Automatic Prompt Optimization for Text Generation},
  author = {Han He and Qianchu Liu and Lei Xu and Chaitanya Shivade and Yi Zhang and Sundararajan Srinivasan and Katrin Kirchhoff},
  year   = {2024},
  eprint = {2410.02748},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2410.02748v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2410.02748.svg)](https://codeofpaper.com/paper/2410.02748)

Discussion