Papers › End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without...

End-to-end Algorithm Synthesis with Recurrent Networks: Logical Extrapolation Without Overthinking

11 Feb 2022arXiv:2202.05826archive 2025-07-28

Arpit Bansal, Avi Schwarzschild, Eitan Borgnia, Zeyad Emam, Furong Huang, Micah Goldblum, Tom Goldstein

Machine learning systems perform well on pattern matching tasks, but their ability to perform algorithmic or logical reasoning is not well understood. One important reasoning capability is algorithmic extrapolation, in which models trained only on small/simple reasoning problems can synthesize complex strategies for large/complex problems at test time. Algorithmic extrapolation can be achieved through recurrent systems, which can be iterated many times to solve difficult reasoning problems. We observe that this approach fails to scale to highly complex problems because behavior degenerates when many iterations are applied -- an issue we refer to as "overthinking." We propose a recall architecture that keeps an explicit copy of the problem instance in memory so that it cannot be forgotten. We also employ a progressive training routine that prevents the model from learning behaviors that are specific to iteration number and instead pushes it to learn behaviors that can be repeated indefinitely. These innovations prevent the overthinking problem, and enable recurrent systems to solve extremely hard extrapolation tasks.

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="2202.05826")

Code

Syntology Ran 0 of 18 code samples harvested from 1 repository linked to this paper; 18 have no recorded run.

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

aks2203/deep-thinking officialmentioned in papermentioned on GitHubpytorchMIT 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; 0 ran; 0 honoured the contract we drafted; 18 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.

18unverified

Licence: 0 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 aks2203/deep-thinking. “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.

dt_net_1d aks2203/deep-thinking/deepthinking/models/dt_net_1d.py official repository unverified MIT (permissive) · f7945168c1ba42ae · report
dt_net_2d aks2203/deep-thinking/deepthinking/models/dt_net_2d.py official repository unverified MIT (permissive) · 72bc1b13ede1f48f · report
dt_net_gn_1d aks2203/deep-thinking/deepthinking/models/dt_net_1d.py official repository unverified MIT (permissive) · cb8d7cd07dcb373e · report
dt_net_gn_2d aks2203/deep-thinking/deepthinking/models/dt_net_2d.py official repository unverified MIT (permissive) · 3157b448da0db767 · report
dt_net_recall_1d aks2203/deep-thinking/deepthinking/models/dt_net_1d.py official repository unverified MIT (permissive) · 2745fbdd05dd78c5 · report
dt_net_recall_2d aks2203/deep-thinking/deepthinking/models/dt_net_2d.py official repository unverified MIT (permissive) · 5efe7003a1ae9fce · report
feedforward_net_1d aks2203/deep-thinking/deepthinking/models/feedforward_net_1d.py official repository unverified MIT (permissive) · d906e24e377f708e · report
feedforward_net_2d aks2203/deep-thinking/deepthinking/models/feedforward_net_2d.py official repository unverified MIT (permissive) · e88c13ba29fae08d · report
feedforward_net_gn_1d aks2203/deep-thinking/deepthinking/models/feedforward_net_1d.py official repository unverified MIT (permissive) · fffa340d37ae79ea · report
feedforward_net_gn_2d aks2203/deep-thinking/deepthinking/models/feedforward_net_2d.py official repository unverified MIT (permissive) · 0359c5b8a9eddda2 · report
feedforward_net_recall_1d aks2203/deep-thinking/deepthinking/models/feedforward_net_1d.py official repository unverified MIT (permissive) · c31bd413c9229009 · report
feedforward_net_recall_2d aks2203/deep-thinking/deepthinking/models/feedforward_net_2d.py official repository unverified MIT (permissive) · a0cc6c49618902d6 · report
get_df aks2203/deep-thinking/deepthinking/data_analysis/make_table.py official repository unverified MIT (permissive) · 04c48fd8b7c02d03 · report
get_little_df_from_one_run aks2203/deep-thinking/deepthinking/data_analysis/make_table.py official repository unverified MIT (permissive) · 077d9b81c2525794 · report
get_schoopy_plot aks2203/deep-thinking/deepthinking/data_analysis/make_schoop.py official repository unverified MIT (permissive) · 5b24b1cc9133ef6d · report
get_table aks2203/deep-thinking/deepthinking/data_analysis/make_table.py official repository unverified MIT (permissive) · 340e568d6e6480c5 · report
get_trained_checkpoints aks2203/deep-thinking/deepthinking/data_analysis/get_names_and_info.py official repository unverified MIT (permissive) · 2a9ba28a21829bcb · report
get_trained_checkpoints aks2203/deep-thinking/deepthinking/data_analysis/parse_training_runs.py official repository unverified MIT (permissive) · 96cfe7a14410ae6d · report

Tasks

Logical Reasoning

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