Introduction
Training Unmanned Combat Aerial Vehicles (UCAVs) for high-stakes 1v1 "dogfighting" presents significant challenges for traditional reinforcement learning (RL). The primary obstacles are sparse rewards—where an agent may never receive a "win" signal in a vast 3D space—and reward shaping bias, where artificial rewards designed to guide the agent (e.g., pointing at the enemy) lead to suboptimal behaviors that fail to achieve the ultimate combat goal. This paper introduces HSAC (Homotopy-based Soft Actor-Critic), a framework that leverages a homotopy path to transition from simple auxiliary tasks to complex combat objectives, achieving a 98.3% win rate in intercept tasks.
Methodology
The HSAC framework integrates the Soft Actor-Critic (SAC) algorithm with a Homotopy Method. SAC promotes exploration by maximizing both reward and entropy, preventing premature convergence to repetitive strategies.
The Homotopy Path and Predictor-Corrector Mechanism
The core innovation is a homotopy function $F_3(\phi, q)$, where $q \in [0, 1]$ acts as a weight. At $q=0$, the agent focuses on an Auxiliary Task rich in shaped rewards to bootstrap learning. As $q$ approaches 1, the focus shifts to the Original Task—the sparse, true win/loss condition. To ensure stability during this transition, a Predictor-Corrector mechanism is employed. The "Predictor" estimates the next policy step along the path, while a "Horizontal Corrector" uses gradient descent to maintain policy stability as the reward landscape "morphs."
Relative State Compression
To reduce complexity, the state space is transformed from absolute coordinates into a relative perspective. This includes variables such as the line-of-sight (LOS) distance, the antenna train angle (ATA), and the aspect angle (AA). This compression significantly simplifies the neural network's input, focusing the agent on the relative geometry necessary for maneuvering into a firing envelope.
Experimental Setup
The researchers developed a custom 3D Air Combat Simulation Environment using OpenAI Gym for RL logic and Unity3D for high-fidelity physics and visualization.
The simulation utilizes a point-mass model defined by 12 state variables (including position, velocity, and Euler angles) and 3 control variables: angle of attack, bank angle, and throttle. The agent's performance was evaluated through self-play, where it competed against versions of itself to reach a Nash Equilibrium.
Results
HSAC was benchmarked against two variants: SAC-s (sparse rewards only) and SAC-r (shaped rewards only).
- Flight Intercept: HSAC achieved a 98.38% win rate from disadvantageous starts. In contrast, SAC-r failed (0% win rate) due to reward shaping bias, where the agent prioritized "pointing" over "intercepting."
- Head-On Combat: HSAC maintained a near-perfect 99.94% win rate, outperforming SAC-s (73.32%) and SAC-r (7.43%).
- Convergence Efficiency: HSAC converged in approximately 4,455 episodes, significantly faster than SAC-s (6,675) and SAC-r (8,250).
- Self-Play: In direct competition, the HSAC agent won 67.4% of matches against agents trained with standard methods.
Conclusion
The HSAC framework successfully addresses the dual challenges of reward sparsity and shaping bias in autonomous air combat. By morphing the reward landscape via a homotopy path, agents learn to prioritize the true combat objective without getting trapped in local optima. Future work will focus on extending this approach to multi-agent scenarios and bridging the sim-to-real gap by incorporating more complex aerodynamics and sensor noise.
Summary updated