Evaluating Implicit Biases in LLM Reasoning through Logic Grid Puzzles

Fatima Jahara, Mark Dredze, Sharon Levy

TL;DR

While modern LLMs are increasingly "safety-aligned" to avoid explicit prejudice, they still harbor implicit social biases that act as "reasoning shortcuts." This paper introduces PRIME, a framework using logic grid puzzles to demonstrate that models reason significantly more accurately when solutions align with gender stereotypes than when they contradict them.

What Problem Does This Paper Address?

Current safety guardrails are effective at blocking overtly biased outputs (e.g., refusing to say "men are better doctors than women"). However, subtler forms of bias—implicit biases—often emerge during complex reasoning tasks.

The challenge is that existing benchmarks for bias are often subjective or too simple to catch these nuances. If a model reaches a "reasonable" conclusion, it’s hard to tell if it used pure logic or relied on a demographic stereotype to get there. The authors seek to quantify how these hidden associations create "cognitive friction" or "shortcuts" that compromise the reliability of LLM decision-making in sensitive fields like law or mentorship.

Methods

The authors propose PRIME (Puzzle Reasoning for Implicit Biases in Model Evaluation), which leverages logic grid puzzles (also known as Zebra Puzzles or Einstein’s Riddle).

The core innovation is the creation of puzzle triplets. For every logical structure, they generate three versions:

  1. Generic (G): Uses neutral placeholders (e.g., "Person A," "Person B").
  2. Stereotypical (S): Aligns names and attributes with common gender stereotypes (e.g., "Alice is a nurse," "Ben is a doctor").
  3. Anti-stereotypical (AS): Reverses those associations (e.g., "Alice is a doctor," "Ben is a nurse").

Because the underlying logic is identical across all three versions, any difference in performance can be attributed directly to the influence of the social cues. To evaluate performance, they use a granular Edit Distance (ED) metric, which counts the number of "swaps" required to fix a model's incorrect grid, rather than a simple binary correct/incorrect score.

Datasets

The researchers introduced a new dataset of 6,048 puzzles ranging in complexity from 2x3 to 4x4 grids.

  • Names ($C_N$): 120 common U.S. male and female names.
  • Bias-Probing Categories ($C_{BP}$): 21 categories including occupations, hobbies, and household chores (e.g., "Doctor" vs. "Nurse," "BBQ" vs. "Salad").
  • General Categories ($C_G$): 83 demographically neutral categories (e.g., "Dinosaurs," "Weather conditions") used as control variables.

Key Insights and Ideas

  • Stereotypes as Shortcuts: Models consistently perform best on Stereotypical puzzles and worst on Anti-stereotypical ones. This suggests that LLMs aren't just "biased" in their opinions; they use stereotypes as a heuristic to bypass difficult logical steps.
  • The "Friction" of Reality: When a puzzle requires a model to conclude something that contradicts a stereotype (the AS version), the model experiences "friction," leading to higher error rates even though the logic is no more difficult than the neutral version.
  • Scaling Doesn't Solve Fairness: While larger models (like LLaMA-3.1-70B) are more logically capable than smaller ones (8B), they still exhibit significant performance gaps between S and AS puzzles. Scaling improves accuracy but does not inherently guarantee fairness.
  • Bias Diffusion: While bias is strongest in the specific categories being probed (like occupation), the authors found that these biases "diffuse" into the general, neutral parts of the reasoning process, slightly degrading overall logical performance.

Key Results

  • Performance Gap: Across all model families (LLaMA, Qwen, Mixtral, Gemini), there was a statistically significant drop in accuracy for Anti-stereotypical puzzles.
  • Chain-of-Thought (CoT) Mitigation: Prompting models to "think step-by-step" reduced the average bias difference by 58.9%. However, it did not eliminate it, and the bias gap widened as puzzles became more complex.
  • Model Comparison: LLaMA-3.1-70B and Mixtral-8x22B were among the most robust, while Qwen-2.5-72B showed the highest sensitivity to stereotypical cues.
  • Safety Guardrail Failure: The authors tested LLaMA-Guard-4-12B on the puzzles. It flagged only 1 or 2 out of 504 puzzles as "unsafe," failing to detect the implicit biases that were clearly affecting the models' reasoning.

Limitations and Future Work

  • Binary Focus: The study currently focuses on binary gender (man/woman) and English-sounding names, which limits its generalizability to non-binary identities and other cultures.
  • Linguistic Reasoning Only: The framework currently tests categorical/linguistic logic. The authors suggest future work should incorporate spatial or numerical reasoning clues.
  • Expansion of Bias Types: Future iterations of PRIME could be adapted to study racial, religious, or nationalistic biases by curating different sets of names and associated attributes.

Summary updated

BibTeX
@inproceedings{jahara2026evaluating,
  author = {Fatima Jahara and Mark Dredze and Sharon Levy},
  title = {{Evaluating Implicit Biases in LLM Reasoning through Logic Grid Puzzles}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2026},
  doi = {10.18653/v1/2026.findings-acl.571},
}
Figure