ARTFEED — Contemporary Art Intelligence

SAPO: Segment-level Automatic Prompt Optimization Achieves State-of-the-Art Results

ai-technology · 2026-08-13

A novel technique for automatic prompt optimization, referred to as SAPO (Segment-level Automatic Prompt Optimization), has been detailed in a paper on arXiv. Unlike conventional methods that modify prompts as a whole—often enhancing one aspect while harming another—SAPO breaks prompts into four distinct segments: role, context, tasks, and output format. It implements focused enhancements derived from the top-5 and bottom-5 examples in the training dataset. Utilizing a single large language model (LLM), the optimization loop features static meta-prompts and organized outputs for segmentation, analysis of weaknesses, and generation of candidates. The study outlines a train/validation methodology and a two-phase generation process. SAPO was assessed using five benchmark datasets—SQuADv2, TweetEval, XSUM, CommonGen, and GSM8K—with GPT-3.5-Turbo and GPT-4o-mini as the foundational models. It outperformed zero-shot baselines and strong APO benchmarks, including APE, OPRO, EvoPrompt, GEPA, and StraGO. This paper can be found on arXiv with the identifier 2608.11219 in the Computer Science > Artificial Intelligence category.

Key facts

  • SAPO decomposes prompts into role, context, tasks, and output format.
  • It uses top-5 and bottom-5 examples for targeted improvements.
  • The optimization loop uses one LLM with static meta-prompts and structured outputs.
  • Two-stage generation: segment-level diagnosis and candidate synthesis.
  • Evaluated on SQuADv2, TweetEval, XSUM, CommonGen, and GSM8K.
  • Models used: GPT-3.5-Turbo and GPT-4o-mini.
  • SAPO outperforms APE, OPRO, EvoPrompt, GEPA, and StraGO.
  • Paper available on arXiv with ID 2608.11219.

Entities

Institutions

  • arXiv

Sources