[論文レビュー] LLM Agents Making Agent Tools
ToolMaker autonomously converts scientific papers with code into LLM-compatible tools, builds a reproducible execution environment, and achieves 80% task accuracy on the TM-BENCH benchmark, outperforming OpenHands.
Tool use has turned large language models (LLMs) into powerful agents that can perform complex multi-step tasks by dynamically utilising external software components. However, these tools must be implemented in advance by human developers, hindering the applicability of LLM agents in domains demanding large numbers of highly specialised tools, like in life sciences and medicine. Motivated by the growing trend of scientific studies accompanied by public code repositories, we propose ToolMaker, an agentic framework that autonomously transforms papers with code into LLM-compatible tools. Given a GitHub URL and short task description, ToolMaker autonomously installs dependencies and generates code to perform the task, using a closed-loop self-correction mechanism for debugging. To evaluate our approach, we introduce a benchmark comprising 15 complex computational tasks spanning various domains with over 100 unit tests to assess correctness and robustness. Our method correctly implements 80% of the tasks, substantially outperforming current state-of-the-art software engineering agents. ToolMaker therefore is a step towards fully autonomous agent-based scientific workflows. Our code and benchmark are publicly available at https://github.com/KatherLab/ToolMaker.
研究の動機と目的
- LLMエージェントのツール構築負担を、特に生命科学・医療分野で削減する動機づけ。
- 論文やコードリポジトリからツールを導出する自動ツール作成フレームワークを導入する。
- 環境構築、インストール、テストを含むエンドツーエンドのツール実装を可能にする。
- 現実的な多段階の科学タスクと広範な単体テストを備えたベンチマーク(TM-BENCH)を提供し、ツール作成を評価する。
- 自動ツール作成が、この設定で最新のソフトウェアエンジニアリングエージェントを上回ることを示す。
提案手法
- 既存の論文やGitHubリポジトリからツールを自動的にダウンロード、統合、実装するエージェント的フレームワーク TOOLMAKER を提案する。
- タスクの説明、リポジトリURL、入力引数を含む最小限のツール仕様を定義する;TOOLMAKER は再現性のある Docker ベースの実行環境も構築する。
- 環境設定(Docker スナップショット作成)とツール実装(Python 関数生成)の二段階ワークフローとして TOOLMAKER を構成する。
- LLM 呼び出し、環境アクション、エージェントのサブタスク間の相互作用としてワークフローをモデル化し、エラー診断と再実装による閉ループの自己改善を可能にする。
- 初期ツールを実装し、単体テストで検証し、障害を診断して再実装し、成功まで要約する閉ループサイクルを実行する。
実験結果
リサーチクエスチョン
- RQ1LLMエージェントは科学論文やリポジトリから依存関係をダウンロード・インストールし、再利用可能なツールを自動的に組み立てられるか。
- RQ2このように自動作成されたツールは、多様で現実的な科学タスクに対して頑健な性能を発揮するか。
- RQ3自動ツール作成は精度、信頼性、コストの点で既存のソフトウェアエンジニアリングエージェントとどう比較されるか。
- RQ4タスク特化および論文特化の要約をツール作成の効率化に取り入れるとどうなるか。
- RQ5ライフサイエンスのワークフローにおける完全自動ツール作成の限界とリスクは何か。
主な発見
- TOOLMAKER は15のベンチマークタスクのうち80%(12/15)を正しく実装。
- OpenHandsを基準とした場合、ツールの正確さで TOOLMAKER は大幅に上回っている(12/15 対 3/15)。
- TOOLMAKER は複数の機能と依存関係の orchestration を要する多段ツールを作成でき、GPU加速ワークフローを含む。
- フレームワークは閉ループの自己修正メカニズムを利用し、計画、実装、テスト、再実装を反復してエラーを修正する。
- アブレーションにより、論文要約はアクション数と反復回数を減らす一方、モデルの選択とプロンプト設計がコストと性能に影響を与えることが示される。
この論文を読む
Nubintのビューアで原文を開き、読みながら気になる箇所をすぐに質問できます。
Nubintでこの論文を読むこのレビューはAIが論文の原文をもとに作成しました。引用する前に原文をご確認ください。