potentialpaper

Tool Calling is Linearly Readable and Steerable in Language Models

Import the versions from OpenReview: the same title at other venues

@openreview[bot] · 2026-11-22 19:31 UTC · 79f83c105127

.gitattributes added

+++ b/.gitattributes
@@ -0,0 +1,10 @@
+# PDFs and pictures are kept with Git LFS (https://git-lfs.com). With it installed (`git lfs install`),
+# a clone has the files, and `git add` of one stores a pointer. This file is the same on every page.
+/.potentialpaper/*.pdf filter=lfs diff=lfs merge=lfs -text
+/versions/*.pdf filter=lfs diff=lfs merge=lfs -text
+/thumbnail.png filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.jpeg filter=lfs diff=lfs merge=lfs -text
+/thumbnail.gif filter=lfs diff=lfs merge=lfs -text
+/thumbnail.webp filter=lfs diff=lfs merge=lfs -text
+/thumbnail.avif filter=lfs diff=lfs merge=lfs -text

.potentialpaper/metadata.json added

+++ b/.potentialpaper/metadata.json
@@ -0,0 +1,19 @@
+{
+ "layout": 5,
+ "identifiers": [
+ {
+ "scheme": "openreview",
+ "value": "Tdo3DjbRLp"
+ }
+ ],
+ "title": "Tool Calling is Linearly Readable and Steerable in Language Models",
+ "authors": [],
+ "abstract": "Language-model agents can take real actions by calling tools, so choosing the wrong tool can cause errors that are difficult to undo. Most evaluations only observe the tool choice after the model generates a call. We read this choice from the model before generation, and we steer it. For each tool, we average the model's hidden states from a few example requests to obtain a tool vector. Comparing a new request with these tool vectors predicts which tool it needs. The difference between two tool vectors gives a steering direction that can move the model toward a chosen tool without retraining. Across eight instruction-tuned models from 4B to 27B parameters, steering changes the generated call to a chosen target tool in 56–78% of held-out tool pairs, depending on the model. We also observe steering on real APIs from $\\tau$-bench and ToolBench, though less reliably. At the final layer, steering could work simply by raising the score of the target tool name. To test this, we compare the steering direction with a direction that only raises that score, layer by layer. In the middle layers, on the three models we examine in depth, the steering direction switches more calls than the score-raising direction. So the tool vectors capture part of the tool choice before the final layer. The same tool vectors also help identify likely tool-selection errors before generation. Calls are more likely to be wrong when a request is similarly close to two tool vectors. Across four models, this signal achieves an AUROC of 0.61–0.78 and outperforms a first-token confidence baseline on three of them. Together, these results suggest that the model's hidden state provides a way to read, steer, and check tool choice before a call is made.",
+ "year": 2027,
+ "venue": "ICLR 2027 (under review)",
+ "source": "openreview",
+ "license": {
+ "metadata": "CC0-1.0",
+ "abstract": "CC0-1.0"
+ }
+}

community/10-tl-dr.md added

+++ b/community/10-tl-dr.md

community/20-summary.md added

+++ b/community/20-summary.md

community/30-why-it-matters.md added

+++ b/community/30-why-it-matters.md

community/40-critique.md added

+++ b/community/40-critique.md

community/50-errata.md added

+++ b/community/50-errata.md

community/60-reproductions.md added

+++ b/community/60-reproductions.md

community/70-follow-ups.md added

+++ b/community/70-follow-ups.md

owners/10-tl-dr.md added

+++ b/owners/10-tl-dr.md

owners/20-overview.md added

+++ b/owners/20-overview.md

owners/30-results.md added

+++ b/owners/30-results.md

owners/40-demos.md added

+++ b/owners/40-demos.md

owners/50-code-and-data.md added

+++ b/owners/50-code-and-data.md

owners/60-talks.md added

+++ b/owners/60-talks.md

prek.toml added

+++ b/prek.toml
@@ -0,0 +1,36 @@
+# Checks run before each commit, with prek (https://prek.j178.dev): `prek install` once in this clone.
+# The site checks every push again; these catch mistakes before you commit. The same on every page.
+
+[[repos]]
+repo = "builtin"
+hooks = [
+ { id = "check-json" },
+ { id = "pretty-format-json", args = ["--autofix", "--no-sort-keys", "--no-ensure-ascii"], exclude = '^demos/' },
+ { id = "end-of-file-fixer", exclude = '^demos/' },
+ { id = "trailing-whitespace", args = ["--markdown-linebreak-ext=md"], exclude = '^demos/' },
+ { id = "check-case-conflict" },
+ { id = "check-illegal-windows-names" },
+ { id = "check-added-large-files", args = ["--maxkb=256"], exclude = '^demos/' },
+]
+
+# Each JSON file against its schema (https://papers.potentialhedge.com/schemas/).
+[[repos]]
+repo = "https://github.com/python-jsonschema/check-jsonschema"
+rev = "0.39.0"
+hooks = [
+ { id = "check-jsonschema", name = "author section plugins files", files = '^owners/plugins\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/authorPlugins.json"] },
+ { id = "check-jsonschema", name = "venue files", files = '^venue\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/venue.json"] },
+ { id = "check-jsonschema", name = "topic files", files = '^topic\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/topic.json"] },
+ { id = "check-jsonschema", name = "organisation files", files = '^org\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/org.json"] },
+ { id = "check-jsonschema", name = "link files", files = '^links/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/link.json"] },
+ { id = "check-jsonschema", name = "version files", files = '^versions/[^/]+\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/version.json"] },
+ { id = "check-jsonschema", name = "picture files", files = '^thumbnail\.json$', args = ["--schemafile", "https://papers.potentialhedge.com/schemas/thumbnail.json"] },
+]
+
+# Sections formatted the way the web editor formats them.
+[[repos]]
+repo = "https://github.com/rbubley/mirrors-prettier"
+rev = "v3.9.9"
+hooks = [
+ { id = "prettier", files = '^(owners|community)/.*\.md$' },
+]

versions/v_4xhux87z.json added

+++ b/versions/v_4xhux87z.json
@@ -0,0 +1,19 @@
+{
+ "date": "2026-04-28",
+ "kind": "submitted",
+ "label": "FAGEN @ ICML 2026",
+ "submissions": [
+ {
+ "venue": "FAGEN @ ICML 2026",
+ "status": "accepted",
+ "decision": "Oral",
+ "url": "https://openreview.net/forum?id=FnXL1RKC06"
+ }
+ ],
+ "title": "Tool Calling is Linearly Readable and Steerable in Language Models",
+ "url": "https://openreview.net/forum?id=FnXL1RKC06",
+ "evidence": [
+ "https://openreview.net/forum?id=FnXL1RKC06"
+ ],
+ "abstract": "When a tool-calling agent picks the wrong tool, the failure is invisible until execution: the email gets sent, the meeting gets missed. As agents take on consequential actions (running code, moving money, approving transactions), one bad tool call can do real damage, and we currently have no way to look inside the model and catch the mistake before it happens. This paper shows that we can. Inside the model, the choice of tool is carried by a single direction in activation space, one direction per pair of tools. Adding that direction during generation switches which tool the model picks. Across 12 instruction-tuned and 6 base models spanning Gemma 3, Qwen 3, Qwen 2.5, and Llama 3.1 (270M to 27B), this works at 83-100% accuracy on 4B+ instruction-tuned models on a 15-tool synthetic benchmark and at 77-94% on the real-API benchmark tau-bench airline. The JSON arguments that follow automatically adapt to the new tool's schema, so flipping the name is enough. The same per-tool directions also flag likely errors before they happen: queries where the model's top two tool candidates are nearly tied fail 21x more often than queries with a clear top choice (Gemma 3 27B). This is not just steering toward a different topic: random vectors at the same magnitude give a 0% switch rate, a probe within a single domain (14 airline tools that all share one topic) still reads which tool the model will call at top-1 61-89% across five 4B-14B models, and the causal effect concentrates along the model's own first-token output direction. Even base models already carry the right tool internally before they can emit it: reading the chosen tool off the model's internal state (cosine readout) recovers 61-82% accuracy on the BFCL function-calling benchmark while base generation lands at 2-10%, suggesting pretraining forms the representation and instruction tuning later wires it to the output. Our results cover single-turn, fixed-menu settings; on multi-turn agent loops the same intervention is less stable. The linear signal we identify gives both a practical hook for catching wrong tool calls before they execute and a mechanistic foothold for understanding how language models decide what to do."
+}

versions/v_73j4h42v.json added

+++ b/versions/v_73j4h42v.json
@@ -0,0 +1,18 @@
+{
+ "date": "2026-09-18",
+ "kind": "submitted",
+ "label": "ICLR 2027",
+ "submissions": [
+ {
+ "venue": "ICLR 2027",
+ "status": "under_review",
+ "url": "https://openreview.net/forum?id=Tdo3DjbRLp"
+ }
+ ],
+ "title": "Tool Calling is Linearly Readable and Steerable in Language Models",
+ "url": "https://openreview.net/forum?id=Tdo3DjbRLp",
+ "evidence": [
+ "https://openreview.net/forum?id=Tdo3DjbRLp"
+ ],
+ "abstract": "Language-model agents can take real actions by calling tools, so choosing the wrong tool can cause errors that are difficult to undo. Most evaluations only observe the tool choice after the model generates a call. We read this choice from the model before generation, and we steer it. For each tool, we average the model's hidden states from a few example requests to obtain a tool vector. Comparing a new request with these tool vectors predicts which tool it needs. The difference between two tool vectors gives a steering direction that can move the model toward a chosen tool without retraining. Across eight instruction-tuned models from 4B to 27B parameters, steering changes the generated call to a chosen target tool in 56–78% of held-out tool pairs, depending on the model. We also observe steering on real APIs from $\\tau$-bench and ToolBench, though less reliably. At the final layer, steering could work simply by raising the score of the target tool name. To test this, we compare the steering direction with a direction that only raises that score, layer by layer. In the middle layers, on the three models we examine in depth, the steering direction switches more calls than the score-raising direction. So the tool vectors capture part of the tool choice before the final layer. The same tool vectors also help identify likely tool-selection errors before generation. Calls are more likely to be wrong when a request is similarly close to two tool vectors. Across three models on BFCL, this signal achieves an AUROC of 0.74–0.79. Together, these results suggest that the model's hidden state provides a way to read, steer, and check tool choice before a call is made."
+}

versions/v_tnke8jr7.json added

+++ b/versions/v_tnke8jr7.json
@@ -0,0 +1,18 @@
+{
+ "date": "2026-05-15",
+ "kind": "submitted",
+ "label": "ARR 2026 May",
+ "submissions": [
+ {
+ "venue": "ARR 2026 May",
+ "status": "under_review",
+ "url": "https://openreview.net/forum?id=xVldjQH0vd"
+ }
+ ],
+ "title": "Tool Calling is Linearly Readable and Steerable in Language Models",
+ "url": "https://openreview.net/forum?id=xVldjQH0vd",
+ "evidence": [
+ "https://openreview.net/forum?id=xVldjQH0vd"
+ ],
+ "abstract": "When a tool-calling agent picks the wrong tool, the failure is invisible until execution: the email gets sent, the meeting gets missed. As agents take on consequential actions (running code, moving money, approving transactions), one bad tool call can do real damage, and we currently have no way to look inside the model and catch the mistake before it happens. This paper shows that we can. Inside the model, the choice of tool is carried by a single direction in activation space, one direction per pair of tools. Adding that direction during generation switches which tool the model picks. Across 12 instruction-tuned and 6 base models spanning Gemma 3, Qwen 3, Qwen 2.5, and Llama 3.1 (270M to 27B), this works at 83-100% accuracy on 4B+ instruction-tuned models on a 15-tool synthetic benchmark and at 77-94% on the real-API benchmark tau-bench airline. The JSON arguments that follow automatically adapt to the new tool's schema, so flipping the name is enough. The same per-tool directions also flag likely errors before they happen: queries where the model is unsure between two tools fail 21x more often than queries where it is not (Gemma 3 27B). This is not just topic injection: random vectors at the same magnitude give a 0% switch rate, a probe within a single domain (14 airline tools that all share one topic) still reads which tool the model will call at top-1 61-89% across five 4B-14B models, and the causal effect concentrates along the model's own first-token output direction. Even base models already carry the right tool internally before they can emit it: reading the chosen tool off the model's internal state (cosine readout) recovers 61-82% accuracy on the BFCL function-calling benchmark while base generation lands at 2-10%, suggesting pretraining forms the representation and instruction tuning later wires it to the output. Our results cover single-turn, fixed-menu settings, and on multi-turn agent loops the same intervention is less stable (matched-baseline gain or loss of up to 30 percentage points with no consistent direction). The linear signal we identify gives both a practical hook for catching wrong tool calls before they execute and a mechanistic foothold for understanding how language models decide what to do."
+}