Knob: A Physics-Inspired Gating Interface for Interpretable and Controllable Neural Dynamics
Organizations: City University of Macau, Macau, China · Southwest University of Science and Technology, Mianyang, China
Abstract
Existing neural network calibration methods often treat calibration as a static, post-hoc optimization task. However, this neglects the dynamic and temporal nature of real-world inference. Moreover, existing methods do not provide an intuitive interface enabling human operators to dynamically adjust model behavior under shifting conditions. In this work, we propose Knob, a framework that connects deep learning with classical control theory by mapping neural gating dynamics to a second-order mechanical system. By establishing correspondences between physical parameters -- damping ratio () and natural frequency () -- and neural gating, we create a tunable "safety valve". The core mechanism employs a logit-level convex fusion, functioning as an input-adaptive temperature scaling. It tends to reduce model confidence particularly when model branches produce conflicting predictions. Furthermore, by imposing second-order dynamics (Knob-ODE), we enable a dual-mode inference: standard i.i.d. processing for static tasks, and state-preserving processing for continuous streams. Our framework allows operators to tune "stability" and "sensitivity" through familiar physical analogues. This paper presents an exploratory architectural interface; we focus on demonstrating the concept and validating its control-theoretic properties rather than claiming state-of-the-art calibration performance. Experiments on CIFAR-10-C validate the calibration mechanism and demonstrate that, in Continuous Mode, the gate responses are consistent with standard second-order control signatures (step settling and low-pass attenuation), paving the way for predictable human-in-the-loop tuning.
Figures & tables
| Symbol/Term | Definition and Intuition |
|---|---|
| Methodology Symbols | |
| Logit vectors from the static and dynamic branches, respectively. | |
| A sample-wise scalar gate value in that controls the convex fusion. | |
| The final logit vector after convex fusion. | |
| The effective temperature; a measure of induced smoothing ( ). | |
| Damping ratio and natural frequency; control overshoot and convergence speed. | |
| Method | Avg-C (%) | Err-C (%) | ECE deb | Latency (ms) |
|---|---|---|---|---|
| Static | 71.25 | 28.75 | 0.1553 | 3.48 |
| Attention | 70.45 | 29.55 | 0.1648 | 3.51 |
| Knob-IA | 72.52 | 27.48 | 0.1617 | 3.49 |
| ODE-Lite | 71.62 | 28.38 | 0.1488 | 3.64 |
| Knob-ODE | 71.49 | 28.51 | 0.1829 | 4.41 |
| Method | Params (M) | GFLOPs | Latency (ms) |
|---|---|---|---|
| Static | 11.70 | 0.5584 | 3.48 |
| Attention | 11.90 | 0.5586 | 3.51 |
| Knob-IA | 11.77 | 0.5585 | 3.49 |
| ODE-Lite | 11.77 | 0.5585 | 3.64 |
| Knob-ODE | 11.77 | 0.5585 | 4.41 |
Model Calibration
Model calibration aligns predicted confidence or model outputs with observed outcomes and measurements to support more reliable decisions.
See all 214 papers