arXiv:2608.28890eess.SYAug 2026

Manuscript Offprint

arXiv:2608.28890

Adaptive RIS-aided Communications through ML-based Generation of Phase Masks

Corwin Carpenter, Thomas Daltzis, George C. Trichopoulos, Jacek Kibilda, Joao F. Santos

Corwin Carpenter*, Thomas Daltzis† George C. Trichopoulos† Jacek Kibilda*, and Joao F. Santos*,

*Commonwealth Cyber Initiative, Virginia Tech, USA, e-mail: {ccarpenter, jkibilda, joaosantos}@vt.edu †Arizona State University, USA, e-mails: {tdaltzis, gtrichop}@asu.edu

Abstract—Reconfigurable Intelligent Surfaces (RISs) are an attractive technology for Millimeter Wave (mmWave) communications due to their ability to passively reflect incident signals. However, current implementations of RIS rely on performing computationally-intensive algorithms offline to generate phase masks, which are stored as a codebook on the embedded microcontroller on the RIS. The codebook size is restricted by the embedded microcontroller's storage capacity, which limits the ability of the RIS to adapt to evolving channel conditions and deployment scenarios. In this demo, we showcase an Machine Learning (ML)-based solution for dynamically generating new phase masks during runtime. Our approach leverages a ML model deployed on the microcontroller for approximating the output of a phase mask generation algorithm, responding to new inputs while remaining smaller than a codebook.

I. INTRODUCTION

Millimeter Wave (mmWave) communication systems are prone to increased path loss and susceptible to obstructions in the environment, which can reduce the Received Signal Strength (RSS) and potentially lead to link degradation or failure [1]. To address these challenges, Reconfigurable Intelligent Surfaces (RISs) can be deployed in the environment to improve the coverage and reliability of communication by redirecting, reflecting, or reshaping incident signals when the direct link is weak or blocked [2]. RISs are passive metasurfaces that operate as electronically steerable reflectors, reducing energy consumption and electromagnetic footprint compared to active relays or repeaters.

The reflection pattern of a RIS is determined by the phase shifts of its radiating elements. These phase shifts are configured through phase masks, which are applied to all elements by low-power embedded microcontrollers [3]. However, obtaining an optimal phase mask requires computationally intensive generation algorithms and an extensive amount of high-accuracy channel geometry data, especially as the size of the RIS increases [4]. As a result, prototype and commercial RIS models, such as [3] and [5], respectively, often rely on lookup tables (known as codebooks) that store predefined phase masks generated offline for representative reflection configurations. These phase masks can then be iteratively applied during beam training, or retrieved directly based on user-defined steering angles or locations [6].

The key limitation of this approach is that pregenerating a codebook to cover all foreseeable channel conditions (e.g., the presence of specific obstacles), deployment scenarios (i.e., far-field or near-field), and use cases (e.g., communications,

Figure

Fig. 1: Demo setup with an RIS and two mmWave radios. A movable RX reports RSS to the Host PC, which performs adaptive beam management on the RIS, and our embedded ML model dynamically generates phase masks to steer reflected signals toward the RX.

ranging) may be intractable and far exceed the storage capacity of the embedded microcontrollers, hindering the deployment of RISs in practical settings [7]. For instance, an Arduino Mega microcontroller has 256 KB of flash storage, and it could (ideally) store nearly 2000 phase masks, as each phase mask for a 1024-element 1-bit RIS occupies at least 128 B. While this may appear large, 2000 masks provide only up to 13 discrete positions per dimension when uniformly distributed across three spatial dimensions, before considering different channel conditions, obstacles, or use cases. To address this challenge, we propose to replace the codebook with a ML model, implemented as a lightweight Neural Network (NN) embedded on the RIS microcontroller, for approximating the output of the phase-mask generation algorithm and enabling a flexible generation of phase masks during runtime.

In this demo, we showcase the first experimental solution for dynamically generating phase masks in support of adaptive RIS-aided mmWave communication systems. Our solution comprises a ML model trained on an extensive set of pregenerated near-field phase masks for a 1-bit RIS, embedded into the microcontroller using TensorFlow Lite, a framework for compressing ML models and running them in inexpensive microcontrollers [8]. This demonstration will show how dynamic phase-mask generation enables an adaptive

RIS-aided communication system that is not constrained by fixed codebooks and can adapt to different deployment scenarios. By generating new phase masks at runtime, the system performs adaptive beam management on the RIS, tracking radio locations and steering the reflected signal toward new RX positions to mitigate link degradation due to mobility.