Over-the-Air Edge Inference via End-to-End Metasurfaces-Integrated Artificial Neural Networks
Abstract
In the Edge Inference (EI) paradigm, where a Deep Neural Network (DNN) is split across the transceivers to wirelessly communicate goal-defined features in solving a computational task, the wireless medium has been commonly treated as a source of noise. In this paper, motivated by the emerging technologies of Reconfigurable Intelligent Surfaces (RISs) and Stacked Intelligent Metasurfaces (SIM) that offer programmable propagation of wireless signals, either through controllable reflections or diffractions, we optimize the RIS/SIM-enabled smart wireless environment as a means of over-the-air computing, resembling the operations of DNN layers. We propose a framework of Metasurfaces-Integrated Neural Networks (MINNs) for EI, presenting its modeling, training through a backpropagation variation for fading channels, and deployment aspects. The overall end-to-end DNN architecture is general enough to admit RIS and SIM devices, through controllable reconfiguration before each transmission or fixed configurations after training, while both channel-aware and channel-agnostic transceivers are considered. Our numerical evaluation showcases metasurfaces to be instrumental in performing image classification under link budgets that impede conventional communications or metasurface-free systems. It is demonstrated that our MINN framework can significantly simplify EI requirements, achieving near-optimal performance with dB lower testing signal-to-noise ratio compared to training, even without transceiver channel knowledge.
Index Terms:
Edge learning, reconfigurable intelligent surface, stacked intelligent metasurfaces, goal-oriented communications, deep learning, over-the-air computing.I Introduction
In emerging Device-to-Device (D2D) and Internet of Things (IoT) networks, where distributed devices are expected to support various functionalities, such as Integrated Sensing and Communications (ISAC) [1], stringent energy efficiency requirements impose limitations on their communication and computation capabilities. Various sub-networks are envisioned to enable a wide range of high-level applications and services, such as digital twinning through object recognition and computational imaging, or indoor positioning [2], each tied up with a diverse set of requirements to be fulfilled. As a result, it is crucial for the D2D system design to take into consideration the underlying application. To this end, devising novel communication stacks tailored to the application, that break the traditional network layer taxonomy, comes with reduced implementation overheads.
Goal-Oriented Communications (GOC) [3] is a framework that is gaining popularity in D2D systems, since transmissions of only the necessary goal-specific information need to take place, reducing messaging overheads and simplifying system architecture [4]. In fact, when performing Edge Inference (EI) tasks, where the Receiver (RX) wishes to obtain only an estimated label of the data the Transmitter (TX) actually observes and transmits, semantic and GOC approaches that split the layers of a Deep artificial Neural Network (DNN) at the endpoints provide significant benefits in terms of communication requirements [5]. According to those approaches, low-dimensional feature vectors, that are outputs of intermediate DNN layers, are transmitted over the channel [6, 7, 8]. The motivation behind such practices is that GOC deviates from the standard Shannon-type communications [9], in that the goal of the system is an arbitrary computational target function, rather than objectives derived from the Mutual Information (MI) that call for bit-wise reconstruction of the input data. In this way, DNN s are employed, similar to the Joint Source Channel Coding (JSCC) paradigm, and trained to capture the joint or conditional data-channel-target distributions.
Current literature has adopted GOC and EI for a wide variety of problems and wireless systems (see [6, 8, 10, 11] and the references therein), however, a common practice across those works is to treat the wireless environment as a source of noise, whose effects need to be negated at the RX side. The rapid developments of Meta-Surface (MS) technologies for precise Radio-Frequency (RF) domain control open the potential for the wireless propagation medium to be dynamically reconfigurable via reflective Reconfigurable Intelligent Surfaces (RISs) [12] or diffractive Stacked Intelligent Metasurfaces (SIM) [13] with low operational costs. Such MS s have been incorporated in GOC and semantic systems to reduce the transceiver hardware complexity [14] or to enhance the system’s rate [15]. Under another research direction, DNN implementations entirely in the RF domain, capitalizing on MS-based solutions, have been devised for controlled laboratory environments [16, 17, 18].

In this paper, motivated by the elaborate wireless medium control offered by MS technologies [12, 13], in conjunction with their analog computational capabilities, we design MS-controllable wireless channels that perform Over-the-Air Computation (OAC), under which the comprising metamaterials are treated as hidden artificial neurons that control the wireless medium to perform multi-layer non-linear signal processing toward solving EI tasks, as illustrated in Fig. 1. The main contributions of this paper are summarized as follows.
-
1.
We present a novel generic End-to-End (E2E) DNN framework, titled Metasurfaces-Integrated Neural Network (MINN), that admits variations of controllable MSs or MSs of trainable, yet fixed response configurations, of either RISs or SIM and with or without channel knowledge. We detail the framework’s modeling, backpropagation-based training, and deployment from both a theoretical and a system architecture perspectives.
-
2.
We elaborate on the critical role of reconfiguration of wireless channels as a degree of freedom in optimizing DNN-based EI models that capitalize on programmable OAC, instead of treating the wireless propagation environment as a source of noise. To this end, learning RISs and SIM configurations promises substantial potential.
-
3.
We present an extensive numerical evaluation of the proposed MINN framework on an image classification task, which compared with conventional communication systems, as well as a baseline in the absence of an MS, showcases that MS-enabled OAC allows for successful EI with much lower transmit power requirements, even without channel knowledge at the communication ends.
The remainder of the paper is structured as follows. Section II details the relevant pieces of theory regarding EI as well as the possible improvements brought by controlling the wireless environment, while Section III provides a comprehensive review of the relevant literature. Section IV includes the models used for the considered MS technologies: RIS and SIM, as well as the model for the received signal for both cases. The proposed MINN architecture for EI is presented in Section V, whereas Section VI details its training procedure and discusses the deployment and network considerations. Our numerical investigations are presented in Section VII. Finally, Section VIII includes the paper’s concluding remarks.
Notation: Vectors, matrices, and sets are expressed in lowercase bold (e.g., ), uppercase bold (e.g., ), and uppercase calligraphic typefaces (e.g., or ), respectively. Apart from , , and that denote the conjugate, conjugate transpose, and transpose of , superscripts and subscripts are used to denote different versions of variables or enumeration over collections of variables depending on the context. and are used to denote the -th element of and the -th element of , respectively. We use variations of the notation to represent neural network functions that are parameterized by their weight matrix , noting that may be seen either as a function of its arbitrary input variables (during inference) or as a function of (during optimization). represents the cardinality of the set , creates a square matrix with the elements of placed along its main diagonal, and transforms in a column vector in a row-by-row fashion. denotes the Kronecker product, expresses a set or collection containing and , while is the indicator function equaling to if condition cond holds, otherwise to . Finally, is the expectation operator with respect to the distribution of the random , and .
II Prerequisites
II-A Probabilistic Inference
Given an input observation , the objective of an inference procedure is to compute and output an associated target attribute value . The mapping function is considered unknown and intractable to express analytically, therefore, inference involves approximating this relationship through examples of tuples. From a probabilistic perspective, one may fit the conditional Probability Density Function (PDF) of the target on the available data. In typical settings, point estimates are only required, thus, the problem reduces in predicting the most likely value of for a given observation. In the machine learning regime, the previous distribution (or its point estimates) can be approximated by a -parameterized model that outputs its prediction of the target value for a given input. Consecutively, to solve the inference problem, the parameter values need to be optimized. This is achieved by collecting a data set of training tuples , and then minimizing an amortized cost function over the training instances:
(1) |
The per-instance cost function values ’s quantify the error in the model’s predictions and they often have a probabilistic interpretation. For instance, in classification settings where each observation belongs to one of classes indexed by the natural number , the target value is defined via one-hot encoding as . The Cross Entropy (CE) loss function is defined as follows:
(2) |
Minimizing (2) over is equivalent to performing maximum likelihood estimation of on under the assumption that this PDF is a multivariate Bernoulli distribution. Similarly, in regression tasks, where , the Mean Squared Error (MSE) metric, defined as , implies that is a Gaussian conditional PDF.
II-B Artificial Neural Networks
While a wide range of parameterized families of functions is available to use as , the current state of the art considers DNN models, capitalizing on their diverse benefits including high expressivity, diverse selection of architectural components for different tasks, and parallelizable computations that offer real-time computational cost during inference on pertinent hardware. Mathematically, let a neural network be expressed as a composition of layers such that:
(3) |
so that the -th layer () is parameterized by , and its output constitutes the input to the -th layer; this process can be represented recursively by , where we have set . For convenience, let us also define the vector .
We leave aside precise definitions of individual layer functions, as there has been an impressive body of work focusing on layers that perform data-specific computations and capture high-level patterns in data sets [19]. Nevertheless, we highlight the fact that each is demanded to be a non-linear function, and, in fact, it is often requested to be discriminatory or sigmoidal [20]. Those properties guarantee that artificial neural networks with at least two layers (of potentially infinite width) are universal approximators and can, therefore, be used to approximate any arbitrary mapping, i.e., [20].
Besides theoretical guarantees, the problem of obtaining values that perform successful inference can be efficiently solved by substituting the neural network expression from (3) into (2) (using classification as an example), and subsequently into (1). The latter may be solved through one of the many variations of the Stochastic Gradient Descent (SGD) approach by computing the gradients , and propagating them through the layers of by taking advantage of the chain rule; this leads to the celebrated backpropagation algorithm [21] that constitutes the backbone of deep learning.
II-C Edge Inference (EI)
The rising field of EI considers the implementation and training of inference tasks over a wireless communication network. In that regard, consider an uplink setup where a multi-antenna TX observes and wishes to convey its estimation of the target value to an RX. At first observation, this task is apparently straightforward to implement within the existing frameworks of machine learning and wireless communications under the following two paradigm options:
II-C1 “Infer-then-transmit”
The TX may first compute and then transmit over the wireless medium upon performing source coding (i.e., data compression) and channel coding (i.e., modulation and beamforming) to derive the transmission signal . The above coding computations ensure that a satisfactory communication rate is achievable by the system so that may be reconstructed at the RX’s side via decoding the received signal and decompressing the data. In modern high-complexity wireless systems, those operations require their own optimization procedures and necessitate additional computational costs as well as channel state information knowledge. For most inference tasks, the target values are of a much smaller dimension than the observations, as a result, this option includes small rate requirements, but comes at a computational cost on the TX’s side, as the device must be endowed with hardware capable of executing DNN computations locally. Since EI tasks are envisioned specifically for cases where IoT or other lightweight devices with low complexity and minute power consumption sending messages to a collection/fusion center, the assumption of computational capabilities for local DNN inference is rather optimistic.
II-C2 “Transmit-then-infer”
This converse approach is also possible: the TX performs source and channel coding but no DNN-based EI computations, so that the original observation is transmitted instead. The RX performs decoding to obtain the data point, which is then fed to its local to perform inference. While in uplink settings, it is reasonable to assume that the RX has sufficient power and hardware capabilities to support a DNN, the rate required for transmitting the original observation may impose high link budget demands that are not readily facilitated.
II-C3 “Infer-while-transmitting” (DNN splitting)
The intermediate representations can be of arbitrary dimensions, and it is not uncommon to devise architectures with one or more small-sized intermediate layers. In fact, various deep learning models, such as auto-encoders [23] and U-Net [24], are designed specifically to contain such bottleneck layers as a form of compression to keep only relevant information. From that perspective, one may choose to split the first layers of the DNN to reside at the TX, so that is transmitted over the network and, then, pass to the -th up to the -th layer in sequence at the RX.
Evidently, the latter paradigm of EI is the most flexible, since one has the option to balance trade-offs between computation and communication resources between the TX and RX. In the remainder of this paper, we will be adopting this paradigm of EI as the default case and provide further elaboration and extensions, revisiting the two extreme previous cases as baselines in our numerical comparisons.
II-D Computational Considerations
When performing DNN splitting over a wireless channel with realistic characteristics (i.e., large- and small-scale fading, as well as Additive White Gaussian Noise (AWGN)), the transmitted output of the -th DNN layer will be distorted when arriving at the RX. By representing the channel state with an abstract random variable , one needs to minimize the same -parameterized objective function as before, while accounting for the stochastic nature of the wireless environment (i.e., with respect to ’s distribution), i.e., solve:
where each instantaneous channel realization affects the value of the objected function by distorting the value of the transmitted . The precise definition of will be given in Section IV, while the considered fading distributions are discussed during the numerical evaluation in Section VII.
Assuming the wireless channel has sufficient capacity, optimizing both endpoints to perform source and channel encoding and decoding, under the standard paradigm of wireless communications, will indeed nullify the distortion on the received version of . The decoding output may then passed to the -layer of the network as normal; note that the presence of the channel is effectively hidden from the neural network’s perspective. This approach aligns more with the standard practices of both the wireless communications and machine learning paradigms, as each problem is treated individually and has shown to indeed exhibit satisfactory results [8, 15]. However, the above practice of optimizing the system for reconstruction of the received signal may result in higher computational overheads under the following considerations:
-
1.
Input reconstruction is not the objective of EI, rather the computation of an arbitrary function of it. Under this point of view, allocating computational resources in reconstructing intermediate variables is not always the most efficient way of solving the problem. In fact, one may regard GOC as a particular instance of lossy compression between the (unseen) target value and its estimation , where plays the role of the distortion metric. From an information-theoretic perspective, variations of the distortion-rate functions may then be studied, as proposed by [25], indicating that the channel rate required to transmit intermediate variables, while ensuring a desired error threshold, is typically lower than the actual channel capacity which assumes reconstruction with arbitrary small error probabilities.
-
2.
From an engineering perspective, since the received signal is to be fed to subsequent neural network layers, perfect reconstruction may not be required. The employed neural network architectures are commonly designed to account for noisy inputs in light of the inherent stochasticity of inference problems. Besides, manually imputing noise to activations of intermediate layers, both during training [26, 27] and inference [28, 29], is known to enhance the model’s regularization and uncertainty estimation properties.
-
3.
Finally, the wireless channel, which can be regarded as a (naturally stochastic) function over the transmitted data, imposes its own computations. While this function is not, in general, controllable by the E2E system, OAC approaches leverage the superimposition of wireless signals to implement certain families of computational functions on top of the wireless medium. Interestingly, the controllability offered by emerging MS technological solutions has the potential to enable more elaborate computations over-the-air, essentially offloading computations from the communication network’s endpoints.
III Relevant State-of-the-Art
The implementation of DNN s at the transceivers has been studied under the JSCC paradigm, with results that outperform traditional communication systems due to the neural networks’ ability to learn useful patterns from the data and channel distributions [30, 31]. However, JSCC is limited to data reconstruction as an objective. Conversely, deep semantic communication approaches [32], endow the communication system with the purpose of transmitting the meaning of the data, rather than their bit representations, which can be interpreted as a GOC objective. Notably, the DeepSC architecture of [8] proposes a DNN splitting approach, with separate source and channel coding sub-modules that are trained independently. The channel encoder and decoder are trained to maximize an MI objective, which, on the one hand, is difficult to evaluate analytically for fading channels, while, on the other hand, maximizing the MI additionally implies that the effects of the channel are to be negated instead of being used for computations. In [10], a GOC approach with separate source and channel coding modules was developed for image retrieval under AWGN and Rayleigh fading, which further exemplified the benefits of separate training of each component rather than E2E. However, this training is possible due to the inserted rate-like part of the loss function that also treats the channel as noise, instead of a computational entity. Besides, the idea of DNN splitting for EI tasks has been investigated in [22, 6] from the information bottleneck viewpoint, to derive optimal network partitioning in uncontrollable wireless channels.
Traditionally, OAC methods have been developed to compute aggregate functions over multiple-access channels based on the superpositions of signals [33], and have been utilized for federated learning tasks, as in [34]. Both of these OAC approaches, however, focused on computing a limited, yet useful family of analytical functions that are fundamentally different from the computations that take place in hidden neural network layers. More relevant to the present work is the methodology of [7], where the wireless channel is treated as a hidden network layer encompassed by DNN layers at the transceivers. While this E2E treatment can be utilized under the context of GOC, the fact that the computations imposed by wireless channels are not controllable in the absence of any MS flavor, provides limited benefits. In essence, the proposed MINN framework in this paper is general enough to accommodate this setup as a special case, once the MS-induced links are ignored in the overall system model. In the numerical evaluation section later on, we compare with this variation to illustrate the benefits of integrating MS(s) as hidden layer(s) for effective mixed digital/analog computation.
The joint consideration of MSs and deep learning is a growing body of research. Apart from works that introduce deep learning algorithms to control RISs [35, 36, 37] or SIM [38], cascaded MSs have been introduced as DNN layers of diffractive implementations in [16, 17, 18], towards analog computing hardware that is envisioned to exhibit notable benefits in computational speed and power consumption. In this paper, we are motivated by all-optical neural network implementations, but our framework is differentiated by the fact that the SIM layers are assumed to reside within the wireless environment, so that the E2E system needs to account for time-varying wireless fading when passing information between the SIM and digital network layers at the TX/RX endpoints [39]. It is noted that purely optical DNNs have the limitation that the input data needs to be transferred to the RF domain via techniques like holography, illumination, or traditional modulation, which are currently impractical for real-life deployment of such architectures. Finally, in the context of wireless networks, other works have capitalized on sophisticated designs of the responses of the elements of MSs to implement wave-domain signal processing [40, 41] or multi-access edge computing [42] tasks.
Regarding approaches that specifically consider GOC or semantic communication problems with the inclusion of MSs, a GOC approach was recently introduced in [14], according to which, the DNN layers at the transceivers were implemented via SIM layers, in contrast to having the SIM as part of the environment, as proposed by this work. Indeed, performing DNN computations at the RF regime even at the endpoints has the aforementioned benefits, however, the hardware design of such transceivers is far from trivial to be implemented by low-cost IoT devices. Besides, an MS placed directly inside the wireless environment may offer more precise control of the propagation medium. Finally, semantic communications were performed through the assistance of an RIS placed at the environment in [15]. In that approach, the RIS was optimized to maximize an equivalent Signal-to-Noise Ratio (SNR) objective, similar to [8], whereas we herein propose to treat the problem in an E2E manner. In the numerical evaluation of Section VII, we include a baseline where the RIS alongside other components are optimized with respect to the achiavable Shannon rate, and we show that this approach is less effective compared to our E2E treatment under the considered system, especially in the low-SNR regime. Despite the related literature of E2E architectures for EI that potentially take advantage of MS capabilities, to the best of our knowledge, the proposed MINN framework is the first work to highlight the importance of treating the MS-enabled smart wireless channel as a favorable computational machinery embedded inside an E2E DNN architecture.
IV System and MS Components Modeling
IV-A System and Received Signal Models
We consider the uplink of a point-to-point Multiple-Input Multiple-Output (MIMO) communication system, where a TX equipped with transmit antennas wishes to transmit its data to an -antenna RX on a frame-by-frame basis, where the frames are indexed as and are possibly unevenly spaced. This communication is enhanced via an MS (either an RIS or SIM), deployed as a standalone node in the wireless environment, whose configuration may change at every discrete time step upon the command of an abstract controller unit. Without loss of generality, let us assume that the SIM is consisted of thin diffractive layers, each with unit elements, so that it contains phase-tunable elements in total. For ease of notation and to present a comprehensive system model, we will additionally use to denote the number of RIS tunable elements. Furthermore, let us define the Channel Frequency Response (CFR) matrices at each -th time instance for the TX-RX, the TX-MS, and the MS-RX links as , , and , respectively. The transmitted signal is expressed as , which satisfies a power budget constraint . In fact, we suggest that represents both the intended, source-coded, and modulated data stream (according to the MIMO spatial multiplexing principle, the number of data symbols need to be ), as well as potential beamforming weights, without making any specific assumptions about the underlying procedures that produced the transmitted signal or the distribution of symbols.
During each -th frame transmission, the MS is characterized by its controllable phase configuration vector in the case of an RIS and in the case of SIM, while its resulting response configuration is modeled for the idealized case of unit amplitude as . The effects of the responses of the metamaterials in the cascaded channel are captured via the matrix , the structure of which, will be detailed in the next subsection. In the remainder of this work, , , and are used as generic notation to describe any of the RIS and SIM cases, while device-specific notation is introduced wherever needed. Using the above, the baseband received signal at the RX antennas is expressed as follows:
(4) | ||||
(5) |
where denotes the AWGN at the RX, comprising of independent and identically distributed (i.i.d.) samples drawn from the standard complex normal distribution . In the sequel, we will be making use of the transmission function as an abstraction, emphasizing that the wireless medium is treated as a programmable computation. In this definition, we use the notation for the instantaneous Channel State Information (CSI), which is assumed to be readily available to all system nodes. Obviously, this availability implies a recurring channel estimation phase at each -th time step, which may be a challenging prerequisite (see [36] and references therein). Nevertheless, this assumption allows the focus of this work to be on the training and evaluation of the proposed MINN architecture. Logical future extensions could incorporate the channel estimation phase in the DNN transceiver modules themselves, following ISAC principles [12]. Alternatively, channel-agnostic variations of transceivers will be also proposed and evaluated in the following sections to illustrate the performance trade-offs when integrating MSs as over-the-air neural network layers.
IV-B RIS and SIM Models
Considering first an RIS, let its phase configuration vector at time be denoted as ( in (5)), so that the phase state of its -th unit element () is expressed as . Then, the induced weights at the response configuration vector are given as () In this case, using the diagonal matrix definition , it holds that in (4).
Proceeding to the introduction of the SIM into the system model, we first assume that all layers () are closely stacked and aligned parallel to each other, with their shared normal vector oriented perpendicular to the line connecting the TX and RX positions. Under this placement, the signal from the TX arrives at the first layer of the SIM, undergoes diffraction and controllable phase shifting by the consecutive layers, before being finally diffracted towards the RX. Let us define the distance between any consecutive MS layers as and the area of each unit element as . Due to the compact placement of the layers, the layer-to-layer propagation can be accurately modeled via the Rayleigh-Sommerfeld diffraction equation [14, 13]. Namely, we define the propagation coefficient matrix from each -th to the -th layer as , so that its -th entry () includes the propagation gain between the (arbitrarily ordered) -th unit element of the -th layer and the -th element of the next layer, as follows [13]:
(6) |
where denotes the distance between the centers of the -th and -th elements, and is the carrier frequency.
Apart from diffracting, each -th element of each -th SIM layer introduces a controllable weight, similar to the RIS modeling, denoted as . We also introduce including the response configuration at the -th layer, the overall response configuration , and the phase configuration vector of the SIM . By defining , the overall SIM response can be mathematically expressed via the following matrix [39]:
(7) |
Note that, for , (4) holds for the SIM case.
Revisiting the previously introduced generic notations of and , they can now be expressed concretely for each of the RIS and SIM cases as and . In the rest of this paper, , , and will be used when the underlying operations are agnostic of the MS type, while , , and their respective vectors will be explicitly utilized when the operations need to discriminate between RISs and SIM.
V Metasurface-Integrated Neural Networks

V-A Transceiver Modules
As initially discussed in Section II-C, EI entails two computational modules, collocated at the transceiver endpoints. To implement the “infer-while-transmitting” methodology, the TX utilizes an encoder DNN, , providing the output , while the RX operates a decoder DNN, , deriving the output . Those blocks are tasked with performing compression, encoding and decoding, error resilience and correction, and potential transmit and receive beamforming alongside probabilistic inference. The exact layer architecture of those models is purposely left unspecified at this stage as a practitioner’s choice, depending, in general, on: i) the nature of the wireless environment; ii) the type of input and target data; iii) computational capabilities of the transceivers’ hardware; as well as iv) the current state-of-the-art. We only note that different sub-modules may be used for each of the above operations, while, typically for uplink scenarios, can be implemented with larger DNN structures due to the constant power supply at base stations. In addition, regardless of the choice of neural network, we impose a final fixed post-processing step at the encoder’s output to satisfy the TX system’s power budget, as follows:
(8) |
Considering the concrete input arguments of the encoder functions, two different variations may be defined depending on whether CSI is available to each of the endpoints.
V-A1 Channel-Agnostic Transceivers
An instance of the data variables is observed at the TX, that is passed to the encoder to construct the transmitted signal, while the decoder DNN observes the received signal and performs an estimate of the unseen target variable ; this can be described as:
(9) | ||||
(10) |
Since no CSI is used by the endpoints, we highlight the similarity of this design to source-only coding, despite the fact that the encoder may need to add redundancy in the transmitted signal, which is traditionally considered as channel coding. Evidently, both processes need to guarantee that the inference procedure performs sufficiently, irrespective of the current channel conditions, which may be a demanding request. Nevertheless, not requiring CSI is a strong simplification of the system architecture, therefore, it is included later on in our investigations in this paper.
V-A2 Channel-Aware Transceivers
Let us assume a quasi-static fading channel and a channel estimation procedure that takes place within each -th channel frame before data transmission, based on which the TX and RX modules obtain accurate estimates of the CFR matrices . Each module may receive as an additional input, yielding respectively the following representations for the encoder/decoder DNNs:
(11) | ||||
(12) |
Endowing the TX/RX modules with CSI leads to more resilient transmission schemes that closely resemble JSCC [43]. The main difference lies in that JSCC focuses on estimating , while EI deals with approximating 111Those two problems can be considered equivalent by setting the mapping function to be the identity function, yielding , and adopting MSE as the objective function . As a result, EI is a more general problem formulation than communications which focus on data reconstruction.. In this paper, we assume that channel estimation takes place transparently before every transmission, both during training and inference ,and results in noise-free estimations of . Accounting for noisy estimates or even incorporate the estimation in the procedure under ISAC paradigms lead exciting research directions, which we will study in future works.
V-B Control Module for Reconfigurable Metasurfaces
When CSI is available, as in most wireless communication settings, the MS changes its response configuration at every transmission frame to optimize the system’s objective [44]. To incorporate this mode of operation into our E2E architecture, is treated as a controllable variable that is the output of a third DNN module. Specifically, we define the metasurface controller as the following neural network:
(13) |
imposing that the final layer performs the operation . As stated before, either or may be the actual output of the module depending of the selected type of MS, however, we keep the abstract notation of to provide a general framework. Under this viewpoint, the MS is a controllable entity that can be adapted dynamically to offer favorable wave-domain computation at every channel realization. This treatment allows for fine-grained control over the reprogrammability of the environment, at the cost of an additional neural network module and the associated hardware requirements. Plugging the three trained modules from expressions (9)–(13) onto the received signal in (4), we can derive the E2E inference model , for the two channel knowledge cases, as follows:
(14) |
where the overall trainable weights of this reconfigurable architecture have been represented as , which can be trained together under the same objective functions and backward passes, as it will be detailed in Section VI.
V-C Metasurfaces with Trainable Fixed Response
As an alternative approach, one may choose to directly learn a fixed configuration for the MS; let us denote this as . While the training process may iteratively evaluate multiple candidate values for , once the training is complete, the learned configuration is equipped onto the MS to maintain a constant (static) response configuration over time, irrespective of the channel conditions or input data. This description is more akin to the idea that the effective phase configurations are treated similarly to DNN weights, as they too remain fixed after the completion of the training procedure, and are used to perform the same computational operations over varying input instances. To this end, denote the fixed phase configurations of the RIS and SIM as and , respectively. The training procedure optimizes directly, i.e., its weights , therefore, the E2E static architecture can be now expressed as follows:
(15) |
It is noted that, while reconfigurable MSs may offer more precise control in shaping the exact form of , the extra hidden layers required by the inclusion of the MS controller module may well hinder the training capabilities of the proposed MINN compared to the current variation. Besides, assuming wireless systems of reasonably limited variability, such as Line-of-Sight (LoS) dominant environments with fixed transceivers, static MS configurations may offer satisfactory performance. The next section addresses the systemic requirements for all variations of this section, while performance trade-offs are investigated under our numerical evaluations.
The final thing to consider about the proposed MINN framework are the theoretical approximation guarantees, especially considering its universal approximation capabilities. Presenting a concrete analysis of this property lies well outside the scope of this paper, as it involves proving that functionals derived of the modeling of Section IV are discriminatory and dense in the space of continuous complex functions as in [20], while also accounting for the stochastic nature of both the fading components and the AWGN. Nevertheless, we argue that, since our MINN architecture includes two typical DNNs at the start and the end of the cascaded computations, which are in fact universal approximators, the E2E architecture should also contain this property at least in the infinite-SNR regime. Intuitively, as long as does not lose information due to the noisy channel, the decoder DNN should be capable of approximating the optimal decoder of to obtain , so that the channel is completely negated, and the E2E MINN reduces to , which is indeed a universal approximator consisting of standard DNN layers.
VI MINN Training and Deployment
To perform neural network training at any of the wireless communication system nodes, a separate data collection step is carried out to generate a set of labeled data instances: . Let us also assume the availability of a set of channel sample estimates (in respective coherent time instances): , not necessarily equally spaced. In this paper, we make the assumption that the channel realizations are conditionally independent222In certain scenarios, the data realizations and the statistical properties of the channel can be statistically dependent. For example, in a target detection system where the observations contain sensory inputs, while is a binary variable indicating the existence of a target in the area of interest, deep fading may be encountered more often when a target is subject to signal blockages. In such cases, the two collection processes of channel measurements and observed data must be synchronous, and a more detailed formulation of the EI objective is required. However, the inference problem itself may be potentially computationally easier, since the CSI observation provides additional information regarding the target value. from ’s data instances. It is noted that, while this is a rather lenient assumption, it is crucial in permitting the evaluation of the expectation in ’s objective via i.i.d. Monte Carlo samples.
VI-A Backpropagation Over the Wireless Channel
The training procedure can be described as a variation of the standard gradient descent approach for neural network training, with the inclusion of channel samples. To provide a comprehensive framework, let us use the generic parameter vector with , taking the form of either or depending on the choice of use of reconfigurable or static MSs. Similar to standard deep learning practices, our E2E MINN architecture may be optimized using SGD over the collected data and channel instances. Specifically, let us express the data-channel as to explicit show the dependence of the loss function on the instantaneous wireless channel conditions. To this end, leveraging the previous described conditional independence assumption, ’s objective can be approximated as follows:
(16) |
In the online version of SGD, at every time , one may select a single data point and channel instance to evaluate (16), and accordingly update the parameter vector as follows:
(17) |
for some chosen learning rate , with the gradient at each case being defined by one of the two following expressions:
(18) | ||||
(19) |
Under the i.i.d. sampling assumption, the consecutive evaluations of the gradient of the objective function in (17) at each training instance are unbiased estimators of the true gradient of the objective in (16). Therefore, following the stochastic approximation framework [45], the repetition of this procedure will converge to the true value of the expectation with probability up to a precision of around it, using constant step size [46]. The complete training procedure is detailed in Algorithm 1, which supports all variations of channel-agnostic/-aware transceivers, static/reconfigurable MS controllers, and RIS/SIM structure. Lines - implement our MINN architecture as defined in (14) and (15). Naturally, batched gradient descent versions may be used alongside more elaborate gradient updates, such as momentum, weight decay (regularization), and adaptive rates [47], however, such implementation details have been left out for ease of presentation.
The crux of the training procedure is the gradient update mechanism of (17). Since (14) and (15) are differentiable operations with respect to or , the partial derivatives may be computed via automatic differentiation tools, by applying the chain rule on the underlying computational graph. Regardless, for the shake of completeness, we provide the derivations for the partial derivatives of the various modules, however, treating the implementation-defined derivatives of the classical neural network components (i.e., , , , and ) as known. Continuing, we will make use of the identity and that, for an -element vector and , the vectorization operation on can be expressed using matrix operations as , where is an matrix used for selecting the diagonal elements, in which is an matrix with binary elements having at its -th element and elsewhere.
For the case of a reconfigurable MS (either an RIS or SIM), is computed via (14). By applying backwards propagation, the following derivations are deduced:
(20) | ||||
(21) | ||||
(22) |
where concerns the gradient of the problem-defined loss function with respect to the network’s output, which, for the example of the CE loss of (2), is computed as . The remaining terms are defined as follows:
(23) | ||||
(24) |
with being the binary selection matrix.
In the fixed-configuration RIS case, is computed via (15), and the trainable configuration may be concretely expressed as ; the phase shift vector is . The quantities and remain the same, yielding:
(25) |
where can be computed as in (24), while .
For the fixed-configuration SIM case, the trainable configuration is expressed as , while the static phase shifts are , and again, is computed via (15). Similarly, the following derivations hold:
(26) |
where and are the same as before, while, similarly, . Since now involves the SIM system model, requires further derivations. Following the same procedure as in (24), and by denoting the response matrix of each of the SIM elements as , it is deduced with: