Manuscript Offprint

arXiv:2610.05865

Weave Mamba Fusion: Global Cross-Scale Interaction for Lightweight Face Detection

Dohun Kim, Jinmyung Jung

Dohun Kim 1^{1} ID^{ID}, Jinmyung Jung †^{†} ID^{ID}

School of Data Science, The University of Suwon, Korea

dohun0714@naver.com, jmjung@suwon.ac.kr

†^{\dagger}Corresponding Author

Abstract. Feature pyramid methods, from FPN to BiFPN, have achieved strong performance in face detection by fusing multi-scale features. However, detecting faces under unconstrained conditions, such as small scale, occlusion, and extreme pose, remains difficult, as it requires global cross-scale dependencies that local fusion cannot model. State space models such as Mamba provide global context with linear complexity by scanning features as a sequence, and therefore offer a promising direction for this problem. Nevertheless, such a scan needs the two pyramid scales combined into a single feature map, and the way they are combined determines whether cross-scale structure is preserved. Summation collapses the two scales before the scan, so the scan has no cross-scale structure to exploit, while concatenation keeps both scales but at far higher cost. To address this, we propose Weave Mamba Fusion (WMF), which interleaves two adjacent pyramid scales column by column so that each step of a horizontal bidirectional SS2D scan moves from one scale to the other. With partial-channel processing and parameter-free de-weaving, WMF enables efficient cross-scale interaction while preserving feature structure. Integrating WMF into every fusion node yields WeaveBiFPN, the neck of our WeaveFace detector. On WIDER FACE, WeaveFace achieves 91.41% mean AP with only 0.34M parameters and 1.16 GFLOPs, outperforming prior detectors under 0.5M parameters. Its largest gains are on the Hard subset, where it reaches 87.14% AP. The code is publicly available at https://github.com/dohun-mat/WeaveMambaFusion.

Keywords: Feature Pyramid Networks, State Space Models, Face Detection, Weave Mamba Fusion.

1 Introduction

Face detection enables a wide range of applications such as face recognition, biometric authentication, and human–computer interaction. Despite substantial progress driven by deep convolutional networks, detection in unconstrained, real-world environments remains an open problem. Challenges such as extreme scale variation, severe occlusion, pose variation, and blur are most pronounced on the Hard subset of the WIDER FACE benchmark [31].

D. Kim et al.

Original Image

(a) FPN

(b) PANet

(c) BiFPN

(d) Ours

Figure

Fig. 1: Feature map visualization of different feature pyramid networks. Given the input image, we visualize the fused features from (a) FPN, (b) PANet, (c) BiFPN, and (d) our WeaveBiFPN. Our WeaveBiFPN separates faces from the background more clearly than the others.

Reliable detection under such conditions requires combining the fine-grained spatial information of high-resolution features with the rich semantics of low-resolution ones, making multi-scale feature fusion an essential ingredient of modern detectors. FPN [15], PANet [16], and BiFPN [21] have progressively refined how information flows across pyramid levels—adding bottom-up paths and learnable fusion weights atop FPN's original top-down design (Fig. 2(a)–(c)). Yet even with learnable weights, their cross-scale fusion provides only local interaction—summation or concatenation [2] followed by local convolutions—and cannot reach distant context.

As shown in Fig. 1, the fused features therefore lack global context, a limitation most evident for small and occluded faces. Such faces provide little information on their own, so detecting them relies on surrounding semantic context. This context lies in the low-resolution pyramid level, but at positions away from the face, not at the face's own location. A local fusion can only combine features at nearby positions and thus cannot reach this distant context. Detecting these faces therefore calls for global, cross-scale interaction in which each position can integrate distant context from the other scale.

Overcoming this limitation requires a fusion module that (i) retains the spatial information from both scales, (ii) enables long-range, cross-scale interaction rather than the spatially local interaction inherent to convolution, and (iii) remains efficient enough to operate at every node of a high-resolution pyramid. Self-attention [23] provides all-pairs interaction—one way to achieve (ii)—but its quadratic complexity becomes prohibitively expensive at the high resolutions where pyramid fusion operates. State space models (SSMs) such as Mamba [7], by contrast, offer global context at linear complexity. An SSM alone, however, is not enough. Once the two scales are collapsed by summation, the scan has no cross-scale structure to exploit. The key insight is that, because a scan is sequential, weaving the two scales lets a single scan carry information from one scale into the other at every step.

Motivated by this, we propose Weave Mamba Fusion (WMF), a fusion operator that achieves global cross-scale interaction at linear cost. WMF weaves the two feature maps column by column into a single 2D map and processes it with a bidirectional horizontal scan built on SS2D [18,36]. Because adjacent columns belong to different scales, every step of the scan propagates informa-

Figure

(a) FPN

(b) PANet

(c) BiFPN

(d) Ours

Top - Down path

Down - Top path

Learnable scalar weight

→ Residual connection

Fig. 2: Comparison of feature pyramid architectures. (a) FPN. (b) PANet. (c) BiFPN. (d) Our WeaveBiFPN. The dashed boxes enlarge the feature fusion in each design. Our WeaveBiFPN keeps the bidirectional structure of BiFPN but replaces its weighted fusion with Weave Mamba Fusion.

tion from one scale to the other, giving each location access to the full spatial extent of the other scale rather than a local neighborhood. To keep this efficient, we further adopt a partial-channel design inspired by partial convolution (PConv) [4], applying SS2D to only a fraction of the channels and leaving the rest as an identity branch, which substantially reduces the cost of the scan with negligible loss in fusion quality. Applying WMF at every cross-scale node of both BiFPN pathways yields WeaveBiFPN, the neck of our WeaveFace detector, which attains state-of-the-art accuracy among lightweight face detectors, with its largest gain on the Hard subset where long-range cross-scale context matters most.

The main contributions of this paper are summarized as follows:

– We propose Weave Mamba Fusion (WMF), an SSM-based redesign of the multi-scale fusion operator for face detection. Rather than summation or concatenation followed by local convolutions, WMF weaves two feature maps into a single 2D map and processes it with a bidirectional scan, achieving global cross-scale interaction within a single operator.

– We introduce a partial-channel design that applies the scan to only a fraction of the channels, substantially reducing WMF’s dominant cost while preserving cross-scale fusion.

– We propose WeaveBiFPN and the resulting WeaveFace detector. On WIDER FACE, WeaveFace attains 87.14% Hard AP and 91.41% mean AP with only 0.34M parameters and 1.16 GFLOPs, making it the most accurate detector with fewer than 0.5M parameters.

References (36)