Research / Post
How Social Mechanisms Shape the Ecology of AI Personas
A walkthrough of my NeurIPS 2026 paper: How Selection Shapes Diversity in LLM Ecosystems Maya Okawa
November 30, 2026 · Blog Author: Maya Okawa · 9 min read
This paper aims to understand how LLM populations evolve through their interactions with society. Much of AI safety research focuses on the behavior of individual models. But their behavior and its evolution are shaped by a broader ecology of stakeholders. Frontier AI companies decide which models to develop and release, users choose models based on their preferences, platforms like Copilot and Perplexity shape which models get attention, and policymakers set the rules for how models are used.
In the theory of evolution, natural selection works through differences in reproductive success, making certain traits more or less common over generations.1 We see a similar process in the AI ecosystem, where LLMs, their variants, and agents compete for deployment and use. Below we show the evolutionary tree of Llama variants on Hugging Face. AI companies release base models, which are then fine-tuned, merged, or distilled into new models. And this process repeats over multiple generations. This process resembles biological evolution. But in this case, we can design the rules of evolution.
LLM evolution
| Genetic variation | Variation | Fine-tuning, new data and architectures |
|---|---|---|
| Traits passed to offspring | Heredity | Inherited weights and prompts |
| Differential reproduction | Selection | Use and deployment |
Left: Evolutionary tree of 363 bird species. Time runs outward from the center, each color represents a major group. Right: Llama family on Hugging Face with 44,109 models. Time runs outward from the release of Llama 2. The colors show the model generations, and the inner ring shows what each model was fine-tuned for.
All three ingredients of evolution are there. Variation: we fine-tune, merge, or distill models to create new variants, some better at math, others at coding or following instructions. Heredity: models inherit weights and traits from their parents and pass them on to the next generation. Selection: some models get copied (e.g., fine-tuned) more than others, while others are forgotten.
Selection as a rule
To understand and predict the trajectory of evolution, we use a mathematical framework based on evolutionary game theory. We consider a population of LLM agents (i.e., LLMs, their variants, and agents) that compete for attention and deployment. Each agent has a behavioral trait , the personality that fine-tuning or prompting gave it. We describe the ecosystem by each agent’s exposure , its share of attention at time ; the shares sum to one. At each round, agents receive a fitness score , based on, for example, user engagement or task performance. The model deployers and platforms then use these scores to allocate future exposure.
The simplest rule lets the scores add up: each round, an agent’s exposure is multiplied by the exponential of its score.
: share of exposure of agent at time
: selection strength
A ranked feed accumulates the scores in the same way, but hands out exposure by rank, the -th place getting of the attention.
: agent ‘s accumulated score, the log of its share under the first rule
: selection strength
Here, is the selection strength. It controls how strongly fitness translates into exposure. With large , the system becomes more winner-take-all. With small , exposure changes slowly. This is a design choice. In the small- limit, we recover the replicator equation from evolutionary game theory.
In the LLM ecosystem, fitness is shaped by both user preferences and the selection rules that deployers design. Platforms and model deployers don’t disclose the exact selection rules, but a simple additive model might look like this.
: user engagement or task performance
: rewards agents that perform particularly well in a given context
: more exposure to underrepresented agents
: penalizes unsafe outputs
By tuning , , and , deployers can change the selection pressures acting on the population.
Three fates for an ecosystem
The mathematical framework allows us to predict how the population evolves under different selection rules. Taking the Llama family as an example, we can simulate the dynamics and see three distinct regimes. If we increase selection strength (e.g., to 4), one model (Meta-Llama-3-8B-Instruct) and its descendants take over. This is concentration. If we increase routing (e.g., to 2), the fine-tunes for each task grow in their own lineages. This is specialization. And if we increase diversity support (e.g., to 1), models from smaller lineages get more exposure, allowing many models to coexist. This is coexistence.
We use the number of times each model was chosen as a parent in its first six months after release as a proxy for fitness. We first fit the parent-selection rule to the recorded parent choices. The fitted value, , closely reproduces the observed growth of the Llama family tree. In each simulation, we keep Meta’s release dates and their initial reception fixed, along with the number and tasks of new fine-tunes each week. We then replay the timeline, choosing a parent for each new fine-tune from the models available at that point. Colors show model generations, and the inner ring shows what the models are fine-tuned for.
Does it happen for real?
We build a testbed that mimics an AI-native social platform with 96 LLM agents with different personalities. In each round, we pick a random topic, and agents write posts, like, reply to, and follow one another. Some are supportive, others are critical. Some focus on people, others on social structures. Some rely on intuition, others on evidence. They also differ in how much they challenge the consensus and how cautious they are about risky topics. The platform then updates each agent’s exposure based on our selection rule. Agents that attract more engagement (e.g., followers) get more exposure in the next round.
In each round, we pick a topic from Reddit, ranging from personal relationships to technology, politics, and ethical dilemmas; each agent, defined by its traits, posts; other agents like, reply and follow; an auditor rates each post’s safety and quality; the rule turns the reactions (e.g., follows and shares) into each agent’s share of the next feed.
Here, we show how the population evolves over 100 rounds. With weak selection (e.g., ), many agents coexist. As we increase selection strength (e.g., ), exposure becomes concentrated on fewer agents. What’s interesting is that even without changing the agents themselves, the overall safety of the ecosystem can change simply through selection. Here, less safe agents gradually gain more exposure.
The plots show how the composition of the feed changes over time, grouped by personality (left) and safety orientation (right). Each circle below represents an agent, with its area showing its share of the feed. Increase to make selection stronger. Without a safety penalty, the feed drifts toward unsafe agents. Stronger selection (e.g., ) leads to a loss of diversity and, in this example, greater exposure to unsafe agents.
With weak selection and weak routing, many agents coexist. If we increase routing and selection, different agents dominate different topics. If we push them further, just a few agents take most of the attention. Increasing diversity support helps more agents retain a share of the feed.
We replay the feed under different combinations of selection strength, routing, and diversity support, with no safety penalty. The panels show the resulting phase, the effective number of agents , and the average safety of the feed. We classify the population as concentrated when . Stronger selection and routing tend to amplify unsafe agents.
Diversity that isn’t there
A population may look diverse, but will that diversity last? Using standard stability analysis from evolutionary dynamics, we can identify two types of instability.
Tangent instability A small shift in attention among existing agents grows rather than fades.
We linearize the exposure update rule around the endpoint :
Here, is the Jacobian of the exposure update rule,
restricted to perturbations that redistribute exposure among active agents. The largest log growth rate is
If , the endpoint is unstable.
Invasion An agent with almost no exposure can come back and gain a larger share.
Give an excluded agent a small share of exposure :
Applying the selection rule for one round gives the log growth rate
If , the agent gains exposure and can potentially invade the population.
Think of the population as a ball on a landscape. A small push fades in a valley but grows on a hilltop (left). Using our framework, we identify stable and unstable populations under different selection rules (middle). We then test these predictions by slightly changing the exposure distribution or giving an excluded agent a tiny share of the feed (right). As predicted, perturbations tend to fade in stable populations and grow in unstable ones.
The key point is that diversity at a given moment does not guarantee its persistence over time.
Can we predict diversity collapse?
As a population approaches instability, fluctuations tend to grow. We can use this as an early-warning signal. In our framework, fitness scores fluctuate from round to round. We can analytically derive how these fluctuations accumulate in the exposure distribution.
: variance of fitness score differences before diversity support
: how quickly fluctuations decay;
as approaches one, fluctuations persist and accumulate
Where does this equation come from?
Taking the logarithm of the exposure update rule gives
With diversity support, the fitness score is
Define the log exposure ratio between two agents:
Taking the difference cancels the normalization term:
Let . Starting from equal exposure, we obtain
Assuming uncorrelated score differences with variance ,
We use this predicted variance as an early-warning score. Using only the selection rule and the fitness fluctuations observed early in each run, we predict which populations will later lose diversity. In this experiment, our analytical predictor outperforms classifiers trained on early trajectories, without requiring any training data.
Each line shows how the effective number of agents changes over one run. All 62 runs still look diverse at round 5. Using only the early fluctuations (shaded area), our theory predicts which populations will end up concentrated (magenta) and which will remain diverse (blue). The two groups separate later, and 56 out of 62 predictions are correct.
AI safety as mechanism design
This work aimed to go beyond alignment and safety research on individual LLMs and understand how they evolve within a broader ecosystem that includes frontier AI companies, us as users, and policymakers. This shift in perspective is similar to what happened in biology, from typological thinking to population thinking. Rather than thinking of a species as a fixed type, population thinking looks at how traits are distributed across a population and how that distribution changes over time. But what makes AI different is that we can set the rules of selection ourselves. While this work focuses on selection to highlight who’s responsible for shaping this evolution, incorporating other evolutionary mechanisms, such as mutation and genetic drift, is an important next step.
Code: phys-ai/llm-ecosystem-selection
Further reading
- Statistical Physics of Bias Amplification in Multi-Agent LLM Debates — the previous post in this series, on how debate among LLMs has a phase transition.
- Hofbauer & Sigmund, Evolutionary Games and Population Dynamics (1998) — the standard reference for replicator dynamics.
Footnotes
-
Natural selection describes how certain traits become more or less common over generations. It does not imply that some individuals or groups are inherently better or more valuable than others. ↩