Manuscript Offprint
arXiv:2610.24560Discrete Phase-Shift Optimization of Reconfigurable Intelligent Surfaces using Uniform Reference Directions
Pavithra P†, Manoj Kumar Panda†,* and Chandramani Singh@
Abstract—Reconfigurable Intelligent Surfaces (RISs) enable programmable control of the wireless propagation environment through adjustable reflecting elements. A fundamental challenge in RIS-assisted communications is the optimization of discrete phase shifts to maximize the received signal power. While recently developed algorithms can obtain optimal solutions with linear complexity, their computational cost may still be excessive in applications requiring large-scale simulations, real-time adaptation, or repeated optimization over numerous channel realizations. This paper proposes a low-complexity discrete phase-shift optimization algorithm based on multiple reference directions within the feasible optimality sector. By evaluating candidate phase configurations generated from uniformly distributed reference directions, the proposed method systematically improves upon existing approximation approaches that rely on a fixed set of reference directions. The number of reference directions serves as a design parameter that enables a controllable trade-off between computational complexity and optimality. Extensive simulations demonstrate that the proposed algorithm achieves substantial computational speedups while maintaining a small optimality gap relative to the optimal solution. The results further show that increasing the number of reference directions progressively reduces the optimality gap, providing flexible operating points that can be tailored to application-specific complexity and performance requirements.
Index Terms—Reconfigurable Intelligent Surface (RIS), Intelligent Reflecting Surface (IRS), Phase Shift Optimization, Unit-Gain Amplitude, Geometric Interpretation, Sector-Based Beamforming, Low-Complexity Algorithms, Received Power, Directional Beamforming.
I. INTRODUCTION
Reconfigurable Intelligent Surface (RIS), also known as Intelligent Reflecting Surface (IRS), is a disruptive technology proposed for beyond 5G wireless communications [1]. Unlike conventional wireless communication systems, an RIS-aided system can effectively modify the propagation environment itself, thereby providing a new degree of freedom to optimize the performance [2]. By adjusting the phase shifts of a large array of nearly passive reflecting elements (REs), an RIS can enhance signal strengths at targeted locations without the need for dedicated power amplifiers. See Fig. 1.

