The Research Report
Break Your System Prompt Into Pieces
Your system prompt is a monolith. Five hundred words of instructions stuffed into one block. When you optimize it, you edit the whole thing at once. Each edit touches multiple concerns at the same time. You can't tell which change helped and which hurt.
That's the problem Adaptive Prompt Structure Factorization (aPSF) solves. It breaks your system prompt into semantic factors, then optimizes each one separately. The result: cheaper optimization, faster convergence, and better accuracy. No model access required.
The Problem With Monolithic Prompts
Most prompt optimizers work like this. Start with a system prompt. Evaluate it. Ask an LLM to edit it. Evaluate again. Repeat.
This works fine for small prompts. It breaks down for real system prompts that contain distinct concerns: reasoning strategy, output format, tone guidelines, error handling, domain knowledge. An edit to the reasoning section changes the output, which makes the format section look broken, which triggers another edit to the format section, which breaks the reasoning section again.
The components are coupled. Credit assignment is impossible. You waste tokens going in circles.
How aPSF Works
aPSF fixes this with three ideas.
Factor discovery. An Architect model reads your initial prompt and decomposes it into semantic factors. Think of these as the natural sections of your prompt: one for reasoning approach, one for output structure, one for edge cases, and so on. The discovery is automatic. You don't pre-specify the factor structure.
Interventional scoring. Instead of evaluating the whole prompt at once, aPSF evaluates one factor at a time. It swaps out a single factor while holding the others constant. The change in validation performance measures that factor's marginal contribution. This is interventional in the causal sense. You isolate the effect of each factor.
Error-guided selection. After scoring, aPSF routes the next optimization step to the factor with the highest error. The biggest failure source gets fixed first. This avoids wasting budget on factors that already work well.
Each step is API-only. You send prompts in, you get prompts out. No model weights. No gradient access. This runs on any LLM API.
The Numbers
Across multiple reasoning benchmarks, aPSF delivers:
- Up to +2.16 percentage points accuracy over principle-aware baselines. These are already strong optimizers that understand prompt structure. aPSF beats them by being more selective about what to edit.
- 45-87% fewer optimization tokens on MultiArith. On that benchmark, aPSF hits peak validation performance in a single step. One round of factor-level editing replaces many rounds of monolithic editing.
- Better controllability. Because factors are independent, you can inspect, swap, or freeze any factor without touching the rest. This matters in production where you need to understand what changed.
Why This Matters for Production
Production prompt pipelines have constraints. Token budget is finite. Optimization time matters. You need to know which part of the prompt caused a regression. aPSF addresses all three.
Token cost drops because you edit one factor at a time instead of regenerating the whole prompt. Speed improves because error-guided selection targets the highest-impact factor first. Debuggability improves because each factor is a self-contained unit with its own score.
If you run automated prompt optimization in a CI/CD pipeline or a nightly eval job, aPSF makes that pipeline tractable. Monolithic optimization at scale burns tokens and produces ambiguous results. Factorized optimization produces clear, attributable improvements at a fraction of the cost.
How to Apply This
- Stop treating your system prompt as one indivisible block. Identify the natural factors: reasoning, format, domain, guardrails. These are your optimization units.
- Evaluate factors independently. When you change the reasoning instructions, keep the format instructions fixed. Measure the delta. That tells you the reasoning change worked or didn't.
- Prioritize by error. Fix the biggest problem first. Don't spread optimization budget evenly across factors that contribute unequally.
- Use any LLM as the Architect. The factor discovery step just needs a model that can read a prompt and decompose it. The optimization step needs a model that can edit one factor at a time. Both are text-in, text-out.
Citations
- Liu, H. et al. "Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs." arXiv:2604.06699, April 8, 2026. https://arxiv.org/abs/2604.06699
- Principle-aware baselines referenced within arXiv:2604.06699. See the paper's related work section for specific baselines compared.
Suggested Title
Break Your System Prompt Into Pieces: How Factorized Optimization Cuts Cost and Boosts Accuracy
Word Count
588
Fact-check Notes
- The "+2.16 percentage points accuracy" figure comes from the source brief and matches the abstract's "up to +2.16 percentage points on average." Verify whether this is an average across all benchmarks or a peak on a single benchmark in the full paper.
- The "45-87% fewer tokens on MultiArith" and "peak validation in 1 step" claims come from the source brief and abstract. Verify exact numbers in the full paper tables.
- The paper title on arXiv is "Adaptive Prompt Structure Factorization: A Framework for Self-Discovering and Optimizing Compositional Prompt Programs." The brief called it aPSF, which matches the abstract.
- The "interventional scoring" description is based on the abstract's mention of "interventional factor-level scoring" and "marginal contribution via validation-performance changes." Verify the exact mechanism in the full paper.
- The claim that aPSF is "API-only" and "prompt-in/text-out" comes directly from the abstract. This is confirmed.