Truth Table Net: Scalable, Compact & Verifiable Neural Networks with a Dual Convolutional Small Boolean Circuit Networks Form

Adrien Benamira, Thomas Peyrin, Trevor Yap, Tristan Guérand, Bryan Hooi, Mikhail Burtsev, Evgeny Burnaev2024 · DOI

Introduction

Autonomous agents powered by Large Language Models (LLMs) face a significant challenge when navigating complex, dynamic environments: the management of long-term memory. While LLMs excel at reasoning, their ability to maintain a consistent world model over extended interactions is often limited by context window constraints and the inefficiencies of unstructured retrieval. This paper introduces AriGraph, a hybrid memory architecture that combines structured semantic knowledge with episodic memory, and Ariadne, an agent that utilizes this framework to achieve state-of-the-art performance in interactive environments.

The Memory Bottleneck in LLM Agents

Current approaches to agent memory typically fall into two categories, both of which possess inherent flaws:

  1. Full History Retention: Feeding the entire interaction log into the context window. This method is computationally expensive, scales poorly, and eventually exceeds token limits.
  2. Unstructured Retrieval (RAG): Using vector search to retrieve relevant past snippets. Standard Retrieval-Augmented Generation (RAG) treats memories as isolated chunks, making it difficult for agents to perform spatial reasoning or track how the state of the world changes over time.

AriGraph addresses these limitations by mimicking human cognitive structures, providing a way to store general facts (semantic memory) while maintaining a record of specific events (episodic memory).

The AriGraph Framework

AriGraph is built upon a dual-layered memory graph designed to serve as a functional world model:

1. Semantic Layer

This layer stores knowledge as triplets (e.g., [Kitchen, contains, Apple]). As the agent explores, it extracts these triplets from observations. Crucially, AriGraph allows for dynamic updates, including the pruning of outdated knowledge. For instance, if an agent moves an item, the graph reflects the change by removing the old location triplet and adding the new one.

2. Episodic Layer

To provide context to the semantic facts, the episodic layer connects triplets to specific observations or "events." This allows the agent to distinguish not just that an object exists, but when and where it was last encountered, reducing the likelihood of hallucinations common in unstructured RAG.

The Ariadne Cognitive Pipeline

The Ariadne agent operates through a four-stage process:

  • Perception: Extracting new triplets from text-based observations.
  • Memory Update: Integrating new information into AriGraph while resolving conflicts with existing data.
  • Two-Step Retrieval: The agent first identifies relevant semantic triplets and then uses those nodes to pull the most pertinent episodic context.
  • Planning & Decision Making: A dedicated Planner module sets sub-goals based on the current graph state, while a Decision Maker (utilizing a ReAct-style prompt) executes the next action.

Experimental Evaluation

The researchers evaluated Ariadne across three distinct domains to test navigation, manipulation, and reasoning:

  • TextWorld Interactive Games: Custom scenarios including Treasure Hunt (spatial navigation), Cleaning (object manipulation), and Cooking (logic). These included "Hardest" variants with up to 36 rooms.
  • NetHack: A complex roguelike dungeon crawler used to evaluate exploration under partial observability.
  • Multi-hop Q&A: Benchmarks such as MuSiQue and HotpotQA were used to assess the graph's utility in static information retrieval.

Key Results and Insights

Robustness to Complexity

While baseline agents (RAG, Summary, and Full History) experienced significant performance degradation as environment complexity increased (e.g., expanding from 12 to 36 rooms), Ariadne’s performance remained robust. In Treasure Hunt and Cooking, Ariadne achieved a normalized score of 1.0, matching or exceeding top human players.

The Power of Structured Forgetting

Ariadne’s ability to explicitly remove outdated triplets proved vital. In the Cleaning task, the agent outperformed competitors because it could accurately track the movement of objects, whereas standard RAG agents often retrieved conflicting information about an item's previous location.

Efficiency and Scalability

AriGraph demonstrated superior efficiency compared to other graph-based methods. In QA tasks, it was found to be 10x cheaper to operate than GraphRAG while maintaining comparable or superior accuracy. On HotpotQA, Ariadne (using GPT-4) achieved an Exact Match (EM) score of 68.0, outperforming specialized models like GraphReader.

Conclusion and Future Work

AriGraph demonstrates that a structured, dual-layered memory is essential for LLM agents to function as effective world models. By combining the strengths of semantic and episodic memory, Ariadne achieves high-level reasoning and spatial awareness without the overhead of full-history processing.

Future research directions include expanding the system to multi-modal environments (converting visual data into triplets), incorporating procedural memory to store learned skills, and developing more sophisticated graph-pruning techniques to prevent "graph bloat" during extremely long-duration missions.

Summary updated

BibTeX
@misc{benamira2024truth,
  author = {Adrien Benamira and Thomas Peyrin and Trevor Yap and Tristan Guérand and Bryan Hooi and Mikhail Burtsev and Evgeny Burnaev},
  title = {{Truth Table Net: Scalable, Compact \& Verifiable Neural Networks with a Dual Convolutional Small Boolean Circuit Networks Form}},
  year = {2024},
  doi = {10.24963/ijcai.2024/2},
}
Figure