Retracing Hodgkin and Huxley: State Recovery Does Not Certify Mechanism
Organizations: School of Mathematical Sciences, Beijing Normal University
Abstract
Predicting observed dynamics does not establish recovery of the underlying physical mechanism. Can machine learning retrace the hidden-state reasoning behind the Hodgkin-Huxley (HH) model? We train structured latent models on simulated current and voltage, withholding gate identities and trajectories from training and model selection. We then test response prediction, state recovery, protocol transfer, and agreement with HH dynamics. Prediction error and its cross-seed spread both drop sharply at three latent dimensions under the tested protocols, while gate recovery under new protocols improves through five to six coordinates. State recovery depends on which observations the chart uses. Observed voltage improves current-clamp decoding relative to freely predicted voltage. Under voltage clamp, adding latent state to command voltage raises m-state from 0.976 to above 0.99, yet the transported field disagrees with HH on identical smooth samples. Known invertible HH coordinates achieve high fast-m field agreement under the same audit procedure. An exact HH identity decomposes the discrepancy into time-scale-weighted state error and a residual in the transported field; these terms can cancel or reinforce. These findings concern the tested models and charts. They support evaluating state and dynamics recovery separately, including chart inputs and transported-field agreement across interventions.
Figures & tables
| Method | Diagnostic role | NRMSE | OOD gate |
|---|---|---|---|
| Structured ( ) | Three-dimensional latent model | ||
| Structured ( ) | Additional latent capacity | ||
| S4D ( ) | Sequence representation | ||
| GRU ( ) | Recurrent representation | ||
| Latent ODE ( ) | Continuous latent dynamics, command input |
Appendix figures & tables16 assets
Supplementary material from the paper’s appendix.
Appendix
| Protocol family | Response RMSE | Gate RMSE |
|---|---|---|
| Current step | mV | |
| Current chirp | mV | |
| Current PRBS | mV | |
| Voltage step | A cm -2 | |
| Voltage prepulse | A cm -2 | |
| Active 34 | A cm -2 |
| Family | Mode | Command | Sampled parameters (duration) |
| In-distribution | |||
| Current step | CC | Step from rest | amplitude – ; onset – ; offset – ( ms) |
| Current chirp | CC | Linear frequency sweep | amplitude – ; offset – ; – to – Hz ( ms) |
| Current PRBS | CC | Two-level piecewise-random | block – ; levels and ( ms) |
| Voltage step | VC | Step with tail | holding – ; step – ; tail – ( ms) |
| Voltage prepulse | VC | Prepulse–test–tail | holding – ; prepulse – ; test – ( ms) |
| Response NRMSE | spike | OOD gate | PCA95 | |||
|---|---|---|---|---|---|---|
| mean | CC | VC | exact | |||
| 1 | – | – | ||||
| 2 | – | – | ||||
| 3 | 5/5 | |||||
| 4 | 5/5 | |||||
| 5 | 4/5 | |||||
| Model | state | field | field | field | slope |
|---|---|---|---|---|---|
| Structured ( ) | |||||
| S4D ( ) | |||||
| GRU ( ) | |||||
| Latent ODE ( ) | |||||
| Unseen protocol families, chart transferred from in-distribution validation | |||||
| Structured ( ) | |||||
| Model | increment | increment | increment | slope |
|---|---|---|---|---|
| Structured ( ) | ||||
| S4D ( ) | ||||
| GRU ( ) | ||||
| Latent ODE ( ) | ||||
| Persistence (all models) | to | to | to | – |
| Checkpoint | ||||
|---|---|---|---|---|
| , seed 51 | / | / | / | / |
| , seed 54 | / | / | / | / |
| , seed 52 | / | / | / | / |
| , seed 55 | / | / | / | / |
| Gate | |||
|---|---|---|---|
| State | 0.9955 | 0.9965 | 0.9926 |
| Field relative RMSE | 0.322 | 0.713 | 0.373 |
| quartile | Q1 | Q2 | Q3 | Q4 |
|---|---|---|---|---|
| Range (ms) | – | – | – | – |
| State | ||||
| Field relative RMSE | ||||
| Field correlation | ||||
| Field slope |
| (ms) | NRMSE | state | -field | ||
|---|---|---|---|---|---|
| 5 | 0.02 | 0.429 | 0.768 | 14.44 | 0.030 |
| 5 | 0.01 | 0.389 | 0.882 | 13.32 | 0.046 |
| 6 | 0.02 | 0.418 | 0.874 | 10.16 | 0.054 |
| 6 | 0.01 | 0.326 | 0.939 | 8.98 | 0.094 |
| field | field median | ||||
|---|---|---|---|---|---|
| 3 | .273 | ||||
| 5 | .311 | ||||
| 6 | .218 |
| Chart | -state | -field | |
|---|---|---|---|
| Linear, | 5 | ||
| Cubic, | 5 | ||
| Linear, | 5 | ||
| Cubic, | 5 | ||
| Known affine HH | 3 | ||
| Known nonlinear HH | 3 |
| Model, split | field | field | field | |
|---|---|---|---|---|
| Structured, ID test | ||||
| Latent ODE, ID test | ||||
| Structured, unseen | ||||
| Latent ODE, unseen |
| Test NRMSE | OOD | |
|---|---|---|
| 1 | 0.529 | 0.808/0.555/0.663 |
| 2 | 0.469 | 0.843/0.670/0.808 |
| 3 | 0.385 | 0.916/0.696/0.811 |
| 4 | 0.445 | 0.711/0.678/0.457 |
| 5 | 0.424 | 0.779/0.778/0.650 |
| NRMSE | scale | -field | |||||
|---|---|---|---|---|---|---|---|
| 2 | 1 | 0.3411 | 0.927 | 0.901 | 0.899 | 0.175 | |
| 2 | 2 | 0.3416 | 0.929 | 0.904 | 0.918 | 0.238 | |
| 5 | 1 | 0.3287 | 0.933 | 0.863 | 0.866 | 0.091 | |
| 5 | 2 | 0.3307 | 0.909 | 0.847 | 0.846 | 0.103 |
| Design choice | Control | Observation |
|---|---|---|
| Optimization budget | Independent starts, longer and stabilized dynamics-aware chart training | The empirical state–field trade-off persists across the tested settings. |
| Chart capacity | Four-layer, 256-unit, 20,000-step chart | Repeated resampling leaves the empirical state–field trade-off intact. |
| Chart complexity | Linear through cubic charts and grouped-CV regularization | On the same support a linear chart lowers both state and field agreement (Table 12 ), so the gap is not unique to the cubic chart. |
| Voltage chain rule | Voltage-conditioned and clamp-specific charts with the full term | Accounts for part of the early discrepancy but not the voltage-clamp fast- field error. |
| Transient emphasis | Jump-stratified sampling and event-loss weights | Moves the selected state–field operating point without removing the fast- transported-field gap. |
| History, horizon, and excitation | Longer histories, direct multihorizon rollout, and active voltage protocols | Improves prediction and audit support; the transported-field gap remains under the tested audit. |
| Claim | Experiment families | Independent units | Paper location |
|---|---|---|---|
| Prediction error and seed spread drop sharply at | Latent-dimension scan, – | Five training seeds, – | Figure 3 ; Table 4 |
| Three-dimensional covariance core in 13 of 15 overcomplete models | Latent covariance and geometry audits | – , five seeds per | Figure 3 ; Appendix A.4 |
| Protocol alignment improves through – | Locked in-distribution-to-OOD chart transfer | Five seeds per – , grouped-CV repeats | Figure 3 ; Table 4 |
| State recovery does not certify the generator | Gate-state and transported-field audits | Gate-wise, cross-seed, analytic and numerical controls | Figures and 5 |
| Redundancy changes reliability, not correctness | Branch-count and transient-loss factorial | Five training seeds and two chart starts | Table 15 ; Figure 6 |
| Gate information transfers across tested architectures | Baseline architecture comparisons | Three seeds per baseline family | Table 1 ; Figure 4 |