atlas

Research map / Large language models / Language, safety and interpretability

Adaptive Prompt Routing for Arbitrary Text Style Transfer with Pre-trained Language Models

AAAI 2024 · Large language models › Language, safety and interpretability · approach: In-context learning analysis · 10 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Adaptive Prompt Routing (APR), which trains a BERT-based router to pick, per input, the best human-readable prompt from a paraphrased candidate set for a frozen LLM doing arbitrary text style transfer.

Problem

Fixed prompts (manual or searched) are suboptimal for arbitrary text style transfer because LLMs are prompt-sensitive and input texts are linguistically diverse; searched prompts are also unreadable.

Approach

Build a candidate set of human-readable prompts (seed prompts paraphrased by GPT-3.5), label each prompt per input sentence via a style-transfer score (dynamic mean+std threshold), and train a BERT router that predicts which prompt is optimal for each input; then sample multiple LLM outputs and rerank them with the same score.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Route prompts adaptively instead of using a fixed promptAPR with GPT-2-XL · GYAFCJ: 34.5 -> 47.8Helped
Route prompts adaptively instead of using a fixed promptAPR with GPT-2-XL · ShakespeareJ: 20.4 -> 28.0Helped
Route prompts adaptively instead of using a fixed promptAPR with GPT-J-6B · GYAFCJ: 51.4 -> 55.5Helped
Route prompts adaptively instead of using a fixed promptAPR with GPT-J-6B · ShakespeareJ: 35.0 -> 38.3Helped
Route prompts adaptively instead of using a fixed promptAPR with GPT-3.5-turbo · GYAFCJ: 50.0 -> 56.4Helped
Route prompts adaptively instead of using a fixed promptAPR with GPT-3.5-turbo · ShakespeareJ: 43.7 -> 43.6Hurt
Route prompts adaptively instead of using a fixed promptAPR with GPT-2-XL · AmazonJ: 29.0 -> 28.7Hurt
Replace random prompt selection with adaptive routing (ablation)APR with GPT-2-XL · GYAFCJ: 38.3 -> 47.8Helped
Replace fixed top-3 STS prompt selection with adaptive routing (ablation)APR with GPT-2-XL · GYAFCJ: 46.2 -> 47.8Helped
Use dynamic positive-prompt selection instead of top-1 selection (ablation)APR with GPT-J-6B · 4 TST datasetsJ: 43.8 -> 46.1Helped
Use dynamic positive-prompt selection instead of top-2 selection (ablation)APR with GPT-J-6B · 4 TST datasetsJ: 45 -> 46.1Helped
Use dynamic positive-prompt selection instead of top-3 selection (ablation)APR with GPT-J-6B · 4 TST datasetsJ: 44.9 -> 46.1Helped

Surprising findings

Limitations

Experimental setup

Datasets: Yelp Amazon GYAFC Shakespeare

Benchmarks: Yelp Amazon GYAFC Shakespeare

Metrics: style transfer strength content preservation (BERTScore) fluency joint score J geometric mean

Baselines: DiRR STRAP RLPrompt Prompt-and-Rerank Low Perplexity

Builds on: Prompt-and-Rerank RLPrompt Low Perplexity prompt selection (Gonen et al. 2022) BERTScore

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy