---
title: "Your Agent Aced the Task. Will It Do It Again?"
description: "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."
url: "https://swe.quest/articles/your-agent-aced-the-task-will-it-do-it-again-9e1e6a898bac9ad8"
canonical: "https://huggingface.co/blog/ibm-research/altk-evolve-consistency"
source: "Hugging Face"
published: "2026-09-15"
difficulty: "medium"
kind: "Research"
reading_minutes: 11
tags: ["ai-agents","evals","llms"]
---

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

A post on [Hugging Face](https://swe.quest/sources/hugging-face.md), published 2026-09-15, 11 min read, Research. Original: [https://huggingface.co/blog/ibm-research/altk-evolve-consistency](https://huggingface.co/blog/ibm-research/altk-evolve-consistency)

## Summary

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.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [AI agents](https://swe.quest/tags/ai-agents.md) (AI & ML)
- [Evaluation](https://swe.quest/tags/evals.md) (AI & ML)
- [LLMs](https://swe.quest/tags/llms.md) (AI & ML)

## Prerequisites

- LLM agents and tool calling ([easy posts on LLMs](https://swe.quest/tags/llms.md?difficulty=easy))
- ReAct prompting ([easy posts on React](https://swe.quest/tags/react.md?difficulty=easy))
- token sampling and decoding

## Keywords

ALTK-Evolve, Consistency Analyzer, AppWorld, Pass^k, ReAct, GPT-4.1, gpt-oss-120b, IBM Research

## Related posts

- [Agents are users, so your software needs evals](https://swe.quest/articles/agents-are-users-so-your-software-needs-evals-ae7971006fec5a38.md): Vercel · 2026-11-16 · Medium · 19 min read · Evaluation, AI agents, Testing, LLMs
  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.
- [ReasoningBank: Enabling agents to learn from experience](https://swe.quest/articles/reasoningbank-enabling-agents-to-learn-from-experience-c24d005f6ce31b05.md): Google Research · 2026-04-21 · Hard · 5 min read · AI agents, LLMs, Evaluation
  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.
- [How to build and maintain an agentic evaluation](https://swe.quest/articles/how-to-build-and-maintain-an-agentic-evaluation-c4d1ca50835658f2.md): Hugging Face · 2026-11-23 · Medium · 35 min read · Evaluation, AI agents, LLMs, Open source
  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.
- [Thinking of ACE? We Can Do It with Fewer Tokens](https://swe.quest/articles/thinking-of-ace-we-can-do-it-with-fewer-tokens-2dc38e3991553657.md): Hugging Face · 2026-08-11 · Hard · 8 min read · AI agents, LLMs, Evaluation, Cost optimization
  ALTK-Evolve and ACE both turn an LLM agent's past trajectories into reusable lessons without weight updates.
- [How Pinterest Improved Analytics Agent Compliance with Loop Engineering](https://swe.quest/articles/how-pinterest-improved-analytics-agent-compliance-with-loop-engineering-31a8cf0d84dd3d2b.md): Pinterest Engineering · 2026-11-12 · Medium · 11 min read · AI agents, Evaluation, LLMs, Testing
  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.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
