arXiv:2607.13034: E3 framework — agents estimate task complexity and use 91% fewer tokens
The E3 framework (Estimate, Execute, Expand) by Junjie Yin and Xinyu Feng introduces task complexity estimation before execution. On MSE-Bench it achieves the same success rate as baseline while reducing costs by 85%, token consumption by 91%, and files inspected by 92%.
This article was generated using artificial intelligence from primary sources.
What does “task complexity” mean for an AI agent?
In the context of code agents, task complexity refers to an estimate of how many steps, resources, and context a task realistically requires — how many files to inspect, how many fix iterations, and how many tokens to spend. Researchers Junjie Yin and Xinyu Feng present on arXiv the E3 framework that addresses this systematically: the agent estimates complexity BEFORE it begins execution.
E3: Estimate, Execute, Expand
E3 (Estimate, Execute, Expand) is a three-phase framework. In the Estimate phase the agent analyzes the request and classifies it by predicted complexity. In the Execute phase it allocates appropriate resources — simple tasks do not trigger expensive full-repository searches. In the Expand phase the agent extends context only if the estimate falls short, i.e. if the task turns out more demanding than predicted. The key innovation is the Agent Cognitive Redundancy Ratio (ACRR) metric, which measures how much an agent unnecessarily inspects files and spends tokens on tasks that don’t require it.
Results on MSE-Bench: same accuracy, dramatically lower costs
Validation was conducted on MSE-Bench with 121 deterministic code edits in live open-source projects, using GPT-4o and pytest for verification. E3 achieves the same success rate as the baseline, but with drastic reductions:
- −85% execution costs
- −91% token consumption
- −92% files inspected
Comparison with the adaptive-retrieval baseline, which dynamically adjusts context retrieval, shows E3 outperforms that approach by +16 percentage points in success rate. The difference is that adaptive-retrieval reacts to failure, while E3 anticipates complexity upfront.
Practical implications for agent costs
For teams using agents on large repositories, E3 offers a path to dramatically cheaper pipelines without quality loss. The ACRR metric also opens the possibility of systematically measuring resource waste in existing agent systems — something that previously lacked a standardized tool.
Frequently Asked Questions
- What is the E3 framework and how does it estimate task complexity?
- E3 (Estimate, Execute, Expand) is a three-phase framework where the agent first classifies the request by predicted complexity, then allocates appropriate resources, and only expands context if the initial estimate proves insufficient.
- How much does E3 reduce costs compared to baseline approaches?
- E3 reduces execution costs by 85%, token consumption by 91%, and files inspected by 92%, while maintaining the same task success rate as the baseline.
📬 AI news in your inbox
A daily digest built your way — pick topics, sources and cadence. One-click unsubscribe.
Related news
arXiv:2607.12463: function-aware FIM mid-training boosts coding agents up to +5.4 on SWE-Bench
arXiv:2607.12385: PM-Bench measures 'prospective memory' in agents — best GPT-5.4 scores only 65.1% F1
arXiv:2607.11185: SCALECUA scales computer-use agents with RL — 68.7% on OSWorld