BERT4beam: Large AI Model Enabled Generalized Beamforming Optimization

Yuhang Li, Yang Lu, Wei Chen, Bo Ai, Zhiguo Ding, Dusit Niyato · DOI

Abstract

Wireless beamforming optimization is a cornerstone of 6G networks, yet traditional mathematical solvers are often too slow for real-time applications, and standard deep learning models lack generalization. This paper introduces BERT4beam, a framework that treats beamforming as a sequence modeling problem. By leveraging bidirectional Transformer architectures, the proposed BERT and Universal BERT (UBERT) models achieve near-optimal performance across multiple objectives while maintaining robustness to changes in system scale, such as varying numbers of users and antennas.

Introduction

In the evolving landscape of 6G wireless networks, beamforming—the spatial filtering technique used to direct signal energy toward specific users—is critical for managing interference and maximizing spectral efficiency. While traditional Convex Optimization (CVX) methods like Successive Convex Approximation (SCA) provide high accuracy, their high computational complexity makes them unsuitable for dynamic, millisecond-scale environments.

Deep Learning (DL) has emerged as a promising "learning-to-optimize" alternative. However, conventional DL models such as Multi-Layer Perceptrons (MLPs) and Convolutional Neural Networks (CNNs) are often "brittle." They are typically trained for a fixed number of antennas and users; any change in the network topology requires retraining. Furthermore, these models are usually task-specific, failing to adapt to different optimization objectives like energy efficiency (EE) or sum-rate (SR) maximization without significant effort.

Methodology

The BERT4beam framework addresses these challenges by adopting the Transformer architecture, specifically inspired by the Bidirectional Encoder Representations from Transformers (BERT).

Tokenization and Architecture

The core innovation lies in treating Channel State Information (CSI) as a sequence of tokens. In the standard BERT model, CSI for each user is mapped to a token. The UBERT model takes this further with "element-wise tokenization," breaking down channel gains between individual antenna-user pairs. This approach makes the input dimension independent of the system's physical scale.

Architecture of the BERT model for beamforming

The architecture consists of multiple Transformer Encoder Blocks (TEBs) utilizing Multi-Head Attention (MHA). Unlike unidirectional models (e.g., GPT), BERT's bidirectional nature allows it to capture global inter-dependencies between all users simultaneously, which is essential for solving the interference-heavy beamforming problem.

Architecture of the UBERT model for universal beamforming

Training Strategy

A two-stage training strategy is employed:

  1. Supervised Pre-training: The model learns the underlying physics of beamforming using a large dataset labeled by traditional CVX solvers.
  2. Unsupervised Fine-tuning: The pre-trained model is refined on unlabeled real-world data to adapt to specific objectives or hardware configurations. A parameter-free Generalizable Power Adapter (GPA) ensures that the output beamforming vectors always respect physical power constraints.

Results and Key Insights

Evaluations using standard Rayleigh fading models demonstrate that BERT4beam models achieve 98-99% of the performance of traditional SCA solvers in Sum Rate and Minimum Rate tasks.

Generalization and Efficiency

A key finding is the superior generalization of the Transformer-based approach. When deployed in scenarios with a different number of users than seen during training, BERT models maintained over 92% accuracy, significantly outperforming MLPs and CNNs. UBERT, in particular, demonstrated high data efficiency, reaching 80% of peak performance with as few as 600 fine-tuning samples.

The Power of Bidirectionality

The research highlights that bidirectionality is crucial for beamforming. Because beamforming is a global coordination problem—where the optimal signal for one user depends on the channels of all others—the bidirectional attention mechanism in BERT significantly outperforms the causal attention used in GPT-like models.

Conclusion and Future Work

BERT4beam represents a significant step toward "foundation models" for the wireless physical layer. While the framework shows remarkable performance, challenges remain in maintaining robustness for "Minimum Rate" tasks under high CSI error conditions and optimizing for complex objectives like Energy Efficiency. Future research will explore scaling these models to handle unified tasks including channel estimation and signal detection within a single architecture.

Summary updated

BibTeX
@misc{li2025bert,
  author = {Yuhang Li and Yang Lu and Wei Chen and Bo Ai and Zhiguo Ding and Dusit Niyato},
  title = {{BERT4beam: Large AI Model Enabled Generalized Beamforming Optimization}},
  year = {2025},
  eprint = {2509.11056},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.11056},
}
Figure