atlas

Research map / Large language models / Reasoning and chain of thought

Can Transformers Reason Logically? A Study in SAT Solving

ICML 2025 · Large language models › Reasoning and chain of thought · approach: Long CoT dynamics and efficiency · 0 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.

Proves by construction that decoder-only Transformers can decide 3-SAT with chain-of-thought (DPLL-style backtracking and unit propagation), implements the construction via the PARAT NumPy-to-PyTorch compiler, and trains small LLaMA models on SAT CoT traces, finding intra-length OOD generalization but poor length generalization.

Problem

Whether decoder-only Transformers can perform reliable deductive logical reasoning, specifically deciding 3-SAT, using chain-of-thought with backtracking and deduction, and whether such reasoning can be learned from traces.

Approach

A theoretical construction of a decoder-only Transformer that simulates abstract DPLL (unit propagation plus backtracking) over all clauses in parallel via attention and MLP over clause/assignment vector encodings, with CoT length worst-case p·2^(p+1) and independent of clause count; plus a compiler (PARAT) that turns NumPy-style specs into transformer weights, and training experiments on the indu

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Train on CoT reasoning traces and test on a different SAT distribution at the same variable-count rangeTrained Transformer · 3-SAT; p∈[6,10] and p∈[11,15]SAT/UNSAT accuracyHelped
Train on CoT reasoning traces for p∈[6,10] and test on formulas with a different, larger number of variablesTrained Transformer · 3-SAT; length generalizationSAT/UNSAT accuracyHurt
Increase soft-attention scaling factor β (ablation)Compiled SAT solver · Marginal 3-SAT datasetsSAT/UNSAT accuracyHelped

Surprising findings

Limitations

Experimental setup

Datasets: 3-SAT marginal, random, and skewed formula datasets (custom generated, near clause/variable ratio 4.26)

Benchmarks: 3-SAT marginal/random/skewed evaluation sets for p in 4-20 (2000 samples each)

Metrics: SAT/UNSAT accuracy full trace correctness

Baselines: Compiled PARAT model

Builds on: DPLL RASP Tracr LLaMA

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