Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks

arXiv:2606.12559 · physics.comp-ph, cs.LG, cs.NA, math.NA, physics.flu-dyn · Submitted 2026-06-10 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks".

Jane: The gist: A feature-preserving latent-EnKF has been developed for data assimilation of shock-laden compressible flows to address the failure mode of standard EnKF which produces spurious oscillations near discontinuities.

Tom: First, who's behind it and why it matters.

Title and authors: Jane: So, we've talked about how this new method handles the shock problem by moving the analysis into a latent space where features are smooth, and we need to get into what the paper actually summarizes.

Tom: The authors introduce a feature-preserving latent-EnKF that addresses the core issue of standard EnKF failing on discontinuous solutions like shocks in compressible flows <ref:2606.12559#pg1>.

Lu: They describe this by performing the ensemble update in a learned low-dimensional latent space, where shock and flow features admit a smooth manifold representation <ref:2606.12559#pg3>.

Jane: The paper explains that they parameterize the ensemble members using a shared multilayer perceptron decoder Dtheta, so the physical state q f,k,i(x) is approximated by D theta(z fi, x), where z fi is the latent code associated with member qf,k,i <ref:2606.12559#pg3>.

Tom: They optimize the decoder weights theta and those latent codes jointly on the forecast ensemble by minimizing a loss function that combines a reconstruction error term and a latent-space regularization term <ref:2606.12559#pg3>.

Jane: That regularization term is what constrains the latent state vectors to remain geometrically aligned, effectively restricting the ensemble members and their latent mean to a one-dimensional affine space <ref:2606.12559#pg3>.

Tom: They then perform the EnKF analysis directly in this latent space, defining ensemble means zbar f = one over n-one sum i=one n e i z fi and ybar f = one over n-one sum i=one n e i y fi <ref:2606.12559#pg3>.

Jane: The update involves defining the normalized perturbation matrices Z and Y using a factor of one over sqrt n e applied to z fi - f and y fi - f respectively <ref:2606.12559#pg3>.

Tom: Then the latent codes are updated according to z ai = z fi + ZY YY + R k-1d k + eta i, where eta i is Gaussian noise with covariance R k <ref:2606.12559#pg3>.

Jane: And finally, the analysis state in physical space is recovered by decoding the updated latent code, q ak,i = D theta(z ai, x), and the decoder weights theta remain fixed during this analysis step <ref:2606.12559#pg3>.

Tom: The paper emphasizes that this design allows for a coordinate-conditioned auto-decoder where the decoder is queried at each spatial coordinate using a per-member latent code and coordinates as inputs <ref:2606.12559#pg3>.

Jane: So, fundamentally, they are showing how to use a learned low-dimensional manifold to perform the update, rather than relying on linear superposition in physical space which just breaks down when discontinuities are involved <ref:2606.12559#pg4>.

Lu: What this really suggests is that you can encode sharp features like shocks and contact discontinuities as smooth variations along this manifold, which allows for coherent displacement of those features through the update mechanism <ref:2606.12559#pg3>.

Meng: If we look at what they're doing, it sounds like a complex optimization problem during training to ensure that the latent state vectors stay geometrically aligned <ref:2606.12559#pg3>. That is the heavy lifting required before we even get to deployment.

Jane: Right, so before we talk about the specific results on Sod tubes, we need to make sure everyone understands how this mechanism works under the hood.

The paper's summary: Tom: Okay, let's focus on what they claim as improvements over existing methods. The first big one is eliminating member-specific ordered training and positivity flooring <ref:2606.12559#pg1>.

Jane: That sounds like a big deal because those constraints often force the ensemble into unnatural shapes, which then leads to those spurious oscillations we talked about earlier <ref:2606.12559#pg4>.

Lu: They say that by removing those constraints, the proposed method eliminates member-specific ordered training and positivity flooring used in prior approaches <ref:2606.12559#pg1>, leading to a posterior estimate that is more faithful to the true flow dynamics <ref:2606.12559#pg3>.

Tom: I like that phrasing because it focuses on the result—the posterior estimate being more faithful—instead of just saying "it's better."

Jane: And they also point out that by performing this analysis in the latent space, they avoid the issue where linear EnKF analysis update acts through linear superposition in the physical state space <ref:2606.12559#pg4>.

Meng: Linear superposition in physical space is exactly what causes those non-physical intermediate states with spurious oscillations instead of preserving coherent flow features in shock-laden flows <ref:2606.12559#pg5>.

