atlas

Research map / Large language models / Retrieval and knowledge

Grokking in the Wild: Data Augmentation for Real-World Multi-Hop Reasoning with Transformers

ICML 2025 · Large language models › Retrieval and knowledge · approach: Knowledge graph reasoning with LLMs · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Extends grokking to real-world multi-hop QA by synthetically augmenting 2WikiMultiHopQA (Wiki2Hop) with LLM-generated atomic and inferred facts to raise the inferred-to-atomic ratio, then training a GPT-2-small-style Transformer from scratch long enough to grok.

Problem

Transformers struggle with implicit multi-step factual reasoning on real-world sparse knowledge; grokking has only been shown on small synthetic tasks, and real KGs lack enough inferred facts relative to atomic facts to trigger it.

Approach

Augment sparse real-world KG-style facts from 2WikiMultiHopQA with LLM-generated atomic and inferred facts so the per-relation ratio phi_r exceeds the grokking threshold, then train a small GPT-2-style model long enough to exhibit a late-phase OOD accuracy jump.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add synthetic data augmentation and train until grokkingGPT2-Small · 2WikiMultiHopQA Comparison OODaccuracy: 0.59 -> 0.96Helped
Add synthetic data augmentation and train until grokkingGPT2-Small · 2WikiMultiHopQA Composition OODaccuracy: 0.03 -> 0.07Mixed
Add synthetic data augmentation and train until grokkingGPT2-Small · 2WikiMultiHopQA Average OODaccuracy: 0.31 -> 0.52Helped
Train on original structured comparison data without augmentation (ablation)GPT2-Small · 2WikiMultiHopQA Comparison OODaccuracyNo clear effect
Use structured compositional tasks instead of structured comparison tasksGrokked GPT2-Small · 2WikiMultiHopQA OODaccuracy: 0.96 -> 0.07Hurt
Use unstructured full-paragraph text instead of structured tripletsGrokked GPT2-Small · 2WikiMultiHopQA Comparison OODaccuracyHurt
Compare Grokked GPT2-Small with GPT-4o2WikiMultiHopQA Comparison · 2WikiMultiHopQA Comparisonaccuracy: 0.87 -> 1.00Helped
Compare Grokked GPT2-Small with o1-mini2WikiMultiHopQA Composition · 2WikiMultiHopQA Compositionaccuracy: 0.32 -> 0.93; 0.07Mixed

Surprising findings

Limitations

Experimental setup

Datasets: 2WikiMultiHopQA Wiki2Hop

Benchmarks: 2WikiMultiHopQA

Metrics: accuracy (in-distribution and out-of-distribution)

Baselines: GPT2-Small GPT-4o o1-mini

Builds on: grokking 2WikiMultiHopQA AdamW

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy