HER-Seg: Holistically Efficient Segmentation for High-Resolution Medical Images

Qing Xu, Zhenye Lou, Chenxin Li, Yue Li, Xiangjian He +4 more
4/8/2025
eess.IVcs.CV

Official code: xq141839/HER-Seg (39 stars, Apache-2.0, last commit 2025-10-12).

Abstract

High-resolution segmentation is critical for precise disease diagnosis by extracting fine-grained morphological details. Existing hierarchical encoder-decoder frameworks have demonstrated remarkable adaptability across diverse medical segmentation tasks. While beneficial, they usually require the huge computation and memory cost when handling large-size segmentation, which limits their applications in foundation model building and real-world clinical scenarios. To address this limitation, we propose a holistically efficient framework for high-resolution medical image segmentation, called HER-Seg. Specifically, we first devise a computation-efficient image encoder (CE-Encoder) to model long-range dependencies with linear complexity while maintaining sufficient representations. In particular, we introduce the dual-gated linear attention (DLA) mechanism to perform cascaded token filtering, selectively retaining important tokens while ignoring irrelevant ones to enhance attention computation efficiency. Then, we introduce a memory-efficient mask decoder (ME-Decoder) to eliminate the demand for the hierarchical structure by leveraging cross-scale segmentation decoding. Extensive experiments reveal that HER-Seg outperforms state-of-the-arts in high-resolution medical 2D, 3D and video segmentation tasks. In particular, our HER-Seg requires only 0.59GB training GPU memory and 9.39G inference FLOPs per 1024$\times$1024 image, demonstrating superior memory and computation efficiency. The code is available at https://github.com/xq141839/HER-Seg.

View on arXivView PDF

Code Implementations(1)

xq141839/HER-SegOfficial100%
Apache-2.0

[arXiv'25] HER-Seg: Holistically Efficient Segmentation for High-Resolution Medical Images

394PythonApr 8, 20251 years agoApache-2.0

Similar Papers

Cite this paper

@article{xu2025herseg,
  title  = {HER-Seg: Holistically Efficient Segmentation for High-Resolution Medical Images},
  author = {Qing Xu and Zhenye Lou and Chenxin Li and Yue Li and Xiangjian He and Tesema Fiseha Berhanu and Rong Qu and Wenting Duan and Zhen Chen},
  year   = {2025},
  eprint = {2504.06205},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2504.06205v2}
}

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/2504.06205.svg)](https://codeofpaper.com/paper/2504.06205)

Discussion