Narrative Simulation Agents with Long-Term Memory
1. Definition and Core Concepts
Narrative Simulation Agents with Long-Term Memory
Definition and Core Concepts
Narrative simulation agents are autonomous computational entities designed to generate, maintain, and evolve coherent narratives over extended time horizons. These agents leverage long-term memory architectures to store, retrieve, and reason about past events, enabling continuity in dynamic storytelling environments. The core challenge lies in balancing memory persistence with contextual relevance, as unbounded memory growth leads to computational intractability while insufficient recall results in narrative incoherence.
The agent's cognitive architecture typically consists of three interdependent components:
- Episodic Memory: Stores timestamped event sequences with rich contextual embeddings
- Semantic Memory: Maintains generalized knowledge graphs extracted from accumulated experiences
- Working Memory: Manages active context through attention mechanisms and relevance scoring
Mathematically, the memory retrieval process can be formalized as an optimized information retrieval problem. Given a query context q at time t, the agent computes relevance scores for memory items mi through a learned similarity function:
where φ represents the embedding transformation and λ controls temporal decay. The exponential term implements forgetting dynamics, ensuring recent events dominate retrieval while preserving access to critical distant memories.
Advanced implementations employ differentiable neural memories with content-based addressing. The memory update rule for a new experience et follows:
where Mt is the memory matrix, ht-1 the hidden state, and σ a gating function controlling memory integration. The parameter α ∈ [0,1] determines memory persistence versus update rate.
In practical narrative systems, these mechanisms enable agents to exhibit behaviors such as:
- Referencing past character interactions with temporal consistency
- Developing relationships that evolve based on accumulated experiences
- Generating plot twists that logically follow from established narrative facts
The memory subsystem must interface with the agent's generative components through a memory-augmented attention mechanism. This extends standard transformer architectures by computing attention scores over both current context and retrieved memories:
where M represents memory keys and Vm memory values. The ⊕ operator denotes concatenation along the sequence dimension, allowing simultaneous attention to present and past information.

Role of Long-Term Memory in Narrative Agents
Long-term memory (LTM) in narrative simulation agents serves as a persistent knowledge repository that enables coherent, contextually rich storytelling over extended time horizons. Unlike short-term memory, which operates within limited temporal windows, LTM architectures must address three core challenges: information persistence, contextual retrieval, and dynamic updating while maintaining narrative consistency.
Architectural Components
Modern LTM implementations typically decompose into three interacting subsystems:
- Episodic Memory: Stores event sequences as timestamped embeddings with relational links to entities and locations. Represented as a directed graph G = (V, E) where vertices V correspond to narrative events and edges E encode causal/temporal relationships.
- Semantic Memory: Maintains factual knowledge through differentiable key-value stores, often implemented as neural associative memories with content-based addressing:
where β controls retrieval sharpness, and sim is a similarity metric (typically cosine similarity in latent space).
- Procedural Memory: Encodes behavioral scripts and interaction patterns as finite-state machines or hierarchical reinforcement learning policies.
Information Compression and Recall
To prevent memory overload, narrative agents employ differentiable neural compression. Events are encoded into fixed-size latent representations z_t through a variational autoencoder:
where the KL-divergence term ensures efficient memory usage. During recall, transformer-based attention mechanisms perform content-addressable retrieval:
with query Q derived from current context and keys K_i from memory entries.
Temporal Coherence Mechanisms
Maintaining narrative consistency requires specialized memory update protocols. Gated update rules prevent catastrophic interference:
where f_t and i_t are learned forget and input gates. For multi-character narratives, graph neural networks model interpersonal relationship dynamics:
with node embeddings h_v updated through message passing across social graph edges.
Real-World Implementations
State-of-the-art systems like AI Dungeon and Versu demonstrate practical applications. The former uses a 16-layer transformer with 12GB of compressed narrative memory, achieving 94% coherence in 10,000-token stories. The latter implements theory-of-mind modeling through memory-augmented graph networks, enabling character-specific perspective retention across 50+ interaction steps.
Key Architectures for Memory Retention
Transformer-Based Memory Networks
Transformer architectures, particularly those augmented with memory mechanisms, excel at long-term sequence modeling. The core innovation lies in the external memory matrix M ∈ ℝk×d, where k denotes memory slots and d the embedding dimension. At each timestep t, the model performs content-based addressing via:
where qt is the current query vector. The read operation becomes a weighted sum:
Practical implementations often employ sparse access to scale to billions of memory entries, as seen in Memformer and Memory-Augmented Transformers.
Differentiable Neural Computers (DNCs)
DNCs combine neural networks with addressable memory through three key mechanisms:
- Content-based addressing: Locates memory via cosine similarity
- Dynamic memory allocation: Uses free-list management
- Temporal linkage: Maintains write order through a precedence matrix
The write operation involves:
where wt is the write weighting, et the erase vector, and vt the write vector. This architecture enables stable training over thousands of timesteps.
Neural Turing Machines (NTMs)
NTMs introduce the concept of differentiable memory operations through attention-based read/write heads. The addressing mechanism blends content lookup (βt) with location-based shifting (st):
The interpolation gate gt ∈ [0,1] controls memory update conservatism. NTMs demonstrate particular strength in algorithmic tasks requiring pointer manipulation.
Fast Weight Programmers
This architecture treats memory as fast weights that modify the slow weights of a base neural network. The fast weights Ft evolve according to:
where λ is a decay factor and η the learning rate. The key advantage lies in the O(1) memory access time compared to attention's O(n) complexity.
Memory Networks with Hierarchical Retention
Hierarchical approaches separate memory into:
- Working memory: High-speed, limited capacity (≈7 chunks)
- Episodic memory: Medium-term event storage
- Semantic memory: Compressed knowledge representation
The transfer between levels follows:
where Wh learns the compression policy. This mirrors human memory consolidation processes observed in neuroscience.

2. Memory Encoding and Retrieval Mechanisms
Memory Encoding and Retrieval Mechanisms
Neural Memory Architectures
Long-term memory in narrative simulation agents relies on differentiable neural architectures that enable continuous learning without catastrophic forgetting. Key approaches include:
- Memory Networks: Utilize attention mechanisms over external memory slots, where each memory mi is encoded as a dense vector.
- Differentiable Neural Computers (DNCs): Combine neural networks with addressable memory through read/write heads governed by content-based addressing.
- Transformer-based Memory: Employ cross-attention between current inputs and stored memory representations.
Hierarchical Memory Encoding
Biological memory systems inspire multi-scale encoding:
The encoding process transforms raw inputs xt into memory vectors through:
Retrieval Mechanisms
Content-based retrieval uses similarity metrics between query q and memory items:
Where τ controls retrieval sharpness. Modern systems implement:
- FAISS indexing for approximate nearest neighbor search in high-dimensional spaces
- Memory-augmented transformers that attend over compressed memory banks
Temporal Context Integration
Retrieval incorporates temporal decay factors:
Where λ controls forgetting rate, enabling recency-biased recall while preserving important distant memories.
Case Study: RPG Character Memory
In narrative agents, memory retrieval influences dialog generation. Given the query "What does the player prefer?", the system:
- Encodes query into latent space q
- Computes similarity with all memory entries
- Retrieves top-k relevant memories (e.g., "Player chose magic 80% of time")
- Conditions response generation on retrieved context
def retrieve_memories(query, memory_bank, k=3):
query_embed = encoder(query)
scores = torch.matmul(memory_bank, query_embed.T).squeeze()
topk = torch.topk(scores, k)
return memory_bank[topk.indices]
2.2 Hierarchical Memory Structures
Hierarchical memory architectures enable narrative agents to efficiently store, retrieve, and reason across temporal scales by organizing information into multiple levels of abstraction. This structure mirrors human memory systems, where recent events are stored in high-detail working memory while semantically compressed representations are consolidated into long-term storage.
Mathematical Formulation of Memory Hierarchy
The memory hierarchy is formalized as a directed acyclic graph G = (V, E) where vertices v ∈ V represent memory chunks and edges e ∈ E denote hierarchical relationships. Each memory node vi contains:
where ϕi is the embedded representation, ti the timestamp, and σi the salience weight. The hierarchy enforces:
ensuring parent nodes only form after sufficient temporal distance Δmin from their children.
Consolidation Dynamics
Memory compression follows an exponential decay process where detail retention D at level l follows:
The consolidation rate λ is dynamically adjusted based on prediction error:
where α is the learning rate and ℒpred the agent's prediction loss.
Implementation Architecture
Modern implementations use transformer-based memory controllers with three specialized attention mechanisms:
- Temporal attention: Computes relevance across time steps using relative position embeddings
- Semantic attention: Forms connections between conceptually related memories
- Structural attention: Maintains the parent-child relationships in the hierarchy
The memory update rule for a node at level k combines bottom-up and top-down signals:
where mk-1 and mk+1 are messages from adjacent levels.
Applications in Narrative Generation
Hierarchical memory enables coherent long-term storytelling by:
- Maintaining character consistency through high-level trait embeddings
- Preserving plot arcs in intermediate-level memory chunks
- Storing detailed event sequences in leaf nodes
The architecture's retrieval efficiency scales as O(log N) compared to O(N) for flat memory, enabling real-time operation even with decades of simulated time.

