A Framework for Context Enrichment and Selective Robustness in LLM Social Agents
Organizations: McGill University · Mila - Quebec Artificial Intelligence Institute
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.
Figures & tables
| Condition | Added context | World contrast | Decision link | Normative force |
|---|---|---|---|---|
| 1. Minimal | None | – | – | |
| 2. Neutral padding | Unrelated background detail | – | – | |
| 3. Generic social background | Roles not tied to the decision | – | – | |
| 4. Descriptive decision grounding | Relationships, rule, applicability | – | ||
| 5. Normative decision grounding | Same as 4 |
Appendix figures & tables2 assets
Supplementary material from the paper’s appendix.
Appendix
| Model | Context | Mean surface sensitivity | World responsiveness |
|---|---|---|---|
| Sol | Minimal | 34.1 [30.3, 40.3] | 33.9 [28.0, 40.2] |
| Neutral padding | 14.2 [10.7, 17.8] | 6.7 [1.2, 12.2] | |
| Generic background | 27.9 [21.3, 33.7] | 51.1 [45.2, 56.6] | |
| Descriptive grounding | 3.7 [1.8, 6.0] | 85.9 [82.4, 88.9] | |
| Normative grounding | 3.9 [3.3, 4.6] | 92.0 [91.0, 92.9] | |
| Terra | Minimal | 19.8 [14.6, 26.9] | 38.6 [29.5, 47.9] |
| Regional world | Local world | ||||||||
| Model | Context | C | B | K | A | C | B | K | A |
| Sol | Minimal | 37.8 | 41.0 | 94.8 | 88.9 | 15.3 | 29.8 | 1.5 | 80.5 |
| Neutral padding | 17.0 | 6.8 | 0.4 | 40.2 | 0.6 | 4.6 | 0.5 | 32.0 | |
| Generic background | 15.8 | 48.7 | 87.8 | 66.8 | 1.6 | 8.3 | 4.7 | ||
| Descriptive grounding | 90.3 | 77.7 | 92.5 | 83.1 | 0.1 | 0.1 | |||
| Normative grounding | 96.6 | 77.6 | 99.2 | 94.5 | |||||
LLM Agents
Large language model agents use language models to plan, use tools, and act across multi-step tasks and environments.
See all 734 papers