Enhancing the Performance of DeepReach on High-Dimensional Systems through Optimizing Activation Functions

Qian Wang, Tianhao WuarXiv 2023 · DOI

Introduction

Safety guarantees are paramount for autonomous systems, such as unmanned aerial vehicles and self-driving cars. Hamilton-Jacobi (HJ) reachability analysis provides a formal framework for calculating the Backward Reachable Tube (BRT)—the set of states from which a system cannot avoid a collision. However, traditional grid-based solvers suffer from the "curse of dimensionality," becoming computationally intractable for systems exceeding five or six dimensions. DeepReach, a neural-network-based approach, addresses this by leveraging Deep Neural Networks (DNNs) to approximate the HJ value function. While effective, DeepReach's performance is highly sensitive to the choice of activation functions, typically balancing the high-frequency accuracy of Sine functions against the optimization stability of ReLU.

Intertwined Activation Architectures

This study investigates the impact of "intertwined" activation functions, where Sine and ReLU layers are strategically mixed within a DNN architecture. Standard DeepReach implementations rely heavily on Sine activations to capture the complex gradients required for HJ analysis. However, Sine functions are notoriously difficult to optimize due to their non-monotonic nature. Conversely, ReLU activations facilitate easier training but often produce "piece-wise constant" gradients that lack the precision necessary for high-stakes safety boundaries.

Figure 2: Smooth value function approximation achieved through optimized activation function selection.

The proposed methodology involves experimenting with layer-wise combinations, such as placing Sine activations at the input and output layers to preserve gradient quality for critical state variables like vehicle heading ($\theta$), while utilizing ReLU in intermediate layers to improve convergence.

Experimental Evaluation

The approach was evaluated on two primary benchmarks:

  1. Air3D (3D): A low-dimensional collision avoidance scenario used to validate the hybrid approach against ground-truth solutions.
  2. Multi-vehicle Collision (9D): A high-dimensional system involving three vehicles, representing a scenario where traditional solvers are inapplicable.

Performance was quantified using the Violation Rate, determined by simulating 100,000 sampled states to check for safety boundary consistency.

Results and Discussion

The experiments revealed that the spatial arrangement of activation functions is a primary determinant of model accuracy. Specifically, maintaining Sine activations in the initial and final layers proved essential. In the 9D multi-vehicle scenario, a six-layer hybrid model (denoted as sssssl) achieved a violation rate of 18.43%, outperforming the five-layer all-Sine baseline (ssssl) at 19.00%.

Figure 5: Comparison of predicted Backward Reachable Tubes (BRTs) across different intertwined activation configurations in the 9D multi-vehicle system.

In contrast, ReLU-only architectures failed to capture the safety boundaries in high dimensions, often missing significant portions of the collision zones. The results suggest a linear correlation between the number of Sine layers and training time, highlighting a trade-off between computational cost and safety precision.

Conclusion

Strategically mixing Sine and ReLU activation functions significantly enhances the performance of DeepReach in high-dimensional safety analysis. By leveraging the optimization benefits of ReLU alongside the gradient accuracy of Sine, researchers can achieve lower violation rates in complex autonomous scenarios. Future work will explore automated Neural Architecture Search (NAS) to identify optimal activation "recipes" and implement refined error-correction models for real-world deployment.

Summary updated

BibTeX
@misc{wang2023enhancing,
  author = {Qian Wang and Tianhao Wu},
  title = {{Enhancing the Performance of DeepReach on High-Dimensional Systems through Optimizing Activation Functions}},
  year = {2023},
  eprint = {2312.17583},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.17583},
}
Figure