atlas

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

Towards a theory of how the structure of language is acquired by deep neural networks

NeurIPS 2024 · Large language models › Language, safety and interpretability · approach: Controlled text generation · 1 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.

Analytically derives token-token correlation decay in a Random Hierarchy Model (PCFG) and shows a finite training set yields an effective context window, predicting stepwise loss and scaling laws that are checked on synthetic data, tiny-Shakespeare and WikiText-103.

Problem

How much data is needed for next-token prediction to learn the hierarchical structure of a language, and why do test loss scaling laws with training set size and context length arise?

Approach

Shows that token correlations in a Random Hierarchy Model decay stepwise (power law in distance) and that finite training set size P limits resolvable correlations to an effective context window t*(P) ~ P^{1/z}; deeper hidden variables are learned as P grows, producing loss steps and a context-dependent scaling law L(P,t)=t^{-alpha z} f(P/t^z).

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
increase the context windowTransformer trained on tiny-Shakespeare · tiny-Shakespearetest lossHelped
increase the context windowTransformer trained on WikiText-103 · WikiText-103test lossHelped
restrict the context window to size t (ablation)Transformer trained on RHM data · RHMtest lossHurt
remove residual connections, layer normalization, and MLPs between attention layers (ablation)Multi-layer self-attention network on RHM · RHMperformanceNo clear effect
increase the number of attention heads (ablation)Multi-layer self-attention network on RHM · RHMperformanceNo clear effect
increase the embedding dimension up to 4 n_h×v (ablation)Multi-layer self-attention network on RHM · RHMperformanceNo clear effect
increase the number of CNN channels (ablation)Deep CNN on RHM · RHMperformanceNo clear effect
increase the number of layers or attention heads (ablation)Encoder-only Transformer on real text · tiny-Shakespeare and WikiText-103performanceNo clear effect

Limitations

Experimental setup

Datasets: Random Hierarchy Model synthetic data tiny-Shakespeare WikiText-103

Benchmarks: tiny-Shakespeare WikiText-103

Metrics: test cross-entropy loss token-token correlation function relative sensitivity of representations

Baselines: n-gram language model

Builds on: Random Hierarchy Model BERT maximal update parametrization

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