# The Butterfly Effect in Reasoning: Branch-Structured Distributional Memory for Stochastic Agents

*Ishan Jindal, Vivek Dhamale, Mahesh Chandran*

[NeurIPS page](https://neurips.cc/virtual/2026/poster/154844) · [OpenReview](https://openreview.net/forum?id=AUA2x6g9qo) · [Open on the map](../papers.html#p154844)

Category: [LLM Reasoning, Memory & RAG](../pcat/19.md) › [Agent Memory Management](../pgroup/67.md) · Type: new method · Keywords: branch-structured memory, reasoning trajectories, stochastic decoding, coverage, mathematical reasoning

Areas: [LLM Reasoning](../areas/reasoning.md) › Reasoning Strategies › Memory for Reasoning Agents; [Memory](../areas/memory.md) › Agent Memory Systems › Memory-Augmented Agents; [AI Agents](../areas/agents.md) › Agent Capabilities › Autonomous Agent Memory

## Summary
BranchDIME introduces a branch-structured distributional memory that captures multiple reasoning trajectories to improve stochastic agents' performance across reasoning benchmarks.

## Explained to a 5-year-old
Imagine a robot that solves math problems by thinking step by step. Usually it only remembers one way it solved a problem before. But sometimes there are many different ways to solve the same problem. This new idea helps the robot remember many different ways at the same time. By grouping similar ideas, it can learn good tricks and avoid bad ones. This makes it better at solving puzzles.

## Explained to a 5-year-old, longer
Imagine a robot that solves math problems by thinking step by step. Usually it only remembers one way it solved a problem before. But sometimes there are many different ways to solve the same problem. This new idea helps the robot remember many different ways at the same time. It looks at short pieces of thinking and groups similar pieces together. From each group, it picks a few examples to remember. These memories include good strategies, things that didn't work, and rules that compare good and bad. By having many memories, the robot can choose the best strategy for a new problem. It also learns what to avoid. This makes the robot more accurate and helps it solve harder problems. The robot can even use what it learned on one type of problem to help with another type. Overall, remembering many thinking paths makes the robot smarter and more flexible.

## For a technical reader
The paper addresses the brittleness of memory-augmented reasoning agents that rely on a single sampled reasoning trajectory. It proposes a framework that constructs memory from collections of trajectories organized by branching prefixes, capturing diverse decomposition strategies and failure modes. The method samples short prefixes, clusters them into branches, expands representative prefixes into full trajectories, and distills reusable memories containing positive strategies, anti-patterns, and contrastive rules. This approach improves coverage of possible reasoning paths and yields higher downstream accuracy across multiple benchmarks while maintaining comparable inference latency. The framework also demonstrates transferability across tasks and models, making it a practical upgrade for agents that need robust reasoning under stochastic decoding.

## Problem
Memory-augmented reasoning agents currently store only a single realized reasoning trajectory, which is fragile under stochastic decoding because different plausible reasoning paths can be missed. This limits the agent's ability to capture diverse strategies and failure modes.

## Method
The approach samples short reasoning prefixes, clusters them into branches, expands representative prefixes into full trajectories, and distills the resulting set into reusable memories that encode positive strategies, anti-patterns, and contrastive rules. This branch-structured distributional memory captures a diverse set of reasoning paths rather than a single trajectory.

## Results
The approach achieved relative gains of 8.7% over single-trajectory memory on GPQA-DIAMOND and 2.2% on MATH500, covered all discovered branches versus 20.0% for consensus selection and 64.9% for random selection, and transferred across tasks to improve up to 15.4% on AIME25 and OlymMATH.

## Contributions
The paper proposes a shift from storing single trajectories to storing branch-structured trajectory distributions, providing a framework to capture diverse reasoning strategies, anti-patterns, and contrastive rules, and demonstrates superior performance and coverage across multiple reasoning benchmarks.

## Research questions this paper is counted under

- [How can agents maintain robust, diverse, and efficient reasoning over long-horizon tasks while avoiding hallucinations and memory inefficiencies?](../q/479.md)

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](../feedback/?on=p/154844)
