Manuscript Offprint

arXiv:2610.02907

Do ResNets Route? Sparse Interaction Experts in Residual Networks

Liang Yan, Siying Chen, Kaijie Chen, Bo Li, Jinghao Zhang, Mu Miao

ABSTRACT

Residual networks execute every block for every input, yet their functional contributions need not be input independent. We formulate a trained ResNet as a set function over binary residual-branch masks and apply Möbius inversion to decompose its output exactly into individual residual corrections and higher-order interactions. For smooth residual stacks, we show that each fixed k-way interaction scales as O(λk)\mathcal{O}(\lambda^{k}) under residual scaling. Exhaustive analysis of ImageNet-pretrained ResNet-18 and ResNet-34 reveals that interaction mass peaks at orders five and ten, respectively, rather than at low orders. Reducing the residual scale shifts both spectra toward lower orders, but also changes model predictions. The interaction coefficients are concentrated in magnitude but not hard sparse, and prediction-preserving sparsity weakens with depth. Crucially, the dominant interactions vary across inputs and predicted classes around a shared global core, while their overall complexity changes little with sample difficulty. These results show that dense ResNets implement an implicit form of soft routing: every block is executed, but different inputs rely on different residual interaction experts. Routing can therefore emerge at the level of functional contribution without an explicit router or sparse execution.

1 INTRODUCTION

Standard ResNets execute every residual block for every input and contain no explicit router, yet we show that their functional contributions exhibit implicit input-dependent routing. Residual networks enable the reliable optimization of deep models through identity shortcuts and residual updates (He et al., 2016a). The influential path-ensemble view of Veit et al. (2016) interprets each block as offering a shortcut and a residual branch, yielding exponentially many structural paths of different lengths. This perspective helps explain network redundancy, robustness to block removal, and training methods such as stochastic depth (Huang et al., 2016).

The path-ensemble view is structural rather than functional. A masked-network response is the cumulative output of a surviving nonlinear subnetwork, not the additive contribution of an isolated path. Path counting therefore does not reveal how residual branches individually or jointly support a prediction, or whether their dominant contributions vary across inputs. These questions connect ResNets to conditional computation. Dynamic residual models explicitly gate blocks (Wang et al., 2018; Wu et al., 2018), while sparse Mixture-of-Experts models activate selected experts for each input (Shazeer et al., 2017; Lepikhin et al., 2020; Fedus et al., 2022). Any routing in a standard ResNet must instead arise at the level of functional contribution. We therefore ask: Do standard ResNets exhibit implicit functional routing over residual interactions, despite having no explicit router? We characterize such routing by contribution concentration and systematic input dependence of the dominant interactions.

To answer this question, we treat a trained ResNet as an input-conditioned set function over binary residual-branch masks. Boolean Möbius inversion yields a unique, exact decomposition into a shortcut-only baseline, individual residual corrections, and higher-order interactions (Rota, 1964; Grabisch et al., 2000; Kang et al., 2024). We call high-contribution terms implicit residual experts. Ranking these experts defines an input-dependent mapping from x to a dominant interaction set

*Corresponding author: yanliangfdu@gmail.com

AK(x)\mathcal{A}_K(x), which acts as an implicit functional router. The gates are analytical interventions, so ordinary execution remains dense. Figure 1 schematically summarizes this framework: the network remains densely executed, while Möbius inversion reveals an input-dependent distribution of functional contributions over residual interaction experts. For an idealized smooth residual stack, we further show that each fixed k-way interaction coefficient is O(λk)\mathcal{O}(\lambda^k) as the residual scale λ→0\lambda \to 0, predicting higher-order attenuation in the small-residual regime.

We exhaustively analyze ImageNet-pretrained ResNet-18 and ResNet-34, whose eight and sixteen residual blocks induce 255 and 65,535 non-constant interaction terms. Möbius inversion reconstructs the full logits to numerical precision, whereas naive aggregation of masked responses fails. At the natural operating point, the squared-coefficient spectra peak at orders five and ten, showing that short structural paths do not imply low-order functional interactions. Residual scaling shifts both spectra toward lower orders but also substantially changes predictions.

Our central finding is that dense execution does not imply a fixed functional pathway. In both models, each input induces a different allocation of contribution over a shared dictionary of residual interactions. Dominant experts vary systematically across inputs, predicted-class signatures are strongly class-structured, and full-logit signatures retain a shared global core. This establishes implicit functional routing: ResNets reuse common interaction experts while changing which ones dominate each prediction. The routing is soft rather than hard because smaller interactions remain decision relevant, especially in ResNet-34, while expert complexity changes little with input difficulty. Standard ResNets therefore route functional responsibility across inputs despite executing every residual block.

Our contributions are: (1) an input-conditioned residual-mask framework that provides a unique and exact decomposition into individual corrections and higher-order interactions; (2) a coefficient-wise O(λk)\mathcal{O}(\lambda^{k}) connection between residual scale and interaction strength; and (3) empirical evidence that pretrained ResNets exhibit class-structured, readout-dependent implicit routing, organized around a shared global core and input-specific expert emphasis. Together, these results show that routing can emerge at the level of functional contribution without an explicit router or sparse execution.

References (25)