Manuscript Offprint
arXiv:2610.39827Deep Reinforcement Learning for Blind Passive Beamforming in RIS-Assisted MIMO Systems
Oumaïma Bounhar, Thomas Chêne, Ghaya Rekaya-Ben Othman
COMELEC, Télécom Paris, IP Paris
Palaiseau, France
{oumaima.bounhar, thomas.chene, ghaya.rekaya}@telecom-paris.fr
Oussama Damen
ECE depart., University of Waterloo
Waterloo, Canada
Abstract—Reconfigurable Intelligent Surfaces (RIS) are a promising solution for improving millimeter-wave (mmWave) communications by controlling signal propagation. Yet, selecting the optimal RIS configuration remains challenging due to the high-dimensional search space and signaling overhead. We propose a Deep Reinforcement Learning (DRL) framework for blind passive beamforming, where a Deep Q-Learning (DQL) agent learns an adaptive policy to select near-optimal RIS configurations while sounding only few codewords, without channel state information. Results show that our approach outperforms Q-Learning (QL) and conventional baselines in convergence, performance, and overhead reduction.
Index Terms—Reconfigurable Intelligent Surfaces, mmWave, Deep Q-Learning, Reinforcement Learning, Beamforming.
I. INTRODUCTION
MILLIMETER-WAVE (mmWave) communications are central to next-generation wireless networks due to their large bandwidth and high spectral efficiency. However, severe path loss and blockages strongly limit communication performance. Reconfigurable Intelligent Surfaces (RIS) have emerged as a promising solution by enabling dynamic control over the wireless propagation environment through intelligently controlled electromagnetic wave reflections [1].
RIS are either active or passive depending on whether amplification is used [2]. Passive RIS are attractive for their low cost and energy efficiency [3], but configuring many reflecting elements leads to high-dimensional optimization problems. In addition, since passive RIS lack transceiver chains, channel estimation is challenging [3]. Most existing works perform channel estimation by testing a limited number of configurations, by switching some elements on/off over multiple slots [4], [5].
Deep Reinforcement Learning (DRL) has been studied for adaptive passive beamforming in RIS-aided networks, addressing phase-shift optimization under full, partial, or imperfect Channel State Information (CSI) [6], [7], [8]. Separately, [9] proposes a Double Deep Q-Network (DQN)-based approach for RIS-assisted multi-user Multiple-Input Multiple Output (MIMO) with unblocked direct links and no subchannel estimation. Blind beamforming, requiring no CSI at all, remains comparatively less explored: [10] tunes each RIS element individually from a fixed batch of random trials, whereas we adaptively select among a set of pre-designed RIS configurations using a learned policy and only a few pilot symbols.
Contributions: In our previous work, we introduced Q-Learning (QL) for our adaptive blind RIS configuration protocol without relying on CSI [11]. However, QL does not scale well with the state space and degrades in low- and moderate-Signal to Noise Ratio (SNR) conditions. In this work, we extend the approach to Deep Q-Learning (DQL), where Neural Networks (NNs) approximate Q-values and generalize over larger continuous state spaces. We focus on passive RIS and adopt a blind setting with no channel knowledge. We demonstrate the potential of DRL for RIS control, optimizing RIS phase shift configurations while reducing pilot overhead. Notation: We denote , the i-th canonical basis vector, the transpose and the Hermitian transpose. Bold lowercase and uppercase letters denote vectors and matrices, respectively, and . We define , use for proportionality up to normalization, and let denote the conditional probability of X given Y.
Figure 1: Setup
To provide a first validation of DQL for blind passive beamforming in RIS-assisted mmWave MIMO systems, we intentionally adopt a simplified channel model. More precisely, rather than considering from the outset a fully realistic end-to-end propagation environment, we use a single-path mmWave model as an initial testbed. This choice allows us to isolate
Part of this work was funded by the French National Research Agency (ANR-22-PEFT-0005) as part of France 2030 and the NF-YACARI project.
the learning behavior of the proposed DRL framework and verify that it can learn efficient RIS control policies with limited pilot sounding and without channel knowledge. We consider a transmission between a single-antenna user (UE) and an M-antenna base station (BS), assisted by a RIS with N reflecting elements. and denote the respective channels between the UE and the RIS, and between the RIS and the BS. We assume that the direct link between the BS and the UE, denoted by , is blocked.
We consider a mmWave communication system with half-wave spaced Uniform Linear Arrays (ULAs), as adopted in previous works [12], [13]. We suppose that each channel has a single path. The channels can be expressed as:
where is the steering vector function defined as , and are the angle of arrival (AoA) and angle of departure (AoD) of the channel between the RIS and the BS, and are the ones for the channel between the UE and the RIS.
A. Received signal
The signal at the RIS will be linearly transformed by a diagonal matrix , called reflection matrix, with , where the are the phase shifts introduced by the RIS. The signal received at the BS is:
where P is the UE transmit power, (with ) is the signal sent by the UE, the complex Gaussian additive white noise. To communicate, the RIS uses the codebook denoted , , and the objective is to select the optimal RIS configuration to establish high-rate communication. Generally, the system estimates the channel for this communication phase. But in our considered blind protocol, we introduce a parameterization phase: the UE sends pilot symbols through the RIS using configurations from the pilot codebook , with . From the received pilot signals and the known pilot configurations, the BS infers the posterior probability distribution over the RIS configuration codebook elements and determines the optimal RIS phase settings, which are then communicated to the RIS through the BS control link.
B. Optimization Problem
We define the achievable communication rate R between the UE and the BS:
Our main objective is to maximize the rate , which leads to maximizing the norm of the combined channel over the codebook of communication :
III. PROPOSED APPROACH
For simplicity, we will write to represent the overall unknown channel.
A. Classification
For a channel realization H, let denote the optimal communication codeword in :
We introduce a probability vector associated with the communication codebook. Each entry corresponds to the probability that a given communication codeword , is the optimal one for the observed channel realization:
Our optimization problem (4) results in a classification problem where we are looking for the policy that assigns the best communication codeword to a channel realisation.
B. Protocol
Since no prior information about the channel is available, we start with a uniform probability distribution over the communication codebook . At each iteration, the system collects a measure of the RIS configuration, updates its belief about the optimal codeword , and stops once a sufficient level of precision is reached.
• Initialization: Set uniform prior distribution over the communication codebook :
• Iteration :
-
The UE sends a pilot symbol .
-
The RIS uses the index of a pilot codeword , i.e., defined by the BS.
-
The BS receives the signal:
- The BS computes the Received Signal Energy (RSE):
– Update the posterior probability distribution as described in Section (V-B):
– Based on the updated posterior, the BS selects the index that will be used as the next pilot codeword by the RIS.
• Stopping criteria: We fix a precision level , with and a maximum pilot budget . If:
then declare as the optimal codeword .
We not only want to optimize the transmission rate (4) but also reach the stopping criteria (11) as quickly as possible to reduce the signaling overhead.
C. Markov Decision Process
Since the RIS codeword selection problem is sequential: each pilot transmission allows the system to update its belief regarding the optimal codeword and adaptively select the subsequent configuration, we formulate our optimization problem (4) as an Markov Decision Process (MDP). By defining the state space S over the belief states (probability distributions), the MDP framework effectively captures the dynamic evolution of the system through its action space A, transition probability P, and rewards R [14]:
• State Space: denotes a state from the state space. Each state S represents the knowledge acquired after testing RIS configurations and collecting measurements . We write a state , i.e., the posterior probability vector associated with each communication codeword to be . A state is a terminal state ( ) when (11) is met; exhausting the pilot budget first only truncates the search ( ).
• Action Space: is an action from the action space. The action space is defined by , the indices of the codebook of pilots . Each action corresponds to selecting the index of a specified codeword , which will be the next configuration to test.
• Reward: is the reward received after the transition from state S to state under action A. It equals 0 at a terminal state and -1 otherwise. We write for the reward received at step t.
• Transition probability: is the probability to move from state S at time t to state at time after taking action A.
D. Optimal Policy
The goal is to reach a terminal state where the probability of correct classification is within a fixed degree of precision , as quickly as possible. Let denote the required number of iterations. Since every pilot receives except the last one, which reaches the terminal state, receives 0 and ends the episode (the terminal state is absorbing, so all later rewards are 0 and the sum below is finite),
Therefore, minimizing the path length is equivalent to maximizing the cumulative reward. The objective is thus to find the optimal policy maximizing the expected return under channel and noise randomness. We rewrite our objective:
IV. REINFORCEMENT LEARNING FORMULATION
A. Q-Learning Algorithm
The QL algorithm is a Reinforcement Learning (RL) method that learns the optimal policy by iteratively updating a Q-table, which stores Q-values for each state-action pair. It was a natural first choice in our earlier study as the action space is discrete and tabular QL provides an interpretable baseline for finite-state decision problems [14]. The Q-function represents the expected cumulative reward an agent can achieve from a given state , taking action , and following the optimal policy ever after:
with , the discount factor, controls the weight of future rewards compared to immediate ones. To maximize the Q-function, QL follows a recursive update rule based on the Bellman equation (15), which ensures that the Q-values are updated by incorporating rewards received from future states. The update rule is defined as:
with , the learning rate, controls the weight given to new information relative to past Q-values. During training, the agent explores (S, A, R, P) and updates Q-values to reach the terminal state in fewer steps. In our previous work [11], the state space was discretized and transitions were determined by the Euclidean distance to predefined states, an approach that becomes unreliable in high dimensions due to possible misclassification of similar codewords. We therefore replace the Q-table with a DQN that generalizes over continuous state spaces, following the standard use of neural function approximation in large-scale reinforcement learning [15].
B. Deep Q-Learning Algorithm
DQL uses two NN: The first one is the Evaluation Network (Eval-Net) parameterized by the NN weights and the second one is the Target Network (Target-Net) parameterized by NN weights . The Q-function approximation can thus be expressed as:
The training process of the DQN consists of:
• Epsilon-Greedy Exploration: The agent selects actions based on an epsilon-greedy policy:
• Experience Replay: A replay buffer M stores transitions (S, A, R, S', ), and random mini-batches from M are sampled during training to decorrelate experiences.
• Target Network Update: To improve training stability, the Target-Net is updated using a soft-update rule:
where is a smoothing factor that controls the rate of updates from the evaluation network to the target network.
C. Loss Function and Network Optimization
The Q-network is trained by minimizing the Mean Squared Error (MSE) loss, defined as:
with:
predicts current Q-values, while provides stable targets that prevent divergence. To find the optimal policy, we train an agent over the environment described in Section (III-C), following Algorithm 1. The agent always starts at the initial state as defined in (7), where we assumed the probability is uniformly distributed among the communication codebook , and aims to reach a terminal state within the limited pilot budget .
D. Deep Q-Network Inference Complexity
The proposed DQN approximates the Q-function with a fully connected NN of h hidden layers of d neurons. For an -dimensional state S and actions, a forward pass costs
Algorithm 1 Deep Q-Learning for Optimal Codebook Selection
1: Input: Dataset D, Action space , Reward function R, Precision , Target update factor
2: Initialize , , replay memory M
3: for each episode do
4: for each channel realization do
5: Sample channel realization from D
6: for each time step per channel do
7: Initialize state
8: for do
9: Select pilot codeword index (17)
10: Observe the measure (9)
11: Update the posterior probability with (27):
(21)
12: Compute and flag
13: Store in M
14: ; stop if
15: end for
16: if M is full then
17: Sample mini-batch from M,
18: Update by computing the loss (19)
19: Soft-update the Target-Net using (18)
20: end if
21: end for
22: end for
23: end for
which reduces to for the configuration of Section V-C (d = 256, h = 2, , ). Adding the posterior update of Section V-B, computed in per step, the total online cost is per decision, with only marginal dependence on the codebook sizes. Training is performed entirely offline over varying channel realizations; online, only a forward pass of the network is required to determine the optimal action.
V. NUMERICAL RESULTS
In this section, we compare the numerical performance of the proposed DQL model with QL and state-of-the-art benchmarks. Simulations consider a BS with M = 64 antennas, a UE with a single-antenna, and a RIS with N = 100 reflective elements. The AoA and AoD of all links are drawn independently from , and the hierarchical codebook follows classical beamforming designs [13]. The first training of the model employs pilot beams (wide and narrow) and communication beams. To evaluate scalability, a larger codebook with and beams is also considered. This comparison highlights the model's ability to maintain convergence stability as the codebook size increases.
A. Dataset Generation
To train the DQL model, we generate a dataset D containing pilot-based observations and their corresponding terminal-state labels over multiple channel realizations and SNR values (0, 5, 10, 20 dB).
• Channel Model: Each channel realization is randomly generated following equations defined in (1) and repeating this process over many realizations (Monte Carlo sampling) for each SNR value to build the dataset.
• Received measures from RIS configurations:
where is the vector of received measures from the RIS configurations under channel realization . For each pilot codeword from the pilots codebook , the noisy RSE is computed as in equation (9) then stored in the dataset, forming the actual observations.
• Real terminal states: The optimal communication codeword is selected from the communication codebook (narrow beams) using the noiseless received power:
leading to the terminal state represented as a canonical basis vector:
where is a vector of all zeros except for a 1 at the index corresponding to the optimal beam . Collecting these for all channels gives:
Let denote the minimal number of dataset realizations per SNR value and per communication codeword. In total, realizations are drawn, equally split among the SNR values.
- Final dataset structure: Each channel realization thus contributes a pair , where contains the noisy pilot-based observations and encodes the true terminal state (optimal communication codeword). The final dataset is organized as:
which jointly provides the training samples and labels for the learning algorithms.
B. Approximation of the Posteriori Probability
To move from a state S at time t to a state at time , we update the posterior probability using the Euclidean distance between the samples received after iterations since the last prior update and the corresponding observations stored in the dataset D:
Here, denotes the sequence of decided pilot codewords up to time . Since the expression is proportional , the probability is normalized so that its components sum to one. Note that this Euclidean distance is computed between received observations against stored RSEs, not between the posterior and a set of predefined states, which is the quantization discussed in Section IV-A that DQL avoids. Although under the single-path model (1) the optimal configuration depends only on the angular difference between the UE-RIS and RIS-BS paths (), the agent is blind to this angle and operates on the posterior, a probability vector of size that grows with the codebook.
C. Deep Q-Learning parameters
The DQL model uses two hidden layers of 256 neurons with ReLU and LayerNorm to map the posterior probability state to Q-values, one per pilot action. It relies on identical Eval-Net and Target-Net architectures, with input and output dimensions given by the numbers of communication beams and pilots, and , respectively. Training uses MSE loss, experience replay, -greedy exploration with exponential decay , soft target updates with , gradient clipping with norm 0.5 and Adam optimizer with learning rate . Table I summarizes the adopted hyperparameters. With these settings, the online cost derived in Section IV-D amounts to about and floating-point operations per decision for and (16, 30), respectively. A reduced discount factor is used to favor shorter paths under negative step rewards, consistent with findings in [16] which suggest that lower discount factors can improve generalization through implicit regularization. At test time, the selected action is the index of the maximum output Q-value which corresponds to the optimal configuration to be used.
D. Comparison with benchmarks
We compare to the following benchmarks:
-
Exhaustive Search: Tests all codewords in the communication codebook and selects the one that maximizes the objective in (4).
-
Hierarchical Search: A dichotomic procedure using codewords in our setup. It starts with wide beams and progressively narrows the search to identify the optimal narrow beam.
-
Q-Learning Acquisition: Learns an optimal pilot-selection policy with the Q-table.
The experiments are repeated over many channel realizations and the results are averaged to ensure statistical reliability.
E. Convergence Behavior and Efficiency Analysis
Figure 2 shows the normalized channel strength versus the number of pilots for the proposed DQL and benchmark methods, for and dB, with results averaged over 500 channel realizations per SNR. In all cases, DQL converges faster and achieves higher performance than the baselines. At 0 dB with , it exceeds of the optimal gain after only 4 pilots, about half as many as competing methods need, and at 10 dB it needs just 3 pilots. Increasing the codebook size to preserves this behavior (92% after 4 pilots at 0 dB), showing good
Table I: Hyper-parameters Descriptions.
| Component | Value / Setting |
|---|---|
| 200 | |
| Number of layers h | 2 |
| Number of neurons per layer | 256 |
| Activation, norm | ReLU, LayerNorm |
| Episodes | 6,000 |
| Channels per episode | 5 |
| Time steps per channel | 64 |
| Maximum path length per time step | 20 |
| Replay buffer memory size | 120000 |
| Batch size | 1024 |
| Exploration | ε-greedy |
| Initial exploration rate ε | 1 |
| Minimum exploration rate εmin | 0.01 |
| Exploration decay rate λε | 0.992 |
| Target network soft update | τ = 0.005 |
| Gradient clipping | Global-norm 0.5 |
| Discount factor γ | 0.94 |
| Loss function | MSE |
| Optimizer / Learning Rate | Adam, α = 1 × 10-4 |
| Experiment seed | 42 |
| δ value | 0.01 |
| Precision 1 - δ | 0.99 |
| Hardware | CPU model |

Figure 2: Normalized channel strength versus pilots for different methods, codebook sizes, and SNRs.
scalability to larger action spaces. Overall, DQL learns more efficient pilot-selection policies, reducing pilot overhead across different SNR and codebook sizes.
Discussion and future work: This work provides an initial validation of the proposed DQL framework under a simplified single-path setting. As a next step, we are extending this study to larger and more structured pilot and communication codebooks, varying RIS sizes, and more realistic Sionna-generated datasets based on multipath channel models [17], in order to further assess generalization, scalability, and practical relevance. Fig. 3 illustrates the considered Sionna setup, where the BS is shown in blue, the UE in green, and the RIS interaction is represented through the reflected paths. Preliminary results are promising and will be reported in a forthcoming publication. The source code and datasets for this work will also be released as open source at github.com/OumaimaBounhar.

Figure 3: 3D Sionna simulation setup
VI. Conclusion
We proposed a Deep Reinforcement Learning (DRL) framework to optimize Reconfigurable Intelligent Surfaces (RIS) configuration in a blind Millimeter-wave (mmWave) Multiple-Input Multiple-Output (MIMO) communication, aiming to reduce the number of required pilots while preserving near-optimal beam selection. The proposed method consistently outperforms Q-Learning (QL) and conventional search strategies, showing faster convergence and stronger robustness across both low- and moderate-SNR regimes, and for both small and larger codebooks. In particular, the model reaches more than 97% (resp. 92%) of the optimal normalized channel strength after only 4 pilots at 0 dB for 8 (resp. 16) communication beams, and approaches near-optimal performance with just 3 pilots at 10 dB. These results confirm that the proposed approach remains effective as the codebook size grows, substantially reducing beam training overhead while maintaining strong beam-selection performance.
REFERENCES
[1] Q. Wu and R. Zhang, “Towards Smart and Reconfigurable Environment: Intelligent Reflecting Surface Aided Wireless Network,” IEEE Com. Mag., vol. 58, no. 1, pp. 106–112, 2020.
[2] Z. Zhang, L. Dai, X. Chen, C. Liu, F. Yang, R. Schober, and H. V. Poor, "Active RIS vs. Passive RIS: Which Will Prevail in 6G?," IEEE Trans. on Com., vol. 71, no. 3, pp. 1707–1725, 2023.
[3] M. D. 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 Com., vol. 38, no. 11, pp. 2450–2525, 2020.
[4] X. Yuan, Y.-J. A. Zhang, Y. Shi, W. Yan, and H. Liu, “Reconfigurable-Intelligent-Surface Empowered Wireless Communications: Challenges and Opportunities,” IEEE Wireless Com., vol. 28, no. 2, pp. 136–143, 2021.
[5] X. Wei, D. Shen, and L. Dai, “Channel Estimation for RIS Assisted Wireless Communications—Part I: Fundamentals, Solutions, and Future Opportunities,” IEEE Com. Lett., vol. 25, no. 5, pp. 1398–1402, 2021.
[6] D. W. M. Guerra and T. Abrão, “RIS-aided System Channel Estimation using NN,” in Proc. IEEE SIoT, (São Paulo, Brazil), pp. 1–4, 2022.
[7] C. Huang, R. Mo, and C. Yuen, “Reconfigurable Intelligent Surface Assisted Multiuser MISO Systems Exploiting Deep Reinforcement Learning,” IEEE J. on Selected Areas in Com., vol. 38, no. 8, pp. 1839–1850, 2020.
[8] B. Saglam, D. Gurgunoglu, and S. S. Kozat, “Deep Reinforcement Learning Based Joint Downlink Beamforming and RIS Configuration in RIS-Aided MU-MISO Systems Under Hardware Impairments and Imperfect CSI,” in Proc. IEEE ICC Workshops, (Rome, Italy), pp. 66–72, 2023.
[9] W. Wang and W. Zhang, “Intelligent reflecting surface configurations for smart radio using deep reinforcement learning,” IEEE J. Sel. Areas Com., vol. 40, no. 8, pp. 2335–2346, 2022.
[10] W. Lai, J. Yao, and K. Shen, “Blind Passive Beamforming for MIMO System,” IEEE Wireless Com. Lett., vol. 14, no. 8, pp. 2601–2605, 2025.
[11] T. Chêne, O. Bounhar, G. Rekaya, and O. Damen, “Adaptive Passive Beamforming in RIS-Aided Communications with Q-Learning,” in Proc. IEEE WCNC, pp. 1–6, 2025.
[12] B. Ning, Z. Chen, W. Chen, Y. Du, and J. Fang, “Terahertz Multi-User Massive MIMO With Intelligent Reflecting Surface: Beam Training and Hybrid Beamforming,” IEEE Trans. Veh. Technol., vol. 70, no. 2, pp. 1376–1393, 2021.
[13] Z. Xiao, T. He, P. Xia, and X.-G. Xia, “Hierarchical Codebook Design for Beamforming Training in Millimeter-Wave Communication,” IEEE Trans. Wireless Com., vol. 15, no. 5, pp. 3380–3392, 2016.
[14] R. S. Sutton and A. G. Barto, Reinforcement Learning: An Introduction. MIT Press, 2nd ed., 2018.
[15] V. Mnih et al., “Human-level control through deep reinforcement learning,” Nature, vol. 518, pp. 529–533, 2015.
[16] R. Amit, R. Meir, and K. Ciosek, “Discount factor as a regularizer in reinforcement learning,” in Proc. ICML, pp. 269–278, 2020.
[17] J. Hoydis, S. Cammerer, F. A. Aoudia, A. Vem, N. Binder, G. Marcus, and A. Keller, “Sionna: An open-source library for next-generation physical layer research,” 2022.
