|Jul 12
FIFA World Cup 2026
Watch Live →
Technology

In-Process Retrieval Revolutionizes Memory for Language Agents in AI Models

A study reveals that in-process retrieval can enhance memory for language agents, improving recall significantly.

By Feed and Figures Editorial Team2 min readSource: arXiv AI
Graph illustrating the performance improvement in language agents using in-process memory retrieval

On October 10, 2023, researchers presented a groundbreaking study on in-process retrieval as extended working memory for language agents. This innovative approach challenges traditional memory storage methods by integrating memory directly into the agent's operational loop, significantly enhancing performance.

Redefining Memory in Language Agents

Language agents typically operate within a cycle of observing, reasoning, and acting. Traditionally, memory retrieval occurs outside this loop, which can lead to delays. The new study proposes an in-process memory store that allows agents to read and write memory at each step. This method reduces latency drastically, with in-process retrieval being approximately 100 microseconds, compared to the 110 milliseconds typical of cloud-based solutions.

The researchers argue that memory latency is determined by the location of the memory store rather than the retrieval pattern itself. By ensuring that the memory is readily available, the concept aligns with the extended-mind thesis, suggesting that fast and constant access to memory transforms it into extended working memory.

Significant Performance Improvements

The research demonstrates notable improvements in recall rates across four different models of GPT-5. With in-loop memory, recall jumped from 0 out of 5 to between 3.6 and 4.8 out of 5. This enhancement is attributed to the reduction of redundant actions as latency decreases. The study recorded that at the in-process speed, the redundant actions were 0.0 of 12, compared to 7.2 of 12 at the longer cloud response times.

Furthermore, the study established that the dominant cost per step in processing is embedding, which can take 200-400 milliseconds over the network. By combining the in-process memory with a local embedder, the total operation time can be reduced to approximately 40 microseconds.

Implications for Future AI Development

The findings from this study have significant implications for the development of AI language models. By incorporating in-process retrieval, developers can create more efficient systems that respond faster and with greater accuracy. The ability for language agents to utilize extended working memory could lead to advancements in various applications, from customer service bots to complex decision-making systems.

As the research indicates, every memory write was retained successfully, with 244 out of 244 writes kept intact. The only instances of missed information were linked to the agent's read policy rather than the memory store itself, highlighting the reliability of this new approach.

  • In-process retrieval speeds: ~100 microseconds
  • Cloud retrieval speeds: ~110 milliseconds
  • Recall improvement: from 0/5 to 3.6-4.8/5
  • Embedding costs: 200-400 milliseconds over the network
  • Combined operation speed: ~40 microseconds

🤖 This article was rewritten by Feed and Figures' editorial AI from a report originally published by arXiv AI. Facts and quotes are preserved from the original; the rewrite focuses on clarity and structure. For the unedited original, see the source link below.

#language agents
#AI research
#GPT-5
#memory retrieval
#machine learning

Related stories