LLM GerryMandering: Separating Interactions From Additive Effects in Audits
The habit of calling a combination worse than either identity alone flags plain addition as interaction; scored against an additive baseline instead, flagged cells in the 13 audited models fall from 7.1% to 3.0%.
On this page
You have a 738-cell report with 52 red cells, but the numbers do not tell you which are real interactions. Your manager wants to know which cells need a model fix, so you open one: transgender crossed with queer. The question is whether that cell is worse than the transgender cell and the queer cell because the two labels produce something new together, or because two effects that already existed happened to add up. Most people compare who fares worse, and by that rule almost every cell lights up.
Judge by Worse-Than-Either-Side and Almost Every Cell Flags
The paper starts with arithmetic. Suppose a model rates a woman 3 points higher on anxiety and a Muslim 4 points higher on depression. A Muslim woman then sits further from the reference point than either label alone [1]. That is what addition produces. Nothing new has happened.
Many audits use a rule that says a combination is a problem when it fares worse than each of its single identities. That rule mixes addition with emergence. The paper calls it the single-attribute baseline: each attribute's own effect is the yardstick.
The failure runs both ways. The paper proves that even when a cell sits exactly at its additive prediction, whether the excess is positive depends on the angle between the two shifts; with equal-length shifts, any angle below 120 degrees counts as positive [1]. Reverse the case and the excess turns negative, so a real interaction hides under the threshold.
The size of the problem is measurable. On synthetic data with no interaction planted, the excess is positive for 89.5% of cells in item space and 75.5% on scale scores [1]. A statistic whose expected value is positive under the null turns that null into a false-positive machine.
Swap the Baseline for a Model That Only Adds
The fix replaces the baseline itself. A linear regression is fitted over all six identity attributes, one coefficient per value, with no interaction term [1]. A persona's predicted score is the sum of its six coefficients.
Then look at the residual. Average the residuals of everyone in a cell, such as transgender and queer, and take the length of that mean vector: this is the additive residual distance, delta [1]. With no interaction it sits at zero up to noise. With an interaction it grows, and its length does not depend on direction, which is the property the excess lacks.
Why all six attributes? A cell can hold an unusual mix. If the transgender cell contains more low-income personas, a model using only those two labels would read the income shift as an interaction [1]. The full model subtracts that shift first.
The null matters as much as the statistic. The usual shuffle null permutes identity labels across personas, which removes main effects along with any interaction, so it asks whether identity matters at all [1]. This test has to ask whether two identities interact.
So the paper uses a Freedman-Lane null: keep each persona's fitted value, flip the sign of its residual at random, and add them back. Main effects survive and the interaction cancels. Repeat 2,000 times, refit, recompute delta, standardize each cell into a z score, and call a cell significant when its z beats the 95th percentile of the largest z across cells [1]. That handles two problems at once: small cells get comparable scores, and 738 simultaneous tests no longer mint false positives, keeping the family-wise error rate at 5%.
A Test With Known Answers: 66.1 False Cells Against 0.09
Real answers have no ground truth, so the paper builds data that do. The plasmode approach keeps the skeleton of real answers, preserves each attribute's own effect, and removes every interaction, so each cell becomes pure addition [1]. Any cell flagged in such data is a false positive by construction. There are 150 such datasets, 738 cells each.
The result: the excess with a shuffle null flags 66.1 false cells per dataset on average, and at least one in every dataset [1]. The additive residual distance flags 0.09. Repair the null but keep the excess and false cells fall to 0.03, yet recall drops to 32.4% against 84.4% for the distance. Both hold precision near 0.99, so the whole difference is recall.
| Statistic and null | Datasets with a false flag | False cells per dataset | Recall | Precision |
|---|---|---|---|---|
| Excess with shuffle null | 100% | 66.1 | 47.9% | 0.06 |
| Excess with Freedman-Lane null | 2.7% | 0.03 | 32.4% | 0.99 |
| Additive residual distance with Freedman-Lane null | 8.7% | 0.09 | 84.4% | 0.99 |
Read the table twice. Changing the null fixes false positives; changing the statistic fixes misses. Do only the first and you get a test that almost never fires, including on real interactions.
The answer scale is its own trap. Real responses are integers on a four- or five-point scale, and rounding continuous values into those bins creates departures from additivity by itself [1]. Every method gets worse, by very different amounts: the distance flags 20.0% of 150 rounded datasets, per-item regression with HC3 errors 99.3%, its classical version 100%, MAIHDA 96.7%, and PERMANOVA 73.3% [1]. Precision runs from 0.72 for the distance down to 0.02 for PERMANOVA.
| Method (rounded answers) | Datasets with a false flag | Precision |
|---|---|---|
| Additive residual distance (this paper) | 20.0% | 0.72 |
| Per-item regression (HC3 errors) | 99.3% | 0.20 |
| Per-item regression (classical errors) | 100% | 0.20 |
| MAIHDA | 96.7% | 0.28 |
| PERMANOVA | 73.3% | 0.02 |
Thirteen Models Audited: 3.0% Instead of 7.1%
The real audit uses a purpose-built persona set: 10,000 synthetic Indian personas with six attributes (gender identity, age, sexual orientation, socioeconomic status, caste, religion), assigned independently except that religion follows caste, each placed in one of 50 everyday scenes and rated on 82 questionnaire items [1]. Fourteen models answer, 13 open and 1 closed, at temperature zero. Only cells with at least 50 personas enter the test, which leaves 738.
Averaged over the 13 open models, the distance flags 22 of 738 cells on scale scores, 3.0%, and 55 in item space, 7.5% [1]. The single-attribute baseline with a shuffle null flags 52 per model, 7.1%, and the two tests agree on only about 9 cells. Most of the gap is addition being counted as interaction.
The flags cluster. Gender identity crossed with sexual orientation holds 12 cells, under 2% of those tested, and carries a third of all flags [1]. Three cells appear almost everywhere: transgender with queer and transgender with heterosexual in all 13 models under both representations, and man with queer in 12. On a fresh sample of 5,000 personas, all three return in five models in item space.
Direction is reported too. Under the main wording, models credit a queer transgender persona with more extraversion, agreeableness, and empathic concern than the two labels predict, and less anxiety; anxiety moves the same way in all 13 open models, lower by 0.28 points on the GAD-7, whose range is 0 to 21 [1]. That is a small number in questionnaire points, and delta stays large because the departure spreads across many scales and items.
Counterfactual quartets supply independent evidence: 250 base personas, each written four times with only two labels changed, and a difference-in-differences estimates the interaction [1]. Against a reference contrast (C4, adult to senior citizen, middle to upper middle class), the main contrast C1 runs about five times larger in all 13 models; C2 is larger in only 5; C3, Brahmin and rich to Dalit and poor, beats the reference in 12. The caste cell was too sparse for the observational test, so only the quartet found it.
What the Framework Cannot Measure: Five Gaps
First, it measures how a model attributes traits to a group, not harm [1]. A model assigning 0.28 more anxiety points and a hiring system rejecting an applicant are different events. That is the limit of the claim: a flag points at a pattern, not at an injury. The conclusion says as much, calling a flagged cell a candidate for scrutiny rather than an estimate of how much discrimination exists.
Second, the personas are synthetic and their attributes are assigned independently. In a real population these identities correlate heavily; independence buys enough people per cell and costs the real structure [1]. The paper also admits it produces contradictions, such as a man described as lesbian, and keeps them for estimability while warning that a flag there may reflect the model reacting to the contradiction.
Third, the answer depends on the scale. The same audit reports 3.0% on scale scores and 7.5% in item space [1]. Both are true of different questions: nine mood dimensions versus 66 to 82 items. The main interactions sit in the same place, but the proportions cannot be quoted interchangeably.
Fourth, on rounded answers the test misses its own target: a 20.0% dataset false-positive rate, far above the nominal 5%, and the authors advise confirming a lone flag on Likert data with an ordinal model [1]. Fifth, replication is partial. Only about half of flagged cells return on a fresh sample, and the lower-anxiety effect weakens or disappears once prompts are reworded [1]. Caste is weaker still: no caste cell holds in more than 4 of 13 models, and 47 caste-by-class cells went untested for too few personas.
Five Questions Before You Run an Intersectional Audit
- Ask what the null asks: whether identity matters, or whether two identities interact? They need different tests.
- Ask who the baseline is. If it is worse-than-either-side, addition counts as interaction; use an additive model over all attributes instead.
- Ask whether the cell is large enough. The paper sets the floor at 50 personas and leaves 47 caste-by-class cells untested; below it, switch to counterfactual pairs.
- Report how multiple comparisons were controlled. Seven hundred tests without a joint error rate is a false-positive harvest.
- Separate the conclusions: which combinations are differentially attributed, and which groups are harmed. The first is measurable here; the second needs another design.
The version someone who never runs a regression can repeat: two identities each shift the answer, and the shifts add up; a big gap is not evidence of something new. To test for something new, compute what addition alone predicts and measure the departure from that. One line worth a screenshot: do the addition first, then talk about interaction.
