Papers
Topics
Authors
Recent
Search
2000 character limit reached

POLCA: Prioritized Local Context Aggregation

Updated 4 July 2026
  • POLCA is a framework for stochastic generative optimization that leverages LLMs to generate proposals based on both numerical rewards and textual feedback.
  • It integrates a priority queue with UCB-style exploration, a semantic ε-Net for diversity control, and an LLM Summarizer for global contextual aggregation.
  • Empirical results on benchmarks like τ-bench, HotpotQA, and KernelBench demonstrate its superior performance in noisy, sparse reward environments.

Prioritized Optimization with Local Contextual Aggregation (POLCA) is a framework for stochastic generative optimization in which a generative LLM serves as the optimizer, using numerical rewards and text feedback to search for high-performing parameterizations of complex systems such as LLM prompts, multi-turn agents, code translators, and CUDA kernel generators. The method is formulated for settings in which evaluations are noisy because feedback may be stochastic, only minibatches can be sampled, and the underlying system may itself behave stochastically. POLCA addresses these conditions by combining a priority queue for exploration–exploitation management, a semantic ε\varepsilon-Net for diversity control, and an LLM Summarizer for aggregation of historical local context. The framework is presented with a convergence guarantee under stochasticity and evaluated on ττ-bench, HotpotQA, VeriBench, and KernelBench, where it is reported to outperform state-of-the-art baselines in both deterministic and stochastic regimes (Ren et al., 16 Mar 2026).

1. Formal problem setting

POLCA is defined over a parameterized program PθP_\theta with parameter θ\theta in a typically large, discrete space Θ\Theta. There is an underlying distribution D\mathcal{D} over pairs (ω,x)(\omega, x), where xx is an input and ω\omega is side information. Running PθP_\theta on ττ0 produces an output ττ1. A guide ττ2 then provides two feedback modalities from ττ3: a numerical score ττ4 and textual feedback ττ5. The score may take forms such as binary pass/fail, an LLM-judge score in ττ6, or runtime speedup; the textual channel may contain error messages, critiques, or hints.

The target quantity is the true expected performance

ττ7

The optimization objective is to interactively propose a sequence ττ8 through an LLM optimizer ττ9 so as to maximize PθP_\theta0 under a finite compute budget, where PθP_\theta1 is the returned candidate. Because each step may only evaluate a small minibatch PθP_\theta2, empirical scores are necessarily noisy. This formulation places prompt optimization, agent optimization, code translation, and low-level code generation under a common stochastic optimization abstraction.

A central feature of the formulation is that the optimizer itself may be stochastic and error-prone. This departs from classical black-box optimization assumptions in which proposal generation is externally fixed or analytically specified. Here, the search operator is itself a LLM conditioned on prior rollouts and textual context. This suggests that POLCA is intended not merely as an evaluation scheduler, but as a framework for coupling statistical decision-making with generative proposal mechanisms.

2. Core algorithmic structure

POLCA maintains a priority queue PθP_\theta3 containing candidate solutions together with empirical histories. The loop begins with initialization PθP_\theta4 and proceeds while compute budget remains. At each iteration, a minibatch PθP_\theta5 of size PθP_\theta6 is sampled, up to PθP_\theta7 programs PθP_\theta8 are selected from PθP_\theta9 by highest exploration priority θ\theta0, those candidates are evaluated on θ\theta1, and their empirical means θ\theta2 are updated. The queue is then summarized into a compact global context θ\theta3, after which the optimizer θ\theta4 is called for each explored candidate using local rollouts together with the global summary to produce raw proposals θ\theta5. A semantic θ\theta6-Net filter reduces these to θ\theta7, which are then evaluated on the same minibatch and inserted into the queue with updated statistics. The returned output is

θ\theta8

The default exploration priority is the empirical mean θ\theta9. For theory, however, POLCA uses a UCB-style priority

Θ\Theta0

