Skip to content

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

Hugging Face 8 min read Research hardMaster

Thinking of ACE? We Can Do It with Fewer Tokens

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.

Assumes: LLM agentsReAct promptingcontext engineeringembedding retrieval

Related posts

  • How Much Memory Does Your Agent Actually Need?

    Hugging Face mediumAdept

    The right amount of self-distilled agent memory depends on model capability: on AppWorld across eight models, strong models with headroom gain most from injecting the full guideline set (DeepSeek-V3.2 +9.5pp TGC, +16.1pp SGC), weaker models do best with a compact high-confidence core plus per-task retrieved guidelines (gpt-oss-120b +16.1pp TGC), and saturated models like GLM-5 show no gain. Curated retrieval can be both the most accurate and cheapest option, adding only 5% tokens versus 51–78% for full injection, and prompt caching of a stable guideline prefix keeps the full set affordable in production. ALTK-Evolve distills guidelines from successful and failed trajectories without weight updates or human annotation. Planned next steps include a learned guideline selector to replace cosine-similarity ranking.

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

    Hugging Face mediumAdept

    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.

  • Open Models have crossed a threshold

    LangChain mediumAdept

    Open-weight models GLM-5 and MiniMax M2.7 now score close to closed frontier models on core agent tasks in LangChain's Deep Agents eval suite. GLM-5 reached 0.64 correctness, MiniMax M2.7 0.57, and Claude Opus 4.6 0.68, across 138 tests covering file ops, tool use, retrieval, memory and summarization. The open models are far cheaper and faster: about $12/day versus $250/day for 10M output tokens, and 0.65s versus 2.56s latency. The eval metrics are defined (correctness, solve rate, step and tool-call ratios), and switching Deep Agents to an open model is a one-line change, with the harness adapting context management and model identity to each model.

  • LLM Cost Optimization: 3 Patterns to Cut LLM Token Spend

    Honeycomb mediumAdept

    LLM token spend is best reduced by using traces to find three waste patterns: repeated input context that doesn't improve results, retry storms and runaway agent loops, and output tokens that don't lift outcomes. For each, compare expensive and normal cohorts on high-cardinality attributes (prompt version, model, workflow step, tenant, retries) and apply targeted fixes such as filtering retrieval, summarizing history, retry limits, tighter termination conditions and structured outputs. Treat every cost cut as a production change: baseline cost per successful outcome, change one pattern at a time, and roll back if quality guardrails like completion, acceptance or parsing success regress.

  • Building Deep Research: How we Achieved State of the Art

    Hugging Face mediumAdept

    Tavily's deep research agent reached state of the art on DeepResearch Bench while using 66% fewer tokens than LangChain's Open Deep Research, mainly through context engineering. Each tool output is distilled into a short reflection, and only past reflections are passed to the tool-calling model. Raw sources come back only for the final write-up. This turns token growth from quadratic (n·m(m+1)/2) into linear (n·m) across m iterations. Other lessons: keep orchestration simple so future model gains carry through, deduplicate sources through global state, expose a small toolset, design for failure modes, and treat LLM-as-judge evals as directional feedback rather than the optimization target.

The quest for software engineering knowledge.

Look:
Layout: