Manuscript Offprint
arXiv:2610.10235Beyond LLM-GA: Secure Fluid Antenna Systems with ReEvo-Designed Memetic Algorithm
Hanyong Xu, Zhaolai Dang, and Tong Zhang
Abstract—Fluid antenna systems (FASs) offer significant spatial flexibility, yet securing them against eavesdropping is critical for practical FAS deployment in military, satellite, and internet-of-things networks. Although large language model (LLM)-assisted genetic algorithms (LLM-GAs) can address this secure FAS port selection problem, whether further algorithmic improvement is possible warrants deeper investigation. To this end, we propose a memetic algorithm based on reflective evolution (ReEvo). Unlike the state-of-the-art LLM-GAs, which design only crossover or mutation operators with an LLM, our algorithm leverages an LLM to evolve dedicated crossover, mutation, and local-search operators offline. These operators are then embedded into a memetic search framework, thereby obviating any online LLM queries during execution. Simulation results at equal generation counts demonstrate that our proposed algorithm achieves a higher secure sum-rate than the conventional GA and the state-of-the-art LLM-GAs.
Index Terms—Fluid antenna system, large language model, memetic algorithm, physical-layer security.
I. INTRODUCTION
The ever-increasing demand for high data rates and massive connectivity in next-generation wireless networks calls for new degrees of freedom to enhance spectral efficiency and link reliability. To this end, fluid antenna systems (FASs) enable antenna port selection over a dense aperture, improving signal strength, interference suppression, and spatial diversity without extra radio frequency (RF) chains [1]–[3]. Unfortunately, joint port selection and beamforming, if optimally designed, holds the key to fully unlocking the potential of FAS, yet it poses a mixed-integer nonconvex problem that is computationally challenging [4]–[6].
Securing FAS wireless communications against passive eavesdropping poses a distinct and formidable challenge. This, combined with the need to jointly optimize discrete port selections and continuous beamforming vectors, significantly complicates the design, as the secrecy objective is nonconvex and intricately coupled with multiuser interference and power limitations. Analytical studies characterize secrecy capacity, outage probability, and the impact of spatial channel asymmetry between legitimate users and eavesdroppers [7] and [8]. Recent works jointly optimize beamforming and antenna positions in FAS-aided non-orthogonal multiple access (NOMA) systems [9], or use penalty and majorization–minimization
This work was supported in part by the National Natural Science Foundation of China under Grant 62401229.
H. Xu and Z. Dang are with the School of Information, Harbin Institute of Technology, Shenzhen, Shenzhen 518055, China (e-mail: {2025311252, 2025310700}@stu.hit.edu.cn).
T. Zhang is with Guangdong Provincial Key Laboratory of Aerospace Communication and Networking Technology, Harbin Institute of Technology, Shenzhen, 518055, China (e-mail: tongzhang@hit.edu.cn).
TABLE I COMPARISON OF THE LLM-DESIGNED OPERATORS IN [13], [14], AND THE PROPOSED ALGORITHM.
| Operator class | Ref. [13](crossover only) | Ref. [14](mutation only) | Proposed (memetic) |
|---|---|---|---|
| LLM-Designed Mutation | No | Yes | Yes |
| LLM-Designed Crossover | Yes | No | Yes |
| LLM-Designed Local Search | No | No | Yes |
procedures for secure and covert links [10]. However, none of the above works has fully addressed the secure port selection problem.
Large language models (LLMs) have recently been used to address the port selection/antenna position selection problem [11]–[14]. In particular, Wang et al. [13] applied reflective evolution (ReEvo) [15] to a binary-genetic algorithm (GA) crossover for power minimization. Their crossover uses population fitness, elite-port frequencies, and port co-occurrences, with conventional selection, mutation, elitism, and repair. The learned crossover is generated offline, has no explicit local-search stage, and is not evaluated with a secrecy objective. In addition, Zheng et al. [14] proposed an efficient LLM-GA algorithm, which combines a frequency-based crossover with an LLM-designed one-port mutation. Its exchange probability and displacement range are prescribed, after which standard GA selection, elitism, and repair are applied; the target is nonsecure multiuser performance such as max-min signal-to-interference-plus-noise ratio (SINR). Thus, [13] learns only the crossover operator, whereas [14] learns only the mutation operator. Port prediction has also been investigated in [16].
In this paper, we propose a ReEvo-designed memetic optimizer [17] for secure port selection in downlink multiuser FASs, which outperforms state-of-the-art LLM-GAs in terms of secure sum-rate. Each candidate port subset is scored by its achievable secure sum rate, computed via a secure weighted minimum mean-square error (WMMSE) beamforming procedure. Under this secrecy-driven fitness, ReEvo successively evolves three complementary operators offline, namely crossover, mutation, and local-search. The learned crossover exploits elite-port statistics and grid topology; the mutation performs feasible one-in-one-out swaps at both local and global scales; and the local-search operator generates four complementary one-swap neighbors per offspring. All three operators are frozen after offline evolution and embedded into a memetic search framework, requiring no LLM queries during online execution. Unlike prior LLM-GAs that design only crossover or mutation operators without security considera-tion, our method covers all discrete search stages, explicitly accounts for eavesdropper leakage, and performs systematic local refinement, all under the same secrecy-aware fitness. Table I contrasts the LLM-designed operators of [13] and [14] with those of the proposed algorithm. Simulation results demonstrate that our proposed algorithm achieves a higher secure sum-rate than the conventional GA and the state-of-the-art LLM-GAs.
A. System Model
We consider a multiuser downlink fluid antenna system (FAS) in which a base station (BS) serves K single-antenna users in the presence of a passive single-antenna eavesdropper. Let denote the user index set. The BS has a rectangular FAS aperture of dimensions , where and are normalized by the carrier wavelength. A uniform grid provides candidate ports, of which exactly are active.
Let denote the two-dimensional grid index of port , where , , and . The physical distance between ports and is . Consistent with the channel generator, define , where and . This isotropic three-dimensional model differs from the cylindrical Bessel correlation in Jakes' model [18]. The spatial correlation matrix is
Because is real and symmetric, write its eigendecomposition as , where is real and orthogonal. Let and denote the BS-to-user and BS-to-eavesdropper distances, respectively. We model the large-scale power gains by for and , where is the reference gain at distance and is the path-loss exponent. The channel vector of user is
where for . The eavesdropper channel is
where . Independent Gaussian vectors are drawn for the users and the eavesdropper, and are mapped through the same correlation matrix; hence, the links share spatial correlation but have independent small-scale fading. Shadowing is omitted. As an upper-bound benchmark, we assume that the BS has perfect instantaneous channel state information (CSI) for every link; eavesdropper CSI may have been acquired while that terminal was previously active. The channels remain quasi-static within each optimization run, so all candidate configurations share the same propagation state. Robust design under imperfect or delayed CSI is outside the present scope.
Let denote the th column of . When distinct ports with indices are activated, their port selection matrix is defined as . Each column of selects one physical port, so feasibility requires
and the selected ports must be distinct:
Together, these constraints activate exactly distinct ports. Define the effective channel vectors and . Stacking the user channels gives . The BS jointly designs the port selection matrix and the beamforming matrix , where is the beamformer for legitimate user . Let collect the unit-power data symbols, i.e., . The transmitted signal is
Because the columns of are orthonormal, the transmit-power constraint becomes
The receiver noises satisfy and . The received signals are
Under single-user decoding, the eavesdropper treats all other streams as interference. The resulting SINRs are
Accordingly, the achievable secrecy rate of user k is
following the standard wiretap-rate construction [19].
B. Joint Secure Port Selection and Beamforming Problem
Mathematically, the joint secure port selection and beamforming problem for the downlink multiuser FAS is formulated as follows:

LLM-GA [13, 14]
LLM-Memetic (Proposed)
Fig. 1. Flowchart comparison of [13] and [14] with the proposed algorithm.
Physically, selecting a port changes the sampled channels of every user and of the eavesdropper at the same time. The objective therefore rewards ports that strengthen the desired links while suppressing multiuser interference and information leakage, subject to the total transmit power. Since the port-selection constraints introduce a combinatorial discrete space and the secrecy sum-rate is nonlinear in the selection and beamforming variables, Problem P1 is a nonlinear mixed-integer nonconvex program.
III. REEVO-DESIGNED MEMETIC ALGORITHM
To solve Problem P1, we develop a ReEvo-designed memetic algorithm comprising an offline LLM-driven operator design stage and an online memetic search stage that requires no LLM application programming interface (API) calls. In the offline stage, ReEvo evolves three complementary discrete operators (crossover, mutation, and local search) under a secrecy-driven fitness evaluated via secure WMMSE beamforming. In the online stage, each candidate port subset generated by the frozen operators is scored via secure WMMSE beamforming; the memetic search then evolves toward higher secure summaries without any LLM queries. Fig. 1 illustrates the overall architecture and highlights the distinction between our method and prior LLM-GAs that design only a crossover operator [13] or only a mutation operator [14].
A. Secure WMMSE Beamforming
For a fixed , we use a safeguarded WMMSE-based procedure [20]. Initialize and ; if the solve fails, use . With the scalar estimate , the user's minimum mean-square error (MMSE) receiver, mean-square error (MSE), and weight are
When the eavesdropper decodes stream k and treats the remaining streams as interference, its corresponding variables are
For an arbitrary receiver , the MSE is . The rate identity is , attained at (11). For the eavesdropper, , attained at (12). Frozen auxiliary variables lower-bound the legitimate rate but upper-bound the negative eavesdropper rate. Thus the following linearization yields a trial model for the unclipped rate difference, not a guaranteed secrecy-rate lower bound. Omitting the common factor and constants gives
where
Specifically, for the positive quadratic , where , convexity gives . This affine minorization produces the term in (14b). The Lagrangian stationarity condition of (13) is , and hence, when nonsingular, we have
Since , the KKT conditions solve (13) globally: for a feasible unconstrained solution, otherwise bisection enforces with . The implementation adds if the zero-multiplier linear solve fails.
For each trial , evaluate using the per-user secrecy rates in (10). A negative per-user difference contributes zero, while that stream still causes interference. The unclipped trial model retains all streams. Start at and halve it for at most 20 trials; retain the incumbent and stop if none is accepted. The acceptance tolerance is ; termination also occurs after 30 iterations or improvement below . In exact arithmetic, accepting only nondecreasing steps preserves feasibility and gives
Thus exact monotone objective values converge if continued indefinitely; this is not a beamformer or stationary-point convergence guarantee.
Algorithm 1 Offline LLM operator design and API-free secure FAS optimization
1: for in order do 2: Initialize program population from seed and LLM code. 3: while fewer than programs have been evaluated do 4: Evaluate training fitness by secure WMMSE. 5: Reflect on higher/lower-fitness code; generate programs and update . 6: end while 7: Freeze the best program by training fitness. 8: end for 9: Initialize feasible chromosomes; evaluate and cache fitness and beamformers. 10: for do 11: Preserve elites and select parents for children. 12: Apply and ; repair cardinality. 13: Apply to create neighbors per child. 14: Score uncached candidates by secure WMMSE. 15: Retain the best candidates with the elites. 16: end for 17: return Best chromosome and its cached beamformer.
B. ReEvo-Designed Memetic Port Search
We encode a port subset as a binary chromosome satisfying . Following [15], the LLM acts as a hyper-heuristic. Let denote the crossover, mutation, and local-search operator classes, respectively. DeepSeek Reasoner evolves each class separately. For class q, each program is an individual in population . Its meta-fitness is the best secure sum-rate attained when an inner GA-based search uses on the fixed training channel set:
Because (16) includes secure WMMSE optimization, programs are selected by the target secrecy objective rather than a surrogate port score.
The three operator classes receive feasible binary chromosomes and grid indices; crossover also receives population fitness and ranks. Crossover combines two parents, mutation performs a one-in-one-out swap, and local search generates four neighbors: nearby, long-distance, same-row/column, and crowded-to-sparse relocation. Returned chromosomes are repaired to contain exactly active ports; invalid programs are discarded. All fitness evaluations use the same training channels, beamformer initialization, and stopping rule.
Algorithm 1 summarizes the procedure. Crossover is trained with conventional mutation and no local search; mutation is trained with crossover fixed; local search is trained with both fixed. Programs are selected by training fitness and then checked on separate validation channels.
During online execution, the three frozen operators generate offspring and neighbors, while caching and elitist replacement control the WMMSE evaluations.

Fig. 2. Mean secure sum-rate versus total transmit power.
TABLE II SIMULATION PARAMETERS.
| Parameter | Setting |
|---|---|
| Grid / aperture | |
| Carrier frequency | 3.4 GHz |
| Users / eavesdropper | |
| Active ports | |
| Distances / path loss | |
| Noise variance | (normalized) |
| Transmit power | |
| Population / elites | |
| Offspring / generations | 16 / 100 |
| Mutation probability | 0.2 |
| Operator train / validation | 10 / 20 disjoint channels |
| Test channels / random seeds | 20 paired / 20 seeds |
| LLM / programs | DeepSeek / 10-program population |
IV. SIMULATIONS
Table II summarizes the simulation parameters. The power sweep uses normalized gains and noise variances . Equivalently, , , and the path-loss exponent cancels. Each realization includes all user channels and one eavesdropper channel. All methods share test channels, initial populations, and random seeds at each power. Offline ReEvo uses DeepSeek to generate operator code with 10 programs in the population. Fitness uses 10 training channels; selected programs are checked on 20 disjoint validation channels without reranking. Training and validation searches use 20 and 50 generations at power 2.5, respectively. Final testing uses 20 separate channels and 20 random seeds; training and validation use 10 and 20 channel realizations, respectively. The online optimizer uses frozen code, with no trainable neural-network layers or hidden dimensions and no LLM calls.
Throughout, the reported rate is the total secrecy rate summed over users and averaged over test channels, never divided by . The same test channels are reused across all total transmit power levels. The error bars show one sample standard deviation of the 20 per-channel total rates.
Fig. 2 shows that the secure sum-rate of all four methods increases as grows from 1 to 5 W, with the proposed algorithm remaining the highest at every point. At 1 W, it achieves 11.423 bit/s/Hz, corresponding to gains of 7.6%, approximately 6%, and approximately 4% over GA, LLM-GA-crossover [13], and LLM-GA-mutation [14], respectively. At 5 W, it achieves 23.611 bit/s/Hz, yielding gains of 8.2%, approximately 5%, and approximately 4% over the same

(a) 1.0 W
(b) 2.0 W
(c) 3.0 W
(d) 4.0 W
(e) 5.0 W
Fig. 3. Secure sum-rate convergence for five total transmit power levels.
three baselines. The two LLM-GA baselines consistently lie between GA and the proposed algorithm, with visibly overlapping error bars at some operating points. A possible explanation is that elite-aware recombination preserves useful spatial patterns, while local and global exchanges explore the tradeoffs among signal strength, interference, and leakage. This ordering holds at equal generation counts, though the additional local-search evaluations may particularly account for the gains obtained by the proposed algorithm. Note that each operating point plotted in Fig. 2 is the generation-100 terminal value of the corresponding convergence curve in Fig. 3; that is, Fig. 2 summarizes the final (generation-100) data of Fig. 3 as a function of transmit power.
Fig. 3 shows secure sum-rate convergence over 100 generations. The proposed algorithm separates from the baselines early and stays ahead in all five power panels, while all curves gradually flatten as the populations approach stable incumbents. The terminal values at generation 100 correspond to the respective operating-point results summarized in Fig. 2, linking the convergence endpoint to the power-sweep comparison. Local search evaluates additional one-swap neighbors, so these curves do not establish faster convergence in runtime or evaluation count.
V. CONCLUSION
This paper presented a ReEvo-designed memetic optimizer for joint port selection and secure beamforming in multiuser fluid antenna systems. An LLM evolves dedicated crossover, mutation, and local-search operators offline under a secrecy-driven fitness, and the frozen programs incur no online LLM-query overhead. For each candidate port configuration, the beamformer is optimized by secure WMMSE.
Across the tested total transmit power levels, the proposed method consistently obtains the highest mean secure sum-rate among the conventional GA and both LLM-GA baselines, with gains that remain visible from low to high transmit power. These results indicate that evolving all three discrete search operators offline can outperform LLM-GAs that design only a single operator. Extending the framework to imperfect or delayed CSI and to more general multiuser and multi-antenna scenarios is left as future work.
REFERENCES
[1] W. K. New et al., “A tutorial on fluid antenna system for 6G networks: Encompassing communication theory, optimization methods and hardware designs,” IEEE Commun. Surveys Tuts., vol. 27, no. 4, pp. 2325–2377, Aug. 2025.
[2] J. Peng, Y. Wan, T. Zhang, and S. Wang, “Fluid antenna-assisted edge Gaussian splatting using grey wolf algorithm,” in Proc. 2nd Asia Conf. Commun. 6G (ACC6G), Shenzhen, China, 2026, pp. 45–50, doi: 10.1109/ACC6G70208.2026.11605699.
[3] J. Peng, T. Zhang, S. Wang, M. Shao, H. Xu, and R. Wang, “Group relative policy optimization for robust blind interference alignment with fluid antennas,” in Proc. IEEE Int. Conf. Commun. (ICC), Glasgow, U.K., May 2026, pp. 1–6.
[4] Q. Zhang, M. Shao, T. Zhang et al., “An efficient sum-rate maximization algorithm for fluid antenna-assisted ISAC system,” IEEE Commun. Lett., vol. 29, no. 1, pp. 200–204, 2025.
[5] T. Zhang et al., “Indoor fluid antenna systems enabled by layout-specific modeling and group relative policy optimization,” IEEE Trans. Wireless Commun., vol. 25, pp. 9313–9329, 2026.
[6] W. Wang, T. Zhang, H. Xu, S. Wang, R. Wang, and K.-K. Wong, “MA-GRPO: Accelerated MARL training for fluid antenna-assisted wireless network optimization,” arXiv:2604.17379, 2026.
[7] Y. Zou, J. Zhu, X. Wang, and L. Hanzo, “A survey on wireless security: Technical challenges, recent advances, and future trends,” Proc. IEEE, vol. 104, no. 9, pp. 1727–1765, Sep. 2016.
[8] F. R. Ghadi, K.-K. Wong, F. J. Lopez-Martinez, W. K. New, H. Xu, and C.-B. Chae, “Physical layer security over fluid antenna systems: Secrecy performance analysis,” IEEE Trans. Wireless Commun., vol. 23, no. 12, pp. 18201–18213, Dec. 2024.
[9] L. Mai, J. Yao, J. Tang, T. Wu, K.-K. Wong, H. Shin, and F. Adachi, "A secure beamforming design: When fluid antenna meets NOMA," arXiv:2411.08386, 2024.
[10] J. Yao, L. Xin, T. Wu, M. Jin, K.-K. Wong, C. Yuen, and H. Shin, “FAS for secure and covert communications,” IEEE Internet Things J., vol. 12, no. 11, pp. 18414–18418, Jun. 2025.
[11] C. Wang, K.-K. Wong, Z. Li, L. Jin, and C.-B. Chae, “Large language model empowered design of fluid antenna systems: Challenges, frameworks, and case studies for 6G,” IEEE Wireless Commun., vol. 33, no. 2, pp. 117–125, Apr. 2026.
[12] T. Deng, Y. Gao, T. Zhang, M. Shao, W. Ni, and H. Xu, “Integrating large language models into fluid antenna systems: A survey,” Sensors, vol. 25, no. 16, Art. no. 5177, Aug. 2025.
[13] C. Wang, B. Zhang, Z. Li, K.-K. Wong, H. Xu, G. Zheng, and C.-B. Chae, “LLM-driven design for fluid antenna systems,” IEEE Wireless Commun. Lett., vol. 15, pp. 1065–1069, 2026.
[14] G. Zheng, F. Liu, and Q. Zhang, “LLM-enabled automated algorithm design for multiuser fluid antenna communications,” IEEE Trans. Wireless Commun., vol. 25, pp. 18811–18823, 2026.
[15] H. Ye et al., “ReEvo: Large language models as hyper-heuristics with reflective evolution,” in Proc. Adv. Neural Inf. Process. Syst., 2024, pp. 1–14.
[16] Y. Zhang, H. Yin, W. Li, E. Bjornson, and M. Debbah, “Port-LLM: A port prediction method for fluid antenna based on large language models,” IEEE Trans. Commun., vol. 73, no. 12, pp. 14534–14547, Dec. 2025.
[17] P. Moscato, “Memetic algorithms: A short introduction,” in New Ideas in Optimization, D. Corne, M. Dorigo, and F. Glover, Eds. New York: McGraw-Hill, 1999, pp. 219–234.
[18] W. C. Jakes, Microwave Mobile Communications. New York, NY, USA: Wiley, 1974.
[19] A. D. Wyner, “The wire-tap channel,” Bell Syst. Tech. J., vol. 54, no. 8, pp. 1355–1387, Oct. 1975.
[20] Q. Shi, E. Razaviyayn, Z.-Q. Luo, and C. He, “An iteratively weighted MMSE approach to distributed sum-utility maximization for a MIMO interfering channel,” IEEE Trans. Signal Process., vol. 59, no. 9, pp. 4331–4340, Sep. 2011.