Chelsea707 commited on
Commit
4dac0fe
·
verified ·
1 Parent(s): 057244b

Add Batch c6cddf2f-095b-42e2-aad4-9d49866b157a data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_content_list.json +0 -0
  3. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_model.json +0 -0
  4. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_origin.pdf +3 -0
  5. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/full.md +0 -0
  6. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/images.zip +3 -0
  7. 2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/layout.json +0 -0
  8. 2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_content_list.json +0 -0
  9. 2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_model.json +0 -0
  10. 2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_origin.pdf +3 -0
  11. 2024/Neural Diffusion Models/full.md +823 -0
  12. 2024/Neural Diffusion Models/images.zip +3 -0
  13. 2024/Neural Diffusion Models/layout.json +0 -0
  14. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_content_list.json +0 -0
  15. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_model.json +0 -0
  16. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_origin.pdf +3 -0
  17. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/full.md +534 -0
  18. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/images.zip +3 -0
  19. 2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/layout.json +0 -0
  20. 2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_content_list.json +0 -0
  21. 2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_model.json +0 -0
  22. 2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_origin.pdf +3 -0
  23. 2024/Neural Jump-Diffusion Temporal Point Processes/full.md +714 -0
  24. 2024/Neural Jump-Diffusion Temporal Point Processes/images.zip +3 -0
  25. 2024/Neural Jump-Diffusion Temporal Point Processes/layout.json +0 -0
  26. 2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_content_list.json +0 -0
  27. 2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_model.json +0 -0
  28. 2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_origin.pdf +3 -0
  29. 2024/Neural NeRF Compression/full.md +510 -0
  30. 2024/Neural NeRF Compression/images.zip +3 -0
  31. 2024/Neural NeRF Compression/layout.json +0 -0
  32. 2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_content_list.json +0 -0
  33. 2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_model.json +0 -0
  34. 2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_origin.pdf +3 -0
  35. 2024/Neural Networks Learn Statistics of Increasing Complexity/full.md +613 -0
  36. 2024/Neural Networks Learn Statistics of Increasing Complexity/images.zip +3 -0
  37. 2024/Neural Networks Learn Statistics of Increasing Complexity/layout.json +0 -0
  38. 2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_content_list.json +0 -0
  39. 2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_model.json +0 -0
  40. 2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_origin.pdf +3 -0
  41. 2024/Neural Operators with Localized Integral and Differential Kernels/full.md +750 -0
  42. 2024/Neural Operators with Localized Integral and Differential Kernels/images.zip +3 -0
  43. 2024/Neural Operators with Localized Integral and Differential Kernels/layout.json +0 -0
  44. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_content_list.json +0 -0
  45. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_model.json +0 -0
  46. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_origin.pdf +3 -0
  47. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/full.md +0 -0
  48. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/images.zip +3 -0
  49. 2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/layout.json +0 -0
  50. 2024/Neural Tangent Kernels Motivate Cross-Covariance Graphs in Neural Networks/00c7ff33-5f2d-47e1-b94c-fb3c64bdaa24_content_list.json +0 -0
.gitattributes CHANGED
@@ -4907,3 +4907,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
4907
  2024/Networked[[:space:]]Inequality_[[:space:]]Preferential[[:space:]]Attachment[[:space:]]Bias[[:space:]]in[[:space:]]Graph[[:space:]]Neural[[:space:]]Network[[:space:]]Link[[:space:]]Prediction/4170632a-1003-45ab-9016-18061794918e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4908
  2024/Neural[[:space:]]Collapse[[:space:]]for[[:space:]]Cross-entropy[[:space:]]Class-Imbalanced[[:space:]]Learning[[:space:]]with[[:space:]]Unconstrained[[:space:]]ReLU[[:space:]]Features[[:space:]]Model/f13bd356-598b-48a5-bc0b-f90259e522b6_origin.pdf filter=lfs diff=lfs merge=lfs -text
4909
  2024/Neural[[:space:]]Collapse[[:space:]]in[[:space:]]Multi-label[[:space:]]Learning[[:space:]]with[[:space:]]Pick-all-label[[:space:]]Loss/f3f23503-d812-4439-a6b9-3893867cae4e_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4907
  2024/Networked[[:space:]]Inequality_[[:space:]]Preferential[[:space:]]Attachment[[:space:]]Bias[[:space:]]in[[:space:]]Graph[[:space:]]Neural[[:space:]]Network[[:space:]]Link[[:space:]]Prediction/4170632a-1003-45ab-9016-18061794918e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4908
  2024/Neural[[:space:]]Collapse[[:space:]]for[[:space:]]Cross-entropy[[:space:]]Class-Imbalanced[[:space:]]Learning[[:space:]]with[[:space:]]Unconstrained[[:space:]]ReLU[[:space:]]Features[[:space:]]Model/f13bd356-598b-48a5-bc0b-f90259e522b6_origin.pdf filter=lfs diff=lfs merge=lfs -text
4909
  2024/Neural[[:space:]]Collapse[[:space:]]in[[:space:]]Multi-label[[:space:]]Learning[[:space:]]with[[:space:]]Pick-all-label[[:space:]]Loss/f3f23503-d812-4439-a6b9-3893867cae4e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4910
+ 2024/Neural[[:space:]]Collapse[[:space:]]meets[[:space:]]Differential[[:space:]]Privacy_[[:space:]]Curious[[:space:]]behaviors[[:space:]]of[[:space:]]NoisyGD[[:space:]]with[[:space:]]Near-Perfect[[:space:]]Representation[[:space:]]Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_origin.pdf filter=lfs diff=lfs merge=lfs -text
4911
+ 2024/Neural[[:space:]]Diffusion[[:space:]]Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
4912
+ 2024/Neural[[:space:]]Image[[:space:]]Compression[[:space:]]with[[:space:]]Text-guided[[:space:]]Encoding[[:space:]]for[[:space:]]both[[:space:]]Pixel-level[[:space:]]and[[:space:]]Perceptual[[:space:]]Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_origin.pdf filter=lfs diff=lfs merge=lfs -text
4913
+ 2024/Neural[[:space:]]Jump-Diffusion[[:space:]]Temporal[[:space:]]Point[[:space:]]Processes/e9547c48-812c-46c0-8f9d-b917215e2546_origin.pdf filter=lfs diff=lfs merge=lfs -text
4914
+ 2024/Neural[[:space:]]NeRF[[:space:]]Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_origin.pdf filter=lfs diff=lfs merge=lfs -text
4915
+ 2024/Neural[[:space:]]Networks[[:space:]]Learn[[:space:]]Statistics[[:space:]]of[[:space:]]Increasing[[:space:]]Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_origin.pdf filter=lfs diff=lfs merge=lfs -text
4916
+ 2024/Neural[[:space:]]Operators[[:space:]]with[[:space:]]Localized[[:space:]]Integral[[:space:]]and[[:space:]]Differential[[:space:]]Kernels/3932d016-37c4-4572-a91b-464a12932a32_origin.pdf filter=lfs diff=lfs merge=lfs -text
4917
+ 2024/Neural[[:space:]]SPH_[[:space:]]Improved[[:space:]]Neural[[:space:]]Modeling[[:space:]]of[[:space:]]Lagrangian[[:space:]]Fluid[[:space:]]Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_origin.pdf filter=lfs diff=lfs merge=lfs -text
4918
+ 2024/Neural[[:space:]]Tangent[[:space:]]Kernels[[:space:]]Motivate[[:space:]]Cross-Covariance[[:space:]]Graphs[[:space:]]in[[:space:]]Neural[[:space:]]Networks/00c7ff33-5f2d-47e1-b94c-fb3c64bdaa24_origin.pdf filter=lfs diff=lfs merge=lfs -text
4919
+ 2024/Neural[[:space:]]Tangent[[:space:]]Kernels[[:space:]]for[[:space:]]Axis-Aligned[[:space:]]Tree[[:space:]]Ensembles/6a791f11-c988-4380-9eb0-c08df5d27c67_origin.pdf filter=lfs diff=lfs merge=lfs -text
4920
+ 2024/Neural[[:space:]]operators[[:space:]]meet[[:space:]]conjugate[[:space:]]gradients_[[:space:]]The[[:space:]]FCG-NO[[:space:]]method[[:space:]]for[[:space:]]efficient[[:space:]]PDE[[:space:]]solving/e054c982-7b0e-42fd-9ae5-ed5ae2cac254_origin.pdf filter=lfs diff=lfs merge=lfs -text
4921
+ 2024/Neural-Kernel[[:space:]]Conditional[[:space:]]Mean[[:space:]]Embeddings/a360220b-4039-484f-b403-57a8af9588e2_origin.pdf filter=lfs diff=lfs merge=lfs -text
4922
+ 2024/NeuralIndicator_[[:space:]]Implicit[[:space:]]Surface[[:space:]]Reconstruction[[:space:]]from[[:space:]]Neural[[:space:]]Indicator[[:space:]]Priors/3dc3477e-bb8e-44a7-8198-02c616ca278c_origin.pdf filter=lfs diff=lfs merge=lfs -text
4923
+ 2024/Neuro-Symbolic[[:space:]]Temporal[[:space:]]Point[[:space:]]Processes/6d7bb559-f0b2-4bc8-a251-647937916af4_origin.pdf filter=lfs diff=lfs merge=lfs -text
4924
+ 2024/Neuro-Visualizer_[[:space:]]A[[:space:]]Novel[[:space:]]Auto-Encoder-Based[[:space:]]Loss[[:space:]]Landscape[[:space:]]Visualization[[:space:]]Method[[:space:]]With[[:space:]]an[[:space:]]Application[[:space:]]in[[:space:]]Knowledge-Guided[[:space:]]Machine[[:space:]]Learning/3c7d8413-4bca-40cb-80a3-69458526f2bb_origin.pdf filter=lfs diff=lfs merge=lfs -text
4925
+ 2024/Neurodegenerative[[:space:]]Brain[[:space:]]Network[[:space:]]Classification[[:space:]]via[[:space:]]Adaptive[[:space:]]Diffusion[[:space:]]with[[:space:]]Temporal[[:space:]]Regularization/6b134436-c2d9-4ee8-90be-aff1f73902d6_origin.pdf filter=lfs diff=lfs merge=lfs -text
4926
+ 2024/Neuroexplicit[[:space:]]Diffusion[[:space:]]Models[[:space:]]for[[:space:]]Inpainting[[:space:]]of[[:space:]]Optical[[:space:]]Flow[[:space:]]Fields/5f0d1433-39b1-4788-99f2-f3e47c624258_origin.pdf filter=lfs diff=lfs merge=lfs -text
4927
+ 2024/New[[:space:]]Bounds[[:space:]]on[[:space:]]the[[:space:]]Cohesion[[:space:]]of[[:space:]]Complete-link[[:space:]]and[[:space:]]Other[[:space:]]Linkage[[:space:]]Methods[[:space:]]for[[:space:]]Agglomerative[[:space:]]Clustering/fe163a69-fbc5-450b-a99b-275aa7dd75f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
4928
+ 2024/New[[:space:]]Sample[[:space:]]Complexity[[:space:]]Bounds[[:space:]]for[[:space:]]Sample[[:space:]]Average[[:space:]]Approximation[[:space:]]in[[:space:]]Heavy-Tailed[[:space:]]Stochastic[[:space:]]Programming/88b4ab6d-542d-4c04-a7bc-c0158103a3cc_origin.pdf filter=lfs diff=lfs merge=lfs -text
4929
+ 2024/No[[:space:]]Dimensional[[:space:]]Sampling[[:space:]]Coresets[[:space:]]for[[:space:]]Classification/d6dbad67-1577-4716-b12e-6477d963dba9_origin.pdf filter=lfs diff=lfs merge=lfs -text
4930
+ 2024/No[[:space:]]Double[[:space:]]Descent[[:space:]]in[[:space:]]Principal[[:space:]]Component[[:space:]]Regression_[[:space:]]A[[:space:]]High-Dimensional[[:space:]]Analysis/19f52532-a9a2-44f2-9c78-4d20f94c16d9_origin.pdf filter=lfs diff=lfs merge=lfs -text
4931
+ 2024/No[[:space:]]Free[[:space:]]Prune_[[:space:]]Information-Theoretic[[:space:]]Barriers[[:space:]]to[[:space:]]Pruning[[:space:]]at[[:space:]]Initialization/fac171d1-4d2b-4a21-ac5f-787f918e9110_origin.pdf filter=lfs diff=lfs merge=lfs -text
4932
+ 2024/No[[:space:]]Wrong[[:space:]]Turns_[[:space:]]The[[:space:]]Simple[[:space:]]Geometry[[:space:]]Of[[:space:]]Neural[[:space:]]Networks[[:space:]]Optimization[[:space:]]Paths/7c9b330b-eeac-42e2-aca3-bc680f58574b_origin.pdf filter=lfs diff=lfs merge=lfs -text
4933
+ 2024/No-Regret[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]in[[:space:]]Smooth[[:space:]]MDPs/49138d6b-dcae-4a64-9605-d873b203d876_origin.pdf filter=lfs diff=lfs merge=lfs -text
4934
+ 2024/Noise-Adaptive[[:space:]]Confidence[[:space:]]Sets[[:space:]]for[[:space:]]Linear[[:space:]]Bandits[[:space:]]and[[:space:]]Application[[:space:]]to[[:space:]]Bayesian[[:space:]]Optimization/8b37fde7-9489-4b39-9fb2-6a97dd0124fb_origin.pdf filter=lfs diff=lfs merge=lfs -text
4935
+ 2024/Noise-Aware[[:space:]]Algorithm[[:space:]]for[[:space:]]Heterogeneous[[:space:]]Differentially[[:space:]]Private[[:space:]]Federated[[:space:]]Learning/da40f2f4-d6ac-4985-beee-b323dd197588_origin.pdf filter=lfs diff=lfs merge=lfs -text
4936
+ 2024/Non-Asymptotic[[:space:]]Analysis[[:space:]]for[[:space:]]Single-Loop[[:space:]](Natural)[[:space:]]Actor-Critic[[:space:]]with[[:space:]]Compatible[[:space:]]Function[[:space:]]Approximation/ba6f3aba-9e9b-4a96-85a8-f1736a9ea364_origin.pdf filter=lfs diff=lfs merge=lfs -text
4937
+ 2024/Non-Vacuous[[:space:]]Generalization[[:space:]]Bounds[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/46feeb70-4a95-488b-80bb-48edda0c41e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
4938
+ 2024/Non-clairvoyant[[:space:]]Scheduling[[:space:]]with[[:space:]]Partial[[:space:]]Predictions/ffe5399e-09e4-45ac-8203-2c371df5065a_origin.pdf filter=lfs diff=lfs merge=lfs -text
4939
+ 2024/Non-confusing[[:space:]]Generation[[:space:]]of[[:space:]]Customized[[:space:]]Concepts[[:space:]]in[[:space:]]Diffusion[[:space:]]Models/7a69df5e-6b24-4dad-abab-72af09e05fbb_origin.pdf filter=lfs diff=lfs merge=lfs -text
4940
+ 2024/Non-convex[[:space:]]Stochastic[[:space:]]Composite[[:space:]]Optimization[[:space:]]with[[:space:]]Polyak[[:space:]]Momentum/0070f2d4-1ee7-4c5a-b059-8ce90e536950_origin.pdf filter=lfs diff=lfs merge=lfs -text
4941
+ 2024/Non-parametric[[:space:]]Online[[:space:]]Change[[:space:]]Point[[:space:]]Detection[[:space:]]on[[:space:]]Riemannian[[:space:]]Manifolds/a804954e-6fd9-4a0d-8497-bdf94f7a6760_origin.pdf filter=lfs diff=lfs merge=lfs -text
4942
+ 2024/Non-stationary[[:space:]]Online[[:space:]]Convex[[:space:]]Optimization[[:space:]]with[[:space:]]Arbitrary[[:space:]]Delays/3e81b305-83a6-440d-84e7-6a8b25ee092c_origin.pdf filter=lfs diff=lfs merge=lfs -text
4943
+ 2024/Nonlinear[[:space:]]Filtering[[:space:]]with[[:space:]]Brenier[[:space:]]Optimal[[:space:]]Transport[[:space:]]Maps/44de1cd8-626b-4de1-81c5-fb586757afd0_origin.pdf filter=lfs diff=lfs merge=lfs -text
4944
+ 2024/Nonparametric[[:space:]]Teaching[[:space:]]of[[:space:]]Implicit[[:space:]]Neural[[:space:]]Representations/426070c5-99e1-4c5c-86e6-a0d91df1ea6c_origin.pdf filter=lfs diff=lfs merge=lfs -text
4945
+ 2024/Nonsmooth[[:space:]]Implicit[[:space:]]Differentiation_[[:space:]]Deterministic[[:space:]]and[[:space:]]Stochastic[[:space:]]Convergence[[:space:]]Rates/713fae01-67fd-4f05-8ab2-ae4014bd69ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
4946
+ 2024/Not[[:space:]]Just[[:space:]]Pretty[[:space:]]Pictures_[[:space:]]Toward[[:space:]]Interventional[[:space:]]Data[[:space:]]Augmentation[[:space:]]Using[[:space:]]Text-to-Image[[:space:]]Generators/c05465b6-10fc-443f-bc5a-2a7aaf03b2ac_origin.pdf filter=lfs diff=lfs merge=lfs -text
4947
+ 2024/Not[[:space:]]all[[:space:]]distributional[[:space:]]shifts[[:space:]]are[[:space:]]equal_[[:space:]]Fine-grained[[:space:]]robust[[:space:]]conformal[[:space:]]inference/278e18ae-efb1-4905-bdf1-eae9387d1b3e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4948
+ 2024/Novel[[:space:]]Spectral[[:space:]]Algorithms[[:space:]]for[[:space:]]the[[:space:]]Partial[[:space:]]Credit[[:space:]]Model/a7fd2da2-c6d6-47f2-ab34-c23da70a1c6f_origin.pdf filter=lfs diff=lfs merge=lfs -text
4949
+ 2024/O$n$[[:space:]]Learning[[:space:]]Deep[[:space:]]O($n$)-Equivariant[[:space:]]Hyperspheres/d6e9d3b5-6665-43a9-9354-f83e7cd4d853_origin.pdf filter=lfs diff=lfs merge=lfs -text
4950
+ 2024/OAK_[[:space:]]Enriching[[:space:]]Document[[:space:]]Representations[[:space:]]using[[:space:]]Auxiliary[[:space:]]Knowledge[[:space:]]for[[:space:]]Extreme[[:space:]]Classification/1a3a9e5c-3f3c-4b4b-b765-342b929d9a9e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4951
+ 2024/ODIM_[[:space:]]Outlier[[:space:]]Detection[[:space:]]via[[:space:]]Likelihood[[:space:]]of[[:space:]]Under-Fitted[[:space:]]Generative[[:space:]]Models/31614571-a089-4901-8bbe-45c2275697f9_origin.pdf filter=lfs diff=lfs merge=lfs -text
4952
+ 2024/ODIN_[[:space:]]Disentangled[[:space:]]Reward[[:space:]]Mitigates[[:space:]]Hacking[[:space:]]in[[:space:]]RLHF/29d99e0c-c6dd-4cb8-bf7b-a83b0fd8d693_origin.pdf filter=lfs diff=lfs merge=lfs -text
4953
+ 2024/OLLIE_[[:space:]]Imitation[[:space:]]Learning[[:space:]]from[[:space:]]Offline[[:space:]]Pretraining[[:space:]]to[[:space:]]Online[[:space:]]Finetuning/165df645-c4ad-4a2f-a3ae-1a5a1e749c9b_origin.pdf filter=lfs diff=lfs merge=lfs -text
4954
+ 2024/OMPO_[[:space:]]A[[:space:]]Unified[[:space:]]Framework[[:space:]]for[[:space:]]RL[[:space:]]under[[:space:]]Policy[[:space:]]and[[:space:]]Dynamics[[:space:]]Shifts/362283b0-e237-402f-a63b-c16dd4c149bc_origin.pdf filter=lfs diff=lfs merge=lfs -text
4955
+ 2024/OODRobustBench_[[:space:]]a[[:space:]]Benchmark[[:space:]]and[[:space:]]Large-Scale[[:space:]]Analysis[[:space:]]of[[:space:]]Adversarial[[:space:]]Robustness[[:space:]]under[[:space:]]Distribution[[:space:]]Shift/98f61044-967c-449f-b86f-940a23b1186c_origin.pdf filter=lfs diff=lfs merge=lfs -text
4956
+ 2024/OSN_[[:space:]]Infinite[[:space:]]Representations[[:space:]]of[[:space:]]Dynamic[[:space:]]3D[[:space:]]Scenes[[:space:]]from[[:space:]]Monocular[[:space:]]Videos/6d515a32-47d5-4447-aa9a-f996e15dcb97_origin.pdf filter=lfs diff=lfs merge=lfs -text
4957
+ 2024/OSSCAR_[[:space:]]One-Shot[[:space:]]Structured[[:space:]]Pruning[[:space:]]in[[:space:]]Vision[[:space:]]and[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Combinatorial[[:space:]]Optimization/7d5298f5-537b-492b-abbe-09294246fbca_origin.pdf filter=lfs diff=lfs merge=lfs -text
4958
+ 2024/OT-CLIP_[[:space:]]Understanding[[:space:]]and[[:space:]]Generalizing[[:space:]]CLIP[[:space:]]via[[:space:]]Optimal[[:space:]]Transport/549da83a-8523-4feb-be37-320e49883716_origin.pdf filter=lfs diff=lfs merge=lfs -text
4959
+ 2024/OTMatch_[[:space:]]Improving[[:space:]]Semi-Supervised[[:space:]]Learning[[:space:]]with[[:space:]]Optimal[[:space:]]Transport/0cb4feb3-fd88-4a88-86c7-809ffa4e0e62_origin.pdf filter=lfs diff=lfs merge=lfs -text
4960
+ 2024/Observable[[:space:]]Propagation_[[:space:]]Uncovering[[:space:]]Feature[[:space:]]Vectors[[:space:]]in[[:space:]]Transformers/c76481db-083b-4dba-ba88-7fe8ad9e9f80_origin.pdf filter=lfs diff=lfs merge=lfs -text
4961
+ 2024/Off-policy[[:space:]]Evaluation[[:space:]]Beyond[[:space:]]Overlap_[[:space:]]Sharp[[:space:]]Partial[[:space:]]Identification[[:space:]]Under[[:space:]]Smoothness/b87e90ca-839b-4e4b-adfc-0ebb96fec6c4_origin.pdf filter=lfs diff=lfs merge=lfs -text
4962
+ 2024/Offline[[:space:]]Actor-Critic[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]Scales[[:space:]]to[[:space:]]Large[[:space:]]Models/556b5b24-f246-4f4b-a4ca-5ff14ab0ef8e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4963
+ 2024/Offline[[:space:]]Imitation[[:space:]]from[[:space:]]Observation[[:space:]]via[[:space:]]Primal[[:space:]]Wasserstein[[:space:]]State[[:space:]]Occupancy[[:space:]]Matching/0a9c92bc-71fc-4d8f-b06b-5d1eba1ea4ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
4964
+ 2024/Offline[[:space:]]Inverse[[:space:]]RL_[[:space:]]New[[:space:]]Solution[[:space:]]Concepts[[:space:]]and[[:space:]]Provably[[:space:]]Efficient[[:space:]]Algorithms/b104c69f-0c61-4665-91ec-4fbbeabdce1c_origin.pdf filter=lfs diff=lfs merge=lfs -text
4965
+ 2024/Offline[[:space:]]Multi-Objective[[:space:]]Optimization/c7efc4b0-f447-4804-8253-2135405c0ddf_origin.pdf filter=lfs diff=lfs merge=lfs -text
4966
+ 2024/Offline[[:space:]]Training[[:space:]]of[[:space:]]Language[[:space:]]Model[[:space:]]Agents[[:space:]]with[[:space:]]Functions[[:space:]]as[[:space:]]Learnable[[:space:]]Weights/feb63713-8b43-4e1a-b4b0-fa0d4bf75639_origin.pdf filter=lfs diff=lfs merge=lfs -text
4967
+ 2024/Offline[[:space:]]Transition[[:space:]]Modeling[[:space:]]via[[:space:]]Contrastive[[:space:]]Energy[[:space:]]Learning/d86241de-e635-47e7-a9ef-da605d407a51_origin.pdf filter=lfs diff=lfs merge=lfs -text
4968
+ 2024/Offline-Boosted[[:space:]]Actor-Critic_[[:space:]]Adaptively[[:space:]]Blending[[:space:]]Optimal[[:space:]]Historical[[:space:]]Behaviors[[:space:]]in[[:space:]]Deep[[:space:]]Off-Policy[[:space:]]RL/edc26eba-51b7-4c34-b32f-98544ce97709_origin.pdf filter=lfs diff=lfs merge=lfs -text
4969
+ 2024/On[[:space:]]Computational[[:space:]]Limits[[:space:]]of[[:space:]]Modern[[:space:]]Hopfield[[:space:]]Models_[[:space:]]A[[:space:]]Fine-Grained[[:space:]]Complexity[[:space:]]Analysis/5fe8daeb-d6c6-4e89-9207-7d3c4a05a7cc_origin.pdf filter=lfs diff=lfs merge=lfs -text
4970
+ 2024/On[[:space:]]Convergence[[:space:]]of[[:space:]]Incremental[[:space:]]Gradient[[:space:]]for[[:space:]]Non-convex[[:space:]]Smooth[[:space:]]Functions/b9dc1666-acf6-4647-b590-14c534d3d43e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4971
+ 2024/On[[:space:]]Discrete[[:space:]]Prompt[[:space:]]Optimization[[:space:]]for[[:space:]]Diffusion[[:space:]]Models/639a27cd-d8dd-4f5d-95cb-57f12e39899e_origin.pdf filter=lfs diff=lfs merge=lfs -text
4972
+ 2024/On[[:space:]]Gradient-like[[:space:]]Explanation[[:space:]]under[[:space:]]a[[:space:]]Black-box[[:space:]]Setting_[[:space:]]When[[:space:]]Black-box[[:space:]]Explanations[[:space:]]Become[[:space:]]as[[:space:]]Good[[:space:]]as[[:space:]]White-box/4edbe71f-32f0-44a2-9348-8fec5b4b1ad8_origin.pdf filter=lfs diff=lfs merge=lfs -text
4973
+ 2024/On[[:space:]]Hypothesis[[:space:]]Transfer[[:space:]]Learning[[:space:]]of[[:space:]]Functional[[:space:]]Linear[[:space:]]Models/12c454e5-4f68-47e3-b337-6789b606ffc0_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/16e661fb-361f-40e6-bd78-e30bd470f36a_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7b95b0719155a08a9d178bc279669f81712dec16a59e1fac5ef5ba1ced2b7c74
3
+ size 713499
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a291dca165953df5f3d56c1aea763a7ee42cbdd4c273ebc4af5815fb5dee5659
3
+ size 1124204
2024/Neural Collapse meets Differential Privacy_ Curious behaviors of NoisyGD with Near-Perfect Representation Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Diffusion Models/a9265fd2-ac1e-4c5b-8fd8-5966a2b492f1_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f36464ffe4edab097689f9a465b4912e7e0b3b89364f58cbd0df430c56c98580
3
+ size 6086434
2024/Neural Diffusion Models/full.md ADDED
@@ -0,0 +1,823 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Grigory Bartosh<sup>1</sup> Dmitry Vetrov<sup>2</sup> Christian A. Naesseth<sup>1</sup>
2
+
3
+ # Abstract
4
+
5
+ Diffusion models have shown remarkable performance on many generative tasks. Despite recent success, most diffusion models are restricted in that they only allow linear transformation of the data distribution. In contrast, broader family of transformations can help train generative distributions more efficiently, simplifying the reverse process and closing the gap between the true negative log-likelihood and the variational approximation. In this paper, we present Neural Diffusion Models (NDMs), a generalization of conventional diffusion models that enables defining and learning time-dependent non-linear transformations of data. We show how to optimise NDMs using a variational bound in a simulation-free setting. Moreover, we derive a time-continuous formulation of NDMs, which allows fast and reliable inference using off-the-shelf numerical ODE and SDE solvers. Finally, we demonstrate the utility of NDMs through experiments on many image generation benchmarks, including MNIST, CIFAR-10, downsampled versions of ImageNet and CelebA-HQ. NDMs outperform conventional diffusion models in terms of likelihood, achieving state-of-the-art results on ImageNet and CelebAHQ, and produces high-quality samples.
6
+
7
+ # 1. Introduction
8
+
9
+ Generative models are a powerful class of probabilistic machine learning models with a wide range of applications from e.g. art and music to medicine and physics (Tomczak, 2022; Creswell et al., 2018; Papamakarios et al., 2021; Yang et al., 2022). Generative models learn to mimic the underlying probability distribution of a given data set and can generate novel samples that are similar to the original data.
10
+
11
+ <sup>1</sup>University of Amsterdam <sup>2</sup>Constructor University, Bremen. Correspondence to: Grigory Bartosh <g.bartosh@uva.nl>, Dmitry Vetrov <dvetrov@constructor.university>, Christian A. Naesseth <c.a.naeseth@uva.nl>.
12
+
13
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
14
+
15
+ They can for example be used for data augmentation, as well as for unsupervised learning.
16
+
17
+ Diffusion models have emerged as a family of generative models that excel at several generative tasks (Sohl-Dickstein et al., 2015; Ho et al., 2020). They parameterize the data model through an iterative refinement process, the reverse process, that builds up the data step-by-step from pure noise. For training purposes an auxiliary noising process, the forward process, is introduced that successively adds noise to data. The reverse process is then optimized to resemble the forward process. Despite success in various domains (Sohl-Dickstein et al., 2015; Ho et al., 2020; Sahara et al., 2021; Popov et al., 2021; Watson et al., 2022; Trippe et al., 2023), a key limitation of most existing diffusion models is that they rely on a fixed and pre-specified forward process that is unable to adapt to the specific task or data at hand. At the same time there are many works (Hoogeboom & Salimans, 2023; Rombach et al., 2022; Lipman et al., 2023) that improve performance of diffusion models by modifications of the forward processes.
18
+
19
+ In this paper we develop Neural Diffusion Models (NDMs), a general framework that enables non-linear, time-dependent and learnable data transformations. We extend the approach by Song et al. (2021a) and construct the forward process as a non-Markovian sequence of latent variables; each latent variable is constructed through a transformation of the data to which we then inject noise. This is then leveraged in the corresponding reverse process. To train NDMs efficiently we generalize the diffusion objective while keeping it a simulation-free bound on the log-likelihood. Furthermore, we derive the time-continuous analogue of the objective function as well as the stochastic differential equation (SDE) and ordinary differential equation (ODE) corresponding to the reverse process.
20
+
21
+ We demonstrate how NDMs generalize several existing diffusion models and then propose a new model with learnable transformations of data parameterized by a neural network. To illustrate the empirical properties of NDMs we provide experimental results on a synthetic data as well as on MNIST, CIFAR-10, downsampled ImageNet and CelebA-HQ image datasets. NDMs consistently outperforms baselines in terms of negative log-likelihood, achieving state-of-the-art results for diffusion models on ImageNet 32 and 64, as well as CelebA-HQ.
22
+
23
+ The main motivation for NDMs is improved likelihood and density estimation, crucial for applications to compression (MacKay, 2003), semi-supervised learning (Dai et al., 2017), adversarial purification (Song et al., 2017), and many others. However, for completeness we also study the impact of NDMs on image generation quality. We find that for small to medium number of steps NDMs achieves better image generation quality than denoising diffusion probabilistic models (DDPMs) (Ho et al., 2020), and comparable results for a large number of steps.
24
+
25
+ Finally, we demonstrate that NDMs allows learning simpler generative dynamics like dynamical optimal transport, which conventional diffusion models are incapable of learning.
26
+
27
+ We summarize the contributions as follows:
28
+
29
+ 1. We propose neural diffusion models or NDMs, a new framework that generalizes conventional diffusion models in both discrete and continuous time settings.
30
+ 2. We develop an objective function to optimize NDMs that upper bounds the negative log-likelihood and study its properties.
31
+ 3. We demonstrate the utility of NDMs with learnable transformations in terms of consistently and significantly improved log-likelihood, as well as better or comparable generation quality.
32
+
33
+ # 2. Background
34
+
35
+ Diffusion models are generative models that make use of latent variables. Given a sample from the data distribution $\mathbf{x} \sim q(\mathbf{x})$ , we define a forward noisung process that produces latent variables $\mathbf{z}_0, \mathbf{z}_1, \ldots, \mathbf{z}_T$ . In contrast, the reverse generative process reverts the forward process, starting by first generating the same latent variables and then data $\mathbf{x}$ .
36
+
37
+ The standard approach to specify the forward process is as a linear Gaussian Markov chain (Sohl-Dickstein et al., 2015; Ho et al., 2020). However, we can also use an implicit definition of the forward process from Song et al. (2021a). This will turn out to be useful for our purposes and is what we focus on here. To construct the implicit forward process we first define the marginal distributions $q(\mathbf{z}_t|\mathbf{x})$ . Using these marginal distributions we can define the joint distribution of all latent variables $\mathbf{z}_0,\mathbf{z}_1,\dots ,\mathbf{z}_T$ as follows:
38
+
39
+ $$
40
+ q \left(\mathbf {z} _ {0: T} | \mathbf {x}\right) = q \left(\mathbf {z} _ {T} | \mathbf {x}\right) \prod_ {t = 1} ^ {T} q \left(\mathbf {z} _ {t - 1} | \mathbf {z} _ {t}, \mathbf {x}\right),
41
+ $$
42
+
43
+ with $q(\mathbf{z}_{t - 1}|\mathbf{z}_t,\mathbf{x})$ such that
44
+
45
+ $$
46
+ q \left(\mathbf {z} _ {t - 1} \mid \mathbf {x}\right) = \int q \left(\mathbf {z} _ {t} \mid \mathbf {x}\right) q \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t}, \mathbf {x}\right) d \mathbf {z} _ {t}. \tag {1}
47
+ $$
48
+
49
+ ![](images/8b1837d58a59bd712f3e3afd93411761cfce8bee91eb182d9fe13584c6327334.jpg)
50
+
51
+ ![](images/073331fbbe3b0b6b70e8c69fce3a349dca109529cce1cf4aa30cb167699e3a28.jpg)
52
+ (a) DDIM
53
+ (b) NDM
54
+ Figure 1. The directed graphical models of DDIM and NDM.
55
+
56
+ Here we make use of the posterior distribution $q(\mathbf{z}_{t-1}|\mathbf{z}_t, \mathbf{x})$ instead of the regular forward distribution $q(\mathbf{z}_t|\mathbf{z}_{t-1})$ . Due to the dependence also on the data $\mathbf{x}$ it is a non-Markovian forward process (see Figure 1a). In general the forward process is considered fixed and has no trainable parameters. Moreover, it is specified in such a way that $q(\mathbf{z}_0|\mathbf{x}) \approx \delta(\mathbf{z}_0 - \mathbf{x})$ and $q(\mathbf{z}_T|\mathbf{x}) \approx \mathcal{N}(\mathbf{z}_T; 0, I)$ . So if $q(\mathbf{z}_{t-1}|\mathbf{z}_t)$ was available we could sample $\mathbf{z}_T \sim \mathcal{N}(\mathbf{z}_T; 0, I)$ and run the reverse process to get $\mathbf{z}_0 \sim q(\mathbf{z}_0) \approx q(\mathbf{x})$ . However, the distribution $q(\mathbf{z}_{t-1}|\mathbf{z}_t)$ depends implicitly on the data distribution $q(\mathbf{x})$ and thus has a complicated form, so we instead approximate the reverse process using a Markov chain with distribution $p_{\theta}(\mathbf{z}_{0:T})$ :
57
+
58
+ $$
59
+ p _ {\theta} \left(\mathbf {z} _ {0: T}\right) = p \left(\mathbf {z} _ {T}\right) \prod_ {t = 1} ^ {T} p _ {\theta} \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t}\right), \tag {2}
60
+ $$
61
+
62
+ where $p(\mathbf{z}_T) = \mathcal{N}(\mathbf{z}_T;0,I)$
63
+
64
+ The combination of the forward process $q$ and the reverse process $p_{\theta}$ is a form of (hierarchical) variational autoencoder (Kingma & Welling, 2014; Rezende et al., 2014). Therefore, it can be trained by optimizing the usual variational bound on the negative log-likelihood. In the case of diffusion models, it can be written as follows (see Section A of Ho et al. (2020)):
65
+
66
+ $$
67
+ \begin{array}{l} \mathbb {E} _ {q} \left[ \underbrace {\mathrm {D} _ {\mathrm {K L}} \left(q (\mathbf {z} _ {T} | \mathbf {x}) | | p (\mathbf {z} _ {T})\right)} _ {\mathcal {L} _ {\mathrm {p r i o r}}} - \underbrace {\log p _ {\theta} (\mathbf {x} | \mathbf {z} _ {0})} _ {\mathcal {L} _ {\mathrm {r e c}}} \right. \\ \left. \right.\left. + \underbrace {\sum_ {t = 1} ^ {T} \mathrm {D} _ {\mathrm {K L}} \left(q \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t} , \mathbf {x}\right) \mid p _ {\theta} \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t}\right)\right)} _ {\mathcal {L} _ {\text {d i f f}}} \right] \quad (3) \\ \end{array}
68
+ $$
69
+
70
+ Since the process $q$ and the distribution $p_{\theta}(\mathbf{z}_T) = p(\mathbf{z}_T)$ are fixed, the prior term $\mathcal{L}_{\mathrm{prior}}$ does not depend on the parameters $\theta$ , so it can be omitted. The distribution $p_{\theta}(\mathbf{x}|\mathbf{z}_0)$ is often taken to be a Gaussian distribution, with low variance,
71
+
72
+ Table 1. Summary of existing diffusion models as instances of Neural Diffusion Models (NDM). See extended table in Appendix B.
73
+
74
+ <table><tr><td>Model</td><td>Distribution q(zt|x)</td><td>NDM&#x27;s F(x,t)</td><td>Comment</td></tr><tr><td>DDPM (Ho et al., 2020)/DDIM (Song et al., 2021a)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td></td></tr><tr><td>Flow Matching OT(Lipman et al., 2023)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td>αt = t,σt = 1 - (1 - σmin)t</td></tr><tr><td>VDM(Kingma et al., 2021)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td>α2t = sigmoid(-γη(t)),σ2t = sigmoid(γη(t))</td></tr><tr><td>Soft Diffusion(Daras et al., 2022)</td><td>N(zt; Ct x, st2I)</td><td>Ct x</td><td>αt = 1, σt2 = st2</td></tr><tr><td>LSGM(Vahdat et al., 2021)</td><td>N(zt; αt E(x), σt2I)</td><td>E(x)</td><td>p(x|z0) = N(x; aD(z0), σ2)</td></tr></table>
75
+
76
+ for continuous data and a dequantization distribution for discrete data. Thus, also the reconstruction term $\mathcal{L}_{\mathrm{rec}}$ does not depend on the parameter $\theta$ .
77
+
78
+ This means that the only part that depends on the model parameters $\theta$ is the diffusion term $\mathcal{L}_{\mathrm{diff}}$ . It is a sum of Kullback-Leibler (KL) divergences between posterior distributions in the forward process $q(\mathbf{z}_{t - 1}|\mathbf{z}_t,\mathbf{x})$ and the distributions $p_{\theta}(\mathbf{z}_{t - 1}|\mathbf{z}_t)$ from the reverse process. In the general case this KL divergence is intractable, so the standard choice here is to set the marginal conditional distributions to be Gaussian, i.e. $q(\mathbf{z}_t|\mathbf{x}) = \mathcal{N}(\mathbf{z}_t;\alpha_t\mathbf{x},\sigma_t^2 I)$ . The posterior distribution then takes the form:
79
+
80
+ $$
81
+ q \left(\mathbf {z} _ {s} \mid \mathbf {z} _ {t}, \mathbf {x}\right) = \mathcal {N} \left(\mathbf {z} _ {s}; \mu_ {s \mid t}, \tilde {\sigma} _ {s \mid t} ^ {2} I\right), \quad \text {f o r} \quad 0 \leq s \leq t \leq T,
82
+ $$
83
+
84
+ $$
85
+ \mu_ {s \mid t} = \alpha_ {s} \mathbf {x} + \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s \mid t} ^ {2}}}{\sigma_ {t}} (\mathbf {z} _ {t} - \alpha_ {t} \mathbf {x}). \tag {4}
86
+ $$
87
+
88
+ Note that here we allow for an arbitrary choice of time grid, i.e. $s$ and $t$ , whereas above it was equidistant. It is straightforward to check that such a posterior distribution satisfies (1) for any $\tilde{\sigma}_{s|t}^2 \leq \sigma_s^2$ . The exact schedule of $\tilde{\sigma}_{s|t}^2$ is a user design choice.
89
+
90
+ Finally, the reverse distribution is set to $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t) = q(\mathbf{z}_s|\mathbf{z}_t,\hat{\mathbf{x}}_\theta (\mathbf{z}_t,t))$ , where $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ is the model's prediction of $\mathbf{x}$ . Since $q(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ and $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t)$ are both Gaussian distributions, we can compute the KL divergences in $\mathcal{L}_{\mathrm{diff}}$ in closed form.
91
+
92
+ This choice of forward and reverse processes, resulting in analytic expressions for the diffusion terms given data, is what makes diffusion models a simulation-free approach. Simulation-free means that we do not have to sample all latent variables for each optimization step. Rather than
93
+
94
+ calculating all individual terms in $\mathcal{L}_{\mathrm{diff}}$ , we can uniformly sample $t$ and optimize only a subset of KL divergences using stochastic gradient descent.
95
+
96
+ By choosing a specific value for $\tilde{\sigma}_{s|t}^2$ , we can obtain equality between the processes of DDPM and DDIM (see section 4.1 of Song et al. (2021a)). Furthermore, as Song et al. (2021c) demonstrated, when the number of steps $T$ in DDPM goes to infinity, we can transition to continuous time. In this scenario, the reverse process can be described using a Stochastic Differential Equation (SDE):
97
+
98
+ $$
99
+ d \mathbf {z} _ {t} = [ r (t) \mathbf {z} _ {t} - g ^ {2} (t) s _ {\theta} (\mathbf {z} _ {t}, t) ] d t + g (t) d \mathbf {w} _ {t},
100
+ $$
101
+
102
+ $$
103
+ s _ {\theta} (\mathbf {z} _ {t}, t) = \frac {\alpha_ {t} \hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t} , t) - \mathbf {z} _ {t}}{\sigma_ {t} ^ {2}}, \quad r (t) = \frac {d \log \alpha_ {t}}{d t},
104
+ $$
105
+
106
+ $$
107
+ g ^ {2} (t) = \frac {d \sigma_ {t} ^ {2}}{d t} - 2 \frac {d \log \alpha_ {t}}{d t} \sigma_ {t} ^ {2}, \tag {5}
108
+ $$
109
+
110
+ with time running backwards from $t = 1$ to $t = 0$ . This formulation allows us to switch to the equivalent ODE and to use different SDE and ODE solvers for sampling and density estimation.
111
+
112
+ # 3. Neural diffusion models
113
+
114
+ In theory, we can view diffusion models as a special type of hierarchical variational autoencoders (VAE). From this perspective, the conventional diffusion model resembles a VAE with a fixed variational distribution, in which the latent variables are inferred using scaling of data points and injecting of Gaussian noise. Such a formulation limits diffusion models in terms of the flexibility of the latent space. Introducing a more flexible (and learnable) distribution of latent variables could effectively reduce the gap between the log-likelihood and the variational bound. In practical
115
+
116
+ # Algorithm 1 Learning NDM
117
+
118
+ Require: $q(\mathbf{x}),F_{\varphi},\hat{\mathbf{x}}_{\theta}$
119
+
120
+ for learning iterations do
121
+
122
+ $$
123
+ \mathbf {x} \sim q (\mathbf {x}), t \sim U [ 1, T ], \varepsilon \sim \mathcal {N} (0, I)
124
+ $$
125
+
126
+ $$
127
+ \mathbf {z} _ {t} \sim q _ {\varphi} (\mathbf {z} _ {t} | \mathbf {x})
128
+ $$
129
+
130
+ $$
131
+ \mathcal {L} = \mathcal {L} _ {\text {r e c}} + \mathcal {L} _ {\text {d i f f}} + \mathcal {L} _ {\text {p r i o r}}
132
+ $$
133
+
134
+ Gradient step on $\theta$ and $\varphi$ w.r.t. $\mathcal{L}$
135
+
136
+ # end for
137
+
138
+ terms, a more flexible forward process might simplify the task of learning the reverse (generative) process, thereby enhancing model quality. To overcome this limitation of conventional diffusion models, we propose a general form of transformations of data that allows to define and learn distributions on the latent space.
139
+
140
+ In this section, we introduce the Neural Diffusion Models (NDMs) - a simulation-free framework that generalises conventional diffusion models. The key idea in NDMs is to apply a time-dependent transformation $F_{\varphi}(\mathbf{x},t)$ to the data $\mathbf{x}$ at each step of forward process before injecting noise. Previous diffusion models arise as special cases when the data transformation is either linear, time-independent, or pre-defined non-linear (see Table 1). In contrast, the NDM can work with any time-dependent transformation of data and may be learned end-to-end. In Section 4 we provide experimental results with $F_{\varphi}(\mathbf{x},t)$ parameterized by neural networks.
141
+
142
+ # 3.1. Model definition and variational objective
143
+
144
+ We introduce NDMs constructively. First, we define the desired marginal distributions:
145
+
146
+ $$
147
+ q _ {\varphi} (\mathbf {z} _ {t} | \mathbf {x}) = \mathcal {N} \left(\mathbf {z} _ {t}; \alpha_ {t} F _ {\varphi} (\mathbf {x}, t), \sigma_ {t} ^ {2} I\right), \tag {6}
148
+ $$
149
+
150
+ where $F_{\varphi}(\mathbf{x},t):\mathbb{R}^d\times [0,T]\mapsto \mathbb{R}^d$ is a function parameterized by $\varphi$ that applies a time-dependent transform to the data point $\mathbf{x}$ . We adapt the approach from DDIM, as described in Section 2, and choose the following posterior distribution that satisfies (6) (we provide derivation and proof in Appendix A.1):
151
+
152
+ $$
153
+ q _ {\varphi} \left(\mathbf {z} _ {s} \mid \mathbf {z} _ {t}, \mathbf {x}\right) = \mathcal {N} \left(\mathbf {z} _ {s}; \mu_ {s | t} ^ {F _ {\varphi}}, \tilde {\sigma} _ {s | t} ^ {2} I\right), \tag {7}
154
+ $$
155
+
156
+ $$
157
+ \mu_ {s | t} ^ {F _ {\varphi}} = \alpha_ {s} F _ {\varphi} (\mathbf {x}, s) + \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s | t} ^ {2}}}{\sigma_ {t}} \Big (\mathbf {z} _ {t} - \alpha_ {t} F _ {\varphi} (\mathbf {x}, t) \Big),
158
+ $$
159
+
160
+ for $0 \leq s \leq t \leq T$ where $\tilde{\sigma}_{s|t}^2 \leq \sigma_s^2$ is a design choice. Using this posterior we can define an implicit forward process according to (1) (see Figure 1b). This forward process provides access to both marginal and posterior distributions just like in the DDIM framework (Song et al., 2021a). The
161
+
162
+ # Algorithm 2 Sampling from NDM
163
+
164
+ Require: $F_{\varphi},\hat{\mathbf{x}}_{\theta}$
165
+
166
+ $$
167
+ \mathbf {z} _ {T} \sim \mathcal {N} (0, I)
168
+ $$
169
+
170
+ $$
171
+ \mathbf {f o r} t = T, \dots , 1 \mathbf {d o}
172
+ $$
173
+
174
+ $$
175
+ \hat {\mathbf {x}} = \hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t)
176
+ $$
177
+
178
+ $$
179
+ \mathbf {z} _ {t - 1} \sim q _ {\varphi} (\mathbf {z} _ {t - 1} | \mathbf {z} _ {t}, \hat {\mathbf {x}})
180
+ $$
181
+
182
+ end for
183
+
184
+ $$
185
+ x \sim p (\mathbf {x} | \mathbf {z} _ {0})
186
+ $$
187
+
188
+ corresponding NDM variational objective has the following form:
189
+
190
+ $$
191
+ \begin{array}{l} \mathbb {E} _ {q _ {\varphi}} \left[ \underbrace {\mathrm {D} _ {\mathrm {K L}} \left(q _ {\varphi} (\mathbf {z} _ {T} | \mathbf {x}) | | p (\mathbf {z} _ {T})\right)} _ {\mathcal {L} _ {\text {p r i o r}}} - \underbrace {\log p _ {\theta} (\mathbf {x} | \mathbf {z} _ {0})} _ {\mathcal {L} _ {\text {r e c}}} \right. \\ \left. + \underbrace {\sum_ {t = 1} ^ {T} \mathrm {D} _ {\mathrm {K L}} \left(q _ {\varphi} \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t} , \mathbf {x}\right) \mid p _ {\theta} \left(\mathbf {z} _ {t - 1} \mid \mathbf {z} _ {t}\right)\right)} _ {\mathcal {L} _ {\text {d i f f}}} \right]. \tag {8} \\ \end{array}
192
+ $$
193
+
194
+ While the objective has the same form as in DDIM (3), the individual terms are different. If the transformation $F_{\varphi}(\mathbf{x},t)$ is actually parameterized by learnable parameters $\varphi$ , the prior term $\mathcal{L}_{\mathrm{prior}}$ and the reconstruction term $\mathcal{L}_{\mathrm{rec}}$ depend on the parameter $\varphi$ as well. Therefore, in that case these terms cannot be excluded from the optimization process.
195
+
196
+ For the standard parameterization of the reverse process through approximate posteriors $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t) = q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\hat{\mathbf{x}}_\theta (\mathbf{z}_t,t))$ the KL divergences in the diffusion term $\mathcal{L}_{\mathrm{diff}}$ are (see Appendix A.2):
197
+
198
+ $$
199
+ \begin{array}{l} \mathrm {D} _ {\mathrm {K L}} \left(q _ {\varphi} \left(\mathbf {z} _ {s} \mid \mathbf {z} _ {t}, \mathbf {x}\right) | | p _ {\theta} \left(\mathbf {z} _ {s} \mid \mathbf {z} _ {t}\right)\right) = \\ \frac {1}{2 \tilde {\sigma} _ {s | t} ^ {2}} \left\| \alpha_ {s} \left(F _ {\varphi} (\mathbf {x}, s) - F _ {\varphi} (\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), s)\right) + \right. \\ \left. \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s \mid t} ^ {2}}}{\sigma_ {t}} \alpha_ {t} \left(F _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), t\right) - F _ {\varphi} (\mathbf {x}, t)\right) \right\| _ {2} ^ {2}. \tag {9} \\ \end{array}
200
+ $$
201
+
202
+ Note a distinction between the objectives of NDM and DDIM here. In the case of DDIM, the model tries to accurately predict the data point $\mathbf{x}$ . In contrast, NDM aims to predict the transformed data point $F_{\varphi}(\mathbf{x},t)$ . Despite this change, NDM's optimization remains simulation-free, so we can efficiently train the NDM by sampling time steps and calculating corresponding KL divergences. We summarise the training and sampling procedures in Algorithms 1 and 2.
203
+
204
+ Given that NDM is a generalization of DDIM, we can leverage the same techniques for inference. Specifically, we can adjust the number of intermediate time steps, the schedule
205
+
206
+ of $\tilde{\sigma}_{s|t}^2$ as well as sampling with various dynamics, including a deterministic dynamic corresponding to $\tilde{\sigma}_{s|t}^2 = 0$ .
207
+
208
+ # 3.2. Continuous time NDMs
209
+
210
+ We previously formulated NDMs in the discrete time setting with $T$ steps. However, like conventional diffusion models, we can let the number of steps $T$ go to infinity and switch to continuous time. In this case, the set of time steps $\{0,1,\dots,T\}$ transforms to the range $[0,1]$ and the diffusion term of the objective reduces to an expectation over time (see derivation in Appendix A.4):
211
+
212
+ $$
213
+ \begin{array}{l} \mathcal {L} _ {\mathrm {d i f f}} = \\ \mathbb {E} _ {q (\mathbf {x}) u (t) q (\mathbf {z} _ {t} | \mathbf {x})} \left[ \frac {1}{g ^ {2} (t)} \right\| \alpha_ {t} \left(\dot {F} _ {\varphi} (\mathbf {x}, t) - \dot {F} _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), t\right)\right) \\ + \frac {1}{2} \left(\frac {\partial \sigma_ {t} ^ {2}}{\partial t} - 2 r (t) \sigma_ {t} ^ {2} + g ^ {2} (t)\right). \\ \left. \cdot \left(s (\mathbf {x}, \mathbf {z} _ {t}, t) - s \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), \mathbf {z} _ {t}, t\right)\right) \right\| _ {2} ^ {2} \bigg ], \tag {10} \\ \end{array}
214
+ $$
215
+
216
+ where $r(t) = \frac{\partial\log\alpha_t}{\partial t},g^2 (t) = \dot{\nu}_t\sigma_t^2,$ and $s(\mathbf{x},\mathbf{z}_t,t) = \frac{\alpha_tF_\varphi(\mathbf{x},t) - \mathbf{z}_t}{\sigma_t^2}.$
217
+
218
+ Similar to training a discrete time NDM, we can train a continuous time NDMs by sampling time. In our experiments we use importance sampling (Song et al., 2021b) and sample time from a distribution proportional to $\frac{1}{g^2(t)}$ .
219
+
220
+ Note, that we may not have access to the partial derivative of the transformation $F_{\varphi}(\cdot ,t)$ with respect to $t$ in closed form. However, for any differentiable $F_{\varphi}(\cdot ,t)$ we can use Jacobian-Vector product (Smale & Hirsch, 1974) to obtain this derivative.
221
+
222
+ The discrete time reverse process also becomes a continuous time process, described by a Stochastic Differential Equation (SDE). If we parameterize the noise injection in the posterior distribution as $\tilde{\sigma}_{s|t}^2 = \sigma_s^2 (1 - e^{\nu_s - \nu_t})$ , we obtain the following SDE (see derivation in Appendix A.3):
223
+
224
+ $$
225
+ \begin{array}{l} d \mathbf {z} _ {t} = \left[ \alpha_ {t} \dot {F} _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), t\right) + r (t) \mathbf {z} _ {t} \right. \\ \left. - \frac {1}{2} \left(g ^ {2} (t) - 2 r (t) \sigma_ {t} ^ {2}\right) s _ {\theta} (\mathbf {z} _ {t}, t) \right] d t + g (t) d \mathbf {w}, \tag {11} \\ \end{array}
226
+ $$
227
+
228
+ where $s_{\theta}(\mathbf{z}_t,t) = \frac{\alpha_tF_\varphi(\hat{\mathbf{x}}_\theta(\mathbf{z}_t,t),t) - \mathbf{z}_t}{\sigma_t^2}$ .
229
+
230
+ By changing the function $\nu_{t}$ , we can obtain different dynamics. In the extreme case where $\nu_{t}$ is equal to a constant we have deterministic dynamics described by an ODE. This enables the use of SDE or ODE solvers for inference. Moreover, we can estimate densities by considering the model as a continuous normalizing flow (Chen et al., 2018) in the deterministic case.
231
+
232
+ # 4. Experiments
233
+
234
+ We present empirical results for the proposed Neural Diffusion Models with learnable transformations on a synthetic datasets as well as multiple image datasets. Qualitatively, NDMs learn transformations that simplify the data distribution, leading to predictions of $\mathbf{x}$ that are more aligned with the data. Quantitatively, NDMs consistently outperform the baseline in terms of likelihood, achieving state-of-the-art diffusion model results for ImageNet and CelebA-HQ. Moreover, for a small to medium number of steps, NDMs achieve better image generation quality than DDPM, while being comparable for a large number of steps. We also provide a proof of concept experiment that demonstrates that NDMs can learn simple generative trajectories, something conventional diffusion models are incapable of learning.
235
+
236
+ # 4.1. Implementation details
237
+
238
+ We demonstrate NDMs with learnable transformations on the MNIST (Deng, 2012), CIFAR-10 (Krizhevsky et al., 2009), downsampled ImageNet (Deng et al., 2009; Van Den Oord et al., 2016) and CelebA-HQ-256 (Karras et al., 2017) datasets. In all experiments we use same neural network architectures to parameterize both the generative process and the transformations $F_{\varphi}$ . In experiments with images we use the U-Net architecture from Dhariwal & Nichol (2021). To ensure consistency with Song et al. (2021c;b), we apply horizontal flipping as a data augmentation technique for training models on CIFAR-10 and ImageNet. Unless otherwise stated, we utilize the DDPM variance-preserving schedule of noise injection for $\alpha_{t}$ and $\sigma_t^2$ . For density estimation of discrete data we use uniform dequantization.
239
+
240
+ In the experiments we report negative log-likelihood (NLL) in bits per dimension (BPD), negative evidence lower bound (NELBO) (8), and sample quality as measured by the Frechet Inception Distance (FID) (Heusel et al., 2017). We calculate NLL by integrating the corresponding ODEs using the RK45 solver from Dormand & Prince (1980), and both NLL and NELBO are calculated on test data. For FID we report the score computed using $50\mathrm{k}$ generated images.
241
+
242
+ In Section 3 we parameterize the reverse process through $\hat{\mathbf{x}}_{\theta}$ function. However, in practice we reparameterize the generative process in terms of prediction of injected noise. For a detailed description of parameterizations and other experimental details, please refer to Appendix C.
243
+
244
+ # 4.2. Learned transformations
245
+
246
+ Let us examine some of the transformations that NDM learns. Figure 2a-2c illustrates the transformations that NDM learns for the 2D checkerboard distribution, MNIST, and CIFAR-10 datasets. For the checkerboard, we observe that $F_{\varphi}$ learns to transform the interleaved pattern into a
247
+
248
+ ![](images/5d3f9a00c9366c32c60b76566304ecd76e70ad4620d8ac6f2e01b6e583330d52.jpg)
249
+
250
+ ![](images/64edcf3c5e13e7a150f86a698d274d121085900e327333d191c4a9c7c962d8bd.jpg)
251
+
252
+ ![](images/4514ea3edcb9bdad3547e2f6d1e08520e8081778e11c771ee0d49e032213d848.jpg)
253
+ (a) Top: Data $\mathbf{x}$ . Bottom: $F_{\varphi}(\mathbf{x},T)$ , transformed data.
254
+
255
+ ![](images/1d672f188e323a905a4a14fcaedaa70fb1a5eb5ff7587e28d8d5c9d0c6a8783a.jpg)
256
+ (b) Top: CIFAR data samples. Bottom: $F_{\varphi}(\mathbf{x}, T)$ , transformed data samples.
257
+
258
+ ![](images/761e2c3539d85769fd993b450b0ecec7c8176e51fc0f9132d83988257ae8905f.jpg)
259
+ (c) Top: MNIST data samples. Bottom: $F_{\varphi}(\mathbf{x}, T)$ , transformed data samples.
260
+
261
+ ![](images/52ef072051ed99b028e15ea1fa77d98a9f65a634478e0e8799003ea7a2d79bcc.jpg)
262
+ (d) DDPM predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_T,T)$ for $\mathbf{z}_T\sim \mathcal{N}(\mathbf{z}_T;0,I)$
263
+ (e) NDM predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_T,T)$ for $\mathbf{z}_T\sim \mathcal{N}(\mathbf{z}_T;0,I)$
264
+ Figure 2. Learned transforms for the 2D checkerboard distribution (left). Learned transforms for CIFAR-10 and MNIST (top right), as well as predictions for MNIST (bottom right). NDM learns useful forward transformations and more accurately predicts the data from injected noise.
265
+
266
+ Table 2. We report Negative Log-Likelihood (NLL) in Bits Per Dimension (BPD) on the test sets for CIFAR10, ImageNet 32x32, and ImageNet 64x64. Our results were obtained using the continuous-time formulation of our model, integrated via the corresponding Ordinary Differential Equation (ODE), as detailed in Section 3.2.
267
+
268
+ <table><tr><td>Model</td><td>CIFAR10</td><td>ImageNet 32</td><td>ImageNet 64</td></tr><tr><td>DDPM (Ho et al., 2020)</td><td>3.69</td><td></td><td></td></tr><tr><td>Improved DDPM (Nichol &amp; Dhariwal, 2021)</td><td>2.94</td><td></td><td>3.54</td></tr><tr><td>VDM (Kingma et al., 2021)</td><td>2.65</td><td>3.72</td><td>3.40</td></tr><tr><td>Score SDE (Song et al., 2021c)</td><td>2.99</td><td></td><td></td></tr><tr><td>Score Flow (Song et al., 2021b)</td><td>2.83</td><td>3.76</td><td></td></tr><tr><td>NDM (ours)</td><td>2.70</td><td>3.55</td><td>3.35</td></tr></table>
269
+
270
+ non-interleaved one. In the case of the grayscale digits of the MNIST dataset, $F_{\varphi}$ learns to highlight the distinctive features of the numbers. It thickens the lines and even creates bubbles at the corners. For the color images of CIFAR-10, $F_{\varphi}$ learns to increase the image contrast. In all cases, our model learns a way to simplify the data distribution. These transformations may enable the reverse process to transition more smoothly from simple distributions to complex ones.
271
+
272
+ Furthermore, we would like to emphasize the difference between the predictions of $\mathbf{x}$ that NDM and DDPM makes. Figure 2d and Figure 2e shows the predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_T,T)$ generated by NDM and DDPM models trained on the MNIST dataset. In each case, the model samples from a standard normal distribution $\mathbf{z}_T\sim \mathcal{N}(\mathbf{z}_T;0,I)$ and based on this value tries to predict $\mathbf{x}$ . Therefore, we do not expect these samples to be of high quality. However, as we can
273
+
274
+ see, NDM's predictions of $\mathbf{x}$ are much more similar to the data distribution than DDPM's predictions. We attribute this behavior to the fact that our model aims to predict not the datapoint $\mathbf{x}$ , but the transformed datapoint $F_{\varphi}(\mathbf{x}, t)$ . Thus, to make better predictions of the transformed datapoint, it may be critical to generate predictions of $\mathbf{x}$ that resemble real data. Any deviation from the $\mathbf{x}$ -distribution is exaggerated by the transformation and thus less likely to happen for NDM's predictions.
275
+
276
+ In Appendix D we provide additional samples for terminal and intermediate timesteps.
277
+
278
+ # 4.3. Image generation
279
+
280
+ Next, we evaluate NDMs with learnable transformations quantitatively. We train continuous time NDM on MNIST,
281
+
282
+ Table 3. Performance comparison of the DDPM and NDM on CIFAR-10 and ImageNet 32 datasets. We report FID scores for DDPM-style (FID) and DDIM-style $(\mathrm{FID}^{*})$ sampling procedures.
283
+
284
+ <table><tr><td rowspan="2">Steps</td><td rowspan="2">Model</td><td colspan="4">CIFAR-10</td><td colspan="4">ImageNet 32</td></tr><tr><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td><td>FID* ↓</td><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td><td>FID* ↓</td></tr><tr><td rowspan="2">1000</td><td>DDPM</td><td>3.11</td><td>3.18</td><td>11.44</td><td>13.35</td><td>3.89</td><td>3.95</td><td>16.18</td><td>19.08</td></tr><tr><td>NDM</td><td>3.02</td><td>3.03</td><td>11.82</td><td>13.79</td><td>3.79</td><td>3.82</td><td>17.02</td><td>19.76</td></tr><tr><td rowspan="2">10</td><td>DDPM</td><td>5.02</td><td>5.13</td><td>37.83</td><td>19.89</td><td>6.28</td><td>6.42</td><td>53.51</td><td>26.47</td></tr><tr><td>NDM</td><td>4.63</td><td>4.74</td><td>31.56</td><td>22.20</td><td>5.81</td><td>5.94</td><td>45.38</td><td>29.95</td></tr><tr><td rowspan="2">1000 → 10</td><td>DDPM</td><td>8.78</td><td>8.98</td><td>43.85</td><td>17.73</td><td>10.99</td><td>11.23</td><td>58.35</td><td>25.53</td></tr><tr><td>NDM</td><td>8.58</td><td>8.81</td><td>48.41</td><td>16.96</td><td>10.78</td><td>11.06</td><td>62.12</td><td>23.77</td></tr></table>
285
+
286
+ CIFAR-10, and downsampled ImageNet datasets. Table 2 summarizes our results, reporting NLL. NDMs demonstrate performance on CIFAR-10 that is comparable with the baselines and outperforms baselines on ImageNet.
287
+
288
+ Then, we compare NDM with the DDPM baseline on MNIST, CIFAR-10, and ImageNet 32 datasets. To ensure a fair comparison, when implementing DDPM we use an NDM with fixed identity transformation $F_{\varphi}(\mathbf{x},t) = \mathbf{x}$ . Therefore, we train both models with the same objective (8) and hyperparameters. The first part of Table 3 summarizes our results, reporting NLL, NELBO (8), and FID score. NDM demonstrates comparable sample quality with the baseline on all datasets and consistently outperforms the baseline on NLL and NELBO, especially for smaller numbers of steps. This improvement may be attributed to NDM's ability to fit distributions of the forward process and simplify the denoising task for the reverse process.
289
+
290
+ We also compare NDM with DDPM in a setup where we train both models with $T = 1000$ steps and then sample with fewer steps. The second part of Table 3 summarizes our results, which are consistent with the corresponding numbers of steps used during training. However, in absolute values, both models show worse performance when we decrease the number of steps, and NDM demonstrates a more severe degradation. This observation is especially noticeable for small numbers of steps, such as $T = 10$ , where NDM has a better FID score than DDPM when trained with 10 steps, but a worse FID score when the number of steps is decreased from 1000 to 10. From this, we conclude that although NDM can in principle work with reduced number of steps it is less robust to such modifications compared to DDPM.
291
+
292
+ Finally, we demonstrate that NDMs may be successfully combined with LSGM (Vahdat et al., 2021). For this experiment we replaced the linear diffusion in the LSGM baseline for CelebA-HQ-256 with NDMs featuring the learnable $F_{\varphi}$ . We parameterise $F_{\varphi}$ with the same neural network architecture as baseline's architecture for parameterisation
293
+
294
+ Table 4. Generative results on CelebA-HQ-256 for LSGM and NDM with learnable transformations in the latent space of VAE.
295
+
296
+ <table><tr><td>Model</td><td>NLL ↓</td><td>FID ↓</td></tr><tr><td>LSGM (Vahdat et al., 2021)</td><td>≤ 0.70</td><td>7.22</td></tr><tr><td>Latent NDM (ours)</td><td>≤ 0.65</td><td>7.18</td></tr></table>
297
+
298
+ of diffusion. Table 4 demonstrates that NDMs have better likelihood estimation and sample quality.
299
+
300
+ In Appendix E we provide a proof of concept experiment, which demonstrates that we can learn simpler generative dynamics compared to conventional diffusion models. In this experiment we restrict the reverse process to learn dynamic optimal transport trajectories. It is not possible to match such a reverse process with a predefined forward process, but NDM allows to capture the data distribution with the simpler generative dynamics.
301
+
302
+ See Appendix D for additional results and ablation studies.
303
+
304
+ # 5. Related work
305
+
306
+ NDMs build on diffusion probabilistic models originally proposed by Sohl-Dickstein et al. (2015), which can be considered as an instance of (hierarchical) variational autoencoders (VAEs) (Kingma & Welling, 2014; Rezende et al., 2014). Recently, the theory of diffusion models was extended to deterministic sampling (Song et al., 2021a) and continuous time (Song et al., 2021c). These results allowed to reach impressive performance in image generation tasks (Ho et al., 2020; Song et al., 2021c; Dhariwal & Nichol, 2021; Kingma et al., 2021). However, most existing diffusion models have a significant limitation in that they rely on a pre-specified and simple noise injection process that is unable to adapt to the specific task or data at hand. To overcome this, researchers have explored ways to generalize diffusion models.
307
+
308
+ Various papers have since proposed ways to speed up sam
309
+
310
+ pling from diffusion models. Tachibana et al. (2021) and Liu et al. (2022) proposed alternative SDE and ODE solvers. Xiao et al. (2021) proposed replacing simple Gaussian distributions at each generation step with distributions learned by GANs (Goodfellow et al., 2014). Some works proposed methods like iterative distillation with a reduction in the number of steps (Salimans & Ho, 2022) and iterative straightening of trajectories (Liu et al., 2023; Liu, 2022). While these methods change the generative process, they are compatible with NDMs.
311
+
312
+ Several papers proposed constructing the process of data corruption not by noise injection, but rather by blurring (Rissanen et al., 2023; Daras et al., 2022; Hoogeboom & Salimans, 2023) or through another linear transformation (Singhal et al., 2023). Another line of work modifies directly the dynamics of diffusion models through mapping the data into the latent space of VAE (Vahdat et al., 2021; Rombach et al., 2022), hierarchical VAE (Gu et al., 2023) or normalizing flow (Kim et al., 2022) models and then runs standard linear diffusion. As we demonstrate in Tables 1, these arise as distinct special cases of NDMs for specific choices of the transformation $F_{\varphi}$ .
313
+
314
+ In another line of works (De Bortoli et al., 2021; Wang et al., 2021; Peluchetti), finite-time diffusion constructions were proposed using diffusion bridge theory to address the approximation error incurred by infinite-time denoising constructions. While such approaches allow learning forward transformations, they require inferring all latent variables for each optimization step. This limitation breaks the simulation-free paradigm and can make these models expensive to train. NDM in contrast allows learning forward transformations efficiently and simulation-free.
315
+
316
+ Inspired by diffusion models, several works (Lipman et al., 2023; Neklyudov et al., 2022) have proposed simulation-free objectives for training continuous normalizing flows. These approaches are similar to diffusion models as they rely on the idea of reversing a predefined corruption process. Later, some works (Albergo & Vanden-Eijnden, 2023; Lee et al., 2023) extended these ideas and proposed to learn the forward process. However, although NDMs and these works are similar in spirit, they differ in that they optimize the forward process specifically to obtain straight generative trajectories, while in our approach we optimize learnable forward process to minimize variational bound on NLL, which not necessarily leads to straight generative trajectories.
317
+
318
+ In concurrent and independent work, Nielsen et al. (2024) introduced DiffEnc, also adding time-dependent transformations in diffusion models. While the underlying idea is similar, there are some differences between DiffEnc and NDM. The two approaches utilize different parameterisations and noise injection schedules. In addition, DiffEnc approximates time derivatives of the data transformations
319
+
320
+ leading to biased stochastic gradients, while NDM calculates exact time derivatives using JVP.
321
+
322
+ In Appendix B, we provide further discussion, details and comparisons with related works.
323
+
324
+ # 6. Limitations
325
+
326
+ Compared to conventional diffusion models, NDMs with learnable transformations have twice as many parameters, which results in slower training. Specifically, in experiments on images, NDMs with learnable transformations take approximately 2.3 times longer than DDPM to train. However, no additional techniques where necessary to ensure stable training of NDMs. Additionally, in Appendix D, we provide an ablation study demonstrating that performance improvements are not achieved by increasing the number of parameters.
327
+
328
+ Another distinction between NDMs and DDPM is the importance for NDMs in using the full objective (8) when training the model. A simplified objective, such as $\mathcal{L}_{\mathrm{simple}}$ used in DDPM, which measures how well the model predicts injected noise and does not take into account the transformation $F_{\varphi}$ , can cause the collapse of this transformation to 0. The reason for this is that it becomes trivial to identify the injected noise through $\mathbf{z}_t$ .
329
+
330
+ Finally, unlike conventional diffusion, the generative process of NDMs with learnable transformations depends on the parameters of the forward process. Therefore, in the case of learnable parameters, NDMs do not support conditional generation techniques with classifier guidance (Dhariwal & Nichol, 2021). However, we can utilize alternative approaches (Wu et al., 2023) to enable conditional generation from NDMs, but we will defer this to future research.
331
+
332
+ # 7. Conclusion
333
+
334
+ We introduced Neural Diffusion Models (NDMs), a new class of diffusion models that enables defining and learning the general forward noising process. First, we showed how to optimize NDMs using a variational bound in a simulation-free setting. Then, we derived a time-continuous formulation of NDMs allowing for fast and reliable inference and likelihood evaluation using off-the-shelf numerical ODE and SDE solvers. Next, we demonstrated how some existing diffusion models appear as a special cases of NDMs. For NDMs with learnable transformations we studied their utility on standard image generation benchmarks. NDMs significantly outperforms conventional diffusion models in terms of likelihood, achieving state-of-the-art results for ImageNet and CelebA-HQ, and produces samples of comparable or better quality.
335
+
336
+ # Impact Statement
337
+
338
+ This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
339
+
340
+ # References
341
+
342
+ Albergo, M. S. and Vanden-Eijnden, E. Building normalizing flows with stochastic interpolants. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=1i7qeBbCR1t.
343
+ Chen, R. T., Rubanova, Y., Bettencourt, J., and Duvenaud, D. K. Neural ordinary differential equations. Advances in neural information processing systems, 31, 2018.
344
+ Chen, T., Liu, G.-H., and Theodorou, E. A. Likelihood training of schr\* odinger bridge using forward-backward sdes theory. arXiv preprint arXiv:2110.11291, 2021.
345
+ Creswell, A., White, T., Dumoulin, V., Arulkumaran, K., Sengupta, B., and Bharath, A. A. Generative adversarial networks: An overview. IEEE Signal Processing Magazine, 35(1):53-65, 2018.
346
+ Dai, Z., Yang, Z., Yang, F., Cohen, W. W., and Salakhutdinov, R. R. Good semi-supervised learning that requires a bad gan. Advances in neural information processing systems, 30, 2017.
347
+ Daras, G., Delbracio, M., Talebi, H., Dimakis, A. G., and Milanfar, P. Soft diffusion: Score matching for general corruptions. arXiv preprint arXiv:2209.05442, 2022.
348
+ De Bortoli, V., Thornton, J., Heng, J., and Doucet, A. Diffusion schrödinger bridge with applications to score-based generative modeling. Advances in Neural Information Processing Systems, 34:17695-17709, 2021.
349
+ Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In 2009 IEEE conference on computer vision and pattern recognition, pp. 248-255. IEEE, 2009.
350
+ Deng, L. The mnist database of handwritten digit images for machine learning research [best of the web]. IEEE signal processing magazine, 29(6):141-142, 2012.
351
+ Dhariwal, P. and Nichol, A. Diffusion models beat gans on image synthesis. Advances in neural information processing systems, 34:8780-8794, 2021.
352
+ Dormand, J. R. and Prince, P. J. A family of embedded runge-kutta formulae. Journal of computational and applied mathematics, 6(1):19-26, 1980.
353
+
354
+ Goodfellow, I., Pouget-Abadie, J., Mirza, M., Xu, B., Warde-Farley, D., Ozair, S., Courville, A., and Bengio, Y. Generative adversarial nets. Advances in neural information processing systems, 27, 2014.
355
+ Grathwohl, W., Chen, R. T. Q., Bettencourt, J., and Duvenaud, D. Scalable reversible generative models with free-form continuous dynamics. In International Conference on Learning Representations, 2019. URL https://openreview.net/forum?id=rJxgknCcK7.
356
+ Gu, J., Zhai, S., Zhang, Y., Bautista, M. Á., and Susskind, J. M. f-DM: A multi-stage diffusion model via progressive signal transformation. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=iBdwKIsg4m.
357
+ Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., and Hochreiter, S. Gans trained by a two time-scale update rule converge to a local nash equilibrium. Advances in neural information processing systems, 30, 2017.
358
+ Ho, J., Jain, A., and Abbeel, P. Denoising diffusion probabilistic models. Advances in neural information processing systems, 33:6840-6851, 2020.
359
+ Hoogeboom, E. and Salimans, T. Blurring diffusion models. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=OjDkC57x5sz.
360
+ Karras, T., Aila, T., Laine, S., and Lehtinen, J. Progressive growing of gans for improved quality, stability, and variation. arXiv preprint arXiv:1710.10196, 2017.
361
+ Kim, D., Na, B., Kwon, S. J., Lee, D., Kang, W., and Moon, I.-c. Maximum likelihood training of implicit nonlinear diffusion model. Advances in Neural Information Processing Systems, 35:32270-32284, 2022.
362
+ Kingma, D., Salimans, T., Poole, B., and Ho, J. Variational diffusion models. Advances in neural information processing systems, 34:21696-21707, 2021.
363
+ Kingma, D. P. and Welling, M. Auto-encoding variational Bayes. International Conference on Learning Representations, 2014.
364
+ Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009.
365
+ Lee, S., Kim, B., and Ye, J. C. Minimizing trajectory curvature of ode-based generative models. In International Conference on Machine Learning, pp. 18957-18973. PMLR, 2023.
366
+
367
+ Lipman, Y., Chen, R. T. Q., Ben-Hamu, H., Nickel, M., and Le, M. Flow matching for generative modeling. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=PqvMRDCJT9t.
368
+ Liu, L., Ren, Y., Lin, Z., and Zhao, Z. Pseudo numerical methods for diffusion models on manifolds. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=PlKWVd2yBkY.
369
+ Liu, Q. Rectified flow: A marginal preserving approach to optimal transport. arXiv preprint arXiv:2209.14577, 2022.
370
+ Liu, X., Gong, C., and qiang liu. Flow straight and fast: Learning to generate and transfer data with rectified flow. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=XVjTT1nw5z.
371
+ MacKay, D. J. Information theory, inference and learning algorithms. Cambridge university press, 2003.
372
+ Neklyudov, K., Severo, D., and Makhzani, A. Action matching: A variational method for learning stochastic dynamics from samples. arXiv preprint arXiv:2210.06662, 2022.
373
+ Nichol, A. Q. and Dhariwal, P. Improved denoising diffusion probabilistic models. In International conference on machine learning, pp. 8162-8171. PMLR, 2021.
374
+ Nielsen, B. M. G., Christensen, A., Dittadi, A., and Winther, O. Diffenc: Variational diffusion with a learned encoder. In The Twelfth International Conference on Learning Representations, 2024. URL https://openreview.net/forum?id=8nxy1bQWTG.
375
+ Øksendal, B. and Øksendal, B. Stochastic differential equations. Springer, 2003.
376
+ Papamakarios, G., Nalisnick, E., Rezende, D. J., Mohamed, S., and Lakshminarayanan, B. Normalizing flows for probabilistic modeling and inference. The Journal of Machine Learning Research, 22(1):2617-2680, 2021.
377
+ Peluchetti, S. Non-denoising forward-time diffusions.
378
+ Popov, V., Vovk, I., Gogoryan, V., Sadekova, T., and Kudinov, M. Grad-tps: A diffusion probabilistic model for text-to-speech. In International Conference on Machine Learning, pp. 8599-8608. PMLR, 2021.
379
+ Rezende, D. J., Mohamed, S., and Wierstra, D. Stochastic backpropagation and approximate inference in deep generative models. In International conference on machine learning, pp. 1278-1286. PMLR, 2014.
380
+
381
+ Rissanen, S., Heinonen, M., and Solin, A. Generative modelling with inverse heat dissipation. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=4PJUBT9f201.
382
+ Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684-10695, 2022.
383
+ Saharia, C., Ho, J., Chan, W., Salimans, T., Fleet, D. J., and Norouzi, M. Image super-resolution via iterative refinement. arXiv preprint arXiv:2104.07636, 2021.
384
+ Salimans, T. and Ho, J. Progressive distillation for fast sampling of diffusion models. In International Conference on Learning Representations, 2022. URL https://openreview.net/forum?id=TIdIXIpzhoI.
385
+ Singhal, R., Goldstein, M., and Ranganath, R. Where to diffuse, how to diffuse, and how to get back: Automated learning for multivariate diffusions. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=osei3IzUia.
386
+ Smale, S. and Hirsch, M. W. Differential equations, dynamical systems, and linear algebra, volume 60. Elsevier, 1974.
387
+ Sohl-Dickstein, J., Weiss, E., Maheswaranathan, N., and Ganguli, S. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256-2265. PMLR, 2015.
388
+ Song, J., Meng, C., and Ermon, S. Denoising diffusion implicit models. In International Conference on Learning Representations, 2021a. URL https://openreview.net/forum?id=StlgiarCHLP.
389
+ Song, Y., Kim, T., Nowozin, S., Ermon, S., and Kushman, N. Pixeldefend: Leveraging generative models to understand and defend against adversarial examples. arXiv preprint arXiv:1710.10766, 2017.
390
+ Song, Y., Durkan, C., Murray, I., and Ermon, S. Maximum likelihood training of score-based diffusion models. Advances in Neural Information Processing Systems, 34: 1415-1428, 2021b.
391
+ Song, Y., Sohl-Dickstein, J., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. Score-based generative modeling through stochastic differential equations. In International Conference on Learning Representations, 2021c. URL https://openreview.net/forum?id=PxTIG12RRHS.
392
+
393
+ Tachibana, H., Go, M., Inahara, M., Katayama, Y., and Watanabe, Y. It\~{o}-taylor sampling scheme for denoising diffusion probabilistic models using ideal derivatives. arXiv preprint arXiv:2112.13339, 2021.
394
+ Tomczak, J. M. Deep generative modeling. Springer, 2022.
395
+ Trippe, B. L., Yim, J., Tischer, D., Baker, D., Broderick, T., Barzilay, R., and Jaakkola, T. S. Diffusion probabilistic modeling of protein backbones in 3D for the motif-scaffolding problem. In The Eleventh International Conference on Learning Representations, 2023.
396
+ Vahdat, A., Kreis, K., and Kautz, J. Score-based generative modeling in latent space. Advances in Neural Information Processing Systems, 34:11287-11302, 2021.
397
+ Van Den Oord, A., Kalchbrenner, N., and Kavukcuoglu, K. Pixel recurrent neural networks. In International conference on machine learning, pp. 1747-1756. PMLR, 2016.
398
+ Wang, G., Jiao, Y., Xu, Q., Wang, Y., and Yang, C. Deep generative learning via schrödinger bridge. In International Conference on Machine Learning, pp. 10794-10804. PMLR, 2021.
399
+ Watson, J. L., Juergens, D., Bennett, N. R., Trippe, B. L., Yim, J., Eisenach, H. E., Ahern, W., Borst, A. J., Ragotte, R. J., Milles, L. F., et al. Broadly applicable and accurate protein design by integrating structure prediction networks and diffusion generative models. bioRxiv, pp. 2022-12, 2022.
400
+ Wu, L., Trippe, B. L., Naesseth, C. A., Blei, D. M., and Cunningham, J. P. Practical and asymptotically exact conditional sampling in diffusion models. arXiv preprint arXiv:2306.17775, 2023.
401
+ Xiao, Z., Kreis, K., and Vahdat, A. Tackling the generative learning trilemma with denoising diffusion GANs. arXiv preprint arXiv:2112.07804, 2021.
402
+ Yang, L., Zhang, Z., Song, Y., Hong, S., Xu, R., Zhao, Y., Shao, Y., Zhang, W., Cui, B., and Yang, M.-H. Diffusion models: A comprehensive survey of methods and applications. arXiv preprint arXiv:2209.00796, 2022.
403
+
404
+ # A. Derivations and proofs
405
+
406
+ # A.1.Forward posterior
407
+
408
+ First, we rewrite the marginal distribution (6) in terms of standard normally distributed $\varepsilon_{t},\varepsilon_{s}$ for $s$ and $t$ , where $s < t$ ..
409
+
410
+ $$
411
+ \mathbf {z} _ {t} = \alpha_ {t} F _ {\varphi} (\mathbf {x}, t) + \sigma_ {t} \varepsilon_ {t}, \tag {12}
412
+ $$
413
+
414
+ $$
415
+ \mathbf {z} _ {s} = \alpha_ {s} F _ {\varphi} (\mathbf {x}, s) + \sigma_ {s} \varepsilon_ {s}. \tag {13}
416
+ $$
417
+
418
+ Next, we constructively introduce the posterior distribution $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ . To sample $\mathbf{z}_s$ given $\mathbf{z}_t$ and $\mathbf{x}$ while preserving the correct marginal distribution $q_{\varphi}(\mathbf{z}_s|\mathbf{x})$ , we can combine the noise $\varepsilon_t$ with additional noise $\tilde{\varepsilon}_{s|t}$ as follows:
419
+
420
+ $$
421
+ \mathbf {z} _ {s} = \alpha_ {s} F _ {\varphi} (\mathbf {x}, s) + \sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s | t} ^ {2}} \varepsilon_ {t} + \tilde {\sigma} _ {s | t} \tilde {\varepsilon} _ {s | t}. \tag {14}
422
+ $$
423
+
424
+ The samples $\mathbf{z}_s$ follow a (conditional) normal distribution. By marginalizing $\varepsilon_t$ and $\tilde{\varepsilon}_{s|t}$ , we obtain a normal distribution with mean $\alpha_s F\varphi(\mathbf{x}, s)$ and variance $\sigma_s^2 - \tilde{\sigma}_{s|t}^2 + \tilde{\sigma}_{s|t}^2 = \sigma_s^2$ . Therefore, this sampling procedure satisfies $q_{\varphi}(\mathbf{z}_s|\mathbf{x}) = \int q_{\varphi}(\mathbf{z}_t|\mathbf{x}) q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t, \mathbf{x}) d\mathbf{z}_t$ .
425
+
426
+ The equation (14) relies on $\varepsilon_{t}$ , which we do not have explicit access to. However, once we know $\mathbf{z}_t$ and $\mathbf{x}$ , we can calculate it from (12) as $\varepsilon_{t} = \frac{\mathbf{z}_{t} - \alpha_{t}F_{\varphi}(\mathbf{x},t)}{\sigma_{t}}$ and substitute it in (14):
427
+
428
+ $$
429
+ \mathbf {z} _ {s} = \alpha_ {s} F _ {\varphi} (\mathbf {x}, s) + \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s \mid t} ^ {2}}}{\sigma_ {t}} \left(\mathbf {z} _ {t} - \alpha_ {t} F _ {\varphi} (\mathbf {x}, t)\right) + \tilde {\sigma} _ {s \mid t} \tilde {\varepsilon} _ {s \mid t}. \tag {15}
430
+ $$
431
+
432
+ Using this constructive definition, we obtain the posterior distribution (7).
433
+
434
+ # A.2. Objective
435
+
436
+ To calculate the diffusion term $\mathcal{L}_{\mathrm{diff}}$ (9) of the objective, we need to compute the KL divergence between the forward posterior distribution $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ and the reverse distribution $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t)$ . Since we use parameterization $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t) = q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\hat{\mathbf{x}}_\theta (\mathbf{z}_t,t))$ , both of these distributions are normal distributions with the same variance, so we can evaluate the KL divergence between them analytically as follows:
437
+
438
+ $$
439
+ \begin{array}{l} \mathrm {D} _ {\mathrm {K L}} \Big (q _ {\varphi} (\mathbf {z} _ {s} | \mathbf {z} _ {t}, \mathbf {x}) | | p _ {\theta} (\mathbf {z} _ {s} | \mathbf {z} _ {t}) \Big) = \\ = \frac {1}{2 \tilde {\sigma} _ {s | t} ^ {2}} \left\| \alpha_ {s} F _ {\varphi} (\mathbf {x}, s) + \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s | t} ^ {2}}}{\sigma_ {t}} \left(\mathbf {z} / - \alpha_ {t} F _ {\varphi} (\mathbf {x}, t)\right) - \right. \\ \left. \alpha_ {s} F _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), s\right) - \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s \mid t} ^ {2}}}{\sigma_ {t}} \left(\mathbf {z} _ {t} - \alpha_ {t} F _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), t\right)\right) \right\rVert_ {2} ^ {2} (16) \\ = \frac {1}{2 \tilde {\sigma} _ {s | t} ^ {2}} \Bigg \| \alpha_ {s} \Big (F _ {\varphi} (\mathbf {x}, s) - F _ {\varphi} (\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), s) \Big) + \\ \left. \frac {\sqrt {\sigma_ {s} ^ {2} - \tilde {\sigma} _ {s \mid t} ^ {2}}}{\sigma_ {t}} \alpha_ {t} \left(F _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), t\right) - F _ {\varphi} (\mathbf {x}, t)\right) \right\| _ {2} ^ {2}. (17) \\ \end{array}
440
+ $$
441
+
442
+ With a learnable transformation $F_{\varphi}$ , the term $\mathcal{L}_{\mathrm{prior}}$ becomes dependent on the parameters $\varphi$ , necessitating its optimization
443
+
444
+ during training. We can compute the prior term as follows:
445
+
446
+ $$
447
+ \begin{array}{l} \left. \mathrm {D} _ {\mathrm {K L}} \left(q _ {\varphi} (\mathbf {z} _ {T} | \mathbf {x}) \| p (\mathbf {z} _ {T})\right) = \frac {1}{2} \left[ \log \frac {| I |}{| \sigma_ {T} ^ {2} I |} - d + T r \{I ^ {- 1} \sigma_ {t} ^ {2} I \} + \left\| 0 - \alpha_ {T} F _ {\varphi} (\mathbf {x}, T) \right\| _ {2} ^ {2} \right] \right. (18) \\ = \frac {1}{2} \left[ - d \log \sigma_ {T} ^ {2} - d + d \sigma_ {T} ^ {2} + \left\| \alpha_ {T} F _ {\varphi} (\mathbf {x}, T) \right\| _ {2} ^ {2} \right] (19) \\ = \frac {1}{2} \left[ d \left(\sigma_ {T} ^ {2} - \log \sigma_ {T} ^ {2} - 1\right) + \alpha_ {T} ^ {2} \| F _ {\varphi} (\mathbf {x}, T) \| _ {2} ^ {2} \right]. (20) \\ \end{array}
448
+ $$
449
+
450
+ Here, $d$ represents the dimensionality of the data space.
451
+
452
+ # A.3. Reverse SDE and ODE
453
+
454
+ As discussed in Section 3.2, when the number of steps, denoted as $T$ , tends to infinity for NDM, we can switch to continuous time.
455
+
456
+ In the discrete time setting, we define the time step as $t \in [0,1,\dots,T]$ . In the continuous time setting, we utilize the unit interval, denoting time as $t \in [0,1]$ . Nevertheless, for the sake of notational simplicity in this and subsequent sections, we will consider the discrete time to also lie within the unit interval, with $t \in [\frac{0}{T},\frac{1}{T},\dots,\frac{T}{T}]$ .
457
+
458
+ To derive the stochastic differential equation (SDE) for the reverse process $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t)$ in NDM, we first obtain an SDE that depends on the data point $\mathbf{x}$ and whose solution corresponds to the posterior distribution $q_{\varphi}(\mathbf{z}_{t - \Delta t}|\mathbf{z}_t,\mathbf{x})$ . By defining $p_{\theta}(\mathbf{z}_s|\mathbf{z}_t)$ through $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ with the prediction $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ instead of $\mathbf{x}$ , we can subsequently replace the prediction $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ and derive the SDE for the reverse process.
459
+
460
+ We constructively derive the SDE for the posteriors $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ . First, let us consider the following auxiliary SDE with backward time flow:
461
+
462
+ $$
463
+ d \varepsilon_ {t} = \frac {\dot {\nu} _ {t}}{2} \varepsilon_ {t} d t + \sqrt {\dot {\nu} _ {t}} d \mathbf {w}. \tag {21}
464
+ $$
465
+
466
+ It is straightforward to show that the solution to this SDE corresponds to the following distribution:
467
+
468
+ $$
469
+ q \left(\varepsilon_ {s} \mid \varepsilon_ {t}\right) = \mathcal {N} \left(\varepsilon_ {s}; \sqrt {1 - \bar {\sigma} _ {s \mid t} ^ {2}} \varepsilon_ {t}; \bar {\sigma} _ {s \mid t} ^ {2} I\right), \quad \text {w h e r e} \quad \bar {\sigma} _ {s \mid t} ^ {2} = 1 - e ^ {\nu_ {s} - \nu_ {t}}. \tag {22}
470
+ $$
471
+
472
+ To derive the SDE for the posteriors $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ , we can apply the following function to both the SDE (21) and the distribution (22):
473
+
474
+ $$
475
+ G (\mathbf {x}, \varepsilon_ {t}, t) = \alpha_ {t} F _ {\varphi} (\mathbf {x}, t) + \sigma_ {t} \varepsilon_ {t} \tag {23}
476
+ $$
477
+
478
+ Note that after applying the function $G$ , the distribution (22) matches the posterior distribution $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ . Therefore, the desired SDE for $q_{\varphi}(\mathbf{z}_s|\mathbf{z}_t,\mathbf{x})$ is obtained by transforming the SDE (21) using Ito's formula ( $\emptyset$ ksendal & $\emptyset$ ksendal, 2003):
479
+
480
+ $$
481
+ d \mathbf {z} _ {t} = \left[ \frac {\partial G (\mathbf {x} , \varepsilon , t)}{\partial t} \right| _ {\varepsilon = \varepsilon_ {t}} + \frac {\dot {\nu} _ {t}}{2} \frac {\partial G (\mathbf {x} , \varepsilon_ {t} , t)}{\partial \varepsilon_ {t}} \varepsilon_ {t} - \frac {\dot {\nu} _ {t}}{2} \frac {\partial^ {2} G (\mathbf {x} , \varepsilon_ {t} , t)}{\partial \varepsilon_ {t} ^ {2}} \Bigg ] d t + \sqrt {\dot {\nu} _ {t}} \frac {\partial G (\mathbf {x} , \varepsilon_ {t} , t)}{\partial \varepsilon_ {t}} d \mathbf {w} \tag {24}
482
+ $$
483
+
484
+ $$
485
+ \begin{array}{l} = \left[ \dot {\alpha} _ {t} F _ {\varphi} (\mathbf {x}, t) + \alpha_ {t} \dot {F} _ {\varphi} (\mathbf {x}, t) + \dot {\sigma} _ {t} \varepsilon_ {t} + \frac {\dot {\nu} _ {t}}{2} \sigma_ {t} \varepsilon_ {t} \right] d t + \sqrt {\dot {\nu} _ {t}} \sigma_ {t} d \mathbf {w} (25) \\ = \left[ \frac {\dot {\alpha} _ {t}}{\alpha_ {t}} \left(\mathbf {z} _ {t} - \sigma_ {t} \varepsilon_ {t}\right) + \alpha_ {t} \dot {F} _ {\varphi} (\mathbf {x}, t) + \dot {\sigma} _ {t} \varepsilon_ {t} + \frac {\dot {\nu} _ {t}}{2} \sigma_ {t} \varepsilon_ {t} \right] d t + \sqrt {\dot {\nu} _ {t}} \sigma_ {t} d \mathbf {w} (26) \\ = \left[ \alpha_ {t} \dot {F} _ {\varphi} (\mathbf {x}, t) + \frac {\partial \log \alpha_ {t}}{\partial t} \mathbf {z} _ {t} - \frac {1}{2} \left(\frac {\partial \sigma_ {t} ^ {2}}{\partial t} - 2 \frac {\partial \log \alpha_ {t}}{\partial t} \sigma_ {t} ^ {2} + \dot {\nu} _ {t} \sigma_ {t} ^ {2}\right) \left(- \frac {\varepsilon_ {t}}{\sigma_ {t}}\right) \right] d t + \sqrt {\dot {\nu} _ {t}} \sigma_ {t} d \mathbf {w} (27) \\ = \left[ \alpha_ {t} \dot {F} _ {\varphi} (\mathbf {x}, t) + r (t) \mathbf {z} _ {t} - \frac {1}{2} \left(\frac {\partial \sigma_ {t} ^ {2}}{\partial t} - 2 r (t) \sigma_ {t} ^ {2} + \dot {\nu} _ {t} \sigma_ {t} ^ {2}\right) s (\mathbf {x}, \mathbf {z} _ {t}, t) \right] d t + \sqrt {\dot {\nu} _ {t}} \sigma_ {t} d \mathbf {w}, (28) \\ \end{array}
486
+ $$
487
+
488
+ $$
489
+ \text {w h e r e} \quad r (t) = \frac {\partial \log \alpha_ {t}}{\partial t} \quad \text {a n d} \quad s (\mathbf {x}, \mathbf {z} _ {t}, t) = \frac {\alpha_ {t} F _ {\varphi} (\mathbf {x} , t) - \mathbf {z} _ {t}}{\sigma_ {t} ^ {2}} \tag {29}
490
+ $$
491
+
492
+ To obtain the SDE for the reverse process, we can substitute the prediction $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ instead of $\mathbf{x}$ . This substitution yields the SDE (11):
493
+
494
+ $$
495
+ d \mathbf {z} _ {t} = \left[ \alpha_ {t} \dot {F} _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right), t\right) + r (t) \mathbf {z} _ {t} - \frac {1}{2} \left(\frac {\partial \sigma_ {t} ^ {2}}{\partial t} - 2 r (t) \sigma_ {t} ^ {2} + \dot {\nu} _ {t} \sigma_ {t} ^ {2}\right) s _ {\theta} \left(\mathbf {z} _ {t}, t\right) \right] d t + \sqrt {\dot {\nu} _ {t}} \sigma_ {t} d \mathbf {w}, \tag {30}
496
+ $$
497
+
498
+ $$
499
+ \text {w h e r e} \quad s _ {\theta} \left(\mathbf {z} _ {t}, t\right) = \frac {\alpha_ {t} F _ {\varphi} \left(\hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t} , t\right) , t\right) - \mathbf {z} _ {t}}{\sigma_ {t} ^ {2}} \tag {31}
500
+ $$
501
+
502
+ As discussed earlier, we can leverage the Jacobian-Vector Product (JVP) trick (Smale & Hirsch, 1974) to calculate $\dot{F}_{\varphi}$ .
503
+
504
+ In the case where $\nu_{t}$ is a constant, the dynamics become deterministic and can be described by ordinary differential equations (ODEs). In our experiments, we utilize these ODEs to model the generative process as a continuous normalizing flow (Chen et al., 2018; Grathwohl et al., 2019) and estimate densities.
505
+
506
+ # A.4. Continuous time objective
507
+
508
+ When we switch to continuous time, the discrete objective (9) transforms from finite sum of KL divergences into integral, which we can easily derive as soon as we have access to both stochastic differential equations associated with the forward process (28) and with the reverse process (30). In continuous time the diffusion term $\mathcal{L}_{\mathrm{diff}}$ (10) is equal to:
509
+
510
+ $$
511
+ \begin{array}{l} \mathcal {L} _ {\mathrm {d i f f}} = \int_ {0} ^ {1} \frac {1}{g ^ {2} (t)} \left\| \alpha_ {t} \left(\dot {F} _ {\varphi} (\mathbf {x}, t) - \dot {F} _ {\varphi} (\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), t)\right) + \right. \\ \frac {1}{2} \left(\frac {\partial \sigma_ {t} ^ {2}}{\partial t} - 2 r (t) \sigma_ {t} ^ {2} + g ^ {2} (t)\right) \left(s (\mathbf {x}, \mathbf {z} _ {t}, t) - s (\hat {\mathbf {x}} _ {\theta} (\mathbf {z} _ {t}, t), \mathbf {z} _ {t}, t)\right) \Bigg \| _ {2} ^ {2} d t, \\ \end{array}
512
+ $$
513
+
514
+ $$
515
+ \text {w h e r e} \quad r (t) = \frac {\partial \log \alpha_ {t}}{\partial t}, \quad g ^ {2} (t) = \dot {\nu} _ {t} \sigma_ {t} ^ {2} \quad \text {a n d} \quad s (\mathbf {x}, \mathbf {z} _ {t}, t) = \frac {\alpha_ {t} F _ {\varphi} (\mathbf {x} , t) - \mathbf {z} _ {t}}{\sigma_ {t} ^ {2}}. \tag {32}
516
+ $$
517
+
518
+ As we can see, these equations contain $\dot{F}_{\varphi}$ as a component. In general, we do not have explicit access to the time derivative of the forward transformation $F_{\varphi}$ . However, we will focus on cases where the forward transformation is differentiable. By utilizing automatic differentiation tools, we can calculate the time derivatives of $F_{\varphi}$ . Nevertheless, when $\mathbf{x}$ is fixed, the function $F_{\varphi}(\mathbf{x}, \cdot)$ becomes a scalar-to-vector function. To compute its time derivative using simple backpropagation, we would need to execute it for all outputs of $F_{\varphi}$ , resulting in quadratic computational complexity. Fortunately, there exists a more efficient method to obtain the time derivative, the Jacobian-Vector Product trick (Smale & Hirsch, 1974). The Jacobian of the transformation function with $\mathbf{x}$ fixed is represented as a column matrix. Therefore, by computing the product of the Jacobian with a one-dimensional vector, we can obtain a vector of time derivatives.
519
+
520
+ # B. Connections with other works
521
+
522
+ We introduce NDMs as a comprehensive framework that generalises various existing approaches. Here we provide Table 5 which is an extended version of Table 1, that demonstrates how existing approaches appear as a spatial cases of NDMs.
523
+
524
+ We also provide an extended discussion on the connection between NDM and other related works.
525
+
526
+ # B.1. Diffusion in latent space
527
+
528
+ The concept of a learnable forward process is not entirely new. In some sense models that run a diffusion process in the latent space of a VAE (Vahdat et al., 2021; Rombach et al., 2022), a hierarchical VAE (Gu et al., 2023), or a Flow model (Kim et al., 2022) can be viewed as diffusion models with a learnable forward process. These models optimize the mapping to the latent space. Consequently, projecting the diffusion generative dynamic from the latent to the data space introduces a novel, nonlinear, and learnable generative dynamic. However, these models still rely on conventional diffusion in the latent space.
529
+
530
+ Additionally, these models can be viewed as spatial cases of NDM with a specific choice of the transformation $F_{\varphi}(\mathbf{x},t)$
531
+
532
+ Table 5. Summary of existing diffusion models as instances of Neural Diffusion Models (NDM).
533
+
534
+ <table><tr><td>Model</td><td>Distribution q(zt|x)</td><td>NDM&#x27;s F(x,t)</td><td>Comment</td></tr><tr><td>DDPM (Ho et al., 2020)/DDIM (Song et al., 2021a)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td></td></tr><tr><td>Flow Matching OT(Lipman et al., 2023)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td>αt=t,σt=1-(1-σmin)t</td></tr><tr><td>VDM (Kingma et al., 2021)</td><td>N(zt; αt x, σt2I)</td><td>x</td><td>α2t=sigmoid(-γη(t)),σ2t=sigmoid(γη(t))</td></tr><tr><td>IHDM (Rissanen et al., 2023)</td><td>N(zt; Ve-At VTx, σ2I)</td><td>Ve-At VTx</td><td>αt=1,σt=σ,σis fixed</td></tr><tr><td>Blurring Diffusion(Hoogeboom &amp; Salimans, 2023)</td><td>N(zt; αt e-At VTx, σt2I)</td><td>e-At VTx</td><td>p(x|z0)=N(x;aVz0,σ)</td></tr><tr><td>Soft Diffusion(Daras et al., 2022)</td><td>N(zt; Ct x, st2I)</td><td>Ct x</td><td>αt=1,σt2=st2</td></tr><tr><td>LSGM (Vahdat et al., 2021)</td><td>N(zt; αt E(x), σt2I)</td><td>E(x)</td><td>p(x|z0)=N(x;aD(z0),σ2)</td></tr><tr><td rowspan="2">f-DM (Gu et al., 2023)</td><td rowspan="2">N(zt; αt x t, σt2I)</td><td rowspan="2">xt=(t-τk)̂x^k+(τk+1-t)x^k/τk+1-τk, where τk≤t&lt;τk+1</td><td>x^k=f0:k(x)</td></tr><tr><td>x^k=\left\{g_k(f_{k+1}(x^k)), \begin{array}{l} if k&lt;K, \\ x^k, \end{array}\right.</td></tr></table>
535
+
536
+ For example, $F_{\varphi}$ might be selected as the VAE's time independent encoder in the case of (Vahdat et al., 2021) or the time independent Flow model in the case of (Kim et al., 2022).
537
+
538
+ # B.2. Schrödinger Bridges
539
+
540
+ Another line of works (De Bortoli et al., 2021; Wang et al., 2021; Peluchetti; Chen et al., 2021) are approaches based on Schrödinger Bridge theory. While such approaches allow learning forward transformations, in contrast to NDM, these approaches are not simulation-free. In Schrödinger Bridge models, we typically lack direct access to the distribution $q(\mathbf{z}_t|\mathbf{x})$ . Consequently, to sample the latent variable $\mathbf{z}_t$ in training time, we must simulate the full stochastic process, such as the stochastic differential equations. This characteristic makes Schrödinger Bridge models expensive in training and not simulation-free.
541
+
542
+ In contrast, NDM framework, by design, has access to $q(\mathbf{z}_t|\mathbf{x})$ . Thus, with NDM, when training a model with $T$ time steps, there is no need to propagate $F_{\varphi}$ for $T$ times at each step of the training procedure. Instead, the NDM framework enables sampling of the intermediate latent variables $\mathbf{z}_t$ directly from the distribution $q(\mathbf{z}_t|\mathbf{x})$ . Therefore, we can maintain the training paradigm outlined in Section 2. Instead of computing all $T$ KL divergences for each time step, we can approximate the objective using the Monte Carlo method by calculating just one KL divergence for a uniformly sampled time step $t \in [1;T]$ , as described in Algorithm 1.
543
+
544
+ This approach allows us to train the model with batches of shape $[batch\_size, d]$ rather than $[batch\_size, T, d]$ . Consequently, NDM can leverage larger batch sizes and use just one call of $F_{\varphi}$ for inferring latent variables $\mathbf{z}_t$ .
545
+
546
+ # B.3. Stochastic Interpolants
547
+
548
+ Albergo & Vanden-Eijnden (2023) proposed a Stochastic Interpolant approach, which provide more flexibility than conventional diffusion models in defining and even learning of the forward process. While we find stochastic interpolants intriguing and promising, as well as related to our work, these methods differ significantly.
549
+
550
+ Firstly, stochastic interpolants represent an approach to learning continuous-time deterministic generative dynamics, whereas NDM learns stochastic dynamics in either discrete or continuous time, which can subsequently may be transformed into a deterministic process.
551
+
552
+ Secondly, in NDM, the model is trained by optimizing the variational bound on the likelihood, while Stochastic Interpolants are trained by optimizing the generalization of the Flow Matching objective (Lipman et al., 2023).
553
+
554
+ Lastly, NDM joint learns both the forward and reverse processes by optimizing the likelihood, whereas stochastic interpolants
555
+
556
+ learn the generative process with a fixed forward process. Albergo & Vanden-Eijnden (2023) demonstrate the possibility of constructing an optimization procedure for the forward process through a max-min game to solve a dynamic optimal transport problem. However, the purpose of this optimization differs from that of NDM.
557
+
558
+ Moreover, max-min optimization, as employed in Stochastic Interpolants, is notably less stable compared to min-min optimization in NDM. Additionally, Stochastic Interpolants do not present experimental results for the optimization of the forward process.
559
+
560
+ # B.4. DiffEnc
561
+
562
+ In concurrent work, Nielsen et al. (2024) introduced DiffEnc. DiffEnc also proposes to add a time-dependent transformation to the data in the diffusion model. However, there are some distinctions between these two methods. Firstly, in NDM, we parameterize the reverse process by predicting the data point $\mathbf{x}$ , while in DiffEnc, they predict the transformed data point $F_{\varphi}(\mathbf{x},t)$ .
563
+
564
+ Secondly, in NDM, we employ a Signal-to-Noise Ratio (SNR) schedule for noise injection from DDPM (Ho et al., 2020) and a straightforward parameterization of the model $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ through predicting the injected epsilon, as detailed in Appendix C.2. Simultaneously, in DiffEnc, the authors use a learnable SNR schedule (Kingma et al., 2021) and a v-parameterization (Salimans & Ho, 2022) of $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ .
565
+
566
+ Finally, DiffEnc utilizes approximations of the time derivatives of data transformations $F_{\varphi}$ , while in the NDM framework, we propose calculating exact time derivatives using Jacobian-Vector Products.
567
+
568
+ # C. Implementation details
569
+
570
+ All our experiments were conducted using synthetic 2D datasets and image datasets: MNIST (Deng, 2012), CIFAR-10 (Krizhevsky et al., 2009), downsampled ImageNet (Deng et al., 2009; Van Den Oord et al., 2016) and CelebA-HQ-256 (Karras et al., 2017). For CIFAR-10 and ImageNet datasets we applied center cropping and resizing. For synthetic data, we employed a 5-layer MLP with 512 neurons in each layer, while for the images, we utilized the U-Net architecture from Dhariwal & Nichol (2021). In our experiments both the DDPM and NDM approaches were trained on identical architectures, with the same hyper-parameters and for the same number of epochs. The hyper-parameters are presented in Table 6. In experiment where we report results for the continuous time models we use importance sampling of time (Song et al., 2021b) instead of uniform sampling.
571
+
572
+ We trained models using the Adam optimizer, setting the following parameters: $\beta_{1} = 0.9$ , $\beta_{2} = 0.999$ , weight decay of 0.0, and $\varepsilon = 10^{-8}$ . To facilitate the training process, we employed a polynomial decay learning rate schedule, which includes a warm-up phase for a specified number of training steps. During the warm-up phase, the learning rate is linearly increased from $10^{-8}$ to the peak learning rate. Once the peak learning rate is reached, the learning rate is linearly decayed to $10^{-8}$ until the final training step. The training was performed using Tesla V100 GPUs.
573
+
574
+ # C.1. Dequantization
575
+
576
+ When reporting negative log-likelihood, we dequantize using the standard uniform dequantization. We report an importance-weighted estimate using
577
+
578
+ $$
579
+ \log \frac {1}{K} \sum_ {k = 1} ^ {K} p _ {\theta} (\mathbf {x} + u _ {k}), \quad \text {w h e r e} \quad u _ {k} \sim \mathcal {U} (0, 1), \tag {33}
580
+ $$
581
+
582
+ with $\mathbf{x}\in [0,\dots ,255]$
583
+
584
+ # C.2. Parameterization
585
+
586
+ In order to simplify the derivations above, we have utilized the notation $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ to represent the prediction of the reverse process. However, prior research has shown that predicting the injected noise $\varepsilon_{t}$ can lead to improved results (Ho et al., 2020; Nichol & Dhariwal, 2021; Dhariwal & Nichol, 2021). Therefore, in all the experiments, we opt for the following
587
+
588
+ Table 6. Training hyper-parameters.
589
+
590
+ <table><tr><td></td><td>CIFAR-10</td><td>ImageNet 32</td><td>ImageNet 64</td></tr><tr><td>Channels</td><td>256</td><td>256</td><td>192</td></tr><tr><td>Depth</td><td>2</td><td>3</td><td>3</td></tr><tr><td>Channels multipliers</td><td>1,2,2,2</td><td>1,2,2,2</td><td>1,2,3,4</td></tr><tr><td>Heads</td><td>4</td><td>4</td><td>4</td></tr><tr><td>Heads Channels</td><td>64</td><td>64</td><td>64</td></tr><tr><td>Attention resolution</td><td>16</td><td>16,8</td><td>32,16,8</td></tr><tr><td>Dropout</td><td>0.0</td><td>0.0</td><td>0.0</td></tr><tr><td>Effective Batch size</td><td>256</td><td>1024</td><td>2048</td></tr><tr><td>GPUs</td><td>2</td><td>4</td><td>16</td></tr><tr><td>Epochs</td><td>1000</td><td>200</td><td>250</td></tr><tr><td>Iterations</td><td>391k</td><td>250k</td><td>157k</td></tr><tr><td>Learning Rate</td><td>4e-4</td><td>1e-4</td><td>1e-4</td></tr><tr><td>Learning Rate Scheduler</td><td>Polynomial</td><td>Polynomial</td><td>Constant</td></tr><tr><td>Warmup Steps</td><td>45k</td><td>20k</td><td>-</td></tr></table>
591
+
592
+ parameterization:
593
+
594
+ $$
595
+ \hat {\mathbf {x}} _ {\theta} \left(\mathbf {z} _ {t}, t\right) = \frac {\mathbf {z} _ {t} - \sigma_ {t} \hat {\varepsilon} _ {\theta} \left(\mathbf {z} _ {t} , t\right)}{\alpha_ {t}}. \tag {34}
596
+ $$
597
+
598
+ It is worth noting that with this parameterization, $\hat{\varepsilon}_{\theta}(\mathbf{z}_t,t)$ does not necessarily approximate the true injected noise $\varepsilon_{t}$ , since this reparameterization does not account for the transformation $F_{\varphi}$ . We believe that better parameterizations may exist for NDM, but we leave this for future research.
599
+
600
+ Furthermore, we restrict the transformation $F_{\varphi}$ to an identity transformation for $t = 0$ through the following construction:
601
+
602
+ $$
603
+ F _ {\varphi} (\mathbf {x}, t) = (1 - t) \mathbf {x} + t \bar {F} _ {\varphi} (\mathbf {x}, t). \tag {35}
604
+ $$
605
+
606
+ This ensures that $q(\mathbf{z}_0|\mathbf{x}) \approx \delta (\mathbf{z}_0 - \mathbf{x})$ , and thus also removes the need to optimize the reconstruction term $\mathcal{L}_{\mathrm{rec}}$ .
607
+
608
+ Finally, to ensure consistency with Ho et al. (2020) we use $\tilde{\sigma}_{s|t}^2 = \left(\sigma_t^2 -\frac{\alpha_t^2}{\alpha_s^2}\sigma_s^2\right)\frac{\sigma_s^2}{\sigma_t^2}$ for the forward process (7). This choice of $\tilde{\sigma}_{s|t}^2$ guarantees consistency between the NDM and DDPM forward processes. For $\alpha_{t}$ and $\sigma_t^2$ we use the DDPM schedule of noise injection.
609
+
610
+ # C.3. Diffusion in latent space
611
+
612
+ For experiment with diffusion in the latent space of VAE on CelebA-HQ-256, we followed LSGM (Vahdat et al., 2021) experiment setup. The only difference between LSGM baseline and our model is that we utilize learnable transformations $F_{\varphi}$ according to NDMs framework. We apply the same hyperparameters, as LSGM.
613
+
614
+ # D. Additional results
615
+
616
+ # D.1. Additional evaluation
617
+
618
+ Here we provide Table 7 which contains additional results to Table 3. This table compare DDPM and NDMs with learnable transformations on CIFAR-10 and ImageNet $32 \times 32$ datasets with different numbers of steps.
619
+
620
+ # D.2. Additional samples
621
+
622
+ In this section, we present additional illustrations showcasing the properties of NDMs.
623
+
624
+ Figure 4 provides a comparison between DDPM and NDM on a synthetic 2D data distribution. For this experiment, both models utilize $T = 10$ discrete time steps. From Figure 4c, it is evident that NDM learns to transform the data distribution.
625
+
626
+ Table 7. Performance comparison the DDPM and NDM on CIFAR-10 and ImageNet 32 datasets with different numbers of steps. We report the performance with same hyperparameters and neural networks on both models to quantify the effect of learnable transformation in fair setting. We provide likelihood (bits/dim) and negative ELBO. Additionally for CIFAR-10 and ImageNet 32 we provide FID score. Boldface numbers represent the best performance. NDM consistently outperforms in terms of NLL and NELBO with comparable sample quality to DDPM on all datasets.
627
+
628
+ <table><tr><td rowspan="2">Steps</td><td rowspan="2">Model</td><td colspan="3">CIFAR-10</td><td colspan="3">ImageNet 32</td></tr><tr><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td></tr><tr><td rowspan="2">1000</td><td>DDPM</td><td>3.11</td><td>3.18</td><td>11.44</td><td>3.89</td><td>3.95</td><td>16.18</td></tr><tr><td>NDM</td><td>3.02</td><td>3.03</td><td>11.82</td><td>3.79</td><td>3.82</td><td>17.02</td></tr><tr><td rowspan="2">100</td><td>DDPM</td><td>3.31</td><td>3.38</td><td>11.78</td><td>4.14</td><td>4.23</td><td>16.66</td></tr><tr><td>NDM</td><td>3.05</td><td>3.12</td><td>11.98</td><td>3.83</td><td>3.92</td><td>17.74</td></tr><tr><td rowspan="2">50</td><td>DDPM</td><td>3.49</td><td>3.57</td><td>13.22</td><td>4.37</td><td>4.47</td><td>18.70</td></tr><tr><td>NDM</td><td>3.22</td><td>3.30</td><td>13.15</td><td>4.05</td><td>4.14</td><td>18.93</td></tr><tr><td rowspan="2">10</td><td>DDPM</td><td>5.02</td><td>5.13</td><td>37.83</td><td>6.28</td><td>6.42</td><td>53.51</td></tr><tr><td>NDM</td><td>4.63</td><td>4.74</td><td>31.56</td><td>5.81</td><td>5.94</td><td>45.38</td></tr><tr><td rowspan="2">1000 → 100</td><td>DDPM</td><td>3.38</td><td>3.45</td><td>12.29</td><td>4.23</td><td>4.32</td><td>17.49</td></tr><tr><td>NDM</td><td>3.30</td><td>3.37</td><td>12.70</td><td>4.15</td><td>4.23</td><td>18.48</td></tr><tr><td rowspan="2">1000 → 50</td><td>DDPM</td><td>4.08</td><td>4.17</td><td>15.24</td><td>5.10</td><td>5.21</td><td>20.09</td></tr><tr><td>NDM</td><td>3.98</td><td>4.07</td><td>16.83</td><td>5.00</td><td>5.10</td><td>21.11</td></tr><tr><td rowspan="2">1000 → 10</td><td>DDPM</td><td>8.78</td><td>8.98</td><td>43.85</td><td>10.99</td><td>11.23</td><td>58.35</td></tr><tr><td>NDM</td><td>8.58</td><td>8.81</td><td>48.41</td><td>10.78</td><td>11.06</td><td>62.12</td></tr></table>
629
+
630
+ Additionally, after injecting noise (Figures 4a and 4d), the distributions of samples $\mathbf{z}_t$ show minimal differences between DDPM and NDM. However, when examining the predictions of data points $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ (Figures 4b and 4e), NDM produces predictions that more closely resemble the true data distribution compared to DDPM.
631
+
632
+ A similar pattern emerges when applying these models to the MNIST dataset, as depicted in Figure 5. For this experiment we also use $T = 10$ discrete time steps. DDPM generates blurry predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ for $t$ close to $T$ , which bear little resemblance to real MNIST samples. Conversely, NDM produces predictions that are more similar to the true MNIST distribution, despite both models generating similar-looking noisy samples.
633
+
634
+ Finally, we include samples from both DDPM and NDM models with $T = 1000$ steps on the CIFAR-10 dataset in Figure 6. As outlined in Table 1, NDM exhibits lower sample quality based on FID measurements; however, visually there is no drop in quality.
635
+
636
+ # D.3. Ablation studies
637
+
638
+ Finally, we address the question of whether the improved performance of NDM is due to the proposed method or merely the result of increasing the number of model parameters. To investigate this issue, we provide additional experiments where we double the number of DDPM parameters in two ways. The first way is to simply stack two U-Net architectures, which is the closest form to NDM. The second way is to increase the width of the U-Net architecture. Specifically, for the second way we use 384 channels instead of 256. Importantly, we left all other hyper-parameters (see Table 6), such as the learning rate and number of iterations, unchanged. As shown in Table 8, neither of these approaches yields the same results as NDM with learnable transformations. This means that the improved performance is not simply a result of the increased number of parameters.
639
+
640
+ # E. Dynamic optimal transport
641
+
642
+ In this section, we present a proof-of-concept experiment demonstrating that the NDMs framework enables the learning of simpler generative trajectories. Specifically, we conduct experiments involving a 1D mixture of Gaussian distribution and dynamic optimal transport (OT).
643
+
644
+ Table 8. Comparison of NDM and DDPM with doubled number of parameters on CIFAR-10 for 10 and 1000 steps. The performance of DDPM stays the same while doubling the number of parameters, and NDM still achieves the best NLL and NELBO despite comparable number of parameters.
645
+
646
+ <table><tr><td rowspan="2">Model</td><td colspan="3">10 steps</td><td colspan="3">1000 steps</td></tr><tr><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td><td>NLL ↓</td><td>NELBO ↓</td><td>FID ↓</td></tr><tr><td>DDPM</td><td>5.02</td><td>5.13</td><td>37.83</td><td>3.11</td><td>3.18</td><td>11.44</td></tr><tr><td>DDPM (stack)</td><td>5.02</td><td>5.13</td><td>38.05</td><td>3.10</td><td>3.18</td><td>11.42</td></tr><tr><td>DDPM (wide)</td><td>5.01</td><td>5.11</td><td>37.88</td><td>3.11</td><td>3.17</td><td>11.39</td></tr><tr><td>NDM</td><td>4.63</td><td>4.74</td><td>31.56</td><td>3.02</td><td>3.03</td><td>11.82</td></tr></table>
647
+
648
+ While NDMs don't inherently have a direct connection with OT, we can establish a connection given the presence of infinitely many pairs of matched forward and reverse processes. This connection is facilitated by the NDMs' ability to learn the forward process. Therefore, we can consider the following setup.
649
+
650
+ We consider NDMs with a learnable function $F_{\varphi}$ . Then, we constrain the reverse process to exclusively learn dynamic OT mappings. Finally, we train both the forward and reverse processes jointly, following the NDMs framework. In such a setup we can expect the forward process to learn such a transition from data distribution to Gaussian distribution, that aligns with the limitations imposed on the reverse process.
651
+
652
+ # E.1. Restricted reverse process
653
+
654
+ To restrict the reverse process we parameterise the reverse deterministic process to have linear trajectories:
655
+
656
+ $$
657
+ \mathbf {z} _ {t} = h _ {\theta} (t, \varepsilon) = (1 - t) \hat {\mathbf {x}} _ {\theta} (\varepsilon) + t \varepsilon , \tag {36}
658
+ $$
659
+
660
+ where $\varepsilon$ is a sample drawn from a unit Gaussian distribution. Since we are working with smooth 1D distributions, it is enough for $\hat{\mathbf{x}}_{\theta}$ to be monotonically increasing, so the trajectories $\mathbf{z}_t$ correspond to dynamic OT. Which means that for any parameters $\theta$ the reverse process describes dynamic OT between the standard Gaussian distribution and another distribution (not necessarily exactly the target data distribution). In practice, we parameterize $\hat{\mathbf{x}}_{\theta}$ using the neural network proposed by Kingma et al. (2021) for the parameterization of the Signal-to-Noise Ratio (SNR) function.
661
+
662
+ Then, we can derive an ordinary differential equation (ODE) for the reverse process:
663
+
664
+ $$
665
+ d \mathbf {z} _ {t} = \underbrace {\varepsilon - \hat {\mathbf {x}} _ {\theta} (\varepsilon) \Big | _ {\varepsilon = h _ {\theta} ^ {- 1} (t , \mathbf {z} _ {t})}} _ {f _ {\theta} (t, \mathbf {z} _ {t})} d t. \tag {37}
666
+ $$
667
+
668
+ Next, we may switch to a stochastic differential equation (SDE) according to Song et al. (2021c):
669
+
670
+ $$
671
+ d \mathbf {z} _ {t} = \underbrace {\left[ f _ {\theta} (t , \mathbf {z} _ {t}) - \frac {g ^ {2} (t)}{2} \nabla_ {\mathbf {z} _ {t}} \log p _ {\theta} (\mathbf {z} _ {t}) \right]} _ {f _ {\theta} ^ {r} (t, \mathbf {z} _ {t})} d t + g (t) d \bar {\mathbf {w}}. \tag {38}
672
+ $$
673
+
674
+ As soon as we have access to $h_{\theta}^{-1}$ , we may find:
675
+
676
+ $$
677
+ \begin{array}{l} \nabla_ {\mathbf {z} _ {t}} \log p _ {\theta} (\mathbf {z} _ {t}) = \nabla_ {\mathbf {z} _ {t}} \left[ \log p (\varepsilon) - \log \left| \frac {\partial \mathbf {z} _ {t}}{\partial \varepsilon} \right| \right] \Big | _ {\varepsilon = h _ {\theta} ^ {- 1} (t, \mathbf {z} _ {t})} (39) \\ = \nabla_ {\mathbf {z} _ {t}} \left[ \log p (\varepsilon) - \log \left| (1 - t) \frac {\partial \mathbf {x} _ {t}}{\partial \varepsilon} + t \right| \right] \Big | _ {\varepsilon = h _ {\theta} ^ {- 1} (t, \mathbf {z} _ {t})}. (40) \\ \end{array}
678
+ $$
679
+
680
+ # E.2. Objective function
681
+
682
+ To train a model with such a specific reverse process, we can utilize a slightly modified NDMs framework. The only component of the NDMs' objective that is unclear is the diffusion term $\mathcal{L}_{\mathrm{diff}}$ . NDMs provide a conditional reverse SDE
683
+
684
+ ![](images/c146d12f6e6eb31a3cca1990c879ab85fc232fa49ff9879ddd3f1988d14f97fa.jpg)
685
+ (a) DDPM with regular reverse process.
686
+
687
+ ![](images/751c1e794ed06afc86f1d4e7e00d9cb7034e07b32b573e0c6c1c67f66cdd710d.jpg)
688
+ (b) NDM with restricted (OT) reverse process.
689
+ Figure 3. Comparison of DDPM and NDM with restricted reverse process to be optimal transport, 1D distribution.
690
+
691
+ associated with the forward process (28) in the following form:
692
+
693
+ $$
694
+ d \mathbf {z} _ {t} = f _ {\varphi} ^ {f} (x, t, \mathbf {z} _ {t}) d t + g (t) d \bar {\mathbf {w}}. \tag {41}
695
+ $$
696
+
697
+ Also, here we have the reverse SDE (38). Therefore, we may find diffusion term $\mathcal{L}_{\mathrm{diff}}$ of objective as follows:
698
+
699
+ $$
700
+ \mathcal {L} _ {\text {d i f f}} = \mathbb {E} _ {q (\mathbf {x})} \mathbb {E} _ {u (t)} \mathbb {E} _ {q \left(\mathbf {z} _ {t} \mid \mathbf {x}\right)} \frac {1}{g ^ {2} (t)} \left\| f _ {\varphi} ^ {f} (x, t, \mathbf {z} _ {t}) - f _ {\theta} ^ {r} (t, \mathbf {z} _ {t}) \right\| _ {2} ^ {2}. \tag {42}
701
+ $$
702
+
703
+ # E.3. Results and discussion
704
+
705
+ Figures 3a and 3b illustrate trajectories learned by DDPM and NDM with learnable $F_{\varphi}$ and restricted reverse process. As expected, DDPM learns curved trajectories predetermined by fixed forward process. At the same time NDM effectively learns dynamic OT. It worths noting that DDPM with the restricted reverse process is by design not able to learn the data distribution, since it's impossible to match the fixed forward process (with curved trajectories) with the reverse process (with straight trajectories).
706
+
707
+ The proposed approach is limited to 1D data, monotonically increasing $\hat{\mathbf{x}}_{\theta}$ , and a nontrivial $h_\theta^{-1}$ function, which we resolve using 5 iterations of Newton's method. Nevertheless, this experiment clearly demonstrates that NDMs may be utilised for learning OT as well as other (e.g. computationally efficient ones) dynamics by restricting the reverse process. Establishing rigorous theoretical connections with OT, developing specific techniques for efficient parameterisation of the reverse process and generalising to higher dimensions are interesting avenue for future work.
708
+
709
+ ![](images/00e85b808ef3f26afed9c222cd0532a9b9854cb23e026812f626b56b1fa51e2e.jpg)
710
+
711
+ ![](images/c2177e12f37a25d0d9448c42b56ab2d563dbad0614c9a9723678a64e7bb73a77.jpg)
712
+ (a) DDPM, samples $\mathbf{z}_t$ from forward process.
713
+
714
+ ![](images/c62b22ffd22c0d136907159e21c36557ca8eae7f7b98ce55ec034ddd7d57f841.jpg)
715
+
716
+ ![](images/18d5b50d1d53e35a3537a6a5bc6b2fcadada123c2ea0bc58887af27e57dd5295.jpg)
717
+
718
+ ![](images/c9668a8b160c592bf074eb09aa922651767e50af70bdf895e9cb1fef20db2d59.jpg)
719
+
720
+ ![](images/c0c68b59dacc7601d9606e466ee4bfeb74174d97499a7726ad54876d9555ac3a.jpg)
721
+
722
+ ![](images/bfee79170b1e11a74f7a80bdf9c5130fb78f1fdcdecd6f53fdd32e9e496d3ad3.jpg)
723
+
724
+ ![](images/a08a908715452e63b004dec232cb4bacc532c6398332242f4b1ccac67e21db9d.jpg)
725
+ (b) DDPM, predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ for different time steps.
726
+
727
+ ![](images/5ce750a6a81e9adfb30cf15d976b3bec7969d4cb26b6aeac853c1eb9a6a70b4c.jpg)
728
+
729
+ ![](images/f35f18341364dd8ed8d49534b8bd43c273d06e04942ae52a9b42aa4ffc6e013a.jpg)
730
+
731
+ ![](images/1c7e9b1a1b434ef41ae317f4e306a7aa815ec07d103640568137d048c0fb1d50.jpg)
732
+
733
+ ![](images/1ec54041c0daf5741418efeb9937da050a8531fbf9fa4c9b813293184ff797a6.jpg)
734
+
735
+ ![](images/01fed67831d2ebd246669df0041f400e5ee838d239ca2cb04a69e0cf6ee3ae03.jpg)
736
+
737
+ ![](images/a345507578ba24dca4ceba16e800f4816fb5b01115087ec46266139b64e5cd89.jpg)
738
+
739
+ ![](images/2e88599dc6d7f2f1bee9e266b7d811fb943debf8b31568cd2dfab5b00d7aae38.jpg)
740
+
741
+ ![](images/9a100151f3f1b7129e01d79933ddc5004ff727a3b276bfd2ceac313bf32c4972.jpg)
742
+
743
+ ![](images/ea8de29e668ce1d5e13ba6d1ccbfba9d52a3e63a5f7275f0b8797e431b4c2bfe.jpg)
744
+
745
+ ![](images/38b56ee85d9e27c7e0081782e9b96b4d64f7c29985eff2123843168c996956d7.jpg)
746
+
747
+ ![](images/d6e8db23d4feff33260dfd6e9816c803ae6d3c990a6bb725f2e0d7ff41c5c887.jpg)
748
+
749
+ ![](images/8da885998c7e1579e38c6cb361e295953cd2e9d5ceeaf133a10547051fa0c17a.jpg)
750
+ (c) NDM, forward transformations $F_{\varphi}(\mathbf{x},t)$
751
+
752
+ ![](images/529c08288ee1252bf574c5eed2ca1a77cbd42ddee525a854d67181027ca2c80a.jpg)
753
+
754
+ ![](images/49b17f0396cce24ae5189cd1c23aefbe2d8ff0bac7bc096025769b735180fc4f.jpg)
755
+
756
+ ![](images/99be39388e3d25b9a76c3cb13b20ccbb71d62c182f3d250d4835d4b0786c8014.jpg)
757
+
758
+ ![](images/1689fa16518fe2859bc3c64c1676568d575cb9c89da57e27f3db7c4cf3a564fb.jpg)
759
+
760
+ ![](images/0139e82ee8d0a582ea11e2fd8611340a6f9ad2cf385afe891c48c888f9a64fab.jpg)
761
+ (e) NDM, predictions $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ for different time steps.
762
+
763
+ ![](images/3fb544b6bce2c1b9a1a591b2f1bfb16eb173c690eedb710d01135d16645414a2.jpg)
764
+ (d) NDM, samples $\mathbf{z}_t$ from forward process.
765
+
766
+ ![](images/0d1add10c35b75b4f055e646ccda2669d8834a53f5f9fb2601b1a9935eca92c6.jpg)
767
+ Figure 4. Comparison of DDPM and NDM on 2D distribution.
768
+
769
+ ![](images/599e44cb1fce048aa06403a8a2aba0f20d42699e5052af23b527a42c66d0837f.jpg)
770
+
771
+ ![](images/1bf54b9be439716a9e22a1cb3bb4bf291c850af6eaf4052f53b157ca0592eaf8.jpg)
772
+
773
+ ![](images/587dc6ae68b2b12ca6e70aa949f3fa1848ab0fd91e1bc6ce4f50d63fd2d3830c.jpg)
774
+
775
+ ![](images/5caef49653bb9e40ef82c1529badb7b2a9907bfaf9339eb8e81495c1c6540422.jpg)
776
+
777
+ ![](images/23d11600d92261c0b90fc403016b9d39a2847d99a3ba883296cb5fcde5110279.jpg)
778
+
779
+ ![](images/f33d3b2dd48651115624af1e3bc495876ec5eac0e93c72814432c69b188885cc.jpg)
780
+
781
+ ![](images/c3ec8997e1607263d878d7441ca0304372e4e235af3689d7625c68d9672ed58d.jpg)
782
+
783
+ ![](images/b60c29d9f160b41646cbbe85cc2042eb483025801fb91f43021cfc119dbbbd21.jpg)
784
+
785
+ ![](images/81272052c4075b7427648c38a7012021ea6a1488e36f47438c3de152993ea706.jpg)
786
+
787
+ ![](images/a8122dac66e4238f3f5a78751b5628601a4a98c60de547b8863a0bc429bbb24d.jpg)
788
+
789
+ ![](images/9323a16362aefc9cb406b40cfbac44e4826ed14b7381f020baf38eae294c3d84.jpg)
790
+
791
+ ![](images/747899fd7f7bdbb19b2ca4428000f952c77f065e4026da64891f795ca1cf1b59.jpg)
792
+
793
+ ![](images/eba6d0ebc3b6671bf1b4fb924a0da6a7341311cff3f0933b3e331b83d62616d4.jpg)
794
+ (a) DDPM
795
+
796
+ ![](images/d081bd3917997680c48e2d967bd66d9a19152f2925b78a1843605da90b41d670.jpg)
797
+
798
+ ![](images/b232512e31a0bf52d8bf80e36ae37e030e46362ab0a4452a05bc02d1d2527c56.jpg)
799
+
800
+ ![](images/c387a06dca70cbec666cc8e0c389de90fd2e7a85338484e05f1407c8c0fbdafc.jpg)
801
+
802
+ ![](images/5f215846e10e9f51e22f4ad4aa8bcd8b836307fb4d2f7c45cd5005a9c54de42d.jpg)
803
+
804
+ ![](images/5d757aedc6fe64f7d79e637fa38bd2fc0a3b0d9ffd9b03b2a1c3a408d66b8278.jpg)
805
+
806
+ ![](images/ddef1d5a4c0ab57fea05e36dc92b470792d0d807c82a428ab49fae332e962174.jpg)
807
+
808
+ ![](images/de7006bf04054f4dfa4ff08f63924c29559034238617a8c8e914e6010735f33a.jpg)
809
+
810
+ ![](images/326c1464d43e58dff856a4ced0b3b1d1420437f17722c1075706e78f4f14fdc1.jpg)
811
+
812
+ ![](images/a99914f34b25051e442cf2eef28bbef27a12befcea30c0585d5323aad2620c63.jpg)
813
+
814
+ ![](images/c5399491d039787d8efb5e50767bf81b7fe2aefc317834a82fe63563f97334df.jpg)
815
+ (b) NDM
816
+ Figure 5. Samples $\mathbf{z}_t$ from forward process and predicted data points $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ on MNIST. (a) Samples from DDPM. (b) Samples from NDM. In each group, Left: data sample, Top: noised samples $\mathbf{z}_t$ , Bottom: predicted data points $\hat{\mathbf{x}}_{\theta}(\mathbf{z}_t,t)$ .
817
+
818
+ ![](images/d778e086fbed4e7e6abedfd7fca802bfad365f345f235be36e4e7d4145c2ae67.jpg)
819
+
820
+ ![](images/dd6e26d1a7703978f31b60326abb8c70d5a138d5cc88df5aaf1ccc626ae707db.jpg)
821
+ (a) DDPM, FID = 11.44
822
+ (b) NDM, FID = 11.82
823
+ Figure 6. Samples on CIFAR-10. (a) Samples from DDPM. (b) Samples from NDM. Samples of both models are generated with the same random seed.
2024/Neural Diffusion Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21db437b9a4c8e84373f21c82fb755f21c2b8cecf4eb84944c7815fb29a2bf04
3
+ size 1760449
2024/Neural Diffusion Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/00d62faa-ad68-4c8a-920d-e9cfc279879d_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0d1f88d7674729af1dd06b498ebe3b387f653e30479b252cd956920369cc5a55
3
+ size 5137040
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/full.md ADDED
@@ -0,0 +1,534 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity
2
+
3
+ Hagyeong Lee $^{*1}$ Minkyu Kim $^{*1}$ Jun-Hyuk Kim $^{2}$ Seungeon Kim $^{2}$ Dokwan Oh $^{2}$ Jaeho Lee
4
+
5
+ # Abstract
6
+
7
+ Recent advances in text-guided image compression have shown great potential to enhance the perceptual quality of reconstructed images. These methods, however, tend to have significantly degraded pixel-wise fidelity, limiting their practicality. To fill this gap, we develop a new text-guided image compression algorithm that achieves both high perceptual and pixel-wise fidelity. In particular, we propose a compression framework that leverages text information mainly by text-adaptive encoding and training with joint image-text loss. By doing so, we avoid decoding based on text-guided generative models—known for high generative diversity—and effectively utilize the semantic information of text at a global level. Experimental results on various datasets show that our method can achieve high pixel-level and perceptual quality, with either human- or machine-generated captions. In particular, our method outperforms all baselines in terms of LPIPS, with some room for even more improvements when we use more carefully generated captions.
8
+
9
+ Project Page:
10
+
11
+ taco-nic.github.io
12
+
13
+ Code:
14
+
15
+ github.com/effl-lab/TACO
16
+
17
+ # 1. Introduction
18
+
19
+ How can text improve machine vision? This question has been asked repeatedly in various domains of visual computing, giving birth to a number of vision-language models with tremendous multi-modal reasoning and generative capabilities (Radford et al., 2021; Liu et al., 2023a).
20
+
21
+ The value of text has gained much attention in image compression as well, motivated by the astonishing ability of
22
+
23
+ *Equal contribution ¹POSTECH ²Samsung Advanced Institute of Technology. Correspondence to: Jaeho Lee <jaeho.lee@postech.ac.kr>.
24
+
25
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
26
+
27
+ ![](images/bbdaa0ab06d00b9530d969c08c399c1cb8dafd4f5ae275b85350b1ff692cc6ae.jpg)
28
+ Figure 1. Pixel-wise fidelity vs. perceptual fidelity, at 0.40 bpp. We compare pixel-wise and perceptual fidelity of image compression codes on MS-COCO 30k. The proposed TACO achieves competitive results in both metrics. The reported figures for Qin 2023 has been measured on MS-COCO 40k, and some figures have been interpolated from nearest bpp models (●: PSNR-focused, ■: perception-focused, ▲: text-guided, ×: handcrafted).
29
+
30
+ modern text-guided generative models to synthesize realistic images from the given text prompt (Rombach et al., 2022). The conventional way to leverage these models is via text-guided decoding (or textual transform coding; Weissman (2023)): We use text-guided generative model as our decoder, and the encoding is done by finding a good textual code. The code may consist of a text prompt plus any additional latent prompt vectors, that can generate the reconstruction that looks close to the original image. As the text can be represented with a very small number of bits, we expect such an approach to be very bit-efficient (Shannon, 1951; Bown et al., 2018; Weissman, 2023).
31
+
32
+ Following this intuition, recent works have developed text-guided neural image compression codes that can reconstruct images with high perceptual quality, i.e., either highly realistic (e.g., low FID) or perceptually similar to the original image (e.g., low LPIPS). One line of work shows that using pretrained text-guided generative models as decoders
33
+
34
+ "A woman wearing a red hat and a red dress"
35
+
36
+ ![](images/1c6a076463f491f34d8859739318d463494437caaa5e2b8500456bfce7435a0e.jpg)
37
+ Figure 2. Qualitative results. We compare TACO against MS-ILLM and LIC-TCM, which focuses on perception and PSNR, respectively. TACO uses slightly less bpp than baselines. Comparing with MS-ILLM, TACO tends to suffer less from hallucinated artifacts (see teeth). Comparing with LIC-TCM, TACO can reconstruct sharper details (see lips). See Appendix D for more examples.
38
+
39
+ ![](images/dfafee32d551690f00bb40454f98a975009c5dfc6583cc2fcf37fcdbe0dcc876.jpg)
40
+ Original
41
+
42
+ ![](images/61d939c5eb201c93ed8b64d09b26c2ac889a7b328b3b788d52e38d259261aba5.jpg)
43
+ TACO
44
+
45
+ ![](images/9214d1065f0f1fff1674438154f7f9097846e9f81bdf48b645e808866a0f337f.jpg)
46
+ MS-ILLM
47
+
48
+ ![](images/360832d9af0decf9fa2d5471c6b82adec17e26969e6a1520eb9512fc53bbcddf.jpg)
49
+ LIC-TCM
50
+
51
+ can give neural CODECs that achieve high realism at extremely low bitrates, e.g., less than 0.01 bits per pixel (Pan et al., 2022; Lei et al., 2023; Careil et al., 2024). Another line of work targets conventional bitrates (over 0.1 bpp) and shows that one can significantly improve the perceptual similarity of reconstructed images to the original image by using text captions as additional side information, where the text information is inserted to the decoder via some plug-in modules (Jiang et al., 2023; Qin et al., 2023).
52
+
53
+ These approaches, however, commonly suffer from substantial degradations in pixel-wise fidelity, i.e., PSNR. For example, diffusion-based compression CODEs tend to achieve 3-5 dB less PSNR than standard neural image compression CODEs (Careil et al., 2024). Despite the practical importance of the pixel-wise fidelity (Liu et al., 2023b), it remains unknown whether or how such PSNR degradation can be mitigated for text-guided image compression schemes.
54
+
55
+ Contribution. In this paper, we fill this gap by developing a text-guided image compression scheme that can achieve high pixel-level and perceptual quality simultaneously (we focus more on the perceptual fidelity, e.g., LPIPS, than on realism). Our key hypothesis is that text-guided decoding may not be an effective strategy for PSNR. For high PSNR, we must be able to decode with very small generative diversity, and effectively utilize the semantic information at the global level (i.e., not affecting only local regions). Diffusion-like decoders tend to have too much diversity (Pan et al., 2022), and plug-in approaches tend to have weak control on the global semantics of the reconstruction (Lei et al., 2023).
56
+
57
+ Thus, we establish an alternative strategy of utilizing text only for encoding. Here, the main role of text is to provide additional supervision on how human perceives the image; using this information, the encoder can better preserve perceptually meaningful information without discarding it dur
58
+
59
+ ing (lossy) compression. By using text only for encoder, we can leverage existing decoder architectures that can generate accurate reconstructions with minimal generative diversity. Furthermore, as we encode the textual information into the code itself, the injected semantic information can affect the whole pixels globally without any extra effort.
60
+
61
+ Based on this intuition, we propose a simple yet effective encoder-centric text-guided image compression algorithm, coined TACO (Text-Adaptive COmpression). TACO transforms a popular PSNR-oriented neural codec architecture (ELIC) into a text-guided one by augmenting the encoder with a text adapter. The text adapter utilizes a pre-trained CLIP encoder (Radford et al., 2021) and bi-directional attention mechanism to inject textual information into the latent code. Then, TACO trains the model from scratch with a joint image-text loss, which encourages the reconstruction to be semantically aligned with the given text.
62
+
63
+ In our experiments, we find that TACO achieves excellent performance in both pixel-level and perceptual quality at standard bpp levels (i.e., $\geq 0.1$ ). In particular, TACO outperforms all image compression baselines in terms of LPIPS, while achieving competitive performance in pixel-level fidelity and realism when compared to state-of-the-art methods in each metric (Figure 1). This trend holds true for either datasets that come with human-generated image descriptions (e.g., MS-COCO (Lin et al., 2014)), or image-only datasets paired with machine-generated captions (e.g., CLIC (Toderici et al., 2020) captioned by OFA (Wang et al., 2022)). TACO also outperforms conventional LPIPS-focused text-guided baselines (Jiang et al., 2023; Qin et al., 2023).
64
+
65
+ Our findings suggest that the core value of text in image compression—at least in standard bpp range—may hinge more on its relationship with human perception, than it being an efficient way to store information (Weissman, 2023).
66
+
67
+ # 2. Related Work
68
+
69
+ Measuring Reconstruction Quality. The most popular metric for evaluating the quality of reconstructions is the pixel-wise distortion from the original image. Typically, the quantity is measured in mean squared error (MSE) or peak signal-to-noise ratio (PSNR). However, the pixel-wise distortion is often found ill-aligned with the human-perceived image quality (Eskicioglu & Fisher, 1995).
70
+
71
+ To address this, various perceptual quality metrics have been proposed. Roughly, the metrics fall into two categories: perceptual distortion and realism. Perceptual distortion quantifies how different two images are for human perception. Multi-scale structural similarity (Wang et al., 2003, MS-SSIM) measures the discrepancy of patch-level statistics of both images in various scales. Learned perceptual image patch similarity (Zhang et al., 2018, LPIPS) measures the distortion in the feature space of pretrained neural net classifiers, which are fine-tuned to account for human perception. Similarly, PieAPP trains a model to approximate the human judgement on perceptual similarity (Prashnani et al., 2018).
72
+
73
+ Realism, on the other hand, attempts to quantify how realistic an image is, without necessarily comparing it with the original image. For example, Fréchet inception distance (Heusel et al., 2017, FID) measures the distance of (Inception) feature distribution of reconstructed images, from that of natural images. Similarly, KID measures the maximum mean discrepancy between the feature distributions (Binkowski et al., 2018). A recent work by Jayasumana et al. (2023) argues that FID/KID are still misaligned with human perception, and proposes CMMD, an alternative metric that utilizes pre-trained multimodal embeddings.
74
+
75
+ Neural Image Compression. An early work by Balle et al. (2017) proposes an autoencoder-like image compression pipeline which achieves competitive pixel-level fidelity and substantially stronger perceptual quality than handcrafted codecs, e.g., JPEG. Subsequent works have developed more advanced hyperpriors on the latent space codes and utilized more advanced autoencoder-like architectures (Balle et al., 2018; Minnen et al., 2018; Cheng et al., 2020; He et al., 2022; Liu et al., 2023b), which led to even smaller pixelwise and perceptual distortions on the reproduced image.
76
+
77
+ Another line of work focuses on developing neural compression CODEs for improved realism. Mentzer et al. (2020) propose a GAN-based method to generate highly realistic images at low bitrates. More recent approaches use diffusion model to generate even more realistic images (Hoogeboom et al., 2023; Yang & Mandt, 2023). However, these methods tend to have greater pixel-level or perceptual distortions than autoencoder-based models. MS-ILLM shows that the tradeoff between the distortion and realism can be more alleviated by using a more tailored GAN discriminator (Muckley et al.,
78
+
79
+ ![](images/46bda8dcacc284c317963a00b76a7ddec967fe1ce1eec4a92ae91d9c0f61aac7.jpg)
80
+ Figure 3. Text-guided decoding strategies vs. TACO. (Top) Text-guided decoding with diffusion-based decoders (Careil et al., 2024). (Middle) Text-guided decoder utilizing GAN (Qin et al., 2023). (Bottom) TACO is a much simpler yet effective strategy.
81
+
82
+ 2023). The fundamental limit of this rate-distortion-realism tradeoff has been theoretically studied by Blau & Michaeli (2018), suggesting that both goals may not be achieved simultaneously given a fixed rate.
83
+
84
+ Text-guided Image Compression. Following the great success of vision-language models, text-guided image compression algorithms have emerged (Bhown et al., 2018; Weissman, 2023). One line of work aims to leverage pre-trained text-guided generative models as decoders. Here, the key is to introduce an appropriate means to control the generation diversity of these models. Pan et al. (2022) utilize the stable diffusion (Rombach et al., 2022), and control the diversity by guiding the reverse step with a JPEG-compressed version of the image. Lei et al. (2023) uses ControlNet as the decoder (Zhang et al., 2023), where the additional control is done by the 'sketch' version of the image, extracted by an edge detector. A concurrent work by Careil et al. (2024) also uses the latent diffusion model, and proposes a more sophisticated local-global encoding for better reconstruction. These models show superior performance in terms of realism (e.g., FID), especially at extremely low bpp.
85
+
86
+ Another line of work proposes to use decoders that are trained from scratch, using a dataset with image-text pairs such as MS-COCO (Lin et al., 2014). The network architecture typically follows GAN-based image compression codes (Mentzer et al., 2020), with additional components to insert textual information into the architectures. Jiang et al. (2023) proposes to insert textual information to both encoder and decoder through uni-directional attention-like modules. Qin et al. (2023) insert text only to the decoder through semantic-spatial aware blocks. These works have their main strength on perceptual distortion (e.g., LPIPS) at conventional bpp.
87
+
88
+ In both lines of work, it has been discovered that one can achieve high realism or perceptual similarity, at the expense of a substantial increase in pixel-level distortion. It remains unanswered whether one can attain similar improvements in the perceptual quality of images from the text, with only minimal degradation in PSNR.
89
+
90
+ # 3. Method
91
+
92
+ We introduce TACO (Text-Adaptive COmpression), a simple yet effective text-guided image compression algorithm that can achieve both high pixel-level and perceptual fidelity.
93
+
94
+ At a high level, TACO is a simple framework that transforms a conventional PSNR-oriented image compression backbone into a text-guided one. TACO first augments the encoder of the backbone with a text adapter module, which inserts the textual information into the encoder. Then we train the overall network from scratch using a joint image-text loss.
95
+
96
+ # 3.1. Background: Autoencoder-based Codec
97
+
98
+ As the backbone architecture, we use ELIC (He et al., 2022), a PSNR-oriented neural image compression codec. We use ELIC as a base model due to its popularity and performance, and TACO does not rely on any of its structural properties. In principle, we expect TACO to be able to be combined with other base models to enhance their perceptual quality.
99
+
100
+ Similar to most autoencoder-based CODECs, ELIC roughly consists of four components: encoder, quantizer, entropy model, and decoder. An image is processed sequentially by the components as follows. First, the encoder maps an image $x$ to a latent feature $y$ . The feature is then quantized into $\hat{y}$ . The quantized feature $\hat{y}$ is (losslessly) compressed into the code and decompressed with the entropy model. Finally, the decoder synthesizes the reconstruction $\hat{x}$ from the decompressed feature $\hat{y}$ .
101
+
102
+ $$
103
+ x \xrightarrow {\text {e n c o d e}} y \xrightarrow {\text {q u a n t i z e} \& \text {e n t r o p y c o d i n g}} \hat {y} \xrightarrow {\text {d e c o d e}} \hat {x} \tag {1}
104
+ $$
105
+
106
+ The encoder, where TACO injects the text information, is a stack of three residual bottleneck blocks (RBs; He et al. (2016)). The residual blocks are interleaved with five $5 \times 5$ convolutional layers (with stride 2) and two attention modules (Cheng et al., 2020). For a more detailed description, see the original paper of He et al. (2022).
107
+
108
+ # 3.2. TACO: Text-Adaptive Compression
109
+
110
+ To enable an effective utilization of the textual information, TACO transforms the backbone image compression model in two ways. First, TACO injects the text information to the encoder of the backbone through text adapter. Second, TACO trains the whole model (i.e., backbone model and the text adapter) with the combined loss function of rate,
111
+
112
+ ![](images/650d81c618d8f81a75e81f0a3b341f5fc2783cb69960b8c6e8bfd95ba6bdc23e.jpg)
113
+ Figure 4. Text adapter of TACO. The text adapter first extracts features from the image caption using the CLIP text encoder. The textual features are then injected into the ELIC encoder through multiple cross-attention layers, interleaved with linear layers.
114
+
115
+ distortion, and the joint image-text loss.
116
+
117
+ Text Adapter. The text adapter takes in the text segment $c$ associated with the original image $x$ (e.g., image caption) as an input, and injects the text information into the backbone encoder to generate the joint image-text latent feature $y$ .
118
+
119
+ $$
120
+ x \xrightarrow {\text {e n c o d e}} y \quad \Rightarrow \quad (x, c) \xrightarrow {\text {e n c o d e} + \text {T A C O}} y \tag {2}
121
+ $$
122
+
123
+ The text adapter operates in two steps (Figure 4). (1) Embedding: Maps the given text to the joint image-text feature space. (2) Injection: Gradually processes and injects text features into the backbone encoder through multiple layers.
124
+
125
+ Adapter: Embedding. We leverage a pre-trained CLIP encoder (Radford et al., 2021), which contains rich semantic information on image-text correspondences. By using CLIP features, we expect reductions in the amount of extra computation and data for further reducing the domain gap between features. We use CLIP as frozen without fine-tuning.
126
+
127
+ More concretely, this step generates a length- $m$ sequence of $d$ -dimensional text tokens. In our experiments, we use $m = 38$ , the maximum token length of MS-COCO captions, and $d = 512$ , the dimensionality of CLIP encoder outputs.
128
+
129
+ $$
130
+ c \xrightarrow {\text {C L I P e n c o d e r}} \mathbf {e} := \left(e _ {1}, \dots , e _ {m}\right), \quad e _ {i} \in \mathbb {R} ^ {d}. \tag {3}
131
+ $$
132
+
133
+ Adapter: Injection. We use a six-layer network consisting of three linear layers and three cross-attention (CA) layers. Here, CAs play a crucial role injecting the text knowledge to images, or vice versa. This use of CA for knowledge injection is inspired by Chen et al. (2023), who uses CA for adapting ViTs to another vision task (dense prediction). In this work, we repurpose CAs for injection across different modalities. Each CA plays the following role:
134
+
135
+ ![](images/4ec2ed7f25d1cd4420a861abd2e03524c5a70896e77471524823b964affec0a6.jpg)
136
+
137
+ ![](images/a01618bf47c0491f39fa102005fe8a1417ba6703f61fb76f9b54e945e13c5c34.jpg)
138
+ Figure 5. Compression results: MS-COCO 30k. TACO achieves the best or competitive results in all metrics. In particular, TACO achieves the best LPIPS among all methods considered, while achieving only $\sim 1$ dB less PSNR than LIC-TCM. PerCo achieves an impressive FID, but TACO outperforms in terms of both PSNR and LPIPS. We also note a strange under-performance of HiFiC in FID under this setup. This may be due to the resizing operation when measuring FID.
139
+
140
+ ![](images/fd1140aea563f6a873fe98740927666ff53429a5c36f2a18c798a5f3f63fa47b.jpg)
141
+
142
+ ![](images/49c0b4ec1941a034c80ab1f131acaffbf7ae3da40efcfba2ff0e4801cda903cb.jpg)
143
+
144
+ - CA1: Text $\rightarrow$ Image. Updates image features based on text tokens. Given a $(h, w, k)$ -dimensional image feature, we treat each spatial location as an image token. That is, the set of image tokens can be written as:
145
+
146
+ $$
147
+ \mathbf {v} = \left(v _ {1}, \dots , v _ {h \times w}\right), \quad v _ {i} \in \mathbb {R} ^ {k}. \tag {4}
148
+ $$
149
+
150
+ CA1 computes query from each $\nu \in \mathbf{v}$ and keys and values from $e \in \mathbf{e}$ . To match the dimensionality of $e$ and $\nu$ , we put a linear layer before CA1. The output of the layer is
151
+
152
+ $$
153
+ \tilde {v} _ {i} = \mathrm {L N} (v _ {i}) + \gamma \odot \text {A t t e n t i o n} (\mathrm {L N} (v _ {i}), \mathrm {L N} (\operatorname {L i n} _ {1} (\mathbf {e}))), \tag {5}
154
+ $$
155
+
156
+ where $\text{Attention}(\cdot)$ , $\text{LN}(\cdot)$ , and $\text{Lin}(\cdot)$ denotes the attention, LayerNorm, and linear layer, respectively. Here, $\gamma$ is a learnable weight hyperparameter.
157
+
158
+ - CA2: Image $\rightarrow$ Text. Updates text tokens based on image features which are further processed by the backbone encoder. The operation is similar to CA1, but we compute queries from the text and keys/values from the image.
159
+ - CA3: Text $\rightarrow$ Image (downsampled). Same operation as CA1, but with two changes: First, the text tokens have been updated by image features (by CA2). Second, image features have been downsampled, so that text affects more global image features than in CA1.
160
+
161
+ Joint Image-Text Loss. To train the model, we use a mixture of four different loss functions. Given the original image $x$ , the text description $c$ , the reconstructed image $\hat{x}$ and its quantized latent feature $\hat{y}$ , we use the loss
162
+
163
+ $$
164
+ r (\hat {y}) + \lambda \cdot d (x, \hat {x}) + k _ {\mathrm {p}} \cdot \operatorname {L P I P S} (x, \hat {x}) + k _ {\mathrm {j}} \cdot L _ {\mathrm {j}} (x, \hat {x}, c) \tag {6}
165
+ $$
166
+
167
+ The first three losses are standard: $r(\cdot)$ denotes the rate, $d(\cdot, \cdot)$ denotes the MSE, and LPIPS( $\cdot, \cdot$ ) denotes the LPIPS loss. The fourth loss $L_{\mathrm{j}}(\cdot, \cdot, \cdot)$ is what we call the joint image-text loss, which encourages the reconstructed image to be semantically close to the given text and the original image.
168
+
169
+ Formally, the loss is defined as the following:
170
+
171
+ $$
172
+ L _ {\mathrm {j}} (x, \hat {x}, c) = L _ {\text {c o n}} \left(f _ {\mathrm {I}} (\hat {x}), f _ {\mathrm {T}} (c)\right) + \beta \cdot \| f _ {\mathrm {I}} (x) - f _ {\mathrm {I}} (\hat {x}) \| _ {2}. \tag {7}
173
+ $$
174
+
175
+ Here, the functions $f_{\mathrm{I}}(\cdot), f_{\mathrm{T}}(\cdot)$ denote the CLIP image and text embeddings, and $L_{\mathrm{con}}(\cdot, \cdot)$ denotes the contrastive loss used in CLIP (Radford et al., 2021). In other words, the joint image-text loss is a mixture of (1) the relevance between the text and reconstructed image and (2) the CLIP embedding distance between the original and reconstructed image. We note that Jiang et al. (2023) also uses a loss similar to eq (7), but based on the AttnGAN embedding (Xu et al., 2018).
176
+
177
+ For better PNSR, we do not use the adversarial loss. Such practice is common in perception-oriented CODECs, such as MS-ILLM or HiFiC, but not in PSNR-oriented CODECs. TACO works by improving the perceptual quality of PSNR-oriented methods with texts instead of further improving the perceptual quality of already perceptually good models.
178
+
179
+ # 4. Experiments
180
+
181
+ This section is organized as follows. Section 4.1 describes the basic experimental setup. Section 4.2 compares TACO with image compression CODECs that do not utilize text. Section 4.3 compares with text-guided CODECs; these works do not release code and/or model checkpoints and evaluation setups vary significantly from paper to paper, necessitating a more fine-grained comparison. Finally, Section 4.4 provides various analyses and ablations on TACO.
182
+
183
+ # 4.1. Experimental Setup
184
+
185
+ Datasets. For training, we use the training split of the MS-COCO dataset (Lin et al., 2014), which consists of 82,783 images with five human-annotated captions for each image; we use all five captions for training. We randomly crop each
186
+
187
+ ![](images/106551da02f34bbd290224b3454e119c373e92a10d75b18f42a1a170024d247e.jpg)
188
+
189
+ ![](images/c7b8487b642cfb857796bbd4d1776273b1c008c95c0cdbedd0b1ee99b2ca6a8f.jpg)
190
+ Figure 6. Compression results: CLIC. TACO outperforms all other baselines in LPIPS, and achieves close-to-best results in PSNR and FID. In particular, TACO achieves the PSNR very close to LIC-TCM and ELIC, vastly outperforming realism-oriented codeccs.
191
+
192
+ ![](images/fb54f2d636acd0b3a48ff9b2c7eb4a51ad1a2cce125984d34311e546050c7b4d.jpg)
193
+
194
+ ![](images/65e14a0a8168f16691939b38e4439ec7bee3e63b25f7132e457122186ec23049.jpg)
195
+
196
+ ![](images/73d8dd651ce1a3cc7c41fff27af2c4549611908d074390290a7ca9ca4b4fc2e8.jpg)
197
+ Figure 7. Compression results: Kodak. Similar to MS-COCO and CLIC, TACO outperforms baselines with a substantial margin in terms of LIPPs, and closely matches the PSNR of LIC-TCM and ELIC. TACO also performs best in terms of CMMD.
198
+
199
+ ![](images/77a166afff14b79bdfe5d0f67265b32be0bd403da96a1fd19501bc34af197520.jpg)
200
+
201
+ ![](images/2b0586c85c670198020128ebefb10b855e7ecae74c68c1e789bd788717c03ab7.jpg)
202
+
203
+ image to $256\times 256$ resolution for training.
204
+
205
+ For evaluation, we use three different datasets. (1) MS-COCO 30k: We use the "restval" subset of the MS-COCO validation split, which consists of total 30,504 images. For evaluation, we center-crop the images to the $256 \times 256$ resolution; we use center drop to more faithfully preserve the semantic information in the image caption. (2) CLIC (Toderici et al., 2020): The test set of the Challenge on Learned Image Compression 2020, consisting of 428 images. We do not crop these images. (3) Kodak dataset (Franzen, 1999): A natural image dataset that consists of 24 images. We also evaluate on these images as-is. We note that CLIC and Kodak do not have any associated captions; we use the image captions generated by OFA (Wang et al., 2022).
206
+
207
+ Metrics. We focus on three image quality metrics:
208
+
209
+ - $LPIPS$ is a perceptual fidelity metric that measures the distance between the original and reconstructed image in the deep feature space; we use AlexNet features.
210
+ - PSNR is a pixel-wise fidelity metric, measured in dB.
211
+ - $FID$ is a realism metric that measures the statistical fi
212
+
213
+ dely between two image distributions (original and reconstructed) of inception features. For measuring FID, we follow Muckley et al. (2023) to resize the images to $299 \times 299$ resolution before measuring.
214
+
215
+ As a quantitative realism metric for Kodak dataset, we use a recently proposed CMMD (Jayasumana et al., 2023) instead of FID. This is because FID is known to be unstable in small datasets. For CMMD, we use the publicly available version of CLIP (w.o. projection). We additionally report results on MS-SSIM, PieAPP, and CMMD in the Appendix B.
216
+
217
+ Optimization & Hyperparameters. We use Adam with batch size 4, and train for 50 epochs. The initial learning rate is set to $10^{-4}$ , and we decay the learning rate by $1/10$ at epochs 45 and 48. For hyperparameters, we simply use a fixed set $(k_{\mathrm{p}}, k_{\mathrm{j}}, \beta) = (3.5, 0.0025, 40)$ throughout all bpps, instead of conducting an extensive hyperparameter tuning for each bpp. To get models of various bitrates, we train models with $\lambda \in \{4, 8, 16, 40, 90, 150\} \times 10^{-4}$ .
218
+
219
+ # 4.2. Results: vs. Image Compression Codes
220
+
221
+ We now compare the compression performance of TACO against various image compression codecs, including:
222
+
223
+ ![](images/75cd314407eea47621a479641ea353a02c8c20bea16fa6fed456666705bc577e.jpg)
224
+ Figure 8. Comparison with text-guided decoding baselines. We compare with the MS-COCO 40k results reported by Qin et al. (2023), to the performance of TACO on the same dataset. We also compare with the MS-COCO 1k result reported by TGIC (Jiang et al., 2023).
225
+
226
+ ![](images/05ad55c607f76deced2d3a3f60df5d3da64b69e108f4d5c83310462ab1bd3343.jpg)
227
+
228
+ ![](images/a699a1e62349ee2ac737b187afcc34f5b333398d24b22ce208c40922283695d6.jpg)
229
+
230
+ ![](images/aeab15cc0addfb9af1126ee356495ff71d00a75dc938fb47a3541f753b874cec.jpg)
231
+ Figure 9. Text adapter vs. TGIC module. We compare the effectiveness of the proposed text adapter with the image-text attention module, used by Jiang et al. (2023), on CLIC. Our text adapter performance better in all metrics, when attached on ELIC encoder.
232
+
233
+ ![](images/71fa07ddbf5d0b1c7024fdb5b63105f0d60a78a549561d04385a90df2d398260.jpg)
234
+
235
+ ![](images/04fffae727d6313c73a0987ef1144481b1d693cca3609470403aa8f2ee774226.jpg)
236
+
237
+ - Handcrafted image compression codecs: VTM, BPG.
238
+ - PSNR-oriented neural image compression codes: ELIC (He et al., 2022), and LIC-TCM (Liu et al., 2023b).
239
+ - Perception-oriented neural codes: HiFiC (Mentzer et al., 2020) and MS-ILLM (Muckley et al., 2023).
240
+
241
+ We have used the official checkpoints for evaluation, except for ELIC (for which no official checkpoint is available).2 We provide quantitative comparisons on MS-COCO 30k, CLIC, and Kodak on Figures 5 to 7, respectively.
242
+
243
+ We observe that, in terms of LPIPS (perceptual fidelity), TACO outperforms all baselines in all datasets. For example, on MS-COCO 30k, TACO achieves 0.025 LPIPS at 0.226 bpp, which is less than half achieved by the best baseline (HiFiC), achieving 0.053 at 0.233 bpp. In terms of PSNR, TACO closely achieves the performance of ELIC and LIC-TCM, falling within the 1dB range from these baselines. In realism, TACO outperforms baselines in MS-COCO and Kodak, but not in CLIC; the gap In CLIC, however, tends to be very small, especially at a high bpp regime.
244
+
245
+ # 4.3. Results: vs. Text-guided Decoding
246
+
247
+ We now compare the performance of TACO with text-guided codecs. In particular, we compare with codecs whose goal is to achieve high LPIPS at non-extreme bpp (i.e., over 0.1 bpp), such as TGIC (Jiang et al., 2023) and "Qin 2023" (Qin et al., 2023). Two things make a direct comparison difficult: (1) The baselines do not release official code or have model checkpoints publicly available. (2) The baselines report performance on non-unified setups: TGIC reports performance on MS-COCO 1k (along with CUB and Oxford-102), consisting of 1k randomly drawn test set samples. Qin et al. (2023) reports performance on MS-COCO 40k, i.e., the whole validation set, without any cropping.
248
+
249
+ We focus on comparing with (more reproducible) Qin 2023 baseline. We evaluate TACO on MS-COCO 40k and compare it with the results reported in Qin et al. (2023). From Figure 8, we observe that TACO achieves much better performance than the previous text-guided baseline, based on the text-guided decoding strategy. This is somewhat surprising, as the original intention of using text-guided encoding has been on preventing the degradations in PSNR; instead, we also achieve better LPIPS and FID. This improvement can be attributed to the effectiveness of the text-adapter-based
250
+
251
+ ![](images/cacef711ece4450b30a2de082b203d698a494fa417e1215fc1b6c2b6244894bb.jpg)
252
+ Figure 10. Without text adapter. We observe both CMMD and LPIPS substantially degrade, while there is a tiny gain in PSNR.
253
+
254
+ ![](images/b428ff301a6b88c2297f5f354aaa1e75470c0328e8c9bbb6d4a6f19fa24a75ff.jpg)
255
+
256
+ ![](images/1229976d43e1e284254015a58ffae14562e8913b6b3a251b215f1d1d1854dea9.jpg)
257
+
258
+ ![](images/636c3310c0f88c08425676ff117b81f499d214ea68276281986daf2be1b8984c.jpg)
259
+ Figure 11. Without joint image text loss. We observe LPIPS severely degrades, while PSNR remains similar, with a tiny gain in CMMD.
260
+
261
+ ![](images/fac11956ebb003451eda8110820809d55f44b4643680197602c73ab4fc9d466b.jpg)
262
+
263
+ ![](images/21031dc2d2e9651df9abba63a5ce7260acdd585d2d165d67aaf5915fd35c4255.jpg)
264
+
265
+ knowledge injection strategy.
266
+
267
+ # 4.4. Ablation Studies
268
+
269
+ To validate that both our proposed text adapter and joint image-text loss improve the performance, we conduct an ablation study. Through experiments on the Kodak dataset, we confirm that both components play essential roles.
270
+
271
+ Without text adapter. From Figure 10, we observe that perceptual fidelity greatly decreases without a text adapter (more than $4 \times$ in LPIPS). This gap is well-aligned with our intuition that the textual information plays an important role in how human perceives visual signals.
272
+
273
+ Without joint image-text loss. From Figure 11, we observe that the joint image-text loss contributes in improving not only the perceptual fidelity, but also realism (with a tiny degradation in PSNR). We hypothesize that the manifold-level information transferred from the CLIP embedding, which is trained with a large-scale dataset, helps the reconstructed image to remain realistic.
274
+
275
+ # 4.5. Further Analyses
276
+
277
+ We now ask ourselves several questions regarding the validity and practicality of the proposed method, TACO.
278
+
279
+ # Q1. Is the adapter architecture (Section 3.2) effective?
280
+
281
+ A. Yes. It outperforms the baseline method for text injection. We compare it to another text injection mechanism introduced in TGIC (Jiang et al., 2023), which utilizes several convolutional layers to inject text information into the image encoder (coined "image-text attention module"). We compare the performance of these two modules for injecting text information to the encoder, in Figure 9. From the figure, we observe that the proposed text adapter is indeed much more effective than what TGIC uses.
282
+
283
+ # Q2. Does TACO preserve textual information better?
284
+
285
+ A. Yes, and No. TACO-compressed images tend to preserve textual information much better than PSNR-focused methods, similar to LIC-TCM. We measure various text similarity scores between machine-generated captions for the original and reconstructed image (Table 1); we use OFA for this purpose. We find that the images compressed by TACO preserve text semantics better than LIC-TCM and ELIC. On the other hand, the comparison with MS-ILLM is inconclusive; TACO performs slightly worse, but with slightly less bpp. In general, we find that models with high perceptual quality tend to preserve textual information better than PSNR-oriented compression CODECs.
286
+
287
+ # Q3. How much computation does TACO add?
288
+
289
+ A. $\sim 5 - 10\%$ , depending on the image resolution. We
290
+
291
+ Table 1. Comparing text similarity. We compare the text similarity scores for the CLIC images compressed by TACO and other baseline CODECs. We find that TACO achieves much higher text similarity score than LIC-TCM, but is slightly worse than MS-ILLM that uses slightly more bits per pixels.
292
+
293
+ <table><tr><td></td><td>BLEU-4 (↑)
294
+ (Papineni et al., 2002)</td><td>CIDEr-D (↑)
295
+ (Vedantam et al., 2015)</td><td>SPICE (↑)
296
+ (Anderson et al., 2016)</td></tr><tr><td>LIC-TCM (0.2810)</td><td>0.76</td><td>7.44</td><td>0.80</td></tr><tr><td>MS-ILLM (0.2314)</td><td>0.85</td><td>8.39</td><td>0.87</td></tr><tr><td>ELIC (0.3055)</td><td>0.78</td><td>7.58</td><td>0.81</td></tr><tr><td>TACO (0.2146)</td><td>0.84</td><td>8.21</td><td>0.86</td></tr></table>
297
+
298
+ Table 2. Computational cost of TACO. We compare the wall-clock encoding and decoding latency of TACO with baseline image compression codecs. We average over 100 MS-COCO images $(256\times 256)$ , randomly drawn from the validation split (0.0148 bpp). We also compare the computational cost when encoding a high-resolution image ('High' in table), observing that the increasing cost of attention remains relatively small $(+10.2\% \rightarrow +4.8\%)$ .
299
+
300
+ <table><tr><td></td><td>Enc. (ms)</td><td>Enc.@High (ms)</td><td>Dec. (ms)</td><td>Total (ms)</td></tr><tr><td>LIC-TCM</td><td>112.07</td><td>960.99</td><td>125.26</td><td>237.33</td></tr><tr><td>MS-ILLM</td><td>70.39</td><td>800.45</td><td>53.74</td><td>124.14</td></tr><tr><td>ELIC</td><td>71.35</td><td>793.41</td><td>102.07</td><td>173.42</td></tr><tr><td>TACO</td><td>78.60 (+10.2%)</td><td>832.07 (+4.8%)</td><td>102.98</td><td>181.58</td></tr></table>
301
+
302
+ compare the wall-clock encoding and decoding speed of the proposed TACO with the baselines in Table 2. We have measured the latency on a Linux GPU server equipped with one NVIDIA GeForce RTX 3090 and AMD EPYC 7313 16-Core CPU. From the table, we find that TACO indeed introduces some latency in compression speed. In particular, we observe that the encoding time increases by 7ms over the vanilla ELIC. We note that the overhead, however, is not very big. TACO still runs much faster than LIC-TCM and remains comparable with MS-ILLM. Most of the overhead comes from the CLIP embedding step, which can be effectively parallelized with image encoding steps. Furthermore, we have used the smallest version of CLIP, which can be run fast on conventional GPU devices. We also compare the encoding speed when using a high-resolution image $(1788\times 2641$ , second column in the Table 2). As a result, the computational cost of attention remains relatively small and we find that the computational cost of CLIP remains constant with respect to the resolution.
303
+
304
+ # Q4. How many parameters are used in TACO?
305
+
306
+ A. Not too big—smaller than perception-oriented CODECs.
307
+
308
+ We compare the number of models in Table 3. TACO adds 64.82M parameters to the ELIC, where 63.17M comes from the CLIP and 1.65M comes from the text adapter. In total, TACO has 101.75M parameters, which requires $\sim 400\mathrm{MBs}$ to be loaded on memory. While this is larger than vanilla ELIC, it is $\sim 80\%$ smaller than other perception-oriented codecs, such as MS-ILLM, and HiFiC.
309
+
310
+ Table 3. Memory efficiency of TACO. We compare the model parameter sizes of the TACO and baselines. TACO shows superior memory efficiency than perception-oriented CODECs.
311
+
312
+ <table><tr><td>Modules</td><td>Parameters (M)</td></tr><tr><td>ELIC</td><td>36.93</td></tr><tr><td>LIC-TCM</td><td>45.41</td></tr><tr><td>HiFiC/MS-ILLM</td><td>181.72</td></tr><tr><td>TACO</td><td>101.75</td></tr></table>
313
+
314
+ Table 4. Caption dependency. We compare TACO reconstruction results with four different captions generation methods, spanning from human to GPT-4. Human and GPT-4 achieves the best results when measured on 100 random samples of MS-COCO, but other captioning methods work very competitively (0.0148 bpp). Underlined denotes the best result.
315
+
316
+ <table><tr><td></td><td>Human (Chen et al., 2015)</td><td>OFA (Wang et al., 2022)</td><td>BLIP-2 (Li et al., 2023)</td><td>GPT-4 (Achiam et al., 2023)</td></tr><tr><td>LPIPS</td><td>0.0435</td><td>0.0435</td><td>0.0435</td><td>0.0435</td></tr><tr><td>PSNR</td><td>27.42</td><td>27.41</td><td>27.41</td><td>27.42</td></tr></table>
317
+
318
+ # Q5. Can we use other captioning models?
319
+
320
+ A. Yes. In Table 4, we compare the compression quality of TACO utilizing captions generated by various methods. We observe that GPT-4 achieves a human-like result, but other captioning models perform very competitively. From this observation, we conjecture that the compression quality of TACO is less dependent on its writing style, but more on the core content of the sentences.
321
+
322
+ # 5. Conclusion
323
+
324
+ In this paper, we have studied how one can utilize auxiliary text information when compressing images. We find that, in order to achieve high PSNR as well as high perceptual quality, utilizing the text to generate better codes is a simple yet effective strategy; using text to guide the decoding procedure may be much more challenging task.
325
+
326
+ Limitations and future work. There are several limitations of the proposed framework, which we hope to address in the future work. First, the additional encoding cost for handling the text scales quadratically with respect to the sequence length. This is due to the design of our text injection mechanism which computes cross-attention between image and textual features. In the cases where we expect the text sequence to be very long, e.g., video-like data with voice transcripts as text, the encoding time can get prohibitively long. Another limitation is the scalability of training. Currently, we train TACO using the image-text dataset, which is substantially scarcer than image-only or text-only dataset. To overcome this problem, using a captioning model to generate image-text pairs for training may be a good baseline.
327
+
328
+ # Acknowledgements
329
+
330
+ This work was supported by Samsung Advanced Institute of Technology and Institute of Information & communications Technology Planning & Evaluation (IITP) grant funded by the Korea government(MSIT) (RS-2019-II191906, Artificial Intelligence Graduate School Program(POSTECH)). We would like to thank Sadeep Jayasumana for helpful comment on implementing the CMMD.
331
+
332
+ # Impact Statement
333
+
334
+ Our paper aims to advance the general field of machine learning and data compression. We thus expect many societal consequences to follow. However, we do not feel any specific consequence should be highlighted further.
335
+
336
+ # References
337
+
338
+ Achiam, J., Adler, S., Agarwal, S., Ahmad, L., Akkaya, I., Aleman, F. L., Almeida, D., Altenschmidt, J., Altman, S., Anadkat, S., et al. GPT-4 technical report. arXiv preprint 2303.08774, 2023.
339
+ Agustsson, E., Minnen, D., Toderici, G., and Mentzer, F. Multi-Realism Image Compression with a Conditional Generator. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023.
340
+ Anderson, P., Fernando, B., Johnson, M., and Gould, S. SPICE: Semantic propositional image caption evaluation. In European Conference on Computer Vision, 2016.
341
+ Balle, J., Laparra, V., and Simoncelli, E. P. End-to-end optimized image compression. In International Conference on Learning Representations, 2017.
342
+ Balle, J., Minnen, D., Singh, S., Hwang, S. J., and Johnston, N. Variational image compression with a scale hyperprior. In International Conference on Learning Representations, 2018.
343
+ Bhown, A., Mukherjee, S., Yang, S., Chandak, S., Fischer-Hwang, I., Tatwawadi, K., Fan, J., and Weissman, T. Towards improved lossy image compression: Human image reconstruction with public-domain images. arXiv preprint 1810.11137, 2018.
344
+ Binkowski, M., Sutherland, D. J., Arbel, M., and Gretton, A. Demystifying MMD GANs. International Conference on Learning Representations, 2018.
345
+ Blau, Y. and Michaeli, T. The perception-distortion tradeoff. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
346
+
347
+ Careil, M., Muckly, M. J., Verbeek, J., and Lathuilière, S. Towards image compression with perfect realism at ultralow bitrates. In International Conference on Learning Representations, 2024.
348
+ Chen, X., Fang, H., Lin, T.-Y., Vedantam, R., Gupta, S., Dollár, P., and Zitnick, C. L. Microsoft COCO captions: Data collection and evaluation server. In arXiv preprint 1504.00325, 2015.
349
+ Chen, Z., Duan, Y., Wang, W., He, J., Lu, T., Dai, J., and Qiao, Y. Vision transformer adapter for dense predictions. In International Conference on Learning Representations, 2023.
350
+ Cheng, Z., Sun, H., Takeuchi, M., and Katto, J. Learned Image Compression with Discretized Gaussian Mixture Likelihoods and Attention Modules. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2020.
351
+ Eskicioglu, A. M. and Fisher, P. S. Image quality measures and their performance. IEEE Transactions on Communications, 1995.
352
+ Franzen, R. Kodak lossless true color image suite, 1999.
353
+ He, D., Yang, Z., Peng, W., Ma, R., Qin, H., and Wang, Y. ELIC: Efficient learned image compression with unevenly grouped space-channel contextual adaptive coding. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
354
+ He, K., Zhang, X., Ren, S., and Sun, J. Deep residual learning for image recognition. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2016.
355
+ Heusel, M., Ramsauer, H., Unterthiner, T., Nessler, B., and Hochreiter, S. GANs trained by a two time-scale update rule converge to a local Nash equilibrium. Advances in Neural Information Processing Systems, 2017.
356
+ Hoogeboom, E., Agustsson, E., Mentzer, F., Versari, L., Toderici, G., and Theis, L. High-fidelity image compression with score-based generative models. arXiv preprint 2305.18231, 2023.
357
+ Jayasumana, S., Ramalingam, S., Veit, A., Glasner, D., Chakrabarti, A., and Kumar, S. Rethinking FID: Towards a better evaluation metric for image generation. arXiv preprint 2401.09603, 2023.
358
+ Jiang, X., Tan, W., Tan, T., Yan, B., and Shen, L. Multimodality deep network for extreme learned image compression. In Proceedings of the AAAI Conference on Artificial Intelligence, 2023.
359
+
360
+ Lei, E., Uslu, Y. B., Hassani, H., and Bidokhti, S. S. Text + Sketch: Image compression at ultra low rates. arXiv preprint 2307.01944v1, 2023.
361
+ Li, J., Li, D., Savarese, S., and Hoi, S. BLIP-2: Bootstrapping language-image pre-training with frozen image encoders and large language models. In Proceedings of the International Conference on Machine Learning, 2023.
362
+ Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollar, P., and Zitnick, C. L. Microsoft COCO: Common objects in context. In European Conference on Computer Vision, 2014.
363
+ Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction tuning. In Advances in Neural Information Processing Systems, 2023a.
364
+ Liu, J., Sun, H., and Katto, J. Learned image compression with mixed transformer-cnn architectures. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023b.
365
+ Mentzer, F., Toderici, G. D., Tschannen, M., and Agustsson, E. High-fidelity generative image compression. In Advances in Neural Information Processing Systems, 2020.
366
+ Minnen, D., Balle, J., and Toderici, G. Joint autoregressive and hierarchical priors for learned image compression. In Advances in Neural Information Processing Systems, 2018.
367
+ Muckley, M. J., El-Nouby, A., Ullrich, K., Jégou, H., and Verbeek, J. Improving statistical fidelity for neural image compression with implicit local likelihood models. In Proceedings of the International Conference on Machine Learning, 2023.
368
+ Pan, Z., Zhou, X., and Tian, H. Extreme generative image compression by learning text embedding from diffusion models. arXiv preprint 2211.07793v1, 2022.
369
+ Papineni, K., Roukos, S., Ward, T., and Zhu, W.-J. Bleu: a method for automatic evaluation of machine translation. In Proceedings of the Annual Meeting of the Association for Computational Linguistics, 2002.
370
+ Prashnani, E., Cai, H., Mostofi, Y., and Sen, P. PieAPP: Perceptual image-error assessment through pairwise preference. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
371
+ Qin, S., Chen, B., Huang, Y., An, B., Dai, T., and Via, S.-T. Perceptual image compression with cooperative cross-modal side information. arXiv preprint arXiv:2311.13847, 2023.
372
+
373
+ Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al. Learning transferable visual models from natural language supervision. In Proceedings of the International Conference on Machine Learning, 2021.
374
+ Ramesh, A., Pavlov, M., Goh, G., Gray, S., Voss, C., Radford, A., Chen, M., and Sutskever, I. Zero-shot text-to-image generation. In Proceedings of the International Conference on Machine Learning, 2021.
375
+ Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. High-resolution image synthesis with latent diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2022.
376
+ Shannon, C. E. Prediction and entropy of printed English. Bell System Technical Journal, 1951.
377
+ Toderici, G., Theis, L., Johnston, N., Agustsson, E., Mentzer, F., Balle, J., Shi, W., and Timofte, R. CLIC 2020: Challenge on learned image compression, 2020, 2020.
378
+ Vedantam, R., Zitnick, C. L., and Parikh, D. CIDEr: Consensus-based image description evaluation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2015.
379
+ Wang, P., Yang, A., Men, R., Lin, J., Bai, S., Li, Z., Ma, J., Zhou, C., Zhou, J., and Yang, H. OFA: Unifying architectures, tasks, and modalities through a simple sequence-to-sequence learning framework. In Proceedings of the International Conference on Machine Learning, 2022.
380
+ Wang, Z., Simoncelli, E. P., and Bovik, A. C. Multiscale structural similarity for image quality assessment. In The Thirsty-Seventh Asilomar Conference on Signals, Systems & Computers, 2003. IEEE, 2003.
381
+ Weissman, T. Toward textual transform coding. arXiv preprint 2305.01857v1, 2023.
382
+ Xu, T., Zhang, P., Huang, Q., Zhang, H., Gan, Z., Huang, X., and He, X. AttnGAN: Fine-grained text to image generation with attentional generative adversarial networks. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
383
+ Yang, R. and Mandt, S. Lossy image compression with conditional diffusion models. Advances in Neural Information Processing Systems, 2023.
384
+ Zhang, L., Rao, A., and Agrawala, M. Adding conditional control to text-to-image diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2023.
385
+
386
+ Zhang, R., Isola, P., Efros, A. A., Shechtman, E., and Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, 2018.
387
+
388
+ # Appendix
389
+
390
+ # A. Additional Experimental Details
391
+
392
+ Implementation of TACO. As illustrated in Figure 4, the base model we use is a version of ELIC, which has an intermediate feature dimension of 192 and a final feature map dimension of 320. The CLIP encoder we use is the "CLIPTextModel" with a version of 'openai/clip-vit-base-patch32,' available through the HuggingFace. We have set the token length to be 38, therefore getting the text embedding sequences with the size of $\mathbb{R}^{38\times 512}$ when inputting the caption to the CLIPTextModel.
393
+
394
+ Baselines. As mentioned in the main text, for neural codecs, we mostly use the official model checkpoints. For BPG, we have used version 0.9.8. For VTM, we have used version 19.2.
395
+
396
+ # B. Additional Metrics on Compression Results
397
+
398
+ We additionally report more compression results, MS-SSIM, PieAPP, and CMMD scores, measured on the MS-COCO 30k, CLIC, and Kodak datasets.
399
+
400
+ ![](images/66540d5a469ab5cfeeeea54c75e3f7ace93ae40ad24d6525c36f84956c428942.jpg)
401
+
402
+ ![](images/9d23dcd4c82bc8a0afd08c591c6e549ea1817ae1dc956d303cd74929a46abb88.jpg)
403
+
404
+ ![](images/86f62eba723aed3f6a4ecabd78321d3d5a609658d9050f1681659a5edd56fac6.jpg)
405
+
406
+ ![](images/1c7652bd6202d332972345d8e81407e994baf4eb32adfc96035b2a0c97a27247.jpg)
407
+
408
+ ![](images/cf0b123ac54284ec33dca4749530b3a3a3079bc2fc698db8b4bd7ebf67c20de5.jpg)
409
+
410
+ ![](images/0079020536b27692e0fcbc80f5385baf1b449c93c88394e02c53c66cef4e1235.jpg)
411
+
412
+ ![](images/968a6c1a9354ba2f50b432824f6fa54e16c72480e210b569691fd851fb7e79d7.jpg)
413
+
414
+ ![](images/17041757a67618704dcfb1dd4632fa383de4c14db5e70757f352973d0f6c2743.jpg)
415
+ Figure A1. Additional quality metrics result on: MS-COCO 30k (top), CLIC (middle), Kodak (bottom)
416
+
417
+ ![](images/5fec1423be3bdd44930f9849efb2e25f966b521a8369f16d87f46221a3384638.jpg)
418
+
419
+ # C. Additional Ablation Study
420
+
421
+ Freezing base model. We test whether freezing the base model (ELIC) to be a fully image-trained model is beneficial for performance or not. We find that this is not true (see Figure A2).
422
+
423
+ ![](images/c34c788b23c1b7576baa88f6da8c406ab164e007905134b9d625605fb0dfca3c.jpg)
424
+ Figure A2. Ablation result: freezing base model and only training text adapter
425
+
426
+ ![](images/95727455c2cbeaf0e1e21624d0442a8f59fd7c9440fa6068ad547259026c925d.jpg)
427
+
428
+ ![](images/782773a639011ab89f6f6e378b12274a136b57adadd96ae788a6b9067dc12c86.jpg)
429
+
430
+ # D. Additional Qualitative Results
431
+
432
+ We provide additional visualizations of the compression results of TACO and baselines in Figure A4. As has been observed in Figure 2, we confirm that TACO suffers from fewer compression artifacts than MS-ILLM while reconstructing sharper details than LIC-TCM. We find that TACO consistently provides high-quality reconstructions, while LIC-TCM tends to overly smooth out the textures (see, e.g., the white wall under the cat) and MS-ILLM hallucinates small details (see, e.g., eyes of the cat).
433
+
434
+ - In the top display, we draw attention to two features: "the reflections on glasses," and "the texture of eyebrow and hair." MS-ILLM tends to hallucinate flat reflections on the glasses, and LIC-TCM tends to generate blurry eyebrow and hair.
435
+ - In the middle display, we focus on the black metal staircase behind the net. MS-ILLM generates wavy textures on the metal, and LIC-TCM removes the net in front of the staircase. TACO also generates some hallucinative patterns but to a lesser degree. Also, we note that TACO is the only compression method that reconstructs (any) stud on the staircase.
436
+ - In the bottom display, we highlight the gold hinge. MS-ILLM smooths out the details on the hinge, and LIC-TCM generates a blurry image overall.
437
+
438
+ "A young woman sitting on the grass wearing a hat and glasses"
439
+
440
+ ![](images/e7d7d7bee2ae930f651e4773f125e25dacae678c397cd5e0850faeb2a178e7f1.jpg)
441
+
442
+ ![](images/e25ede67a9a0566b6b076e1e4ce824843b9d7a0cefa684c993264708150814b8.jpg)
443
+ Original
444
+
445
+ ![](images/b54688d9721b778b2e4c8f958c160d0f49b8755c072bde30afeace7d8f05d799.jpg)
446
+ TACO
447
+
448
+ ![](images/c99408950d85a732d64b2294efdcb1308c7c6ec06682f2a00d9b1b11897d6901.jpg)
449
+ MS-ILLM
450
+
451
+ ![](images/12c0714ffad7ca955822ac06b7a06a4b77d4533f407dbb1a15ad815ff03688f6.jpg)
452
+ LIC-TCM
453
+
454
+ "A young man riding a skateboard in a parking lot"
455
+
456
+ ![](images/c7c6b275f6fd203ff82e0b01c1d3c0bd086b819a1ad394a4a681b60c28f99a96.jpg)
457
+
458
+ ![](images/dd8c27294b4b47fba5b6ca018820d2e4fada7036fbbbb86ec0230d8b493b06d9.jpg)
459
+ Original
460
+
461
+ ![](images/afc6827d6bdcfd22ce760c3d42e3b74539919e8050d29c3e403fe3741b19cc2f.jpg)
462
+ TACO
463
+
464
+ ![](images/c38dbc1433c4465a734ada17a1db4d9e18639505434bafb5156dc2d220c6c73e.jpg)
465
+ MS-ILLM
466
+
467
+ ![](images/e66facd39d5156742667aa39efcc1a6acd704e68104cdfc4bf7eb7d22f36cf05.jpg)
468
+ LIC-TCM
469
+
470
+ "An old piano with books and a lamp on it"
471
+
472
+ ![](images/b667cc7d38888b339f317d796d6dadb38239207a53abc21bbf021d1935707cf3.jpg)
473
+ Figure A3. Additional Qualitative Results.
474
+
475
+ ![](images/cc99e448f429b7c6278b38de0835ebd3b87311475392271b788af7981c67c4da.jpg)
476
+
477
+ ![](images/c93e76346399c42d30cd76b765104e9f5d9b0683904e9a1afdd83431a6d84179.jpg)
478
+ TACO
479
+
480
+ ![](images/051a9d7eb6cdf31a2e5220b5e38dc4e87ec05fd787567ac63dbc762ca1406333.jpg)
481
+ Original
482
+ MS-ILLM
483
+
484
+ ![](images/bd73a447c12b691119d57b5029465b6aacefdeac697f5f50c23311466b44b4dc.jpg)
485
+ LIC-TCM
486
+
487
+ "A large body of water with palm trees on an island"
488
+
489
+ ![](images/8160fa543202cbc46432b7cd5a7bb128ffddbcd66d0b7fa1694d9e9b84c4a705.jpg)
490
+
491
+ ![](images/cd8789dfec8c2d8f904b07e03fedf1b6cea0f7f91d2e415aaab29c4f4841e2ae.jpg)
492
+ Original
493
+
494
+ ![](images/2c2398b528e1fc0206e206e97614ad6185d94135a6b1cb695de3403d9288528a.jpg)
495
+ TACO
496
+
497
+ ![](images/84efd74e922a3e8a92c1917f60db810dab3028e994c76e17fdfa9a3136492798.jpg)
498
+ MS-ILLM
499
+
500
+ ![](images/af715eb158ab457740d0933855e655189cb88cb4c82915872f1b3b50db32f6d0.jpg)
501
+ LIC-TCM
502
+
503
+ "A cat sitting on top of a white sand field"
504
+
505
+ ![](images/c41fbf2c08f203546c16448e54957ab96ed57c362fa31c11560a95e3d22607c5.jpg)
506
+
507
+ ![](images/21da3d04773062cc30acde835c0dd326ba66582ca3abd88d5b81c8e81fe43398.jpg)
508
+
509
+ ![](images/4d2fa6df7b819911178b360f872474077b0c6735208804b24e034c7d9c205d3d.jpg)
510
+ TACO
511
+
512
+ ![](images/1aba3fdf78bd7ef898befbce503709f26d7b6304061fe2d098d8232fffa5c34e.jpg)
513
+ Original
514
+ MS-ILLM
515
+
516
+ ![](images/3c52dd2fe8bb4b1eca11f60e59f46969c45fabbef8bcf14eaeb7f6a75aea32f9.jpg)
517
+ LIC-TCM
518
+
519
+ "A person walking a dog in front of a building"
520
+
521
+ ![](images/22136b585af70f0fa3ffd9e5434612a9101e9c7a3f1edc60d464e4c1ceab259b.jpg)
522
+ Figure A4. Additional Qualitative Results.
523
+
524
+ ![](images/6799ac94a088f7baac8b4b875a4e57a6297b21efba00a96fcd5150d0b6ee816e.jpg)
525
+
526
+ ![](images/10d14f8d20558548e980f21141445fc821bba3e6dcc61834e14cbe02e7477418.jpg)
527
+
528
+ ![](images/94379729fc651bd1280db8002ef4d9d5209377c7515db791c55994d7a401719a.jpg)
529
+ Original
530
+ MS-ILLM
531
+
532
+ ![](images/0d8129f53487276b88c60a23b53bc21a789c101ef31061e34f8860c552ce058d.jpg)
533
+ TACO
534
+ LIC-TCM
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fa2f11488feddc622d145948172a8d645dfa6c5e5a6b6ef7b1f3d72248064e1c
3
+ size 1343915
2024/Neural Image Compression with Text-guided Encoding for both Pixel-level and Perceptual Fidelity/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Jump-Diffusion Temporal Point Processes/e9547c48-812c-46c0-8f9d-b917215e2546_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e6d678fd9a356d76508e1149225f9b4536e167a4ae343006f50fec09e2769a8b
3
+ size 786964
2024/Neural Jump-Diffusion Temporal Point Processes/full.md ADDED
@@ -0,0 +1,714 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Neural Jump-Diffusion Temporal Point Processes
2
+
3
+ Shuai Zhang<sup>1</sup> Chuan Zhou<sup>12</sup> Yang Liu<sup>1</sup> Peng Zhang<sup>3</sup> Xixun Lin<sup>4</sup> Zhi-Ming Ma<sup>1</sup>
4
+
5
+ # Abstract
6
+
7
+ We present a novel perspective on temporal point processes (TPPs) by reformulating their intensity processes as solutions to stochastic differential equations (SDEs). In particular, we first prove the equivalent SDE formulations of several classical TPPs, including Poisson processes, Hawkes processes, and self-correcting processes. Based on these proofs, we introduce a unified TPP framework called Neural Jump-Diffusion Temporal Point Process (NJDTPP), whose intensity process is governed by a neural jump-diffusion SDE (NJDSDE) where the drift, diffusion, and jump coefficient functions are parameterized by neural networks. Compared to previous works, NJDTPP exhibits model flexibility in capturing intensity dynamics without relying on any specific functional form, and provides theoretical guarantees regarding the existence and uniqueness of the solution to the proposed NJDSDE. Experiments on both synthetic and real-world datasets demonstrate that NJDTPP is capable of capturing the dynamics of intensity processes in different scenarios and significantly outperforms the state-of-the-art TPP models in prediction tasks.
8
+
9
+ # 1. Introduction
10
+
11
+ Many real-world scenarios often generate a large amount of asynchronous event sequences. Each event consists of a timestamp and a type mark, indicating when and what the event occurred. Examples include user activities on social media platforms (Farajtabar et al., 2017), electronic health records in healthcare (Liu & Hauskrecht, 2021), and transaction behaviors in e-commerce systems (Xue et al., 2022).
12
+
13
+ $^{1}$ Academy of Mathematics and Systems Science, Chinese Academy of Sciences $^{2}$ School of Cyber Security, University of Chinese Academy of Sciences $^{3}$ Cyberspace Institute of Advanced Technology, Guangzhou University $^{4}$ Institute of Information Engineering, Chinese Academy of Sciences. Correspondence to: Chuan Zhou <zhouchuan@amss.ac.cn>.
14
+
15
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
16
+
17
+ Modeling such data has become increasingly important for tasks such as predicting the occurrence of future events (Du et al., 2016; Mei & Eisner, 2017; Zhang et al., 2020a; Zuo et al., 2020), detecting anomalies in event sequences (Liu & Hauskrecht, 2021; Shchur et al., 2021; Zhang et al., 2023), and performing causal inference on events (Xu et al., 2016; Zhang et al., 2020b; Gao et al., 2021).
18
+
19
+ Temporal point processes (TPPs) (Daley et al., 2003) serve as a useful mathematical tool for modeling sequences of discrete events in continuous time. Classical examples of TPPs include Poisson processes (Kingman, 1992), Hawkes processes (Hawkes, 1971), and self-correcting processes (Isham & Westcott, 1979). A central concept in TPPs is the intensity process<sup>1</sup> (Oakes, 1975), also known as the intensity function (Zhang et al., 2020b), which measures the expected rate of events occurrence given historical events. While these classical models exhibit favorable statistical properties, the fixed parametric form of their intensity functions prevents them from capturing complicated dynamics.
20
+
21
+ To enhance the capability of TPP models, there has been a surge in modeling the intensity function as a transformation of the hidden state of neural networks. Depending on the neural network structures, these TPP models can be divided into two categories, i.e., those based on either RNNs or Transformers (Du et al., 2016; Zuo et al., 2020; Yang et al., 2022), and those based on continuous-depth neural networks (Jia & Benson, 2019; Chen et al., 2020). While being more expressive than classical TPPs, the former models usually assume a specific functional form for the intensity function. For example, RMTPP (Du et al., 2016) assumes that the intensity exponentially decreases or increases between events. However, relying on such an assumption would limit model expressiveness when the employed assumption deviates from reality (Omi et al., 2019). The latter models represent the hidden state as the solution to a neural jump stochastic differential equation (Jia & Benson, 2019). These models, however, provide no theoretical guarantee for the global existence and uniqueness of the solution.
22
+
23
+ In this paper, we provide a new view for TPPs by reformulating the intensity process as the solution to a stochastic differential equation (SDE) (Ikeda & Watanabe, 2014). Specifi
24
+
25
+ cally, we first derive equivalent SDE formulations of several classical TPPs mentioned above. From these SDE formulations, we observe that the coefficient functions in SDE play a key role in shaping the evolution of intensity process over time and revealing the influences between events. Based on these observations, we introduce the Neural Jump-Diffusion Temporal Point Process (NJDTPP), whose intensity process is governed by a neural jump-diffusion SDE (NJDSDE). The drift, diffusion, and jump coefficient functions in NJDSDE are parameterized by three neural networks, i.e., the drift net, diffusion net, and jump net. Concretely, the drift net captures the intrinsic evolution of the intensity process, the diffusion net models the Gaussian noise with the Brownian motion (Wang et al., 2017; 2018), and the jump net captures the influences between events, such as the excitatory and inhibitory influences. Remarkably, our NJDTPP model does not require a specific functional form for the intensity function. Instead, by using the drift, diffusion, and jump nets, the solution to NJDSDE can implicitly determine a free-form intensity process consistent with the observed event data. We summarize our contributions as follows:
26
+
27
+ - Theoretical Analysis. We prove the equivalent SDE formulations of several classical TPPs. For the SDE formulation, we provide a sufficient condition for the existence of a unique positive solution. Moreover, we theoretically analyze the existence and uniqueness of the solution to the proposed neural jump-diffusion SDE.
28
+ - Unified Framework. By viewing the intensity process as the solution to an SDE, we propose a unified TPP framework NJDTPP which can learn a free-form intensity process consistent with the observed data. A number of classical TPPs can be interpreted as special cases of our framework with simple coefficient functions.
29
+ - Extensive Experiments. We conduct experiments on three synthetic and six real-world datasets to evaluate the performance of NJDTPP. Experimental results show that NJDTPP successfully captures the dynamics of intensity processes and achieves state-of-the-art results in the tasks of likelihood evaluation and event prediction.
30
+
31
+ # 2. Related Work
32
+
33
+ Neural Temporal Point Processes. Neural TPPs that combine TPPs with neural networks have received considerable attention (Du et al., 2016; Mei & Eisner, 2017; Zhang et al., 2020a; Zuo et al., 2020; Lin et al., 2021; Yang et al., 2022). While being more expressive than classical parametric ones, neural TPPs usually assume a specific functional form for the intensity function. For example, RMTPP (Du et al., 2016) assumes that the intensity exponentially decreases or increases between events; THP (Zuo et al., 2020) utilizes the softplus function so that the intensity
34
+
35
+ between events is approximately linearly interpolated. However, relying on such an assumption can undermine model effectiveness if the employed assumption deviates from reality. In addition to the dominant paradigm of parameterizing intensity functions, alternative methods involve modeling cumulative intensity functions (Omi et al., 2019) and conditional density functions (Shchur et al., 2019). However, these methods may not fully capture the dynamics of the intensity process. In contrast to existing studies, our model formulates the intensity process as the solution to an SDE without relying on any specific functional form.
36
+
37
+ Neural Differential Equations. Neural differential equations (NDEs) (Kidger et al., 2021a) are defined as differential equations in which coefficient functions are parameterized by neural networks. Many NDEs, including neural ODE and its variants (Chen et al., 2018; Rubanova et al., 2019; Kidger et al., 2020; Herrera et al., 2020), as well as neural SDEs (Li et al., 2020; Kong et al., 2020; Kidger et al., 2021a;b), have been proposed for modeling time series. However, there is a distinction between time series and event sequences (Xiao et al., 2017). In time series, time serves only as the index to order the sequence of values for the target variable. In event sequences, time is regarded as a random variable representing the timestamp of asynchronous events, with time itself being the subject of research. Therefore, many existing NDE-based models are not directly suitable for modeling event sequences. While Jia & Benson (2019) and Chen et al. (2020) utilize NDEs to model event sequences, they actually capture the dynamics of the hidden state of neural networks. Besides, they solely focus on the jump term, neglecting the diffusion term associated with randomness driven by Brownian motion. In contrast, we incorporate Brownian motion to model Gaussian noise, and more importantly our proposed NJDSDE models the dynamics of the intensity process.
38
+
39
+ Equivalent SDE Formulations for TPPs. Wang et al. (2018) provided a jump-diffusion SDE framework for modeling user activities. They introduced the diffusion term to model the Gaussian noise, such as fluctuations in the dynamics caused by unobserved factors. However, their utilization of fixed linear coefficient functions in the SDE might not fully capture the actual intensity. On the contrary, we employ neural networks to parameterize coefficient functions, allowing for a more flexible modeling of the intensity that better aligns with the observed data. While De et al. (2016); Zarezade et al. (2017); Wang et al. (2018) established the equivalent SDE formulation for Hawkes processes, we provide a distinct proof method. Besides, we derive equivalent SDE formulations for several other classical TPPs, such as Poisson processes and self-correcting processes. Moreover, for the SDE formulation, we provide a sufficient condition for the existence of a unique positive solution.
40
+
41
+ # 3. Background
42
+
43
+ In this section, we provide a brief overview of temporal point processes and jump-diffusion stochastic differential equations.
44
+
45
+ # 3.1. Temporal Point Processes
46
+
47
+ A temporal point process (TPP) (Daley et al., 2003) is a stochastic process $\{t_i\}_{i=1}^{\infty}$ , in which the non-negative random variable $t_i$ represents the occurrence time of the $i$ -th event and $t_i < t_{i+1}$ . Such a process can be equivalently represented as a counting process $\{N_t\}_{t \geq 0}$ , where $N_t$ represents the number of events up to time $t$ .
48
+
49
+ The most common way to characterize a TPP is via its intensity process (Oakes, 1975), also known as the intensity function. Specifically, the intensity process of $\{N_t\}_{t \geq 0}$ is a left-continuous with right-limits process $\{\lambda(t \mid \mathcal{F}_{t-})\}_{t \geq 0}$ , denoted for simplicity as $\{\lambda_t\}_{t \geq 0}$ , where $\lambda_t$ measures the expected rate of events occurring in an infinitesimal window $(t, t + \mathrm{d}t]$ given the historical events up to time $t$ . Formally,
50
+
51
+ $$
52
+ \lambda_ {t} \mathrm {d} t = \mathbb {P} \left(\mathrm {d} N _ {t} = 1 \mid \mathcal {F} _ {t -}\right) = \mathbb {E} \left[ \mathrm {d} N _ {t} \mid \mathcal {F} _ {t -} \right], \tag {1}
53
+ $$
54
+
55
+ where $\mathcal{F}_{t - } = \sigma (N_s:0\leq s < t)$ and the jump size $\mathrm{d}N_{t} = N_{t + \mathrm{d}t} - N_{t}\in \{0,1\}$
56
+
57
+ In the following, we review several classical TPPs, where the intensity function has a fixed parametric form.
58
+
59
+ Poisson processes (Kingman, 1992). The intensity function of the Poisson process $\{N_t\}_{t \geq 0}$ is independent of event history. The simplest case is a homogeneous Poisson process where the intensity is a positive constant:
60
+
61
+ $$
62
+ \lambda_ {t} = \lambda > 0. \tag {2}
63
+ $$
64
+
65
+ For a more general inhomogeneous poisson process, the intensity is a function varying over time:
66
+
67
+ $$
68
+ \lambda_ {t} = g (t) > 0. \tag {3}
69
+ $$
70
+
71
+ Hawkes processes (Hawkes, 1971). The Hawkes process $\{N_t\}_{t \geq 0}$ with the widely used exponential kernel assumes that events are self-exciting. The arrival of a new event results in a sudden increase in intensity, and this influence decays exponentially:
72
+
73
+ $$
74
+ \lambda_ {t} = \mu + \alpha \sum_ {i: t _ {i} < t} \exp (- \beta (t - t _ {i})), \tag {4}
75
+ $$
76
+
77
+ where $\mu > 0$ , $\alpha > 0$ and $\beta > 0$ .
78
+
79
+ Self-correcting processes (Isham & Westcott, 1979). In contrast to the Hawkes process, the self-correcting process $\{N_t\}_{t \geq 0}$ assumes that a new event inhibits future events and the intensity grows exponentially over time:
80
+
81
+ $$
82
+ \lambda_ {t} = \exp (\mu t - \sum_ {i: t _ {i} < t} \alpha), \tag {5}
83
+ $$
84
+
85
+ where $\mu > 0$ and $\alpha > 0$ .
86
+
87
+ # 3.2. Jump-Diffusion Stochastic Differential Equations
88
+
89
+ One-dimensional autonomous jump-diffusion stochastic differential equations (JDSDE) (Hanson, 2007) with initial conditions are of the form
90
+
91
+ $$
92
+ \left\{ \begin{array}{l} \mathrm {d} X _ {t} = f \left(X _ {t}\right) \mathrm {d} t + g \left(X _ {t}\right) \mathrm {d} W _ {t} + h \left(X _ {t}\right) \mathrm {d} N _ {t}, \\ X _ {0} = x _ {0}, \end{array} \right. \tag {6}
93
+ $$
94
+
95
+ where $x_0 \in \mathbb{R}$ is the initial value, $f: \mathbb{R} \to \mathbb{R}$ is the drift coefficient function, $g: \mathbb{R} \to \mathbb{R}$ is the diffusion coefficient function, $h: \mathbb{R} \to \mathbb{R}$ is the jump coefficient function, $\{W_t\}_{t \geq 0}$ is a standard Brownian motion, and $\{N_t\}_{t \geq 0}$ is a counting process that jumps at times $\{t_i\}_{i=1}^{\infty}$ . Suppose that $\{W_t\}_{t \geq 0}$ and $\{N_t\}_{t \geq 0}$ are independent. In this paper, it is essential to highlight that the process $\{N_t\}_{t \geq 0}$ in Eq.(6) is a general counting process introduced in Section 3.1, distinct from many previous works (Cyganowski et al., 2002; Hanson, 2007; Lamberton & Lapeyre, 2011) that focus on a Poisson process.
96
+
97
+ The JDSDE Eq.(6) is interpreted as a stochastic integral equation (Cyganowski et al., 2002):
98
+
99
+ $$
100
+ X _ {t} = x _ {0} + \int_ {0} ^ {t} f (X _ {s}) \mathrm {d} s + \int_ {0} ^ {t} g (X _ {s}) \mathrm {d} W _ {s} + \int_ {0} ^ {t} h (X _ {s}) \mathrm {d} N _ {s},
101
+ $$
102
+
103
+ where the first integral is a Riemann integral, the second is an Itô integral and the third is a Riemann-Stieltjes integral. In fact, Eq.(6) behaves as a normal Itô SDE (Cyganowski et al., 2002; Hanson, 2007) between jumps of $\{N_t\}_{t \geq 0}$ . This can be expressed as:
104
+
105
+ $$
106
+ \mathrm {d} X _ {t} = f \left(X _ {t}\right) \mathrm {d} t + g \left(X _ {t}\right) \mathrm {d} W _ {t}, \quad t \in \left(t _ {i - 1}, t _ {i} \right].
107
+ $$
108
+
109
+ On the other hand, at a jump time $t_i$ , $\{N_t\}_{t \geq 0}$ has a jump size of $\Delta N_{t_i} = 1$ , which implies that the process $\{X_t\}_{t \geq 0}$ will have a jump of size
110
+
111
+ $$
112
+ \Delta X _ {t _ {i}} = X _ {t _ {i} +} - X _ {t _ {i}} = h \left(X _ {t _ {i}}\right) \Delta N _ {t _ {i}} = h \left(X _ {t _ {i}}\right),
113
+ $$
114
+
115
+ where $X_{t_i + } = \lim_{s\downarrow t_i}X_s$ . Then $X_{t_i + } = X_{t_i} + h(X_{t_i})$
116
+
117
+ # 4. Equivalent SDE Formulations for TPPs
118
+
119
+ In this section, we derive equivalent SDE formulations of several classical TPPs, which involves expressing their respective intensity process as a solution to the corresponding SDE. Then for the SDE formulation, we provide a sufficient condition for the existence of a unique positive solution.
120
+
121
+ Theorem 1. The intensity processes of homogeneous and inhomogeneous Poisson processes can be equivalently expressed as solutions to the following ODEs, respectively. These ODEs can be viewed as degenerate forms of SDEs.
122
+
123
+ $$
124
+ \mathrm {d} \lambda_ {t} = 0, \quad \lambda_ {0} = \lambda , \tag {7}
125
+ $$
126
+
127
+ $$
128
+ \mathrm {d} \lambda_ {t} = g ^ {\prime} (t) \mathrm {d} t, \quad \lambda_ {0} = g (0), \tag {8}
129
+ $$
130
+
131
+ where $\lambda > 0$ and $g(t) > 0$ is assumed to be differentiable.
132
+
133
+ According to Eq.(2) and Eq.(3), Theorem 1 is evident. Subsequently, we establish equivalent SDE formulations for Hawkes processes and self-correcting processes.
134
+
135
+ Theorem 2. The intensity process $\{\lambda_t\}_{t\geq 0}$ of the Hawkes process $\{N_t\}_{t\geq 0}$ can be equivalently expressed as the solution to the jump SDE
136
+
137
+ $$
138
+ \mathrm {d} \lambda_ {t} = \beta (\mu - \lambda_ {t}) \mathrm {d} t + \alpha \mathrm {d} N _ {t}, \quad \lambda_ {0} = \mu . \tag {9}
139
+ $$
140
+
141
+ Proof. See Appendix A.1. The proof sketch is as follows: Taking inspiration from (Björk, 2021), we now solve the above SDE. Let the jump times of $\{N_t\}_{t \geq 0}$ be $\{t_i\}_{i=1}^{\infty}$ , then Eq.(9) behaves as an ODE $\mathrm{d}\lambda_t = \beta (\mu - \lambda_t)\mathrm{d}t$ between these jump points. And at a jump time $t_i$ , the jump size is $\alpha$ , leading to $\lambda_{t_i+} = \lambda_{t_i} + \alpha$ . Iteratively solving this ODE between jumps with the initial value $\lambda_{t_{i-1+}}$ , we establish that the intensity process Eq.(4) satisfies Eq.(9).
142
+
143
+ Theorem 3. The intensity process $\{\lambda_t\}_{t\geq 0}$ of the self-correcting process $\{N_t\}_{t\geq 0}$ can be equivalently expressed as the solution to the jump SDE
144
+
145
+ $$
146
+ \mathrm {d} \lambda_ {t} = \mu \lambda_ {t} \mathrm {d} t + (e ^ {- \alpha} - 1) \lambda_ {t} \mathrm {d} N _ {t}, \quad \lambda_ {0} = 1. \tag {10}
147
+ $$
148
+
149
+ The proof of this theorem is similar to the previous one and can be found in Appendix A.2. The following result shows that under certain conditions, there exists a unique positive solution to an SDE, which means that an SDE can determine an intensity process of a TPP.
150
+
151
+ Theorem 4. Assume that the ODE
152
+
153
+ $$
154
+ \mathrm {d} y _ {t} = \frac {f \left(e ^ {y _ {t}}\right)}{e ^ {y _ {t}}} \mathrm {d} t, \quad t \geq 0, \quad y _ {0} = y,
155
+ $$
156
+
157
+ has a unique global solution for every $y \in \mathbb{R}$ and let $h(x): \mathbb{R} \to \mathbb{R}$ be a chosen function such that $h(x) + x > 0$ for $x > 0$ . Then the jump SDE
158
+
159
+ $$
160
+ \mathrm {d} \lambda_ {t} = f (\lambda_ {t}) \mathrm {d} t + h (\lambda_ {t}) \mathrm {d} N _ {t}, \quad \lambda_ {0} = \lambda , \tag {11}
161
+ $$
162
+
163
+ has a unique global positive solution for every $\lambda > 0$ .
164
+
165
+ Appendix A.3 includes the detailed proof. Specially, according to this theorem, by setting $f(x) = \mu x$ and $h(x) = (e^{-\alpha} - 1)x$ , it follows that Eq.(10) has a unique global positive solution.
166
+
167
+ From the above equivalent SDE formulations of several classical TPPs, we can clearly see that the coefficient functions within the SDE play a key role in shaping the evolution of intensity processes over time and revealing the influences between events. For example, in Hawkes processes (Eq.(9)), there exists excitatory influences between events, where each occurrence of an event leads to an instantaneous increase in intensity by $\alpha$ . This inspires us that by defining appropriate coefficient functions, it becomes feasible to construct an intensity process consistent with the observed data. These observations motivate us to propose our model Neural Jump-Diffusion Temporal Point Processes.
168
+
169
+ # 5. Neural Jump-Diffusion TPPs
170
+
171
+ In this section, for symbol simplicity and reader comprehension, we first model the intensity process of the univariate TPPs. Subsequently, we extend our method to address the multivariate TPPs, proposing a more comprehensive model.
172
+
173
+ # 5.1. Neural Jump-Diffusion Univariate Point Process
174
+
175
+ Unlike classical TPPs with known linear drift and jump coefficient functions, we consider a general problem where the dynamics of the intensity process are completely unknown. Specifically, we assume access to a large set of event sequences, each denoted as $S = \{t_i\}_{i=1}^n$ , representing independent realizations of a counting process $\{N_t\}_{t \geq 0}$ . The objective is to identify the unknown dynamics governing the intensity process $\{\lambda_t\}_{t \geq 0}$ of $\{N_t\}_{t \geq 0}$ .
176
+
177
+ To this end, we propose the Neural Jump-Diffusion Univariate Point Process whose intensity process is governed by a neural jump-diffusion SDE (NJDSDE). The drift, diffusion, and jump coefficient functions in the NJDSDE are parameterized by three neural networks which are called the drift net, diffusion net, and jump net, respectively. To ensure that the intensity $\{\lambda_t\}_{t\geq 0}$ remains positive, we introduce the log-intensity process $\eta_t\coloneqq \log \lambda_t$ . Then we formally present the NJDSDE for $\{\eta_t\}_{t\geq 0}$ as follows:
178
+
179
+ $$
180
+ \left\{ \begin{array}{l} \mathrm {d} \eta_ {t} = \underbrace {f _ {\theta_ {f}} (\eta_ {t})} _ {\text {d r i f t n e t}} \mathrm {d} t + \underbrace {g _ {\theta_ {g}} (\eta_ {t})} _ {\text {d i f f u s i o n n e t}} \mathrm {d} W _ {t} + \underbrace {h _ {\theta_ {h}} (\eta_ {t})} _ {\text {j u m p n e t}} \mathrm {d} N _ {t}, \\ \eta_ {0} = \log \lambda_ {0}, \end{array} \right. \tag {12}
181
+ $$
182
+
183
+ where $\eta_0\in \mathbb{R}$ is the initial value, $f_{\theta_f}:\mathbb{R}\to \mathbb{R},g_{\theta_g}:\mathbb{R}\to$ $\mathbb{R}$ $h_{\theta_h}:\mathbb{R}\rightarrow \mathbb{R}$ $\{W_t\}_{t\geq 0}$ is a standard Brownian motion (Le Gall, 2016), and $\{N_t\}_{t\geq 0}$ is the counting process mentioned above, which records the occurrence of events. Suppose that $\{W_t\}_{t\geq 0}$ and $\{N_t\}_{t\geq 0}$ are independent. We explain each term in Eq.(12) in detail:
184
+
185
+ - The drift term $f_{\theta_f}(\eta_t) \, \mathrm{d}t$ captures the intrinsic evolution of $\{\eta_t\}_{t \geq 0}$ .
186
+ - The diffusion term $g_{\theta_g}(\eta_t) \, \mathrm{d}W_t$ models the Gaussian noise with the Brownian motion. Inspired by (Wang et al., 2018), we add the diffusion term to model the impact of noise on the intensity process.
187
+ - The jump term $h_{\theta_h}(\eta_t) \, \mathrm{d}N_t$ represents the magnitude of the jump, capturing the influence of historical events up to time $t$ . Its sign indicates whether the influence is excitatory or inhibitory.
188
+
189
+ The proposed NJDSDE Eq.(12) is a general framework. When the function $f_{\theta_f}$ is set to $\beta (\mu e^{-\eta_t} - 1)$ , $g_{\theta_g}$ is set to 0, and $h_{\theta_h}$ is set to $\log (1 + \alpha e^{-\eta_t})$ in Eq.(12), the NJDSDE characterizes Hawkes processes. Similarly, when $f_{\theta_f}$ is set
190
+
191
+ to $\mu$ , $g_{\theta_g}$ is set to 0, and $h_{\theta_h}$ is set to $-\alpha$ , Eq.(12) characterizes self-correcting processes. The similar results for Poisson processes are trivial. In other words, the proposed NJDSDE encompasses the classical TPPs mentioned above. In addition, a specific class (but not all) of log-Gaussian Cox processes (Møller et al., 1998) can also be incorporated into our modeling framework Eq.(12). The proofs for these conclusions are detailed in Appendix A.4.
192
+
193
+ We proceed to investigate the existence and uniqueness of the solution $\{\eta_t\}_{t\geq 0}$ to the proposed NJDSDE. The theoretical analysis in the following theorem provides insights into designing an effective network architecture for the drift net $f_{\theta_f}$ , diffusion net $g_{\theta_g}$ , and jump net $h_{\theta_h}$ .
194
+
195
+ Theorem 5. Assuming that $f_{\theta_f}(x), g_{\theta_g}(x), h_{\theta_h}(x)$ are measurable functions $\mathbb{R} \to \mathbb{R}$ , $h_{\theta_h}(x)$ is continuous, and there exists a positive constant $C$ such that for all $x, y \in \mathbb{R}$ ,
196
+
197
+ $$
198
+ \left| f _ {\theta_ {f}} (x) - f _ {\theta_ {f}} (y) \right| + \left| g _ {\theta_ {g}} (x) - g _ {\theta_ {g}} (y) \right| \leq C | x - y |,
199
+ $$
200
+
201
+ then for every $\lambda_0 > 0$ , there exists a unique adapted left-continuous process $\{\eta_t\}_{t\geq 0}$ with right-limits that satisfies Eq.(12).
202
+
203
+ The proof is available in Appendix A.5. According to Theorem 5, if $f_{\theta_f}(x), g_{\theta_g}(x)$ and $h_{\theta_h}(x)$ are uniformly Lipschitz continuous, then Eq.(12) has a unique strong solution. Thus, we utilize Lipschitz nonlinear activations, such as ReLU, sigmoid, and Tanh, within the network architectures, as highlighted in previous works (Anil et al., 2019; Kong et al., 2020; Oh et al., 2024; Lin et al., 2024). Moreover, in this paper, the drift net, diffusion net, and jump net are implemented as three multi-layer perceptrons (MLPs).
204
+
205
+ Remarks. We summarize the differences of our model compared to existing TPP models:
206
+
207
+ - Different from the SDE formulation of classical TPPs (e.g., Eq.(9)), the coefficient functions in our model are parameterized by neural networks rather than relying on fixed functions. This enables a more flexible modeling of the complex dynamics of the intensity process.
208
+ - Compared to neural TPPs (Du et al., 2016; Zuo et al., 2020), our model eliminates the need to assume a specific functional form for the intensity function. Instead, based on the NJDSDE, our model formulates the time evolution of the intensity process in a general manner.
209
+ - Furthermore, our model differs from previous TPP models based on neural differential equations (Jia & Benson, 2019; Chen et al., 2020; Song et al., 2024). In addition to incorporating the Brownian motion to model the Gaussian noise, a key distinction lies in our proposed NJDSDE, which models the dynamics of the intensity process rather than the hidden state.
210
+
211
+ # 5.2. Model Training
212
+
213
+ To learn model parameters in $f_{\theta_f}, g_{\theta_g}, h_{\theta_h}$ , and the initial value $\eta_0$ , we perform the Maximum Likelihood Estimation (MLE). For an event sequence $S = \{t_i\}_{i=1}^n$ over the time interval $[0, T]$ , given its intensity $\lambda_t$ , the log-likelihood function (Rasmussen, 2018) is
214
+
215
+ $$
216
+ \ell (\mathcal {S}) = \sum_ {i = 1} ^ {n} \log \lambda_ {t _ {i}} - \int_ {0} ^ {T} \lambda_ {s} d s = \sum_ {i = 1} ^ {n} \eta_ {t _ {i}} - \int_ {0} ^ {T} e ^ {\eta_ {s}} d s.
217
+ $$
218
+
219
+ In general, the integral term does not have a closed-form computational method. Therefore, we apply numerical integration methods for approximate calculations, such as the trapezoidal rule (Zuo et al., 2020). This requires determining the value of $\eta_t$ at the divided time points. Noting that this process $\{\eta_t\}_{t \geq 0}$ is governed by our proposed NJDSDE Eq.(12). That is, on the time interval $(t_{i-1}, t_i]$ , $\eta_t$ is governed by the neural SDE
220
+
221
+ $$
222
+ \mathrm {d} \eta_ {t} = f _ {\theta_ {f}} (\eta_ {t}) \mathrm {d} t + g _ {\theta_ {g}} (\eta_ {t}) \mathrm {d} W _ {t}. \tag {13}
223
+ $$
224
+
225
+ And at a jump time $t_i$ , the jump size of $\eta_t$ is given by
226
+
227
+ $$
228
+ \Delta \eta_ {t _ {i}} = \eta_ {t _ {i} +} - \eta_ {t _ {i}} = h _ {\theta_ {h}} \left(\eta_ {t _ {i}}\right) \Delta N _ {t _ {i}} = h _ {\theta_ {h}} \left(\eta_ {t _ {i}}\right). \tag {14}
229
+ $$
230
+
231
+ Then the right-limit of $\eta_t$ at $t_i$ is
232
+
233
+ $$
234
+ \eta_ {t _ {i} +} = \eta_ {t _ {i}} + h _ {\theta_ {h}} \left(\eta_ {t _ {i}}\right). \tag {15}
235
+ $$
236
+
237
+ Since the solution of neural SDEs (e.g., Eq.(13)) is generally analytically intractable, numerical approximation methods are often required (Kong et al., 2020; Kidger et al., 2021b). We adopt the Euler-Maruyama scheme (Kloeden & Platen, 1992) with fixed step size due to its computational efficiency. Under such a scheme, the time interval $(t_{i-1}, t_i]$ is divided into $N$ subintervals $t_{i-1} = \tau_0^i < \dots < \tau_k^i < \dots < \tau_N^i = t_i$ with stepsize $\Delta_k^i = \tau_{k+1}^i - \tau_k^i = (t_i - t_{i-1}) / N$ . Then we discretize Eq.(13) on $(t_{i-1}, t_i]$ by the recursive equation
238
+
239
+ $$
240
+ \eta_ {\tau_ {k + 1} ^ {i}} = \eta_ {\tau_ {k} ^ {i}} + f _ {\theta_ {f}} \left(\eta_ {\tau_ {k} ^ {i}}\right) \Delta_ {k} ^ {i} + g _ {\theta_ {g}} \left(\eta_ {\tau_ {k} ^ {i}}\right) \Delta W _ {k} ^ {i}, \tag {16}
241
+ $$
242
+
243
+ for $k = 0,1,\ldots ,N - 1$ with $\eta_{\tau_0^i} = \eta_{t_{i - 1} + }$ . Here, $\Delta W_k^i =$ $W_{\tau_{k + 1}^i} - W_{\tau_k^i}$ is sampled from $\mathcal{N}(0,\Delta_k^i)$ for numerical computation. The advantage of introducing the log-intensity $\eta_t = \log \lambda_t$ is evident in obtaining a numerical solution of Eq.(12) over the entire real number space, rather than being restricted to the domain of positive real numbers.
244
+
245
+ Iteratively using Eq.(15) and Eq.(16), we can calculate the log-likelihood function as follows:
246
+
247
+ $$
248
+ \ell (\mathcal {S}) = \sum_ {i = 1} ^ {n} \eta_ {t _ {i}} - \sum_ {i = 1} ^ {n + 1} \sum_ {k = 1} ^ {N} \frac {\tau_ {k} ^ {i} - \tau_ {k - 1} ^ {i}}{2} \left(e ^ {\eta_ {\tau_ {k - 1} ^ {i}}} + e ^ {\eta_ {\tau_ {k} ^ {i}}}\right), \tag {17}
249
+ $$
250
+
251
+ where $\tau_0^1 = 0$ , $\tau_N^{n + 1} = T$ , $\eta_{\tau_0^i} = \eta_{t_{i - 1}+}$ and $\eta_{\tau_N^i} = \eta_{t_i}$ . The complete algorithm of model training is described in Algorithm 1 in Appendix B.
252
+
253
+ # 5.3. Neural Jump-Diffusion Multivariate Point Process
254
+
255
+ An important example of multivariate TPPs is the multivariate Hawkes process $N_{t} = (N_{t}^{1},\dots ,N_{t}^{M})^{\mathrm{T}}$ whose intensity process $\lambda_{t} = (\lambda_{t}^{1},\dots ,\lambda_{t}^{M})^{\mathrm{T}}$ characterizes the past event influences on future ones in an excitatory manner (Hawkes, 1971):
256
+
257
+ $$
258
+ \lambda_ {t} ^ {m} = \mu_ {0} ^ {m} + \sum_ {l = 1} ^ {M} \sum_ {t _ {i} < t, m _ {i} = l} \alpha^ {m l} \exp \left(- \beta \left(t - t _ {i}\right)\right), m \in [ M ],
259
+ $$
260
+
261
+ where $[M] := \{1, 2, \dots, M\}$ . For this intensity process, we derive the following equivalent SDE formulation.
262
+
263
+ Theorem 6. The intensity process $\{\lambda_t\}_{t\geq 0}$ of the multivariate Hawkes process $\{N_{t}\}_{t\geq 0}$ can be equivalently expressed as the solution to the jump SDEs
264
+
265
+ $$
266
+ \left\{ \begin{array}{l} \mathrm {d} \lambda_ {t} ^ {m} = \beta \left(\mu_ {0} ^ {m} - \lambda_ {t} ^ {m}\right) \mathrm {d} t + \sum_ {l = 1} ^ {M} \alpha^ {m l} \mathrm {d} N _ {t} ^ {l}, \\ \lambda_ {0} ^ {m} = \mu_ {0} ^ {m}, \quad m \in [ M ]. \end{array} \right.
267
+ $$
268
+
269
+ The proof follows a similar approach to that given earlier for Theorem 2, and is omitted here.
270
+
271
+ Subsequently, we extend our approach to identify the unknown dynamics of general multivariate point processes. Let $S = \{(t_i,m_i)\}_{i = 1}^n$ be a multi-type event sequence, where each event $(t_i,m_i)$ indicates that the $i$ -th event occurs at time $t_i\in \mathbb{R}_+$ and is of type $m_{i}\in [M]$ . We still denote $\pmb {N}_t = (N_t^1,\dots ,N_t^M)^\mathrm{T}$ the associated multivariate counting process. Similar to Section 5.1, we introduce the $M$ -dimensional log-intensity process $\pmb {\eta}_t\coloneqq \log \pmb {\lambda}_t = (\log \lambda_t^1,\dots ,\log \lambda_t^M)^\mathrm{T}$ . For each $m\in [M]$ , we propose the NJDSDE for $\{\eta_t^m\}_{t\geq 0}$ as follows:
272
+
273
+ $$
274
+ \mathrm {d} \eta_ {t} ^ {m} = f ^ {m} (\boldsymbol {\eta} _ {t}) \mathrm {d} t + \sum_ {k = 1} ^ {K} g ^ {m k} (\boldsymbol {\eta} _ {t}) \mathrm {d} W _ {t} ^ {k} + \sum_ {l = 1} ^ {M} h ^ {m l} (\boldsymbol {\eta} _ {t}) \mathrm {d} N _ {t} ^ {l},
275
+ $$
276
+
277
+ where the superscripts are used for the indices of vectors and matrices, such as the function $g^{mk}$ and $h^{ml}$ are the $(m,k)$ -th component of the $M \times K$ -matrix $\pmb{g}_{\theta_g}$ and the $(m,l)$ -th component of the $M \times M$ -matrix $\pmb{h}_{\theta_h} = [h_{\theta_h}^1 |\dots |h_{\theta_h}^M]$ with $h_{\theta_h}^l$ as its $l$ -th column vector, respectively. Moreover, the components $W_t^k$ of $\pmb{W}_t = (W_t^1,\dots ,W_t^K)^{\mathrm{T}}$ are standard Brownian motions which are pairwise independent. Suppose that $\pmb{W}_t$ and $\pmb{N}_t$ are independent.
278
+
279
+ We rewrite the above componentwise expression into vector form, leading to the formulation of the NJDSDE for $\{\eta_t\}_{t\geq 0}$ as follows:
280
+
281
+ $$
282
+ \left\{ \begin{array}{l} \mathrm {d} \boldsymbol {\eta} _ {t} = \underbrace {\boldsymbol {f} _ {\theta_ {f}} (\boldsymbol {\eta} _ {t})} _ {\text {d r i f t n e t}} \mathrm {d} t + \underbrace {\boldsymbol {g} _ {\theta_ {g}} (\boldsymbol {\eta} _ {t})} _ {\text {d i f f u s i o n n e t}} \mathrm {d} \boldsymbol {W} _ {t} + \underbrace {\boldsymbol {h} _ {\theta_ {h}} (\boldsymbol {\eta} _ {t})} _ {\text {j u m p n e t}} \mathrm {d} \boldsymbol {N} _ {t}, \\ \boldsymbol {\eta} _ {0} = \log \boldsymbol {\lambda} _ {0}, \end{array} \right. \tag {18}
283
+ $$
284
+
285
+ ![](images/4698573b7d82d1508efe8e3e25b39d3639c013d56efab149214c7c8da7904b94.jpg)
286
+ Figure 1. Illustration of the NJDSDE-governed intensity process with three event types. This example shows that the intensity process behaves as a diffusion process between event points, with a jump occurring at these specific points.
287
+
288
+ where $\pmb{\eta}_0\in \mathbb{R}^M$ is the initial value, the coefficient functions $f_{\theta_f}:\mathbb{R}^M\to \mathbb{R}^M$ $g_{\theta_g}:\mathbb{R}^M\to \mathbb{R}^{M\times K}$ and $h_{\theta_h}:\mathbb{R}^M\to \mathbb{R}^{M\times M}$ are the drift net, diffusion net, and jump net, respectively. In particular, when $M = K = 1$ this NJDSDE degenerates into Eq.(12). Essentially, Eq.(18) behaves as a neural SDE between event points, with a jump occurring at these points. This can be interpreted as:
289
+
290
+ $$
291
+ \left\{ \begin{array}{l} \mathrm {d} \boldsymbol {\eta} _ {t} = \boldsymbol {f} _ {\boldsymbol {\theta} _ {f}} (\boldsymbol {\eta} _ {t}) \mathrm {d} t + \boldsymbol {g} _ {\boldsymbol {\theta} _ {g}} (\boldsymbol {\eta} _ {t}) \mathrm {d} \boldsymbol {W} _ {t}, \quad t \in (t _ {i - 1}, t _ {i} ], \\ \boldsymbol {\eta} _ {t _ {i} +} = \boldsymbol {\eta} _ {t _ {i}} + \boldsymbol {h} _ {\boldsymbol {\theta} _ {h}} ^ {m _ {i}} (\boldsymbol {\eta} _ {t _ {i}}), \quad t = t _ {i}, m = m _ {i}. \end{array} \right. \tag {19}
292
+ $$
293
+
294
+ It is evident from this expression that the numerical value of $l$ -th element in vector $h_{\theta_h^{m_i}}$ characterizes the influence magnitude of event type $m_i$ on event type $l$ , with the sign reflecting the excitatory or inhibitory influence.
295
+
296
+ As discussed in Section 5.1, we employ Lipschitz continuous activations in the neural networks $f_{\theta_f}, g_{\theta_g}$ , and $h_{\theta_h}$ . This ensures the existence of a unique strong solution to Eq.(18). We also apply MLE to learn model parameters and provide the complete training algorithm in Appendix B. Figure 1 presents a concrete example of the intensity process governed by the NJDSDE Eq.(18).
297
+
298
+ # 5.4. Event Prediction
299
+
300
+ With the proposed NJDSDE-governed intensity process, we aim to predict the next event time and next event type given the historical events $\mathcal{H}_{t_{n + 1}} = \{(t_i,m_i)\}_{i = 1}^n$ .
301
+
302
+ The conditional density function of the next event time (Rasmussen, 2018) is that for $t \geq t_n$ ,
303
+
304
+ $$
305
+ f _ {t _ {n + 1}} (t) = \lambda_ {t} ^ {\mathrm {g}} \exp \left(- \int_ {t _ {n}} ^ {t} \lambda_ {s} ^ {\mathrm {g}} \mathrm {d} s\right), \tag {20}
306
+ $$
307
+
308
+ where $\lambda_t^{\mathrm{g}}\coloneqq \sum_{m = 1}^{M}\lambda_t^m = \sum_{m = 1}^{M}\exp (\eta_t^m)$ . Then for the next event time prediction, we employ the formula
309
+
310
+ $$
311
+ \widehat {t} _ {n + 1} = \int_ {t _ {n}} ^ {\infty} t f _ {t _ {n + 1}} (t) \mathrm {d} t. \tag {21}
312
+ $$
313
+
314
+ Note that after the jump time $t_n$ , the process $\pmb{\eta}_t$ governed by Eq.(18) will have the dynamics
315
+
316
+ $$
317
+ \left\{ \begin{array}{l} \mathrm {d} \boldsymbol {\eta} _ {t} = \boldsymbol {f} _ {\boldsymbol {\theta} _ {f}} (\boldsymbol {\eta} _ {t}) \mathrm {d} t + \boldsymbol {g} _ {\boldsymbol {\theta} _ {g}} (\boldsymbol {\eta} _ {t}) \mathrm {d} \boldsymbol {W} _ {t}, \quad t > t _ {n}, \\ \boldsymbol {\eta} _ {t _ {n} +} = \boldsymbol {\eta} _ {t _ {n}} + \boldsymbol {h} _ {\boldsymbol {\theta} _ {h}} ^ {m _ {n}} (\boldsymbol {\eta} _ {t _ {n}}). \end{array} \right. \tag {22}
318
+ $$
319
+
320
+ Therefore, similar to the method discussed in Section 5.2 for computing the log-likelihood function, we utilize the Euler-Maruyama scheme to discretize Eq.(22), followed by numerical integration techniques to compute the integrals mentioned above. Here, the value of $\eta_{t_n}$ required for discretizing Eq.(22) can be obtained by discretizing Eq.(18) over the interval $[0, t_n]$ using the Euler-Maruyama scheme and the historical events $\mathcal{H}_{t_{n+1}}$ .
321
+
322
+ Following previous works (Zuo et al., 2020; Shi et al., 2023; Xue et al., 2024), the next event type prediction is given by
323
+
324
+ $$
325
+ \widehat {m} _ {n + 1} = \operatorname {a r g m a x} _ {m} \lambda_ {t _ {n + 1}} ^ {m} / \lambda_ {t _ {n + 1}} ^ {\mathrm {g}}. \tag {23}
326
+ $$
327
+
328
+ # 6. Experiments
329
+
330
+ We first test the flexibility of our NJDTPP model by recovering the ground truth dynamics of the intensity process of classical TPPs. Then, we evaluate the modeling capability for event sequences and the prediction performance of NJDTPP on six real-world datasets. Our code is available at https://github.com/Zh-Shuai/NJDTPP.
331
+
332
+ # 6.1. Intensity Process Recovery for Classical TPPs
333
+
334
+ Synthetic Datasets. We consider the following classical TPPs: (i) Poisson Process: the intensity is given by $\lambda_{t} = \lambda_{0}$ , where $\lambda_0 = 1.0$ ; (ii) Hawkes Process: the intensity is given by $\lambda_{t} = \mu + \alpha \sum_{t_{i} < t} \exp(-\beta(t - t_{i}))$ , where $\mu = 0.2$ , $\alpha = 0.8$ , $\beta = 1.0$ ; and (iii) Self-Correcting Process: the intensity is given by $\lambda_{t} = \exp(\mu t - \sum_{t_{i} < t} \alpha)$ , where $\mu = 0.5$ , $\alpha = 0.2$ . For each TPP, we simulate a dataset using the Ogata's thinning algorithm (Ogata, 1981). Each dataset contains 500 event sequences within the time interval [0, 100]. The train-validation-test data split is $3:1:1$ .
335
+
336
+ Experimental Setup. We fit our NJDTPP model to each dataset using the training procedure described in Section 5.2. In this experiment, the drift, diffusion, and jump nets are implemented as three MLPs, each with 2 hidden layers of 32 units. The activation function chosen for these networks is Tanh. More training details are reported in Appendix C.5. For evaluation, we visually demonstrate the similarity between the estimated intensity from the learned NJDTPP and the ground truth intensity.
337
+
338
+ In addition, we compare the mean absolute percentage error (MAPE) of the estimated intensity of our model with the Poisson process (PP) model, the Hawkes process (HP) model, the self-correcting process (SC) model, an RNN-based model (Jia & Benson, 2019), and the Neural Jump SDE (NJSDE, Jia & Benson (2019)) model. The baseline results in Table 1 are extracted from (Jia & Benson, 2019). Similar to the calculation of the log-likelihood function, we first numerically solve Eq.(12) using the Euler-Maruyama scheme, and then compute MAPE through numerical integration. See Appendix C.4 for the definition of MAPE.
339
+
340
+ ![](images/e343a1b4f82724b6c155ca104d810fedf5edcc26ca3e9450cb941daf44395148.jpg)
341
+
342
+ ![](images/cb9f52ff57bfeb28af6c75f39a00661c34258ccbd7ead64de084b4447f0b1830.jpg)
343
+
344
+ ![](images/d2a99a191e47e76758414a09f900d1cc1dd2366b7a6d944c8fae38371a8faf92.jpg)
345
+ Figure 2. The estimated and ground truth intensity process of the Poisson Process, Hawkes Process, and Self-Correcting Process. Each blue cross represents an event at the corresponding time.
346
+
347
+ Table 1. The MAPE comparison of the estimated intensity. Each row represents a synthetic dataset. Each column represents a model.
348
+
349
+ <table><tr><td></td><td>PP</td><td>HP</td><td>SC</td><td>RNN</td><td>NJSDE</td><td>NJDTPP</td></tr><tr><td>Poisson</td><td>0.1</td><td>0.3</td><td>98.7</td><td>3.2</td><td>1.3</td><td>0.1</td></tr><tr><td>Hawkes</td><td>188.2</td><td>3.5</td><td>101.0</td><td>22.0</td><td>5.9</td><td>0.2</td></tr><tr><td>Self-Correcting</td><td>29.1</td><td>29.1</td><td>1.6</td><td>24.3</td><td>9.3</td><td>0.1</td></tr></table>
350
+
351
+ Results. Figure 2 compares the estimated intensity process (red curve) of our NJDTPP model with the ground truth (grayish purple curve). It clearly shows that NJDTPP effectively recovers the dynamics of ground truth intensities. This also indicates that our model can capture the excitatory and inhibitory influences between events. Table 1 reports the estimated MAPE for NJDTPP and the baseline models. These values are the average results for all 100 event sequences in the test set. As shown, our model fits the data well and shows a substantial performance improvement compared to baselines.
352
+
353
+ Having observed that NJDTPP achieves superior experimental results, we now turn to analyze the two main factors that contributed to this success. Firstly, as discussed in Section 5.1, these classical TPPs are special cases of our modeling framework. Specifically, when the drift, diffusion, and jump functions take certain forms, our proposed NJDSDE Eq.(12) characterizes these classical TPPs. Secondly, we employ neural networks to parameterize the drift, diffusion, and jump functions in Eq.(12). Due to the powerful capability of neural networks, our model can fit the data well and effectively recover the ground truth intensity.
354
+
355
+ ![](images/a025431ad7da0cb52ed59d687df56dd91d2fff0f79f9a03226bcdc5333c330a7.jpg)
356
+
357
+ ![](images/ecfced97f1378923c6f7df100e11884b3449ac9dfaa286088e099d1a19a2abf0.jpg)
358
+ Figure 3. Event time prediction RMSE comparison.
359
+
360
+ ![](images/e9917f4424bc53858e82bc8fc8fd10a9bb518f4a15308957577aca725309d6aa.jpg)
361
+
362
+ ![](images/cbcba3696b66d99c8a822ee7fe0920c789a0ad7cdbfacc56b4018f26cf6f42e3.jpg)
363
+
364
+ ![](images/0456dbf518705e66ae5261c58c5de528c65fc81d047b9cc5eeebec690dc0bcad.jpg)
365
+
366
+ ![](images/6fa7fa917602f85d434e07619561a75a9061c4a91e46a15f8208fee0708ee311.jpg)
367
+
368
+ Table 2. Event type prediction accuracy and $F_{1}$ comparison.
369
+
370
+ <table><tr><td rowspan="2">Model</td><td colspan="2">Retweet</td><td colspan="2">Earthquake</td><td colspan="2">Taxi</td><td colspan="2">Taobao</td><td colspan="2">StackOverflow</td><td colspan="2">MIMIC-II</td></tr><tr><td>Acc</td><td>F1</td><td>Acc</td><td>F1</td><td>Acc</td><td>F1</td><td>Acc</td><td>F1</td><td>Acc</td><td>F1</td><td>Acc</td><td>F1</td></tr><tr><td>RMTPP</td><td>0.503</td><td>0.415</td><td>0.214</td><td>0.082</td><td>0.836</td><td>0.815</td><td>0.431</td><td>0.429</td><td>0.437</td><td>0.265</td><td>0.812</td><td>0.600</td></tr><tr><td>NHP</td><td>0.601</td><td>0.573</td><td>0.451</td><td>0.283</td><td>0.890</td><td>0.886</td><td>0.463</td><td>0.447</td><td>0.467</td><td>0.315</td><td>0.832</td><td>0.680</td></tr><tr><td>SAHP</td><td>0.522</td><td>0.497</td><td>0.417</td><td>0.246</td><td>0.847</td><td>0.802</td><td>0.442</td><td>0.320</td><td>0.452</td><td>0.301</td><td>0.827</td><td>0.639</td></tr><tr><td>THP</td><td>0.536</td><td>0.375</td><td>0.451</td><td>0.281</td><td>0.865</td><td>0.828</td><td>0.467</td><td>0.406</td><td>0.463</td><td>0.309</td><td>0.853</td><td>0.596</td></tr><tr><td>AttNHP</td><td>0.592</td><td>0.575</td><td>0.452</td><td>0.283</td><td>0.761</td><td>0.724</td><td>0.458</td><td>0.386</td><td>0.465</td><td>0.310</td><td>0.856</td><td>0.817</td></tr><tr><td>NSTPP</td><td>0.513</td><td>0.482</td><td>0.354</td><td>0.165</td><td>0.884</td><td>0.837</td><td>0.437</td><td>0.289</td><td>0.449</td><td>0.293</td><td>0.840</td><td>0.799</td></tr><tr><td>NJDTPP</td><td>0.608</td><td>0.584</td><td>0.472</td><td>0.313</td><td>0.908</td><td>0.891</td><td>0.486</td><td>0.452</td><td>0.469</td><td>0.327</td><td>0.861</td><td>0.823</td></tr></table>
371
+
372
+ Table 3. Negative log-likelihood comparison.
373
+
374
+ <table><tr><td>Model</td><td>Retweet</td><td>Earthquake</td><td>Taxi</td><td>Taobao</td><td>StackOverflow</td><td>MIMIC-II</td></tr><tr><td>RMTPP</td><td>4.241</td><td>3.653</td><td>0.227</td><td>1.659</td><td>2.891</td><td>2.333</td></tr><tr><td>NHP</td><td>4.137</td><td>2.189</td><td>0.208</td><td>0.986</td><td>2.496</td><td>2.205</td></tr><tr><td>SAHP</td><td>5.009</td><td>3.941</td><td>0.478</td><td>1.640</td><td>2.952</td><td>3.394</td></tr><tr><td>THP</td><td>4.560</td><td>3.387</td><td>0.442</td><td>1.191</td><td>2.630</td><td>1.515</td></tr><tr><td>AttNHP</td><td>4.756</td><td>2.376</td><td>0.491</td><td>1.206</td><td>2.586</td><td>1.697</td></tr><tr><td>NSTPP</td><td>4.527</td><td>2.203</td><td>0.217</td><td>1.415</td><td>2.541</td><td>2.421</td></tr><tr><td>NJDTPP</td><td>4.092</td><td>1.305</td><td>-0.293</td><td>-0.440</td><td>2.347</td><td>1.398</td></tr></table>
375
+
376
+ # 6.2. Likelihood Evaluation and Event Prediction
377
+
378
+ We use the negative log-likelihood (NLL) as a metric to evaluate the ability of NJDTPP in modeling event sequences on real-world datasets. Moreover, we evaluate the performance of NJDTPP in the standard next-event prediction task in TPPs, predicting every next event $(t_i, m_i)$ given the history $\mathcal{H}_{t_i}$ . We use Eq.(21) and Eq.(23) to predict the next event time and type, respectively. We evaluate event time prediction by Root Mean Square Error (RMSE) and event type prediction by accuracy and the weighted $F_1$ score. The training details and the configuration of our NJDTPP model are provided in Appendix C.5 and Appendix C.6.
379
+
380
+ Datasets. We evaluate our model on six real-world benchmark datasets: Retweet (Zhou et al., 2013), Earthquake (Xue et al., 2024), Taxi (Whong, 2014), Taobao (Xue et al., 2022), StackOverflow (Leskovec & Krevl, 2014), and MIMIC-II (Johnson et al., 2016). The MIMIC-II dataset is available at the public Github repository $^2$ , and all other datasets are available at the public EasyTPP $^3$ library (Xue et al., 2024), an open benchmark for evaluating TPPs. See Appendix C.2 for dataset details.
381
+
382
+ Table 4. Performance of the NJDTPP variant on Earthquake and Taxi. NJDTPP-BM refers to the variant without Brownian motion.
383
+
384
+ <table><tr><td rowspan="2">Model</td><td colspan="4">Earthquake</td><td colspan="4">Taxi</td></tr><tr><td>NLL</td><td>RMSE</td><td>Acc</td><td>F1</td><td>NLL</td><td>RMSE</td><td>Acc</td><td>F1</td></tr><tr><td>NJDTPP-BM</td><td>1.594</td><td>1.507</td><td>0.470</td><td>0.306</td><td>-0.290</td><td>0.302</td><td>0.905</td><td>0.887</td></tr><tr><td>NJDTPP</td><td>1.305</td><td>1.420</td><td>0.472</td><td>0.313</td><td>-0.293</td><td>0.296</td><td>0.908</td><td>0.891</td></tr></table>
385
+
386
+ Baselines. We compare NJDTPP with the following models. Two RNN-based models: Recurrent Marked Temporal Point Process (RMTPP, Du et al. (2016)) and Neural Hawkes Process (NHP, Mei & Eisner (2017)). Three attention-based models: Self-Attentive Hawkes Process (SAHP, Zhang et al. (2020a)), Transformer Hawkes Process (THP, Zuo et al. (2020)), and Attentive Neural Hawkes Process (AttNHP, Yang et al. (2022)). One TPP with the hidden state governed by a neural jump SDE: Neural Spatio-Temporal Point Process (NSTPP, Chen et al. (2020)). More details in Appendix C.3. For the implementation of baselines, we use the code from EasyTPP $^{3}$ (Xue et al., 2024), and extract partial baseline results from the same paper.
387
+
388
+ Results. Table 3 summarizes the per-event NLL of these models on each test set. From this table, we can observe that NJDTPP fits the data well and significantly outperforms baselines across all experiments. This demonstrates our model's capability to learn complex real-world intensity dynamics. The results for next event time and event type prediction are presented in Figure 3 and Table 2 respectively. It is evident that, in each dataset, NJDTPP outperforms all competing models, often by a substantial margin. This shows the superior performance of our model in prediction tasks. The success of NJDTPP can be attributed to its flexibility in capturing complex intensity dynamics and the influences between events.
389
+
390
+ # 6.3. Ablation Study
391
+
392
+ We conduct an ablation study on the Earthquake and Taxi datasets, investigating the variant of NJDTPP by removing the diffusion term. We evaluate models based on NLL and prediction performance. Table 4 reports the experimental results. As shown, the diffusion term contributes to model performance due to the fact that it models the Gaussian noise with the Brownian motion.
393
+
394
+ # 7. Conclusion
395
+
396
+ We have presented Neural Jump-Diffusion Temporal Point Processes, a unified TPP framework that can learn a freeform intensity process consistent with the observed event data. By modeling the intensity process as the solution to an SDE, our approach eliminates the need to pre-specified the functional form of the intensity function, thereby significantly enhancing the flexibility and capability of TPP models. Experimental results show that our model effectively captures intensity dynamics and the influences between events, as well as achieves state-of-the-art results on benchmark datasets in likelihood evaluation and event prediction tasks.
397
+
398
+ # Acknowledgements
399
+
400
+ We would like to thank the anonymous reviewers for their valuable comments and suggestions. This work was partially supported by the National Key Research and Development Program of China (2021YFB3100600), the Strategic Priority Research Program of the Chinese Academy of Sciences (XDB0680101), the NSFC (62376064, U2336202), and the CAS Project for Young Scientists in Basic Research (YSBR-008).
401
+
402
+ # Impact Statement
403
+
404
+ We develop a novel framework for modeling the intensity process of temporal point processes using neural jump-diffusion stochastic differential equations. We hope that our study will inspire new developments in the field of temporal point processes. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
405
+
406
+ # References
407
+
408
+ Anil, C., Lucas, J., and Grosse, R. Sorting out lipschitz function approximation. In International Conference on Machine Learning, pp. 291-301. PMLR, 2019.
409
+ Bertoin, J. Lévy processes. Cambridge University Press, 1996.
410
+
411
+ Björk, T. Point Processes and Jump Diffusions: An introduction with finance applications. Cambridge University Press, 2021.
412
+ Chen, R. T., Rubanova, Y., Bettencourt, J., and Duvenaud, D. K. Neural ordinary differential equations. Advances in Neural Information Processing Systems, 31, 2018.
413
+ Chen, R. T., Amos, B., and Nickel, M. Neural spatiotemporal point processes. International Conference on Learning Representations, 2020.
414
+ Cyganowski, S., Grüne, L., and Kloeden, P. E. MAPLE for jump—diffusion stochastic differential equations in finance. Springer, 2002.
415
+ Daley, D. J., Vere-Jones, D., et al. An introduction to the theory of point processes: volume I: elementary theory and methods. Springer, 2003.
416
+ De, A., Valera, I., Ganguly, N., Bhattacharya, S., and Gomez Rodriguez, M. Learning and forecasting opinion dynamics in social networks. Advances in Neural Information Processing Systems, 29, 2016.
417
+ Du, N., Dai, H., Trivedi, R., Upadhyay, U., Gomez-Rodriguez, M., and Song, L. Recurrent marked temporal point processes: Embedding event history to vector. In Proceedings of the 22nd ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, pp. 1555-1564, 2016.
418
+ Farajtabar, M., Wang, Y., Gomez-Rodriguez, M., Li, S., Zha, H., and Song, L. Coevolve: A joint point process model for information diffusion and network evolution. Journal of Machine Learning Research, 18(41):1-49, 2017.
419
+ Gao, T., Subramanian, D., Bhattacharjya, D., Shou, X., Mattei, N., and Bennett, K. P. Causal inference for event pairs in multivariate point processes. Advances in Neural Information Processing Systems, 34:17311-17324, 2021.
420
+ Hanson, F. B. Applied stochastic processes and control for jump-diffusions: modeling, analysis and computation. SIAM, 2007.
421
+ Hawkes, A. G. Spectra of some self-exciting and mutually exciting point processes. Biometrika, 58(1):83-90, 1971.
422
+ Herrera, C., Krach, F., and Teichmann, J. Neural jump ordinary differential equations: Consistent continuous-time prediction and filtering. International Conference on Learning Representations, 2020.
423
+ Ikeda, N. and Watanabe, S. Stochastic differential equations and diffusion processes. Elsevier, 2014.
424
+
425
+ Isham, V. and Westcott, M. A self-correcting point process. Stochastic processes and their applications, 8(3):335-347, 1979.
426
+ Jia, J. and Benson, A. R. Neural jump stochastic differential equations. Advances in Neural Information Processing Systems, 32, 2019.
427
+ Johnson, A. E., Pollard, T. J., Shen, L., Lehman, L.-w. H., Feng, M., Ghassemi, M., Moody, B., Szolovits, P., Anthony Celi, L., and Mark, R. G. Mimic-iii, a freely accessible critical care database. Scientific data, 3(1):1-9, 2016.
428
+ Kidger, P., Morrill, J., Foster, J., and Lyons, T. Neural controlled differential equations for irregular time series. Advances in Neural Information Processing Systems, 33: 6696-6707, 2020.
429
+ Kidger, P., Foster, J., Li, X., and Lyons, T. J. Neural sdes as infinite-dimensional gans. In International Conference on Machine Learning, pp. 5453-5463. PMLR, 2021a.
430
+ Kidger, P., Foster, J., Li, X. C., and Lyons, T. Efficient and accurate gradients for neural sdes. Advances in Neural Information Processing Systems, 34:18747-18761, 2021b.
431
+ Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. International Conference on Learning Representations, 2015.
432
+ Kingman, J. F. C. Poisson processes, volume 3. Clarendon Press, 1992.
433
+ Kloeden, P. E. and Platen, E. Numerical solution of stochastic differential equations. Springer-Verlag Berlin, 1992.
434
+ Kong, L., Sun, J., and Zhang, C. Sde-net: Equipping deep neural networks with uncertainty estimates. In International Conference on Machine Learning, pp. 5405-5415. PMLR, 2020.
435
+ Kuo, H.-H. Stochastic differential equations. Springer, 2006.
436
+ Lamberton, D. and Lapeyre, B. Introduction to stochastic calculus applied to finance. CRC press, 2011.
437
+ Le Gall, J.-F. Brownian motion, martingales, and stochastic calculus. Springer, 2016.
438
+ Leskovec, J. and Krevl, A. Snap datasets: Stanford large network dataset collection. 2014.
439
+ Li, X., Wong, T.-K. L., Chen, R. T., and Duvenaud, D. Scalable gradients for stochastic differential equations. In International Conference on Artificial Intelligence and Statistics, pp. 3870-3882. PMLR, 2020.
440
+
441
+ Lin, X., Cao, J., Zhang, P., Zhou, C., Li, Z., Wu, J., and Wang, B. Disentangled deep multivariate hawkes process for learning event sequences. In International Conference on Data Mining, pp. 360-369. IEEE, 2021.
442
+ Lin, X., Zhang, W., Shi, F., Zhou, C., Zou, L., Zhao, X., Yin, D., Pan, S., and Cao, Y. Graph neural stochastic diffusion for estimating uncertainty in node classification. In International Conference on Machine Learning, 2024.
443
+ Liu, S. and Hauskrecht, M. Event outlier detection in continuous time. In International Conference on Machine Learning, pp. 6793-6803. PMLR, 2021.
444
+ Mei, H. and Eisner, J. M. The neural hawkes process: A neurally self-modulating multivariate point process. Advances in Neural Information Processing Systems, 30, 2017.
445
+ Møller, J., Syversveen, A. R., and Waagepetersen, R. P. Log gaussian cox processes. Scandinavian journal of statistics, 25(3):451-482, 1998.
446
+ Oakes, D. The markovian self-exciting process. Journal of Applied Probability, 12(1):69-77, 1975.
447
+ Ogata, Y. On lewis' simulation method for point processes. IEEE Transactions on Information Theory, 27(1):23-31, 1981.
448
+ Oh, Y., Lim, D., and Kim, S. Stable neural stochastic differential equations in analyzing irregular time series data. In International Conference on Learning Representations, 2024.
449
+ Oksendal, B. Stochastic differential equations: an introduction with applications. Springer Science & Business Media, 2013.
450
+ Omi, T., Aihara, K., et al. Fully neural network based model for general temporal point processes. Advances in Neural Information Processing Systems, 32, 2019.
451
+ Paszke, A., Gross, S., Chintala, S., Chanan, G., Yang, E., DeVito, Z., Lin, Z., Desmaison, A., Antiga, L., and Lerer, A. Automatic differentiation in pytorch. 2017.
452
+ Rasmussen, J. G. Lecture notes: Temporal point processes and the conditional intensity function. arXiv preprint arXiv:1806.00221, 2018.
453
+ Rubanova, Y., Chen, R. T., and Duvenaud, D. K. Latent ordinary differential equations for irregularly-sampled time series. Advances in Neural Information Processing Systems, 32, 2019.
454
+ Shchur, O., Bilos, M., and Gunnemann, S. Intensity-free learning of temporal point processes. International Conference on Learning Representations, 2019.
455
+
456
+ Shchur, O., Turkmen, A. C., Januschowski, T., Gasthaus, J., and Gunnemann, S. Detecting anomalous event sequences with temporal point processes. Advances in Neural Information Processing Systems, 34:13419-13431, 2021.
457
+ Shi, X., Xue, S., Wang, K., Zhou, F., Zhang, J. Y., Zhou, J., Tan, C., and Mei, H. Language models can improve event prediction by few-shot abductive reasoning. Advances in Neural Information Processing Systems, 2023.
458
+ Song, Y., Donghyun, L., Meng, R., and Kim, W. H. Decoupled marked temporal point process using neural ordinary differential equations. International Conference on Learning Representations, 2024.
459
+ Wang, Y., Williams, G., Theodorou, E., and Song, L. Variational policy for guiding point processes. In International Conference on Machine Learning, pp. 3684-3693. PMLR, 2017.
460
+ Wang, Y., Theodorou, E., Verma, A., and Song, L. A stochastic differential equation framework for guiding online user activities in closed loop. In International Conference on Artificial Intelligence and Statistics, pp. 1077-1086. PMLR, 2018.
461
+ Whong, C. FOILing NYC's taxi trip data. 2014.
462
+ Xiao, S., Yan, J., Yang, X., Zha, H., and Chu, S. Modeling the intensity function of point process via recurrent neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 31, 2017.
463
+ Xu, H., Farajtabar, M., and Zha, H. Learning granger causality for hawkes processes. In International Conference on Machine Learning, pp. 1717-1726. PMLR, 2016.
464
+ Xue, S., Shi, X., Zhang, J., and Mei, H. Hypro: A hybridly normalized probabilistic model for long-horizon prediction of event sequences. Advances in Neural Information Processing Systems, 35:34641-34650, 2022.
465
+ Xue, S., Shi, X., Chu, Z., Wang, Y., Zhou, F., Hao, H., Jiang, C., Pan, C., Xu, Y., Zhang, J. Y., et al. Easypp: Towards open benchmarking the temporal point processes. International Conference on Learning Representations, 2024.
466
+ Yang, C., Mei, H., and Eisner, J. Transformer embeddings of irregularly spaced events and their participants. In International Conference on Learning Representations, 2022.
467
+ Zarezade, A., De, A., Upadhyay, U., Rabiee, H. R., and Gomez-Rodriguez, M. Steering social activity: A stochastic optimal control point of view. J. Mach. Learn. Res., 18:205-1, 2017.
468
+
469
+ Zhang, Q., Lipani, A., Kirnap, O., and Yilmaz, E. Self-attentive hawkes process. In International Conference on Machine Learning, pp. 11183-11193. PMLR, 2020a.
470
+ Zhang, S., Zhou, C., Zhang, P., Liu, Y., Li, Z., and Chen, H. Multiple hypothesis testing for anomaly detection in multi-type event sequences. In International Conference on Data Mining, pp. 808-817. IEEE, 2023.
471
+ Zhang, W., Panum, T., Jha, S., Chalasani, P., and Page, D. Cause: Learning granger causality from event sequences using attribution methods. In International Conference on Machine Learning, pp. 11235-11245. PMLR, 2020b.
472
+ Zhou, K., Zha, H., and Song, L. Learning triggering kernels for multi-dimensional hawkes processes. In International Conference on Machine Learning, pp. 1301-1309. PMLR, 2013.
473
+ Zuo, S., Jiang, H., Li, Z., Zhao, T., and Zha, H. Transformer hawkes process. In International Conference on Machine Learning, pp. 11692-11702. PMLR, 2020.
474
+
475
+ # Appendix
476
+
477
+ # A. Proofs
478
+
479
+ # A.1. Proof of Theorem 2
480
+
481
+ Proof. To solve the SDE Eq.(9), we first denote the jump times of the Hawkes process $\{N_t\}_{t \geq 0}$ as $\{t_i\}_{i=1}^{\infty}$ . On the time interval $(t_{i-1}, t_i]$ , Eq.(9) behaves as an ODE $\mathrm{d}\lambda_t = \beta (\mu - \lambda_t)\mathrm{d}t$ . On the other hand, at a jump time $t_i$ , the jump size of $\{\lambda_t\}_{t \geq 0}$ is given by $\Delta \lambda_{t_i} = \lambda_{t_i+} - \lambda_{t_i} = \alpha \Delta N_{t_i} = \alpha$ . The right-limit at $t_i$ is then $\lambda_{t_i+} = \lambda_{t_i} + \alpha$ .
482
+
483
+ Up to the first jump time $t_1$ , the solution follows the ODE $\mathrm{d}\lambda_t = \beta (\mu -\lambda_t)\mathrm{d}t$ on $[0,t_1]$ with the initial value $\lambda_0 = \mu$ . Solving this ODE yields $\lambda_{t} = \mu -C_{1}e^{-\beta t}$ , where $C_1$ is a constant. Using the initial condition $\lambda_0 = \mu$ , we find that $C_1 = 0$ . Thus, we have $\lambda_{t} = \mu$ for all $t\in [0,t_1]$ . In particular, $\lambda_{t_1} = \mu$ and $\lambda_{t_1 + } = \lambda_{t_1} + \alpha = \mu +\alpha$
484
+
485
+ Subsequently, we solve the ODE $\mathrm{d}\lambda_{t} = \beta (\mu -\lambda_{t})\mathrm{d}t$ on $(t_1,t_2]$ with $\lambda_{t_1 + } = \mu +\alpha$ to obtain $\lambda_{t} = \mu -C_{2}e^{-\beta t}$ , where $C_2$ is a constant. Using $\lambda_{t_1 + } = \mu +\alpha$ and taking the right-limit at $t_1$ in the above equation, we obtain $\lambda_{t_1 + } = \mu +\alpha = \mu -C_2e^{-\beta t_1}$ . Then $C_2 = -\alpha e^{\beta t_1}$ . Thus, we get $\lambda_{t} = \mu +\alpha e^{-\beta (t - t_{1})}$ for $t\in (t_1,t_2]$ . This allows us to determine $\lambda_{t_2} = \mu +\alpha e^{-\beta (t_2 - t_1)}$ and $\lambda_{t_2 + } = \lambda_{t_2} + \alpha = \mu +\alpha e^{-\beta (t_2 - t_1)} + \alpha$ .
486
+
487
+ Iterating this procedure, the solution is given by $\lambda_{t} = \mu +\alpha \sum_{i:t_{i} < t}\exp (-\beta (t - t_{i}))$ , which is the intensity process of the Hawkes process.
488
+
489
+ # A.2. Proof of Theorem 3
490
+
491
+ Proof. To solve the SDE Eq.(10), we first denote the jump times of the self-correcting process $\{N_t\}_{t \geq 0}$ as $\{t_i\}_{i=1}^{\infty}$ . On the time interval $(t_{i-1}, t_i]$ , Eq.(10) behaves as an ODE $\mathrm{d}\lambda_t = \mu \lambda_t \mathrm{d}t$ . On the other hand, at a jump time $t_i$ , the jump size of $\{\lambda_t\}_{t \geq 0}$ is given by $\Delta \lambda_{t_i} = \lambda_{t_i+} - \lambda_{t_i} = (e^{-\alpha} - 1)\lambda_{t_i}\Delta N_{t_i} = (e^{-\alpha} - 1)\lambda_{t_i}$ . The right-limit at $t_i$ is then $\lambda_{t_i+} = e^{-\alpha}\lambda_{t_i}$ .
492
+
493
+ Up to the first jump time $t_1$ , the solution follows the ODE $\mathrm{d}\lambda_t = \mu \lambda_t \mathrm{d}t$ on $[0, t_1]$ with the initial value $\lambda_0 = 1$ . Solving this ODE yields $\lambda_t = C_1 e^{\mu t}$ , where $C_1$ is a constant. Using the initial condition $\lambda_0 = 1$ , we can find that $C_1 = 1$ . Thus, we have $\lambda_t = e^{\mu t}$ for $t \in [0, t_1]$ . In particular, $\lambda_{t_1} = e^{\mu t_1}$ and $\lambda_{t_1+} = e^{-\alpha} \lambda_{t_1} = e^{\mu t_1 - \alpha}$ .
494
+
495
+ Subsequently, we solve the ODE $\mathrm{d}\lambda_{t} = \mu \lambda_{t}\mathrm{d}t$ on $(t_1,t_2]$ with $\lambda_{t_1+} = e^{\mu t_1 - \alpha}$ to obtain $\lambda_{t} = C_{2}e^{\mu t}$ , where $C_2$ is a constant. Using $\lambda_{t_1+} = e^{\mu t_1 - \alpha}$ and taking the right-limit at $t_1$ in the above equation, we obtain $\lambda_{t_1+} = e^{\mu t_1 - \alpha} = C_2e^{\mu t_1}$ . Then $C_2 = e^{-\alpha}$ . Thus, we get $\lambda_{t} = e^{\mu t - \alpha}$ for $t\in (t_1,t_2]$ . This allows us to determine $\lambda_{t_2} = e^{\mu t_2 - \alpha}$ and $\lambda_{t_2+} = e^{-\alpha}\lambda_{t_2} = e^{\mu t_2 - 2\alpha}$ .
496
+
497
+ Iterating this procedure, the solution is given by $\lambda_{t} = \exp (\mu t - \sum_{i:t_{i} < t}\alpha)$ , which is the intensity process of the self- correcting process.
498
+
499
+ # A.3. Proof of Theorem 4
500
+
501
+ Proof. Step 1: For every $\lambda >0$ , we shall prove the existence and uniqueness of the solution to the SDE given by
502
+
503
+ $$
504
+ \left\{ \begin{array}{l} \mathrm {d} \eta_ {t} = \frac {f \left(e ^ {\eta_ {t}}\right)}{e ^ {\eta_ {t}}} \mathrm {d} t + \log \frac {e ^ {\eta_ {t}} + h \left(e ^ {\eta_ {t}}\right)}{e ^ {\eta_ {t}}} \mathrm {d} N _ {t}, \\ \eta_ {0} = \log \lambda , \end{array} \right. \tag {24}
505
+ $$
506
+
507
+ where the logarithmic function is well-defined due to the condition $h(x) + x > 0$ for all $x > 0$ .
508
+
509
+ To initiate the proof, we denote the jump times of $\{N_t\}_{t\geq 0}$ as $\{t_i\}_{i = 1}^{\infty}$ . Since the ODE
510
+
511
+ $$
512
+ \left\{ \begin{array}{l} \mathrm {d} y _ {t} = \frac {f \left(e ^ {y _ {t}}\right)}{e ^ {y _ {t}}} \mathrm {d} t, \quad t \geq 0, \\ y _ {0} = y, \end{array} \right. \tag {25}
513
+ $$
514
+
515
+ has a unique global solution for every $y \in \mathbb{R}$ , we can solve the ODE $\mathrm{d}\eta_t = \frac{f(e^{\eta t})}{e^{\eta t}}\mathrm{d}t$ on the interval $[0, t_1]$ with the initial value $\eta_0 = \log \lambda$ for every $\lambda > 0$ . In particular, we can obtain the value of $\eta_{t_1}$ and then $\eta_{t_1+} = \eta_{t_1} + \log \frac{e^{\eta t_1} + h(e^{\eta t_1})}{e^{\eta t_1}} = \log (e^{\eta_{t_1}} + h(e^{\eta_{t_1}}))$ .
516
+
517
+ Since the ODE Eq.(25) is autonomous, we can similarly solve the ODE $\mathrm{d}\eta_t = \frac{f(e^{\eta t})}{e^{\eta t}}\mathrm{d}t$ on $(t_1,t_2]$ with the initial value $\eta_{t_1 + }$ . This yields $\eta_{t_2}$ and then $\eta_{t_2 + } = \eta_{t_2} + \log \frac{e^{\eta t_2} + h(e^{\eta t_2})}{e^{\eta t_2}} = \log (e^{\eta t_2} + h(e^{\eta t_2}))$ .
518
+
519
+ Iterating this procedure, we have proved that Eq.(24) has a unique global solution for every $\lambda > 0$ .
520
+
521
+ Step 2: We now aim to prove that $\lambda_{t} = e^{\eta_{t}}$ is the unique global positive solution of the SDE Eq.(11), where $\{\eta_t\}_{t\geq 0}$ is the solution of Eq.(24).
522
+
523
+ Note that $\lambda_{t} = e^{\eta_{t}}$ ensures that $\lambda_{t}$ is positive and $\lambda_0 = e^{\eta_0} = \lambda$ . According to Eq.(24), between the jumps of $\{N_t\}_{t\geq 0}$ , the process $\{\eta_t\}_{t\geq 0}$ follows the dynamics $\mathrm{d}\eta_t = \frac{f(e^{\eta_t})}{e^{\eta_t}}\mathrm{d}t$ . Therefore, the dynamics of $\lambda_{t}$ can be expressed as follows:
524
+
525
+ $$
526
+ \mathrm {d} \lambda_ {t} = \mathrm {d} e ^ {\eta_ {t}} = e ^ {\eta_ {t}} \mathrm {d} \eta_ {t} = f \left(e ^ {\eta_ {t}}\right) \mathrm {d} t = f \left(\lambda_ {t}\right) \mathrm {d} t. \tag {26}
527
+ $$
528
+
529
+ On the other hand, at a jump time $t$ , the process $\{N_t\}_{t \geq 0}$ has a jump size of $\Delta N_t = N_{t+} - N_t = 1$ , implying that the process $\{\eta_t\}_{t \geq 0}$ will have a jump of size $\Delta \eta_t = \log \frac{e^{\eta t} + h(e^{\eta t})}{e^{\eta t}} \Delta N_t = \log \frac{e^{\eta t} + h(e^{\eta t})}{e^{\eta t}}$ . Then $\eta_{t+} = \eta_t + \Delta \eta_t = \eta_t + \log \frac{e^{\eta t} + h(e^{\eta t})}{e^{\eta t}} = \log (e^{\eta t} + h(e^{\eta t}))$ . Since $\lambda_t = e^{\eta t}$ , the induced jump size of $\lambda_t$ is given by
530
+
531
+ $$
532
+ \Delta \lambda_ {t} = e ^ {\eta_ {t +}} - e ^ {\eta_ {t}} = e ^ {\log \left(e ^ {\eta_ {t}} + h \left(e ^ {\eta_ {t}}\right)\right)} - e ^ {\eta_ {t}} = h \left(e ^ {\eta_ {t}}\right) = h \left(\lambda_ {t}\right). \tag {27}
533
+ $$
534
+
535
+ Combining Eq.(26) and Eq.(27), the equation holds: $\mathrm{d}\lambda_{t} = f(\lambda_{t})\mathrm{d}t + h(\lambda_{t})\mathrm{d}N_{t}$ . Therefore, we establish that the SDE Eq.(11) given by
536
+
537
+ $$
538
+ \left\{ \begin{array}{l} \mathrm {d} \lambda_ {t} = f \left(\lambda_ {t}\right) \mathrm {d} t + h \left(\lambda_ {t}\right) \mathrm {d} N _ {t}, \\ \lambda_ {0} = \lambda , \end{array} \right.
539
+ $$
540
+
541
+ has a unique global positive solution for every $\lambda > 0$ .
542
+
543
+ # A.4. Proofs of Special Cases of Our Proposed NJDSDE
544
+
545
+ Proof. We first provide the proof for the case of Hawkes processes, and the proofs for self-correcting processes and Poisson processes are similar.
546
+
547
+ According to Theorem 2, between the jumps of the Hawkes process $\{N_t\}_{t \geq 0}$ , the intensity process $\{\lambda_t\}_{t \geq 0}$ follows the dynamics $\mathrm{d}\lambda_t = \beta (\mu - \lambda_t)\mathrm{d}t$ . Therefore, the dynamics of $\eta_t \coloneqq \log (\lambda_t)$ can be expressed as follows:
548
+
549
+ $$
550
+ \mathrm {d} \eta_ {t} = \mathrm {d} \log (\lambda_ {t}) = \frac {1}{\lambda_ {t}} \mathrm {d} \lambda_ {t} = \frac {\beta (\mu - \lambda_ {t})}{\lambda_ {t}} \mathrm {d} t = \frac {\beta (\mu - e ^ {\eta_ {t}})}{e ^ {\eta_ {t}}} \mathrm {d} t = \beta (\mu e ^ {- \eta_ {t}} - 1) \mathrm {d} t. \tag {28}
551
+ $$
552
+
553
+ On the other hand, at a jump time $t$ , the intensity process $\{\lambda_t\}_{t \geq 0}$ has a jump of size $\Delta \lambda_t = \alpha$ . Then $\lambda_{t+} = \lambda_t + \Delta \lambda_t = \lambda_t + \alpha$ . Since $\eta_t = \log(\lambda_t)$ , the induced jump size of $\eta_t$ is given by
554
+
555
+ $$
556
+ \Delta \eta_ {t} = \log \left(\lambda_ {t +}\right) - \log \left(\lambda_ {t}\right) = \log \left(\frac {\lambda_ {t} + \alpha}{\lambda_ {t}}\right) = \log \left(\frac {e ^ {\eta_ {t}} + \alpha}{e ^ {\eta_ {t}}}\right) = \log \left(1 + \alpha e ^ {- \eta_ {t}}\right). \tag {29}
557
+ $$
558
+
559
+ Combining Eq.(28) and Eq.(29), the equation holds: $\mathrm{d}\eta_{t} = \beta (\mu e^{-\eta_{t}} - 1)\mathrm{d}t + \log (1 + \alpha e^{-\eta_{t}})\mathrm{d}N_{t}$ .
560
+
561
+ Therefore, when the function $f_{\theta_f}(\eta_t)$ is set to $\beta (\mu e^{-\eta_t} - 1)$ , $g_{\theta_g}(\eta_t)$ is set to 0, and $h_{\theta_h}(\eta_t)$ is set to $\log (1 + \alpha e^{-\eta_t})$ in Eq.(12), the proposed NJDSDE characterizes Hawkes processes.
562
+
563
+ Now, we prove that a specific class (but not all) of log-Gaussian Cox processes (LGCPs) can be incorporated into our modeling framework Eq.(12).
564
+
565
+ Specifically, when $f_{\theta_f}$ takes 0, $g_{\theta_g}$ takes 1, and $h_{\theta_h}$ takes 0 in Eq.(12), the NJDSDE reduces to $\mathrm{d}\eta_t = \mathrm{d}W_t$ . Given the initial value $\eta_0 = \log \lambda_0$ and $W_0 = 0$ , we have $\eta_t = W_t + \log \lambda_0$ . Since $\lambda_t = \exp(\eta_t)$ , it follows that $\lambda_t = \lambda_0 \exp(W_t)$ . Taking $\lambda_0$ as 1, we obtain $\lambda_t = \exp(W_t)$ , which indeed represents a specific class of LGCPs, since the Brownian motion $W_t$ is a Gaussian process with independent stationary increments (Bertoin, 1996). In turn, since a Gaussian process is not necessarily a Brownian motion, for example when the increments of a Gaussian process do not satisfy independence, our framework Eq.(12) cannot incorporate all LGCPs.
566
+
567
+ # A.5. Proof of Theorem 5
568
+
569
+ Proof. The following proof is adapted from the Theorem 9.1 in (Ikeda & Watanabe, 2014).
570
+
571
+ Consider a probability space $(\Omega, \mathcal{F}, \mathbb{P})$ on which we define a Brownian motion $W = \{W_t\}_{t \geq 0}$ and a counting process $N = \{N_t\}_{t \geq 0}$ that jumps at the times $\{t_i\}_{i=1}^{\infty}$ . Suppose that $W$ and $N$ are independent. We define the filtration $\{\mathcal{F}_t\}_{t \geq 0}$ as the augmented natural filtration of $W$ and $N$ , i.e., for all $t \geq 0$ we set $\mathcal{F}_t = \sigma\left(\{(W_s, N_s) : s \leq t\} \cup \mathcal{N}\right)$ , where $\mathcal{N} = \{A \in \mathcal{F} : \mathbb{P}(A) = 0\}$ . With this, $(\Omega, \mathcal{F}, \{\mathcal{F}_t\}_{t \geq 0}, \mathbb{P})$ is a filtered probability space that satisfies the usual conditions.
572
+
573
+ It is easy to see that the jump times $\{t_i\}_{i = 1}^{\infty}$ are stopping times of $\{\mathcal{F}_t\}_{t\geq 0}$ since $\{t_i\leq t\} = \{N_t\geq i\} \in \mathcal{F}_t$ , and $\lim_{i\to \infty}t_i = \infty$ a.s. First we shall show the existence and uniqueness of solutions in the time interval $[0,t_1]$ . For this, consider the following equation
574
+
575
+ $$
576
+ \mathrm {d} X (t) = f _ {\theta_ {f}} (X (s)) \mathrm {d} s + g _ {\theta_ {g}} (X (s)) \mathrm {d} W _ {s}, \quad X (0) = \eta_ {0}. \tag {30}
577
+ $$
578
+
579
+ The functions $f_{\theta_f}$ and $g_{\theta_g}$ in the above equation depend only on the variable $x$ and are independent of the time variable $t$ . In this case, note that the Lipschitz condition $|f_{\theta_f}(x) - f_{\theta_f}(y)| + |g_{\theta_g}(x) - g_{\theta_g}(y)| \leq C|x - y|$ implies $|f_{\theta_f}(x) - f_{\theta_f}(y)| \leq C|x - y|$ . Then we derive
580
+
581
+ $$
582
+ \left| f _ {\theta_ {f}} (x) \right| \leq \left| f _ {\theta_ {f}} (x) - f _ {\theta_ {f}} (0) \right| + \left| f _ {\theta_ {f}} (0) \right| \leq C | x | + \left| f _ {\theta_ {f}} (0) \right| \leq D (1 + | x |), \tag {31}
583
+ $$
584
+
585
+ where $D = \max \{C, |f_{\theta_f}(0)|\}$ . Therefore, the linear growth condition automatically follows from the Lipschitz condition (Kuo, 2006). According to the Theorem 5.2.1 in (Oksendal, 2013), we know that the solution $X(t)$ of Eq.(30) exists uniquely. This solution is a measurable function of $X(0)$ , $W$ and $N$ in the obvious sense. Using the continuity of $h_{\theta_h}(x)$ , we can set
586
+
587
+ $$
588
+ \eta_ {1} (t) = X (t), \quad t \in [ 0, t _ {1} ], \tag {32}
589
+ $$
590
+
591
+ and
592
+
593
+ $$
594
+ \eta_ {1} \left(t _ {1} +\right) = X \left(t _ {1}\right) + h _ {\theta_ {h}} \left(X \left(t _ {1}\right)\right). \tag {33}
595
+ $$
596
+
597
+ The process $\{\eta_1(t)\}_{t\in [0,t_1]}$ is clearly the unique solution of Eq.(12) in the time interval $[0,t_1]$ . Next, set $\widetilde{X} (0) = \eta_{1}(t_{1} + )$ $\widetilde{W} = \{\widetilde{W}_t\}_{t\geq 0}$ where $\widetilde{W}_{t} = W_{t + t_{1}} - W_{t_{1}}$ , and $\tilde{N} = \{\tilde{N}_t\}_{t\geq 0}$ where $\tilde{N}_t = N_{t + t_1} - N_{t_1}$ . Since the SDE Eq.(30) is autonomous, we can determine the process $\tilde{\eta}_2(t)$ on $[0,\tilde{t}_1]$ with respect to $\widetilde{X} (0)$ , $\widetilde{W}$ and $\tilde{N}$ in the same way as $\eta_1(t)$ . Clearly $\tilde{t}_1$ , defined with respect to $\tilde{N}$ , coincides with $t_2 - t_1$ . Define $\{\eta (t)\}_{t\in [0,t_2]}$ by
598
+
599
+ $$
600
+ \eta (t) = \left\{ \begin{array}{l l} \eta_ {1} (t), & t \in [ 0, t _ {1} ], \\ \tilde {\eta} _ {2} (t - t _ {1}), & t \in (t _ {1}, t _ {2} ]. \end{array} \right. \tag {34}
601
+ $$
602
+
603
+ It is easy to see that $\{\eta(t)\}_{t \in [0, t_2]}$ is the unique solution of Eq.(12) in the time interval $[0, t_2]$ . Continuing this process successively, $\eta(t)$ is determined uniquely in the time interval $[0, t_i]$ for every $i$ and hence $\eta(t)$ is determined globally. This completes the proof.
604
+
605
+ # B. Training Algorithm
606
+
607
+ The pseudo-codes of training algorithm of the Neural Jump-Diffusion Univariate Point Process (NJDUPP) and the Neural Jump-Diffusion Multivariate Point Process (NJDMPP) are presented in Algorithm 1 and Algorithm 2, respectively.
608
+
609
+ Algorithm 1 Training of the NJDUPP.
610
+ Input: Model parameter $\theta = \{\theta_f, \theta_g, \theta_h, \eta_0\}$ , start time $t_0 = 0$ , event sequences $\{\mathcal{S}^l\}_{l=1}^L$ , where $\mathcal{S}^l = \{t_i^l\}_{i=1}^{n_l}$
611
+ Initialize $f_{\theta_f}, g_{\theta_g}, h_{\theta_h}, \eta_{t_0+} = \eta_0, \mathcal{L} = 0$
612
+ while Not Converge do
613
+ for each sequence $\mathcal{S}^l$ in batch do
614
+ for $i = 1, \ldots, n_l + 1$ do
615
+ $\{\eta_{\tau_k^i}\}_{k=1}^N = \text{SDESolve}(f_{\theta_f}, g_{\theta_g}, \eta_{t_{i-1}+}^l, (\tau_0^i = t_{i-1}^l, \ldots, \tau_k^i, \ldots, \tau_N^i = t_i^l))$ $\eta_{t_{i+}^l} = \eta_{t_i^l} + h_{\theta_h}(\eta_{t_i^l}')$
616
+ end
617
+ $\mathcal{L}^l = -\ell(\{\eta_{\tau_k^i}\}_{k=0}^{N,n_l+1}; \theta)$ $\mathcal{L} + = \mathcal{L}^l$
618
+ end
619
+ back-propagate with gradient $\nabla_\theta \mathcal{L}$
620
+ update model parameters by Adam optimizer
621
+ end
622
+
623
+ Algorithm 2 Training of the NJDMPP.
624
+ Input: Model parameter $\theta = \{\theta_{f},\theta_{g},\theta_{h},\eta_{0}\}$ , $t_0 = 0$ , multi-type event sequences $\{S^l\}_{l=1}^L$ , where $S^l = \{(t_i^l,m_i^l)\}_{i=1}^{n_l}$
625
+ Initialize $f_{\theta_f}, g_{\theta_g}, h_{\theta_h}, \eta_{t_0+} = \eta_0, \mathcal{L} = 0$
626
+ while Not Converge do
627
+ for each sequence $S^l$ in batch do
628
+ for $i = 1,\ldots,n_l + 1$ do
629
+ $\{\eta_{\tau_k^i}\}_{k=1}^N = \text{SDESolve} \left( f_{\theta_f}, g_{\theta_g}, \eta_{t_{i-1}^l}, (\tau_0^i = t_{i-1}^l, \ldots, \tau_k^i, \ldots, \tau_N^i = t_i^l) \right)$ $\eta_{t_{i}^l+} = \eta_{t_i^l} + h_{\theta_h}^{m_i^l}(\eta_{t_i^l})$
630
+ end
631
+ $\mathcal{L}^l = -\ell \left( \left\{ \eta_{\tau_k^i} \right\}_{k=0}^{N,n_l+1}; \theta \right)$ $\mathcal{L}^+ = \mathcal{L}^l$
632
+ end
633
+ back-propagate with gradient $\nabla_\theta \mathcal{L}$
634
+ update model parameters by Adam optimizer
635
+ end
636
+
637
+ # C. Experimental Details
638
+
639
+ # C.1. Experimental Environment
640
+
641
+ The experiments are conducted on a Linux server with eight GPUs (NVIDIA RTX 2080 Ti * 8). We implement our model and all baselines with the deep learning library PyTorch (Paszke et al., 2017).
642
+
643
+ # C.2. Dataset Descriptions
644
+
645
+ - Retweet (Zhou et al., 2013). The dataset consists of sequences of time-stamped user retweet events, categorized into three types based on the users' following sizes: "small", "medium", and "large".
646
+ - Earthquake (Xue et al., 2024). This dataset contains timestamped earthquake events over the Conterminous U.S from 1996 to 2023. The seven event types are defined based on the magnitude of earthquakes.
647
+
648
+ Table 5. Statistics of the used datasets.
649
+
650
+ <table><tr><td rowspan="2">Dataset</td><td rowspan="2"># Types</td><td colspan="3"># Sequences</td><td colspan="3">Sequence Length</td><td colspan="3"># Events</td></tr><tr><td>Train</td><td>Dev</td><td>Test</td><td>Min</td><td>Mean</td><td>Max</td><td>Train</td><td>Dev</td><td>Test</td></tr><tr><td>Retweet</td><td>3</td><td>9,000</td><td>1,535</td><td>1,520</td><td>10</td><td>40</td><td>97</td><td>369,731</td><td>62,823</td><td>61,154</td></tr><tr><td>Earthquake</td><td>7</td><td>3000</td><td>400</td><td>896</td><td>11</td><td>16</td><td>18</td><td>49,363</td><td>6,612</td><td>14,748</td></tr><tr><td>Taxi</td><td>10</td><td>1,400</td><td>200</td><td>400</td><td>36</td><td>37</td><td>38</td><td>51,854</td><td>7,404</td><td>14,820</td></tr><tr><td>Taobao</td><td>17</td><td>1,300</td><td>200</td><td>500</td><td>32</td><td>57</td><td>64</td><td>75,205</td><td>11,737</td><td>28,455</td></tr><tr><td>StackOverflow</td><td>22</td><td>1,401</td><td>401</td><td>401</td><td>41</td><td>65</td><td>101</td><td>90,497</td><td>25,762</td><td>26,518</td></tr><tr><td>MIMIC-II</td><td>75</td><td>527</td><td>58</td><td>65</td><td>2</td><td>4</td><td>33</td><td>1,930</td><td>252</td><td>237</td></tr></table>
651
+
652
+ - Taxi (Whong, 2014). This dataset contains time-stamped taxi pick-up and drop-off events throughout the five boroughs of New York city. Each combination of borough, whether it's a pick-up or drop-off, defines an event type, resulting in a total of 10 event types.
653
+ - Taobao (Xue et al., 2022). This dataset includes the time-stamped click behavior of users in Taobao platform from November 25 to December 3, 2017. Each user has a sequence of product click events, where each event contains a timestamp and the product category.
654
+ - StackOverflow (Leskovec & Krevl, 2014). This dataset contains two years of user-awarded collections from the question-answering website. Each user is awarded a sequence of badges, with a total of 22 different badge types.
655
+ - MIMIC-II (Johnson et al., 2016). This dataset includes timestamped de-identified clinical visit events of Intensive Care Unit patients for seven years. Each patient has a sequence of hospital visit events, and each event records its timestamp and disease diagnosis.
656
+
657
+ Table 5 shows statistics about each dataset mentioned above.
658
+
659
+ # C.3. Baseline Descriptions
660
+
661
+ We provide detailed descriptions of the used baselines as follows:
662
+
663
+ - RMTPP (Du et al., 2016). RMTPP leverages RNNs to learn a hidden representation of event history, and then applies an exponential transformation on this representation for defining the intensity function.
664
+ - NHP (Mei & Eisner, 2017). NHP proposes a continuous-time LSTM to encode event sequences. The intensity function of NHP can decay over time and does not need to encode inter-event times as numerical inputs to the LSTM.
665
+ - SAHP (Zhang et al., 2020a). SAHP uses a self-attention mechanism to aggregate historical events, which enhances the expression ability of the intensity function.
666
+ - THP (Zuo et al., 2020). To capture the long-term dependence of events, THP proposes to model the intensity function using a Transformer architecture.
667
+ - AttNHP (Yang et al., 2022). AttNHP generalizes the Transformer architecture for modeling event sequences. Its architecture builds rich embeddings of actual and possible events at any given time, based on lower-level representations of these events and their context.
668
+ - NSTPP (Chen et al., 2020). With the goal of modeling high-fidelity distributions in continuous time and space, NSTPP uses the Neural ODE framework to parameterize the spatio-temporal TPP by combining ideas from Neural Jump SDEs (Jia & Benson, 2019) and continuous-time normalizing flows (Chen et al., 2018).
669
+
670
+ # C.4. Evaluation Metrics
671
+
672
+ We formulate the metrics used in this paper as follows:
673
+
674
+ - The mean absolute percentage error (MAPE) of the estimated intensity is given by
675
+
676
+ $$
677
+ \mathrm{MAPE} = \frac{1}{T}\int_{0}^{T}\left|\frac{\lambda_{t}^{\mathrm{model}} - \lambda_{t}^{\mathrm{GT}}}{\lambda_{t}^{\mathrm{GT}}}\right|\mathrm{d}t\times 100\% , \tag{35}
678
+ $$
679
+
680
+ where $T$ is the observation length, $\lambda_t^{\mathrm{model}}$ is the trained model intensity, and $\lambda_t^{\mathrm{GT}}$ is the ground truth intensity.
681
+
682
+ - The negative log-likelihood (NLL) of a multivariate point process over a time interval $[0, T]$ is
683
+
684
+ $$
685
+ \mathrm {N L L} = - \sum_ {i = 1} ^ {n} \log \lambda_ {t _ {i}} ^ {m _ {i}} + \sum_ {m = 1} ^ {M} \left(\int_ {0} ^ {T} \lambda_ {s} ^ {m} \mathrm {d} s\right) = - \sum_ {i = 1} ^ {n} \eta_ {t _ {i}} ^ {m _ {i}} + \sum_ {m = 1} ^ {M} \left(\int_ {0} ^ {T} \exp \left(\eta_ {s} ^ {m}\right) \mathrm {d} s\right). \tag {36}
686
+ $$
687
+
688
+ - The root mean square error (RMSE) is
689
+
690
+ $$
691
+ \operatorname {R M S E} (\boldsymbol {t}, \hat {\boldsymbol {t}}) = \sqrt {\frac {1}{N} \sum_ {i = 1} ^ {N} \left(t _ {i} - \hat {t} _ {i}\right) ^ {2}}. \tag {37}
692
+ $$
693
+
694
+ - The accuracy of multiclass classification is the fraction of correct classifications, that is
695
+
696
+ $$
697
+ \text {A c c u r a c y} = \frac {\# \text {c o r r e c t c l a s s i f i c a t i o n s}}{\# \text {a l l c l a s s i f i c a t i o n s}}. \tag {38}
698
+ $$
699
+
700
+ - The formula for the weighted $F_{1}$ score, accounting for class imbalance, is expressed as:
701
+
702
+ $$
703
+ F _ {\text {l w e i g h t e d}} = \sum_ {i = 1} ^ {C} w _ {i} \cdot F _ {1 i}, \tag {39}
704
+ $$
705
+
706
+ where $C$ is the number of classes, $w_{i}$ represents the sample weight for class $i$ , and $F_{1i}$ is the $F_{1}$ score for class $i$ .
707
+
708
+ # C.5. Training Details
709
+
710
+ We train our NJDTPP model for all experiments by minimizing the negative log-likelihood of training sequences, as described in Appendix B. The drift net, diffusion net, and jump net of NJDTPP are implemented as three multi-layer perceptrons (MLPs) with the same network structure. The activation function chosen for these networks is Tanh. Optimizer is Adam (Kingma & Ba, 2015) with a weight decay of $10^{-5}$ . The MLP parameters and the initial value $\eta_0$ are initialized by the Gaussian distribution.
711
+
712
+ # C.6. Hyper-parameter Setting
713
+
714
+ We employ the "diagonal" noise in the diffusion term of Eq.(18), i.e., $g_{\theta_g}$ is a diagonal matrix. In this case, the dimension of the Brownian motion $W_t$ is equal to the total number of event types, i.e., $K = M$ . Grid search is used to determine other hyper-parameters: the learning rate is selected from $\{0.001, 0.01, 0.1\}$ , the hidden layer number is selected from $\{1, 2, 3\}$ , and the hidden layer size is selected from $\{16, 32, 64\}$ .
2024/Neural Jump-Diffusion Temporal Point Processes/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c2a3f111c4cfa72c49f4a4e8e79270e9cc22f6f9608b3058a4477f0c335d9a3f
3
+ size 600367
2024/Neural Jump-Diffusion Temporal Point Processes/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural NeRF Compression/f08332cb-77b2-467c-b8ee-c62e8600c896_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:354c3097fd1a9bd3539accc40845913dd5a4ad61531827cccb6d5e58076dbc7f
3
+ size 4873702
2024/Neural NeRF Compression/full.md ADDED
@@ -0,0 +1,510 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Neural NeRF Compression
2
+
3
+ Tuan Pham<sup>1</sup> Stephan Mandt<sup>1</sup>
4
+
5
+ # Abstract
6
+
7
+ Neural Radiance Fields (NeRFs) have emerged as powerful tools for capturing detailed 3D scenes through continuous volumetric representations. Recent NeRFs utilize feature grids to improve rendering quality and speed; however, these representations introduce significant storage overhead. This paper presents a novel method for efficiently compressing a grid-based NeRF model, addressing the storage overhead concern. Our approach is based on the non-linear transform coding paradigm, employing neural compression for compressing the model's feature grids. Due to the lack of training data involving many i.i.d scenes, we design an encoder-free, end-to-end optimized approach for individual scenes, using lightweight decoders. To leverage the spatial inhomogeneity of the latent feature grids, we introduce an importance-weighted rate-distortion objective and a sparse entropy model employing a masking mechanism. Our experimental results validate that our proposed method surpasses existing works in terms of grid-based NeRF compression efficacy and reconstruction quality.
8
+
9
+ # 1. Introduction
10
+
11
+ Over the past few years, the field of 3D scene modeling and reconstruction has been revolutionized by the advent of Neural Radiance Fields (NeRF) methodologies (Mildenhall et al., 2021; Zhang et al., 2020; Barron et al., 2021). NeRFs offer a sophisticated method for 3D reconstruction, with the ability to synthesize novel viewpoints from limited 2D data. Yet, the original NeRF model requires millions of MLP queries, which causes slow training and rendering.
12
+
13
+ To address these efficiency concerns, recent NeRF advancements have transitioned to the integration of an explicit grid representation (Yu et al., 2021; Sun et al., 2022; Fridovich-
14
+
15
+ Keil et al., 2022; Chen et al., 2022; Fridovich-Keil et al., 2023; Chan et al., 2022). While significantly accelerating training and rendering processes, this change also poses a new challenge: the storage cost for saving the explicit grid NeRF representation increases. This problem is crucial, especially in real-world (e.g., large-scale VR and AR) applications where storage and transmission impose critical constraints.
16
+
17
+ Our work seeks to significantly reduce the storage costs of NeRFs. Inspired by neural image compression methodology (Yang et al., 2023b), we apply non-linear transform coding techniques (Balle et al., 2020) to compress the explicit grid NeRF representation efficiently. However, we sidestep the conventional auto-encoder approach in favor of an iterative inference framework, in which we jointly optimize the latent code along with a lightweight decoder. We further take account of the NeRF grid importance scores while reconstructing the scene to boost the efficiency of our compression model. Lastly, we propose a novel entropy model that masks uninformative feature grid points. Utilizing a rate-distortion objective, we can choose from various compression levels. Our proposed approach departs from previous works on compressing explicit grid NeRF representations (Li et al., 2023a;b; Deng & Tartaglione, 2023) based on voxel pruning and/or vector quantization (Gray, 1984) while taking into account the varying importance levels of different voxel grid locations.
18
+
19
+ To show the effectiveness of our proposed method, we perform extensive experiments on four different datasets. Our results show that our model is capable of compressing diverse NeRF scenes to a much smaller size and improves over previous works in terms of rate-distortion performance.
20
+
21
+ # 2. Background
22
+
23
+ # 2.1. Neural Radiance Fields
24
+
25
+ Neural radiance fields (Mildenhall et al., 2021) mark a paradigm shift in 3D scene representation using deep neural networks. Unlike traditional approaches that employ discrete structures such as point clouds or meshes, NeRFs model a scene using a continuous volumetric function $F: (\mathbf{x}, \mathbf{d}) \to (\mathbf{c}, \sigma)$ . Here, an input comprising of spatial coordinates $\mathbf{x}$ and a viewing direction $\mathbf{d}$ is mapped to
26
+
27
+ an output representing color c and volume density $\sigma$
28
+
29
+ For each pixel, the estimated color $\hat{C} (\mathbf{r})$ for the corresponding ray $\mathbf{r}$ can be calculated by:
30
+
31
+ $$
32
+ \hat {C} (\mathbf {r}) = \sum_ {i = 1} ^ {N} T _ {i} \cdot \alpha_ {i} \cdot \mathbf {c} _ {i}, \tag {1}
33
+ $$
34
+
35
+ with the following definitions:
36
+
37
+ - $\alpha_{i} = 1 - \exp (-\sigma_{i}\delta_{i})$ is the probability of light being absorbed at the $i$ -th point, dependent on the volume density $\sigma_{i}$ and the distance $\delta_{i}$ between adjacent sampled points on the ray.
38
+ - $T_{i} = \prod_{j=1}^{i}(1 - \alpha_{j})$ represents the accumulated transmittance, or the remaining light that has not been absorbed before reaching the $i$ -th point.
39
+
40
+ NeRF is then trained to minimize total squared error loss between the rendered and true pixel colors.
41
+
42
+ $$
43
+ \mathcal {L} _ {\text {r e n d e r}} = \sum_ {\mathbf {r}} | | \hat {C} (\mathbf {r}) - C (\mathbf {r}) | | _ {2} ^ {2} \tag {2}
44
+ $$
45
+
46
+ Despite NeRF's ability to provide intricate scene details with a relatively compact neural network, the computational demand remains a significant constraint. The evaluation over the volume often requires thousands of network evaluations per pixel. To reduce training and inference time, recent research has employed explicit grid structure into NeRF. More specifically, they introduce voxel grids (Sun et al., 2022; Fridovich-Keil et al., 2022) or decomposed feature planes (Chen et al., 2022; Fridovich-Keil et al., 2023; Chan et al., 2022) into the model, and query point features via trilinear or bilinear interpolation. While this notably speeds up training and inference, it does come at the expense of greater storage needs from saving the feature grids.
47
+
48
+ # 2.2. Neural Compression
49
+
50
+ Neural compression utilizes neural networks to perform end-to-end learned data compression (Yang et al., 2023b). Traditional compression algorithms are handcrafted and specifically tailored to the characteristics of the data they compress, such as JPEG (Wallace, 1991) for images or MP3 for audio. In contrast, neural compression seeks to learn efficient data representations directly from the data, exemplified by the nonlinear transform coding paradigm (Balle et al., 2020).
51
+
52
+ Existing lossy neural compression methods (Ballé et al., 2016; 2018; Minnen et al., 2018; Cheng et al., 2020; Matsubara et al., 2022; Yang & Mandt, 2023a;b; Yang et al., 2023a) often leverage an auto-encoder architecture (Kingma & Welling, 2014). Here, an encoder $E$ maps data $\mathbf{X}$ to continuous latent representations $\mathbf{Z} = E(\mathbf{X})$ . This continuous
53
+
54
+ $\mathbf{Z}$ is then quantized to integers by $Q$ , resulting in $\hat{\mathbf{Z}} = Q(\mathbf{Z})$ . An entropy model $P$ is used to transmit $\hat{\mathbf{Z}}$ losslessly. Finally, a decoder $D$ receives the quantized latent code $\hat{\mathbf{Z}}$ and reconstructs the original data $\hat{\mathbf{X}} = D(\hat{\mathbf{Z}})$ . One commonly trains the encoder $E$ , the decoder $D$ and the entropy model $P$ jointly using a rate-distortion objective:
55
+
56
+ $$
57
+ \begin{array}{l} \mathcal {L} (E, D, P) = \mathbb {E} _ {\mathbf {X} \sim p (\mathbf {X})} [ d (\mathbf {X}, D (Q (E (\mathbf {X}))) \tag {3} \\ \left. - \lambda \log_ {2} P (Q (E (\mathbf {X}))) \right] \\ \end{array}
58
+ $$
59
+
60
+ where $d(\cdot, \cdot)$ is a distortion loss and the second term is the rate loss that measures the expected code length. The parameter $\lambda$ balances between the two loss terms. At training time, the quantizer $Q$ is typically replaced with injecting uniform noise (Balle et al., 2016). See (Yang et al., 2023b) for a detailed review of neural compression.
61
+
62
+ # 3. Method
63
+
64
+ In this section, we describe our method for grid-based NeRF compression. Our primary focus is on the compression of the TensoRF-VM model (Chen et al., 2022), characterized by its decomposed 2D feature plane structure (Kolda & Bader, 2009). We select TensoRF-VM because of its proficient 3D scene modeling capabilities, often outperforming alternative methods like Plenoxels (Fridovich-Keil et al., 2022) or DVGO (Sun et al., 2022). Our method has the potential to be applied to other grid-based NeRF architectures.
65
+
66
+ Problem setting. We have a TensoRF-VM model that was pre-trained for a single scene, and our task is to reduce its size through compression while maintaining its reconstruction quality. We assume that we have access to the training dataset comprising view images at compressing time.
67
+
68
+ Notation. The three feature planes (or matrix components) of TensoRF-VM are denoted by $\{\mathbf{P}_i\}_{i=1}^3$ , in which subscript $i$ signifies the index of the planes and each $\mathbf{P}_i \in \mathbb{R}^{C_i \times H_i \times W_i}$ . In practice, $\{\mathbf{P}_i\}_{i=1}^3$ is the channel-wise concatenation of the density planes and appearance planes of TensoRF-VM. The vector components are not considered in our compression and, hence, are not represented in our notation. For indexing a specific spatial grid location $j$ in the feature plane $i$ , we employ a superscript, represented as $\mathbf{P}_i^j$ .
69
+
70
+ # 3.1. Compressing the feature planes
71
+
72
+ Most storage for compressing TensoRF-VM is spent on the feature grids. To illustrate this, we analyze a trained model for the Lego scene from the Synthetic-NeRF dataset (Mildenhall et al., 2021). In this model, the 2D feature planes take $67.61\mathrm{MB}$ , while the other components, such as the rendering MLP, the rendering mask, and the vector
73
+
74
+ ![](images/75162d4a801854987cb4b8a24760df5c2fe605441e22aafadb47731ae40e2c18.jpg)
75
+ Figure 1: Overview of our model. At training time (left), we learn the three latent codes $\{\mathbf{Z}_i\}_{i=1}^3$ to reconstruct the three frozen feature planes $\{\mathbf{P}_i\}_{i=1}^3$ . The reconstructed feature planes $\{\hat{\mathbf{P}}_i\}_{i=1}^3$ are used to render the scene and calculate the rendering loss. The entropy model $P$ is used to calculate the rate loss and compress the latent codes to bitstring. At rendering time (right), we use $P$ to decompress the bitstring to latent codes $\{\hat{\mathbf{Z}}_i\}_{i=1}^3$ and then reconstruct the feature planes $\{\hat{\mathbf{P}}_i\}_{i=1}^3$ .
76
+
77
+ ![](images/05a09feb3429c389da2dd3c39056854511f450c9965cfdcb13f20ebe2ef54b7a.jpg)
78
+
79
+ components, take only 1.21 MB. Given this disparity, we focus on compressing TensoRF-VM's feature planes.
80
+
81
+ In more detail, we can define an encoder $E$ that embeds the three feature planes $\{\mathbf{P}_i\}_{i=1}^3$ to latent codes $\{\mathbf{Z}_i\}_{i=1}^3$ , in which the $\mathbf{Z}_i$ may have lower resolution than $\mathbf{P}_i$ . The latent codes are quantized to $\{\hat{\mathbf{Z}}_i\}_{i=1}^3$ and compressed with entropy coding using an entropy model $P$ . At rendering time, we decompress the quantized latent codes $\{\hat{\mathbf{Z}}_i\}_{i=1}^3$ and forward them to the decoder $D$ to reconstruct the three feature planes $\{\hat{\mathbf{P}}_i\}_{i=1}^3$ . We then use $\{\hat{\mathbf{P}}_i\}_{i=1}^3$ to query sampling point features and render the scene. The compressed NeRF model includes the compressed latent codes, the decoder, the entropy model, and the other components.
82
+
83
+ It is crucial to highlight that we only need to reconstruct the three feature planes once, and all subsequent querying operations for the sampling points are executed on these reconstructed planes. Thus, the decompression process only adds minimal overhead to the overall rendering procedure.
84
+
85
+ Per-scene optimization. The conventional approach to neural image compression (Ballé et al., 2016; 2018) involves training a compression model on a big dataset containing thousands of images. However, applying this same training method to NeRF compression presents three challenges: First, we need a dataset with numerous 3D objects. Although datasets like Objaverse (Deitke et al., 2023) or Objaverse-XL (Deitke et al., 2024) exist, they are synthetic datasets and only contain a single object for each scene. Additionally, pre-trained NeRF models are required for every 3D object in the dataset, demanding significant computational resources and storage. Finally, we cannot adapt other components of the NeRF model, such as the rendering MLP and the vector components of the TensorF-VM model. Due
86
+
87
+ to these challenges, we optimize each NeRF scene individually, a process we refer to as per-scene optimization. In this approach, the compressor is overfitted to each NeRF scene, which results in improved compression performance.
88
+
89
+ Transform coding without encoder. In nonlinear transform coding (Balle et al., 2020; Yang et al., 2023b), one usually employs an encoder to obtain the latent code of a new data point via amortized inference (Kingma & Welling, 2014; Gershman & Goodman, 2014). This is essential for compressing a new data point quickly in a single network pass. Nonetheless, in the case of per-scene TensoRF-VM compression, our primary objective is to compress merely the three feature planes, and our decoder is overfitted to a single scene. Moreover, using an encoder for amortized inference leads to an irreducible amortization gap in optimization (Cremer et al., 2018; Marino et al., 2018), which has been shown to degrade compression performance (Campos et al., 2019; Yang et al., 2020).
90
+
91
+ For these reasons, we remove the encoder and directly learn the three latent codes $\{\mathbf{Z}_i\}_{i=1}^3$ for each scene. More specifically, we initialize the $\{\mathbf{Z}_i\}_{i=1}^3$ as a tensor of zeros, and jointly optimize $\{\mathbf{Z}_i\}_{i=1}^3$ with the decoder $D$ and the entropy model $P$ . At decoding time, the receiver thus receives a binary code along with the entropy model and decoder to reconstruct the sample, all three of which are counted towards the bitrate.
92
+
93
+ Architecture design. Since we must transmit the decoder $D$ along with the latent code $\{\mathbf{Z}_i\}_{i=1}^3$ to decompress the scene, it's essential for the decoder to be lightweight. Yang & Mandt (2023b) established a lightweight decoder for neural image compression. We found that a two-layer transposed convolutional neural network with SELU activation (Klambauer et al., 2017) is effective for our needs.
94
+
95
+ # 3.2. Importance-weighted training loss
96
+
97
+ Our model is trained end-to-end (on top of the pre-trained NeRF) with a rate-distortion loss. The rate loss is defined as the log-likelihood of the entropy model $P$ , and it ensures that the compressed feature planes have low relative entropy to the prior $P$ . For the distortion loss, we discover that using only the NeRF rendering loss $\mathcal{L}_{\text{render}}$ is not sufficient; we also need to use an L2 feature plane reconstruction loss for good rendering quality.
98
+
99
+ However, reconstructing the entire feature planes is not the most efficient approach for compression. Prior research (Li et al., 2023a;b; Deng & Tartaglione, 2023) has illustrated that these feature grids possess significant redundancy and could be pruned to decrease the size of the model. Consequently, if we were to reconstruct every single grid location, it would inevitably lead to additional storage costs.
100
+
101
+ To address this issue, we suggest computing weight maps, defined below, that we use to re-weight the feature plane reconstruction loss. With this approach, our model is guided to reconstruct only high-density grid locations while ignoring the less populated ones, ensuring a more optimized and effectively compressed representation.
102
+
103
+ For each feature plane $\mathbf{P}_i\in \mathbb{R}^{C_i\times W_i\times H_i}$ , we define $\mathbf{W}_i\in$ $\mathbb{R}^{W_i\times H_i}$ as the corresponding weight map, shared across all feature channels. These weight maps are constructed based on the rendering importance score $\{\mathbf{I}_i\}_{i = 1}^3$ by Li et al. (2023a;b), defined next.
104
+
105
+ As follows, we consider feature plane $i$ and grid location $j$ . The collection of sampling points $\mathbf{x}_k \in \mathbb{R}^3$ in the vicinity of location $j$ (upon projection) shall be denoted as $\mathcal{N}_j$ . Since the coordinates of $\mathbf{x}_k$ are continuous and the grid locations discrete, we distribute the "mass" of each $\mathbf{x}_k$ onto the relevant grid locations using bilinear interpolation, resulting in the interpolation weights $\omega_{kj}^i$ for sampling point $\mathbf{x}_k \in \mathcal{N}_j$ . In addition, each sampling point $\mathbf{x}_k$ in Eq. 1 has a corresponding transmittance coefficient $T_k \cdot \alpha_k$ that we interpret as its importance. This leads to the following importance scores for each grid location $j$ in plane $i$ ,
106
+
107
+ $$
108
+ \mathbf {I} _ {i} ^ {j} = \sum_ {k \in \mathcal {N} _ {j}} \omega_ {k j} ^ {i} \cdot T _ {k} \cdot \alpha_ {k} \tag {4}
109
+ $$
110
+
111
+ In sum, each importance score $\mathbf{I}_i^j$ is a weighted aggregate of the individual importance scores of the neighboring sampling points $\mathbf{x}_k$ over the feature grid.
112
+
113
+ Finally, we apply a log-transform to the importance maps $\{\mathbf{I}_i\}_{i = 1}^3$ , and then normalize them to the range of [0, 1] to get the weights $\{\mathbf{W}_i\}_{i = 1}^3$ ..
114
+
115
+ $$
116
+ \mathbf {W} _ {i} = \text {n o r m a l i z e} (\log (\mathbf {I} _ {i} + \epsilon)), \tag {5}
117
+ $$
118
+
119
+ in which $\epsilon = 0.01$ to ensure that the log is well-defined.
120
+
121
+ # 3.3. Masked entropy model
122
+
123
+ Applying neural compression to TensoRF-VM enables us to use a wide range of different entropy models. In this section, we design a simple but effective entropy model that works well for TensoRF-VM compression, exploiting the spatial sparsity of the feature plane representation.
124
+
125
+ Theoretically, a learned entropy model, $P$ , should result in a close-to-optimal coding strategy, provided the model is flexible enough. In practice, we observed that a predominant portion of the learned latent code is zero, especially in the background. This observation might be attributed to our choice of initializing the latent codes as zero tensors and the fact that large parts of the feature planes are not used for rendering. Such sparsity is poorly captured using the standard entropy models used in neural image compression (Balle et al., 2016; 2018), leading to entropy coding inefficiencies.
126
+
127
+ To design a better entropy model, we construct a spike-and-slab prior, oftentimes used in Bayesian statistics (Mitchell & Beauchamp, 1988). To this end, we construct binary masks $\{\mathbf{M}_i\}_{i=1}^3$ into our entropy model $P$ . The model $P$ compresses grid features $\mathbf{P}_i^j$ only when $\mathbf{M}_i^j = 1$ , allowing selective compression of specific features and avoiding others. Those masks are learnable and can be treated as additional parameters of $P$ .
128
+
129
+ In more detail, we design $P$ to be a fully factorized probability distribution as in Balle et al. (2016) and Balle et al. (2018). Every grid location is independent and identically distributed by binary mixture, consisting of a nonparametric distribution $p_{\theta}(\cdot)$ with learnable $\theta$ , and a Dirac mass $\delta (\cdot)$ at zero. For each latent code $\hat{\mathbf{Z}}_i$ to be compressed, we establish a corresponding binary mask $\mathbf{M}_i$ that has the same spatial size and is shared across features channels. The conditional probability distribution $P$ (given the mask) is then factorized across spatial locations $j$ as:
130
+
131
+ $$
132
+ \begin{array}{l} P _ {\mathbf {M} _ {i}} (\hat {\mathbf {Z}} _ {i}) = \prod_ {j} p (\hat {\mathbf {Z}} _ {i} ^ {j} | \mathbf {M} _ {i} ^ {j}); \\ p \left(\hat {\mathbf {Z}} _ {i} ^ {j} \mid \mathbf {M} _ {i} ^ {j}\right) = \left\{ \begin{array}{l l} \delta \left(\hat {\mathbf {Z}} _ {i} ^ {j}\right) & \text {i f} \quad \mathbf {M} _ {i} ^ {j} = 0 \\ p _ {\theta} \left(\hat {\mathbf {Z}} _ {i} ^ {j}\right) & \text {i f} \quad \mathbf {M} _ {i} ^ {j} = 1. \end{array} \right. \tag {6} \\ \end{array}
133
+ $$
134
+
135
+ We stress that we could also entropy-code the masks under a hyperprior $p(\mathbf{M})$ , but found little benefit to do so in practice.
136
+
137
+ This construction implies that, if $\mathbf{M}_i^j = 0$ , then we designate $\hat{\mathbf{Z}}_i^j = 0$ . Thus, the input to the decoder $D$ can be calculated as $\hat{\mathbf{Z}}_i \odot \mathbf{M}_i$ , and the reconstructed planes are
138
+
139
+ $$
140
+ \hat {\mathbf {P}} _ {i} = D \left(\hat {\mathbf {Z}} _ {i} \odot \mathbf {M} _ {i}\right). \tag {7}
141
+ $$
142
+
143
+ However, since the masks $\mathbf{M}_i$ are binary, they cannot be learned directly. To address this, we turn to the Gumbel-Softmax trick (Jang et al., 2016; Yang et al., 2020) to fa
144
+
145
+ ciliate the learning of $\mathbf{M}_i$ . For each $\mathbf{M}_i$ , we define the binary probabilities denoted by $\pi_{\mathbf{M}_i}^0$ and $\pi_{\mathbf{M}_i}^1$ indicating $\mathbf{M}_i = 0/1$ , respectively. At training time, we sample $\mathbf{M}_i$ using the straight-through Gumbel-Softmax estimator (Bengio et al., 2013; Jang et al., 2016):
146
+
147
+ $$
148
+ \mathbf {M} _ {i} = \underset {j \in \{0, 1 \}} {\arg \max } \left(g _ {j} + \log \pi_ {\mathbf {M} _ {i}} ^ {j}\right) \tag {8}
149
+ $$
150
+
151
+ in which $g_{j}$ are i.i.d samples drawn from Gumbel(0,1). The straight-through Gumbel-Softmax estimator allows us to calculate the gradients of $\pi_{\mathbf{M}_i}^j$ . We then optimize the mask probabilities $\pi_{\mathbf{M}_i}^j$ following the rate-distortion loss:
152
+
153
+ $$
154
+ \begin{array}{l} \mathcal {L} = \mathcal {L} _ {\text {r e n d e r}} (\{\hat {\mathbf {P}} _ {i} \} _ {i = 1} ^ {3}) \\ + \sum_ {i = 1} ^ {3} \left(\left| \left| \left(\mathbf {P} _ {i} - \hat {\mathbf {P}} _ {i}\right) \odot \mathbf {W} _ {i} \right| \right| _ {2} ^ {2} - \lambda \log_ {2} P _ {\mathbf {M} _ {i}} (\hat {\mathbf {Z}} _ {i})\right), \tag {9} \\ \end{array}
155
+ $$
156
+
157
+ where $\mathbf{P}_i$ is calculated with Equation 7. In practice, we use an annealing softmax temperature $\tau$ that decays from 10 to 0.1 to calculate the softmax gradients.
158
+
159
+ # 4. Experiments
160
+
161
+ As follows, we empirically demonstrate that our proposed approach of learning a lightweight, per-scene neural compression model without an encoder outperforms existing approaches based on vector quantization and models trained on multiple scenes in terms of rate-distortion performance.
162
+
163
+ # 4.1. Experiment Setting
164
+
165
+ Datasets. We perform our experiments on 4 datasets:
166
+
167
+ - Synthetic-NeRF (Mildenhall et al., 2021): This dataset contains 8 scenes at resolution $800 \times 800$ rendered by Blender. Each scene contains 100 training views and 200 testing views.
168
+ - Synthetic-NSVF (Liu et al., 2020): This dataset also contains 8 rendered scenes at resolution $800 \times 800$ . However Synthetic-NSVF contains more complex geometry and lightning effects compared to Synthetic-NeRF.
169
+ - LLFF (Mildenhall et al., 2019): LLFF contains 8 real-world scenes made of forward-facing images with non-empty background. We use the resolution $1008 \times 756$ .
170
+ - Tanks and Temples (Knapitsch et al., 2017): We use 5 real-world scenes: Barn, Caterpillar, Family, Ignatus, Truck from the Tanks and Temples dataset to experiment with. They have the resolution of $1920 \times 1080$ .
171
+
172
+ In our compression experiments, we initially train a TensoRF-VM model for every scene within the datasets
173
+
174
+ listed above. We use the default TensoRF-VM 192 hyperparameters, as detailed in (Chen et al., 2022). Subsequently, we apply our proposed method to compress these trained models. All experimental procedures are executed using PyTorch (Paszke et al., 2019) on NVIDIA RTX A6000 GPUs.
175
+
176
+ Baselines. We compare our compression paradigm with: The original NeRF model with MLP (Mildenhall et al., 2021), the uncompressed TensoRF-CP and TensoRF-VM from Chen et al. (2022), two prior compression methods for TensoRF-VM based on pruning and vector quantization named VQ-TensoRF from Li et al. (2023a) and Re:TensoRF from Deng & Tartaglione (2023).
177
+
178
+ Hyperparameters. As discussed in Section 3.1, our decoder has two transposed convolutional layers with SELU activation (Klambauer et al., 2017). They both have a kernel size of 3, with stride 2 and padding 1. Thus, each layer has an upsampling factor of 2. Given a feature plane sized $C_i \times W_i \times H_i$ , we initialize the corresponding latent code $\mathbf{Z}_i$ to have the size of $C_{Z_i} \times W_i / 4 \times H_i / 4$ .
179
+
180
+ Having a decoder with more parameters will enhance the model's decoding ability while also increase its size. In light of this trade-off, we introduce two configurations: ECTensoRF-H (stands for Entropy Coded TensorRF - high compression) employs latent codes with 192 channels and a decoder with 96 hidden channels, while ECTensoRF-L (low compression) has 384 latent channels and 192 decoder hidden channels. Regarding the hyperparameter $\lambda$ , we experiment within the set $\{0.02, 0.01, 0.005, 0.001, 0.0005, 0.0002, 0.0001\}$ , with higher $\lambda$ signifying a more compact model.
181
+
182
+ We train our models for 30,000 iterations with Adam optimizer (Kingma & Ba, 2015). We use an initial learning rate of 0.02 for the latent codes and 0.001 for the networks, and apply an exponential learning rate decay.
183
+
184
+ # 4.2. Results
185
+
186
+ We first compare our results with the baselines quantitatively. We use the PSNR and SSIM (Wang et al., 2004) metrics to evaluate the reconstruction quality. The compression rate is determined by the compressed file size in MB.
187
+
188
+ Quantitative Results. Table 1 showcases quantitative results in both rate and distortion in the high-quality/low-distortion regime, where the reconstruction quality of all compressed TensoRF models are close to other uncompressed performances for novel view synthesis. This regime is particularly relevant in NeRF compression applications, where high-quality renderings for compressed models are typically expected.
189
+
190
+ Compared to the other two TensoRF compression baselines,
191
+
192
+ Table 1: Quantitative results comparing our method versus the baselines. PSNR is measured in dB, while the sizes are in MB. We choose the $\lambda$ to balance between the reconstruction quality and storage size.
193
+
194
+ <table><tr><td rowspan="2"></td><td rowspan="2">Methods</td><td colspan="3">Synthetic-NeRF</td><td colspan="3">Synthetic-NSVF</td><td colspan="3">LLFF</td><td colspan="3">Tanks and Temples</td></tr><tr><td>PSNR</td><td>SSIM</td><td>Size</td><td>PSNR</td><td>SSIM</td><td>Size</td><td>PSNR</td><td>SSIM</td><td>Size</td><td>PSNR</td><td>SSIM</td><td>Size</td></tr><tr><td rowspan="3">Uncom-pressed</td><td>NeRF</td><td>31.01</td><td>0.947</td><td>5.0</td><td>-</td><td>-</td><td>-</td><td>26.50</td><td>0.811</td><td>5.0</td><td>25.78</td><td>0.864</td><td>5.0</td></tr><tr><td>TensoRF-CP</td><td>31.56</td><td>0.949</td><td>3.9</td><td>34.48</td><td>0.971</td><td>3.9</td><td>-</td><td>-</td><td>-</td><td>27.59</td><td>0.897</td><td>3.9</td></tr><tr><td>TensoRF-VM</td><td>33.09</td><td>0.963</td><td>67.6</td><td>36.72</td><td>0.982</td><td>71.6</td><td>26.70</td><td>0.836</td><td>179.8</td><td>28.54</td><td>0.921</td><td>72.6</td></tr><tr><td rowspan="4">Com-pressed</td><td>VQ-TensoRF</td><td>32.86</td><td>0.960</td><td>3.6</td><td>36.16</td><td>0.980</td><td>4.1</td><td>26.46</td><td>0.824</td><td>8.8</td><td>28.20</td><td>0.913</td><td>3.3</td></tr><tr><td>Re:TensoRF</td><td>32.81</td><td>0.956</td><td>7.9</td><td>36.14</td><td>0.978</td><td>8.5</td><td>26.55</td><td>0.797</td><td>20.2</td><td>28.24</td><td>0.907</td><td>6.7</td></tr><tr><td>TC-TensoRF-L (ours)</td><td>32.93</td><td>0.961</td><td>3.4</td><td>36.34</td><td>0.980</td><td>4.0</td><td>26.44</td><td>0.826</td><td>4.9</td><td>28.42</td><td>0.915</td><td>2.9</td></tr><tr><td>TC-TensoRF-H (ours)</td><td>32.31</td><td>0.956</td><td>1.6</td><td>35.33</td><td>0.974</td><td>1.6</td><td>25.72</td><td>0.786</td><td>1.7</td><td>28.08</td><td>0.907</td><td>1.6</td></tr></table>
195
+
196
+ Table 2: Relative improvement of our method versus VQ-TensoRF. BD-PSNR and BD-rate measure the average difference in PSNR and bitrate between the two methods.
197
+
198
+ <table><tr><td></td><td>Synthetic-NeRF</td><td>Synthetic-NSVF</td><td>Tanks and Temples</td></tr><tr><td>BD-PSNR</td><td>0.279 dB</td><td>0.289 dB</td><td>0.344 dB</td></tr><tr><td>BD-Rate</td><td>28.827 %</td><td>21.104 %</td><td>16.717 %</td></tr></table>
199
+
200
+ VQ-TensoRF and Re:TensoRF, our variant ECTensoRF-L shows superior reconstruction performance in this regime in terms of both the PSNR and SSIM metrics while simultaneously maintaining a reduced file size across 3 datasets: Synthetic-NeRF, Synthetic-NSVF, and Tanks & Temples. In the case of the LLFF dataset, we are slightly behind VQ-TensoRF and Re:TensoRF in PSNR. Despite this, our achieved SSIM values surpass both baselines and, remarkably, the size of our compressed files is just about half of VQ-TensoRF and a mere quarter when compared to Re:TensoRF. For a smaller number of channels, our ECTensoRF-H is able to compress the model sizes to less than 2MB while maintaining a decent reconstruction quality. Notably, our ECTensoRF-H has a similar SSIM as Re:TensoRF on Synthetic-NeRF and Tanks&Temples.
201
+
202
+ Qualitative Results. We compare rendered images from the Synthetic-NeRF dataset, using VQ-TensoRF and our compression method for both configurations: ECTensoRF-L and ECTensoRF-H in Figure 3. Visually, there is minimal disparity between the uncompressed and compressed TensoRF models. We further show more qualitative results for the other datasets in the Appendix.
203
+
204
+ Rate-distortion performance. The rate-distortion curve is widely used in neural compression to compare the compression performance across different compression level. Here we analyze the rate-distortion curve of our ECTensoRF-L with various $\lambda$ values versus VQ-TensoRF with various codebook size. For the VQ-TensoRF evaluations, we employed the officially released code and utilized the same pre-trained TensoRF models for consistency.
205
+
206
+ ![](images/4c81c3023842308852f154aa5a49529a6095e8048e3374ae7491f2f0f6653fc5.jpg)
207
+
208
+ ![](images/69492c9cb6cbdfc48cf459f01dc4089ed105cf6ad5f3e36db63737e309784c7a.jpg)
209
+ Figure 2: Comparison of rate-distortion curves between our proposed methods and the baseline VQ-TensoRF on the Synthetic-NeRF dataset. The upper figure illustrates PSNR against file size, and the lower figure showcases SSIM in relation to file size.
210
+
211
+ ![](images/eeea437766b3bdc7b01c725dda44813974b503a41cdef5dce6a1af70d5479b77.jpg)
212
+ Figure 3: Qualitative results on Chair and Mic scenes from the Synthetic-NeRF dataset. From left to right: uncompressed, VQ-TensorF (average size 3.6 MB), ECTensoRF-L (3.4 MB), ECTensoRF-H (1.6 MB). Our decompressed renderings are barely distinguishable in quality from both uncompressed and VQ-compressed versions at a significantly reduced file size.
213
+ Figure 2 shows that our ECTensoRF-L outpaces VQ-TensoRF across various levels of compression in Synthetic-NeRF dataset with both PSNR and SSIM metrics. Rate-distortion curves for other datasets can be found in the Appendix A.2.
214
+
215
+ Moreover, Table 2 shows the relative improvement of our method over VQ-TensoRF using Bjontegaard Delta (BD) BD-PSNR and BD-rate metrics (Bjontegaard, 2001), highlighting that our model achieves better PSNR and bit-rate across various compression levels.
216
+
217
+ Training and rendering time. Training an uncompressed TensoRF model for a scene from the Synthetic-NeRF dataset takes around 15 minutes on an NVIDIA A6000 GPU. Running on top of that, our compression method takes an additional 40 minutes. Our framework is slower than the baseline VQ-TensoRF, which runs in 7 minutes on the same hardware. Regarding rendering, our approach adds a negligible overhead of roughly 2 seconds for the decompression of parameters. Once decompressed, the rendering procedure is the same as TensoRF.
218
+
219
+ Compression details. The average storage size breakdown of our model on the Synthetic-NeRF dataset (with the configuration from Table 1) is provided in the Table 3. For the feature planes, we compresses them with the learned entropy model. All the other components (the renderer MLP, decoder, density/appearance vectors, learned masks, entropy
220
+
221
+ Table 3: Storage size breakdown.
222
+
223
+ <table><tr><td>Component</td><td>Size (MB)</td></tr><tr><td>Feature planes</td><td>1.657</td></tr><tr><td>Decoder</td><td>1.380</td></tr><tr><td>Other components</td><td>0.366</td></tr><tr><td>Total</td><td>3.403</td></tr></table>
224
+
225
+ bottleneck parameters and model config) are packed into a single file and compressed with LZ77 (ziv, 1977).
226
+
227
+ # 5. Ablation Studies
228
+
229
+ We conduct experiments to verify our design choices. We test on the Synthetic-NeRF datasets, with our ECTensoRF-L architecture.
230
+
231
+ # 5.1. Advantages of per-scene optimization
232
+
233
+ As outlined in Section 3.1, our compression methodology is optimized on a per-scene basis. However, this raises the question: how is the performance of traditional nonlinear transform coding on TensoRF compression, even on a small-scale dataset? To address this, we conduct a comparative analysis. We compress the TensoRF model by first training a compression network using an encoder-decoder architecture, similar to traditional nonlinear transform cod
234
+
235
+ ![](images/7d960dde89e51fc4d389fb4272b21f941692059e575127a2ca574b9f99a2041d.jpg)
236
+ Figure 4: Rate-distortion comparison between traditional nonlinear transform coding (green), trained across 7 scenes, and our per-scene compression methods (orange, blue).
237
+
238
+ ing. Specifically, we train the compression network on seven scenes from the Synthetic-NeRF dataset and tested the trained model on the remaining scene (Lego). We compare this approach with our per-scene optimized model.
239
+
240
+ Figure 4 shows the results of this experiment. Compared to per-scene training, pre-trained NTC suffers from inferior reconstruction quality. More specifically, the maximum PSNR that the pre-trained NTC can achieve is only $24.52\mathrm{dB}$ , which is $12.03\mathrm{dB}$ lower than the uncompressed PSNR value (36.55 dB) and also much lower than the PSNR values of per-scene trained models. However, we note that the major advantage of pre-trained NTC is a much faster compression time. Using a pre-trained NTC model also avoids the need to transmit the entropy model and the decoder, as we assume that the receiver always has access to them, which is similar to the image compression setting.
241
+
242
+ # 5.2. Ablation on other design choices
243
+
244
+ Using the encoder We first show the sub-optimal performance of ECTensoRF-L compression with an encoder. As discussed in Section 3.1, using an encoder leads to an irreducible amortization gap in optimization, and the resulting compression performance is worse, as shown in Figure 5.
245
+
246
+ Training without Importance-Weighted Loss. We examine the rate-distortion curves of ECTensoRF-L, trained both with and without importance weight, as depicted in Figure 5. At an identical PSNR of $32.98\mathrm{dB}$ , employing importance weight in training our model helps reduce the file size from $4.59\mathrm{MB}$ to $3.92\mathrm{MB}$ .
247
+
248
+ The Effect of the Masked Entropy Model. To demonstrate the efficacy of our masked entropy model, we undertook a comparative analysis between the compression
249
+
250
+ ![](images/a0beee516f613e8bde7d498a0803ed3e80f282dcc90c29be1a192a8821f897ff.jpg)
251
+
252
+ ![](images/577d29744ae7dd0d49fc7eedfdfb3a8ad454099e2524bece7b35411d79594e7a.jpg)
253
+ Figure 5: Ablation studies. Top: rate-distortion comparison of our approach against a version with encoder, trained on a single scene. Bottom: comparisons between model versions with factorized prior and without importance weight.
254
+
255
+ performance of ECTensoRF-L using the conventional factorized prior (Balle et al., 2016; 2018) and our masked model. The results related to rate distortion curves can be found in the bottom plot of Figure 5.
256
+
257
+ It's noteworthy that, due to the additional overhead introduced by sending the masks, our results lag slightly behind the factorized prior in a low-rate setting. Yet, in medium to high-rate regimes, our prior emerges superior compared to the traditional factorized prior. To illustrate, for a PSNR value of 32.98 dB, the compressed file with the factorized prior occupies 4.26 MB. In contrast, our method employing the proposed masked entropy model results in a reduced file size of 3.92 MB.
258
+
259
+ To further understand the behavior of our masked entropy model, we visualize the masks learned for the Chair and Mic scene from Synthetic-NeRF dataset in Figure 6. We can observe that the masks resemble the rendering objects when viewed from different angles, and they inherently ignore the background. This behavior is similar to the pruning
260
+
261
+ ![](images/fc37bbc205d0760ef9d89758086d6f246936e0972cb7b0fd82a316df9eab5521.jpg)
262
+ Figure 6: Ablation studies. We show the sparsity masks of our entropy model learned on the Chair and Mic scene.
263
+
264
+ strategies employed in prior grid-based NeRF compression works (Li et al., 2023a;b; Deng & Tartaglione, 2023).
265
+
266
+ More experimental results. We further conduct experiments on different latents initialization and end-to-end training in the Appendix A.2.
267
+
268
+ # 6. Related Works and Discussion
269
+
270
+ Grid-based NeRF compression. Since storage cost is a significant challenge of grid-based NeRF, several methods were proposed to solve this problem. Li et al. (2023a) introduces a three-stage approach, integrating voxel pruning and vector quantization (Gray, 1984) through a learnable codebook. Similarly, Re:NeRF (Deng & Tartaglione, 2023) employs voxel pruning, but adopts a strategy of sequentially removing and reintegrating parameters to prevent a significant drop in performance. Meanwhile, Takikawa et al. (2022) adopts the codebook idea from Instant-NGP (Müller et al., 2022), but substitutes hash-based encoding with a learned mapping that associates grid positions to corresponding codebook indices. However this approach requires considerable training memory. Li et al. (2023b) applies downsampling to the voxels and employs a network to enhance render quality. Our method shares some similarity to Li et al. (2023b), but we learn the downsampled latent codes with a novel entropy model to effectively compress them. Additionally, while our masked factorized prior also resembles the pruning mechanism used in previous works, our method differentiates itself by adaptively learning the masks instead of relying on fixed thresholds.
271
+
272
+ Neural compression for NeRF. Applying neural compression to NeRF is a relatively young field. Bird et al. (2021) learns an entropy model to compress the MLP-based NeRF (Mildenhall et al., 2021) network weights, based on
273
+
274
+ the prior model compression work of Oktay et al. (2019). In contrast, our work focuses on compressing the feature grids of grid-based NeRF. We additionally improve the conventional compression procedure and propose a novel entropy model. Concurrent to our work, Li et al. (2024) also applies neural compression to TensoRF by leveraging a pretrained image compression network.
275
+
276
+ Discussion. Throughout this paper, our emphasis has been on applying neural compression techniques specifically to TensoRF. Nonetheless, our method has the potential to be applied to other grid-based NeRF methods beyond just TensoRF, such as Triplanes (Chan et al., 2022; Fridovich-Keil et al., 2023), Factor Fields ( Chen et al., 2023) or DVGO ( Sun et al., 2022). Taking DVGO as an example, we can learn a 4D latent code and have an entropy model to model its probability density. Then a decoder may decode this 4D latent code to render the scene.
277
+
278
+ # 7. Conclusion
279
+
280
+ In this study, we present a novel approach to applying neural compression to the TensoRF model, a prominent grid-based NeRF method. Our approach adapts traditional neural compression techniques, commonly used in image and video compression, to NeRF models. We develop an efficient per-scene optimization scheme and propose various designs, such as importance-weighted feature reconstruction and a masked entropy model. Our experiments demonstrate that we can significantly reduce storage requirements of a NeRF model with only a minimal compromise in rendering quality, and outperform previous NeRF compression baselines. More importantly, our compression method only adds minimal overhead to the rendering process.
281
+
282
+ Limitation and future work. One limitation of our neural compression approach is the longer training time compared to the baseline VQ-TensoRF, as mentioned in Section 4. Additionally, the final compressed model still includes the cost of transmitting the decoder. Future work could focus on reducing compression time, learning a network compression model (Oktay et al., 2019; Girish et al., 2022) to compress the decoder network, and applying our method to other NeRF architectures.
283
+
284
+ # Impact Statement
285
+
286
+ Neural compression is a collection of methods that advance data compression with end-to-end learning approaches. Biased training data may influence how models reconstruct data and may lead to misrepresentations, e.g., of individuals, especially at low bitrates.
287
+
288
+ # Acknowledgements
289
+
290
+ The authors acknowledge support from the National Science Foundation (NSF) under an NSF CAREER Award (2047418), award numbers 2003237 and 2007719, by the Department of Energy under grant DE-SC0022331, the IARPA WRIVA program, and by gifts from Qualcomm and Disney. We also thank Justus Will for his meticulous proofreading and valuable suggestions for this paper.
291
+
292
+ # References
293
+
294
+ A universal algorithm for sequential data compression. IEEE Transactions on information theory, 23(3):337-343, 1977.
295
+ Balle, J., Laparra, V., and Simoncelli, E. P. End-to-end optimization of nonlinear transform codes for perceptual quality. In 2016 Picture Coding Symposium (PCS), pp. 1-5. IEEE, 2016.
296
+ Balle, J., Minnen, D., Singh, S., Hwang, S. J., and Johnston, N. Variational image compression with a scale hyperprior. In International Conference on Learning Representations, 2018.
297
+ Balle, J., Chou, P. A., Minnen, D., Singh, S., Johnston, N., Agustsson, E., Hwang, S. J., and Toderici, G. Nonlinear transform coding. IEEE Journal of Selected Topics in Signal Processing, 15(2):339-353, 2020.
298
+ Barron, J. T., Mildenhall, B., Tancik, M., Hedman, P., Martin-Brualla, R., and Srinivasan, P. P. Mip-nerf: A multiscale representation for anti-aliasing neural radiance fields. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 5855-5864, 2021.
299
+ Bengio, Y., Léonard, N., and Courville, A. Estimating or propagating gradients through stochastic neurons for conditional computation. arXiv preprint arXiv:1308.3432, 2013.
300
+ Bird, T., Balle, J., Singh, S., and Chou, P. A. 3d scene compression through entropy penalized neural representation functions. In 2021 Picture Coding Symposium (PCS), pp. 1-5. IEEE, 2021.
301
+ Bjontegaard, G. Calculation of average psnr differences between rd-curves. ITU SG16 Doc. VCEG-M33, 2001.
302
+ Campos, J., Meierhans, S., Djelouah, A., and Schroers, C. Content adaptive optimization for neural image compression. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops, pp. 0-0, 2019.
303
+ Chan, E. R., Lin, C. Z., Chan, M. A., Nagano, K., Pan, B., De Mello, S., Gallo, O., Guibas, L. J., Tremblay, J.,
304
+
305
+ Khamis, S., et al. Efficient geometry-aware 3d generative adversarial networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16123-16133, 2022.
306
+ Chen, A., Xu, Z., Geiger, A., Yu, J., and Su, H. Tensorf: Tensorial radiance fields. In European Conference on Computer Vision, pp. 333-350. Springer, 2022.
307
+ Chen, A., Xu, Z., Wei, X., Tang, S., Su, H., and Geiger, A. Factor fields: A unified framework for neural fields and beyond. arXiv preprint arXiv:2302.01226, 2023.
308
+ Cheng, Z., Sun, H., Takeuchi, M., and Katto, J. Learned image compression with discretized gaussian mixture likelihoods and attention modules. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
309
+ Cremer, C., Li, X., and Duvenaud, D. Inference suboptimality in variational autoencoders. In International Conference on Machine Learning, pp. 1078-1086. PMLR, 2018.
310
+ Deitke, M., Schwenk, D., Salvador, J., Weihs, L., Michel, O., VanderBilt, E., Schmidt, L., Ehsani, K., Kembhavi, A., and Farhadi, A. Objverse: A universe of annotated 3d objects. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13142-13153, 2023.
311
+ Deitke, M., Liu, R., Wallingford, M., Ngo, H., Michel, O., Kusupati, A., Fan, A., Laforte, C., Voleti, V., Gadre, S. Y., et al. Objverse-xl: A universe of $10\mathrm{m} + 3\mathrm{d}$ objects. Advances in Neural Information Processing Systems, 36, 2024.
312
+ Deng, C. L. and Tartaglione, E. Compressing explicit voxel grid representations: fast nerfs become also small. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1236-1245, 2023.
313
+ Fridovich-Keil, S., Yu, A., Tancik, M., Chen, Q., Recht, B., and Kanazawa, A. Plenoxels: Radiance fields without neural networks. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5501-5510, 2022.
314
+ Fridovich-Keil, S., Meanti, G., Warburg, F. R., Recht, B., and Kanazawa, A. K-planes: Explicit radiance fields in space, time, and appearance. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12479-12488, 2023.
315
+ Gershman, S. and Goodman, N. Amortized inference in probabilistic reasoning. In Proceedings of the annual meeting of the cognitive science society, volume 36, 2014.
316
+
317
+ Girish, S., Gupta, K., Singh, S., and Shrivastava, A. Lilnetx: Lightweight networks with extreme model compression and structured sparsification. In The Eleventh International Conference on Learning Representations, 2022.
318
+ Gray, R. Vector quantization. IEEE Assp Magazine, 1(2): 4-29, 1984.
319
+ Jang, E., Gu, S., and Poole, B. Categorical reparameterization with gumbel-softmax. In International Conference on Learning Representations, 2016.
320
+ Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
321
+ Kingma, D. P. and Welling, M. Auto-encoding variational bayes. In International Conference on Learning Representations, 2014.
322
+ Klambauer, G., Unterthiner, T., Mayr, A., and Hochreiter, S. Self-normalizing neural networks. Advances in neural information processing systems, 30, 2017.
323
+ Knapitsch, A., Park, J., Zhou, Q.-Y., and Koltun, V. Tanks and temples: Benchmarking large-scale scene reconstruction. ACM Transactions on Graphics (ToG), 36(4):1-13, 2017.
324
+ Kolda, T. G. and Bader, B. W. Tensor decompositions and applications. SIAM review, 51(3):455-500, 2009.
325
+ Li, L., Shen, Z., Wang, Z., Shen, L., and Bo, L. Compressing volumetric radiance fields to 1 mb. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4222-4231, 2023a.
326
+ Li, L., Wang, Z., Shen, Z., Shen, L., and Tan, P. Compact real-time radiance fields with neural codebook. In 2023 IEEE International Conference on Multimedia and Expo (ICME), pp. 2189-2194. IEEE, 2023b.
327
+ Li, S., Li, H., Liao, Y., and Yu, L. Nerfcodec: Neural feature compression meets neural radiance fields for memory-efficient scene representation. arXiv preprint arXiv:2404.02185, 2024.
328
+ Liu, L., Gu, J., Zaw Lin, K., Chua, T.-S., and Theobalt, C. Neural sparse voxel fields. Advances in Neural Information Processing Systems, 33:15651-15663, 2020.
329
+ Marino, J., Yue, Y., and Mandt, S. Iterative amortized inference. In International Conference on Machine Learning, pp. 3403-3412. PMLR, 2018.
330
+ Matsubara, Y., Yang, R., Levorato, M., and Mandt, S. Supervised compression for resource-constrained edge computing systems. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 2685-2695, 2022.
331
+
332
+ Mildenhall, B., Srinivasan, P. P., Ortiz-Cayon, R., Kalantari, N. K., Ramamoorthi, R., Ng, R., and Kar, A. Local light field fusion: Practical view synthesis with prescriptive sampling guidelines. ACM Transactions on Graphics (TOG), 38(4):1-14, 2019.
333
+ Mildenhall, B., Srinivasan, P. P., Tancik, M., Barron, J. T., Ramamoorthi, R., and Ng, R. Nerf: Representing scenes as neural radiance fields for view synthesis. Communications of the ACM, 65(1):99-106, 2021.
334
+ Minnen, D., Balle, J., and Toderici, G. D. Joint autoregressive and hierarchical priors for learned image compression. Advances in neural information processing systems, 31, 2018.
335
+ Mitchell, T. J. and Beauchamp, J. J. Bayesian variable selection in linear regression. Journal of the american statistical association, 83(404):1023-1032, 1988.
336
+ Müller, T., Evans, A., Schied, C., and Keller, A. Instant neural graphics primitives with a multiresolution hash encoding. ACM Transactions on Graphics (ToG), 41(4): 1-15, 2022.
337
+ Oktay, D., Balle, J., Singh, S., and Shrivastava, A. Scalable model compression by entropy penalized reparameterization. In International Conference on Learning Representations, 2019.
338
+ Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
339
+ Sun, C., Sun, M., and Chen, H.-T. Direct voxel grid optimization: Super-fast convergence for radiance fields reconstruction. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 5459-5469, 2022.
340
+ Takikawa, T., Evans, A., Tremblay, J., Müller, T., McGuire, M., Jacobson, A., and Fidler, S. Variable bitrate neural fields. In ACM SIGGRAPH 2022 Conference Proceedings, pp. 1-9, 2022.
341
+ Wallace, G. K. The JPEG still picture compression standard. Communications of the ACM, 34(4):30-44, 1991.
342
+ Wang, Z., Bovik, A. C., Sheikh, H. R., and Simoncelli, E. P. Image quality assessment: from error visibility to structural similarity. IEEE transactions on image processing, 13(4):600-612, 2004.
343
+ Yang, R. and Mandt, S. Lossy image compression with conditional diffusion models. Advances in Neural Information Processing Systems, 36, 2023a.
344
+
345
+ Yang, R., Yang, Y., Marino, J., and Mandt, S. Insights from generative modeling for neural video compression. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023a.
346
+ Yang, Y. and Mandt, S. Computationally-efficient neural image compression with shallow decoders. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 530-540, 2023b.
347
+ Yang, Y., Bamler, R., and Mandt, S. Improving inference for neural image compression. Advances in Neural Information Processing Systems, 33:573-584, 2020.
348
+ Yang, Y., Mandt, S., Theis, L., et al. An introduction to neural data compression. Foundations and Trends® in Computer Graphics and Vision, 15(2):113-200, 2023b.
349
+ Yu, A., Li, R., Tancik, M., Li, H., Ng, R., and Kanazawa, A. Plenoctrees for real-time rendering of neural radiance fields. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 5752-5761, 2021.
350
+ Zhang, K., Riegler, G., Snavely, N., and Koltun, V. Nerf++: Analyzing and improving neural radiance fields. arXiv preprint arXiv:2010.07492, 2020.
351
+
352
+ # A. Appendix
353
+
354
+ # A.1. Algorithm
355
+
356
+ Algorithm 1 TensoRF-VM compression
357
+ Input: Pretrained TensoRF-VM model
358
+ Output: Compressed TensoRF-VM model
359
+ Calculate $\{\mathbf{W}_i\}_{i=1}^3$ using Eq 4 and 5
360
+ Initialize $\{\mathbf{Z}_i\}_{i=1}^3$ as 0-tensors
361
+ Initialize decoder $D$ and entropy model $P$ with masks parameters $\{\pi_{\mathbf{M}_i}^0\}_{i=1}^3$ and $\{\pi_{\mathbf{M}_i}^1\}_{i=1}^3$
362
+ while not converged do
363
+ Sample $\{\mathbf{M}_i\}_{i=1}^3$ using Gumbel-Softmax as in Eq 8
364
+ Reconstruct $\{\hat{\mathbf{P}}_i\}_{i=1}^3$ by Eq 7
365
+ Render the scene with $\{\hat{\mathbf{P}}_i\}_{i=1}^3$
366
+ Calculate the loss in Eq 9 and update the model
367
+ end while
368
+
369
+ # A.2. More experimental results
370
+
371
+ # A.2.1. RATE-DISTORTION COMPARISON ON OTHER DATASETS
372
+
373
+ We further compare the rate-distortion curves of ECTensoRF and the baseline VQ-TensoRF on the Synthetic-NSVF, LLFF and Tanks&Temples datasets in Figure 7, 8 and 9.
374
+
375
+ ![](images/129ab238e80814536af9b0615ad8e0501d8de8c4bc21439bcd558e50ee53f83c.jpg)
376
+ Figure 7: Comparison on Synthetic-NSVF dataset.
377
+
378
+ ![](images/1a9dfeedecd3403058734561e7f65e6432c300f9756ee286e686c549834c796a.jpg)
379
+
380
+ # A.2.2. ADDITIONAL EXPERIMENTS
381
+
382
+ Latent initialization. We compare the performance of Gaussian initialization and Zero initialization of the latents code. The results are shown in Table 4.
383
+
384
+ ![](images/e522092b5cea06f9a51ce06d3f2acdd2a6174f06fe44462b5ffcce04edf40349.jpg)
385
+ Figure 8: Comparison on LLFF dataset.
386
+
387
+ ![](images/c1f3288bdefbc2b56f25e9fe7d51c87e2f3cde80cf5da88d840a3894e57c6f13.jpg)
388
+
389
+ ![](images/3b5382bd1c120babec3a93ad74a523805c971cf43bc7e766e9ead73830ceab91.jpg)
390
+ Figure 9: Comparison on Tanks and Temples dataset.
391
+
392
+ ![](images/876f2c8e4b0de29149094e1ca29fb9468429057d357fb1a938a7a9038d571863.jpg)
393
+
394
+ Table 4: Comparison of Zero Initialization vs. Gaussian Initialization
395
+
396
+ <table><tr><td>λ Values</td><td colspan="2">Zero Initialization</td><td colspan="2">Gaussian Initialization</td></tr><tr><td></td><td>PSNR (dB)</td><td>Size (MB)</td><td>PSNR (dB)</td><td>Size (MB)</td></tr><tr><td>2e-2</td><td>31.31</td><td>1.86</td><td>31.13</td><td>1.85</td></tr><tr><td>1e-2</td><td>31.80</td><td>1.99</td><td>31.75</td><td>1.99</td></tr><tr><td>5e-3</td><td>32.25</td><td>2.20</td><td>32.26</td><td>2.20</td></tr><tr><td>1e-3</td><td>32.83</td><td>3.00</td><td>32.83</td><td>3.01</td></tr><tr><td>5e-4</td><td>32.93</td><td>3.40</td><td>32.92</td><td>3.42</td></tr><tr><td>2e-4</td><td>32.98</td><td>3.92</td><td>32.98</td><td>3.94</td></tr><tr><td>1e-4</td><td>33.00</td><td>4.24</td><td>32.99</td><td>4.26</td></tr></table>
397
+
398
+ End-to-end training. We conduct experiments to compare the performance of our two-stage training (by first using a pre-trained TensoRF model, and train the compression model) and a single stage (by training the compression model from scratch). We show the results in Table 5.
399
+
400
+ Table 5: Comparison of End-to-End Training vs. Two Stages Training
401
+
402
+ <table><tr><td>λ Values</td><td colspan="2">End-to-End Training</td><td colspan="2">Two Stages Training</td></tr><tr><td></td><td>PSNR (dB)</td><td>Size (MB)</td><td>PSNR (dB)</td><td>Size (MB)</td></tr><tr><td>2e-2</td><td>25.86</td><td>1.69</td><td>31.31</td><td>1.86</td></tr><tr><td>1e-2</td><td>28.30</td><td>1.71</td><td>31.80</td><td>1.99</td></tr><tr><td>5e-3</td><td>30.05</td><td>1.81</td><td>32.25</td><td>2.20</td></tr><tr><td>1e-3</td><td>31.29</td><td>2.39</td><td>32.83</td><td>3.00</td></tr><tr><td>5e-4</td><td>31.53</td><td>2.57</td><td>32.93</td><td>3.40</td></tr><tr><td>2e-4</td><td>31.86</td><td>2.69</td><td>32.98</td><td>3.92</td></tr><tr><td>1e-4</td><td>31.80</td><td>2.95</td><td>33.00</td><td>4.24</td></tr></table>
403
+
404
+ Hyperprior model. We also perform experiments using a version of hyperprior model (Ballé et al., 2018) with our masking mechanism. More specifically, we apply masking on both the hyper-latents and latents. Both type of latents are directly optimized without using amortized inference. The hyper decoder has two transposed convolutional layers with SELU activation. We show the result on NeRF-Synthetic on Table 6.
405
+
406
+ Table 6: Comparison of ECTensorF-L with and without Hyperprior
407
+
408
+ <table><tr><td>λ Values</td><td colspan="2">ECTensorF-L + Hyperprior</td><td colspan="2">ECTensorF-L</td></tr><tr><td></td><td>PSNR (dB)</td><td>Size (MB)</td><td>PSNR (dB)</td><td>Size (MB)</td></tr><tr><td>2e-2</td><td>31.31</td><td>1.92</td><td>31.31</td><td>1.86</td></tr><tr><td>1e-2</td><td>31.92</td><td>2.04</td><td>31.80</td><td>1.99</td></tr><tr><td>5e-3</td><td>32.35</td><td>2.25</td><td>32.25</td><td>2.20</td></tr><tr><td>1e-3</td><td>32.85</td><td>2.97</td><td>32.83</td><td>3.00</td></tr><tr><td>5e-4</td><td>32.93</td><td>3.32</td><td>32.93</td><td>3.40</td></tr><tr><td>2e-4</td><td>32.98</td><td>3.72</td><td>32.98</td><td>3.92</td></tr><tr><td>1e-4</td><td>33.00</td><td>3.95</td><td>33.00</td><td>4.24</td></tr></table>
409
+
410
+ At lower bit rates, the hyperprior is slightly worse than the ECTensoRF-L baseline because of the irreducible cost to transmit the hyper decoder and hyper entropy model. At higher bit rates, the compression performance with the hyperprior method is better than using only a single entropy model, which aligns with prior observations in image compression (Ballé et al., 2018).
411
+
412
+ Preliminary results for Factor Fields. We show the potential of applying our method to other grid-based NeRF architectures. We choose Factor Fields (Chen et al., 2023) to experiment with. We show the result of our method for Factor Fields in Table 7. Note that for Factor Fields, we compress the basis 4D tensors and do not compress the coefficient 4D tensors.
413
+
414
+ Table 7: Factor Fields experiments
415
+
416
+ <table><tr><td>λ Values</td><td>PSNR (dB)</td><td>Rate (MB)</td></tr><tr><td>1e-3</td><td>26.19</td><td>1.12</td></tr><tr><td>1e-4</td><td>29.67</td><td>1.23</td></tr><tr><td>1e-5</td><td>31.35</td><td>1.82</td></tr><tr><td>Uncompressed</td><td>33.09</td><td>18.89</td></tr></table>
417
+
418
+ # A.2.3. MORE QUALITATIVE RESULTS
419
+
420
+ We show qualitative results on all scenes from Synthetic-NeRF, Synthetic-NSVF, LLFF and Tanks&Temples datasets in Figure 10, 11, 12 and 13.
421
+
422
+ ![](images/01f640cf29aff104335801a53d7dd11b543c417e72cab98c7a7d08afdc71e13e.jpg)
423
+ Figure 10: Qualitative results on Tanks and Temples dataset. From left to right: TensoRF, ECTensoRF-L, ECTensoRF-H, ECTensoRF-L difference and ECTensoRF-H difference.
424
+
425
+ ![](images/b4cc3e081876a60ad14daeabc896f15beb8d36e63451fa08bed15e1c2e5b01b4.jpg)
426
+ Figure 11: Qualitative results on Synthetic-NeRF dataset. From left to right: TensoRF, ECTensoRF-L, ECTensoRF-H, ECTensoRF-L difference and ECTensoRF-H difference.
427
+
428
+ ![](images/3072ecc7e61a1af72ba2298889531a937561e7577e9fc1ea19a322b2c5de0a60.jpg)
429
+ Figure 12: Qualitative results on Synthetic-NSVF dataset. From left to right: TensoRF, ECTensoRF-L, ECTensoRF-H, ECTensoRF-L difference and ECTensoRF-H difference.
430
+
431
+ ![](images/99c34d2cce2d386266e012c3216b1cba967539df94130ab7ddc7d59ebcb8d49c.jpg)
432
+
433
+ ![](images/c67f9e6d4f4d40c965ec9c69b6d0d47bff86171531d2fd5ae621217ae84dfb41.jpg)
434
+
435
+ ![](images/34e1cab0d0bf0ac446f1c8b2854813fa212087c9f4cf0695a07399df456a181d.jpg)
436
+
437
+ ![](images/5a1175cf87a5188a84e8fe474451997ff4580d4d3934b230e1ae9b58e260e9fd.jpg)
438
+
439
+ ![](images/de15f2c901b02f38df11cd61c3cc9bda0bb221939c9c5f3e68567a0536f3932e.jpg)
440
+
441
+ ![](images/b090c06a487a11f8d23fef6185ee1a192cd666625ecc11400c3a94fe0187e9ff.jpg)
442
+
443
+ ![](images/b9dd7fa39d5857d72b399832157af1a2c815e60357242f1b2cf2756a70b6cb3d.jpg)
444
+
445
+ ![](images/d755e9c7294a5d653cdf93ecb5637aadebc77971fde6db72e9db4db8aa61cffd.jpg)
446
+
447
+ ![](images/ca8e140e41d591721f0f62645a2123638e60b9b16629379a30e1c2992f6df345.jpg)
448
+
449
+ ![](images/3cad9eec148b8a56d2e02288572f1055c19384d05f3a7dbe8dfd25014a9a81a0.jpg)
450
+
451
+ ![](images/fb85833fd196e70a5d1c981aafa5eeaf7aeb48eca045a4f77c8383ba6113d7da.jpg)
452
+
453
+ ![](images/879dad31b8c36f9702f03ab1bfa78ae6ac05b1e2743e511663b12cffbcd0f7d4.jpg)
454
+
455
+ ![](images/3daa1be53c2f42981b45b5f1305d39be943c4e11dbf350db395eb593f30df771.jpg)
456
+
457
+ ![](images/8cdfae58cc2cfd64090b3f7e94d580127d14151f693eacdefcca023333a6801e.jpg)
458
+
459
+ ![](images/3132846d08b84775744125880f18c66507e213ec4d76666f8bbc43b93cdfd15a.jpg)
460
+
461
+ ![](images/8a6935c9e0d8c5cdec4f8eeff04370a8a50905c087ed72624e0f83122c07aa89.jpg)
462
+
463
+ ![](images/17a938027b651d80c86b93671b24f17a93dd5fae9d14bf0ed562f158f3cbb9d0.jpg)
464
+
465
+ ![](images/5deb7af2ba7a73ddb561db4b7c57297e0cf819f364cded3e74d26c11c535535f.jpg)
466
+
467
+ ![](images/e1b7b65c706a6c55a15fb5282776200416a2b462c100dad1e079e096248c3c9a.jpg)
468
+
469
+ ![](images/cb585d0b610ca181a78276d3c7e74c241261e5dbee717a9f02deff603d6b8cf4.jpg)
470
+
471
+ ![](images/7715eea4f2711eee52a6e93b7495c4b1ae37dd941e013145fe6ebd4b9350a5dd.jpg)
472
+
473
+ ![](images/e84eceabc3de9352b0ec85dfef1a060dcdaba9d912098379b30b1e0943cb324d.jpg)
474
+
475
+ ![](images/f86838830c4d595211a59bf28e95c88f1320790bf0459c534bfffb11c21ed105.jpg)
476
+
477
+ ![](images/43d3c69263d9e36525efe26165f964577ccf6b4badca7122619c5de56718676f.jpg)
478
+
479
+ ![](images/328831cbaea4e1fa9cdd34f41c14c6eb2652077cd4fe5e492e04d1e1dc344be2.jpg)
480
+
481
+ ![](images/42b34ca96dfe2d6a407fb666bd4e2f5ff21601a4037042040c0dcb3e577bf9bc.jpg)
482
+
483
+ ![](images/b8c2fd6f5fedd218b88df447f30b383c1d6edc776582c4a6c936db119c6e44db.jpg)
484
+
485
+ ![](images/57a5bd9e23f6b4cd65e2b158ce7162e4a7a43b21b484d4bc8e1e2615e351aa55.jpg)
486
+
487
+ ![](images/1b709960a8515af35ee12d419cae7c7eff9e9af4d357c6bd9b8c5015f2f8cb83.jpg)
488
+
489
+ ![](images/943ac43ef6d17d478c08b340bdcb0d2285a8ee3e4b3a97152f617b223871467a.jpg)
490
+
491
+ ![](images/97aad34e2d2a46effdc20feaacb11fc0be2f66c46bb87b68815abd3a77699b8d.jpg)
492
+
493
+ ![](images/3250eafcb0ff6e741a02f005b203bc80a1bdcb36cb6721d1217c7385cbe89baa.jpg)
494
+
495
+ ![](images/8770951b6765ba6e1b0afda295ec82b6eeb99e9d58b14057e7f3fedf94873858.jpg)
496
+
497
+ ![](images/50945207f6f3944af18b1d5d84f84d3bea4b73e6acb1a191e4d954a7978a81e3.jpg)
498
+
499
+ ![](images/d8cb5466986088cfef42b6afd625f3c29decf1610cb7734f881d031c27e971b1.jpg)
500
+
501
+ ![](images/38fbb0390263c26ff6bf32dca2ec6e57d31d1bc4b350122183e777cf7503f042.jpg)
502
+ Figure 13: Qualitative results on LLFF dataset. From left to right: TensoRF, ECTensoRF-L, ECTensoRF-H, ECTensoRF-L difference and ECTensoRF-H difference.
503
+
504
+ ![](images/d3b9ae67053a378b98e30a659a31ffc55e743635b7e1325f4e5ec70306256f83.jpg)
505
+
506
+ ![](images/832cf98cdda7aad9ce338e164e4a805be2d7986a0d3658a0fddfa4318b01766e.jpg)
507
+
508
+ ![](images/8b6f23367097ddf0d6f6c2cffdaf457952422d274d02c466da753c4ef4ca0b78.jpg)
509
+
510
+ ![](images/ea6e43a485af3975b8d1470e3bef8cff76465e40f3d6b0fd0b6cad517d780cd9.jpg)
2024/Neural NeRF Compression/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:7c4bbfec2ecd4a399adc4f2105bbef79f7adfe4cc2d55a8f32966e0b07fb6212
3
+ size 1295691
2024/Neural NeRF Compression/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Networks Learn Statistics of Increasing Complexity/b3f9046f-6da2-4702-aa86-d3792a81ed04_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2a23e2499ba90b1350ba5afefb1c4cc9358afcfe9b0ee53c6a2e47c81455b483
3
+ size 1989757
2024/Neural Networks Learn Statistics of Increasing Complexity/full.md ADDED
@@ -0,0 +1,613 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Neural Networks Learn Statistics of Increasing Complexity
2
+
3
+ Nora Belrose<sup>1</sup> Quintin Pope<sup>2</sup> Lucia Quirke<sup>1</sup> Alex Mallen<sup>1</sup> Xiaoli Fern<sup>2</sup>
4
+
5
+ # Abstract
6
+
7
+ The distributional simplicity bias (DSB) posits that neural networks learn low-order moments of the data distribution first, before moving on to higher-order correlations. In this work, we present compelling new evidence for the DSB by showing that networks automatically learn to perform well on maximum-entropy distributions whose low-order statistics match those of the training set early in training, then lose this ability later. We also extend the DSB to discrete domains by proving an equivalence between token $n$ -gram frequencies and the moments of embedding vectors, and by finding empirical evidence for the bias in LLMs. Finally we use optimal transport methods to surgically edit the low-order statistics of one class of images to match those of another, and show early-training networks treat the edited images as if they were drawn from the target class.
8
+
9
+ Code is available at https://github.com/EleutherAI/features-across-time.
10
+
11
+ # 1. Introduction
12
+
13
+ Neural networks exhibit a remarkable ability to fit complex datasets while generalizing to unseen data points and distributions. This is especially surprising given that deep networks can perfectly fit random labels (Zhang et al., 2021), and it is possible to intentionally "poison" networks so that they achieve zero training loss while behaving randomly on a held out test set (Huang et al., 2020).
14
+
15
+ A recently proposed explanation for this phenomenon is the distributional simplicity bias (DSB): neural networks learn to exploit the lower-order statistics of the input data first–e.g. mean and (co)variance– before learning to use its higher-order statistics, such as (co)skewness or (co)kurtosis. Refinetti et al. (2023) provide evidence for the DSB by training networks on a sequence of synthetic datasets that
16
+
17
+ act as increasingly precise approximations to the real data, showing that early checkpoints perform about as well on real data as checkpoints trained directly on the real data.
18
+
19
+ We build on Refinetti et al. (2023) by inverting their experimental setup. We train our models on real datasets, then test them throughout training on synthetic data that probe the model's reliance on statistics of different orders. We believe this experimental design provides more direct evidence about the generalization behavior of commonly used models and training practices.
20
+
21
+ Our primary theoretical contributions are to (1) motivate the DSB through a Taylor expansion of the expected loss, (2) propose criteria quantifying whether a model "uses" statistics up to order $k$ by checking that the model is sensitive to interventions on the first $k$ statistics, while being robust to interventions on higher-order statistics, (3) describe efficient methods of producing synthetic data that let us investigate whether models satisfy the above criteria, and (4) extend the DSB to discrete domains by proving an equivalence between token $n$ -gram frequencies and the moments of sequences of embedding vectors.
22
+
23
+ We use a Taylor series expansion to express a model's expected loss as a sum over the central moments of an evaluation dataset. This connection provides some motivation for the DSB. Specifically, if during training, a network's loss is well approximated by the first $k$ terms of its Taylor expansion, then the model should only be sensitive to statistics up to order $k$ , and we argue that earlier terms of the expansion will generally become relevant before later terms.
24
+
25
+ We describe two intuitive criteria that a model sensitive to statistics up to order $k$ should satisfy: (1) changing the first $k$ statistics of data from class A to match class B should cause the model to classify the modified data as class B, and (2) models should be unaffected by "deleting" higher-order data statistics. We evaluate whether image classification networks satisfy the above criteria during training through extensive empirical experiments across a variety of network architectures and image datasets.
26
+
27
+ We evaluate whether the network satisfies criterion (1) by generating synthetic datasets where we "graft" the means and covariances of one class onto images of another class, and evaluating whether the network's classifiers the result
28
+
29
+ ![](images/49f246ca8a05b1546cd8335652b199c29620374ca60ce4d6dc25c9f61707b532.jpg)
30
+ Figure 1. (left) Pekinese dog image from the ImageNet training set. (center) Image after quantile normalizing its pixels to match the marginal distribution of the goldfish class on ImageNet. The grass is now a slightly darker shade of green and the dog's fur has a reddish hue. (right) Synthetic "goldfish" generated by sampling each pixel independently from its marginal distribution.
31
+
32
+ ![](images/cffcdde6543af5ccb10e98c967546aeac9d066aec6220d8f78729648b7f57749.jpg)
33
+
34
+ ![](images/86db1f81f6d65fff4b2235f2604cdd35826429374eddf81185ea37596c0ea7f9.jpg)
35
+ Figure 2. Non-cherrypicked "fake" images produced by maximum entropy sampling using only the first two moments of the class-conditional distributions, and a hypercube constraint. Fake MNIST digits are clearly recognizable, SVHN digits less so, whereas fake CIFAR-10 images look nothing like their respective classes: airplane, automobile, bird, cat, deer, dog, frog, horse, ship, truck.
36
+
37
+ ing data as belonging to the target class. We formalize this notion of "grafting" statistics with optimal transport (OT) theory, using an analytic formula to map samples from one class-conditional distribution to another, while minimizing the expected squared Euclidean distance the samples are moved. We also describe coordinatewise quantile normalization, an OT method that changes the marginal distribution of each coordinate of the input to match a target class.
38
+
39
+ We evaluate the degree to which networks satisfy criterion (2) by generating synthetic data that match the class-conditional means and covariances, but are otherwise maximum entropy. We generate two datasets for this purpose. One dataset comes from sampling from a Gaussian distribution with matching mean and covariances. The other dataset comes from incorporating the constraints on image pixel values. We propose a novel gradient-based optimization method to produce samples from a hypercube-constrained maximum entropy distribution. We additionally describe independent coordinate sampling, a first order method of generating hypercube-constrained maximum entropy samples using only means.
40
+
41
+ Across models and datasets, we find a common pattern where criteria (1) and (2) hold early in training, with networks largely classifying images according to the means and covariances of the distributions from which they're drawn. But as training progresses, networks become sensitive to higher-order statistics, resulting in a U-shaped loss curve.
42
+
43
+ We also evaluate EleutherAI's Pythia autoregressive language models (Biderman et al., 2023) on synthetic data sampled from unigram and bigram models trained on the Pile (Gao et al., 2020). We find a fascinating "double descent" (Vallet et al., 1989; Belkin et al., 2019) phenomenon where models initially mirror the same U-shaped scaling observed in image classifiers, then use in-context learning to achieve even lower loss later in training.
44
+
45
+ ![](images/b3582feb0b2287e9430060ca6a889c5412f9e4c0433bfb95c4353c449dffca44.jpg)
46
+
47
+ For a thorough review of related work on simplicity biases in machine learning, see Appendix A.
48
+
49
+ # 2. Theory and Methods
50
+
51
+ Let $\mathcal{L}(\mathbf{x})$ denote the loss of a neural network evaluated on input $\mathbf{x}$ . If $\mathcal{L}_{\theta}$ is analytic with an adequate radius of convergence, we can Taylor expand the loss for any given $\mathbf{x}$ around the mean input $\pmb{\mu}$ as:
52
+
53
+ $$
54
+ \mathcal {L} (\mathbf {x}) = \sum_ {\alpha \in \mathbb {N} ^ {d}} \frac {(\mathbf {x} - \boldsymbol {\mu}) ^ {\alpha}}{\alpha !} (\partial^ {\alpha} \mathcal {L}) (\boldsymbol {\mu}), \tag {1}
55
+ $$
56
+
57
+ where $\alpha$ is a multi-index, or a $d$ -tuple assigning an integer to each coordinate of $\mathbf{x}$ . Recall that taking a vector to the power of a multi-index denotes a product of the components of the vector, where each component of the index indicates the multiplicity: e.g. if $\alpha = (1,4,6)$ , the expression $(\mathbf{x} - \boldsymbol{\mu})^{\alpha}$ denotes the product $(x_{1} - \mu_{1})(x_{2} - \mu_{2})^{4}(x_{3} - \mu_{3})^{6}$ . Similarly, $(\partial^{\alpha}\mathcal{L})$ is shorthand for the mixed partial derivative $\frac{\partial^{11}}{\partial x_1\partial x_2^4\partial x_3^6}\mathcal{L}$ . The factorial $\alpha!$ denotes the product of the factorials of the components: $1! \times 4! \times 6! = 17280$ .
58
+
59
+ If $\mathbf{x}$ is drawn from a distribution with compact support, which is true for images and text, we can take the expectation of both sides of Eq. 1. This leads to an expression summing over all the central moments of $\mathbf{x}$ multiplied by the corresponding partial derivatives of $\mathcal{L}$ evaluated at $\mu$ :
60
+
61
+ $$
62
+ \mathbb {E} [ \mathcal {L} (\mathbf {x}) ] = \sum_ {\alpha \in \mathbb {N} ^ {d}} \frac {(\partial^ {\alpha} \mathcal {L}) (\boldsymbol {\mu})}{\alpha !} \underbrace {\mathbb {E} [ (\mathbf {x} - \boldsymbol {\mu}) ^ {\alpha} ]} _ {\text {c e n t r a l m o m e n t}} \tag {2}
63
+ $$
64
+
65
+ Equation 2 suggests a close connection between the moments of the data distribution and the expected loss of a neural network evaluated on that distribution.4
66
+
67
+ ![](images/abb5d471a6a53b33408c5faf56731022b40690f300f840c008f21f7496d59bde.jpg)
68
+ Figure 3. Accuracy of computer vision models when evaluated on images edited with optimal transport maps as described in Sec. 2.3, using the target class, not the source class, as the label. Between roughly $2^{4}$ and $2^{12}$ training steps, all models classify the CQN-edited images coming from target class, with a peak in accuracy at $2^{9}$ .
69
+
70
+ ![](images/a693a40a4eea2d9b2b3cd1b38cd6d62ece8da33ed20c5520c703f3cac74b0181.jpg)
71
+
72
+ ![](images/ad227c9cf67693f97941fa35874d579cf3d7c54122ef16307b66fc2b671e9ebd.jpg)
73
+
74
+ # 2.1. Intuition
75
+
76
+ Without loss of generality, assume the input is constrained to the unit hypercube. Since every coordinate of $\mathbf{x}$ is no greater than 1, the moments will have magnitudes that monotonically decrease with increasing order; for example, $\mathbb{E}[x_i x_j] \leq \mathbb{E}[x_i]$ for any $i, j \in 1 \ldots d$ .
77
+
78
+ Indeed, we would expect the moment magnitude to decay exponentially with order when the coordinates are independent, roughly counterbalancing the exponential increase in the number of distinct moments at higher orders. Assuming the higher derivatives of $\mathcal{L}$ are reasonably well-behaved at initialization, the $\frac{1}{n!}$ Taylor coefficients will then cause the contribution of higher-order moments to Eq. 2 to decay monotonically and factorially fast with order.
79
+
80
+ As training progresses however, the derivatives of $\mathcal{L}$ become correlated with the corresponding moments, potentially inflating the magnitude of higher-order terms in Eq. 2. It then seems natural to suppose that the magnitude of higher-order terms will grow in roughly monotonic order- that is, the second order term will become important first, followed by the third order term, and so on<sup>6</sup>.
81
+
82
+ when the support is compact.
83
+
84
+ 4Expanding around an an arbitrary point a would yield an expression containing moments about a, and our analysis would otherwise be unchanged.
85
+ This is true of images with standard PyTorch preprocessing and one-hot encoded token sequences; other inputs can be rescaled to match this criterion, given our assumption of compact support.
86
+ Another argument for monotonicity is that earlier terms account for factorially more of the loss at initialization, and are thus plausibly higher-priority targets for gradient descent, until the optimizer is no longer able to easily reduce the loss further by better matching the associated statistics and moves on to higher-order terms.
87
+
88
+ # 2.2. Criteria
89
+
90
+ Intuitively, if a model only "uses" low-order statistics of the input distribution, this means its behavior should be strongly affected by interventions on the lower-order statistics of the input, but largely unaffected by interventions on the higher-order statistics. More specifically:
91
+
92
+ 1. "Grafting" the low-order statistics of class $B$ onto class $A$ should cause the model to treat examples from $A$ as if they were from $B$ .
93
+ 2. "Deleting" the information contributed by higher-order statistics should not harm the model's performance.
94
+
95
+ We operationalize both criteria more precisely below and explain how we produce synthetic data that lets us evaluate the degree to which a given model satisfies each criterion.
96
+
97
+ # 2.3. Optimal Transport
98
+
99
+ We operationalize Criterion 1 using optimal transport (OT) theory, which provides tools for transforming samples from one probability distribution into samples from another while minimizing the average distance that samples are moved. We use three OT methods in our experiments: bounded shift and coordinatewise quantile normalization, which primarily affect the first order moments of the distribution, and Gaussian OT, which affects all first and second-order moments.
100
+
101
+ Bounded Shift In Appendix E, we derive an algorithm for shifting the mean of an empirical distribution to a desired value, while keeping it constrained to the interval [0, 1], and minimizing the transport cost. We use this algorithm to graft the mean of one class onto another, while ensuring the pixel intensities of the edited images are valid.
102
+
103
+ ![](images/cfdc3c5248af636c0f578a59dfdcf806b97520b3a8facee987144c4eab170a92.jpg)
104
+ Figure 4. Rows 1-3 show how Gaussian optimal transport affects the example CIFAR-10 airplane, bird and truck images. Each row starts with the original unedited image on the left, with each subsequent column showing the effects of editing that image's first two moments to match the class-conditional distributions of a particular target class (top). The bottom left image is the average of all test set images. Black borders indicate either an original image, or a "self-to-self" edited image.
105
+
106
+ Coordinatewise Quantile Normalization (CQN) Quantile normalization is a technique for making two scalar random variables identical in their statistical properties. When applied coordinatewise to the input of a neural network, such as an image, it ensures that the coordinatewise margins match those of a target distribution, while keeping the correlations between coordinates largely intact, as illustrated by how the edited Pekinese dog image in Fig 1 (center) remains a recognizable dog image.
107
+
108
+ CQN works as follows. If a random variable $X$ has cumulative distribution function $F_{X}(x)$ , the transformed variable $F_{X}(X)$ will have the standard uniform distribution $\mathrm{Unif}(0,1)$ . Conversely, given variables $U \sim \mathrm{Unif}(0,1)$ and $Y$ , the transformed variable $F_{Y}^{-1}(U)$ will be equal in distribution to $Y$ . Composing these transformations together yields quantile normalization. It can be shown that $F_{Y}^{-1} \circ F_{X}$ is the optimal transport map from $X$ to $Y$ for a large class of cost functions (Santambrogio, 2015, Ch. 2.2), and is thus ideal for editing the first order statistics of a distribution while minimally perturbing higher-order statistics.
109
+
110
+ Gaussian Optimal Transport Given two Gaussians $P = \mathcal{N}(\pmb{\mu}_P, \pmb{\Sigma}_P)$ and $Q = \mathcal{N}(\pmb{\mu}_Q, \pmb{\Sigma}_Q)$ supported on $\mathbb{R}^d$ , the map $T(\mathbf{x}) = \mathbf{A}(\mathbf{x} - \mathbf{m}_P) + \mathbf{m}_Q$ is the optimal transport map from $P$ to $Q$ under the squared Euclidean cost function, where
111
+
112
+ $$
113
+ \mathbf {A} = \boldsymbol {\Sigma} _ {P} ^ {- 1 / 2} \left(\boldsymbol {\Sigma} _ {P} ^ {1 / 2} \boldsymbol {\Sigma} _ {Q} \boldsymbol {\Sigma} _ {P} ^ {1 / 2}\right) ^ {1 / 2} \boldsymbol {\Sigma} _ {P} ^ {- 1 / 2}. \tag {3}
114
+ $$
115
+
116
+ More generally, if $P$ is an arbitrary distribution with finite second moments, $T(\mathbf{x})$ will transport it to a distribution with mean $\pmb{\mu}_{Q}$ and covariance $\pmb{\Sigma}_{Q}$ , and this map will minimize the cost $\mathbb{E}_P[\| \mathbf{x} - T(\mathbf{x})\|_2^2]$ (Dowson & Landau, 1982).
117
+
118
+ Given $k$ image classes, each containing tensors of shape $C \times H \times W$ , we unroll the tensors into vectors of size
119
+
120
+ $CHW$ , then compute their sample means and covariance matrices, and plug these statistics into Eq. 3 to get the $k(k - 1)$ optimal transport maps from each class to every other class.
121
+
122
+ # 2.4. Maximum Entropy Sampling
123
+
124
+ We can operationalize Criterion 2 using the principle of maximum entropy, which provides a principled method for constructing probability distributions based on "partial knowledge" (Jaynes, 1957). Here the partial knowledge consists of low-order statistics derived from a training dataset, but we otherwise want to minimize the information content of the higher-order statistics. We therefore want to construct the maximum entropy distribution $P$ consistent with these low-order statistics, $^{8}$ then evaluate a neural network on samples drawn from $P$ .
125
+
126
+ Famously, the maximum entropy distribution supported on $\mathbb{R}^d$ with known mean $\pmb{\mu}$ and covariance matrix $\pmb{\Sigma}$ is the Gaussian distribution $\mathcal{N}(\pmb{\mu},\pmb{\Sigma})$ . We therefore use Gaussians in many of our experiments in Sec 3. In addition to Gaussians, we use hypercube constrained sampling to generate a set of synthetic samples using $2^{\mathrm{nd}}$ order statistics and another set using both $2^{\mathrm{nd}}$ and $3^{\mathrm{rd}}$ order statistics, though that last set suffered from significant convergence issues when trying to match the $3^{\mathrm{rd}}$ order statistics (see Appendix C for $3^{\mathrm{rd}}$ order results and Appendix D for discussion of convergence issues). We also use two first-order methods
127
+
128
+ ![](images/5d66ad5f8a86a4c5deb8653db6e662b3017bf31794ef0ab4e74480c6436f3363.jpg)
129
+ Figure 5. Accuracy of computer vision models being trained on the standard CIFAR-10 training set, and being evaluated on maximum-entropy synthetic data with matching statistics of $1^{\mathrm{st}}$ or $2^{\mathrm{nd}}$ order. $3^{\mathrm{rd}}$ order results are in Appendix C, with Appendix D discussing issues with those results.
130
+
131
+ ![](images/8461dc79946376581b32e7dfd29411c4d1566b5bc97ec4f90f8caa455c208c54.jpg)
132
+ Training steps
133
+
134
+ ![](images/db65c791091ca6b809067d82796163bde5a99583f80ce052a3a3b58df20889b9.jpg)
135
+
136
+ (Conrad sampling and independent coordinate sampling). We describe these methods below.
137
+
138
+ Hypercube Constraints One problem with using Gaussians to generate synthetic images is that natural images are constrained to a hypercube: RGB pixel intensities are in the range [0, 255], but nonsingular Gaussian distributions assign positive probability density to all of $\mathbb{R}^d$ , so that a typical sample will often lie outside the hypercube of natural images. We might expect neural networks to quickly adapt to such a simple box constraint on the support, so we would ideally like to subject our synthetic images to this constraint.
139
+
140
+ Conrad Distribution We prove in Theorem F.1 that the maximum entropy distribution supported on $[0, 1]$ with a fixed mean $\mu \neq \frac{1}{2}$ and unconstrained variance takes the form $p(x) = \frac{b\exp(-bx + b)}{\exp(b) - 1}$ , where the parameter $b$ can be found using Newton's method. This formula is not well-known, although an alternative derivation can be found in Conrad (2004). To isolate the effect of first-order statistics, we first fit a Conrad distribution to the mean of each coordinate of the images. We then generate synthetic images using inverse transform sampling to produce a value for each coordinate independently.
141
+
142
+ Approximate Sampling For many sets of constraints, there is no known closed-form solution for the density, precluding standard sampling techniques like Markov chain Monte Carlo. For example, in the 1D case the maxi
143
+
144
+ mum entropy probability density with known mean and variance supported on a finite interval $[a,b]$ has the form $p(x) = \exp (-\lambda_0 - \lambda_1x - \lambda_2x^2)$ (Dowson & Wragg, 1973),<sup>10</sup> but we are unaware of any such analytical formula for the multidimensional case.<sup>11</sup>
145
+
146
+ For these cases, we propose a novel technique for approximate sampling: use gradient-based optimization to directly produce a finite set of samples whose statistics match the desired ones, while maximizing the Kozachenko-Leonenko estimate for the entropy of the implicit population distribution (Kozachenko & Leonenko, 1987; Sablayrolles et al., 2018). See Appendix H for implementation details and Appendix I for a discussion of computational requirements.
147
+
148
+ Independent Coordinate Sampling (ICS) In the preceding sections, we decomposed the input distribution into its moments. Another possible decomposition is given by Sklar's theorem, which states that the distribution of any random vector $(X_{1},\ldots ,X_{d})$ is uniquely determined by its coordinatewise marginal CDFs $F_{X_i}(x) = \mathbb{P}(X_i\leq x)$ and a copula function $C:[0,1]^d\to [0,1]$ that combines the marginal CDFs into a multivariate CDF $F_{X}(\mathbf{x}) = \mathbb{P}(X_{1}\leq x_{1},\dots ,X_{d}\leq x_{d})$ (Sklar, 1959). The maximum entropy copula simply takes the product of the marginal CDFs, and corresponds to a random vector with independent coordinates. We can efficiently sample from this distribution by estimating an empirical CDF for each coordinate, then sampling from each CDF independently.
149
+
150
+ By constraining the coordinatewise marginals, we ensure that all of the homogeneous moments, or moments of the form $\mathbb{E}[(x_i)^n]$ , match those of the true data distribution, while the mixed moments, e.g. $\mathbb{E}[x_i x_j]$ for $i \neq j$ , will generally not match. In high dimension, almost all moments of order greater than one are mixed rather than homogeneous, so ICS matches the first order moments and almost none of the higher order ones. For this reason we classify it as a "first order" method.
151
+
152
+ # 2.5. Discrete Domains
153
+
154
+ Neural networks use embeddings to convert discrete inputs into vectors of real numbers. The embedding operation can be viewed as a matrix multiplication, wherein the discrete inputs are converted into one-hot vectors we then multiply by the embedding matrix. If the input is a sequence, the result is a sequence of one-hot vectors, or a one-hot matrix.
155
+
156
+ Just as we unroll images into vectors to compute their moments, we can similarly unroll one-hot matrices to compute their moments. Strikingly, we find that these moments correspond to token $n$ -gram frequencies: $^{12}$
157
+
158
+ Theorem 2.1. [n-gram statistics are moments] Let $\mathcal{V}^N$ be the set of token sequences of length $N$ drawn from a finite vocabulary $\mathcal{V}$ , let $P$ be a distribution on $\mathcal{V}^N$ , and let $f:\mathcal{V}^N\to \{0,1\}^{N\cdot |\mathcal{V}|}$ be the function that encodes a length- $N$ sequence of tokens as a flattened concatenation of $N$ one-hot vectors of dimension $|\mathcal{V}|$ . Let $f_{\sharp}P$ be the pushforward of $P$ through this one-hot encoding, i.e., its analogue in $\{0,1\}^{N\cdot |\mathcal{V}|}$ .
159
+
160
+ Then every moment of $f_{\sharp}P$ is equal to an $n$ -gram statistic of $P$ and vice versa.
161
+
162
+ Furthermore, for a fixed embedding matrix $\mathbf{E}$ , two distributions over token sequences that have the same $n$ -gram frequencies up to order $k$ will induce distributions over embedding space with the same moments up to $k$ :
163
+
164
+ Theorem 2.2. [Equal embedding moments] Let $\mathbf{E} \in \mathbb{R}^{|\mathcal{V}| \times d}$ be an embedding matrix, and let $P$ and $Q$ be two distributions over $\mathcal{V}^N$ . Then if $P$ and $Q$ have the same n-gram statistics up to order $k \geq 1$ , their embeddings under $\mathbf{E}$ have the same moments up to order $k$ .
165
+
166
+ For proofs, see Appendix G.
167
+
168
+ Given this equivalence, we can test the DSB in language
169
+
170
+ 12Our formal definition of the term " $n$ -gram statistic" is non-standard in two respects: first, we include skip-grams (e.g. the dog, where the underscore is a wildcard token), and second, it is tied to an absolute position in the sequence. However, the Pythia language models we will consider in this paper were trained on chunks of text of uniform length sampled from larger documents (Biderman et al., 2023), so the absolute position should not significantly affect the $n$ -gram probabilities. We therefore assume in what follows that $n$ -gram statistics exhibit translation invariance.
171
+
172
+ models with maximum entropy sampling, just like the computer vision case. Given known $n$ -gram frequencies up to order $k$ , we produce maximum entropy samples using a $k$ -gram autoregressive language model. For example, if only bigram frequencies are known, this corresponds to a Markov chain where the distribution of each token depends only on the token immediately preceding it.
173
+
174
+ # 3. Image Classification
175
+
176
+ # 3.1. Datasets.
177
+
178
+ Because Gaussian optimal transport (Sec. 2.3) requires $O(d^{3})$ compute and $O(d^{2})$ memory, $^{13}$ we focus on datasets with $32 \times 32$ or $64 \times 64$ resolution images for our primary experiments. Specifically, we examine the popular image classification datasets CIFAR-10 (Krizhevsky et al., 2009), Fashion MNIST (Xiao et al., 2017), MNIST (LeCun et al., 1998), and SVHN (Netzer et al., 2011).
179
+
180
+ We also build a new image classification dataset, CIFAR-Net, consisting of 200K images at $64 \times 64$ resolution sampled from ImageNet-21K, using ten coarse-grained classes that roughly match those of CIFAR-10. The larger number of images per class (20K) allows us to get a good estimate of the class-conditional covariance matrices needed for Gaussian optimal transport, which at this resolution contain $(3 \times 64 \times 64)^{2} \approx 1.5 \times 10^{8}$ entries each. See Appendix B for more details on CIFARNet.
181
+
182
+ # 3.2. Architectures.
183
+
184
+ We focus on state-of-the-art computer vision architectures in our experiments. Specifically, we use ConvNeXt V2 (Woo et al., 2023) and Swin Transformer V2 (Liu et al., 2022), which Goldblum et al. (2023) recently found to have the best performance on a variety of tasks. We train for $2^{16}$ steps with batch size 128, using the AdamW optimizer (Loshchilov & Hutter, 2018) with $\beta_{1} = 0.9$ , $\beta_{2} = 0.95$ , and a linear learning rate decay schedule starting at $10^{-3}$ with a warmup of 2000 steps (Ma & Yarats, 2021). For data augmentation, we employ RandAugment (Cubuk et al., 2020) followed by random horizontal flips and random crops.
185
+
186
+ To examine the effect of model scale on our results, we sweep over the Atto, Femto, Pico, Nano, and Tiny sizes for ConvNeXt V2, and we also construct Swin Transformers of
187
+
188
+ roughly analogous sizes. $^{15}$
189
+
190
+ To ensure our results are insensitive to the choice of optimizer and learning rate schedule, we also perform experiments with RegNet-Y (Radosavovic et al., 2020) using SGD with momentum and no LR warmup.
191
+
192
+ # 3.3. Results
193
+
194
+ We display our results on CIFAR10 in Figures 3 and 5, see Appendix C for other datasets.
195
+
196
+ Optimal transport We measure the effect of optimal transport interventions by computing the accuracy or loss of the model with respect to the target class, rather than the source class. If the intervention is ineffective, we would expect the accuracy to be much lower than the random baseline of $10\%$ , because the model should confidently classify the images as belonging to the source class. Strikingly, all models we tested get substantially higher than $10\%$ accuracy w.r.t. the target labels, with ConvNeXt peaking at over $40\%$ accuracy on $2^{\text{nd}}$ order-edited images after $2^{10}$ training steps.
197
+
198
+ Maximum entropy sampling We include five different conditions in our maximum entropy sampling experiments: $1^{\text{st}}$ order (Conrad and ICS), $2^{\text{nd}}$ order (Gaussian sampling), and both $2^{\text{nd}}$ and $3^{\text{rd}}$ order approximate sampling plus a hypercube constraint. However, we place the $3^{\text{rd}}$ order approximate sampling results in Appendix C because we were unable to match the coskewness and covariance statistics simultaneously when generating the synthetic datasets, making their interpretation difficult. See Appendix D for discussion.
199
+
200
+ Overall, we find that accuracy on first order samples peaks earlier in training and has a lower maximum than accuracy on second order samples, followed by the $2^{\mathrm{nd}}$ order hypercube-constrained samples. Remarkably, for some datasets early in training, we find some models achieve higher accuracy on the independent pixel samples than they do on images sampled from the real validation set!
201
+
202
+ Non-monotonicity Across all datasets, we observe some degree of non-monotonicity in the accuracy curves: while models are quite sensitive to low-order moments early in training, they become less sensitive by the end, with accuracy often dipping below the random baseline. The degree of non-monotonicity varies by dataset, however. Very simple datasets like MNIST and Fashion MNIST show very little non-monotonicity, likely because the first and second moments of the data distribution are sufficient to produce
203
+
204
+ very realistic-looking samples (Fig. 2).
205
+
206
+ Overall, we found that model scale has a remarkably small effect on the learning curves, so we display curves averaged over scales in bold, with individual model scales shown as translucent lines. Each curve is itself averaged over three random seeds.
207
+
208
+ # 4. Language Modeling
209
+
210
+ To test the distributional simplicity bias in a discrete domain, we study EleutherAI's Pythia language model suite (Biderman et al., 2023), for which checkpoints are publicly available at log-spaced intervals throughout training. Model parameter counts range from 14 million to 12 billion.
211
+
212
+ There are ten independent training runs for Pythia 14M, 70M, and 160M publicly available on the HuggingFace Hub, each using a different random seed. There are also five available seeds for Pythia 410M. We take advantage of these additional runs to examine the effect of random seed on our results. We also trained custom variants of Pythia 14M and 70M with an extended learning rate warmup period of 14,300 steps to isolate the effect of LR warmup.
213
+
214
+ While we include skip-grams (e.g. the __ dog) in our formal definition of $n$ -gram frequency (Def. G.1), we do not include them in these experiments for tractability reasons: they would greatly increase the memory and storage requirements of maximum entropy sampling. We hope to explore the effect of skip-gram statistics in future work.
215
+
216
+ $n$ -gram language models We compute token unigram and bigram frequencies across Pythia's training corpus, the Pile (Gao et al., 2020), and use these statistics to construct maximum entropy $n$ -gram language models. We autoregressively sample sequences of length 2049 from the $n$ -gram LMs, and evaluate Pythia's cross entropy loss on these maximum entropy samples at each checkpoint.
217
+
218
+ Additionally, we evaluate Pythia 12B's cross entropy loss over each token position in the maximum entropy $n$ -gram sequences for four different checkpoints in order to detect the development of in-context learning. If in-context learning is involved in making predictions for these sequences at a training step, cross entropy loss should decrease over successive token positions in the sequence for that step (Olsson et al., 2022).
219
+
220
+ # 4.1. Results
221
+
222
+ We display our results on the Pythia suite in Fig. 6. See Appendix C for alternate model seeds and learning rate warmup. Overall we find that the random seed has very little effect on the learning curves, and lengthening the LR warmup period did not consistently affect their overall shape.
223
+
224
+ ![](images/3295599d6e187eff53e6841496dc09a2961fc9588ef605012fc7162aae358341.jpg)
225
+ Figure 6. Cross entropy loss of Pythia suite evaluated on unigram and bigram sequences (N=1024). For comparison, the Shannon entropy of the unigram distribution is 2.89 bits per byte (bpb), and is 2.04 bpb for the bigram distribution. Both plots exhibit "double descent" scaling: loss reaches a trough between $2^{6}$ and $2^{8}$ steps, increases until $2^{10}$ steps, then decreases again as the model learns to match the data generating process in-context (Fig. 7).
226
+
227
+ $n$ -gram sequence loss Consistent with the image classification tasks, unigram sequence loss consistently reaches its lowest point before bigram sequence loss and has a higher minimum value.
228
+
229
+ Across all models, we observe non-monotonicity in the $n$ -gram sequence loss curves, where loss steeply reduces and then increases to a lesser extent. However, unlike in the image classification tasks, the loss reverts to a monotonic regime later in training. We hypothesize that this is caused by the development of in-context learning sufficient to improve $n$ -gram sequence predictions. We observe correlational evidence in the $n$ -gram sequence loss over increasing token indices and training steps in Pythia 12B (Fig. 7), where in-context learning seems to emerge in the same training step where the non-monotonic regime ends. Fascinatingly, smaller models seem to resume the standard 'U'-shaped loss pattern in the later portions of training.[16]
230
+
231
+ We speculate that this behavior may arise from a form of "catastrophic forgetting", in which all models initially learn low-order $n$ -gram statistics, which are eventually eclipsed by more sophisticated features. Larger models have greater representational capacity, and so are better able to retain these early $n$ -gram features.
232
+
233
+ In-context learning We follow Kaplan et al. (2020) in defining in-context learning as decreasing loss at increasing token indices. We find that loss is uniform across token positions in early training steps, but slowly decreases at increasing token indices in later steps, consistent with the
234
+
235
+ presence of in-context learning (Fig. 7).
236
+
237
+ We observe an initial increase in loss early in each sequence. This is likely due to the fact unigram sequences are indistinguishable from real sequences at the first position, and bigram model predictions are indistinguishable from real sequences at the first and second positions.
238
+
239
+ # 5. Conclusion
240
+
241
+ We propose two criteria that operationalize what it means for models to exploit moments of a given order, then describe methods of generating synthetic data that test whether a network satisfies both criteria, using theoretically grounded approaches relying on optimal transport theory and the principle of maximum entropy. We extend our analysis to discrete sequences by proving a novel equivalence between $n$ -gram statistics and statistical moments.
242
+
243
+ We find new compelling empirical evidence that neural networks learn to exploit the moments of their input distributions in increasing order, and further find "double descent" in the degree to which language model predictions match low-order data statistics, driven by in-context learning on longer sequences. Our contributions strengthen the case for the distributional simplicity bias (DSB), refine our understanding of how DSB influences early learning dynamics, and provide a foundation for further investigations into DSB.
244
+
245
+ # Acknowledgements
246
+
247
+ We are thankful to Open Philanthropy for funding this work. We also thank New Science and Stability AI for providing computing resources. Finally, we thank Brennan Dury for
248
+
249
+ ![](images/b524615a451a83395d8f32e64b5aff8919de242724ca34a3b1c0ff4659b55cbe.jpg)
250
+ Token index
251
+
252
+ ![](images/8e6d19858c4a56a175684734f2aa46baf06f14afc379d5b03f0378e3d188d72a.jpg)
253
+ Figure 7. In-context learning of the maximum entropy bigram sequence occurs after step 1,000 in Pythia 12B. Some in-context learning of the maximum entropy unigram sequence occurs by step 1000, with more at step 143,000.
254
+
255
+ independently deriving the Conrad distribution.
256
+
257
+ # Impact statement
258
+
259
+ The goal of this work was to advance our understanding of the generalization behavior of neural networks throughout training, in the hope that this will enable the development of more robust and predictable machine learning models.
260
+
261
+ # References
262
+
263
+ Baratin, A., George, T., Laurent, C., Hjelm, R. D., Lajoie, G., Vincent, P., and Lacoste-Julien, S. Implicit regularization via neural feature alignment. In International Conference on Artificial Intelligence and Statistics, pp. 2269-2277. PMLR, 2021.
264
+ Basri, R., Galun, M., Geifman, A., Jacobs, D., Kasten, Y., and Kritchman, S. Frequency bias in neural networks for input of non-uniform density. In III, H. D. and Singh, A. (eds.), Proceedings of the 37th International Conference on Machine Learning, volume 119 of Proceedings of Machine Learning Research, pp. 685-694. PMLR, 13-18 Jul 2020. URL https://proceedings.mlrpress/v119/basri20a.html.
265
+ Belkin, M., Hsu, D., Ma, S., and Mandal, S. Reconciling modern machine-learning practice and the classical bias-variance trade-off. Proceedings of the National Academy of Sciences, 116(32):15849-15854, 2019. doi: 10.1073/pnas.1903070116. URL https://www.pnas.org/doi/abs/10.1073/pnas.1903070116.
266
+ Biderman, S., Schoelkopf, H., Anthony, Q. G., Bradley, H., O'Brien, K., Hallahan, E., Khan, M. A., Purohit, S.,
267
+
268
+ Prashanth, U. S., Raff, E., et al. Pythia: A suite for analyzing large language models across training and scaling. In International Conference on Machine Learning, pp. 2397-2430. PMLR, 2023.
269
+ Bietti, A. and Mairal, J. On the inductive bias of neural tangent kernels. Advances in Neural Information Processing Systems, 32, 2019.
270
+ Bodnar, T., Gupta, A. K., and Parolya, N. On the strong convergence of the optimal linear shrinkage estimator for large dimensional covariance matrix. Journal of Multivariate Analysis, 132:215-228, 2014.
271
+ Canatar, A., Bordelon, B., and Pehlevan, C. Spectral bias and task-model alignment explain generalization in kernel regression and infinitely wide neural networks. Nature communications, 12(1):2914, 2021.
272
+ Carpenter, B. Typical sets and the curse of dimensionality. Stan Software, 2017.
273
+ Chiang, P., Ni, R., Miller, D. Y., Bansal, A., Geiping, J., Goldblum, M., and Goldstein, T. Loss landscapes are all you need: Neural network generalization can be explained without the implicit bias of gradient descent. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=QC10RmRbZy9.
274
+ Choshen, L., Hacohen, G., Weinshall, D., and Abend, O. The grammar-learning trajectories of neural language models. In Muresan, S., Nakov, P., and Villavicencio, A. (eds.), Proceedings of the 60th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 8281-8297, Dublin, Ireland, May 2022. Association for Computational Linguis
275
+
276
+ tics. doi: 10.18653/v1/2022.acl-long.568. URL https://aclanthology.org/2022.acl-long.568.
277
+ Conrad, K. Probability distributions and maximum entropy. Entropy, 6(452):10, 2004.
278
+ Cubuk, E. D., Zoph, B., Shlens, J., and Le, Q. V. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition workshops, pp. 702-703, 2020.
279
+ Dowson, D. and Landau, B. The frechet distance between multivariate normal distributions. Journal of multivariate analysis, 12(3):450-455, 1982.
280
+ Dowson, D. and Wragg, A. Maximum-entropy distributions having prescribed first and second moments (corresp.). IEEE Transactions on Information Theory, 19(5):689-693, 1973.
281
+ Gao, L., Biderman, S., Black, S., Golding, L., Hoppe, T., Foster, C., Phang, J., He, H., Thite, A., Nabeshima, N., et al. The Pile: An 800GB dataset of diverse text for language modeling. arXiv preprint arXiv:2101.00027, 2020.
282
+ Goldblum, M., Souri, H., Ni, R., Shu, M., Prabhu, V. U., Somepalli, G., Chattopadhyay, P., Ibrahim, M., Bardes, A., Hoffman, J., et al. Battle of the backbones: A largescale comparison of pretrained models across computer vision tasks. In Thirty-seventh Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023.
283
+ Hendrycks, D. and Gimpel, K. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016.
284
+ Huang, W. R., Emam, Z., Goldblum, M., Fowl, L., Terry, J. K., Huang, F., and Goldstein, T. Understanding generalization through visualizations. In Zosa Forde, J., Ruiz, F., Pradier, M. F., and Schein, A. (eds.), Proceedings on "I Can't Believe It's Not Better!" at NeurIPS Workshops, volume 137 of Proceedings of Machine Learning Research, pp. 87-97. PMLR, 12 Dec 2020. URL https://proceedings.mlr.press/v137/huang20a.html.
285
+ Jacot, A., Gabriel, F., and Hongler, C. Neural tangent kernel: Convergence and generalization in neural networks. In Bengio, S., Wallach, H., Larochelle, H., Grauman, K., Cesa-Bianchi, N., and Garnett, R. (eds.), Advances in Neural Information Processing Systems, volume 31. Curran Associates, Inc., 2018. URL https://proceedings.neurips.cc/paper_files/paper/2018/file/5a4be1fa34e62bb8a6ec6b91d2462f5a-Paper.pdf.
286
+
287
+ Jaynes, E. T. Information theory and statistical mechanics. Physical review, 106(4):620, 1957.
288
+ Kaplan, J., McCandlish, S., Henighan, T., Brown, T. B., Chess, B., Child, R., Gray, S., Radford, A., Wu, J., and Amodei, D. Scaling laws for neural language models, 2020.
289
+ Kozachenko, L. F. and Leonenko, N. N. Sample estimate of the entropy of a random vector. Problemy Peredachi Informatii, 23(2):9-16, 1987.
290
+ Krizhevsky, A., Hinton, G., et al. Learning multiple layers of features from tiny images. 2009.
291
+ LeCun, Y., Bottou, L., Bengio, Y., and Haffner, P. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
292
+ Lee, J., Sohl-dickstein, J., Pennington, J., Novak, R., Schoenholz, S., and Bahri, Y. Deep neural networks as gaussian processes. In International Conference on Learning Representations, 2018. URL https://openreview.net/forum?id=B1EA-M-0Z.
293
+ Liu, Z., Hu, H., Lin, Y., Yao, Z., Xie, Z., Wei, Y., Ning, J., Cao, Y., Zhang, Z., Dong, L., et al. Swin transformer v2: Scaling up capacity and resolution. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 12009-12019, 2022.
294
+ Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. In International Conference on Learning Representations, 2018.
295
+ Ma, J. and Yarats, D. On the adequacy of untuned warmup for adaptive optimization. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 8828-8836, 2021.
296
+ Netzer, Y., Wang, T., Coates, A., Bissacco, A., Wu, B., and Ng, A. Y. Reading digits in natural images with unsupervised feature learning. 2011.
297
+ Olsson, C., Elhage, N., Nanda, N., Joseph, N., DasSarma, N., Henighan, T., Mann, B., Askell, A., Bai, Y., Chen, A., Conerly, T., Drain, D., Ganguli, D., Hatfield-Dodds, Z., Hernandez, D., Johnston, S., Jones, A., Kernion, J., Lovitt, L., Ndousse, K., Amodei, D., Brown, T., Clark, J., Kaplan, J., McCandlish, S., and Olah, C. In-context learning and induction heads. Transformer Circuits Thread, 2022. https://transformer-circuits.pub/2022/in-context-learning-and-induction-heads/index.html.
298
+ Radosavovic, I., Kosaraju, R. P., Girshick, R., He, K., and Dollar, P. Designing network design spaces. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10428-10436, 2020.
299
+
300
+ Rahaman, N., Baratin, A., Arpit, D., Draxler, F., Lin, M., Hamprecht, F., Bengio, Y., and Courville, A. On the spectral bias of neural networks. In Chaudhuri, K. and Salakhutdinov, R. (eds.), Proceedings of the 36th International Conference on Machine Learning, volume 97 of Proceedings of Machine Learning Research, pp. 5301-5310. PMLR, 09-15 Jun 2019. URL https://proceedings.mlrpress/v97/rahaman19a.html.
301
+ Refinetti, M., Ingrosso, A., and Goldt, S. Neural networks trained with sgd learn distributions of increasing complexity. In International Conference on Machine Learning, pp. 28843-28863. PMLR, 2023.
302
+ Sablayrolles, A., Douze, M., Schmid, C., and Jégou, H. Spreading vectors for similarity search. In International Conference on Learning Representations, 2018.
303
+ Santambrogio, F. Optimal transport for applied mathematicians. Birkhäuser, NY, 55(58-63):94, 2015.
304
+ Sklar, M. Fonctions de répartition à n dimensions et leurs marges. In Annales de l'ISUP, volume 8, pp. 229-231, 1959.
305
+ Valle-Perez, G., Camargo, C. Q., and Louis, A. A. Deep learning generalizes because the parameter-function map is biased towards simple functions. In International Conference on Learning Representations, 2018.
306
+ Vallet, F., Cailton, J.-G., and Refregier, P. Linear and nonlinear extension of the pseudo-inverse solution for learning boolean functions. *Europhysics Letters*, 9(4):315, 1989.
307
+ Woo, S., Debnath, S., Hu, R., Chen, X., Liu, Z., Kweon, I. S., and Xie, S. Convnext v2: Co-designing and scaling convnets with masked autoencoders. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16133-16142, 2023.
308
+ Xiao, H., Rasul, K., and Vollgraf, R. Fashion-mnist: a novel image dataset for benchmarking machine learning algorithms. arXiv preprint arXiv:1708.07747, 2017.
309
+ Xu, Z. J. and Zhou, H. Deep frequency principle towards understanding why deeper learning is faster. Proceedings of the AAAI Conference on Artificial Intelligence, 35(12):10541-10550, May 2021. doi: 10.1609/aaai.v35i12.17261. URL https://ojs.aaai.org/index.php/AAAI/article/view/17261.
310
+ Xu, Z.-Q. J., Zhang, Y., Luo, T., Xiao, Y., and Ma, Z. Frequency principle: Fourier analysis sheds light on deep neural networks. arXiv preprint arXiv:1901.06523, 2019a.
311
+
312
+ Xu, Z.-Q. J., Zhang, Y., and Xiao, Y. Training behavior of deep neural network in frequency domain. In International Conference on Neural Information Processing, pp. 264-274, 2019b.
313
+ Zhang, C., Bengio, S., Hardt, M., Recht, B., and Vinyals, O. Understanding deep learning (still) requires rethinking generalization. Communications of the ACM, 64(3):107-115, 2021.
314
+
315
+ # A. Additional Related Work
316
+
317
+ Extensive prior work has investigated neural network simplicity bias and learning dynamics. We highlight several prior research directions that usefully contrast our own approach.
318
+
319
+ # A.1. Simplicity bias
320
+
321
+ One common approach studies simplicity biases in the parameter-function maps of neural network architectures. Such explanations posit that neural networks implement favorable priors, meaning that most network parameterizations, under commonly used initialization distributions, that reach good performance on the training data will also generalize to the test data, regardless of specific details about the optimization process used to find such parameterizations.
322
+
323
+ Valle-Perez et al. (2018) investigated such architectural simplicity biases by using Gaussian process-based approximations to neural networks (Lee et al., 2018) to estimate the Bayesian posterior produced by randomly sampling neural network parameterizations, conditional on those networks achieving perfect training loss, and showed the resulting posterior correlated well with the odds of SGD-based training finding a given function. Chiang et al. (2023) validate this perspective by showing that a variety of non-gradient based optimizers, including unbiased sampling of random initializations, are still able to generalize from training to testing data.
324
+
325
+ Another approach is to construct a simplified, theoretically tractable model of neural network learning dynamics, then analyzing the resulting model to find which types of functions it predicts networks will be most inclined to learn. The neural tangent kernel (Jacot et al., 2018), scales network widths to infinity, whereupon networks are limited to performing kernel regression with their initialization kernel. Thus, model inductive biases are determined by the spectrum of the initialization kernel's eigenfunctions, which have strong simplicity biases for commonly used architectures (Canatar et al., 2021; Baratin et al., 2021; Bietti & Mairal, 2019).
326
+
327
+ # A.2. Learning order
328
+
329
+ Xu et al. (2019b) proposed the Frequency Principle, the tendency of neural networks to first fit low-frequency Fourier components of a given target function, before moving on to fit higher frequency components, and empirically demonstrated this tendency on real image classification problems and synthetic datasets. Subsequent works further explored how neural network learning dynamics relate to the representation of training data in the frequency domain (Rahaman et al., 2019; Xu et al., 2019a; Basri et al., 2020; Xu & Zhou, 2021). Our work is similar in that we also aim to connect neural network learning order to simple mathematical properties of the training data, though we use distributional statistics, rather than frequency.
330
+
331
+ Choshen et al. (2022) empirically studied learning dynamics of neural language models by tracking which grammatical patterns different networks learn to model across their training trajectories, and comparing network behavior across training to alternative language modeling approaches, such as $n$ -gram models. They found that neural language models initially match the behaviors of unigram and bigram models early in training, then diverge as training progresses. These results are inline with our own findings on learning order in neural language models, and are consistent with a DSB-driven perspective on neural network learning dynamics.
332
+
333
+ # B. CIFARNet dataset
334
+
335
+ CIFARNet is based on the Winter 2019 version of ImageNet-21K. We selected the ten synsets from the ImageNet hierarchy which most closely matched the ten CIFAR-10 classes, with a bias toward broader synsets to maximize the dataset size:
336
+
337
+ Airplane: n02691156
338
+ Automobile: n02958343
339
+ Bird: n01503061
340
+ Cat: n02121620
341
+ - Deer: n02430045
342
+ Dog: n02083346
343
+ Frog: n01639765
344
+ Horse: n02374451
345
+ - Ship: n04194289
346
+ Truck: n04490091
347
+
348
+ We ensured class balance by randomly sampling $20\mathrm{K}$ images from each synset. Images were directly resized to $64\times 64$ resolution without center cropping.
349
+
350
+ # C. Detailed experimental results
351
+
352
+ ![](images/bf94b715c503bf5fad8058c4041faca7cf15eb17b0eb3186392adad76f6791cb.jpg)
353
+ C.1. CIFAR-10
354
+
355
+ ![](images/cfaf2b58d0d1908ea32016b2f867bedf60e64bad23bcc4581714b177fbfa3b75.jpg)
356
+
357
+ # C.2. CIFARNet
358
+
359
+ ![](images/435118596da502254caf82639f7a0ca18f0a1b30454334dfd6745cc87bfac8a1.jpg)
360
+
361
+ ![](images/bcd604d7515effe91236c79a9749dc95b5d740203d0b9c35c499fecbb5294a96.jpg)
362
+ Figure 8. These results qualitatively mirror those of the lower resolution CIFAR-10 dataset (see above), except that the maximum accuracies attained on $2^{\mathrm{nd}}$ order samples are somewhat lower. This may suggest that networks more quickly learn to use higher-order statistics when the input has higher dimensionality.
363
+
364
+ # C.3. Fashion MNIST
365
+
366
+ ![](images/5bccf7403f6c52130a60ae58a4c99543e8293c6a6846c36176e06a4ff5a9834c.jpg)
367
+
368
+ ![](images/449caa1c7a1e2ead10e3fff052e6851412fc90c1e2a7f0816e388250a4034dcd.jpg)
369
+ Figure 9. Fashion MNIST learning curves exhibit only a modest degree of non-monotonicity, likely because the first and second moments of the data distribution are sufficient to produce very realistic-looking samples (Fig. 2)
370
+
371
+ # C.4.MNIST
372
+
373
+ ![](images/64b7e930a8904b95127d76f6c90badbe315af2832e547a51735152ed305e6126.jpg)
374
+
375
+ ![](images/84123831be997adfd5f03f630fb459d7eced5769c56e28765cdcbb8f0bf7687e.jpg)
376
+ Figure 10. MNIST learning curves exhibit only a modest degree of non-monotonicity, likely because the first and second moments of the data distribution are sufficient to produce very realistic-looking samples (Fig. 2)
377
+
378
+ # D. Note on third-order results
379
+
380
+ We tried to use a variant of the algorithm described in Appendix H for $3^{\mathrm{rd}}$ order max entropy sampling. However, the samples invariably failed to match the desired $3^{\mathrm{rd}}$ order statistics sufficiently to trigger the gradient $10^{-7}$ gradient tolerance stopping condition. We believe this is due to the very large number of entries in the coskewness tensor leading to more complex constraints on the acceptable values of the synthetic dataset. In comparison, we have a far smaller number of free parameters in the synthetic dataset. For example, for CIFAR-10 we optimized one thousand samples, each with $3 \times 32 \times 32 = 3072$ coordinates, for a total of $3 \times 10^{6}$ parameters. By comparison, the coskewness tensor has $3072^{3} \approx 2.9 \times 10^{10}$ entries, each one placing an additional constraint on the dataset. It may be possible to generate higher quality samples by increasing the number of synthetic datapoints, but this would further increase the computational burden, which is already quite high in the $3^{\mathrm{rd}}$ order case (Appendix I).
381
+
382
+ Nevertheless, in the interest of completeness and transparency, we report our $3^{\mathrm{rd}}$ order results in Appendix C. These results are difficult to interpret because they are generated using synthetic data whose $3^{\mathrm{rd}}$ order statistics only approximately match the desired ones. We thus place little weight on them. However, we find it interesting that even partially matching the coskewness tensor will improve model performance on the synthetic data in most settings, with the notable exceptions of the SVHN dataset and RegNet-Y model, where the $3^{\mathrm{rd}}$ order datasets either consistently underperform their $2^{\mathrm{nd}}$ order counterparts on all models (in the case of the SVHN dataset) or selectively underperform on the CIFAR10 and CIFARNet datasets (in the case of the RegNet-Y model). We thus see that a partial match of $3^{\mathrm{rd}}$ order statistics improves performance in 10 out of the 15 model and dataset pairs we investigate.
383
+
384
+ # D.1. Street View Housing Numbers
385
+
386
+ ![](images/ac49e9fd31a7636b9890993a8aaafd25865da84a1fc9b71fd791a2d6509623bc.jpg)
387
+
388
+ ![](images/d33c047ae0f9816b2c6625b3925a01fcc4a25e15c22298528fef44049fb41df2.jpg)
389
+ Figure 11. The Street View Housing Numbers dataset is somewhat of an outlier in that none of the models ever exceed random baseline accuracy on $1^{\text{st}}$ order synthetic images. We hypothesize this is because of the extreme diversity of colors, fonts, and background textures in SVHN, which make "simple" first order features less discriminative for classifying digits. We also found it necessary to use a smaller learning rate to achieve convergence on this dataset (Footnote 14).
390
+
391
+ # D.2. Pythia Language Models
392
+
393
+ ![](images/a7de0961ee2f0d44abe8fcedcbb1f5f7c2e614bbb7112917ebfc4d033b9fa2e6.jpg)
394
+
395
+ ![](images/b29f9fab8681712e77667fa9b7dd2f3ba327be9b852a601845c773effd9363f3.jpg)
396
+ Figure 12. (top) Average cross entropy loss of Pythia models evaluated on unigram and bigram sequences, (bottom) KL divergence between the predictions of our $n$ -gram language models and the predictions of Pythia checkpoints when evaluated on chunks of tokens sampled from the Pile ( $N = 1024$ ).
397
+
398
+ ![](images/10365a3a7c4841938a9a05a5a6a3f26d400c68310af7da749d2123753e46fa4d.jpg)
399
+
400
+ ![](images/fd36e02dc824c58bdb9dea857ddf8724786c08e663e4e3f342731f8e909a3375.jpg)
401
+
402
+ ![](images/a0913cddd5e92577d00947e177b6c55ba7641828137581e124abc44f6f60849e.jpg)
403
+ Training step
404
+
405
+ ![](images/c2d2b2e5168283e6e9f6b1ed4e22ff0e0827909dfa3c206e084707f1148c05e6.jpg)
406
+
407
+ ![](images/ab4ac7ac07eb1fb09ddb1cf67f999b2ee2065ad903341a3e02950fe33f2084f8.jpg)
408
+
409
+ ![](images/1a616801eda8ab1da2fc27a94e464cda5a36b03d6ad766e5fcb05fcbaca5296c.jpg)
410
+
411
+ ![](images/839368bead54714b79469c88ddb53aec2c820ca5f6057e369a85d8c08cbfc498.jpg)
412
+ Training step
413
+
414
+ ![](images/bf7eef409f59ef55ad1f93258b24b342c3324ca805fb7095e5ea8d1373eba31c.jpg)
415
+ Figure 13. Effects of fast and slow learning rate warmup on n-gram sequence loss and KL divergence, Pythia 14M and 70M.
416
+
417
+ ![](images/192a7e4722e8ef84292cd62d85d2903d11dc97e8fab634e2749d91f866f8fec8.jpg)
418
+ Unigram sequence loss across time
419
+
420
+ ![](images/81778e353ff321d5b4b3d668d22f1274d8ff221abce909c7389c6ab1d25260b1.jpg)
421
+ Bigram sequence loss across time
422
+
423
+ ![](images/4ab68a3c5038ca34140ed137e4833b52fb7a9d431dc372c27ee73ce5c374aa5d.jpg)
424
+ $D_{\mathrm{KL}}$ (unigram model || Pythia) across time
425
+
426
+ ![](images/c9e411ef34d73400e707105d0b4a040e249dfe597743b2357fb3b6795431b3aa.jpg)
427
+ $\mathrm{D}_{\mathrm{KL}}$ (bigram model || Pythia) across time
428
+ Figure 14. N-gram sequence loss and KL divergence over Pythia sizes and random seeds (1024 sequences sampled at each step, 9 seeds for Pythia 14M, 70M and 160M, 4 seeds for Pythia 410M.)
429
+
430
+ # E. First order optimal transport under a boundary constraint
431
+
432
+ We would like to surgically change the mean of a set of images while keeping their pixel intensities constrained to the range $[0,1]$ . The least-squares optimal algorithm for this task is described in Alg. 1, and we prove its correctness in the following theorem.
433
+
434
+ Theorem E.1. Let $\mathbf{x}$ be a vector in $[0,1]^n$ and let $m\in [0,1]$ be a desired mean. Then the optimization problem
435
+
436
+ $$
437
+ \min _ {\mathbf {y} \in [ 0, 1 ] ^ {n}} \| \mathbf {x} - \mathbf {y} \| _ {2} ^ {2} \quad \mathrm {s . t .} \frac {1}{n} \sum_ {i = 1} ^ {n} y _ {i} = m
438
+ $$
439
+
440
+ has a unique solution given by Algorithm 1.
441
+
442
+ Proof. Let $\bar{x} = \frac{1}{n}\sum_{i=1}^{n}x_{i}$ . If $\bar{x} = m$ , we immediately have the optimal solution $\mathbf{y}^{*} = \mathbf{x}$ , because our constraints are already satisfied and we achieve zero loss by leaving $\mathbf{x}$ unchanged.
443
+
444
+ # Algorithm 1 Optimal constrained mean shift
445
+
446
+ Require: Input vector $\mathbf{x}\in [0,1]^n$
447
+
448
+ Ensure: Desired mean $m \in [0,1]$
449
+
450
+ 1: Sort the coordinates of $\mathbf{x}$
451
+ 2: $\bar{x} \gets \sum_{i=1}^{n} x_i$
452
+ 3: $\mathbf{y} \gets \mathbf{0}_n$
453
+ 4: for $i \in 1 \dots n$ do
454
+ 5: $y_{i} \gets x_{i} + m - \bar{x}$
455
+ 6: if $y_{i} > 1$ then
456
+ 7: $\bar{x}\gets \sum_{j = i}^{n}x_{j}$
457
+ 8: $y_{i}\gets 1$
458
+ 9: $m\gets \frac{nm - i}{n - i}$
459
+ 10: Put coordinates of $\mathbf{y}$ in their original order.
460
+ 11: return y
461
+
462
+ We can reduce the case where $m < \bar{x}$ to the case where $\bar{x} < m$ (or vice versa) by exploiting the reflection-symmetry of the problem. Specifically, if the solution to the analogous problem in $\mathbf{x}'$ and $m'$ , where $\mathbf{x}' = \frac{1}{2} - \mathbf{x}$ and $m' = \frac{1}{2} - m$ , is $\mathbf{y}'$ , then the solution to the original problem is $\mathbf{y}^* = \frac{1}{2} - \mathbf{y}'$ . This is due to the reflection-invariance of the Euclidean distance, the linearity of our mean constraint, and the fact that reflecting about $\frac{1}{2}$ cannot move points in $[0, 1]^n$ outside $[0, 1]^n$ . Because of this symmetry, in what follows we will assume without loss of generality that $\bar{x} < m$ .
463
+
464
+ Note also the optimal solution must have the property that $\forall i: x_i \leq y_i$ . Assume for the sake of contradiction that $x_i > y_i$ for some $i$ . Then we can improve upon this solution by increasing $y_i$ by some $\epsilon > 0$ , and compensating for this by moving another entry $y_j$ for which $x_j < y_j$ closer to its original value by $\epsilon$ .
465
+
466
+ Setting up the Lagrangian. Using the Karush-Kuhn-Tucker conditions, we encode the problem with the Lagrangian
467
+
468
+ $$
469
+ \mathcal {L} (\mathbf {y}, \lambda , \boldsymbol {\mu}, \boldsymbol {\nu}) = \sum_ {i = 1} ^ {n} (y _ {i} - x _ {i}) ^ {2} + \underbrace {\lambda \left(\frac {1}{n} \sum_ {i = 1} ^ {n} y _ {i} - m\right)} _ {\text {m e a n c o n s t r a i n t}} - \underbrace {\sum_ {i = 1} ^ {n} \mu_ {i} y _ {i} + \sum_ {i = 1} ^ {n} \nu_ {i} (y _ {i} - 1)} _ {\text {i n e q u a l i t y c o n s t r a i n t s}}. \tag {4}
470
+ $$
471
+
472
+ Differentiating $\mathcal{L}$ with respect to $y_{i}$ yields the stationarity condition
473
+
474
+ $$
475
+ \frac {\partial \mathcal {L}}{\partial y _ {i}} = 2 \left(y _ {i} - x _ {i}\right) + \frac {\lambda}{n} - \mu_ {i} + \nu_ {i} = 0. \tag {5}
476
+ $$
477
+
478
+ The KKT complementary slackness condition requires that $\mu_i y_i = 0$ and $\nu_i (y_i - 1) = 0$ for each $i$ . This implies that $\mu_i$ must be zero if $y_i > 0$ , and $\nu_i$ must be zero if $y_i < 1$ . For each $i$ where $y_i < 1$ , we can use Eq. 5 and complementary slackness to write $y_i$ as $x_i - \frac{\lambda}{2n}$ .
479
+
480
+ Putting it all together. Assume $\mathbf{x}$ and $\mathbf{y}$ are written in a basis that ensures the coordinates of $\mathbf{x}$ are sorted in descending order, so that $x_{1} \geq x_{2} \geq \ldots \geq x_{n}$ . Our problem is invariant to permutation of indices, so this does not affect the solution.
481
+
482
+ We can now solve for $y_{1}$ , the final position of the largest coordinate, in the following way. Suppose that $y_{1} < 1$ . Then we have $\forall i: y_{i} < 1$ , and the mean constraint can be written as $\frac{1}{n}\left(\sum_{i=1}^{n} x_{i}\right) - \frac{\lambda}{2n} = m$ . This allows us to solve for all $y_{i}$ :
483
+
484
+ $$
485
+ y _ {i} = x _ {i} - \frac {\lambda}{2 n} = x _ {i} + m - \frac {1}{n} \left(\sum_ {i = 1} ^ {n} x _ {i}\right). \tag {6}
486
+ $$
487
+
488
+ Note Eq. 6 may "overshoot" and violate the inequality constraint $y_{i} \leq 1$ . If it does, then we know our supposition is false and $y_{1} = 1$ . If it does not violate the constraint, then it must be optimal because it is also the solution to the relaxed version of this problem without the [0, 1] constraint. In the latter case, we are done.
489
+
490
+ Given that $y_{1} = 1$ , the subproblem of solving for $y_{2},\ldots ,y_{n}$ is a smaller instance of the original problem: the target mean for these coordinates is $m^{\prime} = \frac{nm - 1}{n - 1}$ . We can recursively apply this reasoning to solve for all other $y_{i}$ . This procedure coincides with Algorithm 1.
491
+
492
+ # F. Derivation of the Dury distribution
493
+
494
+ Theorem F.1. Among all distributions supported on $[0, 1]$ with desired mean $m \neq \frac{1}{2}$ , the Dury distribution with density $p(x) = \frac{b\exp(-bx + b)}{\exp(b) - 1}$ has maximum entropy, where the parameter $b \neq 0$ is chosen to satisfy the equation $m = -\frac{b - \exp(b) + 1}{b(\exp(b) - 1)}$ . In the special case of $m = \frac{1}{2}$ , the maximum entropy distribution is $\mathrm{Unif}(0, 1)$ .
495
+
496
+ Proof. Consider the density function $p(x) = \exp(-a - bx)$ , where $a$ and $b$ are selected to satisfy normalization $\int_{[0,1]} p(x) dx = 1$ and mean $\int_{[0,1]} p(x) x dx = m$ constraints, and another arbitrary density $q(x)$ which satisfies the same constraints. We will show that the entropy of $q$ can be no greater than the entropy of $p$ .
497
+
498
+ $$
499
+ \begin{array}{l} H (q) \leq H (q, p) \quad (\text {i n e q u a l i t y o f e n t r o p y a n d c r o s s - e n t r o p y}) \\ = \mathbb {E} _ {q} [ \log p (x) ] \quad (\text {d e f i n i t i o n o f c r o s s - e n t r o p y}) \\ = - a - b m \quad (\text {d e f i n i t i o n} p (x) \text {a n d l i n e a r i t y}) \\ = H (p) \tag {QED} \\ \end{array}
500
+ $$
501
+
502
+ We can now analytically solve for $a$ in terms of $b$ . Integrating $p(x)$ from 0 to 1 yields $-\frac{\exp(-a - b)}{b} + \frac{\exp(-a)}{b} = 1$ . Solving for $a$ we get $a = -b + \log \left( \frac{\exp(b) - 1}{b} \right)$ , which when plugged back into the original formula gives us $p(x) = \frac{b \exp(-bx + b)}{\exp(b) - 1}$ .
503
+
504
+ Integration by parts yields the following formula for the mean: $\int_{[0,1]}p(x)xdx = -\frac{b - \exp(b) + 1}{b(\exp(b) - 1)}$ . We can use a root-finding algorithm such as Newton's method to solve this expression for $b$ given a desired mean $m$ . Note, however, that there is a singularity in the mean formula where $b = 0$ . Applying l'Hôpital's rule twice yields the limit:
505
+
506
+ $$
507
+ \lim _ {b \rightarrow 0} - \frac {b - \exp (b) + 1}{b (\exp (b) - 1)} = \lim _ {b \rightarrow 0} \frac {\exp (b) - 1}{b \exp (b) + \exp (b) - 1} = \lim _ {b \rightarrow 0} \frac {\exp (b)}{b \exp (b) + 2 \exp (b)} = \frac {1}{2}. \tag {7}
508
+ $$
509
+
510
+ The maximum entropy distribution supported on $[0,1]$ with no mean constraint is known to be $\mathrm{Unif}(0,1)$ . Since it happens to have the mean $\frac{1}{2}$ , we may conclude that the Dury distribution approaches $\mathrm{Unif}(0,1)$ as $b$ approaches 0.
511
+
512
+ # G. Discrete domain proofs
513
+
514
+ Please refer to Section 2.5 for context pertinent to this section.
515
+
516
+ Definition G.1 ( $n$ -gram statistic). Let $\mathcal{V}^N$ be the set of token sequences of length $N$ drawn from a finite vocabulary $\mathcal{V}$ . Given some distribution over $\mathcal{V}^N$ , an $n$ -gram statistic is the probability that an $n$ -tuple of tokens $(v_1, \ldots, v_n) \in \mathcal{V}^n$ will co-occur at a set of unique indices $(t_1, \ldots, t_n) \in \mathbb{N}^n$ .
517
+
518
+ Theorem 2.1. [n-gram statistics are moments] Let $\mathcal{V}^N$ be the set of token sequences of length $N$ drawn from a finite vocabulary $\mathcal{V}$ , let $P$ be a distribution on $\mathcal{V}^N$ , and let $f:\mathcal{V}^N\to \{0,1\}^{N\cdot |\mathcal{V}|}$ be the function that encodes a length- $N$ sequence of tokens as a flattened concatenation of $N$ one-hot vectors of dimension $|\mathcal{V}|$ . Let $f_{\sharp}P$ be the pushforward of $P$ through this one-hot encoding, i.e. its analogue in $\{0,1\}^{N\cdot |\mathcal{V}|}$ .
519
+
520
+ Then every moment of $f_{\sharp}P$ is equal to an $n$ -gram statistic of $P$ and vice versa.
521
+
522
+ Proof. While it is natural to view one-hot sequences as Boolean matrices of shape $N \times |\mathcal{V}|$ , where each row corresponds to a sequence position, we instead consider flattened one-hot encodings in order to make use of the standard mathematical machinery for moments of random vectors.
523
+
524
+ In this flattened representation, the component at index $i$ indicates whether the token at $t(i)$ is equal to the token $v(i)$ , where $(t(i), v(i)) := \mathrm{divmod}(i, |\mathcal{V}|)$ . For example, if $\mathcal{V} = \{\text{"apple", "pear"}\}$ and $N = 3$ , the sequence "apple apple pear" will be encoded as the vector $(1, 0 \mid 1, 0 \mid 0, 1)$ :
525
+
526
+ $$
527
+ \underbrace{\text{apple}}_{(1,0)}\underbrace{\text{apple}}_{(1,0)}\underbrace{\text{pear}}_{(0,1)}\xrightarrow{f}_{\setminus}(1,0,1,0,0,1).
528
+ $$
529
+
530
+ Now consider the moment corresponding to some arbitrary multi-index $\alpha \in \mathbb{N}^{N\cdot |\mathcal{V}|}$ . For illustration, let $\alpha = (0,2|0,0|1,0)$ . Then the corresponding moment is
531
+
532
+ $$
533
+ \mathbb {E} [ f (x) ^ {\alpha} ] = \mathbb {E} [ \underbrace {f (x) _ {1} ^ {0} f (x) _ {2} ^ {2}} _ {(0, 2)} \underbrace {f (x) _ {3} ^ {0} f (x) _ {4} ^ {0}} _ {(0, 0)} \underbrace {f (x) _ {5} ^ {1} f (x) _ {6} ^ {0}} _ {(1, 0)} ], \tag {8}
534
+ $$
535
+
536
+ where $f(x)_{1}^{0}$ denotes the first component of $f(x)$ raised to the power 0. Since each component of $f(x)$ is a Boolean indicator for the presence or absence of a vocabulary item at a given position, we can rewrite it with Iverson brackets:
537
+
538
+ $$
539
+ \begin{array}{l} = \mathbb {E} \left[ [ x (1) = “ \text {p e a r}" ] ^ {2} \cdot [ x (3) = “ \text {a p p l e}" ] \right] (9) \\ = \mathbb {P} [ x (1) = “ \text {p e a r}" \wedge x (3) = " \text {a p p l e}" ], (10) \\ \end{array}
540
+ $$
541
+
542
+ or the probability that the first and third tokens will be "pear" and "apple" respectively. Note that the exponent on the $[x(1) =$ "pear"] makes no difference here as long as it is nonzero. We can always binarize $\alpha$ , replacing all nonzero values with 1, and the moment will be unchanged since any nonzero power of $\{0,1\}$ is still $\{0,1\}$ .
543
+
544
+ In general, since the coordinates are all Booleans in $\{0,1\}$ , multiplication corresponds to logical conjunction and expectation corresponds to probability:
545
+
546
+ $$
547
+ \mathbb {E} [ f (x) ^ {\alpha} ] = \mathbb {E} \left[ \prod_ {i = 1} ^ {N} f (x) _ {i} ^ {\alpha_ {i}} \right] = \mathbb {P} \left[ \bigwedge_ {i \in A} x \left(t _ {i}\right) = v _ {i} \right], \tag {11}
548
+ $$
549
+
550
+ where $A$ is the set of indices in $1 \dots |\mathcal{V}| \times N$ where $\alpha$ is nonzero. By Def. G.1, this probability is an $n$ -gram statistic of order $k = |A|$ .
551
+
552
+ Conversely, we can convert any $n$ -gram statistic with tokens in $\mathcal{V}^n$ and sequence positions in $\mathbb{N}^n$ into a moment of $f_{\sharp}P$ by first flattening the indices, then plugging them into Eq. 11. The sequence positions correspond to rows, and the tokens correspond to columns, of a one-hot matrix representation of a sequence. Here we need to multiply the row and column indices together to yield indices into the flattened vector.
553
+
554
+ There will be infinitely many moments which correspond to any given $n$ -gram, because multi-indices with components larger than one are redundant.
555
+
556
+ Theorem 2.2. [Equal embedding moments] Let $\mathbf{E} \in \mathbb{R}^{|\mathcal{V}| \times d}$ be an embedding matrix, and let $P$ and $Q$ be two distributions over $\mathcal{V}^N$ . Then if $P$ and $Q$ have the same $n$ -gram statistics up to order $k \geq 1$ , their embeddings under $\mathbf{E}$ have the same moments up to order $k$ .
557
+
558
+ Proof. By Thm. 2.1, we know that the one-hot analogues of $P$ and $Q$ , i.e. $f_{\sharp}P$ and $f_{\sharp}Q$ , have equal moments up to order $k$ . That is, for every multi-index $\alpha \in \mathbb{N}^{N\cdot |\mathcal{V}|}$ where $|\alpha| \leq k$ ,
559
+
560
+ $$
561
+ \mathbb {E} _ {\mathbf {x} \sim f _ {\sharp} P} \left[ \mathbf {x} ^ {\alpha} \right] = \mathbb {E} _ {\mathbf {x} \sim f _ {\sharp} Q} \left[ \mathbf {x} ^ {\alpha} \right]. \tag {12}
562
+ $$
563
+
564
+ Now let $g: \{0,1\}^{|\mathcal{V}| \times N} \to \mathbb{R}^{d \times N}$ be the function that multiplies each one-hot vector in a sequence by $\mathbf{E}$ , returning a sequence of embedding vectors. Each side of Eq. 12 is the expectation of a polynomial in the components of $\mathbf{x}$ , and since $g$ is a linear map, $g(\mathbf{x})^{\alpha}$ is also a polynomial with the same degree.
565
+
566
+ Now consider $(g\circ f)_{\sharp}P$ and $(g\circ f)_{\sharp}Q$ , the analogues of $P$ and $Q$ in embedding space. Its moments take the form
567
+
568
+ $$
569
+ \mathbb {E} _ {\mathbf {x} \sim (g \circ f) _ {\sharp} P} [ \mathbf {x} ^ {\alpha} ] = \mathbb {E} _ {\mathbf {x} \sim f _ {\sharp} P} [ g (\mathbf {x}) ^ {\alpha} ]. \tag {13}
570
+ $$
571
+
572
+ Because $g(\mathbf{x})^{\alpha}$ is a polynomial with degree $|\alpha| \leq k$ , the expectation $\mathbb{E}_{\mathbf{x} \sim f_{\sharp}P}[g(\mathbf{x})^{\alpha}]$ must be a linear combination of moments of $f_{\sharp}P$ with order no greater than $k$ . But by Eq. 12, all of these moments are equal between $P$ and $Q$ , and hence all the moments of $(g \circ f)_{\sharp}P$ and $(g \circ f)_{\sharp}Q$ up to order $k$ must be equal.
573
+
574
+ # H. Sampling from maximum entropy distributions with complex constraints
575
+
576
+ We used the following code to generate maximum entropy samples subject to a mean, covariance, and hypercube constraint. $3^{\mathrm{rd}}$ order sampling code is similar but more complex, as it includes a form of "minibatching" for the entries of the coskewness tensor in order to reduce memory usage.
577
+
578
+ ```python
579
+ from torch import nn, optim, Tensor
580
+ import torch
581
+ ```
582
+
583
+ ```python
584
+ def koleo(x: Tensor) -> Tensor:
585
+ ""Kozachenko-Leonenko estimator of entropy."
586
+ return torch.cdist(x, x).kthvalue(2).values.log().mean()
587
+ ```
588
+
589
+ ```python
590
+ def psd_sqrt(A: Tensor) -> Tensor:
591
+ '''Compute the unique p.s.d. square root of a positive semidefinite matrix.'''
592
+ L, U = torch.linalg.eigh(A)
593
+ L = L[., None, :].clamp_min(0.0)
594
+ return U * L_sqrt() @ U.mH
595
+ ```
596
+
597
+ ```python
598
+ def hypercube_sample( n: int, mean: Tensor, cov: Tensor, *, koleo_weight: float = 1e-3, max_iter: int = 100, seed: int = 0, ): """Generate `n` samples from max-ent distribution on [0, 1]^d with given moments.""" d = mean.shape[-1] eps = torch+finfo(mean.dtype).epsrng = torch.Generator(device=mean_device).manual_seed(seed) # Initialize with max-ent samples matching `mean` and `cov` but without hypercube # constraint. We do so in a way that is robust to singular `cov` z = mean.new_empty([n, d]).normal_(generator=rng) x = torch.clamp(z @ psd_sqrt(cov) + mean, eps, 1 - eps) # Project into hypercube # Reparametrize to enforce hypercube constraint z = nn_PARAMETER(x.logit()) opt = optim.LBFGS([z], line_search_fn="strong_wolfe", max_iter=max_iter) def closure(): opt.zero_grad() x = z.sigmoid() loss = torch(norm(x.mean(0) - mean) + torch(norm(x.T.cov() - cov) loss -= koleo_weight * koleo(x) loss.backup() return float(loss) opt step(closure) return z.sigmoid().detach()
599
+ ```
600
+
601
+ # I. Computational requirements
602
+
603
+ At the scales of the datasets we use in this study, both maximum entropy second order hypercube-constrained sampling and Gaussian optimal transport are extremely cheap to run. In the most expensive configuration (generating around 200K $64 \times 64$ CIFARNet images), the optimization loop takes roughly 65 seconds on a single NVIDIA L40 GPU, while requiring approximately 29 gigabytes of GPU memory. Based on hourly pricing of $1.10 per hour from vast.ai, this will cost around
604
+
605
+ $0.02 to generate a full set of synthetic CIFARNet images, with all other first and second order methods described in this paper requiring fewer computational resources than that.
606
+
607
+ However, the memory required for both hypercube-constrained sampling and Gaussian optimal transport rise with the square of the number of image features (meaning the fourth power of the image size). The compute requirements of the hypercube sampling also rise with the fourth power of the image size, while the requirements for Gaussian optimal transport rise with the sixth power. This means our methods can quickly become computationally infeasible with larger image sizes, which is why we limit ourselves to at most $64 \times 64$ images in this study.
608
+
609
+ Additionally, the maximum entropy third order hypercube-constrained sampling is much more expensive than the second order methods, since the size of the statistic tensor grows as $O(d^{order})$ . This means the coskewness tensor for CIFARNet images has dimensions $12288 \times 12288 \times 12288$ . This would require nearly eight terabytes to store in full precision, which exceeds the memory capacity of our computing hardware by a significant degree.
610
+
611
+ We therefore want to generate fake data that matches CIFARNet's coskewness statistics, without ever computing those statistics in full. Each step of our optimization process for generating third order fake thus only computes the coskewness statistics along matching length $l$ slices of coskewness tensors of the fake and real data, meaning we only need to store two $12288 \times 12288 \times l$ tensors at each step of optimization.
612
+
613
+ CIFARNet is the most expensive dataset to imitate with maximum entropy third order hypercube-constrained sampling, as matching its first, second, and third order statistics at the same time is challenging. We used 10,000 optimization steps per class, taking a total of 36 hours on a single NVIDIA A40 GPU. Using an hourly price of $0.403 from vast.ai, this would cost roughly $14.5.
2024/Neural Networks Learn Statistics of Increasing Complexity/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d0a4e97fdc0305ede291e5150f68ce920e106e57bd7a2fc149cea1afea18c509
3
+ size 1608202
2024/Neural Networks Learn Statistics of Increasing Complexity/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Operators with Localized Integral and Differential Kernels/3932d016-37c4-4572-a91b-464a12932a32_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a5eafc70389ced23905482a88a0c864cd2cafed8d5169d11f67efbdd6a5cab70
3
+ size 3324698
2024/Neural Operators with Localized Integral and Differential Kernels/full.md ADDED
@@ -0,0 +1,750 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Neural Operators with Localized Integral and Differential Kernels
2
+
3
+ Miguel Liu-Schiaffini *1 Julius Berner *1 Boris Bonev *2 Thorsten Kurth 2 Kamyar Azizzadenesheli 2 Anima Anandkumar 1
4
+
5
+ # Abstract
6
+
7
+ Neural operators learn mappings between function spaces, which is practical for learning solution operators of PDEs and other scientific modeling applications. Among them, the Fourier neural operator (FNO) is a popular architecture that performs global convolutions in the Fourier space. However, such global operations are often prone to over-smoothing and may fail to capture local details. In contrast, convolutional neural networks (CNN) can capture local features but are limited to training and inference at a single resolution. In this work, we present a principled approach to operator learning that can capture local features under two frameworks by learning differential operators and integral operators with locally supported kernels. Specifically, inspired by stencil methods, we prove that we obtain differential operators under an appropriate scaling of the kernel values of CNNs. To obtain local integral operators, we utilize suitable basis representations for the kernels based on discrete-continuous convolutions. Both these approaches preserve the properties of operator learning and, hence, the ability to predict at any resolution. Adding our layers to FNOs significantly improves their performance, reducing the relative $L^2$ -error by $34 - 72\%$ in our experiments, which include a turbulent 2D Navier-Stokes and the spherical shallow water equations.
8
+
9
+ # 1. Introduction
10
+
11
+ Deep learning holds the promise to greatly accelerate advances in computational science and engineering, which often require numerical solutions of partial differential equa
12
+
13
+ *Equal contribution $^{1}$ Department of Computing and Mathematical Sciences, California Institute of Technology, Pasadena CA 91125 $^{2}$ NVIDIA, Santa Clara, CA 95051. Correspondence to: Miguel Liu-Schiaffini <mliuschi@caltech.edu>, Julius Berner <jberner@caltech.edu>, Boris Bonev <bbonev@nvidia.com>.
14
+
15
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
16
+
17
+ ![](images/0f665e7044391822dfe8525d0b3e52334c610a2f44bd01522b2516546c67f5b1.jpg)
18
+
19
+ ![](images/974f96541446fead47dda4b51a73b2b694e4b59e7d9e9e62477f2d801ed1291a.jpg)
20
+ Regular kernel
21
+
22
+ ![](images/e7cd4a447926080795b196798f73d5a3cc969d13d4de8c7bb630c4f924f55e3d.jpg)
23
+
24
+ ![](images/4cb99b952c4363e19214ff20e8889bcfac7d7b80e388ba619b2fab35ce491980.jpg)
25
+ Local integral kernel
26
+
27
+ ![](images/0061bf604058e8921e292b89326ff14ceaaabfd1a81bd273298120b84e9ad500.jpg)
28
+
29
+ ![](images/d4fcbeaeb6f50eb661eca168cac8e46104590e3e12f1b17a3885ea25b45a09cb.jpg)
30
+
31
+ ![](images/d04089d8b4c02954caa2fb079ee5640f723fc601ef27c068cb9de1cbbd659b43.jpg)
32
+
33
+ ![](images/d1dd80460d4d1c8e39a27347b7d9e255b936d4e11dc760cd10ab2fe4d9d9fe04.jpg)
34
+ Differential kernel
35
+
36
+ ![](images/26bcccd3e3a6b0587c109fae7f98e6f648ccc8de2bcb9da7da750231182fcb2a.jpg)
37
+
38
+ ![](images/c7cd97d05fcbed1b90a60d35a6636313ed10336bacdf5ddd94dd58b275effacc.jpg)
39
+ Figure 1: Visualization of different limits of a convolution with a discretized function $v$ as the grid width $h$ is refined, i.e., $h \rightarrow 0$ . (Top) A regular convolution is collapsing to a pointwise linear operator. (Middle) Instead, we can use a kernel that can be evaluated at arbitrary resolutions and keep the receptive field unchanged, to converge to a local integral operator, see Section 3.4. (Bottom) Alternatively, we can let it collapse while constraining the kernel appropriately, converging to a differential operator, see Section 3.2.
40
+
41
+ tions (PDEs) (Azizzadenesheli et al., 2024; Zhang et al., 2023; Cuomo et al., 2022). Recent advances in deep learning have enabled applications such as weather forecasting (Pathak et al., 2022; Bonev et al., 2023; Lam et al., 2023), seismology (Sun et al., 2023; Shi et al., 2023), reservoir engineering for carbon capture (Wen et al., 2022; 2023), and many other applications with orders of magnitude speedup over traditional methods.
42
+
43
+ Many of the above results are achieved by neural operators, which learn mappings between function spaces, enabling
44
+
45
+ operator learning for function-valued data (Li et al., 2021; Azizzadenesheli et al., 2024; Raonic et al., 2023). In particular, they are agnostic to the discretization of the input and output functions—a vital property in the context of PDEs where data is often provided at varying resolutions and high-resolution data is costly to generate (Kovachki et al., 2021). In contrast, standard neural networks such as convolutional neural networks (CNN) (Ronneberger et al., 2015; Gupta & Brandstetter, 2022) require the functions to be discretized at a fixed resolution on a regular grid, which is limiting.
46
+
47
+ In the past few years, various architectures of neural operators have been developed. Among them, the Fourier neural operator (FNO) (Li et al., 2020a), which performs global convolutions in Fourier space, has gained popularity and shown good performance in a number of applications. However, such global operations are often prone to oversmoothing and may fail to capture local details. Several other architectures instead learn global operators in physical space (e.g., (Li et al., 2022b)), but they likewise lack the inductive bias of local operations.
48
+
49
+ There are many applications that require a local neural operator. For instance, solution operators of several relevant PDEs are of local nature. Examples include hyperbolic PDEs, which have real-valued characteristic curves (LeVque, 1992). As a result, a solution at a given point will only depend on the initial condition within a neighborhood of that point. As such, their solution operators only have a local receptive field and can, therefore, be efficiently learned by locally supported kernels.
50
+
51
+ Further examples of local operators are differential operators, which can be expressed in terms of pointwise multiplication with the frequency in the spectral domain. Consequently, they introduce large errors when approximated by a finite number of parameters in Fourier space. In this context, we note that the emulation of classical numerical methods to solve partial differential equations, such as finite-difference methods, relies on the usage of local stencils for differentiation (Thomas, 2013). This calls for the presence of local and differential operators in neural operator architectures.
52
+
53
+ Naturally, every local operation can also be represented by a global operation. However, this is typically vastly parameter-inefficient and does not provide a good inductive bias for learning local operations. In the context of neural operators, spectral variants of neural operators, such as the FNO (Li et al., 2020a) and Spherical FNO (SFNO) (Bonev et al., 2023), are theoretically able to approximate local convolutions. However, representing local kernels requires the approximation of a global signal in the spectral domain, in turn demanding a large number of parameters (due to the uncertainty principle (Cohen-Tannoudji et al., 1977)).
54
+
55
+ A few prior works have explored the usage of local oper
56
+
57
+ Table 1: Comparison of different architectures for the solution of PDEs. The top half enumerates architectures for planar domains and the bottom half for spherical domains. Our proposed architectures are highlighted in bold and the differential and integral kernels are detailed in Section 3.
58
+
59
+ <table><tr><td>Architecture</td><td>Efficient</td><td>Receptive field</td><td>no input downsampling</td></tr><tr><td>GNO</td><td>✗</td><td>local/global</td><td>✓</td></tr><tr><td>FNO</td><td>✓</td><td>global</td><td>✓</td></tr><tr><td>CNO / U-Net</td><td>✓</td><td>local</td><td>✗</td></tr><tr><td>FNO + integral</td><td>✓</td><td>local/global</td><td>✓</td></tr><tr><td>FNO + differential</td><td>✓</td><td>local/global</td><td>✓</td></tr><tr><td>SFNO</td><td>✓</td><td>global</td><td>✓</td></tr><tr><td>SFNO + integral</td><td>✓</td><td>local/global</td><td>✓</td></tr></table>
60
+
61
+ ations in the context of neural operators. Li et al. (2020b) introduce graph neural operators (GNOs), which parameterize local integral kernels with a neural network. However, evaluating this network on all combinations of points to compute the integrals can make GNOs computationally expensive and slower than hardware-optimized convolutional kernels. Alternatively, Ye et al. (2022; 2023) propose local neural operators by combining FNOs with convolutional layers and, similarly, Wen et al. (2022) integrate U-Nets and FNOs. Moreover, Raonic et al. (2023) propose convolutional neural operators (CNOs) by leveraging U-Nets that (approximately) respect the bandlimits.
62
+
63
+ However, since all of the above approaches rely on standard convolutional layers on equidistant grids, they have the following shortcomings. First, such approaches do not allow for a natural extension to unstructured grids or other geometries, which are ubiquitous in PDE problems (Li et al., 2023). Moreover, they can only be applied to higher resolutions by downsampling of the (intermediate) inputs to the training resolution. Important high-frequency content can be lost through downsampling, which is particularly problematic for multi-scale data in the context of PDEs. In contrast, we develop convolutional layers that can be applied at any resolution without downsampling. We achieve this by appropriately scaling the receptive field or the values of the kernel (see Figure 1).
64
+
65
+ To summarize, current neural operator architectures suffer from at least one of the following limitations (see Table 1): (1) they cannot succinctly represent operations with a local receptive field, e.g., FNO, or (2) they cannot be applied to different resolutions without relying on explicit up-/downsampling which may degrade performance, e.g., CNO, or (3) they cannot be scaled to obtain sufficient expressivity, since they incur prohibitively high computationally costs, such as, for instance, GNOs.
66
+
67
+ ![](images/0ce05ca54c85be440bb022caa8b73191a8d821a22211eb15f3b0d64f22a4158e.jpg)
68
+ Figure 2: A single layer of our local neural operator. We add (up to) two local operations using the convolutions with differential kernel (Section 3.2) and local integral kernel (Section 3.4).
69
+
70
+ Our approach: In this work, we develop computationally efficient and principled approaches to include operations in neural operators that capture local receptive fields while retaining the ability to approximate operators and, hence, extend to multiple resolutions. We consider two kinds of localized operators: differential operators and integral kernel operators with a locally supported kernel (see Figure 1).
71
+
72
+ For the first, we draw inspiration from stencils of finite-difference methods. We derive conditions to modify convolutional layers such that they converge to a unique differential operator when the discretization is refined. For the second case of local integral operators, we adapt discrete-continuous (DISCO) convolutions (Ocampo et al., 2022) to provide an efficient, discretization-agnostic framework that can be applied to general meshes on both planar and spherical geometries. To our knowledge, we are the first to connect the DISCO framework to operator learning.
73
+
74
+ Finally, we devise efficient implementations of both layers and show that the inductive bias of local operations (see Figure 2) can significantly improve the performance of FNOs and SFNOs on three different benchmarks. In particular, we learn a differential operator in a Darcy flow setting for motivating the need for neural operators with local inductive biases, and we improve over FNO by $87\%$ . Additionally, we improve over the baseline (S)FNO by $34\%$ on turbulent 2D Navier-Stokes equations, by $72\%$ on the shallow water equations on the sphere, and by $63\%$ on the 2D diffusion-reaction equation. We also apply our method on modeling a flow past a cylinder, discretized on an irregular grid. We improve upon the best baseline by $42\%$ .
75
+
76
+ Outline: The remainder of the paper is organized as follows: Section 2 outlines connections to other architectures and ideas within the neural operator literature. Section 3
77
+
78
+ introduces the main ideas of the paper as well as the macroarchitecture of our proposed neural operator. Section 4 discusses numerical experiments and results, and Section 5 summarizes the findings of our work.
79
+
80
+ # 2. Related work and connections to other frameworks
81
+
82
+ We strive to formulate local operations that are consistent with the neural operator paradigm, which stipulates that operations within the model are independent of the discretization of input functions (Kovachki et al., 2021). In principle, this allows the evaluation of the neural operator on arbitrary meshes<sup>1</sup>. Several discretization-independent local operations have been introduced in the deep learning literature. We outline the connections between these works in the following.
83
+
84
+ GNOs and Hypernetworks: In general, local operations can be provided by graph neural operators (GNOs) (Li et al., 2020b). However, in their general form, GNOs are typically slow, hard-to-train, and not equivariant w.r.t. the symmetry group of the underlying domain (Li et al., 2020c). Taking a convolutional kernel, GNOs subsume a series of works on hypernetwork approaches for convolutional layers (Wang et al., 2018; Shocher et al., 2020).
85
+
86
+ DISCO Convolutions: We show that DISCO convolutions (Ocampo et al., 2022) represent special cases of GNOs with a convolutional kernel, which enables generalization to different geometries and an efficient implementation, since the kernel can be pre-computed (see Section 3). In particular, DISCO convolutions are typically implemented as learnable linear combinations of fixed basis functions instead of neural networks. Also, they define maps that are equivariant up to the error resulting from the quadrature rule.
87
+
88
+ Scale-Equivariant CNNs: In the area of computer vision, there has been a series of adaptations of CNNs to be (locally) scale-equivariant by using filter dilation, filter rescalings in the discrete domain (Rahman & Yeh, 2023; Sosnovik et al., 2021; Worrall & Welling, 2019) or the continuous domain (Xu et al., 2014; Sosnovik et al., 2019; Ghosh & Gupta, 2019), or input rescalings (Marcos et al., 2018). Moreover, filter rescaling has also been explored for more general group-convolutions (Bekkers, 2019).
89
+
90
+ Neural operators and convolutional layers: While neural operators have been developed independently of the above approaches, one can leverage similar ideas. In partic-
91
+
92
+ ular, one can rescale (i.e., up- and downsample) input and output functions of a convolutional layer or the kernel itself to obtain neural operators. We note that these approaches are, in principle, also applicable to a trained network (without the need for retraining).
93
+
94
+ In combination with FNOs, interpolation of the input and output functions has been explored by Wen et al. (2022). Also, Ye et al. (2023; 2022) emphasized the need for local convolutions in FNOs, however, they do not discuss the application to different discretizations. Combined with correct treatment of the bandlimit of the functions (based on Karras et al. (2021)), the convolutional neural operator (Raonic et al., 2023) also uses up- and downsampling of the input and output functions to apply a U-Net architecture.
95
+
96
+ We note that for bandlimited functions sampled above the Nyquist frequency, the discrete convolutions have a unique correspondence to convolutions in function space, representing a special case of the DISCO framework. However, downsampling the input function introduces errors in cases where the function is not bandlimited.
97
+
98
+ # 3. Local Layers
99
+
100
+ In this section, we present two conceptually different types of local layers for neural operators. First, we present efficient integral transforms with local kernels. Then, we focus on the approximation of differential operators. We consider an input function
101
+
102
+ $$
103
+ v \colon \mathbb {R} ^ {d} \supset D \to \mathbb {R} ^ {n}
104
+ $$
105
+
106
+ that is discretized on meshes $D^h \subset D$ with width $h$ on a domain $D \subset \mathbb{R}^d$ . For notational convenience, we present most ideas for the case $d = 1$ , but it is straightforward to extend them to higher-dimensional domains.
107
+
108
+ # 3.1. Motivation: Convolutional Layer
109
+
110
+ We take inspiration from convolutional layers since they represent the prototypical version of an efficient, local operation in neural networks. However, we will see that they are not consistent in function spaces; in particular, they converge to a pointwise linear operator when we refine the discretization of the input function $v$ .
111
+
112
+ Let us start by recalling the definition of a convolutional layer, specifically a stride-1 convolution with $n$ input channels, a single $^3$ output channel, and kernel $K = (K_{i})_{i = 1}^{S}\subset \mathbb{R}^{n}$ of (odd) size $S$ . Assuming a regular grid, i.e., $D^{h} = \{x_{j}\}_{j = 1}^{m}\subset \mathbb{R}$ with $x_{j + 1} - x_{j} = h$ , we can define the output
113
+
114
+ of the convolutional layer at $y \in D^{h}$ as
115
+
116
+ $$
117
+ \begin{array}{l} \operatorname {C o n v} _ {K} [ v ] (y) = \left(K \star \{v \left(x _ {j}\right) \} _ {j = 1} ^ {m}\right) (y) \\ = \sum_ {i = 1} ^ {S} K _ {i} \cdot v \left(z _ {i} + y\right), \tag {1} \\ \end{array}
118
+ $$
119
+
120
+ with
121
+
122
+ $$
123
+ z _ {i} = h \left(i - 1 - \frac {S - 1}{2}\right), \tag {2}
124
+ $$
125
+
126
+ where we use zero-padding, i.e., $v(x) = 0$ for $x \notin D$ .
127
+
128
+ If we now take the same kernel $K$ for finer discretizations, i.e., $h\to 0$ , we see from (2) that $z_{i}\rightarrow 0$ and therefore,
129
+
130
+ $$
131
+ \lim _ {h \to 0} \operatorname {C o n v} _ {K} [ v ] (y) = \bar {K} \cdot v (y) \quad \text {w i t h} \quad \bar {K} = \sum_ {i = 1} ^ {S} K _ {i},
132
+ $$
133
+
134
+ given that the function $v$ is continuous at $y$ . In other words, the receptive field with respect to the underlying domain $D$ is shrinking to a point, and the convolutional layer is converging to a pointwise linear operator. One way to circumvent this issue would be to downsample the function $v$ appropriately to a pre-defined grid. This is done for previous approaches mentioned in Section 2, at the cost of losing high-frequency information in the input.
135
+
136
+ In the following, we will present two ways of working on different input resolutions, while not collapsing to a pointwise operator, see also Figure 1. First, we show that rescaling (1) by the reciprocal resolution $\frac{1}{h}$ and constraining the kernel $K$ leads to differential operators. Then, we define the kernel $K$ as the evaluation of a function over a fixed input domain, leading to integral operators.
137
+
138
+ # 3.2. Differential Layer
139
+
140
+ In this section, we construct a layer that converges to a differential operator when the width $h$ of the discretization $D^{h}$ tends to zero. To prevent the operator from collapsing to a pointwise operation, we constrain and rescale the values of the kernel (according to the discretization width). Note that without rescaling, we would again recover a pointwise operator; however, due to the rescaling by a factor of $\frac{1}{h}$ , the limit might not exist without constraining the values of the kernel. The next proposition shows that it is sufficient to subtract the average kernel value. See Appendix A.1 for a more general statement and a corresponding proof.
141
+
142
+ Proposition 3.1 (First-order differential layer). Let $D_h \subset \mathbb{R}^d$ be a regular grid of width $h$ and let $v \in C^1(D, \mathbb{R}^n)$ . Then, for every kernel $(K_i)_{i=1}^S \subset \mathbb{R}^n$ , there exists $(b_j)_{j=1}^n \subset \mathbb{R}^d$ such that
143
+
144
+ $$
145
+ \lim _ {h \rightarrow 0} \frac {1}{h} \operatorname {C o n v} _ {K - \bar {K}} [ v ] (y) = \sum_ {j = 1} ^ {n} \nabla v _ {j} (y) \cdot b _ {j}
146
+ $$
147
+
148
+ for every $y \in D_h$ , where $\bar{K} = \sum_{i=1}^{S} K_i$ .
149
+
150
+ Proposition 3.1 shows that we can learn different directional derivatives using an appropriate adaptation of standard convolutional layers as in Section 3.1. Specifically, we center the kernel $K$ by subtracting its mean $\bar{K}$ and scale the result by the reciprocal resolution $\frac{1}{h}$ . In Appendix A.2, we empirically evaluate the convergence in resolution to a unique differential operator on a simple example.
151
+
152
+ Remark 3.2 (Higher-order differential operator). Similarly, we could approximate $k$ -th order differential operator with further constraints on the elements of $K$ and a scaling factor of $\frac{1}{h^k}$ . However, we do not implement them in practice since we can also approximate higher-order derivatives by composing first-order differential layers.
153
+
154
+ # 3.3. Integral Kernel Layers
155
+
156
+ Instead of rescaling the kernel, we can also adapt the size of the kernel such that the receptive field stays the same, i.e., is independent of the resolution $h$ . In this section, we begin at the general graph neural operator and demonstrate how (considering the desirable properties of translation equivariance and efficiency) we arrive at local convolutional layers with adaptive kernel sizes using a fixed number of parameters.
157
+
158
+ Graph neural operator (GNO): One of the most general instantiations of a neural operator is arguably the graph neural operator (GNO)
159
+
160
+ $$
161
+ \begin{array}{l} \mathrm {G N O} _ {k} [ v ] (y) = \int_ {U (y)} k (x, y) \cdot v (x) \mathrm {d} x (3) \\ \approx \sum_ {x \in D ^ {h} \cap U (y)} k (x, y) \cdot v (x) q _ {x}, (4) \\ \end{array}
162
+ $$
163
+
164
+ where $k$ is a kernel (typically parametrized by a neural network) and $q_{x} \in \mathbb{R}$ are suitable quadrature weights. While the GNO can represent local integral operators by picking a suitably small neighborhood $U(y) \subset D$ , the evaluation of the kernel and aggregation in each neighborhood $U(y)$ is slow and memory-intensive for general kernels $k \colon D \times D \to \mathbb{R}^n$ . Moreover, for an arbitrary kernel, GNO is not equivariant w.r.t. the symmetry group of the underlying domain. In particular, we lose the translation equivariance of convolutional layers for planar domains.
165
+
166
+ Fourier Neural Operator (FNO): To retain translation equivariance, we can consider kernels of the form
167
+
168
+ $$
169
+ k (x, y) = \kappa (x - y)
170
+ $$
171
+
172
+ and $U(y) = y + \operatorname{supp}(\kappa)$ . Then, we can rewrite the GNO as a convolution, i.e.,
173
+
174
+ $$
175
+ \mathrm {G N O} _ {\kappa} [ v ] = \kappa \star v. \tag {5}
176
+ $$
177
+
178
+ If we are dealing with periodic functions on the torus $D$ , we can leverage the convolution theorem to compute (5), i.e.,
179
+
180
+ $$
181
+ \mathcal {F} [ \kappa \star v ] = \overline {{\mathcal {F} [ \kappa ]}} \cdot \mathcal {F} [ v ], \tag {6}
182
+ $$
183
+
184
+ where $\mathcal{F}$ maps functions to their Fourier series coefficients. The Fourier Neural Operator (FNO) now directly parametrizes $\overline{\mathcal{F}[\kappa]}$ and approximates $\mathcal{F}$ using the fast Fourier transform given that $D^{h}$ is an equidistant grid. While this leads to an efficient version of (4), it assumes that $\overline{\mathcal{F}[\kappa]}$ has only finitely many nonzero Fourier modes—or, equivalently, that the kernel $\kappa$ has full support, making (5) a global convolution.
185
+
186
+ Localized convolutions: To construct a locally supported kernel $\kappa$ , we can directly discretize the convolution in (5), i.e.,
187
+
188
+ $$
189
+ \mathrm {G N O} _ {\kappa} [ v ] (y) \approx \sum_ {x \in D ^ {h}} \kappa (x - y) \cdot v (x) q _ {x}. \tag {7}
190
+ $$
191
+
192
+ Note that the sum can be taken only over the $x \in D^h$ with
193
+
194
+ $$
195
+ x - y \in \operatorname {s u p p} (\kappa).
196
+ $$
197
+
198
+ We remark that for an equidistant grid and constant<sup>4</sup> quadrature weights, $q = q_{x}$ , evaluating $\mathrm{GNO}_{\kappa}[v]$ at $y \in D^{h}$ corresponds to a standard convolution as in (1) with kernel
199
+
200
+ $$
201
+ K _ {i} = q \kappa (z _ {i}), \quad i = 1, \dots , S,
202
+ $$
203
+
204
+ where $z_{i}$ is defined as in (2) and $S$ is sufficiently large such that $\operatorname{supp}(\kappa) \subset [z_1, z_S]$ . See Appendix B.2 for details. However, the advantage of the formulation in (7) is the fact that we can reuse the same kernel $\kappa$ across different resolutions (with the same receptive field $\operatorname{supp}(\kappa)$ ).
205
+
206
+ The remaining question is centered around the parametrization of the kernel. One could draw inspiration from works on hypernetworks in computer vision and parameterize it using a neural network (Shocher et al., 2020). However, this is significantly more costly than a standard convolution. Another idea is to interpolate a fixed-sized kernel, e.g., using sinc or bi-linear interpolation. A more general version of the latter, based on a learnable linear combination of hat functions, is also known as discrete-continuous (DISCO) convolution and has shown to be effective in different applications (Ocampo et al., 2022). We note that this formulation is closest to the original convolutional layer typically used in computer vision. However, in the next section, we see that it also allows us to use unstructured meshes and formulate the operation on more general domains $D \subset \mathbb{R}^d$ .
207
+
208
+ # 3.4. General discrete-continuous convolutions
209
+
210
+ The local support of the kernel in equation (7) allows us to efficiently evaluate local convolutions in subdomains
211
+
212
+ of $\mathbb{R}^d$ using sparse matrix-vector products. However, the operation $x - y$ , which shifts the convolution kernel, is not well-defined on manifolds such as the sphere. To generalize the previous discussion to a Lie group $G$ , we first replace the shift operator with the group action $g$ and obtain the so-called group convolution
213
+
214
+ $$
215
+ \begin{array}{l} \operatorname {G r o u p C o n v} _ {\kappa} [ v ] (g) = (\kappa \star v) (g) \\ = \int_ {G} \kappa (g ^ {- 1} x) \cdot v (x) d \mu (x), \tag {8} \\ \end{array}
216
+ $$
217
+
218
+ where $g, x \in G$ and $\mathrm{d}\mu(x)$ is the invariant Haar measure on $G$ . This formulation presents us with the challenge of being non-trivial to discretize. The framework of DISCO convolutions (Ocampo et al., 2022) achieves this by approximating the integral with a quadrature rule while evaluating the group action continuously:
219
+
220
+ $$
221
+ \begin{array}{l} (k \star v) (g _ {i}) \approx \sum_ {j = 1} ^ {m} \kappa \left(g _ {i} ^ {- 1} x _ {j}\right) \cdot v \left(x _ {j}\right) q _ {j} \\ = \sum_ {j = 1} ^ {m} K _ {i j} \cdot v \left(x _ {j}\right) q _ {j}. \tag {9} \\ \end{array}
222
+ $$
223
+
224
+ Here $(x_{j})_{j = 1}^{m}\subset G$ represent quadrature points with corresponding quadrature weights $q_{j}$ . For a given set of output positions $g_{i}$ , we obtain the fully discrete formulation as matrix-vector product with the matrix $K_{ij} = \kappa (g_i^{-1}x_j)$ which is sparse due to the local support of the kernel. To parameterize the kernel, we choose a linear combination of basis functions $\kappa^{(\ell)}$ , such that $\kappa = \sum_{\ell = 1}^{L}\theta^{(\ell)}\kappa^{(\ell)}$ with trainable parameters $\theta^{(\ell)}\in \mathbb{R}$ .
225
+
226
+ Although we have presented the general idea only for Lie groups $G$ , it is possible to construct the DISCO convolution also on manifolds with a group action acting on them, such as the 2-sphere $\mathbb{S}^2$ . For a detailed discussion of DISCO convolutions and a construction in one dimension, we point the reader to Appendix B and Ocampo et al. (2022).
227
+
228
+ Remark 3.3 (Exact integration and equivariance). We note that DISCO convolutions satisfy equivariance properties for function classes that can be exactly integrated. For instance, on planar domains, these could be polynomials when using Legendre points. For equidistant grids on the torus, exact integration holds for bandlimited functions that are sampled above the Nyquist frequency.
229
+
230
+ # 3.5. Local neural operator architecture
231
+
232
+ To design our neural operator, we want to combine pointwise, local, and global operations. To this end, we take an FNO (or SFNO for spherical problems) as a starting point, which already features global operations in Fourier space and pointwise operations using its residual connections. Then, we augment the operators by incorporating our
233
+
234
+ ![](images/54d453b927088201ddd761b2c04e8fca4bf2edbf7ea0997ec5bc315237e670b4.jpg)
235
+ initial condition
236
+
237
+ ![](images/bdb6b9ec2bee76d37087c89d35d107a8a36ea585a43cf728b2a21046e32bf704.jpg)
238
+ initial condition
239
+
240
+ ![](images/e0ad9d90318fa4c47f386446edd3f659e5b948d54ddf47c755613ed60c6eed6a.jpg)
241
+ ground truth
242
+
243
+ ![](images/56253caf99d3161817c4c6ba6968c899c18b2b53d061e6cd721977d5688edc73.jpg)
244
+ ground truth
245
+
246
+ ![](images/d82493be12a4ec7e9645b4ab2715ad0c0628d6dcd2c7e05e0732c73fb189ef3f.jpg)
247
+ prediction (5 steps)
248
+ Figure 3: Initial condition, ground truth, and corresponding autoregressive predictions of our proposed models for the Navier-Stokes problem and the shallow water equations.
249
+
250
+ ![](images/6b0de6feb81466d42c836f3ad16947bb1625ce43b3f8a5d4ecd00eb0b9dd3e47.jpg)
251
+ prediction (5 steps)
252
+ (a) Navier-Stokes Eqns.
253
+ (b) Shallow Water Eqns.
254
+
255
+ proposed local convolutions from the previous section as additional branches in the respective layers (see Figure 2). These four branches are summed pointwise within each local neural operator layer. The resulting architecture can be trained end-to-end with any standard operator learning training procedure and loss.
256
+
257
+ # 4. Experiments
258
+
259
+ To validate the effectiveness of local operators, we evaluate the architecture on five PDE problems. Figure 3 and Figure 4 show samples on three of these problems. In all five cases, we incorporate our proposed local operators into existing FNO and SFNO architectures to demonstrate that a significant improvement in performance can be achieved by introducing the inductive bias of local convolutions. This
260
+
261
+ ![](images/83d9741840c6571c5094b17c6e73d427c8f3480a1a710265bc5e118a0a8acc8f.jpg)
262
+ ground truth
263
+
264
+ ![](images/6c529fa01d1edcc512c16406eb4a655e5cdb0c4d5bcdeb0091a4a35cde4c6fae.jpg)
265
+ prediction
266
+ Figure 4: Ground truth and prediction of the horizontal velocity for the flow past a cylinder. The data is represented on an unstructured mesh, which is visualized in gray color. Our proposed architecture can be readily applied to data on unstructured meshes such as this one. For this figure, we learn the residual to the previous time step.
267
+
268
+ section describes the experimental setting for our problems. We provide further experiments, specific implementation details<sup>5</sup>, and hyperparameters in Appendix C.
269
+
270
+ # 4.1. Darcy flow
271
+
272
+ We first consider the steady-state, two-dimensional Darcy flow equation
273
+
274
+ $$
275
+ - \nabla \cdot (a \nabla u) = f, \quad u | _ {\partial D} = 0, \tag {10}
276
+ $$
277
+
278
+ on the domain $D = (0,1)^2$ . In this problem, we motivate the need to incorporate local operators as inductive biases in neural operator architectures. To this end, we explicitly construct a problem that requires approximating the forcing function $f$ for a given diffusion coefficient $a$ and pressure $u$ in (10). In other words, the task consists of learning the differential operator
279
+
280
+ $$
281
+ u \mapsto - \nabla \cdot (a \nabla u). \tag {11}
282
+ $$
283
+
284
+ Following the setup of Hasani & Ward (2024), we take
285
+
286
+ $$
287
+ a (x) = \left[ \begin{array}{c c} x _ {1} ^ {2} & \sin (x _ {1} x _ {2}) \\ x _ {1} + x _ {2} & x _ {2} \end{array} \right]
288
+ $$
289
+
290
+ for $x \in D$ . We then compare the performance of our proposed models: FNO in parallel with differential kernels, FNO with integral kernels, and FNO with both kernels. We also compare with a baseline FNO and the U-Net architecture from Gupta & Brandstetter (2022). Moreover, we perform zero-shot super-resolution on this problem; these results can be found in Appendix C.6.
291
+
292
+ # 4.2. Navier-Stokes equations
293
+
294
+ Next, we consider the two-dimensional Navier-Stokes equation on the torus. In particular, we consider Kolmogorov flows, which can be described by
295
+
296
+ $$
297
+ \begin{array}{l} \partial_ {t} u + u \cdot \nabla u - \frac {1}{\operatorname {R e}} \Delta u = - \nabla p + \sin (m y) \hat {x} \tag {12} \\ \nabla \cdot u = 0 \\ \end{array}
298
+ $$
299
+
300
+ on the spatial domain $D = (0,2\pi)^2$ equipped with periodic boundary conditions. In the above, $u$ and $p$ denote the velocity and pressure, and Re denotes the Reynolds number of the flow. We want to learn the solution operator mapping initial conditions $u(\cdot ,0) = u_0$ to the time-evolved solution in vorticity form $w(\cdot ,\tau)$ at time $\tau \in (0,\infty)$ , where the vorticity is given by
301
+
302
+ $$
303
+ w = (\nabla \times u) \hat {z} \tag {13}
304
+ $$
305
+
306
+ with $\hat{z}$ being a unit vector normal to the plane.
307
+
308
+ We consider $m = 4$ and $\mathrm{Re} = 5000$ , and we emphasize that learning the solution operator for such a high Reynolds number is very challenging due to the turbulent nature and small-scale features of the flow. We conjecture that the baseline FNO is prone to over-smoothing over the finer scales, consequently leading to a degradation of performance.
309
+
310
+ To validate this conjecture, we compare the performance of the local neural operator with a baseline FNO and U-Net and evaluate the effectiveness of our proposed differential and integral kernels, respectively.
311
+
312
+ # 4.3. Diffusion-Reaction equation
313
+
314
+ Moreover, we consider the 2D Diffusion-Reaction equation from Takamoto et al. (2022) which can, for instance, be used for modeling biological pattern formation. In particular, we want to predict the time-evolution of two non-linearly coupled variables, i.e., the activator $u$ and the inhibitor $v$ , solving the equation
315
+
316
+ $$
317
+ \partial_ {t} u = c _ {u} \Delta u + R _ {u} (u, v), \tag {14}
318
+ $$
319
+
320
+ $$
321
+ \partial_ {t} v = c _ {v} \Delta v + R _ {v} (u, v), \tag {15}
322
+ $$
323
+
324
+ for the spatial domain $D = (-1, 1)^2$ with no-flow Neumann boundary condition. The reaction functions $R_u$ and $R_v$ are given by the Fitzhugh-Nagumo equation
325
+
326
+ $$
327
+ R _ {u} (u, v) = u - u ^ {3} - k - v, \quad R _ {v} (u, v) = u - v \tag {16}
328
+ $$
329
+
330
+ and we consider $c_{u} = 10^{-3}, c_{v} = 5 \cdot 10^{-3}$ , and $k = 5 \cdot 10^{-3}$ . The task is to learn the operator mapping the state $(u, v)$ at consecutive time-steps to the time-evolved state and we can compare against the baselines from Takamoto et al. (2022).
331
+
332
+ Table 2: Results for the 2D diffusion-reaction equation from PDEBench (Takamoto et al., 2022). We present their U-Net baseline results and metrics. In particular, we report the RMSE errors for the low, medium, and high frequency ranges (fRMSE low/med./high), and the (absolute) RMSE, the maximum error, RMSE errors at the boundary (bRMSE), as well as RMSE for the conserved values (cRMSE).
333
+
334
+ <table><tr><td>Model</td><td># Params</td><td>Rel. L2-error</td><td>fRMSE low</td><td>fRMSE med.</td><td>fRMSE high</td><td>RMSE</td><td>max. error</td><td>bRMSE</td><td>cRMSE</td></tr><tr><td>U-Net</td><td>7.8·105</td><td>8.4·10-1</td><td>1.7·10-2</td><td>8.2·10-4</td><td>5.7·10-2</td><td>6.1·10-2</td><td>1.9·10-1</td><td>7.8·10-2</td><td>3.9·10-2</td></tr><tr><td>FNO</td><td>9.3·105</td><td>8.3·10-2</td><td>6.2·10-4</td><td>5.6·10-4</td><td>2.4·10-4</td><td>5.2·10-3</td><td>7.3·10-2</td><td>1.5·10-2</td><td>1.2·10-3</td></tr><tr><td>FNO + loc. int (ours)</td><td>8.8·105</td><td>6.3·10-2</td><td>4.0·10-4</td><td>4.6·10-4</td><td>1.5·10-4</td><td>3.6·10-3</td><td>5.0·10-2</td><td>1.0·10-2</td><td>4.8·10-4</td></tr><tr><td>FNO + diff. (ours)</td><td>8.8·105</td><td>3.4·10-2</td><td>4.4·10-4</td><td>1.9·10-4</td><td>6.1·10-5</td><td>1.9·10-3</td><td>3.5·10-2</td><td>4.4·10-3</td><td>1.1·10-3</td></tr><tr><td>FNO + loc. int. + diff. (ours)</td><td>8.9·105</td><td>3.1·10-2</td><td>3.2·10-4</td><td>1.8·10-4</td><td>6.2·10-5</td><td>1.7·10-3</td><td>3.3·10-2</td><td>4.2·10-3</td><td>7.4·10-4</td></tr></table>
335
+
336
+ # 4.4. Shallow water equations
337
+
338
+ To test the approach on the sphere, we consider the shallow water equations on the rotating sphere. They represent a system of hyperbolic partial differential equations used to model a variety of geophysical flow phenomena, such as atmospheric flows, tsunamis, and storm surges. They can be formulated in terms of the evolution of two state variables $\varphi$ and $u$ (geopotential height and the tangential velocity of the fluid column), governed by the equations
339
+
340
+ $$
341
+ \partial_ {t} \varphi + \nabla \cdot (\varphi u) = 0, \tag {17}
342
+ $$
343
+
344
+ $$
345
+ \partial_ {t} (\varphi u) + \nabla \cdot F = f,
346
+ $$
347
+
348
+ on the sphere $D = \mathbb{S}^2$ with suitable initial conditions $\varphi (\cdot ,0) = \varphi_0$ and $u(\cdot ,0) = u_{0}$ , a momentum flux tensor
349
+
350
+ $$
351
+ F _ {i j} = \varphi u _ {i} u _ {j} + \frac {1}{2} \varphi^ {2}, \tag {18}
352
+ $$
353
+
354
+ and a source term
355
+
356
+ $$
357
+ f = - 2 \Omega x \times (\varphi u), \tag {19}
358
+ $$
359
+
360
+ which models the Coriolis force due to the rotation of the sphere with angular velocity $\Omega$ .
361
+
362
+ As baselines, we use a planar U-Net architecture, a spherical U-Net, where convolutions are performed using local integral kernels on the sphere, and an SFNO architecture. On the sphere, we only consider the impact of the integral kernel on the SFNO architecture, as it allows for a natural extension to the sphere (see Section 3.4).
363
+
364
+ # 4.5. Flow past a cylinder
365
+
366
+ Due to the formulation of the discrete-continuous convolutions, our approach can be readily generalized to unstructured meshes. To demonstrate this, we consider the Navier-Stokes equations in a two-dimensional channel with a cylindrical structure and a membrane attached to it (see Rahman et al., 2024). Figure 4 depicts a sample from the validation dataset alongside predictions from our model.
367
+
368
+ The dataset considers the flow past the cylinder with Reynolds number $\mathrm{Re} = 2000$ . Rahman et al. (2024) provide several baselines for a low-data regime (250 samples),
369
+
370
+ Table 3: Results for the cylinder flow problem in a low-data regime with 250 training samples. Baseline results are taken from Rahman et al. (2024) and all architecture including ours perform a direct prediction (no residual prediction) of the velocity and pressure at the next time step.
371
+
372
+ <table><tr><td>Model</td><td># Parameters</td><td>MSE error</td></tr><tr><td>GINO</td><td>6·107</td><td>2.09·10-2</td></tr><tr><td>DeepONet</td><td>6·106</td><td>1.39·10-1</td></tr><tr><td>GNN</td><td>6·105</td><td>5.00·10-3</td></tr><tr><td>ViT</td><td>3·107</td><td>1.19·10-2</td></tr><tr><td>U-net</td><td>3·107</td><td>9.34·10-2</td></tr><tr><td>FNO + local integral kernel (ours)</td><td>10·106</td><td>2.88·10-3</td></tr></table>
373
+
374
+ where the task is to predict the velocity and pressure after a given time step. To deal with the unstructured grid, we adapt the architecture to utilize local integral operators as encoders and decoders to transform the data into a latent representation on an equidistant grid. Then, we can use an FNO with our local integration layers in the latent space.
375
+
376
+ # 4.6. Results and discussion
377
+
378
+ The results of our numerical experiments are reported $^{6}$ in Tables 2 to 4. We observe significant performance gains over the baselines in all five problem settings. In particular, we notice that the best performance in the reported relative $L^2$ errors is achieved with the inclusion of both global and local operations, despite an overall reduction in parameter count with respect to their corresponding FNO/SFNO baselines. This is particularly pronounced for the Navier-Stokes and shallow water equations, where errors can accumulate in autoregressive roll-outs. We attribute this to our models' inductive bias, allowing it to better capture the fine-grained scales and thus achieve better performance. In Table 2, we also show that our local layers achieve lower errors at high frequencies for the diffusion-reaction equation, indicating that local, high-frequency features are correctly captured.
379
+
380
+ The Navier-Stokes problem demonstrates the efficacy of
381
+
382
+ Table 4: Experimental results for Darcy flow, Navier-Stokes, and the spherical shallow water problems. For all three problems, the test error is reported in terms of the relative $L^2$ -error after a single step. For the time-dependent Navier-Stokes and shallow water equations, we also predict the error after 5 autoregressive steps.
383
+
384
+ <table><tr><td rowspan="2">Model</td><td colspan="4">Parameters</td><td colspan="2">Relative L2-Error</td></tr><tr><td># Layers</td><td># Modes</td><td>Embedding</td><td># Parameters</td><td>1 step</td><td>5 steps</td></tr><tr><td colspan="7">Darcy Flow</td></tr><tr><td>U-Net</td><td>17</td><td>-</td><td>18</td><td>2.850 · 106</td><td>1.380 · 10-2</td><td>-</td></tr><tr><td>FNO</td><td>4</td><td>20</td><td>41</td><td>2.715 · 106</td><td>5.867 · 10-2</td><td>-</td></tr><tr><td>FNO + diff. kernel (ours)</td><td>4</td><td>12</td><td>65</td><td>2.638 · 106</td><td>7.357 · 10-3</td><td>-</td></tr><tr><td>FNO + local integral kernel (ours)</td><td>4</td><td>20</td><td>40</td><td>2.617 · 106</td><td>6.034 · 10-2</td><td>-</td></tr><tr><td>FNO + local integral + diff. kernel (ours)</td><td>4</td><td>12</td><td>64</td><td>2.639 · 106</td><td>9.032 · 10-3</td><td>-</td></tr><tr><td colspan="7">Navier-Stokes Equations</td></tr><tr><td>U-Net</td><td>17</td><td>-</td><td>56</td><td>2.758 · 107</td><td>1.674 · 10-1</td><td>5.115 · 10-1</td></tr><tr><td>FNO</td><td>4</td><td>40</td><td>65</td><td>2.711 · 107</td><td>1.381 · 10-1</td><td>2.360 · 10-1</td></tr><tr><td>FNO + diff. kernel (ours)</td><td>4</td><td>40</td><td>65</td><td>2.726 · 107</td><td>1.073 · 10-1</td><td>2.129 · 10-1</td></tr><tr><td>FNO + local integral kernel (ours)</td><td>4</td><td>20</td><td>129</td><td>2.716 · 107</td><td>1.110 · 10-1</td><td>2.183 · 10-1</td></tr><tr><td>FNO + local integral + diff. kernel (ours)</td><td>4</td><td>20</td><td>127</td><td>2.691 · 107</td><td>9.022 · 10-2</td><td>1.956 · 10-1</td></tr><tr><td colspan="7">Spherical Shallow Water Equations</td></tr><tr><td>U-Net</td><td>17</td><td>-</td><td>32</td><td>2.898 · 106</td><td>1.341 · 10-3</td><td>1.226 · 10-2</td></tr><tr><td>Spherical U-Net (with local integral kernel)</td><td>17</td><td>-</td><td>32</td><td>1.639 · 106</td><td>6.160 · 10-4</td><td>3.265 · 10-3</td></tr><tr><td>SFNO</td><td>4</td><td>128</td><td>32</td><td>1.066 · 106</td><td>9.220 · 10-4</td><td>3.185 · 10-3</td></tr><tr><td>SFNO + local integral kernel (ours)</td><td>4</td><td>128</td><td>31</td><td>1.019 · 106</td><td>2.624 · 10-4</td><td>5.392 · 10-4</td></tr></table>
385
+
386
+ combining both differential and local integral kernels with the global convolution of the FNO. Our proposed model with these three components together outperforms models with only two of these three operations. While hyperbolic PDEs likely require only local receptive fields (due to finite information propagation (LeVeque, 1992)) and elliptic problems instead require global information, we observe that many practical problems involving a mixture of operators benefit from a hybrid approach such as ours.
387
+
388
+ We note that the Darcy flow problem is meant to motivate the need for our proposed differential kernels (and indeed, our best-performing model achieves $87\%$ lower relative $L^2$ -error than FNO). Since the ground truth operator in (11) is a differential operator, we expect (and observe) that for high accuracies, very local (i.e., differential) kernels are needed. In particular, we see that the baseline FNO performs poorly, and the local integral kernels do not provide additional benefits. However, we include them in Table 4 for completeness.
389
+
390
+ Finally, we perform super-resolution experiments, in which we train the model at a given resolution and then evaluate it at another resolution without fine-tuning. Figure 8 depicts super-resolution results at twice the training resolution for both the Darcy and shallow water equations. The corresponding numerical results are listed in Table 5. We observe that our approach generalizes well across resolutions and outperforms the baselines across all tested resolutions. For a detailed discussion of the super-resolution experiments,
391
+
392
+ we refer the reader to Appendix C.6.
393
+
394
+ # 5. Conclusion
395
+
396
+ In this paper, we have demonstrated a novel framework for local neural operators. We have shown how convolutional layers can be constrained to realize neural operators that approximate differential operators in the continuous limit. Moreover, we have derived convolutions with local integral kernels from the general notion of an integral transform and the related graph neural operator. Finally, we have constructed localized neural operators on the sphere by using discrete-continuous convolutions (Ocampo et al., 2022).
397
+
398
+ The resulting neural operators introduce a strong inductive bias for learning operators with local receptive fields. In particular, their formulation ensures the same local operation everywhere in the domain. This equivariance (w.r.t. the underlying symmetry group) reduces the required number of learnable parameters and improves generalization.
399
+
400
+ Our numerical experiments demonstrate consistent improvements when existing neural operators with global receptive fields are augmented with the proposed localized convolutions, resulting in reductions in relative $L^2$ -error of up to $72\%$ over the corresponding baselines. We thus expect local neural operators to play an important role in solving real-world scientific computing problems with machine learning.
401
+
402
+ # Acknowledgements
403
+
404
+ The authors thank Md Ashiqur Rahman for useful discussions about benchmarks and baselines. M. Liu-Schiaffini is grateful for support from the Mellon Mays Undergraduate Fellowship. J. Berner acknowledges support from the Wally Baer and Jeri Weiss Postdoctoral Fellowship. A. Anandkumar is supported in part by Bren endowed chair and by the AI2050 senior fellow program at Schmidt Sciences.
405
+
406
+ # Impact Statement
407
+
408
+ The aim of this work is to advance the field of machine learning and scientific computing. While there are many potential societal consequences, none of them are immediate to require specifically being highlighted here.
409
+
410
+ # References
411
+
412
+ Azizzadenesheli, K., Kovachki, N., Li, Z., Liu-Schiaffini, M., Kossaifi, J., and Anandkumar, A. Neural operators for accelerating scientific simulations and design. Nature Reviews Physics, pp. 1-9, 2024.
413
+ Bekkers, E. J. B-spline CNNs on Lie groups. arXiv preprint arXiv:1909.12057, 2019.
414
+ Bonev, B., Kurth, T., Hundt, C., Pathak, J., Baust, M., Kashinath, K., and Anandkumar, A. Spherical Fourier neural operators: Learning stable dynamics on the sphere. arXiv preprint arXiv:2306.03838, 2023.
415
+ Cohen, T. and Welling, M. Group equivariant convolutional networks. In International conference on machine learning, pp. 2990-2999. PMLR, 2016.
416
+ Cohen-Tannoudji, C., Diu, B., and Laloë, F. Quantum mechanics; 1st ed. Wiley, New York, NY, 1977. Trans. of: Mécanique quantique. Paris: Hermann, 1973.
417
+ Cuomo, S., Di Cola, V. S., Giampaolo, F., Rozza, G., Raissi, M., and Picciali, F. Scientific machine learning through physics-informed neural networks: Where we are and what's next. Journal of Scientific Computing, 92(3):88, 2022.
418
+ Driscoll, J. and Healy, D. Computing fourier transforms and convolutions on the 2-sphere. Advances in Applied Mathematics, 15:202-250, 6 1994.
419
+ Ghosh, R. and Gupta, A. K. Scale steerable filters for locally scale-invariant convolutional neural networks. arXiv preprint arXiv:1906.03861, 2019.
420
+ Gupta, J. K. and Brandstetter, J. Towards multispatiotemporal-scale generalized pde modeling. arXiv preprint arXiv:2209.15616, 2022.
421
+
422
+ Hasani, E. and Ward, R. A. Generating synthetic data for neural operators. arXiv preprint arXiv:2401.02398, 2024.
423
+ Karras, T., Aittala, M., Laine, S., Härkönen, E., Hellsten, J., Lehtinen, J., and Aila, T. Alias-free generative adversarial networks. Advances in Neural Information Processing Systems, 34:852-863, 2021.
424
+ Kovachki, N., Li, Z., Liu, B., Azizzadenesheli, K., Bhattacharya, K., Stuart, A., and Anandkumar, A. Neural operator: Learning maps between function spaces. arXiv preprint arXiv:2108.08481, 2021.
425
+ Lam, R., Sanchez-Gonzalez, A., Willson, M., Wirnsberger, P., Fortunato, M., Alet, F., Ravuri, S., Ewalds, T., Eaton-Rosen, Z., Hu, W., et al. Learning skillful medium-range global weather forecasting. Science, 382(6677):1416-1421, 2023.
426
+ LeVeque, R. J. Numerical Methods for Conservation Laws. Birkhäuser Basel, 1992.
427
+ Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Fourier neural operator for parametric partial differential equations. arXiv preprint arXiv:2010.08895, 2020a.
428
+ Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Neural operator: Graph kernel network for partial differential equations. arXiv preprint arXiv:2003.03485, 2020b.
429
+ Li, Z., Kovachki, N., Azizzadenesheli, K., Liu, B., Stuart, A., Bhattacharya, K., and Anandkumar, A. Multipole graph neural operator for parametric partial differential equations. Advances in Neural Information Processing Systems, 33:6755-6766, 2020c.
430
+ Li, Z., Zheng, H., Kovachki, N., Jin, D., Chen, H., Liu, B., Azizzadenesheli, K., and Anandkumar, A. Physics-informed neural operator for learning partial differential equations. arXiv preprint arXiv:2111.03794, 2021.
431
+ Li, Z., Liu-Schiaffini, M., Kovachki, N., Azizzadenesheli, K., Liu, B., Bhattacharya, K., Stuart, A., and Anandkumar, A. Learning chaotic dynamics in dissipative systems. Advances in Neural Information Processing Systems, 35: 16768-16781, 2022a.
432
+ Li, Z., Meidani, K., and Farimani, A. B. Transformer for partial differential equations' operator learning. arXiv preprint arXiv:2205.13671, 2022b.
433
+ Li, Z., Kovachki, N. B., Choy, C., Li, B., Kossaifi, J., Otta, S. P., Nabian, M. A., Stadler, M., Hundt, C., Azizzadenesheli, K., et al. Geometry-informed neural operator for large-scale 3d pdes. arXiv preprint arXiv:2309.00583, 2023.
434
+
435
+ Marcos, D., Kellenberger, B., Lobry, S., and Tuia, D. Scale equivariance in cnns with vector fields. arXiv preprint arXiv:1807.11783, 2018.
436
+ Ocampo, J., Price, M. A., and McEwen, J. D. Scalable and equivariant spherical CNNs by discrete-continuous (DISCO) convolutions. arXiv preprint arXiv:2209.13603, 9 2022.
437
+ Pathak, J., Subramanian, S., Harrington, P., Raja, S., Chattopadhyay, A., Mardani, M., Kurth, T., Hall, D., Li, Z., Azizzadenesheli, K., Hassanzadeh, P., Kashinath, K., and Anandkumar, A. FourCastNet: A global data-driven high-resolution weather model using adaptive Fourier neural operators. arXiv preprint arXiv:2202.11214, 2 2022.
438
+ Rahman, M. A. and Yeh, R. A. Truly scale-equivariant deep nets with Fourier layers. arXiv preprint arXiv:2311.02922, 2023.
439
+ Rahman, M. A., George, R. J., Elleithy, M., Leibovici, D., Li, Z., Bonev, B., White, C., Berner, J., Yeh, R. A., Kossaifi, J., et al. Pretraining codomain attention neural operators for solving multiphysics PDEs. arXiv preprint arXiv:2403.12553, 2024.
440
+ Raonic, B., Molinaro, R., Rohner, T., Mishra, S., and de Bezenac, E. Convolutional neural operators. arXiv preprint arXiv:2302.01178, 2023.
441
+ Ronneberger, O., Fischer, P., and Brox, T. U-Net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention, pp. 234–241. Springer, 2015.
442
+ Shi, Y., Lavrentiadis, G., Asimaki, D., Ross, Z. E., and Azizzadenesheli, K. Broadband ground motion synthesis via generative adversarial neural operators: Development and validation. arXiv preprint arXiv:2309.03447, 2023.
443
+ Shocher, A., Feinstein, B., Haim, N., and Irani, M. From discrete to continuous convolution layers. arXiv preprint arXiv:2006.11120, 2020.
444
+ Sosnovik, I., Szmaja, M., and Smeulders, A. Scale-equivariant steerable networks. arXiv preprint arXiv:1910.11093, 2019.
445
+ Sosnovik, I., Moskalev, A., and Smeulders, A. disco: accurate discrete scale convolutions. arXiv preprint arXiv:2106.02733, 2021.
446
+ Sun, H., Ross, Z. E., Zhu, W., and Azizzadenesheli, K. Phase neural operator for multi-station picking of seismic arrivals. Geophysical Research Letters, 50(24): e2023GL106434, 2023.
447
+
448
+ Takamoto, M., Praditia, T., Leiteritz, R., MacKinlay, D., Alesiani, F., Pflüger, D., and Niepert, M. PDEBench: An extensive benchmark for scientific machine learning. Advances in Neural Information Processing Systems, 35: 1596-1611, 2022.
449
+ Thomas, J. W. Numerical partial differential equations: finite difference methods, volume 22. Springer Science & Business Media, 2013.
450
+ Wang, S., Suo, S., Ma, W.-C., Pokrovsky, A., and Urtasun, R. Deep parametric continuous convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 2589-2597, 2018.
451
+ Wen, G., Li, Z., Azizzadenesheli, K., Anandkumar, A., and Benson, S. M. U-FNO—an enhanced Fourier neural operator-based deep-learning model for multiphase flow. Advances in Water Resources, 163:104180, 2022.
452
+ Wen, G., Li, Z., Long, Q., Azizzadenesheli, K., Anandkumar, A., and Benson, S. M. Real-time high-resolution $\mathrm{CO}_{2}$ geological storage prediction using nested Fourier neural operators. Energy & Environmental Science, 16 (4):1732-1741, 2023.
453
+ Worrall, D. and Welling, M. Deep scale-spaces: Equivariance over scale. Advances in Neural Information Processing Systems, 32, 2019.
454
+ Xu, Y., Xiao, T., Zhang, J., Yang, K., and Zhang, Z. Scale-invariant convolutional neural networks. arXiv preprint arXiv:1411.6369, 2014.
455
+ Ye, X., Li, H., Jiang, P., Wang, T., and Qin, G. Learning transient partial differential equations with local neural operators. arXiv preprint arXiv:2203.08145, 2022.
456
+ Ye, X., Li, H., Huang, J., and Qin, G. On the locality of local neural operator in learning fluid dynamics. arXiv preprint arXiv:2312.09820, 2023.
457
+ Zhang, X., Wang, L., Helwig, J., Luo, Y., Fu, C., Xie, Y., Liu, M., Lin, Y., Xu, Z., Yan, K., et al. Artificial intelligence for science in quantum, atomistic, and continuum systems. arXiv preprint arXiv:2307.08423, 2023.
458
+
459
+ # A. General differential kernels
460
+
461
+ # A.1. Theoretical construction
462
+
463
+ In the following, we present the general idea for irregular grids, from which Proposition 3.1 follows as a special case. Let us first define the assumptions on our grids.
464
+
465
+ Regular discrete refinement: Let $\| \cdot \|$ be a norm on $\mathbb{R}^d$ and denote by $B_{h}(x)\subset \mathbb{R}^{d}$ the ball of radius $h\in (0,\infty)$ around $x\in \mathbb{R}^d$ w.r.t. $\| \cdot \|$ . Further, let $D\subset \mathbb{R}^d$ be a domain and let $(h_\ell)_{\ell \in \mathbb{Z}}$ be a sequence that converges to zero. We call $(D_{\ell})_{\ell \in \mathbb{Z}}\subset D$ a regular discrete refinement with widths $(h_\ell)_{\ell \in \mathbb{Z}}$ if there exists $N\in \mathbb{N}$ such that for all $\ell \in \mathbb{Z}$ and $x\in \mathbb{R}^d$ we have that
466
+
467
+ $$
468
+ \left| B _ {h _ {\ell}} (x) \cap D _ {\ell} \right| \leq N \quad \text {a n d} \quad \text {s p a n} \left(\left\{\left[ \begin{array}{c} 1 \\ y \end{array} \right] - \left[ \begin{array}{c} 1 \\ x \end{array} \right]: y \in B _ {h _ {\ell}} (x) \cap D _ {\ell} \right\}\right) = \mathbb {R} ^ {d + 1}.
469
+ $$
470
+
471
+ The second assumption states that we can find an affinely independent subset in each ball. Note that, for instance, equidistant grids satisfy these assumptions.
472
+
473
+ First-order differential operator: We want to find bounded kernels $k(x,y) \colon \mathbb{R}^d \times \mathbb{R}^d \to \mathbb{R}$ with the following property: There exist $c \in \mathbb{R}$ and $b \in \mathbb{R}^d$ such that for all $v \in C^1(D, \mathbb{R})$ , all $y \in \mathbb{R}^d$ , and any regular discrete refinement $(D_\ell)_{\ell \in \mathbb{Z}} \subset \mathbb{R}^d$ with widths $(h_\ell)_{\ell \in \mathbb{Z}}$ it holds that
474
+
475
+ $$
476
+ \lim _ {\ell \rightarrow \infty} \sum_ {x \in B _ {h _ {\ell}} (y) \cap D _ {\ell}} k (x, y) v (x) = c v (y) + \nabla v (y) \cdot b. \tag {20}
477
+ $$
478
+
479
+ We will now investigate which additional assumptions are needed. Let us fix $y \in \mathbb{R}^d$ and enumerate
480
+
481
+ $$
482
+ (x _ {j}) _ {j = 1} ^ {m} := B _ {h _ {\ell}} (y) \cap D _ {\ell}.
483
+ $$
484
+
485
+ Then, we can use Taylor's theorem to show that
486
+
487
+ $$
488
+ \begin{array}{l} \sum_ {x \in B _ {h _ {\ell}} (y) \cap D _ {\ell}} k (x, y) v (x) = \sum_ {j = 1} ^ {m} k \left(x _ {j}, y\right) \left(v (y) + \nabla v (y) \cdot \left(x _ {j} - y\right) + \mathcal {O} \left(h _ {\ell}\right)\right) (21) \\ = v (y) \sum_ {j = 1} ^ {m} k \left(x _ {j}, y\right) + \nabla v (y) \cdot \left(\sum_ {j = 1} ^ {m} k \left(x _ {j}, y\right) \left(x _ {j} - y\right)\right) + \mathcal {O} \left(m \| k \| _ {L ^ {\infty}} h _ {\ell}\right). (22) \\ \end{array}
489
+ $$
490
+
491
+ Since the kernel and $m$ are bounded (uniformly over $\ell \in \mathbb{N}$ ), we have that $\mathcal{O}(m\| k\|_{L^{\infty}}h_{\ell}) = \mathcal{O}(h_{\ell})$ . As we want to guarantee convergence to $cv(y) + \nabla v(y)\cdot b$ for suitable $c\in \mathbb{R}$ and $b\in \mathbb{R}^d$ (independent of $y$ ), we need to satisfy that
492
+
493
+ $$
494
+ c = \sum_ {j = 1} ^ {m} k \left(x _ {j}, y\right) \tag {23}
495
+ $$
496
+
497
+ and that
498
+
499
+ $$
500
+ b = \sum_ {j = 1} ^ {m} k \left(x _ {j}, y\right) \left(x _ {j} - y\right) \tag {24}
501
+ $$
502
+
503
+ This yields the linear system
504
+
505
+ $$
506
+ \underbrace {\left[ \begin{array}{c c c} 1 & \dots & 1 \\ x _ {1} - y & \dots & x _ {m} - y \end{array} \right]} _ {\in \mathbb {R} ^ {(d + 1) \times n}} \left[ \begin{array}{c} k (x _ {1}, y) \\ \vdots \\ k (x _ {m}, y) \end{array} \right] = \left[ \begin{array}{c} c \\ b \end{array} \right]. \tag {25}
507
+ $$
508
+
509
+ Our assumptions on the refinement guarantee that we can find linearly independent columns such that we can solve the system. However, generally and by abuse of notation, the value of $k(x_{j},y)$ depends on all the points $(x_{j})_{j = 1}^{m}$ . However, for an equidistant grid, one can directly see that the convolutional kernel given in Proposition 3.1 satisfies (25) with $c = 0$ .
510
+
511
+ ![](images/9d5efda2b9c994b5cd5f7099ad22b2808191a3116e7e11b5b6626accc91e9162.jpg)
512
+ (a) Convergence
513
+ Figure 5: Empirical evaluation of the proposed differential kernel. (a) $L^2$ errors at various resolutions and quadratic coefficient scales $c$ . (b) True differential operator for $c = 1$ . (c) Output of the differential kernel at a resolution of $32 \times 32$ . (d) Output of the differential kernel at a resolution of $64 \times 64$ . (e) Output of the differential kernel at a resolution of $4096 \times 4096$ .
514
+
515
+ ![](images/4ea8a65eb9e2d36d559b17f6e2ae97e13312ed378346ad29ca6ecffd346819d8.jpg)
516
+ (b) Ground truth
517
+
518
+ ![](images/bb4e79fb6f155bfeab99049aadf4bc76802e3a240d4eb626038b61d67d8fcf91.jpg)
519
+ (c) Low-res prediction
520
+
521
+ ![](images/f95872889963a603ed2fc978938bb52fee54b113010e31c974d06a61a3c9fca1.jpg)
522
+ (d) Medium-res prediction
523
+
524
+ ![](images/8448f21a3770183553e4688a0a55933389d6df2e257e10087ceb53208747a084.jpg)
525
+ (e) High-res prediction
526
+
527
+ # A.2. Empirical evaluation
528
+
529
+ In this section, we empirically evaluate the convergence of our proposed differential kernels to a differential operator as the resolution increases. In particular, we consider a randomly-initialized differential kernel satisfying the constraints discussed in Section 3.2 (mean zero and scaled by the resolution $\frac{1}{h}$ , where $h$ is the width of each grid cell in an equidistant grid).
530
+
531
+ To be able to compute the theoretical differential operator in closed form, we consider a simple parabola $v \colon [0,1]^2 \to \mathbb{R}^n$ , given by
532
+
533
+ $$
534
+ x \mapsto \| x \| ^ {2} \left[ c _ {1}, \dots , c _ {n} \right] ^ {\top}, \tag {26}
535
+ $$
536
+
537
+ with coefficients $c_{1},\ldots ,c_{n}$
538
+
539
+ We define a randomly-initialized first-order differential kernel $K = (K_{ij})_{i,j=1}^{3,3} \subset \mathbb{R}^n$ (i.e., one differential kernel for each of the $n$ input channels) subject to the constraints described in Section 3.2. Let $b_j \in \mathbb{R}^n$ denote the direction corresponding to the directional derivative corresponding to the differential kernel for channel $j$ , see Appendix A.1. With the parabola as defined in (26), the output function of the true differential operator corresponding to $K$ is given by
540
+
541
+ $$
542
+ x \mapsto 2 \sum_ {i = j} ^ {n} x \cdot b _ {j}. \tag {27}
543
+ $$
544
+
545
+ In this simple experiment, we set $n = 10$ and generate $c_{1},\ldots ,c_{n}$ uniformly on the unit interval, multiplied by some scaling factor $c\in \{1,2,4,16\}$ . We discretize the parabola in (26) over different resolutions, convolve the kernel $K$ with each of these discretizations, and compute the $L^2$ error with respect to the true differential operator. Figure 5 shows the $L^2$ error for these values of $c$ and resolutions, as well as visualizations of the true differential operator and the one outputted by the differential kernel at three different resolutions.
546
+
547
+ From Figure 5, we observe a clear convergence to the differential operator as the resolution increases. For a fixed resolution, convergence is slower for greater magnitudes of the second derivative (i.e., larger $c$ ). This can be theoretically shown by estimating the remainder of the Taylor expansion in Appendix A.1.
548
+
549
+ # B. Discrete-continuous convolutions
550
+
551
+ # B.1. General Ideas
552
+
553
+ The following section outlines the basic ideas behind discrete-continuous convolutions as introduced by (Ocampo et al., 2022). To generalize the (continuous) convolution (5) to Lie groups and quotient spaces of Lie Groups, we consider the group convolution (see e.g. Cohen & Welling (2016)).
554
+
555
+ Definition B.1 (Group Convolution). Let $\kappa, v: G \to \mathbb{R}$ be functions defined on the group $G$ . The group convolution is given by
556
+
557
+ $$
558
+ (\kappa \star v) (g) = \int \kappa \left(g ^ {- 1} x\right) \cdot v (x) \mathrm {d} \mu (x), \tag {8}
559
+ $$
560
+
561
+ where $g, x \in G$ and $\mathrm{d}\mu(x)$ is the invariant Haar measure on $G$ .
562
+
563
+ Remark B.2. In some cases, signals are not defined on a group but rather on a quotient space $G / H$ , where $H$ is a subgroup of $G$ . In such cases, a convolution may still be defined by taking $g \in G / H$ . For an example, see spherical convolutions (Driscoll & Healy, 1994; Ocampo et al., 2022).
564
+
565
+ While group convolutions can typically be computed by generalized Fourier transforms on the corresponding manifolds, their usage is generally preferred if the convolutions are non-local operators, i.e., the convolution kernel $\kappa$ is not compactly supported. On the periodic domain $\mathbb{T}^d$ (i.e., Euclidean space with periodic boundaries), such convolutions are typically computed discretely by directly sliding the kernel.
566
+
567
+ Definition B.3 (DISCO convolutions). Given a quadrature rule with quadrature points $x_{j} \in G$ and quadrature weights $q_{j}$ , we approximate the group convolution (8) with the discrete sum
568
+
569
+ $$
570
+ (\kappa \star v) (g) = \int \kappa \left(g ^ {- 1} x\right) \cdot v (x) \mathrm {d} \mu (x) \approx \sum_ {j = 1} ^ {m} \kappa \left(g ^ {- 1} x _ {j}\right) \cdot v \left(x _ {j}\right) q _ {j}. \tag {28}
571
+ $$
572
+
573
+ In particular, the group action $g$ is applied analytically to the kernel function $\kappa$ , whereas the integral is approximated using the quadrature rule.
574
+
575
+ For a discrete set of output locations $g_{i}$ , this becomes a straight-forward matrix-vector multiplication
576
+
577
+ $$
578
+ \sum_ {j = 1} ^ {m} \kappa \left(g _ {i} ^ {- 1} x _ {j}\right) \cdot v \left(x _ {j}\right) q _ {j} = \sum_ {j = 1} ^ {m} K _ {i j} \cdot v \left(x _ {j}\right) q _ {j} \tag {29}
579
+ $$
580
+
581
+ with $K_{ij} = \kappa (g_i^{-1}x_j)$ . In the case where $\kappa$ is compactly supported, $K_{ij}$ is a sparse matrix with the number of non-zero entries per row depending on the resolution of the grid $x_j$ and the support of $\kappa$ . To obtain a learnable filter, $\kappa$ is parametrized as a linear combination of a chosen set of basis functions.
582
+
583
+ # B.2. DISCO convolutions in one dimension
584
+
585
+ For the sake of simplicity, we discuss the simple one-dimensional case on $D = [0,1]$ with periodic boundary conditions. We note that this corresponds to the circle group (or the torus) $\mathbb{T}$ . For any element $y \in D$ , the corresponding group operation $T_y$ is the translation $T_y: D \to D$ , $x \mapsto x \oplus y$ , where we denote by $x \oplus y$ a modular shift such that the result remains in $D$ .
586
+
587
+ Then, the DISCO convolution in one dimension, for Lebesgue square-integrable functions $v$ and $\kappa$ becomes
588
+
589
+ $$
590
+ (\kappa \star v) (y) = \int_ {[ 0, 1 ]} \kappa \left(T _ {y} ^ {- 1} x\right) v (x) \mathrm {d} x = \int_ {[ 0, 1 ]} \kappa (x - y) v (x) \mathrm {d} x \approx \sum_ {j = 1} ^ {m} \kappa \left(x _ {j} - y\right) v \left(x _ {j}\right) q _ {j}, \tag {30}
591
+ $$
592
+
593
+ for suitable quadrature points $D^{h} = \{x_{j}\}_{j = 1}^{m}$ with corresponding quadrature weights $\{q_j\}_{j = 1}^m$ .
594
+
595
+ To parameterize the filter $\kappa$ , we pick a finite support $[0, x_{\mathrm{cutoff}}]$ with $L$ equidistant collocation points $\xi^{(\ell)} \in [0, x_{\mathrm{cutoff}}]$ and corresponding hat functions. The $\ell$ -th hat function is then defined as
596
+
597
+ $$
598
+ \kappa^ {(\ell)} (x) = \left\{ \begin{array}{l l} \frac {x - \xi^ {(\ell - 1)}}{\xi^ {(\ell)} - \xi^ {(\ell - 1)}} & \text {f o r} \xi^ {(\ell - 1)} \leq x < \xi^ {(\ell)} \\ \frac {\xi^ {(\ell + 1)} - x}{\xi^ {(\ell + 1)} - \xi^ {(\ell)}} & \text {f o r} \xi^ {(\ell)} \leq x < \xi^ {(\ell + 1)} \\ 0 & \text {e l s e ,} \end{array} \right. \tag {31}
599
+ $$
600
+
601
+ where $\xi^{(0)},\xi^{(L + 1)}\in [0,x_{\mathrm{cutoff}}]$ are suitable boundary points. The resulting filter is obtained as a linear combination $\kappa = \sum_{\ell = 1}^{L}\theta^{(\ell)}k^{(\ell)}$ with trainable parameters $\theta^{(\ell)}$ . Plugging this into (29), we obtain the trainable DISCO convolution
602
+
603
+ $$
604
+ \sum_ {j = 1} ^ {m} \kappa \left(x _ {j} - y _ {i}\right) v \left(x _ {j}\right) q _ {j} = \sum_ {\ell = 1} ^ {L} \sum_ {j = 1} ^ {m} \theta^ {(\ell)} \kappa^ {(\ell)} \left(x _ {j} - y _ {i}\right) v \left(x _ {j}\right) q _ {j} = \sum_ {\ell = 1} ^ {L} \sum_ {j = 1} ^ {m} \theta^ {(\ell)} K _ {i j} ^ {(\ell)} v \left(x _ {j}\right) q _ {j}, \tag {32}
605
+ $$
606
+
607
+ where $K_{ij}^{(\ell)} = \kappa^{(\ell)}(x_j - y_i)$ are the shifted filter functions.
608
+
609
+ Let us now consider the special case of an equidistant grid $D^h$ , i.e., $x_{j + 1} - x_j = h$ , and a trapezoidal quadrature rule $q_{j} = h$ . Let us further assume that the output points $y_{i}$ coincide with the grid points and that the collocation points $\xi^{(\ell)}$ are given as the first $L$ grid points. Then, due to the property of the hat functions, $K_{ij}^{(\ell)}$ can only contain either 0 or 1 and we obtain the circulant convolution matrices given by
610
+
611
+ $$
612
+ K ^ {(1)} = (e _ {1}, e _ {2}, e _ {3}, \ldots , e _ {m}), \qquad K ^ {(2)} = (e _ {2}, e _ {3}, \ldots , e _ {m}, e _ {1}), \qquad K ^ {(3)} = (e _ {3}, \ldots , e _ {m}, e _ {1}, e _ {2}), \quad \ldots
613
+ $$
614
+
615
+ where $e_i \in \mathbb{R}^m$ is the $i$ -th standard basis vector. For regular grids on planar geometries, we can thus efficiently implement the DISCO convolution in (32) in terms of highly-optimized CUDA kernels based on common-place convolutional layers. This observation also generalizes to higher dimensions, where the same discrete kernel is obtained when the kernel is continuously shifted on the grid.
616
+
617
+ # B.3. DISCO convolutions on the sphere
618
+
619
+ For general group actions $g \in SO(3)$ , the outcome of the group convolution (8) will be a function defined on $SO(3)$ . This is due to $\mathbb{S}^2$ not being a group but rather a manifold on which $SO(3)$ acts. We can see this by fixing the north-pole $n = [0,0,1]^\top$ and applying any rotation $g \in SO(3)$ to it. This will trace out the whole sphere despite the north pole eliminating one of the Eulerian rotation angles. Therefore, to ensure that the result of the convolution is still a function defined on $\mathbb{S}^2$ , we can simply restrict $g$ in (8) to rotations in $SO(3)/SO(2)$ , which is isomorphic to $\mathbb{S}^2$ . Formally, this can be achieved by fixing the first of the three Euler angles parameterizing $g$ to 0.
620
+
621
+ As basis functions, we pick a set of piecewise linear basis functions as in (31). To accommodate anisotropic kernels, collocation points are distributed in an equidistant manner along both radius and circumference. More precisely, the first collocation point lies at the center, and for each consecutive ring, a fixed amount of collocation points is distributed along the circumference. The resulting basis functions are illustrated in Figure 6, for a cutoff radius of $r_{\mathrm{cutoff}} = 0.1\pi$
622
+
623
+ ![](images/0bffa083e3c56999e48f98394af716fcf57d7347ed573bd77a74d047ec5c1494.jpg)
624
+ (a) $\ell = 1$
625
+
626
+ ![](images/ec0f383ef5d608e71b0e9e4a8bd610346548355226299100e215eca6dbffa411.jpg)
627
+ (b) $\ell = 2$
628
+
629
+ ![](images/c508761ad851160f4aec020c6fc762a434ac107374a5b90da9a973efe1ecf504.jpg)
630
+ (c) $\ell = 3$
631
+ Figure 6: Radial, piecewise linear basis functions for the approximation of anisotropic filters on the sphere.
632
+
633
+ ![](images/5f941db6ba1139da87de2ae0858c1e6adeccd77a1d25d70c23c9b8067c352079.jpg)
634
+ (d) $\ell = 4$
635
+
636
+ ![](images/65bf4aed49feec670ad67b13dbc83f2923cf792d76f3074dc5a077c0a11f8eac.jpg)
637
+ $(e)$ $\ell = 5$
638
+
639
+ # C. Implementation details
640
+
641
+ A numerical comparison of our methods with baseline FNO and U-Net architectures can be found in Table 4. In this section, we outline the implementation details for our numerical experiments.
642
+
643
+ For Darcy flow, Navier-Stokes, and the shallow water equations, training is conducted by minimizing the squared $L^2$ -loss until convergence is reached. Our U-Net baseline is adapted from the model and code of the PDE Arena benchmark (Gupta & Brandstetter, 2022). For the FNOs (Li et al., 2020a) and SFNOs (Bonev et al., 2023), we use the implementation in the neuraloperator and torch-harmonics libraries. Moreover, for all experiments, GELU activation functions and the Adam optimizer are used.
644
+
645
+ For these three problems, we trained the FNO/SFNO-based models with varying widths and modes, while keeping the overall number of parameters approximately constant. We present the best results for each problem and macro-architecture in Table 4. For the models with local layers, we found that a larger embedding dimension and fewer modes can often improve performance. We conjecture that the increased embedding dimension confers additional expressivity to the local kernels. This also suggests that local operators are an important inductive bias for these problems. When supplementing the FNO/SFNO blocks with additional branches, we also observed improved convergence by scaling the initial parameters or the output by $n^{-1/2}$ , where $n$ is the number of branches. A detailed experimental setup is outlined for these three datasets in the
646
+
647
+ following subsections. We also present results for the 2D diffusion-reaction equation and for super-resolution experiments on Darcy flow and the shallow water equations.
648
+
649
+ # C.1. 2D Darcy flow equation
650
+
651
+ In the 2D Darcy flow setting, we generate our data as described in Section 4.1. For the input functions, we consider random linear combinations of eigenfunctions of the Laplace operator with zero Dirichlet boundary conditions, i.e.,
652
+
653
+ $$
654
+ u (x) = \sum_ {i, j = 1} ^ {2 0} \frac {c _ {i j}}{\sqrt {(i \pi) ^ {2} + (j \pi) ^ {2}}} \sin (i \pi x _ {1}) \sin (j \pi x _ {2}), \quad x \in D,
655
+ $$
656
+
657
+ with i.i.d. $c_{ij} \sim \mathcal{N}(0,1 / (i + j))$ . We train and test our models and baselines with data discretized onto a $256 \times 256$ regular grid. We use 10000 training samples and 2000 testing samples. As a baseline, we compare our proposed models with FNO (Li et al., 2020a) and the U-Net architecture of Gupta & Brandstetter (2022). We note that this U-Net architecture is not agnostic to the discretization (Kovachki et al., 2021), see also Section 3.1. We compare these baselines against our proposed models: the architecture using convolutions with Fourier (i.e., FNO), differential, and integral kernels (Figure 2), as well as architectures using only FNO and differential kernels or only FNO with the proposed integral kernels. Figure 7 compares the predictions of each model.
658
+
659
+ We choose all hyperparameters such that the overall number of parameters of all compared models is similar. The number of layers, number of Fourier modes, and embedding dimension are shown in Table 4. Models using convolutions with differential and local integral kernels use these layers in parallel to the Fourier layers and pointwise skip connection on all layers. We use reflective padding for the convolutional operations in the differential and local integral kernels. For all relevant models, the local integral kernels use a radius cutoff of 0.007 on $[-1,1]^2$ , and they are parameterized by five radial, piecewise linear basis functions for the approximation of anisotropic filters (analogous to Figure 6 on the plane). The differential kernels are parameterized as $3\times 3$ convolutional kernels over the regular grid. For our U-Net baseline, we use $3\times 3$ convolutional kernels with 2 residual blocks for each resolution (two downsampling and two upsampling) and three layers within each block, with channel multipliers of 1, 2, 4 for each layer within a block.
660
+
661
+ Training is conducted by minimizing the squared $L^2$ -loss for 70 epochs on a single NVIDIA P100 GPU, which is sufficient to achieve convergence on all models. We use a step learning rate decay scheduler, starting at $10^{-3}$ and halving every 10 epochs. The results are shown in Table 4.
662
+
663
+ ![](images/52d0bf43243512ef75685d963d3b22bdfa616b5070e35545ab96d6dc817c65f3.jpg)
664
+ (a) Input
665
+
666
+ ![](images/3cf3bf5905b75cc452c10c1af64b262be05daa1d0a1f0b97b374091b7d1a091f.jpg)
667
+ Figure 7: Comparison of models from Table 4: The outputs of our best-performing model, FNO, and U-Net on a randomly selected input pressure function from the Darcy flow problem. Edge artifacts are very prevalent in the FNO predictions, and they are less dominant in the U-Net predictions.
668
+
669
+ ![](images/f5aa1e79eb830019d677b6bcba1624272b8e58dd978f8887cf5b9eae5dace6a7.jpg)
670
+ (b) Ground truth
671
+ (c) Ours
672
+
673
+ ![](images/a04520724f0939785704adaeb54fffb4af3e716faa2e9480e320b6cbc3246736.jpg)
674
+ (d) FNO
675
+
676
+ ![](images/cce0414660fff41f41c937d678ad3d8c1d57c5e1e5526f8a5065b581a4c512da.jpg)
677
+ (e) U-Net
678
+
679
+ # C.2. 2D Navier-Stokes Equations
680
+
681
+ For the 2D Navier-Stokes equations (Kolmogorov flows), we use the same experimental setup and dataset as Li et al. (2022a), which sets $m = 4$ and $\mathrm{Re} = 5000$ in (12) and uses a temporal discretization of $\tau = 1$ on a $128 \times 128$ regular grid. The initial conditions are sampled from a Gaussian measure as described in Li et al. (2022a), and the equation is solved with a pseudo-spectral solver. We compare the same five models as in the Darcy experiment.
682
+
683
+ As in the Darcy setting, we choose all hyperparameters such that the overall number of parameters for all the models is similar. The number of layers, number of Fourier modes, and embedding dimension are shown in Table 4. Models using convolutions with differential and local integral kernels use these layers in parallel to the Fourier layers and pointwise skip
684
+
685
+ connection on all layers. We enforce periodic boundary conditions during padding for the convolutional operations in the differential and local integral kernels. For all relevant models, the local integral kernels use a radius cutoff of $0.05\pi$ on the torus, and they are parameterized by five radial, piecewise linear basis functions for the approximation of anisotropic filters (analogous to Figure 6 on the plane). The differential kernels are parameterized as $3 \times 3$ convolutional kernels over the regular grid. Our U-Net baseline is set up in the same way as in the Darcy experiment.
686
+
687
+ Training was performed for 136 epochs on a single NVIDIA RTX 4090 GPU with an exponentially decaying learning rate, starting at $10^{-3}$ and halving every 33 epochs. The results are shown in Table 4.
688
+
689
+ # C.3. Diffusion-Reaction equation
690
+
691
+ For the 2D Diffusion-Reaction equation, we use the same experimental setup and dataset as Takamoto et al. (2022). The reference solution is computed using a finite-volume method in space and a fourth-order Runge-Kutta method in time. The dataset consists of 900 training samples and 100 validation samples discretized on a $128 \times 128$ regular grid with 100 equidistant time-steps in the interval [0, 5] and Gaussian initial conditions. The task is to predict the state of the variables $(u, v)$ at the next time-step from the states at the previous 10 steps. The errors are measured for the full autoregressive roll-out as in the implementation of PDEBench at github.com/pdebench/PDEBench.
692
+
693
+ We use the same experimental setup and implementation as Takamoto et al. (2022) and only adapt the learning rate, the number of modes, and the embedding dimension. We then add our proposed layers to (a subset of) the FNO blocks and experiment with both reflective and replicate padding. In particular, we parametrize the local integral kernels by five radial, piecewise linear basis functions and use $3 \times 3$ convolutional kernels for the differential kernels.
694
+
695
+ We train on a single NVIDIA RTX 4090 GPU for 500 epochs with early stopping (using the same criteria as Takamoto et al. (2022)). Moreover, we use an exponentially decaying learning rate, starting at $10^{-4}$ and halving every 100 epochs. We present our best results in Table 2 and refer to Takamoto et al. (2022) for details on the metrics. We compare against the baselines by Takamoto et al. (2022) and note that we also improve their FNO baseline results. However, our local integral and differential kernels still provide a significant improvement with fewer parameters. Specifically, we reduced the modes from 24 to 16 and increased the embedding dimension from 20 to 29.
696
+
697
+ # C.4. Shallow water Equations
698
+
699
+ For the shallow water equations, we use the dataset presented by Bonev et al. (2023), which uses a Gaussian random field to generate initial conditions on an equiangular lat-lon-grid on the sphere at a resolution of $256 \times 512$ and solves for $\varphi$ , $u$ at a lead time of one hour. The target solution is computed using a spectral solver, which takes 24 Euler steps<sup>8</sup>. Physical constants such as the sphere's radius or the Coriolis force are set to match those of Earth. The numerical solver uses 150 explicit Euler steps to advance the solution 1 hour in time. The right-hand side is discretized using the spectral basis provided by the Spherical Harmonics. For a detailed description of the dataset, we refer the reader to Bonev et al. (2023) and the corresponding implementation in the torch-harmonics package.
700
+
701
+ As a baseline for our experiments, we use the SFNO architecture as presented by Bonev et al. (2023), where the embedding dimension is adjusted to 32 to obtain a manageable parameter count. Moreover, we adapt the U-Net architecture by Gupta & Brandstetter (2022) to the spherical domain by replacing all spatial (i.e., not the $1 \times 1$ ) convolutions with DISCO convolutions on the sphere. Therefore, the resulting architecture is a spherical U-Net similar to the architecture presented by Ocampo et al. (2022). Moreover, due to the DISCO convolutions' discretization-agnostic nature, this architecture can be interpreted as a neural operator. Finally, we augment the SFNO architecture with local DISCO convolutions to obtain the proposed architecture; see Section 3.5.
702
+
703
+ For all three architectures, hyperparameters were chosen to achieve roughly similar parameter counts. The learning rates for each architecture were determined with a quick parameter sweep, resulting in $3 \cdot 10^{-4}$ for the spherical U-Net and $3 \cdot 10^{-3}$ for both neural operators. As a learning rate scheduler, we use the policy of halving the learning rate upon a plateauing of the loss. Training was performed for 100 epochs on a single NVIDIA RTX A6000 GPU, which was sufficient to achieve convergence on all considered models.
704
+
705
+ ![](images/9efe73ba3444a98c11ed8f8ecc6912dc90a5ad0f0074e6fdbc2a9a9617cf3bc2.jpg)
706
+ (a) Input pressure
707
+
708
+ ![](images/8eb309cc835be94368eed5a03e7200000c8a450669dd70c3f029475198796a2a.jpg)
709
+ (b) Ground truth forcing
710
+
711
+ ![](images/3c4b349b053dc1e62ce89ed2dd76d55c5665849bda60de08bbea583d0869587b.jpg)
712
+ (c) Predicted forcing
713
+
714
+ ![](images/5580952d864023bec856aeae730d32c1bd699fed0a173631380f8247ee36a7e7.jpg)
715
+ (d) Initial geopotential height
716
+
717
+ ![](images/13c38d41af8ade37069d4d453665318dbf20b52dcb44726d10d13c2213ec6a3b.jpg)
718
+ (e) Ground truth at 1h
719
+
720
+ ![](images/c2e4e3f61f07bca2fec025650d07171f9f0e88ea93f39516d9de034ea2f5644d.jpg)
721
+ $(f)$ Prediction at 1h
722
+ Figure 8: Randomly selected super-resolution samples for the Darcy flow (top row) and shallow water (bottom row) problems.
723
+
724
+ # C.5. Flow past a cylinder
725
+
726
+ To demonstrate the capability of dealing with unstructured representations, we use the dataset provided by Rahman et al. (2024) to train a model for predicting velocity and pressure fields for a Navier-Stokes problem in a channel with a suspended cylinder and attached membrane (see Figure 4). We use the dataset with a viscosity of $\mu = 1.0$ , which corresponds to a Reynolds number of $\mathrm{Re} = 2000$ . To deal with the unstructured data, we employ a local integral convolution layer in both the encoder and decoder with a cutoff radius of $r_{\mathrm{cutoff}} = 0.052$ and 5 piecewise-linear basis functions. This layer transforms the unstructured data to a regularly spaced grid of $48 \times 192$ in the internal representation. The processor part of the architecture then consists of 4 FNO blocks with local integral kernels, which have the same filter basis as the convolutions used in the encoder/decoder. The embedding dimension is fixed at 16 and all Fourier modes are kept in the internal representation. Overall, this leads to a parameter count of $9.6 \cdot 10^{6}$ . The architecture is trained on a dataset of 250 samples for 50 epochs using the Adam optimizer and a learning rate of $2 \cdot 10^{-3}$ . The results alongside baselines from Rahman et al. (2024) are reported in Table 3.
727
+
728
+ # C.6. Zero-shot super-resolution results
729
+
730
+ In this paper, we propose two methods to embed the inductive bias of locality into neural operator architectures. The key distinction between our proposed methods and CNN-based architectures is that our methods are agnostic to the discretization of the input function. In this section, we present and discuss the super-resolution capabilities of our proposed models. In particular, we focus on two examples: (1) the Darcy flow equation to showcase our differential layers on a regular Cartesian grid and (2) the shallow water equation to demonstrate super-resolution for our local integration on the sphere. The experimental setting that we consider is that of zero-shot super-resolution. In particular, suppose that the model has been trained at a particular training resolution (or at multiple different resolutions). Given input at a higher resolution than the training resolution, the task of zero-shot super-resolution is to then predict the output function at this higher resolution and evaluate the resulting model error.
731
+
732
+ In the Darcy flow setting, we use the same setup and dataset as described in Section 4.1. We train two models on data sampled at a $256 \times 256$ regular grid and evaluate on a $128 \times 128$ regular grid ( $\frac{1}{2}$ x resolution and $\frac{1}{4}$ x the number of points), $512 \times 512$ grid (2x super-resolution), and $1024 \times 1024$ grid (4x super-resolution). For the shallow water equations, a similar approach is taken. We take the models in Section 4.4 which were trained at a resolution of $256 \times 512$ and apply them to data generated at a resolution of $128 \times 256$ , $512 \times 1024$ , and $1024 \times 2048$ .
733
+
734
+ Table 5: Zero-shot super-resolution results for Darcy flow and the spherical shallow water problems. The validation error is reported in terms of relative $L^2$ -error at various resolutions. Autoregressive rollouts are super-resolved in the sense that the rollout is performed at the high resolution.
735
+
736
+ <table><tr><td rowspan="3">Model</td><td colspan="4">Parameters</td><td colspan="4">Relative L2-Error</td></tr><tr><td rowspan="2"># Layers</td><td rowspan="2"># Modes</td><td rowspan="2">Embedding</td><td rowspan="2"># Parameters</td><td colspan="4">resolution (relative to training resolution)</td></tr><tr><td>1/2×</td><td>1×</td><td>2×</td><td>4×</td></tr><tr><td colspan="9">Darcy Flow</td></tr><tr><td>FNO</td><td>4</td><td>20</td><td>41</td><td>2.715·106</td><td>1.475·10-1</td><td>5.867·10-2</td><td>8.646·10-2</td><td>7.731·10-2</td></tr><tr><td>FNO + diff. (ours)</td><td>4</td><td>20</td><td>40</td><td>2.599·106</td><td>1.174·10-1</td><td>5.851·10-2</td><td>7.774·10-2</td><td>6.681·10-2</td></tr><tr><td colspan="9">Spherical Shallow Water Equations</td></tr><tr><td>Spherical U-Net</td><td>17</td><td>-</td><td>32</td><td>1.639·106</td><td>5.586·10-3</td><td>6.160·10-4</td><td>3.386·10-3</td><td>4.102·10-3</td></tr><tr><td>SFNO</td><td>4</td><td>128</td><td>32</td><td>1.066·106</td><td>1.342·10-3</td><td>9.220·10-4</td><td>3.830·10-3</td><td>4.419·10-3</td></tr><tr><td>SFNO + loc. int. (ours)</td><td>4</td><td>128</td><td>31</td><td>1.019·106</td><td>8.673·10-4</td><td>2.624·10-4</td><td>3.341·10-3</td><td>4.097·10-3</td></tr></table>
737
+
738
+ Table 5 provides the details of the models we used for these experiments as well as the results of our super-resolution experiments with our proposed models. In the Darcy setting, we compare the baseline FNO to the FNO augmented with the differential kernel. On the sphere, we make use of the fact that the spherical U-Net presented in (Ocampo et al., 2022) is already a neural operator due to its discretization-independence. As such, we can use it alongside the SFNO as a baseline for zero-shot super-resolution on the sphere.
739
+
740
+ As with all neural operator architectures, during training there is the possibility of overfitting to the training resolution. For instance, FNO may learn features in Fourier space that are intrinsically tied to the resolution of the input function. Similarly, it is possible that our proposed differential and integral convolutional operators will learn a function of the training discretization. This effect can be remedied by using high-resolution training data where the local details are fully resolved. This minimum required resolution of the training data is thus a function of the smoothness of the input function. For this reason, we decided to exclude the 2D Navier-Stokes problem from our super-resolution experiments, since training at a resolution that sufficiently resolves the local dynamics would be prohibitively expensive.
741
+
742
+ In our experiments, we noticed that our differential layers tend to incur some discretization errors when trained on data that is not of sufficiently high resolution. If differential convolutions are present in consecutive layers in the model, this error can propagate quickly. As such, we found that the best-performing model on zero-shot super-resolution for the Darcy flow problem is a model with a differential convolution in only the first layer. Using fewer differential layers in our model reduces the expressivity, but we find that the super-resolution capabilities are still better than the baseline FNO.
743
+
744
+ Lastly, we would like to note that in our experiments, FNO had a larger error near the boundary in non-periodic problems, as the FFT used in FNO assumes periodic boundary conditions. We note that our proposed differential layer can help reduce the error at the boundary caused by FNO, but some of these effects may still be present (see Figure 8).
745
+
746
+ # C.7. Computational efficiency of differential and local integral kernels
747
+
748
+ On equidistant grids, our differential and local integral kernels can be implemented as standard convolutional kernels, which are heavily optimized for GPU performance. The computational complexity of our differential kernels is linear in the number of grid points since the size of the convolutional kernel remains constant regardless of resolution. In contrast, the size of the discretized local integral kernels does increase with input resolution. While this may be expensive for some high-resolution datasets, in our experiments, we found that the heavily-optimized convolutions in deep learning libraries can help reduce this computational burden. As a consequence, local integral kernels are more efficient than GNO (Li et al., 2020b) and other graph-based approaches on equidistant grids.
749
+
750
+ Moreover, the local integral kernels can also be applied to irregular grids, where they are implemented as sparse matrix multiplications. This tends to outperform GNOs (Li et al., 2020b), which need to evaluate a neural network on the graph. The complexity of the local integral layer is linear with a constant that depends on the sparsity of the matrix. This, in turn, depends on the support of the local kernel; choosing a fixed support will scale quadratically with the resolution, whereas a support that matches the resolution will scale linearly in practice.
2024/Neural Operators with Localized Integral and Differential Kernels/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d378bfec5b034dc2c33847be136de9ae84722fa1b6060d274f5942c3bb06dc8a
3
+ size 881933
2024/Neural Operators with Localized Integral and Differential Kernels/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/72fab82f-8dd8-41e6-8dde-ac8d7212da67_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:067c0abd2a8a0cbdc34554bbbe22998f95afc0361f1ef47ce41ac8823d9102c3
3
+ size 7172324
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e397661f26b646282bf9ce297b3e9cb87cf8cf44a37c040fb46ae70f016d64aa
3
+ size 2719803
2024/Neural SPH_ Improved Neural Modeling of Lagrangian Fluid Dynamics/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Neural Tangent Kernels Motivate Cross-Covariance Graphs in Neural Networks/00c7ff33-5f2d-47e1-b94c-fb3c64bdaa24_content_list.json ADDED
The diff for this file is too large to render. See raw diff