Inferensys

Glossary

Codebook Design

Codebook Design is the process of defining a finite set of precoding matrices or beamforming vectors that the user equipment selects from to report its preferred spatial transmission strategy, standardized in 3GPP Type-I and Type-II codebooks.
Engineer reviewing vector database search results on laptop, embeddings visualization on screen, home office coding session.
PRECODING MATRIX INDICATOR

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.

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.

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.

STANDARDIZED SPATIAL QUANTIZATION

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.

01

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.
Rel-15
Introduced in 3GPP Release
02

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.
~30%
MU-MIMO Throughput Gain vs Type-I
03

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.
Rel-16
3GPP Release
04

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.
Rel-17
3GPP Release
~50%
Overhead Reduction vs Rel-16 Type-II
05

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.
FDD
Primary Use Case
06

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.
O1,O2 = 4
Typical Oversampling
3GPP NR PRECODING MATRIX INDICATOR STANDARDS

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.

FeatureType-I Single-PanelType-IIType-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)

CODEEBOOK DESIGN

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.

Prasad Kumkar

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.