When the Policy Optimizer Exploits the Simulated People

Researchers increasingly use populations of large language model (LLM) agents as stand-ins for people. They simulate a marketplace, a social network, or a tax system, then search for the rule (an escrow mechanism, a recommender weighting, a tax schedule) that produces the best simulated outcome. This proposal argues that such a search is an instance of a known failure from data-driven design. A design method that optimizes against a learned stand-in for an expensive real system, called a surrogate, tends to find the stand-in's errors rather than real improvements. In this setting the LLM population is the surrogate. Its errors are not random. They are the documented failures of LLMs: latent preferences for brand names and sources, bias that survives explicit fairness instructions, and reasoning that changes when the same question is asked more simply. An optimizer with enough search budget will find rules whose apparent success comes from these failures, and the rules will not transfer to the real population.

We propose to treat these failures the way offline design treats regions with no data. The search will be made pessimistic about any candidate rule whose simulated success changes when the simulation is rewritten in ways that should not matter: swapping brand or demographic labels the real population ignores, rephrasing the rule's text, or splitting an agent's decision into simpler sub-questions. The penalty is computed on a small subsample of agents so the cost stays affordable at the population sizes where social phenomena appear. The method is tested in environments where the "real" population is a known program, which makes exploitation directly measurable.

Core Claim

Offline model-based optimization studies the "optimizer's curse." Optimizers pushed against a surrogate fitted to logged data drift into regions where the surrogate is confidently wrong. Design-Bench standardized this problem. PRIME answered it by pushing down surrogate predictions on out-of-distribution designs. RaM showed that surrogate squared error out of distribution has near-zero or negative correlation with real design quality, and replaced regression with ranking losses. All three define "untrustworthy" as "far from the data."

Our claim is that, for an LLM-agent population used as a surrogate for people, the more useful notion of untrustworthy is "sensitive to things that should not matter." We predict that optimizer-selected policies will concentrate exactly where the simulated outcome is most sensitive to such transformations. We also predict that a worst-case objective over a family of meaning-preserving transformations will recover most of the real-world value that naive optimization loses. Prompting the agents to be unbiased will not recover it.

Concretely, let $\pi$ be a candidate policy, $\hat J(\pi)$ its simulated outcome, and $T$ a family of transformations under which the real population's behavior is known or assumed to be invariant. We optimize

$$\hat J_{\text{rob}}(\pi) = \min_{t \in T} \hat J_t(\pi),$$

where $\hat J_t(\pi)$ is the outcome when transformation $t$ is applied to the agents' observations, or to how the policy is described. This parallels Constrained Self-Play. That work trains against the worst case over proxy opponents consistent with logged game data, and found that ordinary behavior-cloned proxies have "imaginary weaknesses" that learners exploit. Our worst case runs over rewrites of the simulation that should preserve its meaning, applied to language agents rather than reinforcement learning policies. Using a minimum avoids the offline problem of tuning a pessimism weight with no validation data, which the research file flags as unsolved. The choice of $T$ still has to be justified, and our ablations test exactly that choice.

Why This Failure Mode Is Expected

The prompting literature supplies the motivating evidence that LLM agents carry structured artifacts that instructions cannot remove.

  • Bias survives prompting. Bias after Prompting measured the correlation between pretrained bias and bias after prompt adaptation and found it often exceeds 0.90, and 0.97 or higher under chain-of-thought. Debiasing prompts reduced magnitudes slightly but did not break the correlation.
  • Neutrality instructions can backfire. In Agents We Trust showed that the same content is trusted differently depending on the attributed source. Instructions such as "ignore the source" sometimes increased reliance on source.
  • Outcomes swing with small wording changes. SocialStigmaQA reports biased outputs in 45–59% of cases. Bias scores moved by over 10 points when a single word or the random seed changed.

The reasoning literature supplies a second, separate artifact. ConsisEval shows that models which solve hard problems still fail simpler versions requiring the same logic: 92.2% consistency for GPT-4 Turbo, and 50–70% for 7B models. An agent's decision can therefore depend on whether it was posed as one compound judgment or as its parts.

