Game-Theoretic Data Allocation for Expert Specialization and Routing
Organizations: Dartmouth College · Independent Researcher
Abstract
Can the allocation used to train experts also predict which expert will perform best on a prompt? Such a connection would make the intended division of labor inspectable before training and allow the allocation itself to guide inference. We introduce InflEns, a mixture of LoRA experts whose training weights and inference routes come from the same location game in a fixed prompt-trait space. Players choose positions to maximize their expected shares of the prompt distribution, without using expert losses. We utilize the game's kernel-general theoretical criterion for when co-located positions become locally unstable to separation. We evaluate InflEns on a corpus assembled from seven safety-related benchmarks, which demonstrates that the highest-share expert has the lowest held-out response negative log-likelihood (NLL) on approximately 90% of prompts across four kernels under a sharpened simplex representation, compared with approximately 15% after permuting allocations across prompts. We demonstrate that the method performs comparably to published learned gates without having to train an explicit gate on the experts. Because the router is fixed, we can trace harmful behavior to a single expert and retrain only that expert, which lowers HarmBench attack success from 0.51 to 0.02 while keeping instruction following. The game also gives us several controls over how the experts specialize, including the kernel choice and its parameters, the trait-space geometry, and the number of experts. Importantly, InflEns is a general framework that can be extended to any encoder and data distribution.
Figures & tables
| Top 1 (%) | Top 2 (%) | Top 3 (%) | Spearman | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Kernel | obs. | null | obs. | null | obs. | null | obs. | null | |
| 1.00 (dense) | Gaussian | 86.3 0.6 | 15.1 | 95.2 0.3 | 26.4 | 97.7 0.3 | 39.7 | 0.719 0.014 | 0.204 |
| Hyperbolic | 87.1 0.3 | 15.0 | 96.4 0.2 | 27.3 | 98.4 0.1 | 41.3 | 0.641 0.008 | 0.146 | |
| Dirichlet | 82.9 1.3 | 15.2 | 92.6 0.5 | 26.2 | 95.8 0.4 | 39.2 | 0.729 0.010 | 0.206 | |
| Product-beta | 83.2 1.8 | 15.2 | 93.0 0.6 | 26.2 | 96.1 0.5 | 39.3 | 0.725 0.015 | 0.206 | |
| 0.35 (dispersed) | Gaussian | 90.5 0.4 | 15.4 | 96.7 0.1 | 28.7 | 98.2 0.2 | 44.1 | 0.518 0.020 | 0.069 |
Appendix figures & tables43 assets
Supplementary material from the paper’s appendix.
Appendix
| Trait | Source | Signal | |
|---|---|---|---|
| Harm | BeaverTails-30k ( Ji et al., 2023 ) | response unsafe in any harm category | 5,000 |
| Hallucination | HaluEval QA and dialogue ( Li et al., 2023 ) | faithful versus hallucinated response | 5,000 |
| Jailbreak | JBB-Behaviors ( Chao et al., 2024 ) | harmful versus benign goal | 200 |
| Privacy | AI4Privacy PII-Masking-200k ( ai4Privacy, 2023 ) | character fraction covered by PII spans | 5,000 |
| Over-refusal | OR-Bench 80k and toxic ( Cui et al., 2025 ) | seemingly toxic benign prompt versus toxic control | 3,155 |
| Injection | Prompt Injection Threat Matrix ( Jajoo, 2026 ) | binary malicious-injection label | 5,000 |
| Source | Train | Training target |
|---|---|---|
| BeaverTails | 3,500 | 1,999 unsafe responses, 1,501 safe responses |
| HaluEval | 3,500 | 1,747 hallucinated answers, 1,753 correct answers |
| AI4Privacy | 3,500 | privacy-masking responses |
| Prompt Injection Threat Matrix | 3,500 | the prompt itself (2,588 injection attempts) |
| Do-Not-Answer with Alpaca-Cleaned | 3,500 | the prompt itself |
| OR-Bench | 2,208 | the prompt itself |
| Single expert | Mixture | Oracle | Top-1 | |||||
|---|---|---|---|---|---|---|---|---|
| Split | all | train | all | train | all | train | all | train |
| seed 0 | 0.1168 | 0.1048 | 0.1286 | 0.1227 | 0.1427 | 0.1423 | 90.1 | 86.9 |
| dseed1 | 0.1165 | 0.1080 | 0.1306 | 0.1270 | 0.1471 | 0.1482 | 88.7 | 87.6 |
| dseed2 | 0.1217 | 0.1150 | 0.1332 | 0.1302 | 0.1465 | 0.1458 | 89.4 | 89.0 |
| Pseudo-Fisher experts | PCA experts | |||||
|---|---|---|---|---|---|---|
| Gate | Seq. mixture | Argmax | Top-1 | Seq. mixture | Argmax | Top-1 |
| InflEns shares (nothing fitted) | 1.9026 | 1.9220 | 0.823 | 1.9189 | 1.9391 | 0.782 |
| Gaussian | 1.8975 | 1.9146 | 0.844 | 1.9116 | 1.9375 | 0.785 |
| X-MoE cosine | 1.8975 | 1.9150 | 0.844 | 1.9113 | 1.9372 | 0.785 |
| Dense softmax | 1.8997 | 1.9198 | 0.827 | 1.9132 | 1.9392 | 0.781 |
| DeepSeek-V3 | 1.9022 | 1.9260 | 0.817 | 1.9183 | 1.9405 | 0.779 |
| Arm | Pairs per prompt | Selection | Loss weight | |
|---|---|---|---|---|
| Soft all-7, weighted | 7 | all pairs | ||
| Soft top-3, weighted | 3 | three largest | ||
| Soft top-3, unit | 3 | three largest | 1 | |
| Hard top-3 (sampled) | 3 | drawn | 1 | |
| Hard top-1 (SFT) | 1 | drawn | 1 |
| Pairs | PA gain | PF gain | EA gain | EA top-1 | EA top-3 | PF top-1 | Oracle |
|---|---|---|---|---|---|---|---|
| 2 | 89.5 | 100.0 | 87.4 | 0.057 | |||
| 3 | 87.5 | 100.0 | 82.9 | 0.078 | |||
| 4 | 87.5 | 99.0 | 87.0 | 0.105 | |||
| 5 | 91.9 | 98.4 | 90.9 | 0.127 | |||
| 6 | 95.2 | 99.1 | 95.2 | 0.143 | |||
| 7 | 89.5 | 98.1 | 90.1 | 0.145 |
| Kernel | Pairs | Expected | Mixture | Oracle | Top-1 | Top-3 |
|---|---|---|---|---|---|---|
| Gaussian | 7 | 1.9012 | 1.8910 | 1.8759 | 0.904 | 0.981 |
| 15 | 1.9181 | 1.8941 | 1.8614 | 0.599 | 0.938 | |
| Hyperbolic | 7 | 1.9032 | 1.8919 | 1.8760 | 0.892 | 0.985 |
| 15 | 1.9218 | 1.8981 | 1.8603 | 0.596 | 0.934 | |
| Dirichlet | 7 | 1.8986 | 1.8868 | 1.8727 | 0.901 | 0.982 |
| 15 | 1.9188 | 1.8955 | 1.8604 | 0.589 | 0.931 |
| Arm and routing | NLL | Gain |
|---|---|---|
| Per-benchmark experts, centroid routing | 1.9777 | |
| Per-benchmark experts, benchmark classifier | 1.9512 | |
| Per-benchmark experts, true benchmark label | 1.9294 | |
| Per-benchmark experts, hindsight best expert | 1.9223 | |
| Game, one routed pair | 1.8977 | |
| Game, hindsight best expert | 1.8727 |
| Gate | As specified | Router | Best component |
|---|---|---|---|
| Dense softmax | 1.9531 | 1.8864 | 1.9675 |
| DeepSeek-V3 | 1.9277 | 1.8931 | 1.9403 |
| Mixtral top-2 | 1.9423 | 1.8951 | 1.9212 |
| Noisy top-2 | 2.0973 | 1.9117 | 1.9208 |
| Switch top-1 | 1.9798 | 1.9645 | 2.2296 |
| Gaussian gate | 1.9206 | — | 1.9550 |
| Gate | Mean | SD | vs game |
|---|---|---|---|
| Dense softmax | 1.8893 | 0.0002 | |
| DeepSeek-V3 | 1.8876 | 0.0053 | |
| Mixtral top-2 | 2.1120 | 0.0991 | |
| Noisy top-2 | 1.9178 | 0.0010 | |
| Switch top-1 | 1.8947 | 0.0003 | |
| Gaussian gate | 1.8795 | 0.0005 |
| Router | Game-gated components | Separate experts | Difference |
|---|---|---|---|
| InflEns shares, all components | 1.9085 | 1.8899 | |
| InflEns shares, top-2 | 1.9088 | 1.8901 | |
| X-MoE cosine, fitted on these experts | 1.8951 | 1.8782 | |
| Gaussian, fitted on these experts | 1.8962 | 1.8795 | |
| Dense softmax, fitted on these experts | 1.9066 | 1.8893 | |
| Oracle (best expert per prompt) | 1.8906 | 1.8727 |
| Gate | Blended NLL | Gain over pooled | Oracle NLL |
|---|---|---|---|
| Dense softmax, learned | |||
| InflEns shares, fixed | |||
| Mixtral top-2, learned | |||
| Switch top-1, learned | |||
| One upcycled expert, no gate |
| Router | Level | Blended NLL | Gain over pooled |
| InflEns shares, fixed | prompt | 2.0070 | |
| Dense softmax, learned | prompt | 2.0059 | |
| Switch top-1, learned | prompt | 2.0593 | |
| Dense softmax with InflEns log-shares as a fixed prior | token | 2.065 | |
| Dense softmax, prior annealed to zero by round 6 | token | 2.091 | |
| Dense softmax, learned from scratch | token | 2.116 |
| Arm | 1 epoch ( ) | 7 epochs ( ) |
|---|---|---|
| Pooled generalist | 2.0154 | 3.39 |
| Dense softmax gate | 1.8864 | 3.0601 |
| DeepSeek-V3 gate | 1.8931 | 3.0202 |
| InflEns shares as a fixed gate | 1.9110 | 2.9894 |
| Game, seven pairs (separate experts, ) | 1.8899 | |
| Arm | Training tokens | vs pooled | Wall-clock | Passes per prompt |
|---|---|---|---|---|
| Pooled generalist | 1.36 M | 25 min | 1 | |
| Per-benchmark experts | 1.36 M | 16 min | 1 | |
| Jointly trained gate | 1.36 M | 53 min | 1 | |
| InflEns shares as a fixed gate | 1.36 M | 49 min | 1 / 2 / 7 | |
| Game, seven pairs | 9.50 M | 110 min | 1 / 2 / 7 |
| Family | Comparison made | Salient qualification |
|---|---|---|
| InflEns (ours) | Seven game-positioned rank-16 LoRA pairs; the solved allocation weights training and routes inference, with no fitted gate. | Seed-0 split: completed-sequence mixture NLL 1.9059 and hard commitment 1.9298, against 2.0152 pooled. |
| Same-expert nulls | Uniform mixture, shuffled expert identities, uniform random hard choice, game allocation, and hindsight oracle on fixed expert losses. | Separates expert diversity from the prompt–expert mapping; one-split offline analysis. |
| Frozen gate | Validation-fitted linear soft-target and best-expert gates on frozen experts, replicated on four splits. | Stronger game result under single-expert commitment; full probability mixing is unresolved. |
| BASE-style assignment | Proportional versus quota-balanced assignment ( Lewis et al., 2021 ) crossed with fixed versus strategically updated positions. | All four cells start at the same equilibrium; entropic OT is not implemented. |
| Balanced c-BTM | Balanced versus unconstrained train-only clusters ( Gururangan et al., 2023 ) ; dense, top-3, and hard centroid inference. | Fixed-partition clustering, not the online soft-k-means position control. |
| EWoRA-style | Seven jointly trained rank-16 components ( Kohli et al., 2025 ) with a dense trait-conditioned gate versus a pooled rank-112 adapter. | Mechanism-level implementation; smaller micro-batch at matched effective batch size. |
| Positions | Assignment | Expected NLL | Mixture NLL |
|---|---|---|---|
| Strategic updates ( InflEns ) | Proportional | 1.9426 | 1.9059 |
| Fixed | Proportional | 1.9425 | 1.9064 |
| Fixed | Balanced | 2.0294 | 1.9847 |
| Strategic updates | Balanced | 2.0297 | 1.9827 |
| Partition | Dense | Top-3 | Hard ( ) | Oracle envelope |
|---|---|---|---|---|
| InflEns (game allocation) | 1.9059 | 1.9066 | 1.9298 | |
| Unconstrained | 1.9564 | 1.9568 | 1.9785 | |
| Balanced | 1.9647 | 1.9654 | 1.9937 |
| Model | Model NLL |
|---|---|
| InflEns , hard commitment to one pair | 1.9298 |
| Pooled rank-112 | 1.9737 |
| EWoRA-style, dense trait gate | 1.9712 |
| MoDULA-Res | 1.9909 |
| MoLoRA, token/layer top-3 | 1.9955 |
| MoLoRA, token/layer dense | 2.0029 |
| Policy | NLL | Gain over pooled |
|---|---|---|
| Pooled-seed mixture, 2 members | 1.9988 | |
| Pooled-seed mixture, 3 members | 1.9898 | |
| Pooled-seed mixture, 4 members | 1.9847 | |
| InflEns mixture, 7 pairs | 1.9057 |
| Policy | Token-level NLL | Completed-sequence NLL |
|---|---|---|
| Pooled rank-16, one adapter | 2.0152 | 2.0152 |
| InflEns , one game, 7 components | 1.9103 | 1.9059 |
| InflEns , five-game ensemble, 35 components | 1.8600 | 1.8460 |
| Data seed | Top 1 | Top 3 | Spearman | Uniform-to-oracle span |
|---|---|---|---|---|
| 0 | 0.711 | 0.962 | 0.617 | 69.0% |
| 1 | 0.728 | 0.961 | 0.594 | 68.1% |
| 2 | 0.719 | 0.956 | 0.597 | 69.2% |
| Permuted allocation | 0.144 | 0.413 | 0.121 | % |
| Pair | Benchmark mix of the prompts it wins | Gain | What it handles |
|---|---|---|---|
| 0 | privacy 99% | 0.056 | requests involving personal data |
| 1 | hallucination 98% | 0.109 | knowledge questions and dialogue grounding |
| 2 | injection 100% | 0.248 | prompt-injection attempts |
| 3 | policy violation 98% | 0.155 | questions a model should decline |
| 4 | over-refusal 92% | 0.162 | benign prompts that sound dangerous |
| 5 | policy violation 41%, harm 31%, jailbreak 9% | 0.048 | mixed harmful-intent requests |
| Model | HarmBench | StrongREJECT | IFEval |
| InflEns , original corpus | 0.508 | 0.455 | 0.309 |
| Pair 5 edited, one epoch | 0.016 | 0.099 | 0.298 |
| Pair 5 edited, three epochs | 0.016 | 0.103 | 0.299 |
| Pair 5 edited, harm-source targets only | 0.031 | 0.121 | 0.305 |
| Pair 6 edited | 0.508 | 0.400 | 0.309 |
| Wrong-expert control (pair 0 on pair 5’s records) | 0.503 | 0.457 | 0.324 |
| XSTest | |||||
|---|---|---|---|---|---|
| Model | HarmBench | StrongREJECT | IFEval | Safe refused | Unsafe complied |
| InflEns , original corpus | 0.508 | 0.455 | 0.309 | 0.004 | 0.950 |
| Pair 5 reset to the base model | 0.063 | 0.128 | 0.314 | 0.106 | 0.829 |
| Pair 5 edited, quarter epoch | 0.016 | 0.107 | 0.290 | 0.106 | 0.819 |
| Pair 5 edited, one epoch | 0.016 | 0.099 | 0.298 | 0.068 | 0.819 |
| Pairs 5 and 6 edited | 0.016 | 0.050 | 0.299 | 0.309 | 0.121 |
| XSTest | |||||
| Model | HarmBench | StrongREJECT | IFEval | Safe refused | Unsafe complied |
| InflEns , harm sources retrained | 0.021 | 0.035 † | 0.292 † | 0.335 | 0.060 |
| InflEns , original corpus | 0.508 | 0.456 † | 0.309 † | 0.004 | 0.950 |
| Dense gate, harm sources retrained | 0.011 † | 0.014 † | 0.266 | 0.348 | 0.080 |
| Dense gate, original corpus | 0.419 † | 0.489 † | 0.294 | 0.000 | 0.970 |
| Pooled adapter, harm sources retrained | 0.016 † | 0.037 † | 0.261 | 0.411 | 0.055 |
| Model | HarmBench | Change | StrongREJECT | Change |
| Pair 5 edited, one epoch | 0.046 | 0.138 | ||
| Pair 5 edited, three epochs | 0.041 | 0.118 | ||
| Pairs 4, 5 and 6 edited | 0.046 | 0.039 | ||
| Wrong-expert control (pair 0 on pair 5’s records) | 0.608 | 0.521 | ||
| Pooled adapter, unedited | 0.582 | 0.519 | ||
| Dense gate, unedited | 0.294 | 0.394 |
| Solution NLL | Answer accuracy | |||||
|---|---|---|---|---|---|---|
| Model | Original | Removed | Safe resp. | Original | Removed | Safe resp. |
| InflEns , token-level mixture | 0.716 | 0.735 | 0.775 | 0.425 | 0.413 | 0.403 |
| InflEns , one routed expert | 0.723 | 0.749 | 0.787 | 0.428 | 0.419 | 0.397 |
| Pooled adapter | 0.742 | 0.786 | 0.754 | 0.194 | 0.192 | 0.350 |
| Dense softmax gate | 0.792 | 0.755 | 0.773 | 0.177 | 0.278 | 0.300 |
| New dataset | Trained category | Pooled | InflEns mixture | Dense gate | To category expert | |
|---|---|---|---|---|---|---|
| PKU-SafeRLHF | harm | 955 | 1.901 | 1.931 | 1.886 | 0.26 (0.84) |
| TruthfulQA | hallucination | 817 | 2.144 | 2.075 | 2.145 | 0.16 (0.98) |
| Jailbreak classification | jailbreak | 400 | 2.662 | 2.667 | 2.666 | 0.20 (1.00) |
| PII-Masking-300k | privacy | 1,000 | 1.607 | 1.621 | 1.634 | 0.90 (0.98) |
| XSTest | over-refusal | 434 | 2.365 | 2.253 | 2.156 | 0.03 (0.93) |
| deepset prompt injections | injection | 662 | 3.584 | 3.468 | 3.463 | 0.13 (0.94) |
| Harm sources | Labelled axes fitted on | Pooled | InflEns mixture | Harm expert | Oracle | Routed | In-dist. gain |
|---|---|---|---|---|---|---|---|
| One | responses and prompts | 1.8969 | 1.9511 | 1.8972 | 1.8862 | 0.23 | 0.105 |
| One | prompts only | 1.8969 | 1.9543 | 1.8954 | 1.8830 | 0.21 | 0.111 |
| Two | responses and prompts | 1.9248 | 1.9591 | 1.9075 | 1.8964 | 0.24 | 0.104 |
| Two | prompts only | 1.9248 | 1.9547 | 1.9069 | 1.8954 | 0.18 | 0.106 |