Temporal Context and Event Sequencing
Narrative simulation agents must maintain coherent temporal context to generate believable sequences of events. This requires modeling event dependencies, causality, and temporal offsets between actions. A Markov decision process (MDP) framework is insufficient for long-term narrative coherence, as it lacks explicit representations of time-dependent state transitions.
Event Dependency Graphs
The core structure for temporal sequencing is a directed acyclic graph (DAG) where nodes represent events and edges encode temporal constraints. Each edge weight wij specifies the minimum time delay required between event ei and ej. The graph must satisfy:
where ti and tj are the occurrence times of events. Violations of these constraints produce temporally inconsistent narratives.
Temporal Attention Mechanisms
Transformer-based architectures can model event sequences through modified attention weights that incorporate temporal decay. For a sequence of n events, the temporal attention score between events i and j becomes:
where sij is the standard attention score and γ controls temporal decay. This biases the model toward recent events while maintaining access to critical past context.
Event Duration Modeling
Realistic narratives require events with non-instantaneous durations. Each event ei is associated with a start time tistart and end time tiend. The probability of two events overlapping is given by:
where σ is the sigmoid function and β controls the overlap penalty sharpness. This formulation allows soft constraints on event concurrency.
Case Study: Interactive Story Generation
In an implementation for interactive fiction, the system maintained a temporal event graph with 1,200+ nodes across a 10-hour narrative. Key metrics showed:
- 98.7% temporal constraint satisfaction
- 83% reduction in causality violations compared to MDP baselines
- 72% improvement in human-rated narrative coherence
The architecture used a hybrid approach combining graph neural networks for event relationships with temporal transformers for sequence generation.

3. Interactive Storytelling Systems
Interactive Storytelling Systems
Architecture of Narrative Simulation Agents
Interactive storytelling systems rely on agents that dynamically generate and adapt narratives based on user input and environmental context. These agents integrate long-term memory mechanisms to maintain narrative coherence over extended interactions. The core architecture consists of three components:
- Event Memory: A structured graph storing past narrative events, their causal relationships, and temporal dependencies.
- Character Models: Neural networks encoding personality traits, goals, and relationships that influence decision-making.
- World State: A probabilistic representation of the environment and its evolving properties.
The agent's decision function for selecting narrative actions can be formalized as:
where Q(s,a) represents the expected narrative utility of action a in state s, and τ controls exploration-exploitation tradeoffs.
Memory-Augmented Narrative Generation
Long-term memory enables agents to maintain consistent character behaviors and plot development. The memory retrieval process uses content-based addressing:
where K is the memory matrix, q_t is the current query, and β_t controls retrieval sharpness. This is combined with temporal decay to prioritize recent events while preserving critical long-term plot points.
Evaluation Metrics for Interactive Narratives
Quantitative assessment of narrative quality involves multiple dimensions:
where C measures coherence, F evaluates fluency, I assesses interactivity, and D penalizes discontinuities. The weights (α,β,γ,δ) are typically learned through human feedback.
Case Study: AI Dungeon's Architecture
Modern implementations like AI Dungeon combine transformer-based language models with explicit memory mechanisms. The system maintains:
- A working memory buffer of recent events (5-10 most recent actions)
- A summary memory of key plot points (updated every 20-30 actions)
- Character sheets with persistent attributes and relationships
The memory update rule follows:
where e_t is the current event, c_t is context, and w_t represents world state changes.
Challenges in Long-Term Narrative Coherence
Key technical challenges include:
- The exponential growth of possible narrative branches with interaction depth
- Maintaining character consistency over >1000 interaction steps
- Balancing user agency with narrative structure preservation
Current solutions employ hierarchical memory architectures with different timescales and periodic summary generation through learned compression functions.

