arXiv:2611.04409cs.CVNov 2026

Manuscript Offprint

arXiv:2611.04409

LCM-UNet: Scale-Selective Mamba with Reparameterizable Multi-Basis Local Modeling for Lightweight Skin Lesion Segmentation

Md Shihabul Islam Shovo, Nishi Kanta Paul, Dip Kumar Saha, Kishor Morol

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Md Shihabul Islam Shovo, Nishi Kanta Paul, Dip Kumar Saha, and Kishor Morol

Abstract: Accurate lesion segmentation underpins automated dermoscopic analysis: masks enable measurements of asymmetry, border and size. Deployment in primary care or on mobile devices requires a compact network. Existing ultra-light Mamba U-Nets offer global context, but global-modeling cost depends on each Mamba block's resolution, while their local branches rely on a single square kernel. We introduce LCM-UNet, a 33,474-parameter U-shaped network that fuses every skip at its native resolution, restricts bidirectional Mamba to stages at one-sixteenth of the input resolution or coarser, and uses local convolutions at finer scales. A multi-basis reparameterizable adapter augments each local branch during training with dilated, horizontal and vertical depthwise kernels, then folds them into the host kernel before inference. Each skip connection also learns a stage-specific gain. Nine networks were retrained on the official ISIC 2017 and ISIC 2018 partitions under a harmonized protocol, with PH² reserved for external validation and ablations run on a development split. LCM-UNet achieved Dice scores of 88.62%, 89.73% and 90.46% on ISIC 2017, ISIC 2018 and PH², respectively, ranking first on both ISIC test sets and second on PH² among the compared models. In the native-resolution host, removing Mamba from the one-eighth-resolution decoder stage eliminated 63% of Mamba operations, corresponding to 5.3% of all operations, with a Dice change of -0.03 percentage points. The adapter improved Dice by 0.48 percentage points over a single host kernel without adding deployed parameters or operations. With latency so far measured only on a GPU, LCM-UNet is a candidate for resource-constrained deployment.

Index Terms: Dermoscopy, lightweight neural network, Mamba, skin lesion segmentation, state space model, structural reparameterization.

I. INTRODUCTION

MELANOMA, although accounting for a small fraction of skin cancers, is responsible for most skin cancer deaths, and outcomes depend strongly on early detection [1]. Dermoscopy improves the visual assessment of pigmented lesions, while computerized analysis of dermoscopy images has attained dermatologist-level accuracy in laboratory studies [2]. Lesion segmentation is an early step of such pipelines because an accurate lesion mask enables the measurement of asymmetry, border irregularity and size, supports lesion-specific feature extraction, and facilitates monitoring over time [3]. Reliable segmentation remains challenging because lesions vary widely in size, shape and color, their borders are often diffuse, and images contain hair, ruler marks, color markers and vignetting.

Many high-performing segmentation networks are designed for workstation GPUs. U-Net variants [4] and Transformer-based models [5], [6] reach strong accuracy with millions to tens of millions of parameters. Mamba-based U-Nets can also be large; VM-UNet [7] has about 27 million parameters. Segmentation on a smartphone connected to a dermatoscope or in an embedded imaging device must operate under far tighter memory, energy and latency budgets. These requirements have motivated a growing family of ultra-light segmentation models with at most a few hundred thousand parameters [8]–[12].

Existing ultra-light designs expose two relevant trade-offs. Purely convolutional or multilayer-perceptron models [8], [9], [13]–[15] are efficient but capture long-range context only indirectly, which matters for large lesions and low-contrast borders. Mamba-based models [10]–[12] add global context through selective state space scans with linear complexity [16]. Although hardware-aware parallel kernels avoid token-by-token execution [16], the selective-scan workload still grows linearly with sequence length, so the resolution at which each global block runs determines its cost. UltraLBM-UNet [11] keeps this cost low by applying its decoder blocks before upsampling, so its decoder Mamba layers see only 8×88 \times 8 tokens. In the native-resolution host studied here, however, the second decoder stage operates at one-eighth of the input resolution and alone accounts for 63% of all Mamba operations. Moreover, the local branches of these blocks usually rely on one square depthwise kernel per stage, providing a single spatial parameterization for encoding local structure during optimization.

These observations motivate a scale-dependent allocation of the computational budget. Our hypothesis is that global dependencies are most useful at coarse semantic scales, where each token summarizes a large image region and the sequence is short, whereas reconstruction at finer decoder scales depends mainly on local evidence around the lesion boundary, which inexpensive convolutions can model. Local modeling can be made richer during training without affecting the deployed network. Structural reparameterization [17]–[20] shows that linear parallel branches can be trained jointly and then merged analytically into a single operator.

Md Shihabul Islam Shovo and Nishi Kanta Paul contributed equally to this work. (Corresponding author: Md Shihabul Islam Shovo.)

Md Shihabul Islam Shovo and Nishi Kanta Paul are with NIMISHES Lab, Dhaka, Bangladesh (e-mail: shihabul900@gmail.com; nishikantapaul108@gmail.com).

Dip Kumar Saha is with Stamford University Bangladesh, Dhaka, Bangladesh, and also with Elite Research Lab, New York, NY, USA (e-mail: dip@stamforduniversity.edu.bd).

Kishor Morol is with Elite Research Lab, New York, NY, USA (e-mail: kishor@elitelab.ai).

Accordingly, we propose LCM-UNet, an ultra-light U-shaped network that restricts global sequence modeling to low-resolution semantic stages and learns richer local representations through training-time reparameterization, without increasing deployment complexity. LCM-UNet builds on the ultra-light global-local design of UltraLBM-UNet [11] but changes where global modeling is applied, how the local branch is parameterized during training, and how encoder features are fused into the decoder. Key contributions can be summarized as follows:

  • A scale-selective global-local architecture with independent bidirectional Mamba modules at E5, E6 and D1 only, all at a spatial resolution of 16×1616 \times 16 or smaller. Within each GLMBP block, one Mamba parameter set is shared by the two global channel groups and both scan directions, while each stage has its own parameters. The decoder stage at 32×3232 \times 32 uses a wider-kernel local block, and every skip connection receives its own learnable scalar gain. Relative to the native-resolution host backbone, this removes 63% of the Mamba operations, or 5.3% of all operations, and reduces the deployed parameter count to 33,474.
  • A multi-basis reparameterizable adapter (MBRA) that augments the existing dense host depthwise kernel in each global-local block with sparse dilated, horizontal and vertical depthwise bases during training and folds the auxiliary branches exactly into the host kernel before inference. Its 540 training-time coefficients add no deployed parameters or operations.

  • A controlled evaluation on the official ISIC 2017 and ISIC 2018 partitions, with eight baselines retrained under a harmonized protocol and external validation on PH 2^{2}, which is never used for training or model selection. A compact ablation on a development split of the ISIC 2018 training set documents the combined transition from the released UltraLBM-UNet to our native-resolution host implementation, then isolates skip scaling, the Mamba layer at D2 and each MBRA basis. A numerical check confirms exact reparameterization up to floating-point rounding.

Related work is described in Section II. In Section III, LCM-UNet is proposed, while Section IV covers the datasets, implementation details and evaluation protocol. The results and their analysis are given in Section V, and Section VI concludes.

References (41)