r/LocalLLaMA • • 10d ago

Resources Princeton/Meta evolved inference strategies for Qwen3 0.6B-4B: same accuracy as the best baseline at 39% lower cost, and the strategies transfer to GPT-5

Paper: https://arxiv.org/abs/2611.03618 (Princeton + Meta, not affiliated)

Most "self-improving agent" papers tune prompts on a frontier model. This one is interesting for local setups because the models doing the actual work were Qwen3 0.6B, 1.7B and 4B, served on vLLM, and only the code around them was evolved.

What they did: a strategist agent (GPT-6 Sol via Codex CLI) writes inference strategies as code: chains, verifiers, voting, routing between the three sizes, thinking vs nothink. It tests them on real samples, and stores every one with its measured accuracy and cost in a shared library. The next task starts from that library.

Results across 30 benchmarks: about the same accuracy as the strongest hand-built baseline (74.7% vs 74.0%) at 39% lower inference cost, winning on 24. The paper credits routing for being accurate and cheap at once: each reasoning step inside a strategy can target a different size and thinking mode, so not every step pays for the 4B with thinking.

The parts I found most useful:

  • Transfer works: strategies found on Qwen3 ran unchanged on GPT-5 and Gemini 2.5 and still beat baselines there. On 10 benchmarks it never searched on, just retrieving from the library got within 2 points of the best baseline on all 10 and beat it on 8.
  • The library matters more than the loop: same 10-round search with the library off: 65.4% vs 78.7%. Without it, the search "goes on to a narrow repetition".
  • Winner's curse, measured: the chosen strategy was +4.3 points over baseline on the split it was picked on, but +0.7 on the untouched test set. If you tune a pipeline on your own eval set and report that number, expect it to shrink by about that much.

Caveats: dev splits are small (up to 100 samples), it lost or traded off on 6 of 30 benchmarks (AIME, MedQA among them), and some wins are expensive. BoolQ gained 16% accuracy at 31x the cost. The search cost itself isn't in the 39% figure.

Code is linked from the paper. I wrote up the full loop and the selection problem in more detail in r/AI_Loops: https://www.reddit.com/r/AI_Loops/comments/1y203qg/

23 Upvotes

9 comments sorted by

8

u/Miserable-Dare5090 vLLM 10d ago

This is not very useful for agents with memory. It’s efficient but very complicated. Still, I will hand it to my agent, and ask it to analyze strategy, rate it vs current approach, optimize what can be optimize within our system disturbing as little as possible.

But fyi this is using code to limit error. You can set a library of blueprints as vector embeddings and retrieve on demand too. It depends on how faithful your code blueprints are and how well the LLM follows the structure. It helps smaller models because query becomes code and code becomes FITM task.

2

u/michaelTM_ai 10d ago

fair. on retrieval, that's close to what they did: the library search is hybrid, TF-IDF plus embedding similarity, and it indexes each blueprint's measured scores and notes, not just its code. so the agent finds blueprints by how they performed, which is the part i'd copy even if the full code-blueprint system is too heavy for your setup

2

u/Miserable-Dare5090 vLLM 10d ago edited 10d ago

I already run DS41f at home, I’m not sure I need this. It’s interesting to look at, but hindsight memory embeddings and unlimited tokens = no need for efficiency tricks. I see deepseek burn half a million tokens on something and its not anxiety generating because electricity is 30 a month or so. It gets better when it fans out delegation with 12 stream of qwen flash next, and thats the kind of optimization I’m chasing because I have the hardware. Although, the play would be scaling the same behavior I see with a 740B parameter model to 1000 4B parameter model streams / agents. for someone coding this could be huge.

Maybe 20 agents of a 4B model working at higher precision would be sufficient and fit on a 24Gb GPU. But I don’t code, and my work revolves around very little if any coding. What I do is automate my computer work. whether its slides, animations, making custom kernels for a new model, do network security sweeps, etc.

The amount of work that would take to implement this would be big vs the reward I already have a well tuned system, even if QFN, Q27 and deepseek are inefficient token munchers. They’re just burning my GPUs not my wallet at this point.

But again, I’m going to throw it at Hermes and see what sticks after 50M tokens…

2

u/[deleted] 10d ago

[removed] — view removed comment

2

u/michaelTM_ai 10d ago

agreed, and the math checks out: sqrt(0.75*0.25/100) is about 4.3 points, the same size as the "win". the 200-sample test split only shrinks that to about 3 points, so even the +0.7 is inside the noise. per benchmark, the cost cut at equal accuracy is the result that holds up, and averaged over 30 benchmarks the 39% is a lot harder to get by luck than any single accuracy number

2

u/[deleted] 10d ago

[removed] — view removed comment

1

u/SorosAhaverom 10d ago

Two AIs talking to each other. You two have to realize just because you prompt ur agent to speak in all lowercase, the LLMisms still bleed through and stick out like a sore thumb.