Beam Prediction Based on Large Language Models

Yucheng Sheng, Kai Huang, Le Liang, Peng Liu, Shi Jin, Geoffrey Ye Li

This paper, titled "Beam Prediction Based on Large Language Models," presents a fascinating intersection between generative AI and wireless communications. It explores how the reasoning capabilities of Large Language Models (LLMs) can be repurposed to solve a classic hardware-level problem: keeping a narrow millimeter-wave (mmWave) beam pointed at a moving target.

TL;DR

Researchers have developed a framework that "reprograms" pre-trained LLMs (like GPT-2) to predict optimal wireless beams in high-mobility environments. By treating beam tracking as a time-series forecasting task, this method achieves significantly higher robustness and generalization across different frequencies and hardware setups than traditional deep learning models.

What Problem Does This Paper Address?

Millimeter-wave (mmWave) communication is a cornerstone of 5G and 6G, offering massive bandwidth. However, these high-frequency signals suffer from high path loss, requiring "beamforming"—concentrating energy into a narrow, directional beam.

The challenge is that in high-mobility scenarios (like a smartphone in a moving car), the optimal beam direction changes rapidly. If the system can’t predict where the user will be in the next few milliseconds, the connection drops. While traditional Deep Learning (DL) models like LSTMs have been used for this, they often lack robustness. A model trained for one specific base station or frequency often fails when moved to a slightly different environment. The authors aim to leverage the "world knowledge" and pattern-recognition power of LLMs to create a more adaptable beam predictor.

Methods

The authors propose a framework called BP-LLM. Instead of training a new model from scratch, they use a frozen, pre-trained LLM backbone and "reprogram" the input data to fit the LLM’s expectations.

  1. Input Preprocessing: The system takes historical beam indices and Angles of Departure (AoD) and segments them into "patches" (similar to tokens in text).
  2. Cross-Variable Attention: A specialized layer fuses the beam data and angle data, ensuring the model understands the relationship between where the beam was and the physical angle of the signal.
  3. Patch Reprogramming: Since LLMs don't "speak" wireless data, this layer maps numerical wireless patches onto "text prototypes" from the LLM’s vocabulary (e.g., mapping a specific signal trend to a concept like "upward trend").
  4. Prompt-as-Prefix (PaP): The authors feed the LLM natural language "hints" alongside the data. These include domain knowledge (explaining what the dataset is), instructions ("Predict the next H steps"), and statistics (min/max values and trends).
  5. Output Projection: The LLM’s output is flattened and converted back into a predicted beam index.

Datasets

The study utilizes the DeepMIMO dataset, a standard high-fidelity ray-tracing dataset for wireless research.

  • Scenarios: Outdoor environments with base stations (BS) using 32, 64, or 128 antennas.
  • Mobility: User velocities ranging from 5 to 20 m/s.
  • Frequencies: Training was primarily done at 28 GHz, with testing extended to 60 GHz to check for generalization.

Key Insights and Ideas

  • LLMs as Universal Pattern Matchers: The most striking insight is that an LLM trained on human language can be effectively "fooled" into processing wireless signal patterns. The model’s pre-trained ability to understand sequences and context translates well to physical time-series data.
  • Robustness is the Killer Feature: While standard LSTMs perform well in "perfect" conditions, their performance plummets when the environment changes (e.g., a different base station). The LLM-based approach maintains high performance even in mismatched settings, suggesting it has learned more general "laws of motion" rather than just memorizing a specific dataset.
  • The Power of Prompting: The "Aha!" moment in the ablation study was the role of Prompt-as-Prefix (PaP). Removing the natural language prompts caused a significant drop in performance, proving that the LLM actually uses the linguistic context to "reason" about the numerical data.

Key Results

  • Superior Accuracy: BP-LLM consistently outperformed baseline models (ODE-LSTM and Cascaded-LSTM) across various prediction time steps.
  • Zero-Shot Generalization: When a model trained on one base station (BS1) was tested on another (BS2), the LSTM models failed significantly, while the BP-LLM showed almost no performance drop.
  • Frequency Agility: A model trained at 28 GHz remained highly effective when tested at 60 GHz, a feat that usually requires complete retraining for traditional models.
  • Antenna Scalability: The model successfully predicted beams for 128-antenna arrays even when the input data format changed, demonstrating a level of flexibility rarely seen in specialized wireless AI.

Limitations and Future Work

  • Computational Overhead: The authors used GPT-2 as a backbone to balance speed and accuracy. However, even GPT-2 is significantly larger than a simple LSTM. In real-world 5G systems where decisions must be made in microseconds, the latency of a large transformer model could be a bottleneck.
  • Real-world Hardware: The study relies on ray-tracing simulations. Testing on actual hardware with real-world noise and interference remains a necessary next step.
  • Model Size vs. Performance: While larger LLMs (like Llama-3) might offer even better robustness, the authors note that the "gains from LLMs appear less significant" for simple tasks, suggesting a point of diminishing returns for beam prediction.

Summary updated

BibTeX
@article{sheng2025beam,
  author = {Yucheng Sheng and Kai Huang and Le Liang and Peng Liu and Shi Jin and Geoffrey Ye Li},
  title = {{Beam Prediction Based on Large Language Models}},
  journal = {IEEE Wireless Communications Letters},
  year = {2025},
  doi = {10.1109/lwc.2025.3543567},
}
Figure