# ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents

도구 사용 에이전트의 test-time scaling을 위한 Q-함수로서의 ToolGraph

Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · arXiv · 2026년 11월 16일

- **연구 문제** 도구 사용 에이전트가 연쇄 호출을 할 때 도구 간 의존 구조를 언어 모델이 안정적으로 읽기 어렵습니다.
- **연구 방법** 도구 의존 그래프에서 엔티티 집합 위의 단조 완화 가치를 계산하고, 이를 증류한 추정기와 LLM 점수기로 행동-목표 값을 만들어 원래 에이전트에 피드백합니다.
- **주요 결과** Qllm은 ToolComp와 τ 2-Bench의 여섯 벤치마크-백본 설정 모두에서 개인화 PageRank보다 높았고 평균은 8.3점 올랐습니다. 구조 전용 추정기 Qdp와 Qemb는 평균적으로 PPR보다 낮았습니다.

## 도구 체인의 의존 구조를 가치로 바꾸는 문제

도구 사용 에이전트는 한 도구의 출력이 다음 도구의 입력이 되는 연쇄 호출을 해야 합니다. 어떤 출력이 어떤 후속 입력을 만족하는지는 배포된 도구 카탈로그의 구조이며, 도구 설명을 하나씩 읽는 언어 모델이 안정적으로 추론하기 어렵습니다. 이 논문은 같은 의존 그래프를 검색이나 다음 호출 점수화에 쓰는 대신, 다단계 목표 조건부 행동 가치 Q(s, a, g)로 합성할 수 있는지 묻습니다. 그래프 구축은 카탈로그 단위의 일회성 비용으로 따로 보고됩니다.

## 그래프에서 행동 가치를 계산하는 방법

ToolGraph는 도구를 노드로, 한 도구가 다른 도구에 필요한 정보를 공급할 수 있음을 방향 간선으로 나타냅니다. 간선은 파라미터 매칭과 개입 탐침이 제안한 근거를 결합한 신뢰도 w\_ab를 가지며, 임계값 미만은 제거됩니다. Qdp는 엔티티 집합을 상태로 두고 효과가 엔티티를 추가만 하는 단조 완화 위에서 Q̄\_g(e, a)=γ\[p\_a V\_g(e\_a)+(1−p\_a)V\_g(e)\]와 V\_g(e)=max\_a q\_g(e, a)를 값 반복으로 풉니다. 여기서 V\_g는 목표 도구가 실행 가능한 종료 상태에서 +1, 실행 가능한 행동이 없는 막다른 상태에서 −1이며, 신뢰도 축소 식 (2)는 q\_g 크기에 κ(1−c\_a)를 곱한 값을 뺍니다.

논문은 이 축소가 낙관적 값을 0 쪽으로 줄이고 비관적 값은 더 깊게 만드는 크기 페널티이며, κ는 0.3으로 고정했다고 밝힙니다. Qemb는 GraphSAGE로 정규화된 Qdp 목표값을 증류하고, Qllm은 그래프 근거와 Qdp 값을 프롬프트에 담아 LLM이 0~10 점수를 매깁니다. verbalizer는 상위 행동-목표 값을 자연어로 전달하며 최종 행동 선택은 원래 에이전트가 유지합니다.

![Figure 1: ToolGraph externalizes domain-specific tool dependencies and uses graph-derived Q-values to score candidate actions. The top-k values are verbalized…](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e/figures/figure-06a786226ebdf59737f2355fb402bb9d.png?thumb=512)

**Figure 1** : ToolGraph externalizes domain-specific tool dependencies and uses graph-derived Q-values to score candidate actions. The top-k values are verbalized for the original agent, which retains final action selection.

