Skip to main content
QUICK REVIEW

[论文解读] Faith and Fate: Limits of Transformers on Compositionality

Nouha Dziri, Ximing Lu|arXiv (Cornell University)|May 29, 2023
Topic ModelingComputer Science被引用 71
一句话总结

该论文在三个组合任务(长乘法、爱因斯坦的穷举难题,以及一个动态规划问题)上分析变换器大型语言模型,并显示它们依赖线性化的子图匹配而非真正的多步推理,随着任务复杂性增加性能崩溃,且几乎没有证据表明训练会产生鲁棒的组合理解。

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.

研究动机与目标

  • 探究自回归变换器是否真正执行多步组合推理。
  • 通过计算图和图度量量化组合任务的复杂性。
  • 评估训练(零-shot、少-shot、微调、scratchpads)是否能产生鲁棒且可泛化的组合问题求解。

提出的方法

  • 将组合任务表示为计算图,以将问题分解为子问题。
  • 从图中定义推理深度和宽度以衡量任务复杂性。
  • 使用相对信息增益来预测模型可能记忆的表层模式。
  • 在有口头化草稿的情况下,对三项任务评估零-shot、少-shot和微调后的变换器。
  • 分析部分计算的训练数据暴露以评估对模式匹配的依赖。

实验结果

研究问题

  • RQ1变换器是通过真正的多步推理解决组合任务,还是通过线性化的子图匹配解决?
  • RQ2由计算图体现的任务复杂性如何影响变换器性能?
  • RQ3特定任务的微调或草稿推理能否实现对域内以外分布的鲁棒泛化?
  • RQ4随着推理深度增加,变换器表现出哪些类型的错误?
  • RQ5模型是否会记住训练中的中间子图,阻碍对未见组合的泛化?

主要发现

  • 随着问题规模的增加,变换器的零-shot和少-shot准确率显著下降。
  • 在域内数据上对GPT-3进行微调可获得较高的域内准确率,但对域外更复杂的图泛化能力不足。
  • 明确的草稿提示提升了域内性能,但对更大或更宽的图不具泛化性。
  • 对模型的分析显示错误更多源于早期错误的传播,而非单步问题,表明是浅层记忆而非整体规划。
  • 训练中见到的完整计算子图与正确预测相关,暗示依赖模式匹配而非真正的组合理解。
  • 理论命题表明随着组合深度增加正确预测呈指数衰减,暗示自回归变换器在复杂组合上的固有极限。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。