AIToday
AI Coding AssistantsAI Business & IndustryMicrosoft ResearchPublished: Nov 13, 2026, 10:01 JST

Microsoft: 8% of coding sessions drive 44% of AI costs

Send on LINE
Microsoft: 8% of coding sessions drive 44% of AI costs

3 Key Points

  1. What happened

    A Microsoft study of 13.5 million coding sessions found fewer than 8% required context compaction, yet those sessions accounted for 44% of total AI processing costs. Researchers released COMPACTIONBENCH, a benchmark for evaluating compaction, and APEC, which prepares summaries in the background.

  2. Why it matters

    The finding suggests a small share of long-running coding sessions drives a disproportionate share of AI processing costs, so tools that handle context compaction more efficiently could meaningfully lower expenses for teams running coding agents.

Not sure about something? Ask the AI

Questions and answers are published on this page.

Summaries like this, every morning.

Context & Analysis

The Microsoft Research Focus edition highlights several projects, but the coding-agent study stands out for its cost implications. The core insight is that context compaction—a resource-intensive summarization step—is triggered in fewer than 8% of sessions, yet those sessions account for 44% of total AI processing costs. This concentration means that even modest efficiency gains in compaction could yield outsized savings.

To address this, researchers introduced COMPACTIONBENCH, a benchmark for evaluating compaction during long-running coding tasks, and APEC, a method that prepares summaries in the background instead of interrupting an agent's work. In evaluations, APEC improved coding performance while reducing costs by up to 25.4% and execution time by 9.6%. These results suggest that better compaction strategies can directly reduce both expense and latency for teams running coding agents.

The edition also covers other Microsoft Research work, including a resolved 31-year-old mathematics conjecture and a new tokenizer for 104 languages, but the coding-agent findings are the most immediately relevant to businesses deploying AI tools.

FAQ
What is context compaction?
Context compaction is a resource-intensive process where coding agents summarize earlier interactions when long sessions max out the amount of information an AI model can process at once.
What results did APEC achieve?
In evaluations, APEC improved coding performance while reducing costs by up to 25.4% and execution time by 9.6%.
What is COMPACTIONBENCH?
COMPACTIONBENCH is a benchmark for evaluating context compaction during long-running coding tasks.
Microsoft ResearchRead Original Article
Send on LINE

AI news that matters for your work, delivered every morning.

Pick your industry and the AI tools you use, and get news related to your work every day.

Free · 30 seconds with Google · unsubscribe anytimeWhat is AIToday? →

Ask AI

Ask AI anything about this article. The AI reads this article, earlier AIToday articles, and Wikipedia, and cites its sources. Q&As are published on this page for other readers too.

Questions and answers are published on this page.

Related Articles

Next articletheCUBE to broadcast from SC26 in Chicago Nov. 17–19