TabAgent is the official code implementation of the paper "TabAgent: Distilling LLM Agent Components into Cheap Classifiers" by IBM and the Weizmann Institute of Science. Its core purpose is to replace the recurring closed-set decisions in LLM agents (for example, filtering candidate tools from a tool list, selecting skills or apps, or routing to a specific model or sub-agent) with cheap classifiers trained on the agent's own successful run logs, thereby significantly reducing the latency and cost of each decision.
Main capabilities:
- Automatically extract trajectory features from agent logs and train a lightweight CatBoost classification head.
- On the AppWorld tool-filtering benchmark, TabAgent achieves Recall@9 of 92–100, with 2.682 milliseconds and $2.0×10⁻⁷ per decision, whereas the GPT-5.4 filter takes 7.50 seconds and costs $0.052, i.e., over 10³× lower latency and 10⁵× lower cost.
- Supports multiple decision families (tool filtering, skill selection, model routing, etc.), with a single classification head able to serve all decision types.
- Provides a command-line tool for training, evaluation, and deployment; supports launching an HTTP service via
tabagent serve, providing readiness checks, Prometheus metrics, and drift monitoring. - Provides the
ToolFilterhot-swap interface to replace LLM calls with classifier filtering, falling back to the full list when the classifier is uncertain. - Supports importing trajectories from OpenAI, Anthropic, LangChain, τ²-bench, CUGA, or generic JSON formats.
- Provides pretrained heads (such as SkillsBench skill selection and τ²-bench tool filtering), which can be loaded via
tabagent.load("hf://...").
Usage:
- Installation: after cloning the repository, run
uv sync --extra embedto install pinned dependency versions. - Training: use the command-line tool to import decisions from agent logs and train a classification head.
- Deployment: run
tabagent serve ./my_head --port 8077to start the service and make decisions through the POST /decide endpoint. - Integration: use ToolFilter in the agent to replace LLM calls with classifier filtering.
- Reproducing the paper: run
make reproduceto reproduce all public table results on CPU.
Applicable scenarios:
- LLM agents that frequently need tool filtering, skill selection, or model routing, especially latency- and cost-sensitive production environments.
- Teams with large amounts of successful run logs that want to distill lightweight decision components.
- Academic research reproduction and extension.
Limitations and caveats:
- The project is relatively young, and some results (such as AppWorld trajectories of the CUGA agent) cannot be reproduced because the data is not public.
- On the OAK and BPO enterprise benchmarks, with small trajectory pools TabAgent lags behind or only ties the best baseline; on sub-agent routing and skill-gating tasks it is comparable to the best fixed default.
- On 24 held-out AppWorld tasks, the task success rate after hot-swapping is 27.1%, compared with 29.2% for the GPT-5.4 filter, and the 95% confidence interval of the difference includes zero.
- Cross-architecture transfer (training on one ReAct agent and testing on another) loses about 3.1 P@R points on τ²-bench.
- Training requires sending trajectories to an LLM provider; you can use
--redactDesensitize parameters first. - The project does not include benchmark data or agent trajectories; you need to obtain them yourself and comply with their respective licenses.
- The code is licensed under Apache-2.0.