Online Learning for Multi-Layer Hierarchical Inference under Partial and Policy-Dependent Feedback
Organizations: Department of Electrical and Computer Engineering, The University of Texas at Austin · DEVCOM Army Research Laboratory
Abstract
Hierarchical inference systems route tasks across multiple computational layers, where each node may either finalize a prediction locally or offload the task to a node in the next layer for further processing. Learning optimal routing policies in such systems is challenging: inference loss is defined recursively across layers, while feedback on prediction error is revealed only at a terminal oracle layer. This induces a partial, policy-dependent feedback structure in which observability probabilities decay with depth, causing importance-weighted estimators to suffer from amplified variance. We study online routing for multi-layer hierarchical inference under long-term resource constraints and terminal-only feedback. We formalize the recursive loss structure and show that naive importance-weighted contextual bandit methods become unstable as feedback probability decays along the hierarchy. To address this, we develop a variance-reduced EXP4-based algorithm integrated with Lyapunov optimization, yielding unbiased loss estimation and stable learning under sparse and policy-dependent feedback. We provide regret guarantees relative to the best fixed routing policy in hindsight and establish near-optimality under stochastic arrivals and resource constraints. Experiments on large-scale multi-task workloads demonstrate improved stability and performance compared to standard importance-weighted approaches.
Figures & tables
| Methods | 3-layer (4-2-1) | 4-layer (8-4-2-1) | 5-layer (16-8-4-2-1) | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Feedback Rate | Hit Rate ( ) | Error Rate ( ) | Feedback Rate | Hit Rate ( ) | Error Rate ( ) | Feedback Rate | Hit Rate ( ) | Error Rate ( ) | |
| Random | 0.0146 | 0.0 | 0.4805 0.012 | 0.0017 | 0.0 | 0.4793 0.008 | 0.0002 | 0.0 | 0.4705 0.011 |
| Round-Robin | 0.0146 | 0.0 | 0.4627 0.014 | 0.0019 | 0.0 | 0.4603 0.002 | 0.0002 | 0.0 | 0.4693 0.004 |
| Pure Local | 0.0 | 0.0 | 0.4820 0.013 | 0.0 | 0.0 | 0.4803 0.001 | 0.0 | 0.0 | 0.4680 0.010 |
| Ly-EXP4 | 0.2038 | 0.407 | 0.3433 0.012 | 0.1720 | 0.399 | 0.3313 0.003 | 0.1691 | 0.3949 | 0.3222 0.005 |
| VR-Ly-EXP4-LocalLoss | 0.2226 | 0.432 | 0.3207 0.006 | 0.2180 | 0.423 | 0.3117 0.007 | 0.2212 | 0.4346 | 0.3103 0.001 |
Appendix figures & tables6 assets
Supplementary material from the paper’s appendix.
Appendix
| Configuration | Hierarchy Settings | ||
|---|---|---|---|
| 3-layer (4-2-1) | 4-layer (8-4-2-1) | 5-layer (16-8-4-2-1) | |
| Memory Budget | (30, 100, –) | (30, 80, 200, –) | (30, 80, 150, 200, –) |
| Resource Constraint | (–, 0.4, 0.4) | (–, 0.4, 0.4, 0.4) | (–, 0.4, 0.4, 0.4, 0.4) |
| Model Placement | Error Rate ( ) | ||
|---|---|---|---|
| Random Routing | Ly-EXP4 | VR-Ly-EXP4 | |
| Random-fixed | 0.4332 | 0.3717 | 0.3335 |
| Layer-diverse | 0.4455 | 0.3928 | 0.3477 |
| Greedy (Algorithm 2 ) | 0.4805 | 0.3433 | 0.3172 |
| Symbol | Definition |
|---|---|
| System and Network Model | |
| Set of computing nodes. | |
| Number of non-empty hierarchical layers. | |
| Set of nodes in layer . | |
| Time slot index and the duration of each time slot , respectively. | |
| Set of jobs received in time slot . | |
Adaptive Model Routing
Adaptive model routing selects models or specialized experts per input to balance prediction quality, computational cost, latency, and resource constraints.
See all 91 papers