where Θ\Theta1 bounds the variance, Θ\Theta2 is the number of samples for Θ\Theta3, and Θ\Theta4 is the total number of samples so far. This substitution is used to guarantee systematic exploration under noise (Ren et al., 16 Mar 2026).

The algorithm combines local and global contextual signals. Locality comes from conditioning each optimizer call on the rollouts of the candidate currently being explored. Globality comes from the summary of the entire queue and its evaluation history. The phrase “Local Contextual Aggregation” refers to this combination of candidate-specific evidence and queue-level distilled experience. A plausible implication is that POLCA is designed to preserve exploitative refinement of promising candidates while avoiding myopic dependence on only the most recent rollout.

3. Diversity control via the semantic Θ\Theta5-Net

A persistent difficulty in generative search is unconstrained growth of semantically redundant candidates. POLCA addresses this using an Θ\Theta6-Net mechanism defined in an embedding space. Each candidate is mapped to Θ\Theta7, and semantic distance is measured by

Θ\Theta8

At each iteration, the union Θ\Theta9 is maintained as an D\mathcal{D}0-Net, meaning that no two stored points are within distance D\mathcal{D}1.

The construction is a farthest-first greedy traversal over the raw proposals. Starting with D\mathcal{D}2, the algorithm repeatedly computes, for each remaining candidate, its minimum distance to the existing queue and accepted new points:

D\mathcal{D}3

It then selects the candidate with maximal D\mathcal{D}4. If this maximal distance is at least D\mathcal{D}5, the candidate is retained; otherwise the procedure stops. The resulting filtered set is inserted into the queue.

This construction guarantees the bound D\mathcal{D}6, where D\mathcal{D}7 is the covering number of D\mathcal{D}8 under radius D\mathcal{D}9 (Ren et al., 16 Mar 2026). Within the framework, the (ω,x)(\omega, x)0-Net serves both as a memory-control device and as a structural bias toward search-space coverage. The reported ablations further indicate that removing the (ω,x)(\omega, x)1-Net degrades both learning speed and final performance on (ω,x)(\omega, x)2-bench by (ω,x)(\omega, x)3–(ω,x)(\omega, x)4, and that setting (ω,x)(\omega, x)5 is worst because it permits unbounded growth of (ω,x)(\omega, x)6. The paper also reports that varying (ω,x)(\omega, x)7 in (ω,x)(\omega, x)8 shows robust performance, suggesting that the mechanism is not overly sensitive within that range.

4. Historical aggregation through the LLM Summarizer

POLCA includes an external LLM Summarizer that recomputes a compact natural-language summary of the queue and its empirical rollouts at every iteration. The input is the entire set (ω,x)(\omega, x)9. The summarizer partitions trajectories into “success” cases with xx0 and “failure” cases with xx1 for a threshold xx2, samples contrastive pairs, and outputs a short summary

xx3

that highlights patterns in successes and failures. This summary is prepended to each optimizer call as global context.

The module is explicitly not implemented as a parametric learner with persistent internal updates; instead, “no explicit parameter update is needed” because xx4 is recomputed each cycle to reflect the evolving frontier. In practice, XML-style tags are enforced so that actionable guidance is contained within <summary>...</summary> (Ren et al., 16 Mar 2026).

This mechanism addresses a common ambiguity in LLM-based optimization workflows: whether meta-learning must be embedded in model weights or can arise through repeated context construction. POLCA adopts the latter view. The reported ablation that removing the Summarizer degrades both learning speed and final performance on xx5-bench by xx6–xx7 indicates that historical context aggregation is not merely auxiliary bookkeeping but an active component of the optimization procedure.

5. Convergence analysis and theoretical claims

The theoretical analysis is given under a strict-improvement assumption. Specifically, there exist xx8 and xx9 such that for any ω\omega0 with ω\omega1, an optimizer call producing ω\omega2 satisfies

ω\omega3

Assuming also that each reward observation is ω\omega4-sub-Gaussian, the main result states that if POLCA runs for ω\omega5 iterations with UCB priorities, then

ω\omega6