TruthMarketTwin demonstrates that policy conclusions are drawn from LLM markets in practice, and that agents exploit whatever institution they are given. Every seller agent planned a final-round exit under reputation-only rules. Escrow warrants cut counterfeit trades from 45.8 to 14.0 per run. That study compared two hand-designed institutions with 10 buyers and 10 sellers. It did not search a policy space, and it did not ask whether the agents' artifacts drove the comparison.

Research Program

Testbeds with known ground truth

The program needs a setting where exploitation can be measured, so we copy the Design-Bench logic of a hidden true oracle. In each testbed, the "real" population is a programmatic population whose behavior is fully specified. The LLM population is built as its surrogate by giving LLM agents persona descriptions and in-context examples drawn from logged interactions of the true population. Policies are then optimized against the LLM population and scored on the true one.

Market testbed. This reuses the TruthMarketTwin buyer–seller structure on the OASIS asynchronous infrastructure. True buyers have explicit utility functions that ignore seller brand names. The policy space covers:

  • warrant price,
  • how reputation is displayed,
  • listing format,
  • the natural-language wording of the market rules.

Tax testbed. This takes household agents from TaxAI, calibrated on the 2022 Survey of Consumer Finances, as the true population. LLM households are surrogates fitted to their logged trajectories. The policy space is TaxAI's parameterized tax schedules together with the text that announces them.

Planted artifacts. We will vary how strongly the true population cares about each nuisance attribute. The default is zero, which makes invariance exactly correct. A controlled condition makes buyers genuinely brand-sensitive, which tests what happens when $T$ is wrong.

Transformation families

We build three families $T$.

  1. Label swaps. Brand, source, and demographic labels are swapped among values the true population treats identically, following the identical-content source tests of In Agents We Trust.
  2. Rephrasings. The policy announcement is rephrased with meaning held fixed, following the wording sensitivity in SocialStigmaQA.
  3. Decomposition. An agent's decision is split into simpler sub-questions and recombined, for example "compute expected payoff of buying" and then "decide," using the three-stage decomposition of Divide-and-Conquer prompting. Disagreement between the compound decision and the decomposed decision is treated as a reasoning artifact in the ConsisEval sense.

Keeping it affordable at scale

Running every agent under every transformation multiplies inference cost by $|T|$. OASIS already needs about 15 minutes on four A100 GPUs per time step for 10,000 agents, so that multiplier is unaffordable. We instead estimate each $\hat J_t$ by running only a random subsample of $k$ agents under transformation $t$, with the rest of the population held at its untransformed behavior.

The penalty's error then shrinks roughly as $1/\sqrt{k}$, as for any sample mean of agent-level effects. Total extra cost is $k|T|$ agent-calls per candidate rather than $N|T|$. We will also amortize across the search. A ranking surrogate in the style of RaM is trained on logged (policy, robust outcome) pairs, so that only top-ranked candidates receive fresh simulation. This gives ranking surrogates a role that RaM's static design tasks never tested.

We will run population sizes of 20, 1,000, and 10,000 agents to test whether exploitation grows with scale. The ABM literature suggests it should, because emergent herd effects amplify small agent-level artifacts.

Baselines

Naive search. The reference point is ordinary black-box optimization of $\hat J(\pi)$ against the unmodified LLM population, using the same optimizer, candidate budget, and agent-call budget as our method. This is how simulation-based policy studies currently proceed. It sets the size of the exploitation gap we are trying to close.

Prompt-debiased population. The same search runs against agents whose system prompts instruct them to ignore brand, source, and demographic cues and to decide on payoffs alone. This costs nothing extra and is the first thing a practitioner would try. Our method beats it if the policy it selects scores higher on the true population, averaged over seeds, with non-overlapping bootstrap intervals.

Out-of-Context prompting. Out-Of-Context prompting obfuscates and replaces sensitive attributes, then takes a majority vote over randomized versions. It reduced invariance bias in 23 of 27 classification settings with macro-F1 losses generally below 0.05. It is the strongest existing method for making an individual LLM decision invariant, so it is the strongest debiasing competitor.

Applied to every agent decision, it is far more expensive than our subsampled penalty. We will therefore run it two ways:

  • at full strength in the 20-agent setting, with no cost cap;
  • cost-matched at larger sizes, by applying it to the same fraction of decisions our probes touch.

