NTILC slashes AI tool context by 95% with learned latent retrieval
Researchers just solved the exploding context problem for agentic AI tool registries.
A new paper introduces NTILC (Neural Tool Invocation via Learned Compression), which replaces in-context tool registries with learned latent retrieval. By mapping user intent and tool specifications into a shared embedding space and using a signature-aware loss function, NTILC reduces context window consumption by over 95% and inference latency by up to 74% compared to long-context baselines.
- NTILC reduces context window usage by over 95% compared to traditional in-context tool registries, making it practical for large-scale agentic AI.
- Inference latency drops by up to 74% by replacing full-prompt tool lookups with a fast latent retrieval step.
- The signature-aware composite loss function (Circle Loss + Functional Margin Loss) ensures tools with similar semantics but incompatible argument types don't interfere.
- The method was tested on public tool-selection datasets and maintained high retrieval accuracy while dramatically lowering context and latency costs.
- This enables AI agents to handle thousands of APIs without overflowing context windows, a major bottleneck for current systems like GPT-4 or Claude with large function libraries.
Why It Matters
This could make large-scale tool-calling AI agents practical, reducing costs and latency for enterprise automation workflows.