MAPO: Boosting Large Language Model Performance with Model-Adaptive Prompt Optimization

Yuyan Chen, Zhihao Wen, Ge Fan, Zhengyu Chen, Wei Wu +4 more
7/4/2024
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Prompt engineering, as an efficient and effective way to leverage Large Language Models (LLM), has drawn a lot of attention from the research community. The existing research primarily emphasizes the importance of adapting prompts to specific tasks, rather than specific LLMs. However, a good prompt is not solely defined by its wording, but also binds to the nature of the LLM in question. In this work, we first quantitatively demonstrate that different prompts should be adapted to different LLMs to enhance their capabilities across various downstream tasks in NLP. Then we novelly propose a model-adaptive prompt optimizer (MAPO) method that optimizes the original prompts for each specific LLM in downstream tasks. Extensive experiments indicate that the proposed method can effectively refine prompts for an LLM, leading to significant improvements over various downstream tasks.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chen2024mapo,
  title  = {MAPO: Boosting Large Language Model Performance with Model-Adaptive Prompt Optimization},
  author = {Yuyan Chen and Zhihao Wen and Ge Fan and Zhengyu Chen and Wei Wu and Dayiheng Liu and Zhixu Li and Bang Liu and Yanghua Xiao},
  year   = {2024},
  eprint = {2407.04118},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.04118v1}
}

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/2407.04118.svg)](https://codeofpaper.com/paper/2407.04118)

Discussion