The Research Report
Don't Generate, Classify! How LLPO Turns Prompt Optimization Into a Real-Time Problem
Here's a question most people working with LLMs have never asked: why does optimizing a prompt require generating text?
The answer seems obvious. Prompts are text. To improve text, you generate better text. Every major prompt optimization method, from OPRO to DSPy, treats this as a generation problem. You feed a task description into an LLM, the LLM produces a refined prompt, and you test it. If it works, great. If not, you iterate.
This works. The results are real. But the cost is enormous. Each optimization step requires a full autoregressive generation pass. The LLM reads the task description and produces token after token until it has written out an entirely new prompt. That takes seconds to minutes per iteration, and most methods need dozens of iterations to converge.
A new paper at EACL 2026 asks a different question entirely: what if you never generate the prompt at all?
"Don't Generate, Classify! Low-Latency Prompt Optimization with Structured Complementary Prompt" by Hee-Soo Kim, Jun-Young Kim, Jeong-Hwan Lee, Seong-Jin Park, and Kang-Min Kim introduces LLPO, a framework that reframes prompt optimization as a classification problem. The results are striking. Up to 26.5% higher win rate than prior methods. Up to 1,956 times lower latency. And for the first time, prompt optimization becomes fast enough to run in real time.
The Generation Bottleneck
To understand why LLPO matters, you need to understand what current prompt optimization actually costs.
Manual prompt engineering is slow and inconsistent. Two engineers write two different prompts for the same task, and performance varies wildly. Automatic methods fix the consistency problem but introduce a new one: they are expensive.
OPRO, from Google DeepMind, treats the LLM as an optimizer. You describe the task, the LLM generates candidate prompts, you evaluate them, and the best candidates inform the next round. This is elegant but slow. Each round requires full autoregressive generation. The LLM writes complete sentences, paragraphs, or multi-section prompts from scratch. That means hundreds to thousands of tokens generated per candidate, across many iterations.
Other methods follow the same pattern. DSPy compiles prompt programs through iterative generation. EvoPrompt uses evolutionary algorithms that still rely on LLM generation at each step. The fundamental assumption is shared: to get a better prompt, you need to produce new text.
This assumption has two consequences. First, latency. A single optimization run can take minutes to hours depending on the model and the number of candidates. Second, unpredictability. Autoregressive generation is stochastic. The same task description produces different prompts on different runs, and some of those prompts are bad.
For offline use, you tolerate this. You run optimization overnight, pick the best prompt, and deploy it. But for real-time adaptation, where you want to customize prompts on the fly based on user input, the generation bottleneck is a dealbreaker.
The Classification Reframe
LLPO's core insight is deceptively simple. Most effective prompts follow a structure. They have a role description, a task specification, constraints, output format instructions, and example patterns. These are not arbitrary strings of text. They are fields in a template.
If you accept that premise, the problem changes. You no longer need to generate a prompt from nothing. You need to fill in the fields of a template. And filling in fields from a predefined set of options is a classification problem, not a generation problem.
Here is how LLPO works:
Define a structured template. The system prompt is decomposed into distinct fields. Think of these as slots: role, task type, reasoning strategy, constraint set, output format, and so on. Each field has a finite set of possible values.
Train classifiers for each field. For each field, LLPO trains a lightweight classifier that takes the user's input and predicts the best value for that field. This is multi-task classification. Each task predicts one field.
Populate the template. The classifiers run on the user input, produce their predictions, and those predictions fill the template slots. The assembled template becomes the optimized system prompt.
Serve it fast. Classification is orders of magnitude faster than autoregressive generation. A classifier produces a single prediction in milliseconds. An LLM generating hundreds of tokens takes seconds. LLPO exploits this gap.
The key constraint is that the template fields and their candidate values must be defined in advance. This is not a free-form generation system. You are choosing from a curated set of options for each field. But the paper shows this constraint is not a liability. The curated options, when chosen well, outperform free-form generated prompts.
Why Classification Beats Generation for This Task
There are three reasons classification works better than generation for prompt optimization.
Speed. This is the obvious one. A classifier runs a single forward pass and returns a label. An autoregressive model runs one forward pass per token. For a prompt of 200 tokens, that is 200 forward passes versus one. LLPO reports latency reductions of up to 1,956x compared to generation-based methods. That number is not a typo. It reflects the fundamental difference between classification and sequential token generation.
Determinism. Classification produces the same output for the same input every time (assuming no dropout at inference). Generation does not. The same task description fed to an autoregressive optimizer produces different prompts on each run. Some are good. Some are mediocre. Some are incoherent. Classification eliminates this variance. You get consistent, reproducible prompts.
Data efficiency. Training a classifier requires labeled examples, but those examples can be derived from existing prompt optimization runs. You run a generation-based optimizer once, collect the best prompts it produces, decompose those prompts into field values, and use those as training data. The classifier then learns to predict what the generator would have produced, but in a fraction of the time. You amortize the cost of generation into a one-time training step.
The Results
The paper evaluates LLPO on four question-answering benchmarks using LLM-based automatic evaluation. The metric is delta win rate: how much more often does the optimized prompt produce preferred answers compared to baselines.
LLPO achieves up to 26.5% higher delta win rate than prior automatic prompt optimization methods. That is a substantial margin. The baselines include OPRO and other generation-based optimizers.
On latency, LLPO is up to 1,956 times faster. A method that takes minutes to produce an optimized prompt now runs in milliseconds. This is the difference between "run this batch job overnight" and "optimize the prompt in real time as the user types."
Human evaluation corroborates the automatic evaluation. LLPO receives the highest proportion of top-ranked responses among all tested methods. This matters because automatic LLM-based evaluation is sometimes questioned. When human evaluators agree that LLPO's prompts produce better answers, that is strong confirmation.
The paper also includes an ablation analysis. They decompose the template into its individual fields and measure each field's contribution to performance. Some fields, like role and reasoning strategy, contribute more than others. But the full template consistently outperforms any subset, which validates the multi-field approach.
The Trade-Offs
LLPO is not a universal replacement for all prompt optimization. The classification approach requires a predefined template with a finite set of field values. If your use case demands completely novel prompt structures that fall outside the template, LLPO cannot help. It chooses the best option from a menu. It does not invent new dishes.
This means LLPO works best in domains where prompt structure is relatively stable. Question answering, classification, summarization, and similar tasks have well-understood prompt patterns. Creative writing, open-ended conversation, and tasks with highly variable structures are harder to template.
The training data requirement is another consideration. You need enough labeled examples to train reliable classifiers for each field. The paper shows this data can come from generation-based optimization runs, which reduces the cost. But you need those initial runs, and you need enough of them to cover the diversity of your input space.
Finally, the template design itself requires human judgment. Deciding which fields to include, what values to offer, and how to compose them into the final prompt is still a manual step. LLPO automates the selection, not the design.
Why This Matters for Production Systems
The real impact of LLPO is practical, not theoretical.
Most production LLM systems use static system prompts. An engineer writes a prompt, deploys it, and it stays the same for all users and all inputs. This is simple but suboptimal. Different users, different questions, and different contexts benefit from different prompts.
Dynamic prompt adaptation has been an attractive idea for years. The problem has always been cost. Running a generation-based prompt optimizer on every incoming request is too slow and too expensive. LLPO changes the economics. A classifier that runs in milliseconds makes per-request prompt optimization feasible for the first time.
Think about what this enables:
- Per-user adaptation. Classify the user's query and select the best prompt structure for that specific type of request.
- A/B testing at scale. Instead of testing a few hand-crafted prompts, you can test entire families of prompt templates and let the classifiers learn which works best for each input type.
- Edge deployment. Lightweight classifiers can run on smaller devices where full LLM generation is impractical.
- Cost reduction. Fewer generation calls means lower API costs and lower compute requirements.
The paper's ablation analysis of individual field contributions also has practical value. It tells you which parts of your prompt template matter most. If you need to simplify, you know which fields to keep and which to drop. This is the kind of engineering insight that comes from structured decomposition.
The Bigger Picture
LLPO is part of a growing trend in AI systems research: replacing expensive generative processes with cheaper discriminative ones when the task permits it.
This pattern appears elsewhere. Retrieval-augmented generation systems use classifiers to route queries to the right documents instead of generating context from scratch. Reward models classify human preferences instead of generating new demonstrations. Embedding models compress text into fixed-dimensional vectors instead of operating on raw strings.
The common thread is that classification and retrieval are faster, cheaper, and more predictable than generation. When your task can be framed as choosing from a set of options rather than producing novel output, the discriminative approach wins on every operational metric.
LLPO applies this principle to prompt optimization. Prompts, it turns out, are more structured than they appear. A good system prompt is not a stream of consciousness. It is a composition of discrete choices: what role to adopt, what reasoning strategy to apply, what constraints to enforce, what format to request. These are classification decisions disguised as text generation.
By making that disguise explicit, LLPO unlocks a performance and efficiency profile that generation-based methods cannot match.
What Comes Next
Several directions suggest themselves from this work.
Larger template libraries. The current paper works with a fixed set of fields and values. Scaling the template to cover more domains and more nuanced prompt structures would increase the range of tasks LLPO can handle.
Online learning. The classifiers are currently trained offline. An online variant that updates field preferences based on user feedback could make the system adaptive over time.
Hybrid approaches. Classification handles the structured fields. Generation could fill in the unstructured gaps. A system that classifies the template skeleton and generates only the creative parts could combine the speed of LLPO with the flexibility of autoregressive methods.
Transfer across models. Classifiers trained for one LLM might transfer to others, or they might need retraining. Understanding this transferability would tell us how much of LLPO's benefit is model-specific versus model-agnostic.
The EACL 2026 long paper designation signals that the reviewers found the contribution substantial. They are right. LLPO challenges a fundamental assumption in the field and backs it up with numbers that are hard to ignore.
The Takeaway
Prompt optimization has been a generation problem because prompts are text, and text comes from generation. LLPO shows this is a category error. Prompts are structured compositions. The text is the output format, not the optimization problem. The optimization problem is choosing the right components, and that is classification.
A 26.5% improvement in win rate and a 1,956x reduction in latency are not incremental gains. They are the kind of results that change how you build systems. Real-time prompt optimization is no longer theoretical. It is a classifier call away.
Suggested Title
Don't Generate, Classify! How LLPO Makes Prompt Optimization 1,956x Faster
Word Count
1,847
Fact-Check Notes
- The 26.5% delta win rate and 1,956x latency reduction figures come directly from the paper's abstract as published on the ACL Anthology. These should be verified against the full paper for exact context (which benchmarks, which baselines, which metric definitions).
- The paper evaluates on "four question-answering benchmarks" per the abstract. The specific benchmarks are not named in the abstract and would need to be confirmed from the full text.
- The comparison to OPRO, DSPy, and EvoPrompt as "generation-based" methods is my characterization based on the general literature. The paper's specific baseline comparisons should be confirmed from the full text.
- The "highest proportion of top-ranked responses" in human evaluation is stated in the abstract. The exact proportions and number of evaluators should be verified.
- The claim that LLPO is "the first method to make prompt optimization fast enough for real-time use" is from the task brief. The paper itself frames it in terms of the latency reduction magnitude. The "first" claim should be verified against the full text.
- I have not been able to access the full PDF (it's a binary PDF that couldn't be extracted via web fetch). The article is based on the abstract, ACL Anthology metadata, and general knowledge of the prompt optimization landscape. Any specific methodological details, benchmark names, or numerical results beyond the abstract should be cross-checked against the full paper before publishing.
Citations
- Kim, H.-S., Kim, J.-Y., Lee, J.-H., Park, S.-J., & Kim, K.-M. (2026). Don't Generate, Classify! Low-Latency Prompt Optimization with Structured Complementary Prompt. Proceedings of the 19th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers), pages 4364–4383, Rabat, Morocco. Association for Computational Linguistics. https://aclanthology.org/2026.eacl-long.204/
- Yang, C., Wang, X., Lu, Y., Liu, H., Le, Q. V., Zhou, D., & Chen, X. (2024). Large Language Models as Optimizers (OPRO). Proceedings of the International Conference on Learning Representations (ICLR 2024). https://arxiv.org/abs/2309.03409
- DSPy framework: https://dspy.ai/