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.
- 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.
- 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, andtop_k=1. - Clean Reloads: Setting
keep_alive=0to 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.
Datasets
The researchers evaluated the framework using the Gemma model family (ranging from 4B to 31B parameters).
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).
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