Papers › A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Language

A Percolation Model of Emergence: Analyzing Transformers Trained on a Formal Language

22 Aug 2024arXiv:2408.12578archive 2025-07-28

Ekdeep Singh Lubana, Kyogo Kawaguchi, Robert P. Dick, Hidenori Tanaka

Increase in data, size, or compute can lead to sudden learning of specific capabilities by a neural network -- a phenomenon often called "emergence''. Beyond scientific understanding, establishing the causal factors underlying such emergent capabilities is crucial to enable risk regulation frameworks for AI. In this work, we seek inspiration from study of emergent properties in other fields and propose a phenomenological definition for the concept in the context of neural networks. Our definition implicates the acquisition of general structures underlying the data-generating process as a cause of sudden performance growth for specific, narrower tasks. We empirically investigate this definition by proposing an experimental system grounded in a context-sensitive formal language and find that Transformers trained to perform tasks on top of strings from this language indeed exhibit emergent capabilities. Specifically, we show that once the language's underlying grammar and context-sensitivity inducing structures are learned by the model, performance on narrower tasks suddenly begins to improve. We then analogize our network's learning dynamics with the process of percolation on a bipartite graph, establishing a formal phase transition model that predicts the shift in the point of emergence observed in our experiments when changing the data structure. Overall, our experimental and theoretical frameworks yield a step towards better defining, characterizing, and predicting emergence in neural networks.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2408.12578")

Code

Syntology Ran 10 of 18 code samples harvested from 1 repository linked to this paper; 8 have no recorded run. Of those that ran: 10 ran with no contract checked.

By repository: official repository: 18 samples from 1 repository, 10 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

ekdeepslubana/conceptpercolation officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

18 samples harvested; 10 ran; 0 honoured the contract we drafted; 8 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

10ran
8unverified

Licence: 18 of the 18 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from ekdeepslubana/conceptpercolation. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

alter_prior ekdeepslubana/conceptpercolation/dgp/utils.py official repository ran no licence file found · pointer only · cb0f06438dd56197 · report
configure_optimizers ekdeepslubana/conceptpercolation/utils/optimizer.py official repository ran no licence file found · pointer only · 58b140e77a3c276d · report
define_prior ekdeepslubana/conceptpercolation/dgp/utils.py official repository ran no licence file found · pointer only · 4138f619ef3ab02c · report
gatherConceptClassesVocab ekdeepslubana/conceptpercolation/dgp/makeConceptClasses.py official repository ran no licence file found · pointer only · ce0adca2d57fa688 · report
get_related_classes ekdeepslubana/conceptpercolation/dgp/makeConceptClasses.py official repository ran no licence file found · pointer only · 0b133320a05541c6 · report
log_eval ekdeepslubana/conceptpercolation/utils/logging.py official repository ran no licence file found · pointer only · 2bfb710bb962ad1f · report
log_train ekdeepslubana/conceptpercolation/utils/logging.py official repository ran no licence file found · pointer only · 9bd052ffab65710d · report
move_to_device ekdeepslubana/conceptpercolation/utils/optimizer.py official repository ran no licence file found · pointer only · 24269a87e2a91c2b · report
unscramble_evals ekdeepslubana/conceptpercolation/evals/evals.py official repository ran no licence file found · pointer only · 5a56255ec83244a2 · report
update_cosine_warmup_lr ekdeepslubana/conceptpercolation/utils/optimizer.py official repository ran no licence file found · pointer only · 3c92d51c6ed00e7a · report
dividePropertiesIntoConceptClasses ekdeepslubana/conceptpercolation/dgp/partition_properties.py official repository unverified no licence file found · pointer only · 4691d054215c80c0 · report
getConceptClasses ekdeepslubana/conceptpercolation/dgp/makeConceptClasses.py official repository unverified no licence file found · pointer only · 9bb25aa3cc2d9102 · report
get_dataloader ekdeepslubana/conceptpercolation/dgp/dataloader.py official repository unverified no licence file found · pointer only · 5b09eab94a750d76 · report
grammar_evals ekdeepslubana/conceptpercolation/evals/evals.py official repository unverified no licence file found · pointer only · 75df13c1795b5b4e · report
llhood_evals ekdeepslubana/conceptpercolation/evals/evals.py official repository unverified no licence file found · pointer only · 51dbc6fbac1a278e · report
open_log ekdeepslubana/conceptpercolation/utils/logging.py official repository unverified no licence file found · pointer only · 440b99365913df86 · report
top_k_sampling ekdeepslubana/conceptpercolation/model/model.py official repository unverified no licence file found · pointer only · e976b74fcd2ef4f0 · report
top_k_top_p_filtering ekdeepslubana/conceptpercolation/model/model.py official repository unverified no licence file found · pointer only · 4088666d0047518a · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections