cs.CVApr 13, 2026

H-SPAM: Hierarchical Superpixel Anything Model

Authors: Julien Walther, Rémi Giraud, Michaël Clément

Organizations: Univ. Bordeaux, CNRS, Bordeaux INP, IMS, UMR 5218, France · Univ. Bordeaux, CNRS, Bordeaux INP, LaBRI, UMR 5800, France

Abstract

Superpixels offer a compact image representation by grouping pixels into coherent regions. Recent methods have reached a plateau in terms of segmentation accuracy by generating noisy superpixel shapes. Moreover, most existing approaches produce a single fixed-scale partition that limits their use in vision pipelines that would benefit multi-scale representations. In this work, we introduce H-SPAM (Hierarchical Superpixel Anything Model), a unified framework for generating accurate, regular, and perfectly nested hierarchical superpixels. Starting from a fine partition, guided by deep features and external object priors, H-SPAM constructs the hierarchy through a two-phase region merging process that first preserves object consistency and then allows controlled inter-object grouping. The hierarchy can also be modulated using visual attention maps or user input to preserve important regions longer in the hierarchy. Experiments on standard benchmarks show that H-SPAM strongly outperforms existing hierarchical methods in both accuracy and regularity, while performing on par with most recent state-of-the-art non-hierarchical methods. Code and pretrained models are available: https://github.com/waldo-j/hspam.

Figures & tables

Explore similar work

CardsList
  1. Square Superpixel Generation and Representation Learning via Granular Ball Computing

    Mar 31, 2026Shuyin Xia, Meng Yang, Dawei Dai +6Visual Representation Learning

  2. SPARC: SuperPixel-Aware Region Contrastive Learning for Self-Supervised Dense Prediction

    Sep 16, 2026David Szczecina, Yuanpei Xiang, Jitao Hu +4Self-Supervised Visual Representation LearningContrastive Learning

  3. SP-MoMamba: Superpixel-driven Mixture of State Space Experts for Efficient Image Super-Resolution

    May 25, 2026Wenbin Zou, Yawen Cui, Yi Wang +5Visual SSMsMixture-of-Experts Models