mlsanityData to 7 Oct 2026

Language hooks: a modular framework for augmenting LLM reasoning that decouples tool usage from the model and its prompt

arXiv 2412.05967 ↗First posted 8 Dec 2024cs.CL cs.AI cs.LGcited by 2

On the map: LLM reasoning → Reasoning for agents, planning and code

also in 1 more
Abstract (arXiv)

Prompting and fine-tuning have emerged as two competing paradigms for augmenting language models with new capabilities, such as the use of tools. Prompting approaches are quick to set up but rely on providing explicit demonstrations of each tool's usage in the model's prompt, thus coupling tool use to the task at hand and limiting generalisation. Fine-tuning removes the need for task-specific demonstrations of tool usage at runtime; however, this ties new capabilities to a single model, thus making already-heavier setup costs a recurring expense. In this paper, we introduce language hooks, a novel framework for augmenting language models with new capabilities that is decoupled both from the model's task-specific prompt and from the model itself. The language hook algorithm interleaves text generation by the base model with the execution of modular programs that trigger conditionally based on the existing text and the available capabilities. Upon triggering, programs may call external tools, auxiliary language models (e.g. using tool specific prompts), and modify the existing context. We benchmark our method against state-of-the-art baselines, find that it outperforms task-aware approaches, and demonstrate its ability to generalise to novel tasks.

Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reasoning for agents, planning and code, one of 17 directions in LLM reasoning. Builds on 33 of its 49 references that are in the map. First posted on arXiv 8 Dec 2024.

Builds on

33 of 49 references.

Closest ancestors · 1

Same direction, newest first

  1. 2023ART: Automatic multi-step reasoning and tool-use for large language models16 Mar

Other references · 32

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2021Training Verifiers to Solve Math Word Problemscited by 9,743
  3. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  4. 2022Self-Consistency Improves Chain of Thought Reasoning in Language Modelscited by 5,601
  5. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  6. 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
  7. 2022Least-to-Most Prompting Enables Complex Reasoning in Large Language Modelscited by 1,397
  8. 2022Measuring and Narrowing the Compositionality Gap in Language Modelscited by 1,054
  9. 2022Atlas: Few-shot Learning with Retrieval Augmented Language Modelscited by 940
  10. 2022Interleaving Retrieval with Chain-of-Thought Reasoning for Knowledge-Intensive Multi-Step Questionscited by 911
  11. 2023Large Language Models Can Be Easily Distracted by Irrelevant Contextcited by 820
  12. 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
20 more
  1. 2023CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquingcited by 751
  2. 2022PAL: Program-aided Language Modelscited by 635
  3. 2022Decomposed Prompting: A Modular Approach for Solving Complex Taskscited by 554
  4. 2023Active Retrieval Augmented Generationcited by 506
  5. 2023Faith and Fate: Limits of Transformers on Compositionalitycited by 496
  6. 2023Chameleon: Plug-and-Play Compositional Reasoning with Large Language Modelscited by 352
  7. 2022Demonstrate-Search-Predict: Composing retrieval and language models for knowledge-intensive NLPcited by 316
  8. 2023Specializing Smaller Language Models towards Multi-Step Reasoningcited by 249
  9. 2022RealTime QA: What's the Answer Right Now?cited by 239
  10. 2023ToolkenGPT: Augmenting Frozen Language Models with Massive Tools via Tool Embeddingscited by 238
  11. 2022TALM: Tool Augmented Language Modelscited by 197
  12. 2021Investigating the Limitations of Transformers with Simple Arithmetic Taskscited by 136
  13. 2022Internet-augmented language models through few-shot prompting for open-domain question answeringcited by 131
  14. 2023Solving Math Word Problems by Combining Language Models With Symbolic Solverscited by 124
  15. 2023Self-contradictory Hallucinations of Large Language Models: Evaluation, Detection and Mitigationcited by 123
  16. 2023Do Language Models Know When They're Hallucinating References?cited by 115
  17. 2023Search-in-the-Chain: Interactively Enhancing Large Language Models with Search for Knowledge-intensive Taskscited by 73
  18. 2022Limitations of Language Models in Arithmetic and Symbolic Inductioncited by 71
  19. 2023Getting MoRE out of Mixture of Language Model Reasoning Expertscited by 44
  20. 2023ChatCoT: Tool-Augmented Chain-of-Thought Reasoning on Chat-based Large Language Modelscited by 43

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2024LLM With Tools: A Survey
  2. 2024Tool Learning in the Wild: Empowering Language Models as Automatic Tool Agents
  3. 2025Understanding Tool-Integrated Reasoning
  4. 2024LLM Reasoners: New Evaluation, Library, and Analysis of Step-by-Step Reasoning with Large Language Models
  5. 2026Beyond Prompt or Skill? Attribution-Guided Optimization of Modular LLM Programs
  6. 2024ToolEyes: Fine-Grained Evaluation for Tool Learning Capabilities of Large Language Models in Real-world Scenarios
  7. 2026Not the Example, but the Process: How Self-Generated Examples Enhance LLM Reasoning
  8. 2026JTPRO: A Joint Tool-Prompt Reflective Optimization Framework for Language Agents