potentialpaper

Diff-Kalman: Difference-Driven Learning for Structure-Preserving Kalman Filtering

Jia Gao, Xianglei Xing, yang qing, Tianshuo Zhang, Wenzhe Zhai

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We propose Diff-Kalman, a neural Kalman-style filtering framework that learns state-increment corrections and adaptively scales covariance and the Kalman gain while preserving positive-semidefinite covariance structure.

Abstract. State estimation is a critical challenge in modeling dynamic systems. Classical Kalman filters can struggle with nonlinear dynamics, model mismatch, and inaccurate noise statistics. Although learning-aided methods improve adaptability, many focus on the update step or learn high-dimensional filtering quantities, complicating optimization and leaving prediction modeling underexplored. To address this, we propose Diff-Kalman, which leverages state differences to predict state increments and scaling matrices for correcting both the prediction and update phases of the Kalman filter. Diff-Kalman combines traditional dynamic models with neural networks to adaptively correct system behavior. In the prediction phase, Diff-Kalman utilizes a Transformer-based architecture with self-attention to extract localized patterns from historical states, followed by cross-attention to predict future state increments. These increments are then fused with increments predicted by the dynamic model, while a GRU-based Scaling Predictor (GSP) dynamically adjusts the prior covariance. In the update phase, another GSP dynamically adjusts the Kalman gain, improving estimation accuracy and robustness. Experimental results on linear MOT trajectories and nonlinear Lorenz dynamics show that Diff-Kalman improves estimation accuracy compared with representative baselines. The code is publicly available at https://github.com/heu-gj/Diff-Kalman.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
3 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)forumreviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:48 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

The paper addresses a relevant problem and proposes a practical, structure-preserving mechanism for incorporating learned corrections in a Kalman filter.

A substantial concern with this paper is somewhat limited/incremental novelty:

  • The paper mainly parameterizes differentiable Kalman filtering as mean and covariance updates with constrained neural corrections; it still propagates a simple belief summarized by a mean and variance; the covariance correction is restricted to diagonal scaling of the model-propagated covariance, rather than an arbitrary learned covariance correction; the representational consequences of this restriction are not analyzed.
  • The paper’s high-level rationale is already established in differentiable filtering and differentiable particle filters. E.g. differentiable particle filters allow training of prior updates. The contribution seems limited in scope to the particular parameterisation of mean, covariance, and gain corrections within a standard Kalman framework.

Given this it becomes important that the paper gives deep mechanistic insights, highlighting what special properties the specific filter with mean and (partial) covariance correction gives. Main advantages of this particular formulation, compared to alternatives, including formulations typical in differentiable filtering (including PFs).

It is also not clearly specified whether training and test data use independent trajectories and initial conditions with different Lorenz parameters. This seems important, since transformers might otherwise easily overfit to the correct trajectories.

Reviewers also indicated methodological objections related to the use of a rank-one covariance for training (perhaps averaging over minibatches resolves this?) and scaling of the optimal KG )which seems to make it suboptimal under the linear-Gaussian model), which need justifications.

Final justification

The authors did a good job engaging in the discussion with the reviewers, and I recommend acceptance.

Area Chair BQBJ · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

The paper addresses a relevant problem and proposes a practical, structure-preserving mechanism for incorporating learned corrections in a Kalman filter.

A substantial concern with this paper is somewhat limited/incremental novelty:

  • The paper mainly parameterizes differentiable Kalman filtering as mean and covariance updates with constrained neural corrections; it still propagates a simple belief summarized by a mean and variance; the covariance correction is restricted to diagonal scaling of the model-propagated covariance, rather than an arbitrary learned covariance correction; the representational consequences of this restriction are not analyzed.
  • The paper’s high-level rationale is already established in differentiable filtering and differentiable particle filters. E.g. differentiable particle filters allow training of prior updates. The contribution seems limited in scope to the particular parameterisation of mean, covariance, and gain corrections within a standard Kalman framework.

Given this it becomes important that the paper gives deep mechanistic insights, highlighting what special properties the specific filter with mean and (partial) covariance correction gives. Main advantages of this particular formulation, compared to alternatives, including formulations typical in differentiable filtering (including PFs).

It is also not clearly specified whether training and test data use independent trajectories and initial conditions with different Lorenz parameters. This seems important, since transformers might otherwise easily overfit to the correct trajectories.

Reviewers also indicated methodological objections related to the use of a rank-one covariance for training (perhaps averaging over minibatches resolves this?) and scaling of the optimal KG )which seems to make it suboptimal under the linear-Gaussian model), which need justifications.

Final justification

The authors did a good job engaging in the discussion with the reviewers, and I recommend acceptance.

1 comment
Authors · CommentOpenReview ↗

Response to Paper-Level Concerns

We thank the AC and reviewers for the discussion. We have addressed these points across the reviewer-specific rebuttal threads. To make the paper-level clarifications easier to locate, we consolidate the key points here: novelty relative to differentiable filtering, the effect of the Sp covariance parameterization, and Lorenz generalization beyond the original shared-trajectory protocol.

Novelty and Differentiable Filtering

We agree that learning components inside a differentiable filter is related to differentiable filtering and differentiable particle filters. Diff-Kalman differs in mechanism and scope: it does not represent the belief with particles or learn an unconstrained transition/proposal model. Instead, it preserves the Kalman mean-covariance recursion and learns structured correction terms inside this recursion.

Concretely, Diff-Kalman uses a Transformer to learn state-increment corrections from historical states and first-order differences, and uses GSP modules to produce structured covariance/gain scaling while preserving the recursive update and PSD covariance form. Thus, the contribution is a structure-preserving correction framework, rather than novelty from any individual neural module.

Effect of Sp Structure

We clarify the representational effect of diagonal covariance scaling. With $P−=SPPbaseSP⊤+Q, SP=DP^- = S_P P_{\mathrm{base}} S_P^\top + Q,\ S_P=D$, the diagonal map rescales every existing cross-covariance as $Pij−=didjPbase,ijP^-_{ij}=d_i d_j P_{\mathrm{base},ij}$. Thus, it is not limited to changing variances, but it cannot mix state dimensions or create new correlation patterns beyond those already present in PbaseP_{\mathrm{base}}.

We varied only the structure of SPS_P while keeping the state-increment network, fusion/gain modules, loss, data splits, and training protocol fixed. We tested Diagonal, Block, Low-rank with rank 1, and Full structures over seeds {10,20,30,40,50}\{10,20,30,40,50\}. MOT17 uses T=50T=50, dim=32dim=32, history length 3; Lorenz uses T=3000T=3000, dim=64dim=64, history length 32; NCLT uses dim=32dim=32, history length 4.

The results show a task-dependent pattern. On MOT17, denser SPS_P structures give no meaningful posterior gain: Full reduces posterior MSE over Diagonal by only 0.07 dB, from 14.85 to 14.78. On Lorenz, Block gives the best prior/posterior MSE, -11.33 / -11.93 dB, improving over Diagonal, -10.94 / -11.56 dB. On NCLT, Full gives the best prior/posterior RMSE, 7.08 / 7.07 m, improving over Diagonal, 8.22 / 8.21 m. Overall, diagonal scaling is an effective inductive bias when the propagated covariance is informative, while richer SPS_P structures can help in more coupled settings.

Lorenz Generalization

The original Lorenz data follow the decimated-Lorenz protocol of KalmanNet: train/validation/test samples share one latent trajectory and initial condition, differing only in independently sampled observation noise. We agree this protocol leaves open the question of generalization to unseen trajectories.

We generated new evaluation sets with ρ∈{26,28,30}\rho\in\{26,28,30\}. For each setting, we sampled 100 random initial conditions and generated 100 independent Lorenz trajectories using RK4 with internal step size 10−510^{-5}, sampled every 0.02 for sequences of length 3000, and added independent Gaussian observation noise. We evaluated five frozen Diff-Kalman models and the corresponding frozen KNet, SKNet, and CKNet baselines, all trained on the original shared-trajectory ρ=28\rho=28 dataset for 300 epochs with seeds {10,20,30,40,50}\{10,20,30,40,50\}, embedding dimension 128, and history length 32. No fine-tuning or test-set hyperparameter selection was used.

Compared with the original shared-trajectory test set, Diff-Kalman degrades only moderately on unseen independent trajectories: from -11.82 ± 0.10 dB to -11.11 ± 0.08 dB at ρ=28\rho=28. It also maintains similar performance at nearby known parameter settings: -11.11 ± 0.10 dB at ρ=26\rho=26 and -10.96 ± 0.07 dB at ρ=30\rho=30. This modest drop is consistent with the behavior of the other neural baselines and suggests that the model is not merely memorizing the original shared trajectory.

We also audited the independent-trajectory construction. Each new set contains 100 distinct clean trajectories generated from independently sampled initial conditions before observation noise is added. The min/median clean-state MSEs to the first trajectory are 110.62 / 147.82 for ρ=28\rho=28, 100.15 / 132.59 for ρ=26\rho=26, and 128.63 / 163.62 for ρ=30\rho=30. This verifies that the new sets are not repeated noisy observations of one shared latent trajectory; statistical independence comes from the independently sampled initial conditions, independent ODE integrations, and independently sampled observation noise.

We hope this consolidated response helps the AC and reviewers assess these paper-level concerns. We will incorporate the corresponding clarifications, added evaluations, and scoped claim revisions into the manuscript.

Reviewer xFEXOpenReview ↗
Rating
3/6
Confidence
4/5
Quality
2/4
Clarity
2/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper studies how to leverage learned dynamics corrections without replacing the Kalman filters (KFs) recursive structure or directly learning high-dimensional structured covariance/gain matrices. The core idea is to (1) use a neural network (here a transformer) to predict state increments rather than the state itself; (2) fuse these increments with a physics/model-based prediction through a learned wight; and (3) learn diagonal scaling matrices that modify covariance propagation and Kalman gain computation.

Strengths and weaknesses

Strength. The main strength of the paper is to give some empirical evidence that it may suffice to learn corrections to the Information matrix directly using a simple diagonal scaling, as opposed to learning structure matrices like noise civariances, which is commonly done in similar work. This is a useful perspective that would be interesting to develop further.

Weaknesses.

[W1] Is there something missing in (22)? Are you taking a rank-1 approximation of the true covariance and using this for supervision, this seems dubious. I'm surprised that you get a good training signal with this approximation.

[W2] The predictive mean and covariance appear to be generated by different dynamical models, and do not seem statistically sound in that sense. In (23), the mean update indicates that you are applying a linear map and adding two (uncorrelated?) RVs. Yet, the covariance propagation is unaffected (your mean prediction is not the regular KF, but your covariance prediction is).

[W3] In the KF update, you are essentially computing an optimal gain subject to a linear Gaussian measurement model (in terms of minimizing MSE). Yet, you choose not to use this gain but pick a suboptimal one (assuming \Scal_t\neq 1). It is curious that this works better then adapting/finidng a better estimation model, but it does not seem theoretically justified.

[W4] The benchmarks are limited and lack notable baselines. For example, Table 4 compares robustness against an EKF (which has no adaptive mechanism and is not data driven), where in actuality, it should probably contain comparisons against {KNet, SKNet, CKNet} (SKNet might be a dubious baseline). Please consider adding these to Table 4. Also, why not use the same Michigan NCLT Data Set that the original KNet and CKNet were using in their evaluations?