Lu: The latent space approach replaces that linear superposition with operations that preserve the smooth manifold representation, which yields smooth transport of discontinuities when mapped back to physical space <ref:2606.12559#pg2>.

Tom: It sounds like they're not just patching a bug; they're fundamentally changing how we handle the physics of discontinuities in these assimilation routines <ref:2606.12559#pg1>.

Jane: They also mention that this latent-space update allows for the coherent displacement of shocks, contact discontinuities, and slip lines through the update process itself <ref:2606.12559#pg3>.

Meng: That means we can finally get a system where the ensemble members actually move in a way that respects those sharp features instead of getting smeared out by linear updates <ref:2606.12559#pg3>.

Lu: The paper also shows how this latent representation allows for the encoding of sharp features in physical space, including shocks, contact discontinuities, and slip lines, as smooth variations along this manifold <ref:2606.12559#pg3>.

The paper's improvements: Tom: So to wrap up this discussion on "Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks," the main point is that we can perform data assimilation of shock-laden compressible flows using a feature-preserving latent space approach <ref:2606.12559#pg1>.

Jane: It tackles the central failure mode where standard EnKF's linear analysis update produces spurious oscillations because it operates in physical space instead of a learned low-dimensional manifold <ref:2606.12559#pg4>.

Tom: The paper eliminates member-specific ordered training and positivity flooring, which leads to a posterior estimate that is more faithful to the true flow dynamics when assimilating sparse and noisy observations <ref:2606.12559#pg1>.

Lu: This framework provides a solver-agnostic way to handle discontinuities, extending naturally to three-dimensional configurations and other physical systems featuring discontinuities <ref:2606.12559#pg3>.

Meng: It’s about getting a system where the ensemble members actually move in a way that respects those sharp features instead of getting smeared out by linear updates <ref:2606.12559#pg3>.

Lalam: I'm confident this is a solid direction because the latent representation provides an effective geometric framework for extending ensemble Kalman filtering to discontinuous flows, and the numerical experiments on the Sod shock tube and Mach two shock interaction with a cylinder demonstrated stable and accurate assimilation <ref:2606.12559#pg1>.

Jane: It’s a significant step forward because it shows we can assimilate sparse, noisy observations, including schlieren-like cumulative density-gradient measurements, while preserving sharp flow structures throughout the analysis cycles <ref:2606.12559#pg1>.

Tom: This work moves us toward more robust data assimilation methods for complex flows by showing that latent representations are a solid way to manage the inherent uncertainties around shock location <ref:2606.12559#pg1>.

Lu: It’s interesting because it shows how we can encode sharp features like shocks and contact discontinuities as smooth variations along this manifold, which allows for coherent displacement of those features through the update mechanism <ref:2606.12559#pg3>.

Meng: We need to watch how this performs when scaled up, but on paper, it’s a framework that's promising for production systems <ref:2606.12559#pg3>.

Lalam: This feature-preserving Latent-EnKF is a solid direction because the latent representation provides an effective geometric framework for extending ensemble Kalman filtering to discontinuous flows <ref:2606.12559#pg3>.

Conclusion: Jane: So we're wrapping up our look at "Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks." It sounds like this new method finally fixes that big problem where standard EnKF just gets all messy when it hits a shock or a discontinuity in the flow <ref:2606.12559#pg1>.

Tom: Exactly. The core idea is moving the analysis into a learned low-dimensional latent space where those sharp features—shocks, contact discontinuities—get represented as smooth variations <ref:2606.12559#pg3>.

Lu: That’s right, and they do this by parameterizing the ensemble members using a shared multilayer perceptron decoder, D theta, where the physical state is approximated by D theta(z fi, x) <ref:2606.12559#pg3>.

Meng: From an engineering standpoint, that training part sounds heavy. How much computational overhead is there for optimizing those decoder weights theta and those latent codes jointly against that loss function?

Tom: They optimize it by minimizing a loss function that has both a reconstruction error term and a latent-space regularization term <ref:2606.12559#pg3>. That second part constrains the latent state vectors to stay geometrically aligned, which is what keeps things smooth <ref:2606.12559#pg3>.

Jane: So, instead of letting the physical update act through linear superposition in physical space, they're constraining it in this learned manifold <ref:2606.12559#pg4>. That’s a big conceptual difference for anyone listening who isn't deep in the math.

