atlas

Research map / Large language models / Language, safety and interpretability

Quantifying Generalization Complexity for Large Language Models

ICLR 2025 · Large language models › Language, safety and interpretability · approach: LLM pruning and scaling data

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.

Introduces Scylla, a dynamic, knowledge-light, memorization-aware framework that measures LLM generalization via ID-vs-OOD performance gaps across 20 algorithmic tasks at five time-complexity levels, revealing a "generalization valley" whose peak (critical complexity) shifts right with model size, and benchmarks 28 LLMs.

Problem

Generalization of LLMs is entangled with memorization and data contamination, and existing reasoning benchmarks conflate task length with intrinsic complexity, so it is unclear how task complexity and model size affect the balance between generalizable and memorized behavior.

Approach

Scale task difficulty by algorithmic time complexity (with input length controlled), generate ID data by querying the model itself for inputs it is familiar with, and create OOD data by sampling numbers outside the model's ID element set; the ID-OOD accuracy gap serves as a memorization indicator, yielding a generalization valley and critical complexity.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Increase model size within open-source model familiesOpen-source LLMs evaluated with Scylla · Scylla task complexitiesCritical ComplexityHelped
Increase task complexityLLMs evaluated with Scylla · ID-OOD performance gap across anchor-task complexity levelsID-OOD performance gapMixed
Use GPT-4o-mini instead of GPT-4oGPT-4o · Scylla critical complexityCritical ComplexityHelped
Fine-tune Qwen2.5-7B for mathematicsQwen2.5-7B · Scylla O(N) and O([N,N^2])Generalization Score: 0.617 -> 0.971; 0.632 -> 0.874Helped
Fine-tune Qwen2.5-7B for codeQwen2.5-7B · Scylla O(N) and O([N,N^2])Generalization Score: 0.617 -> 0.969; 0.632 -> 0.832Helped
Fine-tune Qwen2.5-7B for mathematicsQwen2.5-7B · Scylla O([N^2,N^3])Generalization Score: 0.514 -> 0.591Helped
Fine-tune Qwen2.5-7B for codeQwen2.5-7B · Scylla O([N^2,N^3])Generalization Score: 0.514 -> 0.205Hurt
Fine-tune Qwen2.5-7B for mathematicsQwen2.5-7B · Scylla O([N^3,N^4])Generalization Score: 0.122 -> 0.135Helped
Fine-tune Qwen2.5-7B for codeQwen2.5-7B · Scylla O([N^3,N^4])Generalization Score: 0.122 -> -0.021Hurt
Use Scylla evaluation across increasing task complexityLLMs evaluated on anchor tasks · ID-OOD performance gapID-OOD performance gapMixed

Surprising findings

Limitations

Experimental setup

Datasets: model-generated ID inputs (about 10k prompts, about 100k elements per task) synthetic OOD inputs sampled from [0, 9999]

Benchmarks: Scylla

Metrics: accuracy generalization score ID-OOD performance gap critical complexity

Baselines: CLRS-Text NPHardEval DyVal LiveBench

Builds on: zero-shot chain-of-thought CLRS-Text NPHardEval DyVal

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