Fig. 1: An RIS-aided Communication System. Here, an RIS panel consisting of a rectangular array of N REs connects a transmitter and a receiver through N Non-Line-of-Sight (NLoS) paths having complex channel gains, , , where the n-th RE can introduce an additional phase shift of . Optionally, there can be a direct Line-of-Sight (LoS) path having a complex channel gain of .
RISs provide a promising solution to improve the performance of next-generation wireless communications. However, there are some concerns that need to be addressed. First, a significant challenge is to jointly optimize the phase-shifts of a large number of REs in order to achieve a certain well-defined objective, e.g., maximization of channel capacity or received signal to noise ratio (SNR), minimization of transmit power, etc. Second, due to hardware constraints, each RE can introduce only a set of discrete phase-shift values, which results in a large-scale discrete and non-convex optimization problem [3], [4]. An excellent survey of different optimization formulations, covering a wide variety of objective functions and with discrete as well as continuous phase-shifts, and their corresponding solution approaches can be found in [5].
In this paper, we focus on the problem of maximization of received SNR using discrete phase shifts. Recent studies have investigated the cases of nonuniform or unequally-spaced discrete phase-shifts [6], [7], and where the REs can introduce phase-shift-dependent amplitude gains [8]. However, as in [9]–[12], we focus on the case where the REs introduce uniform or equally-spaced discrete phase-shifts and unit-amplitude gains. Although the considered setting is simpler, the resulting optimization problem is still computationally challenging because the cardinality of the feasible set of phase-shift vectors increases exponentially with the number of REs as , where N denotes the numbers of REs in the RIS panel and K denotes
Corresponding Author
Pavithra P and Manoj Kumar Panda are with the Department of Electronics and Communication Engineering, Amrita School of Engineering, Bengaluru, Amrita Vishwa Vidyapeetham, India. Email: ppavithra.erode@gmail.com, kp_manoj@blr.amrita.edu
@Chandramani Singh is with the Department of Electronic Systems Engineering (DESE), Indian Institute of Science (IISc), Bangalore, Karnataka, India. Email: chandra@iisc.ac.in the number of phase shifts that any RE can introduce.
For the considered problem, the authors in [10]–[12] have proposed linear time algorithms that obtain the optimal phase-shifts with an asymptotic complexity of . Our goal, however, is to improve the computational speed for practical values of N beyond the ‘linear time’ algorithms in [10]–[12] at the expense of a negligible ‘optimality gap’, i.e., a negligible percentage of reduction in the received SNR relative to the optimal (maximum) value.
The contributions of the paper are as follows:
C1. We develop a sub-optimal algorithm, the Uniform Reference Directions (URD) algorithm, parameterized by the number of reference directions D. Existing approximation algorithms including CPP, APX and ARB arise as special cases corresponding to particular values of DDD. The sub-optimal algorithm ARB in [13] is a special case of the URD algorithm with D = 1. Also, the sub-optimal algorithm Closest Point Projection (CPP) [5] and the Approximation (APX) algorithm in [9] are equivalent to URD with D = 1 and D = 3, respectively. The corresponding ‘speed-ups’ are, however, found to be slightly higher for the URD algorithm due to its simplicity of implementation.
C2. We conduct extensive simulations using MATLAB and study how the ‘optimality gap’ and ‘speed-up’ vary with the number of REs, N, the parameter D, and for different number of phase-shifts, K. We show that:
• As N increases, the worst-case ‘optimality gap’ decreases while the average ‘speed-up’ increases, making the URD algorithm particularly effective for challenging cases.
• As the parameter D increases, the ‘optimality gap’ decreases, but the ‘speed-up’ also decreases. Thus, the parameter D can be tuned to strike a balance between ‘optimality gap’ and ‘speed-up’ to match a target application’s requirements.
• Depending on the values of K and N, and D considered, the proposed URD algorithm could provide solutions up to 3-30 times faster, sacrificing only 0.01%-10% of optimal SNR in the worst case.
C3. We provide a convergence argument showing that the received power achieved by URD approaches the optimal received power as D goes to infinity, causing the corresponding optimality gap to vanish.
The remainder of the paper is organized as follows.
Let denote the complex-valued channel gain of the path from the transmitter to the receiver via the -th RE on the RIS panel. Let denote the aggregate channel gain of all remaining paths that do not go via the RIS, including the direct Line of Sight (LoS) path, if any. The gain can be rewritten in the polar form as
where denotes the amplitude and represents the phase of the channel gain of the path via the n-th RE.
Let , , denote the phase shift introduced by the -th RE. The received signal, , corresponding to the transmitted signal, , is given by
where Z represents the additive noise present in the system. The aim is to find an optimal value of the phase-shift vector that yields the maximum received signal power, , for given values of transmit signal power, , noise power, , and channel gains, , . To that end, we formulate and solve the following optimization problem.
Problem P:
maximize
subject to , for ,
(4)
where the objective function is given by
It is clear from (4) that the feasible solution space
grows exponentially with N, making exhaustive search impractical.
III. METHODOLOGY
A. From Exponential to Linear Complexity
In this subsection, we quickly recap the main concepts that have resulted in the reduction of the computational complexity in [9]–[13] from exponential to linear in N. For Problem P, the authors in [9]–[13] leverage the geometric insight that the maximization of the received SNR is equivalent to maximizing the magnitude of the sum of N two-dimensional vectors, , (see (5)), and this maximization is achieved by finding optimal rotations, , , so as to make the
Clearly, the computations required for cases with small N can be easily handled even using exhaustive search, and so the real benefit of the URD algorithm can only be measured in cases with large N, where even the ‘linear time’ algorithms may be considered to be slow for certain applications.
An application of the URD algorithm could be to generate training dataset for a Deep Learning (DL) model which would be used for DL-based phase-shift optimization. Here, the parameter D can be tuned to trade off between the time taken for training data generation and ‘optimality gap’.
rotated channel gain vectors as close as possible to each other, and thereby maximize the vector sum.
The works [11]–[13] combine the geometric insight mentioned above with the rotational symmetry of optimal solutions, assuming the NLoS condition. Let represent an optimal vector of phase shifts, i.e., it is a solution for Problem P. Define the unit vector along an optimal sum vector, , to be an optimal direction, assuming the NLoS condition. The rotational symmetry of optimal solutions implies that if is an optimal direction, then
is also an optimal direction. Clearly, there are at least distinct optimal directions and there is an optimal direction in every sector of the complex plane (see Proposition 1 in [11]). Lemma 1 in [10] establishes that if, , the complex channel gain vector, , is rotated using the discrete phase shifts, , so as to align it as closely as possible with any fixed optimal direction, , then the resulting rotations are optimal. The main challenge, however, is that an optimal direction is not known a priori; it is found only after finding the optimal rotations.
The main idea in [9]–[13] is to: (i) carefully construct a set, , of reference directions which act as surrogates for an optimal direction, , (ii) consider one reference direction, , at a time to align the channel gain vectors with and compute the corresponding phase rotations and the vector sum, and finally (iii) choose the reference direction and the corresponding phase rotations as the solution which maximize the magnitude of the vector sum.
B. From Optimal Algorithms with Linear Time Complexity to Faster Sub-Optimal Algorithms
The algorithms in [9]–[13] differ in the ways the following tasks (T1-T3) are performed:
T1. Generate: Construct an appropriate set of reference directions, M, based on the channel gain vectors, and with or without leveraging rotational symmetry.
T2. Sort: Sort the reference directions in M in an appropriate order to be considered sequentially.
T3. Sweep-Through: Rotate an appropriate subset of channel gain vectors for every considered reference direction .
The channel gain pertaining to each path from the source to the destination through an RE is a complex number and can be viewed as a vector on the two-dimensional complex plane. If the n-th RE introduces a phase shift of , then the corresponding channel gain vector rotates anti-clockwise by an angle on the two-dimensional complex plane. Clearly, the set of allowable angles of rotation is identical to the set of discrete phase shifts, .
With K uniform (or equally-spaced) phase-shifts and no LoS path, the optimal solutions exhibit rotational symmetry in the sense that if the optimally rotated (or phase-shifted) channel gain vectors pertaining to each RE is further rotated by the same angle, , then the resulting rotations are also optimal as the magnitude of the vector sum remains unchanged. See Proposition 1 in [11]. The NLoS condition, which is quite realistic in high-frequency of operation, e.g., in mmWave or THz bands, implies that . In fact, the absence of a reasonably strong LoS path is precisely what mandates the inclusion of an RIS and create reasonably strong reflected paths.
The computational complexity of the algorithms in [9]–[13] and whether the resulting solutions are optimal or sub-optimal are determined by the way the tasks (T1-T3) are performed.