Our method beats it if it matches or exceeds its true-population score at equal agent-call budget. In the full-strength 20-agent comparison, it beats it if it comes within noise at a fraction of the cost.

Conservative and ranking surrogates. These fit a PRIME-style conservative surrogate, and separately a RaM-ListNet ranking surrogate, to logged simulation results. Both then optimize against the fitted surrogate. On Design-Bench, RaM-ListNet reports an average rank of 2.2 against 5.9 for the next-best baseline (RaM). These baselines test whether ordinary distance-from-data pessimism already captures the problem. No reported result was found in the file for any of these methods on LLM-agent policy search.

Model ensemble worst case. Optimization runs against the minimum outcome across simulations driven by three LLM families. No reported result was found in the file for this baseline in agent simulation.

Ablations isolating the key ingredient. Two ablations test whether the gain comes from the choice of $T$:

  • replacing $T$ with random perturbations of equal magnitude that are not meaning-preserving;
  • in the planted brand-sensitive condition, including in $T$ an attribute the true population genuinely cares about.

If random perturbations help as much as meaning-preserving ones, the gain is generic smoothing, not artifact detection. If the misspecified $T$ fails to degrade results, the method is not doing what we claim.

Why not just…?

Why not just tell the agents to be fair? The evidence predicts this fails, and may make things worse. Bias persists at correlations above 0.90 after prompting (Bias after Prompting). "Ignore the source" instructions increased source reliance in some conditions (In Agents We Trust). Prompts also did not stop deception in the market setting (TruthMarketTwin). Our prompt-debiased baseline measures this directly on true-population regret rather than on bias scores.

Why not just take the worst case over several different LLMs? This is the most serious threat. If different model families make different errors, ensemble disagreement alone flags exploited regions with no hand-chosen $T$. Our reason for doubt is that artifacts inherited from shared pretraining data are likely correlated across families. That is consistent with how tightly bias tracks pretraining in Bias after Prompting, though that paper measured within-model transfer rather than cross-model agreement. The experiments settle this by planting artifacts the families share (brand preference) and artifacts they do not.

If the ensemble matches our method on shared artifacts, we will report that transformation probes add nothing. The proposal would then reduce to recommending ensembles. A combined ensemble-plus-$T$ variant is also run.

Why not just restrict the search to policies near ones already observed with real people? Support constraints like DiffOPT, which samples designs from a learned data distribution weighted by the surrogate objective, protect against distance-from-data errors. But LLM artifacts appear even for policies inside the observed range: a reworded version of a known rule is in-distribution yet can flip agent behavior. The conservative and ranking baselines represent this family. The decisive check below tests whether sensitivity, not distance, predicts the gap.

Why not just simulate fewer, better agents, or compress the population? Mean-field and single-generator replacements avoid the cost of the probes. However, the CGAN market study reports trouble capturing intent-driven order volumes, and OASIS reports herd and polarization effects that depend on scale. Our three population sizes measure whether exploitation is a large-population phenomenon, which would make small cohorts misleading.

Decisive Checks

Is sensitivity predictive? Across all candidates visited by the naive optimizer, we compute the rank correlation between artifact sensitivity, $\hat J(\pi) - \hat J_{\text{rob}}(\pi)$, and the true exploitation gap, $\hat J(\pi) - J_{\text{true}}(\pi)$. Distance to logged policies serves as the competing predictor. If sensitivity is not a clearly stronger predictor than distance, the core claim is wrong and the program stops.

Does robust search transfer? The main result compares the true-population outcome of the policy selected by each method under matched budgets, in both testbeds and at each population size. The market's true outcomes include counterfeit rate and buyer utility. The tax testbed's include the Gini coefficient and GDP.

Is the gain caused by $T$? The two ablations decide whether the effect comes from meaning-preserving invariance. The misspecified-$T$ condition also shows the cost of a wrong invariance assumption, which is the main risk of deploying the method on real populations whose invariances are only assumed.

Does it hold on real data? As an external sanity check, we compare naive and robust selection of OASIS recommender settings by how well each reproduces the Twitter15/16 cascade statistics, against the 30% normalized RMSE that OASIS reports.