LLMs Track State Over 196 Tool Calls for MD5
Key takeaways
- LLMs can successfully track exact intermediate state across hundreds of dependent tool calls for long-horizon tasks.
- Keeping the model's own reasoning in its context is critical for maintaining state over long sequences.
- Voting mechanisms can effectively correct arithmetic and logical slips in sequential LLM operations.
- Mixture-of-experts models show promise for tasks requiring high precision and extended state retention.
Who benefits
Summary
This paper investigates large language models' ability to maintain exact intermediate state across a deep sequence of dependent tool calls by having them compute an MD5 cryptographic hash. It demonstrates that a mixture-of-experts model can successfully carry state over 196 calls, highlighting the importance of keeping reasoning in context and using voting for arithmetic slips.
Why it matters
For developers building AI agents that perform multi-step, complex tasks, understanding how LLMs manage and propagate state is crucial. This research provides insights into improving the reliability of long-horizon AI workflows, especially where precision and sequential dependency are critical.
How to implement this in your domain
- 1Design agentic workflows to explicitly maintain and pass intermediate state within the LLM's context for long-horizon tasks.
- 2Implement mechanisms for self-correction or voting among multiple LLM calls to mitigate arithmetic or logical slips in sequential operations.
- 3Break down complex tasks into smaller, dependent tool calls, ensuring clear state transitions between steps.
- 4Evaluate your LLM agents on benchmarks that specifically test long-horizon state tracking, similar to the MD5 computation.
- 5Consider using mixture-of-experts models for tasks requiring high precision and extended state retention.
Original post by Dheeraj Mohandas Pai, Lu Xian
"arXiv:2609.00012v1 Announce Type: new Abstract: Long-horizon tasks remain uncommon in large language model (LLM) evaluation, and for a reason: when each step depends on the last, per-step accuracy that looks excellent in isolation decays catastrophically, as errors cascade and th…"
View on XOriginally posted by Dheeraj Mohandas Pai, Lu Xian on X · view source
Want to go deeper?
Turn these trends into skills with Learnijoy's hands-on AI & tech courses.
Explore coursesMore in AI Engineering & DevTools
Zapier vs. Tray: Enterprise Automation Platform Comparison for 2026
This post compares Zapier and Tray.io, evaluating which platform is better suited for enterprise automation needs by balancing power and ease of use. It argues that the best tools scale for complex requirements while remaining intuitive for all users.
Subspace Levenberg-Marquardt Algorithms Boost Neural Network Training
This research evaluates subspace Levenberg-Marquardt (LM) algorithms, such as KSLM and HSLM, for training neural networks on regression and classification tasks. These methods address the high computational and memory costs of classical LM, offering more efficient second-order optimization compared to first-order methods like SGD and Adam.
Neural Networks Show Varied Conceptual Separation Internally
A study examined "conceptual separation" in CNNs and LLMs, analyzing how internal activations represent concepts. It found that CNNs form coherent representations for familiar concepts, while LLMs show clear separation for distinct domains but collapse distinctions for ambiguous topics.