Differential Item Functioning as an Item-Level Diagnostic for LLM Benchmarks
Abstract
Comparative claims about large language model (LLM) performance are typically based on aggregate benchmark scores. Models with similar scores, however, may succeed on systematically different items. We examine these differences using Differential Item Functioning (DIF), a psychometric diagnostic that flags items whose relative difficulty differs across groups after conditioning on a specified matching variable. Applying Mantel--Haenszel DIF analyses to six widely used LLM benchmarks across two open-weight model families (Llama and Qwen), with overall benchmark performance as the matching variable. More than 40\% of items were flagged as DIF in five of the six benchmarks, suggesting that Llama and Qwen models with similar overall scores differ substantially in which items they answer correctly. We examined two benchmarks, BBH and MuSR, more closely to understand why some questions favored Llama and others favored Qwen. We found that question type and correct-answer position helped predict which family performed better. For example, across BBH tasks with Yes/No answers, Qwen chose "No" more often than Llama. Using only question type and correct-answer position, we trained classifiers on questions with large DIF to predict which family unseen questions would favor. When we evaluated the families on questions predicted to favor each, either family substantially outperformed the other despite nearly tied overall scores. Our results show that aggregate benchmark scores can summarize different item-level performance patterns across model populations, and that DIF offers a useful diagnostic for surfacing this variation and investigating its consequences for model comparisons.