arXiv:2609.02387cs.NESep 2026

Manuscript Offprint

arXiv:2609.02387

Semantics-Guided Automatic Tensorization for Multiobjective Evolutionary Algorithms: A Multi-Agent Framework

Zhenyu Liang, Beichen Huang, Bowen Zheng, Ran Cheng

Zhenyu Liang, Beichen Huang, Bowen Zheng, and Ran Cheng

Abstract—Multiobjective evolutionary algorithms (MOEAs) naturally expose population-level parallelism, but many mature implementations encode their computation in sequential program structures designed for central processing units. Exploiting modern tensor computing platforms therefore requires more than direct code translation: the implementation must be restructured without changing the defining optimization mechanism of the underlying MOEA. We formulate automatic tensorization for MOEAs as semantics-guided computational restructuring and develop Evolutionary Code Conversion (EvoCoCo) 1^{1}, a multi-agent framework that realizes this formulation. EvoCoCo reconstructs algorithm-specific states, dependencies, operators, and update logic into a structured semantic representation and organizes them through a shared tensorization blueprint. Specialized transformation branches then explore alternative tensor realizations, while execution feedback guides validation, repair, and candidate selection. Experiments on a benchmark of 48 MOEAs evaluate migration reliability, optimization fidelity, and computational scalability. Under matched large language model backends, EvoCoCo attains higher migration reliability than direct one-shot translation. Across the benchmark suites, 88.2% of valid comparisons satisfy the predefined optimization-fidelity criterion. The tensorized implementations also exhibit increasing acceleration on graphics processing units as population size or decision dimension grows, with median measured speedups ranging from 22.6×22.6\times under population scaling to 80.2×80.2\times under decision-dimension scaling. External-source and ablation studies further assess transfer beyond the main benchmark and the roles of the major framework components.

Index Terms—Multiobjective evolutionary algorithms, automatic tensorization, multi-agent framework, graphics processing unit acceleration.

I. INTRODUCTION

MULTIOBJECTIVE evolutionary algorithms (MOEAs) approximate Pareto-optimal trade-offs in problems with multiple conflicting objectives [1]–[4]. Such problems arise in engineering design, resource scheduling, path planning, energy systems, industrial control, machine learning, and scientific computing. Their computational burden can be dominated by expensive function evaluations [5] and can also grow with high-dimensional problem scale [6]. These costs limit the practical scale at which MOEAs can be applied.

The population-based structure of MOEAs also exposes substantial computational parallelism. Objective evaluation, variation, ranking, environmental selection, and archive operations repeatedly process candidate solutions or population-level relations that can often be evaluated concurrently. Modern graphics processing units (GPUs) can exploit this regularity through batched tensor operations [7]. Consequently, tensorization provides a natural route to scalable MOEA computation when the underlying algorithmic structure can be expressed in a tensor-compatible form.

However, mature MOEA implementations often fail to expose this algorithmic parallelism in a GPU-compatible form. Many implementations combine vectorized operations with individual-level loops, dynamic containers, conditional branches, and framework-specific state management designed for central processing units (CPUs). The parallelism belongs to the algorithmic structure, whereas the computational bottleneck often lies in its program realization. GPU execution therefore requires the data representation, control structure, and state updates to be reorganized into tensor computation while the defining mechanism of the underlying MOEA remains intact.

Recent work has established GPU-accelerated infrastructure for evolutionary computation [8], general tensorization principles for MOEA implementations [9], and tensorized realizations of specific algorithms such as RVEA [10] and NSGA-III [11]. Tensorized GPU computation has also been investigated in constrained multiobjective optimization [12]. Taken together, these studies demonstrate that computational restructuring can expose substantial GPU parallelism, but existing approaches rely largely on manual or algorithm-specific redesign and therefore do not resolve the automation problem. An automatic method must instead operate across mature implementations with heterogeneous states, operators, auxiliary functions, update schedules, and coding conventions. Moreover, the same algorithmic mechanism can admit different tensor realizations, while similar source structures can encode different algorithmic roles. Consequently, automatic tensorization requires a representation that separates what must be preserved from how the target computation may be restructured.

Closing this automation gap requires several distinct reasoning functions: reconstructing source algorithmic semantics, planning target computation, exploring alternative tensor real-

Zhenyu Liang, Beichen Huang, and Bowen Zheng are with the Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hong Kong SAR, China. E-mails: {zhenyuliang97, bill.huang2001}@gmail.com and bowen.zheng@protonmail.com.

Ran Cheng is with the Department of Data Science and Artificial Intelligence, The Hong Kong Polytechnic University, Hung Hom, Kowloon, Hong Kong SAR, China; the Hong Kong Polytechnic University Shenzhen Research Institute, Shenzhen 518057, Guangdong, China; and the Hong Kong Polytechnic University-Daya Bay Technology and Innovation Research Institute, Huizhou 516083, Guangdong, China. (E-mail: ranchengcn@gmail.com)

1^{1}Source code: https://github.com/EMI-Group/evococo.

izations, diagnosing runtime failures, and assessing executable candidates. Large language models (LLMs) have demonstrated code-generation capabilities [13] and program-translation capabilities [14]. Execution-aware systems further show the value of repository interaction and test execution [15], as well as execution and performance signals for iterative GPU-program refinement [16]. However, automatic tensorization requires these heterogeneous functions to remain coordinated under a common interpretation of the source MOEA. This requirement motivates a computational architecture in which specialized reasoning roles exchange structured intermediate representations under shared semantic constraints.

To address these requirements, we formulate automatic tensorization for MOEAs as semantics-guided computational restructuring and develop Evolutionary Code Conversion (EvoCoCo), a multi-agent framework that realizes this formulation. EvoCoCo reconstructs source algorithmic semantics, organizes them into a shared tensorization blueprint, explores alternative tensor realizations, and closes the transformation loop through execution-guided refinement and selection. Its agent organization mirrors this functional decomposition and coordinates specialized roles through shared intermediate representations. The framework also exhibits an evolution-like search structure in which alternative computational realizations are generated under shared semantic constraints, evaluated in the target environment, refined when necessary, and selected according to target-side evidence. We instantiate and evaluate EvoCoCo by transforming heterogeneous PlatEMO implementations into tensorized EvoX/PyTorch implementations. The main contributions are summarized as follows:

  • We formulate automatic tensorization for MOEAs as semantics-guided computational restructuring. For a concrete MOEA, the formulation treats its software implementation as the transformation object and the underlying optimization mechanism as the semantic constraint.

  • We develop EvoCoCo, a multi-agent framework whose specialized roles mirror the functional decomposition of automatic tensorization. Shared intermediate representations coordinate semantic analysis, contextual rule retrieval, transformation planning, diversified restructuring, repair, and selection.

  • We introduce a shared tensorization blueprint, alternative computational restructuring strategies, and closed-loop execution feedback. The blueprint links reconstructed algorithmic semantics to target tensor computation, while the restructuring branches explore different realizations under the same semantic constraints.

  • We construct a benchmark comprising 48 MOEAs and evaluate the generated tensorized implementations in terms of migration reliability, optimization fidelity, computational scalability, transfer to external implementations, and component contributions.

References (90)