Lu: It means they can perform the analysis directly in that latent space using updated ensemble means and perturbations, then decode back to physical space at the end <ref:2606.12559#pg3>. They keep the decoder weights theta fixed during that analysis step <ref:2606.12559#pg3>.

Meng: And they warm-start those weights in the next data assimilation cycle, which is important for production because training a new decoder from scratch every time is just not feasible at scale <ref:2606.12559#pg3>.

Tom: They showed this works really well on two test cases: a Sod shock tube and a Mach two shock interacting with a cylinder <ref:2606.12559#pg1>. The physical-space EnKF just makes strong oscillations near the shock, but this latent-space update keeps the ensemble contracting onto the truth <ref:2606.12559#pg1>.

Jane: And they used observations that were kind of novel for this domain—sparse and noisy measurements proportional to the gradient of density, grad rho <ref:2606.12559#pg1>. That shows it’s not just for standard pressure readings <ref:2606.12559#pg1>.

Meng: The results showed that the RMSE and ensemble spread decreased monotonically over five data assimilation cycles, which means the latent-space update remains stable and informative under those noisy conditions <ref:2606.12559#pg1>.

Lu: It suggests that latent representations provide a stable geometric framework for extending Kalman filtering to discontinuous flows, and it’s solver-agnostic, meaning it could work with different simulation setups <ref:2606.12559#pg3>.

Tom: So that's the summary of "Feature-preserving Latent-EnKF for Data Assimilation of Flows with Shocks." It shows how to get coherent displacement of shocks by using a learned low-dimensional manifold <ref:2606.12559#pg1>.

Jane: It’s really interesting because it proves that we can encode sharp features as smooth variations, which is a way to handle the complexity of real fluid dynamics without getting those non-physical oscillations <ref:2606.12559#pg3>.

Meng: For deployment, the cost comes down to training that decoder network and managing those weights, but if it works reliably on these tests, it’s a viable path for industrial applications <ref:2606.12559#pg3>.

Tom: Yeah. It's about getting the mechanics right on how the AI learns to represent those hard physics <ref:2606.12559#pg3>.

Lu: This approach opens up possibilities for assimilation methods that handle complex, discontinuous systems with more fidelity than what standard methods can provide <ref:2606.12559#pg3>.

Jane: Next time we look at papers, I think it’s going to be interesting to see if this latent space idea can be applied to different types of physical modeling entirely.

Department of Mechanical Engineering, Johns Hopkins University

physics.comp-ph, cs.LG, cs.NA, math.NA, physics.flu-dyn

Submitted: 2026-06-10

Updated: 2026-10-14

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 87/100

The gist: The gist: A feature-preserving latent-EnKF has been developed for data assimilation of shock-laden compressible flows to address the failure mode of standard EnKF which produces spurious oscillations

Key concepts

Feature-preserving Latent Space Representation
This involves learning a low-dimensional manifold where complex flow features like shocks are represented by smooth variations. Instead of using the physical state directly, the system encodes these sharp features into coordinates within this latent space, which are inherently smoother and better suited for filtering.
Coordinate-conditioned Auto-decoder
This is a machine learning component that maps physical flow states to a latent code based on spatial location. The decoder is trained to understand how different parts of the flow look in this compressed space, allowing the filter to query the latent representation at specific points and reconstruct meaningful physical information.
Latent-Space Ensemble Kalman Filter Update
The core update process is performed entirely within this learned latent space. The filter updates the latent codes instead of physical states. This allows for coherent translation of discontinuities, as the update operates on the smooth latent representation, which avoids creating non-physical oscillations that plague traditional physical-space methods.

Terminology

Summary

The gist: A feature-preserving latent-EnKF has been developed for data assimilation of shock-laden compressible flows to address the failure mode of standard EnKF which produces spurious oscillations near discontinuities.

Introduction and Problem Statement

The ensemble Kalman filter (EnKF) fails for solutions with discontinuities, such as shocks in compressible flows, because uncertainty in shock location induces multimodal ensemble statistics that violate the Gaussian assumptions underlying the EnKF, producing large-scale spurious oscillations in the analysis state<ref:2606.12559#pg2> Moreover, the linear EnKF analysis update constrains each analysis member to the affine subspace spanned by the forecast ensemble, such that the update acts through linear superposition in the physical state space<ref:2606.12559#pg4> In shock-laden flows, where ensemble variability is governed primarily by discontinuity location, these operations generate non-physical intermediate states with spurious oscillations and multiple discontinuities instead of preserving coherent flow features<ref:2606.12559#pg5> Several approaches have been proposed to mitigate these issues, including positivity-preserving transforms[8], rank-based normal-score transforms [9, 10], and structurally informed covariances [11, 12]<ref:2606.12559#pg5> A related machine learning based state transformation approach is representing the physical state in latent space [13, 14]<ref:2606.12559#pg5> In this note we show that neither chain training [7] nor latent encoders [16, 17, 18] are required<ref:2606.12559#pg5> We propose performing the EnKF analysis in the latent space of a coordinate-conditioned auto-decoder [19]<ref:2606.12559#pg5> The decoder is queried at each spatial coordinate using a per-member latent code and coordinates as inputs<ref:2606.12559#pg5> The decoder weights and latent codes are optimized jointly on the forecast in an auto-decoder formulation [19]<ref:2606.12559#pg5> Sharp features in physical space, including shocks, contact discontinuities, and slip lines, are encoded as smooth variations along this manifold<ref:2606.12559#pg5>

Feature-preserving Latent Space Representation

The proposed method performs the analysis in a learned low-dimensional latent space where shock and flow features admit a smooth manifold representation<ref:2606.12559#pg5> The ensemble members are parameterized using a shared multilayer perceptron (MLP) decoder Dθ as qf,k,i(x) ≈ Dθ(zfi, x), where zfi denotes the latent code associated with ensemble member qf,k,i<ref:2606.12559#pg5> The decoder weights θ and latent codes are jointly optimized on the forecast ensemble by minimizing a loss function that includes a reconstruction error term and a latent-space regularization term<ref:2606.12559#pg5> This regularization term constrains the latent state vectors to remain geometrically aligned, effectively restricting the ensemble members and their latent mean to a one-dimensional affine space<ref:2606.12559#pg5> The optimized forecast latent ensemble is denoted by zfi<ref:2606.12559#pg5>

Latent-Space Ensemble Kalman Filter Update

The EnKF analysis is performed directly in the latent space using the following steps:

  1. Define the ensemble means zbarf = n−1eP i zfi and ybarf = n−1eP i yfi<ref:2606.12559#pg5>

  2. Define the normalized perturbation matrices Z = 1/√ne − 1zfi − zbarf i ∈ Rnz×ne and Y = 1/√ne − 1yfi − ybarf i∈ Rny×ne<ref:2606.12559#pg5>

  3. Update the latent codes according to zai = zfi + ZY⊤YY⊤ + Rk−1dk + ηi − yfi, where ηi ∼ N (0, Rk)<ref:2606.12559#pg5>

  4. The analysis state in physical space is recovered by decoding the updated latent code, qak,i = Dθ(zai, x)<ref:2606.12559#pg5>

The decoder weights θ remain fixed during the analysis step<ref:2606.12559#pg5> At the next DA cycle, the decoder is re-trained on the updated forecast ensemble by warm-starting from previously learned weights<ref:2606.12559#pg5>

Numerical Experiments and Results

The proposed feature-preserving EnKF was demonstrated on two test cases:

  1. A Sod shock tube with sparse, noisy pressure observations<ref:2606.12559#pg5> The physical-space EnKF produces strong oscillations near the shock, contact discontinuity, and rarefaction in all primitive variables<ref:2606.12559#pg5> In contrast, the feature-space update contracts the ensemble onto the truth while preserving sharp features<ref:2606.12559#pg5> The space-time evolution in Fig. 3 further shows that the forward trajectory initialized from the decoded post-analysis latent mean closely follows the analytical solution throughout the assimilation window<ref:2606.12559#pg5>

  2. A Mach 2 shock interacting with a two-dimensional cylinder with sparse, noisy observations proportional to ∇ρ<ref:2606.12559#pg5> The full primitive state at t = 2.5 (Fig. 6) is reconstructed in physical space without spurious oscillations across the bow shock<ref:2606.12559#pg5> The EnKF update in latent space reconstructs a consistent shock and flowfield, rather than a blend of misaligned shocks that would arise in physical-space EnKF<ref:2606.12559#pg5> RMSE and ensemble spread decrease monotonically over five DA cycles for all primitive variables, indicating that the latent-space update remains stable and informative<ref:2606.12559#pg5>

Conclusion

A latent-space EnKF has been developed for data assimilation of shock-laden compressible flows<ref:2606.12559#pg5> The approach addresses the central failure mode of the standard EnKF, namely that the linear analysis update acts on forecast perturbations in physical space, which for ensembles with displaced discontinuities produces non-physical intermediate states and spurious oscillations<ref:2606.12559#pg5> By performing the analysis on a learned low-dimensional latent manifold, the proposed method instead enables coherent displacement of shocks, contact discontinuities, and slip lines through the update<ref:2606.12559#pg5> Numerical experiments on a Sod shock tube and a Mach-2 shock interaction with a cylinder demonstrated stable and accurate assimilation from sparse and noisy observations, including schlieren-like cumulative density-gradient measurements, while preserving sharp flow structures throughout the analysis cycles<ref:2606.12559#pg5> The results indicate that latent representations provide an effective geometric framework for extending ensemble Kalman filtering to discontinuous flows<ref:2606.12559#pg5> The framework is solver-agnostic and extends naturally to three-dimensional configurations and other physical systems featuring discontinuities<ref:2606.12559#pg5>

Acknowledgments

This work was supported by the AFOSR/AFRL Center of Excellence in Assimilation of Flow Features in Compressible Reacting Flows under award number FA9550-25-1-0011, monitored by Dr. Chiping Li<ref:2606.12559#pg5>

Code Availability

Data and codes are available upon request<ref:2606.12559#pg5>

References

[1] G. Evensen, Data assimilation: the ensemble Kalman filter, Springer, 2009

[2] T. A. Zaki, M. Wang, Data assimilation and flow estimation, in: Data Driven Analysis and Modeling of Turbulent Flows, Elsevier

[3] T. A. Zaki, Turbulence from an observer perspective, Annual Review of Fluid Mechanics 57 (Volume 57, 2025) (2025) 311–334

[4] M. Asch, M. Bocquet, M. Nodet, Data Assimilation: Methods, Algorithms, and Applications, SIAM

[5] T. Houba, A. Edoh, R. Munipalli, M. E. Harvazinski, Sequential data assimilation in flows with shocks

[6] M. Morzfeld, D.

Improvements for AI systems

  1. Improved flow state estimation for shock-laden compressible flows by using a feature-preserving latent-EnKF that performs the ensemble update in a learned low-dimensional latent space, where shock and flow features admit a smooth manifold representation, thereby preserving sharp features during EnKF analysis. This allows the AI system to produce accurate feature recovery of shocks and contact discontinuities without spurious oscillations when assimilating sparse and noisy observations.

  2. Enhanced data assimilation capability by eliminating non-physical constraints from prior methods, as the proposed algorithm eliminates the member-specific ordered training and positivity flooring used in prior approaches. This leads to a posterior estimate that is more faithful to the true flow dynamics, as shown by the results where the feature-space EnKF preserves sharp flow features while progressively aligning the ensemble toward the true solution.

  3. Ability to assimilate novel observation types for shock flows, such as sparse and noisy observations proportional to ∇ρ, which are described as schlieren-like cumulative density-gradient measurements. This allows the system to utilize a richer set of physical measurements that were previously inaccessible or poorly handled by standard EnKF methods in this domain.

Abstract

The ensemble Kalman filter (EnKF) is widely adopted for sequential data assimilation, but fails for solutions with discontinuities, such as shocks in compressible flows. For ensembles with uncertainty in discontinuity location, the EnKF analysis can lose physical consistency, which can be viewed through three lenses: (i) bimodal pointwise statistics in the forecast ensemble, (ii) mixed-sign analysis weights in the affine superposition of forecast members, and (iii) spatially distributed Kalman-gain profiles that modify the state around a discontinuity rather than translating it coherently. In order to preserve flow features in the analysis state and, as such, maintain physical consistency, a feature-preserving latent-EnKF is introduced. The proposed method performs the ensemble update in a low-dimensional latent space learned by a coordinate-conditioned auto-decoder. The latent representation retains near-Gaussian ensemble statistics and provides coordinates in which flow features vary coherently across the forecast ensemble. The EnKF updates performed on the latent codes are decoded into coherent changes in the represented flow features, translating shocks through coordinate morphing rather than superposing them at displaced locations. The corresponding Kalman-gain profiles generated by the latent-EnKF exhibit an approximately step-like variation across the discontinuities, allowing the fronts to translate while preserving sharp features and monotonicity. Sod shock-tube, Mach 2 shock-cylinder, and immersed-body shape-inference tests with sparse, noisy observations demonstrate accurate recovery of shocks and contact discontinuities without spurious oscillations.

Sources

Related papers