Whose doctor does the AI recommend? An algorithm audit of reputation and demographic signals in large language model-assisted physician choice
Organizations: Heidelberg University, Heidelberg, Germany · Fandaqah, Al Khobar, Saudi Arabia
Abstract
Patients increasingly ask large language model (LLM) assistants which doctor to see, making these systems AI infomediaries: algorithms that intermediate one person's choice among other people and thereby decide, silently and at scale, which physicians become visible. We report a prespecified randomized algorithm audit of what causally moves those recommendations. Seven models (six open-weight; gpt-4o-mini) each chose among five synthetic family-medicine physician cards whose attributes were independently randomized across 3,024 choice sets, three patient personas, nine prompt paraphrases and nine experimental arms, yielding 40,068 scored responses; gender and ethnicity were signaled through names following correspondence-audit methodology. Reputation signals dominate: raising a rating from 3.9 to 4.7 increases choice probability by 31.4 percentage points (pp), and raising the fee from 190 lowers it by 20.0 pp. Demographic parity is rejected, but not in the direction human audit studies predict: female-signaled names gain 2.5 pp, and Hispanic-, South-Asian- and Black-signaled names gain 1.3-2.9 pp over White-signaled names, tilts worth 14 per visit in fee-equivalent terms, and a content-free first-listed position is worth $11. Yet models mentioned gender or ethnicity in at most 0.03% of their stated reasons and abstained in 0.39% of trials, so these effects are invisible in the models' own explanations, and transparency obligations relying on model self-report would not detect them. One reasoning model failed the prespecified auditability gate outright. The frozen design makes the audit repeatable: any new model can be assessed against identical stimuli, making recurring behavioural audit, rather than self-reported explanation, the monitoring technology fit for purpose.
Figures & tables
| Model | card_reversed | field_order | grounded | letter | main | nopersona | rank_top3 | retest | temp0 |
|---|---|---|---|---|---|---|---|---|---|
| gemma3:4b | 0.0 | 0.0 | 0.0 | 0.0 | 0.8 | 0.0 | 0.0 | 0.0 | 0.0 |
| gpt-4o-mini | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| llama3.1:8b | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 |
| llama3.2:3b | 0.0 | 0.0 | 0.0 | 1.7 | 0.0 | 0.0 | 0.7 | 0.0 | 0.0 |
| mistral:7b-instruct-q4_K_M | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 14.1 | 32.0 | 0.0 |
| phi3:mini | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 0.0 | 7.1 | 0.0 | 0.0 |
| Model | Modal share | Entropy |
|---|---|---|
| gemma3:4b | 0.993 | 0.015 |
| gpt-4o-mini | 0.967 | 0.064 |
| llama3.1:8b | 0.919 | 0.155 |
| llama3.2:3b | 0.856 | 0.295 |
| mistral:7b-instruct-q4_K_M | 0.732 | 0.560 |
| phi3:mini | 0.822 | 0.368 |
| Attribute | AMCE (pp) | 95% CI | |
|---|---|---|---|
| Rating 4.3 (vs 3.9) | 8.06 | [7.34, 8.78] | ¡.001 |
| Rating 4.7 (vs 3.9) | 31.38 | [30.48, 32.29] | ¡.001 |
| 85 reviews (vs 12) | 4.79 | [3.93, 5.64] | ¡.001 |
| 400 reviews (vs 12) | 8.44 | [7.56, 9.31] | ¡.001 |
| Recent review (vs 11 mo.) | 3.80 | [3.09, 4.51] | ¡.001 |
| Responds to patient feedback | 2.09 | [1.37, 2.80] | ¡.001 |
| Hypothesis | Wald | df | (raw) | (Holm) |
|---|---|---|---|---|
| H1_rating | 4636.25 | 2 | ¡.001 | ¡.001*** |
| H2_volume | 363.61 | 2 | ¡.001 | ¡.001*** |
| H3_recency | 111.31 | 1 | ¡.001 | ¡.001*** |
| H4_response | 32.42 | 1 | ¡.001 | ¡.001*** |
| H5_network | 0.88 | 1 | .349 | .349 |
| H6_price | 1745.92 | 2 | ¡.001 | ¡.001*** |
| Attribute | Range (pp) | Share |
|---|---|---|
| Patient rating | 31.38 | 0.377 |
| Visit fee | 20.02 | 0.241 |
| Review volume | 8.44 | 0.101 |
| List position | 6.83 | 0.082 |
| Recency | 3.80 | 0.046 |
| Ethnicity (name-signaled) | 2.88 | 0.035 |
| Gender ethnicity cell | AMCE (pp) | 95% CI | TOST | |
|---|---|---|---|---|
| White male (ref.) | 0.00 | – | – | – |
| Black male | 0.52 | [-1.02, 2.05] | .510 | .104 |
| Hispanic male | 1.74 | [0.19, 3.30] | .028 | .620 |
| East Asian male | 0.77 | [-0.79, 2.32] | .333 | .177 |
| South Asian male | 2.41 | [0.81, 4.01] | .003 | .868 |
| White female | 1.81 | [0.26, 3.35] | .022 | .651 |
| Model | Abstain (%) | Demographic-aware (%) | |
|---|---|---|---|
| gemma3:4b | 3024 | 0.0 | 0.0 |
| gpt-4o-mini | 3024 | 0.0 | 0.0 |
| llama3.1:8b | 3024 | 0.1 | 0.0 |
| llama3.2:3b | 3024 | 0.0 | 0.0 |
| mistral:7b-instruct-q4_K_M | 3024 | 0.6 | 0.0 |
| phi3:mini | 3024 | 1.2 | 0.1 |
| Term | Coef. (pp) | SE (pp) | |
|---|---|---|---|
| Position 2 (vs 1) | 4.42 | 3.50 | .206 |
| Position 3 (vs 1) | 7.95 | 3.59 | .027 |
| Position 4 (vs 1) | 3.99 | 3.44 | .246 |
| Position 5 (vs 1) | 1.24 | 3.30 | .707 |
| Letter B (vs A) | 0.82 | 3.68 | .824 |
| Letter C (vs A) | 2.90 | 3.75 | .438 |
| Attribute | Pooled | New in town | Chronic care | Budget |
|---|---|---|---|---|
| Rating 4.3 (vs 3.9) | 40.3 [36.1, 44.6] | 85.2 [72.5, 100.4] | 93.0 [78.8, 110.0] | 14.2 [10.3, 18.1] |
| Rating 4.7 (vs 3.9) | 156.8 [147.4, 167.2] | 366.4 [321.9, 425.1] | 343.5 [301.3, 396.6] | 46.5 [42.1, 51.1] |
| 85 reviews (vs 12) | 23.9 [19.4, 28.5] | 66.6 [52.4, 83.1] | 57.3 [43.3, 73.3] | 4.3 [0.4, 8.2] |
| 400 reviews (vs 12) | 42.2 [37.2, 47.3] | 106.5 [89.4, 127.1] | 105.9 [89.0, 126.2] | 7.6 [3.6, 11.7] |
| Recent review (vs 11 mo.) | 19.0 [15.4, 22.7] | 42.6 [31.3, 55.6] | 41.8 [30.6, 54.2] | 6.8 [3.5, 10.0] |
| Responds to patient feedback | 10.4 [6.9, 14.1] | 13.7 [3.0, 25.1] | 22.3 [11.7, 33.0] | 5.7 [2.3, 9.1] |
| Haiku 4.5 | Sonnet 5 | Opus 4.8 | Fable 5 | |
|---|---|---|---|---|
| Rating 3.9 | 0.01 | 0.00 | 0.01 | 0.01 |
| Rating 4.3 | 0.14 | 0.18 | 0.18 | 0.16 |
| Rating 4.7 | 0.43 | 0.40 | 0.39 | 0.40 |
| Fee $90 | 0.36 | 0.37 | 0.35 | 0.35 |
| Fee $140 | 0.17 | 0.17 | 0.17 | 0.17 |
| Fee $190 | 0.06 | 0.05 | 0.08 | 0.08 |
Large Language Model-Based Recommendation
Large language model-based recommendation uses language models to personalize ranking, retrieval, and conversational suggestions from text and behavior.
See all 210 papers