Chelsea707 commited on
Commit
7a220ff
·
verified ·
1 Parent(s): 5591920

Add Batch 3c4a6a78-77b4-42c3-9714-81030091c8e3 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/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_content_list.json +0 -0
  3. 2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_model.json +0 -0
  4. 2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_origin.pdf +3 -0
  5. 2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/full.md +429 -0
  6. 2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/images.zip +3 -0
  7. 2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/layout.json +0 -0
  8. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_content_list.json +2087 -0
  9. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_model.json +0 -0
  10. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_origin.pdf +3 -0
  11. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/full.md +425 -0
  12. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/images.zip +3 -0
  13. 2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/layout.json +0 -0
  14. 2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_content_list.json +0 -0
  15. 2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_model.json +0 -0
  16. 2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_origin.pdf +3 -0
  17. 2024/Towards Offline Opponent Modeling with In-context Learning/full.md +0 -0
  18. 2024/Towards Offline Opponent Modeling with In-context Learning/images.zip +3 -0
  19. 2024/Towards Offline Opponent Modeling with In-context Learning/layout.json +0 -0
  20. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_content_list.json +0 -0
  21. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_model.json +0 -0
  22. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_origin.pdf +3 -0
  23. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/full.md +462 -0
  24. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/images.zip +3 -0
  25. 2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/layout.json +0 -0
  26. 2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_content_list.json +0 -0
  27. 2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_model.json +0 -0
  28. 2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_origin.pdf +3 -0
  29. 2024/Towards Poisoning Fair Representations/full.md +886 -0
  30. 2024/Towards Poisoning Fair Representations/images.zip +3 -0
  31. 2024/Towards Poisoning Fair Representations/layout.json +0 -0
  32. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_content_list.json +0 -0
  33. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_model.json +0 -0
  34. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_origin.pdf +3 -0
  35. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/full.md +0 -0
  36. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/images.zip +3 -0
  37. 2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/layout.json +0 -0
  38. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_content_list.json +0 -0
  39. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_model.json +0 -0
  40. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_origin.pdf +3 -0
  41. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/full.md +523 -0
  42. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/images.zip +3 -0
  43. 2024/Towards Robust Multi-Modal Reasoning via Model Selection/layout.json +0 -0
  44. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_content_list.json +0 -0
  45. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_model.json +0 -0
  46. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_origin.pdf +3 -0
  47. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/full.md +0 -0
  48. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/images.zip +3 -0
  49. 2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/layout.json +0 -0
  50. 2024/Towards Seamless Adaptation of Pre-trained Models for Visual Place Recognition/c5ba224f-d385-4c8e-9cdc-83b1e6c3c410_content_list.json +0 -0
.gitattributes CHANGED
@@ -5477,3 +5477,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
5477
  2024/Towards[[:space:]]Green[[:space:]]AI[[:space:]]in[[:space:]]Fine-tuning[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Adaptive[[:space:]]Backpropagation/97fed2da-cde7-4583-a15b-d9c9392d9870_origin.pdf filter=lfs diff=lfs merge=lfs -text
5478
  2024/Towards[[:space:]]Identifiable[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Translation_[[:space:]]A[[:space:]]Diversified[[:space:]]Distribution[[:space:]]Matching[[:space:]]Approach/d73cf177-798a-45f6-9a78-53aed636c6b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5479
  2024/Towards[[:space:]]Imitation[[:space:]]Learning[[:space:]]to[[:space:]]Branch[[:space:]]for[[:space:]]MIP_[[:space:]]A[[:space:]]Hybrid[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]based[[:space:]]Sample[[:space:]]Augmentation[[:space:]]Approach/4f270878-2863-480e-b3bc-6cec37f78265_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5477
  2024/Towards[[:space:]]Green[[:space:]]AI[[:space:]]in[[:space:]]Fine-tuning[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Adaptive[[:space:]]Backpropagation/97fed2da-cde7-4583-a15b-d9c9392d9870_origin.pdf filter=lfs diff=lfs merge=lfs -text
5478
  2024/Towards[[:space:]]Identifiable[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Translation_[[:space:]]A[[:space:]]Diversified[[:space:]]Distribution[[:space:]]Matching[[:space:]]Approach/d73cf177-798a-45f6-9a78-53aed636c6b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5479
  2024/Towards[[:space:]]Imitation[[:space:]]Learning[[:space:]]to[[:space:]]Branch[[:space:]]for[[:space:]]MIP_[[:space:]]A[[:space:]]Hybrid[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]based[[:space:]]Sample[[:space:]]Augmentation[[:space:]]Approach/4f270878-2863-480e-b3bc-6cec37f78265_origin.pdf filter=lfs diff=lfs merge=lfs -text
5480
+ 2024/Towards[[:space:]]Lossless[[:space:]]Dataset[[:space:]]Distillation[[:space:]]via[[:space:]]Difficulty-Aligned[[:space:]]Trajectory[[:space:]]Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_origin.pdf filter=lfs diff=lfs merge=lfs -text
5481
+ 2024/Towards[[:space:]]Non-Asymptotic[[:space:]]Convergence[[:space:]]for[[:space:]]Diffusion-Based[[:space:]]Generative[[:space:]]Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_origin.pdf filter=lfs diff=lfs merge=lfs -text
5482
+ 2024/Towards[[:space:]]Offline[[:space:]]Opponent[[:space:]]Modeling[[:space:]]with[[:space:]]In-context[[:space:]]Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_origin.pdf filter=lfs diff=lfs merge=lfs -text
5483
+ 2024/Towards[[:space:]]Optimal[[:space:]]Feature-Shaping[[:space:]]Methods[[:space:]]for[[:space:]]Out-of-Distribution[[:space:]]Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5484
+ 2024/Towards[[:space:]]Poisoning[[:space:]]Fair[[:space:]]Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_origin.pdf filter=lfs diff=lfs merge=lfs -text
5485
+ 2024/Towards[[:space:]]Robust[[:space:]]Fidelity[[:space:]]for[[:space:]]Evaluating[[:space:]]Explainability[[:space:]]of[[:space:]]Graph[[:space:]]Neural[[:space:]]Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_origin.pdf filter=lfs diff=lfs merge=lfs -text
5486
+ 2024/Towards[[:space:]]Robust[[:space:]]Multi-Modal[[:space:]]Reasoning[[:space:]]via[[:space:]]Model[[:space:]]Selection/f94cb436-eefa-47a2-8467-d0af1883a561_origin.pdf filter=lfs diff=lfs merge=lfs -text
5487
+ 2024/Towards[[:space:]]Robust[[:space:]]and[[:space:]]Efficient[[:space:]]Cloud-Edge[[:space:]]Elastic[[:space:]]Model[[:space:]]Adaptation[[:space:]]via[[:space:]]Selective[[:space:]]Entropy[[:space:]]Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5488
+ 2024/Towards[[:space:]]Seamless[[:space:]]Adaptation[[:space:]]of[[:space:]]Pre-trained[[:space:]]Models[[:space:]]for[[:space:]]Visual[[:space:]]Place[[:space:]]Recognition/c5ba224f-d385-4c8e-9cdc-83b1e6c3c410_origin.pdf filter=lfs diff=lfs merge=lfs -text
5489
+ 2024/Towards[[:space:]]Training[[:space:]]Without[[:space:]]Depth[[:space:]]Limits_[[:space:]]Batch[[:space:]]Normalization[[:space:]]Without[[:space:]]Gradient[[:space:]]Explosion/6c87a462-5c4c-4f62-ae8d-d4cc7b4b2eb3_origin.pdf filter=lfs diff=lfs merge=lfs -text
5490
+ 2024/Towards[[:space:]]Transparent[[:space:]]Time[[:space:]]Series[[:space:]]Forecasting/34caeeed-805f-4507-bd93-003a55c7f6ef_origin.pdf filter=lfs diff=lfs merge=lfs -text
5491
+ 2024/Towards[[:space:]]Understanding[[:space:]]Sycophancy[[:space:]]in[[:space:]]Language[[:space:]]Models/cff736e7-7101-4c05-ae54-381157c0a392_origin.pdf filter=lfs diff=lfs merge=lfs -text
5492
+ 2024/Towards[[:space:]]Unified[[:space:]]Multi-Modal[[:space:]]Personalization_[[:space:]]Large[[:space:]]Vision-Language[[:space:]]Models[[:space:]]for[[:space:]]Generative[[:space:]]Recommendation[[:space:]]and[[:space:]]Beyond/9eebbcf1-2c81-48ac-9595-c20599bfb9b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5493
+ 2024/Towards[[:space:]]domain-invariant[[:space:]]Self-Supervised[[:space:]]Learning[[:space:]]with[[:space:]]Batch[[:space:]]Styles[[:space:]]Standardization/cd36d59d-a175-4283-b9f4-08004cde3d81_origin.pdf filter=lfs diff=lfs merge=lfs -text
5494
+ 2024/Towards[[:space:]]image[[:space:]]compression[[:space:]]with[[:space:]]perfect[[:space:]]realism[[:space:]]at[[:space:]]ultra-low[[:space:]]bitrates/e0116339-1988-4a4d-b389-2369acb37f20_origin.pdf filter=lfs diff=lfs merge=lfs -text
5495
+ 2024/Towards[[:space:]]the[[:space:]]Fundamental[[:space:]]Limits[[:space:]]of[[:space:]]Knowledge[[:space:]]Transfer[[:space:]]over[[:space:]]Finite[[:space:]]Domains/721771f0-054f-4d42-ac49-e9c03905f330_origin.pdf filter=lfs diff=lfs merge=lfs -text
5496
+ 2024/Tractable[[:space:]]MCMC[[:space:]]for[[:space:]]Private[[:space:]]Learning[[:space:]]with[[:space:]]Pure[[:space:]]and[[:space:]]Gaussian[[:space:]]Differential[[:space:]]Privacy/88a5ed57-a187-4a5d-bca4-68966b3f6fb8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5497
+ 2024/Tractable[[:space:]]Probabilistic[[:space:]]Graph[[:space:]]Representation[[:space:]]Learning[[:space:]]with[[:space:]]Graph-Induced[[:space:]]Sum-Product[[:space:]]Networks/e87d354c-7f00-461b-9546-5e332642efd2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5498
+ 2024/Training[[:space:]]Bayesian[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Sparse[[:space:]]Subspace[[:space:]]Variational[[:space:]]Inference/dc96f94a-d7ee-45db-8c21-18eb5a5e999d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5499
+ 2024/Training[[:space:]]Diffusion[[:space:]]Models[[:space:]]with[[:space:]]Reinforcement[[:space:]]Learning/18100a4a-ff8a-4b4c-a081-6ec01d634f47_origin.pdf filter=lfs diff=lfs merge=lfs -text
5500
+ 2024/Training[[:space:]]Graph[[:space:]]Transformers[[:space:]]via[[:space:]]Curriculum-Enhanced[[:space:]]Attention[[:space:]]Distillation/0f43852f-5333-4a3b-965f-738bf785e448_origin.pdf filter=lfs diff=lfs merge=lfs -text
5501
+ 2024/Training[[:space:]]Socially[[:space:]]Aligned[[:space:]]Language[[:space:]]Models[[:space:]]on[[:space:]]Simulated[[:space:]]Social[[:space:]]Interactions/eb8beec8-6a03-4fea-b2ca-ad9d638277fa_origin.pdf filter=lfs diff=lfs merge=lfs -text
5502
+ 2024/Training[[:space:]]Unbiased[[:space:]]Diffusion[[:space:]]Models[[:space:]]From[[:space:]]Biased[[:space:]]Dataset/af48f178-0d34-463e-be5f-2e2a2655a634_origin.pdf filter=lfs diff=lfs merge=lfs -text
5503
+ 2024/Training-free[[:space:]]Multi-objective[[:space:]]Diffusion[[:space:]]Model[[:space:]]for[[:space:]]3D[[:space:]]Molecule[[:space:]]Generation/f3d1d1da-da7b-47dd-a4c4-c32a46f90a26_origin.pdf filter=lfs diff=lfs merge=lfs -text
5504
+ 2024/Trajeglish_[[:space:]]Traffic[[:space:]]Modeling[[:space:]]as[[:space:]]Next-Token[[:space:]]Prediction/102aa98d-2c85-4027-a828-ef36946c47c8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5505
+ 2024/Transferring[[:space:]]Labels[[:space:]]to[[:space:]]Solve[[:space:]]Annotation[[:space:]]Mismatches[[:space:]]Across[[:space:]]Object[[:space:]]Detection[[:space:]]Datasets/5b893f54-6fa5-4d20-bfe2-211f7e5189ae_origin.pdf filter=lfs diff=lfs merge=lfs -text
5506
+ 2024/Transferring[[:space:]]Learning[[:space:]]Trajectories[[:space:]]of[[:space:]]Neural[[:space:]]Networks/e51155dd-8ee5-492a-9747-efe071ad5df7_origin.pdf filter=lfs diff=lfs merge=lfs -text
5507
+ 2024/Transformer[[:space:]]Fusion[[:space:]]with[[:space:]]Optimal[[:space:]]Transport/8b885d08-ed6f-4447-b42e-3a0158ad9be5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5508
+ 2024/Transformer-Modulated[[:space:]]Diffusion[[:space:]]Models[[:space:]]for[[:space:]]Probabilistic[[:space:]]Multivariate[[:space:]]Time[[:space:]]Series[[:space:]]Forecasting/6129e76f-8629-428e-9362-a201f0915370_origin.pdf filter=lfs diff=lfs merge=lfs -text
5509
+ 2024/Transformer-VQ_[[:space:]]Linear-Time[[:space:]]Transformers[[:space:]]via[[:space:]]Vector[[:space:]]Quantization/c141a0b4-9812-49b1-b0be-5a3f25986893_origin.pdf filter=lfs diff=lfs merge=lfs -text
5510
+ 2024/Transformers[[:space:]]as[[:space:]]Decision[[:space:]]Makers_[[:space:]]Provable[[:space:]]In-Context[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]via[[:space:]]Supervised[[:space:]]Pretraining/a8b67120-b247-4061-a35f-fc19e65b4f59_origin.pdf filter=lfs diff=lfs merge=lfs -text
5511
+ 2024/Transformers[[:space:]]can[[:space:]]optimally[[:space:]]learn[[:space:]]regression[[:space:]]mixture[[:space:]]models/033517ef-1302-48df-8261-3c2786fd1a93_origin.pdf filter=lfs diff=lfs merge=lfs -text
5512
+ 2024/Transport[[:space:]]meets[[:space:]]Variational[[:space:]]Inference_[[:space:]]Controlled[[:space:]]Monte[[:space:]]Carlo[[:space:]]Diffusions/c48e1c5f-0de4-40c6-8c6e-73456d6c6079_origin.pdf filter=lfs diff=lfs merge=lfs -text
5513
+ 2024/Traveling[[:space:]]Waves[[:space:]]Encode[[:space:]]The[[:space:]]Recent[[:space:]]Past[[:space:]]and[[:space:]]Enhance[[:space:]]Sequence[[:space:]]Learning/a7262420-b943-4158-88cc-664fbb93c83f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5514
+ 2024/Treatment[[:space:]]Effects[[:space:]]Estimation[[:space:]]By[[:space:]]Uniform[[:space:]]Transformer/9e7e083a-dcb5-4d75-b386-c89705cbf8c0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5515
+ 2024/Tree[[:space:]]Cross[[:space:]]Attention/3a2f14a8-5720-47f8-9cd2-466aef23bcfe_origin.pdf filter=lfs diff=lfs merge=lfs -text
5516
+ 2024/Tree[[:space:]]Search-Based[[:space:]]Policy[[:space:]]Optimization[[:space:]]under[[:space:]]Stochastic[[:space:]]Execution[[:space:]]Delay/e1f2351a-f725-45ba-ab09-836983e26420_origin.pdf filter=lfs diff=lfs merge=lfs -text
5517
+ 2024/Tree-Planner_[[:space:]]Efficient[[:space:]]Close-loop[[:space:]]Task[[:space:]]Planning[[:space:]]with[[:space:]]Large[[:space:]]Language[[:space:]]Models/177fdcf4-6652-40e6-8fb7-d38a38891b7c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5518
+ 2024/True[[:space:]]Knowledge[[:space:]]Comes[[:space:]]from[[:space:]]Practice_[[:space:]]Aligning[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Embodied[[:space:]]Environments[[:space:]]via[[:space:]]Reinforcement[[:space:]]Learning/c91ce493-b792-4c13-a07e-64bc94f74c14_origin.pdf filter=lfs diff=lfs merge=lfs -text
5519
+ 2024/Turning[[:space:]]large[[:space:]]language[[:space:]]models[[:space:]]into[[:space:]]cognitive[[:space:]]models/3666fefe-7af9-41db-a0e0-7caeebca47f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5520
+ 2024/Two-stage[[:space:]]LLM[[:space:]]Fine-tuning[[:space:]]with[[:space:]]Less[[:space:]]Specialization[[:space:]]and[[:space:]]More[[:space:]]Generalization/007d352f-feeb-470d-80a6-06620d97242e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5521
+ 2024/Two-timescale[[:space:]]Extragradient[[:space:]]for[[:space:]]Finding[[:space:]]Local[[:space:]]Minimax[[:space:]]Points/80b3dbdb-cb3d-4bf2-8da6-7b595262db39_origin.pdf filter=lfs diff=lfs merge=lfs -text
5522
+ 2024/UC-NERF_[[:space:]]Neural[[:space:]]Radiance[[:space:]]Field[[:space:]]for[[:space:]]Under-Calibrated[[:space:]]Multi-View[[:space:]]Cameras[[:space:]]in[[:space:]]Autonomous[[:space:]]Driving/fc040edf-d970-4b7b-a869-dd461b9bb5d5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5523
+ 2024/UNR-Explainer_[[:space:]]Counterfactual[[:space:]]Explanations[[:space:]]for[[:space:]]Unsupervised[[:space:]]Node[[:space:]]Representation[[:space:]]Learning[[:space:]]Models/5799e0e9-0fb0-4ed2-9483-596bf5d4568f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5524
+ 2024/USB-NeRF_[[:space:]]Unrolling[[:space:]]Shutter[[:space:]]Bundle[[:space:]]Adjusted[[:space:]]Neural[[:space:]]Radiance[[:space:]]Fields/843c6955-c5c1-4eda-bf78-dc9377ba3c40_origin.pdf filter=lfs diff=lfs merge=lfs -text
5525
+ 2024/Un-Mixing[[:space:]]Test-Time[[:space:]]Normalization[[:space:]]Statistics_[[:space:]]Combatting[[:space:]]Label[[:space:]]Temporal[[:space:]]Correlation/3b74ec97-99f6-448d-a027-4f039f4dc93b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5526
+ 2024/Unbalancedness[[:space:]]in[[:space:]]Neural[[:space:]]Monge[[:space:]]Maps[[:space:]]Improves[[:space:]]Unpaired[[:space:]]Domain[[:space:]]Translation/3f5e41ed-0bd5-4685-ac58-870d50d9a71f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5527
+ 2024/Uncertainty[[:space:]]Quantification[[:space:]]via[[:space:]]Stable[[:space:]]Distribution[[:space:]]Propagation/1954d644-0f27-4dcc-9634-56006aa39415_origin.pdf filter=lfs diff=lfs merge=lfs -text
5528
+ 2024/Uncertainty-aware[[:space:]]Constraint[[:space:]]Inference[[:space:]]in[[:space:]]Inverse[[:space:]]Constrained[[:space:]]Reinforcement[[:space:]]Learning/52dd3883-003c-431e-a8e6-6cbd6fd03884_origin.pdf filter=lfs diff=lfs merge=lfs -text
5529
+ 2024/Uncertainty-aware[[:space:]]Graph-based[[:space:]]Hyperspectral[[:space:]]Image[[:space:]]Classification/16dcfef8-067e-4fd6-b03f-d28c630fa95d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5530
+ 2024/Unconstrained[[:space:]]Stochastic[[:space:]]CCA_[[:space:]]Unifying[[:space:]]Multiview[[:space:]]and[[:space:]]Self-Supervised[[:space:]]Learning/6b8c05c3-c0b0-40d6-9eba-3f86fe320eac_origin.pdf filter=lfs diff=lfs merge=lfs -text
5531
+ 2024/Understanding[[:space:]]Addition[[:space:]]in[[:space:]]Transformers/e17373bd-5a7f-44b5-8ece-d0585487a0d5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5532
+ 2024/Understanding[[:space:]]Catastrophic[[:space:]]Forgetting[[:space:]]in[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Implicit[[:space:]]Inference/92f09852-33b0-404b-9216-f45007c1c7c5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5533
+ 2024/Understanding[[:space:]]Certified[[:space:]]Training[[:space:]]with[[:space:]]Interval[[:space:]]Bound[[:space:]]Propagation/6b4a5b5f-6515-4990-9273-e741765acdee_origin.pdf filter=lfs diff=lfs merge=lfs -text
5534
+ 2024/Understanding[[:space:]]Convergence[[:space:]]and[[:space:]]Generalization[[:space:]]in[[:space:]]Federated[[:space:]]Learning[[:space:]]through[[:space:]]Feature[[:space:]]Learning[[:space:]]Theory/7004c566-6abf-47c9-a7f2-b8f0a9ef5f9a_origin.pdf filter=lfs diff=lfs merge=lfs -text
5535
+ 2024/Understanding[[:space:]]Domain[[:space:]]Generalization_[[:space:]]A[[:space:]]Noise[[:space:]]Robustness[[:space:]]Perspective/4e45835c-7abd-4e43-aba6-eec33876e7d2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5536
+ 2024/Understanding[[:space:]]Expressivity[[:space:]]of[[:space:]]GNN[[:space:]]in[[:space:]]Rule[[:space:]]Learning/c56c6525-31d6-46ef-9580-1b389b9f1a5b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5537
+ 2024/Understanding[[:space:]]In-Context[[:space:]]Learning[[:space:]]from[[:space:]]Repetitions/d1eab7fc-cd2d-4447-b2ad-d166a40fb1f1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5538
+ 2024/Understanding[[:space:]]Reconstruction[[:space:]]Attacks[[:space:]]with[[:space:]]the[[:space:]]Neural[[:space:]]Tangent[[:space:]]Kernel[[:space:]]and[[:space:]]Dataset[[:space:]]Distillation/9de5d5cc-0556-4622-955f-c53036c88e2e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5539
+ 2024/Understanding[[:space:]]Transferable[[:space:]]Representation[[:space:]]Learning[[:space:]]and[[:space:]]Zero-shot[[:space:]]Transfer[[:space:]]in[[:space:]]CLIP/007612f3-962f-45ee-8ddc-a9339ef35b72_origin.pdf filter=lfs diff=lfs merge=lfs -text
5540
+ 2024/Understanding[[:space:]]prompt[[:space:]]engineering[[:space:]]may[[:space:]]not[[:space:]]require[[:space:]]rethinking[[:space:]]generalization/ad76ef85-e1e6-4d97-b643-018c331559a8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5541
+ 2024/Understanding[[:space:]]the[[:space:]]Effects[[:space:]]of[[:space:]]RLHF[[:space:]]on[[:space:]]LLM[[:space:]]Generalisation[[:space:]]and[[:space:]]Diversity/f6228168-2e75-4f92-a766-575a514d923e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5542
+ 2024/Understanding[[:space:]]the[[:space:]]Robustness[[:space:]]of[[:space:]]Multi-modal[[:space:]]Contrastive[[:space:]]Learning[[:space:]]to[[:space:]]Distribution[[:space:]]Shift/8c2d511b-1192-4bee-8009-c7bafb1119cd_origin.pdf filter=lfs diff=lfs merge=lfs -text
5543
+ 2024/Understanding[[:space:]]the[[:space:]]Robustness[[:space:]]of[[:space:]]Randomized[[:space:]]Feature[[:space:]]Defense[[:space:]]Against[[:space:]]Query-Based[[:space:]]Adversarial[[:space:]]Attacks/15e24779-63ef-415c-b8ba-d80f82408042_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/9f241194-6197-49e1-ae17-9a1c98b06f82_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:11fc6e60b8ca3ce55daaad3b4a30712c580506b7e8d1cf846e42544dc28c2422
3
+ size 3083779
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/full.md ADDED
@@ -0,0 +1,429 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS LOSSLESS DATASET DISTILLATION VIA DIFFICULTY-ALIGNED TRAJECTORY MATCHING
2
+
3
+ Ziyao Guo $^{1,3,4}$ Kai Wang $^{1\dagger}$ George Cazenavette $^{2}$ Hui Li $^{4}$ Kaipeng Zhang $^{3\dagger}$ Yang You $^{1\dagger}$
4
+
5
+ $^{1}$ National University of Singapore $^{2}$ Massachusetts Institute of Technology
6
+ $^{3}$ Shanghai Artificial Intelligence Laboratory $^{4}$ Xidian University
7
+
8
+ gzyaftermath@outlook.com, {kai.wang, youy}@comp.nus.edu.sg, gcaz@mit.edu
9
+
10
+ # ABSTRACT
11
+
12
+ The ultimate goal of Dataset Distillation is to synthesize a small synthetic dataset such that a model trained on this synthetic set will perform equally well as a model trained on the full, real dataset. Until now, no method of Dataset Distillation has reached this completely lossless goal, in part because they only remain effective when the total number of synthetic samples is extremely small. Since only so much information can be contained in such a small number of samples, it seems that to achieve truly lossless dataset distillation, we must develop a distillation method that remains effective as the size of the synthetic dataset grows. In this work, we present such an algorithm and elucidate why existing methods fail to generate larger, high-quality synthetic sets. Current state-of-the-art methods rely on trajectory-matching, or optimizing the synthetic data to induce similar long-term training dynamics as the real data. We empirically find that the training stage of the trajectories we choose to match (i.e., early or late) greatly affects the effectiveness of the distilled dataset. Specifically, early trajectories (where the teacher network learns easy patterns) work well for a low-cardinality synthetic set since there are fewer examples wherein to distribute the necessary information. Conversely, late trajectories (where the teacher network learns hard patterns) provide better signals for larger synthetic sets since there are now enough samples to represent the necessary complex patterns. Based on our findings, we propose to align the difficulty of the generated patterns with the size of the synthetic dataset. In doing so, we successfully scale trajectory matching-based methods to larger synthetic datasets, achieving lossless dataset distillation for the very first time. Code and distilled datasets are available at https://github.com/NUS-HPC-AI-Lab/DATM.
13
+
14
+ # 1 INTRODUCTION
15
+
16
+ Dataset distillation (DD) aims at distilling a large dataset into a small synthetic one, such that models trained on the distilled dataset will have similar performance as those trained on the original dataset. In recent years, several algorithms have been proposed for this important topic, such as gradient matching (Zhao et al., 2020; Kim et al., 2022; Zhang et al., 2023; Liu et al., 2023b), kernel inducing points (Nguyen et al., 2020; 2021), distribution matching (Wang et al., 2022; Zhao & Bilen, 2023; Zhao et al., 2023), and trajectory matching (Cazenavette et al., 2022; Cui et al., 2023; Du et al., 2023). So far, dataset distillation has achieved great success in the regime of extremely small synthetic sets. For example, MTT (Cazenavette et al., 2022) achieves $71.6\%$ test accuracy on CIFAR-10 using only $1\%$ of the original data size. This impressive performance led to its application in a variety of downstream tasks such as continual learning (Masarczyk & Tautkute, 2020; Rosasco et al., 2021), privacy protection (Zhou et al., 2020; Sucholutsky & Schonlau, 2021a; Dong et al., 2022; Chen et al., 2022; Xiong et al., 2023), and neural architecture search (Such et al., 2020; Wang et al., 2021).
17
+
18
+ However, although previous DD methods have achieved great success with very few IPC (images-per-class), there still remains a significant gap between the performance of their distilled datasets and the full, real counterparts. To minimize this gap, one would intuitively think to increase the size of the
19
+
20
+ ![](images/fcd77e280f07cc385b482fae171a288b8b6bee8fd579748cfd2aa55fee1f9481.jpg)
21
+ Figure 1: (a) Illustration of the objective of dataset distillation. (b) The optimization in dataset distillation can be viewed as the process of generating informative patterns on the synthetic dataset. (c) We align the difficulty of the synthetic patterns with the size of the distilled dataset, to enable our method to perform well in both small and large IPC regimes. (d) Comparison of the performance of multiple dataset distillation methods on CIFAR-10 with different IPC. As IPC increases, the performance of previous methods becomes worse than random selection.
22
+
23
+ ![](images/8d5022f78f6b7c05aebe6e2efbb19fb2aa43a612fbe5c109453b8c442f7b56a9.jpg)
24
+
25
+ ![](images/e8b2b81a6f385a262b72942c35753319cc0968bed840111cbed4139876a59896.jpg)
26
+
27
+ synthetic dataset. Unfortunately, as IPC increases, previous distillation methods mysteriously become less effective, even performing worse than random selection (Cui et al., 2022; Zhou et al., 2023). In this paper, we offer an answer as to why previous dataset distillation methods become ineffective as IPC increases and, in doing so, become the first to circumvent this issue, allowing us to achieve lossless dataset distillation.
28
+
29
+ We start our work by observing the patterns learned by the synthetic data, taking trajectories matching (TM) based distillation methods (Cazenavette et al., 2022; Du et al., 2023) as an example. Generally, the process of dataset distillation can be viewed as the embedding of informative patterns into a set of synthetic samples. For TM-based distillation methods, the synthetic data learns patterns by matching the training trajectories of surrogate models optimized over the synthetic dataset and the real one. According to (Arpit et al., 2017), deep neural networks (DNNs) typically learn to recognize easy patterns early in training and hard patterns later on. As a result, we note that the properties of the data generated by TM-based methods vary widely depending on from which teacher training stage we sample our trajectories from (early or late). Specifically, matching early or late trajectories causes the synthetic data to learn easy or hard patterns respectively.
30
+
31
+ We then empirically show that the effect of learning easy and hard patterns varies with the size of the synthetic dataset (i.e., IPC). In low-IPC settings, easy patterns prove the most beneficial since they explain a larger portion of the real data distribution than an equivalent number of hard samples. However, with a sufficiently large synthetic set, learning hard samples becomes optimal since their union covers both the easy and "long-tail" hard samples of the real data. In fact, learning easy patterns in the high-IPC setting performs worse than random selection since the synthetic images collapse towards the mean patterns of the distribution and can no longer capture the long-tail parts. Previous distillation methods default toward distilling easy patterns, leading to their ineffectiveness in high-IPC cases.
32
+
33
+ The above findings motivate us to manage to align the difficulty of the learned patterns with the size of the distilled dataset, in order to keep our method effective in both low and high IPC cases. Our experiments show that, for TM-based methods, we can control the difficulty of the generated patterns by only matching the trajectories of a specified training phase. By doing so, our method is able to work well in both low and high IPC settings. Furthermore, we propose to learn easy and hard patterns sequentially, making the optimization stable enough for learning soft labels during the distillation, bringing further significant improvement. Our method achieves state-of-the-art performance in both low and high IPC cases. Notably, we distill CIFAR-10 and CIFAR-100 to 1/5 and Tiny ImageNet to 1/10 of their original sizes without any performance loss on ConvNet, offering the first lossless method of dataset distillation.
34
+
35
+ # 2 PRELIMINARY
36
+
37
+ For a given large, real dataset $\mathcal{D}_{\mathrm{real}}$ , dataset distillation aims to synthesize a smaller dataset $\mathcal{D}_{\mathrm{syn}}$ such that models trained on $\mathcal{D}_{\mathrm{syn}}$ will have similar test performance as models trained on $\mathcal{D}_{\mathrm{real}}$ .
38
+
39
+ ![](images/0cfca549942c83df58ec46951346998dc2d81029f1a94f8fd8993835d00a8fc3.jpg)
40
+ (a)
41
+
42
+ ![](images/1293fd14068c272a8f6bea93a28a2251c9f205046a239ef09ad494f81ee58d03.jpg)
43
+ (b)
44
+
45
+ ![](images/e86ceefb4ff8ff27f51e7ecfc57de0140298d8d324a095a9c36128cd4696c092.jpg)
46
+ (c)
47
+ Figure 2: We train expert models on CIFAR-10 for 40 epochs. Then the distillation is performed under different IPC settings by matching either early trajectories $\{\theta_t^* | 0 \leq t \leq 20\}$ , late trajectories $\{\theta_t^* | 20 \leq t \leq 40\}$ , or all trajectories $\{\theta_t^* | 0 \leq t \leq 40\}$ . As IPC increases, matching late trajectories becomes beneficial while matching early trajectories tends to be harmful.
48
+
49
+ ![](images/4b0f734a97588c68263e5c221ff34cb460c2b63972ce835cc0680f1800ec8678.jpg)
50
+ (d)
51
+
52
+ For trajectory matching (TM) based methods, the distillation is performed by matching the training trajectories of the surrogate models optimized over $\mathcal{D}_{\mathrm{real}}$ and $\mathcal{D}_{\mathrm{syn}}$ . Specifically, let $\tau^{*}$ denote the expert training trajectories, which is the time sequence of parameters $\{\theta_t^*\}_{0}^n$ obtained during the training of a network on the real dataset $\mathcal{D}_{\mathrm{real}}$ . Similarly, $\hat{\theta}_t$ denotes the parameters of the network trained on the synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ at training step $t$ .
53
+
54
+ In each iteration of the distillation, $\theta_t^*$ and $\theta_{t + M}^*$ are randomly sampled from a set of expert trajectories $\{\tau^{*}\}$ as the start parameters and target parameters used for the matching, where $M$ is a preset hyperparameter. Then TM-based distillation methods optimize the synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ by minimizing the following loss:
55
+
56
+ $$
57
+ \mathcal {L} = \frac {\left\| \hat {\theta} _ {t + N} - \theta_ {t + M} ^ {*} \right\| _ {2} ^ {2}}{\left\| \theta_ {t} ^ {*} - \theta_ {t + M} ^ {*} \right\| _ {2} ^ {2}}, \tag {1}
58
+ $$
59
+
60
+ where $N$ is a preset hyper-parameter and $\hat{\theta}_{t + N}$ is obtained in the inner optimization with cross-entropy (CE) loss $\ell$ and the trainable learning rate $\alpha$ :
61
+
62
+ $$
63
+ \hat {\theta} _ {t + i + 1} = \hat {\theta} _ {t + i} - \alpha \nabla \ell \left(\hat {\theta} _ {t + i}, \mathcal {D} _ {\text {s y n}}\right), \text {w h e r e} \hat {\theta} _ {t} := \theta_ {t} ^ {*}. \tag {2}
64
+ $$
65
+
66
+ # 3 METHOD
67
+
68
+ In this section, we first analyze the influence of matching trajectories from different training stages. Then, we introduce our method and its carefully designed modules.
69
+
70
+ # 3.1 EXPLORATION
71
+
72
+ TM-based methods generate patterns on the synthetic data by matching training trajectories. According to Arpit et al. (2017), DNNs tend to learn easy patterns early in training, then the harder ones later on. Motivated by this, we start our work by exploring the effect of matching trajectories from different training phases. Specifically, we train expert models for 40 epochs and roughly divide their training trajectories into two parts: the early trajectories $\{\theta_t^* | 0 \leq t \leq 20\}$ and the latter ones $\{\theta_t^* | 20 \leq t \leq 40\}$ . Then we perform the distillation by matching these two sets of trajectories under various IPC settings. Experimental results are reported in Figure 2. Our observations and relevant analyses are presented as follows.
73
+
74
+ Observation 1. As shown in Figure 2, matching early trajectories works better with small synthetic datasets, but matching late trajectories performs better as the size of the synthetic set grows larger.
75
+
76
+ Analysis 1. Since DNNs learn to recognize easy patterns early in training and hard patterns later on, we infer that matching early trajectories yields distilled data with easy patterns while matching late trajectories produces hard ones. Combined with the empirical results from Figure 2, we can conclude that distilled data with easy patterns perform well for small synthetic sets while data with hard features work better with larger sets. Perhaps unsurprisingly, this highly coincides with a common observation in the area of dataset pruning: preserving easy samples works better when very
77
+
78
+ few samples are kept, while keeping hard samples works better when the pruned dataset is larger (Sorscher et al., 2022).
79
+
80
+ Observation 2. As can be observed in Figure 2 (a), matching late trajectories leads to poor performance in the low IPC setting. When IPC is high, matching early trajectories will consistently undermine the performance of the synthetic dataset as the distillation goes on, as can be observed in Figure 2 (d). Also, as reflected in Figure 2, simply choosing to match all trajectories is not a good strategy.
81
+
82
+ Analysis 2. In low IPC settings, due to distilled data's limited capacity, it is challenging to learn data that models the outliers (hard samples) without neglecting the more plentiful easy samples; since easy samples make up most of the real data distribution, modeling these samples is more efficient performance-wise when IPC is low. Therefore, matching early trajectories (which will generate easy patterns) performs better than matching later ones (for low IPC). Conversely, in high IPC settings, distilling data that models only the easy samples is no longer necessary, and will even perform worse than a random subset of real samples. Thus, we must now consider the less-common hard samples by matching late trajectories (Figure 4). Since previous distillation methods focus on extremely small IPC cases, they tend to be biased towards generating easy patterns, leading to their ineffective in large IPC cases.
83
+
84
+ Based on the above analyses, to keep dataset distillation effective in both low and high IPC cases, we must calibrate the difficulty of the generated patterns (i.e., avoid generating patterns that are too easy or too difficult). To this end, we propose our method: Difficulty-Aligned Trajectory Matching, or DATM.
85
+
86
+ # 3.2 DIFFICULTY-ALIGNED TRAJECTORY MATCHING
87
+
88
+ Since patterns learned by matching earlier trajectories are easier than the later ones, we can control the difficulty of the generated patterns by restricting the trajectory-matching range. Specifically, let $\tau^{*} = \{\theta_{t}^{*}|0\leq t\leq n\}$ denote an expert trajectory. To control the matching range flexibly, we set a lower bound $T^{-}$ and an upper bound $T^{+}$ on the sample range of $t$ , such that only parameters within $\{\theta_t^* |T^- \leq t\leq T^+\}$ can be sampled for the matching. Then the trajectory segment used for the matching can be formulated as:
89
+
90
+ $$
91
+ \tau^ {*} = \left\{\underbrace {\theta_ {0} ^ {*}, \theta_ {1} ^ {*}} _ {\text {t o o e a s y}}, \dots , \underbrace {\theta_ {T -} ^ {*} , \cdots , \theta_ {T +} ^ {*}} _ {\text {m a t c h i n g r a n g e}}, \underbrace {\cdots , \theta_ {n} ^ {*}} _ {\text {t o o h a r d}} \right\}. \tag {3}
92
+ $$
93
+
94
+ To further enrich the information contained in the synthetic dataset, an intuitive choice is using soft labels (Hinton et al., 2015). Recently, Cui et al. (2023) show that using soft labels to guide the distillation can bring non-trivial improvement for the performance. However, their soft labels are not optimized during the distillation, leading to poor consistency between synthetic data and soft labels. To enable learning labels, we find the following challenges need to be solved:
95
+
96
+ Mislabeling. We use logits $L_{i} = f_{\theta^{*}}(x_{i})$ to initialize soft labels, which are generated by the pretrained model $f_{\theta^{*}}$ sampled from expert trajectories. However, labels initialized in this way might be incorrect (i.e., target class doesn't have the highest logit score). To avoid mislabeling, we sift through $\mathcal{D}_{\mathrm{real}}$ to find samples that can be correctly classified by model $f_{\theta^{*}}$ and use them to construct the subset $\mathcal{D}_{\mathrm{sub}}$ . Then we randomly select samples from $\mathcal{D}_{\mathrm{sub}}$ to initialize $\mathcal{D}_{\mathrm{syn}} = \{(x_{i},\hat{y}_{i} = \mathrm{softmax}(L_{i}))\}$ , such that we can avoid the distillation being misguided by the wrong label.
97
+
98
+ Instability. During the experiments, we found that optimizing soft labels will increase the instability of the distillation when the IPC is low. In low IPC settings, the distillation loss tends to be higher and less stable overall since the smaller synthetic set struggles to induce a proper training trajectory. This issue becomes fatal when labels are optimized during the distillation, as the labels are too fragile to take the wrong guidance brought by the mismatch, leading to increased instability. To alleviate this, we propose to generate only easy patterns in the early distillation phase. After enough easy patterns are embedded into the synthetic data for surrogate models to learn them well, we then gradually generate harder ones. By applying this sequential generation (SG) strategy, the surrogate model can match the expert trajectories better. Accordingly, the distillation becomes more stable.
99
+
100
+ In practice, to generate only easy patterns at the early distillation stage, we set a floating upper bound $T$ on the sample range of $t$ , which is set to be relatively small in the beginning and will be gradually increased as the distillation progresses until it reaches its upper bound $T^{+}$ . Overall, the
101
+
102
+ <table><tr><td>Dataset</td><td colspan="5">CIFAR-10</td><td colspan="4">CIFAR-100</td><td colspan="3">Tiny ImageNet</td></tr><tr><td>IPC</td><td>1</td><td>10</td><td>50</td><td>500</td><td>1000</td><td>1</td><td>10</td><td>50</td><td>100</td><td>1</td><td>10</td><td>50</td></tr><tr><td>Ratio</td><td>0.02</td><td>0.2</td><td>1</td><td>10</td><td>20</td><td>0.2</td><td>2</td><td>10</td><td>20</td><td>0.2</td><td>2</td><td>10</td></tr><tr><td>Random</td><td>15.4±0.3</td><td>31.0±0.5</td><td>50.6±0.3</td><td>73.2±0.3</td><td>78.4±0.2</td><td>4.2±0.3</td><td>14.6±0.5</td><td>33.4±0.4</td><td>42.8±0.3</td><td>1.4±0.1</td><td>5.0±0.2</td><td>15.0±0.4</td></tr><tr><td>DC</td><td>28.3±0.5</td><td>44.9±0.5</td><td>53.9±0.5</td><td>72.1±0.4</td><td>76.6±0.3</td><td>12.8±0.3</td><td>25.2±0.3</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DM</td><td>26.0±0.8</td><td>48.9±0.6</td><td>63.0±0.4</td><td>75.1±0.3</td><td>78.8±0.1</td><td>11.4±0.3</td><td>29.7±0.3</td><td>43.6±0.4</td><td>-</td><td>3.9±0.2</td><td>12.9±0.4</td><td>24.1±0.3</td></tr><tr><td>DSA</td><td>28.8±0.7</td><td>52.1±0.5</td><td>60.6±0.5</td><td>73.6±0.3</td><td>78.7±0.3</td><td>13.9±0.3</td><td>32.3±0.3</td><td>42.8±0.4</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CAFE</td><td>30.3±1.1</td><td>46.3±0.6</td><td>55.5±0.6</td><td>-</td><td>-</td><td>12.9±0.3</td><td>27.8±0.3</td><td>37.9±0.3</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>KIP1</td><td>49.9±0.2</td><td>62.7±0.3</td><td>68.6±0.2</td><td>-</td><td>-</td><td>15.7±0.2</td><td>28.3±0.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>FRePo1</td><td>46.8±0.7</td><td>65.5±0.4</td><td>71.7±0.2</td><td>-</td><td>-</td><td>28.7±0.1</td><td>42.5±0.2</td><td>44.3±0.2</td><td>-</td><td>15.4±0.3</td><td>25.4±0.2</td><td>-</td></tr><tr><td>RCIG1</td><td>53.9±1.0</td><td>69.1±0.4</td><td>73.5±0.3</td><td>-</td><td>-</td><td>39.3±0.4</td><td>44.1±0.4</td><td>46.7±0.3</td><td>-</td><td>25.6±0.3</td><td>29.4±0.2</td><td>-</td></tr><tr><td>MTT2</td><td>46.2±0.8</td><td>65.4±0.7</td><td>71.6±0.2</td><td>X</td><td>X</td><td>24.3±0.3</td><td>39.7±0.4</td><td>47.7±0.2</td><td>49.2±0.4</td><td>8.8±0.3</td><td>23.2±0.2</td><td>28.0±0.3</td></tr><tr><td>TESLA2</td><td>48.5±0.8</td><td>66.4±0.8</td><td>72.6±0.7</td><td>X</td><td>X</td><td>24.8±0.4</td><td>41.7±0.3</td><td>47.9±0.3</td><td>49.2±0.4</td><td>-</td><td>-</td><td>-</td></tr><tr><td>FTD2,3</td><td>46.0±0.4</td><td>65.3±0.4</td><td>73.2±0.2</td><td>X</td><td>X</td><td>24.4±0.4</td><td>42.5±0.2</td><td>48.5±0.3</td><td>49.7±0.4</td><td>10.5±0.2</td><td>23.4±0.3</td><td>28.2±0.4</td></tr><tr><td>DATM (Ours)</td><td>46.9±0.5</td><td>66.8±0.2</td><td>76.1±0.3</td><td>83.5±0.2</td><td>85.5±0.4</td><td>27.9±0.2</td><td>47.2±0.4</td><td>55.0±0.2</td><td>57.5±0.2</td><td>17.1±0.3</td><td>31.1±0.3</td><td>39.7±0.3</td></tr><tr><td>Full Dataset</td><td colspan="5">84.8±0.1</td><td colspan="4">56.2±0.3</td><td colspan="3">37.6±0.4</td></tr></table>
103
+
104
+ Table 1: Comparison with previous dataset distillation methods on CIFAR-10, CIFAR-100 and Tiny ImageNet. ConvNet is used for the distillation and evaluation. Hilighted results indicate we achieve lossless distillation. Our method consistently out-performs prior works and is the only to achieve lossless distillation.
105
+ $^{1}$ Kernel-based methods use a much larger neural network; we underline their results when they perform best.
106
+ ${}^{2}$ Previous TM-based methods perform worse than random initialization in higher IPC cases, indicated by $\mathbb{N}$ .
107
+ For a fair comparison, we reproduce FTD without using EMA (exponential moving average).
108
+
109
+ process of sampling the start parameters $\theta_t^*$ can be formulated as:
110
+
111
+ $$
112
+ \theta_ {t} ^ {*} \sim \mathcal {U} \left(\left\{\theta_ {T ^ {-}} ^ {*}, \dots , \theta_ {T} ^ {*} \right\}\right), \text {w h e r e} T \rightarrow T ^ {+}. \tag {4}
113
+ $$
114
+
115
+ In each iteration, after deciding the value of $t$ , we then sample $\theta_t^*$ and $\theta_{t + M}^*$ from expert trajectories as the start parameters and the target parameters for the matching. Then $\hat{\theta}_{t + N}$ can be obtained by Eq. 2. Subsequently, after calculating the matching loss using Eq. 1, we perform backpropagation to calculate the gradients and then use them to update the synthetic data $x_{i}$ and $L_{i}$ , where $(x_{i},\hat{y}_{i} = \mathrm{softmax}(L_{i}))\in \mathcal{D}_{\mathrm{syn}}$ . See Algorithm 1 for the pseudocode of our method.
116
+
117
+ # 4 EXPERIMENTS
118
+
119
+ # 4.1 SETUP
120
+
121
+ We compare our method with several representative distillation methods including DC (Zhao et al., 2020), DM (Zhao & Bilen, 2023), DSA (Zhao & Bilen, 2021), CAFE (Wang et al., 2022), KIP (Nguyen et al., 2020), FRePo (Zhou et al., 2022), RCIG (Loo et al., 2023), MTT (Cazenavette et al., 2022), TESLA (Cui et al., 2023), and FTD (Du et al., 2023). The evaluations are performed on several popular datasets including CIFAR-10, CIFAR-100 (Krizhevsky et al., 2009), and Tiny ImageNet (Le & Yang, 2015). We generate expert trajectories in the same way as FTD without modifying the involved hyperparameters. We also use the same suite of differentiable augmentations (Zhao & Bilen, 2021) in the distillation and evaluation stage, which is generally utilized in previous works (Zhao & Bilen, 2021; Wang et al., 2022; Cazenavette et al., 2022; Du et al., 2023).
122
+
123
+ Consistent with previous works, we use networks with instance normalization by default, while networks with batch normalization are indicated with "-BN" (e.g., ConvNet-BN). Without particular specification, we perform distillation using a 3-layer ConvNet for CIFAR-10 and CIFAR-100, while we move up to a depth-4 ConvNet for Tiny ImageNet. We also use LeNet (LeCun et al., 1998), AlexNet (Krizhevsky et al., 2012), VGG11 (Simonyan & Zisserman, 2015), and ResNet18 (He et al., 2016) for cross-architecture experiments. More details can be found in Section A.8.
124
+
125
+ # 4.2 MAIN RESULTS
126
+
127
+ CIFAR-10/100 and Tiny ImageNet. As the results reported in Table 1, our method outperforms other methods with the same network architecture in all settings but CIFAR-10 with $\mathrm{IPC} = 1$ . As can be observed, the improvements brought by previous distillation methods are quickly saturated as the distillation ratio approaches $20\%$ . Especially in CIFAR-10, almost all previous methods have similar or even worse performance than random selection when the ratio is greater than $10\%$ . Benefiting from our difficulty alignment strategy, our method remains effective in high IPC cases. Notably, we
128
+
129
+ ![](images/422b4a1aafb184cd5ee2b6efe612de6e8c3cd68239b48aec1323c8dec7308180.jpg)
130
+ (a)
131
+
132
+ ![](images/9f83cc1230d02d5430b1381f9cca9a97fcdd6a66c5a9b6ddc3798444f1d455f0.jpg)
133
+
134
+ ![](images/cf8dc45e2b0b66f94b2bba3cd1ac4b6da0cb1e4e262ff71552abf65795a5a082.jpg)
135
+ (b)
136
+ Figure 3: (a): (CIFAR-100, IPC=10) Synthetic datasets are initialized by randomly sampling data from the original dataset (random selection) or a subset of data that can be correctly classified (ours). Our strategy makes the optimization converge faster. (b): (CIFAR-10, IPC=50) Ablation on learning soft labels, where soft labels are initialized with expert models trained after different epochs. Learning labels relieves us from carefully selecting the labeling expert. (c): (CIFAR-10) The optimization with higher IPC converges in fewer iterations.
137
+
138
+ ![](images/08b8e27c6de6f98749788e03bde3a1ecc0b537374063e20480ca7cd9336fcbb1.jpg)
139
+ (c)
140
+
141
+ <table><tr><td>Method</td><td>ConvNet</td><td>ResNet18</td><td>VGG</td><td>AlexNet</td></tr><tr><td>Random</td><td>33.46</td><td>31.95</td><td>32.18</td><td>26.65</td></tr><tr><td>MTT</td><td>45.68</td><td>42.56</td><td>41.22</td><td>40.29</td></tr><tr><td>FTD</td><td>48.90</td><td>46.65</td><td>43.24</td><td>42.20</td></tr><tr><td>DATM</td><td>55.03</td><td>51.71</td><td>45.38</td><td>45.74</td></tr></table>
142
+
143
+ (a) CIFAR-100, IPC=50
144
+
145
+ <table><tr><td>Soft Label</td><td>Difficulty Alignment</td><td>Acc</td></tr><tr><td></td><td></td><td>48.50</td></tr><tr><td></td><td>✓</td><td>50.79</td></tr><tr><td>✓</td><td></td><td>52.96</td></tr><tr><td>✓</td><td>✓</td><td>55.03</td></tr></table>
146
+
147
+ (b) CIFAR-100, IPC=50
148
+
149
+ <table><tr><td>Label Learning</td><td>Sequential Gen.</td><td>Acc</td></tr><tr><td></td><td></td><td>72.8</td></tr><tr><td>✓</td><td></td><td>75.0</td></tr><tr><td></td><td>✓</td><td>75.6</td></tr><tr><td>✓</td><td>✓</td><td>76.1</td></tr></table>
150
+
151
+ successfully distill CIFAR-10 and CIFAR-100 to 1/5, and Tiny ImageNet to 1/10 their original size without causing any performance drop.
152
+
153
+ Cross-architecture generalization. Here we evaluate the generalizability of our distilled datasets in various IPC settings. As the results reported in Table 2 (Left), our distilled dataset performs best on unseen networks when IPC is small, reflecting the good generalizability of the data and labels distilled by our method. Furthermore, we evaluate the generalizability in high IPC settings and compare the performance with two representative coreset selection methods including Glister (Killamsetty et al., 2021) and Forgetting (Toneva et al., 2018). As shown in Table 4, although coreset selection methods are applied case by case, they are not universally beneficial for all networks. Notably, although our synthetic dataset is distilled with ConvNet, it generalizes well on all networks, bringing non-trivial improvement. Furthermore, on CIFAR-100, the improvement of AlexNet is even higher than that of ConvNet. This reflects the overfitting problem of synthetic datasets to distillation networks is somewhat alleviated in higher IPC situations.
154
+
155
+ # 4.3 ABLATION
156
+
157
+ Ablation on components of our method. We perform ablation studies by adding the components of our methods one by one to measure their effect. As the results reported in Table 2 (b,c), all the components of our method bring non-trivial improvement. Especially, when soft labels are utilized, the distillation becomes unstable if our proposed sequential generation strategy is not applied, leading to poor performance and sometimes program crashes.
158
+
159
+ Soft label. In our method, we use logits generated by the pre-trained model to initialize soft labels, since having an appropriate distribution before the softmax is critical for the optimization of the soft label (Section A.2). However, using logits will introduce additional information to the distilled dataset (Hinton et al.,
160
+
161
+ (c) CIFAR-10, IPC=50
162
+ Table 2: (a): Cross-Architecture evaluation. Our distilled dataset performs well across various unseen networks. (b): Ablation studies on the components of our method; all bring non-trivial improvement. (c): Ablation on learning soft labels and our sequential generation (SG) strategy.
163
+
164
+ <table><tr><td>Dataset</td><td colspan="3">CIFAR-10</td><td colspan="3">CIFAR-100</td><td colspan="3">Tiny ImageNet</td></tr><tr><td>IPC</td><td>1</td><td>10</td><td>50</td><td>1</td><td>10</td><td>50</td><td>1</td><td>10</td><td>50</td></tr><tr><td>FTD</td><td>46.0</td><td>65.3</td><td>73.2</td><td>24.4</td><td>42.5</td><td>48.5</td><td>10.5</td><td>23.4</td><td>28.2</td></tr><tr><td>FTD+ASL</td><td>45.5</td><td>66.1</td><td>72.8</td><td>24.2</td><td>44.5</td><td>51.2</td><td>12.4</td><td>26.7</td><td>30.9</td></tr><tr><td>DATM</td><td>46.9</td><td>66.8</td><td>76.1</td><td>27.9</td><td>47.2</td><td>53.0</td><td>17.1</td><td>29.0</td><td>33.7</td></tr></table>
165
+
166
+ Table 3: We assign soft labels (ASL) for datasets distilled by FTD. For fairness, our difficult alignment strategy is not utilized here. Results in red indicate the case when ASL is harmful.
167
+
168
+ <table><tr><td>Dataset</td><td>Ratio</td><td>Method</td><td>ConvNet</td><td>ConvNet-BN</td><td>ResNet18</td><td>ResNet18-BN</td><td>VGG11</td><td>AlexNet</td><td>LeNet</td><td>MLP</td><td>Avg.</td></tr><tr><td rowspan="5">CIFAR-10</td><td rowspan="5">20%</td><td>Random</td><td>78.38</td><td>80.25</td><td>84.58</td><td>87.21</td><td>80.81</td><td>80.75</td><td>61.85</td><td>50.98</td><td>75.60</td></tr><tr><td>Glister</td><td>62.46</td><td>70.52</td><td>81.10</td><td>74.59</td><td>78.07</td><td>70.55</td><td>56.56</td><td>40.59</td><td>66.81</td></tr><tr><td>Forgetting</td><td>76.27</td><td>80.06</td><td>85.67</td><td>87.18</td><td>82.04</td><td>81.35</td><td>64.59</td><td>52.21</td><td>76.17</td></tr><tr><td>DATM</td><td>85.50</td><td>85.23</td><td>87.22</td><td>88.13</td><td>84.65</td><td>85.14</td><td>66.70</td><td>52.40</td><td>79.37</td></tr><tr><td>↑</td><td>+7.12</td><td>+4.98</td><td>+2.64</td><td>+0.92</td><td>+3.84</td><td>+4.39</td><td>+4.85</td><td>+1.42</td><td>+3.77</td></tr><tr><td rowspan="5">CIFAR-100</td><td rowspan="5">20%</td><td>Random</td><td>42.80</td><td>46.38</td><td>47.48</td><td>55.62</td><td>42.69</td><td>38.05</td><td>25.91</td><td>20.66</td><td>39.95</td></tr><tr><td>Glister</td><td>35.45</td><td>37.13</td><td>42.49</td><td>46.14</td><td>43.06</td><td>28.58</td><td>23.33</td><td>17.08</td><td>34.16</td></tr><tr><td>Forgetting</td><td>45.52</td><td>49.99</td><td>51.44</td><td>54.65</td><td>43.28</td><td>43.47</td><td>27.22</td><td>22.90</td><td>42.30</td></tr><tr><td>DATM</td><td>57.50</td><td>57.75</td><td>57.98</td><td>63.34</td><td>55.10</td><td>55.69</td><td>33.57</td><td>26.39</td><td>50.92</td></tr><tr><td>↑</td><td>+14.70</td><td>+11.37</td><td>+10.50</td><td>+7.72</td><td>+12.41</td><td>+17.64</td><td>+7.66</td><td>+5.73</td><td>+10.97</td></tr><tr><td rowspan="5">TI</td><td rowspan="5">10%</td><td>Random</td><td>15.00</td><td>24.21</td><td>17.73</td><td>28.07</td><td>22.51</td><td>14.03</td><td>9.25</td><td>5.85</td><td>17.08</td></tr><tr><td>Glister</td><td>17.32</td><td>19.77</td><td>18.84</td><td>23.12</td><td>19.10</td><td>11.68</td><td>8.84</td><td>3.86</td><td>15.32</td></tr><tr><td>Forgetting</td><td>20.04</td><td>23.83</td><td>19.38</td><td>28.88</td><td>23.77</td><td>12.13</td><td>12.06</td><td>5.54</td><td>18.20</td></tr><tr><td>DATM</td><td>39.68</td><td>40.32</td><td>36.12</td><td>43.14</td><td>38.35</td><td>35.10</td><td>12.41</td><td>9.02</td><td>31.76</td></tr><tr><td>↑</td><td>+24.68</td><td>+16.11</td><td>+18.39</td><td>+15.07</td><td>+15.84</td><td>+21.07</td><td>+3.16</td><td>+3.17</td><td>+14.68</td></tr></table>
169
+
170
+ Table 4: We evaluate our distilled lossless datasets on unseen networks and compare them with two coreset selection methods. Results worse than random selection are indicated with red color. $\uparrow$ denotes the performance improvement brought by our method compared with random selection. TI denotes Tiny ImageNet.
171
+
172
+ 2015). To see if this information can be directly integrated into the distilled datasets, we assign soft labels for datasets distilled by FTD (Du et al., 2023).
173
+
174
+ As shown in Table 3, directly assigning soft labels for the distilled datasets will even hurt its performance when the number of categories in the classification problem is small. For CIFAR-100 and Tiny ImageNet, although assigning soft labels slightly improves the performance of FTD, there is still a huge gap between its performance and ours. This is because the soft labels synthesized by our method are optimized constantly during the distillation, leading to better consistency between the synthetic data and their labels.
175
+
176
+ Furthermore, the information contained in logits varies with the capacity of the teacher model (Zong et al., 2023; Cui et al., 2023). In the experiments reported in Figure 3 (b), we use models trained after different epochs to initialize the soft labels. In the beginning, this difference has non-trivial influences on the performance of the synthetic datasets. However, the performance gaps soon disappear as the distillation goes on if labels are optimized during the distillation. This indicates learning labels relieves us from carefully selecting models to initialize soft labels. Moreover, as can be observed in Figure 3 (b), when soft labels are not optimized, the distillation becomes less stable, leading to the poor performance of the distilled dataset. Because using unoptimized soft labels will enlarge the discrepancy between the training trajectories over the synthetic dataset and the original one, considering the experts are trained with one-hot labels. More analyses are attached in Section A.2.2.
177
+
178
+ Synthetic data initialization. To avoid mislabeling, we initialize the synthetic dataset by randomly sampling data from a subset of the original dataset, which only contains samples that can be correctly classified by the model used for initializing soft labels. The process of constructing the subset can be viewed as a simple coreset selection. Here we perform an ablation study to see its effect. Specifically, synthetic datasets are either initialized by randomly sampling data from the original dataset (random selection) or a subset of data that can be correctly classified by a pre-trained ConvNet (ours).
179
+
180
+ As shown in Fig 3 (a), our initialization strategy can significantly speed up the convergence of the optimization. This is because data selected by our strategy are relatively easier for DNNs to learn. Thus, models trained on these easier samples will perform better when only limited training data are provided (Sorscher et al., 2022). Although this gap is gradually bridged as the distillation goes on, our initialization strategy can be utilized as a distillation speed-up technique.
181
+
182
+ # 5 EXTENSION
183
+
184
+ # 5.1 VISUALIZATION
185
+
186
+ For a better understanding of easy patterns and hard patterns, we visualize the distilled images and discuss their properties. In Figure 4, we visualize the images synthesized by matching early trajectories and late trajectories under the same IPC setting, where easy patterns and hard ones are learned respectively. In Figure 5, we visualize the images distilled under different IPC settings.
187
+
188
+ ![](images/f6e042323f60bcf13809248bfa82791f284f289cba8b9edaa463569e32f18f20.jpg)
189
+ Figure 4: We perform the distillation on CIFAR-10 with IPC=50 by matching either early trajectories $\{\theta_t|0\leq t\leq 10\}$ or late trajectories $\{\theta_t|30\leq t\leq 40\}$ . All synthetic images are optimized 1000 times. Matching earlier trajectories will blur the details of the target object and change the color more drastically.
190
+
191
+ ![](images/502afab62b95cb344d0059be07d8e02a2ab9e4c2d56bd9e29c6964f47ad215a5.jpg)
192
+
193
+ ![](images/edcd11513b28d0d5772988b464a5d6528448308366deaaa02223e109e5c1324c.jpg)
194
+
195
+ <table><tr><td>E/D</td><td>Random</td><td>ConvNet</td><td>ResNet18</td></tr><tr><td>ConvNet</td><td>31.00</td><td>68.28</td><td>44.54</td></tr><tr><td>ResNet18</td><td>26.70</td><td>48.66</td><td>45.28</td></tr><tr><td>VGG11</td><td>31.63</td><td>45.93</td><td>39.68</td></tr><tr><td>MLP</td><td>26.86</td><td>33.39</td><td>29.17</td></tr></table>
196
+
197
+ $\mathrm{IPC} = 10$
198
+
199
+ <table><tr><td>E\D</td><td>Random</td><td>ConvNet</td><td>ResNet18</td></tr><tr><td>ConvNet</td><td>55.55</td><td>76.08</td><td>59.08</td></tr><tr><td>ResNet18</td><td>54.96</td><td>66.27</td><td>61.18</td></tr><tr><td>VGG11</td><td>48.72</td><td>59.43</td><td>50.72</td></tr><tr><td>MLP</td><td>36.66</td><td>33.29</td><td>34.41</td></tr></table>
200
+
201
+ IPC=50
202
+
203
+ <table><tr><td>E\D</td><td>Random</td><td>ConvNet</td><td>ResNet18</td></tr><tr><td>ConvNet</td><td>78.38</td><td>85.50</td><td>84.64</td></tr><tr><td>ResNet18</td><td>84.58</td><td>87.22</td><td>87.70</td></tr><tr><td>VGG11</td><td>80.81</td><td>84.65</td><td>84.85</td></tr><tr><td>MLP</td><td>50.98</td><td>52.40</td><td>54.01</td></tr></table>
204
+
205
+ $\mathrm{IPC} = 1000$
206
+
207
+ Table 5: We use ConvNet and ResNet18 to perform the distillation (D) on CIFAR-10 with various IPC settings. Then evaluations (E) are performed using networks with various architectures. As IPC increases, datasets distilled using ResNet18 perform relatively better.
208
+
209
+ As can be observed in Figure 4, compared with hard patterns, the learned easy patterns drive the synthetic images to move farther from their initialization and tend to blend the target object into the background. Although this process seems to make the image more informative, it blurs the texture and fine geometric details of the target object, making it harder for networks to learn to identify non-typical samples. This helps explain why generating easy patterns turned out to be harmful in high IPC cases. However, generating easy patterns performs well in the regime of low IPC, where the optimal solution is to model the most dense areas of the target category's distribution given the limited data budget. For example, as shown in Figure 5, the synthetic images collapse to almost only contain color and vague shape information when IPC is extremely low, which helps networks learn to identify easy samples from this basic property.
210
+
211
+ Furthermore, we find matching late trajectories yields distilled images that contain more fine details. For example, as can be observed in Figure 4, matching late trajectories transforms the simple background in the dog images into a more informative one and gives more texture details to the dog and horse. This transformation helps networks learn to identify outlier (hard) samples; hence, matching late trajectories is a better choice in high IPC cases.
212
+
213
+ # 5.2 DISTILLATION COST
214
+
215
+ In this work, we scale dataset distillation to high IPC cases. Surprisingly, we find the distillation cost does not increase linearly with IPC, since the optimization converges faster in large IPC cases. This is because we match only late trajectories in high IPC cases, where the learned hard patterns only make a few changes on the images, as we have analyzed in Section 5.1 and can be observed in Figure 5. In practice, as reflected in Figure 3 (c), although the distillation with $\mathrm{IPC} = 1000$ needs to optimize $20\mathrm{x}$ more data than the case with $\mathrm{IPC} = 50$ , the former one's cost is only 1.05 times higher.
216
+
217
+ # 5.3 DISTILLATION BACKBONE NETWORKS
218
+
219
+ So far, almost all representative distillation methods choose to use ConvNet to perform the distillation (Zhao & Bilen, 2021; Cazenavette et al., 2022; Loo et al., 2023). Using other networks as the distillation backbone will result in non-trivial performance degradation (Liu et al., 2023b). What makes ConvNet so effective for distillation remains an open question.
220
+
221
+ Here we offer an answer from our perspective: part of the specialness of ConvNet comes from its low capacity. In general, networks with more capacity can learn more complex patterns. Accordingly, when used as distilling networks, their generated patterns are relatively harder for DNNs to learn.
222
+
223
+ ![](images/b04653312d3a49560d8c06b0d3f7c6d751c451e96f42615cec986cc430c5f8b7.jpg)
224
+ Figure 5: Visualization of the synthetic datasets distilled with different IPC settings. As IPC increases, synthetic images move less far from their initialization.
225
+
226
+ ![](images/83b2e879ee4a6b3792faa722c400376da239a0197c60c36f3962aa824d50a4e3.jpg)
227
+
228
+ As we have analyzed in section 3.1, in small IPC cases (where previous distillation methods focus their attention), most improvement comes from the easy patterns generated on the synthetic data. Thus networks with more capacity such as ResNet will perform worse than ConvNet when IPC is low because their generated patterns are harder for DNNs to learn. However, in high IPC cases, where hard patterns play an important role, using stronger networks should perform relatively better. To verify this, we use ResNet18 and ConvNet to perform distillation on CIFAR-10 with different IPC settings. As shown in Table 5, when IPC is low, ConvNet performs much better than ResNet18 as the distillation network. However, when IPC reaches 1000, ResNet18 has a comparable or even better performance compared with ConvNet.
229
+
230
+ # 6 RELATED WORK
231
+
232
+ Dataset distillation introduced by Wang et al. (2018) is naturally a bi-level optimization problem, which aims at distilling a large dataset into a small one without causing performance drops. The following works can be divided into two types according to their mechanism:
233
+
234
+ Kernel-based distillation methods use kernel ridge-regression with NTK (Lee et al., 2019) to obtain a closed-form solution for the inner optimization (Nguyen et al., 2020). By doing so, dataset distillation can be formulated as a single-level optimization problem. The following works have significantly reduced the training cost (Zhou et al., 2022) and improved the performance (Loo et al., 2022; 2023). However, since the heavy resource consumption of inversing matrix operation, it is hard to scale kernel-based methods to larger IPC.
235
+
236
+ Matching-based methods minimize defined metrics of surrogate models learned from the synthetic dataset and the original one. According to the definition of the metric, they can be divided into four categories: based on matching gradients (Zhao et al., 2020; Kim et al., 2022; Zhang et al., 2023), features (Wang et al., 2022), distribution (Zhao & Bilen, 2023; Zhao et al., 2023), and training trajectories (Cazenavette et al., 2022; Cui et al., 2023; Du et al., 2023). So far, trajectory matching-based methods have shown impressive performance on every benchmark with low IPC (Cui et al., 2022; Yu et al., 2023). In this work, we further explore and show its great power in higher IPC cases.
237
+
238
+ # 7 CONCLUSION AND DISCUSSION
239
+
240
+ In this work, we find the difficulty of patterns generated by dataset distillation algorithms should be aligned with the size of the synthetic dataset, which is the key to keeping them effective in both low- and high-IPC cases. Building upon this insight, our method excels not only in low IPC cases but also maintains its efficacy in high IPC scenarios, achieving lossless dataset distillation for the first time.
241
+
242
+ However, our distilled data are only lossless for the distillation backbone network: when evaluating them with other networks, the performance drops still exist. We think this is because models with different capacities need varying amounts of training data. How to overcome this issue is still a challenging problem. Moreover, it is hard to scale TM-based methods to large datasets due to its high distillation cost. How to improve its efficiency would be the goal of our future work.
243
+
244
+ Acknowledgements. This work is supported by the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG2-PhD-2021-08-008). This work is also supported in part by the National Key R&D Program of China (NO.2022ZD0160100 and NO.2022ZD0160101). Part of Hui Li's work is supported by the National Natural Science Foundation of China (61932015), Shaanxi Innovation Team project (2018TD-007), Higher Education Discipline Innovation 111 project (B16037). Yang You's research group is being sponsored by NUS startup grant (Presidential Young Professorship), Singapore MOE Tier-1 grant, ByteDance grant, ARCTIC grant, SMI grant (WBS number: A-8001104-00-00), Alibaba grant, and Google grant for TPU usage. We thank Bo Zhao for valuable discussions and feedback.
245
+
246
+ # REFERENCES
247
+
248
+ Devansh Arpit, Stanisław Jastrzebski, Nicolas Ballas, David Krueger, Emmanuel Bengio, Maxinder S Kanwal, Tegan Maharaj, Asja Fischer, Aaron Courville, Yoshua Bengio, et al. A closer look at memorization in deep networks. In ICML, 2017. 2, 3
249
+ Ondrej Bohdal, Yongxin Yang, and Timothy Hospedales. Flexible dataset distillation: Learn labels instead of images. In NeurIPS Workshop, 2020. 16
250
+ George Cazenavette, Tongzhou Wang, Antonio Torralba, Alexei A Efros, and Jun-Yan Zhu. Dataset distillation by matching training trajectories. In CVPR, 2022. 1, 2, 5, 8, 9, 16, 17
251
+ Dingfan Chen, Raouf Kerkouche, and Mario Fritz. Private set generation with discriminative information. NeurIPS, 2022. 1
252
+ Xuxi Chen, Yu Yang, Zhangyang Wang, and Baharan Mirzasoleiman. Data distillation can be like vodka: Distilling more times for better quality. In ICLR, 2024. 16
253
+ Justin Cui, Ruochen Wang, Si Si, and Cho-Jui Hsieh. Dc-bench: Dataset condensation benchmark. In NeurIPS, 2022. 2, 9, 17
254
+ Justin Cui, Ruochen Wang, Si Si, and Cho-Jui Hsieh. Scaling up dataset distillation toImagenet-1k with constant memory. In ICML, 2023. 1, 4, 5, 7, 9, 18
255
+ Tian Dong, Bo Zhao, and Lingjuan Lyu. Privacy for free: How does dataset condensation help privacy? In ICML, 2022. 1
256
+ Jiawei Du, Yidi Jiang, Vincent YF Tan, Joey Tianyi Zhou, and Haizhou Li. Minimizing the accumulated trajectory error to improve dataset distillation. In CVPR, 2023. 1, 2, 5, 7, 9, 14, 17
257
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In CVPR, 2016. 5
258
+ Geoffrey Hinton, Oriol Vinyals, and Jeffrey Dean. Distilling the knowledge in a neural network. In NeurIPS Workshop, 2015. 4, 6
259
+ Wei Jin, Lingxiao Zhao, Shichang Zhang, Yozen Liu, Jiliang Tang, and Neil Shah. Graph condensation for graph neural networks. In ICLR, 2022. 16
260
+ Krishnateja Killamsetty, Durga Sivasubramanian, Ganesh Ramakrishnan, and Rishabh Iyer. Glister: Generalization based data subset selection for efficient and robust learning. In AAAI, 2021. 6
261
+ Jang-Hyun Kim, Jinuk Kim, Seong Joon Oh, Sangwoo Yun, Hwanjun Song, Joonhyun Jeong, Jung-Woo Ha, and Hyun Oh Song. Dataset condensation via efficient synthetic-data parameterization. In ICML, 2022. 1, 9
262
+ Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009. 5
263
+ Alex Krizhevsky, Ilya Sutskever, and Geoffrey E Hinton. Imagenet classification with deep convolutional neural networks. In NeurIPS, 2012. 5
264
+
265
+ Ya Le and Xuan Yang. Tiny imagenet visual recognition challenge. 2015. 5
266
+ Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998. 5
267
+ Jaehoon Lee, Lechao Xiao, Samuel Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In NeurIPS, 2019. 9
268
+ Songhua Liu, Kai Wang, Xingyi Yang, Jingwen Ye, and Xinchao Wang. Dataset distillation via factorization. In NeurIPS, 2022. 16
269
+ Songhua Liu, Jingwen Ye, Runpeng Yu, and Xinchao Wang. Slimmable dataset condensation. In CVPR, 2023a. 16
270
+ Yanqing Liu, Jianyang Gu, Kai Wang, Zheng Zhu, Wei Jiang, and Yang You. Dream: Efficient dataset distillation by representative matching. ICCV, 2023b. 1, 8, 16
271
+ Noel Loo, Ramin Hasani, Alexander Amini, and Daniela Rus. Efficient dataset distillation using random feature approximation. In NeurIPS, 2022. 9
272
+ Noel Loo, Ramin Hasani, Mathias Lechner, and Daniela Rus. Dataset distillation with convexified implicit gradients. In ICML, 2023. 5, 8, 9
273
+ Wojciech Masarczyk and Ivona Tautkute. Reducing catastrophic forgetting with learning on synthetic data. In CVPR Workshop, 2020. 1
274
+ Timothy Nguyen, Zhourong Chen, and Jaehoon Lee. Dataset meta-learning from kernel ridge-regression. In ICLR, 2020. 1, 5, 9
275
+ Timothy Nguyen, Roman Novak, Lechao Xiao, and Jaehoon Lee. Dataset distillation with infinitely wide convolutional networks. In NeurIPS, 2021. 1
276
+ Andrea Rosasco, Antonio Carta, Andrea Cossu, Vincenzo Lomonaco, and Davide Bacciu. Distilled replay: Overcoming forgetting through synthetic samples. In International Workshop on Continual Semi-Supervised Learning, 2021. 1
277
+ Karen Simonyan and Andrew Zisserman. Very deep convolutional networks for large-scale image recognition. In ICLR, 2015. 5
278
+ Ben Sorscher, Robert Geirhos, Shashank Shekhar, Surya Ganguli, and Ari Morcos. Beyond neural scaling laws: beating power law scaling via data pruning. In NeurIPS, 2022. 4, 7, 15
279
+ Felipe Petroski Such, Aditya Rawal, Joel Lehman, Kenneth Stanley, and Jeffrey Clune. Generative teaching networks: Accelerating neural architecture search by learning to generate synthetic training data. In ICML, 2020. 1
280
+ Ilia Sucholutsky and Matthias Schonlau. Secdd: Efficient and secure method for remotely training neural networks (student abstract). In AAAI, 2021a. 1
281
+ Ilia Sucholutsky and Matthias Schonlau. Soft-label dataset distillation and text dataset distillation. In International Joint Conference on Neural Networks, 2021b. 16
282
+ Mariya Toneva, Alessandro Sordoni, Remi Tachet des Combes, Adam Trischler, Yoshua Bengio, and Geoffrey J Gordon. An empirical study of example forgetting during deep neural network learning. In ICLR, 2018. 6
283
+ Kai Wang, Bo Zhao, Xiangyu Peng, Zheng Zhu, Shuo Yang, Shuo Wang, Guan Huang, Hakan Bilen, Xinchao Wang, and Yang You. Cafe: Learning to condense dataset by aligning features. In CVPR, 2022. 1, 5, 9
284
+ Kai Wang, Jianyang Gu, Daquan Zhou, Zheng Zhu, Wei Jiang, and Yang You. Dim: Distilling dataset into generative model. arXiv, 2023. 16
285
+
286
+ Ruochen Wang, Minhao Cheng, Xiangning Chen, Xiaocheng Tang, and Cho-Jui Hsieh. Rethinking architecture selection in differentiable nas. In ICLR, 2021. 1
287
+ Tongzhou Wang, Jun-Yan Zhu, Antonio Torralba, and Alexei A Efros. Dataset distillation. arXiv preprint arXiv:1811.10959, 2018. 9, 16
288
+ Xindi Wu, Byron Zhang, Zhiwei Deng, and Olga Russakovsky. Vision-language dataset distillation. arXiv preprint arXiv:2308.07545, 2023. 16
289
+ Yuanhao Xiong, Ruochen Wang, Minhao Cheng, Felix Yu, and Cho-Jui Hsieh. Feddm: Iterative distribution matching for communication-efficient federated learning. In CVPR, 2023. 1
290
+ Beining Yang, Kai Wang, Qingyun Sun, Cheng Ji, Xingcheng Fu, Hao Tang, Yang You, and Jianxin Li. Does graph distillation see like vision dataset counterpart? In NeurIPS, 2023. 16
291
+ Ruonan Yu, Songhua Liu, and Xinchao Wang. Dataset distillation: A comprehensive review. arXiv preprint arXiv:2301.07014, 2023. 9
292
+ Lei Zhang, Jie Zhang, Bowen Lei, Subhabrata Mukherjee, Xiang Pan, Bo Zhao, Caiwen Ding, Yao Li, and Dongkuan Xu. Accelerating dataset distillation via model augmentation. In CVPR, 2023. 1, 9, 16
293
+ Tianle Zhang, Yuchen Zhang, Kun Wang, Kai Wang, Beining Yang, Kaipeng Zhang, Wenqi Shao, Ping Liu, Joey Tianyi Zhou, and Yang You. Two trades is not baffled: Condensing graph via crafting rational gradient matching, 2024a. 16
294
+ Yuchen Zhang, Tianle Zhang, Kai Wang, Ziyao Guo, Yuxuan Liang, Xavier Bresson, Wei Jin, and Yang You. Navigating complexity: Toward lossless graph condensation via expanding window matching. arXiv preprint arXiv:2402.05011, 2024b. 16
295
+ Bo Zhao and Hakan Bilen. Dataset condensation with differentiable siamese augmentation. In ICML, 2021. 5, 8
296
+ Bo Zhao and Hakan Bilen. Dataset condensation with distribution matching. In WACV, 2023. 1, 5, 9
297
+ Bo Zhao, Konda Reddy Mopuri, and Hakan Bilen. Dataset condensation with gradient matching. In ICLR, 2020. 1, 5, 9
298
+ Ganlong Zhao, Guanbin Li, Yipeng Qin, and Yizhou Yu. Improved distribution matching for dataset condensation. In CVPR, 2023. 1, 9
299
+ Daquan Zhou, Kai Wang, Jianyang Gu, Xiangyu Peng, Dongze Lian, Yifan Zhang, Yang You, and Jiashi Feng. Dataset quantization. arXiv preprint arXiv:2308.10524, 2023. 2
300
+ Yanlin Zhou, George Pu, Xiyao Ma, Xiaolin Li, and Dapeng Wu. Distilled one-shot federated learning. arXiv preprint arXiv:2009.07999, 2020.1
301
+ Yongchao Zhou, Ehsan Nezhadarya, and Jimmy Ba. Dataset distillation using neural feature regression. In NeurIPS, 2022. 5, 9
302
+ Martin Zong, Zengyu Qiu, Xinzhu Ma, Kunlin Yang, Chunya Liu, Jun Hou, Shuai Yi, and Wanli Ouyang. Better teacher better student: Dynamic prior knowledge for knowledge distillation. In ICLR, 2023. 7
303
+
304
+ # A APPENDIX
305
+
306
+ # A.1 SOFT LABEL DISTRIBUTION
307
+
308
+ To observe the changes in soft labels' distribution during the distillation, we record the standard deviation (std) of soft labels (after softmax) for each synthetic image, and report the average value of their std in Figure 6. As can be observed, for all datasets, their labels' std tends to increase as the distillation goes on. However, this increase does not arise due to the diversity between the values of soft labels becoming larger, but the values of non-target categories' labels are suppressed. Since the value of the target category is much higher than others, to facilitate observation, we only report the values of non-target categories in Figure 7. As can be observed, after the distillation, the values of non-target categories' labels are suppressed more drastically when IPC is smaller. This is because, in low IPC cases, basic patterns of target category are embedded into the synthetic data since only early expert trajectories are used for the matching. Accordingly, the model becomes more confident that the generated sample belongs to the target category.
309
+
310
+ # A.2 SOFT LABEL INITIALIZATION
311
+
312
+ We have tried to initialize soft labels with the original one-hot labels and directly optimize their values during the distillation, but the distillation soon crashed. We also have tried to add a softmax layer on it. However, the distillation is still not stable. After initializing labels with class probabilities calculated using softmax and logits output by a pre-trained model, finally, soft labels can be optimized stably during the distillation.
313
+
314
+ For labels with a given distribution, their values before softmax can be different. In this case, due to the utilization of softmax, when performing backpropagation, the gradients of pre-softmax logits will also be different even if their values after softmax are the same. Through experiments, we find using an appropriate distribution before softmax to initialize soft labels is crucial to maintaining the stability of the distillation. We have also tried to modify the distribution of logits without changing their values after softmax. However, we see this operation will greatly increase the instability of distillation. Moreover, we have tried to scale the values of logits during the initialization, which also leads to the degradation of performance.
315
+
316
+ # A.2.1 STABABILITY
317
+
318
+ In the manuscript, we propose to generate easy and hard patterns sequentially to make the distillation stable enough for learning soft labels. The insight here is enabling the surrogate model to learn more easy patterns through the finite training steps and limited samples in inner optimization, such that the model can match the expert trajectories better. We find that simply increasing the update times in inner optimization can also stabilize the distillation. Because the surrogate model can learn easy patterns better through a longer learning process. However, increasing the update times in inner optimization will increase the memory requirement and the training cost. Thus we use the method introduced in the manuscript by default.
319
+
320
+ # A.2.2 SOFT LABEL OPTIMIZATION
321
+
322
+ We can choose to only replace original one-hot labels with soft labels but don't optimize them during the distillation. However, this will make the surrogate model harder to match the expert training trajectories, because the expert trajectories are trained with one-hot labels. As reflected in Figure 8 (Left), when soft labels are not optimized, the matching loss is higher than using one-hot labels. Although using unoptimized soft labels still performs better than one-hot labels because of the additional information contained in the soft labels, its performance is undermined by the under-matching.
323
+
324
+ The under-matching issue can be alleviated by optimizing soft labels during the distillation. As can be observed in Figure 8 (Left), when soft labels are optimized during the distillation, the matching loss becomes lower than using one-hot labels. Accordingly, the performance is improved, as can be observed in Figure 8 (Right).
325
+
326
+ ![](images/44389614985c7782ede51da810ded676c7bc2c95466a8f2ffc63d94c711b3fdb.jpg)
327
+ Figure 6: Visualization of the changing of soft labels in various datasets where IPC=50. The average standard deviation of soft labels tends to increase as the distillation goes on.
328
+
329
+ ![](images/52e6e9a53dd0c271767e4382c9f322f222467e61ce1dc333e4b0df47dd94a956.jpg)
330
+
331
+ ![](images/ccbfb7ce0c8d68840eaba8c32911cac7d7d3e79bf4f739a40a11b533012c39a4.jpg)
332
+
333
+ ![](images/321f4cfb67352ca92d52d473e2ab017c2eb4722aa110a99279dc8bfd9f873896.jpg)
334
+ Figure 7: Visualization of the distribution of non-target soft labels of a synthetic image initialized with the same soft labels and image but distilled with different IPC settings. The values of non-target categories are suppressed more drastically when IPC is smaller.
335
+
336
+ ![](images/233f0df0d1cb489193cc1e27e3fe922e896aa53d81672967f5cb0965cae70ee2.jpg)
337
+
338
+ ![](images/8841cd9c3aed2bee32a270c4372fc822098e90d1964b2924ecab22bfb9a6fb43.jpg)
339
+
340
+ # A.3 ABLATION ON SYNTHETIC STEPS
341
+
342
+ We find increasing the synthetic steps $N$ (Algorithm 1) will bring more performance gain when soft labels are utilized, as reflected in Figure 9 (Left). This is because the optimization of the surrogate model in the inner optimization affects how well it can match the expert trajectories. When soft labels are not utilized, the information contained in the synthetic dataset is relatively limited, thus the surrogate barely benefits from a longer learning process. Moreover, we find increasing the synthetic steps $N$ can also bring improvement in high IPC cases. As shown in Figure 9 (middle), setting $N = 80$ performs best in the case with IPC=1000, where the batch size is set to 1000. In this case, in every iteration, the parameters of the surrogate model are optimized over 80K images (10K unduplicated images) contained in the synthetic dataset, while the target parameters are obtained by the optimization over 100k images (50k unduplicated images) contained in the original datasets. In this case, although the length of the training trajectory over the synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ and the original dataset $\mathcal{D}_{\mathrm{real}}$ are similar, matching trajectories still can improve the training performance of the synthetic datasets. Based on this observation, we conjecture that the key to keeping TM-based methods effective is to ensure the number of unduplicated images contained in $\mathcal{D}_{\mathrm{syn}}$ is smaller than that of $\mathcal{D}_{\mathrm{real}}$ , rather than use the short trajectory trained on $\mathcal{D}_{\mathrm{syn}}$ to match the longer one optimized over $\mathcal{D}_{\mathrm{real}}$ .
343
+
344
+ # A.4 PREVIOUS TM-BASED METHODS IN LARGE IPC SETTINGS
345
+
346
+ We have tried to use previous TM-based methods to perform the distillation in larger IPC settings. The distillation logs of FTD (Du et al., 2023) are reported in Figure 9. As can be observed, FTD will undermine the training performance of the datasets in larger IPC cases. We have tried to tune its hyper-parameters including the learning rate, batch size, synthetic steps, and the upper bound of the sample range, but the effort can only slow down the rate of performance degradation it arose. Without aligning the difficulty of the generated patterns with the size of the synthetic datasets, previous TM-based methods can not keep being effective in high IPC settings.
347
+
348
+ ![](images/d39e5e1a61e4b346de26d3061f4bbe28fff6f4c9c8692b0b610e9940026b04c3.jpg)
349
+ Figure 8: Left: Logs of the matching loss (smoothed with EMA), where the labels of the synthetic dataset are either one-hot labels, unoptimized soft labels, or soft labels that are optimized during the distillation. Right: Logs of performance of the distilled datasets. Learning soft labels during the distillation enables surrogate models to match expert trajectories better. Accordingly, its synthetic datasets have a better performance.
350
+
351
+ ![](images/9f4e03686e63ffcf69a96faab6eade70484ff685160d304879b236ea3bb952c5.jpg)
352
+
353
+ ![](images/3252e0d54d795121b77b6221e25742df57c1b4e8975fe053265b87cf73892284.jpg)
354
+
355
+ ![](images/aa79bdd547656188f1ff489441e9b5078a6af44bacd7f9d947faa0fc4373058c.jpg)
356
+ Figure 9: Left: (CIFAR-100, $\mathrm{IPC} = 10$ ) Ablation on synthetic step $N$ , distillation with soft labels benefits more from a larger $N$ . Middle: (CIFAR-10) Distillation in larger IPC settings can still benefit from a higher larger $N$ . Right: Distillation log of FTD on CIFAR-10 with larger IPC. The performance of the synthetic datasets keeps being degraded as the distillation goes on.
357
+
358
+ ![](images/5578d037f88c9c162efba2f10bfdaf908f7fa7b32d2151faf72efbd141e660ed.jpg)
359
+
360
+ # A.5 MORE DETAILED ANALYSIS ON MATCHING LOSS
361
+
362
+ Here we provide more results and additional analysis about the matching loss over expert trajectories. As can be observed in Figure 10, initially, the matching loss over the former part of the trajectories is always lower than the one over the later part. This indicates earlier trajectories are relatively easier to match compared with the later ones. In other words, the patterns that surrogate models need to learn to match the early trajectories are relatively easier.
363
+
364
+ Moreover, it is interesting to observe that matching later trajectories can also reduce the matching loss over early trajectories in high IPC cases. We hypothesize that this is because, in the late training phases, DNNs just prefer to learn hard patterns to help identify the outliers, while a few easy patterns are also learned in late training phases. From this perspective, TM-based methods might not be the most efficient way to distill datasets with large IPC, since matching later trajectories still will generate a few easy patterns.
365
+
366
+ We can also find that when IPC is small, matching late trajectories will raise the matching loss over the early trajectories. This indicates generating hard patterns is harmful for the model to learn basic (easy) patterns to obtain the basic capacity to perform the classification when data is limited. This coincide with the observation in the dataset pruning area: preserving hard samples perform worse when only limited samples are kept (Sorscher et al., 2022).
367
+
368
+ # A.6 GUIDANCE FOR ALIGNING DIFFICULTY
369
+
370
+ Our difficulty alignment aims at letting the models trained on the synthetic dataset learn as many hard patterns as possible, without compromising their capacity to classify easy patterns. For TM-based methods, this can be quantified by the matching loss over a distillation-uninvolved expert trajectory, as we have analyzed in section A.5. Specifically, we want to add patterns that can help to reduce the matching loss over the latter part of the expert trajectory without increasing the matching
371
+
372
+ Algorithm 1: Pipeline of our method
373
+ Input: $\{\tau^{*}\}$ : set of expert parameter trajectories. $N$ : update times of the surrogate network in each inner optimization. $M$ : update times between the start and target expert parameters. $T^{-}, T, T^{+}$ : lower, current upper, final upper bound of the sample range of $t$ . $\mathcal{D}_{\mathrm{real}}$ : original dataset. $I$ : interval for expanding the sampling range. Sample a model $f_{\theta^{*}}$ from $\{\tau^{*}\}$ . Construct $\mathcal{D}_{\mathrm{sub}} = \{(x_i, \text{softmax}(L_i)) | (x_i, y_i) \in \mathcal{D}_{\mathrm{real}} \text{ and } \arg \max(L_i) == y_i\}$ , where $L_i = f_{\theta^{*}}(x_i)$ . Randomly sample data from $\mathcal{D}_{\mathrm{sub}}$ to initialize synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ . For iteration $\leftarrow 0$ to max_iteration do
374
+ - Randomly sample an expert training trajectory $\tau^{*} \in \{\tau^{*}\}$ with $\tau^{*} = \{\theta_i^*\}_0^n$
375
+ - Select random start timestamp $t$ , where $T^{-} \leq t \leq T$
376
+ - Sample $\theta_t^*, \theta_{t + M}^*$ from $\tau^{*}$ , initialize $\hat{\theta}_t = \theta_t^*$
377
+ - for $i \leftarrow 0$ to N-1 do
378
+ - \(\begin{array}{l}
379
+ b_{t + i} \sim \mathcal{D}_{\mathrm{syn}} \\
380
+ \hat{\theta}_{t + i + 1} = \hat{\theta}_{t + i} - \alpha \nabla \ell(\hat{\theta}_{t + i}, b_{t + i})
381
+ \end{array}\)
382
+ - update surrogate model with CE loss
383
+ - Compute matching loss between $\hat{\theta}_{t + N}$ and $\theta_{t + M}^*$ with Eq. 1
384
+ - Update $(x_i, \text{softmax}(L_i)) \in \{b\}_t^{t + N - 1}$ and $\alpha$ with respect to the matching loss
385
+ - if (iteration % $I == 0$ ) and $(T < T^{+})$ then
386
+ - $T = T + 1$
387
+
388
+ loss over the former part. In practice, we realize it by only matching a certain part of the expert trajectories during the distillation.
389
+
390
+ Here we introduce how to tune the values of $T^{-}$ , $T$ , and $T^{+}$ (Algorithm 1). For an initialized synthetic dataset $\mathcal{D}_{\mathrm{syn}}$ , we first set $T^{-} = 0$ and $T^{+} = T^{-} + 10$ to perform the distillation for 50 iterations, where the matching loss over a distillation-uninvolved expert trajectory is recorded. Then we simultaneously increase the values of $T^{-}$ and $T^{+}$ until the distillation will not increase the matching loss over the latter part of the expert trajectory. Subsequently, we increase the value of $T^{+}$ until the distillation will increase the matching loss over the former part of the expert trajectory. After deciding the values of $T^{-}$ and $T^{+}$ , we let them respectively be the lower- and upper-bound of the sample range and perform the distillation. During the distillation, we record the value of $t$ if the matching loss is larger than 1, which denotes the surrogate model can not match the expert trajectory. Then $T$ is set as the minimum recorded value, to avoid matching too hard trajectories in the beginning.
391
+
392
+ # A.7 MORE RELATED WORK
393
+
394
+ Two early works (Bohdal et al., 2020; Sucholutsky & Schonlau, 2021b) in the dataset distillation area also focus on optimizing the labels of the datasets. Specifically, based on the dataset distillation algorithm proposed by Wang et al. (2018), Sucholutsky & Schonlau (2021b) propose to optimize labels during the distillation, while Bohdal et al. (2020) choose to only distill soft labels without optimizing the training data. Different from them, we use the pre-trained model to initialize soft labels, which contain more information. Furthermore, our method is based on matching training trajectories (Cazenavette et al., 2022) rather than the method proposed by Wang et al. (2018).
395
+
396
+ Recently, several methods are proposed to improve the performance, efficiency and suitability of dataset distillation. For example, Liu et al. (2022) proposed to use hallucinations to enlarge the synthetic datasets in the deployment stage. Subsequently, Wang et al. (2023) achieved this goal by distilling the target dataset into a generative model. Moreover, (Zhang et al., 2023; Liu et al., 2023b) were proposed to accelerate the distillation and Liu et al. (2023a) proposed a method that allows adjusting the size of the distilled dataset during the deployment stage. Recently, Chen et al. (2024) proposed to improve the quality of the synthetic dataset with a carefully designed distillation schedule. Moreover, dataset distillation has also been successfully applied in condensing graph data (Jin et al., 2022; Yang et al., 2023; Zhang et al., 2024a;b) and multi-modality data (Wu et al., 2023).
397
+
398
+ ![](images/878fe379101c84b811dfa8e1071a1a7d5b02932a0d77edf795401ab6c012a4e7.jpg)
399
+ Figure 10: More detailed results of experiments reported in Figure 2. We train the expert models on CIFAR-10 for 40 epochs. Then we distill datasets with two strategies: (1) matching the early part of expert training trajectories, where $\theta_t^* \in \{\theta_0^* \dots \theta_{20}^*\}$ . (2) matching the latter part of expert training trajectories, where $\theta_t^* \in \{\theta_{20}^* \dots \theta_{40}^*\}$ . The first row shows the matching loss over a distillation-uninvolved expert trajectory, where the distillation is performed with strategy 1, and the second row shows the loss of strategy 2. In the first two rows, lines with darker color indicate the matching loss over more later part of the trajectories. $t$ denotes the timestamp of the start parameters used for matching (Algorithm 1). The last row shows the performance of the datasets distilled by different strategies with various IPC settings.
400
+
401
+ # A.8 SETTINGS
402
+
403
+ Distillation. Consistent with previous works (Cazenavette et al., 2022; Du et al., 2023), we perform the distillation for 10000 iterations to make sure the optimization is fully converged. We use ZCA whitening in all the involved experiments by default.
404
+
405
+ Evaluation. We keep our evaluation process consistent with previous works (Cazenavette et al., 2022; Du et al., 2023). Specifically, we train a randomly initialized network on the distilled dataset and then evaluate its performance on the entire validation set of the original dataset. Following previous works (Cazenavette et al., 2022; Du et al., 2023), the evaluation networks are trained for 1000 epochs to make sure the optimization is fully converged. All the results are the average over five trials. For fairness, experimental results of previous distillation methods in low IPC settings are obtained from (Du et al., 2023), while their results in high IPC cases come from (Cui et al., 2022).
406
+
407
+ Since the exponential moving average (EMA) used in FTD (Du et al., 2023) is a plug-and-play technique that hasn't been utilized by previous matching-based methods, for a fair comparison, we reproduce FTD with the official released code without using EMA. Accordingly, we do not use EMA in our method.
408
+
409
+ Network. We use various networks to evaluate the generalizability of our distilled datasets. Specifically, to scale ResNet, LeNet, and AlexNet to Tiny-ImageNet, we increase the stride of their first convolution layer from 1 to 2. For VGG, we increase the stride of its last max pooling layer from 1 to 2. The MLP utilized in our evaluation has one hidden layer with 128 units.
410
+
411
+ Hyper-parameters. We report the hyper-parameters of our method in Table 6. Additionally, for all the experiments with optimizing soft labels, we set its momentum to 0.9. We find learning labels with a low momentum will somewhat increase the instability of the distillation. We conjecture this is because the optimized soft labels are easy to overfit the expert trajectories considering we only match one trajectory in each iteration.
412
+
413
+ Compute resources. Our experiments are run on 4 NVIDIA A100 GPUs, each with 80 GB of memory. The heavy reliance on GPU memory can be alleviated by TESLA (Cui et al., 2023) or simply reducing the synthetic steps $N$ , which will not cause too much performance degradation. For example, reducing the synthetic steps $N$ from 80 to 40 saves about half the GPU memory, while it only makes the performance drop by around $0.8\%$ for CIFAR-10 with $\mathrm{IPC} = 1000$ , $0.7\%$ for CIFAR-100 with $\mathrm{IPC} = 100$ , and $0.4\%$ for TinyImageNet with $\mathrm{IPC} = 50$ .
414
+
415
+ <table><tr><td>Dataset</td><td>IPC</td><td>N</td><td>M</td><td>T-</td><td>T</td><td>T+</td><td>Interval</td><td>Synthetic Batch Size</td><td>Learning Rate (Label)</td><td>Learning Rate (Pixels)</td></tr><tr><td rowspan="5">CIFAR-10</td><td>1</td><td>80</td><td>2</td><td>0</td><td>4</td><td>4</td><td>-</td><td>10</td><td>5</td><td>100</td></tr><tr><td>10</td><td>80</td><td>2</td><td>0</td><td>10</td><td>20</td><td>100</td><td>100</td><td>2</td><td>100</td></tr><tr><td>50</td><td>80</td><td>2</td><td>0</td><td>20</td><td>40</td><td>100</td><td>500</td><td>2</td><td>1000</td></tr><tr><td>500</td><td>80</td><td>2</td><td>40</td><td>60</td><td>60</td><td>-</td><td>1000</td><td>10</td><td>50</td></tr><tr><td>1000</td><td>80</td><td>2</td><td>40</td><td>60</td><td>60</td><td>-</td><td>1000</td><td>10</td><td>50</td></tr><tr><td rowspan="4">CIFAR-100</td><td>1</td><td>40</td><td>3</td><td>0</td><td>10</td><td>20</td><td>100</td><td>100</td><td>10</td><td>1000</td></tr><tr><td>10</td><td>80</td><td>2</td><td>0</td><td>30</td><td>50</td><td>100</td><td>1000</td><td>10</td><td>1000</td></tr><tr><td>50</td><td>80</td><td>2</td><td>20</td><td>70</td><td>70</td><td>-</td><td>1000</td><td>10</td><td>1000</td></tr><tr><td>100</td><td>80</td><td>2</td><td>30</td><td>70</td><td>70</td><td>-</td><td>1000</td><td>10</td><td>50</td></tr><tr><td rowspan="3">TI</td><td>1</td><td>60</td><td>2</td><td>0</td><td>15</td><td>20</td><td>400</td><td>200</td><td>10</td><td>10000</td></tr><tr><td>10</td><td>60</td><td>2</td><td>10</td><td>50</td><td>50</td><td>-</td><td>250</td><td>10</td><td>100</td></tr><tr><td>50</td><td>80</td><td>2</td><td>40</td><td>70</td><td>70</td><td>-</td><td>250</td><td>10</td><td>100</td></tr></table>
416
+
417
+ Table 6: Hyper-parameters for different datasets.
418
+
419
+ ![](images/73c9d1d2cff64aac3343b110837a1865238e917577b6e0925b73ae4ddf6a6d47.jpg)
420
+ Figure 11: (Tiny ImageNet, $\mathrm{IPC} = 1$ ) Visualization of distilled images (1/2).
421
+
422
+ ![](images/29cae6b56167765c7cb7c32abd15c74efaa31b368833f1682a8f8cee2a990d19.jpg)
423
+ Figure 12: (Tiny ImageNet, $\mathrm{IPC} = 1$ ) Visualization of distilled images (2/2).
424
+
425
+ ![](images/dec701e4ebd2c2fd767cf2106c01932436933ae9d6235578f074138d5f012747.jpg)
426
+ Figure 13: (Tiny ImageNet, IPC=50) Visualization of distilled images (1/2).
427
+
428
+ ![](images/f85f4a60941373fc060def3c36c8a971375a0b8a5db323dbf3dc0a5f9da534d4.jpg)
429
+ Figure 14: (Tiny ImageNet, IPC=50) Visualization of distilled images (2/2).
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:fee7a9e811c7a00b6e57fb3268d597c7aa65756f6b2cf8c342f9c8469827ba7c
3
+ size 1634742
2024/Towards Lossless Dataset Distillation via Difficulty-Aligned Trajectory Matching/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_content_list.json ADDED
@@ -0,0 +1,2087 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "TOWARDS NON-ASYMPTOTIC CONVERGENCE FOR DIFFUSION-BASED GENERATIVE MODELS",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 171,
8
+ 99,
9
+ 823,
10
+ 146
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Gen Li*",
17
+ "bbox": [
18
+ 181,
19
+ 167,
20
+ 241,
21
+ 184
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Yuting Wei",
28
+ "bbox": [
29
+ 321,
30
+ 169,
31
+ 408,
32
+ 185
33
+ ],
34
+ "page_idx": 0
35
+ },
36
+ {
37
+ "type": "text",
38
+ "text": "Yuxin Chen†",
39
+ "bbox": [
40
+ 488,
41
+ 167,
42
+ 584,
43
+ 184
44
+ ],
45
+ "page_idx": 0
46
+ },
47
+ {
48
+ "type": "text",
49
+ "text": "Yuejie Chi\\*",
50
+ "bbox": [
51
+ 666,
52
+ 169,
53
+ 750,
54
+ 185
55
+ ],
56
+ "page_idx": 0
57
+ },
58
+ {
59
+ "type": "text",
60
+ "text": "ABSTRACT",
61
+ "text_level": 1,
62
+ "bbox": [
63
+ 450,
64
+ 220,
65
+ 547,
66
+ 236
67
+ ],
68
+ "page_idx": 0
69
+ },
70
+ {
71
+ "type": "text",
72
+ "text": "Diffusion models, which convert noise into new data instances by learning to reverse a Markov diffusion process, have become a cornerstone in contemporary generative modeling. While their practical power has now been widely recognized, the theoretical underpinnings remain far from mature. In this work, we develop a suite of non-asymptotic theory towards understanding the data generation process of diffusion models in discrete time, assuming access to $\\ell_2$ -accurate estimates of the (Stein) score functions. For a popular deterministic sampler (based on the probability flow ODE), we establish a convergence rate proportional to $1 / T$ (with $T$ the total number of steps), improving upon past results; for another mainstream stochastic sampler (i.e., a type of the denoising diffusion probabilistic model), we derive a convergence rate proportional to $1 / \\sqrt{T}$ , matching the state-of-the-art theory. Imposing only minimal assumptions on the target data distribution (e.g., no smoothness assumption is imposed), our results characterize how $\\ell_2$ score estimation errors affect the quality of the data generation process. In contrast to prior works, our theory is developed based on an elementary yet versatile non-asymptotic approach without resorting to toolboxes for SDEs and ODEs.",
73
+ "bbox": [
74
+ 228,
75
+ 253,
76
+ 767,
77
+ 477
78
+ ],
79
+ "page_idx": 0
80
+ },
81
+ {
82
+ "type": "text",
83
+ "text": "1 INTRODUCTION",
84
+ "text_level": 1,
85
+ "bbox": [
86
+ 173,
87
+ 505,
88
+ 338,
89
+ 520
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": "Diffusion models have emerged as a cornerstone in contemporary generative modeling, a task that learns to generate new data instances (e.g., images, text, audio) that look similar in distribution to the training data (Ho et al., 2020; Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Dhariwal & Nichol, 2021; Jolicoeur-Martineau et al., 2021; Chen et al., 2021; Kong et al., 2021; Austin et al., 2021). Originally proposed by Sohl-Dickstein et al. (2015) and later popularized by Song & Ermon (2019); Ho et al. (2020), the mainstream diffusion generative models — e.g., denoising diffusion probabilistic models (DDPMs) (Ho et al., 2020) and denoising diffusion implicit models (DDIMs) (Song et al., 2020a) — have underpinned major successes in content generators like DALL-E 2 (Ramesh et al., 2022), Stable Diffusion (Rombach et al., 2022) and Imagen (Saharia et al., 2022), claiming state-of-the-art performance in the now broad field of generative artificial intelligence (AI). See Yang et al. (2022); Croitoru et al. (2023) for overviews of recent development.",
96
+ "bbox": [
97
+ 169,
98
+ 537,
99
+ 826,
100
+ 690
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In a nutshell, a diffusion generative model is based upon two stochastic processes in $\\mathbb{R}^d$ :",
107
+ "bbox": [
108
+ 169,
109
+ 696,
110
+ 753,
111
+ 710
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "1) a forward process",
118
+ "bbox": [
119
+ 210,
120
+ 723,
121
+ 351,
122
+ 738
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "equation",
128
+ "text": "\n$$\nX _ {0} \\rightarrow X _ {1} \\rightarrow \\dots \\rightarrow X _ {T} \\tag {1}\n$$\n",
129
+ "text_format": "latex",
130
+ "bbox": [
131
+ 444,
132
+ 738,
133
+ 823,
134
+ 753
135
+ ],
136
+ "page_idx": 0
137
+ },
138
+ {
139
+ "type": "text",
140
+ "text": "that starts from a sample drawn from the target data distribution (e.g., of natural images) and gradually diffuses it into a noise-like distribution (e.g., standard Gaussians);",
141
+ "bbox": [
142
+ 228,
143
+ 758,
144
+ 823,
145
+ 787
146
+ ],
147
+ "page_idx": 0
148
+ },
149
+ {
150
+ "type": "text",
151
+ "text": "2) a reverse process",
152
+ "bbox": [
153
+ 209,
154
+ 792,
155
+ 346,
156
+ 806
157
+ ],
158
+ "page_idx": 0
159
+ },
160
+ {
161
+ "type": "equation",
162
+ "text": "\n$$\nY _ {T} \\rightarrow Y _ {T - 1} \\rightarrow \\dots \\rightarrow Y _ {0} \\tag {2}\n$$\n",
163
+ "text_format": "latex",
164
+ "bbox": [
165
+ 439,
166
+ 805,
167
+ 823,
168
+ 821
169
+ ],
170
+ "page_idx": 0
171
+ },
172
+ {
173
+ "type": "header",
174
+ "text": "Published as a conference paper at ICLR 2024",
175
+ "bbox": [
176
+ 171,
177
+ 32,
178
+ 478,
179
+ 47
180
+ ],
181
+ "page_idx": 0
182
+ },
183
+ {
184
+ "type": "page_footnote",
185
+ "text": "*Department of Statistics, The Chinese University of Hong Kong, Hong Kong.",
186
+ "bbox": [
187
+ 169,
188
+ 830,
189
+ 825,
190
+ 844
191
+ ],
192
+ "page_idx": 0
193
+ },
194
+ {
195
+ "type": "page_footnote",
196
+ "text": "†Department of Statistics and Data Science, Wharton School, University of Pennsylvania, Philadelphia, PA 19104, USA.",
197
+ "bbox": [
198
+ 169,
199
+ 844,
200
+ 823,
201
+ 869
202
+ ],
203
+ "page_idx": 0
204
+ },
205
+ {
206
+ "type": "page_footnote",
207
+ "text": "$^{\\ddagger}$ Department of Electrical and Systems Engineering, University of Pennsylvania, Philadelphia, PA 19104, USA.",
208
+ "bbox": [
209
+ 169,
210
+ 869,
211
+ 823,
212
+ 896
213
+ ],
214
+ "page_idx": 0
215
+ },
216
+ {
217
+ "type": "page_footnote",
218
+ "text": "$^{\\S}$ Department of Electrical and Computer Engineering, Carnegie Mellon University, Pittsburgh, PA 15213, USA.",
219
+ "bbox": [
220
+ 169,
221
+ 896,
222
+ 823,
223
+ 922
224
+ ],
225
+ "page_idx": 0
226
+ },
227
+ {
228
+ "type": "page_number",
229
+ "text": "1",
230
+ "bbox": [
231
+ 493,
232
+ 948,
233
+ 503,
234
+ 959
235
+ ],
236
+ "page_idx": 0
237
+ },
238
+ {
239
+ "type": "text",
240
+ "text": "that starts from pure noise (e.g., standard Gaussians) and successively converts it into new samples sharing similar distributions as the target data distribution.",
241
+ "bbox": [
242
+ 228,
243
+ 103,
244
+ 823,
245
+ 132
246
+ ],
247
+ "page_idx": 1
248
+ },
249
+ {
250
+ "type": "text",
251
+ "text": "Transforming data into noise in the forward process is straightforward, often hand-crafted by increasingly injecting more noise into the data at hand. What is challenging is the construction of the reverse process: how to generate the desired information out of pure noise? To do so, a diffusion model learns to build a reverse process (2) that imitates the dynamics of the forward process (1) in a time-reverse fashion; more precisely, the design goal is to ascertain distributional proximity<sup>1</sup>",
252
+ "bbox": [
253
+ 169,
254
+ 143,
255
+ 823,
256
+ 214
257
+ ],
258
+ "page_idx": 1
259
+ },
260
+ {
261
+ "type": "equation",
262
+ "text": "\n$$\nY _ {t} \\stackrel {\\mathrm {d}} {\\approx} X _ {t}, \\quad t = T, \\dots , 1 \\tag {3}\n$$\n",
263
+ "text_format": "latex",
264
+ "bbox": [
265
+ 398,
266
+ 220,
267
+ 825,
268
+ 242
269
+ ],
270
+ "page_idx": 1
271
+ },
272
+ {
273
+ "type": "text",
274
+ "text": "through proper learning based on how the training data propagate in the forward process. Encouragingly, there often exist feasible strategies to achieve this goal as long as faithful estimates about the (Stein) score functions — the gradients of the log marginal density of the forward process — are available, an intriguing fact that can be illuminated by the existence and construction of reverse-time stochastic differential equations (SDEs) (Anderson, 1982; Haussmann & Pardoux, 1986) (see Section 2.2 for more precise discussions). Viewed in this light, a diverse array of diffusion models are frequently referred to as score-based generative modeling (SGM). The popularity of SGM was initially motivated by, and has since further inspired, numerous recent studies on the problem of learning score functions, a subroutine that also goes by the name of score matching (e.g., Hyvarinen (2005; 2007); Vincent (2011); Song et al. (2020b); Koehler et al. (2023)).",
275
+ "bbox": [
276
+ 169,
277
+ 250,
278
+ 826,
279
+ 388
280
+ ],
281
+ "page_idx": 1
282
+ },
283
+ {
284
+ "type": "text",
285
+ "text": "Nonetheless, despite the mind-blowing empirical advances, a mathematical theory for diffusion generative models is still in its infancy. Given the complexity of developing a full-fledged end-to-end theory, a divide-and-conquer approach has been advertised, decoupling the score learning phase (i.e., how to estimate score functions from training data) and the generative sampling phase (i.e., how to generate new data given the score estimates). In particular, the past two years have witnessed growing interest and remarkable progress from the theoretical community towards understanding the sampling phase (Block et al., 2020; De Bortoli et al., 2021; Liu et al., 2022; De Bortoli, 2022; Lee et al., 2023; Pidstrigach, 2022; Chen et al., 2022b;a; Tang, 2023; Chen et al., 2023c; Tang & Zhao, 2024; Li et al., 2024a). For instance, polynomial-time convergence guarantees have been established for stochastic samplers (e.g., Chen et al. (2022b;a); Benton et al. (2023a)) and deterministic samplers (e.g., Chen et al. (2023c); Benton et al. (2023b)), both of which accommodated a fairly general family of data distributions.",
286
+ "bbox": [
287
+ 169,
288
+ 395,
289
+ 823,
290
+ 561
291
+ ],
292
+ "page_idx": 1
293
+ },
294
+ {
295
+ "type": "text",
296
+ "text": "This paper. The present paper contributes to this growing list of theoretical endeavors by developing a new suite of non-asymptotic theory for several score-based generative modeling algorithms. We concentrate on two types of samplers (Song et al., 2021b) in discrete time: (i) a deterministic sampler based on a sort of ordinary differential equations (ODEs) called probability flow ODEs (which is closely related to the DDIM); and (ii) a DDPM-type stochastic sampler motivated by reverse-time SDEs. We impose only minimal assumptions on the target data distribution (e.g., no smoothness condition is needed), and would like to quantify the impact of $\\ell_2$ score estimation errors. In comparisons to past works, our main contributions are three-fold.",
297
+ "bbox": [
298
+ 169,
299
+ 577,
300
+ 823,
301
+ 688
302
+ ],
303
+ "page_idx": 1
304
+ },
305
+ {
306
+ "type": "text",
307
+ "text": "Non-asymptotic convergence guarantees. For a popular deterministic sampler, we demonstrate that the number of steps needed to yield $\\varepsilon$ -accuracy — meaning that the total variation (TV) distance between the distribution of $X_{1}$ and that of $Y_{1}$ is no larger than $\\varepsilon$ — is proportional to $1 / \\varepsilon$ (in addition to other polynomial dimension dependency). This improves upon prior convergence guarantees (Chen et al., 2023c) and does not exhibit exponential dependency on the smoothness assumption as in Chen et al. (2023c); Benton et al. (2023b). For another DDPM-type stochastic sampler, we establish an iteration complexity proportional to $1 / \\varepsilon^{2}$ , matching existing theory Chen et al. (2022b;a); Benton et al. (2023a) in terms of the $\\varepsilon$ -dependency.",
308
+ "bbox": [
309
+ 169,
310
+ 695,
311
+ 823,
312
+ 806
313
+ ],
314
+ "page_idx": 1
315
+ },
316
+ {
317
+ "type": "text",
318
+ "text": "Score estimation errors for the deterministic sampler. In our convergence guarantees for the deterministic sampler, the TV distance between $X_{1}$ and $Y_{1}$ are shown to be proportional to the $\\ell_{2}$ score estimation error as well as the associated Jacobian errors. As far as we know, this is the first result for this deterministic sampler that accounts for score estimation errors in discrete time. In comparison, other theoretical results that accommodate score errors for the probability flow ODE approach",
319
+ "bbox": [
320
+ 169,
321
+ 813,
322
+ 823,
323
+ 883
324
+ ],
325
+ "page_idx": 1
326
+ },
327
+ {
328
+ "type": "header",
329
+ "text": "Published as a conference paper at ICLR 2024",
330
+ "bbox": [
331
+ 171,
332
+ 32,
333
+ 478,
334
+ 47
335
+ ],
336
+ "page_idx": 1
337
+ },
338
+ {
339
+ "type": "page_footnote",
340
+ "text": "Two random vectors $X$ and $Y$ are said to obey $X \\stackrel{\\mathrm{d}}{=} Y$ (resp. $X \\stackrel{\\mathrm{d}}{\\approx} Y$ ) if they are equivalent (resp. close) in distribution.",
341
+ "bbox": [
342
+ 169,
343
+ 893,
344
+ 823,
345
+ 922
346
+ ],
347
+ "page_idx": 1
348
+ },
349
+ {
350
+ "type": "page_number",
351
+ "text": "2",
352
+ "bbox": [
353
+ 493,
354
+ 948,
355
+ 503,
356
+ 959
357
+ ],
358
+ "page_idx": 1
359
+ },
360
+ {
361
+ "type": "text",
362
+ "text": "either study certain stochastic variations of this deterministic sampler (Chen et al., 2023b) or fall short of accommodating discretization errors (Benton et al., 2023b).",
363
+ "bbox": [
364
+ 169,
365
+ 103,
366
+ 823,
367
+ 132
368
+ ],
369
+ "page_idx": 2
370
+ },
371
+ {
372
+ "type": "text",
373
+ "text": "An elementary non-asymptotic analysis framework. From the technical viewpoint, the analysis framework laid out in this paper is fully non-asymptotic in nature. In contrast to prior analyses that take a detour to study the continuum limits and then control the discretization error, our approach tackles the discrete-time processes directly using elementary analysis strategies. No knowledge of SDEs or ODEs is required for establishing our theory, thereby resulting in a more versatile framework and sometimes lowering the technical barrier towards understanding diffusion models.",
374
+ "bbox": [
375
+ 169,
376
+ 138,
377
+ 823,
378
+ 223
379
+ ],
380
+ "page_idx": 2
381
+ },
382
+ {
383
+ "type": "text",
384
+ "text": "Notation. For any two functions $f(d, T)$ and $g(d, T)$ , we adopt the notation $f(d, T) \\lesssim g(d, T)$ or $f(d, T) = O(g(d, T))$ (resp. $f(d, T) \\gtrsim g(d, T)$ ) to mean that there exists some universal constant $C_1 > 0$ such that $f(d, T) \\leq C_1 g(d, T)$ (resp. $f(d, T) \\geq C_1 g(d, T)$ ) for all $d$ and $T$ ; moreover, the notation $f(d, T) \\asymp g(d, T)$ indicates that $f(d, T) \\lesssim g(d, T)$ and $f(d, T) \\gtrsim g(d, T)$ hold at once. The notation $\\widetilde{O}(\\cdot)$ is defined similar to $O(\\cdot)$ except that it hides the logarithmic dependency. Additionally, the notation $f(d, T) = o(g(d, T))$ means that $f(d, T) / g(d, T) \\to 0$ as $d, T$ tend to infinity. For any two probability measures $P$ and $Q$ , the total variation (TV) distance between them is defined to be $\\mathsf{TV}(P, Q) := \\frac{1}{2} \\int |\\mathrm{d}P - \\mathrm{d}Q|$ . Throughout the paper, $p_X(\\cdot)$ (resp. $p_{X|Y}(\\cdot|\\cdot))$ denotes the probability density function of $X$ (resp. $X$ given $Y$ ). For any matrix $A$ , we denote by $\\|A\\|$ (resp. $\\|A\\|_{\\mathbb{F}}$ ) the spectral norm (resp. Frobenius norm) of $A$ . Also, for any vector-valued function $f$ , we let $J_f$ or $\\frac{\\partial f}{\\partial x}$ represent the Jacobian matrix of $f$ .",
385
+ "bbox": [
386
+ 169,
387
+ 237,
388
+ 826,
389
+ 398
390
+ ],
391
+ "page_idx": 2
392
+ },
393
+ {
394
+ "type": "text",
395
+ "text": "2 PRELIMINARIES",
396
+ "text_level": 1,
397
+ "bbox": [
398
+ 171,
399
+ 416,
400
+ 339,
401
+ 431
402
+ ],
403
+ "page_idx": 2
404
+ },
405
+ {
406
+ "type": "text",
407
+ "text": "In this section, we introduce the basics of diffusion generative models. The ultimate goal of a generative model can be concisely stated: given data samples drawn from an unknown distribution of interest $p_{\\mathrm{data}}$ in $\\mathbb{R}^d$ , we wish to generate new samples whose distributions closely resemble $p_{\\mathrm{data}}$ .",
408
+ "bbox": [
409
+ 169,
410
+ 446,
411
+ 823,
412
+ 491
413
+ ],
414
+ "page_idx": 2
415
+ },
416
+ {
417
+ "type": "text",
418
+ "text": "2.1 DIFFUSION GENERATIVE MODELS",
419
+ "text_level": 1,
420
+ "bbox": [
421
+ 171,
422
+ 506,
423
+ 447,
424
+ 518
425
+ ],
426
+ "page_idx": 2
427
+ },
428
+ {
429
+ "type": "text",
430
+ "text": "Towards achieving the above goal, a diffusion generative model typically encompasses two Markov processes: a forward process and a reverse process, as described below.",
431
+ "bbox": [
432
+ 169,
433
+ 532,
434
+ 823,
435
+ 561
436
+ ],
437
+ "page_idx": 2
438
+ },
439
+ {
440
+ "type": "text",
441
+ "text": "The forward process. In the forward chain, one progressively injects noise into the data samples to diffuse and obscure the data. The distributions of the injected noise are often hand-picked, with the standard Gaussian distribution receiving widespread adoption. Specifically, the forward Markov process produces a sequence of $d$ -dimensional random vectors $X_{1} \\to X_{2} \\to \\dots \\to X_{T}$ as follows:",
442
+ "bbox": [
443
+ 169,
444
+ 574,
445
+ 823,
446
+ 631
447
+ ],
448
+ "page_idx": 2
449
+ },
450
+ {
451
+ "type": "equation",
452
+ "text": "\n$$\nX _ {0} \\sim p _ {\\text {d a t a}}, \\tag {4a}\n$$\n",
453
+ "text_format": "latex",
454
+ "bbox": [
455
+ 331,
456
+ 633,
457
+ 823,
458
+ 650
459
+ ],
460
+ "page_idx": 2
461
+ },
462
+ {
463
+ "type": "equation",
464
+ "text": "\n$$\nX _ {t} = \\sqrt {1 - \\beta_ {t}} X _ {t - 1} + \\sqrt {\\beta_ {t}} W _ {t}, \\quad 1 \\leq t \\leq T, \\tag {4b}\n$$\n",
465
+ "text_format": "latex",
466
+ "bbox": [
467
+ 334,
468
+ 654,
469
+ 823,
470
+ 672
471
+ ],
472
+ "page_idx": 2
473
+ },
474
+ {
475
+ "type": "text",
476
+ "text": "where $\\{W_t\\}_{1 \\leq t \\leq T}$ indicates a sequence of independent noise vectors drawn from $W_t \\stackrel{\\text{i.i.d.}}{\\sim} \\mathcal{N}(0, I_d)$ . The hyper-parameters $\\{\\beta_t \\in (0, 1)\\}$ represent prescribed learning rate schedules that control the variance of the noise injected in each step. If we define",
477
+ "bbox": [
478
+ 169,
479
+ 679,
480
+ 823,
481
+ 724
482
+ ],
483
+ "page_idx": 2
484
+ },
485
+ {
486
+ "type": "equation",
487
+ "text": "\n$$\n\\alpha_ {t} := 1 - \\beta_ {t}, \\quad \\overline {{\\alpha}} _ {t} := \\prod_ {k = 1} ^ {t} \\alpha_ {k}, \\quad 1 \\leq t \\leq T, \\tag {5}\n$$\n",
488
+ "text_format": "latex",
489
+ "bbox": [
490
+ 331,
491
+ 729,
492
+ 823,
493
+ 768
494
+ ],
495
+ "page_idx": 2
496
+ },
497
+ {
498
+ "type": "text",
499
+ "text": "then it can be straightforwardly verified that for every $1 \\leq t \\leq T$ ,",
500
+ "bbox": [
501
+ 169,
502
+ 772,
503
+ 602,
504
+ 787
505
+ ],
506
+ "page_idx": 2
507
+ },
508
+ {
509
+ "type": "equation",
510
+ "text": "\n$$\nX _ {t} = \\sqrt {\\bar {\\alpha} _ {t}} X _ {0} + \\sqrt {1 - \\bar {\\alpha} _ {t}} \\bar {W} _ {t} \\quad \\text {f o r s o m e} \\bar {W} _ {t} \\sim \\mathcal {N} (0, I _ {d}). \\tag {6}\n$$\n",
511
+ "text_format": "latex",
512
+ "bbox": [
513
+ 295,
514
+ 790,
515
+ 823,
516
+ 806
517
+ ],
518
+ "page_idx": 2
519
+ },
520
+ {
521
+ "type": "text",
522
+ "text": "Clearly, if the covariance of $X_0$ is also equal to $I_d$ , then the covariance of $X_t$ is preserved throughout the forward process; for this reason, this forward process (4) is sometimes referred to as variance-preserving (Song et al., 2021b). Throughout this paper, we employ the notation",
523
+ "bbox": [
524
+ 169,
525
+ 810,
526
+ 823,
527
+ 853
528
+ ],
529
+ "page_idx": 2
530
+ },
531
+ {
532
+ "type": "equation",
533
+ "text": "\n$$\nq _ {t} := \\operatorname {l a w} \\left(X _ {t}\\right) \\tag {7}\n$$\n",
534
+ "text_format": "latex",
535
+ "bbox": [
536
+ 447,
537
+ 856,
538
+ 823,
539
+ 875
540
+ ],
541
+ "page_idx": 2
542
+ },
543
+ {
544
+ "type": "text",
545
+ "text": "to denote the distribution of $X_{t}$ . As long as $\\overline{\\alpha}_{T}$ is vanishingly small, one has the following property for a general family of data distributions:",
546
+ "bbox": [
547
+ 169,
548
+ 876,
549
+ 823,
550
+ 905
551
+ ],
552
+ "page_idx": 2
553
+ },
554
+ {
555
+ "type": "equation",
556
+ "text": "\n$$\nq _ {T} \\approx \\mathcal {N} (0, I _ {d}). \\tag {8}\n$$\n",
557
+ "text_format": "latex",
558
+ "bbox": [
559
+ 444,
560
+ 907,
561
+ 823,
562
+ 925
563
+ ],
564
+ "page_idx": 2
565
+ },
566
+ {
567
+ "type": "header",
568
+ "text": "Published as a conference paper at ICLR 2024",
569
+ "bbox": [
570
+ 171,
571
+ 32,
572
+ 478,
573
+ 47
574
+ ],
575
+ "page_idx": 2
576
+ },
577
+ {
578
+ "type": "page_number",
579
+ "text": "3",
580
+ "bbox": [
581
+ 493,
582
+ 948,
583
+ 503,
584
+ 959
585
+ ],
586
+ "page_idx": 2
587
+ },
588
+ {
589
+ "type": "text",
590
+ "text": "The reverse process. The reverse chain $Y_{T} \\to Y_{T-1} \\to \\ldots \\to Y_{1}$ is designed to (approximately) revert the forward process, allowing one to transform pure noise into new samples with matching distributions as the original data. To be more precise, by initializing it as",
591
+ "bbox": [
592
+ 169,
593
+ 103,
594
+ 823,
595
+ 147
596
+ ],
597
+ "page_idx": 3
598
+ },
599
+ {
600
+ "type": "equation",
601
+ "text": "\n$$\nY _ {T} \\sim \\mathcal {N} (0, I _ {d}), \\tag {9a}\n$$\n",
602
+ "text_format": "latex",
603
+ "bbox": [
604
+ 442,
605
+ 148,
606
+ 823,
607
+ 166
608
+ ],
609
+ "page_idx": 3
610
+ },
611
+ {
612
+ "type": "text",
613
+ "text": "we seek to design a reverse-time Markov process with nearly identical marginals as the forward process, namely,",
614
+ "bbox": [
615
+ 169,
616
+ 169,
617
+ 823,
618
+ 198
619
+ ],
620
+ "page_idx": 3
621
+ },
622
+ {
623
+ "type": "equation",
624
+ "text": "\n$$\n\\left(\\text {g o a l}\\right) \\quad Y _ {t} \\stackrel {\\mathrm {d}} {\\approx} X _ {t}, \\quad t = T, T - 1, \\dots , 1. \\tag {9b}\n$$\n",
625
+ "text_format": "latex",
626
+ "bbox": [
627
+ 323,
628
+ 198,
629
+ 823,
630
+ 218
631
+ ],
632
+ "page_idx": 3
633
+ },
634
+ {
635
+ "type": "text",
636
+ "text": "Throughout the paper, we often employ the following notation to indicate the distribution of $Y_{t}$ :",
637
+ "bbox": [
638
+ 171,
639
+ 219,
640
+ 802,
641
+ 234
642
+ ],
643
+ "page_idx": 3
644
+ },
645
+ {
646
+ "type": "equation",
647
+ "text": "\n$$\np _ {t} := \\operatorname {l a w} \\left(Y _ {t}\\right). \\tag {10}\n$$\n",
648
+ "text_format": "latex",
649
+ "bbox": [
650
+ 444,
651
+ 238,
652
+ 825,
653
+ 255
654
+ ],
655
+ "page_idx": 3
656
+ },
657
+ {
658
+ "type": "text",
659
+ "text": "2.2 DETERMINISTIC VS. STOCHASTIC SAMPLERS: A CONTINUOUS-TIME INTERPRETATION",
660
+ "text_level": 1,
661
+ "bbox": [
662
+ 171,
663
+ 268,
664
+ 807,
665
+ 282
666
+ ],
667
+ "page_idx": 3
668
+ },
669
+ {
670
+ "type": "text",
671
+ "text": "Evidently, the most crucial step of the diffusion model lies in effective design of the reverse process. Two mainstream approaches stand out:",
672
+ "bbox": [
673
+ 169,
674
+ 295,
675
+ 823,
676
+ 325
677
+ ],
678
+ "page_idx": 3
679
+ },
680
+ {
681
+ "type": "text",
682
+ "text": "- Deterministic samplers. Starting from $Y_{T} \\sim \\mathcal{N}(0, I_{d})$ , this approach selects a set of functions $\\{\\Phi_t(\\cdot)\\}_{1 \\leq t \\leq T}$ and computes:",
683
+ "bbox": [
684
+ 215,
685
+ 334,
686
+ 823,
687
+ 364
688
+ ],
689
+ "page_idx": 3
690
+ },
691
+ {
692
+ "type": "equation",
693
+ "text": "\n$$\nY _ {t - 1} = \\Phi_ {t} (Y _ {t}), \\quad t = T, \\dots , 1. \\tag {11}\n$$\n",
694
+ "text_format": "latex",
695
+ "bbox": [
696
+ 406,
697
+ 367,
698
+ 823,
699
+ 385
700
+ ],
701
+ "page_idx": 3
702
+ },
703
+ {
704
+ "type": "text",
705
+ "text": "Clearly, the sampling process is fully deterministic except for the initialization $Y_{T}$ .",
706
+ "bbox": [
707
+ 227,
708
+ 387,
709
+ 772,
710
+ 402
711
+ ],
712
+ "page_idx": 3
713
+ },
714
+ {
715
+ "type": "text",
716
+ "text": "- Stochastic samplers. Initialized again at $Y_{T} \\sim \\mathcal{N}(0, I_{d})$ , this approach computes another collection of functions $\\{\\Psi_{t}(\\cdot, \\cdot)\\}_{1 \\leq t \\leq T}$ and performs the updates:",
717
+ "bbox": [
718
+ 215,
719
+ 405,
720
+ 823,
721
+ 436
722
+ ],
723
+ "page_idx": 3
724
+ },
725
+ {
726
+ "type": "equation",
727
+ "text": "\n$$\nY _ {t - 1} = \\Psi_ {t} \\left(Y _ {t}, Z _ {t}\\right), \\quad t = T, \\dots , 1, \\tag {12}\n$$\n",
728
+ "text_format": "latex",
729
+ "bbox": [
730
+ 395,
731
+ 439,
732
+ 823,
733
+ 455
734
+ ],
735
+ "page_idx": 3
736
+ },
737
+ {
738
+ "type": "text",
739
+ "text": "where the $Z_{t}$ 's are independent noise vectors obeying $Z_{t}\\stackrel {\\mathrm{i.i.d.}}{\\sim}\\mathcal{N}(0,I_{d})$",
740
+ "bbox": [
741
+ 228,
742
+ 463,
743
+ 702,
744
+ 482
745
+ ],
746
+ "page_idx": 3
747
+ },
748
+ {
749
+ "type": "text",
750
+ "text": "In order to elucidate the feasibility of the above two approaches, we find it helpful to look at the continuum limit through the lens of SDEs and ODEs. It is worth emphasizing, however, that the development of our main theory does not rely on any knowledge of SDEs and ODEs.",
751
+ "bbox": [
752
+ 169,
753
+ 489,
754
+ 823,
755
+ 532
756
+ ],
757
+ "page_idx": 3
758
+ },
759
+ {
760
+ "type": "text",
761
+ "text": "- The forward process. A continuous-time analog of the forward process can be modeled as",
762
+ "bbox": [
763
+ 215,
764
+ 542,
765
+ 821,
766
+ 558
767
+ ],
768
+ "page_idx": 3
769
+ },
770
+ {
771
+ "type": "equation",
772
+ "text": "\n$$\n\\mathrm {d} X _ {t} = f \\left(X _ {t}, t\\right) \\mathrm {d} t + g (t) \\mathrm {d} W _ {t} \\quad (0 \\leq t \\leq T), \\quad X _ {0} \\sim p _ {\\text {d a t a}} \\tag {13}\n$$\n",
773
+ "text_format": "latex",
774
+ "bbox": [
775
+ 318,
776
+ 561,
777
+ 823,
778
+ 579
779
+ ],
780
+ "page_idx": 3
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "for some functions $f(\\cdot, \\cdot)$ and $g(\\cdot)$ (denoting respectively the drift and diffusion coefficient), where $W_{t}$ denotes a $d$ -dimensional standard Brownian motion. As a special example, the continuum limit of (4) takes the following form² (Song et al., 2021b)",
785
+ "bbox": [
786
+ 227,
787
+ 580,
788
+ 823,
789
+ 625
790
+ ],
791
+ "page_idx": 3
792
+ },
793
+ {
794
+ "type": "equation",
795
+ "text": "\n$$\n\\mathrm {d} X _ {t} = - \\frac {1}{2} \\beta (t) X _ {t} \\mathrm {d} t + \\sqrt {\\beta (t)} \\mathrm {d} W _ {t} \\quad (0 \\leq t \\leq T), \\quad X _ {0} \\sim p _ {\\text {d a t a}} \\tag {14}\n$$\n",
796
+ "text_format": "latex",
797
+ "bbox": [
798
+ 299,
799
+ 627,
800
+ 823,
801
+ 655
802
+ ],
803
+ "page_idx": 3
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "for some function $\\beta(t)$ . As before, we denote by $q_{t}$ the distribution of $X_{t}$ in (13).",
808
+ "bbox": [
809
+ 227,
810
+ 659,
811
+ 763,
812
+ 674
813
+ ],
814
+ "page_idx": 3
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "- The reverse process. As it turns out, the following two reverse processes are both capable of reconstructing the distribution of the forward process, motivating the design of two distinctive samplers. Here and throughout, we use $\\nabla \\log q_t(X)$ to abbreviate $\\nabla_X \\log q_t(X)$ for notational simplicity.",
819
+ "bbox": [
820
+ 215,
821
+ 676,
822
+ 823,
823
+ 734
824
+ ],
825
+ "page_idx": 3
826
+ },
827
+ {
828
+ "type": "text",
829
+ "text": "- One feasible approach is to the so-called probability flow ODE (Song et al., 2021b)",
830
+ "bbox": [
831
+ 243,
832
+ 736,
833
+ 810,
834
+ 752
835
+ ],
836
+ "page_idx": 3
837
+ },
838
+ {
839
+ "type": "equation",
840
+ "text": "\n$$\n\\mathrm {d} Y _ {t} ^ {\\text {o d e}} = \\left(- f \\left(Y _ {t} ^ {\\text {o d e}}, T - t\\right) + \\frac {1}{2} g (T - t) ^ {2} \\nabla \\log q _ {T - t} \\left(Y _ {t} ^ {\\text {o d e}}\\right)\\right) \\mathrm {d} t \\quad (0 \\leq t \\leq T), \\tag {15}\n$$\n",
841
+ "text_format": "latex",
842
+ "bbox": [
843
+ 269,
844
+ 755,
845
+ 823,
846
+ 797
847
+ ],
848
+ "page_idx": 3
849
+ },
850
+ {
851
+ "type": "text",
852
+ "text": "with $Y_0^{\\mathrm{ode}}\\sim q_T$ , which exhibits matching distributions as follows:",
853
+ "bbox": [
854
+ 261,
855
+ 803,
856
+ 700,
857
+ 819
858
+ ],
859
+ "page_idx": 3
860
+ },
861
+ {
862
+ "type": "equation",
863
+ "text": "\n$$\nY _ {T - t} ^ {\\mathsf {o d e}} \\stackrel {{\\mathrm {d}}} {{=}} X _ {t}, \\qquad 0 \\leq t \\leq T.\n$$\n",
864
+ "text_format": "latex",
865
+ "bbox": [
866
+ 442,
867
+ 823,
868
+ 643,
869
+ 844
870
+ ],
871
+ "page_idx": 3
872
+ },
873
+ {
874
+ "type": "text",
875
+ "text": "The deterministic nature of this approach often enables faster sampling. It has been shown that this family of deterministic samplers is closely related to the DDIM sampler (Karras et al., 2022; Song et al., 2021b).",
876
+ "bbox": [
877
+ 259,
878
+ 845,
879
+ 823,
880
+ 888
881
+ ],
882
+ "page_idx": 3
883
+ },
884
+ {
885
+ "type": "header",
886
+ "text": "Published as a conference paper at ICLR 2024",
887
+ "bbox": [
888
+ 171,
889
+ 32,
890
+ 478,
891
+ 47
892
+ ],
893
+ "page_idx": 3
894
+ },
895
+ {
896
+ "type": "page_footnote",
897
+ "text": "2To see its connection with (4), it suffices to derive from (4) that $X_{t} - X_{t - \\mathrm{dt}} = \\sqrt{1 - \\beta_{t}} X_{t - \\mathrm{dt}} - X_{t - \\mathrm{dt}} + \\sqrt{\\beta_{t}} W_{t}\\approx -\\frac{1}{2}\\beta_{t}X_{t - \\mathrm{dt}} + \\sqrt{\\beta_{t}} W_{t}$ .",
898
+ "bbox": [
899
+ 171,
900
+ 896,
901
+ 823,
902
+ 926
903
+ ],
904
+ "page_idx": 3
905
+ },
906
+ {
907
+ "type": "page_number",
908
+ "text": "4",
909
+ "bbox": [
910
+ 493,
911
+ 948,
912
+ 504,
913
+ 959
914
+ ],
915
+ "page_idx": 3
916
+ },
917
+ {
918
+ "type": "text",
919
+ "text": "- In view of the classical results Anderson (1982); Haussmann & Pardoux (1986), one can also construct a \"reverse-time\" SDE",
920
+ "bbox": [
921
+ 245,
922
+ 103,
923
+ 823,
924
+ 132
925
+ ],
926
+ "page_idx": 4
927
+ },
928
+ {
929
+ "type": "equation",
930
+ "text": "\n$$\n\\mathrm {d} Y _ {t} ^ {\\mathrm {s d e}} = \\left(- f \\left(Y _ {t} ^ {\\mathrm {s d e}}, T - t\\right) + g (T - t) ^ {2} \\nabla \\log q _ {T - t} \\left(Y _ {t} ^ {\\mathrm {s d e}}\\right)\\right) \\mathrm {d} t + g (T - t) \\mathrm {d} Z _ {t} ^ {\\mathrm {s d e}} \\tag {16}\n$$\n",
931
+ "text_format": "latex",
932
+ "bbox": [
933
+ 272,
934
+ 135,
935
+ 823,
936
+ 174
937
+ ],
938
+ "page_idx": 4
939
+ },
940
+ {
941
+ "type": "text",
942
+ "text": "for $0 \\leq t \\leq T$ , with $Y_0^{\\mathrm{sde}} \\sim q_T$ and $Z_t^{\\mathrm{sde}}$ being a standard Brownian motion. Strikingly, this process also satisfies",
943
+ "bbox": [
944
+ 261,
945
+ 181,
946
+ 823,
947
+ 212
948
+ ],
949
+ "page_idx": 4
950
+ },
951
+ {
952
+ "type": "equation",
953
+ "text": "\n$$\nY _ {T - t} ^ {\\mathsf {s d e}} \\stackrel {{\\mathrm {d}}} {{=}} X _ {t}, \\qquad 0 \\leq t \\leq T.\n$$\n",
954
+ "text_format": "latex",
955
+ "bbox": [
956
+ 442,
957
+ 219,
958
+ 643,
959
+ 238
960
+ ],
961
+ "page_idx": 4
962
+ },
963
+ {
964
+ "type": "text",
965
+ "text": "The popular DDPM sampler (Ho et al., 2020) falls under this category.",
966
+ "bbox": [
967
+ 261,
968
+ 243,
969
+ 728,
970
+ 258
971
+ ],
972
+ "page_idx": 4
973
+ },
974
+ {
975
+ "type": "text",
976
+ "text": "Interestingly, in addition to the functions $f$ and $g$ that define the forward process, construction of both (15) and (16) relies only upon the knowledge of the gradient of the log density $\\nabla \\log q_t(\\cdot)$ of the intermediate steps of the forward diffusion process — often referred to as the (Stein) score function. Consequently, a key enabler of the above paradigms lies in reliable learning of the score function, and hence the name score-based generative modeling.",
977
+ "bbox": [
978
+ 169,
979
+ 268,
980
+ 826,
981
+ 339
982
+ ],
983
+ "page_idx": 4
984
+ },
985
+ {
986
+ "type": "text",
987
+ "text": "3 ALGORITHMS AND MAIN RESULTS",
988
+ "text_level": 1,
989
+ "bbox": [
990
+ 171,
991
+ 359,
992
+ 491,
993
+ 375
994
+ ],
995
+ "page_idx": 4
996
+ },
997
+ {
998
+ "type": "text",
999
+ "text": "In this section, we analyze a couple of diffusion generative models, including both deterministic and stochastic samplers. While the proofs for our main theory are all postponed to the appendix, it is worth emphasizing upfront that our analysis framework directly tackles the discrete-time processes without resorting to any toolbox of SDEs and ODEs tailored to the continuous-time limits. This elementary approach might potentially be versatile for analyzing a broad class of variations of these samplers. For instance, prior ODE-based theory (e.g., Chen et al. (2023b;c)) encountered certain technical challenges when analyzing the deterministic sampler directly, and our elementary approach is able to shed new light on the convergence of this important sampler.",
1000
+ "bbox": [
1001
+ 169,
1002
+ 390,
1003
+ 823,
1004
+ 502
1005
+ ],
1006
+ "page_idx": 4
1007
+ },
1008
+ {
1009
+ "type": "text",
1010
+ "text": "3.1 ASSUMPTIONS AND LEARNING RATES",
1011
+ "text_level": 1,
1012
+ "bbox": [
1013
+ 171,
1014
+ 518,
1015
+ 477,
1016
+ 532
1017
+ ],
1018
+ "page_idx": 4
1019
+ },
1020
+ {
1021
+ "type": "text",
1022
+ "text": "Before proceeding, we impose some assumptions on the score estimates and the target data distributions, and specify the hypter-parameters $\\{\\alpha_t\\}$ , which shall be adopted throughout all cases.",
1023
+ "bbox": [
1024
+ 169,
1025
+ 544,
1026
+ 823,
1027
+ 574
1028
+ ],
1029
+ "page_idx": 4
1030
+ },
1031
+ {
1032
+ "type": "text",
1033
+ "text": "Score estimates. Given that the score functions are an essential component in score-based generative modeling, we assume access to faithful estimates of the score functions $\\nabla \\log q_t(\\cdot)$ across all intermediate steps $t$ , thus disentangling the score learning phase and the data generation phase. Towards this end, let us first formally introduce the true score function as follows.",
1034
+ "bbox": [
1035
+ 169,
1036
+ 588,
1037
+ 823,
1038
+ 643
1039
+ ],
1040
+ "page_idx": 4
1041
+ },
1042
+ {
1043
+ "type": "text",
1044
+ "text": "Definition 1 (Score function). The score function, denoted by $s_t^\\star : \\mathbb{R}^d \\to \\mathbb{R}^d$ , is defined as",
1045
+ "bbox": [
1046
+ 169,
1047
+ 646,
1048
+ 767,
1049
+ 662
1050
+ ],
1051
+ "page_idx": 4
1052
+ },
1053
+ {
1054
+ "type": "equation",
1055
+ "text": "\n$$\ns _ {t} ^ {\\star} (X) := \\nabla \\log q _ {t} (X), \\quad 1 \\leq t \\leq T. \\tag {17}\n$$\n",
1056
+ "text_format": "latex",
1057
+ "bbox": [
1058
+ 362,
1059
+ 667,
1060
+ 823,
1061
+ 685
1062
+ ],
1063
+ "page_idx": 4
1064
+ },
1065
+ {
1066
+ "type": "text",
1067
+ "text": "As has been pointed out by previous works concerning score matching (e.g., Hyvarinen (2005); Vincent (2011); Chen et al. (2022b)), the score function $s_t^\\star$ admits an alternative form as follows (owing to properties of Gaussian distributions):",
1068
+ "bbox": [
1069
+ 169,
1070
+ 696,
1071
+ 823,
1072
+ 739
1073
+ ],
1074
+ "page_idx": 4
1075
+ },
1076
+ {
1077
+ "type": "equation",
1078
+ "text": "\n$$\ns _ {t} ^ {\\star} := \\arg \\min _ {s: \\mathbb {R} ^ {d} \\rightarrow \\mathbb {R} ^ {d}} \\underset {W \\sim \\mathcal {N} (0, I _ {d}), X _ {0} \\sim p _ {\\mathrm {d a t a}}} {\\mathbb {E}} \\left[\\left\\| s \\left(\\sqrt {\\bar {\\alpha} _ {t}} X _ {0} + \\sqrt {1 - \\bar {\\alpha} _ {t}} W\\right) + \\frac {1}{\\sqrt {1 - \\bar {\\alpha} _ {t}}} W \\right\\| _ {2} ^ {2} \\right], \\tag {18}\n$$\n",
1079
+ "text_format": "latex",
1080
+ "bbox": [
1081
+ 197,
1082
+ 744,
1083
+ 823,
1084
+ 785
1085
+ ],
1086
+ "page_idx": 4
1087
+ },
1088
+ {
1089
+ "type": "text",
1090
+ "text": "which takes the form of the minimum mean square error estimator for $-\\frac{1}{\\sqrt{1 - \\overline{\\alpha}_t}} W$ given $\\sqrt{\\overline{\\alpha}_t} X_0 + \\sqrt{1 - \\overline{\\alpha}_t} W$ and is often more amenable to training.",
1091
+ "bbox": [
1092
+ 169,
1093
+ 792,
1094
+ 823,
1095
+ 827
1096
+ ],
1097
+ "page_idx": 4
1098
+ },
1099
+ {
1100
+ "type": "text",
1101
+ "text": "With Definition 1 in place, we can readily introduce the following assumptions that capture the quality of the score estimate $\\{s_t\\}_{1\\leq t\\leq T}$ we have available.",
1102
+ "bbox": [
1103
+ 169,
1104
+ 832,
1105
+ 823,
1106
+ 862
1107
+ ],
1108
+ "page_idx": 4
1109
+ },
1110
+ {
1111
+ "type": "text",
1112
+ "text": "Assumption 1. Suppose that the score function estimate $\\{s_t\\}_{1\\leq t\\leq T}$ obeys",
1113
+ "bbox": [
1114
+ 171,
1115
+ 864,
1116
+ 665,
1117
+ 880
1118
+ ],
1119
+ "page_idx": 4
1120
+ },
1121
+ {
1122
+ "type": "equation",
1123
+ "text": "\n$$\n\\frac {1}{T} \\sum_ {t = 1} ^ {T} \\mathbb {E} _ {X \\sim q _ {t}} \\left[ \\left\\| s _ {t} (X) - s _ {t} ^ {\\star} (X) \\right\\| _ {2} ^ {2} \\right] \\leq \\varepsilon_ {\\text {s c o r e}} ^ {2}. \\tag {19}\n$$\n",
1124
+ "text_format": "latex",
1125
+ "bbox": [
1126
+ 352,
1127
+ 886,
1128
+ 823,
1129
+ 926
1130
+ ],
1131
+ "page_idx": 4
1132
+ },
1133
+ {
1134
+ "type": "header",
1135
+ "text": "Published as a conference paper at ICLR 2024",
1136
+ "bbox": [
1137
+ 171,
1138
+ 32,
1139
+ 478,
1140
+ 47
1141
+ ],
1142
+ "page_idx": 4
1143
+ },
1144
+ {
1145
+ "type": "page_number",
1146
+ "text": "5",
1147
+ "bbox": [
1148
+ 493,
1149
+ 948,
1150
+ 503,
1151
+ 959
1152
+ ],
1153
+ "page_idx": 4
1154
+ },
1155
+ {
1156
+ "type": "text",
1157
+ "text": "Assumption 2. For each $1 \\leq t \\leq T$ , assume that $s_t(\\cdot)$ is continuously differentiable, and denote by $J_{s_t^*} = \\frac{\\partial s_t^*}{\\partial x}$ and $J_{s_t} = \\frac{\\partial s_t}{\\partial x}$ the Jacobian matrices of $s_t^*(\\cdot)$ and $s_t(\\cdot)$ , respectively. Assume that the score function estimate $\\{s_t\\}_{1 \\leq t \\leq T}$ obeys",
1158
+ "bbox": [
1159
+ 169,
1160
+ 103,
1161
+ 823,
1162
+ 154
1163
+ ],
1164
+ "page_idx": 5
1165
+ },
1166
+ {
1167
+ "type": "equation",
1168
+ "text": "\n$$\n\\frac {1}{T} \\sum_ {t = 1} ^ {T} \\underset {X \\sim q _ {t}} {\\mathbb {E}} \\left[ \\left\\| J _ {s _ {t}} (X) - J _ {s _ {t} ^ {*}} (X) \\right\\| \\right] \\leq \\varepsilon_ {\\text {J a c o b i}}. \\tag {20}\n$$\n",
1169
+ "text_format": "latex",
1170
+ "bbox": [
1171
+ 377,
1172
+ 157,
1173
+ 823,
1174
+ 199
1175
+ ],
1176
+ "page_idx": 5
1177
+ },
1178
+ {
1179
+ "type": "text",
1180
+ "text": "In a nutshell, Assumption 1 reflects the $\\ell_2$ score estimation error, whereas Assumption 2 concerns the estimation error in terms of the corresponding Jacobian matrix. Both assumptions consider the average estimation errors over all $T$ steps. Our theory for the deterministic sampler relies on both Assumptions 1 and 2, while the theory for the stochastic sampler requires only Assumption 1. We shall discuss in Section 3.2 the insufficiency of Assumption 1 alone for the deterministic sampler.",
1181
+ "bbox": [
1182
+ 169,
1183
+ 210,
1184
+ 823,
1185
+ 284
1186
+ ],
1187
+ "page_idx": 5
1188
+ },
1189
+ {
1190
+ "type": "text",
1191
+ "text": "Target data distributions. Our goal is to uncover the effectiveness of diffusion models in generating a broad family of data distributions. Throughout this paper, the only assumptions we need to impose on the target data distribution $p_{\\mathrm{data}}$ are the following:",
1192
+ "bbox": [
1193
+ 169,
1194
+ 295,
1195
+ 823,
1196
+ 339
1197
+ ],
1198
+ "page_idx": 5
1199
+ },
1200
+ {
1201
+ "type": "text",
1202
+ "text": "- $X_0$ is an absolutely continuous random vector, and",
1203
+ "bbox": [
1204
+ 215,
1205
+ 348,
1206
+ 568,
1207
+ 363
1208
+ ],
1209
+ "page_idx": 5
1210
+ },
1211
+ {
1212
+ "type": "equation",
1213
+ "text": "\n$$\n\\mathbb {P} \\left(\\left\\| X _ {0} \\right\\| _ {2} \\leq T ^ {c _ {R}} \\mid X _ {0} \\sim p _ {\\mathrm {d a t a}}\\right) = 1 \\tag {21}\n$$\n",
1214
+ "text_format": "latex",
1215
+ "bbox": [
1216
+ 405,
1217
+ 367,
1218
+ 823,
1219
+ 386
1220
+ ],
1221
+ "page_idx": 5
1222
+ },
1223
+ {
1224
+ "type": "text",
1225
+ "text": "for some arbitrarily large constant $c_{R} > 0$ .",
1226
+ "bbox": [
1227
+ 228,
1228
+ 388,
1229
+ 511,
1230
+ 405
1231
+ ],
1232
+ "page_idx": 5
1233
+ },
1234
+ {
1235
+ "type": "text",
1236
+ "text": "This assumption allows the radius of the support of $p_{\\mathrm{data}}$ to be exceedingly large (given that the exponent $c_R$ can be arbitrarily large).",
1237
+ "bbox": [
1238
+ 169,
1239
+ 414,
1240
+ 823,
1241
+ 444
1242
+ ],
1243
+ "page_idx": 5
1244
+ },
1245
+ {
1246
+ "type": "text",
1247
+ "text": "Learning rate schedule. Let us also take a moment to specify the learning rates to be used for our theory and analyses. For some large enough numerical constants $c_{0}, c_{1} > 0$ , we set",
1248
+ "bbox": [
1249
+ 169,
1250
+ 458,
1251
+ 823,
1252
+ 487
1253
+ ],
1254
+ "page_idx": 5
1255
+ },
1256
+ {
1257
+ "type": "equation",
1258
+ "text": "\n$$\n\\beta_ {1} = 1 - \\alpha_ {1} = \\frac {1}{T ^ {c _ {0}}}; \\tag {22a}\n$$\n",
1259
+ "text_format": "latex",
1260
+ "bbox": [
1261
+ 310,
1262
+ 491,
1263
+ 823,
1264
+ 518
1265
+ ],
1266
+ "page_idx": 5
1267
+ },
1268
+ {
1269
+ "type": "equation",
1270
+ "text": "\n$$\n\\beta_ {t} = 1 - \\alpha_ {t} = \\frac {c _ {1} \\log T}{T} \\min \\left\\{\\beta_ {1} \\left(1 + \\frac {c _ {1} \\log T}{T}\\right) ^ {t}, 1 \\right\\}. \\tag {22b}\n$$\n",
1271
+ "text_format": "latex",
1272
+ "bbox": [
1273
+ 313,
1274
+ 521,
1275
+ 823,
1276
+ 556
1277
+ ],
1278
+ "page_idx": 5
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "Remark 1. As we shall see in our analysis, the discretization error depends crucially upon the quantity $\\frac{1 - \\alpha_t}{1 - \\overline{\\alpha}_t}$ , whereas the initialization error relies heavily upon $\\overline{\\alpha}_{1}$ and $\\overline{\\alpha}_T$ . Based on these observations, our learning rate schedule (22) is designed to make $\\frac{1 - \\alpha_t}{1 - \\overline{\\alpha}_t}$ as small as possible, while making sure $\\overline{\\alpha}_{1}$ (resp. $\\overline{\\alpha}_T$ ) is close to 1 (resp. 0). These properties will be shown in (43). Moreover, it is worth noting that our analysis can be easily extended to accommodate a much broader class of learning rates, although the resulting convergence rates might vary.",
1283
+ "bbox": [
1284
+ 169,
1285
+ 566,
1286
+ 826,
1287
+ 657
1288
+ ],
1289
+ "page_idx": 5
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "3.2 AN ODE-BASED DETERMINISTIC SAMPLER",
1294
+ "text_level": 1,
1295
+ "bbox": [
1296
+ 171,
1297
+ 672,
1298
+ 516,
1299
+ 686
1300
+ ],
1301
+ "page_idx": 5
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "We begin by analyzing a deterministic sampler: a discrete-time version of the probability flow ODE.",
1306
+ "bbox": [
1307
+ 169,
1308
+ 696,
1309
+ 823,
1310
+ 713
1311
+ ],
1312
+ "page_idx": 5
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "Armed with the score estimates $\\{s_t\\}_{1\\leq t\\leq T}$ , a discrete-time version of the probability flow ODE approach (cf. (15)) adopts the following update rule:",
1317
+ "bbox": [
1318
+ 169,
1319
+ 719,
1320
+ 823,
1321
+ 748
1322
+ ],
1323
+ "page_idx": 5
1324
+ },
1325
+ {
1326
+ "type": "equation",
1327
+ "text": "\n$$\nY _ {T} \\sim \\mathcal {N} (0, I _ {d}), \\quad Y _ {t - 1} = \\Phi_ {t} \\left(Y _ {t}\\right) \\quad \\text {f o r} t = T, \\dots , 1, \\tag {23a}\n$$\n",
1328
+ "text_format": "latex",
1329
+ "bbox": [
1330
+ 305,
1331
+ 752,
1332
+ 823,
1333
+ 770
1334
+ ],
1335
+ "page_idx": 5
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "where $\\Phi_t(\\cdot)$ is taken to be",
1340
+ "bbox": [
1341
+ 171,
1342
+ 773,
1343
+ 346,
1344
+ 789
1345
+ ],
1346
+ "page_idx": 5
1347
+ },
1348
+ {
1349
+ "type": "equation",
1350
+ "text": "\n$$\n\\Phi_ {t} (x) := \\frac {1}{\\sqrt {\\alpha_ {t}}} \\left(x + \\frac {1 - \\alpha_ {t}}{2} s _ {t} (x)\\right). \\tag {23b}\n$$\n",
1351
+ "text_format": "latex",
1352
+ "bbox": [
1353
+ 374,
1354
+ 795,
1355
+ 823,
1356
+ 829
1357
+ ],
1358
+ "page_idx": 5
1359
+ },
1360
+ {
1361
+ "type": "text",
1362
+ "text": "This approach, based on the probability flow ODE (15), often achieves faster sampling compared to the stochastic counterpart (Song et al., 2021b). Despite the empirical advances, however, the theoretical understanding of this type of deterministic samplers remained far from mature.",
1363
+ "bbox": [
1364
+ 169,
1365
+ 832,
1366
+ 823,
1367
+ 875
1368
+ ],
1369
+ "page_idx": 5
1370
+ },
1371
+ {
1372
+ "type": "text",
1373
+ "text": "We first derive non-asymptotic convergence guarantees — measured by the total variation distance between the forward and the reverse processes — for the above deterministic sampler (23). The proof of this result can be found in Li et al. (2023, Section 5.2).",
1374
+ "bbox": [
1375
+ 169,
1376
+ 881,
1377
+ 823,
1378
+ 925
1379
+ ],
1380
+ "page_idx": 5
1381
+ },
1382
+ {
1383
+ "type": "header",
1384
+ "text": "Published as a conference paper at ICLR 2024",
1385
+ "bbox": [
1386
+ 171,
1387
+ 32,
1388
+ 478,
1389
+ 47
1390
+ ],
1391
+ "page_idx": 5
1392
+ },
1393
+ {
1394
+ "type": "page_number",
1395
+ "text": "6",
1396
+ "bbox": [
1397
+ 493,
1398
+ 948,
1399
+ 504,
1400
+ 959
1401
+ ],
1402
+ "page_idx": 5
1403
+ },
1404
+ {
1405
+ "type": "text",
1406
+ "text": "Theorem 1. Suppose that (21) holds true. Assume that the score estimates $s_t(\\cdot)$ ( $1 \\leq t \\leq T$ ) satisfy Assumptions 1 and 2. Then the sampling process (23) with the learning rate schedule (22) satisfies",
1407
+ "bbox": [
1408
+ 169,
1409
+ 103,
1410
+ 823,
1411
+ 133
1412
+ ],
1413
+ "page_idx": 6
1414
+ },
1415
+ {
1416
+ "type": "equation",
1417
+ "text": "\n$$\n\\mathrm {T V} \\left(q _ {1}, p _ {1}\\right) \\leq C _ {1} \\frac {d ^ {2} \\log^ {4} T}{T} + C _ {1} \\frac {d ^ {6} \\log^ {6} T}{T ^ {2}} + C _ {1} \\sqrt {d \\log^ {3} T} \\varepsilon_ {\\text {s c o r e}} + C _ {1} d (\\log T) \\varepsilon_ {\\text {J a c o b i}} \\tag {24}\n$$\n",
1418
+ "text_format": "latex",
1419
+ "bbox": [
1420
+ 199,
1421
+ 138,
1422
+ 825,
1423
+ 172
1424
+ ],
1425
+ "page_idx": 6
1426
+ },
1427
+ {
1428
+ "type": "text",
1429
+ "text": "for some universal constants $C_1 > 0$ , where $p_1$ (resp. $q_1$ ) represents the distribution of $Y_1$ (resp. $X_1$ ).",
1430
+ "bbox": [
1431
+ 168,
1432
+ 176,
1433
+ 823,
1434
+ 194
1435
+ ],
1436
+ "page_idx": 6
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "text": "Implications. Let us highlight the main implications of Theorem 1. Before proceeding, note that our theory is concerned with convergence to $q_{1}$ . Given that $X_{1} \\sim q_{1}$ and $X_{0} \\sim q_{0}$ are very close due to the choice of $\\alpha_{1}$ , focusing on the convergence w.r.t. $q_{1}$ instead of $q_{0}$ remains practically relevant.",
1441
+ "bbox": [
1442
+ 169,
1443
+ 203,
1444
+ 823,
1445
+ 247
1446
+ ],
1447
+ "page_idx": 6
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "(a) Iteration complexity. Consider first the scenario that has access to perfect score estimates (i.e., $\\varepsilon_{\\mathrm{score}} = 0$ ). In order to achieve $\\varepsilon$ -accuracy (in the sense that $\\mathsf{TV}(q_1,p_1)\\leq \\varepsilon$ ), the number of steps $T$ only needs to exceed",
1452
+ "bbox": [
1453
+ 169,
1454
+ 253,
1455
+ 825,
1456
+ 294
1457
+ ],
1458
+ "page_idx": 6
1459
+ },
1460
+ {
1461
+ "type": "equation",
1462
+ "text": "\n$$\n\\widetilde {O} \\left(d ^ {2} / \\varepsilon + d ^ {3} / \\sqrt {\\varepsilon}\\right). \\tag {25}\n$$\n",
1463
+ "text_format": "latex",
1464
+ "bbox": [
1465
+ 429,
1466
+ 294,
1467
+ 825,
1468
+ 313
1469
+ ],
1470
+ "page_idx": 6
1471
+ },
1472
+ {
1473
+ "type": "list",
1474
+ "sub_type": "text",
1475
+ "list_items": [
1476
+ "(b) Stability. Turning to the more general case with imperfect score estimates (i.e., $\\varepsilon_{\\mathrm{score}} > 0$ ), the deterministic sampler (23) yields a distribution whose distance to the target distribution (measured again by the TV distance) scales proportionally with $\\varepsilon_{\\mathrm{score}}$ and $\\varepsilon_{\\mathrm{Jacobi}}$ . It is noteworthy that in addition to the score estimation errors, we are in need of an assumption on the stability of the associated Jacobian matrices, which plays a pivotal in ensuring that the reverse-time deterministic process does not deviate considerably from the desired process.",
1477
+ "(c) Insufficiency of the score estimation error assumption alone. The careful reader might wonder why we are in need of additional assumptions beyond the $\\ell_2$ score error stated in Assumption 1. To answer this question, we find it helpful to look at a simple example below."
1478
+ ],
1479
+ "bbox": [
1480
+ 169,
1481
+ 321,
1482
+ 825,
1483
+ 455
1484
+ ],
1485
+ "page_idx": 6
1486
+ },
1487
+ {
1488
+ "type": "text",
1489
+ "text": "- Example. Consider the case where $X_0 \\sim \\mathcal{N}(0,1)$ , and hence $X_1 \\sim \\mathcal{N}(0,1)$ . Suppose that the reverse process for time $t = 2$ can lead to the desired distribution if exact score function is employed, namely,",
1490
+ "bbox": [
1491
+ 215,
1492
+ 467,
1493
+ 823,
1494
+ 511
1495
+ ],
1496
+ "page_idx": 6
1497
+ },
1498
+ {
1499
+ "type": "equation",
1500
+ "text": "\n$$\nY _ {1} ^ {\\star} := \\frac {1}{\\sqrt {\\alpha_ {2}}} \\left(Y _ {2} - \\frac {1 - \\alpha_ {2}}{2} s _ {2} ^ {\\star} (Y _ {2})\\right) \\sim \\mathcal {N} (0, 1).\n$$\n",
1501
+ "text_format": "latex",
1502
+ "bbox": [
1503
+ 364,
1504
+ 517,
1505
+ 689,
1506
+ 551
1507
+ ],
1508
+ "page_idx": 6
1509
+ },
1510
+ {
1511
+ "type": "text",
1512
+ "text": "Now, suppose that the score estimate $s_2(\\cdot)$ we have available obeys",
1513
+ "bbox": [
1514
+ 228,
1515
+ 558,
1516
+ 674,
1517
+ 574
1518
+ ],
1519
+ "page_idx": 6
1520
+ },
1521
+ {
1522
+ "type": "equation",
1523
+ "text": "\n$$\ns _ {2} \\left(y _ {2}\\right) = s _ {2} ^ {\\star} \\left(y _ {2}\\right) + \\frac {2 \\sqrt {\\alpha_ {2}}}{1 - \\alpha_ {2}} \\left\\{y _ {1} ^ {\\star} - L \\left\\lfloor \\frac {y _ {1} ^ {\\star}}{L} \\right\\rfloor \\right\\} \\quad \\text {w i t h} y _ {1} ^ {\\star} := \\frac {1}{\\sqrt {\\alpha_ {2}}} \\left(y _ {2} - \\frac {1 - \\alpha_ {2}}{2} s _ {2} ^ {\\star} \\left(y _ {2}\\right)\\right)\n$$\n",
1524
+ "text_format": "latex",
1525
+ "bbox": [
1526
+ 233,
1527
+ 579,
1528
+ 816,
1529
+ 614
1530
+ ],
1531
+ "page_idx": 6
1532
+ },
1533
+ {
1534
+ "type": "text",
1535
+ "text": "for $L > 0$ , where $\\lfloor z \\rfloor$ is the greatest integer not exceeding $z$ . It follows that",
1536
+ "bbox": [
1537
+ 228,
1538
+ 621,
1539
+ 723,
1540
+ 638
1541
+ ],
1542
+ "page_idx": 6
1543
+ },
1544
+ {
1545
+ "type": "equation",
1546
+ "text": "\n$$\nY _ {1} = Y _ {1} ^ {\\star} + \\frac {1 - \\alpha_ {2}}{2 \\sqrt {\\alpha_ {2}}} \\left[ s _ {2} ^ {\\star} (Y _ {2}) - s _ {2} (Y _ {2}) \\right] = L \\left\\lfloor \\frac {Y _ {1} ^ {\\star}}{L} \\right\\rfloor .\n$$\n",
1547
+ "text_format": "latex",
1548
+ "bbox": [
1549
+ 354,
1550
+ 643,
1551
+ 699,
1552
+ 679
1553
+ ],
1554
+ "page_idx": 6
1555
+ },
1556
+ {
1557
+ "type": "text",
1558
+ "text": "Clearly, the score error $\\mathbb{E}_{X_2\\sim \\mathcal{N}(0,1)}\\bigl [|s_2(X_2) - s_2^\\star (X_2)|^2\\bigr ]$ can be made arbitrarily small by taking $L\\to 0$ . However, the discrete nature of $Y_{1}$ forces $\\mathsf{T}\\mathsf{V}(Y_1,X_1) = 1$ .",
1559
+ "bbox": [
1560
+ 228,
1561
+ 685,
1562
+ 823,
1563
+ 717
1564
+ ],
1565
+ "page_idx": 6
1566
+ },
1567
+ {
1568
+ "type": "text",
1569
+ "text": "This example demonstrates that, for the deterministic sampler, the TV distance between $Y_{1}$ and $X_{1}$ might not improve as the score error decreases. If we wish to relax Assumption 2, one potential way is to resort to other metrics (e.g., Wasserstein distance) instead of TV distance between $Y_{1}$ and $X_{1}$ .",
1570
+ "bbox": [
1571
+ 169,
1572
+ 727,
1573
+ 823,
1574
+ 771
1575
+ ],
1576
+ "page_idx": 6
1577
+ },
1578
+ {
1579
+ "type": "text",
1580
+ "text": "(d) Relaxing the boundedness assumption on $X_0$ . As it turns out, the assumption (21) can also be relaxed. Supposing that $\\mathbb{P}\\big(\\|X_0\\|_2 \\leq B \\mid X_0 \\sim p_{\\mathrm{data}}\\big) = 1$ for some quantity $B > 0$ (which is allowed to grow faster than a polynomial in $T$ ), we can readily extend our analysis to obtain",
1581
+ "bbox": [
1582
+ 169,
1583
+ 775,
1584
+ 823,
1585
+ 820
1586
+ ],
1587
+ "page_idx": 6
1588
+ },
1589
+ {
1590
+ "type": "equation",
1591
+ "text": "\n$$\n\\mathrm {T V} \\left(q _ {1}, p _ {1}\\right) \\leq C _ {1} \\frac {d ^ {2} \\log^ {4} T \\log^ {2} B}{T} + C _ {1} \\frac {d ^ {6} \\log^ {6} T \\log^ {3} B}{T ^ {2}} + C _ {1} \\sqrt {d \\log^ {3} T \\log B} \\varepsilon_ {\\text {s c o r e}} + C _ {1} d (\\log T) \\varepsilon_ {\\text {J a c o b i}}.\n$$\n",
1592
+ "text_format": "latex",
1593
+ "bbox": [
1594
+ 171,
1595
+ 825,
1596
+ 823,
1597
+ 854
1598
+ ],
1599
+ "page_idx": 6
1600
+ },
1601
+ {
1602
+ "type": "text",
1603
+ "text": "Importantly, the convergence rate depends only logarithmically in $B$ .",
1604
+ "bbox": [
1605
+ 173,
1606
+ 859,
1607
+ 630,
1608
+ 876
1609
+ ],
1610
+ "page_idx": 6
1611
+ },
1612
+ {
1613
+ "type": "text",
1614
+ "text": "Comparisons with past works. To the best of our knowledge, the only non-asymptotic analysis for the discretized probability flow ODE approach in prior literature was derived by a very recent work Chen et al. (2023c), which established the first non-asymptotic convergence guarantees that exhibit",
1615
+ "bbox": [
1616
+ 169,
1617
+ 882,
1618
+ 825,
1619
+ 925
1620
+ ],
1621
+ "page_idx": 6
1622
+ },
1623
+ {
1624
+ "type": "header",
1625
+ "text": "Published as a conference paper at ICLR 2024",
1626
+ "bbox": [
1627
+ 171,
1628
+ 32,
1629
+ 478,
1630
+ 47
1631
+ ],
1632
+ "page_idx": 6
1633
+ },
1634
+ {
1635
+ "type": "page_number",
1636
+ "text": "7",
1637
+ "bbox": [
1638
+ 493,
1639
+ 948,
1640
+ 504,
1641
+ 959
1642
+ ],
1643
+ "page_idx": 6
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "text": "polynomial dependency in both $d$ and $1 / \\varepsilon$ (see, e.g., Chen et al. (2023c, Theorem 4.1)). However, it fell short of providing concrete polynomial dependency in $d$ and $1 / \\varepsilon$ , suffered from exponential dependency in the Lipschitz constant of the score function, and relied on exact score estimates. In contrast, our result in Theorem 1 uncovers a concrete $d^2 /\\varepsilon$ scaling (ignoring lower-order and logarithmic terms) without imposing any smoothness assumption on the target data distribution, and makes explicit the effect of score estimation errors, both which were previously unavailable for such discrete-time deterministic samplers. Another recent work Benton et al. (2023b) studied the convergence of the probability flow ODE approach without accounting for the discretization error; the result therein also exhibited exponential dependency on the Lipschitz constant. Finally, while we were wrapping up the current paper, we became aware of the independent work Chen et al. (2023b) establishing improved polynomial dependency for two variants of the probability flow ODE. By inserting an additional stochastic corrector step — based on overdamped (resp. underdamped) Langevin diffusion — in each iteration of the probability flow ODE (so strictly speaking, these variations are no longer deterministic samplers), Chen et al. (2023b) showed that $\\widetilde{O} (L^{3}d / \\varepsilon^{2})$ (resp. $\\widetilde{O} (L^2\\sqrt{d} /\\varepsilon)$ ) steps are sufficient, where $L$ denotes the Lipschitz constant of the score function. In comparison, our result demonstrates for the first time that the plain probability flow ODE already achieves the $1 / \\varepsilon$ scaling without requiring either a corrector step; one limitation of our result, however, is the sub-optimal $d$ -dependency compared to the variants studied in Chen et al. (2023b).",
1648
+ "bbox": [
1649
+ 169,
1650
+ 103,
1651
+ 826,
1652
+ 357
1653
+ ],
1654
+ "page_idx": 7
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "3.3 A DDPM-TYPE STOCHASTIC SAMPLER",
1659
+ "text_level": 1,
1660
+ "bbox": [
1661
+ 171,
1662
+ 372,
1663
+ 488,
1664
+ 386
1665
+ ],
1666
+ "page_idx": 7
1667
+ },
1668
+ {
1669
+ "type": "text",
1670
+ "text": "Armed with the score estimates $\\{s_t\\}$ , we can readily introduce the following stochastic sampler that operates in discrete time, motivated by the reverse-time SDE (16):",
1671
+ "bbox": [
1672
+ 169,
1673
+ 398,
1674
+ 823,
1675
+ 428
1676
+ ],
1677
+ "page_idx": 7
1678
+ },
1679
+ {
1680
+ "type": "equation",
1681
+ "text": "\n$$\nY _ {T} \\sim \\mathcal {N} \\left(0, I _ {d}\\right), \\quad Y _ {t - 1} = \\Psi_ {t} \\left(Y _ {t}, Z _ {t}\\right) \\quad \\text {f o r} t = T, \\dots , 1 \\tag {26a}\n$$\n",
1682
+ "text_format": "latex",
1683
+ "bbox": [
1684
+ 302,
1685
+ 431,
1686
+ 821,
1687
+ 448
1688
+ ],
1689
+ "page_idx": 7
1690
+ },
1691
+ {
1692
+ "type": "text",
1693
+ "text": "where $Z_{t}\\stackrel {\\mathrm{i.i.d.}}{\\sim}\\mathcal{N}(0,I_{d})$ , and",
1694
+ "bbox": [
1695
+ 171,
1696
+ 455,
1697
+ 364,
1698
+ 474
1699
+ ],
1700
+ "page_idx": 7
1701
+ },
1702
+ {
1703
+ "type": "equation",
1704
+ "text": "\n$$\n\\Psi_ {t} (y, z) = \\frac {1}{\\sqrt {\\alpha_ {t}}} \\left(y + \\left(1 - \\alpha_ {t}\\right) s _ {t} (y)\\right) + \\sigma_ {t} z \\quad \\text {w i t h} \\sigma_ {t} ^ {2} = \\frac {1}{\\alpha_ {t}} - 1. \\tag {26b}\n$$\n",
1705
+ "text_format": "latex",
1706
+ "bbox": [
1707
+ 272,
1708
+ 479,
1709
+ 823,
1710
+ 512
1711
+ ],
1712
+ "page_idx": 7
1713
+ },
1714
+ {
1715
+ "type": "text",
1716
+ "text": "The key difference between this sampler and the deterministic sampler (23) is that: (i) there exists an additional pre-factor of $1/2$ on $s_t$ in the deterministic sampler; and (ii) the stochastic sampler injects additional noise $Z_t$ in each step.",
1717
+ "bbox": [
1718
+ 169,
1719
+ 516,
1720
+ 823,
1721
+ 559
1722
+ ],
1723
+ "page_idx": 7
1724
+ },
1725
+ {
1726
+ "type": "text",
1727
+ "text": "In contrast to deterministic samplers, the stochastic samplers have received more theoretical attention, with the state-of-the-art results established by Chen et al. (2022b;a) as well as a very recent paper Benton et al. (2023a). The elementary approach developed in the current paper is also applicable towards understanding this type of samplers, leading to the following non-asymptotic theory.",
1728
+ "bbox": [
1729
+ 169,
1730
+ 565,
1731
+ 823,
1732
+ 622
1733
+ ],
1734
+ "page_idx": 7
1735
+ },
1736
+ {
1737
+ "type": "text",
1738
+ "text": "Theorem 2. Suppose (21) holds true. Equipped with the estimates in Assumption 1 and the learning rate schedule (22), the stochastic sampler (26) achieves, for some universal constants $C_1 > 0$ ,",
1739
+ "bbox": [
1740
+ 169,
1741
+ 625,
1742
+ 823,
1743
+ 654
1744
+ ],
1745
+ "page_idx": 7
1746
+ },
1747
+ {
1748
+ "type": "equation",
1749
+ "text": "\n$$\n\\mathrm {T V} \\left(q _ {1}, p _ {1}\\right) \\leq \\sqrt {\\frac {1}{2} \\mathrm {K L} \\left(q _ {1} \\| p _ {1}\\right)} \\leq C _ {1} \\frac {d ^ {2} \\log^ {3} T}{\\sqrt {T}} + C _ {1} \\sqrt {d} \\varepsilon_ {\\text {s c o r e}} \\log^ {2} T. \\tag {27}\n$$\n",
1750
+ "text_format": "latex",
1751
+ "bbox": [
1752
+ 269,
1753
+ 657,
1754
+ 823,
1755
+ 694
1756
+ ],
1757
+ "page_idx": 7
1758
+ },
1759
+ {
1760
+ "type": "text",
1761
+ "text": "Theorem 2 establishes non-asymptotic convergence guarantees for the stochastic sampler (26). As asserted by the theorem, if we have access to perfect score estimates, then the number of steps needed to attain $\\varepsilon$ -accuracy (measured by the TV distance between $p_1$ and $q_1$ ) is proportional to $1 / \\varepsilon^2$ , matching the state-of-the-art $\\varepsilon$ -dependency derived in Chen et al. (2022a), albeit exhibiting a worse dimensional dependency. In addition, in the presence of score estimation error, the sampler achieves a TV distance proportional to $\\varepsilon_{\\mathrm{score}}$ , again consistent with prior results. Our analysis follows a completely different path compared with the SDE-based approach in Chen et al. (2022a), thus offering complementary interpretations for this important sampler.",
1762
+ "bbox": [
1763
+ 169,
1764
+ 705,
1765
+ 826,
1766
+ 818
1767
+ ],
1768
+ "page_idx": 7
1769
+ },
1770
+ {
1771
+ "type": "text",
1772
+ "text": "4 OTHER RELATED WORKS",
1773
+ "text_level": 1,
1774
+ "bbox": [
1775
+ 171,
1776
+ 837,
1777
+ 413,
1778
+ 852
1779
+ ],
1780
+ "page_idx": 7
1781
+ },
1782
+ {
1783
+ "type": "text",
1784
+ "text": "Theory for SGMs. Early theoretical efforts in understanding the convergence of score-based stochastic samplers suffered from being either not quantitative (De Bortoli et al., 2021; Liu et al., 2022; Pidstrigach, 2022), or the curse of dimensionality (e.g., exponential dependencies in the convergence guarantees) (Block et al., 2020; De Bortoli, 2022). Lee et al. (2022) provided the first",
1785
+ "bbox": [
1786
+ 169,
1787
+ 867,
1788
+ 825,
1789
+ 925
1790
+ ],
1791
+ "page_idx": 7
1792
+ },
1793
+ {
1794
+ "type": "header",
1795
+ "text": "Published as a conference paper at ICLR 2024",
1796
+ "bbox": [
1797
+ 171,
1798
+ 32,
1799
+ 478,
1800
+ 47
1801
+ ],
1802
+ "page_idx": 7
1803
+ },
1804
+ {
1805
+ "type": "page_number",
1806
+ "text": "8",
1807
+ "bbox": [
1808
+ 493,
1809
+ 948,
1810
+ 503,
1811
+ 959
1812
+ ],
1813
+ "page_idx": 7
1814
+ },
1815
+ {
1816
+ "type": "text",
1817
+ "text": "polynomial convergence guarantees with $L_{2}$ -accurate score estimates, for any smooth distribution satisfying the log-Sobolev inequality. Chen et al. (2022b); Lee et al. (2023); Chen et al. (2022a) subsequently lifted such a stringent data distribution assumption. More concretely, Chen et al. (2022b) accommodated a broad family of data distributions under the premise that the score functions over the entire trajectory of the forward process are Lipschitz; Lee et al. (2023) only required certain smoothness assumptions but came with worse dependence on the problem parameters; and more recent results in Chen et al. (2022a) applied to literally any data distribution with bounded second-order moment. In addition, Wibisono & Yang (2022) also established a convergence theory for score-based generative models, assuming that the error of the score estimator has a bounded moment generating function and that the data distribution satisfies the log-Sobolev inequality. Turning attention to samplers based on the probability flow ODE, Chen et al. (2023c) derived the first non-asymptotic bounds for this type of samplers. Improved convergence guarantees have recently been provided by a concurrent work Chen et al. (2023b), with the assistance of additional corrector steps inerspersed in each iteration of the probability flow ODE. It is worth noting that the corrector steps proposed therein are based on Langevin-type diffusion and inject additive noise, and hence the resulting sampling processes are not deterministic. Additionally, theoretical justifications for DDPM in the context of image in-painting have been developed by Rout et al. (2023). Moreover, convergence results based on the Wasserstein distance have recently been derived as well (Tang, 2023; Benton et al., 2023b), although these results typically exhibit exponential dependency on the Lipschitz constants of the score functions. Theoretical guarantees are also extended to accommodate popular methods like consistency models and diffusion guidance (Li et al., 2024b; Wu et al., 2024).",
1818
+ "bbox": [
1819
+ 174,
1820
+ 103,
1821
+ 823,
1822
+ 395
1823
+ ],
1824
+ "page_idx": 8
1825
+ },
1826
+ {
1827
+ "type": "text",
1828
+ "text": "Score matching. Hyvarinen (2005) showed that the score function can be estimated via integration by parts, a result that was further extended in Hyvarinen (2007). Song et al. (2020b) proposed sliced score matching to tame the computational complexity in high dimension. The consistency of the score matching estimator was studied in Hyvarinen (2005), with asymptotic normality established in Forbes & Lauritzen (2015). Optimizing the score matching loss has been shown to be intimately connected to minimizing upper bounds on the Kullback-Leibler divergence (Song et al., 2021a) and Wasserstein distance (Kwon et al., 2022) between the generated distribution and the target data distribution. From a non-asymptotic perspective, Koehler et al. (2023) studied the statistical efficiency of score matching by connecting it with the isoperimetric properties of the distribution.",
1829
+ "bbox": [
1830
+ 174,
1831
+ 401,
1832
+ 823,
1833
+ 526
1834
+ ],
1835
+ "page_idx": 8
1836
+ },
1837
+ {
1838
+ "type": "text",
1839
+ "text": "Other theory for diffusion models. Oko et al. (2023) studied the approximation and generalization capabilities of diffusion modeling for distribution estimation. Assuming that the data are supported on a low-dimensional linear subspace, Chen et al. (2023a) developed a sample complexity bound for diffusion models. Moreover, Ghimire et al. (2023) adopted a geometric perspective and showed that the forward and backward processes of diffusion models are essentially Wasserstein gradient flows. Recently, the idea of stochastic localization, which is closely related to diffusion models, is adopted to sample from posterior distributions (Montanari & Wu, 2023; El Alaoui et al., 2022), which has been implemented using approximate message passing (Donoho et al., 2009; Li & Wei, 2022).",
1840
+ "bbox": [
1841
+ 174,
1842
+ 532,
1843
+ 823,
1844
+ 645
1845
+ ],
1846
+ "page_idx": 8
1847
+ },
1848
+ {
1849
+ "type": "text",
1850
+ "text": "5 DISCUSSION",
1851
+ "text_level": 1,
1852
+ "bbox": [
1853
+ 174,
1854
+ 685,
1855
+ 308,
1856
+ 700
1857
+ ],
1858
+ "page_idx": 8
1859
+ },
1860
+ {
1861
+ "type": "text",
1862
+ "text": "In this paper, we have developed a new suite of non-asymptotic theory for establishing the convergence and faithfulness of diffusion generative modeling, assuming access to reliable estimates of the (Stein) score functions. Our analysis framework seeks to track the dynamics of the reverse process directly using elementary tools, which eliminates the need to look at the continuous-time limit and invoke the SDE and ODE toolboxes. Only the very minimal assumptions on the target data distribution are imposed. The analysis framework laid out in the current paper might shed light on how to analyze other variants of score-based generative models as well. Moving forward, there are plenty of questions that require in-depth theoretical understanding. For instance, the dimension dependency in our convergence results remains sub-optimal; can we further refine our theory in order to reveal tight dependency in this regard? Can we establish sharp convergence results in terms of the Wasserstein distance, which could sometimes be \"closer\" to how humans differentiate pictures and might potentially help relax Assumption 2 in the case of deterministic samplers? It would also be of paramount interest to establish end-to-end performance guarantees that take into account both the score learning phase and the sampling phase.",
1863
+ "bbox": [
1864
+ 174,
1865
+ 729,
1866
+ 823,
1867
+ 922
1868
+ ],
1869
+ "page_idx": 8
1870
+ },
1871
+ {
1872
+ "type": "header",
1873
+ "text": "Published as a conference paper at ICLR 2024",
1874
+ "bbox": [
1875
+ 173,
1876
+ 32,
1877
+ 478,
1878
+ 46
1879
+ ],
1880
+ "page_idx": 8
1881
+ },
1882
+ {
1883
+ "type": "page_number",
1884
+ "text": "9",
1885
+ "bbox": [
1886
+ 493,
1887
+ 949,
1888
+ 503,
1889
+ 958
1890
+ ],
1891
+ "page_idx": 8
1892
+ },
1893
+ {
1894
+ "type": "text",
1895
+ "text": "ACKNOWLEDGEMENTS",
1896
+ "text_level": 1,
1897
+ "bbox": [
1898
+ 171,
1899
+ 102,
1900
+ 369,
1901
+ 118
1902
+ ],
1903
+ "page_idx": 9
1904
+ },
1905
+ {
1906
+ "type": "ref_text",
1907
+ "text": "Y. Wei is supported in part by the NSF grants DMS-2147546/2015447, CAREER award DMS-2143215, CCF-2106778, and the Google Research Scholar Award. Y. Chen is supported in part by the Alfred P. Sloan Research Fellowship, the Google Research Scholar Award, the AFOSR grant FA9550-22-1-0198, the ONR grant N00014-22-1-2354, and the NSF grants CCF-2221009 and CCF-1907661. Y. Chi is supported in part by the grants ONR N00014-19-1-2404, NSF CCF-2106778, DMS-2134080 and ECCS-2126634.",
1908
+ "bbox": [
1909
+ 171,
1910
+ 132,
1911
+ 826,
1912
+ 217
1913
+ ],
1914
+ "page_idx": 9
1915
+ },
1916
+ {
1917
+ "type": "text",
1918
+ "text": "REFERENCES",
1919
+ "text_level": 1,
1920
+ "bbox": [
1921
+ 173,
1922
+ 238,
1923
+ 287,
1924
+ 253
1925
+ ],
1926
+ "page_idx": 9
1927
+ },
1928
+ {
1929
+ "type": "list",
1930
+ "sub_type": "ref_text",
1931
+ "list_items": [
1932
+ "Brian DO Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313-326, 1982.",
1933
+ "Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems, 34:17981-17993, 2021.",
1934
+ "Joe Benton, Valentin De Bortoli, Arnaud Doucet, and George Deligiannidis. Linear convergence bounds for diffusion models via stochastic localization. arXiv preprint arXiv:2308.03686, 2023a.",
1935
+ "Joe Benton, George Deligiannidis, and Arnaud Doucet. Error bounds for flow matching methods. arXiv preprint arXiv:2305.16860, 2023b.",
1936
+ "Adam Block, Youssef Mroueh, and Alexander Rakhlin. Generative modeling with denoising autoencoders and Langevin sampling. arXiv preprint arXiv:2002.00107, 2020.",
1937
+ "Hongrui Chen, Holden Lee, and Jianfeng Lu. Improved analysis of score-based generative modeling: User-friendly bounds under minimal smoothness assumptions. arXiv preprint arXiv:2211.01916, 2022a.",
1938
+ "Minshuo Chen, Kaixuan Huang, Tuo Zhao, and Mengdi Wang. Score approximation, estimation and distribution recovery of diffusion models on low-dimensional data. arXiv preprint arXiv:2302.07194, 2023a.",
1939
+ "Nanxin Chen, Yu Zhang, Heiga Zen, Ron J Weiss, Mohammad Norouzi, and William Chan. WaveGrad: Estimating gradients for waveform generation. In International Conference on Learning Representations, 2021.",
1940
+ "Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, and Anru R Zhang. Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. arXiv preprint arXiv:2209.11215, 2022b.",
1941
+ "Sitan Chen, Sinho Chewi, Holden Lee, Yuanzhi Li, Jianfeng Lu, and Adil Salim. The probability flow ode is provably fast. arXiv preprint arXiv:2305.11798, 2023b.",
1942
+ "Sitan Chen, Giannis Daras, and Alexandros G Dimakis. Restoration-degradation beyond linear diffusions: A non-asymptotic analysis for DDIM-type samplers. arXiv preprint arXiv:2303.03384, 2023c.",
1943
+ "Florinel-Alin Croitoru, Vlad Hondru, Radu Tudor Ionescu, and Mubarak Shah. Diffusion models in vision: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.",
1944
+ "Valentin De Bortoli. Convergence of denoising diffusion models under the manifold hypothesis. arXiv preprint arXiv:2208.05314, 2022.",
1945
+ "Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. Diffusion Schrödinger bridge with applications to score-based generative modeling. Advances in Neural Information Processing Systems, 34:17695-17709, 2021.",
1946
+ "Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in Neural Information Processing Systems, 34:8780-8794, 2021."
1947
+ ],
1948
+ "bbox": [
1949
+ 171,
1950
+ 261,
1951
+ 825,
1952
+ 924
1953
+ ],
1954
+ "page_idx": 9
1955
+ },
1956
+ {
1957
+ "type": "header",
1958
+ "text": "Published as a conference paper at ICLR 2024",
1959
+ "bbox": [
1960
+ 171,
1961
+ 32,
1962
+ 478,
1963
+ 47
1964
+ ],
1965
+ "page_idx": 9
1966
+ },
1967
+ {
1968
+ "type": "page_number",
1969
+ "text": "10",
1970
+ "bbox": [
1971
+ 490,
1972
+ 946,
1973
+ 509,
1974
+ 960
1975
+ ],
1976
+ "page_idx": 9
1977
+ },
1978
+ {
1979
+ "type": "list",
1980
+ "sub_type": "ref_text",
1981
+ "list_items": [
1982
+ "David L Donoho, Arian Maleki, and Andrea Montanari. Message-passing algorithms for compressed sensing. Proceedings of the National Academy of Sciences, 106(45):18914-18919, 2009.",
1983
+ "Ahmed El Alaoui, Andrea Montanari, and Mark Sellke. Sampling from the sherrington-kirkpatrick gibbs measure via algorithmic stochastic localization. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pp. 323-334, 2022.",
1984
+ "Peter GM Forbes and Steffen Lauritzen. Linear estimating equations for exponential families with application to Gaussian linear concentration models. Linear Algebra and its Applications, 473: 261-283, 2015.",
1985
+ "Sandesh Ghimire, Jinyang Liu, Armand Comas, Davin Hill, Aria Masoomi, Octavia Camps, and Jennifer Dy. Geometry of score based generative models. arXiv preprint arXiv:2302.04411, 2023.",
1986
+ "Ulrich G Haussmann and Etienne Pardoux. Time reversal of diffusions. The Annals of Probability, pp. 1188-1205, 1986.",
1987
+ "Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840-6851, 2020.",
1988
+ "Aapo Hyvarinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6(4), 2005.",
1989
+ "Aapo Hyvarinen. Some extensions of score matching. Computational statistics & data analysis, 51 (5):2499-2512, 2007.",
1990
+ "Alexia Jolicoeur-Martineau, Rémi Piché-Taillefer, Ioannis Mitliagkas, and Remi Tachet des Combes. Adversarial score matching and improved sampling for image generation. In International Conference on Learning Representations, 2021.",
1991
+ "Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, volume 35, pp. 26565-26577, 2022.",
1992
+ "Frederic Koehler, Alexander Heckett, and Andrej Risteski. Statistical efficiency of score matching: The view from isoperimetry. International Conference on Learning Representations, 2023.",
1993
+ "Zhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao, and Bryan Catanzaro. DiffWave: A versatile diffusion model for audio synthesis. In International Conference on Learning Representations, 2021.",
1994
+ "Dohyun Kwon, Ying Fan, and Kangwook Lee. Score-based generative modeling secretly minimizes the Wasserstein distance. In Advances in Neural Information Processing Systems, 2022.",
1995
+ "Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence for score-based generative modeling with polynomial complexity. In Advances in Neural Information Processing Systems, 2022.",
1996
+ "Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence of score-based generative modeling for general data distributions. In International Conference on Algorithmic Learning Theory, pp. 946-985, 2023.",
1997
+ "Gen Li and Yuting Wei. A non-asymptotic framework for approximate message passing in spiked models. arXiv preprint arXiv:2208.03313, 2022.",
1998
+ "Gen Li, Yuting Wei, Yuxin Chen, and Yuejie Chi. Towards faster non-asymptotic convergence for diffusion-based generative models. arXiv preprint arXiv:2306.09251, 2023.",
1999
+ "Gen Li, Yu Huang, Timofey Efimov, Yuting Wei, Yuejie Chi, and Yuxin Chen. Accelerating convergence of score-based diffusion models, provably. arXiv preprint arXiv:2403.03852, 2024a.",
2000
+ "Gen Li, Zhihan Huang, and Yuting Wei. Towards a mathematical theory for consistency training in diffusion models. arXiv preprint arXiv:2402.07802, 2024b."
2001
+ ],
2002
+ "bbox": [
2003
+ 171,
2004
+ 102,
2005
+ 825,
2006
+ 924
2007
+ ],
2008
+ "page_idx": 10
2009
+ },
2010
+ {
2011
+ "type": "header",
2012
+ "text": "Published as a conference paper at ICLR 2024",
2013
+ "bbox": [
2014
+ 171,
2015
+ 32,
2016
+ 478,
2017
+ 47
2018
+ ],
2019
+ "page_idx": 10
2020
+ },
2021
+ {
2022
+ "type": "page_number",
2023
+ "text": "11",
2024
+ "bbox": [
2025
+ 490,
2026
+ 948,
2027
+ 506,
2028
+ 959
2029
+ ],
2030
+ "page_idx": 10
2031
+ },
2032
+ {
2033
+ "type": "list",
2034
+ "sub_type": "ref_text",
2035
+ "list_items": [
2036
+ "Xingchao Liu, Lemeng Wu, Mao Ye, and Qiang Liu. Let us build bridges: Understanding and extending diffusion generative models. arXiv preprint arXiv:2208.14699, 2022.",
2037
+ "Andrea Montanari and Yuchen Wu. Posterior sampling from the spiked models via diffusion processes. arXiv preprint arXiv:2304.11449, 2023.",
2038
+ "Kazusato Oko, Shunta Akiyama, and Taiji Suzuki. Diffusion models are minimax optimal distribution estimators. arXiv preprint arXiv:2303.01861, 2023.",
2039
+ "Jakiw Pidstrigach. Score-based generative models detect manifolds. arXiv preprint arXiv:2206.01018, 2022.",
2040
+ "Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with CLIP latents. arXiv preprint arXiv:2204.06125, 2022.",
2041
+ "Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684-10695, 2022.",
2042
+ "Litu Rout, Advait Parulekar, Constantine Caramanis, and Sanjay Shakkottai. A theoretical justification for image inpainting using denoising diffusion probabilistic models. arXiv preprint arXiv:2302.01217, 2023.",
2043
+ "Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems, 35:36479-36494, 2022.",
2044
+ "Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256-2265, 2015.",
2045
+ "Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020a.",
2046
+ "Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019.",
2047
+ "Yang Song, Sahaj Garg, Jiaxin Shi, and Stefano Ermon. Sliced score matching: A scalable approach to density and score estimation. In Uncertainty in Artificial Intelligence, pp. 574-584, 2020b.",
2048
+ "Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. Maximum likelihood training of score-based diffusion models. Advances in Neural Information Processing Systems, 34:1415-1428, 2021a.",
2049
+ "Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations, 2021b.",
2050
+ "Wenpin Tang. Diffusion probabilistic models. preprint, 2023.",
2051
+ "Wenpin Tang and Hanyang Zhao. Score-based diffusion models via stochastic differential equations-a technical tutorial. arXiv preprint arXiv:2402.07487, 2024.",
2052
+ "Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computation, 23(7):1661-1674, 2011.",
2053
+ "Andre Wibisono and Kaylee Yingxi Yang. Convergence in KL divergence of the inexact Langevin algorithm with application to score-based generative models. arXiv preprint arXiv:2211.01512, 2022.",
2054
+ "Yuchen Wu, Minshuo Chen, Zihao Li, Mengdi Wang, and Yuting Wei. Theoretical insights for diffusion guidance: A case study for gaussian mixture models. preprint, 2024.",
2055
+ "Ling Yang, Zhilong Zhang, Yang Song, Shenda Hong, Runsheng Xu, Yue Zhao, Yingxia Shao, Wentao Zhang, Bin Cui, and Ming-Hsuan Yang. Diffusion models: A comprehensive survey of methods and applications. arXiv preprint arXiv:2209.00796, 2022."
2056
+ ],
2057
+ "bbox": [
2058
+ 171,
2059
+ 102,
2060
+ 825,
2061
+ 924
2062
+ ],
2063
+ "page_idx": 11
2064
+ },
2065
+ {
2066
+ "type": "header",
2067
+ "text": "Published as a conference paper at ICLR 2024",
2068
+ "bbox": [
2069
+ 171,
2070
+ 32,
2071
+ 478,
2072
+ 47
2073
+ ],
2074
+ "page_idx": 11
2075
+ },
2076
+ {
2077
+ "type": "page_number",
2078
+ "text": "12",
2079
+ "bbox": [
2080
+ 490,
2081
+ 946,
2082
+ 508,
2083
+ 959
2084
+ ],
2085
+ "page_idx": 11
2086
+ }
2087
+ ]
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/b4e2a016-0bfa-45bf-93f6-59d4737b9813_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0754e0226ecc38fa101bbfa1541db1a5af812d479ca1e182c8f1a997e4348ee5
3
+ size 363409
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/full.md ADDED
@@ -0,0 +1,425 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS NON-ASYMPTOTIC CONVERGENCE FOR DIFFUSION-BASED GENERATIVE MODELS
2
+
3
+ Gen Li*
4
+
5
+ Yuting Wei
6
+
7
+ Yuxin Chen†
8
+
9
+ Yuejie Chi\*
10
+
11
+ # ABSTRACT
12
+
13
+ Diffusion models, which convert noise into new data instances by learning to reverse a Markov diffusion process, have become a cornerstone in contemporary generative modeling. While their practical power has now been widely recognized, the theoretical underpinnings remain far from mature. In this work, we develop a suite of non-asymptotic theory towards understanding the data generation process of diffusion models in discrete time, assuming access to $\ell_2$ -accurate estimates of the (Stein) score functions. For a popular deterministic sampler (based on the probability flow ODE), we establish a convergence rate proportional to $1 / T$ (with $T$ the total number of steps), improving upon past results; for another mainstream stochastic sampler (i.e., a type of the denoising diffusion probabilistic model), we derive a convergence rate proportional to $1 / \sqrt{T}$ , matching the state-of-the-art theory. Imposing only minimal assumptions on the target data distribution (e.g., no smoothness assumption is imposed), our results characterize how $\ell_2$ score estimation errors affect the quality of the data generation process. In contrast to prior works, our theory is developed based on an elementary yet versatile non-asymptotic approach without resorting to toolboxes for SDEs and ODEs.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Diffusion models have emerged as a cornerstone in contemporary generative modeling, a task that learns to generate new data instances (e.g., images, text, audio) that look similar in distribution to the training data (Ho et al., 2020; Sohl-Dickstein et al., 2015; Song & Ermon, 2019; Dhariwal & Nichol, 2021; Jolicoeur-Martineau et al., 2021; Chen et al., 2021; Kong et al., 2021; Austin et al., 2021). Originally proposed by Sohl-Dickstein et al. (2015) and later popularized by Song & Ermon (2019); Ho et al. (2020), the mainstream diffusion generative models — e.g., denoising diffusion probabilistic models (DDPMs) (Ho et al., 2020) and denoising diffusion implicit models (DDIMs) (Song et al., 2020a) — have underpinned major successes in content generators like DALL-E 2 (Ramesh et al., 2022), Stable Diffusion (Rombach et al., 2022) and Imagen (Saharia et al., 2022), claiming state-of-the-art performance in the now broad field of generative artificial intelligence (AI). See Yang et al. (2022); Croitoru et al. (2023) for overviews of recent development.
18
+
19
+ In a nutshell, a diffusion generative model is based upon two stochastic processes in $\mathbb{R}^d$ :
20
+
21
+ 1) a forward process
22
+
23
+ $$
24
+ X _ {0} \rightarrow X _ {1} \rightarrow \dots \rightarrow X _ {T} \tag {1}
25
+ $$
26
+
27
+ that starts from a sample drawn from the target data distribution (e.g., of natural images) and gradually diffuses it into a noise-like distribution (e.g., standard Gaussians);
28
+
29
+ 2) a reverse process
30
+
31
+ $$
32
+ Y _ {T} \rightarrow Y _ {T - 1} \rightarrow \dots \rightarrow Y _ {0} \tag {2}
33
+ $$
34
+
35
+ that starts from pure noise (e.g., standard Gaussians) and successively converts it into new samples sharing similar distributions as the target data distribution.
36
+
37
+ Transforming data into noise in the forward process is straightforward, often hand-crafted by increasingly injecting more noise into the data at hand. What is challenging is the construction of the reverse process: how to generate the desired information out of pure noise? To do so, a diffusion model learns to build a reverse process (2) that imitates the dynamics of the forward process (1) in a time-reverse fashion; more precisely, the design goal is to ascertain distributional proximity<sup>1</sup>
38
+
39
+ $$
40
+ Y _ {t} \stackrel {\mathrm {d}} {\approx} X _ {t}, \quad t = T, \dots , 1 \tag {3}
41
+ $$
42
+
43
+ through proper learning based on how the training data propagate in the forward process. Encouragingly, there often exist feasible strategies to achieve this goal as long as faithful estimates about the (Stein) score functions — the gradients of the log marginal density of the forward process — are available, an intriguing fact that can be illuminated by the existence and construction of reverse-time stochastic differential equations (SDEs) (Anderson, 1982; Haussmann & Pardoux, 1986) (see Section 2.2 for more precise discussions). Viewed in this light, a diverse array of diffusion models are frequently referred to as score-based generative modeling (SGM). The popularity of SGM was initially motivated by, and has since further inspired, numerous recent studies on the problem of learning score functions, a subroutine that also goes by the name of score matching (e.g., Hyvarinen (2005; 2007); Vincent (2011); Song et al. (2020b); Koehler et al. (2023)).
44
+
45
+ Nonetheless, despite the mind-blowing empirical advances, a mathematical theory for diffusion generative models is still in its infancy. Given the complexity of developing a full-fledged end-to-end theory, a divide-and-conquer approach has been advertised, decoupling the score learning phase (i.e., how to estimate score functions from training data) and the generative sampling phase (i.e., how to generate new data given the score estimates). In particular, the past two years have witnessed growing interest and remarkable progress from the theoretical community towards understanding the sampling phase (Block et al., 2020; De Bortoli et al., 2021; Liu et al., 2022; De Bortoli, 2022; Lee et al., 2023; Pidstrigach, 2022; Chen et al., 2022b;a; Tang, 2023; Chen et al., 2023c; Tang & Zhao, 2024; Li et al., 2024a). For instance, polynomial-time convergence guarantees have been established for stochastic samplers (e.g., Chen et al. (2022b;a); Benton et al. (2023a)) and deterministic samplers (e.g., Chen et al. (2023c); Benton et al. (2023b)), both of which accommodated a fairly general family of data distributions.
46
+
47
+ This paper. The present paper contributes to this growing list of theoretical endeavors by developing a new suite of non-asymptotic theory for several score-based generative modeling algorithms. We concentrate on two types of samplers (Song et al., 2021b) in discrete time: (i) a deterministic sampler based on a sort of ordinary differential equations (ODEs) called probability flow ODEs (which is closely related to the DDIM); and (ii) a DDPM-type stochastic sampler motivated by reverse-time SDEs. We impose only minimal assumptions on the target data distribution (e.g., no smoothness condition is needed), and would like to quantify the impact of $\ell_2$ score estimation errors. In comparisons to past works, our main contributions are three-fold.
48
+
49
+ Non-asymptotic convergence guarantees. For a popular deterministic sampler, we demonstrate that the number of steps needed to yield $\varepsilon$ -accuracy — meaning that the total variation (TV) distance between the distribution of $X_{1}$ and that of $Y_{1}$ is no larger than $\varepsilon$ — is proportional to $1 / \varepsilon$ (in addition to other polynomial dimension dependency). This improves upon prior convergence guarantees (Chen et al., 2023c) and does not exhibit exponential dependency on the smoothness assumption as in Chen et al. (2023c); Benton et al. (2023b). For another DDPM-type stochastic sampler, we establish an iteration complexity proportional to $1 / \varepsilon^{2}$ , matching existing theory Chen et al. (2022b;a); Benton et al. (2023a) in terms of the $\varepsilon$ -dependency.
50
+
51
+ Score estimation errors for the deterministic sampler. In our convergence guarantees for the deterministic sampler, the TV distance between $X_{1}$ and $Y_{1}$ are shown to be proportional to the $\ell_{2}$ score estimation error as well as the associated Jacobian errors. As far as we know, this is the first result for this deterministic sampler that accounts for score estimation errors in discrete time. In comparison, other theoretical results that accommodate score errors for the probability flow ODE approach
52
+
53
+ either study certain stochastic variations of this deterministic sampler (Chen et al., 2023b) or fall short of accommodating discretization errors (Benton et al., 2023b).
54
+
55
+ An elementary non-asymptotic analysis framework. From the technical viewpoint, the analysis framework laid out in this paper is fully non-asymptotic in nature. In contrast to prior analyses that take a detour to study the continuum limits and then control the discretization error, our approach tackles the discrete-time processes directly using elementary analysis strategies. No knowledge of SDEs or ODEs is required for establishing our theory, thereby resulting in a more versatile framework and sometimes lowering the technical barrier towards understanding diffusion models.
56
+
57
+ Notation. For any two functions $f(d, T)$ and $g(d, T)$ , we adopt the notation $f(d, T) \lesssim g(d, T)$ or $f(d, T) = O(g(d, T))$ (resp. $f(d, T) \gtrsim g(d, T)$ ) to mean that there exists some universal constant $C_1 > 0$ such that $f(d, T) \leq C_1 g(d, T)$ (resp. $f(d, T) \geq C_1 g(d, T)$ ) for all $d$ and $T$ ; moreover, the notation $f(d, T) \asymp g(d, T)$ indicates that $f(d, T) \lesssim g(d, T)$ and $f(d, T) \gtrsim g(d, T)$ hold at once. The notation $\widetilde{O}(\cdot)$ is defined similar to $O(\cdot)$ except that it hides the logarithmic dependency. Additionally, the notation $f(d, T) = o(g(d, T))$ means that $f(d, T) / g(d, T) \to 0$ as $d, T$ tend to infinity. For any two probability measures $P$ and $Q$ , the total variation (TV) distance between them is defined to be $\mathsf{TV}(P, Q) := \frac{1}{2} \int |\mathrm{d}P - \mathrm{d}Q|$ . Throughout the paper, $p_X(\cdot)$ (resp. $p_{X|Y}(\cdot|\cdot))$ denotes the probability density function of $X$ (resp. $X$ given $Y$ ). For any matrix $A$ , we denote by $\|A\|$ (resp. $\|A\|_{\mathbb{F}}$ ) the spectral norm (resp. Frobenius norm) of $A$ . Also, for any vector-valued function $f$ , we let $J_f$ or $\frac{\partial f}{\partial x}$ represent the Jacobian matrix of $f$ .
58
+
59
+ # 2 PRELIMINARIES
60
+
61
+ In this section, we introduce the basics of diffusion generative models. The ultimate goal of a generative model can be concisely stated: given data samples drawn from an unknown distribution of interest $p_{\mathrm{data}}$ in $\mathbb{R}^d$ , we wish to generate new samples whose distributions closely resemble $p_{\mathrm{data}}$ .
62
+
63
+ # 2.1 DIFFUSION GENERATIVE MODELS
64
+
65
+ Towards achieving the above goal, a diffusion generative model typically encompasses two Markov processes: a forward process and a reverse process, as described below.
66
+
67
+ The forward process. In the forward chain, one progressively injects noise into the data samples to diffuse and obscure the data. The distributions of the injected noise are often hand-picked, with the standard Gaussian distribution receiving widespread adoption. Specifically, the forward Markov process produces a sequence of $d$ -dimensional random vectors $X_{1} \to X_{2} \to \dots \to X_{T}$ as follows:
68
+
69
+ $$
70
+ X _ {0} \sim p _ {\text {d a t a}}, \tag {4a}
71
+ $$
72
+
73
+ $$
74
+ X _ {t} = \sqrt {1 - \beta_ {t}} X _ {t - 1} + \sqrt {\beta_ {t}} W _ {t}, \quad 1 \leq t \leq T, \tag {4b}
75
+ $$
76
+
77
+ where $\{W_t\}_{1 \leq t \leq T}$ indicates a sequence of independent noise vectors drawn from $W_t \stackrel{\text{i.i.d.}}{\sim} \mathcal{N}(0, I_d)$ . The hyper-parameters $\{\beta_t \in (0, 1)\}$ represent prescribed learning rate schedules that control the variance of the noise injected in each step. If we define
78
+
79
+ $$
80
+ \alpha_ {t} := 1 - \beta_ {t}, \quad \overline {{\alpha}} _ {t} := \prod_ {k = 1} ^ {t} \alpha_ {k}, \quad 1 \leq t \leq T, \tag {5}
81
+ $$
82
+
83
+ then it can be straightforwardly verified that for every $1 \leq t \leq T$ ,
84
+
85
+ $$
86
+ X _ {t} = \sqrt {\bar {\alpha} _ {t}} X _ {0} + \sqrt {1 - \bar {\alpha} _ {t}} \bar {W} _ {t} \quad \text {f o r s o m e} \bar {W} _ {t} \sim \mathcal {N} (0, I _ {d}). \tag {6}
87
+ $$
88
+
89
+ Clearly, if the covariance of $X_0$ is also equal to $I_d$ , then the covariance of $X_t$ is preserved throughout the forward process; for this reason, this forward process (4) is sometimes referred to as variance-preserving (Song et al., 2021b). Throughout this paper, we employ the notation
90
+
91
+ $$
92
+ q _ {t} := \operatorname {l a w} \left(X _ {t}\right) \tag {7}
93
+ $$
94
+
95
+ to denote the distribution of $X_{t}$ . As long as $\overline{\alpha}_{T}$ is vanishingly small, one has the following property for a general family of data distributions:
96
+
97
+ $$
98
+ q _ {T} \approx \mathcal {N} (0, I _ {d}). \tag {8}
99
+ $$
100
+
101
+ The reverse process. The reverse chain $Y_{T} \to Y_{T-1} \to \ldots \to Y_{1}$ is designed to (approximately) revert the forward process, allowing one to transform pure noise into new samples with matching distributions as the original data. To be more precise, by initializing it as
102
+
103
+ $$
104
+ Y _ {T} \sim \mathcal {N} (0, I _ {d}), \tag {9a}
105
+ $$
106
+
107
+ we seek to design a reverse-time Markov process with nearly identical marginals as the forward process, namely,
108
+
109
+ $$
110
+ \left(\text {g o a l}\right) \quad Y _ {t} \stackrel {\mathrm {d}} {\approx} X _ {t}, \quad t = T, T - 1, \dots , 1. \tag {9b}
111
+ $$
112
+
113
+ Throughout the paper, we often employ the following notation to indicate the distribution of $Y_{t}$ :
114
+
115
+ $$
116
+ p _ {t} := \operatorname {l a w} \left(Y _ {t}\right). \tag {10}
117
+ $$
118
+
119
+ # 2.2 DETERMINISTIC VS. STOCHASTIC SAMPLERS: A CONTINUOUS-TIME INTERPRETATION
120
+
121
+ Evidently, the most crucial step of the diffusion model lies in effective design of the reverse process. Two mainstream approaches stand out:
122
+
123
+ - Deterministic samplers. Starting from $Y_{T} \sim \mathcal{N}(0, I_{d})$ , this approach selects a set of functions $\{\Phi_t(\cdot)\}_{1 \leq t \leq T}$ and computes:
124
+
125
+ $$
126
+ Y _ {t - 1} = \Phi_ {t} (Y _ {t}), \quad t = T, \dots , 1. \tag {11}
127
+ $$
128
+
129
+ Clearly, the sampling process is fully deterministic except for the initialization $Y_{T}$ .
130
+
131
+ - Stochastic samplers. Initialized again at $Y_{T} \sim \mathcal{N}(0, I_{d})$ , this approach computes another collection of functions $\{\Psi_{t}(\cdot, \cdot)\}_{1 \leq t \leq T}$ and performs the updates:
132
+
133
+ $$
134
+ Y _ {t - 1} = \Psi_ {t} \left(Y _ {t}, Z _ {t}\right), \quad t = T, \dots , 1, \tag {12}
135
+ $$
136
+
137
+ where the $Z_{t}$ 's are independent noise vectors obeying $Z_{t}\stackrel {\mathrm{i.i.d.}}{\sim}\mathcal{N}(0,I_{d})$
138
+
139
+ In order to elucidate the feasibility of the above two approaches, we find it helpful to look at the continuum limit through the lens of SDEs and ODEs. It is worth emphasizing, however, that the development of our main theory does not rely on any knowledge of SDEs and ODEs.
140
+
141
+ - The forward process. A continuous-time analog of the forward process can be modeled as
142
+
143
+ $$
144
+ \mathrm {d} X _ {t} = f \left(X _ {t}, t\right) \mathrm {d} t + g (t) \mathrm {d} W _ {t} \quad (0 \leq t \leq T), \quad X _ {0} \sim p _ {\text {d a t a}} \tag {13}
145
+ $$
146
+
147
+ for some functions $f(\cdot, \cdot)$ and $g(\cdot)$ (denoting respectively the drift and diffusion coefficient), where $W_{t}$ denotes a $d$ -dimensional standard Brownian motion. As a special example, the continuum limit of (4) takes the following form² (Song et al., 2021b)
148
+
149
+ $$
150
+ \mathrm {d} X _ {t} = - \frac {1}{2} \beta (t) X _ {t} \mathrm {d} t + \sqrt {\beta (t)} \mathrm {d} W _ {t} \quad (0 \leq t \leq T), \quad X _ {0} \sim p _ {\text {d a t a}} \tag {14}
151
+ $$
152
+
153
+ for some function $\beta(t)$ . As before, we denote by $q_{t}$ the distribution of $X_{t}$ in (13).
154
+
155
+ - The reverse process. As it turns out, the following two reverse processes are both capable of reconstructing the distribution of the forward process, motivating the design of two distinctive samplers. Here and throughout, we use $\nabla \log q_t(X)$ to abbreviate $\nabla_X \log q_t(X)$ for notational simplicity.
156
+
157
+ - One feasible approach is to the so-called probability flow ODE (Song et al., 2021b)
158
+
159
+ $$
160
+ \mathrm {d} Y _ {t} ^ {\text {o d e}} = \left(- f \left(Y _ {t} ^ {\text {o d e}}, T - t\right) + \frac {1}{2} g (T - t) ^ {2} \nabla \log q _ {T - t} \left(Y _ {t} ^ {\text {o d e}}\right)\right) \mathrm {d} t \quad (0 \leq t \leq T), \tag {15}
161
+ $$
162
+
163
+ with $Y_0^{\mathrm{ode}}\sim q_T$ , which exhibits matching distributions as follows:
164
+
165
+ $$
166
+ Y _ {T - t} ^ {\mathsf {o d e}} \stackrel {{\mathrm {d}}} {{=}} X _ {t}, \qquad 0 \leq t \leq T.
167
+ $$
168
+
169
+ The deterministic nature of this approach often enables faster sampling. It has been shown that this family of deterministic samplers is closely related to the DDIM sampler (Karras et al., 2022; Song et al., 2021b).
170
+
171
+ - In view of the classical results Anderson (1982); Haussmann & Pardoux (1986), one can also construct a "reverse-time" SDE
172
+
173
+ $$
174
+ \mathrm {d} Y _ {t} ^ {\mathrm {s d e}} = \left(- f \left(Y _ {t} ^ {\mathrm {s d e}}, T - t\right) + g (T - t) ^ {2} \nabla \log q _ {T - t} \left(Y _ {t} ^ {\mathrm {s d e}}\right)\right) \mathrm {d} t + g (T - t) \mathrm {d} Z _ {t} ^ {\mathrm {s d e}} \tag {16}
175
+ $$
176
+
177
+ for $0 \leq t \leq T$ , with $Y_0^{\mathrm{sde}} \sim q_T$ and $Z_t^{\mathrm{sde}}$ being a standard Brownian motion. Strikingly, this process also satisfies
178
+
179
+ $$
180
+ Y _ {T - t} ^ {\mathsf {s d e}} \stackrel {{\mathrm {d}}} {{=}} X _ {t}, \qquad 0 \leq t \leq T.
181
+ $$
182
+
183
+ The popular DDPM sampler (Ho et al., 2020) falls under this category.
184
+
185
+ Interestingly, in addition to the functions $f$ and $g$ that define the forward process, construction of both (15) and (16) relies only upon the knowledge of the gradient of the log density $\nabla \log q_t(\cdot)$ of the intermediate steps of the forward diffusion process — often referred to as the (Stein) score function. Consequently, a key enabler of the above paradigms lies in reliable learning of the score function, and hence the name score-based generative modeling.
186
+
187
+ # 3 ALGORITHMS AND MAIN RESULTS
188
+
189
+ In this section, we analyze a couple of diffusion generative models, including both deterministic and stochastic samplers. While the proofs for our main theory are all postponed to the appendix, it is worth emphasizing upfront that our analysis framework directly tackles the discrete-time processes without resorting to any toolbox of SDEs and ODEs tailored to the continuous-time limits. This elementary approach might potentially be versatile for analyzing a broad class of variations of these samplers. For instance, prior ODE-based theory (e.g., Chen et al. (2023b;c)) encountered certain technical challenges when analyzing the deterministic sampler directly, and our elementary approach is able to shed new light on the convergence of this important sampler.
190
+
191
+ # 3.1 ASSUMPTIONS AND LEARNING RATES
192
+
193
+ Before proceeding, we impose some assumptions on the score estimates and the target data distributions, and specify the hypter-parameters $\{\alpha_t\}$ , which shall be adopted throughout all cases.
194
+
195
+ Score estimates. Given that the score functions are an essential component in score-based generative modeling, we assume access to faithful estimates of the score functions $\nabla \log q_t(\cdot)$ across all intermediate steps $t$ , thus disentangling the score learning phase and the data generation phase. Towards this end, let us first formally introduce the true score function as follows.
196
+
197
+ Definition 1 (Score function). The score function, denoted by $s_t^\star : \mathbb{R}^d \to \mathbb{R}^d$ , is defined as
198
+
199
+ $$
200
+ s _ {t} ^ {\star} (X) := \nabla \log q _ {t} (X), \quad 1 \leq t \leq T. \tag {17}
201
+ $$
202
+
203
+ As has been pointed out by previous works concerning score matching (e.g., Hyvarinen (2005); Vincent (2011); Chen et al. (2022b)), the score function $s_t^\star$ admits an alternative form as follows (owing to properties of Gaussian distributions):
204
+
205
+ $$
206
+ s _ {t} ^ {\star} := \arg \min _ {s: \mathbb {R} ^ {d} \rightarrow \mathbb {R} ^ {d}} \underset {W \sim \mathcal {N} (0, I _ {d}), X _ {0} \sim p _ {\mathrm {d a t a}}} {\mathbb {E}} \left[\left\| s \left(\sqrt {\bar {\alpha} _ {t}} X _ {0} + \sqrt {1 - \bar {\alpha} _ {t}} W\right) + \frac {1}{\sqrt {1 - \bar {\alpha} _ {t}}} W \right\| _ {2} ^ {2} \right], \tag {18}
207
+ $$
208
+
209
+ which takes the form of the minimum mean square error estimator for $-\frac{1}{\sqrt{1 - \overline{\alpha}_t}} W$ given $\sqrt{\overline{\alpha}_t} X_0 + \sqrt{1 - \overline{\alpha}_t} W$ and is often more amenable to training.
210
+
211
+ With Definition 1 in place, we can readily introduce the following assumptions that capture the quality of the score estimate $\{s_t\}_{1\leq t\leq T}$ we have available.
212
+
213
+ Assumption 1. Suppose that the score function estimate $\{s_t\}_{1\leq t\leq T}$ obeys
214
+
215
+ $$
216
+ \frac {1}{T} \sum_ {t = 1} ^ {T} \mathbb {E} _ {X \sim q _ {t}} \left[ \left\| s _ {t} (X) - s _ {t} ^ {\star} (X) \right\| _ {2} ^ {2} \right] \leq \varepsilon_ {\text {s c o r e}} ^ {2}. \tag {19}
217
+ $$
218
+
219
+ Assumption 2. For each $1 \leq t \leq T$ , assume that $s_t(\cdot)$ is continuously differentiable, and denote by $J_{s_t^*} = \frac{\partial s_t^*}{\partial x}$ and $J_{s_t} = \frac{\partial s_t}{\partial x}$ the Jacobian matrices of $s_t^*(\cdot)$ and $s_t(\cdot)$ , respectively. Assume that the score function estimate $\{s_t\}_{1 \leq t \leq T}$ obeys
220
+
221
+ $$
222
+ \frac {1}{T} \sum_ {t = 1} ^ {T} \underset {X \sim q _ {t}} {\mathbb {E}} \left[ \left\| J _ {s _ {t}} (X) - J _ {s _ {t} ^ {*}} (X) \right\| \right] \leq \varepsilon_ {\text {J a c o b i}}. \tag {20}
223
+ $$
224
+
225
+ In a nutshell, Assumption 1 reflects the $\ell_2$ score estimation error, whereas Assumption 2 concerns the estimation error in terms of the corresponding Jacobian matrix. Both assumptions consider the average estimation errors over all $T$ steps. Our theory for the deterministic sampler relies on both Assumptions 1 and 2, while the theory for the stochastic sampler requires only Assumption 1. We shall discuss in Section 3.2 the insufficiency of Assumption 1 alone for the deterministic sampler.
226
+
227
+ Target data distributions. Our goal is to uncover the effectiveness of diffusion models in generating a broad family of data distributions. Throughout this paper, the only assumptions we need to impose on the target data distribution $p_{\mathrm{data}}$ are the following:
228
+
229
+ - $X_0$ is an absolutely continuous random vector, and
230
+
231
+ $$
232
+ \mathbb {P} \left(\left\| X _ {0} \right\| _ {2} \leq T ^ {c _ {R}} \mid X _ {0} \sim p _ {\mathrm {d a t a}}\right) = 1 \tag {21}
233
+ $$
234
+
235
+ for some arbitrarily large constant $c_{R} > 0$ .
236
+
237
+ This assumption allows the radius of the support of $p_{\mathrm{data}}$ to be exceedingly large (given that the exponent $c_R$ can be arbitrarily large).
238
+
239
+ Learning rate schedule. Let us also take a moment to specify the learning rates to be used for our theory and analyses. For some large enough numerical constants $c_{0}, c_{1} > 0$ , we set
240
+
241
+ $$
242
+ \beta_ {1} = 1 - \alpha_ {1} = \frac {1}{T ^ {c _ {0}}}; \tag {22a}
243
+ $$
244
+
245
+ $$
246
+ \beta_ {t} = 1 - \alpha_ {t} = \frac {c _ {1} \log T}{T} \min \left\{\beta_ {1} \left(1 + \frac {c _ {1} \log T}{T}\right) ^ {t}, 1 \right\}. \tag {22b}
247
+ $$
248
+
249
+ Remark 1. As we shall see in our analysis, the discretization error depends crucially upon the quantity $\frac{1 - \alpha_t}{1 - \overline{\alpha}_t}$ , whereas the initialization error relies heavily upon $\overline{\alpha}_{1}$ and $\overline{\alpha}_T$ . Based on these observations, our learning rate schedule (22) is designed to make $\frac{1 - \alpha_t}{1 - \overline{\alpha}_t}$ as small as possible, while making sure $\overline{\alpha}_{1}$ (resp. $\overline{\alpha}_T$ ) is close to 1 (resp. 0). These properties will be shown in (43). Moreover, it is worth noting that our analysis can be easily extended to accommodate a much broader class of learning rates, although the resulting convergence rates might vary.
250
+
251
+ # 3.2 AN ODE-BASED DETERMINISTIC SAMPLER
252
+
253
+ We begin by analyzing a deterministic sampler: a discrete-time version of the probability flow ODE.
254
+
255
+ Armed with the score estimates $\{s_t\}_{1\leq t\leq T}$ , a discrete-time version of the probability flow ODE approach (cf. (15)) adopts the following update rule:
256
+
257
+ $$
258
+ Y _ {T} \sim \mathcal {N} (0, I _ {d}), \quad Y _ {t - 1} = \Phi_ {t} \left(Y _ {t}\right) \quad \text {f o r} t = T, \dots , 1, \tag {23a}
259
+ $$
260
+
261
+ where $\Phi_t(\cdot)$ is taken to be
262
+
263
+ $$
264
+ \Phi_ {t} (x) := \frac {1}{\sqrt {\alpha_ {t}}} \left(x + \frac {1 - \alpha_ {t}}{2} s _ {t} (x)\right). \tag {23b}
265
+ $$
266
+
267
+ This approach, based on the probability flow ODE (15), often achieves faster sampling compared to the stochastic counterpart (Song et al., 2021b). Despite the empirical advances, however, the theoretical understanding of this type of deterministic samplers remained far from mature.
268
+
269
+ We first derive non-asymptotic convergence guarantees — measured by the total variation distance between the forward and the reverse processes — for the above deterministic sampler (23). The proof of this result can be found in Li et al. (2023, Section 5.2).
270
+
271
+ Theorem 1. Suppose that (21) holds true. Assume that the score estimates $s_t(\cdot)$ ( $1 \leq t \leq T$ ) satisfy Assumptions 1 and 2. Then the sampling process (23) with the learning rate schedule (22) satisfies
272
+
273
+ $$
274
+ \mathrm {T V} \left(q _ {1}, p _ {1}\right) \leq C _ {1} \frac {d ^ {2} \log^ {4} T}{T} + C _ {1} \frac {d ^ {6} \log^ {6} T}{T ^ {2}} + C _ {1} \sqrt {d \log^ {3} T} \varepsilon_ {\text {s c o r e}} + C _ {1} d (\log T) \varepsilon_ {\text {J a c o b i}} \tag {24}
275
+ $$
276
+
277
+ for some universal constants $C_1 > 0$ , where $p_1$ (resp. $q_1$ ) represents the distribution of $Y_1$ (resp. $X_1$ ).
278
+
279
+ Implications. Let us highlight the main implications of Theorem 1. Before proceeding, note that our theory is concerned with convergence to $q_{1}$ . Given that $X_{1} \sim q_{1}$ and $X_{0} \sim q_{0}$ are very close due to the choice of $\alpha_{1}$ , focusing on the convergence w.r.t. $q_{1}$ instead of $q_{0}$ remains practically relevant.
280
+
281
+ (a) Iteration complexity. Consider first the scenario that has access to perfect score estimates (i.e., $\varepsilon_{\mathrm{score}} = 0$ ). In order to achieve $\varepsilon$ -accuracy (in the sense that $\mathsf{TV}(q_1,p_1)\leq \varepsilon$ ), the number of steps $T$ only needs to exceed
282
+
283
+ $$
284
+ \widetilde {O} \left(d ^ {2} / \varepsilon + d ^ {3} / \sqrt {\varepsilon}\right). \tag {25}
285
+ $$
286
+
287
+ (b) Stability. Turning to the more general case with imperfect score estimates (i.e., $\varepsilon_{\mathrm{score}} > 0$ ), the deterministic sampler (23) yields a distribution whose distance to the target distribution (measured again by the TV distance) scales proportionally with $\varepsilon_{\mathrm{score}}$ and $\varepsilon_{\mathrm{Jacobi}}$ . It is noteworthy that in addition to the score estimation errors, we are in need of an assumption on the stability of the associated Jacobian matrices, which plays a pivotal in ensuring that the reverse-time deterministic process does not deviate considerably from the desired process.
288
+ (c) Insufficiency of the score estimation error assumption alone. The careful reader might wonder why we are in need of additional assumptions beyond the $\ell_2$ score error stated in Assumption 1. To answer this question, we find it helpful to look at a simple example below.
289
+
290
+ - Example. Consider the case where $X_0 \sim \mathcal{N}(0,1)$ , and hence $X_1 \sim \mathcal{N}(0,1)$ . Suppose that the reverse process for time $t = 2$ can lead to the desired distribution if exact score function is employed, namely,
291
+
292
+ $$
293
+ Y _ {1} ^ {\star} := \frac {1}{\sqrt {\alpha_ {2}}} \left(Y _ {2} - \frac {1 - \alpha_ {2}}{2} s _ {2} ^ {\star} (Y _ {2})\right) \sim \mathcal {N} (0, 1).
294
+ $$
295
+
296
+ Now, suppose that the score estimate $s_2(\cdot)$ we have available obeys
297
+
298
+ $$
299
+ s _ {2} \left(y _ {2}\right) = s _ {2} ^ {\star} \left(y _ {2}\right) + \frac {2 \sqrt {\alpha_ {2}}}{1 - \alpha_ {2}} \left\{y _ {1} ^ {\star} - L \left\lfloor \frac {y _ {1} ^ {\star}}{L} \right\rfloor \right\} \quad \text {w i t h} y _ {1} ^ {\star} := \frac {1}{\sqrt {\alpha_ {2}}} \left(y _ {2} - \frac {1 - \alpha_ {2}}{2} s _ {2} ^ {\star} \left(y _ {2}\right)\right)
300
+ $$
301
+
302
+ for $L > 0$ , where $\lfloor z \rfloor$ is the greatest integer not exceeding $z$ . It follows that
303
+
304
+ $$
305
+ Y _ {1} = Y _ {1} ^ {\star} + \frac {1 - \alpha_ {2}}{2 \sqrt {\alpha_ {2}}} \left[ s _ {2} ^ {\star} (Y _ {2}) - s _ {2} (Y _ {2}) \right] = L \left\lfloor \frac {Y _ {1} ^ {\star}}{L} \right\rfloor .
306
+ $$
307
+
308
+ Clearly, the score error $\mathbb{E}_{X_2\sim \mathcal{N}(0,1)}\bigl [|s_2(X_2) - s_2^\star (X_2)|^2\bigr ]$ can be made arbitrarily small by taking $L\to 0$ . However, the discrete nature of $Y_{1}$ forces $\mathsf{T}\mathsf{V}(Y_1,X_1) = 1$ .
309
+
310
+ This example demonstrates that, for the deterministic sampler, the TV distance between $Y_{1}$ and $X_{1}$ might not improve as the score error decreases. If we wish to relax Assumption 2, one potential way is to resort to other metrics (e.g., Wasserstein distance) instead of TV distance between $Y_{1}$ and $X_{1}$ .
311
+
312
+ (d) Relaxing the boundedness assumption on $X_0$ . As it turns out, the assumption (21) can also be relaxed. Supposing that $\mathbb{P}\big(\|X_0\|_2 \leq B \mid X_0 \sim p_{\mathrm{data}}\big) = 1$ for some quantity $B > 0$ (which is allowed to grow faster than a polynomial in $T$ ), we can readily extend our analysis to obtain
313
+
314
+ $$
315
+ \mathrm {T V} \left(q _ {1}, p _ {1}\right) \leq C _ {1} \frac {d ^ {2} \log^ {4} T \log^ {2} B}{T} + C _ {1} \frac {d ^ {6} \log^ {6} T \log^ {3} B}{T ^ {2}} + C _ {1} \sqrt {d \log^ {3} T \log B} \varepsilon_ {\text {s c o r e}} + C _ {1} d (\log T) \varepsilon_ {\text {J a c o b i}}.
316
+ $$
317
+
318
+ Importantly, the convergence rate depends only logarithmically in $B$ .
319
+
320
+ Comparisons with past works. To the best of our knowledge, the only non-asymptotic analysis for the discretized probability flow ODE approach in prior literature was derived by a very recent work Chen et al. (2023c), which established the first non-asymptotic convergence guarantees that exhibit
321
+
322
+ polynomial dependency in both $d$ and $1 / \varepsilon$ (see, e.g., Chen et al. (2023c, Theorem 4.1)). However, it fell short of providing concrete polynomial dependency in $d$ and $1 / \varepsilon$ , suffered from exponential dependency in the Lipschitz constant of the score function, and relied on exact score estimates. In contrast, our result in Theorem 1 uncovers a concrete $d^2 /\varepsilon$ scaling (ignoring lower-order and logarithmic terms) without imposing any smoothness assumption on the target data distribution, and makes explicit the effect of score estimation errors, both which were previously unavailable for such discrete-time deterministic samplers. Another recent work Benton et al. (2023b) studied the convergence of the probability flow ODE approach without accounting for the discretization error; the result therein also exhibited exponential dependency on the Lipschitz constant. Finally, while we were wrapping up the current paper, we became aware of the independent work Chen et al. (2023b) establishing improved polynomial dependency for two variants of the probability flow ODE. By inserting an additional stochastic corrector step — based on overdamped (resp. underdamped) Langevin diffusion — in each iteration of the probability flow ODE (so strictly speaking, these variations are no longer deterministic samplers), Chen et al. (2023b) showed that $\widetilde{O} (L^{3}d / \varepsilon^{2})$ (resp. $\widetilde{O} (L^2\sqrt{d} /\varepsilon)$ ) steps are sufficient, where $L$ denotes the Lipschitz constant of the score function. In comparison, our result demonstrates for the first time that the plain probability flow ODE already achieves the $1 / \varepsilon$ scaling without requiring either a corrector step; one limitation of our result, however, is the sub-optimal $d$ -dependency compared to the variants studied in Chen et al. (2023b).
323
+
324
+ # 3.3 A DDPM-TYPE STOCHASTIC SAMPLER
325
+
326
+ Armed with the score estimates $\{s_t\}$ , we can readily introduce the following stochastic sampler that operates in discrete time, motivated by the reverse-time SDE (16):
327
+
328
+ $$
329
+ Y _ {T} \sim \mathcal {N} \left(0, I _ {d}\right), \quad Y _ {t - 1} = \Psi_ {t} \left(Y _ {t}, Z _ {t}\right) \quad \text {f o r} t = T, \dots , 1 \tag {26a}
330
+ $$
331
+
332
+ where $Z_{t}\stackrel {\mathrm{i.i.d.}}{\sim}\mathcal{N}(0,I_{d})$ , and
333
+
334
+ $$
335
+ \Psi_ {t} (y, z) = \frac {1}{\sqrt {\alpha_ {t}}} \left(y + \left(1 - \alpha_ {t}\right) s _ {t} (y)\right) + \sigma_ {t} z \quad \text {w i t h} \sigma_ {t} ^ {2} = \frac {1}{\alpha_ {t}} - 1. \tag {26b}
336
+ $$
337
+
338
+ The key difference between this sampler and the deterministic sampler (23) is that: (i) there exists an additional pre-factor of $1/2$ on $s_t$ in the deterministic sampler; and (ii) the stochastic sampler injects additional noise $Z_t$ in each step.
339
+
340
+ In contrast to deterministic samplers, the stochastic samplers have received more theoretical attention, with the state-of-the-art results established by Chen et al. (2022b;a) as well as a very recent paper Benton et al. (2023a). The elementary approach developed in the current paper is also applicable towards understanding this type of samplers, leading to the following non-asymptotic theory.
341
+
342
+ Theorem 2. Suppose (21) holds true. Equipped with the estimates in Assumption 1 and the learning rate schedule (22), the stochastic sampler (26) achieves, for some universal constants $C_1 > 0$ ,
343
+
344
+ $$
345
+ \mathrm {T V} \left(q _ {1}, p _ {1}\right) \leq \sqrt {\frac {1}{2} \mathrm {K L} \left(q _ {1} \| p _ {1}\right)} \leq C _ {1} \frac {d ^ {2} \log^ {3} T}{\sqrt {T}} + C _ {1} \sqrt {d} \varepsilon_ {\text {s c o r e}} \log^ {2} T. \tag {27}
346
+ $$
347
+
348
+ Theorem 2 establishes non-asymptotic convergence guarantees for the stochastic sampler (26). As asserted by the theorem, if we have access to perfect score estimates, then the number of steps needed to attain $\varepsilon$ -accuracy (measured by the TV distance between $p_1$ and $q_1$ ) is proportional to $1 / \varepsilon^2$ , matching the state-of-the-art $\varepsilon$ -dependency derived in Chen et al. (2022a), albeit exhibiting a worse dimensional dependency. In addition, in the presence of score estimation error, the sampler achieves a TV distance proportional to $\varepsilon_{\mathrm{score}}$ , again consistent with prior results. Our analysis follows a completely different path compared with the SDE-based approach in Chen et al. (2022a), thus offering complementary interpretations for this important sampler.
349
+
350
+ # 4 OTHER RELATED WORKS
351
+
352
+ Theory for SGMs. Early theoretical efforts in understanding the convergence of score-based stochastic samplers suffered from being either not quantitative (De Bortoli et al., 2021; Liu et al., 2022; Pidstrigach, 2022), or the curse of dimensionality (e.g., exponential dependencies in the convergence guarantees) (Block et al., 2020; De Bortoli, 2022). Lee et al. (2022) provided the first
353
+
354
+ polynomial convergence guarantees with $L_{2}$ -accurate score estimates, for any smooth distribution satisfying the log-Sobolev inequality. Chen et al. (2022b); Lee et al. (2023); Chen et al. (2022a) subsequently lifted such a stringent data distribution assumption. More concretely, Chen et al. (2022b) accommodated a broad family of data distributions under the premise that the score functions over the entire trajectory of the forward process are Lipschitz; Lee et al. (2023) only required certain smoothness assumptions but came with worse dependence on the problem parameters; and more recent results in Chen et al. (2022a) applied to literally any data distribution with bounded second-order moment. In addition, Wibisono & Yang (2022) also established a convergence theory for score-based generative models, assuming that the error of the score estimator has a bounded moment generating function and that the data distribution satisfies the log-Sobolev inequality. Turning attention to samplers based on the probability flow ODE, Chen et al. (2023c) derived the first non-asymptotic bounds for this type of samplers. Improved convergence guarantees have recently been provided by a concurrent work Chen et al. (2023b), with the assistance of additional corrector steps inerspersed in each iteration of the probability flow ODE. It is worth noting that the corrector steps proposed therein are based on Langevin-type diffusion and inject additive noise, and hence the resulting sampling processes are not deterministic. Additionally, theoretical justifications for DDPM in the context of image in-painting have been developed by Rout et al. (2023). Moreover, convergence results based on the Wasserstein distance have recently been derived as well (Tang, 2023; Benton et al., 2023b), although these results typically exhibit exponential dependency on the Lipschitz constants of the score functions. Theoretical guarantees are also extended to accommodate popular methods like consistency models and diffusion guidance (Li et al., 2024b; Wu et al., 2024).
355
+
356
+ Score matching. Hyvarinen (2005) showed that the score function can be estimated via integration by parts, a result that was further extended in Hyvarinen (2007). Song et al. (2020b) proposed sliced score matching to tame the computational complexity in high dimension. The consistency of the score matching estimator was studied in Hyvarinen (2005), with asymptotic normality established in Forbes & Lauritzen (2015). Optimizing the score matching loss has been shown to be intimately connected to minimizing upper bounds on the Kullback-Leibler divergence (Song et al., 2021a) and Wasserstein distance (Kwon et al., 2022) between the generated distribution and the target data distribution. From a non-asymptotic perspective, Koehler et al. (2023) studied the statistical efficiency of score matching by connecting it with the isoperimetric properties of the distribution.
357
+
358
+ Other theory for diffusion models. Oko et al. (2023) studied the approximation and generalization capabilities of diffusion modeling for distribution estimation. Assuming that the data are supported on a low-dimensional linear subspace, Chen et al. (2023a) developed a sample complexity bound for diffusion models. Moreover, Ghimire et al. (2023) adopted a geometric perspective and showed that the forward and backward processes of diffusion models are essentially Wasserstein gradient flows. Recently, the idea of stochastic localization, which is closely related to diffusion models, is adopted to sample from posterior distributions (Montanari & Wu, 2023; El Alaoui et al., 2022), which has been implemented using approximate message passing (Donoho et al., 2009; Li & Wei, 2022).
359
+
360
+ # 5 DISCUSSION
361
+
362
+ In this paper, we have developed a new suite of non-asymptotic theory for establishing the convergence and faithfulness of diffusion generative modeling, assuming access to reliable estimates of the (Stein) score functions. Our analysis framework seeks to track the dynamics of the reverse process directly using elementary tools, which eliminates the need to look at the continuous-time limit and invoke the SDE and ODE toolboxes. Only the very minimal assumptions on the target data distribution are imposed. The analysis framework laid out in the current paper might shed light on how to analyze other variants of score-based generative models as well. Moving forward, there are plenty of questions that require in-depth theoretical understanding. For instance, the dimension dependency in our convergence results remains sub-optimal; can we further refine our theory in order to reveal tight dependency in this regard? Can we establish sharp convergence results in terms of the Wasserstein distance, which could sometimes be "closer" to how humans differentiate pictures and might potentially help relax Assumption 2 in the case of deterministic samplers? It would also be of paramount interest to establish end-to-end performance guarantees that take into account both the score learning phase and the sampling phase.
363
+
364
+ # ACKNOWLEDGEMENTS
365
+
366
+ Y. Wei is supported in part by the NSF grants DMS-2147546/2015447, CAREER award DMS-2143215, CCF-2106778, and the Google Research Scholar Award. Y. Chen is supported in part by the Alfred P. Sloan Research Fellowship, the Google Research Scholar Award, the AFOSR grant FA9550-22-1-0198, the ONR grant N00014-22-1-2354, and the NSF grants CCF-2221009 and CCF-1907661. Y. Chi is supported in part by the grants ONR N00014-19-1-2404, NSF CCF-2106778, DMS-2134080 and ECCS-2126634.
367
+
368
+ # REFERENCES
369
+
370
+ Brian DO Anderson. Reverse-time diffusion equation models. Stochastic Processes and their Applications, 12(3):313-326, 1982.
371
+ Jacob Austin, Daniel D Johnson, Jonathan Ho, Daniel Tarlow, and Rianne van den Berg. Structured denoising diffusion models in discrete state-spaces. Advances in Neural Information Processing Systems, 34:17981-17993, 2021.
372
+ Joe Benton, Valentin De Bortoli, Arnaud Doucet, and George Deligiannidis. Linear convergence bounds for diffusion models via stochastic localization. arXiv preprint arXiv:2308.03686, 2023a.
373
+ Joe Benton, George Deligiannidis, and Arnaud Doucet. Error bounds for flow matching methods. arXiv preprint arXiv:2305.16860, 2023b.
374
+ Adam Block, Youssef Mroueh, and Alexander Rakhlin. Generative modeling with denoising autoencoders and Langevin sampling. arXiv preprint arXiv:2002.00107, 2020.
375
+ Hongrui Chen, Holden Lee, and Jianfeng Lu. Improved analysis of score-based generative modeling: User-friendly bounds under minimal smoothness assumptions. arXiv preprint arXiv:2211.01916, 2022a.
376
+ Minshuo Chen, Kaixuan Huang, Tuo Zhao, and Mengdi Wang. Score approximation, estimation and distribution recovery of diffusion models on low-dimensional data. arXiv preprint arXiv:2302.07194, 2023a.
377
+ Nanxin Chen, Yu Zhang, Heiga Zen, Ron J Weiss, Mohammad Norouzi, and William Chan. WaveGrad: Estimating gradients for waveform generation. In International Conference on Learning Representations, 2021.
378
+ Sitan Chen, Sinho Chewi, Jerry Li, Yuanzhi Li, Adil Salim, and Anru R Zhang. Sampling is as easy as learning the score: theory for diffusion models with minimal data assumptions. arXiv preprint arXiv:2209.11215, 2022b.
379
+ Sitan Chen, Sinho Chewi, Holden Lee, Yuanzhi Li, Jianfeng Lu, and Adil Salim. The probability flow ode is provably fast. arXiv preprint arXiv:2305.11798, 2023b.
380
+ Sitan Chen, Giannis Daras, and Alexandros G Dimakis. Restoration-degradation beyond linear diffusions: A non-asymptotic analysis for DDIM-type samplers. arXiv preprint arXiv:2303.03384, 2023c.
381
+ Florinel-Alin Croitoru, Vlad Hondru, Radu Tudor Ionescu, and Mubarak Shah. Diffusion models in vision: A survey. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.
382
+ Valentin De Bortoli. Convergence of denoising diffusion models under the manifold hypothesis. arXiv preprint arXiv:2208.05314, 2022.
383
+ Valentin De Bortoli, James Thornton, Jeremy Heng, and Arnaud Doucet. Diffusion Schrödinger bridge with applications to score-based generative modeling. Advances in Neural Information Processing Systems, 34:17695-17709, 2021.
384
+ Prafulla Dhariwal and Alexander Nichol. Diffusion models beat GANs on image synthesis. Advances in Neural Information Processing Systems, 34:8780-8794, 2021.
385
+
386
+ David L Donoho, Arian Maleki, and Andrea Montanari. Message-passing algorithms for compressed sensing. Proceedings of the National Academy of Sciences, 106(45):18914-18919, 2009.
387
+ Ahmed El Alaoui, Andrea Montanari, and Mark Sellke. Sampling from the sherrington-kirkpatrick gibbs measure via algorithmic stochastic localization. In 2022 IEEE 63rd Annual Symposium on Foundations of Computer Science (FOCS), pp. 323-334, 2022.
388
+ Peter GM Forbes and Steffen Lauritzen. Linear estimating equations for exponential families with application to Gaussian linear concentration models. Linear Algebra and its Applications, 473: 261-283, 2015.
389
+ Sandesh Ghimire, Jinyang Liu, Armand Comas, Davin Hill, Aria Masoomi, Octavia Camps, and Jennifer Dy. Geometry of score based generative models. arXiv preprint arXiv:2302.04411, 2023.
390
+ Ulrich G Haussmann and Etienne Pardoux. Time reversal of diffusions. The Annals of Probability, pp. 1188-1205, 1986.
391
+ Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840-6851, 2020.
392
+ Aapo Hyvarinen. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6(4), 2005.
393
+ Aapo Hyvarinen. Some extensions of score matching. Computational statistics & data analysis, 51 (5):2499-2512, 2007.
394
+ Alexia Jolicoeur-Martineau, Rémi Piché-Taillefer, Ioannis Mitliagkas, and Remi Tachet des Combes. Adversarial score matching and improved sampling for image generation. In International Conference on Learning Representations, 2021.
395
+ Tero Karras, Miika Aittala, Timo Aila, and Samuli Laine. Elucidating the design space of diffusion-based generative models. In Advances in Neural Information Processing Systems, volume 35, pp. 26565-26577, 2022.
396
+ Frederic Koehler, Alexander Heckett, and Andrej Risteski. Statistical efficiency of score matching: The view from isoperimetry. International Conference on Learning Representations, 2023.
397
+ Zhifeng Kong, Wei Ping, Jiaji Huang, Kexin Zhao, and Bryan Catanzaro. DiffWave: A versatile diffusion model for audio synthesis. In International Conference on Learning Representations, 2021.
398
+ Dohyun Kwon, Ying Fan, and Kangwook Lee. Score-based generative modeling secretly minimizes the Wasserstein distance. In Advances in Neural Information Processing Systems, 2022.
399
+ Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence for score-based generative modeling with polynomial complexity. In Advances in Neural Information Processing Systems, 2022.
400
+ Holden Lee, Jianfeng Lu, and Yixin Tan. Convergence of score-based generative modeling for general data distributions. In International Conference on Algorithmic Learning Theory, pp. 946-985, 2023.
401
+ Gen Li and Yuting Wei. A non-asymptotic framework for approximate message passing in spiked models. arXiv preprint arXiv:2208.03313, 2022.
402
+ Gen Li, Yuting Wei, Yuxin Chen, and Yuejie Chi. Towards faster non-asymptotic convergence for diffusion-based generative models. arXiv preprint arXiv:2306.09251, 2023.
403
+ Gen Li, Yu Huang, Timofey Efimov, Yuting Wei, Yuejie Chi, and Yuxin Chen. Accelerating convergence of score-based diffusion models, provably. arXiv preprint arXiv:2403.03852, 2024a.
404
+ Gen Li, Zhihan Huang, and Yuting Wei. Towards a mathematical theory for consistency training in diffusion models. arXiv preprint arXiv:2402.07802, 2024b.
405
+
406
+ Xingchao Liu, Lemeng Wu, Mao Ye, and Qiang Liu. Let us build bridges: Understanding and extending diffusion generative models. arXiv preprint arXiv:2208.14699, 2022.
407
+ Andrea Montanari and Yuchen Wu. Posterior sampling from the spiked models via diffusion processes. arXiv preprint arXiv:2304.11449, 2023.
408
+ Kazusato Oko, Shunta Akiyama, and Taiji Suzuki. Diffusion models are minimax optimal distribution estimators. arXiv preprint arXiv:2303.01861, 2023.
409
+ Jakiw Pidstrigach. Score-based generative models detect manifolds. arXiv preprint arXiv:2206.01018, 2022.
410
+ Aditya Ramesh, Prafulla Dhariwal, Alex Nichol, Casey Chu, and Mark Chen. Hierarchical text-conditional image generation with CLIP latents. arXiv preprint arXiv:2204.06125, 2022.
411
+ Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684-10695, 2022.
412
+ Litu Rout, Advait Parulekar, Constantine Caramanis, and Sanjay Shakkottai. A theoretical justification for image inpainting using denoising diffusion probabilistic models. arXiv preprint arXiv:2302.01217, 2023.
413
+ Chitwan Sahara, William Chan, Saurabh Saxena, Lala Li, Jay Whang, Emily L Denton, Kamyar Ghasemipour, Raphael Gontijo Lopes, Burcu Karagol Ayan, Tim Salimans, et al. Photorealistic text-to-image diffusion models with deep language understanding. Advances in Neural Information Processing Systems, 35:36479-36494, 2022.
414
+ Jascha Sohl-Dickstein, Eric Weiss, Niru Maheswaranathan, and Surya Ganguli. Deep unsupervised learning using nonequilibrium thermodynamics. In International Conference on Machine Learning, pp. 2256-2265, 2015.
415
+ Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020a.
416
+ Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. Advances in neural information processing systems, 32, 2019.
417
+ Yang Song, Sahaj Garg, Jiaxin Shi, and Stefano Ermon. Sliced score matching: A scalable approach to density and score estimation. In Uncertainty in Artificial Intelligence, pp. 574-584, 2020b.
418
+ Yang Song, Conor Durkan, Iain Murray, and Stefano Ermon. Maximum likelihood training of score-based diffusion models. Advances in Neural Information Processing Systems, 34:1415-1428, 2021a.
419
+ Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. International Conference on Learning Representations, 2021b.
420
+ Wenpin Tang. Diffusion probabilistic models. preprint, 2023.
421
+ Wenpin Tang and Hanyang Zhao. Score-based diffusion models via stochastic differential equations-a technical tutorial. arXiv preprint arXiv:2402.07487, 2024.
422
+ Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computation, 23(7):1661-1674, 2011.
423
+ Andre Wibisono and Kaylee Yingxi Yang. Convergence in KL divergence of the inexact Langevin algorithm with application to score-based generative models. arXiv preprint arXiv:2211.01512, 2022.
424
+ Yuchen Wu, Minshuo Chen, Zihao Li, Mengdi Wang, and Yuting Wei. Theoretical insights for diffusion guidance: A case study for gaussian mixture models. preprint, 2024.
425
+ Ling Yang, Zhilong Zhang, Yang Song, Shenda Hong, Runsheng Xu, Yue Zhao, Yingxia Shao, Wentao Zhang, Bin Cui, and Ming-Hsuan Yang. Diffusion models: A comprehensive survey of methods and applications. arXiv preprint arXiv:2209.00796, 2022.
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5430b1743c4decd765ae01ec232995f7f86f96bf0f212e23fb221163a66e666
3
+ size 229283
2024/Towards Non-Asymptotic Convergence for Diffusion-Based Generative Models/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Offline Opponent Modeling with In-context Learning/5a6eb509-d38d-418b-85bf-bbb19073ee86_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:08bf513f02f9435577bbd5bb9332f72d805ea82e7d0f7f533e1e498408b718c7
3
+ size 1668325
2024/Towards Offline Opponent Modeling with In-context Learning/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Offline Opponent Modeling with In-context Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d35a3c3ffc3820e92f2b50297b0d4157fdcfbfded65cbcfeeb32c9ece252091
3
+ size 1833000
2024/Towards Offline Opponent Modeling with In-context Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/c90aa87c-bc64-45cc-a8c0-56572f77fab1_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:41aa416436155f8ffc1062acdf2e1b2a794b1fb40f982255323e51018a151518
3
+ size 564756
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/full.md ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS OPTIMAL FEATURE-SHAPING METHODS FOR OUT-OF-DISTRIBUTION DETECTION
2
+
3
+ Qinyu Zhao $^{1}$ , Ming Xu $^{1}$ , Kartik Gupta $^{2}$ , Akshay Asthana $^{2}$ , Liang Zheng $^{1}$ , Stephen Gould $^{1}$
4
+
5
+ <sup>1</sup> The Australian National University
6
+ 2 Seeing Machines Ltd
7
+
8
+ {qinyu.zhao,mingda.xu,liang.zheng,stephen.gould}@anu.edu.au
9
+
10
+ {kartik.gupta,akshay.asthana}@seeingmachines.com
11
+
12
+ # ABSTRACT
13
+
14
+ Feature shaping refers to a family of methods that exhibit state-of-the-art performance for out-of-distribution (OOD) detection. These approaches manipulate the feature representation, typically from the penultimate layer of a pre-trained deep learning model, so as to better differentiate between in-distribution (ID) and OOD samples. However, existing feature-shaping methods usually employ rules manually designed for specific model architectures and OOD datasets, which consequently limit their generalization ability. To address this gap, we first formulate an abstract optimization framework for studying feature-shaping methods. We then propose a concrete reduction of the framework with a simple piecewise constant shaping function and show that existing feature-shaping methods approximate the optimal solution to the concrete optimization problem. Further, assuming that OOD data is inaccessible, we propose a formulation that yields a closed-form solution for the piecewise constant shaping function, utilizing solely the ID data. Through extensive experiments, we show that the feature-shaping function optimized by our method improves the generalization ability of OOD detection across a large variety of datasets and model architectures. $^{1}$
15
+
16
+ # 1 INTRODUCTION
17
+
18
+ Out-of-distribution (OOD) detection aims to identify test samples that fall outside the inherent training label space, given a deep learning model pre-trained on an in-distribution (ID) training set. To detect OOD samples, OOD scores, such as maximum softmax probability (MSP) (Hendrycks & Gimpel, 2016) and energy score (Liu et al., 2020) are computed using the logits estimated by the model, where a lower score indicates a higher probability that the sample is OOD.
19
+
20
+ Feature shaping (Sun et al., 2021; Djurisic et al., 2022; Xu & Lian, 2023; Song et al., 2022) refers to a family of methods that manipulate the underlying feature representations, typically from the penultimate layer of a pre-trained model, such that OOD scores can more effectively distinguish between ID and OOD data. Representative methods like ReAct (Sun et al., 2021) and ASH-P (Djurisic et al., 2022) employ element-wise feature clipping and percentile-based feature pruning, respectively.
21
+
22
+ Despite their notable achievements, existing feature-shaping methods usually rely on rules manually designed for specific OOD datasets and model architectures, which consequently limit their generalization ability. Our observations indicate that variations in OOD datasets and model architectures can cause significant performance degradation in these methods. For instance, when using transformer-based models, some approaches, despite achieving state-of-the-art results on established benchmarks, perform no better than random guessing. These observations emphasize the necessity for a comprehensive understanding and comparison of the current feature-shaping methods and the development of a more generalizable approach.
23
+
24
+ To this end, we first formulate an abstract optimization problem that encapsulates all feature-shaping OOD detection methods. In a nutshell, our formulation entails finding the shaping function that maximizes some performance objective for OOD detection.
25
+
26
+ ![](images/f60a8df87d00c26bf0e3e45218f194a2cca4158eddef298fd2fe450cc94b5f57.jpg)
27
+ (a)
28
+
29
+ ![](images/43e61c1b536dad0b2ccc07defffb285c7e0e616be047b18d54055d3322b9edf8.jpg)
30
+ (b)
31
+
32
+ ![](images/3e8a4441cce90811dea16c0b0429acf9acbc615fee7c206c9cc0a2df703014b4.jpg)
33
+ (c)
34
+ Figure 1: Comparing our method with existing feature-shaping methods. The dashed lines denote the performance of our method for comparison. (a) ImageNet (ID) vs. iNaturalist (OOD) with ViT-B-16; (b) ImageNet (ID) vs. iNaturalist (OOD) with MLP-Mixer-B; (c) CIFAR100 (ID) vs. CIFAR10 (OOD) with MLP-Mixer-Nano; (d) Average performance of different methods across eight OOD datasets with two ConvNets and with four transformer-based models.
35
+
36
+ ![](images/af6aa32774c2f4aaeb94b3ffdece640e26fe99427ffbc4a270f252fb5932ba22.jpg)
37
+ (d)
38
+
39
+ To make the optimization problem concrete and tractable, we propose a piecewise constant shaping function and formulate an objective function that maximizes the expected difference between the maximum logit values for ID and OOD data, assuming the availability of OOD training samples. An important benefit of this formulation is that it highlights the operational mechanisms underpinning previous feature-shaping methods. Namely, the shaping functions used by existing feature-shaping methods including ReAct (Sun et al., 2021), BFAct (Kong & Li, 2023), and VRA-P (Xu & Lian, 2023), approximate the optimal shaping function found by our approach.
40
+
41
+ Using our framework, we further propose a feature-shaping method that can be optimized without access to OOD data. Specifically, through the analysis of the effect of OOD data on the optimal solution compared to ID data, we argue that it is feasible to remove the OOD-related term in the objective function, thereby deriving a closed-form solution based on ID data only. Empirical observations in experiments support our claim.
42
+
43
+ Our experiments compare our proposed approach to existing feature-shaping methods, utilizing a more comprehensive experimental setup than previous works. We use CIFAR10, CIFAR100 (Krizhevsky et al., 2009), and ImageNet-1k (Russakovsky et al., 2015) as ID datasets. For each ID dataset, we use eight OOD datasets for evaluation. Furthermore, we evaluate all methods using a wide variety of models, including convolutional networks (ConvNets), transformers and fully multi-layer perceptron (MLP) models, the latter two of which have not been extensively studied in prior works. As shown in Fig. 1, compared with other feature-shaping methods, ours demonstrates more generalized OOD detection performance across a broad spectrum of datasets and model architectures.
44
+
45
+ In summary, this paper covers three main points. First, we develop a general optimization formulation for feature-shaping methods and show that a concrete instance of this problem provides insight into the mechanisms of previous methods. Second, we propose a novel approach for training a generalizable feature-shaping method for OOD detection without access to OOD data. Last, our approach achieves more reliable OOD detection performance across various datasets and models.
46
+
47
+ # 2 A RECAP OF FEATURE SHAPING FOR OOD DETECTION
48
+
49
+ In this section, we define the problem of OOD detection for image classification, with particular emphasis on feature-shaping approaches, and subsequently, introduce our general optimization formulation of feature shaping for OOD detection.
50
+
51
+ # 2.1 OOD DETECTION FOR IMAGE CLASSIFICATION
52
+
53
+ Assume that we have an ID dataset, defined as a joint distribution $D_{\mathcal{X},\mathcal{Y}}^{\mathrm{ID}}$ over input observations $\mathcal{X}$ and discrete labels $\mathcal{Y}$ for a given model $\mathcal{M}$ . Furthermore, assume we have an OOD dataset $D_{\mathcal{X},\mathcal{Y}}^{\mathrm{OOD}}$ . Previous works (Sun et al., 2021; Sun & Li, 2022; Yang et al., 2021) assume $\mathcal{Y} \cap \mathcal{Y}' = \emptyset$ . Inherent in this assumption is that the marginal distributions over observations $\mathcal{X}$ for ID and OOD datasets do not coincide. That is, $\mathcal{D}_{\mathcal{X}}^{\mathrm{ID}} \neq \mathcal{D}_{\mathcal{X}}^{\mathrm{OOD}}$ .
54
+
55
+ The model, usually a neural network, maps observations to logits, $\mathcal{M}:\mathcal{X}\to \mathbb{R}^C$ , where $C = |\mathcal{V}|$ denotes the number of classes. It is trained on a dataset $S_{\mathrm{train}} = \{(x^{(i)},y^{(i)})\}_{i = 1}^{N}$ , comprised of $N$ i.i.d. samples drawn from $D_{\mathcal{X},\mathcal{Y}}^{\mathrm{ID}}$ . Furthermore, for typical architectures for image classification, we can decompose the model $\mathcal{M} = \mathcal{W}\circ \mathcal{B}$ into a backbone model, $\mathcal{B}:\mathcal{X}\rightarrow \mathbb{R}^{M}$ , and linear classifier $\mathcal{W}:\mathbb{R}^M\to \mathbb{R}^C$ . $\mathcal{B}$ extracts penultimate layer feature representation $z\in \mathbb{R}^{M}$ of an input observation $\pmb{x}$ , and $\mathcal{W}$ is a linear layer that maps $\pmb{z}$ to logits $\ell \in \mathbb{R}^C$ . Different from conventional machine learning practice, the test set $S_{\mathrm{test}}$ contains inputs sampled from the joint distribution $D_{\mathcal{X}}^{\mathrm{ID}}\cup D_{\mathcal{X}}^{\mathrm{OOD}}$ , where $D_{\mathcal{X}}^{\mathrm{ID}}$ and $D_{\mathcal{X}}^{\mathrm{OOD}}$ denote the marginal distributions of $D_{\mathcal{X},\mathcal{Y}}^{\mathrm{ID}}$ and $D_{\mathcal{X},\mathcal{Y}}^{\mathrm{OOD}}$ , respectively.
56
+
57
+ The goal of OOD detection is to design a score function $s$ to indicate whether a sample $x$ is from $D_{\mathcal{X}}^{\mathrm{ID}}$ or $D_{\mathcal{X}}^{\mathrm{OOD}}$ . MSP, maximum logit score (MLS), and energy score serve as examples of scores for OOD detection. They are defined based on logits $\ell$ as:
58
+
59
+ $$
60
+ s _ {\mathrm {M S P}} (\ell) = \max _ {i = 1, \dots , C} \frac {\exp \left(\ell_ {i}\right)}{\sum_ {j = 1} ^ {C} \exp \left(\ell_ {j}\right)}, \quad s _ {\mathrm {M L S}} (\ell) = \max _ {i = 1, \dots , C} \ell_ {i}, \quad s _ {\text {E n e r g y}} (\ell) = \log \sum_ {j = 1} ^ {C} \exp \left(\ell_ {j}\right), \tag {1}
61
+ $$
62
+
63
+ where $\ell_{i}$ is the logit for the $i$ -th class. For the scores discussed above, a lower value indicates a higher likelihood of the sample being OOD. In practical applications, a threshold, denoted by $t$ , is utilized to separate ID samples from OOD ones. If the score of a sample surpasses this threshold, the sample will be classified as ID, and OOD otherwise.
64
+
65
+ # 2.2 FEATURE-SHAPING
66
+
67
+ A feature-shaping method uses a shaping function $\pmb{f} : \mathbb{R}^{M} \rightarrow \mathbb{R}^{M}$ to manipulate features, i.e., $\bar{z} = \pmb{f}(z)$ . The goal of developing a feature shaping method for OOD detection can be formulated as solving the following optimization problem,
68
+
69
+ $$
70
+ \text {m a x i m i z e} (\text {o v e r} \boldsymbol {f}) \quad \mathbf {E} _ {\boldsymbol {x} ^ {\mathrm {I D}} \sim D _ {\chi} ^ {\mathrm {I D}}, \boldsymbol {x} ^ {\mathrm {O O D}} \sim D _ {\chi} ^ {\mathrm {O O D}}} \left[ \mathcal {P} \left\{s \left(\bar {\boldsymbol {\ell}} ^ {\mathrm {I D}}\right), s \left(\bar {\boldsymbol {\ell}} ^ {\mathrm {O O D}}\right) \right\} \right],
71
+ $$
72
+
73
+ $$
74
+ \text {s u b j e c t} \quad \bar {\ell} ^ {\mathrm {I D}} = \mathcal {W} (\bar {z} ^ {\mathrm {I D}}), \quad \bar {z} ^ {\mathrm {I D}} = \boldsymbol {f} (\mathcal {B} (\boldsymbol {x} ^ {\mathrm {I D}})), \tag {2}
75
+ $$
76
+
77
+ $$
78
+ \bar {\ell} ^ {\mathrm {O O D}} = \mathcal {W} (\bar {z} ^ {\mathrm {O O D}}), \quad \bar {z} ^ {\mathrm {O O D}} = f (\mathcal {B} (x ^ {\mathrm {O O D}})),
79
+ $$
80
+
81
+ where $\mathcal{P}$ is a given performance measure. For example, a common measure is the area under the receiver operating characteristic curve (AUC), defined as $\mathcal{P}_{\mathrm{AUC}}(s_1,s_2) = \mathbb{1}\left\{s_1 > s_2\right\}$ . Existing shaping functions $f$ can be broadly categorized into two types: (i) element-wise, such as ReAct (Sun et al., 2021) and VRA-P (Xu & Lian, 2023), which applies a global element-wise mapping to each individual feature, i.e., $\bar{z}_i = f(z_i)$ , or (ii) whole-vector mappings such as ASH (Djurisic et al., 2022), which manipulate the full feature vector $z$ .
82
+
83
+ # 3 OPTIMAL FEATURE SHAPING
84
+
85
+ In this section, we propose a specific instance of the general formulation described in Section 2, following previous element-wise feature-shaping methods (Sun et al., 2021; Xu & Lian, 2023; Kong & Li, 2023). To optimize the shaping function, we initially examine which feature value ranges are effective for OOD detection. A significant challenge arises from the continuous nature of feature values. To address this, we partition the domain of features into a disjoint set of intervals, which allows us to approximate the optimal shaping function with a piece-wise constant function. With this approximation, we can formulate an optimization problem to maximize the expected difference between the maximum logit values of ID and OOD data. Subsequently, we show that the optimized shaping function using OOD samples bears a striking resemblance to prior methods, shedding light on the mechanics of these methods. Finally, we propose a formulation that does not require any OOD data to optimize and admits a simple, closed-form solution.
86
+
87
+ # 3.1 VALUE- AND INTERVAL-SPECIFIC FEATURE IMPACT
88
+
89
+ Given a sample $\mathbf{x}$ , the maximum logit $\ell^{\max}$ (disregarding the bias term) is the dot product between the corresponding weight vector $\boldsymbol{w}^{\mathrm{max}}$ and its feature representation $\mathbf{z}$ , specifically,
90
+
91
+ $$
92
+ \ell^ {\max } (\boldsymbol {z}) = \boldsymbol {w} ^ {\max } \cdot \boldsymbol {z} = \sum_ {i = 1} ^ {M} w _ {i} ^ {\max } z _ {i}. \tag {3}
93
+ $$
94
+
95
+ Assuming an element-wise feature-shaping function $f: \mathbb{R} \to \mathbb{R}$ , define $\theta(z_i) \triangleq \frac{f(z_i)}{z_i}$ . Then assuming the weights $\boldsymbol{w}^{\max}$ do not change, the maximum logit after shaping is:
96
+
97
+ $$
98
+ \bar {\ell} ^ {\max } (\bar {z}) = \sum_ {i = 1} ^ {M} w _ {i} ^ {\max } f (z _ {i}) = \sum_ {i = 1} ^ {M} \theta (z _ {i}) w _ {i} ^ {\max } z _ {i}. \tag {4}
99
+ $$
100
+
101
+ To design $\theta(z)$ and understand which feature value ranges are effective for OOD detection, we compute the contribution of features with specific values to the maximum logit. Concretely, we define the value-specific feature impact (VSFI): $V(z) = \sum_{i=1}^{M} \mathbb{1}\{z_i = z\} w_i^{\max} z_i$ . However, $z$ is a continuous variable, and real-world data only provide a countable number of features, which can give overly sparse distributions of VSFs. To address this, we partition the domain of individual features into a disjoint set of intervals $\mathcal{A}$ that cover $z_i$ . Formally, the interval-specific feature impact (ISFI) on an interval $[a, b) \in \mathcal{A}$ is given by:
102
+
103
+ $$
104
+ I _ {[ a, b)} (\boldsymbol {z}) = \sum_ {i = 1} ^ {M} \mathbb {1} \left\{a \leq z _ {i} < b \right\} w _ {i} ^ {\max } z _ {i} = \sum_ {i: a \leq z _ {i} < b} w _ {i} ^ {\max } z _ {i}. \tag {5}
105
+ $$
106
+
107
+ Then, for a single sample, the maximum logit is the summation over all ISFIs, given by:
108
+
109
+ $$
110
+ \ell^ {\max } (\boldsymbol {z}) = \sum_ {[ a, b) \in \mathcal {A}} I _ {[ a, b)} (\boldsymbol {z}). \tag {6}
111
+ $$
112
+
113
+ In our experiments, we divide feature values into equal-width intervals. Given that feature distributions typically exhibit long-tailed characteristics (Sun et al., 2021), we select the 0.1 and 99.9 percentiles of all features in a training set as the lower $\alpha$ and upper $\beta$ limits of feature values, respectively. We then partition the range $[\alpha, \beta)$ into $K = 100$ equal-width intervals. This results in a set of intervals $\mathcal{A} = \{\left[a_k, b_k\right]\}_{k=1}^K$ , where $a_k = \alpha + (k-1)\delta$ , $b_k = \alpha + k\delta$ , and $\delta = \frac{\beta - \alpha}{K}$ for $k = 1, \ldots, K$ . Then, the maximum logit can be expressed as:
114
+
115
+ $$
116
+ \ell^ {\max } (\boldsymbol {z}) = \sum_ {[ a, b) \in \mathcal {A}} I _ {[ a, b)} (\boldsymbol {z}) = \sum_ {k = 1} ^ {K} I _ {[ a _ {k}, b _ {k})} (\boldsymbol {z}), \tag {7}
117
+ $$
118
+
119
+ and for each data sample, we can generate a $K$ -dim ISFI vector denoted as:
120
+
121
+ $$
122
+ \boldsymbol {I} (\boldsymbol {z}) = \left(I _ {[ a _ {1}, b _ {1})} (\boldsymbol {z}), \dots , I _ {[ a _ {K}, b _ {K})} (\boldsymbol {z})\right) \in \mathbb {R} ^ {K}. \tag {8}
123
+ $$
124
+
125
+ # 3.2 OPTIMIZING THE RESHAPING FUNCTION
126
+
127
+ We now describe how to optimize $\theta(z)$ , assuming $\theta(z)$ is piecewise constant over the intervals $\mathcal{A}$ . For an interval $[a_k, b_k)$ , we estimate a scalar $\hat{\theta}_k$ as a constant approximation to $\theta(z)$ within the interval. In the limit as the interval widths shrinks to zero, we recover the continuous, element-wise shaping function. We can approximate the maximum logit as,
128
+
129
+ $$
130
+ \bar {\ell} ^ {\max } (\bar {z}) = \sum_ {k = 1} ^ {K} \hat {\theta} _ {k} I _ {\left(a _ {k}, b _ {k}\right)} (z). \tag {9}
131
+ $$
132
+
133
+ While previous works (Sun et al., 2021; Xu & Lian, 2023) evaluate their methods by computing the expected difference in maximum logits between ID and OOD data, optimizing this criteria solely does not improve OOD detection performance. To see this, observe that simply uniformly scaling features by a large factor increases the expected difference in maximum logits without enhancing the differentiation between ID and OOD samples. This motivates introducing regularization on the shaping function and leads us to the following problem<sup>3</sup>:
134
+
135
+ $$
136
+ \text {m a x i m i z e} (\text {o v e r} \theta) \quad \mathbf {E} _ {\boldsymbol {x} ^ {\mathrm {I D}} \sim D _ {\chi} ^ {\mathrm {I D}}, \underline {{\boldsymbol {x}}} ^ {\mathrm {O O D}} \sim D _ {\chi} ^ {\mathrm {O O D}}} \left[ \boldsymbol {\theta} ^ {\mathrm {T}} \boldsymbol {I} \left(\boldsymbol {z} ^ {\mathrm {I D}}\right) - \boldsymbol {\theta} ^ {\mathrm {T}} \boldsymbol {I} \left(\boldsymbol {z} ^ {\mathrm {O O D}}\right) \right] \tag {10}
137
+ $$
138
+
139
+ $$
140
+ \text {s u b j e c t} \quad \| \boldsymbol {\theta} \| = \sqrt {K}, \quad \boldsymbol {z} ^ {\mathrm {I D}} = \mathcal {B} (\boldsymbol {x} ^ {\mathrm {I D}}), \quad \boldsymbol {z} ^ {\mathrm {O O D}} = \mathcal {B} (\boldsymbol {x} ^ {\mathrm {O O D}}),
141
+ $$
142
+
143
+ ![](images/71a3815296c6a103cdea19866e9374a7bb46ffb681eebd105c901d33a7c3371d.jpg)
144
+
145
+ ![](images/9a80d1e97aff3fea335c6938cd9b434971313348cd3ff054bacae4e38c16e870.jpg)
146
+
147
+ ![](images/aabd169b6ce78f4ba98e8561bc531d41334b9bfb5855dda8a25367b6bddcf2f1.jpg)
148
+
149
+ ![](images/48d090d2e4de9f2c9bac2bd128cb77af4d5b3ea68f4ca4d50faae3db6a406b09.jpg)
150
+
151
+ ![](images/d558b30defee4409b881cc6814a83bd578ea66d4ffbe211f32f16bb96191ed7b.jpg)
152
+ (a)
153
+ Feature value Z
154
+ (e)
155
+ Figure 2: Visualization of shaping functions. The blue lines (ours w/o OOD) derive from Eq. 10, while the green line (ours w/o OOD) from Eq. 14. Red lines represent different existing methods, while shaded regions indicate estimated standard deviations. $\theta$ has been rescaled for the best visualization.
156
+
157
+ ![](images/b3d8776a6c13db5a520c599f2bce3291ad93babd8c2e76e6e030fb0dfc7c8809.jpg)
158
+ (b)
159
+ Feature value Z
160
+ (f)
161
+
162
+ ![](images/be58bb8ab244ad7a00c7513d1f107ae89ed182511046340e5123db67faa4112a.jpg)
163
+ (c)
164
+ Feature value Z
165
+ (g)
166
+
167
+ ![](images/e7d01dceae230a8ab91386e0ba6ed1b70032e4fcaabb104de94220b9487c6919.jpg)
168
+ (d)
169
+ Feature value Z
170
+ (h)
171
+
172
+ where due to the linearity of expectation, the objective function can be expressed as:
173
+
174
+ $$
175
+ \boldsymbol {\theta} ^ {\mathrm {T}} \left(\mathbf {E} _ {\boldsymbol {x} ^ {\mathrm {I D}} \sim D _ {\mathcal {X}} ^ {\mathrm {I D}}} \left[ \boldsymbol {I} \left(\boldsymbol {z} ^ {\mathrm {I D}}\right) \right] - \mathbf {E} _ {\boldsymbol {x} ^ {\mathrm {O O D}} \sim D _ {\mathcal {X}} ^ {\mathrm {O O D}}} \left[ \boldsymbol {I} \left(\boldsymbol {z} ^ {\mathrm {O O D}}\right) \right]\right). \tag {11}
176
+ $$
177
+
178
+ We extract ISFI vectors for the ImageNet-1k training set (ID) (Russakovsky et al., 2015) and for the iNaturalist dataset (OOD) (Van Horn et al., 2018), using a ResNet50 model pre-trained on ImageNet-1k training set. The estimated $\hat{\theta}_k$ is plotted in Fig. 2.
179
+
180
+ For completeness, we describe existing feature-shaping methods (Sun et al., 2021; Kong & Li, 2023; Xu & Lian, 2023) using our reparameterization of the feature shaping problem with $\theta(z)$ ,
181
+
182
+ $$
183
+ \theta_ {\text {R e A c t}} (z) = \frac {\min (z , t)}{z}, \quad \theta_ {\text {B F A c t}} (z) = \frac {1}{\sqrt {1 + (\frac {z}{t}) ^ {2 N}}}, \quad \theta_ {\text {V R A - P}} (z) = \left\{ \begin{array}{l l} 0 & z < \text {l o w} \\ 1 & \text {l o w} \leq z < \text {h i g h} \\ \frac {\text {h i g h}}{z} & \text {h i g h} \leq z, \end{array} \right. \tag {12}
184
+ $$
185
+
186
+ where $t$ , $N$ , low, and high are hyperparameters. We then plot the resultant $\theta(z)$ in Fig. 2(a-c). We show that these prior works are empirically approximating our optimal piecewise constant shaping function. A difference between our shaping function and VRA-P, is that VRA-P sets low-value features to zero while ours flips the sign of these features to better utilize them for OOD detection.
187
+
188
+ Then, we extend our analysis to other feature-shaping methods. ASH-P, -B, -S, and -Rand denote four simplistic yet effective methods introduced by Djurisic et al. (2022). In contrast to ReAct, which employs a global threshold to clip features, ASH methods incorporate the entire feature vector and utilize a local threshold to process the feature representation of each instance. Their shaping functions are not reducible to element-wise functions.
189
+
190
+ We instead approximate the average shaping effect within each feature value interval. Specifically, we utilize ImageNet-1k validation set (ID) and iNaturalist (OOD) with ResNet50. For an interval $[a_k, b_k)$ , we retrieve all features from ID and OOD datasets that fall within this range, along with their reshaped counterparts. Following this, the ratio of reshaped and original values are computed as $\theta_k$ for a specific data instance. Subsequently, we calculate the mean value and standard deviation of these $\theta_k$ values over all samples on each interval. The results are depicted in Fig. 2(e-h).
191
+
192
+ # 3.3 OPTIMIZING THE SHAPING FUNCTION WITHOUT OOD SAMPLES
193
+
194
+ ![](images/05e99c0416ed388bed49a14812c513276ace9d5e1c92f8e2843924fefde7b778.jpg)
195
+ Figure 3: Diagram to show the intuition in deriving Eq. 13.
196
+
197
+ Normally, we have access to the ID training set, enabling us to estimate $\mathbf{E}_{\boldsymbol{x}^{\mathrm{ID}}\sim D_{\mathcal{X}}^{\mathrm{ID}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{ID}})\right]$ . However, a significant challenge arises with the unknown term $\mathbf{E}_{\boldsymbol{x}^{\mathrm{OOD}}\sim D_{\mathcal{X}}^{\mathrm{OOD}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{OOD}})\right]$ , which renders the optimization problem defined in Eq. 10 intractable.
198
+
199
+ To make the problem tractable without access to OOD data, we omit the OOD-related term $\mathbf{E}_{\boldsymbol{x}^{\mathrm{OOD}}\sim D_X^{\mathrm{OOD}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{OOD}})\right]$ by the following argument, which as we will see is also supported empirically in Section 4.2.
200
+
201
+ A diagram to explain our intuition is shown in Fig. 3. Specifically, in scenarios where the OOD distribution closely resembles the ID (hard OOD), OOD samples likely have similar feature representations to ID samples, implying both expectations share similar directions. Conversely, in cases where OOD samples significantly diverge from
202
+
203
+ ID samples (easy OOD), the maximum logits of OOD samples tend to be lower, thereby reducing the magnitude of $\mathbf{E}_{\boldsymbol{x}^{\mathrm{OOD}}\sim D_{\mathcal{X}}^{\mathrm{OOD}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{OOD}})\right]$ compared to ID.
204
+
205
+ Thus, the component of $\mathbf{E}_{\boldsymbol{x}^{\mathrm{OD}}\sim D_{\mathcal{X}}^{\mathrm{OD}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{OD}})\right]$ orthogonal to ID expectation is small and we suggest omitting $\mathbf{E}_{\boldsymbol{x}^{\mathrm{OD}}\sim D_{\mathcal{X}}^{\mathrm{OD}}}\left[\boldsymbol {I}(\boldsymbol{z}^{\mathrm{OD}})\right]$ , resulting in the following formulation:
206
+
207
+ $$
208
+ \begin{array}{l l} \text {m a x i m i z e (o v e r} \boldsymbol {\theta}) & \boldsymbol {\theta} ^ {\mathrm {T}} \mathbf {E} _ {\boldsymbol {x} \sim D _ {\boldsymbol {x}} ^ {\mathrm {I D}}} [ \boldsymbol {I} (\boldsymbol {z}) ] \\ \text {s u b j e c t t o} & \| \boldsymbol {\theta} \| = \sqrt {K}, \quad \boldsymbol {z} = \mathcal {B} (\boldsymbol {x}). \end{array} \tag {13}
209
+ $$
210
+
211
+ The optimal solution to this new problem can be expressed in closed-form as:
212
+
213
+ $$
214
+ \boldsymbol {\theta} ^ {\star} = \frac {\sqrt {K}}{\left\| \mathbf {E} _ {\boldsymbol {x} \sim D _ {\chi} ^ {\mathrm {I D}}} [ \boldsymbol {I} (\boldsymbol {z}) ] \right\| _ {2}} \mathbf {E} _ {\boldsymbol {x} \sim D _ {\chi} ^ {\mathrm {I D}}} [ \boldsymbol {I} (\boldsymbol {z}) ]. \tag {14}
215
+ $$
216
+
217
+ We plot $\theta^{\star}$ calculated by Eq. 14 in Fig. 2(d), noting that it is in close proximity to the optimal solution in the case where OOD samples are available. In experiments, we will also show that our method with only ID data performs almost on par with using the true $I(z^{\mathrm{OOD}})$ calculated from OOD data.
218
+
219
+ At inference time, for each sample, we rescale its features within each interval $[a_k, b_k)$ by the corresponding entry in $\theta^{\star}$ , and calculate an OOD score based on the reshaped feature representation.
220
+
221
+ # 4 EXPERIMENTS
222
+
223
+ Datasets. We evaluate our proposed method using a large scale benchmark where ImageNet-1k (Russakovsky et al., 2015) is the ID dataset, as well as two moderate scale benchmarks where CIFAR10 and CIFAR100 (Krizhevsky et al., 2009) are used as the ID datasets. We evaluate eight OOD datasets for the ImageNet benchmark, comprised of Species (Hendrycks et al., 2019b), iNaturalist (Van Horn et al., 2018), SUN (Xiao et al., 2010), Places (Zhou et al., 2017), OpenImage-O (Wang et al., 2022), ImageNet-O (Hendrycks et al., 2021), Texture (Cimpoi et al., 2014), and MNIST (Deng, 2012). When CIFAR10/100 is the ID dataset, eight OOD datasets are exploited, comprised of TinyImageNet (Torralba et al., 2008), SVHN (Netzer et al., 2011), Texture (Cimpoi et al., 2014), Places365 (Zhou et al., 2017), LSUN-Cropped (Yu et al., 2015), LSUN-Resized (Yu et al., 2015), iSUN (Xu et al., 2015), and finally CIFAR100/10.
224
+
225
+ Model architectures. We use pre-trained models provided by PyTorch and prior works in our experiments. For ImageNet-1k, we use a pre-trained ResNet50 (He et al., 2016) provided by PyTorch and a MobileNet-v2 (Sandler et al., 2018) provided by Djurisic et al. (2022). Additionally, we include models based on the transformer and fully-MLP architectures, which have been largely overlooked in previous studies. Specifically, we include ViT-B-16, ViT-L-16 (Dosovitskiy et al., 2020), SWIN-S, SWIN-B (Liu et al., 2021), MLP-Mixer-B, and MLP-Mixer-L (Tolstikhin et al., 2021). For the CIFAR10 and CIFAR100 benchmarks, we use a DenseNet101 (Huang et al., 2017) model provided by Sun & Li (2022), a ViT-B-16 finetuned on CIFAR10/100 consistent with Fort et al. (2021), and a MLP-Mixer-Nano model trained on CIFAR10/100 from scratch.
226
+
227
+ Table 1: OOD detection results on ImageNet-1k. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results.
228
+
229
+ <table><tr><td rowspan="2">Method</td><td colspan="2">ResNet50</td><td colspan="2">MobileNetV2</td><td colspan="2">ViT-B-16</td><td colspan="2">ViT-L-16</td><td colspan="2">SWIN-S</td><td colspan="2">SWIN-B</td><td colspan="2">MLP-B</td><td colspan="2">MLP-L</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>69.30</td><td>76.26</td><td>72.58</td><td>77.41</td><td>69.84</td><td>77.40</td><td>70.59</td><td>78.40</td><td>65.12</td><td>80.89</td><td>69.45</td><td>77.26</td><td>70.66</td><td>80.31</td><td>71.63</td><td>79.93</td><td>69.90</td><td>78.48</td></tr><tr><td>\(ODIN^a\)</td><td>61.56</td><td>80.92</td><td>62.91</td><td>82.64</td><td>69.25</td><td>72.60</td><td>70.35</td><td>74.51</td><td>62.35</td><td>78.67</td><td>70.90</td><td>68.36</td><td>65.00</td><td>82.99</td><td>67.90</td><td>81.86</td><td>66.28</td><td>77.82</td></tr><tr><td>Energy</td><td>60.97</td><td>81.01</td><td>61.40</td><td>82.83</td><td>73.96</td><td>67.65</td><td>74.89</td><td>70.11</td><td>66.56</td><td>75.95</td><td>79.53</td><td>60.14</td><td>87.86</td><td>78.42</td><td>84.60</td><td>79.01</td><td>73.72</td><td>74.39</td></tr><tr><td>DICE</td><td>45.32</td><td>83.64</td><td>49.33</td><td>84.63</td><td>89.68</td><td>71.32</td><td>72.38</td><td>67.08</td><td>78.84</td><td>49.06</td><td>77.89</td><td>50.10</td><td>57.12</td><td>80.60</td><td>61.98</td><td>80.75</td><td>66.57</td><td>70.90</td></tr><tr><td>ReAct</td><td>42.29</td><td>86.54</td><td>54.19</td><td>85.37</td><td>73.82</td><td>76.86</td><td>76.16</td><td>81.07</td><td>58.07</td><td>85.10</td><td>70.23</td><td>80.10</td><td>90.13</td><td>77.18</td><td>89.03</td><td>78.32</td><td>69.24</td><td>81.32</td></tr><tr><td>BFAct</td><td>43.87</td><td>86.01</td><td>52.87</td><td>85.78</td><td>77.64</td><td>80.16</td><td>84.02</td><td>81.12</td><td>64.76</td><td>85.57</td><td>68.40</td><td>84.36</td><td>96.04</td><td>67.87</td><td>96.00</td><td>70.59</td><td>72.95</td><td>80.18</td></tr><tr><td>ASH-P</td><td>55.30</td><td>83.00</td><td>59.41</td><td>83.84</td><td>99.36</td><td>21.17</td><td>99.18</td><td>20.27</td><td>99.09</td><td>21.78</td><td>98.83</td><td>22.11</td><td>98.19</td><td>35.85</td><td>98.91</td><td>29.69</td><td>88.53</td><td>39.71</td></tr><tr><td>ASH-B</td><td>35.97</td><td>88.62</td><td>43.59</td><td>88.28</td><td>94.87</td><td>46.68</td><td>93.72</td><td>38.95</td><td>96.48</td><td>36.54</td><td>92.40</td><td>49.85</td><td>99.51</td><td>21.73</td><td>64.91</td><td>83.15</td><td>77.68</td><td>56.73</td></tr><tr><td>ASH-S</td><td>34.70</td><td>90.25</td><td>43.84</td><td>88.24</td><td>99.48</td><td>18.52</td><td>99.42</td><td>18.61</td><td>99.20</td><td>18.26</td><td>99.06</td><td>19.27</td><td>97.61</td><td>33.91</td><td>99.28</td><td>19.29</td><td>84.07</td><td>38.29</td></tr><tr><td>VRA-P</td><td>37.97</td><td>88.58</td><td>49.98</td><td>86.83</td><td>98.39</td><td>35.66</td><td>99.58</td><td>16.70</td><td>99.27</td><td>20.34</td><td>99.46</td><td>17.64</td><td>99.38</td><td>18.73</td><td>99.05</td><td>21.23</td><td>85.39</td><td>38.21</td></tr><tr><td>Ours (V)</td><td>41.84</td><td>88.11</td><td>53.31</td><td>86.36</td><td>69.33</td><td>82.59</td><td>72.17</td><td>83.23</td><td>66.89</td><td>84.53</td><td>65.96</td><td>83.71</td><td>76.59</td><td>78.46</td><td>78.13</td><td>78.85</td><td>65.53</td><td>83.23</td></tr><tr><td>Ours (E)</td><td>39.75</td><td>88.56</td><td>51.77</td><td>86.62</td><td>69.52</td><td>82.66</td><td>78.57</td><td>82.94</td><td>66.28</td><td>84.99</td><td>66.20</td><td>84.21</td><td>83.54</td><td>75.94</td><td>85.50</td><td>78.11</td><td>67.64</td><td>83.00</td></tr></table>
230
+
231
+ ${}^{a}$ Choice of hyperparameters on Imagenet makes ODIN yield identical results to MLS.
232
+
233
+ Table 2: OOD detection results on CIFAR10/100. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results.
234
+
235
+ <table><tr><td rowspan="3">Method</td><td colspan="9">CIFAR10</td><td colspan="7">CIFAR100</td></tr><tr><td colspan="2">DenseNet101</td><td colspan="2">ViT-B-16</td><td colspan="2">MLP-N</td><td colspan="2">Average</td><td colspan="2">DenseNet101</td><td colspan="2">ViT-B-16</td><td colspan="2">MLP-N</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>52.66</td><td>91.42</td><td>25.47</td><td>95.61</td><td>67.01</td><td>82.86</td><td>48.38</td><td>89.96</td><td>80.40</td><td>74.75</td><td>61.24</td><td>85.24</td><td>83.97</td><td>73.07</td><td>75.20</td><td>77.69</td></tr><tr><td>ODIN</td><td>32.84</td><td>91.94</td><td>24.93</td><td>92.84</td><td>69.20</td><td>69.53</td><td>42.32</td><td>84.77</td><td>62.03</td><td>82.57</td><td>56.91</td><td>80.86</td><td>78.71</td><td>66.47</td><td>65.88</td><td>76.63</td></tr><tr><td>MLS</td><td>31.93</td><td>93.51</td><td>12.79</td><td>97.16</td><td>64.50</td><td>82.97</td><td>36.41</td><td>91.21</td><td>70.71</td><td>80.18</td><td>52.31</td><td>88.63</td><td>82.41</td><td>74.52</td><td>68.48</td><td>81.11</td></tr><tr><td>Energy</td><td>31.72</td><td>93.51</td><td>12.40</td><td>97.22</td><td>63.95</td><td>82.84</td><td>36.02</td><td>91.19</td><td>70.80</td><td>80.22</td><td>51.93</td><td>88.82</td><td>79.90</td><td>75.30</td><td>67.54</td><td>81.45</td></tr><tr><td>DICE</td><td>29.67</td><td>93.27</td><td>26.84</td><td>92.41</td><td>96.64</td><td>52.17</td><td>51.05</td><td>79.28</td><td>59.56</td><td>82.26</td><td>95.18</td><td>42.05</td><td>95.78</td><td>44.48</td><td>83.51</td><td>56.26</td></tr><tr><td>ReAct</td><td>82.00</td><td>76.46</td><td>12.33</td><td>97.29</td><td>64.34</td><td>81.85</td><td>52.89</td><td>85.20</td><td>77.00</td><td>78.30</td><td>52.25</td><td>88.84</td><td>79.99</td><td>75.87</td><td>69.75</td><td>81.00</td></tr><tr><td>BFAct</td><td>84.40</td><td>74.39</td><td>12.34</td><td>97.21</td><td>78.02</td><td>72.68</td><td>58.25</td><td>81.43</td><td>80.27</td><td>73.36</td><td>51.23</td><td>89.04</td><td>80.05</td><td>76.58</td><td>70.52</td><td>79.66</td></tr><tr><td>ASH-P</td><td>29.39</td><td>93.98</td><td>20.20</td><td>95.31</td><td>84.39</td><td>66.93</td><td>44.66</td><td>85.41</td><td>68.21</td><td>81.11</td><td>53.69</td><td>87.66</td><td>86.73</td><td>65.27</td><td>69.54</td><td>78.01</td></tr><tr><td>ASH-B</td><td>28.21</td><td>94.27</td><td>82.10</td><td>69.54</td><td>93.93</td><td>53.00</td><td>68.08</td><td>72.27</td><td>57.45</td><td>83.80</td><td>91.74</td><td>56.39</td><td>93.63</td><td>57.20</td><td>80.94</td><td>65.80</td></tr><tr><td>ASH-S</td><td>23.93</td><td>94.41</td><td>39.93</td><td>91.06</td><td>82.57</td><td>68.02</td><td>48.81</td><td>84.50</td><td>52.41</td><td>84.65</td><td>60.44</td><td>84.25</td><td>89.39</td><td>59.63</td><td>67.41</td><td>76.18</td></tr><tr><td>VRA-P</td><td>38.41</td><td>92.77</td><td>13.73</td><td>96.86</td><td>100.00</td><td>65.95</td><td>50.71</td><td>85.19</td><td>67.75</td><td>82.72</td><td>52.21</td><td>88.49</td><td>87.19</td><td>66.03</td><td>69.05</td><td>79.08</td></tr><tr><td>Ours (V)</td><td>30.12</td><td>93.97</td><td>13.13</td><td>97.07</td><td>77.25</td><td>73.86</td><td>40.17</td><td>88.30</td><td>69.01</td><td>81.42</td><td>52.76</td><td>88.60</td><td>83.83</td><td>73.65</td><td>68.53</td><td>81.22</td></tr><tr><td>Ours (E)</td><td>28.90</td><td>94.12</td><td>12.79</td><td>97.14</td><td>83.87</td><td>71.83</td><td>41.85</td><td>87.70</td><td>65.2</td><td>82.39</td><td>51.67</td><td>88.78</td><td>81.33</td><td>74.67</td><td>66.07</td><td>81.95</td></tr></table>
236
+
237
+ Evaluation metrics. We utilize two standard evaluation metrics, following previous works (Liang et al., 2017; Sun et al., 2021; Sun & Li, 2022): the false positive rate (FPR95) when the true positive rate of the ID samples is $95\%$ , and AUC.
238
+
239
+ Implementation details. We evaluate two variants of our method, the vanilla method described in Eq. 14 denoted "Ours (V)", based on the maximum logit score, and a variant based on energy scores, denoted "Ours (E)". For comparison, we implement five baseline methods (top rows in results tables), including MSP (Hendrycks & Gimpel, 2016), ODIN (Liang et al., 2017), MLS (Hendrycks et al., 2019a), Energy (Liu et al., 2020), and DICE (Sun & Li, 2022), and six feature-shaping methods (remaining rows in results tables), including ReAct (Sun et al., 2021), BFAct (Kong & Li, 2023), ASH-P, ASH-B, ASH-S (Djurisic et al., 2022), and VRA-P (Xu & Lian, 2023). All comparison feature-shaping methods are evaluated using the energy score. Hyperparameters are set consistent with the original papers and concrete hyperparameter settings can be found in Section A.1 of the Appendix. All experiments are run on a single NVIDIA GeForce RTX 4090 GPU.
240
+
241
+ # 4.1 OOD DETECTION BENCHMARK RESULTS
242
+
243
+ Experimental results on the ImageNet-1k benchmark are shown in Table 1. More detailed results can be found in Sections E and F of the Appendix. We observe that the comparison methods for
244
+
245
+ ![](images/d165aa2966444338b3ccd90ac0a17914eda8aa47743d7db5f0d41b9ee7b793b8.jpg)
246
+ (a)
247
+
248
+ ![](images/38b78ff2240ea7ea51e2aceea884955e0059d6c374b2e693e08323f052deaf70.jpg)
249
+ (b)
250
+ Figure 4: Compatibility and sensitivity analysis. (a-b) Our method can improve other OOD scores and methods. "Base" denotes using the original OOD score or method, while "+"Our" indicates combining the score or method with our feature-shaping function. (c) Our method's performance with different hyperparameter settings, i.e., numbers of intervals $K$ .
251
+
252
+ ![](images/13089371383b83d082fa8fe8bbaab82bba04c73d4b86b8d0dec1b4fd0d4acbbf.jpg)
253
+ (c)
254
+
255
+ feature shaping perform extremely well on the pretrained ResNet-50 model, with some ASH variants outperforming element-wise shaping methods like ReAct (Sun et al., 2021), and yielding similar performance to our proposed methods. This is not surprising, given that ResNet-50 was the model architecture used in the original papers. As we showed in Fig. 2, the shaping functions proposed by these methods closely align with the optimal shaping function learned given actual OOD samples.
256
+
257
+ However, we observe that these methods do not generalize well to architectures outside of ResNet-50. We observe that for feature-shaping methods more generally, stronger convolutional network architecture performance is negatively correlated to performance on other network architectures. However, our proposed methods yield consistently strong performance across all network architectures, despite only having access to ID data for parameter tuning.
258
+
259
+ Results for the CIFAR10 and CIFAR100 benchmarks are shown in Table 2. An important observation regarding these results is that feature-shaping methods as a whole seem to underperform the baseline methods. This indicates that feature shaping appears to be ineffective on smaller-scale datasets such as CIFAR. While our methods do not outperform the baselines, we are competitive and do outperform all of the comparison feature shaping methods, which is consistent with the ImageNet-1k benchmark.
260
+
261
+ # 4.2 FURTHER ANALYSIS
262
+
263
+ We conduct additional experiments using the ImageNet-1k benchmark and employing ResNet50.
264
+
265
+ Extension to other OOD scores. While our proposed method in Eq. 14 is designed assuming MLS as the OOD score, we also extend our method to use other OOD scores such as energy and MSP. Furthermore, we combine our method with other OOD detection methods including DICE and ReAct. Results are averaged across the eight OOD datasets. As shown in Fig. 4(a-b), our method yields consistent improvement across these OOD detection scores and methods.
266
+
267
+ Different numbers of intervals. We evaluate our methods with different number of intervals, i.e., varying $K$ . As shown in Fig. 4(c), most of the improvement in performance comes from $K \leq 10$ . This indicates that the optimal feature shaping function has a relatively simple form. This is consistent with prior methods (Sun et al., 2021; Xu & Lian, 2023; Kong & Li, 2023), which assume 2-3 intervals. In addition, the relatively large performance gap over the baseline motivates feature shaping more generally. Interestingly, we observe an extremely large jump between $K = 0$ ("Energy" baseline) with $K = 1$ , which effectively prunes the top and bottom $0.1\%$ of feature values (using the thresholds computed based on the ID training data).
268
+
269
+ Empirical validation of Problem 13. In deriving Eq. 13, we remove the OOD-related term, assuming OOD data is inaccessible. We now empirically justify our intuition shown in Fig. 3. We estimate $\pmb{a} = \mathbf{E}_{\pmb{x}^{\mathrm{ID}} \sim D_{\mathcal{X}}^{\mathrm{ID}}} \left[ \pmb{I}(\pmb{z}^{\mathrm{ID}}) \right]$ with ImageNet-1k and $\pmb{b} = \mathbf{E}_{\pmb{x}^{\mathrm{OOD}} \sim D_{\mathcal{X}}^{\mathrm{OOD}}} \left[ \pmb{I}(\pmb{z}^{\mathrm{OOD}}) \right]$ with different OOD datasets. We then compute the angles and the norm ratios, $\frac{\|\pmb{b}\|}{\|\pmb{a}\|}$ , of the two expectations.
270
+
271
+ As shown in Table 3, challenging OOD datasets like Species and ImageNet-O exhibit smaller angles between the two expectations, while simpler OOD datasets like iNaturalist and MNIST demonstrate smaller norm ratios. Thus, Eq. 13 provides a reasonable approximation to $\theta$ solved by Eq. 10 with access to OOD data.
272
+
273
+ Compare the formulation utilizing OOD data (Eq. 10) and our method (Eq. 14). We optimize $\theta$ by solving Eq. 10 with each OOD dataset and get the OOD detection performance on that dataset. The last two columns of Table 3 compare the performance of $\theta$ solved from Eq. 10
274
+
275
+ Table 3: Empirical validation of Problem 13. $\mathbf{a}$ and $\mathbf{b}$ denote the expectations of $\mathbf{I}\left( \mathbf{z}\right)$ for ID and OOD, respectively. "AU (Real)" refers to the performance of solving Eq. 10 with OOD data.
276
+
277
+ <table><tr><td>OOD dataset</td><td>||b||/||a||</td><td>cos(a, b)</td><td>AU (Real)</td><td>AU (Ours)</td></tr><tr><td>Species</td><td>0.72</td><td>0.99</td><td>78.69</td><td>78.59</td></tr><tr><td>iNaturalist</td><td>0.48</td><td>0.97</td><td>96.53</td><td>96.63</td></tr><tr><td>SUN</td><td>0.55</td><td>0.98</td><td>92.90</td><td>92.84</td></tr><tr><td>Places</td><td>0.59</td><td>0.99</td><td>90.06</td><td>90.15</td></tr><tr><td>OpenImage-O</td><td>0.56</td><td>0.98</td><td>92.31</td><td>92.54</td></tr><tr><td>ImageNet-O</td><td>0.91</td><td>0.99</td><td>70.19</td><td>59.33</td></tr><tr><td>Texture</td><td>0.51</td><td>0.96</td><td>95.82</td><td>95.48</td></tr><tr><td>MNIST</td><td>0.42</td><td>0.84</td><td>99.32</td><td>99.34</td></tr></table>
278
+
279
+ and that from Eq. 14 (ours). Notably, our method with only ID data yields performance comparable to the formulation with access to real OOD data.
280
+
281
+ # 5 DISCUSSION
282
+
283
+ Here we first discuss a core limitation to our framework that our proposed method assumes elementwise shaping functions, which fails to capture methods like ASH (Dosovitskiy et al., 2020). We then connect our proposed method to existing works.
284
+
285
+ General feature-shaping functions. As discussed previously, a feature-shaping function can represent arbitrary mappings $f: \mathbb{R}^M \to \mathbb{R}^M$ . While our proposed methods handle mappings which can be defined element-wise over individual features, they fail to capture methods such as ASH (Dosovitskiy et al., 2020) which can only be defined over the full feature vector. An important direction for future work is in designing a tractable optimization problem where the family of functions $f$ includes whole-vector methods such as ASH. We expect that the resultant mappings should also be relatively simple as in the element-wise case.
286
+
287
+ Feature contributions to the maximum logits. Prior research (Sun & Li, 2022; Dietterich & Guyer, 2022) has explored the idea of feature contributions to the maximum logits. For example, DICE (Sun & Li, 2022) identifies the most significant feature indices for each class using ID data. During test-time, it masks feature indices deemed insignificant before calculating OOD scores. However, our approach differs from theirs in that we consider feature value ranges instead of indices. We find our function yields significantly better performance in practice, partially attributed to the fact that it admits a tractable optimization problem. Investigating the combination of these two classes of methods remains a promising direction for future work.
288
+
289
+ Classifier training for OOD detection. Prior studies (Liang et al., 2017; Sun & Li, 2022) have leveraged surrogate OOD datasets, such as Gaussian and Uniform distributions, to train classifiers for distinguishing between ID and OOD samples. Liang et al. (2017) primarily employ these datasets to assess their method's performance, while Sun & Li (2022) use them for hyperparameter tuning. Despite these efforts, the approach is seldom applied in feature-shaping methods. Concurrently, several studies are probing into outlier synthesis (Du et al., 2022; He et al., 2022) to approximate real OOD distributions and train classifiers accordingly. Our optimization problem could benefit from these advancements, as our parameterized feature-shaping function could be optimized based on an ID dataset and synthesized outliers. We explore this possibility in Section B.1 of the Appendix.
290
+
291
+ # 6 CONCLUSION
292
+
293
+ This paper formulates a general optimization problem for feature-shaping methods in OOD detection. Using this formalism, we are able to better understand and explain the effectiveness of existing state-of-the-art methods. In the context of our framework, we propose a novel feature shaping method which can be trained solely on ID data. Experimental results validate the superior performance and generalization ability of our approach compared to prior works, and motivate the development of new methods under our framework to further advance OOD detection methods.
294
+
295
+ # ACKNOWLEDGMENTS
296
+
297
+ We would like to extend our deepest appreciation to Weijian Deng, Yanbin Liu, Yunzhong Hou, Xiaoxiao Sun, and all other lab colleagues for their invaluable support throughout this project. Their collaborative efforts, insightful discussion, and constructive feedback have been crucial in shaping and improving our paper.
298
+
299
+ This work was supported by an Australian Research Council (ARC) Linkage grant (project number LP210200931).
300
+
301
+ # REFERENCES
302
+
303
+ Mircea Cimpoi, Subhransu Maji, Iasonas Kokkinos, Sammy Mohamed, and Andrea Vedaldi. Describing textures in the wild. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 3606-3613, 2014.
304
+ Li Deng. The mnist database of handwritten digit images for machine learning research [best of the web]. IEEE signal processing magazine, 29(6):141-142, 2012.
305
+ Thomas G Dietterich and Alex Guyer. The familiarity hypothesis: Explaining the behavior of deep open set methods. Pattern Recognition, 132:108931, 2022.
306
+ Andrija Djurisic, Nebojsa Bozanic, Arjun Ashok, and Rosanne Liu. Extremely simple activation shaping for out-of-distribution detection. arXiv preprint arXiv:2209.09858, 2022.
307
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
308
+ Xuefeng Du, Zhaoning Wang, Mu Cai, and Yixuan Li. Vos: Learning what you don't know by virtual outlier synthesis. arXiv preprint arXiv:2202.01197, 2022.
309
+ Stanislav Fort, Jie Ren, and Balaji Lakshminarayanan. Exploring the limits of out-of-distribution detection. Advances in Neural Information Processing Systems, 34:7068-7081, 2021.
310
+ Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 770-778, 2016.
311
+ Rundong He, Zhongyi Han, Xiankai Lu, and Yilong Yin. Ronf: reliable outlier synthesis under noisy feature space for out-of-distribution detection. In Proceedings of the 30th ACM International Conference on Multimedia, pp. 4242-4251, 2022.
312
+ Dan Hendrycks and Kevin Gimpel. A baseline for detecting misclassified and out-of-distribution examples in neural networks. arXiv preprint arXiv:1610.02136, 2016.
313
+ Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joe Kwon, Mohammadreza Mostajabi, Jacob Steinhardt, and Dawn Song. Scaling out-of-distribution detection for real-world settings. arXiv preprint arXiv:1911.11132, 2019a.
314
+ Dan Hendrycks, Steven Basart, Mantas Mazeika, Andy Zou, Joe Kwon, Mohammadreza Mostajabi, Jacob Steinhardt, and Dawn Song. Scaling out-of-distribution detection for real-world settings. arXiv preprint arXiv:1911.11132, 2019b.
315
+ Dan Hendrycks, Kevin Zhao, Steven Basart, Jacob Steinhardt, and Dawn Song. Natural adversarial examples. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15262-15271, 2021.
316
+ Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4700-4708, 2017.
317
+
318
+ Haojia Kong and Haoan Li. Bfact: Out-of-distribution detection with butterworth filter rectified activations. In Cognitive Systems and Information Processing: 7th International Conference, ICCSIP 2022, Fuzhou, China, December 17-18, 2022, Revised Selected Papers, pp. 115-129. Springer, 2023.
319
+ Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
320
+ Shiyu Liang, Yixuan Li, and Rayadurgam Srikant. Enhancing the reliability of out-of-distribution image detection in neural networks. arXiv preprint arXiv:1706.02690, 2017.
321
+ Weitang Liu, Xiaoyun Wang, John Owens, and Yixuan Li. Energy-based out-of-distribution detection. Advances in neural information processing systems, 33:21464-21475, 2020.
322
+ Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, and Baining Guo. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 10012-10022, 2021.
323
+ Yuval Netzer, Tao Wang, Adam Coates, Alessandro Bissacco, Bo Wu, and Andrew Y Ng. Reading digits in natural images with unsupervised feature learning. 2011.
324
+ Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, et al. Imagenet large scale visual recognition challenge. International journal of computer vision, 115:211-252, 2015.
325
+ Mark Sandler, Andrew Howard, Menglong Zhu, Andrey Zhmoginov, and Liang-Chieh Chen. *Mobilenetv2: Inverted residuals and linear bottlenecks*. In *Proceedings of the IEEE conference on computer vision and pattern recognition*, pp. 4510-4520, 2018.
326
+ Yue Song, Nicu Sebe, and Wei Wang. Rankfeat: Rank-1 feature removal for out-of-distribution detection. arXiv preprint arXiv:2209.08590, 2022.
327
+ Yiyou Sun and Yixuan Li. Dice: Leveraging sparsification for out-of-distribution detection. In Computer Vision-ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23-27, 2022, Proceedings, Part XXIV, pp. 691-708. Springer, 2022.
328
+ Yiyou Sun, Chuan Guo, and Yixuan Li. React: Out-of-distribution detection with rectified activations. Advances in Neural Information Processing Systems, 34:144-157, 2021.
329
+ Ilya O Tolstikhin, Neil Houlsby, Alexander Kolesnikov, Lucas Beyer, Xiaohua Zhai, Thomas Unterthiner, Jessica Yung, Andreas Steiner, Daniel Keysers, Jakob Uszkoreit, et al. Mlp-mixer: An all-mlp architecture for vision. Advances in neural information processing systems, 34:24261-24272, 2021.
330
+ Antonio Torralba, Rob Fergus, and William T Freeman. 80 million tiny images: A large data set for nonparametric object and scene recognition. IEEE transactions on pattern analysis and machine intelligence, 30(11):1958-1970, 2008.
331
+ Grant Van Horn, Oisin Mac Aodha, Yang Song, Yin Cui, Chen Sun, Alex Shepard, Hartwig Adam, Pietro Perona, and Serge Belongie. The inaturalist species classification and detection dataset. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8769-8778, 2018.
332
+ Haoqi Wang, Zhizhong Li, Litong Feng, and Wayne Zhang. Vim: Out-of-distribution with virtual-logit matching. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4921-4930, 2022.
333
+ Jianxiong Xiao, James Hays, Krista A Ehinger, Aude Oliva, and Antonio Torralba. Sun database: Large-scale scene recognition from abbey to zoo. In 2010 IEEE computer society conference on computer vision and pattern recognition, pp. 3485-3492. IEEE, 2010.
334
+ Mingyu Xu and Zheng Lian. Vra: Out-of-distribution detection with variational rectified activations, 2023.
335
+
336
+ Pingmei Xu, Krista A Ehinger, Yinda Zhang, Adam Finkelstein, Sanjeev R Kulkarni, and Jianxiong Xiao. Turkergaze: Crowdsourcing saliency with webcam based eye tracking. arXiv preprint arXiv:1504.06755, 2015.
337
+ Jingkang Yang, Kaiyang Zhou, Yixuan Li, and Ziwei Liu. Generalized out-of-distribution detection: A survey. arXiv preprint arXiv:2110.11334, 2021.
338
+ Fisher Yu, Ari Seff, Yinda Zhang, Shuran Song, Thomas Funkhouser, and Jianxiong Xiao. Lsun: Construction of a large-scale image dataset using deep learning with humans in the loop. arXiv preprint arXiv:1506.03365, 2015.
339
+ Bolei Zhou, Agata Lapedriza, Aditya Khosla, Aude Oliva, and Antonio Torralba. Places: A 10 million image database for scene recognition. IEEE transactions on pattern analysis and machine intelligence, 40(6):1452-1464, 2017.
340
+
341
+ # A IMPLEMENTATION DETAILS
342
+
343
+ # A.1 HYPERPARAMETER SETTINGS FOR EXPERIMENTS IN SECTION 4
344
+
345
+ For feature-shaping methods, we adhere to the hyperparameter settings reported in the original papers of the respective methods. These settings usually optimize the performance of the methods on existing benchmarks. For additional methods, we primarily rely on hyperparameter settings detailed in Sun's work (Sun & Li, 2022). The detailed hyperparameter setting are listed in Table 4.
346
+
347
+ Table 4: Hyperparameter settings for experiments in Section 4
348
+
349
+ <table><tr><td>Method</td><td>Hyperparameters</td><td>ImageNet-1k</td><td>CIFAR10</td><td>CIFAR100</td></tr><tr><td>MSP</td><td>No hyperparameters</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ODIN</td><td>T, temperature scaling ε, noise level</td><td>T=1000, ε=0.0</td><td>T=1000, ε=0.004</td><td>T=1000, ε=0.004</td></tr><tr><td>MLS</td><td>No hyperparameters</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Energy</td><td>No hyperparameters</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DICE</td><td>p, sparsity parameter</td><td>p=0.7</td><td>p=0.9</td><td>p=0.9</td></tr><tr><td>ReAct</td><td>p, threshold percentile</td><td>p=90</td><td>p=90</td><td>p=90</td></tr><tr><td>BFAct</td><td>thresh, N</td><td>N=2, thresh=95 percentile of the training set</td><td>N=2, thresh=95 percentile of the training set</td><td>N=2, thresh=95 percentile of the training set</td></tr><tr><td>ASH-P</td><td>p, pruning percentile</td><td>p=60</td><td>p=90</td><td>p=80</td></tr><tr><td>ASH-B</td><td>p, pruning percentile</td><td>p=65</td><td>p=95</td><td>p=85</td></tr><tr><td>ASH-S</td><td>p, pruning percentile</td><td>p=90</td><td>p=95</td><td>p=90</td></tr><tr><td rowspan="2">VRA-P</td><td rowspan="2">x1, x2</td><td rowspan="2">x1=0.5, x2=1.0</td><td>x1=60 percentile of the training set</td><td>x1=60 percentile of the training set</td></tr><tr><td>x2=95 percentile of the training set</td><td>x2=95 percentile of the training set</td></tr><tr><td>Ours</td><td>K, the number of feature value intervals</td><td>K=100</td><td>K=100</td><td>K=100</td></tr></table>
350
+
351
+ # A.2 THE MAGNITUDE OF RESHAPED FEATURES
352
+
353
+ In Section 3, we describe our method for learning a piecewise constant reshaping function subject to norm constraints. Scaling $\theta$ has no effect on the vanilla version of method. However, OOD detection performance is sensitive to the scaling of $\theta$ when our method is combined with other OOD scores with non-linear transformations such as MSP and the energy score.
354
+
355
+ Take the energy score as an example. If we multiply the feature representation $z$ by a small positive factor $q$ ( $0 < q < 1$ ), ignoring the bias term in the last fully connected layer, we have:
356
+
357
+ $$
358
+ s _ {\text {E n e r g y}} (\ell) = \log \sum_ {j = 1} ^ {C} \exp \left(q \ell_ {j}\right). \tag {15}
359
+ $$
360
+
361
+ This is equivalent to apply a temperature scaling $T = 1 / q$ to the energy score, which will affect the OOD detection performance, as analyzed in a previous paper (Liang et al., 2017). Besides, considering a fully connected layer usually contains a bias term, the scaling of $\theta$ will further affect the influence of the bias. Thus, we need to consider the scale of $\theta$ in our optimization problem.
362
+
363
+ We scale $\theta$ by a factor of $\sqrt{K}$ , motivated by the following analysis. Considering that the maximum logit is the sum of all ISFIs, we have:
364
+
365
+ $$
366
+ \ell^ {\max } (\boldsymbol {z}) = \sum_ {k = 1} ^ {K} I _ {[ a _ {k}, b _ {k})} (\boldsymbol {z}) = \mathbf {1} ^ {\top} \boldsymbol {I} (\boldsymbol {z}), \tag {16}
367
+ $$
368
+
369
+ where $\mathbf{1}$ represents a $K$ -dimensional vector of ones, which is a trivial feature-shaping function with no effect. Therefore, we set $\| \pmb{\theta} \| = \| \mathbf{1} \| = \sqrt{K}$ .
370
+
371
+ Table 5: OOD detection results of variants of our methods on ImageNet-1k. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results. "Real" means using a real OOD dataset to resolve Problem (Eq. 10). "Gaussian" and "Uniform" indicate using Gaussian and Uniform distributions as surrogate OOD datasets in resolving Problem (Eq. 10), respectively. "Dynamic" denotes solving a non-convex problem with dynamic weight indices defined in Section B.2.
372
+
373
+ <table><tr><td rowspan="2">Method</td><td colspan="2">ResNet50</td><td colspan="2">MobileNetV2</td><td colspan="2">ViT-B-16</td><td colspan="2">ViT-L-16</td><td colspan="2">SWIN-S</td><td colspan="2">SWIN-B</td><td colspan="2">MLP-B</td><td colspan="2">MLP-L</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>69.30</td><td>76.26</td><td>72.58</td><td>77.41</td><td>69.84</td><td>77.40</td><td>70.59</td><td>78.40</td><td>65.12</td><td>80.89</td><td>69.45</td><td>77.26</td><td>70.66</td><td>80.31</td><td>71.63</td><td>79.93</td><td>69.90</td><td>78.48</td></tr><tr><td>ODIN</td><td>61.56</td><td>80.92</td><td>62.91</td><td>82.64</td><td>69.25</td><td>72.60</td><td>70.35</td><td>74.51</td><td>62.35</td><td>78.67</td><td>70.90</td><td>68.36</td><td>65.00</td><td>82.99</td><td>67.90</td><td>81.86</td><td>66.28</td><td>77.82</td></tr><tr><td>Energy</td><td>60.97</td><td>81.01</td><td>61.40</td><td>82.83</td><td>73.96</td><td>67.65</td><td>74.89</td><td>70.11</td><td>66.56</td><td>75.95</td><td>79.53</td><td>60.14</td><td>87.86</td><td>78.42</td><td>84.60</td><td>79.01</td><td>73.72</td><td>74.39</td></tr><tr><td>DICE</td><td>45.32</td><td>83.64</td><td>49.33</td><td>84.63</td><td>89.68</td><td>71.32</td><td>72.38</td><td>67.08</td><td>78.84</td><td>49.06</td><td>77.89</td><td>50.10</td><td>57.12</td><td>80.60</td><td>61.98</td><td>80.75</td><td>66.57</td><td>70.90</td></tr><tr><td>ReAct</td><td>42.29</td><td>86.54</td><td>54.19</td><td>85.37</td><td>73.82</td><td>76.86</td><td>76.16</td><td>81.07</td><td>58.07</td><td>85.10</td><td>70.23</td><td>80.10</td><td>90.13</td><td>77.18</td><td>89.03</td><td>78.32</td><td>69.24</td><td>81.32</td></tr><tr><td>BFAct</td><td>43.87</td><td>86.01</td><td>52.87</td><td>85.78</td><td>77.64</td><td>80.16</td><td>84.02</td><td>81.12</td><td>64.76</td><td>85.57</td><td>68.40</td><td>84.36</td><td>96.04</td><td>67.87</td><td>96.00</td><td>70.59</td><td>72.95</td><td>80.18</td></tr><tr><td>ASH-P</td><td>55.30</td><td>83.00</td><td>59.41</td><td>83.84</td><td>99.36</td><td>21.17</td><td>99.18</td><td>20.27</td><td>99.09</td><td>21.78</td><td>98.83</td><td>22.11</td><td>98.19</td><td>35.85</td><td>98.91</td><td>29.69</td><td>88.53</td><td>39.71</td></tr><tr><td>ASH-B</td><td>35.97</td><td>88.62</td><td>43.59</td><td>88.28</td><td>94.87</td><td>46.68</td><td>93.72</td><td>38.95</td><td>96.48</td><td>36.54</td><td>92.40</td><td>49.85</td><td>99.51</td><td>21.73</td><td>64.91</td><td>83.15</td><td>77.68</td><td>56.73</td></tr><tr><td>ASH-S</td><td>34.70</td><td>90.25</td><td>43.84</td><td>88.24</td><td>99.48</td><td>18.52</td><td>99.42</td><td>18.61</td><td>99.20</td><td>18.26</td><td>99.06</td><td>19.27</td><td>97.61</td><td>33.91</td><td>99.28</td><td>19.29</td><td>84.07</td><td>38.29</td></tr><tr><td>VRA-P</td><td>37.97</td><td>88.58</td><td>49.98</td><td>86.83</td><td>98.39</td><td>35.66</td><td>99.58</td><td>16.70</td><td>99.27</td><td>20.34</td><td>99.46</td><td>17.64</td><td>99.38</td><td>18.73</td><td>99.05</td><td>21.23</td><td>85.39</td><td>38.21</td></tr><tr><td>Real</td><td>42.09</td><td>88.13</td><td>55.05</td><td>85.77</td><td>73.69</td><td>81.65</td><td>75.36</td><td>83.10</td><td>76.06</td><td>83.22</td><td>73.54</td><td>83.11</td><td>81.66</td><td>78.34</td><td>78.82</td><td>79.20</td><td>69.53</td><td>82.82</td></tr><tr><td>Gaussian</td><td>42.05</td><td>88.20</td><td>55.35</td><td>85.67</td><td>71.88</td><td>82.01</td><td>73.99</td><td>83.28</td><td>71.29</td><td>83.99</td><td>70.79</td><td>83.37</td><td>82.09</td><td>77.58</td><td>76.40</td><td>79.79</td><td>67.98</td><td>82.99</td></tr><tr><td>Uniform</td><td>42.36</td><td>88.02</td><td>55.12</td><td>85.73</td><td>73.14</td><td>81.82</td><td>74.30</td><td>83.25</td><td>72.68</td><td>83.74</td><td>70.57</td><td>83.43</td><td>80.84</td><td>76.88</td><td>76.41</td><td>79.74</td><td>68.18</td><td>82.83</td></tr><tr><td>Dynamic</td><td>41.81</td><td>88.13</td><td>53.29</td><td>86.35</td><td>69.33</td><td>82.59</td><td>72.18</td><td>83.23</td><td>66.90</td><td>84.52</td><td>65.98</td><td>83.71</td><td>76.87</td><td>78.35</td><td>78.10</td><td>78.85</td><td>65.56</td><td>83.22</td></tr><tr><td>Ours (V)</td><td>41.84</td><td>88.11</td><td>53.31</td><td>86.36</td><td>69.33</td><td>82.59</td><td>72.17</td><td>83.23</td><td>66.89</td><td>84.53</td><td>65.96</td><td>83.71</td><td>76.59</td><td>78.46</td><td>78.13</td><td>78.85</td><td>65.53</td><td>83.23</td></tr><tr><td>Ours (E)</td><td>39.75</td><td>88.56</td><td>51.77</td><td>86.62</td><td>69.52</td><td>82.66</td><td>78.57</td><td>82.94</td><td>66.28</td><td>84.99</td><td>66.20</td><td>84.21</td><td>83.54</td><td>75.94</td><td>85.50</td><td>78.11</td><td>67.64</td><td>83.00</td></tr></table>
374
+
375
+ # B VARIANTS OF OUR METHOD
376
+
377
+ In this section, we execute a series of experiments on variants of our proposed methods. Initially, we employ real and surrogate OOD datasets to address the optimization problem (Eq. 10) as alternatives to our ID only method. Subsequently, we evaluate an assumption that weight indices of maximum logit will not change after feature shaping. We calculate and report the ratio of changed weights after reshaping. Furthermore, we solve an optimization problem which allows for dynamic weight indices. In this scenario, it is possible that the weight indices of the maximum logits can undergo changes after the reshaping exercise. Our experiments are based on the ImageNet-1k benchmark and the results are illustrated in Table 5.
378
+
379
+ # B.1 EXPLOIT REAL AND SURROGATE OOD DATASETS
380
+
381
+ We draw comparisons between our ID only method and a feature-shaping function optimization approach that accesses both ID and OOD datasets.
382
+
383
+ First, we utilize real OOD datasets to address Problem (Eq. 10). For each model architecture, ImageNet-1k training set (ID) and iNaturalist (OOD) are leveraged to optimize $\theta$ .
384
+
385
+ Second, we incorporate Gaussian and Uniform distributions as surrogate OOD datasets in resolving Problem (Eq. 10), aligning with prior studies (Liang et al., 2017; Sun & Li, 2022). For the Gaussian distribution, each pixel is generated with a mean of 127.5 and a standard deviation of 255. For the uniform distribution, we directly generate random pixel values within the range [0, 255]. Every generated image is of size $32 \times 32$ , and is subsequently clipped and rounded to conform to the [0, 255] value range. For each surrogate OOD dataset, we generate a total of 50,000 samples.
386
+
387
+ As illustrated in Table 5, our method, even without access to OOD data, performs comparably to methods that optimize $\theta$ utilizing both ID and OOD datasets. Moreover, we observe that a more robust objective function, such as Log Loss or Hinge Loss, could potentially outperform our method when given access to real or surrogate OOD datasets. This presents an intriguing avenue for exploration.
388
+
389
+ Table 6: Ratio of changed weight indices $r$ on ImageNet-1k. All numbers are percentages. We randomly sample 10,000 samples from ImageNet-1k training set, and $r$ is defined in Section B.2
390
+
391
+ <table><tr><td></td><td>ResNet50</td><td>MobileNetV2</td><td>ViT-B-16</td><td>ViT-L-16</td><td>SWIN-S</td><td>SWIN-B</td><td>MLP-B</td><td>MLP-L</td><td>Average</td></tr><tr><td>r</td><td>6.8</td><td>6.5</td><td>1.1</td><td>0.5</td><td>1.5</td><td>0.9</td><td>4.3</td><td>0.4</td><td>2.8</td></tr></table>
392
+
393
+ # B.2 DYNAMIC WEIGHT INDICES
394
+
395
+ Our proposed method, as elucidated in Sections 3.2 and 3.3, relies on a fundamental simplifying assumption: the class index of the maximum logit remains unchanged after feature shaping.
396
+
397
+ We initially examine the validity of this assumption by calculating the ratio of weight indices that change after feature shaping. For a given ID training set $S_{\mathrm{train}}$ of $N$ samples, each sample $\pmb{x}^{(i)} \in S_{\mathrm{train}}$ has weight indices corresponding to the maximum logits before and after feature shaping, as follows:
398
+
399
+ $$
400
+ \tilde {k} ^ {(i)} = \underset {k} {\arg \max } \boldsymbol {w} _ {k} ^ {\top} \boldsymbol {z} ^ {(i)} \quad \bar {k} ^ {(i)} = \underset {k} {\arg \max } \boldsymbol {w} _ {k} ^ {\top} \bar {\boldsymbol {z}} ^ {(i)}, \tag {17}
401
+ $$
402
+
403
+ where $w_{k}$ denotes the weight vector corresponding to class $k$ in the final fully-connected layer, $z^{(i)}$ represents the feature representation for the sample $x^{(i)}$ , and $\bar{z}^{(i)}$ is the reshaped feature. Subsequently, we compute the ratio of changed weight indices as:
404
+
405
+ $$
406
+ r = \frac {\sum_ {i = 1} ^ {N} \mathbb {1} \left\{\tilde {k} ^ {(i)} \neq \bar {k} ^ {(i)} \right\}}{N} \times 100 \% \tag{18}
407
+ $$
408
+
409
+ We randomly sample 10,000 samples from ImageNet-1k training set. The ratios of changed weights with different models are presented in Table 6. As observed, the ratios are markedly small, which further substantiates the credibility of our assumption pertaining to fixed weights.
410
+
411
+ Furthermore, we propose a straightforward Alternating Optimization algorithm for dynamic weight indices. Each iteration involves three primary steps. Firstly, we optimize our feature-shaping function by resolving the optimization problem (Eq. 10) given the weights relative to the maximum logits for each sample. Next, we reshape features utilizing our optimized feature-shaping function. Lastly, we update the weights with reshaped features. To expedite the process, we randomly subsample 10,000 samples from the ID training set during each iteration and utilize them for optimization. Ten iterations are run for each model architecture. The results can be viewed in Table 5.
412
+
413
+ Predictably, this approach yields performance metrics that closely mirror our initial method. Despite the incorporation of dynamic weight indices, the optimized feature-shaping function does not significantly differ from that obtained with fixed weights. This observation reinforces the validity of our original assumption: the class index of the maximum logit remains constant following reshaping.
414
+
415
+ # C ROBUSTNESS OF OUR METHOD TO THE CHOSEN LOWER AND UPPER LIMITS OF FEATURES
416
+
417
+ Given that feature distributions typically exhibit long-tailed characteristics, we select the 0.1 and 99.9 percentiles of all features in a training set as the lower and upper limits of feature values, respectively, to optimize our shaping function. Here we validate different choices of percentiles on the performance of our method, on the ImageNet-1k benchmark with ResNet50. The results are shown in Table 7.
418
+
419
+ Our method exhibits a insensitivity to the chooses of lower and upper limits. Although in the main experiments we consistently use the 0.1 and 99.9 percentiles, exploring alternate settings reveals potential for slight improvements.
420
+
421
+ Table 7: Performance of our method with different choices of percentiles of all features on the ImageNet-1k benchmark with ResNet50.
422
+
423
+ <table><tr><td>Lower percentile</td><td>Lower limit</td><td>Upper percentile</td><td>Upper limit</td><td>FPR95</td><td>AUC</td></tr><tr><td>0.0</td><td>0.00</td><td>100.0</td><td>20.65</td><td>42.42</td><td>87.90</td></tr><tr><td>0.01</td><td>0.00</td><td>99.99</td><td>5.64</td><td>42.22</td><td>87.97</td></tr><tr><td>0.05</td><td>0.00</td><td>99.95</td><td>4.40</td><td>41.97</td><td>88.04</td></tr><tr><td>0.1</td><td>0.00</td><td>99.9</td><td>3.88</td><td>41.82</td><td>88.11</td></tr><tr><td>0.5</td><td>0.00</td><td>99.5</td><td>2.74</td><td>41.01</td><td>88.44</td></tr><tr><td>1.0</td><td>0.00</td><td>99.0</td><td>2.28</td><td>41.00</td><td>88.50</td></tr><tr><td>5.0</td><td>0.03</td><td>95.0</td><td>1.35</td><td>47.85</td><td>86.41</td></tr><tr><td>10.0</td><td>0.06</td><td>90.0</td><td>1.01</td><td>57.45</td><td>83.60</td></tr></table>
424
+
425
+ # D EMPIRICAL ANALYSIS OF THE OPTIMAL SHAPING FUNCTION
426
+
427
+ ![](images/d5f3f9b7d5e04cb8d5c0c8f1594bbc340894a45a2f9f5b39fb2918b777f7baa7.jpg)
428
+ Figure 5: Empirical analysis to explain a specific form of the optimal shaping function.
429
+
430
+ Here we try to provide empirical insights into the specific form of our optimal shaping function based on a ResNet50 model pretrained on ImageNet-1k, which is shown in Fig. 2. Specifically, we feed ImageNet-1k val (ID) and iNaturalist (OOD) samples to the model, getting the feature representation $\mathbf{z} \in \mathbb{R}^{M}$ and the weights w.r.t. the maximum logit $\mathbf{w}^{\mathrm{max}} \in \mathbb{R}^{M}$ for each sample. The results are shown in Fig. 5. The red and green lines represent the mean weights assigned to different feature values for ID and OOD samples, respectively. The colored regions represent standard deviations.
431
+
432
+ An interesting aspect is that our approach flips the sign of low-value features, contrary to previous techniques like ReAct and ASH. Our experiments revealed that low-value features $(z < 0.5)$ often align with negative weights $(w^{\max} < 0)$ . Intriguingly, ID samples generally align these features with smaller weights than OOD samples (on average, $w_{\mathrm{ID}}^{\max} < w_{\mathrm{OOD}}^{\max} < 0$ ). By flipping the sign of these low-value features, we can enhance the maximum logits more significantly for ID samples than for OOD samples, thereby boosting OOD detection performance.
433
+
434
+ However, note that the shape of the optimal shaping function is influenced by multiple factors. For instance, while ID samples are generally assigned larger weights for high-value features, OOD samples tend to exhibit a greater number of these features, as observed in prior studies (Sun et al., 2021). This aspect reduces the impact of high-value features in distinguishing between ID and OOD samples, leading to the decrease of $\theta$ for those features.
435
+
436
+ Besides, note that our analysis above is grounded in the context of a ResNet50 model pre-trained on ImageNet-1k. The form of the optimal shaping function may differ when applied to other model architectures or datasets.
437
+
438
+ # E DETAILED OOD DETECTION PERFORMANCE
439
+
440
+ We report additional results in Tables 8, 9, and 10 to supplement the results provided in Table 1. Specifically, we provide detailed performance for all eight test OOD datasets for the ImageNet-1k benchmark for three representative models, including ResNet50, ViT-B-16, and MLP-B.
441
+
442
+ # F STANDARD IMAGENET-1K BENCHMARK COMPARISON
443
+
444
+ Standard ImageNet-1k benchmark uses a subset of OOD datasets of ours, and these results can be found in Tables 8, 9, and 10.
445
+
446
+ Besides, we pick the results of standard ImageNet-1k benchmark in our experiments and calculated the new average performance. Our method still outperforms prior works on this standard benchmark. Results are shown in Table 11.
447
+
448
+ Table 8: OOD detection results with ResNet50 on ImageNet-1k. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results. "Real" means using a real OOD dataset to resolve Problem (Eq. 10). "Gaussian" and "Uniform" indicate using Gaussian and Uniform distributions as surrogate OOD datasets in resolving Problem (Eq. 10), respectively. "Dynamic" denotes solving a non-convex problem with dynamic weight indices defined in Section B.2.
449
+
450
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Species</td><td colspan="2">iNaturalist</td><td colspan="2">SUN</td><td colspan="2">Places</td><td colspan="2">OpenImage-O</td><td colspan="2">ImageNet-O</td><td colspan="2">Texture</td><td colspan="2">MNIST</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>79.53</td><td>75.15</td><td>52.77</td><td>88.42</td><td>68.58</td><td>81.75</td><td>71.57</td><td>80.63</td><td>63.58</td><td>84.98</td><td>100.00</td><td>28.64</td><td>66.13</td><td>80.46</td><td>52.25</td><td>90.02</td><td>69.30</td><td>76.26</td></tr><tr><td>ODIN</td><td>80.90</td><td>72.88</td><td>50.86</td><td>91.14</td><td>59.89</td><td>86.59</td><td>65.67</td><td>84.18</td><td>57.29</td><td>89.23</td><td>100.00</td><td>40.86</td><td>54.31</td><td>86.40</td><td>23.54</td><td>96.11</td><td>61.56</td><td>80.92</td></tr><tr><td>Energy</td><td>82.40</td><td>72.03</td><td>53.93</td><td>90.59</td><td>58.27</td><td>86.73</td><td>65.40</td><td>84.13</td><td>57.21</td><td>89.12</td><td>100.00</td><td>41.92</td><td>52.29</td><td>86.73</td><td>18.23</td><td>96.79</td><td>60.97</td><td>81.01</td></tr><tr><td>DICE</td><td>74.64</td><td>74.30</td><td>26.66</td><td>94.49</td><td>36.09</td><td>90.98</td><td>47.66</td><td>87.73</td><td>45.13</td><td>88.77</td><td>98.10</td><td>43.01</td><td>32.46</td><td>90.46</td><td>1.79</td><td>99.40</td><td>45.32</td><td>83.64</td></tr><tr><td>ReAct</td><td>68.64</td><td>77.41</td><td>19.55</td><td>96.39</td><td>24.00</td><td>94.41</td><td>33.43</td><td>91.93</td><td>43.68</td><td>90.53</td><td>98.05</td><td>52.43</td><td>45.83</td><td>90.45</td><td>5.11</td><td>98.76</td><td>42.29</td><td>86.54</td></tr><tr><td>BFAct</td><td>68.08</td><td>77.76</td><td>20.53</td><td>96.22</td><td>20.94</td><td>95.24</td><td>30.17</td><td>92.62</td><td>49.71</td><td>86.48</td><td>96.20</td><td>54.15</td><td>54.01</td><td>87.84</td><td>11.33</td><td>97.78</td><td>43.87</td><td>86.01</td></tr><tr><td>ASH-P</td><td>80.09</td><td>73.19</td><td>44.57</td><td>92.51</td><td>52.88</td><td>88.35</td><td>61.79</td><td>85.58</td><td>50.45</td><td>90.67</td><td>100.00</td><td>45.99</td><td>42.06</td><td>89.70</td><td>10.57</td><td>97.99</td><td>55.30</td><td>83.00</td></tr><tr><td>ASH-B</td><td>66.08</td><td>80.33</td><td>14.21</td><td>97.32</td><td>22.08</td><td>95.10</td><td>33.45</td><td>92.31</td><td>37.63</td><td>91.97</td><td>93.05</td><td>56.82</td><td>21.17</td><td>95.50</td><td>0.06</td><td>99.58</td><td>35.97</td><td>88.62</td></tr><tr><td>ASH-S</td><td>64.61</td><td>81.45</td><td>11.49</td><td>97.87</td><td>27.98</td><td>94.02</td><td>39.78</td><td>90.98</td><td>32.74</td><td>92.75</td><td>89.05</td><td>67.51</td><td>11.93</td><td>97.60</td><td>0.01</td><td>99.80</td><td>34.70</td><td>90.25</td></tr><tr><td>VRA-P</td><td>69.61</td><td>76.93</td><td>15.70</td><td>97.12</td><td>26.94</td><td>94.25</td><td>37.85</td><td>91.27</td><td>36.37</td><td>92.93</td><td>95.55</td><td>60.79</td><td>21.47</td><td>95.62</td><td>0.30</td><td>99.70</td><td>37.97</td><td>88.58</td></tr><tr><td>Real</td><td>68.91</td><td>78.58</td><td>18.64</td><td>96.53</td><td>37.76</td><td>92.69</td><td>47.31</td><td>89.97</td><td>39.63</td><td>92.33</td><td>97.45</td><td>60.01</td><td>24.15</td><td>95.57</td><td>2.90</td><td>99.34</td><td>42.09</td><td>88.13</td></tr><tr><td>Gaussian</td><td>69.39</td><td>78.31</td><td>18.88</td><td>96.49</td><td>37.54</td><td>92.68</td><td>47.43</td><td>89.88</td><td>39.60</td><td>92.32</td><td>97.05</td><td>60.85</td><td>23.24</td><td>95.76</td><td>3.25</td><td>99.30</td><td>42.05</td><td>88.20</td></tr><tr><td>Uniform</td><td>69.34</td><td>78.49</td><td>18.83</td><td>96.51</td><td>38.71</td><td>92.51</td><td>47.98</td><td>89.81</td><td>39.51</td><td>92.46</td><td>97.70</td><td>59.49</td><td>24.24</td><td>95.54</td><td>2.58</td><td>99.37</td><td>42.36</td><td>88.02</td></tr><tr><td>Dynamic</td><td>68.81</td><td>78.58</td><td>18.33</td><td>96.63</td><td>36.87</td><td>92.87</td><td>45.94</td><td>90.17</td><td>39.34</td><td>92.54</td><td>97.80</td><td>59.44</td><td>24.70</td><td>95.50</td><td>2.68</td><td>99.34</td><td>41.81</td><td>88.13</td></tr><tr><td>Ours (V)</td><td>68.83</td><td>78.59</td><td>18.33</td><td>96.63</td><td>37.03</td><td>92.84</td><td>45.97</td><td>90.15</td><td>39.29</td><td>92.54</td><td>97.80</td><td>59.33</td><td>24.80</td><td>95.48</td><td>2.67</td><td>99.34</td><td>41.84</td><td>88.11</td></tr><tr><td>Ours (E)</td><td>68.46</td><td>78.51</td><td>15.90</td><td>97.00</td><td>34.00</td><td>93.28</td><td>43.61</td><td>90.50</td><td>37.07</td><td>92.82</td><td>96.25</td><td>60.70</td><td>21.61</td><td>95.99</td><td>0.85</td><td>99.66</td><td>39.75</td><td>88.56</td></tr></table>
451
+
452
+ Table 9: OOD detection results with ViT-B-16 on ImageNet-1k. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results. "Real" means using a real OOD dataset to resolve Problem (Eq. 10). "Gaussian" and "Uniform" indicate using Gaussian and Uniform distributions as surrogate OOD datasets in resolving Problem (Eq. 10), respectively. "Dynamic" denotes solving a non-convex problem with dynamic weight indices defined in Section B.2.
453
+
454
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Species</td><td colspan="2">iNaturalist</td><td colspan="2">SUN</td><td colspan="2">Places</td><td colspan="2">OpenImage-O</td><td colspan="2">ImageNet-O</td><td colspan="2">Texture</td><td colspan="2">MNIST</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>80.56</td><td>72.91</td><td>51.52</td><td>88.16</td><td>66.54</td><td>80.93</td><td>68.67</td><td>80.38</td><td>59.93</td><td>84.81</td><td>90.95</td><td>58.80</td><td>60.23</td><td>82.99</td><td>80.29</td><td>70.23</td><td>69.84</td><td>77.40</td></tr><tr><td>ODIN</td><td>82.18</td><td>67.96</td><td>52.26</td><td>85.24</td><td>66.89</td><td>76.35</td><td>69.14</td><td>75.06</td><td>58.75</td><td>81.55</td><td>89.05</td><td>54.30</td><td>56.68</td><td>81.69</td><td>79.03</td><td>58.65</td><td>69.25</td><td>72.60</td></tr><tr><td>Energy</td><td>86.54</td><td>61.88</td><td>64.08</td><td>79.24</td><td>72.77</td><td>70.24</td><td>74.31</td><td>68.44</td><td>64.93</td><td>76.46</td><td>87.00</td><td>52.71</td><td>58.48</td><td>79.30</td><td>83.61</td><td>52.92</td><td>73.96</td><td>67.65</td></tr><tr><td>DICE</td><td>88.09</td><td>65.08</td><td>90.43</td><td>74.49</td><td>94.27</td><td>65.76</td><td>92.81</td><td>65.19</td><td>82.61</td><td>77.51</td><td>85.85</td><td>70.86</td><td>83.67</td><td>77.63</td><td>99.68</td><td>74.02</td><td>89.68</td><td>71.32</td></tr><tr><td>ReAct</td><td>86.82</td><td>66.08</td><td>65.15</td><td>85.98</td><td>72.46</td><td>78.97</td><td>73.74</td><td>77.51</td><td>64.71</td><td>84.19</td><td>87.30</td><td>66.70</td><td>56.95</td><td>84.65</td><td>83.41</td><td>70.81</td><td>73.82</td><td>76.86</td></tr><tr><td>BFAct</td><td>90.52</td><td>64.43</td><td>80.01</td><td>84.62</td><td>77.86</td><td>81.10</td><td>77.55</td><td>79.61</td><td>69.66</td><td>85.45</td><td>87.15</td><td>73.84</td><td>57.61</td><td>85.67</td><td>80.76</td><td>86.53</td><td>77.64</td><td>80.16</td></tr><tr><td>ASH-P</td><td>98.38</td><td>28.99</td><td>99.95</td><td>10.42</td><td>99.69</td><td>19.83</td><td>99.66</td><td>21.02</td><td>99.57</td><td>18.91</td><td>99.15</td><td>30.70</td><td>98.49</td><td>29.92</td><td>100.00</td><td>9.57</td><td>99.36</td><td>21.17</td></tr><tr><td>ASH-B</td><td>94.34</td><td>53.78</td><td>92.36</td><td>48.20</td><td>95.30</td><td>52.35</td><td>95.75</td><td>52.18</td><td>92.74</td><td>52.73</td><td>94.60</td><td>51.53</td><td>93.90</td><td>43.84</td><td>99.96</td><td>18.86</td><td>94.87</td><td>46.68</td></tr><tr><td>ASH-S</td><td>98.11</td><td>28.50</td><td>99.99</td><td>6.71</td><td>99.73</td><td>16.70</td><td>99.66</td><td>18.33</td><td>99.84</td><td>14.07</td><td>99.40</td><td>28.51</td><td>99.11</td><td>24.15</td><td>100.00</td><td>11.20</td><td>99.48</td><td>18.52</td></tr><tr><td>VRA-P</td><td>98.14</td><td>39.19</td><td>99.78</td><td>23.06</td><td>98.83</td><td>30.67</td><td>98.89</td><td>32.59</td><td>98.28</td><td>37.46</td><td>98.65</td><td>43.67</td><td>94.57</td><td>52.22</td><td>100.00</td><td>26.40</td><td>98.39</td><td>35.66</td></tr><tr><td>Real</td><td>85.07</td><td>67.00</td><td>64.16</td><td>88.03</td><td>70.73</td><td>83.05</td><td>71.76</td><td>81.74</td><td>65.56</td><td>87.14</td><td>89.60</td><td>73.69</td><td>63.09</td><td>84.63</td><td>79.53</td><td>87.93</td><td>73.69</td><td>81.65</td></tr><tr><td>Gaussian</td><td>84.14</td><td>67.56</td><td>61.10</td><td>88.71</td><td>69.13</td><td>83.41</td><td>70.28</td><td>82.07</td><td>63.32</td><td>87.51</td><td>89.70</td><td>73.48</td><td>60.16</td><td>85.20</td><td>77.20</td><td>88.16</td><td>71.88</td><td>82.01</td></tr><tr><td>Uniform</td><td>84.69</td><td>67.25</td><td>62.56</td><td>88.44</td><td>70.60</td><td>83.27</td><td>71.37</td><td>81.93</td><td>64.54</td><td>87.41</td><td>90.20</td><td>73.59</td><td>61.60</td><td>84.94</td><td>79.54</td><td>87.71</td><td>73.14</td><td>81.82</td></tr><tr><td>Dynamic</td><td>83.20</td><td>69.47</td><td>56.06</td><td>89.91</td><td>66.63</td><td>84.17</td><td>68.48</td><td>82.69</td><td>60.21</td><td>88.17</td><td>89.50</td><td>71.82</td><td>56.81</td><td>86.43</td><td>73.75</td><td>88.08</td><td>69.33</td><td>82.59</td></tr><tr><td>Ours (V)</td><td>83.19</td><td>69.47</td><td>56.09</td><td>89.91</td><td>66.63</td><td>84.17</td><td>68.51</td><td>82.69</td><td>60.21</td><td>88.18</td><td>89.50</td><td>71.82</td><td>56.79</td><td>86.43</td><td>73.75</td><td>88.08</td><td>69.33</td><td>82.59</td></tr><tr><td>Ours (E)</td><td>84.56</td><td>68.70</td><td>60.09</td><td>89.55</td><td>68.02</td><td>83.92</td><td>69.42</td><td>82.36</td><td>61.77</td><td>88.07</td><td>87.95</td><td>72.74</td><td>54.61</td><td>86.72</td><td>69.72</td><td>89.21</td><td>69.52</td><td>82.66</td></tr></table>
455
+
456
+ Table 10: OOD detection results with MLP-B on ImageNet-1k. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. All values are percentages averaged over different OOD datasets. Bold numbers are superior results whereas underlined numbers denote the second and third best results. "Real" means using a real OOD dataset to resolve Problem (Eq. 10). "Gaussian" and "Uniform" indicate using Gaussian and Uniform distributions as surrogate OOD datasets in resolving Problem (Eq. 10), respectively. "Dynamic" denotes solving a non-convex problem with dynamic weight indices defined in Section B.2.
457
+
458
+ <table><tr><td rowspan="2">Method</td><td colspan="2">Species</td><td colspan="2">iNaturalist</td><td colspan="2">SUN</td><td colspan="2">Places</td><td colspan="2">OpenImage-O</td><td colspan="2">ImageNet-O</td><td colspan="2">Texture</td><td colspan="2">MNIST</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>82.15</td><td>73.21</td><td>58.99</td><td>86.84</td><td>72.98</td><td>80.92</td><td>75.52</td><td>79.83</td><td>72.42</td><td>82.59</td><td>90.95</td><td>65.84</td><td>69.95</td><td>80.27</td><td>42.36</td><td>92.95</td><td>70.66</td><td>80.31</td></tr><tr><td>ODIN</td><td>80.99</td><td>73.39</td><td>53.31</td><td>89.53</td><td>67.47</td><td>84.24</td><td>71.67</td><td>82.44</td><td>68.06</td><td>85.51</td><td>90.45</td><td>68.69</td><td>59.75</td><td>84.40</td><td>28.33</td><td>95.73</td><td>65.00</td><td>82.99</td></tr><tr><td>Energy</td><td>89.04</td><td>71.84</td><td>84.31</td><td>83.65</td><td>86.85</td><td>79.35</td><td>87.15</td><td>78.42</td><td>82.30</td><td>81.24</td><td>88.40</td><td>67.53</td><td>85.25</td><td>78.41</td><td>99.58</td><td>86.91</td><td>87.86</td><td>78.42</td></tr><tr><td>DICE</td><td>71.40</td><td>75.65</td><td>44.44</td><td>90.19</td><td>64.69</td><td>80.84</td><td>70.31</td><td>78.08</td><td>63.89</td><td>80.26</td><td>89.90</td><td>56.33</td><td>52.20</td><td>84.33</td><td>0.12</td><td>99.11</td><td>57.12</td><td>80.60</td></tr><tr><td>ReAct</td><td>91.20</td><td>70.81</td><td>91.47</td><td>80.11</td><td>91.83</td><td>77.31</td><td>90.99</td><td>76.82</td><td>85.66</td><td>79.60</td><td>87.85</td><td>67.74</td><td>87.36</td><td>77.20</td><td>94.65</td><td>87.89</td><td>90.13</td><td>77.18</td></tr><tr><td>BFAct</td><td>95.94</td><td>64.38</td><td>98.60</td><td>65.76</td><td>97.16</td><td>67.50</td><td>96.66</td><td>68.74</td><td>94.69</td><td>70.00</td><td>90.85</td><td>66.57</td><td>94.61</td><td>67.83</td><td>99.85</td><td>72.19</td><td>96.04</td><td>67.87</td></tr><tr><td>ASH-P</td><td>97.25</td><td>46.50</td><td>99.22</td><td>32.82</td><td>98.72</td><td>40.24</td><td>97.74</td><td>43.07</td><td>98.67</td><td>38.34</td><td>94.55</td><td>52.65</td><td>99.38</td><td>31.38</td><td>100.00</td><td>1.81</td><td>98.19</td><td>35.85</td></tr><tr><td>ASH-B</td><td>99.67</td><td>25.98</td><td>100.00</td><td>15.86</td><td>99.71</td><td>19.84</td><td>99.74</td><td>21.36</td><td>99.82</td><td>24.19</td><td>97.25</td><td>46.39</td><td>99.86</td><td>19.48</td><td>100.00</td><td>0.74</td><td>99.51</td><td>21.73</td></tr><tr><td>ASH-S</td><td>96.50</td><td>42.89</td><td>98.42</td><td>32.35</td><td>98.03</td><td>38.00</td><td>97.90</td><td>38.63</td><td>97.65</td><td>37.03</td><td>93.50</td><td>50.19</td><td>98.90</td><td>30.41</td><td>100.00</td><td>1.80</td><td>97.61</td><td>33.91</td></tr><tr><td>VRA-P</td><td>98.88</td><td>29.11</td><td>99.92</td><td>11.57</td><td>99.73</td><td>17.54</td><td>99.41</td><td>20.71</td><td>99.77</td><td>16.82</td><td>97.80</td><td>37.15</td><td>99.50</td><td>16.49</td><td>100.00</td><td>0.44</td><td>99.38</td><td>18.73</td></tr><tr><td>Real</td><td>86.49</td><td>71.56</td><td>71.23</td><td>84.79</td><td>79.47</td><td>79.42</td><td>81.95</td><td>78.44</td><td>78.30</td><td>81.00</td><td>91.00</td><td>66.46</td><td>78.24</td><td>78.36</td><td>86.61</td><td>86.69</td><td>81.66</td><td>78.34</td></tr><tr><td>Gaussian</td><td>87.00</td><td>71.10</td><td>73.67</td><td>83.35</td><td>79.82</td><td>78.80</td><td>82.07</td><td>77.86</td><td>79.06</td><td>79.83</td><td>91.20</td><td>65.95</td><td>78.90</td><td>77.64</td><td>85.01</td><td>86.10</td><td>82.09</td><td>77.58</td></tr><tr><td>Uniform</td><td>86.92</td><td>70.35</td><td>75.45</td><td>81.81</td><td>80.47</td><td>77.69</td><td>82.25</td><td>77.07</td><td>79.29</td><td>78.56</td><td>90.70</td><td>65.63</td><td>78.05</td><td>76.45</td><td>73.59</td><td>87.51</td><td>80.84</td><td>76.88</td></tr><tr><td>Dynamic</td><td>87.24</td><td>70.88</td><td>76.95</td><td>82.17</td><td>83.83</td><td>77.26</td><td>84.75</td><td>76.12</td><td>78.65</td><td>80.31</td><td>90.70</td><td>65.68</td><td>76.76</td><td>79.17</td><td>36.06</td><td>95.19</td><td>76.87</td><td>78.35</td></tr><tr><td>Ours (V)</td><td>86.98</td><td>70.98</td><td>76.40</td><td>82.36</td><td>83.45</td><td>77.42</td><td>84.67</td><td>76.27</td><td>78.35</td><td>80.46</td><td>90.85</td><td>65.77</td><td>76.40</td><td>79.26</td><td>35.66</td><td>95.19</td><td>76.59</td><td>78.46</td></tr><tr><td>Ours (E)</td><td>91.67</td><td>69.17</td><td>92.48</td><td>76.83</td><td>91.83</td><td>73.88</td><td>91.86</td><td>73.34</td><td>87.14</td><td>77.34</td><td>90.40</td><td>66.02</td><td>89.29</td><td>75.33</td><td>33.61</td><td>95.61</td><td>83.54</td><td>75.94</td></tr></table>
459
+
460
+ Table 11: OOD detection results on ImageNet-1k where OOD datasets are iNaturalist, SUN, Places, and Textures. $\uparrow$ indicates larger values are better and $\downarrow$ indicates smaller values are better. Bold numbers are superior results whereas underlined numbers denote the second and third best results.
461
+
462
+ <table><tr><td rowspan="2">Method</td><td colspan="2">ResNet50</td><td colspan="2">MobileNetV2</td><td colspan="2">ViT-B-16</td><td colspan="2">ViT-L-16</td><td colspan="2">SWIN-S</td><td colspan="2">SWIN-B</td><td colspan="2">MLP-B</td><td colspan="2">MLP-L</td><td colspan="2">Average</td></tr><tr><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td><td>FP↓</td><td>AU↑</td></tr><tr><td>MSP</td><td>64.76</td><td>82.82</td><td>70.47</td><td>80.67</td><td>61.74</td><td>83.12</td><td>65.22</td><td>81.75</td><td>59.68</td><td>83.75</td><td>62.79</td><td>81.38</td><td>69.36</td><td>81.97</td><td>76.01</td><td>80.04</td><td>66.25</td><td>81.94</td></tr><tr><td>ODIN</td><td>57.68</td><td>87.08</td><td>60.42</td><td>86.39</td><td>61.24</td><td>79.59</td><td>64.06</td><td>78.65</td><td>57.30</td><td>80.99</td><td>64.36</td><td>73.77</td><td>63.05</td><td>85.15</td><td>73.17</td><td>82.29</td><td>62.66</td><td>81.74</td></tr><tr><td>Energy</td><td>57.47</td><td>87.05</td><td>58.87</td><td>86.59</td><td>67.41</td><td>74.31</td><td>68.43</td><td>74.65</td><td>62.82</td><td>77.65</td><td>75.32</td><td>64.87</td><td>85.89</td><td>79.96</td><td>84.44</td><td>79.38</td><td>70.08</td><td>78.06</td></tr><tr><td>DICE</td><td>35.72</td><td>90.92</td><td>41.93</td><td>89.60</td><td>90.30</td><td>70.77</td><td>71.77</td><td>67.12</td><td>88.68</td><td>39.90</td><td>87.92</td><td>40.71</td><td>57.91</td><td>83.36</td><td>66.23</td><td>81.53</td><td>67.55</td><td>70.49</td></tr><tr><td>ReAct</td><td>30.70</td><td>93.30</td><td>50.09</td><td>88.81</td><td>67.08</td><td>81.78</td><td>69.58</td><td>83.50</td><td>50.09</td><td>87.92</td><td>64.86</td><td>83.24</td><td>90.41</td><td>77.86</td><td>87.01</td><td>79.13</td><td>63.73</td><td>84.44</td></tr><tr><td>BFAct</td><td>31.41</td><td>92.98</td><td>48.35</td><td>89.19</td><td>73.26</td><td>82.75</td><td>81.16</td><td>82.69</td><td>57.20</td><td>88.21</td><td>65.44</td><td>86.62</td><td>96.76</td><td>67.46</td><td>96.36</td><td>72.16</td><td>68.74</td><td>82.76</td></tr><tr><td>ASH-P</td><td>50.33</td><td>89.04</td><td>57.15</td><td>87.34</td><td>99.45</td><td>20.30</td><td>99.42</td><td>18.37</td><td>99.11</td><td>19.21</td><td>99.08</td><td>20.59</td><td>98.77</td><td>36.88</td><td>99.04</td><td>29.20</td><td>87.79</td><td>40.11</td></tr><tr><td>ASH-B</td><td>22.73</td><td>95.06</td><td>35.66</td><td>92.13</td><td>94.33</td><td>49.14</td><td>94.08</td><td>37.89</td><td>96.42</td><td>30.00</td><td>91.47</td><td>47.38</td><td>99.83</td><td>19.14</td><td>66.05</td><td>84.31</td><td>75.07</td><td>56.88</td></tr><tr><td>ASH-S</td><td>22.80</td><td>95.12</td><td>38.67</td><td>90.95</td><td>99.62</td><td>16.47</td><td>99.55</td><td>16.72</td><td>99.36</td><td>14.98</td><td>99.35</td><td>17.75</td><td>98.31</td><td>34.85</td><td>99.36</td><td>18.65</td><td>82.13</td><td>38.18</td></tr><tr><td>VRA-P</td><td>25.49</td><td>94.57</td><td>45.53</td><td>89.85</td><td>98.02</td><td>34.64</td><td>99.62</td><td>14.99</td><td>99.38</td><td>18.15</td><td>99.65</td><td>15.51</td><td>99.64</td><td>16.58</td><td>99.23</td><td>19.49</td><td>83.32</td><td>37.97</td></tr><tr><td>Ours (V)</td><td>31.53</td><td>93.78</td><td>49.09</td><td>89.62</td><td>62.01</td><td>85.80</td><td>68.61</td><td>85.10</td><td>61.47</td><td>87.04</td><td>62.96</td><td>86.09</td><td>80.23</td><td>78.83</td><td>82.59</td><td>78.92</td><td>62.31</td><td>85.65</td></tr><tr><td>Ours (E)</td><td>28.78</td><td>94.19</td><td>46.92</td><td>89.90</td><td>63.04</td><td>85.64</td><td>74.96</td><td>84.69</td><td>60.67</td><td>87.50</td><td>63.50</td><td>86.55</td><td>91.37</td><td>74.85</td><td>88.49</td><td>78.22</td><td>64.71</td><td>85.19</td></tr></table>
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:055fd8c276e8ca96adc59dbbabf411833a20ee8dd0eca0343774dbff6cfcd80e
3
+ size 1429000
2024/Towards Optimal Feature-Shaping Methods for Out-of-Distribution Detection/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Poisoning Fair Representations/807331d8-8c30-4666-93f8-ff12b1b2bd80_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:2ded647262dc4e794e1e2b7e3268fa71bebccd2bfeb795e2ebdcc91ddf768e4f
3
+ size 4220460
2024/Towards Poisoning Fair Representations/full.md ADDED
@@ -0,0 +1,886 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS POISONING FAIR REPRESENTATIONS
2
+
3
+ Tianci Liu $^{1}$ , Haoyu Wang $^{1}$ , Feijie Wu $^{1}$ , Hengtong Zhang $^{2}$ , Pan Li $^{3}$ , Lu Su $^{1}$ , Jing Gao $^{1}$
4
+
5
+ $^{1}$ Purdue University $^{2}$ Tencent AI Lab $^{3}$ Georgia Institute of Technology
6
+
7
+ 1{liu3351, wang5346, wu1977, lusu, jinggao}@purdue.edu
8
+
9
+ 2htzhang.work@gmail.com 3panli@gatech.edu
10
+
11
+ # ABSTRACT
12
+
13
+ Fair machine learning seeks to mitigate model prediction bias against certain demographic subgroups such as elder and female. Recently, fair representation learning (FRL) trained by deep neural networks has demonstrated superior performance, whereby representations containing no demographic information are inferred from the data and then used as the input to classification or other downstream tasks. Despite the development of FRL methods, their vulnerability under data poisoning attack, a popular protocol to benchmark model robustness under adversarial scenarios, is under-explored. Data poisoning attacks have been developed for classical fair machine learning methods which incorporate fairness constraints into shallow-model classifiers. Nonetheless, these attacks fall short in FRL due to notably different fairness goals and model architectures. This work proposes the first data poisoning framework attacking FRL. We induce the model to output unfair representations that contain as much demographic information as possible by injecting carefully crafted poisoning samples into the training data. This attack entails a prohibitive bilevel optimization, wherefore an effective approximated solution is proposed. A theoretical analysis on the needed number of poisoning samples is derived and sheds light on defending against the attack. Experiments on benchmark fairness datasets and state-of-the-art fair representation learning models demonstrate the superiority of our attack.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Machine learning algorithms have been thriving in high-stake applications such as credit risk analysis. Despite their impressive performance, many algorithms suffered from the so-called fairness issue, i.e., they were shown biased against under-represented demographic subgroups such as females in decision making (Barocas & Selfst, 2016; Buolamwini & Gebru, 2018). As remedies, fair machine learning has accumulated a vast literature that proposes various fairness notions and attempts to achieve them (Pedreshi et al., 2008; Dwork et al., 2011; Hardt et al., 2016). For shallow models such as logistic regression and support vector machine, fairness notions are often defined upon scalar model predictions and have been well-studied, see Kamishima et al. (2011); Zafar et al. (2017) and reference therein for instances. We refer to this family of work as classical fair machine learning. Recently, fair representation learning (FRL) with deep neural networks (DNNs) has attracted great attention (Xie et al., 2017; Madras et al., 2018; Creager et al., 2019; Sarhan et al., 2020). FRL learns high-dimensional representations for downstream tasks that contain minimal information of sensitive features (i.e., the memberships of demographic subgroups). These information-based fairness notions equip FRL with higher transferability than classical methods (Creager et al., 2019).
18
+
19
+ Despite the success of fair machine learning methods, not much is known about their vulnerability under data poisoning attacks until very recent studies (Chang et al., 2020; Solans et al., 2021; Mehrabi et al., 2021). Data poisoning attacks aim to maliciously control a model's behaviour to achieve some attack goal by injecting poisoning samples to its training data and are widely used to benchmark the robustness of machine learning models in adversarial scenarios (Bard & Falk, 1982; Biggio et al., 2012). Recently researchers successfully attacked classical fair machine learning methods such as fair logistic regression (Mehrabi et al., 2021) and exacerbated bias in model predictions, thereby hurting fairness. But it is still an open question whether FRL suffers from a similar threat<sup>1</sup>.
20
+
21
+ Notwithstanding, devising a poisoning attack to degrade fairness of representations proves to be a non-trivial task. The difficulty is from two aspects. First, high-dimensional representations are more complicated to evaluate fairness than scalar predictions in classical fair machine learning. This makes existing attack goals for fairness degradation against the latter fall short to apply. Secondly, fair representations implicitly depend on the training data, and non-convex DNNs make this dependency hard to control by previous optimization- or heuristic-based attacks on classical fair machine learning. Optimization-based attacks (Solans et al., 2021) need the victim model to be simple enough (e.g., convex) to analyze. Heuristics such as label flipping (Mehrabi et al., 2021) do not directly optimize the attack goal, thereby often requiring great effort to design good manipulations to success.
22
+
23
+ We propose the first data poisoning attack that directly targets on fairness of high-dimensional representations as shown in Figure 1. Our attack is optimization-based with a new attack goal. Specifically, following the common principle behind FRL that ideal fair representations should contain no information of sensitive features (Moyer et al., 2018; Zhao et al., 2019; Creager et al., 2019), we devise our attack goal to maximize the mutual information (MI) between the learned representations and sensitive features. The attack goal entails a bilevel optimization, whose challenges lie in two-folds.
24
+
25
+ Firstly, MI does not admit analytic form, making its maximization challenging. Instead, a variational lower bound of MI (Barber &
26
+
27
+ ![](images/a3780f4e334c2f8c0f134b7e1c3b2f3a80772d70e97fc1a8419ac1d6a68d4d01.jpg)
28
+ Figure 1: Framework of data poisoning attack (in red) on FRL. Irrelevant components such as class labels are omitted. The attacker poisons training data to contaminate the victim training (solid lines), resulting in unfair representations $z$ for target data (dotted lines) such that its MI to sensitive feature $a$ is maximized. The MI is supposed to be small before the attack.
29
+
30
+ Agakov, 2003) inspires us to use the negative loss of the optimal classifier that predicts sensitive features from representations as a proxy. To avoid the complexity of training such a classifier in the inner loop of the optimization, we further connect the classification loss with a principled notion of data separability. FLD scores give us an analytic measure of such and simplify the optimization substantially. Notably, FLD score as a valid data separability measure does not rely on the mixture-of-Gaussian assumption (Fisher, 1936), and our empirical results also show that this assumption is not essential for our purpose in practice. To our best knowledge, we propose the first attack goal based on MI explicitly towards fair machine learning that is highly principled and flexible. We also analyze its connection to demographic parity, one of the most popular fairness notions. This is one of the most significant contributions of our work.
31
+
32
+ Secondly, representations are learned by DNNs, whose dependency on poisoning samples is impossible to track exactly. Consequently, one cannot identify training on what poisoning samples the victim will produce the most fairness-violating representations. We solve this problem approximately by matching the upper- and lower-level gradients following Geiping et al. (2020): The gradient of the victim from FLD score gives the desired update direction; when it matches the gradients of the victim on poisoning samples, training the victim on poisoning samples will solve the attack goal approximately. To improve stealthiness of the attack on fairness degradation in our scenarios, we design better constraints on how much poisoning samples can deviate from clean samples. In specific, we define a more proper valid range based on the data type, and an elastic-net penalty (Chen et al., 2018) to encourage such deviation to be sparse. Meanwhile, we derive the first theoretical minimal number of poisoning samples required by gradient-matching based attacks (Geiping et al., 2020) to succeed under regular conditions. This bound is crucial for practical attacks, as using more poisoning samples will increase the chance of being detected (Geiping et al., 2020; Koh et al., 2022). This theoretical analysis is another contribution of this paper and can be of independent interest to users of all gradient-matching based attacks.
33
+
34
+ Extensive experimental results in Section 4 demonstrate high effectiveness of our attacks on four representative FRL methods using as few as $5\%$ of training data for poisoning. In the remaining part of this paper, we review related works in Section 5, and conclude the work in Section 6.
35
+
36
+ # 2 PROPOSED METHOD
37
+
38
+ We propose the first white-box clean-label data poisoning attack on deep learning-based fair representation learning (FRL) to degrade fairness. We follow previous attacks on classical fair machine learning (Chang et al., 2020; Mehrabi et al., 2021) and suppose a worst-case threat model, which has full knowledge and control of the victim model, as well as the access to part of the training samples.
39
+
40
+ # 2.1 PRELIMINARIES
41
+
42
+ We denote a dataset consisting of $N$ datapoints by $\mathcal{D} = \{\pmb{x}_i, a_i, y_i\}_{i=1}^N$ , where $\pmb{x}_i \in \mathbb{R}^M$ represents a multivariate nonsensitive feature, $a_i \in \{0,1\}$ is a binary sensitive feature, and $y_i$ is a binary class label. As adopted in literature (e.g., Moyer et al. (2018); Reddy et al. (2021)), we assume $\pmb{x}$ has continuous values that can be fed into neural networks. A FRL model parameterized by $\theta$ has an encoder $h$ to learn representation from the nonsensitive feature by $\pmb{z}(\theta) = h(\pmb{x};\theta)$ and is trained on $\mathcal{D}$ to minimize some fairness-aware loss $L(\mathcal{D};\theta)$ . A data poisoning attack aims to maliciously control the training of this victim model by perturbing a few training samples to minimize some attack loss $U(\theta)$ . The perturbed training samples are referred to as poisoning samples.
43
+
44
+ Mutual information (MI)-based fairness aims to minimize $I(a, z)$ between sensitive feature $a$ and representation $z$ . It makes fair representations highly transferable on a wide range of downstream classification tasks and has become the de facto principle in FRL (Moyer et al., 2018; Creager et al., 2019; Zhao et al., 2019). Formally, the data processing inequality (Cover, 1999) states that $I(a, z) \geq I(a, g(z)) \geq 0$ holds for any classifier $g$ acting on $z$ . In addition, $I(a, g(z)) = 0$ is equivalent to demographic parity (DP, Zemel et al. (2013)), one of the most popular group fairness notions. At a colloquial level, if representations from different demographic groups are similar to each other, then any classifier acting on the representations will be agnostics to the sensitive feature and fair thereof. This condition remains valid without access to $y$ when DP cannot be evaluated.
45
+
46
+ # 2.2 POISONING FAIR REPRESENTATIONS FORMULATION
47
+
48
+ Motivated by the importance of MI-based fairness in FRL, we attack the fairness on some target data $\mathcal{D}_{\mathrm{ta}}$ by maximizing $I(a,z)$ . This involves a bilevel optimization problem. Given a victim $\theta$ and its lower-level loss $L(\mathcal{D};\theta)$ , the training data $\mathcal{D} = \mathcal{D}_{\mathrm{po}} \cup \mathcal{D}_{\mathrm{cl}}$ consists of $P$ poisoning samples $\mathcal{D}_{\mathrm{po}}$ and clean samples $\mathcal{D}_{\mathrm{cl}}$ , the attacker wants to minimize $-I(a,z)$ over target data $\mathcal{D}_{\mathrm{ta}}$ by learning perturbations $\Delta = \{\delta_p\}_{p=1}^P$ to add on $\mathcal{D}_{\mathrm{po}}$ through solving
49
+
50
+ $$
51
+ \min _ {\Delta \in \mathcal {C}} - I (a, z (\theta^ {*} (\Delta))), \quad \text {s . t .} \theta^ {*} (\Delta) = \operatorname {a r g m i n} _ {\theta} L \left(\mathcal {D} _ {\mathrm {p o}} (\Delta) \cup \mathcal {D} _ {\mathrm {c l}}; \theta\right). \tag {1}
52
+ $$
53
+
54
+ Our clean-label attack leaves original label $y$ unpoisoned and only perturbs nonsensitive feature $\pmb{x}$ , i.e., $\mathcal{D}_{\mathrm{po}}(\Delta) = \{\pmb{x}_p + \delta_p, a_p, y_p\}_{p=1}^P$ , under constraint $\mathcal{C}$ which will be detailed shortly.
55
+
56
+ Connection to attacking group fairness. Our attack is principled and jeopardizes DP. We use well-defined metric variation of information (VI, Kraskov et al. (2005)). For $y$ and $a$ , their VI distance is $VI(y, a) = H(y) + H(a) - 2I(y, a)$ where $H(\cdot)$ is the entropy. Applying triangle inequality to $g(z)$ , $y$ , and $a$ gives us $I(g(z), a) \geq I(g(z), y) + I(a, y) - H(y) = I(g(z), y) - H(y \mid a)$ . By maximizing $I(z, a)$ that upper bounds $I(g(z), a)$ , a successful attack diminishes the guarantee for the MI-based fairness. When $H(y \mid a) < I(g(z), y)$ , fitting $g$ to predict $y$ from $z$ that maximizes $I(g(z), y)$ will force $I(g(z), a)$ to increase, thereby exacerbating the DP violation. Notably, $H(y \mid a)$ depicts how dependent $y$ and $a$ are and is expected small when an fairness issue exists (Hardt et al., 2016). We provide empirical success of attacking DP with our attack goal in Appendix E.3.
57
+
58
+ Unfortunately, Eq. (1) is intractable with difficulty lying in finding the most fairness-violating representations and the method for acquiring them. Mathematically, the first problem involves $I(a,z)$ which lacks an analytic expression. This makes its computation non-trivial, let alone its maximization. The second entails a feasible set in the lower-level optimization that is NP-hard to identify due to the non-convexity of deep neural networks. We solve Eq. (1) approximately as follows.
59
+
60
+ # 2.3 UPPER-LEVEL APPROXIMATION: FISHER'S LINEAR DISCRIMINANT (FLD)
61
+
62
+ The lack of analytic form for $I(a, z)$ necessitates some approximations. Our first step is to lower bound MI by a negative binary-cross-entropy (BCE) loss which is easier to estimate. For any classi-
63
+
64
+ fier $g$ that predicts $a$ from $\mathbf{z}$ , let $q(a\mid z)$ be the distribution learned by the optimal $g^{*}$ , we have
65
+
66
+ $$
67
+ I (a, \pmb {z}) = \mathbb {E} _ {p (a, \pmb {z})} \left[ \log \frac {p (a | \pmb {z}) q (a | \pmb {z})}{p (a) q (a | \pmb {z})} \right] \overset {(a)} {\geq} \mathbb {E} _ {p} \left[ \log \frac {q (a | \pmb {z})}{p (a)} \right] = \mathbb {E} _ {p} \left[ \log q (a | \pmb {z}) \right] + \mathbb {E} _ {p} \left[ - \log p (a) \right],
68
+ $$
69
+
70
+ where the inequality $(a)$ holds from omitting some non-negative KL terms and is tight when $g^{*}$ recovers the true distribution $p(a\mid z)$ as shown in Barber & Agakov (2003). On the other hand, since $\mathbb{E}_p[-\log p(a)] = H(a)\geq 0$ , the first term, negative BCE loss of $g^{*}$ , is a lower bound for $I(a,z)$ , and is a measure of how fair the representations are (Feng et al., 2019; Gupta et al., 2021). We dub the BCE loss of $g^{*}$ the optimal BCE loss.
71
+
72
+ However, substituting the MI maximization from Eq. (1) with minimizing the optimal BCE loss does not make it solvable: $g^{*}$ depends on $z$ 's for $\mathcal{D}_{\mathrm{ta}}$ and how to update them to minimize the BCE loss of $g^{*}$ is unknown. This requires differentiate through the whole optimization procedure.
73
+
74
+ To walk around this challenge, we note that the optimal BCE loss of $g^{*}$ measures how difficult to separate $z$ for $\mathcal{D}_{\mathrm{ta}}$ with $a = 0$ or 1. While this difficulty is hard to tackle directly, it can be approximated by the data separability: If the two classes of data are more separable, one can expect the classification simpler and the optimal BCE loss lower. Motivated by this, we instead maximize Fisher's linear discriminant (FLD) score, a closed-formed data separability measure.
75
+
76
+ Specifically, suppose the two classes of representations have mean $\pmb{\mu}^0, \pmb{\mu}^1$ and covariance $\mathbf{S}^0, \mathbf{S}^1$ respectively. FLD maps them to a 1-dimensional space via linear transformation $\pmb{v}$ which induces separation $s_{\pmb{v}} = (\pmb{v}^\top \pmb{\mu}^0 - \pmb{v}^\top \pmb{\mu}^1)^2 / (\pmb{v}^\top \mathbf{S}^0 \pmb{v} + \pmb{v}^\top \mathbf{S}^1 \pmb{v})$ . Its maximal value over $\pmb{v}$ , termed as FLD score, is $s = (\pmb{\mu}^0 - \pmb{\mu}^1)^\top (\mathbf{S}^0 + \mathbf{S}^1)^{-1} (\pmb{\mu}^0 - \pmb{\mu}^1)$ when $\pmb{v} \propto (\mathbf{S}^0 + \mathbf{S}^1)^{-1} (\pmb{\mu}^0 - \pmb{\mu}^1)$ . This equation allows us to compute its gradient with respect to $\pmb{z}$ for $\mathcal{D}_{\mathrm{ta}}$ , which gives the direction to update these representations in order to make it less fair. For stability we regularize $s$ by
77
+
78
+ $$
79
+ s = \left(\boldsymbol {\mu} ^ {0} - \boldsymbol {\mu} ^ {1}\right) ^ {\top} \left(\mathbf {S} ^ {0} + \mathbf {S} ^ {1} + c \mathbf {I}\right) ^ {- 1} \left(\boldsymbol {\mu} ^ {0} - \boldsymbol {\mu} ^ {1}\right), \tag {2}
80
+ $$
81
+
82
+ and resort to solving the following bilevel optimization:
83
+
84
+ $$
85
+ \min _ {\Delta \in \mathcal {C}} - s \left(\theta^ {*} (\Delta)\right), \quad \text {s . t .} \theta^ {*} (\Delta) = \operatorname {a r g m i n} _ {\theta} L \left(\mathcal {D} _ {\mathrm {p o}} (\Delta) \cup \mathcal {D} _ {\mathrm {c l}}; \theta\right). \tag {3}
86
+ $$
87
+
88
+ In Appendix B we extend our attack to multi-class sensitive feature scenarios.
89
+
90
+ Remark 2.1. Maximizing $I(z, a)$ is a general framework to poison FRL and admits other proxies such as sliced mutual information (Chen et al., 2022), kernel canonical correlation analysis (Akaho, 2007), and non-parametric dependence measures (Székely et al., 2007). In this work, we use FLD because of its conceptual simplicity, interpretability, and good empirical performance. As one may recognize, when $p(z \mid a = 1)$ and $p(z \mid a = 0)$ are Gaussian with equal variance, FLD is optimal (Hamsici & Martinez, 2008) whose BCE loss attains the tight lower bound of $I(z, a)$ up to constant $H(a)$ . In this case, our method provably optimizes the lower bound of $I(z, a)$ whereas other proxies may not due to the lack of direct connections to mutual information. While the Gaussianity may not hold in general, FLD score as a measure of data separability is still valid (Fisher, 1936), and we verify its efficacy for our goal in Appendix E.2, where we show that FLD score is highly informative for the empirical minimal BCE loss of a logistic regression.
91
+
92
+ # 2.4 LOWER-LEVEL APPROXIMATION: ELASTIC-NET GRADMATCH (ENG)
93
+
94
+ Bilevel optimization in Eq. (3) enjoys a tractable upper-level loss but its lower-level optimization remains challenging due to the use of deep neural networks in FRL and needs further approximation. To this end, we fix parameter $\theta$ in a pre-trained victim model and treat its lower-level gradient on poisoning samples $\nabla_{\theta}L(\mathcal{D}_{\mathrm{po}}(\Delta);\theta)$ as a function of $\Delta$ . An attack is launched by aligning $\nabla_{\theta}L(\mathcal{D}_{\mathrm{po}}(\Delta);\theta)$ and $-\nabla_{\theta}s(\theta)$ by maximizing their cosine similarity
95
+
96
+ $$
97
+ \mathcal {B} (\theta , \Delta) = - \frac {\left\langle \nabla_ {\theta} s (\theta) , \nabla_ {\theta} L \left(\mathcal {D} _ {\mathrm {p o}} (\Delta) ; \theta\right) \right\rangle}{\| \nabla_ {\theta} s (\theta) \| \| \nabla_ {\theta} L \left(\mathcal {D} _ {\mathrm {p o}} (\Delta) ; \theta\right) \|}, \tag {4}
98
+ $$
99
+
100
+ with respect to $\Delta$ . When the two directions are matched, gradient descents on the lower-level loss $L$ from poisoning samples will decrease the upper-level loss $-s$ as well.
101
+
102
+ The concept of gradient matching in poisoning attacks was initially introduced in GradMatch by Geiping et al. (2020) for image classification. To enhance the stealthiness of such attacks in fairness degradation scenarios, we impose two new constraints on the learning perturbations. First, a
103
+
104
+ hard constraint $\mathcal{C}$ mandates that poisoning samples must reside within the clean data domain, i.e., $\min_{\boldsymbol{x}_c \in \mathcal{D}_{\mathrm{el}}} x_{cm} \leq \delta_{pm} + x_{pm} \leq \max_{\boldsymbol{x}_c \in \mathcal{D}_{\mathrm{el}}} x_{cm}$ for all feature dimensions ( $1 \leq m \leq M$ ) and poisoning samples ( $1 \leq p \leq P$ ), this allows using dimension-specific ranges. Second, the soft constraint employs the elastic-net penalty (Zou & Hastie, 2005; Chen et al., 2018) to promote sparsity in each $\delta_p$ (i.e., only a few dimensions are perturbed). Combining these constraints, we formulate below optimization problem aimed at poisoning fair representations:
105
+
106
+ $$
107
+ \min _ {\Delta \in \mathcal {C}} - \mathcal {B} (\theta , \Delta) + \sum_ {p = 1} ^ {P} \left(\lambda_ {1} \| \delta_ {p} \| _ {1} + \lambda_ {2} \| \delta_ {p} \| _ {2} ^ {2}\right). \tag {5}
108
+ $$
109
+
110
+ In execution, we rescale the three terms before tuning $\lambda$ 's to avoid bearing with the magnitude difference. Non-differentiable $L_{1}$ norms are tackled with the iterative shrinkage-thresholding algorithm (ISTA, Beck & Teboulle (2009)) $\delta_p^{k+1} = \mathrm{Proj}_{\mathcal{C}}\left(S_{\lambda_1}\left[\delta_p^k + \alpha^k\nabla(\mathcal{B}(\theta,\Delta) - \lambda_2\|\delta_p\|_2^2)\right]\right)$ , where $S_{\lambda_1}$ is the element-wise projected shrinkage-thresholding function and $\mathrm{Proj}_{\mathcal{C}}$ is the projection onto $\mathcal{C}$ . We refer to our attack by Elastic-Net GradMatch (ENG) and summarize it in Algorithm 1.
111
+
112
+ Computation complexity. Denote the number and dimension of poisoning samples by $P$ and $M$ , iteration numbers of running the attack by $T$ , dimension of $\theta$ by $D$ . The computation complexity of ENG and GradMatch (Geiping et al., 2020) are $\mathcal{O}(TM + TDPM)$ and $\mathcal{O}(TDPM)$ , respectively. The additional computation cost $\mathcal{O}(TM)$ due to the one-step ISTA in ENG is marginal.
113
+
114
+ # 3 ANALYSIS ON MINIMAL NUMBER OF POISONING SAMPLES
115
+
116
+ It is non-trivial to minimize the number of poisoning samples that deteriorate the victim model's performance. An insufficient amount may not impact lower-level optimization, while a large amount makes it easy to detect the attack, leading to a direct failure (Huang et al., 2020; Koh et al., 2022). Our analysis is built upon the convergence of upper-level loss $U(\theta) \equiv -s(\theta)$ . Our conclusion relies on the following assumptions.
117
+
118
+ Assumption 3.1 (smooth upper- and lower-level losses). There exists $C > 0$ such that upper-level loss $U(\theta)$ and lower-level loss $L(\theta)$ are $C$ -smooth, i.e., their gradients are $C$ -Lipschitz continuous.
119
+
120
+ Assumption 3.2 (attack well-trained victims only). Before attack, the victim is well-trained so its gradient on each clean sample performs like a random noise with mean zero and finite norm $\sigma$ .
121
+
122
+ Assumption 3.3 (well-matched gradients). After being attacked, gradient $\nabla_{\theta}L(\theta)$ evaluated on any poisoning sample is an unbiased estimator of the gradients $\nabla_{\theta}U(\theta)$ with bounded error norm, i.e., for any poisoning sample $p$ , $\nabla L_p(\theta) = \nabla_{\theta}U(\theta) + \epsilon_p$ where $\mathbb{E}[\epsilon_p] = 0$ and $\mathbb{E}[||\epsilon_p||]\leq \sigma$ .
123
+
124
+ Assumption 3.1 is a fairly weak condition that has been widely used (Colson et al., 2007; Mei & Zhu, 2015; Sinha et al., 2017), the rest two are introduced by us and are well-suited to the context of our proposed framework. Assumption 3.2 is valid because $\theta$ undergoes thorough training with the clean samples. Assumption 3.3 presumes that given constant gradient $\nabla_{\theta}U(\theta)$ , we can construct an unbiased estimator with $P$ poisoning samples $\mathbb{E}\left[\frac{1}{P}\sum_{p = 1}^{P}\nabla_{\theta}L_{p}(\theta)\right] = \nabla_{\theta}U(\theta)$ . With these assumptions, we obtain the following theorem.
125
+
126
+ Theorem 3.4. Suppose that Assumption 3.1, 3.2, and 3.3 hold. Let $P$ and $N$ be the number of poisoning and total training samples, respectively. Set the learning rate to $\alpha$ and the batch size to $n$ . Then, the ratio of poisoning data $P / N$ should satisfy
127
+
128
+ $$
129
+ \frac {P}{N} \geq c + \frac {\alpha C \sigma^ {2}}{2 n \| \nabla_ {\theta} U (\theta) \| ^ {2}} + \frac {\alpha C}{2}, \tag {6}
130
+ $$
131
+
132
+ such that the upper-level loss $U(\theta)$ is asymptotic to an optimal model. Here $c$ is a small constant (e.g., $10^{-4}$ ) for sufficient descent, and $\theta$ is a well-trained model on the clean data.
133
+
134
+ Deferring the proof to Appendix C, we summarize the underlying idea. We assume the pretrained victim converged with respect to $\nabla_{\theta}L(\theta)$ . Besides, after applying ENG, a poisoning sample can (in expectation) induce a gradient equal to $\nabla_{\theta}U(\theta)$ so training the victim model on it will optimize the upper-level loss $U(\theta)$ . However, clean samples may obfuscate this goal as their lower-level gradients do not depend on the upper-level loss. To counteract with this effect, a minimal portion of poisoning
135
+
136
+ samples are needed to dominate the training. In practice, learning rate $\alpha$ is often small compared with $C$ , batch size $n$ is large, and $\| \nabla_{\theta}U(\theta)\|$ is much greater than 0. Therefore, the minimal portion bound is expected to be smaller than 1.
137
+
138
+ Practical Significance. Theorem 3.4 sheds light on the difficulty of ENG and other GradMatch-based attacks, whereon a defending strategy can be built. If batch size $n$ is large, the attack is simpler and needs fewer poisoning samples. So reducing $n$ should help defense and we evaluate its performance in Appendix E.7. In addition, term $\sigma^2$ is affected by the lower-level gradients, whose increase will require more poisoning samples. This helps explain why adding noises to gradients can defend against GradMatch as verified in Geiping et al. (2020).
139
+
140
+ # Algorithm 1 Craft Poisoning Samples with ENG Attack
141
+
142
+ 1: Input: clean data $\mathcal{D}_{\mathrm{cl}}$ , poisoning data $\mathcal{D}_{\mathrm{po}}$ , target data $\mathcal{D}_{\mathrm{ta}}$ ; victim $\theta$ and its lower-level loss $L$ ; number of pretraining epochs $E$ and attack iterations $T$ .
143
+ 2: Fix $\mathcal{D}_{\mathrm{po}}$ unperturbed. Pretrain victim on $\mathcal{D}_{\mathrm{po}} \cup \mathcal{D}_{\mathrm{cl}}$ for $E$ epochs and obtain $\theta^{E}$ .
144
+ 3: Compute upper-level gradient $\nabla_{\theta}U(\mathcal{D}_{\mathrm{ta}};\theta^{E})$
145
+ 4: Randomly initialize $\Delta^0 = \{\delta_p,p = 1,\dots ,P\}$ in $\mathcal{C}$
146
+ 5: for $t = 1, \dots, T$ do
147
+ 6: Compute lower-level gradient $\nabla_{\theta}L(\mathcal{D}_{\mathrm{po}}(\Delta^t);\theta^E)$ as a function of $\Delta^t$
148
+ 7: Compute ENG loss in (5) and update $\Delta^t$ with ISTA.
149
+ 8: end for
150
+ 9: return $\mathcal{D}_{\mathrm{po}}$ when using $\Delta^T$ .
151
+
152
+ # 4 EXPERIMENTS
153
+
154
+ We evaluate the proposed attack on four FRL models trained on two fairness benchmark datasets and show its effectiveness through extensive experiments. Ablation studies and practical insights are also given to help understand how the attack succeeds in poisoning victims.
155
+
156
+ # 4.1 SETUP
157
+
158
+ Attack Goals. We consider three variants of Eq. (2) to maximize: (a) FLD follows Eq. (2) with $c = 10^{-4}$ to stabilize the covariance estimation. (b) sFLD takes the same form as FLD but does not back-propagate through covariance terms when computing $-\nabla_{\theta} s(\theta)$ . (c) EUC replaces the covariance terms with an identity matrix<sup>2</sup>.
159
+
160
+ Attacks. An attack to maximize score $X$ using ENG is referred to as ENG-X, for instance, ENGFLD is to maximize FLD. Conceptually, ENG-EUC is suitable for small $\mathcal{D}_{\mathrm{ta}}$ as it omits covariance matrix, which can be unstable to estimate. ENG-FLD should be favored when $\mathcal{D}_{\mathrm{ta}}$ is large as it is based on the exact FLD score $s$ and should measure separability more accurately, which is expected to benefit solving Eq. (5) as well. ENG-sFLD strikes a balance in between by using only part of covariance information.
161
+
162
+ FRL Victims. We select four representative FRL models as our victims. CFAIR and CFAIR-EO (Zhao et al., 2019) are based on adversarial learning and seek to achieve different fairness notions. Non-adversarial learning based ICVAE-S and ICVAE-US (Moyer et al., 2018) differ in whether $y$ is accessible. We follow the official codes to implement the victims as detailed in Appendix D.
163
+
164
+ Datasets. We train victims on two benchmark datasets from UCI repository that are extensively studied in fair machine learning, which are pre-processed $^3$ following Zhao et al. (2019); Reddy et al. (2021). Adult (Kohavi, 1996) contains 48,842 samples of US census data with 112 features and the objective is to predict whether an individual's yearly income is greater than $50K dollars or not. The sensitive feature is gender. German (Dua & Graff, 2017) consists of 1,000 samples of personal financial data with 62 features and the objective is to predict whether or not a client has a good credit score. The sensitive feature is binarized age as in Moyer et al. (2018) and we adjust the threshold to increase its correlation with label $^4$ . In Appendix E.6 we study multi-class sensitive feature race. On both datasets, we leave $20\%$ of total samples out as $\mathcal{D}_{\mathrm{ta}}$ . More results on COMPAS (Dieterich et al., 2016) and Drug Consumption Datasets (Dua & Graff, 2017) are presented in Appendix. E.8.
165
+
166
+ Evaluation. We treat decrease in the BCE loss of a logistic regression predicting $a$ from $\pmb{z}$ as a measure of increase in $I(z,a)$ . To verify how group fairness and representation utility can be affected, we present the exacerbation of DP violation and accuracy of predicting $y$ from $\pmb{z}$ in Appendix E.3 and Appendix E.4 respectively. Representations are extracted after training the victims on poisoned Adult and German dataset for 20 and 50 more epochs respectively considering their size difference.
167
+
168
+ Baselines. We compare ENG-based attacks with four variants of anchor attack (AA), a recent heuristic generic poisoning attack on classical fair machine learning (Mehrabi et al., 2021). RAA-y and RAA-a randomly picks one training sample from the subgroup with $(y = 1, a = 0)$ and one with $(y = 0, a = 1)$ after each epoch, then makes copies of the two chosen samples with flipped $y$ or $a$ respectively. NRAA-y and NRAA-a replaces the random selection in RAA counterparts with picking from each subgroup the training sample that has the most neighbors within a pre-specified radius and has not been selected yet. (N)RAA-y were proposed in Mehrabi et al. (2021), and we implement (N)RAA-a following the same logic. Note that (N)RAA-y are not clean-label, (N)RAA-a are but they directly modify the sensitive feature. In contrast, our attacks only modify the nonsensitive feature. Moreover, all baselines are allowed to use any training sample to poison, while ours can only perturb a given randomly selected set of poisoning samples. These differences put our proposed attacks in an unfavorable situation under direct comparison. Nevertheless, ours can still outperform the four baselines by a large margin.
169
+
170
+ # 4.2 COMPARISON BETWEEN ENG AND (N)RAA.
171
+
172
+ We compare three ENG-based attacks with penalty coefficients $\lambda_{1} = 0.0025, \lambda_{2} = 0.005$ (Eq. (5)) against four AA attacks under different settings where $5\%$ to $15\%$ of training data are used for poisoning. Performance of an attack is measured by the decrease of BCE loss, higher is better, and corresponding DP violations are reported in Appendix E.3.
173
+
174
+ Figure 2 shows results averaged over 5 replications. Three ENG-based attacks achieved notable performance (on both BCE loss and DP violations) in various settings. In contrast, AA encountered severe failures, for instance, when attacking CFAIR trained on German dataset, only RAA-a succeeded with all the three budgets. Such failures cannot be fully attributed to the budgets: (N)RAA-y succeeded with budget $10\%$ but failed with budget $15\%$ . (N)RAA-a occasionally achieved the best performance because of much stronger capacities. Nonetheless, the proposed ENG-based attacks beat AA baselines in terms of better and more reliable performance by a large margin in most case. When comparing the three proposed attacks with each other, their performance difference matched our previous analysis, e.g., ENG-FLD gave the best result on larger Adult dataset. These results clearly establish the efficacy of our attack.
175
+
176
+ ![](images/9095acc748898d0d82ebcf30a194f09436dae3063f3142c30d0a53cd54ba8a77.jpg)
177
+
178
+ ![](images/c93da8c1958a7ff61c1b8f1d81ba3161628a0f2a58de18fdd8425a89eafdc932.jpg)
179
+ (a) Adult dataset
180
+
181
+ ![](images/1b7df66d30f8ce85af4d4050e6467de83be1af41961e885e341870a524d717f8.jpg)
182
+
183
+ ![](images/e96c2f267d6ac0e5da3ef4cfd61b2ddd07d4a5433895d9cd525ebb526ad95161.jpg)
184
+
185
+ ![](images/a4311ef2d27409b1a5ceede3f656785ce099522d8e94a885089812727091ac13.jpg)
186
+ Figure 2: ENG-based attacks reduce BCE loss more than AA baselines with less portion of poisoning samples. Results are averaged over 5 independent replications and bands show standard errors.
187
+
188
+ ![](images/9c6f5fd14447dd950c8bea2905ec3e5388b5ef0d255d76d3b8dbf619e0329a2a.jpg)
189
+ (b) German dataset
190
+
191
+ ![](images/c8a842febe3294932b5e7e50c189a44c559471efd4a6337abd21e4cdeae43702.jpg)
192
+
193
+ ![](images/916261c29fe8b5c119d60c49390bb964567484fe95c175c567c566b9aded8c67.jpg)
194
+
195
+ # 4.3 PERFORMANCE OF ELASTIC-NET PENALTY
196
+
197
+ Next, we sprovide a sensitivity analysis of ENG-based attacks against the choices of $\lambda_{1}$ and $\lambda_{2}$ . We set $\lambda_{2} = 2\lambda_{1}$ and vary $\lambda_{1}$ following Chen et al. (2018). Results are again averaged over 5 replications. Figure 3a exhibits how elastic-net penalty affects the performance of ENG-FLD under different poisoning budgets where victims are trained on Adult dataset. More results are deferred to Appendix E.5 due to page length but conclusions here hold in general. All three attacks are relatively robust to small and intermediate level of elastic-net penalty. Moreover, improvement from applying the elastic-net penalty is observed (e.g., column 1 in Fig 3a). This implies that the penalty can actually help stabilize the optimization.
198
+
199
+ We further study how elastic-net penalty regularizes the learned perturbations by computing $L_{1}$ and $L_{2}$ norms. We only present $L_{1}$ norms of perturbations using ENG-EUC attack on Adult dataset as an illustration and defer others to Appendix E.5 after observing similar trends. According to Figure 3b, $L_{1}$ norms were significantly shrank by elastic-net penalty with mild degradation on the attack performance. For instance, elastic-net penalty with $\lambda_{1} = 0.0025$ effectively reduced the $L_{1}$ norm of perturbations by a third without hurting the performance of attacking CFAIR. When a more stealthy attack is wanted, $\lambda_{1} = 0.01$ was able to launch a satisfactory attack with only one half budget of perturbation norm. These results clearly show the efficacy of our proposed ENG-based attacks.
200
+
201
+ Given these merits of elastic-net penalty, one may ask if it can be used in other attacks such as AA. In Appendix E.5 we discuss the difficulty of doing so and highlight its affinity to our attack by nature.
202
+
203
+ ![](images/92e786858ea6143fef88e447dd00cf85642aaa4f0aa49b029f1c7eee1cb4765e.jpg)
204
+
205
+ ![](images/902fc7c30fcecd638de71335817d0d4f5469b00356be0030accde8249624efd1.jpg)
206
+
207
+ ![](images/11ce412892e9912090498e0f952cb51d48024846ec3710ef59828b1517ee69d2.jpg)
208
+
209
+ ![](images/c5f92d9137e9de7143f25501c0c443bbdee67b69ff6b013e1877ab1d4d75654f.jpg)
210
+
211
+ ![](images/b8271ad6469ed408fc5457f7dee589e4a2e2d4129c9a246a0adb4c7c4b433e54.jpg)
212
+ (a) Decrease of BCE loss is insensitive to under small and intermediate level of elastic-net penalty.
213
+
214
+ ![](images/a8f892ac14b418fdff2b58ab1ab370929dffbb67324716cd7a56e7e37c7cbdd8.jpg)
215
+ (b) $L_{1}$ norm of learned perturbations is effectively restricted by elastic-net penalty.
216
+
217
+ ![](images/86862e68cfc9fb6c0567a69f5ebad26df45f0b1ac4cb1c85e25d365cfecbf988.jpg)
218
+ Figure 3: Decrease of BCE loss and $L_{1}$ norm of perturbations learned by ENG-FLD attack. Victims are trained on Adult dataset and results are averaged over 5 replications.
219
+
220
+ ![](images/d60c70b2704c22de52269bd2f5725df990c87514ab36535659bd81d83c028215.jpg)
221
+
222
+ # 4.4 ROBUST FEATURES OF VICTIMS
223
+
224
+ ENG-based attacks can do feature selections, and we consider unselected features as robust ones for the victim, in the sense that they did not help in attacking. We end this section with a case study on this aspect. Table 1 shows the percentage of selected features and corresponding robust features when attacking ICVAE-S and ICVAE-US trained on Adult dataset with ENG-FLD. From the table, elastic-net penalty successfully reduced the perturbed features by $20\%$ , and robust features for ICVAE-US and ICVAE-S are largely overlapped. These results helped understand how ENG-FLD was launched by walking around these robust features when attacking the victims. Note that this robust features identification is not applicable for AA-based attacks.
225
+
226
+ # 5 RELATED WORK
227
+
228
+ Fair representation learning (FRL) is a family of algorithms to learn fair representations from nonsensitive features such that any downstream tasks (e.g., classification) acting on these representations will be fair. Towards this goal, different approaches to removing sensitive information from
229
+
230
+ learned representations have been proposed. To name a few, Zemel et al. (2013) set representations to be multinomial and used fairness violations based on the representations as penalties, and Madras et al. (2018) derived different bounds for these violations used for adversarial regularization. Mutual information and other measures between distributions have also been used as penalties to encourage independence between the representation and sensitive features, either in an adversarial (Xie et al., 2017; Creager et al., 2019) or non-adversarial way (Louizos et al., 2015; Moyer et al., 2018; Sarhan et al., 2020; Wang et al., 2021). Recently, Zhao et al. (2019) proposed to learn different encoders on different label groups with theoretical guarantees and achieved state-of-the-art performance in an adversarial manner Reddy et al. (2021). Moyer et al. (2018), on the other hand, provided a non-adversarial based solution and also got promising results. We select representative methods from adversarial and non-adversarial regimes to test our attack.
231
+
232
+ Data poisoning attack aims to achieve some attack goal with a victim model by controlling its training via injecting poisoned samples. Early works showed that simple heuristics such as label flipping (Barreno et al., 2010; Paudice et al., 2019) can succeed in attack. However, these poisoning samples often look unnatural and are easy to detect (Papernot & McDaniel, 2018; Paudice et al., 2019). Consequently, clean-label attacks that only modify the poisoning samples' features but not labels are pre
233
+
234
+ Table 1: Percentage of selected features and top robust features from Adult dataset, $P/N$ denotes the portion of poisoning samples, attacker is ENG-FLD.
235
+
236
+ <table><tr><td rowspan="2"></td><td rowspan="2">P/N</td><td colspan="4">λ1(λ2=2λ1)</td><td rowspan="2">Top Robust Features</td></tr><tr><td>0</td><td>0.0025</td><td>0.005</td><td>0.01</td></tr><tr><td rowspan="3">ICVAE-S</td><td>0.05</td><td>0.99</td><td>0.96</td><td>0.89</td><td>0.73</td><td rowspan="3">workclass, marital-status, occupation, native-country</td></tr><tr><td>0.1</td><td>0.99</td><td>0.95</td><td>0.89</td><td>0.75</td></tr><tr><td>0.15</td><td>0.99</td><td>0.97</td><td>0.89</td><td>0.77</td></tr><tr><td rowspan="3">ICVAE-US</td><td>0.05</td><td>0.95</td><td>0.89</td><td>0.84</td><td>0.79</td><td rowspan="3">native-country, occupation, workclass, education</td></tr><tr><td>0.1</td><td>0.95</td><td>0.91</td><td>0.85</td><td>0.79</td></tr><tr><td>0.15</td><td>0.96</td><td>0.91</td><td>0.85</td><td>0.79</td></tr></table>
237
+
238
+ ferred (Shafahi et al., 2018). Another drawback of heuristic attacks is the lack of performance guarantee as they do not directly solve the attack goals. In practice they may perform less effective.
239
+
240
+ Bilevel optimization is widely used for data poisoning attacks (Bard & Falk, 1982; Biggio et al., 2012; Geiping et al., 2020; Jagielski et al., 2021; Koh et al., 2022). For convex victims such as logistic regression and support vector machine, the lower-level optimization is characterized by the KKT condition. This reduces the bilevel optimization to a constrained optimization that can be solved exactly (Mei & Zhu, 2015). For other victims, unfortunately, when their optimal solutions are NP-hard to identify, so are the bilevel optimization problems (Colson et al., 2007; Sinha et al., 2017) and inexact solutions are needed. When the second-order derivatives of the lower-level loss is cheap, using influence function to identify influential samples for the victim training and poisoning them can produce strong attacks (Koh & Liang, 2017). These attacks have been successfully applied to classical fair machine learning (Chang et al., 2020; Solans et al., 2021; Mehrabi et al., 2021), but the non-convexity of neural networks and expensive influence function computations make them unsuitable for poisoning FRL. Approximate solutions for attacking deep learning models have been proposed recently. For instance, inspired by model-agnostic meta-learning (MAML, Finn et al. (2017)), MetaPoison (Huang et al., 2020) back-propagated through a few unrolled gradient descent steps to capture dependency between the upper- and lower-level optimizations. GradMatch (Geiping et al., 2020) matched the gradient of upper- and lower-level losses and achieved state-of-the-art performance. However, it is unclear how to apply them to poison FRL. In this work, we propose the first work towards this goal and reduce it to an approximate optimization that can be handled.
241
+
242
+ # 6 CONCLUSION AND FUTURE WORKS
243
+
244
+ We develop the first data poisoning attack against FRL methods. Driven by MI-based fairness in FRL, we propose a new MI maximization attack goal and reveal its connection to existing fairness notion such as demographic parity. We derive an effective approximate solution to achieve this attack goal. Our attack outperforms baselines by a large margin and raises an alert of the vulnerability of existing FRL methods. We also theoretically analyze the difficulty of launching such an attack and establish an early success of principled defense. Motivated by promising results on tabular data, which is the primary focus of many FRL methods (Moyer et al., 2018; Zhao et al., 2019), we plan to extend our attack to fair machine learning on large-scale image and text datasets that also relies on deep neural networks, and delve into attacking these methods in the future. In addition, Jagielski et al. (2021) showed that an attack can be much more effective towards certain subpopulations and impossible to defend against, and we plan to explore this for further improvement of our attack.
245
+
246
+ # ACKNOWLEDGEMENT
247
+
248
+ This work is supported in part by the US National Science Foundation under grant NSF IIS-2226108. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the National Science Foundation.
249
+
250
+ # REFERENCES
251
+
252
+ Shotaro Akaho. A kernel method for canonical correlation analysis, 2007.
253
+ David Barber and Felix Agakov. The im algorithm: a variational approach to information maximization. Advances in neural information processing systems, 16(320):201, 2003.
254
+ Jonathan F Bard and James E Falk. An explicit solution to the multi-level programming problem. Computers & Operations Research, 9(1):77-100, 1982.
255
+ Solon Barocas and Andrew D Selbst. Big data's disparate impact. *Calif. L. Rev.*, 104:671, 2016.
256
+ Marco Barreno, Blaine Nelson, Anthony D Joseph, and J Doug Tygar. The security of machine learning. Machine Learning, 81:121-148, 2010.
257
+ Amir Beck and Marc Teboulle. A fast iterative shrinkage-thresholding algorithm for linear inverse problems. SIAM journal on imaging sciences, 2(1):183-202, 2009.
258
+ Battista Biggio, Blaine Nelson, and Pavel Laskov. Poisoning attacks against support vector machines. arXiv preprint arXiv:1206.6389, 2012.
259
+ Joy Buolamwini and Timnit Gebru. Gender shades: Intersectional accuracy disparities in commercial gender classification. In Conference on fairness, accountability and transparency, pp. 77-91. PMLR, 2018.
260
+ Hongyan Chang, Ta Duy Nguyen, Sasi Kumar Murakonda, Ehsan Kazemi, and Reza Shokri. On adversarial bias and the robustness of fair machine learning. arXiv preprint arXiv:2006.08669, 2020.
261
+ Pin-Yu Chen, Yash Sharma, Huan Zhang, Jinfeng Yi, and Cho-Jui Hsieh. Ead: elastic-net attacks to deep neural networks via adversarial examples. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
262
+ Yanzhi Chen, Weihao Sun, Yingzhen Li, and Adrian Weller. Scalable infomin learning. In Alice H. Oh, Alekh Agarwal, Danielle Belgrave, and Kyunghyun Cho (eds.), Advances in Neural Information Processing Systems, 2022. URL https://openreview.net/forum?id=Ojakr9ofova.
263
+ Benoit Colson, Patrice Marcotte, and Gilles Savard. An overview of bilevel optimization. Annals of operations research, 153:235-256, 2007.
264
+ Thomas M Cover. Elements of information theory. John Wiley & Sons, 1999.
265
+ Elliot Creager, David Madras, Jorn-Henrik Jacobsen, Marissa A. Weis, Kevin Swersky, Toniann Pitassi, and Richard Zemel. Flexibly fair representation learning by disentanglement, 2019.
266
+ William Dieterich, Christina Mendoza, and Tim Brennan. Compas risk scales: Demonstrating accuracy equity and predictive parity. Northpointe Inc, 7(4):1-36, 2016.
267
+ Dheeru Dua and Casey Graff. UCI machine learning repository, 2017. URL http://archive.ics.uci.edu/ml.
268
+ Cynthia Dwork, Moritz Hardt, Toniann Pitassi, Omer Reingold, and Rich Zemel. Fairness through awareness, 2011.
269
+ Rui Feng, Yang Yang, Yuehan Lyu, Chenhao Tan, Yizhou Sun, and Chunping Wang. Learning fair representations via an adversarial framework. arXiv preprint arXiv:1904.13341, 2019.
270
+
271
+ Chelsea Finn, Pieter Abbeel, and Sergey Levine. Model-agnostic meta-learning for fast adaptation of deep networks. In International conference on machine learning, pp. 1126-1135. PMLR, 2017.
272
+ Ronald A Fisher. The use of multiple measurements in taxonomic problems. Annals of eugenics, 7 (2):179-188, 1936.
273
+ Jonas Geiping, Liam Fowl, W Ronny Huang, Wojciech Czaja, Gavin Taylor, Michael Moeller, and Tom Goldstein. Witches' brew: Industrial scale data poisoning via gradient matching. arXiv preprint arXiv:2009.02276, 2020.
274
+ Umang Gupta, Aaron M Ferber, Bistra Dilkina, and Greg Ver Steeg. Controllable guarantees for fair outcomes via contrastive information estimation. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 7610-7619, 2021.
275
+ Onur C Hamsici and Aleix M Martinez. Bayes optimality in linear discriminant analysis. IEEE transactions on pattern analysis and machine intelligence, 30(4):647-657, 2008.
276
+ Moritz Hardt, Eric Price, and Nathan Srebro. Equality of opportunity in supervised learning, 2016.
277
+ W Ronny Huang, Jonas Geiping, Liam Fowl, Gavin Taylor, and Tom Goldstein. Metapoison: Practical general-purpose clean-label data poisoning. Advances in Neural Information Processing Systems, 33:12080-12091, 2020.
278
+ Vijay S. Iyengar. Transforming data to satisfy privacy constraints. In Proceedings of the Eighth ACM SIGKDD International Conference on Knowledge Discovery and Data Mining (KDD '02'), pp. 279-288, 2002.
279
+ Matthew Jagielski, Giorgio Severi, Niklas Pousette Harger, and Alina Oprea. Subpopulation data poisoning attacks. In Proceedings of the 2021 ACM SIGSAC Conference on Computer and Communications Security, pp. 3104-3122, 2021.
280
+ Zhimeng Jiang, Xiaotian Han, Chao Fan, Fan Yang, Ali Mostafavi, and Xia Hu. Generalized demographic parity for group fairness. In International Conference on Learning Representations, 2022.
281
+ Toshihiro Kamishima, Shotaro Akaho, and Jun Sakuma. Fairness-aware learning through regularization approach. In 2011 IEEE 11th International Conference on Data Mining Workshops, pp. 643-650. IEEE, 2011.
282
+ Pang Wei Koh and Percy Liang. Understanding black-box predictions via influence functions. In International conference on machine learning, pp. 1885-1894. PMLR, 2017.
283
+ Pang Wei Koh, Jacob Steinhardt, and Percy Liang. Stronger data poisoning attacks break data sanitization defenses. Machine Learning, pp. 1-47, 2022.
284
+ Ron Kohavi. Scaling up the accuracy of naive-bayes classifiers: A decision-tree hybrid. In Proceedings of the Second International Conference on Knowledge Discovery and Data Mining, KDD'96, pp. 202-207. AAAI Press, 1996.
285
+ Alexander Kraskov, Harald Stögbauer, Ralph G Andrzejak, and Peter Grassberger. Hierarchical clustering using mutual information. *Europhysics Letters*, 70(2):278, 2005.
286
+ Tianci Liu, Haoyu Wang, Yaqing Wang, Xiaogian Wang, Lu Su, and Jing Gao. Simfair: A unified framework for fairness-aware multi-label classification. Proceedings of the AAAI Conference on Artificial Intelligence, 37(12):14338-14346, 2023.
287
+ Christos Louizos, Kevin Swersky, Yujia Li, Max Welling, and Richard Zemel. The variational fair autoencoder. arXiv preprint arXiv:1511.00830, 2015.
288
+ David Madras, Elliot Creager, Toniann Pitassi, and Richard Zemel. Learning adversarially fair and transferable representations, 2018. URL https://arxiv.org/abs/1802.06309.
289
+ Ninareh Mehrabi, Muhammad Naveed, Fred Morstatter, and Aram Galstyan. Exacerbating algorithmic bias through fairness attacks. In Proceedings of the AAAI Conference on Artificial Intelligence, pp. 8930-8938, 2021.
290
+
291
+ Shike Mei and Xiaojin Zhu. Using machine teaching to identify optimal training-set attacks on machine learners. In Twenty-Ninth AAAI Conference on Artificial Intelligence, 2015.
292
+ Daniel Moyer, Shuyang Gao, Rob Brekelmans, Aram Galstyan, and Greg Ver Steeg. Invariant representations without adversarial training. Advances in Neural Information Processing Systems, 31, 2018.
293
+ Nicolas Papernot and Patrick McDaniel. Deep k-nearest neighbors: Towards confident, interpretable and robust deep learning. arXiv preprint arXiv:1803.04765, 2018.
294
+ Andrea Paudice, Luis Muñoz-González, and Emil C Lupu. Label sanitization against label flipping poisoning attacks. In ECML PKDD 2018 Workshops: Nemesis 2018, UrbReas 2018, SoGood 2018, IWAISE 2018, and Green Data Mining 2018, Dublin, Ireland, pp. 5-15, 2019.
295
+ Dino Pedreshi, Salvatore Ruggieri, and Franco Turini. Discrimination-aware data mining. In Proceedings of the 14th ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 560-568, 2008.
296
+ P Ram Mohan Rao, S Murali Krishna, and AP Siva Kumar. Privacy preservation techniques in big data analytics: a survey. Journal of Big Data, 5:1-12, 2018.
297
+ Charan Reddy, Deepak Sharma, Soroush Mehri, Adriana Romero-Soriano, Samira Shabanian, and Sina Honari. Benchmarking bias mitigation algorithms in representation learning through fairness metrics. In Thirty-fifth Conference on Neural Information Processing Systems Datasets and Benchmarks Track (Round 1), 2021. URL https://openreview.net/forum?id=OTnqQUEewPKu.
298
+ Mhd Hasan Sarhan, Nassir Navab, Abouzar Eslami, and Shadi Albarqouni. Fairness by learning orthogonal disentangled representations. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XXIX 16, pp. 746-761. Springer, 2020.
299
+ Ali Shafahi, W Ronny Huang, Maharaj Najibi, Octavian Suciu, Christoph Studer, Tudor Dumitras, and Tom Goldstein. Poison frogs! targeted clean-label poisoning attacks on neural networks. Advances in neural information processing systems, 31, 2018.
300
+ Ankur Sinha, Pekka Malo, and Kalyanmoy Deb. A review on bilevel optimization: From classical to evolutionary approaches and applications. IEEE Transactions on Evolutionary Computation, 22(2):276-295, 2017.
301
+ David Solans, Battista Biggio, and Carlos Castillo. Poisoning attacks on algorithmic fairness. In *Machine Learning and Knowledge Discovery in Databases: European Conference*, ECML PKDD 2020, Ghent, Belgium, September 14–18, 2020, Proceedings, Part I, pp. 162–177. Springer, 2021.
302
+ Gábor J Székely, Maria L Rizzo, and Nail K Bakirov. Measuring and testing dependence by correlation of distances. The Annals of Statistics, 35(6):2769-2794, 2007.
303
+ Haoyu Wang, Hengtong Zhang, Yaqing Wang, and Jing Gao. Fair classification under strict unawareness. In Proceedings of the 2021 SIAM International Conference on Data Mining (SDM), pp. 199-207. SIAM, 2021.
304
+ Qizhe Xie, Zihang Dai, Yulun Du, Eduard Hovy, and Graham Neubig. Controllable invariance through adversarial feature learning. Advances in neural information processing systems, 30, 2017.
305
+ Muhammad Bilal Zafar, Isabel Valera, Manuel Gomez Rodriguez, and Krishna P Gummadi. Fairness constraints: Mechanisms for fair classification. In Artificial Intelligence and Statistics, pp. 962-970. PMLR, 2017.
306
+ Rich Zemel, Yu Wu, Kevin Swersky, Toni Pitassi, and Cynthia Dwork. Learning fair representations. In International conference on machine learning, pp. 325-333. PMLR, 2013.
307
+ Han Zhao, Amanda Coston, Tameem Adel, and Geoffrey J Gordon. Conditional learning of fair representations. arXiv preprint arXiv:1910.07162, 2019.
308
+
309
+ Hui Zou and Trevor Hastie. Regularization and variable selection via the elastic net. Journal of the royal statistical society: series B (statistical methodology), 67(2):301-320, 2005.
310
+
311
+ # A MOTIVATION OF ATTACKING FAIR REPRESENTATIONS
312
+
313
+ Attacking mutual information at representation level, as formalized in Section 2, aligns better with fair representation learning (FRL) and is more universal than attacking classifiers. For example, a bank may want to obtain a representation $z$ for each user that can be used to determine their eligibility for existing and upcoming financial products such as credit cards without concerning about fairness again (Zhao et al., 2019). Here each financial product is associated with a (unique) label, and determining the eligibility entails a classification task. In this case, there are two challenges for delivering a classification-based attack. First, one has to determine and justify which classifier to use and why consider the fairness of this specific classification task. Second, for any upcoming financial product, its label does not exist and one cannot obtain classifier (we need this label to train the classifier), let along attacking it. In contrast, a representation-level attack can overcome the two challenges in a single shot. As discussed in Section 2, for any classifier $g$ acting on $z$ , by maximizing the mutual information $I(z,a)$ between $z$ and sensitive feature $a$ , $I(g(z),a)$ will be maximized so long as the fairness concern exists. This implies launching attack on all labels simultaneously, including the ones where classifiers cannot be trained.
314
+
315
+ # B EXTENSION TO MULTI-CLASS SENSITIVE FEATURE
316
+
317
+ To attack a FRL method trained on multi-class sensitive feature $a \in [K]$ , We first define $\tilde{a}_k = \mathbf{1}(a = k)$ to mark whether the sample belongs to the $k$ -th sensitive group. Then we immediately have $I(z, a) \geq I(z, \tilde{a}_k)$ thanks to the data processing inequality. This implies that
318
+
319
+ $$
320
+ I (\boldsymbol {z}, a) \geq \frac {1}{K} \sum_ {k = 1} ^ {K} I (\boldsymbol {z}, \tilde {a} _ {k}).
321
+ $$
322
+
323
+ Note that in RHS each term is the mutual information between $z$ and binarized $\tilde{a}_k$ and is lower bounded by the BCE loss, therefore we can approximate each one with a FLD score readily. This idea is similar to transforming a $K$ -class classification to $K$ one-vs-all binary classifications. We report empirical results in Appendix E.6.
324
+
325
+ Further simplification is viable by choosing some specific $k$ and attacking $I(z, \tilde{a}_k)$ only. This allows one to launch an attack when $K$ is large. However, it is noteworthy that handling a sensitive feature that involves many groups (large $K$ ) is a general challenge for fair machine learning. The difficulty is twofold. First, it involves more complicated constraints, making the problem harder to optimize. Second, by categorizing data into more fine-grained sensitive groups, each group will have fewer samples and the algorithm may suffer from unstable estimation issues (Jiang et al., 2022; Liu et al., 2023). As a result, when the number of sensitive groups is large, fair machine learning methods often bin them into a few larger groups in pre-processing (Zemel et al., 2013; Moyer et al., 2018; Zhao et al., 2019; Reddy et al., 2021).
326
+
327
+ # C OMITTED PROOF OF THEOREM 3.4
328
+
329
+ We start with restating Theorem 3.4.
330
+
331
+ Theorem C.1. Suppose that Assumption 3.1, 3.2, and 3.3 hold. Let $P$ and $N$ be the number of poisoning and total training samples, respectively. Set the learning rate to $\alpha$ , and assign the batch size with $n$ . Then, the ratio of poisoning data (i.e., $P / N$ ) should satisfy
332
+
333
+ $$
334
+ \frac {P}{N} \geq c + \frac {\alpha C \sigma^ {2}}{2 n \| \nabla_ {\theta} U (\theta) \| ^ {2}} + \frac {\alpha C}{2}, \tag {7}
335
+ $$
336
+
337
+ such that the upper-level loss $U(\theta)$ (i.e., negative FLD score) is asymptotic to an optimal model. Here $c$ is a small constant (e.g., $10^{-4}$ ) for sufficient descent, and $\theta$ is a well-trained model on the clean data.
338
+
339
+ Proof. Without loss of generality, we assume that the victim is trained by mini-batched stochastic gradient descent, i.e., given current parameter $\theta^{\mathrm{old}}$ , the new value is updated by
340
+
341
+ $$
342
+ \theta^ {\mathrm {n e w}} = \theta^ {\mathrm {o l d}} - \frac {\alpha}{n} \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}),
343
+ $$
344
+
345
+ where $L_{i}(\theta)$ denotes the loss on the $i$ -th training sample. Let $p$ denote the number of poisoning samples selected in the current batch, we have that $p$ follows a Hypergeometric distribution. Given $p = n_p$ poisoning samples in the current batch, we collect all randomness in the minibatch gradient as
346
+
347
+ $$
348
+ e ^ {\text {o l d}} = \sum_ {i = 1} ^ {n _ {p}} \epsilon_ {i} + \sum_ {i = 1} ^ {n - n _ {p}} \nabla_ {\theta} L _ {i} (\theta^ {\text {o l d}}).
349
+ $$
350
+
351
+ According to Assumption 3.3 and 3.2 we have $\mathbb{E}[e^{\mathrm{old}}] = 0$ and
352
+
353
+ $$
354
+ \begin{array}{l} \mathbb {E} \left[ \| e ^ {\mathrm {o l d}} \| ^ {2} \right] = \mathbb {E} \left[ \left\| \sum_ {i = 1} ^ {n _ {p}} \epsilon_ {i} + \sum_ {i = 1} ^ {n - n _ {p}} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}} \right\| ^ {2} \right] \\ = \sum_ {i = 1} ^ {n _ {p}} \mathbb {E} [ \| \epsilon_ {i} \| ^ {2} ] + \sum_ {i = 1} ^ {n - n _ {p}} \mathbb {E} [ \| \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \| ^ {2} ] + 0 \\ \leq n \sigma^ {2}, \\ \end{array}
355
+ $$
356
+
357
+ as all crossing terms have mean zero. Moreover, we can express
358
+
359
+ $$
360
+ \begin{array}{l} \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right) = \underbrace {\sum_ {i = 1} ^ {n _ {p}} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right)} _ {\text {P o i s o n i n g s a m p l e s}} + \underbrace {\sum_ {i = 1} ^ {n - n _ {p}} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right)} _ {\text {C l e a n s a m p l e s}} \\ = \sum_ {i = 1} ^ {n _ {p}} \nabla_ {\theta} U (\theta^ {\text {o l d}}) + \sum_ {i = 1} ^ {n _ {p}} \epsilon_ {i} + \sum_ {i = 1} ^ {n - n _ {p}} \nabla_ {\theta} L _ {i} (\theta^ {\text {o l d}}) \\ = n _ {p} \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) + e ^ {\mathrm {o l d}}. \\ \end{array}
361
+ $$
362
+
363
+ This implies that further given Assumption 3.2, the minibatch gradient is a biased estimator of the gradient of the upper-level loss. To see this, by the law of total expectation
364
+
365
+ $$
366
+ \begin{array}{l} \mathbb {E} \left[ \frac {1}{n} \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \right] = \mathbb {E} \left[ \mathbb {E} \left[ \frac {1}{n} \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \mid p = n _ {p} \right] \right] \\ = \frac {1}{n} \mathbb {E} \left[ \mathbb {E} \left[ p \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) + e ^ {\mathrm {o l d}} \mid p = n _ {p} \right] \right] \\ = \mathbb {E} \left[ p \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right) \right] \\ = \frac {1}{n} \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \mathbb {E} [ p ] \\ = \frac {P}{N} \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right). \\ \end{array}
367
+ $$
368
+
369
+ Under Assumption 3.1, descent lemma gives us
370
+
371
+ $$
372
+ \begin{array}{l} U \left(\theta^ {\text {n e w}}\right) \leq U \left(\theta^ {\text {o l d}}\right) + \left\langle \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right), \theta^ {\text {n e w}} - \theta^ {\text {o l d}} \right\rangle + \frac {C}{2} \| \theta^ {\text {n e w}} - \theta^ {\text {o l d}} \| ^ {2} \\ = U (\theta^ {\mathrm {o l d}}) - \alpha \langle \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}), \frac {1}{n} \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \rangle + \frac {\alpha^ {2} C}{2 n ^ {2}} \| \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \| ^ {2}. \\ \end{array}
373
+ $$
374
+
375
+ Take expectation on both side with respect to the mini-batch we get
376
+
377
+ $$
378
+ \begin{array}{l} \mathbb {E} [ U (\theta^ {\mathrm {n e w}}) ] \leq U (\theta^ {\mathrm {o l d}}) - \alpha \langle \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}), \frac {P}{N} \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \rangle + \frac {\alpha^ {2} C}{2 n ^ {2}} \mathbb {E} \| \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} (\theta^ {\mathrm {o l d}}) \| ^ {2} \\ = U \left(\theta^ {\text {o l d}}\right) - \frac {\alpha P}{N} \| \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right) \| ^ {2} + \frac {\alpha^ {2} C}{2 n ^ {2}} \mathbb {E} \| \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right) \| ^ {2}, \tag {8} \\ \end{array}
379
+ $$
380
+
381
+ and
382
+
383
+ $$
384
+ \begin{array}{l} \mathbb {E} \| \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right) \| ^ {2} = \mathbb {E} \left[ \mathbb {E} \left[ \| \sum_ {i = 1} ^ {n} \nabla_ {\theta} L _ {i} \left(\theta^ {\text {o l d}}\right) \| ^ {2} \mid p = n _ {p} \right] \right] \\ = \mathbb {E} \left[ \mathbb {E} \left[ \| p \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) + e ^ {\mathrm {o l d}} \| ^ {2} \mid p = n _ {p} \right] \right] \\ = \mathbb {E} \left[ \mathbb {E} \left[ p ^ {2} \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2} + \| e ^ {\mathrm {o l d}} \| ^ {2} + 2 p \langle \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}), e ^ {\mathrm {o l d}} \rangle \mid p = n _ {p} \right] \right] \\ = \mathbb {E} [ p ^ {2} ] \| \nabla_ {\theta} U (\theta^ {\text {o l d}}) \| ^ {2} + \mathbb {E} [ \| e ^ {\text {o l d}} \| ^ {2} ] + 0 \\ \leq n ^ {2} \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2} + n \sigma^ {2}. \\ \end{array}
385
+ $$
386
+
387
+ Plugging in back to equation (8) we have
388
+
389
+ $$
390
+ \begin{array}{l} \mathbb {E} \left[ U \left(\theta^ {\text {n e w}}\right) \right] \leq U \left(\theta^ {\text {o l d}}\right) - \frac {\alpha P}{N} \| \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right) \| ^ {2} + \frac {\alpha^ {2} C}{2 n ^ {2}} \left(n ^ {2} \| \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right) \| ^ {2} + n \sigma^ {2}\right) \\ = U (\theta^ {\mathrm {o l d}}) - (\frac {\alpha P}{N} - \frac {\alpha^ {2} C}{2}) \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2} + \frac {\alpha^ {2} C \sigma^ {2}}{2 n}. \\ \end{array}
391
+ $$
392
+
393
+ Therefore, a sufficient descent such that
394
+
395
+ $$
396
+ \mathbb {E} \left[ U \left(\theta^ {\text {n e w}}\right) \right] \leq U \left(\theta^ {\text {o l d}}\right) - c \alpha \| \nabla_ {\theta} U \left(\theta^ {\text {o l d}}\right) \| ^ {2},
397
+ $$
398
+
399
+ for some $c\geq 0$ can be guaranteed by
400
+
401
+ $$
402
+ (\frac {\alpha P}{N} - \frac {\alpha^ {2} C}{2}) \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2} - \frac {\alpha^ {2} C \sigma^ {2}}{2 n} \geq c \alpha \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2}
403
+ $$
404
+
405
+ Rearrange
406
+
407
+ $$
408
+ \frac {P}{N} \geq c + \frac {\alpha C \sigma^ {2}}{2 n \| \nabla_ {\theta} U (\theta^ {\mathrm {o l d}}) \| ^ {2}} + \frac {\alpha C}{2}
409
+ $$
410
+
411
+ This completes our proof.
412
+
413
+ # D MORE IMPLEMENTATION DETAILS
414
+
415
+ We provide more details about victims' architectures and training. Our model architectures follow official implementations in Moyer et al. (2018); Zhao et al. (2019).
416
+
417
+ On Adult dataset, we use
418
+
419
+ CFAIR:
420
+
421
+ Encoder: linear, representation $z \in \mathbb{R}^{60}$ .
422
+ - Discriminators: one hidden layer with width 50, using ReLU activation.
423
+ - Classifier: linear.
424
+ - Training: AdaDelta optimizer with learning rate 0.1, batchsize 512, epochs 50.
425
+
426
+ CFAIR-EO:
427
+
428
+ Encoder: linear, representation $z \in \mathbb{R}^{60}$ .
429
+ - Discriminators: one hidden layer with width 50, using ReLU activation.
430
+
431
+ - Classifier: linear.
432
+ - Training: AdaDelta optimizer with learning rate 0.1, batchsize 512, epochs 50.
433
+
434
+ # - ICVAE-US:
435
+
436
+ - Encoder: one hidden layer with width 64, output representation $\mathbf{z} \in \mathbb{R}^{30}$ , using Tanh activation.
437
+ - Decoder: one hidden layer with width 64, using Tanh activation.
438
+ - Classifier: one hidden layer with width 64. using Tanh activation.
439
+ - Training: Adam optimizer with learning rate 0.001, batchsize 512, epochs 50.
440
+
441
+ # - ICVAE-S:
442
+
443
+ - Encoder: one hidden layer with width 64, output representation $\mathbf{z} \in \mathbb{R}^{30}$ , using Tanh activation.
444
+ - Decoder: one hidden layer with width 64, using Tanh activation.
445
+ - Classifier: one hidden layer with width 64. using Tanh activation.
446
+ - Training: Adam optimizer with learning rate 0.001, batchsize 512, epochs 50.
447
+
448
+ On German dataset, we use
449
+
450
+ # CFAIR:
451
+
452
+ Encoder: linear, representation $\mathbf{z} \in \mathbb{R}^{60}$ .
453
+ - Discriminators: one hidden layer with width 50, using ReLU activation.
454
+ - Classifier: linear.
455
+ - Training: AdaDelta optimizer with learning rate 0.05, batchsize 64, epochs 300.
456
+
457
+ # CFAIR-EO:
458
+
459
+ Encoder: linear, representation $\mathbf{z} \in \mathbb{R}^{60}$ .
460
+ - Discriminators: one hidden layer with width 50, using ReLU activation.
461
+ - Classifier: linear.
462
+ - Training: AdaDelta optimizer with learning rate 0.05, batchsize 64, epochs 300.
463
+
464
+ # - ICVAE-US:
465
+
466
+ - Encoder: one hidden layer with width 64, output representation $z \in \mathbb{R}^{30}$ , using Tanh activation.
467
+ - Decoder: one hidden layer with width 64, using Tanh activation.
468
+ - Classifier: one hidden layer with width 64. using Tanh activation.
469
+ - Training: Adam optimizer with learning rate 0.001, batchsize 64, epochs 300.
470
+
471
+ # - ICVAE-S:
472
+
473
+ - Encoder: one hidden layer with width 64, output representation $z \in \mathbb{R}^{30}$ , using Tanh activation.
474
+ - Decoder: one hidden layer with width 64, using Tanh activation.
475
+ - Classifier: one hidden layer with width 64. using Tanh activation.
476
+ - Training: Adam optimizer with learning rate 0.001, batchsize 64, epochs 300.
477
+
478
+ During training, we followed GradMatch (Geiping et al., 2020) and did not shuffle training data after each epoch. For better comparison, victims were always initialized with random seed 1 to remove randomness during the pre-training procedure. In different replications, we selected different poisoning samples with different random seeds. Experiments that consist of 5 replications used seed 1 to 5 respectively.
479
+
480
+ # E MORE EXPERIMENT RESULTS
481
+
482
+ # E.1 PRACTICABILITY OF PERTURBING PRE-PROCESSED DATA
483
+
484
+ Many poisoning attacks on images classifiers perturb raw data (namely pixels, (Huang et al., 2020; Geiping et al., 2020)), in this work we perturb pre-processed data. However, this does not necessarily undermine the practical significance of our work. To see why attacking the pre-processed data is practical, we take a view from the scope of data security. Many FRL methods are applied in high-stakes domains, such as loan application or job market screening. Due to the privacy concern, Data anonymization has been used by more and more data providers to protect their data privacy and is often done as a part of the data pre-processing as discussed in Iyengar (2002); Ram Mohan Rao et al. (2018). In such cases, a malicious data provider can release a poisoned pre-processed (anonymous) dataset and launch the attack on victim models trained with it.
485
+
486
+ # E.2 FLD SCORE APPROXIMATES BCE LOSS
487
+
488
+ We evaluated how well the optimal BCE loss of logistic regression can be approximated by three FLD scores used in our experiments: FLD, sFLD, and EUC. To this end, we train each victim for 50 epochs and compute the empirical optimal BCE loss of a logistic regression to predict $a$ from representation $z$ after each epoch. Then we compare the trend of BCE loss versus FLD, sFLD, and EUC scores.
489
+
490
+ Figure 4 visualizes the negative value of FLD, sFLD, and EUC and associated BCE losses of four victims trained on Adult and German dataset with and without poisoning samples crafted by corresponding ENG attack after each epoch. In all cases, the three scores approximate how BCE loss changes very well.
491
+
492
+ # E.3 EFFECTS ON DP VIOLATIONS
493
+
494
+ Here we report increase of DP violations of victims attacked by three ENG-based attacks and AA-based baselines in Figure 5. As analyzed in Section 2, our attack successfully increased the DP violation significantly on most setting, clearly establishing their effectiveness.
495
+
496
+ # E.4 EFFECTS ON ACCURACY
497
+
498
+ Here we report change of accuracy of predicting $y$ from representation $z$ learned by victims attacked by three ENG-based attacks and AA-based baselines in Figure 6. In general, all attacks had relatively subtle influence on prediction accuracy, and our proposed ENG-based attacks often changed accuracy less. These results imply that poisoned representations are still of high utility, and it will be difficult for the victim trainer to identify the attack by checking the prediction performance alone.
499
+
500
+ # E.5 PERFORMANCE OF ELASTIC-NET PENALTY
501
+
502
+ Here we report more experimental results on evaluating the performance of elastic-net penalty under varying hyper-parameters. Figure 7 and 9 reports how elastic-net penalty affects the attack performance, corresponding $L_{1}$ and $L_{2}$ norms of learned perturbations are reported in Figure 10 and 11, respectively.
503
+
504
+ We further compare elastic-net penalty versus $L_{1}$ norm penalty for regulating the attack. Figure 8 shows corresponding decrease of BCE loss and Figure 12 shows corresponding $L_{1}$ and $L_{2}$ norms. Compared with elastic-net penalty, penalizing $L_{1}$ norm only usually resulted in larger $L_{1}$ and $L_{2}$ norms while the attack performance was hardly improved, especially when small- to intermediate-level coefficient(s) $(\lambda_{1}$ and $\lambda_{2}$ ) of the regularizer is used.
505
+
506
+ Given the advantages of utilizing elastic-net penalty, one may ask if it can be used in other attacks such as AA (Mehrabi et al., 2021) as well. Here we delve into the difficulty of such an application, highlighting the suitability of elastic-net penalty for our attack by nature.
507
+
508
+ According to Mehrabi et al. (2021), both RAA and NRAA constructed poisoning samples from a chosen anchor point by perturbing its $x$ randomly within a $\tau$ -ball and flipping its $y$ or $a$ . The
509
+
510
+ ![](images/65eb18afd26fd342c68d53ca014b4391e6cb555a91e1020564055b46a30d4beb.jpg)
511
+ Figure 4: Changes of FLD, sFLD, and EUC loss (the negative score) and corresponding BCE loss. Results are averaged over 5 independent replications and bands show standard errors.
512
+
513
+ ![](images/3499a346c53bc1203c8ac79ebff1f1b8019a0bf24d32d25522a583e71815426f.jpg)
514
+ (b) German dataset
515
+ Figure 5: Increase of DP violations from different attackers using $5\%$ - $15\%$ training samples for poisoning, Results are averaged over 5 independent replications and bands show standard errors.
516
+
517
+ ![](images/6b1dfa31cf404435920d65fcaf2e81ee38ef07670746a942e8c32eb4de6246b6.jpg)
518
+
519
+ ![](images/15537a5413ed3d2fce85070f52f1de79522d906468373f1f50dd0e23e5e54323.jpg)
520
+ (a) Adult dataset
521
+
522
+ ![](images/7eb5817f1c0491560e6a3f2b2762c8ea9242f96cd92f2d346bf8facd7086c04a.jpg)
523
+
524
+ ![](images/48797c41f2276337fe3e30f42f5c808a976dd9da3bcdef43206ff037eab0c7e3.jpg)
525
+
526
+ ![](images/70ad5406867aeccc1f7439baa7fb6eddb556133acd2c45a3010e8e7ca3a16983.jpg)
527
+ Figure 6: Accuracy of predicting $y$ from $z$ when different attackers using $5\% - 15\%$ training samples for poisoning, Results are averaged over 5 independent replications and bands show standard errors.
528
+
529
+ ![](images/7628ee985154f53374b5c188fbc67673c1fa980035b0f57dec10346837d91884.jpg)
530
+ (b) German dataset
531
+
532
+ ![](images/384b8fab863a4c7ccbb952a714f873d135e1507322405a3262c7d229776c8618.jpg)
533
+
534
+ ![](images/350358a8268105d65d572b79ba8584da25491ee993314ac852c777e5c87f9885.jpg)
535
+
536
+ main difference lies in how they choose these anchor samples: RAA draws them uniformly from the training data. NRAA computes the pairwise distance between all training data and counts how many neighbors and chooses the training samples that have the most neighbors with flipped $y$ or $a$ as anchor data. Here two samples are neighboring if their $y$ and $a$ are same and the difference in their $x$ is smaller than a pre-specified threshold.
537
+
538
+ It is viable to define $\tau$ -ball based on the elastic-net norm. Nonetheless, the use of $\tau$ -ball will make NRAA harder to analyze in general. NRAA is thought stronger (which is empirically verified in both Mehrabi et al. (2021) and our experiment) because the chosen poisoning samples are likely to have higher influence as they have more neighbors. However, sampling from $\tau$ -ball will make some poisoning samples have more neighbors while others have less. In fact, the authors of AA used $\tau = 0$ throughout their experiments and we adopted this setting. This difficulty remains unsolved when using elastic-net norm to induce the $\tau$ -ball. In conclusion, ENG, as a perturbation-learning-based attack, has a better affinity to the elastic-net penalty than AA baselines.
539
+
540
+ # E.6 ATTACKING MULTI-CLASS SENSITIVE FEATURE
541
+
542
+ Here we show empirical results of attacking victims trained on Adult dataset using race as the sensitive feature. Due to data imbalance issue we keep white and black group as they are. All other sensitive groups are re-categorized as others. This results in a 3-way sensitive feature $a$ and we measure $I(z, a)$ by the decrease of cross-entropy (CE) loss to predict $a$ from $z$ with a linear Softmax classifier. Note that both the CE loss and the averaged one-vs-all BCE loss (see Appendix B for details) lower bounds $I(z, a)$ , but we report CE loss for the sake of better interpretability. Due to the lack of official implementation of CFAIR and CFAIR-EO on multi-class sensitive feature, we only attack ICVAE-US and ICVAE-S. As shown in Figure 13, ENG-based attack outperforms four AA baselines.
543
+
544
+ # E.7 DEFENSE AGAINST ENG ATTACKS
545
+
546
+ Here we present reducing batch size as a defense strategy against ENG attacks. We only defend against successful attacks and focus on Adult dataset where attacks used $\lambda_{1} = 0.0025$ , $\lambda_{2} = 0.005$ . We vary the batch size between 256 to 1024 and keep all other settings same as in Section 4. Resultant decrease of upper-level loss $-s$ and BCE loss are reported in Figure 14. Reducing batch size successfully helped weaken the performance of attacking 3 out of 4 victims in terms of $-s$ .
547
+
548
+ Note that according to Theorem 3.4, it is conceptually viable to increasing learning rate $\alpha$ to defend. However, using a large learning rate in a well-trained victim model may have side effect of making it diverge. Because of this, we consider reducing batch size a better and more practical choice.
549
+
550
+ ![](images/621e950daee4b70fd04c4215403e799bdc7999c6c3bf5942298c791fe57ef876.jpg)
551
+
552
+ ![](images/50141848ed2b82f0b7a57f2b53a0fe81ac7e541f1f8ee719f278c7b09621e00c.jpg)
553
+ (a) ENG-FLD attack
554
+
555
+ ![](images/d3cc3f0582f0184a8d0531aee19cf4e7ae6323d25095c37dd9b911824d7cccdf.jpg)
556
+
557
+ ![](images/797c0086f1b5508e34e4c27b3755aacd3f942649a6913fab1616ea69c69620cd.jpg)
558
+
559
+ ![](images/859976ecaf8c3515933dd81ca9b6ff60c74a2bd9b1743ec774c9121491f4a6ed.jpg)
560
+
561
+ ![](images/ad184a2c66a1d363496c82e6b6783e7cd1b03e47f743b8f0b1573055b5b1cb80.jpg)
562
+
563
+ ![](images/fa5b7e7979f27d8c89d62cecc052cbc5c66f8b6bab5b3d79ac77cc84066963b4.jpg)
564
+ (b) ENG-sFLD attack
565
+
566
+ ![](images/80c0d5c0cbcc5a3025d8fb679652e22ddb11954e41752682f992bba5a58acf8a.jpg)
567
+
568
+ ![](images/8b336766465fc30a0ff0f622512617eb5c1b654fabdfb3fc4e9c702e525770b2.jpg)
569
+
570
+ ![](images/d83b84aad8914274cf49c059a4c4899749830f945db6dd5763e19572bdbb00f6.jpg)
571
+ Figure 7: Decrease of BCE loss achieved by different ENG-based attacks with varying hyperparameters, victims are trained on Adult dataset. Results are averaged over 5 independent replications and bands show standard errors.
572
+
573
+ ![](images/2df9dba04bd2e567791bb23c23bdf3190c92d3dedf91ac43f0cba9512d590f74.jpg)
574
+ (c) ENG-EUC attack
575
+
576
+ ![](images/56d8bc780fc69eddf735c50cea88cf1c749ed006831fd75545bf75065fa096e7.jpg)
577
+
578
+ ![](images/9d2d2f36bad6338bf238406798a78fdc4ad45e87b1b73430671e2c9c3c9459ae.jpg)
579
+
580
+ ![](images/68972fa4328e9bbcdef54602168e63ff7360397c708d1466703d54ef66a2c380.jpg)
581
+
582
+ ![](images/c1488051db8ac439d5e4e8e7da2f01f4bd8fdf1e6f100c99fd7861c92f0e9665.jpg)
583
+
584
+ ![](images/12c368c61f18e806541a13fc599ff0f4a8d3996a0bbb31093ed94a6a7a20662f.jpg)
585
+
586
+ ![](images/b92b5e45645ee3dc0d5be41e4e175af8e83a10433c9b9d89ac88304b1b39c2d8.jpg)
587
+
588
+ ![](images/a081c8e7399220163f6b5eab90662acb37318c6fe521ddd3dd199071da435394.jpg)
589
+
590
+ ![](images/827b84b54dcd3ae9f960bd68e5baa492ae01ab22c0e3c9d263fb3de8f2e71949.jpg)
591
+ (a) ENG-FLD attack with only $L_{1}$ penalty
592
+
593
+ ![](images/f929d13c44a9866109c0373a2515e91f43feb3af28aa6e175fc3ea9c2a4943dd.jpg)
594
+
595
+ ![](images/198b87f9aefc01c2cf72311e21568d164d21f485798c97a0ed2e2c60497dd5df.jpg)
596
+
597
+ ![](images/94d42c81fe0abc4a5cf9f6d6317ce3efaf90cfe32aac9bbf63db7429e61c9ad4.jpg)
598
+ Figure 8: Decrease of BCE loss achieved by different ENG-based attacks with varying hyperparameters on $L_{1}$ penalty and no $L_{2}$ penalty, victims are trained on Adult dataset. Results are averaged over 5 independent replications and bands show standard errors.
599
+
600
+ ![](images/91098601e76ffe2fa1cdb5be294da3802e3b2849d093600e5001a40bffb0889b.jpg)
601
+ (b) ENG-sFLD attack with only $L_{1}$ penalty
602
+
603
+ ![](images/1b8c85e9f9442aac7bab3223e1083409b473501b6b09da56d1b9ab77d2a2188a.jpg)
604
+ (c) ENG-EUC attack with only $L_{1}$ penalty
605
+
606
+ ![](images/55ea3315e542cd7548aab4ec2ee304962201d66693522a4f4e00a54c10afe526.jpg)
607
+
608
+ ![](images/3bdbd04d6f6947b875545dd8dde945adbef0c541ab300f76add5c3852ee4e710.jpg)
609
+
610
+ ![](images/f4701da098127d53154c38cabb3147380815233e01c43db5f56739b8f4c912f6.jpg)
611
+ (a) ENG-FLD attack
612
+
613
+ ![](images/1c66b42bc0eb6e8ca0548b1f1ac9704ca2c02978ba5b452b9849f5b23e75444d.jpg)
614
+
615
+ ![](images/dd38f0d68efadecb2971d0dfc46f4f5b0459b7efa7968f3487061fd604ae61ca.jpg)
616
+
617
+ ![](images/8af7ea069ab1f816d88e0306132db0b0115fd3a6f66882b9aeb8b0e4c6f7a61f.jpg)
618
+
619
+ ![](images/c5145dffa9fd870655b9abe109b193036e247c90a94e658259f41afc3b7bd7ee.jpg)
620
+ (b) ENG-sFLD attack
621
+
622
+ ![](images/bee668ed0f6d6ec63b2df10b942adb10f7fcfab506f47055be4bf06962283f6d.jpg)
623
+
624
+ ![](images/a81694fd6a40f701a9db5b0d063c46df8fd6e508378bc43879a0c77ed728de3d.jpg)
625
+
626
+ ![](images/15020149d042e66b4d935a8801d80f138d0cfaf866d14710eef49aee18a9eb44.jpg)
627
+ Figure 9: Decrease of BCE loss achieved by different ENG-based attacks with varying hyperparameters, victims are trained on German dataset. Results are averaged over 5 independent replications and bands show standard errors.
628
+
629
+ ![](images/bab77d9726c83fe82a31a2cf666e6c2e3405c2f727cfd63db657bbcbcc29f74b.jpg)
630
+ (c) ENG-EUC attack
631
+
632
+ ![](images/65c621030d1fc8ff2fa7abdb4f3bc2a0a7b4040cadc80eadc3dd9a6a44be6788.jpg)
633
+
634
+ ![](images/dff29a42c3c5890c5f1ceeb6c3a5b53a35382b03fc3429df0660ac09b4109c25.jpg)
635
+
636
+ # E.8 MORE EXPERIMENT RESULTS ON COMPAS AND DRUG CONSUMPTION DATASETS
637
+
638
+ Here we present more experimental results of attacking four FRL methods trained on COMPAS and Drug Consumption datasets. We adopted the same setting for data preprocessing and training-testing splitting pipelines as presented in Section 4 on Adult and German datasets. In specific, we report decrease of BCE losses in Figure 15, increase of DP violations in Figure 16, and accuracy of predicting $y$ from $z$ in Figure 17. Again, our attacks succeeded on all cases, outperforming AA baselines to a large extent.
639
+
640
+ In terms of model architecture, we adopted the recommended architectures from Zhao et al. (2019) for CFAIR and CFAIR-EO on COMPAS dataset; and the default setting presented in Appendix D on Drug Consumption datasets due to the lack of official implementations. For ICVAE-US and ICVAE-S, we used the default setting from Appendix D on both datasets because of the lack of official implementations.
641
+
642
+ ![](images/aeb1085b27e8b1e0675591b608e7acfb08b446bed7498b7608fe1fb18812d4bc.jpg)
643
+
644
+ ![](images/17b7ab4fba1e2592d7f9232b0ac201623954ec63b4d4ce69a58749344834231c.jpg)
645
+ (a) ENG-FLD attack, $L_{1}$ norm
646
+
647
+ ![](images/90e83e2667b07d7692ab552ffcdd59acabe0c06716a87421bed136326f18d10f.jpg)
648
+
649
+ ![](images/186272ee94b574e82aa6ed4609b421134d9df5a273d75f61e5af09fc6da8d271.jpg)
650
+
651
+ ![](images/9a5e098505fc11fb52d79f7e8c6c28f0ec78eb92d3d930ef7da93a3fab310b63.jpg)
652
+
653
+ ![](images/a4650b8cb3cb47af90afaa5d332d97e8251d18f2d0770055cb0fb14cfdc71741.jpg)
654
+ (b) ENG-sFLD attack, $L_{1}$ norm
655
+
656
+ ![](images/c40cd01b4955c1899b9067c6d8a83c554e9edadefe050aaea1ce12728ad7fa21.jpg)
657
+
658
+ ![](images/b774651f2cb97a6f2e0590f691c6242187d7fff269365da61e7865bc07232468.jpg)
659
+
660
+ ![](images/966357cda6e0a7806019d3cdc48c418367587b6832ba9f48d86d01aa15430ea0.jpg)
661
+
662
+ ![](images/ea7e7947eb8cda2f4cfa85252a3cf787db6f425cf4009415f8fb68e848fb7b1f.jpg)
663
+ (c) ENG-EUC attack, $L_{1}$ norm
664
+
665
+ ![](images/e88f045013cf5f8b0ceaea68e5112910e1bad8ededcc739620c3cc8001b79119.jpg)
666
+
667
+ ![](images/805a302fc48c76ab380257894e248e98b842f4c1445dd8590416d1f44b0322e5.jpg)
668
+
669
+ ![](images/4dba5dcb75e16bde16e2fc6f43eaf50bb7a3f7d4a6efe3994afb1e23eac0b1ee.jpg)
670
+
671
+ ![](images/7a5ad1fdc36e574784d99e500ed7cd405d7e15163872edaa28c60859e5b90462.jpg)
672
+ (d) ENG-sFLD attack, $L_{2}$ norm
673
+
674
+ ![](images/4a14473e5f45a49e4ba3bc70a183e28e7629fa15edba557daccb2f9eff9cf0f4.jpg)
675
+
676
+ ![](images/fce4978ff28ea31950f76ebcc503db73ed6537d8ac26404c98b241ee0ec88a67.jpg)
677
+
678
+ ![](images/ced213eb21e65887f98adde0b39c9eb4ddaa8d353eda800de5d178fe4e9361f2.jpg)
679
+
680
+ ![](images/6c17082911a91ac899cdfd400ad5b7502255b35b4e0daabe9fd692d023f32927.jpg)
681
+ (e) ENG-EUC attack, $L_{2}$ norm
682
+
683
+ ![](images/1ed60d703c36d430130ccaec61bfb3549c13d7267159b5bed38b54c2c6f5aa8d.jpg)
684
+
685
+ ![](images/146d4b3771454fbb7abe15304ed180621fdafe41d8d46d150eb5fd0b7d44e5df.jpg)
686
+
687
+ ![](images/d587bc2ebb83f04e17a163840bcfee53ffe4891eb8bfd40b718bf7b3eccaff17.jpg)
688
+ Figure 10: Averaged $L_{1}$ and $L_{2}$ norm of perturbations learned by different ENG-based attacks with varying hyper-parameters, victims are trained on Adult dataset.
689
+
690
+ ![](images/288f82eb73e6d5ce0825ae451e1da7b2e52de740a39e4efdabb9df644a1eecf3.jpg)
691
+ (f) ENG-sFLD attack, $L_{2}$ norm
692
+
693
+ ![](images/010d4baa92ec16b058cc2009bdc7878f27c6ab64ac600786ca1dd9ff36bcfb14.jpg)
694
+
695
+ ![](images/7be5c2436f81afc614ae7617fe90f4fc7a9c8d10f4b061c16ee49a63908be0a9.jpg)
696
+
697
+ ![](images/329f75597954eb5a6adc7cbcd0525ffb39035c64641280dc966072df6f9c2648.jpg)
698
+
699
+ ![](images/9ceabc665c65e9a3a1af3a595410479cbe6a679020cd2bc6e062fe8c05004bbe.jpg)
700
+ (a) ENG-FLD attack, $L_{1}$ norm
701
+
702
+ ![](images/4102cfc3da2986b7b5380ccd088c7c84814dc90cf805833dfa7388a798db1a59.jpg)
703
+
704
+ ![](images/01f442e3aa5654131571fb1daeb0a058ca1655d5e7fef9f860cc250a81725161.jpg)
705
+
706
+ ![](images/03dbf208ba7a7730d991b90eb622ff5ab50b2034d2196d0cc279a8b2463e2c1d.jpg)
707
+
708
+ ![](images/80ee9f08199b419f8cf3b3512601dc8559fe7030bb23a7411669798ec93ee935.jpg)
709
+
710
+ ![](images/5b2661c08ec316f206c7859bb6623552d0cdeacb45134f2e9cfb54a07921cc48.jpg)
711
+ (b) ENG-sFLD attack, $L_{1}$ norm
712
+
713
+ ![](images/3275eae898526b7b0a0b2b7e018f9611fcf901bcd5c2e0e27263321e044993b3.jpg)
714
+
715
+ ![](images/93196ed42f323ab6fc05b637e93371545388a9af9892c31738eb0530c78b8363.jpg)
716
+
717
+ ![](images/2da87d5c541f0e9ccfebdb766c4da03b617ad3c79faed2b1d3bf8423511ae687.jpg)
718
+
719
+ ![](images/1e9fc17097bdbfd20e848e5b0b1d4726ed23957e29a3da891cec1302ae0a66e4.jpg)
720
+ (c) ENG-EUC attack, $L_{1}$ norm
721
+
722
+ ![](images/dd616140f04900cf24203fa52584f673d9c9c045a866c8a944063bb12e3a2a47.jpg)
723
+
724
+ ![](images/88cc8cc43d7caf125fcac621a05d1975da02d62f76b00dbb67a3be1833f6ce20.jpg)
725
+
726
+ ![](images/94da50808f7f93647a45c6a2f53d251104215693699bc4b542d59b869d4c78de.jpg)
727
+
728
+ ![](images/1cc246f55d879c225a07c97c2686496fa22e0b3f711f7217dbe4cb5c21195717.jpg)
729
+ (d) ENG-sFLD attack, $L_{2}$ norm
730
+
731
+ ![](images/46a0fa7d00a15a7773693e3116eda12308d77be00fca03544a3ddc6e2a8636c1.jpg)
732
+
733
+ ![](images/c65a02da91c687bfb27d8074e45ff2587cc290213048585deb463584c3a2d25f.jpg)
734
+
735
+ ![](images/f55a66faf143b05c45ca0e06ccae5454abd2cb17b4706fd08f267d18450bf5eb.jpg)
736
+
737
+ ![](images/a36aed598cc715294f0979e27ab0fa5838729ed146033a19ce5c21e9abc40733.jpg)
738
+ (e) ENG-EUC attack, $L_{2}$ norm
739
+
740
+ ![](images/a7441c5ebefb30c4d8b5f17f4f5dedeead16ead3d4d9ec8fbd502bf718b7f04e.jpg)
741
+
742
+ ![](images/f9eebe7d177b7d5d1d2b0ee8f0c5b6c08b33e317a0e527c330580416487c5c72.jpg)
743
+
744
+ ![](images/a657c4d311e29075781253e07f5777a0e02d65f06efaad7d8b9ee869bed11f88.jpg)
745
+ Figure 11: Averaged $L_{1}$ and $L_{2}$ norm of perturbations learned by different ENG-based attacks with varying hyper-parameters, victims are trained on German dataset.
746
+
747
+ ![](images/0061ef84bb967d1529454b7d2e76116af6dd62ad38eec0819d9eab948f792de9.jpg)
748
+ (f) ENG-sFLD attack, $L_{2}$ norm
749
+
750
+ ![](images/56d7d5f3a8a92c5f030aba6c8c049cb6a47deb15894fe28074c8933763838764.jpg)
751
+
752
+ ![](images/e29fed65581d35ff7daef8a6d135865e6745e22b5f3907e2e77b8c952d68e787.jpg)
753
+
754
+ ![](images/5026898eab1325fe84488b5261953f6a084f60fa942af240312951542c71fb35.jpg)
755
+
756
+ ![](images/98947bbc6613c41094f991d4dbbebb2cc2ccd6990b1e5703ec09b296cebc1d51.jpg)
757
+ (a) ENG-FLD attack, $L_{1}$ norm
758
+
759
+ ![](images/dfdb7ad6651d44c8311d844cf2ea032e4fbb9971131223c86d3ffe85f5474941.jpg)
760
+
761
+ ![](images/5296dda98b294dccc7c3c557d8a97a53c55903ea6ac437ec287c8206ec8fdbf0.jpg)
762
+
763
+ ![](images/c020d033583d688d527c83d260b178cebd977bd05d1cd1f0402823b7287597c7.jpg)
764
+
765
+ ![](images/ba69d345b9952d3e3483fac17223b9bdceb02317a88b70b124981813a3c0e0c6.jpg)
766
+ (b) ENG-sFLD attack, $L_{1}$ norm
767
+
768
+ ![](images/8634f103d1d6ea7e0b65edc30f7758e49cf97e8a4963be3c2ee5069964dcbe6e.jpg)
769
+
770
+ ![](images/41edbe12b412f3ea79a5fe757dc525720e404f4a5c0f3d7ff16bb399bdd4e36d.jpg)
771
+
772
+ ![](images/d2d961db9ae1b85241447d9285608dd5c7a90ecefd8b6eb2a465d12b2d5efb30.jpg)
773
+
774
+ ![](images/7adf4fa0d6377286186ac942adca0eeaf266d6a0e006ac59ee23dc19e09a78a5.jpg)
775
+ (c) ENG-EUC attack, $L_{1}$ norm
776
+
777
+ ![](images/a70714aebce9736c493a14689dd398644bdcacc85948833850c39b4c152a64eb.jpg)
778
+
779
+ ![](images/2b500f0bd6364bd417976d5953e64ec1f25b5a662be63390b63682bfb9207a99.jpg)
780
+
781
+ ![](images/be7828985d847d81825a61bcf63b6cf1c9d866068959679674687b9f2563466c.jpg)
782
+
783
+ ![](images/dce0410c213bf583118436e414414f534d366f18d9e36f521f9ebb106a2c441f.jpg)
784
+ (d) ENG-sFLD attack, $L_{2}$ norm
785
+
786
+ ![](images/00e3779f09093cd87827d5aa5626e282a149fe65b42e8a1c46b404428a78fcfd.jpg)
787
+
788
+ ![](images/4f5b339d848883b06924e5c23d70803a8028e975c97083faade9c700a7adaf5c.jpg)
789
+
790
+ ![](images/db5e02578b6a113db930f73a1ecde3c2674f5c0ce116d82eb3a100f13d4927a2.jpg)
791
+
792
+ ![](images/34bdd6c3878825b4bbca334992d54bf4ee2c2c9a2e3774b8aa259f073b29daf5.jpg)
793
+ (e) ENG-EUC attack, $L_{2}$ norm
794
+
795
+ ![](images/ac22d60aed0e3a90ca26f3fbc3f55222cead170e7333a42379a870466295d5bc.jpg)
796
+
797
+ ![](images/3ae17d81f93c55018027efadfe5bcd62f47d825f8dea7080d158d90f8ee8db5f.jpg)
798
+
799
+ ![](images/356fc4a748c043e4dfad4a1867ecbb55b7e147725a4295cb78ddfca80984a540.jpg)
800
+ Figure 12: Averaged $L_{1}$ and $L_{2}$ norm of perturbations learned by different ENG-based attacks with varying hyper-parameters on $L_{1}$ penalty and no $L_{2}$ penalty, victims are trained on Adult dataset.
801
+
802
+ ![](images/87802b2fc3745c7821d71f1a4649951880873396d44f42a5418204c6070747df.jpg)
803
+ (f) ENG-sFLD attack, $L_{2}$ norm
804
+
805
+ ![](images/e6847441feb02b40f10af3ccbc4d67f2da61b5fed521c79113a05148e00373b8.jpg)
806
+
807
+ ![](images/20449bb3f93ea617a9d354fde8b70ee28883e0404e394853ab7b5fed16cbc9ad.jpg)
808
+
809
+ ![](images/a1e2f7e033ec1e7496d72399e64bee1d752b0f2040580dcdbc4249c3a1744a9a.jpg)
810
+ Figure 13: Decrease of CE loss from attacking victims trained on Adult dataset with sensitive feature race.
811
+
812
+ ![](images/f9c96347d04f2bf66592f7e34977522446451fef0b951fcf3f08493a84ceab19.jpg)
813
+
814
+ ![](images/e2fdce1df5700d0e00a369d13026ea659f3ea31edee5e62c50923e87f11822b6.jpg)
815
+ (a) Decrease of upper-level loss
816
+
817
+ ![](images/e2b6406fdd6e315d75d53ff066dddac969a73e73edde4a41e43cd89c602e8763.jpg)
818
+
819
+ ![](images/1b799e3e5e03c080b409c7efc439113f1aa42af9e3f8bca1ffd73192e41c9243.jpg)
820
+
821
+ ![](images/cee48983578d6837170237b25d888833f9963e6f0657b706a134869993bbe187.jpg)
822
+ Figure 14: Effectiveness of reducing batch size as a defense against the proposed ENG-based attacks, different attackers using $1\% - 15\%$ training samples for poisoning. Results are averaged over 5 independent replications and bands show standard errors.
823
+
824
+ ![](images/de2a21578b92684423adf7a9d3382e4b1b7067fc4839633747d62641c1fbff60.jpg)
825
+ (b) Decrease of BCE loss
826
+
827
+ ![](images/bea89b13124de7705854d873e22c3f3df066503d3f06465d75cce33bb370c39f.jpg)
828
+
829
+ ![](images/c302a9697df049034fc13d85ad7ca68e46510e00e6eeccafdfd2af3407f83cd7.jpg)
830
+
831
+ ![](images/8bcd6750897f2c37362026cafe01c2716fbabd7f580f77b1a8ed2b4e7f03f996.jpg)
832
+
833
+ ![](images/1a2867548cb038336209c1119ed9921761bafb9165900e0e8e2315a3f0afef96.jpg)
834
+ (a) COMPAS dataset
835
+
836
+ ![](images/8ecac4ea1e3fd2828a93cd41c9ff6200b1c49fa3c4464ff7abdcc324876ec187.jpg)
837
+
838
+ ![](images/a8db7fb260f7b13678e36ded1a994240fb65f4a19488d6c2eb1a3a3f8c6df75d.jpg)
839
+
840
+ ![](images/b6ed9b47d2dc5ccb2ef4ba38bf7edf28646507455e6f28a5ae5d41e4a1639b6f.jpg)
841
+ Figure 15: Decrease of BCE loss from different attackers using $5\%$ - $15\%$ training samples for poisoning. Results are averaged over 5 independent replications and bands show standard errors.
842
+
843
+ ![](images/77f4ec287c2034ff6f4193502231be9306c3315fbe563f3e26c44bd5de32e724.jpg)
844
+ (b) Drug Consumption dataset
845
+
846
+ ![](images/d97118064a9a1c25a4d6bd082082a27469fa153e25e093777b82596864bbe029.jpg)
847
+
848
+ ![](images/8aa8de568c2bc2076cd8e2bd41f81d670e4d289dc16dc067c6eaf2d2760e013e.jpg)
849
+
850
+ ![](images/37445d6655693aeedfec22893157ad6c4646dac215a680aa156943ab07a44796.jpg)
851
+
852
+ ![](images/da9e142da23a9508fc577f01c8a5a5dc4f9e0ff6c26cbde7d9d8a175d1777949.jpg)
853
+ (a) COMPAS dataset
854
+
855
+ ![](images/345d190a8ed679c8e5634db684594c9487c6c532f25741d625d4c94b1740a9f8.jpg)
856
+
857
+ ![](images/7418a02f656b455cb68385117f59f19e0f0a57b6a793e6124a2bf6ceb997ce72.jpg)
858
+
859
+ ![](images/cd255a0339be8a1039db57a5f32b515ec0578c2033fe5cbed7e1e47e38cb1e62.jpg)
860
+ Figure 16: Increase of DP violations from different attackers using $5\% - 15\%$ training samples for poisoning. Results are averaged over 5 independent replications and bands show standard errors.
861
+
862
+ ![](images/5510783e9f3927dd595537e9bdd8907792b0270e5c0fa67bf52ca8948226c9ad.jpg)
863
+ (b) Drug Consumption dataset
864
+
865
+ ![](images/8a96cc5cd1b85f3783a8fe6654e37bdc9281cf3b8875607ac037779ed52e507f.jpg)
866
+
867
+ ![](images/ca96d70dda58b61c0dbda5f602e45a7635e3a045ea337011d58981192c37b9e6.jpg)
868
+
869
+ ![](images/9023f284c6ee99767673837d65ea06feca920ee08cfbbf91dcbea819653ddbe7.jpg)
870
+
871
+ ![](images/5de7a9c08356c7a14d683f0373040f817d931d51dbed24ab2b4ea5335925602e.jpg)
872
+ (a) COMPAS dataset
873
+
874
+ ![](images/08578d91d644f2667bf389fc208d79c54c2cf3a187482711f7dcbf0f4c7edf43.jpg)
875
+
876
+ ![](images/9c52ea5a99c2c06d849684a47cb21da9dc4e6883cb320b45806d5415678dabb5.jpg)
877
+
878
+ ![](images/7bce1946a7972a98a0e0ce97e454ba7da08c9f8bd6d82a67480516677b4dfc69.jpg)
879
+ Figure 17: Accuracy of predicting $y$ from $z$ when different attackers using $5\% - 15\%$ training samples for poisoning. Results are averaged over 5 independent replications and bands show standard errors.
880
+
881
+ ![](images/380bac1699a87697504d78a8bf81db2461dcf1c11e3d6e59cea27660fb076fae.jpg)
882
+ (b) Drug Consumption dataset
883
+
884
+ ![](images/183af48ece3125dd3c82dbfcf454135df4eeffdf684efb1d8e6c5f9ec463f98b.jpg)
885
+
886
+ ![](images/616d6cb57aa6b0d5a3b69edbfaa4336c6d6b7553238d5ceda872654396807481.jpg)
2024/Towards Poisoning Fair Representations/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:634b2ebae35780829f40854ba0268108fde4ce4fca9acbd31ca1ea3d8134d858
3
+ size 2169533
2024/Towards Poisoning Fair Representations/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/da304b89-b80a-4400-84a8-e7f6c2095aac_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b6492e2c0fc2a3c2769710ead6b1aaed3effdba3c6c11ecd6b04628a8c55c4ee
3
+ size 1507916
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:430886b572d4a59455be4d8ad990242c0ebcc73f513407382393390e1fb24849
3
+ size 1408823
2024/Towards Robust Fidelity for Evaluating Explainability of Graph Neural Networks/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust Multi-Modal Reasoning via Model Selection/f94cb436-eefa-47a2-8467-d0af1883a561_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:019ace0568e70687db0960f40702a4d34c4ae0c9551dc54e22da6da1d4fd8df1
3
+ size 3834076
2024/Towards Robust Multi-Modal Reasoning via Model Selection/full.md ADDED
@@ -0,0 +1,523 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # TOWARDS ROBUST MULTI-MODAL REASONING VIA MODEL SELECTION
2
+
3
+ Xiangyan Liu $^{3,*}$ Rongxue Li $^{2,1,*}$ Wei Ji $^{3}$ Tao Lin $^{1,\dagger}$
4
+
5
+ liu.xiangyan@u.nus.edu; lirongxue@westlake.edu.cn; weiji0523@gmail.com; lintao@westlake.edu.cn
6
+
7
+ $^{1}$ Westlake University $^{2}$ Zhejiang University $^{3}$ National University of Singapore
8
+
9
+ # ABSTRACT
10
+
11
+ The reasoning capabilities of LLM (Large Language Model) are widely acknowledged in recent research, inspiring studies on tool learning and autonomous agents. LLM serves as the "brain" of the agent, orchestrating multiple tools for collaborative multi-step task solving. Unlike methods invoking tools like calculators or weather APIs for straightforward tasks, multi-modal agents excel by integrating diverse AI models for complex challenges. However, current multi-modal agents neglect the significance of model selection: they primarily focus on the planning and execution phases, and will mainly invoke predefined task-specific models for each subtask, making the execution fragile. Meanwhile, other traditional model selection methods are either incompatible with or suboptimal for the multi-modal agent scenarios, due to ignorance of dependencies among subtasks arising by multi-step reasoning.
12
+
13
+ To this end, we identify the key challenges therein and propose the $M^3$ framework as a plug-in with negligible runtime overhead at test-time. This framework improves model selection and bolsters the robustness of multi-modal agents in multi-step reasoning. In the absence of suitable benchmarks, we create MS-GQA, a new dataset specifically designed to investigate the model selection challenge in multi-modal agents. Our experiments reveal that our framework enables dynamic model selection, considering both user inputs and subtask dependencies, thereby robustifying the overall reasoning process. Our code and benchmark: https://github.com/LINs-lab/M3.
14
+
15
+ # 1 INTRODUCTION
16
+
17
+ Large Language Models (LLMs) (Brown et al., 2020; Ouyang et al., 2022; Chowdhery et al., 2022; Zhang et al., 2022b; Touvron et al., 2023) recently emerged to show great potential for achieving human-level intelligence, leveraging the key reasoning ability to tackle complex problems.
18
+
19
+ As a key step towards artificial general intelligence, the study on multi-modal learning has soon evolved into two paradigms, either training large end-to-end models like PaLM-E (Driess et al., 2023) and Mini-GPT4 (Zhu et al., 2023) for direct task resolution, or employing LLMs to decompose tasks into subtasks for smaller yet specific models (Gupta & Kembhavi, 2023; Suris et al., 2023; Shen et al., 2023; Gao et al., 2023a). The latter paradigm—as evidenced in the significant attention since tool learning (Schick et al., 2023) and autonomous agents (Reworkd, 2023; Richards et al., 2023)—demonstrates the immense potential in addressing complex real-world problems, where multiple AI models collaborate through multi-modal multi-step reasoning process.
20
+
21
+ In the realm of multi-modal reasoning scenarios, existing multi-modal agents (Gupta & Kembhavi, 2023; Shen et al., 2023) emphasize planning and execution phases, while neglecting the critical model selection phase. As exemplified in Figure 1 (a & b), a simplistic model selector relies on predefined task-specific models for subtasks, increasing the likelihood of intermediate errors and compromising the overall reasoning process. Moreover, existing traditional model selection methods, though effective in various domains (Zhao et al., 2021; Park et al., 2022; Lee et al., 2022; Zitovsky et al., 2023), primarily focus on selecting a single model from multiple candidates per sample.
22
+
23
+ ![](images/fd68c831ec66806955f94bc77b74ab92b91d408d4ead8a887e85e468ec8e34eb.jpg)
24
+ (c) Three model selection paradigms
25
+
26
+ ![](images/5f15b7d03c3faf5a793b2c5cb524a7244f0c8d2221f82ffdb5a46f7e901b68f9.jpg)
27
+
28
+ ![](images/ebdaa7f6f3dd5c8c315b57ae9fdefbc1b3f589d5cef0d64de7378f0cec0d99ca.jpg)
29
+ Figure 1: Illustration of the multi-modal multi-step reasoning process and three model selection paradigms within. (a) shows how multi-modal agents utilize LLMs to decompose complex multi-modal tasks, resulting in a multi-step reasoning process where each node corresponds to a simpler yet more specific subtask. (b) highlights that compared to a robust model selector, simplistic model selection methods are more prone to generating wrong outcomes at intermediate subtask stages, thereby impacting the ultimate reasoning result. Here, $\mathfrak{m}_{(\mathrm{i})}$ indicates the $i$ -th model is selected and the color means the corresponding subtask type. (c) numerically illustrates the comparative outcomes of model selection methods from different paradigms in multi-modal reasoning.
30
+
31
+ ![](images/33f84eeb847dfca0931bc30dcafb32678d40cd8c8eea7391e64899fa29d3ae25.jpg)
32
+
33
+ Adapting these methods to multi-modal reasoning scenarios, which necessitate multiple models for subtasks, is challenging due to the oversight of subtask dependencies.
34
+
35
+ To this end, we formally define the problem of model selection in multi-modal reasoning scenarios as our first contribution, and then introduce the $M^3$ framework (Model Selector for Multi-Modal Reasoning) as our preliminary remedy for the field. Given the lack of benchmarks, we further create a new dataset named MS-GQA (Model Selection in GQA (Hudson & Manning, 2019)) to facilitate research in the field. In detail, $M^3$ represents the multi-step reasoning process as a computation graph, with nodes corresponding to reasoning subtasks. Multi-modal encoders and models' embedding table transform input and selected models into node features, where a computation graph learner then models the relationships between input, selected models, and subtask dependencies to predict the execution status. $M^3$ showcases superior performance in the model selection process for multi-modal models, with trivial overhead in selection.
36
+
37
+ # Our key contributions are summarized as follows:
38
+
39
+ - We formulate the model selection problem in multi-modal reasoning contexts as an initial endeavor.
40
+ - We introduce $M^3$ , a model selection framework for multi-modal models with multi-step reasoning, jointly modeling the relationship between samples, selected models, and subtask dependencies.
41
+ - We create a comprehensive dataset called MS-GQA to facilitate the research for the community.
42
+ - We provide an effective yet efficient model selection solution, with trivial test-time overhead.
43
+
44
+ # 2 RELATED WORK
45
+
46
+ # 2.1 MULTI-STEP REASONING WITH LLM
47
+
48
+ A line of work utilizes LLMs to interact with simple APIs, including WebGPT (Nakano et al., 2021), Toolformer (Schick et al., 2023), PAL (Gao et al., 2023b), and ToolkenGPT (Hao et al., 2023), enabling the manipulation of tools like web browser and calculators. Their capabilities are enhanced by behaving as autonomous agents (Richards et al., 2023; Nakajima, 2023; Reworkd, 2023), where they reason, break down complex tasks into subtasks, and iteratively execute those subtasks until the desired goals are achieved. Note that these studies only call simple deterministic APIs for text tasks. To tackle complex multi-modal tasks, researchers are increasingly expanding tool libraries with trained AI models (Wu et al., 2023; Huang et al., 2023; Surís et al., 2023). For instance, VisProg (Gupta & Kembhavi, 2023) and HuggingGPT (Shen et al., 2023) employ LLMs to decompose complex tasks into subtasks and connect various AI models to address them. Chameleon (Lu et al.,
49
+
50
+ 2023) is a plug-and-play compositional reasoning framework using a richer set of tools. Unlike the aforementioned approaches that provide a static plan without considering dependent subtasks, AssistGPT (Gao et al., 2023a) and AVIS (Hu et al., 2023) dynamically strategize the utilization of external tools based on the intermediate results of multi-step reasoning. However, all existing methods lack model selection consideration, resulting in reasoning instability.
51
+
52
+ # 2.2 MODEL SELECTION
53
+
54
+ The research on model selection can date back to Forster (2000), and was further extensively investigated in various aspects: 1) meta-learning methods (Zhao et al., 2021; 2022; Park et al., 2022), 2) nonmeta-learning methods (Ying et al., 2020; Zohar et al., 2023), 3) model selection for ensemble (Kotary et al., 2023), 4) model selection with language models (Zhao et al., 2023; Hari & Thomson, 2023), 5) new metrics for model selection (Zhang et al., 2021; Yang et al., 2023a), and others (Chen et al., 2023; Lee et al., 2022; Zitovsky et al., 2023). We discuss the most relevant two lines of research as follows. Meta-learning-based approaches utilize the similarity between new instances and historical instances to predict the performance of candidate models. For example, MetaOD and ELECT (Zhao et al., 2021; 2022) address the unsupervised outlier model selection problem, where they extract meta-features by considering input-specific characteristics. MetaGL (Park et al., 2022) further extends (Zhao et al., 2021) to select a model for each new graph. However, in our multi-modal multi-step reasoning scenarios, there is currently a lack of established approaches for extracting instance-wise meta-features. In contrast, non-meta-learning-based methods resort to using complex networks to learn the relationship between instances and model choices, without using meta-features. Auto-Selector (Ying et al., 2020) employs a pre-trained model selector and parameter estimator to automatically choose an anomaly detection model for incoming time-series data. LOVM (Zohar et al., 2023) employs textual dataset descriptions to train a linear model that predicts the performance of vision-language candidate models. EMMS (Meng et al., 2023) employs weighted linear regression to estimate multi-modal model transferability. Note that these methods are restricted to one-step selection and overlook subtask dependencies in multi-step reasoning, and thus infeasible for model selection in multi-step reasoning. In the context of using LLMs for multi-modal models in multi-step reasoning, existing methods either rely on external metrics like download counts for model selection, or explicitly specify the use of a specific version of a model for a designated task without any selection process (Surís et al., 2023). None of the prior work takes the challenges of multi-step reasoning dependency into account.
55
+
56
+ # 3 MODEL SELECTION HARNESSES THE MULTI-MODAL REASONING
57
+
58
+ # 3.1 ON THE CHALLENGES OF MULTI-MODAL MULTI-STEP REASONING
59
+
60
+ Given a complicated input query, the contemporary multi-modal multi-step reasoning process normally involves calling LLMs to decompose users' input to subtasks, in which the reasoning logic can be constructed as a task graph by composing dependent intermediate subtasks.
61
+
62
+ The problem of selecting models for subtasks along the task graph can be defined below:
63
+
64
+ Definition 3.1 (Model selection for each subtask type on a multi-modal task graph). Let $m(i,j,t)$ denote a model choice of subtask type $t$ for the $i$ -th sample $\mathbf{x}_i$ , where $m(i,j,t)$ indicates the $j$ -th choice from the model zoo for subtask type $t$ on $\mathbf{x}_i$ . Each subtask type $t$ has $n_t$ choices, forming a set $\{m(\cdot ,j,t)\mid j\in [n_t]\}$ .
65
+
66
+ Assume a task graph consists of $K$ subtask types, then all potential model selection choices for the task graph can be defined as $\mathcal{C} = \{m(\cdot ,j,t)\mid j\in [n_t],t\in [K]\}$ , with size $|\mathcal{C}| = \prod_{t = 1}^{K}n_{t}$ . The optimal choice of models on the task graph for $i$ -th input can be represented as $\mathbf{c}_i^\star \coloneqq \{m(i,j_t^\star ,t)\mid t\in [K]\}$ , where we select the optimal model index $j_{t}^{\star}$ for each subtask type $t$ .
67
+
68
+ Though Definition 3.1 fully characterizes the procedure of traditional model selection methods as evidenced in Figure 2 and Section 2.2, it leaves the unique challenge emerged in the multi-modal multi-step reasoning untouched, namely the critical subtask dependency defined below.
69
+
70
+ Definition 3.2 (Subtask dependency on a multi-modal task graph). Given the $i$ -th input $\mathbf{x}_i$ with embeddings from various modalities. Its multi-step reasoning procedure decomposed by an LLM can be described as a directed acyclic computation graph $\mathcal{G}_i = \{\mathcal{V}_i, \mathcal{T}_i, \mathcal{E}_i\}$ with nodes corresponding to multi-modal subtasks, where
71
+
72
+ - $\mathcal{V}_i = \{v_{i,k} \mid k \in [L]\}$ is the subtask nodes in the graph, $v_{i,k}$ is the $k$ -th node in $\mathcal{G}_i$ , and $L := |\mathcal{V}_i|$ ;
73
+ - $\mathcal{T}_i = \{t_{i,k} \mid k \in [L]\}$ is the set of subtask types in $\mathcal{V}_i$ , $t_{i,k}$ is the subtask type of $k$ -th node in $\mathcal{G}_i$ ;
74
+ - $\mathcal{E}_i$ is the set of edges that connect pairs of subtask nodes in the graph $\mathcal{G}_i$ .
75
+
76
+ ![](images/189b9b21d7ab3c7af78c2c1e4fa1f83de06303d3f9a594b8d21f23bf59f60b7d.jpg)
77
+ Figure 2: Comparison of three model selection paradigms under various inputs. The model selection processes of the three paradigms, from left (simplicistic) to right (subtask dependency-aware), become progressively more fine-grained. "Simplistic" is inflexible and can be considered input-agnostic. "Traditional" can solely depend on subtask type and the corresponding original input information for model selection. When inputs are similar, "Traditional" cannot provide as diverse model selections as "Subtask Dependency-Aware", which leverages differences in reasoning logic to offer more varied and suitable model choices. Note that node P (green circle) in the figure denotes Python module invocation, which does not entail model selection.
78
+
79
+ Remark 3.3 (Generalizing model selection beyond the subtask type). To ease the presentation, Definition 3.1, Definition 3.2, and the main content below only consider selecting the model per subtask type. Though being sufficient for traditional model selection methods, such formulation can be further generalized to performing model selection per subtask node (rather than per subtask type) in our case, and we leave it for future research.
80
+
81
+ Challenges: on the infeasibility of adapting existing model selection methods. Existing methods (see details in our Section 2.2), either the current preliminary strategies for multi-modal agents (Gupta & Kembhavi, 2023; Surís et al., 2023; Shen et al., 2023; Gao et al., 2023a), or model selection methods from other domains (Zhao et al., 2021; 2022; Park et al., 2022; Ying et al., 2020; Zohar et al., 2023), do not take the subtask dependency into account—as evidenced in the following case study—making the model selection for multi-modal model with multi-step reasoning non-trivial. We describe the previous two model selection paradigms (see examples in Figure 2):
82
+
83
+ 1. This paradigm is primarily applied in some recent multi-modal agent frameworks, where each subtask type $t$ will be straightforwardly allocated to a model via some external metrics (e.g., download counts or recent release dates).
84
+ 2. As has been widely used in other fields like outlier detection and graph learning, this paradigm focuses on matching the optimal model through the input information as well as the subtask type. Given the limitations of previous methods in adapting to the timely multi-modal reasoning scenarios, in the following section, we incorporate the graph information $\mathcal{G}_i$ to capture subtask dependencies.
85
+
86
+ # 3.2 $M^3$ : A FRAMEWORK OF MODEL SELECTION FOR MULTI-MODAL REASONING
87
+
88
+ An ideal model selection solution on multi-modal reasoning scenarios discussed above motivates us to jointly model the subtask dependency with input sample features. We depict our unified model selection framework $M^3$ below towards this goal.
89
+
90
+ Overview. The model selection process can be viewed as estimating the performance of a multi-modal input over the corresponding task graph, in which the choice of model selection at each subtask
91
+
92
+ ![](images/cd832b69573a61c8bff53c3be1360cc69f79768d88b532670502a0632c54d416.jpg)
93
+
94
+ ![](images/db2bd11bd901d58f34b86e17ee586627fde339b24f8d4c8c2de42cf813a48ee9.jpg)
95
+ Figure 3: Illustration of $M^3$ : (a) depicts the forward computation process: 1) Task Graph: An initial virtual node represents the multi-modal input. Specific models are assigned to each subtask node based on the respective subtask type. 2) Node Embedding: Features are extracted using the multi-modal encoder $\psi_1(\cdot)$ and embedding table $\psi_2(\cdot)$ for the initial virtual node and subtask nodes. 3) Computation Graph Learner: The computation graph, including node features and subtask dependencies (edges $\mathcal{E}_i$ ), serves as input to learner $\phi(\cdot)$ , contributing to the predicted execution status $s_i^j$ . (b) illustrates the process of ranking and selecting the model selection choice with a greater likelihood of success.
96
+
97
+ node propagates to the next node on the directed task graph. We introduce the notion of meta-training and train a proxy on it to suggest the optimal model choice of task graph on unseen input. In detail,
98
+
99
+ - Training the proxy. Given an input sample $\mathbf{x}_i \in \mathcal{X}_{\mathrm{train}} := \{\mathbf{x}_1, \dots, \mathbf{x}_N\}$ , for each choice of models on the task graph $\mathbf{c}_i^j \in \mathcal{C}$ , we aim to model the relationship $\phi \circ \psi$ between $(\mathbf{x}_i, \mathcal{G}_i, \mathbf{c}_i^j)$ and the execution status $p_i^j \in \{0, 1\}$ , where $\phi$ and $\psi$ denote the learner and feature extractor, respectively. Here we simplify our setting by only considering the binary execution status, but the principles therein can be generalized to the continuous case.
100
+ - Model selection for task graph on the unseen sample. We estimate the status of potential model choices $\{s_i^j \coloneqq \phi \circ \psi(\mathbf{x}_i, \mathcal{G}_i, \mathbf{c}_i^j) \mid \mathbf{c}_i^j \in \mathcal{C}\}$ , and only keep executable choices for further selection.
101
+
102
+ # 3.2.1 TRAINING THE PROXY
103
+
104
+ Lookup table and node embedding $\psi$ . We adopt a similar approach to treatments in multi-modal learning and GNNs (Li et al., 2022; Velicković et al., 2017). Using $\psi \coloneqq [\psi_1, \psi_2]$ where $\psi_1$ denotes the multi-modal encoder and $\psi_2$ represents the model embedding table—we map subtask nodes to their corresponding embeddings through $H_i^j \coloneqq \psi(\mathbf{x}_i, \mathcal{G}_i, \mathbf{c}_i^j) \in \mathbb{R}^{(L+1) \times d}$ .
105
+
106
+ More specifically, we first slightly abuse the notation and form an augmented computation graph $\mathcal{G}_i = (\mathcal{V}_i,\mathcal{T}_i,\mathcal{E}_i)$ : we introduce a virtual starting node $v_{i,0}$ to incorporate the multi-modal input information $\mathbf{x}_i$ and use subtask nodes $\{v_{i,k}|k\in [L]\}$ to indicate the execution dependency of subtasks. We then employ two encoders $\psi_1,\psi_2$ separately to retrieve the node embeddings and use additional $W_{1}\in \mathbb{R}^{d_{1}\times d}$ and $W_{2}\in \mathbb{R}^{d_{2}\times d}$ to unify them in a shared feature space.
107
+
108
+ - For the virtual starting node $v_{i,0}$ , we utilize the off-the-shelf multi-modal encoder to extract node embedding as $\mathbf{h}_{i,0} = \psi_1(\mathbf{x}_i) \in \mathbb{R}^{d_1}$ , where $d_1$ is the input embedding dimension.
109
+ - For other nodes, we use a lookup table to retrieve node embedding for each subtask type, namely $\mathbf{h}_{i,k}^{j} = \psi_{2}\left(m(i,j,t_{i,k})\right) \in \mathbb{R}^{d_{2}}$ , where $t_{i,k} \in \mathcal{T}_i$ and $d_{2}$ is the model embedding dimension.
110
+
111
+ Joint modeling of node embeddings and subtask dependency $\phi$ . We further leverage a computation graph learner to learn the task embedding over 1) sample embeddings, 2) model embeddings, and 3) subtask dependency information. A final linear layer with a non-linear activation function is stacked
112
+
113
+ on top of the learned task embedding to estimate $s_i^j \coloneqq \phi \circ \psi(\mathbf{x}_i, \mathcal{G}_i, \mathbf{c}_i^j)$ , where $\mathbf{c}_i^j \in \mathcal{C}$ . In detail,
114
+
115
+ $$
116
+ \boldsymbol {H} _ {i} ^ {j} = \psi (\mathbf {x} _ {i}, \mathcal {G} _ {i}, \mathbf {c} _ {i} ^ {j}), \quad s _ {i} ^ {j} = \phi \left(\boldsymbol {H} _ {i} ^ {j}, \mathcal {E} _ {i}\right). \tag {1}
117
+ $$
118
+
119
+ The output $s_i^j$ measures the degree of match between input sample $\mathbf{x}_i$ and model selection choice $\mathbf{c}_i^j$ , where a higher value signifies a greater likelihood of success in a multi-modal reasoning scenario. Note that theoretically, any neural network capable of handling directed acyclic graphs can serve as the backbone for a computation graph learner. See Section 4.2 and Appendix D.3 for details.
120
+
121
+ **Optimization over $\psi$ and $\phi$ .** For a given input sample $\mathbf{x}_i$ , we aim to learn the model to estimate execution status per the choice $\mathbf{c}_i^j$ of models along the task graph, namely correlating $s_i^j \in [0,1]$ with ground truth $p_i^j \in \{0,1\}$ . Thus, the optimization can be viewed as a multi-label classification problem. The conventional choice of using instance-wise Binary Cross-Entropy (BCE) loss in the multi-label classification community (Tsochantaridis et al., 2005; Wehrmann et al., 2018) only aims to build a mapping between $(\mathbf{x}_i, \mathcal{G}_i, \mathbf{c}_i^j)$ and $s_i^j$ , and thus suffers from the optimization difficulty caused by prediction independency of $\mathbf{c}_i^j \in \mathcal{C}$ on the input $\mathbf{x}_i$ .
122
+
123
+ Therefore, we employ Categorical Cross-Entropy (CCE) (Su et al., 2022) as our objective function, using a list-wise approach to model $\psi$ and $\phi$ for $(\mathbf{x}_i,\mathcal{G}_i,\mathcal{C})$ and $\{s_i^j\mid \mathbf{c}_i^j\in \mathcal{C}\}$ . Our goal is to promote higher scores $s_i^j$ for executable choices $(p_i^j = 1)$ and lower scores for non-executable choices:
124
+
125
+ $$
126
+ \mathcal {L} _ {i} = \log \left(1 + \sum_ {\mathbf {c} _ {i} ^ {j} \in \mathcal {C}} 1 _ {p _ {i} ^ {j} = 0} \exp \left(s _ {i} ^ {j}\right)\right) + \log \left(1 + \sum_ {\mathbf {c} _ {i} ^ {j} \in \mathcal {C}} 1 _ {p _ {i} ^ {j} = 1} \exp \left(- s _ {i} ^ {j}\right)\right). \tag {2}
127
+ $$
128
+
129
+ See Appendix B and D.4 for more details on loss design and a comparison of different loss functions.
130
+
131
+ # 3.2.2 MODEL SELECTION FOR TASK GRAPH ON THE UNSEEN SAMPLE
132
+
133
+ Once we learn the relationship $\phi \circ \psi$ , we can estimate execution status $s_i^j$ for all choices of models on the task graph $\mathbf{c}_i^j \in \mathcal{C}$ , and transfer to the final model selection upon other criteria. For the sake of simplicity, in our evaluation we primarily select the $\mathbf{c}_i^\star$ via the maximal execution probability: $\mathbf{c}_i^\star = \arg \max_{\mathbf{c}_i^j \in \mathcal{C}} \phi \circ \psi(x_i, \mathcal{G}_i, \mathbf{c}_i^j)$ . Other metrics, e.g. computation cost, can be further integrated to trade off efficiency and robustness.
134
+
135
+ # 4 EXPERIMENTS
136
+
137
+ # 4.1 BENCHMARK: MS-GQA
138
+
139
+ As our side contribution, we introduce the first benchmark, MS-GQA (Model Selection in GQA (Hudson & Manning, 2019)), to explore the model selection methods on multi-modal reasoning scenarios. MS-GQA primarily evaluates model selection choices of scenarios using VisProg (Gupta & Kembhavi, 2023) as the autonomous agent to solve AI tasks on source dataset GQA. The choice of autonomous agents and datasets can be
140
+
141
+ ![](images/e92c6a1befabfd0ae6b1d067ef625a8db00fe59fa81a6219a734d5df0fba216e.jpg)
142
+ Figure 4: The proportions of various structural categories in GQA.
143
+
144
+ flexibly replaced, such as substituting VisProg with HuggingGPT (Shen et al., 2023) or other related works (Surís et al., 2023; Gao et al., 2023a), and replacing GQA with NLVR2 (Suhr et al., 2018) or even other in-the-wild application scenarios (Surís et al., 2023; Yang et al., 2023c).
145
+
146
+ Our benchmark considers the structural variations of tasks in GQA, and thus facilitates comprehensive method evaluation and assesses robustness under diverse test distributions. Currently, we introduce 5 task categories, namely Query, Choose, Compare, Verify, and Logical. The tasks cover 9 functional components (subtask types), of which 7 out of 9 components align with specific Python modules, eliminating the need for model selection. The remaining two components involve "LOC" (localization, text-guided object detection) and "VQA" (visual question answering), offering 10 and 7 candidate models respectively. We have currently collected the binary execution results for 8,426 samples across 70 valid model selection choices. For more details, refer to Appendix A.
147
+
148
+ # 4.2 EXPERIMENTAL SETTINGS
149
+
150
+ Baselines. As discussed in Section 2.2, the multi-modal model currently falls short of model selection methods. To justify the effectiveness of our solution, we extend a range of representative methods to multi-modal reasoning scenarios as two groups of baseline references illustrated below.
151
+
152
+ Training-free selects one model for each subtask type based on the prior knowledge or external metrics (e.g., download counts, citations, and publication dates), without considering input information:
153
+
154
+ - RANDOM: Randomly choose models for each subtask type on the task graph for every sample;
155
+ - VISPROG (Gupta & Kembhavi, 2023): Follow the default choice in the original paper of VisProg and select a deterministic candidate model per subtask type;
156
+ - EXMETRIC: Incorporate external metrics for model ranking and selection. This baseline can be generalized as a paradigm that utilizes external metrics for model selection;
157
+ - GLOBALBEST (Park et al., 2022; Zhao et al., 2021): Select models on the task graph that yield the highest average performance across all training samples, without considering input details.
158
+
159
+ Training-based focuses on leveraging a trainable proxy to find the optimal model. We adapt methods from other domains and form our baselines to meet the requirements of the multi-modal reasoning context. Note that tuning and improving these methods are beyond the scope of this paper.
160
+
161
+ - NCF (He et al., 2017): A representative model selection approach using collaborative filtering. It uses a neural network to model the interaction between samples and models, leveraging both features in a collaborative filtering manner;
162
+ - METAGL (Park et al., 2022): A representative model selection approach using meta-learning. It uses input multi-modal features as meta-features, where a multi-relational bipartite graph is utilized to estimate the relationship between the input and the choice of models on the task graph;
163
+ - NCF++ and METAGL++. In comparison to METAGL and NCF, $M^3$ utilizes additional computation graph descriptions² to capture subtask dependencies. To ensure a fair comparison, we extend METAGL and NCF to METAGL++ and NCF++, where original multi-modal input features are enhanced by adding extra text features derived from the computation graph descriptions.
164
+
165
+ Notably, HuggingGPT (Shen et al., 2023) employs the "In-context Task-model Assignment" model selection strategy. However, our Appendix H experiments show its ineffectiveness, so it is not included in the baselines for simplicity.
166
+
167
+ Evaluation metric. An ideal model selection method for multi-modal reasoning scenarios should allocate the optimal model choice per subtask or subtask type, so as to maximize the execution chance for every input sample. To assess methods on $N_{\mathrm{test}}$ samples from the MS-GQA benchmark, we define the metric Successful Execution Rate (SER) as $\frac{1}{N_{\mathrm{test}}} \sum_{i=1}^{N_{\mathrm{test}}} 1_{\alpha_i}$ . Here, $1_{\alpha_i}$ indicates the execution result of the $i$ -th sample upon the selected choice of models $\mathbf{c}_i^{\star}$ , either 1 (success) or 0 (fail).
168
+
169
+ SER measures model selector performance: higher SER means better performance and greater overall reliability in multi-modal reasoning. In special cases where all model selection choices either succeed or fail, evaluating the model selector is pointless, so we exclude these cases from our experiments.
170
+
171
+ Implementation details. To facilitate a fair comparison with $M^3$ , we use CCE loss in both NCF and METAGL, including their extensions (NCF++ and METAGL++.). The default backbone network of the computation graph learner is GAT (Veličković et al., 2017), which is well-known and capable of handling directed acyclic graphs. When dealing with input features with multi-modal information, we utilize "blip-base-vqa" as the default feature extractor. Additionally, the pure textual encoder "bert-base-uncased" is used for encoding the extra computation graph description information.
172
+
173
+ The results below are reported over five random seeds. The dataset from MS-GQA is split randomly into training, validation, and test sets, with a $6:2:2$ ratio. Ablation studies on the choices of feature extractors and backbone in computation graph learner are deferred to Appendix D.1, D.2 and D.3.
174
+
175
+ # 4.3 RESULTS: MODEL SELECTION ACROSS DIVERSE TEST DISTRIBUTIONS
176
+
177
+ In this section, we examine the performance of $M^3$ and other strong baselines across varied test distributions. The test set is divided into multiple sub-test sets. There are two criteria for division: 1) problem structure; 2) model selection difficulty. It is noteworthy that the training dataset remains consistent throughout these experiments. The superiority of $M^3$ is summarized below.
178
+
179
+ Training-based methods outperform Training-free methods. In Table 1 and Table 2, the Training-based methods represented by $M^3$ and METAGL significantly outperform and demonstrate greater robustness than the Training-free methods represented by EXMETRIC and GLOBALBEST. Specifically, on the Full test set in Table 1, Training-based methods achieve approximately $64\%$
180
+
181
+ Table 1: Performance comparison in test scenarios with diverse structural information. The testing set is split into five sub-test sets: Query, Choose, Compare, Verify, and Logical. Each subset maintains consistent structural information; for instance, all Compare samples involve tasks related to comparisons. Full refers to the un categorized test set, which is the complete test dataset. "Improv." indicates the specific numerical improvement of $M^3$ compared to the corresponding method in this column.
182
+
183
+ <table><tr><td rowspan="2" colspan="2">Category</td><td rowspan="2">Metrics</td><td colspan="4">Training-free</td><td colspan="5">Training-based</td></tr><tr><td>RANDOM</td><td>VISPROG</td><td>EXMETRIC</td><td>GLOBALBEST</td><td>NCF</td><td>NCF++</td><td>METAGL</td><td>METAGL++</td><td>\(M^3\)</td></tr><tr><td rowspan="12">Subset</td><td rowspan="2">Query</td><td>SER (%)</td><td>45.36±1.7</td><td>44.85±0.0</td><td>58.64±0.0</td><td>51.07±0.0</td><td>53.94±2.9</td><td>53.63±4.3</td><td>57.63±2.2</td><td>55.18±5.2</td><td>59.53±1.0</td></tr><tr><td>Improv. (%)</td><td>+14.17</td><td>+14.68</td><td>+0.89</td><td>+8.46</td><td>+5.59</td><td>+5.90</td><td>+1.90</td><td>+4.35</td><td>-</td></tr><tr><td rowspan="2">Choose</td><td>SER (%)</td><td>68.26±4.0</td><td>66.94±0.0</td><td>68.60±0.0</td><td>69.42±0.0</td><td>70.25±1.7</td><td>73.39±2.5</td><td>73.72±3.4</td><td>74.71±5.1</td><td>76.53±2.8</td></tr><tr><td>Improv. (%)</td><td>+8.27</td><td>+8.27</td><td>+7.93</td><td>+7.11</td><td>+6.08</td><td>+3.14</td><td>+2.81</td><td>+1.82</td><td>-</td></tr><tr><td rowspan="2">Compare</td><td>SER (%)</td><td>71.29±3.1</td><td>82.26±0.0</td><td>61.29±0.0</td><td>77.42±0.0</td><td>73.92±3.9</td><td>74.52±2.1</td><td>75.16±4.6</td><td>73.55±1.8</td><td>76.45±1.4</td></tr><tr><td>Improv. (%)</td><td>+5.16</td><td>-5.71</td><td>+15.16</td><td>-0.97</td><td>+2.53</td><td>+1.93</td><td>+1.29</td><td>+2.90</td><td>-</td></tr><tr><td rowspan="2">Verify</td><td>SER (%)</td><td>62.38±2.5</td><td>68.40±0.0</td><td>65.80±0.0</td><td>71.75±0.0</td><td>75.46±0.9</td><td>71.67±2.6</td><td>70.56±3.0</td><td>73.01±3.0</td><td>75.09±0.6</td></tr><tr><td>Improv. (%)</td><td>+12.71</td><td>+6.69</td><td>+9.29</td><td>+3.34</td><td>-0.37</td><td>+3.42</td><td>+4.53</td><td>+2.08</td><td>-</td></tr><tr><td rowspan="2">Logical</td><td>SER (%)</td><td>64.72±1.6</td><td>72.47±0.0</td><td>59.55±0.0</td><td>78.65±0.0</td><td>76.50±1.8</td><td>77.08±1.8</td><td>74.94±1.6</td><td>75.73±1.7</td><td>77.53±2.9</td></tr><tr><td>Improv. (%)</td><td>+12.81</td><td>+5.06</td><td>+17.98</td><td>-1.12</td><td>+1.03</td><td>+0.45</td><td>+2.59</td><td>+1.80</td><td>-</td></tr><tr><td rowspan="2">Full</td><td>SER (%)</td><td>56.51±0.3</td><td>59.04±0.0</td><td>61.66±0.0</td><td>63.58±0.0</td><td>65.92±1.5</td><td>64.40±1.7</td><td>66.01±0.4</td><td>65.62±3.2</td><td>68.70±0.6</td></tr><tr><td>Improv. (%)</td><td>+12.19</td><td>+9.66</td><td>+7.04</td><td>+4.12</td><td>+2.83</td><td>+4.30</td><td>+2.69</td><td>+3.08</td><td>-</td></tr></table>
184
+
185
+ to $69\%$ SER, while Training-free methods only reach $57\%$ to $64\%$ . Furthermore, Table 1 and Table 2 reveal that in sub-test sets, unlike Training-free methods that occasionally excel in one subset while performing poorly in others, Training-based methods consistently exhibit overall stability.
186
+
187
+ $M^3$ demonstrates its robustness in diverse test sets. In direct comparisons, Table 1 presents that $M^3$ stands out as the top performer, showcasing a remarkable $2.69\%$ improvement over the previous state-of-the-art (METAGL) in the complete test set (Full). Moreover, $M^3$ consistently excels in various subtest sets across both Table 1 and Table 2, demonstrating its robustness
188
+
189
+ Table 2: Performance comparison with respect to the difficulty of model selection. Each increase in the "difficulty level" indicates a one-unit rise in average model selection difficulty for the sub-test set, leading to a $20\%$ reduction in the executable ratio $(\mathbb{E}\left[\sum_{j}p_{i}^{j} / |\mathcal{C}_{i}|\right])$
190
+
191
+ Best performances are noted in blue, while the poorest are in orange.
192
+
193
+ <table><tr><td>Difficulty Level</td><td>...</td><td>...</td><td>...</td><td>...</td><td>...</td></tr><tr><td>EXMETRIC</td><td>98.35±1.9</td><td>86.67±2.9</td><td>59.90±3.8</td><td>25.53±2.4</td><td>15.62±2.8</td></tr><tr><td>GLOBALBEST</td><td>92.86±0.0</td><td>75.46±0.0</td><td>65.62±0.0</td><td>54.47±0.0</td><td>14.06±0.0</td></tr><tr><td>NCF</td><td>93.12±1.9</td><td>82.67±2.9</td><td>65.94±3.8</td><td>48.08±2.4</td><td>15.31±2.8</td></tr><tr><td>METAGL</td><td>82.42±3.8</td><td>77.58±2.9</td><td>70.10±0.9</td><td>53.36±3.3</td><td>20.21±2.7</td></tr><tr><td>M3</td><td>93.30±1.7</td><td>84.97±1.6</td><td>70.50±2.2</td><td>52.26±2.6</td><td>20.42±1.4</td></tr></table>
194
+
195
+ and competitiveness. Even in sub-test sets where it does not claim the top spot, $M^3$ maintains a strong presence, often ranking among the top two or three methods. However, it can be observed that other methods, particularly training-free ones, often perform poorly on specific sub-test sets.
196
+
197
+ $M^3$ effectively leverages the subtask dependency information. In Table 1, we assess NCF++ and METAGL++, both of which employ a text encoder to extract textual features describing multi-modal reasoning logic on the task graph. Our experiments reveal that this approach often fails to capture meaningful information and can even harm the performance of the original methods. Conversely, our framework $M^3$ , which integrates subtask dependencies into the modeling process as a whole, is more effective and non-trivial.
198
+
199
+ # 4.4 RESULTS: MODEL SELECTION IN DATA MISSING SCENARIOS
200
+
201
+ Given the challenges of collecting complete execution results for each sample under all choices of models in real-world scenarios, this section will discuss how training-based methods perform on the fixed complete test set (Full) in two different types of training data missing scenarios:
202
+
203
+ - missing choices of models on the task graph (c), which involves varying levels of incomplete execution results associated with different model selection choices per sample. E.g., with a missing ratio of $0.2, \sim 20\%$ of model selection choices do not have corresponding execution results.
204
+ - missing samples (x), where all collected samples have execution results for all model choices on the task graph, but some samples are absent compared to the complete training set. In this case, a missing ratio of 0.2 means that $20\%$ of samples are entirely absent.
205
+
206
+ Data missing results in adverse effects. Figure 5(a) and 5(b) reveal that the missing of data generally leads to performance decline across all training-based methods. Specifically, when the missing ratio reaches 0.8, the SER of $M^3$ drops to $66.66\%$ and $64.67\%$ , respectively, while other baselines exhibit a typical $2\%$ to $3\%$ performance decline. Anomalies in some baselines, where performance improves with increased missing ratios, may be attributed to two factors: 1) certain methods are insensitive to training data quantity, and 2) the smaller dataset introduces more experimental randomness.
207
+
208
+ ![](images/6f0d4c61003d7a93f91eee730ccc1fe15ccd334c780f4828df9790222eac8e3f.jpg)
209
+ (a) Missing ratio of model choices c
210
+
211
+ ![](images/cf6af01bb5b26a7d120f07c069aaab684510d64831c7d670581dbca2a37781f9.jpg)
212
+ Figure 5: Performance comparison in scenarios with missing training data and varying time constraints at test-time. (a) and (b) depict two data-missing scenarios with progressively increasing proportions on the x-axis. (c) illustrates method performance across different time constraints.
213
+
214
+ ![](images/9bd7a700568cd8081efd3ea4721bc9850245d2a38b656420ae5b3fa3c8b05b68.jpg)
215
+ (b) Missing ratio of samples $\mathbf{x}$
216
+ (c) Time limit (s)
217
+
218
+ Data missing does not impact the superiority of $M^3$ over baselines. Figure 5(a) and 5(b) demonstrate that $M^3$ exhibits superior performance compared to other training-based baselines in two types of missing scenarios. Specifically, despite the overall decline in performance due to missing data in most methods, $M^3$ consistently outperforms other baselines, underscoring its robustness. Notably, in Figure 5(b), even when up to $80\%$ of samples are missing (64.67%), $M^3$ performs better than the best training-free method (GLOBALBEST, 63.58%).
219
+
220
+ # 4.5 RESULTS: TEST-TIME EFFICIENCY
221
+
222
+ In practical applications of multi-modal reasoning, beyond enhancing system robustness through model selection, it is crucial to consider the associated cost of implementing the selection process. In this section, we discuss the efficiency of $M^3$ , in terms of 1) its extra model selection time and 2) its comparison with baselines under the same inference time limit budget.
223
+
224
+ Negligible runtime overhead at test-time. Figure 6 illustrates that $M^3$ outperforms all other baselines, particularly training-free methods, despite incurring extra time overhead from model selection. However, this additional time overhead (0.09s) is considerably shorter than the overall task execution time (0.62s) and can be considered negligible.
225
+
226
+ ![](images/5ba81234607dd7d9b584d07fe9ca51375fe3c66e15f5d19269a7f09452ac243b.jpg)
227
+ Figure 6: Comparing $M^3$ and other methods from the perspectives of performance and average time cost. Execution time encompasses the overall task completion time when agents collaborate using multiple models, while model selection time is the time spent utilizing a proxy for model selection.
228
+
229
+ $M^3$ continues to perform the best under various time constraints. In practical production settings, due to cost constraints, not all models are available during test-time. To mimic this challenge, we gradually decrease the time limit and exclude models from the candidate pool on the task graph if their average execution time exceeds the current limit. Figure 5(c) illustrates the robustness of $M^3$ across a range of scenarios, from the most stringent time limit scenario (0.3s) to scenarios with no time constraints $(\infty)$ . Despite a decrease in overall performance, $M^3$ consistently excels other baselines, highlighting its suitability for time-constrained settings at test-time.
230
+
231
+ # 5 CONCLUSION
232
+
233
+ We introduce $M^3$ , a novel framework for assisting autonomous agents in model selection for multi-modal multi-step reasoning scenarios. It tackles the issue of subtask dependencies, a new challenge arising from multi-step reasoning, which existing methods fail to address. In MS-GQA experiments, our framework substantially improves performance, enhancing multi-modal reasoning robustness. Despite resource constraints limiting our experiments to MS-GQA, $M^3$ has broader applications, including subtask node model selection in multi-step reasoning and adaptation to various agents and real-world datasets. For an in-depth discussion of our work's research significance, the advantages and limitations of our method, and an analysis of our experimental results, please refer to Appendix E, F, and G.
234
+
235
+ # ACKNOWLEDGEMENT
236
+
237
+ We thank anonymous reviewers for their constructive and helpful reviews. This work was supported in part by the National Science and Technology Major Project (No. 2022ZD0115101), the Research Center for Industries of the Future (RCIF) at Westlake University, and the Westlake Education Foundation.
238
+
239
+ # REFERENCES
240
+
241
+ Tom Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah, Jared D Kaplan, Prafulla Dhariwal, Arvind Neelakantan, Pranav Shyam, Girish Sastry, Amanda Askell, et al. Language models are few-shot learners. Advances in neural information processing systems, 33:1877-1901, 2020.
242
+ Annie S Chen, Yoonho Lee, Amrith Setlur, Sergey Levine, and Chelsea Finn. Confidence-based model selection: When to take shortcuts for subpopulation shifts. arXiv preprint arXiv:2306.11120, 2023.
243
+ Aakanksha Chowdhery, Sharan Narang, Jacob Devlin, Maarten Bosma, Gaurav Mishra, Adam Roberts, Paul Barham, Hyung Won Chung, Charles Sutton, Sebastian Gehrmann, et al. PaLM: Scaling language modeling with pathways. arXiv preprint arXiv:2204.02311, 2022.
244
+ Junyoung Chung, Caglar Gulcehre, KyungHyun Cho, and Yoshua Bengio. Empirical evaluation of gated recurrent neural networks on sequence modeling. arXiv preprint arXiv:1412.3555, 2014.
245
+ Wenliang Dai, Junnan Li, Dongxu Li, Anthony Meng Huat Tiong, Junqi Zhao, Weisheng Wang, Boyang Li, Pascale Fung, and Steven Hoi. Instructlip: Towards general-purpose vision-language models with instruction tuning, 2023.
246
+ Murtaza Dalal, Tarun Chiruvolu, Devendra Singh Chaplot, and Ruslan Salakhutdinov. Plan-seq-learn: Language model guided rl for solving long horizon robotics tasks. In CoRL 2023 Workshop on Learning Effective Abstractions for Planning (LEAP), 2023.
247
+ Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
248
+ Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, et al. An image is worth 16x16 words: Transformers for image recognition at scale. arXiv preprint arXiv:2010.11929, 2020.
249
+ Danny Driess, Fei Xia, Mehdi SM Sajjadi, Corey Lynch, Aakanksha Chowdhery, Brian Ichter, Ayzaan Wahid, Jonathan Thompson, Quan Vuong, Tianhe Yu, et al. Palm-e: An embodied multimodal language model. arXiv preprint arXiv:2303.03378, 2023.
250
+ Malcolm R Forster. Key concepts in model selection: Performance and generalizability. Journal of mathematical psychology, 44(1):205-231, 2000.
251
+ Difei Gao, Lei Ji, Luowei Zhou, Kevin Qinghong Lin, Joya Chen, Zihan Fan, and Mike Zheng Shou. AssistGPT: A general multi-modal assistant that can plan, execute, inspect, and learn. arXiv preprint arXiv:2306.08640, 2023a.
252
+ Luyu Gao, Aman Madaan, Shuyan Zhou, Uri Alon, Pengfei Liu, Yiming Yang, Jamie Callan, and Graham Neubig. Pal: Program-aided language models. In International Conference on Machine Learning, pp. 10764–10799. PMLR, 2023b.
253
+ Tanmay Gupta and Aniruddha Kembhavi. Visual programming: Compositional visual reasoning without training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14953-14962, 2023.
254
+ Shibo Hao, Tianyang Liu, Zhen Wang, and Zhiting Hu. ToolkenGPT: Augmenting frozen language models with massive tools via tool embeddings. arXiv preprint arXiv:2305.11554, 2023.
255
+ Surya Narayanan Hari and Matt Thomson. Tryage: Real-time, intelligent routing of user prompts to large language model. arXiv preprint arXiv:2308.11601, 2023.
256
+
257
+ Xiangnan He, Lizi Liao, Hanwang Zhang, Liqiang Nie, Xia Hu, and Tat-Seng Chua. Neural collaborative filtering. In Proceedings of the 26th international conference on world wide web, pp. 173-182, 2017.
258
+ Ziniu Hu, Ahmet Iscen, Chen Sun, Kai-Wei Chang, Yizhou Sun, David A Ross, Cordelia Schmid, and Alireza Fathi. AVIS: Autonomous visual information seeking with large language models. arXiv preprint arXiv:2306.08129, 2023.
259
+ Rongjie Huang, Mingze Li, Dongchao Yang, Jiatong Shi, Xuankai Chang, Zhenhui Ye, Yuning Wu, Zhiqing Hong, Jiawei Huang, Jinglin Liu, et al. AudioGPT: Understanding and generating speech, music, sound, and talking head. arXiv preprint arXiv:2304.12995, 2023.
260
+ Drew A Hudson and Christopher D Manning. GQA: A new dataset for real-world visual reasoning and compositional question answering. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 6700-6709, 2019.
261
+ Wonjae Kim, Bokyung Son, and Ildoo Kim. Vilt: Vision-and-language transformer without convolution or region supervision. In International Conference on Machine Learning, pp. 5583-5594. PMLR, 2021.
262
+ James Kotary, Vincenzo Di Vito, and Ferdinando Fioretto. Differentiable model selection for ensemble learning. In Proceedings of the Fifteen International Joint Conference on Artificial Intelligence, IJCAI-23, 2023.
263
+ Jonathan N Lee, George Tucker, Ofir Nachum, Bo Dai, and Emma Brunskill. Oracle inequalities for model selection in offline reinforcement learning. Advances in Neural Information Processing Systems, 35:28194-28207, 2022.
264
+ Junnan Li, Dongxu Li, Caiming Xiong, and Steven Hoi. Blip: Bootstrapping language-image pretraining for unified vision-language understanding and generation. In International Conference on Machine Learning, pp. 12888-12900. PMLR, 2022.
265
+ Junnan Li, Dongxu Li, Silvio Savarese, and Steven Hoi. Blip-2: Bootstrapping language-image pretraining with frozen image encoders and large language models. arXiv preprint arXiv:2301.12597, 2023.
266
+ Shilong Liu, Hao Cheng, Haotian Liu, Hao Zhang, Feng Li, Tianhe Ren, Xueyan Zou, Jianwei Yang, Hang Su, Jun Zhu, et al. Llava-plus: Learning to use tools for creating multimodal agents. arXiv preprint arXiv:2311.05437, 2023a.
267
+ Shilong Liu, Zhaoyang Zeng, Tianhe Ren, Feng Li, Hao Zhang, Jie Yang, Chunyuan Li, Jianwei Yang, Hang Su, Jun Zhu, et al. Grounding dino: Marrying dino with grounded pre-training for open-set object detection. arXiv preprint arXiv:2303.05499, 2023b.
268
+ Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692, 2019.
269
+ Pan Lu, Baolin Peng, Hao Cheng, Michel Galley, Kai-Wei Chang, Ying Nian Wu, Song-Chun Zhu, and Jianfeng Gao. Chameleon: Plug-and-play compositional reasoning with large language models. arXiv preprint arXiv:2304.09842, 2023.
270
+ Fanqing Meng, Wenqi Shao, Zhanglin Peng, Chonghe Jiang, Kaipeng Zhang, Yu Qiao, and Ping Luo. Foundation model is efficient multimodal multitask model selector. arXiv preprint arXiv:2308.06262, 2023.
271
+ M Minderer, A Gritsenko, A Stone, M Neumann, D Weissenborn, A Dosovitskiy, A Mahendran, A Arnab, M Dehghani, Z Shen, et al. Simple open-vocabulary object detection with vision transformers. arxiv 2022. arXiv preprint arXiv:2205.06230.
272
+ Yohei Nakajima. Babyagi. https://github.com/yoheinakajima/babyagi, 2023.
273
+
274
+ Reiichiro Nakano, Jacob Hilton, Suchir Balaji, Jeff Wu, Long Ouyang, Christina Kim, Christopher Hesse, Shantanu Jain, Vineet Kosaraju, William Saunders, et al. Webgpt: Browser-assisted question-answering with human feedback. arXiv preprint arXiv:2112.09332, 2021.
275
+ Long Ouyang, Jeffrey Wu, Xu Jiang, Diogo Almeida, Carroll Wainwright, Pamela Mishkin, Chong Zhang, Sandhini Agarwal, Katarina Slama, Alex Ray, et al. Training language models to follow instructions with human feedback. Advances in Neural Information Processing Systems, 35: 27730-27744, 2022.
276
+ Namyong Park, Ryan A Rossi, Nesreen Ahmed, and Christos Faloutsos. MetaGL: Evaluation-free selection of graph learning models via meta-learning. In The Eleventh International Conference on Learning Representations, 2022.
277
+ Nils Reimers and Iryna Gurevych. Sentence-bert: Sentence embeddings using siamese bert-networks. In Proceedings of the 2019 Conference on Empirical Methods in Natural Language Processing. Association for Computational Linguistics, 11 2019. URL https://arxiv.org/abs/1908.10084.
278
+ Reworkd. AgentGPT. https://github.com/reworkd/AgentGPT, 2023.
279
+ Toran Bruce Richards et al. Auto-GPT. https://github.com/Significant-Gravitas/AutoGPT, 2023.
280
+ Timo Schick, Jane Dwivedi-Yu, Roberto Dessì, Roberta Raileanu, Maria Lomeli, Luke Zettlemoyer, Nicola Cancedda, and Thomas Scialom. Toolformer: Language models can teach themselves to use tools. arXiv preprint arXiv:2302.04761, 2023.
281
+ Yongliang Shen, Kaitao Song, Xu Tan, Dongsheng Li, Weiming Lu, and Yueting Zhuang. Hugging-GPT: Solving ai tasks with chatgpt and its friends in huggingface. arXiv preprint arXiv:2303.17580, 2023.
282
+ Jianlin Su, Mingren Zhu, Ahmed Murtadha, Shengfeng Pan, Bo Wen, and Yunfeng Liu. Zlpr: A novel loss for multi-label classification. arXiv preprint arXiv:2208.02955, 2022.
283
+ Alane Suhr, Stephanie Zhou, Ally Zhang, Iris Zhang, Huajun Bai, and Yoav Artzi. A corpus for reasoning about natural language grounded in photographs. arXiv preprint arXiv:1811.00491, 2018.
284
+ Dídac Surís, Sachit Menon, and Carl Vondrick. ViperGPT: Visual inference via python execution for reasoning. arXiv preprint arXiv:2303.08128, 2023.
285
+ Hugo Touvron, Thibaut Lavril, Gautier Izacard, Xavier Martinet, Marie-Anne Lachaux, Timothée Lacroix, Baptiste Rozière, Naman Goyal, Eric Hambro, Faisal Azhar, et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
286
+ Ioannis Tsochantaridis, Thorsten Joachims, Thomas Hofmann, Yasemin Altun, and Yoram Singer. Large margin methods for structured and interdependent output variables. Journal of machine learning research, 6(9), 2005.
287
+ Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
288
+ Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. arXiv preprint arXiv:1710.10903, 2017.
289
+ Jianfeng Wang, Zhengyuan Yang, Xiaowei Hu, Linjie Li, Kevin Lin, Zhe Gan, Zicheng Liu, Ce Liu, and Lijuan Wang. Git: A generative image-to-text transformer for vision and language. arXiv preprint arXiv:2205.14100, 2022.
290
+ Jonatas Wehrmann, Ricardo Cerri, and Rodrigo Barros. Hierarchical multi-label classification networks. In International conference on machine learning, pp. 5075-5084. PMLR, 2018.
291
+
292
+ Licheng Wen, Xuemeng Yang, Daocheng Fu, Xiaofeng Wang, Pinlong Cai, Xin Li, Tao Ma, Yingxuan Li, Linran Xu, Dengke Shang, et al. On the road with gpt-4v (isdiction): Early explorations of visual-language model on autonomous driving. arXiv preprint arXiv:2311.05332, 2023.
293
+ Chenfei Wu, Shengming Yin, Weizhen Qi, Xiaodong Wang, Zecheng Tang, and Nan Duan. Visual chatgpt: Talking, drawing and editing with visual foundation models. arXiv preprint arXiv:2303.04671, 2023.
294
+ Jianfei Yang, Hanjie Qian, Yuecong Xu, and Lihua Xie. Can we evaluate domain adaptation models without target-domain labels? a metric for unsupervised evaluation of domain adaptation. arXiv preprint arXiv:2305.18712, 2023a.
295
+ Jingkang Yang, Yuhao Dong, Shuai Liu, Bo Li, Ziyue Wang, Chencheng Jiang, Haoran Tan, Jiamu Kang, Yuanhan Zhang, Kaiyang Zhou, et al. Octopus: Embodied vision-language programmer from environmental feedback. arXiv preprint arXiv:2310.08588, 2023b.
296
+ Zhengyuan Yang, Linjie Li, Jianfeng Wang, Kevin Lin, Ehsan Azarnasab, Faisal Ahmed, Zicheng Liu, Ce Liu, Michael Zeng, and Lijuan Wang. MM-ReAct: Prompting chatgpt for multimodal reasoning and action. arXiv preprint arXiv:2303.11381, 2023c.
297
+ Yuanxiang Ying, Juanyong Duan, Chunlei Wang, Yujing Wang, Congrui Huang, and Bixiong Xu. Automated model selection for time-series anomaly detection. arXiv preprint arXiv:2009.04395, 2020.
298
+ Haotian Zhang, Pengchuan Zhang, Xiaowei Hu, Yen-Chun Chen, Liunian Li, Xiyang Dai, Lijuan Wang, Lu Yuan, Jenq-Neng Hwang, and Jianfeng Gao. Glipv2: Unifying localization and vision-language understanding. Advances in Neural Information Processing Systems, 35:36067-36080, 2022a.
299
+ Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen, Christopher Dewan, Mona Diab, Xian Li, Xi Victoria Lin, et al. Opt: Open pre-trained transformer language models. arXiv preprint arXiv:2205.01068, 2022b.
300
+ Yuxiang Zhang, Sachin Mehta, and Anat Caspi. Rethinking semantic segmentation evaluation for explainability and model selection. arXiv preprint arXiv:2101.08418, 2021.
301
+ Xu Zhao, Yuxi Xie, Kenji Kawaguchi, Junxian He, and Qizhe Xie. Automatic model selection with large language models for reasoning. arXiv preprint arXiv:2305.14333, 2023.
302
+ Yue Zhao, Ryan Rossi, and Leman Akoglu. Automatic unsupervised outlier model selection. Advances in Neural Information Processing Systems, 34:4489-4502, 2021.
303
+ Yue Zhao, Sean Zhang, and Leman Akoglu. Toward unsupervised outlier model selection. In 2022 IEEE International Conference on Data Mining (ICDM), pp. 773-782. IEEE, 2022.
304
+ Deyao Zhu, Jun Chen, Xiaogian Shen, Xiang Li, and Mohamed Elhoseiny. MiniGPT-4: Enhancing vision-language understanding with advanced large language models. arXiv preprint arXiv:2304.10592, 2023.
305
+ Joshua P Zitovsky, Daniel De Marchi, Rishabh Agarwal, and Michael Rene Kosorok. Revisiting bellman errors for offline model selection. In International Conference on Machine Learning, pp. 43369-43406. PMLR, 2023.
306
+ Orr Zohar, Shih-Cheng Huang, Kuan-Chieh Wang, and Serena Yeung. LOVM: Language-only vision model selection. arXiv preprint arXiv:2306.08893, 2023.
307
+
308
+ # CONTENTS OF APPENDIX
309
+
310
+ # A Details of MS-GQA 14
311
+
312
+ A.1 Collection Process and Statistics 14
313
+ A.2 Files of MS-GQA 15
314
+ A.3 Subtask types of MS-GQA 15
315
+
316
+ # B Details of Loss Choice 16
317
+
318
+ # C Training Details 17
319
+
320
+ # D Ablation Study 18
321
+
322
+ D.1 Multi-modal Feature Extractor 18
323
+ D.2 Computation Graph Description Feature Extractor 18
324
+ D.3 Backbone of Computation Graph Learner 18
325
+ D.4 Objective Funciton 18
326
+
327
+ # E Research Significance 19
328
+
329
+ E.1 Model Selection for Multi-modal Reasoning 19
330
+ E.2 Reliable Model Selector: $M^3$ 19
331
+ E.3 Promising Future Work 19
332
+ E.4 Real-World Applications 20
333
+ E.5 Techniques 20
334
+
335
+ # F Strengths and Limitations of the $M^3$ Framework 20
336
+
337
+ F.1 Strengths: 20
338
+ F.2 Limitations: 21
339
+
340
+ # G Further Analysis 21
341
+
342
+ # H Supplementary Experiment on the "In-context Task-model Assignment" of Hugging-GPT 21
343
+
344
+ # A DETAILS OF MS-GQA
345
+
346
+ # A.1 COLLECTION PROCESS AND STATISTICS
347
+
348
+ MS-GQA is constructed by deploying the VisProg agent (Gupta & Kembhavi, 2023) on the GQA (Hudson & Manning, 2019) dataset, focusing on 9 subtask types, particularly "LOC"(Localization, Text-guided Object Detection) and "VQA" (Visual Question Answering). The other 7 subtask types ("EVAL", "COUNT", "CROP", "CROPLEFT", "CROPRIGHT", "CROPABOVE", "CROPBELOW") involve Python modules, thus excluding the need for model selection. The construction process involves these key steps:
349
+
350
+ - Model Zoo Expansion: VisProg has integrated recently released, popular, open-source models from Visual Question Answering and Text-guided Object Detection domains into its "VQA" and "LOC" modules, expanding the available pool of candidate models.
351
+ - Execution Results Collection: 10,000 samples are randomly selected from the GQA dataset (test-dev set). Each sample is first decomposed using LLM, resulting in a computation graph description representing the reasoning logic (see "program" in Figure 8). Following this description, all models ("VQA": 7, "LOC": 10, total: $7 \times 10 = 70$ ) are sequentially executed for each sample, yielding 700,000 execution records. Each execution record represents the result (0: fail, 1: success) of a specific sample's execution for a model selection choice.
352
+ - Data Cleaning: Samples that experienced reasoning execution failures due to incorrect computation graph descriptions generated by LLM are filtered out. These cases are not within the scope of our model selection research.
353
+
354
+ Finally, considering resource constraints, we manage to collect a total of 8,426 valid samples, which constitute the foundation for constructing the comprehensive MS-GQA benchmark presented in this study. Within the VisProg framework, the LLM employed is the GPT-3.5-turbo by OpenAI. Regarding the selection of candidate models, we opt for the most recent, widely recognized, high-performing models in each subtask category. The specific candidate models are detailed in Table 3.
355
+
356
+ Table 3: List of models that can be selected for each subtask in MS-GQA.
357
+
358
+ <table><tr><td>Subtask</td><td>Candidate Models</td><td>Link</td><td>Venue</td></tr><tr><td rowspan="10">LOC</td><td>owlvit-large-patch14 (Minderer et al.)</td><td>https://huggingface.co/google/owlvit-large-patch14</td><td>ECCV 2022</td></tr><tr><td>owlvit-base-patch16 (Minderer et al.)</td><td>https://huggingface.co/google/owlvit-base-patch16</td><td>ECCV 2022</td></tr><tr><td>owlvit-base-patch32 (Minderer et al.)</td><td>https://huggingface.co/google/owlvit-base-patch32</td><td>ECCV 2022</td></tr><tr><td>glip_large (Zhang et al., 2022a)</td><td>https://github.com/microsoft/GLIP</td><td>NeurIPS 2022</td></tr><tr><td>glip_tiny_a (Zhang et al., 2022a)</td><td>https://github.com/microsoft/GLIP</td><td>NeurIPS 2022</td></tr><tr><td>glip_tiny_b (Zhang et al., 2022a)</td><td>https://github.com/microsoft/GLIP</td><td>NeurIPS 2022</td></tr><tr><td>glip_tiny_c (Zhang et al., 2022a)</td><td>https://github.com/microsoft/GLIP</td><td>NeurIPS 2022</td></tr><tr><td>glip_tiny_ori (Zhang et al., 2022a)</td><td>https://github.com/microsoft/GLIP</td><td>NeurIPS 2022</td></tr><tr><td>groundingdino_swinb (Liu et al., 2023b)</td><td>https://github.com/IDEA-Research/GroundingDINO</td><td>Arxiv 2023</td></tr><tr><td>groundingdino_swint (Liu et al., 2023b)</td><td>https://github.com/IDEA-Research/GroundingDINO</td><td>Arxiv 2023</td></tr><tr><td rowspan="7">VQA</td><td>vilt-b32-finetuned-vqa (Kim et al., 2021)</td><td>https://huggingface.co/dandelin/vilt-b32-finetuned-vqa</td><td>ICML 2021</td></tr><tr><td>git-base-textvqa (Wang et al., 2022)</td><td>https://huggingface.co/microsoft/git-base-textvqa</td><td>TMLR 2022</td></tr><tr><td>blip-vqa-base (Li et al., 2022)</td><td>https://huggingface.co/Salesforce/blip-vqa-base</td><td>ICML 2022</td></tr><tr><td>blip2-opt-2.7b (Li et al., 2023)</td><td>https://huggingface.co/Salesforce/blip2-opt-2.7b</td><td>ICML 2023</td></tr><tr><td>blip2-flan-t5-x1 (Li et al., 2023)</td><td>https://huggingface.co/sheraz179/blip2-flan-t5-x1</td><td>ICML 2023</td></tr><tr><td>instructclip-vicuna-7b (Dai et al., 2023)</td><td>https://huggingface.co/Salesforce/instructclip-vicuna-7b</td><td>Arxiv 2023</td></tr><tr><td>instructclip-flan-t5-x1 (Dai et al., 2023)</td><td>https://huggingface.co/Salesforce/instructclip-flan-t5-x1</td><td>Arxiv 2023</td></tr></table>
359
+
360
+ # A.2 FILES OF MS-GQA
361
+
362
+ There are three main files for MS-GQA:
363
+
364
+ - gqa_model_selection_instance_results.json provides the results of whether a sample can be successfully executed under different model combination choices and the cost time. As shown in Figure 7, the sample with index 1 chooses "instructclip-vicuna-7b" as the "VQA" model and "groundingdino_swint" as the "LOC" model, then this sample can be executed successfully and the cost time is 0.887s.
365
+ - gqa_computation_graph_description.json offers the image ID, problem, and programming text of a sample, as shown in Figure 8.
366
+ - testdev Balanced questions.json includes the task type of a sample. As shown in Figure 9, we can get a sample's task type from the attribute of [types][structural].
367
+
368
+ # A.3 SUBTASK TYPES OF MS-GQA
369
+
370
+ Table 4 shows the examples of five subtasks, including Qurey, Choose, Compare, Verify and Logical.
371
+ ```jsonl
372
+ { "1": [ { "vqa": "instructclip-vicuna-7b", "loc": "groundingdino_swint", "time": 0.8868060111999512, "res": 1 }, ... { "vqa": "clip-vqa-base", "loc": "glip_large", "time": 0.06340360641479492, "res": 1 } ]
373
+ ```
374
+
375
+ Figure 7: Examples in gqa_model_selection_instance_results.json.
376
+
377
+ Figure 8: Examples in gqa_computation_graph_description.json.
378
+ ```javascript
379
+ { "index":7967, "图像Id":"n259002", "question":"What's underneath the ball?", "program": "BOX0=LOC(image=IMAGE,obj='ball') \\nIMAGE0=CROP_BELOW(image=IMAGE,box=BOX0) \\nANSWER0=VQA(image=IMAGE0,question='What is underneath the ball?') \\nFINAL_result $\equiv$ RESULT(var $\equiv$ ANSwER0)"
380
+ }
381
+ ```
382
+
383
+ Figure 9: Examples in testdev Balanced questions.json.
384
+ ```json
385
+ { "201307251": { "semantic": [ { "operation": "select", "dependencies": [], "argument": "scene" }, { "operation": "verify weather", "dependencies": [0], "argument": "overcast" } ], "entailed": [], "equivalent": ["201307251"], "question": "Is it overcast?", "groupId": "n161313", "isBalanced": true, "groups": {"global": null, "local": "01-weather_overcast"}, "answer": "no", "semanticStr": "select: scene->verify weather: overcast [0]", "annotations": {"answer": {}, "question": {}, "fullAnswer": {}, "types": { "detailed": "weatherVerifyC", "semantic": "global", "structural": "verify" }, "fullAnswer": "No, it is clear." } }
386
+ ```
387
+
388
+ # B DETAILS OF LOSS CHOICE
389
+
390
+ In Section 3.2 discussion, we observe that in multi-modal reasoning, a single sample's execution result (success or failure) is known, creating a binary outcome. Notably, the count of successful executions is variable. Consequently, we transform the model selection process in multi-modal reasoning into a
391
+
392
+ Table 4: Subtask examples in MS-GQA.
393
+
394
+ <table><tr><td>Subtask Type</td><td>Question</td><td>Image</td></tr><tr><td>Qurey</td><td>How tall is the chair in the bottom of the photo?</td><td></td></tr><tr><td>Choose</td><td>Is the ground blue or brown?</td><td></td></tr><tr><td>Compare</td><td>Are both the phone and the coffee cup the same color?</td><td></td></tr><tr><td>Verify</td><td>Is the surfer that looks wet wearing a wetsuit?</td><td></td></tr><tr><td>Logical</td><td>Does the utensil on top of the table look clean and black?</td><td></td></tr></table>
395
+
396
+ multi-label classification issue. Here, the count of positive labels (successful executions) varies, and the total categories are denoted as $|\mathcal{C}|$ .
397
+
398
+ Previous literature often employs Binary Cross-Entropy (BCE) loss for multi-label classification problems due to its ease of optimization. However, BCE's instance-wise nature overlooks the distinct impact of different model selection choices on the same sample.
399
+
400
+ Therefore, an optimal optimization objective for multi-modal reasoning should emphasize differentiating between model selection choices corresponding to positive and negative labels for a specific sample. Any choice associated with a positive label is deemed optimal. Hence, we choose Categorical Cross-Entropy (CCE) loss since it ensures that "the score for each target class is not lower than the score for each non-target class".
401
+
402
+ # C TRAINING DETAILS
403
+
404
+ NCF, NCF++, and $M^3$ are all implemented by ourselves within a unified pipeline. We employ grid search to filter some crucial hyperparameters. Specifically, we explored hidden sizes [16, 32, 64, 128], learning rates [1e-2, 5e-3, 1e-3, 5e-3, 1e-4], weight decays [0.01, 0.001, 0.0001], and optimizer
405
+
406
+ options [AdamW, Adam, SGD]. A batch size of 64 is utilized, along with StepLR Scheduler with parameters step size 100 and gamma 0.7.
407
+
408
+ What's more, we conduct experiments on both METAGL and METAGL++ after adapting the code of MetaGL (Park et al., 2022) to suit our specific scenario. And we train both METAGL and METAGL++ using the optimizer of Adam. The learning rate is adjusted within [1e-2, 5e-3, 1e-3, 5e-3, 1e-4], with a majority of the experiments using 1e-3. The weight decay is set to 0, and the batch size is set to 128.
409
+
410
+ # D ABLATION STUDY
411
+
412
+ # D.1 MULTI-MODAL FEATURE EXTRACTOR
413
+
414
+ To verify the effect of the quality of multi-modal features on model selection, we perform ablation experiments on the choices of multi-modal feature extractors. We choose BLiP (Li et al., 2022), BERT (Devlin et al., 2018) + ViT (Dosovitskiy et al., 2020), and ViLT (Kim et al., 2021) as the feature extractors separately. As shown in the Table 5, the quality of the features really affects the performance of model selection methods, but $M^3$ stays superiority no matter which feature extractor we use.
415
+
416
+ Table 5: Performance comparison of model selection methods with different multi-modal feature extractors.
417
+
418
+ <table><tr><td>Feature extractor</td><td>NCF</td><td>METAGL</td><td>M3</td></tr><tr><td>BLiP</td><td>65.92±1.5</td><td>66.01±0.4</td><td>68.70±0.6</td></tr><tr><td>ViLT</td><td>64.87±0.8</td><td>61.90±0.8</td><td>65.91±0.7</td></tr><tr><td>BERT+ViT</td><td>63.14±0.8</td><td>62.27±1.6</td><td>64.94±0.5</td></tr></table>
419
+
420
+ # D.2 COMPUTATION GRAPH DESCRIPTION FEATURE EXTRACTOR
421
+
422
+ $\mathrm{NCF}++$ and $\mathrm{METAGL}++$ leverage extra text features derived from the computation graph descriptions compared to NCF and $\mathrm{METAGL}$ . Here we use "bert-base-uncased<sup>4</sup>" (Devlin et al., 2018), "sentence-bert"<sup>5</sup> (Reimers & Gurevych, 2019), and "roberta-base"<sup>6</sup> (Liu et al., 2019) from HuggingFace, respectively, to extract the computational graph features given in textual form by LLM. Table 6 show the performance of $\mathrm{NCF}++$ and $\mathrm{METAGL}++$ across different textual encoders.
423
+
424
+ Table 6: Performance comparison with different computation graph feature extractors.
425
+
426
+ <table><tr><td>Extractor</td><td>NCF++</td><td>METAGL++</td></tr><tr><td>bert-base-uncased</td><td>64.40±1.7</td><td>65.62±3.2</td></tr><tr><td>sentence-bert</td><td>63.95±2.2</td><td>64.00±1.8</td></tr><tr><td>roberta-base</td><td>64.28±1.3</td><td>65.90±1.1</td></tr></table>
427
+
428
+ # D.3 BACKBONE OF COMPUTATION GRAPH LEARNER
429
+
430
+ In Table 7, we report SER of $M^3$ when using GAT (Velicković et al., 2017), GRU (Chung et al., 2014) and Transformer (Vaswani et al., 2017) as the backbone, respectively. Since GRU and Transformer cannot be directly applied to model directed acyclic graphs, we made corresponding adjustments; however, their performance still lags behind that of GAT.
431
+
432
+ # D.4 OBJECTIVE FUNCITON
433
+
434
+ As shown in Table 8, we report the performance comparison of NCF, METAGL and $M^3$ on Binary Cross-Entropy Loss (BCE) and Categorical Cross-Entropy loss (CCE), respectively.
435
+
436
+ Table 7: Performance comparison with different backbone for ${\mathbf{M}}^{3}$ .
437
+
438
+ <table><tr><td>Backbone</td><td>SER</td></tr><tr><td>GAT (GNNs)</td><td>68.70±0.6</td></tr><tr><td>GRU (RNNs)</td><td>68.02±0.7</td></tr><tr><td>Transformer</td><td>65.32±0.4</td></tr></table>
439
+
440
+ Table 8: Performance comparison with different loss function.
441
+
442
+ <table><tr><td></td><td>NCF</td><td>METAGL</td><td>M3</td></tr><tr><td>BCE</td><td>64.49±1.4</td><td>66.03±1.4</td><td>67.65±1.3</td></tr><tr><td>CCE</td><td>65.92±2.8</td><td>66.01±0.4</td><td>68.70±0.6</td></tr></table>
443
+
444
+ # E RESEARCH SIGNIFICANCE
445
+
446
+ # E.1 MODEL SELECTION FOR MULTI-MODAL REASONING
447
+
448
+ - Model selection techniques have proven successful in various fields. Model selection techniques, recognized in tasks like time series prediction and graph learning, aim to match samples with suitable models, enabling task completion without sample labels.
449
+ - Errors could have a chain reaction effect. Choices in models impact overall robustness, crucial in multi-step reasoning with strong task dependencies, as errors can lead to chain reactions on subsequent executions.
450
+ - Underperformance of current model selection strategies. Section 4's experimental results reveal poor and lacking robustness in existing multi-modal agent model selectors, with methods from other domains yielding unsatisfactory results due to neglect of subtask dependency.
451
+ - A significant gap from the oracle model selector. In MS-GQA, the oracle model selector attains $100\%$ success, while a random strategy reaches about $56\%$ SER, and existing multimodal agents usually achieve around $60\%$ effectiveness. Our $M^3$ framework, addressing subtask dependency, enhances results to about $69\%$ . Nevertheless, a noticeable gap from the oracle's $100\%$ remains, underscoring substantial research potential in this area.
452
+
453
+ # E.2 RELIABLE MODEL SELECTOR: $M^3$
454
+
455
+ - Addressed the limited robustness of current model selectors. The industry emphasizes agent robustness, however, current multi-modal agent research is not mature, and their use of simplistic model selection damages robustness. $M^3$ addresses these shortcomings as an effective and efficient plugin in the model selection stage to enhance overall system robustness.
456
+ - Reliable performance in various scenarios. $M^3$ demonstrates reliability in various data missing and restriction scenarios on the MS-GQA dataset. Sections 4.4 and 4.5 highlight its superior performance compared to existing training-based methods, reflecting the potential applicability of $M^3$ in real-world production environments.
457
+ - Highly lightweight and efficient. As pioneers in this research, we've avoided complex network structures and training techniques. Instead, we've tackled a key challenge, subtask dependency, using a straightforward design—a directed acyclic computation graph. This approach models relationships among multi-modal inputs, subtask dependency, and candidate models. The design leads to low costs for both training and testing, with overall memory usage around 6GB, as noted in Section 4.5. This emphasizes $M^3$ 's practical potential for real-world production scenarios.
458
+
459
+ # E.3 PROMISING FUTURE WORK
460
+
461
+ - Empower LLM with model selection capabilities. Currently, the $M^3$ framework operates orthogonally to LLM in multi-modal agents. The former, following task planning by the
462
+
463
+ latter, performs model selection for each subtask based on its output. Given LLM's robust reasoning abilities, granting it model selection capabilities is a promising endeavor. This would allow LLM to simultaneously handle task planning and model selection, eliminating the need for training an additional model selector and reducing deployment costs in practical production environments.
464
+
465
+ - Enhance supervisory signals using intermediate results. In the current training of the $M^3$ framework, only the final execution results of the multi-modal agent are utilized as supervisory signals, indicating the success of execution or the correctness of the provided answer. However, at each step of reasoning, intermediate results are generated. If these results are judiciously employed as supplementary supervisory signals, we believe it can further improve the effectiveness of $M^3$ .
466
+ - More economical unsupervised and semi-supervised training methods. Similar to the second point, if intermediate results are reasonably utilized, even as a form of data augmentation, supervisory signals can come not only from the final execution results but also from the intermediate stages. This enables a more cost-effective training approach.
467
+
468
+ # E.4 REAL-WORLD APPLICATIONS
469
+
470
+ - Utilizing agents to decompose and gradually solve complex multi-modal reasoning tasks is currently one of the mainstream research paradigms for addressing multi-modal challenges. Relevant work, from pioneers like VisProg (Gupta & Kembhavi, 2023) to the highly regarded HuggingGPT (Shen et al., 2023), and more recently LLaVA-Plus (Liu et al., 2023a), has been a focal point for researchers in this field.
471
+ - Moreover, AssistGPT (Gao et al., 2023a) and Chameleon (Lu et al., 2023) highlight the potential applications in areas such as video understanding, education, and finance. Meanwhile, inspired by these endeavors (Yang et al., 2023b; Dalal et al., 2023; Wen et al., 2023), we reasonably expect that multi-modal agents whose per-step execution relies on other tools will eventually extend their applications to other AI domains, including autonomous driving, robotics, and embodied intelligence.
472
+ - When agents call upon different multi-modal AI models to tackle various subtasks in reasoning, it gives rise to the need for model selection techniques. Specifically, considering
473
+
474
+ - the richness and abundance of existing multi-modal model types;
475
+ - the extensive candidate models;
476
+ - the reliability and feasibility demonstrated by model selection in other domains;
477
+ - the overly simplistic or less effective model selection strategies employed by current multi-modal agents;
478
+
479
+ Researching model selection in the context of multi-modal reasoning is highly promising and practically valuable in this new scenario.
480
+
481
+ # E.5 TECHNIQUES
482
+
483
+ Our technical contributions encompass addressing the challenge of subtask dependency in multimodal agents by decomposing the original multi-modal task into sub-tasks, as defined in the multimodal reasoning scenario (see Definition 3.2). Sections 2 and 4 reveal the inadequacy of existing model selection strategies in multi-modal agents, particularly in handling subtask dependencies. Baseline methods, as outlined in Appendix E.1, exhibit notable underperformance compared to the oracle model selector. In response, our proposed model selection framework, $M^3$ , skillfully integrates multi-modal inputs, model embeddings, and subtask dependencies on a directed acyclic graph. This approach, detailed from Section 4.3 to Section 4.5, demonstrates the reliability and robustness of $M^3$ . As an initial endeavor, the unified modeling approach of $M^3$ holds promise to inspire future researchers.
484
+
485
+ # F STRENGTHS AND LIMITATIONS OF THE $M^3$ FRAMEWORK
486
+
487
+ # F.1 STRENGTHS:
488
+
489
+ - Effective performance. The experimental results in Tables 1 and ?? demonstrate that our approach consistently outperforms baselines across various test distributions on the
490
+
491
+ MS-GQA dataset, particularly when compared to simplistic strategies like training-free methods.
492
+
493
+ - Efficient design. As pioneers in this domain, we opted for a straightforward yet effective approach. Rather than intricately designing the network structure and optimization strategies for $M^3$ , we focused on exploring the critical aspect of subtask dependency. This simplicity is reflected in the efficiency of the entire framework, as evidenced by results in Section 4.5.
494
+ - Applicability across diverse multi-modal agents. The $M^3$ framework comprises three main components: multi-modal inputs, subtask dependency, and candidate models. Although our experiments were conducted with the VisProg agent, these three inputs constitute foundational components of existing multi-modal agents. For example, in HuggingGPT, if a user inputs an image and a corresponding question, this forms the model's multi-modal inputs. Then, HuggingGPT breaks down the user's original input, identifying various sub-AI tasks and their dependencies, abstracted as subtask dependency. Candidate models in this context refer to all off-the-shelf models or model APIs within HuggingGPT.
495
+
496
+ # F.2 LIMITATIONS:
497
+
498
+ - Data dependency. The experiments in Section 4.4 demonstrate that, despite $M^3$ performing better than baselines in scenarios with varying degrees of data missing, there is an absolute decline in performance. This underscores the crucial role of data in $M^3$ 's effectiveness.
499
+ - Supervisory signal underutilization. The source of supervisory signals during training is too singular, failing to fully harness the intermediate results of multi-step reasoning. This limitation may contribute to $M^3$ 's higher dependency on data.
500
+
501
+ # G FURTHER ANALYSIS
502
+
503
+ - $M^3$ exhibits the best performance on the complete test set of MS-GQA. Table 1 illustrates that $M^3$ stands out as the top performer overall compared to other baselines. It achieves a significant $2.69\%$ improvement over the previous state-of-the-art (METAGL) in the complete test set (Full).
504
+ - $M^3$ continues to perform exceptionally well on the sub-test sets of MS-GQA. Moreover, in both Table 1 and Table 2, $M^3$ consistently excels in several sub-test sets, including the Query and Choose sets in Table 1 and the Group 3, and 5 (difficulty level) sets in Table 2. Even in the remaining sub-test sets where it does not perform best, $M^3$ maintains a strong performance, usually ranking among the top two or three methods. In contrast, some baselines may excel in one sub-test set but perform poorly in others. For example, VisProg achieves an $82.26\%$ SER on the Compare sub-test set in Table 1 but fares the worst among all methods on the Query $(45.36\%)$ and Choose $(68.26\%)$ sub-test sets. In contrast, the $M^3$ framework consistently performs well across all sub-test sets, which is why $M^3$ significantly outperforms training-free methods on the complete test set (Full). This also demonstrates the robustness of $M^3$ .
505
+ - $M^3$ depends on the size of dataset. As shown in Figure 5(b), despite $M^3$ performing better than baselines in scenarios with varying degrees of data missing, there is an absolute decline in performance. Nevertheless, constrained by limited financial resources, we only collected the limited dataset, MS-GQA. So according to the above experimental results, we have reason to believe that expanding the size of the dataset further will improve the performance of $M^3$ on both sub-test sets and the whole test set.
506
+
507
+ # H SUPPLEMENTARY EXPERIMENT ON THE “IN-CONTEXT TASK-MODEL ASSIGNMENT” OF HUGGINGGPT
508
+
509
+ In the original HuggingGPT (Shen et al., 2023) text, there is a mention of utilizing the in-context learning ability of LLM for model selection. Following the configuration in the HuggingGPT source code, we represented each model by using its metadata and relevant descriptions. Based on Table 9, our primary conclusions are as follows:
510
+
511
+ - The selected model consistently remained the same despite changes in question descriptions or structures.
512
+
513
+ - The consistency indicates that leveraging the in-context learning capability of LLM currently falls short of achieving genuine and effective dynamic model selection.
514
+
515
+ Table 9: Distribution of the selected model based on in-context learning
516
+
517
+ <table><tr><td>Candidate Models</td><td>Query</td><td>Choose</td><td>Compare</td><td>Logical</td><td>Verify</td></tr><tr><td>vilt-b32-finetuned-vqa</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td><td>100%</td></tr><tr><td>git-base-textvqa</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>blip-vqa-base</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>blip2-opt-2.7b</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>blip2-flan-t5-xl</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>instructclip-vicuna-7b</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr><tr><td>instructclip-flan-t5-xl</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td><td>0%</td></tr></table>
518
+
519
+ The corresponding experimental details and observations are outlined below:
520
+
521
+ - Settings. We randomly selected 100 questions from GQA, and constructed prompts following HuggingGPT's description. 100 questions cover 5 different question structures, and each question structure typically has distinct reasoning characteristics. The corresponding experimental code is included in the supplementary materials. We randomly selected 100 questions from GQA, and constructed prompts following HuggingGPT's description. 100 questions cover 5 different question structures, and each question structure typically has distinct reasoning characteristics. The corresponding experimental code is included in the supplementary materials.
522
+ - Observations. All questions, irrespective of task type and question itself, are assigned to the first model (vilt-b32-finetuned-vqa) with five $100\%$ values in the first model column.
523
+ - Comment. The experiment was conducted only in a one-step scenario, where one model is selected for a single task. Though simple, we believe this case is sufficient to state the fact that "in-context task-model assignment" may not be particularly effective in a multi-step setting.
2024/Towards Robust Multi-Modal Reasoning via Model Selection/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cc1865a6c9034a11008399192fe2e517d60235a4921e31f2c0f0754b7483587c
3
+ size 890842
2024/Towards Robust Multi-Modal Reasoning via Model Selection/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/d7997427-1b7b-41fa-923f-60d807a50ba0_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:cb85ea6079823bf5dc06bd38b73097c4c7ad26750587af5679be78758019a2b3
3
+ size 1159748
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:18ecc7cd07bd51eafd9b46f9ab68826c31fb6ddbf289975cf84c5262f5134558
3
+ size 1293554
2024/Towards Robust and Efficient Cloud-Edge Elastic Model Adaptation via Selective Entropy Distillation/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Seamless Adaptation of Pre-trained Models for Visual Place Recognition/c5ba224f-d385-4c8e-9cdc-83b1e6c3c410_content_list.json ADDED
The diff for this file is too large to render. See raw diff