Here ω\omega7 is the total number of samples allocated to candidate ω\omega8 and ω\omega9 is the PθP_\theta0-covering number. In the limit PθP_\theta1, the bound degenerates to PθP_\theta2 (Ren et al., 16 Mar 2026).

The proof sketch proceeds by partitioning PθP_\theta3 into intervals of width PθP_\theta4, showing that PθP_\theta5 draws per interval suffice to propose a PθP_\theta6-improvement with probability at least PθP_\theta7, and then using UCB to distinguish candidates within an interval after PθP_\theta8 additional samples. Summation over at most PθP_\theta9 intervals yields the stated bound.

A second theorem compares POLCA with naive sequential improvement. According to the reported result, using a global best-so-far baseline yields an expected ττ00 improvement chain, whereas sequential restarting requires ττ01 steps in the worst case. This comparison formalizes the claim that queue-based reuse of discovered high-performing candidates changes the scaling behavior of iterative generative optimization under the paper’s assumptions.

6. Benchmarks, empirical results, and computational profile

POLCA is evaluated on four benchmark families spanning prompt optimization, agent optimization, program translation, and CUDA kernel generation (Ren et al., 16 Mar 2026).

Benchmark Setting Reported result
ττ02-bench 10-task retail training, sparse binary reward; held-out 105 tasks 57.5% pass@1 on train vs. 34.8% base, 55.7% GEPA, 37.3% OpenEvolve; on all 115 tasks 43.9% vs. 38.9% base
HotpotQA 100 validation tasks, binary exact-match reward With 2,000 metric calls, POLCA outperformed beam-search, GEPA, OpenEvolve by a large margin (ττ03 accuracy)
VeriBench 3-stage evaluation: compile ττ04 unit tests ττ05 LLM judge; score in ττ06 With 50 samples per task, DSPy ττ07, GEPA ττ08, OpenEvolve ττ09, POLCA ττ10
VeriBench (compilation only) Binary compile-success reward POLCA reached 95.2% pass rate vs. DSPy ττ11, GEPA ττ12, OpenEvolve ττ13
KernelBench 16 batched-matmul tasks, require speedup ττ14 POLCA converged fastest, achieving ττ15 within 10 eval steps vs. ττ16 for baselines

The reported evaluation criteria emphasize both sample efficiency and final performance. On ττ17-bench and HotpotQA, the setting is prompt or agent optimization under sparse or exact-match reward. On VeriBench, the evaluation pipeline is explicitly staged, moving from compile success to unit tests and then LLM judgment. On KernelBench, performance is expressed through a speedup threshold. Taken together, these tasks instantiate the paper’s claim that the same optimization framework can operate across heterogeneous feedback topologies.

The implementation notes quantify the computational profile. Each evaluation step samples ττ18 candidates and ττ19 data points, costing ττ20 guide calls and ττ21 program runs. The memory bound is ττ22; embedding lookups and distance computations require ττ23 per filter pass. Each iteration issues ττ24 parallel calls to the optimizer ττ25 and one summary call. The paper reports total LLM token usage of at most approximately ττ26 per 100 steps on ττ27-bench, and notes that asynchronous Evaluate and Propose operations, parallelized LLM API calls, and contrastive sampling in the Summarizer are used for efficiency. The hyperparameters are characterized operationally: ττ28 trades off exploration versus cost, batch size ττ29 trades off noise reduction versus latency, and ττ30 trades off breadth versus compute per iteration.

These results support the paper’s central empirical claim that bandit-style prioritization, diversity filtering, and local-plus-global contextual prompting can jointly improve robustness and efficiency in stochastic LLM-driven optimization. A plausible implication is that POLCA is particularly well matched to domains in which evaluation is expensive, sparse, or noisy, and in which textual feedback can be exploited as a structured search signal rather than treated as incidental metadata.

Definition Search Book Streamline Icon: https://streamlinehq.com
References (1)

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Prioritized Optimization with Local Contextual Aggregation (POLCA).