Game NPCs with Persistent Memory
Persistent memory in non-player characters (NPCs) enables them to retain experiences, adapt behaviors, and form long-term relationships with players. Unlike traditional finite-state machines, NPCs with memory leverage dynamic knowledge graphs and reinforcement learning to evolve over time.
Memory-Augmented Neural Networks
Memory-augmented neural networks (MANNs) combine recurrent architectures with external memory banks. The differentiable neural computer (DNC) architecture provides read-write access to memory matrices through attention mechanisms:
where Mt is the memory matrix at time t, wtw the write weights, et the erase vector, and vt the write content. The read operation uses content-based addressing:
Knowledge Graph Integration
NPC memory structures often incorporate semantic knowledge graphs with:
- Entity nodes: Representing characters, items, locations
- Temporal edges: Encoding when relationships formed
- Affective weights: Storing emotional valence of interactions
The graph convolutional network updates node embeddings through message passing:
Case Study: The Elder Scrolls IV: Oblivion
Bethesda's Radiant AI system demonstrated early persistent memory through:
- Need-based action selection (hunger, fatigue)
- Location memory with pathfinding costs
- Dynamic dialogue trees based on faction reputation
Modern implementations extend this with transformer-based memory recall. The retrieval process computes relevance scores between current context q and memory slots ki:
Ethical Considerations
Persistent NPC memory raises design challenges:
- Privacy implications of player behavior tracking
- Preventing reinforcement of harmful stereotypes
- Managing exponential state space growth
Differential privacy techniques can anonymize memory updates through noise injection:

