Codebook Design for Beam Alignment
Why Codebooks, Not Steering Vectors?
In Sections 20.1-20.2 we assumed that is a continuous variable to be optimized. In deployed mmWave systems, however, the analog phase-shifter states are selected from a discrete codebook of pre-designed beams. There are three reasons.
First, the channel is unknown. Before a data link exists, the base station and user must agree on a beam pair through a training (beam-alignment) phase. A finite codebook defines the set of candidates to try. Second, the RF hardware itself supports only a discrete set of phase states. The codebook must respect this hardware constraint. Third, a well-designed codebook offers a hierarchical structure: coarse beams first, refined beams after, which reduces training overhead from (exhaustive) to .
Definition: DFT Codebook
DFT Codebook
The DFT codebook for a uniform linear array (ULA) of antennas with spacing consists of unit-norm beams
The -th beam points toward the angle satisfying , equivalently . When the beams are orthogonal and tile the angular range uniformly in . The codebook size is the angular resolution.
DFT beams are the columns of the DFT matrix. Their angular beamwidth is radians - inversely proportional to the aperture. The number of orthogonal beams is capped at , so oversampling () produces overlapping beams but finer pointing resolution.
Definition: 5G NR Type I and Type II Codebooks
5G NR Type I and Type II Codebooks
5G NR Type I codebooks are DFT-like with oversampling: each codeword is a Kronecker product of a horizontal DFT vector and a vertical DFT vector, selected from two independent codebooks of oversampling factors . A rank- precoder is formed by such DFT beams combined with a co-phasing coefficient. The codebook size is for rank-1 transmission, where is the panel shape.
5G NR Type II codebooks are linear combinations of orthogonal DFT beams per polarization, with amplitudes and phases reported per beam. The feedback overhead scales as bits, where is the amplitude quantization and the phase quantization. Type II is used for high-rank multi-user MIMO; Type I is used for single-user rank reporting. Both are specified in 3GPP TS 38.214.
The choice of codebook is one of the most impactful design decisions in 5G NR. Type I is simpler and sufficient for high-mobility single-user cases. Type II enables the fine-grained MU-MIMO precoding of Chapters 6-8 at the cost of higher feedback overhead, and is the target of most 5G-Advanced (Release 18) enhancements.
Exhaustive Beam Sweep (Baseline)
Complexity: training symbolsEach round is one pilot symbol and one RSRP measurement. For , this is 4096 pilot symbols per alignment event - minutes at low SNR, seconds at high SNR. IEEE 802.11ad uses this scheme with small codebooks; 5G NR and 802.11ay use hierarchical refinement instead.
Hierarchical Beam Search
Complexity: training symbolsThe hierarchical search trades depth for breadth: measurements instead of . The catch is that the wide-beam levels must maintain enough beamforming gain to be detectable - not trivial, because a beam twice as wide has half the gain. Hierarchical codebook design is a separate research problem; see Xiao et al. (2016) for one practical solution.
Theorem: Quantization Loss of a DFT Codebook
Let be the optimal continuous-phase transmit beamformer for a rank-1 LOS channel of direction . Let be the closest DFT codeword of size , selected to minimize . The beamforming-gain loss satisfies
where . In particular, with (orthogonal DFT codebook) the worst-case loss is , realized at the midpoint between two codewords; doubling reduces the worst-case loss to about 1 dB.
The DFT beampattern in the angular direction is a sinc-shaped lobe of width . If the actual target direction falls exactly between two codebook beams, the loss is governed by the sinc sidelobe at the midpoint - a deep null at half-codebook spacing. Oversampling (larger ) moves the midpoint closer to the main lobe of the nearest codeword.
Write and as DFT-like vectors and compute their inner product.
Use the closed form .
The worst case is where is the phase increment mismatch.
Inner product as a Dirichlet kernel
Write the ULA steering vector with phase increment and the DFT codeword with increment . Then , which is a Dirichlet kernel.
Worst-case mismatch
The worst case occurs at the midpoint between two DFT codewords, . Evaluating the Dirichlet kernel: .
Sinc approximation for large $\ntn{ntx}$
For not too large, , so the ratio to the optimal simplifies to , where the extra factor of is absorbed in the argument convention. At the bound is ; at it is , a loss of about 3.9 dB. Hence orthogonal DFT codebooks are marginal; oversampling by to is standard in deployed systems.
Hierarchical Beam Codebook Patterns
Visualize the beam patterns of a hierarchical codebook across levels. Each level doubles the angular resolution (halves the beamwidth). The plot shows the angular gain versus direction for a selectable codebook size and level.
Parameters
Level $k$ has $2^k$ beams covering the aperture
Example: Training Overhead: Exhaustive vs. Hierarchical
A mmWave link uses transmit antennas and receive antennas, each with its own codebook. Compare the training overhead (in pilot symbols) of exhaustive beam sweep and hierarchical refinement. Assume no beam ambiguity.
Exhaustive overhead
, , giving pilot symbols per alignment event.
Hierarchical overhead at the Tx
Hierarchy depth , requiring symbols per Tx search.
Hierarchical overhead at the Rx
Hierarchy depth , requiring symbols. Jointly: symbols if the searches are sequential.
Saving
Hierarchical refinement uses symbols vs for exhaustive - a 93x reduction. At 1 ms per symbol this is the difference between 22 ms and 2 s, critical for mobility-induced re-alignment.
Common Mistake: Hierarchical Search Needs Enough SNR Per Level
Mistake:
Hierarchical beam search sounds strictly better than exhaustive sweep, so one might conclude to always use it.
Correction:
A wide beam covering fine directions has array gain , not . At the coarsest level the gain may be - dB below the best beam, and if the per-symbol SNR is insufficient, the wide-beam measurement collapses into noise and the wrong half is chosen. At very low SNR (deep shadow, initial access from afar) an exhaustive sweep with the highest-gain beams can be more reliable despite its overhead.
Beam Alignment
The process by which a transmitter and receiver agree on a pair of analog beams prior to data transmission. In mmWave and sub-THz systems, beam alignment dominates the link-acquisition time because the high path loss demands beamforming gain before any reliable communication can occur.
Related: Multi-Panel Array and Codebook, Exhaustive Search, Hierarchical Search, Initial Access
Why This Matters: Beam Management in 5G NR
5G NR implements beam alignment through the SSB/CSI-RS beam-sweeping protocol of Section 6.1 in TS 38.213. The base station transmits Synchronization Signal Blocks (SSBs) on a sequence of beams during the P1 procedure, allowing the UE to select the best one. Fine refinement follows in procedures P2 (Tx refinement) and P3 (Rx refinement). The number of SSBs per burst is up to 64, directly reflecting the DFT codebook size used at initial access. Failure of beam tracking during mobility triggers a beam-failure recovery procedure - the mmWave counterpart of a handover.
Key Takeaway
Beam codebooks are not a compromise forced by hardware - they are the enabling data structure that makes mmWave link setup tractable. An oversampled DFT codebook provides the angular resolution; a hierarchical structure reduces training overhead from to ; and the 3GPP Type I/II codebooks embed both into a deployable standard. Understanding codebook design is understanding where 5G mmWave actually happens.