← Latest papers
🤖 AI

KACE: Knowledge-Adaptive Context Engineering for Mathematical Reasoning

KACE (Knowledge-Adaptive Context Engineering) enhances mathematical reasoning in large language models by decoupling knowledge storage from usage through a difficulty- and domain-stratified epistemic tree, achieving a 62.2% accuracy on AIME 2025—a significant improvement over existing baselines—while avoiding context bloat via tiered self-consistency.

Original authors: Jayant Parashar, Suchendra M. Bhandarkar

Published 2026-06-02
📖 4 min read☕ Coffee break read

Original authors: Jayant Parashar, Suchendra M. Bhandarkar

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Big Problem: The "Too Much Information" Trap

Imagine you are trying to solve a very hard math problem. You have a brilliant but "frozen" tutor (an AI model) who cannot learn new things by changing their brain (weights). Instead, you can only give them notes (context) to read before they try to solve the problem.

Previous methods tried to help by giving the tutor a growing notebook. Every time the tutor made a mistake, you wrote a lesson in the notebook and added it to the next attempt.

  • The Issue: Eventually, this notebook became huge. It was stuffed with lessons for every type of problem. When the tutor tried to solve a simple problem, they had to wade through pages of complex, irrelevant advice. The useful tips got lost in the noise, and the tutor got confused. This is called "context bloat."

The Solution: KACE (The Smart Library)

The authors created a system called KACE (Knowledge-Adaptive Context Engineering). Instead of one giant, messy notebook, KACE builds a smart, organized library.

Here is how it works, step-by-step:

1. The Two-Step Sorting System

KACE sorts every math problem into two categories before giving it to the tutor:

  • Difficulty: Is this an Easy, Medium, or Hard problem?
  • Topic: Is this about Geometry, Algebra, or Combinatorics?

Think of this like a library with shelves. You don't just dump all books on the floor; you put "Easy Geometry" books on one shelf and "Hard Algebra" books on another.

2. The Offline "Librarian" (Training Phase)

Before the tutor ever sees a test question, a "Librarian" (a separate AI) studies the tutor's past failures.

  • If the tutor fails a Hard Geometry problem, the Librarian writes a specific "cheat card" (a tip, rule, or strategy) and places it only on the "Hard Geometry" shelf.
  • If the tutor fails an Easy Algebra problem, a different card goes on the "Easy Algebra" shelf.
  • Crucial Point: The Librarian creates thousands of these cards, but they are stored in the library, not in the tutor's immediate view.

3. The "Tiered" Test (Evaluation Phase)

When a new problem arrives, the system doesn't just hand the tutor the whole library. It uses a tiered self-consistency process (a fancy way of saying "try, try again, but with a plan"):

  • Level 1 (Easy): The system tries to solve the problem immediately. If the tutor gets it right twice in a row, they are done. No cards are shown. (Why read a library for a 1+1 problem?)
  • Level 2 (Medium): If the tutor struggles, the system escalates. It checks the library for the "Medium" shelf matching the problem's topic. It hands the tutor only those specific cards.
  • Level 3 (Hard): If the tutor is still stuck, it escalates to the "Hard" shelf for that topic. It hands over the deep, complex strategies.

Why This is Better (The Analogy)

  • Old Way (Monolithic Prompt): Imagine trying to find a specific recipe for "Chocolate Cake" by reading a 500-page book that contains every recipe in the world, plus instructions on how to build a car and how to fix a sink. You get overwhelmed, and you might miss the cake recipe.
  • KACE Way: You walk into a library. You ask the librarian, "I need a recipe for a chocolate cake." The librarian walks you directly to the "Desserts" section, opens the "Cakes" drawer, and hands you only the "Chocolate Cake" card. You ignore the car manuals and sink repairs entirely.

The Results

The paper tested this on very hard math competitions (like the AIME 2025).

  • The Baseline: Standard methods (giving the AI 5 tries with the same big prompt) got about 51.8% right.
  • KACE: By using the smart library and only showing relevant cards, KACE got 62.2% right.

This is a massive jump. It proves that quality of information matters more than quantity. Giving the AI a small, perfectly relevant hint is better than giving it a massive, confusing pile of "lessons."

Key Takeaways

  1. Separate Storage from Usage: Keep all the knowledge in a big database (the library), but only show the AI the tiny slice it needs for the specific problem at hand.
  2. Difficulty Matters: Easy problems shouldn't be burdened with hard lessons. The system adapts the help based on how hard the problem actually is.
  3. No Brain Surgery: The AI's "brain" (weights) wasn't changed. The improvement came entirely from better organization of the notes it reads.

In short, KACE teaches the AI to be a better researcher (knowing where to look) rather than just a better reader (trying to read everything).

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →