Manuscript Offprint

arXiv:2610.29641

Recursive Code Evolution for Task-Oriented Semantic Communications

Yan Gong, Zheng Chu, Wei Koong Chai, Hari Mohan Pandey, Jingrui Hou, Miao Zhang, Yuanjian Li, Pei Xiao

Yan Gong, Zheng Chu, Member, IEEE, Wei Koong Chai, Hari Mohan Pandey, Jingrui Hou Miao Zhang, Member, IEEE, Yuanjian Li Member, IEEE, and Pei Xiao Senior Member, IEEE

Abstract—Semantic communication jointly optimizes inference accuracy, channel use, and computation, yet the underlying communication program is typically specified before training. This paper presents ComRSI (Communications-Oriented Recursive Self-Improvement), a framework for recursively evolving that program through large-language-model-assisted code edits. A fixed agent modifies the encoder, channel adapters, decoder, loss, and training policy; a protected evaluator screens candidates under prescribed budgets and resource constraints. Accepted code and textual feedback inform subsequent proposals, while candidate weights are trained from scratch. In the original ten-generation CIFAR-100 lineage, eight accepted revisions produce an attention-pooled code achieving 74.3% test accuracy over an Additive White Gaussian Noise (AWGN) channel at 32 complex symbols per image, compared with 67.2% at 256 symbols for the initial design. The program also improves fading-channel accuracy and transfers to Tiny-ImageNet after retraining. A repeat study with ten searches per method compares ComRSI against non-recursive agents with and without textual history. Mean final search scores balancing accuracy, transmission rate, and computational cost are 0.7587, 0.7376, and 0.7089, respectively; the mean numbers of accepted revisions per search are 6.0, 5.0, and 2.1. The advantage over the memoryless agent is supported by a two-sided rank test, whereas the difference from the history-equipped agent remains statistically inconclusive at this sample size. Archived proposals show that pooling can yield a large improvement, while retained history supports subsequent refinement. These results support recursive program optimization within the evaluated setting and expose its remaining rate-robustness and compute-placement trade-offs.

Index Terms—Semantic communications, automated algorithm design, large language models, recursive code evolution.

I. INTRODUCTION

SEMANTIC communication seeks to preserve the information needed by a receiver's inference task under communication and computational constraints [1]–[3]. For image

Yan Gong, Wei Koong Chai, and Hari Mohan Pandey are with the School of Computing and Engineering, Bournemouth University, Fern Barrow, Poole, Dorset, BH12 5BB, United Kingdom (e-mail: ygong@bournemouth.ac.uk; wchai@bournemouth.ac.uk; hpandey@bournemouth.ac.uk).

Zheng Chu is with the Department of Electrical and Electronic Engineering, University of Nottingham Ningbo China, Ningbo, China (e-mail: andrew.chuzheng7@gmail.com).

Jingrui Hou is with the School of Information Management, Wuhan University, Wuhan, China (e-mail: houjingrui@whu.edu.cn).

Miao Zhang is with the School of Information Science and Engineering, Chongqing Jiaotong University, Chongqing 400074, China (e-mail: msczz@foxmail.com).

Yuanjian Li is with the Academy of Artificial Intelligence and Advanced Technology, Xi'an Jiaotong-Liverpool University, Suzhou 215123, China (e-mail: yuanjian.li@xjtlu.edu.cn)

Pei Xiao is with the Institute for Communication Systems (ICS), University of Surrey, Guildford, Surrey GU2 7XH, United Kingdom (e-mail: p.xiao@surrey.ac.uk).

L1 Runtime control

Operating variables change

Rate / power / mode

ut\mathbf{u}_t

control

ut+1\mathbf{u}_{t+1}

L2 Model adaptation

Learned weights change

Training data / online feedback

θt\theta_t

train

θt+1\theta_{t+1}

L3 Program evolution

Source code and configuration change

Encoder / adapter / decoder / loss / policy

Edit program

Evaluate

Inherit

Fixed proposal agent and evaluation protocol

Fig. 1. Three complementary objects of adaptation. L1 changes operating variables, L2 changes learned weights, and L3 changes the communication program. ComRSI implements L3 through recursive code inheritance; the proposal agent and evaluation protocol remain fixed. The distinction concerns what changes, not a ranking of system intelligence.

classification, the relevant design question is not simply how accurately an image can be reconstructed, but where semantic processing should occur and which representation should cross the channel. Encoder depth, the location of the transmitter-receiver split, representation dimension, channel adaptation, and the training objective jointly determine the resulting accuracy-rate-compute trade-off.

Deep Joint Source-Channel Coding (DeepJSCC) established the effectiveness of learning channel-resilient representations [4]. Subsequent work introduced feedback [5], attention conditioned on the Signal-to-Noise Ratio (SNR) [6], adaptive rate control [7], and information-bottleneck formulations for edge inference [8]. These advances also illustrate the breadth of the design space: a useful improvement may require chang-ing a representation or processing block, rather than adjusting weights or selecting a value from a fixed configuration space.

Fig. 1 distinguishes three objects of adaptation. Runtime control changes operating variables; model adaptation updates learned weights; program evolution changes the implementation that determines what is trained and executed. These are complementary capabilities, not a universal hierarchy of communication systems. This paper studies the third capability: an agent edits a communication program, evaluates the proposed changes, and recursively builds on accepted code.

Recent agentic wireless systems automate workflow design and component orchestration [9]–[12]. In parallel, language-model-driven program search has produced executable solutions in mathematical and algorithmic domains [13], [14]. Applying this approach to communication design poses two challenges. First, candidates must respect the physical channel and resource accounting even when their source code changes. Second, repeated access to validation feedback can reward over-specialization to the evaluator. An increasing search score alone therefore cannot establish an improved communication system.

We introduce ComRSI (Communications-Oriented Recursive Self-Improvement), a framework that combines recursive code inheritance with a protected training and evaluation pipeline. The inherited artifact is a program specifying the semantic encoder, channel adapter, decoder, loss, and training-SNR policy. Each candidate is trained from scratch; model weights are not inherited. A fixed Large Language Model (LLM) agent proposes edits, and a fixed selector accepts a child only when its public score improves by a prescribed margin and passes a paired image-bootstrap check. Hidden test data and channel-evaluation results are withheld from the search loop and evaluated after the relevant searches are complete.

Our research question is whether this procedure can produce successive, auditable improvements in task-oriented communication and whether the selected designs retain useful accuracy-rate trade-offs beyond the public evaluation conditions. In ComRSI, the fixed LLM agent and the evolving communication program are treated as components of an integrated system. Communication is a functionality of this system, and recursively modifying its communication program therefore constitutes system-level self-improvement of that functionality. Each accepted program becomes the parent of the next generation, enabling successive improvements through inherited code modifications. The underlying LLM agent and evaluation protocol remain fixed; thus, the self-improvement concerns the system's communication functionality rather than the agent's own optimization capability.

The contributions are as follows.

  • We introduce ComRSI, a communication-specific framework for recursive evolution of executable task-oriented semantic communication programs. Building upon general-purpose code-evolution paradigms, ComRSI integrates editable transmitter–receiver architectures and training policies with protected physical-channel constraints, resource accounting, and statistically gated evaluation.

  • We construct comparisons between recursive and non-recursive code proposals, configuration-space random search and mutation, and Bayesian optimization. The main CIFAR-100 comparisons use the same nominal proposal and training allocation. We distinguish code inheritance from textual history, extend both auxiliary searches to ten generations, and repeat the three agent variants ten times each. The analysis separates retraining variation from variation across searches.

  • We identify the communication structure produced by the recorded search: a deeper transmitter, a pooled semantic vector, and a small SNR-aware receiver. The final design reaches 74.3% hidden-test Additive White Gaussian Noise (AWGN) accuracy at 32 complex symbols per image, with improved fading-channel accuracy and successful program transfer to Tiny-ImageNet.

The analysis also characterizes the cost of these gains: a 64-symbol ancestor is more robust at low SNR, most inference computation moves to the transmitter, and the average advantage over a non-recursive agent with textual history remains uncertain with ten searches per method.

Section II positions the study within related work. Section III specifies the system and search protocol. Sections IV and V describe the experiments and findings, and Section VI discusses their scope.

References (36)