Fig. 2: Uniformly Spaced Reference Directions, , and Their Sectors, , .
A comparison of the computational complexity and optimality characteristics of the algorithms in [9]–[13] is provided in Table I. It can be observed that, unlike the methods in [9] and [10], the algorithms in [11]–[13] achieve complexities that are independent of the number of quantized phase shifts, K, by exploiting the rotational symmetry of optimal solutions. Among the existing approaches, the sub-optimal algorithm in [13] offers the lowest computational complexity and has been reported to incur a negligible average optimality gap (typically below 1%). However, a small average optimality gap does not necessarily imply uniformly good performance across all channel realizations. As demonstrated by our numerical results, the worst-case optimality gaps of the sub-optimal algorithms in [9] and [13] can become arbitrarily large, approaching 100% for certain channel conditions. Furthermore, these algorithms provide only fixed operating points in the complexity-performance trade-off space and do not offer a mechanism to adjust the balance between computational cost and optimality according to application requirements. This observation motivates the development of a more flexible approach that enables a controllable trade-off between computational complexity and solution quality.
C. The Uniform Reference Directions Algorithm
Define a primary reference direction (see Fig. 2). If there exists a path from the transmitter to the receiver that does not go through the RIS, i.e., if , then set . If , then can be set to any arbitrary direction. For simplicity, we set it as . Define other reference directions on either side of as shown in Fig. 2. The -th reference direction is , . The reference direction , , makes an angle with the primary reference direction . The total number of reference directions, , is, therefore, given by . Notice that the reference directions, , , are uniformly spaced, and together, cover a sector of angle within which an optimal direction must lie.
TABLE I: Comparison of the proposed Uniform Reference Direction (URD) algorithm with existing works. Here, denotes the effective (aggregated) channel gain of all the paths that do not go via any of the REs, if any such paths exist.
| Algorithm | Solution Type | Time Complexity | ||
|---|---|---|---|---|
| T1 | T2 | T3 | ||
| [9] | Algo. APX: Sub-Optimal, | |||
| [10] | Optimal for | Avg. ; Worst Case | ||
| Optimal for | ||||
| [11], [12] | Optimal for any | Avg. ; Worst Case | ||
| [13] | Optimal for any as Algo. ARB: Sub-Optimal for | |||
| This Paper | Optimal for any as Algo. URD: Sub-Optimal for | |||
Algorithm 1 Uniform Reference Direction (URD) Algorithm
1: Input: Channel vector , quantization level , and the number of reference directions . 2: Compute quantization interval and angular offset . 3: Define reference directions: , for . 4: Set . 5: for each reference direction do 6: Define sector . 7: for to do 8: Assign such that . 9: end for 10: Compute . 11: if then 12: Update , . 13: end if 14: end for 15: Output: Optimal phase shift vector . 16: Compute optimal received power as .
Furthermore, they can be determined without the knowledge of channel gains and are auto-sorted. Therefore, the complexity of task T2 now reduces to , and even though the task T1 now involves an asymptotic complexity of , it can be computed once and then used for all channel realizations.
The proposed Uniform Reference Directions (URD) algorithm is shown as Algorithm 1. The main idea is to construct a tunable number, , of uniformly spaced reference directions, consider one reference direction at a time, rotate all channel gain vectors to align as closely as possible with the chosen reference direction, and finally choose the reference direction that maximizes the received power over all directions. If an optimal direction, , happens to be one of the reference directions, , then there is no optimality gap at all and the URD algorithm achieves the optimal solution. Moreover, as increases, the gap between an optimal direction and its closest reference direction decreases, and intuitively speaking, as , one of the reference directions coincides with an optimal direction.
IV. RESULTS AND DISCUSSIONS
A. Simulation Setup
Extensive simulations were conducted to evaluate the performance of the proposed URD algorithm under different system configurations. For each configuration, 1000 distinct channel realizations were considered. The number of reflecting elements, , was varied from 64 to 1024, and the number of reference directions, , was varied over . The simulations were conducted for and discrete phase shifts.
The proposed URD algorithm was compared with the Closest-Point Projection (CPP) [5], the Approximation (APX) algorithm [9] and Algorithm 3 of [12]. The proposed URD algorithm with reduces to the ARB algorithm of [?] by algorithm descriptions. We numerically show that the optimality gap of the proposed URD algorithm with is identical to that of the CPP algorithm of [5]. When , the three uniformly spaced reference directions coincide with the three sector centers used in APX; consequently, the resulting optimality gaps are identical.
The higher-direction configurations are used to investigate the effect of increasing the number of directions on optimality and computational efficiency. The worst-case optimality gap and speed-up ratio are used as the performance metrics, with Algorithm 3 of [12] serving as the optimal benchmark.
B. Performance Results
Fig. 3(a) compares the worst-case optimality gaps of the URD algorithm with those of CPP and APX for . The equivalence of the optimality-gap curves obtained by CPP, APX, and URD with and demonstrates that these existing approximation methods can be interpreted as particular operating points within the proposed URD framework. Increasing beyond these operating points systematically reduces the optimality gap, thereby enabling a continuous complexity-performance tradeoff unavailable in existing methods. As increases beyond these configurations, the worst-case optimality gap generally decreases, indicating that considering more directions enables URD to obtain solutions closer to the optimal benchmark.
It can be observed that:
O1: As shown in Fig. 3(a), Fig. 4(a), and Fig. 5(a), the worst-case optimality gap decreases significantly with increasing . For and Fig. 4(a), the gap

(a) Comparison of Optimality Gap.

(b) Comparison of Speedup.
Fig. 3: Comparison of CPP, APX, and Algorithm 1 with different D values (1,3,5, 7 and 9), based on 1000 channel realizations for an increasing number of REs, N, and a fixed number of phase-shifts K = 4.
decreases from approximately 60% at D=1 to below 1% at D=13. For K=4 Fig. 5(a), it decreases from approximately 16% to below 1% over the same range. These results demonstrate that increasing the number of directions enables URD to achieve solutions closer to the optimal benchmark.
O2: Fig. 3(b), Fig. 4(b), and Fig. 5(b) show that the speed-up ratio generally increases with N for a fixed D. For K = 4, the speed-up of the D = 1 configuration increases from approximately at N = 64 to at N = 1024 Fig. 3(b). This shows the increasing computational advantage of the proposed URD algorithm as the size of RIS increases.
O3: The optimality plot shows that the optimality gap approaches zero as D increases. For K = 4 and N = 1024, the gap approaches 0.1% at D = 13, while remaining below 1% across the tested values of N. These results demonstrate that the proposed URD algorithm can closely approach the optimal benchmark for sufficiently large D.

(a) Optimization Gap with K = 2.

(b) Speedup with K = 2.
Fig. 4: Comparison of Optimality Gap and Speedup due to the URD algorithm for different number of reference directions, D, based on 1000 channel realizations, with K=2 and varying reflecting elements N.
V. CONCLUSION
This paper presented a low-complexity discrete phase-shift optimization algorithm for RIS-assisted communications that employs multiple reference directions to construct candidate phase configurations. Unlike existing approximation methods that operate at fixed complexity-performance points, the proposed approach introduces a tunable parameter that enables flexible control over the trade-off between computational cost and received-power performance. Numerical results demonstrated that the proposed algorithm achieves substantial computational speedups while maintaining a small optimality gap relative to optimal solutions. Moreover, the optimality gap was shown to decrease systematically as the number of reference directions increases, providing a practical means of tailoring algorithmic performance to application-specific requirements. The proposed algorithm therefore offers an attractive balance between computational efficiency and beamforming performance for large-scale RIS deployments.

(a) Optimization Gap with K = 4.

(b) Speedup with K = 4.
Fig. 5: Comparison of Optimality Gap and Speedup due to the URD algorithm for different number of reference directions, D, based on 1000 channel realizations, with K=4 and varying reflecting elements N.
REFERENCES
[1] M. Z. Chowdhury, M. Shahjalal, S. Ahmed and Y. M. Jang, “6G Wireless Communication Systems: Applications, Requirements, Technologies, Challenges, and Research Directions,” in IEEE Open Journal of the Communications Society, vol. 1, pp. 957-975, 2020.
[2] M. Di Renzo et al., “Smart radio environments empowered by reconfigurable AI meta-surfaces: An idea whose time has come,” EURASIP J. Wireless Commun. Netw., vol. 2019, no. 1, pp. 1–20, May 2019.
[3] E. Björnson, H. Wymeersch, B. Matthiesen, P. Popovski, L. Sanguinetti and E. de Carvalho, “Reconfigurable Intelligent Surfaces: A signal processing perspective with wireless applications,” in IEEE Signal Processing Magazine, vol. 39, no. 2, pp. 135-158, March 2022.
[4] Q. Wu, S. Zhang, B. Zheng, C. You and R. Zhang, “Intelligent Reflecting Surface-Aided Wireless Communications: A Tutorial,” in IEEE Transactions on Communications, vol. 69, no. 5, pp. 3313-3351, May 2021.
[5] Zhou, Hao, Melike Erol-Kantarci, Yuanwei Liu, and H. Vincent Poor. "A survey on model-based, heuristic, and machine learning optimization approaches in RIS-aided wireless networks." IEEE Communications Surveys & Tutorials 26, no. 2 (2023): 781-823.
[6] S. Hashemi, H. Jiang and M. Ardakani, “Optimal Configuration of Reconfigurable Intelligent Surfaces With Arbitrary Discrete Phase Shifts,” in IEEE Transactions on Communications, vol. 72, no. 12, pp. 8047-8060, Dec. 2024.
[7] D. Kutay Pekcan, H. Liao and E. Ayanoglu, “Received Power Maximization Using Nonuniform Discrete Phase Shifts for RISs With a Limited
Phase Range," in IEEE Open Journal of the Communications Society, vol. 5, pp. 7447-7466, 2024.
[8] S. Hashemi, M. Ardakani, H. Jiang. “RIS With Coupled Phase Shift and Amplitude: Capacity Maximization and Configuration Set Selection,” in IEEE Transactions on Communications, vol. 74, pp. 77–91, 2026.
[9] Y. Zhang, K. Shen, S. Ren, X. Li, X. Chen and Z. -Q. Luo, “Configuring Intelligent Reflecting Surface With Performance Guarantees: Optimal Beamforming,” in IEEE Journal of Selected Topics in Signal Processing, vol. 16, no. 5, pp. 967-979, Aug. 2022.
[10] S. Ren, K. Shen, X. Li, X. Chen and Z. -Q. Luo, “A Linear Time Algorithm for the Optimal Discrete IRS Beamforming,” in IEEE Wireless Communications Letters, vol. 12, no. 3, pp. 496-500, March 2023.
[11] D. Zhao, G. Wang, J. Wang and C. Wang, “Optimal Passive Beamforming for Reconfigurable Intelligent Surface-Assisted Communications With Discrete Phase Shifts,” in IEEE Wireless Communications Letters, vol. 13, no. 2, pp. 427-431, Feb. 2024.
[12] D. K. Pekcan and E. Ayanoglu, “Achieving Optimum Received Power for Discrete-Phase RISs With Elementwise Updates in the Least Number of Steps,” in IEEE Open Journal of the Communications Society, vol. 5, pp. 2706-2722, 2024.
[13] Pavithra, P., and M. K. Panda. "A Fast Algorithm for Discrete Phase-Shift Optimization of Reconfigurable Intelligent Surfaces." In 2025 IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), pp. 1-6. IEEE, 2025.
APPENDIX
Assuming N to be large, the direct LoS path can be practically discarded. Then, the received power is given by
where denotes the optimal obtained as per the URD algorithm for the RE. Ignoring the LoS path, we can replace the approximation in (6) with an equality and rewrite the received power as
where is the reference direction for which maximum received power is achieved among all tried directions . Sine the URD algorithm takes the maximum among all the tried directions, we have
where , and is chosen such that is aligned as closely as possible to , the reference direction.
Note that the right hand side in (10) depends on , and so let us denote it as , which represents the optimal received power as per the URD algorithm obtained by taking a maximum over evaluations corresponding to reference directions. Consider the sequence , with , , where the reference directions pertaining to are obtained by keeping the reference directions pertaining to and adding new reference directions by taking the bisectors of the reference directions pertaining to . Then, the sequence , , is a monotonically non-decreasing sequence as the maximum is taken over an increasing sequence of sets (in the sense of set-theoretic inclusion) of reference directions. Clearly, therefore, by Monotone Convergence Theorem (MCT), the sequence , , converges to the supremum, which, in this case, is the true optimum received power achievable for the given channel gains.