EngramState: Loadable Tool Priors for Efficient Function Calling
Seulkee Lee, Hyun-rae Jo, Dongkun Shin
NeurIPS page · OpenReview · Open on the map
Category: LLM Reasoning, Memory & RAG › Reasoning Trace Memory Systems · Type: new method · Keywords: function calling, on-device LLM, state priors, efficient inference, tool retrieval, RWKV
Areas: LLM Reasoning › Reasoning Strategies › Agent Memory and Reasoning; Memory › Agent Memory Systems › Memory Augmentation; AI Agents › Agent Capabilities › LLM Agent Memory
Summary
EngramState introduces reusable recurrent state priors that compile tool specifications offline and load them at runtime, drastically reducing prompt tokens and latency for on-device function calling.
Explained to a 5-year-old
EngramState helps smart computers remember how to use tools without writing them down each time. It stores the tool information in a special memory that can be quickly loaded. This makes the computer answer faster and uses less energy. It helps small devices like phones do more things. It makes the computer smarter and quicker.
Explained to a 5-year-old, longer
EngramState is a new idea that lets computers keep tool information in a special kind of memory. Instead of copying the tool details every time, it saves them once and loads them later. This saved memory is called a state prior, and it works like a quick shortcut. When the computer needs to use a tool, it just reads from this shortcut instead of writing everything out. Because it reads instead of writes, the computer can answer questions faster. It also uses less power, which is good for phones and small devices. The shortcut is built carefully so it remembers only the most important parts of the tool. It also compresses the information so it takes up very little space. A small helper called a retriever finds the right shortcut quickly. The computer also gets feedback to make sure it picks the best shortcut. This whole system makes the computer faster and more efficient, letting it do more on small devices.
For a technical reader
EngramState stores tool specifications as reusable recurrent states that are built offline and loaded at runtime, eliminating the need to re-encode text prompts each inference. It uses channel-wise compression and a lightweight retriever to keep storage under 9 MiB while maintaining retrieval quality. Feedback-driven routing ensures the correct state is selected, reducing prompt tokens from ~1k to ~22 and cutting latency on mobile hardware. The result is a more efficient on-device function-calling pipeline with lower memory and power footprints.
Problem
Large language model agents that perform function calling typically reinsert tool specifications as text at inference time, causing high latency and memory overhead, especially on devices with limited resources.
Method
The approach compiles tool specifications offline into reusable recurrent state priors and directly loads them at runtime for query-only inference, employing retention-aware state construction, channel-wise compression, a lightweight retriever, and feedback-driven routing.
Results
The approach reduces prompt tokens from 985 to 22 (97.8% reduction) and cuts time-to-first-token on a Galaxy S25 Ultra, while preserving or improving function-calling accuracy; the state retriever attains competitive quality using only 8.24 MiB of storage.
Contributions
The paper introduces reusable recurrent state priors for tool specifications, a retention-aware construction and channel-wise compression scheme, a lightweight state retriever, and feedback-driven routing, enabling efficient on-device function calling. It also demonstrates substantial token and latency reductions on the DroidCall benchmark.
Practical relevance
The approach enables scalable, low-latency function calling on resource-constrained devices, facilitating more responsive on-device AI assistants.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction