RIS-aided Near-Field MIMO Communications: Codebook and Beam Training Design
Abstract
Downlink reconfigurable intelligent surface (RIS)-assisted multi-input-multi-output (MIMO) systems are considered with far-field, near-field, and hybrid-far-near-field channels. According to the angular or distance information contained in the received signals, 1) a distance-based codebook is designed for near-field MIMO channels, based on which a hierarchical beam training scheme is proposed to reduce the training overhead; 2) a combined angular-distance codebook is designed for mixed-far-near-field MIMO channels, based on which a two-stage beam training scheme is proposed to achieve alignment in the angular and distance domains separately. For maximizing the achievable rate while reducing the complexity, an alternating optimization algorithm is proposed to carry out the joint optimization iteratively. Specifically, the RIS coefficient matrix is optimized through the beam training process, the optimal combining matrix is obtained from the closed-form solution for the mean square error (MSE) minimization problem, and the active beamforming matrix is optimized by exploiting the relationship between the achievable rate and MSE. Numerical results reveal that: 1) the proposed beam training schemes achieve near-optimal performance with a significantly decreased training overhead; 2) compared to the angular-only far-field channel model, taking the additional distance information into consideration will effectively improve the achievable rate when carrying out beam design for near-field communications.
Index Terms:
Beam training, codebook, multi-input-multi-output (MIMO), near-field communications (NFC), reconfigurable intelligent surface (RIS).I Introduction
Millimeter wave (mmWave) communications (30 - 300 GHz) and Terahertz (THz) communications (0.1 - 10 THz) have been recognized as promising candidate technologies for future B5G/6G networks to realize the communication goals of ultra-wide bandwidth and ultra-high transmission rate [1, 2, 3]. Although possessing extremely high bandwidth, mmWave and THz communication suffer from high propagation losses due to penetration, reflection and diffraction, resulting in a reduced link budget compared to that in the sub-6 GHz scenario [4].
To tackle the problems caused by high-frequency communications, reconfigurable intelligent surface (RIS) technology has received extensive research attention due to its distinctive capability of restructuring the wireless propagation environment and establishing additional reliable reflection-based links between the base station (BS) and the user [5, 6]. RISs consist of numerous passive controllable reflecting elements that can adjust the phase shift of incident signals with extremely low power consumption, and thus have been regarded as one of the main enabling solutions to achieve green communication and coverage extension for next-generation wireless systems [7].
The low-cost and low-complexity characteristics of RIS reflecting elements have also promoted the emergence of extremely large-scale RIS to realize higher array gain. However, with an increase in the number of RIS reflecting elements, the boundary separating the near-field communication (NFC) region and far-field communication (FFC) region becomes more distant from the RIS, making the near-field region non-negligible [8, 9, 10]. In contrast to the plane wave model in the far-field region, the electromagnetic structure in the near-field region is fundamentally different and the spherical wave model should be used [8]. The spherical-wave propagation model for NFC contains both angular and distance information, which allows the resulting beam patterns to focus on a specific point [9]. Thus, NFC can utilize the new dimension of distance to realize more precise signal enhancement, interference management and user localization for RIS-assisted wireless networks [11, 12, 13, 14].
However, reliable phase shift design for RIS-assisted communication systems relies heavily on accurate channel state information (CSI), which is challenging to obtain due to the passive property of RISs. In addition, the massive number of RIS elements in a multi-input-multi-output (MIMO) system will also lead to extremely large pilot overhead and high channel estimation complexity. Compared to cascaded channel estimation based on least squares or minimum mean squared error, codebook-based beam training has been widely adopted for mmWave or THz communication systems [15, 16, 17]. The beam training method can obtain CSI by estimating the physical directions of channel paths rather than the entire channel, thus realizing lower complexity. Moreover, beam training can directly achieve reliable beamforming by selecting a phase-shift vector from among a set of pre-defined “codewords” during the training procedure, and thus is considered to be an efficient approach to acquire CSI in RIS-assisted wireless communication systems [18, 19, 20]. Existing codebook design and beam training schemes cannot be directly applied to RIS-assisted NFC systems or hybrid FFC & NFC systems.
I-A Prior Works
I-A1 Channel modeling for NFC
Signals in the far field of an array lead to planar wavefronts that produce linear phase variations and negligible amplitude differences across the array. However, the situation is different for near-field signals. In order to achieve better performance through reasonable resource allocation, accurate channel models are essential for NFC. Hybrid-field channel modeling schemes were studied in [21] and [22], where the far-field and near-field components are separately estimated. A polar-domain representation for near-field channel models was proposed in [23], accounting for the information in both the angular and distance domains. Considering the different multi-path characteristics observed by antennas at different distances in large-scale MIMO NFC systems, the authors in [24] proposed a non-stationary distance modeling framework.
I-A2 Beam training schemes
The beam training process is implemented by searching for the optimal beam from multiple predefined directional beams (codewords). For beam training, testing all codewords in the codebook during the training process is the most straightforward approach. However, the codebook and the resulting training overhead can be extremely large for large-scale massive MIMO systems, especially when considering both angular and distance information in NFC. The authors in [15] proposed a new hierarchical codebook to achieve uniform beam alignment performance with low overhead for mmWave communication systems. For mmWave and sub-THz systems with multiple users, [4] and [16] proposed hierarchical beamforming training strategies to carry out simultaneous training for multiple users. Aiming at overcoming the resolution limit of directional angle estimation, [25] proposed a codebook-based beam search approach for mmWave massive MIMO transmissions. However, these codebooks are designed for the far-field case. Considering the spherical wavefront propagation model for NFC, [17, 26] proposed a two-phase beam training method to sequentially perform the beam sweeping in the angular and distance domains.
I-A3 Beam training design for RISs
To implement beam training for RIS-based systems, one must first construct an appropriate RIS codebook based on information about the cascaded channel. Then, based on the information obtained during the training phase, the RIS selects the optimal codeword from the predesigned codebook to perform passive beamforming. For RISs with massive numbers of elements, highly efficient beam training schemes with good performance are required to reduce the training overhead. The authors in [19] first proposed a hierarchical codebook-generating method using pattern synthesis, then provided a hierarchical beam training method using two multi-mainlobe codewords in each layer. To train multiple users at the same time, a multi-lobe beam training mechanism was proposed in [27] based on the BS-RIS joint codebook, thus achieving reduced overhead. A multi-beam training method was proposed for a RIS-assisted multiuser system in [28], by dividing the RIS into multiple sub-surfaces and designing multi-beam directions over time. Although [20, 29, 30] proposed beam training schemes for RIS-assisted NFC systems, only limited scenarios with single-antenna users were considered.
I-B Motivation and Contributions
As the size of the RIS increases, the near-field region becomes non-negligible. In NFC, CSI is not only related to the angle but also distance, thus the acquisition of CSI becomes very important for proper beam design. The methods for obtaining CSI can be roughly classified into two categories: channel estimation and beam training [30]. In this article, we consider the use of beam training to simultaneously estimate the channel parameters and perform passive beamforming [31], which is simpler than performing channel estimation first and then separately determining the optimal beamforming.
Although there are numerous beam training schemes for FFC, codebook and beam training design for NFC are still in their infancy, especially for RIS-assisted systems. Moreover, the effect of different channel modeling methods for FFC and NFC has not been well investigated. In order to fill this gap, in this article we focus on four different channel models for downlink MIMO RIS-aided systems. Furthermore, we design codebooks and beam training schemes for near-field and mixed-far-near-field channels, which are further used for RIS reflecting coefficient optimization. The main contributions of our work are listed as follows:
-
1.
We consider four different channel models for a downlink RIS-assisted MIMO system, namely, i) FF: far-field model for both BS-RIS and RIS-user links; ii) NF: near-field model for BS-RIS link, far-field model for RIS-user link; iii) FN: far-field model for BS-RIS link, near-field model for RIS-user link; iv) NN: near-field model for both BS-RIS and RIS-user links. Here, the assumption of far-field propagation leads to a planar-wave channel model, while near-field propagation leads to a spherical-wave channel model.
-
2.
According to the angular or distance information contained in the received signals, we design i) a distance-based codebook for the NN channel model, based on which we propose a hierarchical beam training scheme to reduce the training overhead; ii) a combined angular-distance codebook for NF and FN channel models, based on which we propose a two-stage beam training scheme to separately achieve alignment in the angular and distance domains.
-
3.
To maximize the achievable rate, we propose an alternating optimization (AO) algorithm to carry out the joint optimization of the RIS coefficients and the transmit and receive beamformers in an iterative manner. Specifically, the RIS coefficient matrix is obtained by the proposed beam training schemes, the optimal combining matrix at the user is obtained from the closed-form solution for the mean square error (MSE) minimization problem, and the active beamforming matrix at the BS is optimized by exploiting the relationship between the achievable rate and the MSE.
-
4.
We present numerical results revealing that: i) the proposed hierarchical and two-stage beam training approaches yield achievable rate performance similar to the exhaustive search (ES) method while significantly reducing the training overhead; ii) compared to angular-only far-field channel models, the achievable rate is improved by exploiting the additional distance information when performing the beam design for NFC.
The organization for the rest of this article is as follows. In Section II, we describe the proposed RIS-assisted MIMO system and the four considered channel models. In Section III, we design different codebooks for the different channel models based on the angular or distance information in the received signals. In Section IV, we propose an AO algorithm to carry out the joint optimization in an iterative manner for maximizing the achievable rate. In particular, two beam training algorithms are proposed in Section IV-A based on the predesigned codebooks, the combining matrix optimization is given in Section IV-B, and the active beamforming matrix optimization is described in Section IV-C. Simulation results and conclusions are given in Section V and Section VI, respectively.
II System Model

We consider a RIS-assisted downlink communication scenario, where a single multi-antenna BS serves a multi-antenna user. The direct path between the BS and the user is assumed to be blocked due to the existence of propagation obstacles. The BS is equipped with an -element uniform linear array (ULA) of antennas, and the user is equipped with an -element ULA. The RIS consists of a uniform planar array (UPA) with passive reflecting elements, where and denote the number of elements along the horizontal axis and vertical axis, respectively.
Four different channel models are considered for the RIS-assisted communication system, as shown in Fig. 1. Specifically, these four channel models are respectively abbreviated as (a) FF: far-field model for both BS-RIS and RIS-user links; (b) NF: near-field model for BS-RIS link, far-field model for RIS-user link; (c) FN: far-field model for BS-RIS link, near-field model for RIS-user link; (d) NN: near-field model for both BS-RIS and RIS-user links. We assume that the system operates at a frequency of , so the wavelength of the signal is . Denote the array spacing as , which we will assume here to be . Denote the array apertures of the BS, RIS and user as , and , respectively. For the BS and the user with ULAs, the array apertures are calculated as and , respectively; for the RIS with a UPA, the array aperture is calculated as . The comparison between the far-field region and near-field region in RIS-assisted systems is summarized in TABLE I, including the Rayleigh boundary when .
BS-RIS channel | RIS-user channel | |
---|---|---|
Far-field | ||
Near-field | ||
II-A Channel Model
In order to explore the differences among the four channel scenarios in terms of signal model, beam design, transmission performance, etc., we first provide mathematical descriptions of the models below. More specifically, we will first present the far-field model for the BS-RIS and RIS-user channels, then give the near-field model for the BS-RIS and RIS-user channels, and finally obtain the cascaded channel models for the four channel scenarios mentioned above.
II-A1 Far-field channel model
When the far-field channel model is considered, the channel between the BS and RIS is characterized by the Saleh-Valenzuela channel model [32], given by
(1) |
where is the number of paths between the BS and RIS, represents the complex gain of the line-of-sight (LoS) component, denotes the complex gain of the -th non-line-of-sight (NLoS) path [33], and denote the azimuth and elevation angle of arrival (AoA) associated with the RIS, denotes the angle of departure (AoD) associated with the BS, and and are the array response vectors associated with the RIS and the BS, respectively.
For a UPA with and elements () on the horizontal and the vertical axes respectively, the RIS array response vector is given by
(2) |
where and , and is the Kronecker product. For the ULA with elements at the BS, the array response vector is expressed as [34]
(3) |
where . Since the response vector of a ULA is constant in the elevation domain, we omit the parameter in the response vector of the BS in (3).
Similarly, the channel between the RIS and user in the far-field region is given by
(4) |
where is the number of paths between the RIS and user, denotes the azimuth AoA associated with the user, and denote the azimuth and elevation AoD associated with the RIS respectively, and the array response vectors and can be generated similarly to (2) and (3).
Remark 1.
Assume that the number of RIS elements is far larger than the number of BS and user antennas. When the far-field channel model is considered (no matter whether the BS-RIS link or the RIS-user link follows the far-field model), the rank of the cascaded BS-RIS-user channel satisfies , and we say that the channel has degrees of freedom (DoFs) [35]. Thus, the dimension of the transmitted signal vector should satisfy . When environmental scattering is absent and no NLoS paths are present, the rank of the cascaded channel is 1.
II-A2 Near-field channel model
For communications in the near-field domain, we consider a three-dimensional topology. In FFC, the signal propagation paths from transmitters to receivers can be regarded as parallel to each other if they share the same AoA. However, in NFC, the angle distribution is also related to the distance between specific points of transmitters and receivers. Assume that all the BS antennas are located on the -axis, where the coordinate of the midpoint of the BS array is denoted as . Thus, the coordinate of the -th antenna at the BS can be denoted as
(5) |
where .
Similarly, assume that all of the user antennas are parallel to the -axis, where the coordinate of the midpoint of the user array is . Thus, the location of -th antenna at the user can be denoted as
(6) |
where .
Assume that all elements of the RIS are parallel to the XY-plane. Denote the coordinate of the midpoint of the RIS as . Thus, the coordinate of the -th element of the RIS can be expressed as
(7) |
where and . Further, assume that the location and topology of the RIS are known.
Based on the above geometry, the LoS link for the near-field channel between BS and RIS can be modeled as [36]
(8) |
where and denotes the free-space large-scale path loss between the -th antenna of the BS and the -th element of the RIS. The distance between the -th antenna of the BS and the -th element of the RIS is given by
(9) |
which can be expanded as
(10) |
with denoting the distance from and the -th element of the RIS, , denoting the corresponding azimuth and elevation angle, respectively, and is obtained based on the first-order Taylor expansion .
Similarly, the LoS near-field channel between the RIS and user can be modeled as
(11) |
where and denote the free-space large-scale path loss between the -th antenna of the user and the -th element of the RIS. The distance between the -th antenna of the user and the -th element of the RIS is given by
(12) |
which can be approximated as
(13) |
with denoting the distance from the midpoint of the user array and the -th element of the RIS, , denoting the corresponding azimuth and elevation angle, respectively.
Remark 2.
When both the BS-RIS and RIS-user links are in the near-field region, the rank of the cascaded LoS channel is , which will be much larger than 1 in the case of large-scale arrays, even in the absence of NLoS paths. Thus, one of the main advantages of NFC is that they possess higher DoFs without relying on abundant environmental scattering.
II-A3 Cascaded channel model
Denote the phase-shift matrix of the RIS as , with denoting the phase-shift coefficient of the -th RIS element. Therefore, the cascaded channels of the four scenarios mentioned above can be expressed as
(14a) | ||||
(14b) | ||||
(14c) | ||||
(14d) |
II-B Signal Model
We assume that fully-digital beamforming is adopted at the BS, and thus the BS transmitted signal is given by
(15) |
where is the symbol vector, satisfying , and is the beamforming matrix or precoder.
Assuming the receiver adopts a linear combiner, the received signal at the user is given by
(16) |
where is the combining matrix, is the cascaded channel between the BS and the user based on the specific channel model, and is additive white Gaussian noise (AWGN).
The maximum achievable data rate (bits/s/Hz) for the user is given by
(17) |
where represents the determinant of the matrix .
Remark 3.
Equation (17) characterizes the maximum achievable rate when the optimal combiner at the user, denoted as , is adopted. Given , closed-form solutions for can be obtained, as detailed in the sequel.
III RIS Codebook Design
The precise design of the RIS coefficient matrix requires accurate channel information, which is difficult to obtain due to the passivity of RISs. Therefore, in this article, we consider exploiting beam training, which can perform channel estimation and RIS coefficient optimization simultaneously. To begin with, in this section, we will first design codebooks for different channel models. Based on the information contained in the received signals, angular-domain and distance-based codebooks are designed for FF and NN models respectively, while a combined angular-distance (AD) codebook is designed for NF and FN models. Each column in the designed codebook corresponds to one candidate RIS passive beamforming vector.
III-A Angular-domain Codebook for FF
In this subsection, we consider an angular-domain codebook that is universal in the far-field domain. Generally, existing RIS codebooks for FF channel models aim at aligning the beam to the strongest propagation path to maximize the beamforming gain. Ignoring weak paths, the signal at the user can be written as
(18) |
where denotes the complex gain of the cascaded LoS channel. By substituting the array response vectors and into (18), the user’s signal can be reformulated as
(19) |
where and . Thus, the optimal RIS phase-shift coefficients are . All candidate angle pairs on the beam grid should be considered when accurate channel state information is unavailable, which is one of the primary principles for far-field codebook design.
Assume that and have already been designed to align with the strongest path. and can be designed with the channel information obtained through beam training, and we will show how and can be obtained later. Thus, the RIS codebook for the FF channel model can be designed as [28] [30]
(20) |
where with , with , and is the following far-field steering vector
(21) |
Each column of is a candidate beam codeword for the RIS in the far-field domain. This angular-domain codebook design makes full use of the angular information of the far-field paths.
III-B Distance-based Codebook Design for NN
Angular-only far-field codebooks are not applicable to near-field channels, even if only one or the other of the BS-RIS and RIS-user links is in the near-field domain because both distance and angular information are embedded in the received signal. Therefore, novel codebooks are required to match the channels in the near-field region. When both the BS-RIS link and RIS-user link are in the near-field domain, the combined signal at the user is given by (22) at the bottom of the next page, where , determined by the sum of the distances from the BS to RIS and from the RIS to the user.
(22) |
Define the following array steering vector related to the distance
(23) |
where denotes the coordinate of the BS or the user, and . Generally, the height of the BS or the user is constant. Therefore, for the design of the near-field codebooks, we mainly consider the exploration of and , and the component in will be omitted hereafter.
Definition 1.
The operator is defined as follows for vectors of equal dimensions:
(24) |
where denotes the Hadamard product.
We use a pair of coordinates to represent the rectangular sampling range on the XY-plane as and , where () and () are the minimum and the maximum ()-coordinate of the sampling points respectively, and indicates the BS or user. Denote the number of points sampled on the -axis and -axis as and , respectively. Taking the corresponding distance between the sampling points into account, the codebook at the RIS for the NN channel model is given by
(25) |
where and are given by
(26a) | |||
(26b) |
The size of the codebook will increase with the number of sampling points in each direction, and the accuracy of the RIS beamforming will improve correspondingly.
III-C Combined AD Codebook Design for Hybrid FFC & NFC
In this section, we consider hybrid cascaded channel models, where one side of the RIS is in the far-field and the other is in the near-field. As such, the link on one side of RIS only needs to consider angular information, while the link on the other side needs to consider both angular and distance information. Taking the FN channel model as an example, i.e., with the BS-RIS link in the far-field and the RIS-user link in the near-field, the received signal at the user is given by
(27) |
where
(28) |
Similar to the assumptions above for FF channels, we assume that the transmit or receive beam related to the far-field link has been designed to align with the steering vector of the strongest path. That is to say, has been aligned to when designing the RIS codebook.
Considering the array response in both the distance and angular domains, we define the array steering vector as
(29) |
where and is assumed to be fixed and known.
A codebook design for hybrid cascaded channel models should cover not only the angular region of all possible signals, but their distances as well. Therefore, based on the received signal model given in (27), the codebook for hybrid cascaded channel models should be designed to include the following two components.
III-C1 Angular-domain sweeping, similar to FFC
To align the phase on the FFC side, the full angular range will be covered in the predesigned codebook. Therefore, the first component of the RIS codebook for hybrid cascaded channel models is given by
(30) |
where with , with .
III-C2 Distance-domain sampling, similar to NFC
For each given angle pair and , all possible sampling points in the feasible range should be included to align the phase on the NFC side. Therefore, the second component of the RIS codebook for hybrid cascaded channel models is given by
(31) |
where and , , are defined as in (26). In particular, for the NF case, and for the FN case.
Accordingly, the codebook at the RIS for hybrid cascaded channel models can be designed as
(32a) | |||
(32b) |
where the definition of is given in (24).
IV AO-based Algorithm for Maximizing Rate
We aim to maximize the achievable rate by jointly optimizing the combining matrix at the user, the digital beamforming matrix at the BS, and the reflecting coefficient matrix at the RIS. Suppose each passive beamforming vector at the RIS is selected from the predesigned codebooks. Therefore, the mathematical form of the optimization problem can be given as
(33a) | ||||
(33b) | ||||
(33c) |
where in (33c) is the predesigned codebook based on the specific channel model.
To handle the highly-coupled non-convex problem in (33), we propose an alternating optimization algorithm in this section, where three sub-problems will be solved in an iterative manner. First, based on the predesigned codebooks, different beam training schemes will be proposed to perform the channel estimation and the RIS optimization for the specific channel models. Second, a closed-form solution for the receive combining matrix at the user is obtained. Finally, the active beamforming problem is solved by exploiting the relationship between the achievable rate and the mean square error using convex optimization. Details for solving these sub-problems are given in the following subsections.
IV-A Beam Training Design for RIS
IV-A1 Angular-domain Beam Sweeping for FF
The most direct method to perform beam training for this case is sweeping through all possible angles if the resulting training overhead is acceptable. The size of the FF codebook in (20) depends on the number of RIS reflecting elements. Based on the given angle pair , the corresponding codeword is , and the achievable rate can be calculated as
(34) |
with given beamforming matrix . The optimal codeword is selected as the one that yields the maximum rate after sweeping through all candidate codewords in (20).
IV-A2 Hierarchical Beam Training Scheme for NN
From (25) and (26), we see that the NN codebook size is determined by the number of sampled points on the -axis and -axis. The beam training overhead can be reduced by reducing the codebook size (i.e., increasing the step size between the codebook samples), but this will reduce the performance of the beam training. In order to solve this problem, we design a hierarchical beam training approach that consists of several different levels of sub-codebooks. These sub-codebook levels are determined using different sampling ranges and sampling step sizes.

As illustrated in Fig. 2, we divide the sampling range parallel to the XY-plane into four sub-ranges in each layer, and find the range corresponding to the optimal codeword as the sampling range of the next layer. More particularly, in the -th layer, the rectangular sampling range defined by the coordinate pairs and , , is divided into the following four sub-ranges:
(35a) | ||||
(35b) | ||||
(35c) | ||||
(35d) |
where and . Therefore, the sub-codebook for sub-range of and sub-range of in the -th layer, denoted by , can be generated based on (25). Each column in corresponds to a codeword , with denoting the column index in sub-codebook . Based on the given beamforming matrix and codeword , the achievable rate can be calculated as
(36) |
By adopting the ES method, the optimal codeword can be obtained for the first layer, as well as the optimal sampling sub-range pair , which will be the sampling range in the next layer. This process is repeated until the maximum number of layers is reached.
The hierarchical beam training procedure is summarized in Algorithm 1. We define the size of the codebook as the number of candidate codewords, i.e., the number of column vectors. There are 16 sub-codebooks in each layer, and the size of each sub-codebook is . Therefore, with a given maximum number of training layers , the training overhead can be calculated as . For the same sampling grid resolution and hence beam training accuracy, the training overhead of ES will be .
IV-A3 Two-Stage Beam Training Scheme for FN and NF
The size of codebooks and is determined by the product of the number of RIS elements and the number of sample points, which can be extremely large especially for large RISs. Thus, while ES is a straightforward way to find the optimal codeword from the predefined codebooks, the training overhead and consumed time can be unacceptable. We therefore propose a two-stage beam training scheme for the FN and NF channel models. Specifically, all candidate angles are swept through in stage one, and the distance is determined in stage two based on the selected direction. The details are given as follows.
Stage 1 Angular-domain beam sweeping: In the first stage, we aim to find the optimal beamforming angle based on the far-field codebook given in (20), with the objective of maximizing the achievable rate in (17). All sampled angles will be swept through in this stage, and the one yielding the maximum achievable rate will be selected. Therefore, the selected indices in the angular-domain sweeping stage can be expressed mathematically as
(37) |
where . Denote the optimal index pair as .
Stage 2 Distance-domain sampling: In NFC, the beam can be designed to point at a particular location, rather than just a specific angle. Thus, in the second stage, we aim to determine the optimal focusing point for the optimal direction. With a given angle pair , the selected sampling point in the distance domain can be determined by
(38) |
where lies in the sampling range for , , and .
Similar to the analysis in Section IV-A2, we adopt a hierarchical beam training scheme in this stage to strike a balance between the training overhead and accuracy. Thus, the two-stage beam training procedure is summarized in Algorithm 2. The overhead of the proposed two-stage beam training scheme is , while that of the ES method is .
Remark 4.
The proposed beam training algorithms can be easily extended to scenarios with multiple users by dividing the RIS into multiple sub-surfaces, where each sub-surface implements the proposed beam training schemes to realize beam alignment for each user.
IV-B Closed-form Solution for
With the estimated channel information acquired through the beam training, we can perform the BS beamforming and the user combining design. Although the combining matrix is not present in the objective function (17), it will have an impact on the BS beamforming design and the achievable rate. Therefore, we derive the optimal combining matrix at the user below. The principle of combining matrix design is to recover the original transmitted signals, which can be transformed into a mean square error (MSE) minimization problem. The MSE matrix of the user is given by
(39) |
and thus the mathematical form of the combining matrix optimization problem can be written as
(40) |
IV-C Active Beamforming Matrix Optimization
To solve the transmit beamforming optimization problem, we introduce an auxiliary matrix , and reformulate the original optimization as follows by exploiting the relationship between the achievable rate and the MSE [37]
(42) |
where is given by
(43) |
The optimal of problem (42) can be obtained by solving , which is given by . With given , and , the beamforming optimization problem can be expressed by substituting into (43) and removing the constant terms:
(44) |
which is a convex optimization problem and its optimal solution can be obtained using standard methods.
IV-D Overall Algorithm
The overall alternating optimization algorithm for maximizing the achievable rate is summarized in Algorithm 3, where the optimal solutions in each iteration are the inputs for the next iteration. First, with given and at the -th iteration, the optimal can be obtained by carrying out the beam training scheme based on Algorithm 2 or Algorithm 1. The estimated channel information can also be obtained in this step. Then, with given and , we calculate and update the combining matrix according to (41). Although is not included in the expression of the objective function in (17), it will serve as input for the next step in solving . Last, with given , and , we first obtain the reformulated objective function by substituting in (39) into (43), and then obtain the optimized beamforming matrix by solving problem (44). This process is repeated until a maximum number of iterations is reached or the convergence condition is satisfied. The proposed algorithm is summarized in Fig. 3.

The computational complexity of the beam training mainly comes from sorting, which requires operations for angular-domain beam sweeping, operations for the hierarchical beam training scheme, and operations for the two-stage beam training algorithm. Solving problem for the combining matrix involves matrix inversion, leading to a computational complexity of [38]. According to [39], the worst-case complexity for solving problem is using efficient interior-point methods. Thus, the overall computational complexity of the proposed algorithm is for FF with angular-domain beam sweeping, for NN with hierarchical beam training, and for NF and FN with two-stage beam training, with representing the number of iterations required for the convergence of Algorithm 3.
V Numerical Results
Numerical results are provided in this section to validate the effectiveness of our proposed approach. The simulation configurations listed in TABLE II are used unless stated otherwise. The following parameter settings were used when executing the beam training schemes for both the hierarchical beam training algorithm for the NN channel model and the second beam training stage for hybrid cascaded channel models. For hierarchical beam training, the sampled range in each direction is set as . For example, denote the coordinate of the BS antenna midpoint as , where is fixed. The sampled ranges of the BS in the - and -directions are and , respectively. The same applies to the sampled ranges of the user. The numbers of sampled points for hierarchical beam training in the - and -directions are both set as . The simulation results are obtained by averaging over 500 channel realizations.
Parameter | Value |
---|---|
Carrier frequency | 30Ghz |
Noise power | -105dBm |
Power budget at the BS | 30 dBm |
BS’s coordinate | m |
User’s coordinate | m |
RIS’s coordinate | m |
Number of BS antennas | 16 |
Number of user antennas | 8 |
Number of RIS elements along /-axis | 60, 2 |
Antenna spacing | |
Number of NLoS channels for far-field region | 2 |

To determine the number of training layers of the hierarchical beam training scheme, we show the relationship between the achievable rate and the number of training layers in Fig. 4. It can be seen that when , the achievable rate no longer increases with . Although the achievable rate only improves slightly from to , we set the total number of training layers hereafter as for better performance. Also, we depict the achievable rate obtained by the ES approach when the number of sampled points is set as 8 and 16 in each direction. The size of the NFC codebook is , so it can be extremely large for large and . Thus, we only considered two scenarios with small and to compare the performance between the proposed hierarchical beam training and ES approaches. Note that we divide the whole sampling range into two sub-ranges in each direction, so there are 4 sampled points in each direction when for hierarchical beam training. Therefore, the proposed hierarchical algorithm achieves the same accuracy as ES with when the number of training layers is 2, and it is also the same for when the number of training layers is 3, which verifies the effectiveness of our proposed approach which has significantly reduced training costs.

The required beam training overhead of various training algorithms for different sampling step sizes is compared in Fig. 5. For NN channel modeling, the proposed hierarchical near-field beam training approach greatly reduces the training overhead compared to ES beam training, especially when the sampling step size is small. When the step size is 160, the overhead of the hierarchical beam training approach is only about 2% of that required for ES. When the step size is 500, these two schemes have the same training overhead, and the required number of training layers for hierarchical beam training is 1. For hybrid FFC & NFC channel models, hierarchical beam training always requires less overhead than ES, regardless of the sampling step size.

