Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 11 min read Research mediumAdept

Your Agent Aced the Task. Will It Do It Again?

LLM agents that score well on average often fail to repeat their successes: a GPT-4.1 ReAct agent on AppWorld reaches 77.4% Mean@5 but only 53.0% Pass^5 (success on all five runs), a 24.4-point consistency gap, even at temperature 0. The gap comes from flat next-token distributions at certain decision points, where near-ties flip under platform noise and the flips compound across a trajectory. IBM's Consistency Analyzer in ALTK-Evolve finds these flip-prone steps from a single recorded trace by resampling k completions per step, with no ground truth or replay needed, and turns them into injected guidelines. The guidelines cut the gap to 12.0pp (Pass^5 53.0% to 69.0%) without lowering mean accuracy, and they transfer to similar tasks. The authors recommend reporting Pass^k next to Mean@k.

Assumes: LLM agents and tool callingReAct promptingtoken sampling and decoding

Related posts

  • Agents are users, so your software needs evals

    Vercel mediumAdept

    Agents act as users of APIs, CLIs, MCP servers and SDKs, so measuring whether they complete tasks correctly requires evals: tests run many times and scored. An agentic testing pyramid groups checks by LLM call count (deterministic tests, one-turn evals, E2E evals), and a worked example builds an end-to-end eval for a hypothetical coffee-ordering CLI using Harbor, covering goal setting, task design with seeded environments, frozen clocks and per-constraint verifiers, and guarding against reward hacking. Metric choice should follow failure cost: a 60% success rate yields 99% pass@5 but only 8% pass^5, so products where users get no retry should optimize for pass^k, while coding agents with test feedback can lead with pass@k.

  • ReasoningBank: Enabling agents to learn from experience

    Google Research hardMaster

    ReasoningBank is an agent memory framework that distills generalizable reasoning strategies from both successful and failed trajectories, stored as structured items (title, description, content) in a closed loop of retrieval, LLM-as-a-judge self-assessment, extraction and append-only consolidation. Memory-aware test-time scaling (MaTTS) feeds parallel (self-contrast across k trajectories) or sequential (iterative refinement) exploration back into memory. With Gemini-2.5-Flash and ReAct, it beat a memory-free baseline by 8.3% on WebArena and 4.6% on SWE-Bench-Verified, saved about 3 steps per task on SWE-Bench, and MaTTS (k=5) added another 3% success on WebArena. Learning from failures yields preventative rules, and memories evolve from simple checklists into compositional strategies over time.

  • How to build and maintain an agentic evaluation

    Hugging Face mediumAdept

    Agentic evaluations depend on far more than the model: task instructions, agent harness, environment, verifier and traces can each move a score, with harness changes alone shifting Terminal-Bench accuracy by up to 29.9 points. A worked example adapts Terminal-Bench's raman-fitting task into an eight-task physics benchmark using Harbor. Testing the grader with a do-nothing agent and a shortcut showed a ratio-only verifier could be fooled, and reading traces showed gpt-oss-120b mostly failed by declaring completion early rather than by fitting badly. The authors recommend reporting pass^k alongside pass@k, pinning inference providers, validating graders against shortcuts, and publishing tasks, graders and traces so outside reviewers can find and correct benchmark errors.

  • Thinking of ACE? We Can Do It with Fewer Tokens

    Hugging Face hardMaster

    ALTK-Evolve and ACE both turn an LLM agent's past trajectories into reusable lessons without weight updates. Both avoid compressing those lessons into short summaries. They differ in delivery. ACE injects its full evolving playbook on every step. ALTK-Evolve consolidates support-counted, typed guidelines and sends either a high-support core plus task-selected guidelines or the full set, depending on model capability. On AppWorld with the same ReAct agent, ALTK-Evolve reaches 89.3 vs 80.4 TGC on DeepSeek-V3.2 at about 40% of ACE's tokens (263K vs 634K per task). On gpt-oss-120b it roughly ties on accuracy at about one-seventh the cost, and selective retrieval wins mainly on hard tasks.

  • How Pinterest Improved Analytics Agent Compliance with Loop Engineering

    Pinterest Engineering mediumAdept

    Pinterest replaced trial-and-error prompt editing of its Analytics Agent with "loop engineering": an automated cycle that proposes small edits to the system prompt, skills, context layer or tools, then tests them against labeled real chats. Each compliance rule gets paired required and skip suites, which reward following a step when it is needed and penalize unnecessary actions, plus a larger regression suite and a final holdout set. Iterations start from a fresh context but read a structured handoff recording scores, failing cases, the best change so far and approaches not to repeat. Up to four candidate edits are raced on a small sample, and the winner must pass repair/break, anti-overfitting critic and regression gates. A 10.3% run-to-run verdict flip rate showed that aggregate scores hide noise, so the loop tracks per-case flips instead of trusting small score gains.

The quest for software engineering knowledge.

Look:
Layout: