1
Return

LLaMoCo: Instruction Tuning of Large Language Models for Optimization Code Generation

delete2026-01-20
delete0
PRE
AI
Z
Zeyuan Ma
Y
Yue‐Jiao Gong
H
Hongshu Guo
J
Jiacheng Chen
Y
Yining Ma
Z
Zhiguang Cao
张军 (Jun Zhang)
DOI:10.1109/tevc.2026.3656374delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Recently, combining the strength of large language models (LLMs) and evolutionary computation (EC) has shown promising results for addressing optimization problems. It typically involves either iterative next-step solution seeking or directly prompting LLMs to generate critical optimization codes. However, these methods often suffer from low computational efficiency, high sensitivity to prompt design, and a lack of domain-specific knowledge. We introduce LLaMoCo, the first instruction-tuning framework designed to adapt LLMs for solving optimization problems in a code-to-code manner. LLaMoCo features a comprehensive instruction set that includes code-style problem descriptions as input prompts and robust optimization codes from expert EC optimizers as target outputs. We then develop a novel two-phase learning strategy with a contrastive learning-based warm-up to enhance convergence during instruction tuning. Extensive experiments demonstrate that a CodeGen (350M) model tuned by our LLaMoCo yields a powerful domain-specific model for generating high-performance optimizers, achieving superior performance compared to GPT-4 family and other competitors on both synthetic and realistic problem sets.
Keywords:
Black-box optimization
code generation
evolutionary computation (EC)
large language model (LLM)

Journal

IEEE Transactions on Evolutionary Computation cover
IEEE Transactions on Evolutionary Computation
IF:
12
Papers:
1.8K
Citations:
2.4W

Organization

T
the chinese university of hong kong
Scholars:
3.4K
Papers: 1.6K
Citations: 0
S
singapore management university
Scholars:
312
Papers: 235
Citations: 0
N
nankai university
Scholars:
4.6W
Papers: 3.2W
Citations: 74
S
south china university of technology
Scholars:
6.5W
Papers: 5.0W
Citations: 85
M
massachusetts institute of technology
Scholars:
3.3K
Papers: 1.2K
Citations: 0
Cited Papers

Cited Papers

Citing Papers

Citing Papers