[W5] The claims of the paper about improved optimization stability (e.g., lines 44-52 and 257-261) are not supported by existing results. COnsider adding convergence curves and analysis, or revise the claim accordingly.

[W6] The claims about the experiments "Extensive experiments show that the proposed method improves state estimation accuracy and maintains robustness and correction ability across diverse real-world scenarios." does not seem to be supported by the benchmarks. You tested on one synthetic example, and one object tracking dataset. Consider adding more evaluations, or reduce the scope of this claim.

Questions

Please refer to the weaknesses:

[Q1] Regarding W1, please clarify. [Q2] Regarding W2, comment on why there is a discrpancy here, and if it is intentional, motivate it in the text. [Q3] Regarding W4, what does table 4 look like when you add {KNet, SKNet, CKNet}? [Q4] Regarding W5, please provide ablations to support your claims.

Limitations

The main limitation of the paper is the lack of justification for the learned quantities and the weak empirical evaluation of the method (comprising one synthetic example and one available baseline). For example, you could consider using the Michigan NCLT Data Set as in KNet.

Formatting concerns

No comments.

3 comments
Authors · RebuttalOpenReview ↗
Rebuttal

For Reviewer xFEX

We thank the reviewer for the constructive feedback and for recognizing the useful perspective of learning structured correction terms while preserving the Kalman recursive structure. We address the concerns below with clarifications, additional experiments, and revised claims.

W1

  • Thank you for raising this clarification. Eq. (22) is not intended to estimate the true prior covariance. If it were used as a covariance estimator, an expectation over prediction-error realizations would be required; however, our implementation uses the single-step residual outer product only as an auxiliary pseudo-target. We are therefore not taking a rank-one truncation of the true covariance. The outer product is rank-one, but it provides a normalized error-direction signal rather than full covariance supervision. In implementation, both this pseudo-target and the predicted prior covariance are Frobenius-normalized before computing the auxiliary MSE, so the loss does not match the absolute scale of a single noisy sample.
  • To verify its role, we further ablated λ3\lambda_3 in Eq. (24). The results show that training is mainly driven by the prior and posterior state losses, while the covariance term acts as an auxiliary regularizer. A large λ3\lambda_3 can overemphasize this noisy pseudo-target, especially on nonlinear dynamics. Results are averaged over seeds {10, 20, 30, 40, 50}. MOT uses T=50, dim=32; Lorenz uses T=3000, dim=64. MSE is reported in dB, where lower is better. | Dataset |MSE [dB] | λ3=0\lambda_3=0 | λ3=1\lambda_3=1 | λ3=10\lambda_3=10 | |---|---:|---:|---:|---:| | MOT | Prior | 16.38 ±\pm 0.12 | 16.34 ±\pm 0.13 | 16.29 ±\pm 0.09 | | MOT | Posterior | 14.86 ±\pm 0.06 | 14.85 ±\pm 0.09 | 14.84 ±\pm 0.04 | | Lorenz | Prior | -11.06 ±\pm 0.14 | -10.99 ±\pm 0.12 | -7.94 ±\pm 0.24 | | Lorenz | Posterior | -11.65 ±\pm 0.13 | -11.60 ±\pm 0.10 | -9.01 ±\pm 0.20 |

W2

  • Thank you for this important observation. We understand the concern as referring to Eqs. (10)-(13), where the corrected prior mean and covariance are formed. The predictive mean and covariance are not generated by two unrelated dynamical models. The dynamic model provides the KF prior, while the neural branch provides a deterministic residual correction conditioned on the filtering history. Thus, Eq. (10) should be interpreted as deterministic increment fusion, rather than adding independent random variables.
  • The covariance is also adapted after the mean correction. Specifically, GSP-P predicts S_p from the disagreement between the model-based and neural increments, and the final prior covariance is computed by scaling the model-propagated covariance and then adding process noise. Therefore, the covariance is not left as the regular KF covariance; it is modulated by the same correction signal while preserving the PSD form.
  • We will revise the manuscript to clarify this point and avoid implying an exact Bayesian covariance propagation for a fully specified stochastic correction model. We will state that Diff-Kalman preserves the recursive Kalman structure and PSD covariance form, while using learned covariance modulation for empirical uncertainty calibration.

W3

  • Thank you for raising this important point. We agree that under an exactly matched linear-Gaussian state-space model with correct noise statistics, the standard Kalman gain is MSE-optimal. GSP-K is not intended to improve upon this matched-model optimum.
  • However, many practical state-estimation problems do not exactly satisfy the linear-Gaussian assumptions or the assumed noise statistics. Our motivation is therefore the common case of model mismatch and approximation error. In MOT17, the constant-velocity model with fixed noise statistics cannot fully capture acceleration, occlusion, scale changes, and detection errors. In Lorenz, the EKF backbone relies on a finite-order local approximation of nonlinear dynamics. In these settings, the analytic gain computed from the assumed model is not necessarily optimal for the actual data distribution.
  • GSP-K therefore applies an innovation-conditioned diagonal scaling to the analytic gain, rather than replacing it with an unconstrained learned gain. This keeps the recursive Kalman update structure while allowing data-driven calibration under model mismatch. This motivation is related to KalmanNet, but KalmanNet learns a full gain, whereas Diff-Kalman retains the analytic gain and learns only a structured scaling.
  • We do not claim analytical MSE optimality for the scaled gain. We will clarify that GSP-K is an empirical, structure-constrained calibration mechanism under model approximation error, and Table 3 shows its incremental benefit in the ablation study.

W4

  • Thank you for the suggestion. We agree that the benchmark coverage should be strengthened with data-driven Kalman baselines and real-world sensor-fusion evaluation. We address this with two additions.

  • First, we added Michigan NCLT Wheel-GPS sensor-fusion experiments under the public FilterNet protocol. KNet, SKNet, and SIKNet are from the public benchmark, while CKNet was trained by us under the same protocol. With only 48.1K parameters, Diff-Kalman achieves an Avg RMSE of 7.49 ± 1.25 m and an All RMSE of 8.21 ± 1.71 m, improving over SIKNet by 20.1% and 21.1%. All NCLT values are RMSE in meters. | Method | Params | 2012-11-04 | 2012-11-16 | 2013-04-05 | Avg [RMSE] | All [RMSE] | |---|---:|---:|---:|---:|---:|---:| | KNet | 1.3M | 15.52 | 7.81 | 7.09 | 10.14 | 10.96 | | SKNet | 463K | 16.11 | 10.04 | 6.53 | 10.89 | 11.76 | | SIKNet | 453K | 14.43 | 7.69 | 6.00 | 9.37 | 10.40 | | CKNet | 462.7K | 15.57 ± 0.39 | 7.73 ± 0.65 | 6.86 ± 0.28 | 10.05 ± 0.34 | 10.93 ± 0.29 | | Diff-Kalman | 48.1K | 11.66 ± 3.29 | 4.64 ± 0.44 | 6.18 ± 1.24 | 7.49 ± 1.25 | 8.21 ± 1.71 |

  • Second, we revisited Table 4. The original Table 4 used a condition-specific protocol, where each mismatch setting was trained separately. We added a stricter frozen-weight robustness protocol: all neural models are trained only on the nominal baseline setting and then evaluated under unseen mismatch/dropout conditions. For Diff-Kalman, we use T=3000, dim=128, and epoch=300. Results are MSE in dB, where lower is better. SKNet and CKNet are not reported for the Q/R-only rows because Q/R is not an inference input in their evaluated protocols. | Setting | F mis. | H mis. | αQ | βR | Dropout | Rot. deg. | KNet | SKNet | CKNet | Diff-Kalman | |---|---|---|---:|---:|---:|---:|---:|---:|---:|---:| | Baseline | - | - | 1.0 | 1.00 | 0.0 | 0 | -11.29 | -11.43 | -11.67 | -11.82 ± 0.10 | | Q/R mis. | - | - | 2.0 | 0.50 | 0.0 | 0 | -10.97 | - | - | -9.69 ± 0.02 | | Severe Q/R mis. | - | - | 4.0 | 0.25 | 0.0 | 0 | -10.41 | - | - | -9.00 ± 0.02 | | F mis. | rotate | - | 1.0 | 1.00 | 0.0 | 3 | 20.36 | 20.98 | 20.68 | 15.52 ± 0.15 | | H mis. | - | rotate | 1.0 | 1.00 | 0.0 | 3 | -2.77 | 0.74 | -5.13 | -5.35 ± 0.23 | | Dropout | - | - | 1.0 | 1.00 | 0.2 | 0 | -6.72 | -8.61 | -9.24 | -10.91 ± 0.12 | | Full Stress | rotate | rotate | 4.0 | 0.25 | 0.2 | 3 | 23.88 | 23.42 | 20.29 | 8.01 ± 0.10 |

  • For Q/R mismatch, Diff-Kalman is more sensitive because it explicitly uses the supplied Q/R in covariance and gain computation, so incorrect Q/R directly perturbs its inference path. In contrast, SKNet and CKNet do not take Q/R as inference input, and in KNet, Q/R mainly affects initialization rather than step-wise covariance propagation. Therefore, the Q/R-only rows reflect different inference dependencies on the supplied noise statistics.

  • However, under structural and observation-side shifts, Diff-Kalman shows smaller degradation. In particular, under the full-stress setting, Diff-Kalman achieves 8.01 ± 0.10 dB, much lower than KNet (23.88 dB), SKNet (23.42 dB), and CKNet (20.29 dB).

W5

  • Thank you for this comment. We agree that the phrase “improved optimization stability” was imprecise without convergence evidence, and we will revise it to “empirical training stability” rather than implying a theoretical optimization guarantee.
  • To support this revised claim, we retrained Diff-Kalman under the MOT T=50, dim=32 setting for 300 epochs with five seeds. Its validation update MSE decreased from 15.38 ± 0.07 dB to 14.44 ± 0.06 dB, and all five runs remained finite and closely aligned, without divergence. We also generated the corresponding multi-seed convergence curves for KNet, SKNet, and CKNet under the same setting.
  • These results support empirical stability across random seeds, but we do not claim theoretical convergence guarantees or uniformly faster convergence. We will include the convergence curves and revise the related claims in Lines 44-52 and 257-261 accordingly.

W6

  • Thank you for pointing this out. We agree that “diverse real-world scenarios” is too broad for the original MOT and Lorenz evaluation. We will narrow the claim to the evaluated MOT/Lorenz settings and the tested noise/model-mismatch conditions. Following the reviewer’s suggestion, we also added Michigan NCLT Wheel-GPS sensor-fusion experiments and will include them in the revised manuscript to strengthen the real-world evaluation.
Reviewer xFEX · CommentOpenReview ↗

Thank you for the thorough replies, which adress my concerns regarding W1 and W3-W6. However, I'm not convinced by the reply to W2, and would urge the AC to contemplate this when making a decision.

  1. If the NN term is indeed deterministic, and equation (10) is valid as written, then I don't see how (13) follows.
  2. If it is not indeed a covariance propagation, why refer to it as such?

Other than this, the replies the authors gave give me more confidence in the paper. If we are prepared to accept the proposed algorithm as a heuristic KF alternative without optimality guarentees where the computed "covariance" actually is something quite different than the estimation error covariance in the classical sense, then I would be willing to raise my rating to a conditional accept.

I remain firmly borderline.

Authors · CommentOpenReview ↗

Thank you for the follow-up and for clarifying the remaining concern. We agree with the reviewer’s assessment of W2 and will revise the manuscript accordingly. First, Eq. (13) should not be presented as a classical estimation-error covariance propagation strictly derived from the fused mean in Eq. (10). Second, Diff-Kalman should be positioned as a heuristic, structure-preserving Kalman-family estimator, where the computed “covariance” is better interpreted as a PSD-preserving calibrated uncertainty matrix used in the covariance role within the Kalman-style recursion. Our previous response did not make this distinction sufficiently clear.

Q1: If the NN term is deterministic and Eq. (10) is valid as written, how does Eq. (13) follow?

We agree that, under this interpretation, Eq. (13) does not strictly follow from Eq. (10) as a classical covariance propagation. After training and during inference, the neural correction is deterministic conditioned on the filtering history: with fixed weights and the same input history, the network produces the same correction. To derive the exact covariance of the corrected mean, one would need to specify a stochastic model for the residual error of the neural correction and its cross-covariance with the model-based prediction error. Our formulation does not introduce such a full stochastic model. Therefore, Eq. (13) should not be interpreted as an exact estimation-error covariance derived from Eq. (10). More precisely, Eq. (13) constructs a PSD-preserving calibrated uncertainty matrix used in the covariance role within the Kalman-style recursion.

Q2: If Eq. (13) is not covariance propagation, why refer to it as such?

We agree that the terminology should be revised. Following the reviewer’s wording, the computed “covariance” in Eq. (13) is not the estimation-error covariance in the classical sense. It starts from the model-propagated covariance component, applies learned scaling, and adds the process noise, but its role is uncertainty calibration under approximate model assumptions, not classical covariance propagation. To avoid this ambiguity, we will refer to it as a PSD-preserving calibrated uncertainty matrix in the revised manuscript.

Method positioning

Under a correctly specified linear-Gaussian model with accurate noise statistics, the classical Kalman filter provides the optimal mean/covariance recursion and gain. However, many practical state-estimation problems only approximately satisfy these assumptions, due to nonlinear dynamics, non-Gaussian noise, imperfect noise statistics, or data-dependent regularities that are difficult to express with a compact analytic model. Diff-Kalman addresses this gap by retaining the Kalman predict-update recursion while using data-driven modules to learn dynamic corrections for mean prediction and uncertainty calibration. In this sense, it is more appropriately described as a heuristic, structure-preserving Kalman-family estimator, rather than a strict classical Kalman filter derivation.

This positioning is also consistent with recent neural-Kalman methods such as KalmanNet, Split-KalmanNet, and Cholesky-KalmanNet. These methods preserve parts of the Kalman filtering structure while learning gain- or covariance-related quantities from data, rather than deriving all quantities from a fully specified classical linear-Gaussian probabilistic model.

We will revise the manuscript accordingly: we will avoid calling Eq. (13) an exact covariance propagation, refer to the computed “covariance” as a PSD-preserving calibrated uncertainty matrix, and present Diff-Kalman as a heuristic, structure-preserving Kalman-family estimator.

Reviewer hTrCOpenReview ↗
Rating
4/6
Confidence
2/5
Quality
3/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes Diff-Kalman, a hybrid Kalman filtering framework for state estimation in linear and nonlinear dynamic systems. The key idea is that instead of directly regressing high-dimensional Kalman parameters (such as the gain or covariance matrices) end-to-end, the network only learns correction terms. In the prediction phase, a Transformer-based module (self-attention over historical states and their first-order differences, followed by cross-attention) predicts a state increment, which is fused with the model-based prior via a GRU-based scaling predictor (GSP-α); a second predictor (GSP-P) corrects the prior covariance. In the update phase, GSP-K produces a diagonal scaling matrix that adaptively modulates the Kalman gain. The design preserves the recursive predict-update structure and the PSD form of the covariance. The method is evaluated on MOT-17 trajectories (linear setting) and the Lorenz attractor (nonlinear setting) against KF/EKF/UKF/CKF and several neural Kalman baselines.

Strengths and weaknesses
  1. Strengths. The paper presents a sound and well-motivated idea: instead of directly regressing high-dimensional Kalman parameters, Diff-Kalman learns correction terms, which is a sensible and potentially more stable design. It also improves over prior neural-Kalman methods by correcting both the prediction and update phases, while retaining the recursive filtering structure and PSD-preserving covariance updates. The experiments cover both linear and nonlinear settings, with useful ablations, robustness tests, and visualizations supporting state-dependent fusion.

  2. Weaknesses. The MOT comparison is incomplete: Table 1 only compares against KF and KNet, while several recent neural-Kalman baselines discussed elsewhere are missing. Some claims are not fully aligned with the reported numbers, especially the “lowest MSE under all noise levels” statement, which is contradicted by Table 2; the apparent CKF sign error should also be checked. Finally, the paper would benefit from stronger theoretical discussion, especially on why correction-term learning is more stable, how the structure-preserving property is guaranteed, and what estimator guarantees remain after modifying the classical Kalman gain.

Questions
  1. The related work discusses several recent neural Kalman methods (e.g., SKNet, CKNet, KalmanFormer, A-KIT), and these appear in the Lorenz comparison, but the MOT experiment in Table 1 only compares against KF and KNet. Could the authors add the other neural baselines to the MOT setting as well, so the comparison is consistent across both datasets?

  2. There are a few small issues that should be fixed. For example, in Table 2 the CKF posterior at 1/σ²r = 0 is reported as "6.85", which appears to be a sign error (likely −6.85 given the surrounding values). I'd suggest a careful pass over the tables and notation for consistency.

  3. The claim in lines 263–264 that Diff-Kalman achieves the lowest MSEs "under all noise levels, for both prior and posterior" is not fully supported by Table 2 — at 1/σ²r = 20, SKNet's posterior (−25.92) is better than Diff-Kalman's (−24.20). I'd suggest softening this statement to reflect the actual results.

Limitations

Yes.

Formatting concerns

No major formatting or anonymity concerns noticed.

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

For Reviewer hTrC

We thank the reviewer for the constructive assessment and for recognizing that Diff-Kalman is sound, well-motivated, and supported by useful ablations. We address the remaining concerns below.

Q1

  • Thank you for the suggestion. We agree that the MOT comparison should include more neural Kalman baselines for consistency with the Lorenz experiment. We therefore added SKNet, CKNet, and BKNet (Bayesian KalmanNet), which are closely related to Diff-Kalman because they also preserve the recursive Kalman filtering structure while introducing neural corrections or uncertainty modeling. All neural methods were trained at T=50 and evaluated at T=20, T=50, and T=100. Results are test MSE in dB, reported as mean ± std over five seeds, where lower is better. | Method | T=20 Prior | T=20 Post | T=50 Prior | T=50 Post | T=100 Prior | T=100 Post | |---|---:|---:|---:|---:|---:|---:| | KF | 20.03 | 17.43 | 19.93 | 17.32 | 19.07 | 16.35 | | KNet | 21.54 ± 0.12 | 16.60 ± 0.09 | 21.50 ± 0.14 | 16.04 ± 0.10 | 20.74 ± 0.18 | 14.84 ± 0.13 | | CKNet | 19.77 ± 0.11 | 17.53 ± 0.06 | 17.94 ± 0.06 | 15.97 ± 0.03 | 17.15 ± 0.04 | 15.95 ± 0.07 | | SKNet | 19.03 ± 0.04 | 17.16 ± 0.01 | 17.52 ± 0.01 | 16.21 ± 0.01 | 16.94 ± 0.01 | 15.63 ± 0.01 | | BKNet | 20.24 ± 0.03 | 17.44 ± 0.02 | 18.47 ± 0.05 | 15.87 ± 0.01 | 17.49 ± 0.04 | 15.02 ± 0.02 | | Diff-Kalman | 18.11 ± 0.05 | 16.46 ± 0.05 | 17.12 ± 0.08 | 15.79 ± 0.05 | 15.98 ± 0.36 | 14.70 ± 0.11 |

After adding these closely related neural Kalman baselines, Diff-Kalman achieves the lowest mean prior and posterior MSE at all three horizons. We will include this expanded MOT comparison and the evaluation protocol in the revised manuscript.

Q2-Q3

  • Thank you for carefully identifying these issues. We will correct the sign error in Table 2: the CKF posterior result at 1/sigma_r^2 = 0 should be -6.85, not 6.85. We will also carefully check all tables, notation, and reported values.
  • We agree that the statement in Lines 263-264 is too strong. Table 2 shows that at 1/sigma_r^2 = 20, SKNet obtains a lower posterior MSE than Diff-Kalman. We will revise the statement to accurately reflect the results: Diff-Kalman achieves the best prior MSE across all evaluated noise settings and the best posterior MSE in most settings, while remaining competitive in the remaining case.

Additional Clarification

  • We also appreciate the reviewer’s suggestion to strengthen the theoretical discussion. We will clarify that Diff-Kalman does not claim to preserve the full optimality guarantee of the classical Kalman filter after introducing learned gain scaling. Instead, it preserves the recursive predict-update structure and the PSD covariance form.
  • Specifically, the covariance correction uses diagonal scaling of the model-propagated covariance, and the posterior covariance is updated with the Joseph-form expression, which preserves PSD when the input covariance and noise covariance are PSD. The stability advantage comes from learning low-dimensional correction terms and scaling matrices rather than directly regressing full covariance or Kalman-gain matrices. We will add this discussion to better distinguish preserved structural properties from classical optimality guarantees.

Additional Paper-Level Clarifications

About Novelty and Differentiable Filtering

  • We agree that the high-level idea of learning components inside a differentiable filter is related to differentiable filtering and differentiable particle filters. Our contribution is different in mechanism and scope: Diff-Kalman does not represent the belief with particles or learn an unconstrained transition/proposal model. Instead, it preserves the Kalman mean-covariance recursion and learns structured correction terms inside this recursion.
  • Concretely, Diff-Kalman uses a Transformer to learn state-increment corrections from historical states and first-order differences, and uses GSP modules to produce structured covariance/gain scaling while preserving the recursive update and PSD covariance form. This provides a lightweight and interpretable alternative to particle-based differentiable filtering: the belief remains a fixed-dimensional mean-covariance state, while the learned modules correct both the prediction and update phases.
  • To further support this point, we added the S_P structure ablation and independent-trajectory Lorenz evaluation. These analyses clarify the effect of the diagonal covariance correction and show that the learned corrections are not merely memorizing a shared Lorenz trajectory. We will revise the novelty discussion to emphasize this structure-preserving correction framework, rather than claiming novelty from individual neural modules.

About Sp Structure

  • We also clarify the representational effect of diagonal covariance scaling. Our original Diagonal map is not limited to changing covariance variances: with
P−=SPPbaseSP⊤+Q,SP=D,P^- = S_P P_{\mathrm{base}} S_P^\top + Q,\qquad S_P=D,

it rescales every existing cross-covariance as Pij−=didjPbase,ijP^-_{ij} = d_i d_j P_{\mathrm{base},ij}. Its limitation is that it cannot mix state dimensions or create new correlation patterns beyond those already present in PbaseP_{\mathrm{base}}.

  • We therefore vary only the structure of SPS_P, while keeping the state-increment network, fusion and gain modules, loss, data splits, and training protocol fixed:

  • Diagonal: SP=DS_P=D.

  • Block: SP=D+BS_P=D+B, where BB has off-diagonal entries only within predefined blocks (a [x,y][x,y] block for Lorenz, a [x,y,vx,vy][x,y,v_x,v_y] block for NCLT).

  • Low-rank: SP=D+UV⊤S_P=D+UV^\top, with rank r=1r=1.

  • Full: SP=D+clip⁡(A)S_P=D+\operatorname{clip}(A), where AA is a dense zero-diagonal residual predicted by the same GSP-P hidden state. This is a dense PSD-preserving SPS_P calibration baseline, not an unrestricted covariance predictor. | SPS_P structure | MOT17 Prior [dB] | MOT17 Post [dB] | Lorenz Prior [dB] | Lorenz Post [dB] | NCLT Prior [RMSE] | NCLT Post [RMSE] | |---|---:|---:|---:|---:|---:|---:| | Diagonal | 16.34 ± 0.13 | 14.85 ± 0.09 | -10.94 ± 0.17 | -11.56 ± 0.15 | 8.22 ± 1.70 | 8.21 ± 1.71 | | Block | 16.59 ± 0.29 | 14.95 ± 0.15 | -11.33 ± 0.14 | -11.93 ± 0.12 | 9.93 ± 3.13 | 9.92 ± 3.13 | | Low-rank (r=1) | 16.56 ± 0.20 | 14.91 ± 0.13 | -11.11 ± 0.11 | -11.74 ± 0.09 | 8.02 ± 1.81 | 8.02 ± 1.80 | | Full | 16.41 ± 0.17 | 14.78 ± 0.09 | -11.26 ± 0.09 | -11.89 ± 0.09 | 7.08 ± 1.08 | 7.07 ± 1.09 |

  • Results are test MSE in dB for MOT17/Lorenz, and RMSE in meters for NCLT, mean ± standard deviation over seeds {10,20,30,40,50}. MOT17 uses T=50, dim=32, and history length 3; Lorenz uses T=3000, dim=64, and history length 32; NCLT uses dim=32, and history length 4;

  • Summary: On MOT17, denser SPS_P structures give no meaningful posterior gain: Full reduces posterior MSE over Diagonal by only 0.07 dB, within seed variability. On Lorenz, Block gives the best prior and posterior MSE, and Low-rank / Full also improve over Diagonal, showing that cross-dimensional correction helps for strongly coupled dynamics. On NCLT, Full performs best, suggesting that real-world sensor fusion can benefit from richer covariance calibration. Overall, diagonal scaling is an effective inductive bias when the propagated covariance is informative, while richer S_P structures are useful in more coupled settings. We will revise the manuscript to state this limitation and present structured covariance calibration as a task-dependent extension.

About Lorenz overfit

  • We also clarify the Lorenz data protocol and add an independent-trajectory evaluation. The original Lorenz data follow the decimated-Lorenz protocol of KalmanNet: training, validation, and test samples share one latent trajectory and initial condition, differing only in independently sampled observation noise. We agree that this protocol leaves open the question of generalization to unseen trajectories.

  • We therefore generated new evaluation sets with rho in {26,28,30}. For each setting, we sampled 100 random initial conditions and generated 100 independent Lorenz trajectories using RK4 with an internal step size of 1e-5, sampled every 0.02 for sequences of length 3000, and added independent Gaussian observation noise. We evaluated five frozen Diff-Kalman models and the corresponding frozen KNet, SKNet, and CKNet baselines, all trained on the original shared-trajectory rho=28 dataset for 300 epochs, using seeds {10,20,30,40,50}, embedding dimension=128, and history length=32, without fine-tuning or test-set hyperparameter selection. The rho=28 set tests generalization to unseen trajectories. For rho=26/30, only the Lorenz parameter in the analytic filter is changed to the corresponding known value, while all learned network weights remain fixed.

  • Summary: Compared with the original shared-trajectory test set, Diff-Kalman degrades only moderately on unseen independent trajectories: from -11.82 ± 0.10 dB to -11.11 ± 0.08 dB at rho=28. It also maintains similar performance at nearby parameter settings, with -11.11 ± 0.10 dB at rho=26 and -10.96 ± 0.07 dB at rho=30. This modest drop is consistent with the behavior of the other neural baselines and suggests that the model is not merely memorizing the original shared trajectory. | Test set | Test rho | # trajectories | DK post | KNet post | SKNet post | CKNet post | EKF post | |---|---:|---:|---:|---:|---:|---:|---:| | Original test set | 28 | 1 (10 noise realizations) | -11.82 ± 0.10 | -11.29 | -11.41 | -11.67 | -6.24 | | New independent trajectories | 28 | 100 | -11.11 ± 0.08 | -10.69 | -10.73 | -11.07 | -4.26 | | New independent trajectories | 26 | 100 | -11.11 ± 0.10 | -10.65 | -11.01 | -11.03 | -4.68 | | New independent trajectories | 30 | 100 | -10.96 ± 0.07 | -10.09 | -10.24 | -10.81 | -3.90 |

Reviewer iMv9OpenReview ↗
Rating
5/6
Confidence
4/5
Quality
3/4
Clarity
3/4
Significance
4/4
Originality
3/4
Contribution type
theory
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

In this paper, the authors propose Diff-Kalman, a variant of the hybrid Kalman filter that uses state differences to predict state increments and scaling matrices, which are subsequently employed in the prediction and update steps of the proposed filter. The proposed approach assumes that a priori state estimates over a window of length L are available. It then employs a Transformer-based architecture with a self-attention mechanism to extract localized patterns and predict future state increments. These predicted increments are subsequently fused with the model-based priors (from the dynamic model). During the update step, a GRU-based scaling predictor (GSP) adaptively adjusts the covariance and Kalman gain matrices, thereby improving the estimation accuracy and robustness. Experiment results have shown the efficacy of the proposed method.

Strengths and weaknesses

The paper presents a hybrid Kalman filtering framework and demonstrates superior performance in the experiments compared with existing hybrid Kalman family filters (KalmanNet, KNet, CKNet, and SKNet) as well as conventional model-based estimators. Unlike existing data-driven approaches that directly predict filter parameters, such as the Kalman gain in KalmanNet, the proposed method learns only the state increments and scaling matrices, which are subsequently used to produce more accurate state estimates.

The presentation of the paper could be improved for clarity. In particular, the problem formulation should first introduce the stochastic state-space model, including both the dynamic and measurement models. After that, the authors would have discussed the limitations of existing approaches and motivated the proposed method. Furthermore, the algorithm derivation is not sufficiently clear. For example, it is unclear why the prior error covariance derived from the dynamic model in Eq. (4) does not include the process noise covariance Q, whereas Q is incorporated later in the final prior error covariance in Eq. (13).

Questions

(1) The prior error covariance based on the dynamic model in Eq. (4) does not have Q (noise covariance); although Q is later added in the final prior error covariance in Eq. (13).

(2) In the experiments, the authors have compared the proposed method with the standard Kalman filter. I believe the proposed method should have been compared with existing adaptive Kalman family filters (MLE, MAP, or Variational Bayesian approaches), since they estimate unknown parameters along with the state of the dynamic system.

Minor comments: (1) Page 1, line 32-33; it should be cubature Kalman filter

(2) x_{t\mid t}^{gt} is mentioned twice; below Eq. (20) and (21).

(3) The references should be checked thoroughly for consistency and formatting. For example, in [16], K should be capitalised in Kalman, same in [29], [32], [33], and possibly other references as well.

Limitations

yes

Formatting concerns

Not applicable

1 comment
Authors · RebuttalOpenReview ↗
Rebuttal

For Reviewer iMv9

We thank the reviewer for the positive assessment of our work, especially for recognizing the technical soundness, strong significance, and empirical effectiveness of Diff-Kalman. We address the remaining concerns below.

Q1

  • Thank you for pointing this out. Eq. (4) is not intended to be the complete prior error covariance used in the Kalman update; it denotes only the covariance component propagated from the previous posterior uncertainty through the dynamic model. The complete corrected prior covariance is given in Eq. (13): P−=SpPkfSpT+QP^- = S_p P_kf S_p^T + Q, where Q is explicitly added.
  • This separation is intentional. GSP-P calibrates the propagated uncertainty inherited from the previous posterior state, while Q represents additive process uncertainty specified by the filter. If Q were included before the learned scaling, the process noise would also be rescaled, which is not our intended design.
  • We will revise the manuscript to rename the Eq. (4) quantity as the model-propagated covariance component and clarify before Eq. (13) that the final prior covariance includes Q.

Q2

  • Thank you for the suggestion. We agree that adaptive Kalman-family filters are important baselines, so we added ML-KF, MAP-KF, IAE-KF, and VB-KF to the MOT experiment. All hyperparameters were selected on the validation split, and the test split was used only for final evaluation. Results are test MSE in dB, where lower is better. | Method | T=20 Prior | T=20 Post | T=50 Prior | T=50 Post | T=100 Prior | T=100 Post | |---|---:|---:|---:|---:|---:|---:| | KF | 20.03 | 17.43 | 19.93 | 17.32 | 19.07 | 16.35 | | ML-KF | 19.38 | 17.12 | 18.81 | 16.40 | 18.65 | 16.27 | | MAP-KF | 18.37 | 16.57 | 17.37 | 15.87 | 17.08 | 15.51 | | IAE-KF | 19.41 | 17.10 | 18.13 | 16.03 | 17.43 | 15.63 | | VB-KF | 29.58 | 29.48 | 32.03 | 31.93 | 27.33 | 27.14 | | Diff-Kalman | 18.11 | 16.46 | 17.12 | 15.79 | 15.98 | 14.70 |
  • The results show that most adaptive KF variants improve over the standard KF, with MAP-KF performing best among the added baselines. Diff-Kalman achieves the best results because it not only adapts covariance/gain scaling, but also learns state-increment corrections in the prediction phase. VB-KF performs worse in this MOT setting because it adapts only a diagonal, time-varying measurement-noise covariance while keeping the process-noise covariance fixed. We will add these baselines and the corresponding discussion to the revised manuscript.

Q3-Q4

  • Thank you for identifying these presentation issues. We will correct “Cubic Kalman Filter” to “cubature Kalman filter” on Page 1, Lines 32-33.
  • We will also remove the duplicated mention of the ground-truth state notation below Eqs. (20) and (21). In addition, we will carefully proofread the full manuscript and reference list to fix wording, notation, capitalization, and formatting inconsistencies, including the capitalization of “Kalman” in [16], [29], [32], [33], and other relevant entries.

Presentation clarification

  • We also appreciate the reviewer’s suggestion on improving clarity. We will revise the problem formulation to first introduce the stochastic state-space model, including both the dynamic and measurement models, and then clarify the limitations of existing approaches before presenting Diff-Kalman.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…