SPELL: Semantic Prompt Evolution based on a LLM

Yujian Betterest Li, Kai Wu
10/2/2023
cs.CLcs.AI

No confident code implementation found for this paper.

Abstract

Prompt engineering is a new paradigm for enhancing the performance of trained neural network models. For optimizing text-style prompts, existing methods usually individually operate small portions of a text step by step, which either breaks the fluency or could not globally adjust a prompt. Since large language models (LLMs) have powerful ability of generating coherent texts token by token, can we utilize LLMs for improving prompts? Based on this motivation, in this paper, considering a trained LLM as a text generator, we attempt to design a black-box evolution algorithm for automatically optimizing texts, namely SPELL (Semantic Prompt Evolution based on a LLM). The proposed method is evaluated with different LLMs and evolution parameters in different text tasks. Experimental results show that SPELL could rapidly improve the prompts indeed. We further explore the evolution process and discuss on the limitations, potential possibilities and future work.

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!

Cite this paper

@article{li2023spell,
  title  = {SPELL: Semantic Prompt Evolution based on a LLM},
  author = {Yujian Betterest Li and Kai Wu},
  year   = {2023},
  eprint = {2310.01260},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2310.01260v1}
}

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

Discussion