arXiv:2611.06914cs.MANov 2026

Manuscript Offprint

arXiv:2611.06914

A Framework for Context Enrichment and Selective Robustness in LLM Social Agents

Mattia Greiche, Reihaneh Rabbany, Maximilian Puelma Touzel

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Researchers use large language models as agents in social simulations, where agents are prompted with observations and background information intended to shape their actions. Yet LLM agents have been shown to substantially change their behavior under meaning-preserving prompt variations, creating a validation problem for social simulation. One plausible hypothesis is that this brittleness reflects a lack of grounding and can be reduced by enriching the context provided to the agents. Whether richer context improves robustness remains unclear, in part because context richness and robustness are rarely defined in ways that support controlled comparisons. We address the first need with controlled context enrichment, a set of prompt substitution rules that systematically enriches distinct types of context: neutral padding, generic social background, descriptive decision grounding, and normative decision grounding. We address the second by introducing selective robustness as a validation criterion: insensitivity to meaning-preserving prompt variation combined with a directional response to decision-relevant changes in the social world. We demonstrate the framework in a Prisoner's Dilemma-like game, showing how it can be used to identify which forms of context enrichment produce more desirable and robust agent behavior. We find that these forms of enrichment produce distinct behavioral patterns that vary between the two models tested.

1 Introduction

Researchers use large language models (LLMs) as agents in simulations of cooperation and other social processes [Mou et al., 2026]. Generally, an agent is provided context through a role and a setting in which it acts through natural language; they may also be given information related to relationships, biography, memories, goals, or beliefs. Concordia uses such descriptions to ground agent actions in social or physical spaces [Vezhnevets et al., 2023]. Similarly, SOTOPIA assigns characters and social goals within interactive scenarios [Zhou et al., 2024]. Researchers then interpret the agent's choices or actions as behavior within the supplied social world. The context provided to the agents, therefore, is a fundamental variable in any LLM agent simulation's setup.

Recent reviews and position papers identify validation as a central unresolved problem for LLM social simulation and call for more standardized, reproducible evaluation systems [Larooij and Törnberg, 2026; Puelma Touzel et al., 2026]. One challenge is that small changes in how researchers present the same social information can alter agent behavior, including changes to wording and prompt formatting [Ju et al., 2024; Lutz et al., 2025]. Recent work by Ye et al. [2026] reports shifts of up to 76 percentage points in cooperation rates in a Prisoner's Dilemma game when changes are made to context format that maintain similar social meaning. Such findings make stability under

*Corresponding author: mattia.greiche@mail.mcgill.ca

40th Conference on Neural Information Processing Systems (NeurIPS 2026). Workshop: SocialAgent: Second Workshop on Large Language Models for Social Reasoning and Simulation.

meaning-preserving changes an important validation test. But universal stability does not show that an agent uses the social context appropriately; ideally, an agent should respond and alter its behavior when the social world changes in a way that bears on the decision.

We call this joint requirement selective robustness: ideally, an agent should be insensitive to changes in representation that preserve the social meaning relevant to the decision, but sensitive to substantive changes in the social world that likely should affect the decision. This framing follows the broader logic of metamorphic testing [Chen et al., 2018], and is inspired by CheckList's behavioral testing methodology, which distinguishes invariance tests, where small perturbations to the input should leave predictions unchanged, from directional expectation tests, where a controlled input change should change predictions in a specified way [Ribeiro et al., 2020]. We adapt this to the LLM social agent domain by testing both stability on different representations of the same social world and responsiveness to a prespecified change in that world.

Prompting with richer context has been proposed as one route to more accurate and diverse social simulation [Anthis et al., 2025]. More detailed persona profiles have also brought greater stability across repeated tests [Bai et al., 2025]. However, context enrichment is not a single well-defined intervention. Additional context may simply add text, provide generic social information, connect the agent more directly to the current decision, or introduce explicit normative guidance. Treating these changes only as increases in context "richness" makes it difficult to determine which property is responsible for any changes in behavior. We therefore decompose context enrichment according to the function of the added information, allowing these effects to be compared more systematically.

Our approach. We make three contributions:

  • a controlled decomposition of context enrichment across five prompt conditions made up of one minimal-context baseline and four enrichment conditions: neutral padding, generic social background, descriptive decision grounding, and normative decision grounding;
  • selective robustness as an evaluation criterion that combines surface invariance with responsiveness to meaningful changes in the social world; and
  • a grounded pilot study showing how these two ideas can reveal different behavioral effects of context construction and different failure modes across two models.

The pilot study is run in only one global scenario. Its results are intended to illustrate the framework's utility, not to establish a general effect of context enrichment in social simulations. The code-base and data for the pilot experiment are available at https://github.com/mattiagreiche/context-enrichment-selective-robustness.

References (28)