arXiv:2610.23161cs.AIOct 2026

Manuscript Offprint

arXiv:2610.23161

Algorithm Modelization: Transforming Optimization Algorithms into Evolvable Intelligence

Jian Yao, Zhiyao Zhang, Yichen Li, Xingyu Wu, Kay Chen Tan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Jian Yao, Zhiyao Zhang, Yichen Li, Xingyu Wu †^{\dagger}, and Kay Chen Tan †^{\dagger}, Fellow, IEEE

Abstract—Can algorithms be learned and evolved as models, rather than repeatedly redesigned as programs? We explore this question by introducing Algorithm Modelization, a new paradigm that turns iterative algorithms into trainable models. Its central idea is to regard algorithm execution trajectories as computational experience: by learning how algorithmic states evolve over iterations, a model can internalize the knowledge embodied in existing algorithms, reproduce their computational behaviors, and further evolve beyond them through training. As a first realization of this paradigm, we modelize iterative optimization as an autoregressive process, where preceding generations constitute the computational context for generating the next population. This perspective allows trajectories produced by fundamentally different optimizers to be expressed and learned within a unified model. We develop a dimension-independent population-temporal architecture to capture both population interactions and iterative dynamics, together with an imitation-to-surpassing learning framework that first acquires algorithmic knowledge from heterogeneous teachers and then improves the resulting optimizer directly through optimization feedback. The modelized optimizer consequently goes beyond reproducing individual algorithms: it consolidates heterogeneous search knowledge into a single trainable model, achieves stronger optimization capability through subsequent improvement, and generalizes its acquired knowledge across problems and substantially larger unseen dimensions. More fundamentally, Algorithm Modelization makes algorithmic capability accumulable through learning, where new algorithms and problem-solving experience can become training resources for progressively improving the model. Our results establish a promising path from manually designed algorithms toward general algorithm models that learn, generalize, and evolve from computational experience.

Index Terms—Algorithm Modelization; Trajectory Imitation; Online Learning; Evolvable Intelligence; Optimization

I. INTRODUCTION

Algorithms are fundamental building blocks of computational intelligence, yet their improvement has traditionally relied on repeated human redesign [1], [2]. Over decades, increasingly powerful algorithms have been developed by introducing new heuristics, update rules, and computational mechanisms [3], [4], but the knowledge accumulated during this process remains largely embedded in manually specified procedures [5], [6]. When a stronger algorithm emerges, it typically replaces or modifies its predecessors rather than directly learning from and refining their computational experience [7]. Modern machine learning [8] suggests a fundamentally different possibility: knowledge can be encoded in trainable models, accumulated from data, and continuously improved through further training. This raises a natural question: can iterative algorithms themselves be transformed into trainable models that inherit from existing algorithms and subsequently improve beyond them?

We formulate this problem as Algorithm Modelization. Given trajectories generated by iterative algorithms, Algorithm Modelization aims to internalize the computational behavior manifested through their state transitions into a trainable neural model, which captures how computational states evolve over iterations and remains trainable for further performance improvement. Unlike conventional predictive models that learn task-level input-output mappings, Algorithm Modelization learns the iterative update behavior embodied in algorithm trajectories, replacing fixed update procedures with a trainable model that directly drives the optimization process. Since the procedural knowledge of an iterative algorithm is manifested through how its computational states evolve during execution, Algorithm Modelization seeks to encode these transition behaviors into model parameters, enabling them to be learned, generalized, and continuously refined through training.

In this work, we investigate Algorithm Modelization through iterative optimization as a representative application. Optimization algorithms naturally generate sequential trajectories in which search states progressively evolve toward better solutions [9]. Inspired by autoregressive sequence modeling [10], we formulate this iterative process as learning to generate the next optimization state conditioned on its recent history. Given the latest K generations, the model extracts the evolutionary relationships contained in the trajectory and generates the next population. Conceptually, previous optimization states form the computational context, analogous to preceding tokens in language modeling, while the next population corresponds to the next state to be generated. By expressing optimizer executions through a common population-transition representation, this formulation provides a unified interface for trajectories originating from substantially different optimization paradigms. In this study, evolutionary, Bayesian, and gradient-based optimizers [11]–[13] are represented through this common interface, allowing heterogeneous search behaviors to be learned within the same modelization framework.

Algorithm Modelization of optimization trajectories presents several fundamental challenges. First, a population trajectory simultaneously contains population structure and temporal structure: individuals interact within each generation, while their search behaviors evolve across successive generations. Capturing both forms of dependency is essential for understanding how optimization progresses [14]. Second,

Jian Yao, Zhiyao Zhang, Yichen Li, Xingyu Wu, and Kay Chen Tan are with the Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hong Kong SAR, China. Corresponding authors: Kay Chen Tan (kctan.tan@polyu.edu.hk) and Xingyu Wu (xingy.wu@polyu.edu.hk).

algorithmic models should preserve their computational form across different problem dimensions, so that learned search knowledge can transfer beyond the dimensional configurations observed during training [15]. Third, although different optimizers can be expressed through a common population-transition interface, their trajectories still contain heterogeneous search behaviors that must be encoded into a shared learnable representation capable of preserving transferable transition knowledge. Finally, Algorithm Modelization involves not only learning demonstrated behaviors but also developing the model's own optimization capability, requiring a training mechanism that further refines inherited knowledge according to optimization performance.

To address these challenges, we develop a history-conditioned model architecture for optimization algorithm modelization. Historical populations are aligned to preserve individual-level correspondence across generations, and each individual is represented by relative fitness information together with a dimension-independent Coordinate-Set representation that describes population geometry through shared coordinate processing and symmetric aggregation [16]. A population-temporal architecture then jointly models interactions among individuals and temporal evolution across generations [10], [17], followed by a future-state decoder that infers the search state for the next iteration. The predicted representation is converted into population evolution through a signed dense interaction operator and coordinate-level crossover, followed by objective-based selection to obtain the next population. The overall architecture therefore maps recent optimization history directly to subsequent population evolution and provides a unified neural representation of iterative search dynamics.

We further develop a two-stage training strategy built around the two capabilities that distinguish Algorithm Modelization from either algorithm distillation or learning an optimizer from scratch: imitation and surpassing. Imitation is necessary because the purpose of modelization is to inherit the computational knowledge already embodied in effective algorithms, rather than discarding this accumulated experience and relearning search behavior solely from optimization feedback. Yet imitation alone is insufficient for our goal: training only to reproduce demonstrated transitions provides no explicit objective for improving optimization performance beyond the demonstrated behavior, reducing modelization primarily to behavioral imitation rather than an independently improvable algorithmic model. Conversely, directly optimizing a randomly initialized model provides no mechanism for inheriting the structured search knowledge accumulated by existing algorithms. We therefore view imitation and surpassing as two complementary stages of a single learning process: the former provides an algorithmic prior from existing computational experience, while the latter turns inherited knowledge into an independently improvable search capability.

During the first stage, trajectories generated by teacher algorithms provide structured supervision for learning population evolution. The training data combine search experience from heterogeneous optimization paradigms, allowing the model to acquire diverse algorithmic behaviors through a unified trajectory representation. During the second stage, teacher supervision is removed and the model interacts with optimization problems under the state distribution induced by its own search behavior. On differentiable training functions, performance feedback is propagated through the learnable population-generation mechanism, allowing the model to refine the computational knowledge acquired during trajectory imitation. After training, the resulting optimizer is deployed with fixed parameters and requires only function evaluations. This imitation-to-surpassing process changes the role of existing algorithms from fixed procedures to reusable sources of computational experience: their knowledge provides the starting point of learning, rather than the upper bound of the resulting model.

Our main contributions are summarized as follows:

  1. Conceptually, we introduce Algorithm Modelization, a new paradigm that turns iterative algorithms from fixed computational procedures into trainable models. We formulate algorithm execution trajectories as a new form of algorithmic data and introduce a general learning paradigm in which models acquire iterative computational behavior from existing algorithms and can be further improved through training. We instantiate this paradigm in optimization, opening a direction for algorithm development in which computational knowledge can be learned, accumulated, and improved through models.

  2. Technically, we establish an autoregressive modelization framework that enables optimization algorithms to be learned from their iterative trajectories and subsequently surpassed. We formulate optimization as next-population generation conditioned on the preceding generations and develop a dimension-independent population-temporal architecture to capture both search interactions and evolutionary dynamics. On top of this architecture, we introduce an imitation-to-surpassing learning scheme that first internalizes computational knowledge from heterogeneous teacher algorithms and then directly improves the acquired search capability through performance-driven meta-training. These designs provide an end-to-end technical realization of Algorithm Modelization, from trajectory representation and behavior acquisition to autonomous performance improvement.

  3. Methodologically, Algorithm Modelization yields a new class of optimization methods that are powerful, generalizable, reusable, and extensible through learning. The resulting optimizer can consolidate complementary search knowledge from fundamentally different algorithmic paradigms and further improve, providing a path toward stronger optimization performance without repeatedly redesigning search rules by hand. Its dimension-independent formulation enables direct extrapolation to substantially larger unseen dimensions, while the same modelization architecture and learning framework can be instantiated across different optimization settings without scenario-specific architectural redesign. The acquired search capability can also be reused under new deployment conditions by coupling the learned opti-mizer with task-specific adaptive modules, rather than relearning the underlying search policy from scratch. More importantly, its capability is extensible: newly available algorithms can continuously provide additional computational experience for training and progressively strengthen the existing model, while broader problem classes and optimization scenarios may further serve as future sources of computational experience. This provides a promising path toward increasingly general optimization models whose capabilities can accumulate and evolve through learning.