paper-with-me

Papers

Can Transformers Reason Logically? A Study in SAT Solving

2024-10-09 · Leyan Pan, Vijay Ganesh, Jacob Abernethy, Chris Esposo, Wenke Lee

We formally study the logical reasoning capabilities of decoder-only Transformers in the context of the boolean satisfiability (SAT) problem. First, we prove by construction that decoder-only Transformers can decide 3-SAT, in a non-uniform model of computation, using backtracking and deduction via Chain-of-Thought (CoT). %We prove its correctness by showing trace equivalence to the well-known DPLL SAT-solving algorithm. Second, we implement our construction as a PyTorch model with a tool (PARAT) that we designed to empirically demonstrate its correctness and investigate its properties. Third, rather than \textit{programming} a transformer to reason, we evaluate empirically whether it can be \textit{trained} to do so by learning directly from algorithmic traces (``reasoning paths'') from our theoretical construction. The trained models demonstrate strong out-of-distribution generalization on problem sizes seen during training but has limited length generalization, which is consistent with the implications of our theoretical result

📄 PDF Abstract BibTeX arXiv:2410.07432

Code (0)

등록된 구현이 없습니다.

Tasks

DecoderLogical ReasoningOut-of-Distribution Generalization

Methods 이 논문이 사용한 방법론

Attention 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Residual Connection 설명 없음
Position-Wise Feed-Forward Layer 설명 없음
Adam 설명 없음
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…

Similar Papers 제목 키워드 기반

How Does Unfaithful Reasoning Emerge from Autoregressive Training? A Study of Synthetic Experiments

2026-02-01 · Fuxin Wang, Amr Alazali, Yiqiao Zhong arxiv

Chain-of-thought (CoT) reasoning generated by large language models (LLMs) is often unfaithful: intermediate steps can be logically inconsistent or fail to reflect the causal relationship leading to the final answer. Des…

Unraveling the ARC Puzzle: Mimicking Human Solutions with Object-Centric Decision Transformer

2023-06-14 · JaeHyun Park, Jaegyun Im, Sanha Hwang, Mintaek Lim 외

In the pursuit of artificial general intelligence (AGI), we tackle Abstraction and Reasoning Corpus (ARC) tasks using a novel two-pronged approach. We employ the Decision Transformer in an imitation learning paradigm to …

ARCClusteringImitation Learningobject-detection+1

Minimalist Softmax Attention Provably Learns Constrained Boolean Functions

2025-05-26 · Jerry Yao-Chieh Hu, Xiwen Zhang, Maojiang Su, Zhao Song 외

We study the computational limits of learning $k$-bit Boolean functions (specifically, $\mathrm{AND}$, $\mathrm{OR}$, and their noisy variants), using a minimalist single-head softmax-attention mechanism, where $k=\Theta…

Transformers self-organize like newborn visual systems when trained in prenatal worlds

2026-01-06 · Lalit Pandey, Samantha M. W. Wood, Justin N. Wood arxiv

Do transformers learn like brains? A key challenge in addressing this question is that transformers and brains are trained on fundamentally different data. Brains are initially "trained" on prenatal sensory experiences (…

What Algorithms can Transformers Learn? A Study in Length Generalization

2023-10-24 · Hattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin 외

Large language models exhibit surprising emergent generalization properties, yet also struggle on many simple reasoning tasks such as arithmetic and parity. This raises the question of if and when Transformer models can …