Abstract
Deploying real-time spatial perception on edge devices requires efficient multi-task models that leverage complementary task information while minimizing computational overhead. This paper introduces Multi-Mono-Hydra (M2H), a novel multi-task learning framework designed for semantic segmentation and depth, edge, and surface normal estimation from a single monocular image. Unlike conventional approaches that rely on independent single-task models or shared encoder-decoder architectures, M2H introduces a Window-Based Cross-Task Attention Module that enables structured feature exchange while preserving task-specific details, improving prediction consistency across tasks. Built on a lightweight ViT-based DINOv2 backbone, M2H is optimized for real-time deployment and serves as the foundation for monocular spatial perception systems supporting 3D scene graph construction in dynamic environments. Comprehensive evaluations show that M2H outperforms state-of-the-art multi-task models on NYUDv2, surpasses single-task depth and semantic baselines on Hypersim, and achieves superior performance on the Cityscapes dataset, all while maintaining computational efficiency on laptop hardware.
Introduction
In autonomous robotics and augmented reality, systems must understand their surroundings in 3D—identifying not just what an object is (semantics), but its distance (depth), orientation (surface normals), and boundaries (edges). While Multi-Task Learning (MTL) aims to solve these together to save computation, it faces a significant challenge: simple sharing often leads to "negative transfer" where tasks interfere, while global attention mechanisms are often too computationally expensive for real-time use on edge devices.
M2H (Multi-Mono-Hydra) addresses this "Goldilocks" problem by introducing an architecture that allows tasks to share relevant local and global information without the massive overhead of standard Transformers. It achieves state-of-the-art accuracy on major benchmarks while remaining efficient enough to run at 30 FPS on a laptop GPU.
Architecture and Methodology
M2H is built on a lightweight DINOv2 (Vision Transformer) backbone. Its core innovations lie in how it fuses information in the decoder to maximize task synergy while minimizing latency.
Window-Based Cross-Task Attention (WMCA)
Instead of performing global attention across the entire image, M2H partitions feature maps into small, non-overlapping windows. Within these windows, features from all four tasks are concatenated. This allows the model to learn local correlations—for instance, that a sharp change in depth likely aligns with a semantic boundary—with linear complexity ($O(N)$) rather than the quadratic complexity ($O(N^2)$) of standard attention.
Global Gated Feature Merging (GGFM)
To ensure the model retains the "big picture," the GGFM module uses a squeeze-and-excitation style gating mechanism. This aggregates global context to modulate task-specific features, ensuring that local windowed decisions are consistent with the overall scene structure.
Consistency and Balancing
The model employs cross-task consistency losses (e.g., aligning depth gradients with surface normals) to force geometric coherence. To prevent any single task from dominating training, Dynamic Weight Averaging (DWA) automatically balances loss importance based on the rate of performance change.
Experimental Results
The model was evaluated on four distinct datasets: NYUDv2 (real-world indoor), Hypersim (synthetic indoor), Cityscapes (outdoor urban), and the ITC Dataset (real-world validation).
State-of-the-Art Performance
On the NYUDv2 benchmark, M2H achieved a significant leap in performance, including a +3.4% mIoU improvement in semantic segmentation and a 13% lower error (RMSE) in depth estimation compared to previous leading models like SwinMTL and MT-Mamba++.
Efficiency and Real-Time Deployment
Efficiency is a core strength of the M2H framework. The "M2H-small" variant uses only 33.7M parameters and 59 GFLOPs. In real-world testing on an RTX 3080 laptop GPU, the full model maintains 30 FPS, while the small version reaches 42 FPS, making it highly suitable for mobile robotic platforms.
Conclusion
M2H demonstrates that locality is often sufficient for spatial perception; capturing synergies within local windows provides the most vital cues at a fraction of the computational cost. By leveraging a self-supervised DINOv2 foundation and structured cross-task attention, M2H provides a robust, real-time solution for monocular 3D scene understanding. Future work will explore temporal consistency to reduce flicker in video sequences and deeper integration into 3D scene graph construction logic.
Summary updated