← Latest papers
🤖 AI

Unlocking the Working Memory of Large Language Models for Latent Reasoning

The paper introduces Reasoning in Memory (RiM), a compute-efficient latent reasoning method that replaces autoregressive thought generation with fixed memory blocks, enabling large language models to utilize working memory for internal reasoning without externalizing intermediate steps.

Original authors: Lukas Aichberger, Sepp Hochreiter

Published 2026-05-29
📖 5 min read🧠 Deep dive

Original authors: Lukas Aichberger, Sepp Hochreiter

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

The Core Problem: "Thinking Out Loud" is Slow

Imagine you are trying to solve a complex math problem. Currently, most AI models (Large Language Models) are forced to "think out loud." To solve a problem, they must write down every single step of their thought process in full sentences before they can give you the final answer.

  • The Analogy: It's like a student taking a test who is required to write a full essay explaining every single calculation they make before they can write down the final number.
  • The Issue: This is inefficient. The AI spends a lot of time and computing power generating words (grammar, punctuation, connecting phrases) just to get to the logic. It's like driving a car where you have to stop at every red light to write a poem about the color red before you can move again.

The Human Solution: The "Internal Scratchpad"

Humans don't usually do this. When we solve hard problems, we use working memory. We hold numbers and logic in our heads, manipulate them internally, and only speak the final result. We don't need to say every step out loud to do the math.

The paper argues that AI should be able to do the same thing: have an internal workspace where it can do the heavy lifting without "speaking" the thoughts.

The New Method: Reasoning in Memory (RiM)

The authors introduce a method called Reasoning in Memory (RiM). Instead of making the AI generate text for its thoughts, they give it a set of fixed "memory blocks."

  • The Analogy: Imagine the AI is given a set of empty, magical sticky notes (the memory blocks) placed right next to the question.
    • Old Way: The AI writes a long story on a piece of paper to solve the problem.
    • RiM Way: The AI writes its thoughts directly onto the sticky notes. These notes are special; they aren't words you read, but they hold the meaning of the thoughts.
    • The Magic: Because these notes are pre-placed and fixed, the AI can look at all of them and process the information all at once (in a single "forward pass"), rather than writing them one by one.

How They Taught the AI to Use It (The Two-Stage Training)

You can't just give an AI a blank notebook and expect it to know how to use it. The authors used a two-step training curriculum, like teaching a child to ride a bike with training wheels, then taking them off.

Stage 1: The "Training Wheels" Phase

  • Goal: Teach the AI that the memory blocks are for thinking.
  • How it works: The AI is shown a question and the memory blocks. After every block, the teacher asks, "What is the next step of the reasoning?" The AI must use the information in the memory blocks to predict the next written step.
  • The Result: The AI learns to store the "thoughts" inside the memory blocks because it knows it will be tested on them immediately. It learns to turn the blocks into a working workspace.

Stage 2: The "Real World" Phase

  • Goal: Teach the AI to solve the whole problem using only the blocks.
  • How it works: The teacher stops asking for the intermediate steps. Now, after every memory block, the AI is asked, "What is the final answer?"
  • The Result: The AI learns to refine its answer as it fills up more memory blocks. It stops "thinking out loud" and starts "thinking in memory," using the blocks to get closer to the correct answer with every step.

The Results: Faster and Smarter

The paper tested this on math problems (GSM8K and GSM-Hard) using different sizes of AI models.

  1. Speed: Because the AI doesn't have to generate words for its thoughts, it is much faster. It processes the memory blocks in one go. The paper notes that RiM is about 7 times faster than the previous best "silent thinking" methods and 27 times faster than methods that write out full reasoning chains.
  2. Accuracy: Despite being faster, the AI got better or equal scores compared to methods that write out their thoughts. It proved that the AI successfully learned to use the memory blocks as a real workspace.
  3. Efficiency: It uses less computing power because it skips the "typing" part of thinking.

Summary

The paper introduces a way to make AI "think silently" by giving it fixed memory blocks instead of forcing it to write out its thoughts. By training the AI in two stages (first to use the blocks for steps, then to use them for the final answer), they created a system that is as smart as current models but significantly faster and more efficient, mimicking how humans use working memory to solve problems without needing to speak every thought aloud.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →