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

Damien de Mijolla, Wen Yang, Philippa Duckett, Christopher Frye, Mark Worrall
12/8/2024
cs.CLcs.AIcs.LG

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{mijolla2024language,
  title  = {Language hooks: a modular framework for augmenting LLM reasoning that decouples tool usage from the model and its prompt},
  author = {Damien de Mijolla and Wen Yang and Philippa Duckett and Christopher Frye and Mark Worrall},
  year   = {2024},
  eprint = {2412.05967},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.05967v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.05967.svg)](https://codeofpaper.com/paper/2412.05967)

Discussion