[원문](https://arxiv.org/abs/2611.20569v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

![Table 3: ToolGraph statistics per benchmark. “Param. only” / “probe only” / “both” partition the retained edges by which proposer supplied their evidence. The…](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e/figures/figure-cfeee6eb2af9c8615321778a5e1fd3ae.png?thumb=512)

**Table 3** : ToolGraph statistics per benchmark. “Param. only” / “probe only” / “both” partition the retained edges by which proposer supplied their evidence. The lower block gives the threeτ 2 domains that are evaluated separately, counting only intra-domain nodes and edges; the 73 domain nodes are a subset of the 146 in the catalog graph, the remainder belonging to τ 2 domains we do not evaluate. In that block the last column isnot θprune but k/\|T \|, the fraction of the domain catalog exposed at k= 8, which shows where retrieval has little room to act.

[원문](https://arxiv.org/abs/2611.20569v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 비교 설계와 평가 조건

핵심 비교는 같은 그래프와 같은 k=8 주입 인터페이스를 쓰는 평면 top-k 검색, 개인화 PageRank 검색, 세 가지 가치 추정기 사이에서 이루어집니다. 평면 검색은 그래프 없이 임베딩 유사도만으로 도구를 고르고, PPR은 같은 그래프를 질의 조건부로 순위화합니다. 평가는 ToolComp와 τ 2-Bench에서 Ministral 3 8B, Gemma 4 31B, DeepSeek V3.2 685B 플래너로 수행했으며, 모든 평가 arm의 점수기와 verbalizer는 Gemma 4 31B입니다. 각 arm은 n=4개 후보를 뽑고, 성공률은 벤치마크 고유의 이진 보상입니다. 각 셀은 단일 시드의 점 추정치이며 신뢰구간은 없습니다.

## 결과: 구조만으로는 부족하고 상태를 읽는 점수기가 이김

Native에서 평면 top-k 검색으로 바꾸면 여섯 설정 중 다섯에서 성공률이 떨어져 평균이 63.6에서 60.9로 내려갑니다. 평면 검색에서 TG–PPR로 바꾸면 의존 구조만 달라지고 평균은 60.9에서 62.7로 올랐습니다. Qdp는 PPR과 비교해 평균이 2.8점 낮았고, Qemb는 평균 4.7점 낮았습니다. 이 두 구조 전용 추정기는 도구 유형을 기준으로 순위를 매기기 때문에 같은 도구에 잘못된 인자를 넣은 후보를 구분하지 못합니다. 저자들은 단조 완화 가치가 많은 하류 유형을 해제하는 행동을 편향되게 높이는 것을 구조 전용 추정기의 손실 원인으로 해석합니다.

![Table 1: Task success rate (%). Flat top- k retrieval and the four ToolGraph rows share the same k= 8 injection interface and prompt template; they differ only…](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e/figures/figure-ff69c0adff737c106b960ad64c0eb52c.png?thumb=512)

**Table 1** : Task success rate (%). Flat top- k retrieval and the four ToolGraph rows share the same k= 8 injection interface and prompt template; they differ only in how the injected tools are ranked, and only the ToolGraph rows use the graph. M, G, and D denote Ministral 3 8B, Gemma 4 31B, and DeepSeek V3.2 685B. Bold marks the best value in each column. Verifier: Gemma 4 31B for every scored arm; ToolComp answers are additionally graded by the benchmark’s own answer judge, held fixed across arms.

[원문](https://arxiv.org/abs/2611.20569v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 증거 예산 스윕과 비용

Qllm을 기준으로 τ 2-Bench에서 네 가지 노브를 한 번에 하나씩 바꾸었습니다. 이웃 반경 h, 간선 임계값 θ, 노드 주석 깊이, 후보 수 n입니다. θ를 0.9로 올리면 간선의 절반 이상이 제거되어 토큰은 9.5K 줄지만 성공률은 2.5점 떨어졌습니다. 후보 수 n=8은 n=4보다 116.6K 토큰을 더 쓰면서 1.7점 낮았습니다. 그래프 구축 비용은 100개 평가 과제에서 과제당 88K 토큰으로 나뉘며, 요청 시 앵커 비용 155K와 같은 규모입니다. 논문은 이 비용이 평가 과제 수가 늘면 1/N로 줄어드는 것이므로 실제 배포 규모에 따라 달라진다고 봅니다.

![Table 2: Evidence-budget sweeps for Qllm on τ 2-Bench. Each block variesoneknob and holds the rest at the anchor (†: h=1, θ=0.0, N0, n=4). Success is the macro…](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e/figures/figure-e05c8ac3a8a6572bca0b5900c5c17f2b.png?thumb=512)

**Table 2** : Evidence-budget sweeps for Qllm on τ 2-Bench. Each block variesoneknob and holds the rest at the anchor (†: h=1, θ=0.0, N0, n=4). Success is the macro average of task pass rate (%) over three planners and the three τ 2 domains; Tok. K is anestimatedrequest-time cost in thousands of tokens per task (planner, scorer and verbalizer at ≈5.5 decisions/task), computed from measured prompt sizes and per-mechanism call counts rather than per-call accounting. Blocks 1–3 and block 4 are separate run series, so the nominally identical anchor reads 65.8 in the first three and 66.4 in the fourth — a 0.6-point gapon the macro average; the same replicate pair differs by up to 2.5 points within a single planner column, which is the scale at which per-backbone differences should be read. Sweeps are run on the evaluation split. Verifier: Gemma 4 31B; verbalizer enabled throughout.

[원문](https://arxiv.org/abs/2611.20569v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![Table 4: Graph construction and maintenance cost, in language-model calls and estimated tokens, broken out by construction phase. Construction is a one-time, c…](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e/figures/figure-d930ba3242747772dd3dc9f77250b1a8.png?thumb=512)

**Table 4** : Graph construction and maintenance cost, in language-model calls and estimated tokens, broken out by construction phase. Construction is a one-time, catalog-level cost; the amortized rows divide it by the number of evaluated tasks that reuse the graph. On the larger catalog, adding a tool later costs about two orders of magnitude less than a rebuild and deleting one is near-free, which is what makes the compiled artifact reusable under catalog churn; on a catalog as small as ToolComp’s eleven tools the saving is correspondingly smaller. Token counts are estimates, derived from measured prompt sizes and the max-token setting of each phase rather than from per-call accounting. Construction uses a fixed closed model (Sonnet 4.5 for edge proposal and probe synthesis, Sonnet 4 for probe evaluation), independent of the planner and verifier models used at request time.

[원문](https://arxiv.org/abs/2611.20569v1) · [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) · Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar · ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents · 원문 그림 인용 · 원본 PDF 13쪽에서 그림 영역을 추출했습니다.

## 남은 제약

그래프 간선은 도구 쌍에 대한 카탈로그 단위 진술이므로, 같은 도구를 다른 인자로 호출하는 후보를 그래프 값만으로 구분할 수 없습니다. 탐침의 결과는 합성된 질의에 대한 모델의 판정이므로 간선 가중치는 의존 관계의 증거이지 증명이 아닙니다. 평가는 공개 벤치마크 두 종으로 제한되고, 미지의 카탈로그로의 Qemb 전이는 검증하지 않았습니다. 결과는 단일 시드의 점 추정치라서 셀 사이의 작은 차이를 순서로 해석하지 않습니다. 논문은 코드, 그래프 산출물, 궤적을 공개하지 못한다고 밝힙니다.

## 논문 정보

- **저자**: Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2026년 11월 16일
- **등록일**: 2026년 11월 17일
- **수정일**: 2026년 11월 16일
- **버전**: v1
- **arXiv**: 2611.20569
- **분류**: cs.AI
- **원문 이용 조건**: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2611.20569v1) · [원문 PDF ↗](https://arxiv.org/pdf/2611.20569v1)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

Tool-use agents must chain interdependent calls, yet which outputs satisfy which later inputs in a deployed catalog is not something a general-purpose language model reliably infers from tool descriptions alone. We compile that structure once into a reusable external representation. ToolGraph is a directed, weighted dependency graph over a tool catalog: parameter matching and interventional probes, which execute a candidate chain with and without its proposed predecessor, propose edges whose evidence is combined into an edge confidence. Prior work uses such graphs to retrieve tools, search for tool paths, or score the next call. We ask instead whether the same structure can supply a \\emph{multi-step} value by composing graph paths into a goal-conditioned action value \\(Q(s,a,g)\\). We study three estimators (dynamic programming over entity sets, a GraphSAGE estimator distilled from it, and an LLM scorer conditioned on graph evidence) plus a verbalizer that returns action--goal feedback to the agent, which keeps final action selection. Across two tool-use benchmarks and three backbones, we compare value ranking against personalized-PageRank retrieval over the identical graph, and against direct and reflective agents. Composition pays off only when the estimator also reads the concrete state: the LLM estimator improves on PageRank in every benchmark--backbone setting, by \\(8.3\\) points on average, while the two purely structural estimators fall below it, because a value defined over tool types cannot separate a correct tool called with a wrong argument. Graph construction is a one-time cost; we report it separately rather than assume it amortized away (at our scale it is comparable to request-time cost) and sweep four knobs controlling how much graph evidence to expose against success and tokens.

## 원문 인용

Ke Shen, Ankita Bhaumik, Li Dong, Shengjie Liu, Shuzhen Li, Naveed Ahmed Janvekar (2026). ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents. arXiv:2611.20569v1. https://arxiv.org/abs/2611.20569v1

**BibTeX**

```
@misc{shen2026toolgraph,
  title = {{ToolGraph as a Q-Function for Test-Time Scaling of Tool-Use Agents}},
  author = {Ke Shen and Ankita Bhaumik and Li Dong and Shengjie Liu and Shuzhen Li and Naveed Ahmed Janvekar},
  year = {2026},
  eprint = {2611.20569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20569v1}
}
```

## 이 논문의 용어

- [ReAct](https://refivu.com/terms/420780a0fd8c-react)
- [GraphSAGE](https://refivu.com/terms/c4baff75600a-graphsage)
- [Reflexion](https://refivu.com/terms/ae549dc1c40e-reflexion)
- [Personalized PageRank](https://refivu.com/terms/b8c03b235684-personalized-pagerank)
- [Task success rate](https://refivu.com/terms/0ab43e935152-task-success-rate)
- [dead end](https://refivu.com/terms/a1a33d08f1cc-dead-end)
- [Gemma 4 31B](https://refivu.com/terms/d22801206a04-gemma-4-31b)
- [Ministral 3 8B](https://refivu.com/terms/3f83134ed2f0-ministral-3-8b)
- [parameter matching](https://refivu.com/terms/ef8b32d1a165-parameter-matching)
- [verbalizer](https://refivu.com/terms/09c48662f2c5-verbalizer)

## 다른 논문 해설

- [Invariant-Aware Harness Enforcement to Protect LLM Agents from Silent API Failures](https://refivu.com/papers/bd28a6a6-5402-4777-8dd7-6c8f089fb4ba-invariant-aware-harness-enforcement-to-protect-llm-agents.md)
- [CRAFT: A Robot-Agent Harness with Scope-Aware Adaptation](https://refivu.com/papers/c797340e-3e38-4c1f-9503-2964c92d5483-craft-a-robot-agent-harness-with-scope-aware.md)
- [When Facts Change, Which Decisions Break? Dependency-Aware Context Graphs for Agents](https://refivu.com/papers/72222a4e-932f-43b1-b657-df2dd140645a-when-facts-change-which-decisions-break-dependency-aware.md)
- [One Run Is Not Enough: Reminding a small Gemma 4 coding agent of its last finding made no measurable difference in a paired test](https://refivu.com/papers/c7922bdb-3027-4bf1-b712-de50ef206066-one-run-is-not-enough-reminding-a-small.md)
- [Guiding AI Agents to Generate Conjectures by Encoding How Theorems Build on One Another](https://refivu.com/papers/62af4783-da20-4330-8ead-89401a9e5c42-guiding-ai-agents-to-generate-conjectures-by-encoding.md)
- [Agent Authenticator: Passkey-Grade, Hardware-Bound Authentication for AI Agents](https://refivu.com/papers/c6881b60-4466-4f78-874b-a41bdd696c71-agent-authenticator-passkey-grade-hardware-bound.md)
- [Self-supervised learning for zebrafish embryo phenotype evaluation: Systematic comparison of algorithms, label-efficient classification, and transfer learning](https://refivu.com/papers/56d236c3-0e3a-4769-877f-5ed56b1eedca-self-supervised-learning-for-zebrafish-embryo-phenotype.md)
- [Memory-Efficient Speculative Decoding with Quantized Draft KV Cache](https://refivu.com/papers/1e123b50-de09-4b50-a976-9fb1df96941d-memory-efficient-speculative-decoding-with-quantized-draft.md)
- [ReRead: Wrong Predictions, Useful Representations - Correcting Frozen Robot Policies by Re-reading Their Own Representations](https://refivu.com/papers/8296ea66-ea3c-4b5e-a10d-c73916f082a8-reread-wrong-predictions-useful-representations-correcting.md)
- [DexFormer 2.0: Towards a Cross-Embodiment Foundation Policy for Dexterous Grasping](https://refivu.com/papers/198188b6-2d22-44da-9ba3-93ce7566fc83-dexformer-2-0-towards-a-cross-embodiment-foundation.md)
- [How Reliable Is Visual Token Selection? Rethinking Pruning in Multimodal LLMs](https://refivu.com/papers/f4f12ad2-951c-4840-88b3-b100cffd3c70-how-reliable-is-visual-token-selection-rethinking-pruning.md)
- [Spectral Landmarks: Alignment of Landmark Kernel Translates with the Leading Eigenfunctions of a Kernel Operator](https://refivu.com/papers/7513de37-a836-428f-afac-a90496ed2e0e-spectral-landmarks-alignment-of-landmark-kernel-translates.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/c86b8c10-1fa4-4795-ab5c-6d8fbed7450e-toolgraph-as-a-q-function-for-test-time)
