Skip to main content
QUICK REVIEW

[Paper Review] Faith and Fate: Limits of Transformers on Compositionality

Nouha Dziri, Ximing Lu|arXiv (Cornell University)|May 29, 2023
Topic ModelingComputer Science71 citations
TL;DR

The paper analyzes transformer LLMs on three compositional tasks (long-form multiplication, Einstein’s puzzle, and a dynamic programming problem) and shows that they rely on linearized subgraph matching rather than true multi-step reasoning, with performance collapsing as task complexity grows and little evidence that training induces robust compositional understanding.

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.

Motivation & Objective

  • Investigate whether autoregressive transformers genuinely perform multi-step compositional reasoning.
  • Quantify the complexity of compositional tasks via computation graphs and graph metrics.
  • Assess whether training (zero-shot, few-shot, finetuning, scratchpads) yields robust, generalizable compositional problem solving.

Proposed method

  • Represent compositional tasks as computation graphs to decompose problems into subproblems.
  • Define reasoning depth and width from the graph to measure task complexity.
  • Use Relative Information Gain to predict surface patterns models might memorize.
  • Evaluate zero-shot, few-shot, and finetuned transformers on three tasks with verbalized scratchpads.
  • Analyze training data exposure of partial computations to assess reliance on pattern matching.

Experimental results

Research questions

  • RQ1Do transformers solve compositional tasks via true multi-step reasoning or through linearized subgraph matching?
  • RQ2How does task complexity, as captured by computation graphs, affect transformer performance?
  • RQ3Can task-specific finetuning or scratchpad reasoning enable robust generalization beyond in-domain distributions?
  • RQ4What error types do transformers exhibit as reasoning depth increases?
  • RQ5Do models memorize intermediate subgraphs from training, hindering generalization to unseen compositions?

Key findings

  • Transformers' zero-shot and few-shot accuracies dramatically deteriorate as problem size increases.
  • Finetuning GPT-3 on in-domain data yields high in-domain accuracy but fails to generalize to out-of-domain, more complex graphs.
  • Explicit scratchpad guidance boosts in-domain performance but does not generalize to larger or wider graphs.
  • Model analyses show errors mostly arise from propagation of early mistakes rather than single-step issues, indicating shallow memorization rather than holistic planning.
  • Full computation subgraphs seen in training correlate with correct predictions, suggesting reliance on pattern matching rather than true compositional understanding.
  • Theoretical propositions show exponential decay in correct predictions with increasing composition depth, implying intrinsic limits of autoregressive transformers for complex composition.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.