Fine-tuning Large Language Model for Automated Algorithm Design
Not on the map. Why?
Abstract (arXiv)
The integration of large language models (LLMs) into automated algorithm design has shown promising potential. A prevalent approach embeds LLMs within search routines to iteratively generate and refine candidate algorithms. However, most existing methods rely on off-the-shelf LLMs trained for general coding tasks, leaving a key question open: Do we need LLMs specifically tailored for algorithm design? If so, how can such LLMs be effectively obtained and how well can they generalize across different algorithm design tasks? In this paper, we take a preliminary step toward answering these questions by exploring fine-tuning of LLMs for algorithm design. We introduce a Diversity-Aware Rank-based (DAR) sampling strategy to balance training data diversity and quality, then we leverage direct preference optimization to efficiently align LLM outputs with task objectives. Our experiments are primarily conducted on Llama-3.2-1B-Instruct and Llama-3.1-8BInstruct across three distinct algorithm design tasks, with openPangu-Embedded models additionally included as auxiliary comparisons on the admissible set problem. Results suggest that fine-tuned LLMs can significantly outperform their off-the-shelf counterparts with the smaller Llama-3.2-1B-Instruct and match the larger Llama-3.1-8B-Instruct on the admissible set problem. Moreover, we observe promising generalization: LLMs fine-tuned on specific algorithm design tasks also improve performance on related tasks with varying settings. These findings highlight the value of task-specific adaptation for LLMs in algorithm design and open new avenues for future research. Our code is publicly available at https://github.com/RayZhhh/dpo-aad.
Key facts. Cited by 6 papers in the map (data through 14 Oct 2026). Builds on 26 of its 36 references that are in the map. First posted on arXiv 13 Jul 2025.
Builds on
26 of 36 references.
References · 26
- 2022Training language models to follow instructions with human feedbackcited by 15,971
- 2017Proximal Policy Optimization Algorithmscited by 15,215
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 8,065
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,944
- 2015Pointer Networkscited by 895
- 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 867
- 2024A Survey on Large Language Models for Code Generationcited by 658
- 2018Machine Learning for Combinatorial Optimization: a Methodological Tour d'Horizoncited by 623
- 2024Large Language Models for Mathematical Reasoning: Progresses and Challengescited by 284
- 2024ReEvo: Large Language Models as Hyper-Heuristics with Reflective Evolutioncited by 276
- 2024Evolution of Heuristics: Towards Efficient Automatic Algorithm Design Using Large Language Modelcited by 268
- 2021Learning to Optimize: A Primer and A Benchmarkcited by 208
14 more
- 2024ORLM: A Customizable Framework in Training Large Models for Automated Optimization Modelingcited by 124
- 2024LLaMEA: A Large Language Model Evolutionary Algorithm for Automatically Generating Metaheuristicscited by 97
- 2023RL4CO: an Extensive Reinforcement Learning for Combinatorial Optimization Benchmarkcited by 71
- 2024A Systematic Survey on Large Language Models for Algorithm Designcited by 69
- 2025Pangu Embedded: An Efficient Dual-system LLM Reasoner with Metacognitioncited by 62
- 2024Multi-objective Evolution of Heuristic Using Large Language Modelcited by 54
- 2023Algorithm Evolution Using Large Language Modelcited by 53
- 2024Multi-Task Learning for Routing Problem with Cross-Problem Zero-Shot Generalizationcited by 50
- 2025Algorithm Discovery With LLMs: Evolutionary Search Meets Reinforcement Learningcited by 46
- 2024LLM4AD: A Platform for Algorithm Design with Large Language Modelcited by 33
- 2025CALM: Co-evolution of Algorithms and Language Model for Automatic Heuristic Designcited by 29
- 2024Toward Automated Algorithm Design: A Survey and Practical Guide to Meta-Black-Box-Optimizationcited by 24
- 2024Understanding the Importance of Evolutionary Search in Automated Heuristic Design with Large Language Modelscited by 22
- 2024Evolve Cost-aware Acquisition Functions Using Large Language Modelscited by 17
Built on by
Citing papers per year: 2025: 2; 2026: 4.
6 papers.
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solvingcited by 11
- 2026Improving Coherence and Persistence in Agentic AI for System Optimizationcited by 7
- 2025AutoEP: LLMs-Driven Automation of Hyperparameter Evolution for Metaheuristic Algorithmscited by 4
- 2026Agentic ESOpt: Fine-Tuning Long-Horizon LLM Agents with Minimal GPU Requirementscited by 3
- 2026Rethinking Efficiency in Neural Combinatorial Optimization: Batched Preference Optimization with Mambacited by 0
- 2026From Search to Signal: Online Post-Training in Automatic Heuristic Designcited by 0
- 2026From Search to Signal: Online Post-Training in Automatic Heuristic Design30 Sep 2026
- 2026Agentic ESOpt: Fine-Tuning Long-Horizon LLM Agents with Minimal GPU Requirements18 Aug 2026
- 2026Improving Coherence and Persistence in Agentic AI for System Optimization22 Mar 2026
- 2026Rethinking Efficiency in Neural Combinatorial Optimization: Batched Preference Optimization with Mamba24 Feb 2026
- 2025AutoEP: LLMs-Driven Automation of Hyperparameter Evolution for Metaheuristic Algorithms27 Sep 2025
- 2025A Systematic Survey on Large Language Models for Evolutionary Optimization: From Modeling to Solving10 Sep 2025
Similar, not cited
Close in wording, no citation either way
- 2026FrontierOR: Benchmarking LLMs' Capacity for Efficient Algorithm Design in Large-Scale Optimization
- 2024The Ultimate Guide to Fine-Tuning LLMs from Basics to Breakthroughs: An Exhaustive Review of Technologies, Research, Best Practices, Applied Research Challenges and Opportunities
- 2024Designing Algorithms Empowered by Language Models: An Analytical Framework, Case Studies, and Insights
- 2025Behavior and Representation in Open-Weight Large Language Models for Combinatorial Optimization: From Feature Extraction to Algorithm Selection
- 2025Combinatorial Optimization for All: Using LLMs to Aid Non-Experts in Improving Optimization Algorithms
- 2024Fine-tuning large language models for domain adaptation: Exploration of training strategies, scaling, model merging and synergistic capabilities
- 2025LLM-ProS: Analyzing Large Language Models' Performance in Competitive Problem Solving
- 2025From Large to Super-Tiny: End-to-End Optimization for Cost-Efficient LLMs