Eudoxus: Characterizing and Accelerating Localization in Autonomous Machines

Yiming Gan, Yu Bo, Boyuan Tian, Leimeng Xu, Wei Hu, Shaoshan Liu, Qiang Liu, Yanjun Zhang, Jie Tang, Yuhao Zhu

TL;DR

This paper introduces Eudoxus, a novel software-hardware co-designed framework for autonomous machine localization. It addresses the challenge of adapting to diverse real-world environments by unifying common localization primitives and accelerating them on FPGAs, achieving significant speedups and energy reductions.

What Problem Does This Paper Address?

Autonomous machines like self-driving cars and logistics robots operate in a wide variety of environments, from well-mapped indoor spaces to unknown outdoor terrains. A critical component for their operation is accurate and efficient localization – determining the machine's precise position and orientation. However, existing localization algorithms are often specialized for specific scenarios. For instance, Visual-Inertial Odometry (VIO) excels in outdoor environments with GPS, while Simultaneous Localization and Mapping (SLAM) is better suited for unknown indoor spaces. Simply using multiple specialized accelerators leads to increased cost, power consumption, and software complexity. This paper tackles the problem of creating a single, flexible localization system that can adapt to different environments and be efficiently accelerated, overcoming the limitations of point-solution accelerators.

Methods

The core of Eudoxus is a unified localization framework that fuses fundamental algorithmic primitives from three main localization approaches: registration, VIO, and SLAM. This framework is designed with a two-phase structure: a shared vision frontend for feature extraction and matching, and an adaptable optimization backend that can switch between registration, VIO, and SLAM modes based on the operating environment.

The authors then characterize this software framework to identify "low-hanging fruit" for hardware acceleration. They focus on kernels that significantly contribute to both end-to-end latency and, crucially, latency variation, which is vital for predictable and safe operation. Based on this analysis, they co-design a hardware accelerator implemented on FPGAs. This accelerator exploits task-level parallelisms, data locality, and common building blocks within the localization framework. A key aspect is the use of specialized on-chip memory structures like stencil buffers (SBs), FIFOs, and scratchpad memories (SPMs) to efficiently handle data reuse patterns. Furthermore, a lightweight runtime scheduler is developed to intelligently offload computations to the hardware accelerator only when it provides a performance benefit, avoiding overheads for small computations.

Datasets

The paper utilizes a combination of existing benchmarks and their own collected data:

  • KITTI Odometry dataset [38]: Used for outdoor scenarios, particularly for self-driving cars.
  • EuRoC dataset [20]: Used for indoor scenarios, particularly for drones.
  • In-house datasets: Collected from their commercial deployments to cover a broader range of real-world indoor and outdoor environments, including scenarios without maps and with GPS.

The authors note that their in-house datasets provide "unnormalized, unobscured data" which is valuable for identifying acceleration targets.

Key Insights and Ideas

  • "One algorithm does not fit all": The paper strongly demonstrates that different operating environments (indoor/outdoor, with/without map, with/without GPS) necessitate different localization algorithms for optimal accuracy and performance.
  • Unified framework as an acceleration target: Instead of accelerating individual, disparate algorithms, unifying common primitives into a single framework creates a more efficient and generalizable software target for hardware acceleration.
  • Latency variation is as critical as latency: The authors highlight that for autonomous systems, predictable performance (low latency variation) is as important as raw speed. Their acceleration strategy targets both.
  • Frontend bottleneck for latency, backend for variation: The analysis reveals that the vision frontend is a primary contributor to overall latency, while the backend kernels are more responsible for latency variation.
  • Hardware acceleration benefits from shared primitives: By identifying and exploiting common building blocks across different localization algorithms (e.g., matrix operations in the backend), a single hardware accelerator can efficiently serve multiple modes.
  • Intelligent scheduling is key: Offloading every computation to hardware isn't always beneficial. A smart scheduler that considers data transfer overheads and kernel complexity is crucial for maximizing overall system performance.

Key Results

  • Speedup: Eudoxus achieves approximately 2x speedup compared to optimized implementations on general-purpose platforms.
  • Latency Reduction:
    • Car (EDX-CAR): 2.1x overall speedup, with reductions of 2.5x (registration), 2.1x (VIO), and 2.0x (SLAM).
  • Drone (EDX-DRONE): 1.9x overall speedup, with reductions of 2.0x (registration), 1.9x (VIO), and 1.8x (SLAM).
  • Latency Variation Reduction:
    • Car (EDX-CAR): 58.4% reduction in standard deviation (SD).
  • Drone (EDX-DRONE): 42.7% reduction in SD.
  • Energy Reduction:
    • Car (EDX-CAR): 73.7% reduction in average energy per frame.
  • Drone (EDX-DRONE): 47.4% reduction in average energy per frame.
  • Throughput: Achieved up to 31.9 FPS on the car platform with pipelining.
  • Resource Efficiency: The proposed shared architecture significantly reduces hypothetical resource consumption compared to using separate accelerators for each mode (more than doubling resource usage without sharing).

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while their system is flexible, it's still a co-design for specific primitives. More complex or novel localization algorithms might require further adaptation.
  • The comparison with existing accelerators is noted as "best-effort" due to differences in algorithmic variants and target platforms.
  • The runtime scheduler's accuracy is based on regression models, which might have limitations in highly dynamic or unpredictable scenarios.
  • Future Work:
    • The authors suggest that the "one algorithm does not fit all" observation likely applies to other autonomous machine tasks like planning and control, opening avenues for future software-hardware co-design.
  • They envision expanding the Eudoxus principle to other domains, promoting open software stacks and hardware platforms for autonomous machines.
  • Further exploration of system-level optimizations that integrate localization with other tasks is suggested.

Summary updated

BibTeX
@inproceedings{gan2021eudoxus,
  author = {Yiming Gan and Yu Bo and Boyuan Tian and Leimeng Xu and Wei Hu and Shaoshan Liu and Qiang Liu and Yanjun Zhang and Jie Tang and Yuhao Zhu},
  title = {{Eudoxus: Characterizing and Accelerating Localization in Autonomous Machines}},
  booktitle = {HPCA},
  year = {2021},
  doi = {10.1109/hpca51647.2021.00074},
}
Figure