SHMamba: Structured Hyperbolic State Space Model for Audio-Visual Question Answering

Zhe Yang, Wenrui Li, Guanghui ChengarXiv 2024 · DOI

Abstract

Audio-Visual Question Answering (AVQA) requires models to reason across hierarchical modalities over long temporal sequences. Traditional Euclidean-based Transformer models suffer from quadratic complexity and poor representation of tree-like data hierarchies. We present SHMamba, a Structured Hyperbolic State Space Model that leverages hyperbolic geometry for hierarchical alignment and Mamba blocks for linear-time global modeling. SHMamba achieves state-of-the-art performance on MUSIC-AVQA and AVQA datasets while reducing parameters by 78% and FLOPs by 65%.

Introduction

Audio-Visual Question Answering (AVQA) is a challenging task that involves understanding complex relationships between visual scenes and auditory signals to answer natural language questions. Current state-of-the-art models face two primary limitations: the "Geometry Gap" and the "Complexity Wall."

The Geometry Gap refers to the mismatch between the flat Euclidean space used in standard embeddings and the inherently hierarchical nature of audio-visual data. For instance, musical instruments follow a taxonomic structure (e.g., String -> Violin) that is better represented in hyperbolic space. The Complexity Wall stems from the reliance on Transformers, which exhibit $O(n^2)$ computational complexity, making them inefficient for long video sequences.

Methodology: SHMamba Architecture

SHMamba addresses these challenges by integrating Hyperbolic geometry with Structured State Space Models (SSMs).

Mamba-based Feature Extraction

To overcome the quadratic scaling of Transformers, SHMamba adopts the Mamba architecture. Mamba utilizes a selective scan mechanism that allows for global modeling of sequences with linear complexity ($O(n)$). This enables the model to capture long-range temporal dependencies across entire video clips without the need for windowing, which often discards critical context.

Comparison of Mamba and Transformer complexity

Hyperbolic Space Alignment

The model projects audio and visual features into a Poincaré ball, a hyperbolic manifold. Unlike Euclidean space, the volume of hyperbolic space grows exponentially with its radius, providing a natural embedding for hierarchical structures. SHMamba employs a learnable adaptive curvature module to tailor the geometry to the specific data distribution.

SHMamba overall architecture showing hyperbolic alignment and cross-modal fusion

Cross Fusion and Reasoning

The architecture includes a Cross Fusion Block (CFB) that integrates multi-modal features through gating mechanisms and deep convolutions. This ensures robust interaction between the visual and audio streams before they are passed to the final classifier for question answering.

Experimental Results

SHMamba was evaluated on the MUSIC-AVQA and AVQA datasets. The results demonstrate that the model significantly outperforms existing methods while being far more efficient.

  • Efficiency: SHMamba reduces learnable parameters by 78.12% (from 18.48M to 4.03M) and FLOPs by 65.93% compared to previous SOTA models like ST-AVQA.
  • Performance: It achieved an average accuracy improvement of 2.53% on MUSIC-AVQA and reached 90.8% accuracy on the AVQA dataset.

Conclusion

SHMamba demonstrates that the choice of embedding geometry and backbone architecture is crucial for efficient multi-modal reasoning. By combining the hierarchical representational power of hyperbolic space with the linear efficiency of Mamba, SHMamba sets a new standard for AVQA. Future work will focus on enhancing spatial information exploration within this framework.

Summary updated

BibTeX
@misc{yang2024shmamba,
  author = {Zhe Yang and Wenrui Li and Guanghui Cheng},
  title = {{SHMamba: Structured Hyperbolic State Space Model for Audio-Visual Question Answering}},
  year = {2024},
  eprint = {2406.09833},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09833},
}
Figure