arXiv:2609.09885cs.AISep 2026

Manuscript Offprint

arXiv:2609.09885

Decision Transformer for UAV-Mounted RIS-Assisted Dynamic D2D Communications

Yaxuan Liu

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Yaxuan Liu

Abstract—This paper studies unmanned aerial vehicle (UAV)-mounted reconfigurable intelligent surface (RIS)-assisted device-to-device (D2D) communication with stochastic link activation. It models UAV motion and attitude, time-varying Rician angles, and angle-dependent RIS reflection. A joint optimization of UAV trajectory, attitude, and RIS phases is formulated to maximize average sum rate under mobility, energy, and hardware constraints. The problem is addressed using deep reinforcement learning and a Decision Transformer trained on expert trajectories from multiple scenarios. Results demonstrate effective cross-scenario generalization, with zero-shot transfer outperforming direct DRL transfer and online fine-tuning achieving competitive performance with fewer interactions.

Index Terms—unmanned aerial vehicle, reconfigurable intelligent surface, deep reinforcement learning, joint optimization, decision transformer, generalization performance

I. INTRODUCTION

Reconfigurable intelligent surface (RIS) has emerged as a promising low-cost and energy-efficient technology for enhancing wireless signal coverage and communication quality [1]. Conventionally, RIS devices are fixedly deployed on walls or stationary infrastructures, which severely limits their flexibility and adaptability in dynamic communication scenarios such as vehicular networks and industrial wireless systems. Such fixed deployment fails to cope with time-varying channel conditions and frequently occurring link blockage, resulting in degraded beamforming performance and unreliable transmission. To address these limitations, the integration of RIS with unmanned aerial vehicles (UAVs) provides an effective solution. Benefiting from the high mobility and flexible maneuverability of UAVs, the UAV-mounted RIS system can dynamically adjust its spatial position and attitude in real time. Different from static RIS, this integrated framework can actively avoids wireless link blockage to maintain stable line-of-sight (LoS) propagation paths.

In [4], [5], the authors jointly optimize UAV trajectory and RIS phase shifts to enhance the sum rate, physical-layer security and energy efficiency. However, These studies either assumed that the RIS is deployed on a stationary planar surface, or considered UAV-mounted RIS systems while ignoring the three-dimensional rotational attitudes of UAV. Several other works incorporate the three-dimensional rotational angles of UAVs as random jitter disturbances, without treating RIS orientation as an adjustable optimization variable and still constraining the RIS to a fixed plane. Several studies verified from an electromagnetic perspective that the reflection coefficients of RIS elements are dependent on incident angles [2], [3]. Though [6], [7] integrated this angle-variant reflection property into UAV-mounted RIS modeling, [7] focused on the statistic scenarios, while [6] relied on an oversimplified uniform linear array (ULA) steering model and neglected the intricate coupling among UAV pose, time-varying Rician channels, and element-wise local incident angles, which is critical for indoor propagation environments.

Notably, since the optimization problem in UAV assisted communications are non-convex and coupling, deep reinforcement learning (DRL) algorithms are always adopted to resolve theses complicated problems. For example, deep deterministic policy gradient (DDPG) algorithm was used in [4] to jointly optimize the UAV trajectories and RIS phase shift. Authors in [8] employed soft actor-critic (SAC) to jointly optimize UAV trajectory and resource allocation for maximizing computation bits under a fairness constraint. However, conventional DRL policies often lack robustness to changes in communication environments, with performance degrading in unseen scenarios and adaptation requiring costly online interactions [9]. The Decision Transformer (DT) addresses this issue by framing reinforcement learning as conditional sequence modeling [10]. Based on the Transformer architecture, it predicts actions from returns-to-go, states, and interaction history, enabling efficient policy learning from offline trajectories without value estimation or policy-gradient updates.

Motivated by these, this work studies a dynamic indoor communication system assisted by a UAV-mounted RIS configured as a uniform planar array (UPA), in which communication links between users are stochastically established over time. The UAV trajectory, three-dimensional attitude, and RIS phase shifts are jointly optimized while accounting for the time-varying arrival and departure angles of the Rician LoS components and the incident-angle-dependent responses of the RIS elements. A Decision Transformer is pre-trained offline on high-quality DRL trajectories across multiple scenarios, enabling zero-shot control and efficient online adaptation in unseen deployments with fewer interactions.