[논문 리뷰] Is Grokking Worthwhile? Functional Analysis and Transferability of Generalization Circuits in Transformers
본 논문은 매개변수 공유 Transformer에서 grokking과 Generalization Circuits를 기계적으로 분석하고, grokking이 새로운 추론 패러다임을 시사하지 않으며 새로운 사실로의 전달 가능성이 제한적임을 보여준다. 또한 충분한 감독 하에서 비-그로크된 모델이 그로크된 모델과 대등한 성능을 달성할 수 있음을 시사한다.
While Large Language Models (LLMs) excel at factual retrieval, they often struggle with the "curse of two-hop reasoning" in compositional tasks. Recent research suggests that parameter-sharing transformers can bridge this gap by forming a "Generalization Circuit" during a prolonged "grokking" phase. A fundamental question arises: Is a grokked model superior to its non-grokked counterparts on downstream tasks? Furthermore, is the extensive computational cost of waiting for the grokking phase worthwhile? In this work, we conduct a mechanistic study to evaluate the Generalization Circuit's role in knowledge assimilation and transfer. We demonstrate that: (i) The inference paths established by non-grokked and grokked models for in-distribution compositional queries are identical. This suggests that the "Generalization Circuit" does not represent the sudden acquisition of a new reasoning paradigm. Instead, we argue that grokking is the process of integrating memorized atomic facts into an naturally established reasoning path. (ii) Achieving high accuracy on unseen cases after prolonged training and the formation of a certain reasoning path are not bound; they can occur independently under specific data regimes. (iii) Even a mature circuit exhibits limited transferability when integrating new knowledge, suggesting that "grokked" Transformers do not achieve a full mastery of compositional logic.
연구 동기 및 목표
- 변환기에서 grokking과 Generalization Circuits에 대한 이해를 자극한다.
- downstream 작업에서 grokked 모델이 비 grokked 모델보다 더 우수한지 조사한다.
- Generalization Circuits가 새로운 사실과 작업으로 전달되는지 검토한다.
- 학습된 추론의 보이지 않는 구성과 사실에 대한 전달 가능성을 평가한다.
제안 방법
- ID 및 OOD 분할이 있는 합성 2-단계 구성 추론 데이터셋을 사용한다.
- Generalization Circuits를 식별하기 위해 로짓 렌즈를 통한 내부 추론을 추적한다.
- 다양한 감독 체계에서 grokked 및 비-grokked 모델을 비교한다.
- 메커니즘 대 행동을 테스트하기 위해 OOD 사실로 학습을 보강한다.
- 새로운 원자 사실에 대해 사전 학습 모델을 미세조정하여 전달 가능성을 평가한다.

실험 결과
연구 질문
- RQ1grokked와 비-grokked 트랜스포머가 분포 내 및 분포 외 구성 질의에서 동일한 추론 경로를 사용하는가?
- RQ2Generalization Circuit가 새로운 추론 능력의 원인인가, 아니면 단지 기억화 통합 과정인가?
- RQ3Generalization Circuit가 보이지 않는 사실이나 새로운 구성 시나리오에 얼마나 전달 가능한가?
- RQ4전체 감독 또는 표적 보강으로 grokking 없이 grokked한 행동을 재현할 수 있는가?
- RQ5grokked 트랜스포머에서 새로운 지식으로의 일반화 추론 전달 가능성을 제한하는 요인은 무엇인가?
주요 결과
- 비-grokked 모델은 분포 내 데이터에서 grokked 모델과 동일한 추론 경로를 따르며 충분한 감독으로 동일한 전달 성능에 도달할 수 있다.
- Grokking은 반드시 Generalization Circuit와 연계되지 않으며, 모델이 의도된 메커니즘을 형성하지 않고 grokking과 유사한 행동을 보일 수 있다.
- Generalization Circuit를 형성한 후에도 새로운 사실에 대한 전달 가능성은 여전히 제한적이며 추가 grokking 또는 새로운 사실에 대한 상당한 데이터가 필요할 수 있다.
- 행동적 grokking은 기저 회로 없이도 발생할 수 있어 관찰된 grokking과 메커니즘 형성 간의 분리를 시사한다.
- 성숙한 Generalization Circuit은 일부 설정에서 새로운 사실의 빠른 통합을 돕지만, 도메인 전반에 걸친 구성적 숙련도를 보장하지는 않는다.
- 가짜 grokking 모델은 새로운 사실을 암기하지만 그 사실들로 구성적 추론을 지원하지 못한다.

이 논문 읽기
누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.
누빈트에서 이 논문 읽기이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.