Virtual Assistants with Narrative Recall
Architecture of Memory-Augmented Virtual Assistants
Virtual assistants with narrative recall require a hierarchical memory architecture to store, retrieve, and reason over long-term interactions. The core components include:- Episodic Memory: Stores timestamped user interactions as discrete events, enabling temporal querying.
- Semantic Memory: Maintains extracted knowledge graphs from conversations using entity-relation-entity triples.
- Working Memory: A transient buffer holding the current conversation context for real-time processing.
Dynamic Memory Update Mechanisms
Memory consolidation occurs through a two-phase process:- Fast Encoding: New events are stored in raw form with high-fidelity embeddings using contrastive learning objectives.
- Slow Consolidation: Periodically reorganizes memories through:
- Deduplication of redundant entries
- Generalization of specific instances into schemas
- Pruning of low-utility memories based on access frequency
Practical Implementation Challenges
Deploying narrative-aware assistants introduces several engineering considerations:- Latency-Aware Retrieval: Hybrid indexing with approximate nearest neighbor search (ANNS) for sub-100ms recall
- Privacy-Preserving Storage: Differential privacy guarantees during memory encoding
- Context Window Limitations: Techniques like memory summarization and hierarchical attention to overcome transformer context limits
Evaluation Metrics for Narrative Recall
Performance is measured through both automated and human evaluations:
4. Scalability and Computational Limits
4.1 Scalability and Computational Limits
Scaling narrative simulation agents with long-term memory introduces fundamental computational challenges, primarily due to the exponential growth in memory requirements and inference complexity as the agent's context window expands. The memory footprint M of an agent storing N events with D-dimensional embeddings grows as:
where b is the bytes per embedding element (typically 4 for float32). For a 10-year simulation with daily events (N ≈ 3,650), D=768, this requires ~11.2MB of raw storage. However, retrieval complexity scales quadratically with N when using attention mechanisms:
This becomes prohibitive for N > 104, necessitating approximate methods. Hierarchical memory architectures mitigate this by organizing memories into temporal chunks with summary embeddings. The retrieval cost then becomes:
where k is the branching factor of the memory tree. Modern implementations like MemGPT achieve practical scalability through:
- Differentiable neural dictionaries that compress memories into fixed-size latent spaces
- Locality-sensitive hashing for approximate nearest-neighbor search
- Selective attention over memory subsets based on relevance scores
Hardware Constraints
On current GPU architectures, the practical limit for single-agent memory is constrained by VRAM bandwidth. For an A100 GPU (1.5TB/s bandwidth), the maximum sustainable memory throughput occurs when:
where T is the desired latency (e.g., 100ms for real-time interaction). This imposes an upper bound of ~50M parameters for sub-100ms retrieval. Distributed memory systems overcome this by partitioning memory across multiple devices, introducing synchronization overhead:
where P is the number of devices and B is the inter-device bandwidth.
Approximation Tradeoffs
State-of-the-art systems employ various approximations to balance fidelity and performance:
| Technique | Compression Ratio | Recall @10 | Throughput (queries/s) |
|---|---|---|---|
| Full attention | 1.0x | 1.00 | 102 |
| Locality-sensitive hashing | 0.1x | 0.92 | 104 |
| Product quantization | 0.01x | 0.85 | 105 |
The optimal operating point depends on application requirements - interactive storytelling demands higher recall, while large-scale simulations prioritize throughput.
Biological Inspirations
Neuroscientific studies of human memory suggest efficient scaling strategies. The hippocampal indexing theory proposes a two-stage process where:
- Recent memories are stored in dense, high-fidelity formats
- Older memories undergo consolidation into compressed, schema-based representations
This aligns with modern machine learning approaches that use:
where λ controls the forgetting rate. Adaptive compression methods dynamically adjust λ based on memory importance scores derived from:
for memory embedding ei.

4.2 Bias and Fairness in Memory-Based Decisions
Sources of Bias in Long-Term Memory Systems
Memory-based narrative agents inherit biases from three primary sources: training data, architectural constraints, and retrieval mechanisms. Training data often reflects societal biases, which become embedded in the agent's knowledge representation. For example, if a language model is trained on historical texts where certain demographics are underrepresented or stereotyped, these patterns propagate into the agent's memory.
Architectural biases emerge from design choices in memory systems. The capacity limits of transformer-based architectures impose selective attention mechanisms that prioritize certain information over others. This can be formalized as an information bottleneck:
where X represents the input data, M the memory representation, and I the mutual information. The compression inevitably discards information, often in ways that reflect the designers' implicit priorities.
Quantifying Fairness in Memory Retrieval
Fairness metrics for memory systems must account for both representational harm (biased content) and allocational harm (biased access). For a memory system retrieving information about k demographic groups, we can define a fairness score F:
where pi is the probability of retrieving information about group i. This score ranges from 0 (completely biased) to 1 (perfectly fair).
Mitigation Strategies
Effective bias mitigation requires interventions at multiple levels:
- Pre-processing: Debiasing training data through techniques like reweighting or adversarial filtering
- In-processing: Adding fairness constraints to the memory update rules
- Post-processing: Applying fairness-aware retrieval algorithms
The memory update process can be modified to include a fairness regularizer:
where λ controls the trade-off between task performance and fairness.
Case Study: Narrative Generation in Healthcare
A clinical decision support system using memory-based agents demonstrated significant racial bias in treatment recommendations. Analysis revealed the memory retrieval weights favored majority demographic patterns. Implementing a constrained optimization approach reduced bias by 42% while maintaining 98% of original accuracy:
where θ represents the memory parameters, R the reward function, and F the fairness threshold.
Emerging Challenges in Long-Term Context
As memory horizons extend, new fairness challenges emerge. Temporal biases occur when recent information dominates historical context. The temporal discount factor γ in memory systems:
must be carefully tuned to prevent either recency bias or stagnation. Adaptive mechanisms that adjust γ based on content importance rather than simple time decay show promise in preliminary studies.
Privacy Concerns in Persistent Memory Systems
Data Retention Risks in Long-Term Memory Architectures
Persistent memory systems in narrative simulation agents retain user interactions indefinitely, creating potential privacy violations. Unlike transient session-based storage, these systems encode personal data—conversational history, behavioral patterns, and inferred preferences—into embedding vectors stored in vector databases. The mathematical representation of this risk can be modeled through information leakage metrics:
Where MI denotes mutual information between user input Xt and memory state Mt-1, with temporal weighting factors αt. This formulation quantifies how much historical data contaminates new interactions.
De-Anonymization Through Memory Linkage
Advanced correlation attacks can reconstruct identities from seemingly anonymized memory traces. When memory retrieval employs attention mechanisms:
The attention weights Aij create latent linkage graphs between disparate interactions. Adversaries exploiting transformer-based memory systems have demonstrated 83% re-identification accuracy on conversational datasets (Ethayarajh et al., 2022) through gradient-based memory inversion attacks.
Differential Privacy for Memory Systems
Implementing ε-differential privacy in memory updates requires careful noise injection during memory writing operations. The modified memory update rule becomes:
Where the noise variance σ2 scales with the privacy budget Δf/ε. Recent work (Hoory et al., 2023) shows this approach reduces user re-identification risk by 47% while maintaining 92% of original task performance.
Secure Multi-Party Computation Approaches
For distributed narrative agents, secure aggregation protocols prevent individual memory exposure. The cryptographic memory merge operation:
Uses homomorphic encryption to combine memories Mi from n parties without decryption. Practical implementations leverage CKKS schemes for floating-point memory vectors, though computational overhead remains non-trivial (30-45x slower than plaintext operations).
Regulatory Compliance Challenges
The GDPR's right to be forgotten conflicts fundamentally with persistent memory architectures. Complete memory erasure requires:
- Inverse propagation of deletion requests through all memory attention paths
- Statistical guarantee of data removal from ensemble models
- Proof of non-reconstruction for audit purposes
Current solutions employ memory compartmentalization with cryptographic hash trees, enabling selective memory deletion with O(log n) verification complexity.

