Can Large Language Models Reinvent Foundational Algorithms?
On the map: LLM safety and security → Machine unlearning
Abstract (arXiv)
LLMs have shown strong potential to advance scientific discovery. Whether they possess the capacity for foundational innovation, however, remains an open question. In this work, we focus on a prerequisite for foundational innovation: textitcan LLMs reinvent foundational algorithms in computer science? We use LLM unlearning methods to suppress direct recall of the target algorithm and let the model reason with the remaining knowledge to recover it. Although unlearning does not guarantee full knowledge removal, LLMs fail to recover nearly half of the target algorithms. Notably, even suppressing the mention of the algorithm's name during decoding without unlearning makes the models' recovery rate drop dramatically (19--39%), suggesting their overreliance on memorized knowledge. We observe that recoverable algorithms tend to be simple in structure or core ideas, whereas the others are less straightforward. We also introduce a generative verifier that sustains models' reasoning strength, helping to avoid the ``thought collapse'' phenomenon. Taken together, by treating the unlearned model's recovery rate as an approximate upper bound, our empirical results suggest that current LLM systems still have limited ability to make foundational algorithm innovation. Our code is available at https://github.com/Algo-Reinvention/algo-reinvention.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Machine unlearning, one of 12 directions in LLM safety and security. Builds on 24 of its 44 references that are in the map. First posted on arXiv 7 Apr 2026.
Builds on
24 of 44 references.
Closest ancestors · 13
Same direction, newest first
- 2026Reinforcement Unlearning via Group Relative Policy Optimization28 Jan
- 2025Wisdom is Knowing What not to Say: Hallucination-Free LLMs Unlearning via Attention Shifting20 Oct
- 2025Understanding the Dilemma of Unlearning for Large Language Models29 Sep
- 2025Unlearning as Ablation: Toward a Falsifiable Benchmark for Generative Scientific Discovery25 Aug
- 2025RULE: Reinforcement UnLEarning Achieves Forget-Retain Pareto Optimality8 Jun
- 2025Unlearning vs. Obfuscation: Are We Truly Removing Knowledge?5 May
- 2025Improving LLM Unlearning Robustness via Random Perturbations31 Jan
- 2024Simplicity Prevails: Rethinking Negative Preference Optimization for LLM Unlearning9 Oct
- 2024MUSE: Machine Unlearning Six-Way Evaluation for Language Models8 Jul
- 2024Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning8 Apr
- 2024Machine Unlearning of Pre-trained Large Language Models23 Feb
- 2024TOFU: A Task of Fictitious Unlearning for LLMs11 Jan
Other references · 11
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 8,393
- 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
- 2022Editing Models with Task Arithmeticcited by 1,076
- 2024The AI Scientist: Towards Fully Automated Open-Ended Scientific Discoverycited by 1,002
- 2025DeepSeek-V3.2: Pushing the Frontier of Open Large Language Modelscited by 755
- 2024Generative Verifiers: Reward Modeling as Next-Token Predictioncited by 465
- 2024Safety Alignment Should Be Made More Than Just a Few Tokens Deepcited by 450
- 2024Can LLMs Generate Novel Research Ideas? A Large-Scale Human Study with 100+ NLP Researcherscited by 348
- 2026Learning to Discover at Test Timecited by 94
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2024Rethinking Machine Unlearning for Large Language Models
- 2025Rethinking LLM Advancement: Compute-Dependent and Independent Paths to Progress
- 2025LLM Unlearning Reveals a Stronger-Than-Expected Coreset Effect in Current Benchmarks
- 2025Can Language Models Falsify? Evaluating Algorithmic Reasoning with Counterexample Creation
- 2024Can Large Language Models Invent Algorithms to Improve Themselves?: Algorithm Discovery for Recursive Self-Improvement through Reinforcement Learning
- 2025Evaluating Frontier LLMs on PhD-Level Mathematical Reasoning: A Benchmark on a Textbook in Theoretical Computer Science about Randomized Algorithms
- 2024WAGLE: Strategic Weight Attribution for Effective and Modular Unlearning in Large Language Models
- 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights