Codebook Design is the process of constructing a finite, indexed set of precoding matrices—known as a codebook—that the user equipment searches to find the optimal spatial transmission strategy for the current channel conditions. The UE reports the index of the selected matrix via a Precoding Matrix Indicator (PMI) , enabling the base station to perform closed-loop spatial multiplexing without requiring full channel knowledge.
Glossary
Codebook Design

What is Codebook Design?
Codebook design is the systematic process of defining a finite set of precoding matrices or beamforming vectors that a user equipment (UE) selects from to report its preferred spatial transmission strategy to the base station.
Standardized in 3GPP Type-I and Type-II codebooks, modern designs leverage discrete Fourier transform (DFT) vectors to exploit angular domain sparsity and support multi-panel antenna arrays. Advanced Type-II codebooks provide higher resolution by reporting linear combinations of multiple beams with amplitude and phase quantization, trading increased feedback overhead for near-optimal precoding performance in massive MIMO systems.
Key Characteristics of 3GPP Codebook Design
3GPP codebooks define a finite set of precoding matrices that discretize the continuous spatial channel into a manageable feedback payload, balancing quantization accuracy with uplink overhead.
Type-I Single-Panel Codebook
The foundational codebook for standard-resolution spatial feedback in 5G NR. It uses a grid of beams (GoB) structure based on a 2D Discrete Fourier Transform (DFT) to quantize the azimuth and zenith angles of departure.
- W1 (Wideband): Selects a beam group from the DFT grid, capturing long-term spatial correlation.
- W2 (Subband): Performs co-phasing and beam selection within the chosen group for short-term frequency-selective precoding.
- Rank 1-8 Support: Enables up to 8-layer spatial multiplexing.
- Low Overhead: Optimized for single-user MIMO with minimal CSI feedback payload.
Type-II High-Resolution Codebook
Designed for multi-user MIMO (MU-MIMO) with significantly higher spatial resolution. It employs a linear combination of multiple DFT beams with amplitude and phase quantization to approximate the dominant eigenvectors of the channel.
- L Beam Selection: Selects L=2-4 orthogonal DFT beams per polarization per layer.
- Amplitude Quantization: Applies both wideband and subband amplitude scaling with non-uniform quantization (3-bit and 1-bit).
- Phase Quantization: Uses QPSK or 8-PSK co-phasing between beams.
- Overhead Trade-off: Delivers ~30% throughput gain over Type-I but with substantially higher feedback payload.
Type-II Port Selection Codebook
A variant of the Type-II codebook that reduces complexity by operating in the beamformed spatial domain rather than the full antenna domain. The UE selects beams from a set of pre-beamformed CSI-RS ports instead of the full DFT grid.
- Reduced UE Complexity: Limits the search space to K pre-coded ports, lowering computational burden.
- Angular Reciprocity: Leverages uplink SRS at the gNB to form the beamformed ports for FDD operation.
- Overhead Reduction: Significantly cuts the number of linear combination coefficients compared to regular Type-II.
- eType-II Enhancement: Further enhanced in Rel-17 with frequency domain compression.
Enhanced Type-II with Frequency Compression
The Rel-17 eType-II codebook introduces frequency domain (FD) compression to address the prohibitive feedback overhead of subband reporting in high-bandwidth systems. It exploits the sparsity of the channel in the delay domain.
- Wf Basis: The UE reports a compressed set of FD basis vectors (DFT columns) instead of per-subband coefficients.
- Sparsity Exploitation: Only a small number of non-zero linear combination coefficients are reported, identified via a bitmap.
- Two-Step Feedback: Part 1 carries the number of non-zero coefficients; Part 2 carries the quantized amplitudes and phases.
- Massive Overhead Reduction: Reduces payload by up to 50% compared to Rel-16 Type-II without sacrificing MU-MIMO performance.
Codebook-Based CSI Feedback Loop
The standardized mechanism by which the UE selects and reports the optimal precoding matrix indicator (PMI) to the gNB. This closed-loop process is fundamental to FDD massive MIMO operation.
- CSI-RS Measurement: gNB transmits beamformed or non-precoded CSI-RS across the configured ports.
- PMI Selection: UE searches the codebook for the matrix maximizing a metric like mutual information or SINR.
- RI/CQI/PMI Report: UE feeds back the Rank Indicator, Channel Quality Indicator, and Precoding Matrix Indicator.
- Reciprocity Gap: In FDD, the UE must perform this exhaustive search because the gNB cannot infer the downlink channel from uplink measurements.
Codebook Parameterization (N1, N2, O1, O2)
The 3GPP codebook structure is parameterized by the antenna array geometry and oversampling factors, defining the DFT grid resolution.
- N1, N2: Number of antenna ports in the horizontal and vertical dimensions of the panel.
- O1, O2: Oversampling factors that control the angular granularity of the DFT beams. Higher values yield finer spatial quantization.
- i1,1, i1,2: Indices selecting the beam group in the horizontal and vertical dimensions.
- i2: Index selecting the specific beam and co-phasing within the group.
- Configuration Flexibility: The gNB configures these parameters via RRC signaling based on the deployed antenna topology.
Type-I vs. Type-II Codebook Comparison
A technical comparison of the spatial resolution, feedback overhead, and multi-user capabilities of 3GPP Release 15/16 single-panel codebook types for massive MIMO channel state information reporting.
| Feature | Type-I Single-Panel | Type-II | Type-II Port Selection |
|---|---|---|---|
Spatial Resolution | Low (beam selection only) | High (amplitude and phase per tap) | High (amplitude and phase per tap) |
Beam Combination | |||
Amplitude Quantization | Wideband only | Subband (differential) | Subband (differential) |
Phase Quantization | QPSK (2 bits) | QPSK or 8-PSK (2-3 bits) | QPSK or 8-PSK (2-3 bits) |
Max Rank | 8 | 2 | 2 |
Typical Feedback Overhead | Low (tens of bits) | High (hundreds of bits) | Medium (reduced by port selection) |
Multi-User MIMO Optimization | |||
Frequency Granularity | Wideband only | Subband (13 subbands for 10 MHz) | Subband (13 subbands for 10 MHz) |
Enabling Efficiency, Speed & Accuracy
Intelligent Analysis, Decision & Execution
We build AI systems for teams that need search across company data, workflow automation across tools, or AI features inside products and internal software.
Talk to Us
Search across company data
Give teams answers from docs, tickets, runbooks, and product data with sources and permissions.
Useful when people spend too long searching or get different answers from different systems.

Automate internal workflows
Use AI to route work, draft outputs, trigger actions, and keep approvals and logs in place.
Useful when repetitive work moves across multiple tools and teams.

Add AI to products and internal tools
Build assistants, guided actions, or decision support into the software your team or customers already use.
Useful when AI needs to be part of the product, not a separate tool.
Frequently Asked Questions
Addressing the most common technical inquiries regarding the definition, standardization, and optimization of precoding matrix codebooks in 3GPP massive MIMO systems.
A codebook in 5G massive MIMO is a finite, pre-defined set of precoding matrices or beamforming vectors standardized by 3GPP that the User Equipment (UE) searches through to identify and report the optimal spatial transmission strategy to the base station (gNB). Rather than sending back raw, high-dimensional Channel State Information (CSI) , the UE selects the index of the matrix that maximizes a specific metric, such as signal-to-interference-plus-noise ratio (SINR) or throughput. This drastically reduces the CSI feedback overhead on the uplink control channel. The design of these matrices must balance quantization granularity with feedback payload size, ensuring that the selected codeword accurately represents the dominant eigenmodes of the channel while fitting within the limited Physical Uplink Control Channel (PUCCH) or Physical Uplink Shared Channel (PUSCH) resources.
Related Terms
Understanding codebook design requires familiarity with the spatial processing techniques, feedback mechanisms, and standardization frameworks that govern how user equipment selects and reports optimal precoding matrices in massive MIMO systems.
Precoding
Precoding is the multi-antenna transmission technique that applies a complex weight matrix to data streams at the transmitter, optimizing the signal for specific spatial channel conditions. The codebook provides the finite set of precoding matrices from which the user equipment selects its preferred configuration.
- Enables spatial multiplexing by steering independent data layers
- Implements interference nulling to suppress crosstalk between users
- Relies on accurate Channel State Information (CSI) for weight calculation
- Linear precoding schemes include Zero-Forcing (ZF) and Minimum Mean Square Error (MMSE)
CSI Feedback
CSI Feedback is the mechanism by which user equipment quantizes and reports its estimated downlink channel state back to the base station. The codebook defines the quantization resolution and the specific indices the UE transmits.
- Type-I codebooks provide low-resolution spatial information with minimal overhead
- Type-II codebooks report high-resolution linear combinations of beams for multi-user MIMO
- Feedback payload size is a critical constraint driving CSI compression research
- Precoding Matrix Indicator (PMI) is the index into the codebook selected by the UE
Beamforming
Beamforming uses an array of antennas to direct signal transmission or reception in a specific angular direction. Codebook-based beamforming restricts the beam selection to a discrete set of steering vectors defined by the codebook.
- Grid of Beams (GoB) is the foundational concept for 3GPP codebook design
- Each codeword corresponds to a specific beam direction and width
- Discrete Fourier Transform (DFT) vectors form the basis of many standardized codebooks
- Beam management procedures in 5G NR rely on codebook-based beam sweeping
Massive MIMO
Massive MIMO equips base stations with a large number of antenna elements to simultaneously serve multiple users through spatial multiplexing. Codebook design becomes increasingly complex as the antenna count grows, requiring efficient quantization of high-dimensional spatial channels.
- Angular domain sparsity is exploited by codebooks using DFT basis vectors
- Dual-stage codebooks (W1 + W2) separate long-term wideband and short-term subband precoding
- Port selection codebooks reduce complexity by selecting from virtualized antenna ports
- The codebook must scale gracefully with 64T64R and higher antenna configurations
3GPP CDL Channel Models
The 3GPP Clustered Delay Line (CDL) models are standardized geometric channel representations used for link-level simulation and codebook performance evaluation in 5G NR. They define clusters of multipath components with specific angles of arrival, departure, and delay profiles.
- CDL-A, CDL-B, CDL-C represent non-line-of-sight scenarios with varying delay spreads
- CDL-D, CDL-E model line-of-sight conditions
- Each cluster has defined Angle of Departure (AoD) and Angle of Arrival (AoA) statistics
- Essential for benchmarking codebook selection accuracy under realistic propagation conditions

About the author
Prasad Kumkar
CEO & MD, Inference Systems
Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.
His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.
Partnered with leading AI, data, and software stack.
How We Work
Custom AI workflows for your Business
One-fit-all AI don't work for modern businesses. At Inferensys, we aim to understand your business & custom requirements; which we use to define most efficient agentic workflows, the data, and the tools for your business.
01
Review the use case
We understand the task, the users, and where AI can actually help.
Read more02
Pick the right approach
We define what needs search, automation, or product integration.
Read more03
Build the first useful version
We implement the part that proves the value first.
Read more04
Improve from there
We add the checks and visibility needed to keep it useful.
Read moreThe first call is a practical review of your use case and the right next step.
Talk to Us