CASR-PAN: Adaptive Sparse Routing Network
- The paper introduces CASR-PAN, which leverages content-adaptive sparse routing to efficiently fuse multi-scale features for improved infrared gas leak detection.
- It utilizes an Importance Estimator and dynamic routing weights through spatial gating and fusion blocks to selectively transmit salient information.
- Empirical findings show CASR-PAN outperforms dense fusion methods, delivering higher AP scores and reducing GFLOPs and parameters in challenging detection tasks.
The Content-Adaptive Sparse Routing Path Aggregation Network (CASR-PAN) is a neural feature aggregation architecture designed for cross-scale feature fusion in detection networks, particularly within the context of the PEG-DRNet framework for infrared gas leak detection. CASR-PAN implements sparse, content-adaptive routing of multi-scale features, selectively propagating information across spatial locations and resolution levels based on dynamic, data-driven cues. This architecture addresses redundancies and inefficiencies in traditional dense path aggregation necks by leveraging spatial gating and explicit modulation mechanisms, yielding improvements in both accuracy and computational efficiency in challenging object detection scenarios (Li et al., 29 Dec 2025).
1. Architectural Structure and Component Design
CASR-PAN is situated between the feature extraction backbone (Physics–Edge Hybrid) and the detection decoder (RT-DETR). Its role is to fuse multi-scale feature maps, specifically , using path-specific, content-adaptive control. The core components are:
- Importance Estimator (IE): Takes a feature map and generates an importance tensor via fusion of three cues:
- Global (): Global-average pooling followed by convolutions and nonlinearity.
- Local (): Local context via convolution and further transformation.
- Diversity (): convolution, ReLU, sigmoid, and per-channel variance.
- Softmax-normalized scalar weights combine these into .
- Routing Weight Generation: A convolution transforms into four spatially-varying routing maps , assigned to four functional paths.
- Adaptive Information Modulation for Fusion (AIMM-F): Blends local () and transported () features:
where denotes addition, is broadcasted multiplication, is a bias, and is per-channel standard deviation.
- Adaptive Information Modulation for Self (AIMM-S): Enhances a feature map via self-routing:
provides an identity baseline.
- Explicit Routing Paths: Four defined flows:
- Deep () to mid () via AIMM-F and .
- Deep () to shallow () via AIMM-F and .
- Shallow () to mid () via AIMM-F and .
- Mid () self-enhancement via AIMM-S and .
The resulting routed outputs are aggregated and refined by shallow convolutional blocks before emission to the decoder.
2. Routing Formulation and Sparsity Mechanisms
The content-adaptive routing in CASR-PAN is implemented as a spatially varying convex blend at each location :
where and are local and transported feature vectors, respectively, and is the routing weight. is generated by applying a sigmoid nonlinearity to the output of a convolution over the fused importance .
Sparsity arises implicitly: The sigmoid activation, together with the bias , encourages low routing weights for uninformative regions. No explicit regularization or hard thresholding is used; paths are “sparse” in the practical sense that many approach zero, effectively suppressing cross-scale propagation at these points.
A plausible implication is that this spatial sparsity focuses computation and transmission on salient structures, such as gas plume boundaries, rather than uniformly across the field of view.
3. Network Dataflow and Functional Workflow
The canonical forward pass through CASR-PAN can be summarized as follows:
- Importance Estimation: For each input scale , compute global (), local (), and diversity () cues, combine with learned weights to form .
- Routing Map Generation: Typically, 's importance is used to generate all four routing weights through a conv and sigmoid.
- Routing and Fusion:
- : AIMM-F with
- : AIMM-F with
- : AIMM-F with
- self: AIMM-S with
- Aggregation and Output: Routed outputs targeting the same scale are summed, passed through a light RepC3 block, and forwarded along with unmodified to the detection decoder.
This workflow fuses features in a way that is both content- and location-adaptive, differing from traditional fixed or shared-weight aggregation strategies. Pseudocode for the full forward pass is supplied verbatim in the original source (Li et al., 29 Dec 2025).
4. Computational Complexity and Efficiency Gains
CASR-PAN reduces the redundancy and parameter overhead typical of dense path aggregation networks such as BiFPN. Empirical analysis on the IIG dataset (input size ) yields the following:
| Variant | AP | AP | GFLOPs | Parameters |
|---|---|---|---|---|
| RT-DETR-R18 | 26.8 | 77.8 | 56.9 | 19.87 M |
| PEG-DRNet (CASR) | 29.8 | 84.3 | 43.7 | 14.93 M |
CASR-PAN adds approximately $45.8$ GFLOPs and $16.94$ M parameters, which is substantially less than BiFPN (which requires $64.3$ GFLOPs and $20.3$ M parameters). Thus, CASR-PAN saves about $13$ GFLOPs and $5$ M parameters while increasing AP by roughly $6.5$ points over a dense neck. This reflects both reduced computational cost and redundant fusion avoidance (Li et al., 29 Dec 2025).
5. Ablation Studies and Empirical Findings
CASR-PAN yields substantial improvements in detection metrics and cross-scale discriminability:
- The introduction of full CASR-PAN on a ResNet18 backbone increases AP from to and AP from $77.8$ to $79.1$.
- In combination with the Physics–Edge Hybrid Backbone (PEG-DRNet), CASR-PAN achieves AP, AP, and small-object AP, all at $43.7$ GFLOPs and $14.9$ M parameters.
- Path ablations: Removing any of the defined routing flows results in a $1$–$2$ point reduction in AP.
- When tested against PANet, BiFPN, and NAS-FPN under identical backbones, CASR-PAN achieves –$4.4$ point AP gains with $20$– fewer FLOPs.
- Small-object AP improves by $3$–$5$ points, and AP rises from about (dense fusion) to with CASR-PAN, indicative of improved fine localization (Li et al., 29 Dec 2025).
These findings highlight the benefit of content-selective, sparse multi-scale feature propagation in detection tasks with diffuse, weakly-bounded targets.
6. Context, Significance, and Related Methods
CASR-PAN is positioned within a landscape of cross-scale fusion methods, such as BiFPN and PANet. Unlike these dense architectures, CASR-PAN individually weighs and gates the propagation of multi-scale features, based on spatial content and edge cues. This suggests that content-adaptive sparse routing is advantageous in domains where informative features are spatially concentrated or weakly localized—such as in infrared gas-leak detection, where targets are often small and have indistinct boundaries.
The use of learned importance cues and route-specific gating advances over static or uniformly-applied fusion, allowing the system to prioritize salient features and minimize unnecessary computation. A plausible implication is that such adaptive strategies may generalize to other visual reasoning tasks requiring high sensitivity to fine local structures while maintaining efficiency.
7. Limitations and Prospective Extensions
The concept of “sparse routing” in CASR-PAN refers to implicit suppression of uninformative regions via sigmoid-based gating and additive bias. No explicit regularization or hard sparsity constraints are applied in the published configuration, though such techniques could be explored for further efficiency. The architecture is tightly integrated with edge and physics-based modules in PEG-DRNet, and its performance improvements are demonstrated specifically for infrared gas-plume detection.
A plausible extension would be to investigate explicit regularization for increased sparsity, or to generalize the routing mechanism for broader multi-task feature fusion. The effectiveness of CASR-PAN is empirically established against established path aggregation mechanisms, suggesting its potential as a general-purpose, efficient cross-scale routing module in detection architectures (Li et al., 29 Dec 2025).