Evaluating Implicit Biases in LLM Reasoning through Logic Grid Puzzles

Fatima Jahara, Mark Dredze, Sharon Levy

Introduction

Modern Large Language Models (LLMs) are increasingly "safety-aligned" to prevent the generation of overtly biased or harmful content. While these models often pass explicit bias evaluations—refusing to endorse harmful stereotypes when asked directly—they frequently harbor implicit social biases. These biases manifest as "reasoning shortcuts," where models rely on demographic stereotypes to solve complex problems rather than applying pure logic. This paper introduces PRIME (Puzzle Reasoning for Implicit Biases in Model Evaluation), a framework designed to quantify how these hidden associations create "cognitive friction" and compromise the reliability of LLM decision-making.

The PRIME Framework

To move beyond subjective or overly simple bias benchmarks, the authors leverage logic grid puzzles (e.g., Zebra Puzzles). These puzzles require a model to map entities to attributes based on a set of clues. The core innovation of PRIME is the use of puzzle triplets. For every logical structure, three versions are generated:

  1. Generic (G): Uses neutral placeholders like "Person A" or "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 these associations (e.g., "Alice is a doctor," "Ben is a nurse").
Overview of the PRIME framework comparing explicit bias evaluation with implicit bias evaluation through logic puzzles.

Because the underlying logic is identical across all three versions, any variance in performance is directly attributable to the influence of social cues. Performance is measured using a granular Edit Distance (ED) metric, which calculates the number of swaps needed to correct a model's output grid, providing a more nuanced view than binary accuracy.

Stereotypes as Reasoning Shortcuts

The study reveals that LLMs consistently perform best on Stereotypical puzzles and worst on Anti-stereotypical ones. This suggests that models use stereotypes as heuristics to bypass difficult logical steps. When a puzzle requires a conclusion that contradicts a stereotype (the AS version), the model experiences "friction," leading to higher error rates even though the logical complexity remains unchanged.

Furthermore, the researchers found that these biases are not contained within the specific categories being probed (like occupations). Instead, they exhibit bias diffusion, where stereotypical cues degrade the model's performance on neutral, general parts of the reasoning process.

Key Results and Scaling

Across all tested model families—including LLaMA, Qwen, Mixtral, and Gemini—there was a statistically significant drop in accuracy for Anti-stereotypical puzzles. While larger models like LLaMA-3.1-70B demonstrate higher overall logical capability, they still exhibit significant performance gaps between S and AS puzzles. This indicates that scaling alone does not solve fairness; larger models may be more capable, but they remain susceptible to the same implicit shortcuts.

Bias-Correctness Plot showing model performance shifts between Stereotypical (S) and Anti-stereotypical (AS) puzzles.

Prompting models with Chain-of-Thought (CoT) reasoning proved to be a partial remedy, reducing the average bias difference by approximately 58.9%. However, CoT did not eliminate the bias entirely, and the gap widened as the logic puzzles grew in complexity (e.g., moving from 2x3 to 4x4 grids).

Conclusion

The PRIME framework demonstrates that current safety guardrails are insufficient for detecting implicit biases that affect reasoning. Standard safety models, such as LLaMA-Guard, failed to flag the vast majority of puzzles that clearly triggered biased reasoning in the LLMs. These findings highlight the need for more robust evaluation methods that look beyond explicit outputs to the underlying reliability of a model's logical processes, especially as LLMs are deployed in sensitive domains like law, medicine, and mentorship.

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