The convergence performance of the proposed AO-based algorithm is shown in Fig. 6. Based on the simulation parameters provided earlier, we can calculate that both the BS-RIS and RIS-user links are within the near-field region. Since the NN channel model with hierarchical beam training is more accurate since it considers both angular and distance information of the cascaded links, it will provide a higher achievable rate. Even though the NN channel model is adopted, the performance obtained with angular-domain beam training is poor, because distance information is not considered. The FF channel model has the worst performance due to the accumulative channel estimation error of links on both sides of the RIS. Furthermore, it can be seen that the achievable rate for the NF channel model is higher than that for FN, which is due to the fact that: 1) the BS and RIS are closer together than the RIS and user, and 2) the BS has more antennas than the user. Thus, it is more critical for the BS-RIS link to adopt the near-field channel model to realize phase alignment.

For the NN channel model, the normalized received signal strength is depicted in Fig. 7. We can see that the maximum received power appears at coordinate (24, 0), which is exactly where the user is located. Since the user’s antennas are distributed parallel to the -axis, the received signal strength is also dispersed along the -axis. Moreover, the RIS reflecting elements are more distributed along the -axis direction, which will also lead to such a distribution of reflected signals. Unlike FFC, NFC can achieve beam focusing, concentrating the energy of the beam at a specific location.

Fig. 8 shows the achievable rate as the RIS is located at different points in the -direction. Note that the coordinates of both the BS and the user are 0. For smaller values, the closer the RIS is to the BS and user, the more obvious the near-field effect. Therefore, the performance gain of adopting NN channel models and hierarchical beam training is more significant with smaller , and the results are consistent with that in Fig. 6 when . Moreover, as the distance between the RIS and BS and the user gradually increases, the performance gap due to different channel models and beam training methods gradually decreases, which also verifies that the near-field channel can be approximated as the far-field channel when the distance is large enough.

The achievable rate obtained for different RIS locations along the -direction is depicted in Fig. 9. It is not difficult to see that the NN channel model with hierarchical beam training always has the highest rate, regardless of the RIS location. In addition, for the NN channel model, a peak appears on both the BS and user side, which is consistent with the conclusions for FFC. Due to the larger number of antennas at the BS compared to the user, better transmission performance is obtained by deploying the RIS on the side near the BS. For the NF channel model, the maximum achievable rate is obtained with the RIS near the BS, due to the more obvious near-field effect of the BS-RIS link. As the RIS moves away from the BS, the achievable rate decreases, although this degradation in rate slows near the user’s location. For the FN channel model, in contrast to NF, the peak appears around the user. When adopting the NN channel model and angular beam training, a peak occurs only when the RIS is deployed at an equal distance between the BS and the user, which means that angular beam training for the NN model is only useful in restricted scenarios.

In Fig. 10, we show the relationship between the achievable rate and the power budget at the BS. As expected, regardless of the channel model or beam training approach, the achievable rate increases with the BS power budget. In addition, for low BS power, NN with hierarchical beam training cannot fully leverage its advantages and has a lower achievable rate than NF and FN. As the power increases, the achievable rate of NN increases the fastest, and its performance advantages become increasingly pronounced compared to the other models. The rates achieved with the NF and FN channel models are nearly the same for all power levels, since the BS-RIS and RIS-user distances remain the same, and the same beam training methods are used for both.

Fig. 11 shows the achievable rate for different numbers of RIS reflecting elements . The achievable rate for all channel model and beam training approaches increases with , due to the higher passive array gains that can be obtained from larger RIS. The NN channel model achieves the fastest increase in rate as increases since the near-field effect is greater for larger RISs, the NN model describes the channel more accurately, and the hierarchical beam training approach realizes a more effective beam focusing. When the number of RIS elements is large enough, the achievable rate obtained using the NN channel model with angular-domain beam training will be superior to that of the FF model, even if the beam training approach is not specifically designed for the NN model.
VI Conclusions
In this article, we considered four different channel models for a RIS-assisted downlink MIMO system. According to the angular or distance information embedded in the received signals under these specific channel models, we designed different codebooks to match the beam steering vectors for the RIS. Based on the predesigned codebooks, we proposed two beam training approaches, which were further used for RIS coefficient optimization. More specifically, for the NN channel model, we designed a distance-based codebook and proposed a hierarchical beam training algorithm to realize beam alignment while reducing the training overhead; for the NF and FN channel models, we designed a combined angular-distance codebook and proposed a two-stage beam training approach to separately realize beam alignment in the angular- and distance domains. To maximize the achievable rate, we proposed an AO-based algorithm to carry out the multi-resource optimization in an iterative manner. Numerical results show that the proposed beam training approaches can obtain achievable rate performance similar to the ES method, while significantly reducing the training overhead. Our results demonstrate that the use of distance in addition to angular information can effectively improve the system performance with near-field channels.
References
- [1] I. F. Akyildiz, C. Han, and S. Nie, “Combating the distance problem in the millimeter wave and terahertz frequency bands,” IEEE Commun. Mag., vol. 56, no. 6, pp. 102–108, 2018.
- [2] C. Castro, R. Elschner, T. Merkle, C. Schubert, and R. Freund, “Experimental demonstrations of high-capacity THz-wireless transmission systems for beyond 5G,” IEEE Commun. Mag., vol. 58, no. 11, pp. 41–47, 2020.
- [3] K. M. S. Huq, J. Rodriguez, and I. E. Otung, “3D network modeling for THz-enabled ultra-fast dense networks: A 6G perspective,” IEEE Commun. Stand. Mag., vol. 5, no. 2, pp. 84–90, 2021.
- [4] C. Lin, G. Y. Li, and L. Wang, “Subarray-based coordinated beamforming training for mmWave and sub-THz communications,” IEEE J. Sel. Areas Commun., vol. 35, no. 9, pp. 2115–2126, 2017.
- [5] C. Pradhan, A. Li, L. Song, B. Vucetic, and Y. Li, “Hybrid precoding design for reconfigurable intelligent surface aided mmWave communication systems,” IEEE Wireless Commun. Lett., vol. 9, no. 7, pp. 1041–1045, 2020.
- [6] C. Huang, Z. Yang, G. C. Alexandropoulos, K. Xiong, L. Wei, C. Yuen, Z. Zhang, and M. Debbah, “Multi-hop RIS-empowered terahertz communications: A DRL-based hybrid beamforming design,” IEEE J. Sel. Areas Commun., vol. 39, no. 6, pp. 1663–1677, 2021.
- [7] M. Di Renzo, A. Zappone, M. Debbah, M.-S. Alouini, C. Yuen, J. de Rosny, and S. Tretyakov, “Smart radio environments empowered by reconfigurable intelligent surfaces: How it works, state of research, and the road ahead,” IEEE J. Sel. Areas Commun., vol. 38, no. 11, pp. 2450–2525, 2020.
- [8] H. Lu and Y. Zeng, “Communicating with extremely large-scale array/surface: Unified modeling and performance analysis,” IEEE Trans. Wireless Commun., vol. 21, no. 6, pp. 4039–4053, 2022.
- [9] H. Zhang, N. Shlezinger, F. Guidi, D. Dardari, M. F. Imani, and Y. C. Eldar, “Beam focusing for near-field multiuser MIMO communications,” IEEE Trans. Wireless Commun., vol. 21, no. 9, pp. 7476–7490, 2022.
- [10] Y. Liu, Z. Wang, J. Xu, C. Ouyang, X. Mu, and R. Schober, “Near-field communications: A tutorial review,” arXiv preprint arXiv:2305.17751.
- [11] Y. Jiang, F. Gao, M. Jian, S. Zhang, and W. Zhang, “Reconfigurable intelligent surface for near field communications: Beamforming and sensing,” IEEE Trans. Wireless Commun., vol. 22, no. 5, pp. 3447–3459, 2023.
- [12] P. Mei, Y. Cai, K. Zhao, Z. Ying, G. F. Pedersen, X. Q. Lin, and S. Zhang, “On the study of reconfigurable intelligent surfaces in the near-field region,” IEEE Trans. Antennas Propag., vol. 70, no. 10, pp. 8718–8728, 2022.
- [13] X. Zhang and H. Zhang, “Hybrid reconfigurable intelligent surfaces-assisted near-field localization,” IEEE Commun. Lett., vol. 27, no. 1, pp. 135–139, 2023.
- [14] Q. Yang, R. He, and B. Ai, “SNR analysis for RIS-aided communication system in near- and far-fields,” in 2022 14th International Conference on Wireless Communications and Signal Processing (WCSP), 2022, pp. 1001–1006.
- [15] J. Zhang, Y. Huang, Q. Shi, J. Wang, and L. Yang, “Codebook design for beam alignment in millimeter wave communication systems,” IEEE Trans. Commun., vol. 65, no. 11, pp. 4980–4995, 2017.
- [16] C. Qi, K. Chen, O. A. Dobre, and G. Y. Li, “Hierarchical codebook-based multiuser beam training for millimeter wave massive MIMO,” IEEE Trans. Wireless Commun., vol. 19, no. 12, pp. 8142–8152, 2020.
- [17] Y. Zhang, X. Wu, and C. You, “Fast near-field beam training for extremely large-scale array,” IEEE Wireless Commun. Lett., vol. 11, no. 12, pp. 2625–2629, 2022.
- [18] P. Wang, J. Fang, W. Zhang, Z. Chen, H. Li, and W. Zhang, “Beam training and alignment for RIS-assisted millimeter-wave systems: State of the art and beyond,” IEEE Wireless Commun., vol. 29, no. 6, pp. 64–71, 2022.
- [19] J. Wang, W. Tang, S. Jin, C.-K. Wen, X. Li, and X. Hou, “Hierarchical codebook-based beam training for RIS-assisted mmWave communication systems,” IEEE Trans. Commun., early access, 2023.
- [20] W. Liu, C. Pan, H. Ren, F. Shu, S. Jin, and J. Wang, “Low-overhead beam training scheme for extremely large-scale RIS in near field,” IEEE Trans. Commun., early access, 2023.
- [21] X. Wei and L. Dai, “Channel estimation for extremely large-scale massive MIMO: Far-field, near-field, or hybrid-field?” IEEE Commun. Lett., vol. 26, no. 1, pp. 177–181, 2022.
- [22] Z. Hu, C. Chen, Y. Jin, L. Zhou, and Q. Wei, “Hybrid-field channel estimation for extremely large-scale massive MIMO system,” IEEE Commun. Lett., vol. 27, no. 1, pp. 303–307, 2023.
- [23] M. Cui and L. Dai, “Channel estimation for extremely large-scale MIMO: Far-field or near-field?” IEEE Trans. Commun., vol. 70, no. 4, pp. 2663–2677, 2022.
- [24] Z. Yuan, J. Zhang, Y. Ji, G. F. Pedersen, and W. Fan, “Spatial non-stationary near-field channel modeling and validation for massive MIMO systems,” IEEE Trans. Antennas Propag., vol. 71, no. 1, pp. 921–933, 2023.
- [25] S.-G. Yoon and S. J. Lee, “Improved hierarchical codebook-based channel estimation for mmwave massive MIMO systems,” IEEE Wireless Commun. Lett., vol. 11, no. 10, pp. 2095–2099, 2022.
- [26] C. Wu, C. You, Y. Liu, L. Chen, and S. Shi, “Two-stage hierarchical beam training for near-field communications,” arXiv preprint arXiv:2302.12511.
- [27] Y. Zhang, B. Di, H. Zhang, M. Dong, L. Yang, and L. Song, “Dual codebook design for intelligent omni-surface aided communications,” IEEE Trans. Wireless Commun., vol. 21, no. 11, pp. 9232–9245, 2022.
- [28] C. You, B. Zheng, and R. Zhang, “Fast beam training for IRS-assisted multiuser communications,” IEEE Wireless Commun. Lett., vol. 9, no. 11, pp. 1845–1849, 2020.
- [29] D. Shen, L. Dai, X. Su, and S. Suo, “Multi-beam design for near-field extremely large-scale RIS-aided wireless communications,” IEEE Trans. Green Commun. Netw., early access, 2023.
- [30] X. Wei, L. Dai, Y. Zhao, G. Yu, and X. Duan, “Codebook design and beam training for extremely large-scale RIS: Far-field or near-field?” China Commun., vol. 19, no. 6, pp. 193–204, 2022.
- [31] D. De Donno, J. Palacios, and J. Widmer, “Millimeter-wave beam training acceleration through low-complexity hybrid transceivers,” IEEE Trans. Wireless Commun., vol. 16, no. 6, pp. 3646–3660, 2017.
- [32] O. E. Ayach, S. Rajagopal, S. Abu-Surra, Z. Pi, and R. W. Heath, “Spatially sparse precoding in millimeter wave MIMO systems,” IEEE Trans. Wireless Commun., vol. 13, no. 3, pp. 1499–1513, March 2014.
- [33] M. R. Akdeniz, Y. Liu, M. K. Samimi, S. Sun, S. Rangan, T. S. Rappaport, and E. Erkip, “Millimeter wave channel modeling and cellular capacity evaluation,” IEEE J. Sel. Areas Commun., vol. 32, no. 6, pp. 1164–1179, June 2014.
- [34] X. Gao, L. Dai, S. Han, C.-L. I, and R. W. Heath, “Energy-efficient hybrid analog and digital precoding for mmWave MIMO systems with large antenna arrays,” IEEE J. Sel. Areas Commun., vol. 34, no. 4, pp. 998–1009, April 2016.
- [35] C. Ouyang, Y. Liu, X. Zhang, and L. Hanzo, “Near-field communications: A degree-of-freedom perspective,” arXiv preprint arXiv:2308.00362.
- [36] M. Cui, L. Dai, R. Schober, and L. Hanzo, “Near-field wideband beamforming for extremely large antenna arrays,” arXiv preprint arXiv:2109.10054, 2021.
- [37] Q. Shi, M. Razaviyayn, Z.-Q. Luo, and C. He, “An iteratively weighted MMSE approach to distributed sum-utility maximization for a MIMO interfering broadcast channel,” IEEE Trans. Signal Process., vol. 59, no. 9, pp. 4331–4340, 2011.
- [38] B. Zheng, C. You, and R. Zhang, “Double-IRS assisted multi-user MIMO: Cooperative passive beamforming design,” IEEE Trans. Wireless Commun., vol. 20, no. 7, pp. 4513–4526, July 2021.
- [39] M. S. Lobo, L. Vandenberghe, S. Boyd, and H. Lebret, “Applications of second-order cone programming,” Linear Algebra and its Applications, vol. 284, no. 1, pp. 193–228, 1998, International Linear Algebra Society (ILAS) Symposium on Fast Algorithms for Control, Signals and Image Processing. [Online]. Available: https://www.sciencedirect.com/science/article/pii/S0024379598100320