5. Key Research Papers
5.1 Key Research Papers
- How Memory Management Impacts LLM Agents: An Empirical Study of ... — LLM agents often include short-term memory and long-term memory [30]. Short-term memory usually refers to inside-task working memory [20], while long-term memory [20] can be divided into three types: semantic memory, procedural memory, and episodic memory. Semantic memory [9] contains the agent's world knowledge and understanding of the ...
- PDF Memory Architectures in Long-Term AI Agents - ResearchGate — developing advanced memory architectures for long-term AI agents. 1.1 The Memory Challenge iniModern AI Systems The limitations of current memory implementations in AI systems became starkly ...
- (PDF) Memory Architectures in Long-Term AI Agents ... - ResearchGate — This research addresses this fundamental challenge by introducing a novel framework for advanced memory architectures in long-term AI agents. ... key challenges in memory management, including ...
- PDF Embodied agents for long-term interaction - Northeastern University — Embodied Agents for Long-Term Interaction ... Distribution: Once completed, this form should be scanned and attached to the front of the electronic dissertation document (page 1). An electronic version of the document can then be uploaded to the ... facial expressions, and body posture. A key research problem in the design and implementation of ...
- Towards Lifelong Dialogue Agents via Relation-aware Memory Construction ... — The trend of long-term interaction with autonomous agents promotes their adaptation for personalized needs (Chen et al., 2024a, c). As a pioneer, Xu et al. train a persona extractor to create user-based memories. However, training personalized agents for long-term use can be non-trivial due to the lack of data (Tseng et al., 2024).
- A Survey on the Memory Mechanism of Large Language Model based Agents — A Survey on the Memory Mechanism of Large Language Model based Agents Zeyu Zhang 1, Xiaohe Bo , Chen Ma , Rui Li , Xu Chen1, Quanyu Dai2, Jieming Zhu 2, Zhenhua Dong , Ji-Rong Wen1 1Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China 2Huawei Noah's Ark Lab, China [email protected], [email protected] Abstract Large language model (LLM) based agents have ...
- Narrative XL: A Large-scale Dataset For Long-Term Memory Models — language models witho ut long-term memory 2) are diagnostic of th e model's memory capacity 3) accurately represent the material on which they are based (i.e. our question s should be solvable ...
- PDF Computational Memory Architectures for Autobiographic and Narrative ... — agents. Results confirm our research hypothesis that autobiographic memory can prove beneficial - resulting in increases in the lifespan of an autonomous, autobio-graphic, minimal agent. Furthermore, higher communication frequency brings bet-ter group performance for Long-term Autobiographic Memory agents in multi-agent experiments.
- ELSTM: An improved long short‐term memory network language model for ... — 3.1 Long short-term memory. LSTM is different from other deep learning architectures, that includes multiple LSTM units. The core of its architecture is a storage unit that can adjust the state with information, and a non-linear gating unit that regulates the inflow and outflow of information (Trinh et al., 2018). Because there may be delays of ...
- A Survey on the Memory Mechanism of Large Language Model based Agents — Among all the added modules, memory is a key component that differentiates the agents from original LLMs, making an agent truly an agent (see Figure 1). It plays an extremely important role in determining how the agent accumulates knowledge, processes historical experience, retrieves informative knowledge to support its actions, and so on.
5.2 Recommended Books and Articles
- PDF Evaluating Very Long-Term Conversational Memory of LLM Agents — Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pages 13851-13870 August 11-16, 2024 ©2024 Association for Computational Linguistics Evaluating Very Long-Term Conversational Memory of LLM Agents Adyasha Maharana 1 Dong-Ho Lee2 Sergey Tulyakov 3 Mohit Bansal 1y Francesco ...
- PDF A Cognitive Architecture for Agent-Based Artificial Life Simulation — section, concepts of the human memory and attention that are relevant to the proposed architecture are discussed. 3.1 Working memory On neuroscientific literature, three types of memory are often accepted to exist: long-term memory, short-term memory and working memory [7]. When new memories are created, they are short-term ones.
- On Generative Agents in Recommendation - arXiv.org — Generative Agent (Park et al., 2023) is a pioneer work that designs general agents equipped with memory, planning, and reflection abilities to simulate the human's daily life. Building upon this universal framework, the following agent architecture can be bifurcated into task-oriented agents and simulation-oriented agents (Xi et al., 2023).
- Large Language Models Empowered Agent-based Modeling and Simulation: A ... — The model captures short-term memory as trajectories of actions and observations, while long-term memory encompasses accumulated experiences. The interaction between these memory types and the reflective loop ensures that the agent's memory is not only a repository of past events but also a dynamic foundation for future improvement and learning.
- Narrative XL: A Large-scale Dataset For Long-Term Memory Models — language models witho ut long-term memory 2) are diagnostic of th e model's memory capacity 3) accurately represent the material on which they are based (i.e. our question s should be solvable ...
- A Survey on the Memory Mechanism of Large Language Model based Agents — Abstract. Large language model (LLM) based agents have recently attracted much attention from the research and industry communities. Compared with original LLMs, LLM-based agents are featured in their self-evolving capability, which is the basis for solving real-world problems that need long-term and complex agent-environment interactions.
- (PDF) Memory Architectures in Long-Term AI Agents ... - ResearchGate — Contemporary artificial intelligence systems have made remarkable progress in processing and analyzing data, yet they have limitations in maintaining and effectively utilizing long-term memory.
- PDF Memory Architectures in Long-Term AI Agents - ResearchGate — Chapter 1 Introduction and Background to Memory Architectures in AI Systems The quest to develop artificial intelligence systems with human-like memory capabilities has
- A Survey on the Memory Mechanism of Large Language Model based Agents — A Survey on the Memory Mechanism of Large Language Model based Agents Zeyu Zhang 1, Xiaohe Bo , Chen Ma , Rui Li , Xu Chen1, Quanyu Dai2, Jieming Zhu 2, Zhenhua Dong , Ji-Rong Wen1 1Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China 2Huawei Noah's Ark Lab, China [email protected], [email protected] Abstract Large language model (LLM) based agents have ...
- Narrative Intelligence from the Bottom Up: A Computational Framework ... — This paper addresses Narrative Intelligence from a bottom up, Artificial Life perspective. First, different levels of narrative intelligence are discussed in the context of human and robotic story-tellers. Then, we introduce a computational framework which is based on minimal definitions of stories, story-telling and autobiographic agents. An experimental test-bed is described which is applied ...
5.3 Open-Source Projects and Tools
- Memary: an open source project to enhance Agent's long-term memory ... — Memary is an open source memory management system designed for autonomous intelligences. By integrating knowledge graphs and specialized memory modules, it breaks through the traditional context window limitations, realizes long-term memory storage and retrieval of intelligences, supports multi-intelligence configurations, and provides advanced functions such as recursive retrieval and multi ...
- GitHub - vllm-project/vllm: A high-throughput and memory-efficient ... — A high-throughput and memory-efficient inference and serving engine for LLMs - vllm-project/vllm ... tools. tools vllm. vllm ... would like to express our sincere gratitude to Andreessen Horowitz (a16z) for providing a generous grant to support the open-source development and research of vLLM. [2023/06] We officially released vLLM!
- Evaluating Very Long-Term Conversational Memory of LLM Agents — This mechanism operates over a combination of short-term and long-term memory. The short-term memory is a summary of a session that is conditioned on the summary from a previous session. See the prompt given to LLMs in our pipeline for generating summaries, and an example of a generated summary, in Fig. 8.
- Large Language Models Empowered Agent-based Modeling and Simulation: A ... — The model captures short-term memory as trajectories of actions and observations, while long-term memory encompasses accumulated experiences. The interaction between these memory types and the reflective loop ensures that the agent's memory is not only a repository of past events but also a dynamic foundation for future improvement and learning.
- PDF Memory Architectures in Long-Term AI Agents - ResearchGate — Chapter 1 Introduction and Background to Memory Architectures in AI Systems The quest to develop artificial intelligence systems with human-like memory capabilities has
- AffordableGenerativeAgents - OpenReview — agents, which lack clear answers and involve interactions that require the agent's long-term memory and coordination between different modules. These characteristics make it challenging to apply most existing
- PDF Exploring LLMs and MCTS for Emergent Narrative - ETH Z — Ryan(2018), emergent narrative comprises two layers. The first layer consists of the simulation which should not aim for tellability and instead creates a beneficial environment for curation. Curation is assembly of a sequence of tellable events creating the narrative. The simulation
- NetLogo Home Page - Northwestern University — Getting Started with NetLogo. Are you new to NetLogo or programming in general? We have resources to help! The NetLogo tutorials guide you through all the basics, from loading and using models, to interacting with models with NetLogo code, and finally programming a model from scratch.; The Beginner's Interactive NetLogo Dictionary has articles and videos on introductory topics, including a ...
- Story Generation Using GAN, RNN and LSTM | SpringerLink — In the realm of text and story generation, recent studies have showcased the efficacy of various deep learning models, with a particular emphasis on Recurrent Neural Networks (RNNs), Convolutional Neural Networks (CNNs), and Generative Adversarial Networks (GANs) [5, 7, 10].An RNN-based text generation system was introduced that analyzed grammar correctness, event linkage, interest level, and ...
- A Survey on the Memory Mechanism of Large Language Model based Agents — A Survey on the Memory Mechanism of Large Language Model based Agents Zeyu Zhang 1, Xiaohe Bo , Chen Ma , Rui Li , Xu Chen1, Quanyu Dai2, Jieming Zhu 2, Zhenhua Dong , Ji-Rong Wen1 1Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China 2Huawei Noah's Ark Lab, China [email protected], [email protected] Abstract Large language model (LLM) based agents have ...








