[논문 리뷰] Faith and Fate: Limits of Transformers on Compositionality
본 논문은 세 가지 구성적 작업(장문 곱셈, 아인슈타인의 퍼즐, 동적 프로그래밍 문제)에서 transformer LLM을 분석하고, 이들이 실제 다단계 추론이 아닌 선형화된 하위 그래프 매칭에 의존하며, 작업 복잡도가 커질수록 성능이 붕괴하고, 훈련이 강건한 구성적 이해를 유도한다는 증거가 거의 없음을 보인다.
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.
연구 동기 및 목표
- 자회귀(autoregressive) transformers가 실제로 다단계 구성적 추론을 수행하는지 조사한다.
- 계산 그래프와 그래프 지표를 통해 구성적 작업의 복잡성을 정량화한다.
- 무샷, 소샷, 파인튜닝, scratchpads를 포함한 학습이 강건하고 일반화 가능한 구성적 문제 해결을 제공하는지 평가한다.
제안 방법
- 구성적 작업을 계산 그래프로 표현하여 문제를 하위 문제로 분해한다.
- 그래프로부터 추론의 깊이와 너비를 정의하여 작업의 복잡성을 측정한다.
- Relative Information Gain을 사용하여 모델이 암기할 수 있는 표면 패턴을 예측한다.
- 세 가지 작업에서 verbalized scratchpads를 사용하여 zero-shot, few-shot 및 미세 조정된 transformers를 평가한다.
- 부분 계산에 대한 학습 데이터 노출을 분석하여 패턴 매칭에 의존하는지 평가한다.
실험 결과
연구 질문
- RQ1변환기은 실제 다단계 추론을 통해 구성적 작업을 해결하는가, 아니면 선형화된 하위 그래프 매칭을 통해 해결하는가?
- RQ2계산 그래프에 의해 포착된 작업 복잡도가 변환기 성능에 어떤 영향을 미치는가?
- RQ3작업 특화 파인튜닝 또는 스크래치패드 추론이 도메인 내 분포를 넘어선 강건한 일반화를 가능하게 하는가?
- RQ4추론 깊이가 증가함에 따라 트랜스포머가 나타내는 오류 유형은 무엇인가?
- RQ5모델이 훈련에서 중간 하위 그래프를 암기하여 보지 못한 구성으로의 일반화를 방해하는가?
주요 결과
- 문제 크기가 증가함에 따라 transformers의 zero-shot 및 few-shot 정확도가 크게 저하된다.
- 도메인 내 데이터로 GPT-3를 파인튜닝하면 도메인 내 정확도가 높지만 도메인 외의 더 복잡한 그래프에 일반화하는 데 실패한다.
- 명시적 scratchpad 가이드는 도메인 내 성능을 높이지만 더 크거나 넓은 그래프에는 일반화되지 않는다.
- 모델 분석은 오류가 주로 초기 실수의 전파에서 기인함을 보여 주며 단일 단계의 문제가 아니라 얕은 암기(표면적 기억)로 인한 것임을 시사한다.
- 훈련에서 관찰된 전체 계산 하위 그래프가 정확한 예측과 상관관계가 있어, 진정한 구성 이해보다는 패턴 매칭에 의존함을 시사한다.
- 이론적 제안은 구성 깊이가 증가함에 따라 정확한 예측의 지수적 감소를 보여 주며, 복잡한 구성에 대해 autoregressive transformers의 고유한 한계를 시사한다.
이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.