Indexing the Unreadable: LLM-Native Recursive Construction and Search of Service Taxonomies
To address the context window limitations and "Lost-in-the-Middle" phenomenon in the emerging Internet of Agents, this paper proposes A2X, an LLM-native system that dynamically organizes services into a hierarchical taxonomy and navigates it layer-by-layer to significantly improve retrieval accuracy while drastically reducing token consumption compared to existing baselines.
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 Problem: The "Too Many Options" Dilemma
Imagine you are a very smart assistant (an AI agent) trying to help a user. To do your job, you have access to a massive library of tools—thousands of different "apps" or "services" like booking flights, checking bank balances, or translating languages.
The problem is that your brain (the AI's "context window") can only hold a limited amount of information at once.
- The Old Way: If you tried to read the descriptions of all 1,000 tools at once to find the right one, you would get overwhelmed. It's like trying to read a whole encyclopedia in one sitting. Even if you could read it all, your brain tends to ignore the middle pages and focus only on the beginning and the end. This is called the "Lost-in-the-Middle" effect. You might miss the perfect tool because it was buried in the middle of the list.
- The Alternative: Some people try to use a "magic index" (embedding-based search) that guesses which tools are similar to your question. But this is like using a blurry map; it often misses the specific, unique tools you actually need because it doesn't truly understand the meaning of the words, just their shape.
The Solution: A2X (The Smart Librarian)
The authors created a system called A2X (Agent-to-Anything). Instead of dumping the whole library on the AI's desk, A2X acts like a super-organized librarian who builds a custom filing system and guides the AI step-by-step.
Here is how it works, using a simple analogy:
1. Building the Map (The Taxonomy)
Imagine you have a pile of 2,000 random tools. A human would take days to sort them. A2X uses the AI itself to do the sorting, but it does it in small, manageable chunks.
- Recursive Splitting: Instead of asking the AI to sort 2,000 items at once (which causes the "overwhelm"), A2X asks it to sort 50 items, then another 50, and so on.
- The Result: It builds a hierarchical tree (like a family tree or a website menu).
- Level 1: Big categories (e.g., "Travel," "Finance," "Health").
- Level 2: Sub-categories (e.g., under "Travel": "Flights," "Hotels").
- Level 3: Specific tools.
- No Human Needed: The AI builds this map automatically from scratch, without a human needing to write a manual.
2. Finding the Tool (Progressive Disclosure)
When a user asks, "I need to book a flight to Tokyo," the AI doesn't look at the whole library. It follows the map:
- Step 1: The AI looks at the top level. It sees "Travel," "Finance," and "Health." It instantly ignores "Finance" and "Health" and focuses only on "Travel."
- Step 2: It zooms into "Travel." It sees "Flights," "Hotels," and "Car Rentals." It ignores the others and focuses only on "Flights."
- Step 3: It looks at the specific flight tools. Now it only has to choose between a handful of options, not 2,000.
This is called Progressive Disclosure. The AI only ever sees a small, relevant list of options at any given time. It never gets overwhelmed, and it never misses the tool in the middle of a long list.
Why It's Better (The Results)
The paper tested this system against the old ways and found:
- Better Accuracy: A2X found the right tools 20% more often than the best "magic index" systems (embedding search). It also found them 6% more often than just dumping the whole list into the AI's brain.
- Cheaper and Faster: Because the AI only reads small lists instead of the whole library, it uses 9 times less computer memory (tokens) to get the same (or better) result.
- Works in Other Languages: The system worked just as well in Chinese as it did in English, because the AI understands the meaning of the words, not just the translation.
The Bottom Line
The paper argues that as we enter an era where AI agents need to use thousands of tools, we can't just feed them all the data at once. Instead, we need to teach them how to navigate a structured map. A2X is a system that automatically builds that map and guides the AI through it, one small step at a time, ensuring it finds the right tool without getting lost or running out of brainpower.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.