Deterministic Narrative Gravity: Bridging Theory of Mind and Historical Simulation through ABM-LLM Architectures

Alicia Colmenero-Fernández, Lidia Ortega AlvaradoarXiv 2026 · arXiv

TL;DR

Researchers have developed a deterministic framework that prevents Large Language Models (LLMs) from "collapsing" into polite, repetitive consensus during historical simulations. By coupling LLMs with an Agent-Based Modeling (ABM) pipeline and "Inner Voices" (Shadow, Emotion, Memory), the system achieves bit-exact reproducibility and forces agents to engage in complex, historically grounded negotiations.

What Problem Does This Paper Address?

In the field of virtual archaeology, using LLMs to simulate past social interactions faces two major hurdles: stochasticity and narrative gravity.

  1. Stochasticity: LLMs are inherently probabilistic. Even at "temperature zero," hardware-level non-determinism and server-side optimizations (like Flash Attention) create a "digital butterfly effect," making it impossible to exactly replicate a simulation run. This is a dealbreaker for scientific auditing.
  2. Narrative Gravity: Due to RLHF (Reinforcement Learning from Human Feedback) training, commercial LLMs suffer from "assistant bias" or sycophancy. When faced with conflict, they tend to yield quickly ("I see your point") to close the dialogue peacefully. In a historical simulation of, say, a tense trade negotiation in the Iron Age, this leads to "attractor collapse" where characters lose their unique identities and goals just to reach a boring consensus.

Methods

The authors propose a hybrid ABM-LLM architecture designed to act as a structural regulator against these biases.

Achieving Determinism

To ensure scientific traceability, the team used a local Ollama runtime with a strict "pinned" configuration:

  • Greedy Decoding: temperature=0, top_p=0, and top_k=1.
  • Clean Reloads: Setting keep_alive=0 to force the model to unload from VRAM after every call, preventing the accumulation of KV cache states that cause divergence.
  • Flash Attention Disabled: To avoid floating-point imprecisions from parallelization.
  • Verification: They validated the output using SHA-256 hashing, achieving 100% bit-exact agreement across repeated runs on identical hardware.

The Cognitive Scaffolding

The core of the paper is a dual-sphere architecture that simulates a "Theory of Mind" (ToM):

  • Perception Tier: An LLM classifies incoming dialogue into "Pressure" (demands/threats) and "Novelty" (unforeseen info).
  • Logic Engine: A deterministic Python script calculates Effective Dissonance ($d_{eff}$) based on the agent's "Self-Weight" (commitment to their own goals).
  • Voice Gating: Depending on dissonance levels, the system triggers "Inner Voices"—Shadow (selfish impulses), Emotion (visceral reactions), and Memory (sensory recollections). These are injected into the final prompt as a "Cognitive Scratchpad."
  • Generation Tier: A "Director" sets the tactical stance, and a "Compositor" synthesizes the final dialogue.
FIGURE 2

Datasets

The researchers evaluated the framework using the Gemma model family (ranging from 4B to 31B parameters).

A breakdown of the specific Gemma models and quantization variants used in the study.

They tested these models across 42 simulation records based on a custom Virtual Archaeology scenario: a 1st-century BC Iron Age forge where a warrior (Artai) and a blacksmith (Enko) negotiate over a repaired sword under three "friction levels" (Low, Moderate, High).

FIGURE 1

Key Insights and Ideas

  • The 12B Parameter Threshold: The study found a "scale fault." Models with $\leq$8B parameters suffered from context-window saturation. The complex scaffolding prompts actually made them perform worse, leading to repetitive loops. However, at $\geq$12B parameters, the models reached an "optimal operating range" where they could effectively process the cognitive scaffolding.
  • Inner Voices as a "Structural Brake": By injecting "dark commands" or "visceral impulses" into the model's internal thoughts, the architecture creates a cognitive asymmetry. The model is forced to explore "unfriendly" regions of its latent space, preventing it from falling into the trap of sycophantic agreement.
  • Spontaneous Diegetic Expansion: One of the most surprising findings was that scaffolded $\geq$12B models didn't just resist closure; they creatively expanded the world. In one run (SIM22), the agent invented a story about the "Atuatuci tribe" to justify a lack of coins—a tactically motivated, historically plausible invention that the authors call Voluntary Narrative Amplification (VNA).

Key Results

  • Narrative Vector ($V_N$): In the "Ablation" (unscaffolded) condition, 100% of simulations ended in premature closure ($V_N = \text{Closed}$). With the ABM scaffolding active, official $\geq$12B models achieved a 100% opening rate, sustaining the interaction through deferred commitments and new subplots.
  • Negotiation Quality: Scaffolded models showed a gain of +1.55 points (on a 5-point scale) in Negotiation Arc Quality compared to the baseline.
  • Reproducibility: The framework achieved bit-identical SHA-256 digests across independent H100 nodes, proving that LLM-based social simulations can be made auditable.

Limitations and Future Work

  • Hardware Dependency: While the system is internally deterministic, it is not "universally" deterministic. Moving from an RTX 5080 to an H100 caused slight numerical branching due to different floating-point architectures.
  • Historical Accuracy: The models are general-purpose; their "inventions" (like the Atuatuci) are plausible but not necessarily "verified" facts. Future work aims to include expert panels of historians to validate these generated details.
  • Scaling Up: The authors plan to evolve the engine from a centralized architecture to one where each agent has an independent affective engine, allowing for 50-100 turn simulations in complex sociopolitical maps.

Summary updated

Abstract

Historical social simulation faces a fundamental reproducibility challenge: the stochastic nature of large language models (LLMs) introduces a digital butterfly effect that prevents exact replication across multi-turn runs. Furthermore, the inability to control low-level server parameters in commercial LLM hosting environments severely limits reproducibility. To overcome this opacity, we present a deterministic multi-agent framework coupling LLMs to an Agent-Based Modelling (ABM) pipeline grounded in Theory of Mind (ToM) and Cognitive Archaeology, and validate exact artifact identity within local, pinned execution environments using SHA-256 hashing. Run locally at temperature zero with clean per-call model reloads, the system injects differentiated cognitive states per turn through dissonance-driven behavioural modes and gated internal voices. Evaluating seven model configurations spanning 4B to 31B parameters against an ablated baseline reveals clear operational boundaries. Small models ($\leq$8B) suffer from context capacity overload, producing repetitive, specular dialogue loops. However, at $\geq$12B parameters, the ABM scaffolding breaks the monotonous response patterns seen in ablation. Crucially, these scaffolded models exhibit spontaneous diegetic expansion: they coherently expand scenario lore through tactically motivated, anachronism-free details rather than escalating into aggression. By resisting the structural pull toward premature scene closure, scaffolded sessions sustain an open terminal Narrative Vector ($V_N = \mathrm{Open}$ in 12/21 overall; 9/9 in official $\geq$12B configurations) whereas unscaffolded ablation never does (0/21). This framework provides a transparent, auditable benchmark architecture for virtual archaeology, with the full pipeline released as open-source software to enable independent replication.
BibTeX
@misc{colmenerofernandez2026deterministic,
  author = {Alicia Colmenero-Fernández and Lidia Ortega Alvarado},
  title = {{Deterministic Narrative Gravity: Bridging Theory of Mind and Historical Simulation through ABM-LLM Architectures}},
  year = {2026},
  eprint = {2611.11212},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.11212},
}
Figure