Social-Mamba: Socially-Aware Trajectory Forecasting with State-Space Models

Po-Chien Luan, Wuyang Li, Yang Gao, Alexandre Alahi
5/14/2026
2 citations
cs.CV
state-space-mamba

Official code: vita-epfl/Social-Mamba (9 stars, Python, GPL-3.0, last commit 2026-09-02).

Abstract

Human trajectory forecasting is crucial for safe navigation in crowded environments, requiring models that balance accuracy with computational efficiency. Efficiently modeling social interactions is key to performance in dense crowds.

Show full abstract

Yet, most recent methods rely on attention mechanisms, which are effective at capturing complex dependencies, but incur quadratic computational costs that scale poorly with the growing number of neighbors. Recently, Selective State-Space Models have provided a linear-time alternative; however, their inherently sequential design is misaligned with the unstructured and dynamic nature of social interactions. To address this challenge, we propose Social-Mamba, a forecasting architecture that reformulates social interactions as structured sequential processes. At its core is the Cycle Mamba block, a novel module that enables continuous bidirectional information flow. Social-Mamba organizes agents on an egocentric grid and introduces social triplet factorization, which decomposes interactions into temporal, egocentric, and goal-centric scans. These are dynamically integrated through a learnable social gate and global scan to generate accurate and efficient trajectory predictions. Extensive experiments on five trajectory forecasting benchmarks show that Social-Mamba achieves state-of-the-art accuracy while offering superior parameter efficiency and computational scalability. Furthermore, embedding Social-Mamba into a flow-matching framework further enhances both accuracy and efficiency, establishing it as a flexible and robust foundation for future trajectory forecasting research. The code is publicly available: https://github.com/vita-epfl/Social-Mamba

View on arXivView PDF

Code Implementations(1)

GPL-3.0

[ECCV 26] Social-Mamba: Socially-Aware Trajectory Forecasting with State-Space Models

90Python, ShellMay 13, 20263 months agoGPL-3.0

Similar Papers

Cite this paper

@article{luan2026socialmamba,
  title  = {Social-Mamba: Socially-Aware Trajectory Forecasting with State-Space Models},
  author = {Po-Chien Luan and Wuyang Li and Yang Gao and Alexandre Alahi},
  year   = {2026},
  eprint = {2605.15424},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.15424v1},
  journal = {ECCV 2026 2026}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.15424.svg)](https://codeofpaper.com/paper/2605.15424)

Discussion