atlas

Research map / Large language models / Agents, code and math

ZebraLogic: On the Scaling Limits of LLMs for Logical Reasoning

ICML 2025 · Large language models › Agents, code and math · approach: Mathematical and structural reasoning benchmarks · 1 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Introduces ZebraLogic, a generated benchmark of 1,000 logic grid puzzles from CSPs with controllable complexity, and evaluates LLMs and test-time compute scaling, finding a "curse of complexity" where accuracy collapses on large search spaces.

Problem

Understanding how well LLMs perform pure logical deduction and how their reasoning scales with problem complexity, independent of domain knowledge and with verifiable answers.

Approach

Generate logic grid (Zebra/Einstein) puzzles from CSPs with a SAT-based minimal-clue procedure, so that complexity is controlled by search space size and Z3 conflict count, and use this to study model size, repeated sampling, and hidden reasoning-token scaling.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase puzzle search-space complexityLLMs evaluated on ZebraLogic · ZebraLogic, Small to X-Largepuzzle-level accuracy: o1-full: 97.2 -> 42.5; DeepSeek-R1: 98.4 -> 28.5Hurt
Scale model size from smaller Llama models to Llama-3.1-405BLlama models · ZebraLogic Large and X-Largepuzzle-level accuracy: Llama-3.1-405B: 1.5 Large, 0.0 X-LargeNo clear effect
Use oracle selection among 128 samples instead of one greedy GPT-4o answerGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 69.1Helped
Use majority voting across 32 samples instead of one greedy GPT-4o answerGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 38.0Helped
Increase majority-vote sample count from 32 to 128GPT-4o · ZebraLogicpuzzle-level accuracy: 38.0 -> 37.6Hurt
Select among 32 samples using a reward model instead of one greedy GPT-4o answerGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 33.9Helped
Add one self-verification turnGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 33.0Helped
Repeat self-verification twice rather than using the original GPT-4o answerGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 32.1Helped
Use oracle-guided self-verification instead of one greedy GPT-4o answerGPT-4o · ZebraLogicpuzzle-level accuracy: 31.7 -> 34.8Helped
Use oracle selection among 128 samples instead of one greedy GPT-4o-mini answerGPT-4o-mini · ZebraLogicpuzzle-level accuracy: 20.1 -> 51.2Helped
Use majority voting across 32 samples instead of one greedy GPT-4o-mini answerGPT-4o-mini · ZebraLogicpuzzle-level accuracy: 20.1 -> 24.5Helped
Generate substantially more hidden reasoning tokens at inferenceo1 models versus GPT-4o models · ZebraLogicmean hidden reasoning tokens: 5,144.6; 5,346.3; 502.9; 543.7Mixed

Surprising findings

Limitations

Experimental setup

Datasets: ZebraLogic

Benchmarks: ZebraLogic

Metrics: puzzle-level accuracy cell-level accuracy pass@k

Baselines: GPT-4o GPT-4o-mini Claude Sonnet 3.5 Gemini-1.5-Pro Mistral-Large-2 Qwen2.5-72B DeepSeek-v2.5 Gemma-2-27B Phi-3.5

Builds on: Z3 Best-of-N sampling chain-of-thought

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy