Neural style transfer for smoke can already make a simulated plume look as if it were painted, carved, or woven, and it does so without breaking the physics. The flow is not repainted directly. Instead, the method computes an extra velocity field that pushes the smoke into the stylized shape. The cost is the obstacle. Every frame is solved by its own gradient-descent optimization. That takes 12 to 14 minutes per frame on a Eulerian grid and about 40 seconds per frame when the style lives on particles. An artist who changes the source, the camera, or the style weight must wait hours to see the result. This proposal replaces the per-frame optimization with a single trained network. The network reads a short window of the simulation and directly outputs the stylizing velocity field. It runs in well under a second per frame, which brings it within reach of interactive preview.
The design choice that matters is how the network represents its output. A dense voxel output costs memory that grows with the cube of the resolution. A coordinate network, meaning a small neural net queried once per point, is slow when queried across a full 3D volume. We propose a third option. The network outputs a set of Gaussian blobs that carry vector amplitudes. The stylizing velocity is the curl of their sum, and a curl is divergence-free exactly. As a result, the stylization cannot create or destroy smoke volume. The field can be evaluated at any resolution in closed form. The blobs can also be moved along with the flow from frame to frame, so the style stays attached to the smoke.
Core Claim
Optimization-based stylization works one frame at a time. A 3D convolutional network trained across many flows can learn to do the same job in one forward pass, with a quality gap small enough to be useful for preview and possibly for final output. The claim is specific to how the output is represented. For a fixed time budget, an analytic, divergence-free Gaussian vector potential should give sharper style detail and less flicker than either a voxel output decoded at coarse resolution and then upsampled, or a local implicit decoder queried at every render voxel. It should also respect incompressibility by construction rather than through a penalty.
The closest work does something different. Transport-Based Neural Style Transfer for Smoke Simulations (TNST) introduced the idea of stylizing through velocity potentials. It optimizes an irrotational potential $\Phi$, which captures structural motifs, and a vector potential $\Psi$, which captures swirling texture, on a voxel grid for each frame. Losses come from 2D image networks evaluated on differentiably rendered views. Lagrangian Neural Style Transfer for Fluids moved the optimized quantities onto particles to gain temporal coherence and a 20x speedup, but it is still an optimization per frame. Neither method learns anything that carries over to the next shot. Two papers have shown that trained 3D convolutional networks can run at interactive rates on smoke volumes. Deep Reconstruction of 3D Smoke Densities from Artist Sketches reconstructs static density from sketches in about 12.5 ms. Accelerating Eulerian Fluid Simulation With Convolutional Networks replaces the pressure solve in 39.9 ms at $128^3$. Neither one stylizes a time-varying flow. The Gaussian representation comes from A Grid-Free Fluid Solver based on Gaussian Spatial Representation. That paper uses Gaussian kernels with analytic derivatives as a forward solver, and each of its time steps requires an iterative optimization. Here the Gaussians are predicted by a network rather than optimized, and they are used for control rather than simulation.
Research Program
The network takes a window of $k$ consecutive frames of the base simulation, containing density and velocity, on a coarse grid such as $64^3$. It processes this window with factorized spatiotemporal convolutions: 3D spatial kernels inside each frame, followed by 1D convolutions across the window. This follows the argument of Learning Spatiotemporal Features with 3D Convolutional Networks that motion should be read jointly with appearance rather than from isolated frames. The network is conditioned on a style image through feature-statistics modulation, so one network serves many styles.
The network outputs amplitudes for a set of anisotropic Gaussians $G_i$ with centers $\mathbf{c}_i$. The stylizing velocity is
$$\mathbf{u}_s(\mathbf{x}) = \nabla \times \sum_i \mathbf{a}_i G_i(\mathbf{x}) + \nabla \sum_i b_i G_i(\mathbf{x}),$$
where $\mathbf{a}_i$ is a vector amplitude and $b_i$ is a scalar amplitude. The first term is divergence-free by construction. The second term is the optional irrotational term that TNST uses for sharp motifs, and it can be switched off when strict volume preservation is required. Kernels are binned spatially, so evaluating the field at a point touches only nearby kernels. The cost is therefore proportional to the number of kernels times their footprint, not the number of points times the cost of a network pass.
Kernels are not re-predicted from scratch each frame. Their centers are carried forward by the base velocity, and the network predicts only residual changes to amplitude and shape, plus the spawning and culling of kernels. This borrows the particle-attached coherence of the Lagrangian method while keeping a continuous field.
Training uses TNST's objective, with Gram-matrix style losses and feature content losses from a pre-trained 2D image network, applied to differentiably rendered views from random cameras. Two further losses are added. The first is a warping loss that compares each stylized frame with the previous stylized frame advected forward. The second is a smoothness penalty on the amplitude residuals. Training flows come from synthetic smoke plumes and jets and from ScalarFlow, which provides 100 real captured plume sequences of at least 150 steps at $100\times177\times100$. Whole sequences are held out for testing.
Baselines
The naive reference is the unstylized base simulation, rendered with the same cameras. It sets the floor on style loss and the ceiling on fidelity to the original flow.
The quality ceiling is per-frame optimization. We run TNST and Lagrangian stylization on the identical held-out flows with the same 2D loss network, cameras, and style images. On the smoke jet benchmark, the Lagrangian paper reports 0.66 minutes per frame for its method against 14 minutes for Eulerian TNST, and TNST reports 12 to 13 minutes per frame at 16 million voxels. Lacuna has no reported style-loss or flicker numbers for either method, so we will compute them ourselves. We will also report optimization curves: the loss each optimizer reaches after the same wall-clock time our network needs, and after the optimizers' default budgets. Our network beats them as a preview tool if its style and content losses match what the optimizers reach in at least 10x our runtime, and if its flicker is no worse than the Lagrangian method's. Matching the optimizers' fully converged loss would be a stronger result that we do not assume.
The strongest amortized competitor is a voxel decoder. It uses the same 3D convolutional encoder, but a transposed-convolution decoder, in the style of Deep End2End Voxel2Voxel Prediction, outputs $\Phi$ and $\Psi$ on a grid, and the result is trilinearly upsampled to render resolution. A second competitor replaces the Gaussian head with a local implicit decoder: a small network queried at each render voxel, conditioned on interpolated encoder features. All three heads share the encoder, training data, loss, and tuning budget. They are compared at matched end-to-end latency and matched memory. This three-way comparison isolates the proposal's key ingredient. Two further ablations remove the temporal window ($k=1$) and the kernel advection.
Why not just…?
Why not just output voxels from the 3D network and upsample? This is the real threat, and the experiments are built around it. Voxel decoding is simple, fast on GPUs, and needs no binning. Our bet is that the high-frequency texture that defines a style is lost when a coarse potential is upsampled, while decoding at full render resolution costs memory cubic in resolution. Gaussians can concentrate detail where the smoke is. If the voxel head equals the Gaussian head at matched latency on held-out ScalarFlow sequences, we will report that and drop the Gaussian representation. The amortization result would stand on its own.
Why not just run a fast 2D image style network on each rendered frame? That paints texture onto pixels rather than moving smoke. It breaks consistency across viewpoints, and it flickers over time. TNST reports severe flicker from frame-by-frame 2D transfer. tempoGAN found that it needed a temporal discriminator over advected frames to suppress flicker even when generating volumetric output. We include this baseline only on the flicker metric and the cross-view consistency metric.
Why not just warm-start the Lagrangian optimizer from the previous frame and run fewer iterations? This is a cheap and fair competitor. The equal-wall-clock comparison above covers it directly. It still requires the differentiable rendering and backpropagation machinery at preview time, and it learns nothing across shots, so a new style or source starts cold again.
Proposed Experiments
The decisive checks are four. First, the amortization gap: on held-out ScalarFlow and synthetic jet sequences, we compare multi-view style and content losses against converged TNST and Lagrangian results, and run a small artist preference study. Second, the representation comparison at matched latency, measuring style loss, flicker, and divergence of $\mathbf{u}_s$. Divergence should be zero to numerical precision for the curl-only Gaussian variant and nonzero for the voxel and implicit heads. Flicker is the error between each stylized frame and the previous one advected forward. Third, the temporal ablations: removing the window and removing kernel advection should each raise flicker measurably. If they do not, the spatiotemporal encoder is not earning its cost. Fourth, scaling: runtime and memory as render resolution rises from $128^3$ to $256^3$ and beyond, with the network kept at $64^3$ input. This tests whether evaluation of the Gaussian field grows with kernel count rather than with voxel count. For context, we report the 39.9 ms pressure-network figure and the 12.5 ms sketch-reconstruction figure as existing interactive 3D convolutional runtimes, not as direct competitors. We also test generalization to unseen inflow shapes and obstacles. Boundary drift near walls is a known failure of learned fluid networks and is likely to be where this method breaks first.
References
- Transport-Based Neural Style Transfer for Smoke Simulations
- Lagrangian Neural Style Transfer for Fluids
- Deep Reconstruction of 3D Smoke Densities from Artist Sketches
- Accelerating Eulerian Fluid Simulation With Convolutional Networks
- Gaussian Fluids: A Grid-Free Fluid Solver based on Gaussian Spatial Representation
- Learning Spatiotemporal Features with 3D Convolutional Networks
- ScalarFlow: a large-scale volumetric data set of real-world scalar transport flows for computer animation and machine learning
- Deep End2End Voxel2Voxel Prediction
- tempoGAN: a temporally coherent, volumetric GAN for super-resolution fluid flow