# Faith and Fate: Limits of Transformers on Compositionality

Source: [Faith and Fate: Limits of Transformers on Compositionality](<https://www.sota2.com/research/paper/68fa71101e209131cea4f066>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2026-01-02T04:06:02.660Z

Authors: Nouha Dziri, Ximing Lu, Melanie Sclar, Xiang Lorraine Li, Liwei Jiang, Bill Yuchen Lin, Peter West, Chandra Bhagavatula, Ronan Le Bras, Jena D. Hwang, Soumya Sanyal, Sean Welleck, Xiang Ren, Allyson Ettinger, Zaid Harchaoui, Yejin Choi

Published: 2023-05-29T23:24:14.000Z

## Abstract

Transformer large language models (LLMs) have sparked admiration for their exceptional performance on tasks that demand intricate multi-step reasoning. Yet, these models simultaneously show failures on surprisingly trivial problems. This begs the question: Are these errors incidental, or do they signal more substantial limitations? In an attempt to demystify transformer LLMs, we investigate the limits of these models across three representative compositional tasks -- multi-digit multiplication, logic grid puzzles, and a classic dynamic programming problem. These tasks require breaking problems down into sub-steps and synthesizing these steps into a precise answer. We formulate compositional tasks as computation graphs to systematically quantify the level of complexity, and break down reasoning steps into intermediate sub-procedures. Our empirical findings suggest that transformer LLMs solve compositional tasks by reducing multi-step compositional reasoning into linearized subgraph matching, without necessarily developing systematic problem-solving skills. To round off our empirical study, we provide theoretical arguments on abstract multi-step reasoning problems that highlight how autoregressive generations' performance can rapidly decay with\\,increased\\,task\\,complexity.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [Dynamic Programming on Dynamic Programming Sequence Length 4](<https://www.sota2.com/research/sota/dynamic-programming-on-dynamic-programming-sequence-length-4.md>): Dynamic Programming; Dynamic Programming Sequence Length 4; Accuracy: 100.

- [Dynamic Programming on Dynamic Programming Sequence Length 5](<https://www.sota2.com/research/sota/dynamic-programming-on-dynamic-programming-sequence-length-5.md>): Dynamic Programming; Dynamic Programming Sequence Length 5; Accuracy: 100.

- [Dynamic Programming on Dynamic Programming Sequence Length 6](<https://www.sota2.com/research/sota/dynamic-programming-on-dynamic-programming-sequence-length-6.md>): Dynamic Programming; Dynamic Programming Sequence Length 6; Accuracy: 22.

- [Dynamic Programming on Dynamic Programming Sequence Length 7](<https://www.sota2.com/research/sota/dynamic-programming-on-dynamic-programming-sequence-length-7.md>): Dynamic Programming; Dynamic Programming Sequence Length 7; Accuracy: 14.

- [Dynamic Programming Sequence Length 8](<https://www.sota2.com/research/sota/dynamic-programming-sequence-length-8.md>): Dynamic Programming; Dynamic Programming Sequence Length 8; Accuracy: 8.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2305.18654>)

[PDF](<https://arxiv.org/pdf/2305.18654.pdf>)

[Implementation](<https://github.com/nouhadziri/faith-and-fate>)
