Add Batch ff114c0e-3079-45d8-9d04-764656a9a967 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_content_list.json +0 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_model.json +0 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_origin.pdf +3 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/full.md +0 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/images.zip +3 -0
- 2024/Evaluating Representation Learning on the Protein Structure Universe/layout.json +0 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_content_list.json +0 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_model.json +0 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_origin.pdf +3 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/full.md +477 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/images.zip +3 -0
- 2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/layout.json +0 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_content_list.json +0 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_model.json +0 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_origin.pdf +3 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/full.md +500 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/images.zip +3 -0
- 2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/layout.json +0 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_content_list.json +0 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_model.json +0 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_origin.pdf +3 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/full.md +629 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/images.zip +3 -0
- 2024/Expected flow networks in stochastic environments and two-player zero-sum games/layout.json +0 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_content_list.json +0 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_model.json +0 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_origin.pdf +3 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/full.md +0 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/images.zip +3 -0
- 2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/layout.json +0 -0
- 2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_content_list.json +0 -0
- 2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_model.json +0 -0
- 2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_origin.pdf +3 -0
- 2024/Explaining Kernel Clustering via Decision Trees/full.md +705 -0
- 2024/Explaining Kernel Clustering via Decision Trees/images.zip +3 -0
- 2024/Explaining Kernel Clustering via Decision Trees/layout.json +0 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_content_list.json +0 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_model.json +0 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_origin.pdf +3 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/full.md +471 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/images.zip +3 -0
- 2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/layout.json +0 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_content_list.json +0 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_model.json +0 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_origin.pdf +3 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/full.md +0 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/images.zip +3 -0
- 2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/layout.json +0 -0
- 2024/Exploring Diffusion Time-steps for Unsupervised Representation Learning/eb88b99c-2ad3-4064-a4bc-2d7994130e04_content_list.json +1353 -0
.gitattributes
CHANGED
|
@@ -4393,3 +4393,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 4393 |
2024/Eureka_[[:space:]]Human-Level[[:space:]]Reward[[:space:]]Design[[:space:]]via[[:space:]]Coding[[:space:]]Large[[:space:]]Language[[:space:]]Models/d4be352d-7271-479d-8170-44d11bb52f37_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4394 |
2024/Evaluating[[:space:]]Language[[:space:]]Model[[:space:]]Agency[[:space:]]Through[[:space:]]Negotiations/1ea944e5-1e22-4b38-a35d-61c332dde2c6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4395 |
2024/Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]at[[:space:]]Evaluating[[:space:]]Instruction[[:space:]]Following/c2fa2231-5a70-4611-8674-1bc6a3462541_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4393 |
2024/Eureka_[[:space:]]Human-Level[[:space:]]Reward[[:space:]]Design[[:space:]]via[[:space:]]Coding[[:space:]]Large[[:space:]]Language[[:space:]]Models/d4be352d-7271-479d-8170-44d11bb52f37_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4394 |
2024/Evaluating[[:space:]]Language[[:space:]]Model[[:space:]]Agency[[:space:]]Through[[:space:]]Negotiations/1ea944e5-1e22-4b38-a35d-61c332dde2c6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4395 |
2024/Evaluating[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]at[[:space:]]Evaluating[[:space:]]Instruction[[:space:]]Following/c2fa2231-5a70-4611-8674-1bc6a3462541_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4396 |
+
2024/Evaluating[[:space:]]Representation[[:space:]]Learning[[:space:]]on[[:space:]]the[[:space:]]Protein[[:space:]]Structure[[:space:]]Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4397 |
+
2024/EventRPG_[[:space:]]Event[[:space:]]Data[[:space:]]Augmentation[[:space:]]with[[:space:]]Relevance[[:space:]]Propagation[[:space:]]Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4398 |
+
2024/Evoke_[[:space:]]Evoking[[:space:]]Critical[[:space:]]Thinking[[:space:]]Abilities[[:space:]]in[[:space:]]LLMs[[:space:]]via[[:space:]]Reviewer-Author[[:space:]]Prompt[[:space:]]Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4399 |
+
2024/Expected[[:space:]]flow[[:space:]]networks[[:space:]]in[[:space:]]stochastic[[:space:]]environments[[:space:]]and[[:space:]]two-player[[:space:]]zero-sum[[:space:]]games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4400 |
+
2024/Experimental[[:space:]]Design[[:space:]]for[[:space:]]Multi-Channel[[:space:]]Imaging[[:space:]]via[[:space:]]Task-Driven[[:space:]]Feature[[:space:]]Selection/f817dfde-0e7c-40f8-83cd-f291de742776_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4401 |
+
2024/Explaining[[:space:]]Kernel[[:space:]]Clustering[[:space:]]via[[:space:]]Decision[[:space:]]Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4402 |
+
2024/Explaining[[:space:]]Time[[:space:]]Series[[:space:]]via[[:space:]]Contrastive[[:space:]]and[[:space:]]Locally[[:space:]]Sparse[[:space:]]Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4403 |
+
2024/Exploiting[[:space:]]Causal[[:space:]]Graph[[:space:]]Priors[[:space:]]with[[:space:]]Posterior[[:space:]]Sampling[[:space:]]for[[:space:]]Reinforcement[[:space:]]Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4404 |
+
2024/Exploring[[:space:]]Diffusion[[:space:]]Time-steps[[:space:]]for[[:space:]]Unsupervised[[:space:]]Representation[[:space:]]Learning/eb88b99c-2ad3-4064-a4bc-2d7994130e04_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4405 |
+
2024/Exploring[[:space:]]Effective[[:space:]]Stimulus[[:space:]]Encoding[[:space:]]via[[:space:]]Vision[[:space:]]System[[:space:]]Modeling[[:space:]]for[[:space:]]Visual[[:space:]]Prostheses/a0e4ccb8-c8b8-4079-b05a-ce1206239b93_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4406 |
+
2024/Exploring[[:space:]]Target[[:space:]]Representations[[:space:]]for[[:space:]]Masked[[:space:]]Autoencoders/34ff3c2e-c52d-43c1-978b-7711c02c68f0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4407 |
+
2024/Exploring[[:space:]]Weight[[:space:]]Balancing[[:space:]]on[[:space:]]Long-Tailed[[:space:]]Recognition[[:space:]]Problem/ac905480-aad8-463b-a64b-1fd406e3375d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4408 |
+
2024/Exploring[[:space:]]the[[:space:]]Promise[[:space:]]and[[:space:]]Limits[[:space:]]of[[:space:]]Real-Time[[:space:]]Recurrent[[:space:]]Learning/c40b7927-ceb1-4eb2-b53a-f40f9a915abc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4409 |
+
2024/Exploring[[:space:]]the[[:space:]]cloud[[:space:]]of[[:space:]]feature[[:space:]]interaction[[:space:]]scores[[:space:]]in[[:space:]]a[[:space:]]Rashomon[[:space:]]set/9738eceb-5c84-41bb-bef6-7e830cd27ea2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4410 |
+
2024/Exposing[[:space:]]Text-Image[[:space:]]Inconsistency[[:space:]]Using[[:space:]]Diffusion[[:space:]]Models/45f35734-0582-4aca-a525-7772e68294e5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4411 |
+
2024/Expressive[[:space:]]Losses[[:space:]]for[[:space:]]Verified[[:space:]]Robustness[[:space:]]via[[:space:]]Convex[[:space:]]Combinations/4fc109a1-524a-4a2f-b0f2-025543b75d01_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4412 |
+
2024/Expressivity[[:space:]]of[[:space:]]ReLU-Networks[[:space:]]under[[:space:]]Convex[[:space:]]Relaxations/3f3a3c9a-7d32-4ecd-a46d-e0ead6114006_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4413 |
+
2024/Extending[[:space:]]Power[[:space:]]of[[:space:]]Nature[[:space:]]from[[:space:]]Binary[[:space:]]to[[:space:]]Real-Valued[[:space:]]Graph[[:space:]]Learning[[:space:]]in[[:space:]]Real[[:space:]]World/8abd404c-2175-4017-91ac-25f92f1fd83a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4414 |
+
2024/FFB_[[:space:]]A[[:space:]]Fair[[:space:]]Fairness[[:space:]]Benchmark[[:space:]]for[[:space:]]In-Processing[[:space:]]Group[[:space:]]Fairness[[:space:]]Methods/b584ec91-fdbe-489d-bdd8-9952cc3f424e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4415 |
+
2024/FLATTEN_[[:space:]]optical[[:space:]]FLow-guided[[:space:]]ATTENtion[[:space:]]for[[:space:]]consistent[[:space:]]text-to-video[[:space:]]editing/5c426d48-13ff-48cc-8cf8-39aadcb6cf7f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4416 |
+
2024/FOSI_[[:space:]]Hybrid[[:space:]]First[[:space:]]and[[:space:]]Second[[:space:]]Order[[:space:]]Optimization/c45ced50-798a-481a-a773-95b236b37bb4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4417 |
+
2024/FROSTER_[[:space:]]Frozen[[:space:]]CLIP[[:space:]]is[[:space:]]A[[:space:]]Strong[[:space:]]Teacher[[:space:]]for[[:space:]]Open-Vocabulary[[:space:]]Action[[:space:]]Recognition/c3d8889d-a9b1-4ffb-8ac3-d8251e3d3649_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4418 |
+
2024/Facing[[:space:]]the[[:space:]]Elephant[[:space:]]in[[:space:]]the[[:space:]]Room_[[:space:]]Visual[[:space:]]Prompt[[:space:]]Tuning[[:space:]]or[[:space:]]Full[[:space:]]finetuning_/efcf9fd7-0743-40b0-bc2e-cdfbb3408db0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4419 |
+
2024/Fair[[:space:]]Classifiers[[:space:]]that[[:space:]]Abstain[[:space:]]without[[:space:]]Harm/8ee1598a-aef0-4559-a6cc-501e9fdfae68_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4420 |
+
2024/Fair[[:space:]]and[[:space:]]Efficient[[:space:]]Contribution[[:space:]]Valuation[[:space:]]for[[:space:]]Vertical[[:space:]]Federated[[:space:]]Learning/dd1f96fc-1a06-432d-a4d7-715dccf689aa_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4421 |
+
2024/FairSeg_[[:space:]]A[[:space:]]Large-Scale[[:space:]]Medical[[:space:]]Image[[:space:]]Segmentation[[:space:]]Dataset[[:space:]]for[[:space:]]Fairness[[:space:]]Learning[[:space:]]Using[[:space:]]Segment[[:space:]]Anything[[:space:]]Model[[:space:]]with[[:space:]]Fair[[:space:]]Error-Bound[[:space:]]Scaling/18b364c2-449d-4da4-966f-dd4ac6db8b61_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4422 |
+
2024/FairTune_[[:space:]]Optimizing[[:space:]]Parameter[[:space:]]Efficient[[:space:]]Fine[[:space:]]Tuning[[:space:]]for[[:space:]]Fairness[[:space:]]in[[:space:]]Medical[[:space:]]Image[[:space:]]Analysis/b7eb642d-a5e6-43e7-85c7-a34174b94a8e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4423 |
+
2024/FairerCLIP_[[:space:]]Debiasing[[:space:]]CLIP's[[:space:]]Zero-Shot[[:space:]]Predictions[[:space:]]using[[:space:]]Functions[[:space:]]in[[:space:]]RKHSs/e0e3a8ce-89b1-476e-80eb-d72f00daa0d7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4424 |
+
2024/Faithful[[:space:]]Explanations[[:space:]]of[[:space:]]Black-box[[:space:]]NLP[[:space:]]Models[[:space:]]Using[[:space:]]LLM-generated[[:space:]]Counterfactuals/fb0fae1d-f221-4cf3-9b50-3fa7638102e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4425 |
+
2024/Faithful[[:space:]]Rule[[:space:]]Extraction[[:space:]]for[[:space:]]Differentiable[[:space:]]Rule[[:space:]]Learning[[:space:]]Models/e2c0b6dd-d760-4e8a-b390-4e635332f17d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4426 |
+
2024/Faithful[[:space:]]Vision-Language[[:space:]]Interpretation[[:space:]]via[[:space:]]Concept[[:space:]]Bottleneck[[:space:]]Models/82368f08-235b-4ac0-a43d-874e32d941e5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4427 |
+
2024/Fake[[:space:]]It[[:space:]]Till[[:space:]]Make[[:space:]]It_[[:space:]]Federated[[:space:]]Learning[[:space:]]with[[:space:]]Consensus-Oriented[[:space:]]Generation/6be33e2f-6366-4e89-af91-6d6696e6cddc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4428 |
+
2024/Fantastic[[:space:]]Generalization[[:space:]]Measures[[:space:]]are[[:space:]]Nowhere[[:space:]]to[[:space:]]be[[:space:]]Found/ef30dd87-ec38-4338-a782-e80b2cbb7af5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4429 |
+
2024/Fast[[:space:]]Ensembling[[:space:]]with[[:space:]]Diffusion[[:space:]]Schrödinger[[:space:]]Bridge/7e2b6fb6-940d-41d6-9dc1-8226568e5ff4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4430 |
+
2024/Fast[[:space:]]Equilibrium[[:space:]]of[[:space:]]SGD[[:space:]]in[[:space:]]Generic[[:space:]]Situations/ae88c9a1-f8a6-4314-8bac-7388e060c858_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4431 |
+
2024/Fast[[:space:]]Hyperboloid[[:space:]]Decision[[:space:]]Tree[[:space:]]Algorithms/2dda4a92-51e5-4ae3-9116-e731880764a7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4432 |
+
2024/Fast[[:space:]]Updating[[:space:]]Truncated[[:space:]]SVD[[:space:]]for[[:space:]]Representation[[:space:]]Learning[[:space:]]with[[:space:]]Sparse[[:space:]]Matrices/fc19d29a-7534-4fdd-840a-686873339d8a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4433 |
+
2024/Fast[[:space:]]Value[[:space:]]Tracking[[:space:]]for[[:space:]]Deep[[:space:]]Reinforcement[[:space:]]Learning/8150187f-ce55-4742-8911-b202359619ee_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4434 |
+
2024/Fast[[:space:]]and[[:space:]]unified[[:space:]]path[[:space:]]gradient[[:space:]]estimators[[:space:]]for[[:space:]]normalizing[[:space:]]flows/be255bbd-3338-4caf-af27-bc0a83e0a2a1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4435 |
+
2024/Fast,[[:space:]]Expressive[[:space:]]$_mathrm{SE}(n)$[[:space:]]Equivariant[[:space:]]Networks[[:space:]]through[[:space:]]Weight-Sharing[[:space:]]in[[:space:]]Position-Orientation[[:space:]]Space/e43f6fd2-78a6-490a-8fca-850ac54c32eb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4436 |
+
2024/Fast-DetectGPT_[[:space:]]Efficient[[:space:]]Zero-Shot[[:space:]]Detection[[:space:]]of[[:space:]]Machine-Generated[[:space:]]Text[[:space:]]via[[:space:]]Conditional[[:space:]]Probability[[:space:]]Curvature/6d124df9-3e86-4962-a559-c21b0938ac07_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4437 |
+
2024/Fast-ELECTRA[[:space:]]for[[:space:]]Efficient[[:space:]]Pre-training/8b1a7706-957f-4a09-911e-23de70115995_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4438 |
+
2024/Faster[[:space:]]Approximation[[:space:]]of[[:space:]]Probabilistic[[:space:]]and[[:space:]]Distributional[[:space:]]Values[[:space:]]via[[:space:]]Least[[:space:]]Squares/0af6fcb2-edfa-4b72-83b1-123f2780ee3d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4439 |
+
2024/Faster[[:space:]]Sampling[[:space:]]from[[:space:]]Log-Concave[[:space:]]Densities[[:space:]]over[[:space:]]Polytopes[[:space:]]via[[:space:]]Efficient[[:space:]]Linear[[:space:]]Solvers/dc6ead1c-60da-4611-9bf2-c666deb9eb00_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4440 |
+
2024/FasterViT_[[:space:]]Fast[[:space:]]Vision[[:space:]]Transformers[[:space:]]with[[:space:]]Hierarchical[[:space:]]Attention/ca35a9b2-29e2-4d6d-bf74-972f4566dc15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4441 |
+
2024/FeatUp_[[:space:]]A[[:space:]]Model-Agnostic[[:space:]]Framework[[:space:]]for[[:space:]]Features[[:space:]]at[[:space:]]Any[[:space:]]Resolution/4666e5ca-b061-46ad-8505-ed885bc12708_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4442 |
+
2024/Feature[[:space:]]Collapse/486e67a5-3e36-451f-94ee-aeaff82be55d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4443 |
+
2024/FedCDA_[[:space:]]Federated[[:space:]]Learning[[:space:]]with[[:space:]]Cross-rounds[[:space:]]Divergence-aware[[:space:]]Aggregation/f25ddb5a-6d9b-4102-869f-bf1dbac1df48_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4444 |
+
2024/FedCompass_[[:space:]]Efficient[[:space:]]Cross-Silo[[:space:]]Federated[[:space:]]Learning[[:space:]]on[[:space:]]Heterogeneous[[:space:]]Client[[:space:]]Devices[[:space:]]Using[[:space:]]a[[:space:]]Computing[[:space:]]Power-Aware[[:space:]]Scheduler/80ec5310-6ba0-480f-bf79-2769fc5e3d7e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4445 |
+
2024/FedDA_[[:space:]]Faster[[:space:]]Adaptive[[:space:]]Gradient[[:space:]]Methods[[:space:]]for[[:space:]]Federated[[:space:]]Constrained[[:space:]]Optimization/1938e6d6-33c1-49af-9a71-aa45dc8898d5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4446 |
+
2024/FedHyper_[[:space:]]A[[:space:]]Universal[[:space:]]and[[:space:]]Robust[[:space:]]Learning[[:space:]]Rate[[:space:]]Scheduler[[:space:]]for[[:space:]]Federated[[:space:]]Learning[[:space:]]with[[:space:]]Hypergradient[[:space:]]Descent/38ee281a-2041-4d86-bfed-bd8138ed6bfe_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4447 |
+
2024/FedImpro_[[:space:]]Measuring[[:space:]]and[[:space:]]Improving[[:space:]]Client[[:space:]]Update[[:space:]]in[[:space:]]Federated[[:space:]]Learning/b4670836-d791-442f-8905-dca28815edfa_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4448 |
+
2024/FedInverse_[[:space:]]Evaluating[[:space:]]Privacy[[:space:]]Leakage[[:space:]]in[[:space:]]Federated[[:space:]]Learning/e1abe32d-a25c-471e-85db-d383bb4e39c2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4449 |
+
2024/FedLoGe_[[:space:]]Joint[[:space:]]Local[[:space:]]and[[:space:]]Generic[[:space:]]Federated[[:space:]]Learning[[:space:]]under[[:space:]]Long-tailed[[:space:]]Data/5fa22c85-51b8-4a68-9283-262e81829a05_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4450 |
+
2024/FedP3_[[:space:]]Federated[[:space:]]Personalized[[:space:]]and[[:space:]]Privacy-friendly[[:space:]]Network[[:space:]]Pruning[[:space:]]under[[:space:]]Model[[:space:]]Heterogeneity/21505e33-99ac-48f8-b09c-5b778c3bf254_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4451 |
+
2024/FedTrans_[[:space:]]Client-Transparent[[:space:]]Utility[[:space:]]Estimation[[:space:]]for[[:space:]]Robust[[:space:]]Federated[[:space:]]Learning/41e8c6c2-0ae1-427a-84c9-1e53f972b97d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4452 |
+
2024/FedWon_[[:space:]]Triumphing[[:space:]]Multi-domain[[:space:]]Federated[[:space:]]Learning[[:space:]]Without[[:space:]]Normalization/f2677b9e-930e-434b-b788-3cb202eb8a21_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4453 |
+
2024/Federated[[:space:]]Causal[[:space:]]Discovery[[:space:]]from[[:space:]]Heterogeneous[[:space:]]Data/ccdd38fa-a592-4a75-b2b7-878bedc0a7c2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4454 |
+
2024/Federated[[:space:]]Orthogonal[[:space:]]Training_[[:space:]]Mitigating[[:space:]]Global[[:space:]]Catastrophic[[:space:]]Forgetting[[:space:]]in[[:space:]]Continual[[:space:]]Federated[[:space:]]Learning/95fe1dd8-2126-4e6e-997b-be62a4ad2a92_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4455 |
+
2024/Federated[[:space:]]Q-Learning_[[:space:]]Linear[[:space:]]Regret[[:space:]]Speedup[[:space:]]with[[:space:]]Low[[:space:]]Communication[[:space:]]Cost/fd7a080e-86c0-4fa1-8aca-9f63ac630af3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4456 |
+
2024/Federated[[:space:]]Recommendation[[:space:]]with[[:space:]]Additive[[:space:]]Personalization/bf1ad503-4955-4373-bba2-b54d9a28ac83_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4457 |
+
2024/Federated[[:space:]]Text-driven[[:space:]]Prompt[[:space:]]Generation[[:space:]]for[[:space:]]Vision-Language[[:space:]]Models/31d81fa6-8e7e-4565-8d61-4830434046fc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4458 |
+
2024/Federated[[:space:]]Wasserstein[[:space:]]Distance/8e878566-5a74-4d1f-bc45-b476c23d6c72_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 4459 |
+
2024/Few-Shot[[:space:]]Detection[[:space:]]of[[:space:]]Machine-Generated[[:space:]]Text[[:space:]]using[[:space:]]Style[[:space:]]Representations/3cc3187b-e137-41bd-9e1f-66bc110e3115_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evaluating Representation Learning on the Protein Structure Universe/a8baaf69-0ed2-4a3c-ac6a-f951c0fa09b4_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b090340a67eaf217a3bf504a77c56811608fe3612c318c1fbaa916df54d2426
|
| 3 |
+
size 2753247
|
2024/Evaluating Representation Learning on the Protein Structure Universe/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evaluating Representation Learning on the Protein Structure Universe/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d2b9e4e2617a70741a457f0c06ebf6eecb938cc541c41fc1f343e702fea9ca8
|
| 3 |
+
size 957257
|
2024/Evaluating Representation Learning on the Protein Structure Universe/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/4c7eb12f-c20c-4277-b9b9-073dc68778ca_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe004915480cab76965728ded231b334ec4184b240d52edc48a6f9fddaa183c9
|
| 3 |
+
size 6814876
|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/full.md
ADDED
|
@@ -0,0 +1,477 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EVENTRPG: EVENT DATA AUGMENTATION WITH RELEVANCE PROPAGATION GUIDANCE
|
| 2 |
+
|
| 3 |
+
Mingyuan Sun $^{1,2}$ , Donghao Zhang $^{3}$ , Zongyuan Ge $^{4}$ , Jiaxu Wang $^{1}$ , Jia Li $^{5}$ , Zheng Fang $^{2,*}$ & Renjing Xu $^{1,*}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>The Hong Kong University of Science and Technology (Guangzhou) <sup>2</sup>Northeastern University
|
| 6 |
+
<sup>3</sup>Seeing Machines <sup>4</sup>Monash University <sup>5</sup>Peking University
|
| 7 |
+
mingyuansun20@gmail.com, peter.zhang1@seeingmachines.com, zongyuan.ge@monash.edu, jwang457@connect.hkust-gz.edu.cn, j.gaga.lee@gmail.com, fangzheng@mail.neu.edu.cn, renjingxu@hkust-gz.edu.cn
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
Event camera, a novel bio-inspired vision sensor, has drawn a lot of attention for its low latency, low power consumption, and high dynamic range. Currently, overfitting remains a critical problem in event-based classification tasks for Spiking Neural Network (SNN) due to its relatively weak spatial representation capability. Data augmentation is a simple but efficient method to alleviate overfitting and improve the generalization ability of neural networks, and saliency-based augmentation methods are proven to be effective in the image processing field. However, there is no approach available for extracting saliency maps from SNNs. Therefore, for the first time, we present Spiking Layer-Time-wise Relevance Propagation rule (SLTRP) and Spiking Layer-wise Relevance Propagation rule (SLRP) in order for SNN to generate stable and accurate CAMs and saliency maps. Based on this, we propose EventRPG, which leverages relevance propagation on the spiking neural network for more efficient augmentation. Our proposed method has been evaluated on several SNN structures, achieving state-of-the-art performance in object recognition tasks including N-Caltech101, CIFAR10-DVS, with accuracies of $85.62\%$ and $85.55\%$ , as well as action recognition task SL-Animals with an accuracy of $91.59\%$ . Our code is available at https://github.com/myuansun/EventRPG.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
With the advent of event cameras, researchers have focused on applying the brain-inspired technique to achieve a variety of tasks, as the asynchronous nature of event cameras mimics the way the biological visual system works (Gallego et al., 2020). Event cameras record the change in brightness of each pixel, and once the change in brightness of a pixel exceeds a predetermined threshold, an event is triggered. The intrinsic properties of event cameras give them several advantages over RGB cameras, including low power consumption, high dynamic range, low latency, and high temporal resolution. These benefits highlight the potential of event cameras in challenging scenarios, such as low-light and high-speed conditions, which has led to some research emphasizing the use of event cameras for robotic sensing in challenging situations (Zuo et al., 2022; Chen et al., 2023). Spiking Neural Network (SNN) (Maass, 1997) is a type of neural network that is inspired by the way biological neurons communicate with each other. By integrating the biological neuronal dynamics into individual neurons, SNN becomes capable of representing intricate spatio-temporal information and dealing with asynchronous data naturally, typically event-based data.
|
| 16 |
+
|
| 17 |
+
In terms of classification tasks, a number of event-based datasets, such as N-MNIST, N-Caltech101 (Orchard et al., 2015), and CIFAR10-DVS (Li et al., 2017), have been used to evaluate the performance of artificial neural networks (ANNs) and SNNs. However, the issue of overfitting still poses a significant challenge for event-based datasets. Data augmentation is an efficient method for improving the generalization and performance of a model. Lots of methods have been proposed to augment event-based data, for example, transferring classic geometric augmentations from image
|
| 18 |
+
|
| 19 |
+
field to event-based field (Li et al., 2022), randomly dropping events (Gu et al., 2021), and mixing two event streams with a randomly sampled mask (Shen et al., 2023). Nevertheless, current mixing augmentation strategies in event-based field do not consider the size and location information of label-related objects, and thus may produce events with incorrect labels and disrupt the training process. To address this problem in image processing field, Uddin et al. (2020); Kim et al. (2020) mix the label-related objects together based on the saliency information obtained from neural networks. This paradigm achieves better results compared with conventional non-saliency augmentations. Kim & Panda (2021b) was the first to explore acquiring saliency information from SNNs. In this work, Spiking Activation Map (SAM) was presented to reveal the model's attention by weighted adding of the intermediate feature maps. Since the CAMs obtained from this method are not related to the network's predictions, their precision regarding the shape and position of label-related objects is still not satisfactory.
|
| 20 |
+
|
| 21 |
+
In this paper, we present two novel methods extended from layer-wise relevance propagation (LRP) (Bach et al., 2015) to visualize the label-related saliency information of SNNs, each offering distinct advantages in terms of temporal precision and computational time. Moreover, guided by this saliency information, we develop two data augmentation approaches targeted at event-based data, demonstrating significant improvements in the performance and generalization capability of SNNs across multiple classification tasks.
|
| 22 |
+
|
| 23 |
+
Our contributions are summarized as follows:
|
| 24 |
+
|
| 25 |
+
- We propose Spiking Layer-Time-wise Relevance Propagation (SLTRP) and Spiking Layerwise Relevance Propagation (SLRP) to accurately reveal the saliency information of SNNs. The former reveals information across time, while the latter is less time-consuming.
|
| 26 |
+
- We present RPGDrop and RPGMix. By dropping and mixing events with the guidance of relevance propagation obtained from SLRP or STLRP, the augmented samples exhibit increased diversity and tight correlation with the labels. Combined with several geometric data augmentations, we formulate our data augmentation strategy namely EventRPG.
|
| 27 |
+
- We evaluate our proposed saliency visualizing method and data augmentation method using various SNNs on event-based object and action recognition datasets. Experiments demonstrate that our SLRP and SLTRP can generate high quality CAMs and saliency maps with sub-optimal computing time. EventRPG achieves state-of-the-art performance on both object recognition and action recognition tasks with limited time consumption.
|
| 28 |
+
|
| 29 |
+
# 2 PRELIMINARY
|
| 30 |
+
|
| 31 |
+
Layer-wise Relevance propagation (LRP) was first introduced in (Bach et al., 2015) as a visualization tool for generating saliency maps that show the contribution of individual pixels in the input data to the model prediction or a specific class, facilitating the interpretability of neural networks. According to the LRP rule, we assign a value to each neuron to represent the neuron's contribution to the prediction or target class, called Relevance Score. The idea of LRP is to find a propagation rule satisfying the following definition.
|
| 32 |
+
|
| 33 |
+
Definition 1 (Conservation Property). On a neural network with $L$ layers, the relevance score of each layer satisfies
|
| 34 |
+
|
| 35 |
+
$$
|
| 36 |
+
c = \sum_ {i} R _ {i} ^ {(l)}, \quad \forall l \in [ 0, L ], \tag {1}
|
| 37 |
+
$$
|
| 38 |
+
|
| 39 |
+
where $c$ is a constant value and $R_{i}^{(l)}$ is the relevance score of $i^{th}$ neuron on layer $l$ . $R^{(0)}$ is the relevance score before input layer.
|
| 40 |
+
|
| 41 |
+
We calculate the relevance score of $i^{th}$ input neuron on layer $l$ $R_{i}^{(l - 1)}$ by the sum of all relevance scores propagated from all the connections in this layer:
|
| 42 |
+
|
| 43 |
+
$$
|
| 44 |
+
R _ {i} ^ {(l - 1)} = \sum_ {j} R _ {i \leftarrow j} ^ {(l - 1, l)}. \tag {2}
|
| 45 |
+
$$
|
| 46 |
+
|
| 47 |
+
Utilizing the $\alpha \beta$ -rule (Montavon et al., 2017) and abandoning the bias term $b$ , we obtain the relevance score that should be propagated from the $j^{th}$ neuron in layer $l$ to the $i^{th}$ neuron in layer $l-1$ :
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
R _ {i \leftarrow j} ^ {(l - 1, l)} = R _ {j} ^ {(l)} \cdot \left(\alpha \cdot \frac {z _ {i j} ^ {+}}{\sum_ {i} z _ {i j} ^ {+}} + \beta \cdot \frac {z _ {i j} ^ {-}}{\sum_ {i} z _ {i j} ^ {-}}\right), \tag {3}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+

|
| 54 |
+
(a) Layer-wise Relevance Propagation
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
(b) Spiking Layer-Time-wise Relevance Propagation
|
| 58 |
+
Figure 1: Forward propagation flow and relevance propagation flow of ANNs (a) and SNNs (b, c).
|
| 59 |
+
|
| 60 |
+

|
| 61 |
+
(c) Spiking Layer-wise Relevance Propagation
|
| 62 |
+
|
| 63 |
+
where $\alpha +\beta = 1$ . $z_{ij}^{+} = w_{ij}^{+}\cdot x_{i}^{+} + w_{ij}^{-}\cdot x_{i}^{-}$ and $z_{ij}^{-} = w_{ij}^{+}\cdot x_{i}^{-} + w_{ij}^{-}\cdot x_{i}^{+}$ are respectively the positive and negative contribution of the $i^{th}$ neuron in layer $l - 1$ to the $j^{th}$ neuron in layer $l$ . This relevance propagation rule satisfies definition 1, and the proof can be seen in appendix D.1.
|
| 64 |
+
|
| 65 |
+
# 3 SPIKING RELEVANCE PROPAGATION RULE
|
| 66 |
+
|
| 67 |
+
In an SNN, information is represented by the timing and frequency of spikes. Neurons in an SNN generate spikes when their membrane voltage reaches a certain threshold. These spikes propagate through the network, influencing the activity of other neurons layer by layer. Two popular and fundamental models used to represent basic spiking neurons are the Leaky Integrate-and-Fire (LIF) neuron model and the Integrate-and-Fire (IF) neuron model:
|
| 68 |
+
|
| 69 |
+
$$
|
| 70 |
+
f _ {L I F} (V, I) = e ^ {- \frac {\Delta t}{\tau}} V [ t - 1 ] + \left(1 - e ^ {- \frac {\Delta t}{\tau}}\right) I [ t ], \tag {4}
|
| 71 |
+
$$
|
| 72 |
+
|
| 73 |
+
$$
|
| 74 |
+
f _ {I F} (V, I) = V [ t - 1 ] + I [ t ], \tag {5}
|
| 75 |
+
$$
|
| 76 |
+
|
| 77 |
+
where $\tau$ is the attenuation factor and $\Delta t$ is the interval between time steps satisfying $\Delta t < \tau$ . Membrane voltage $V$ can be interpreted as the information reserved by a neuron from the previous time step $t - 1$ . $\bar{I}[t]$ indicates the input of the neuron at the current time step.
|
| 78 |
+
|
| 79 |
+
In practice, researchers would replace the activation layer in an ANN with spiking layers represented by eq. (4) or eq. (5) to construct an SNN. As shown in fig. 1a, an ANN consists of linear layers and activation layers and passes information layer by layer. These two layer types do not include variables related to time and as such we propagate the relevance scores through them layer by layer.
|
| 80 |
+
|
| 81 |
+
# 3.1 RELEVANCE PROPAGATION FOR LINEAR LAYERS IN SNNS
|
| 82 |
+
|
| 83 |
+
Information in SNNs is propagated through time in spiking layers, while the linear layers do not transmit information across different time steps. Any linear layer's output $y[t]$ at time step $t$ only correlates to its input $x[t]$ at time step $t$ , and we conduct relevance propagation using eq. (3) on this layer separately for each time step. Specifically, for linear layer $l$ , we extend the eq. (3) with suffix "[t]" representing the time step $t$ , and we have
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
R _ {i} ^ {(l - 1)} [ t ] = \sum_ {j} R _ {i \leftarrow j} ^ {(l - 1, l)} [ t ], \tag {6}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
R _ {i \leftarrow j} ^ {(l - 1, l)} [ t ] = R _ {j} ^ {(l)} [ t ] \cdot \left(\alpha \cdot \frac {z _ {i j} ^ {+} [ t ]}{\sum_ {i} z _ {i j} ^ {+} [ t ]} + \beta \cdot \frac {z _ {i j} ^ {-} [ t ]}{\sum_ {i} z _ {i j} ^ {-} [ t ]}\right), \tag {7}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
in which $z_{ij}^{+}[t] = w_{ij}^{+} \cdot x_{i}^{+}[t] + w_{ij}^{-} \cdot x_{i}^{-}[t]$ and $z_{ij}^{-}[t] = w_{ij}^{+} \cdot x_{i}^{-}[t] + w_{ij}^{-} \cdot x_{i}^{+}[t]$ . Next, we focus on the derivation of the relevance propagation rule on spiking layers.
|
| 94 |
+
|
| 95 |
+
# 3.2 SPIKING LAYER-TIME-WISE RELEVANCE PROPAGATION
|
| 96 |
+
|
| 97 |
+
From eq. (4) we know that in the forward propagation, the output of a LIF neuron at time step $t$ ( $t > 0$ ) depends on this layer's input current $I[t]$ at the current time step and the membrane voltage $V[t - 1]$ from the previous time step. Therefore, we should propagate the relevance score to the neuron's internal voltage at the previous time step and to the input current at the current time step, as shown in fig. 1b. Assume there are overall T time steps. Similar to $\alpha \beta$ -rule, we propagate
|
| 98 |
+
|
| 99 |
+
the relevance score based on its positive contribution and negative contribution at each time step $t \in [1, T]$ . Consider a neuron in spiking layer $l$ at time step $t$ . We decompose and represent it in a general manner:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
f (V, I) = c \cdot V [ t - 1 ] + d \cdot I [ t ] \tag {8}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where c and d are coefficients depending on the neuron_type:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
c = \left\{ \begin{array}{l l} e ^ {- \frac {\Delta t}{\tau}} & \text {L I F N e u r o n ,} \\ 1 & \text {I F N e u r o n ,} \end{array} \right. \quad d = \left\{ \begin{array}{l l} 1 - e ^ {- \frac {\Delta t}{\tau}} & \text {L I F N e u r o n ,} \\ 1 & \text {I F N e u r o n .} \end{array} \right.
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
Based on eq. (8), at time step $t$ , we define the proportion of relevance score that should be propagated to the previous time step as
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\gamma [ t ] = \alpha \cdot \frac {c \cdot V ^ {+} [ t - 1 ]}{c \cdot V ^ {+} [ t - 1 ] + d \cdot I ^ {+} [ t ]} + \beta \cdot \frac {c \cdot V ^ {-} [ t - 1 ]}{c \cdot V ^ {-} [ t - 1 ] + d \cdot I ^ {-} [ t ]}, \tag {9}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
where superscripts $^+$ and $-$ denote the positive and negative values, respectively. For each neuron in spiking layer $l$ , By initializing the relevance score at the final time step as $R^{(l - 1)}[T] = R^{(l)}[T]$ and subsequently updating relevance scores iteratively as time step $t$ from $T$ to 1 using
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
R ^ {(l - 1)} [ t - 1 ] \leftarrow \gamma [ t ] \cdot R ^ {(l - 1)} [ t ] + R ^ {(l)} [ t - 1 ], \tag {10}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
$$
|
| 124 |
+
R ^ {(l - 1)} [ t ] \leftarrow (1 - \gamma [ t ]) \cdot R ^ {(l - 1)} [ t ], \tag {11}
|
| 125 |
+
$$
|
| 126 |
+
|
| 127 |
+
we propagate the relevance score of every neuron in spiking layers to all time steps. With iteration formulas (10) and (11), we could derive the relevance score at each time step
|
| 128 |
+
|
| 129 |
+
$$
|
| 130 |
+
R ^ {(l - 1)} [ t ] = (1 - \gamma [ t ]) \left(\sum_ {i = t + 1} ^ {T} R ^ {(l)} [ i ] \prod_ {j = t + 1} ^ {i} \gamma [ j ] + R ^ {(l)} [ t ]\right). \tag {12}
|
| 131 |
+
$$
|
| 132 |
+
|
| 133 |
+
Proposition 1. The sum of relevance scores propagated after spiking layer $l$ from time step 1 to $k(k < T)$ is
|
| 134 |
+
|
| 135 |
+
$$
|
| 136 |
+
\sum_ {t = 1} ^ {k} R ^ {(l - 1)} [ t ] = \sum_ {t = 1} ^ {k} R ^ {(l)} [ t ] + \sum_ {i = k + 1} ^ {T} R ^ {(l)} [ i ] \prod_ {j = k + 1} ^ {i} \gamma [ j ]. \tag {13}
|
| 137 |
+
$$
|
| 138 |
+
|
| 139 |
+
The proof is provided in appendix D.2. With proposition 1, we have
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\begin{array}{l} \sum_ {t = 1} ^ {T} R ^ {(l - 1)} [ t ] = \sum_ {t = 1} ^ {T - 1} R ^ {(l - 1)} [ t ] + R ^ {(l - 1)} [ T ] = \sum_ {t = 1} ^ {T - 1} R ^ {(l)} [ t ] + \gamma [ T ] R ^ {(l)} [ T ] + (1 - \gamma [ T ]) R ^ {(l)} [ T ] \\ = \sum_ {t = 1} ^ {T - 1} R ^ {(l)} [ t ] + R ^ {(l)} [ T ] = \sum_ {t = 1} ^ {T} R ^ {(l)} [ t ]. \tag {14} \\ \end{array}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
This is a stronger Conservation Property since the relevance score stays unchanged for every neuron in a spiking layer. This indicates that leveraging formulas (10) and (11), we are able to propagate relevance scores through any spiking layer while satisfying the Conservation Property. Combining with relevance propagation rules introduced in section 3.1, we could propagate relevance scores to any layer in an SNN, thereby revealing the saliency information across time, namely Spiking Layer-Time-wise Relevance Propagation (SLTRP).
|
| 146 |
+
|
| 147 |
+
# 3.3 SPIKING LAYER-WISE RELEVANCE PROPAGATION
|
| 148 |
+
|
| 149 |
+
SLTRP could reveal the saliency information at any time step, and would thus cost more time to conduct the whole relevance propagation process compared with ANNs. Under some circumstances, e.g., on datasets transformed from static images where coordinates of events tend to be fixed w.r.t. the time, we don't need to obtain the saliency score of some specific time step and only require the saliency information stacked from all time steps $R^{(l)} \equiv \frac{1}{T} \sum_{t}^{T} R^{(l)}[t]$ . For any spiking layer $l$ , from eq. (14) we have $R^{(l-1)} = R^{(l)}$ .
|
| 150 |
+
|
| 151 |
+
In terms of linear layers, we sum the positive and negative contribution values of the $i^{th}$ neuron to $j^{th}$ neuron through time dimension as
|
| 152 |
+
|
| 153 |
+
$$
|
| 154 |
+
\begin{array}{l} z _ {i j} ^ {+} \equiv \frac {1}{T} \sum_ {t} z _ {i j} ^ {+} [ t ] = \frac {1}{T} \sum_ {t} (w _ {i j} ^ {+} \cdot x _ {i} ^ {+} [ t ] + w _ {i j} ^ {-} \cdot x _ {i} ^ {-} [ t ]) = \frac {1}{T} (w _ {i j} ^ {+} \cdot \sum_ {t} x _ {i} ^ {+} [ t ] + w _ {i j} ^ {-} \cdot \sum_ {t} x _ {i} ^ {-} [ t ]), \\ z _ {i j} ^ {-} \equiv \frac {1}{T} \sum_ {t} z _ {i j} ^ {-} [ t ] = \frac {1}{T} \sum_ {t} (w _ {i j} ^ {+} \cdot x _ {i} ^ {-} [ t ] + w _ {i j} ^ {-} \cdot x _ {i} ^ {+} [ t ]) = \frac {1}{T} (w _ {i j} ^ {+} \cdot \sum_ {t} x _ {i} ^ {-} [ t ] + w _ {i j} ^ {-} \cdot \sum_ {t} x _ {i} ^ {+} [ t ]). \\ \end{array}
|
| 155 |
+
$$
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
(a)
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
(b)
|
| 162 |
+
Figure 2: Illustration of Relevance Propagation Guided Event Mix and Event Drop. (a) RPGDrop. Where the saliency map offers a higher value, events are more likely to be dropped. (b) RPGMix.
|
| 163 |
+
|
| 164 |
+
Then we propagate the relevance scores of linear layer using eq. (2) and eq. (3) with different definitions of $R^{(l-1)}$ , $R^{(l)}$ , $z_{ij}^{+}$ and $z_{ij}^{-}$ . This enables a spiking relevance propagation process without consideration of the time dimension, saving time costs and being more practical for datasets transformed from static images, namely Spiking Layer-wise Relevance Propagation (SLRP) (see fig. 1c).
|
| 165 |
+
|
| 166 |
+
# 4 RELEVANCE PROPAGATION GUIDED EVENT DATA AUGMENTATION
|
| 167 |
+
|
| 168 |
+
# 4.1 SALIENCY MAP AND CLASS ACTIVATION MAP
|
| 169 |
+
|
| 170 |
+
In an SNN, we first leverage Contrastive Layer-wise Relevance Propagation (CLRP) (Gu et al., 2018) to initialize the relevance scores of the output layer for each time step. Then we propagate the relevance scores backward using SLRP or SLTRP depending on the dataset. Relevance scores are propagated throughout all layers to create saliency maps, while class activation maps (CAMs) can be formed in two ways. One method involves summing the relevance scores from a specific intermediate layer across the channel dimension, resulting in SLRP-CAM and SLTRP-CAM. Alternatively, CAMs can be generated by calculating a weighted sum between relevance scores and feature maps, a method referred to as SLRP-RelCAM and SLTRP-RelCAM (Lee et al., 2021).
|
| 171 |
+
|
| 172 |
+
# 4.2 RELEVANCE PROPAGATION GUIDED EVENT DROP
|
| 173 |
+
|
| 174 |
+
Gu et al. (2021) has proven randomly dropping events to be an effective augmentation strategy. Furthermore, we expect to drop events more frequently in regions with label-related objects, motivated by the fact that disturbing regions with no label-related information (namely background) would have a negligible impact on the classifier's prediction. The label-related information can be provided by CAM and saliency map, where higher values imply higher model attention and label relevance. Since saliency map accurately reveals the relevance score of each pixel to the target in the input data, we leverage saliency map to guide dropping, dually illustrated in fig. 2a. The higher the value of a pixel, the higher the probability that we will drop events on that pixel. $\theta$ is the parameter controlling the magnitude of augmentation.
|
| 175 |
+
|
| 176 |
+
# 4.3 RELEVANCE PROPAGATION GUIDED EVENT MIX
|
| 177 |
+
|
| 178 |
+
Event-based data, in contrast to image-based data, does not include color details, with the most crucial aspect being the texture information it contains. The overlapping of label-related objects will impair the texture details of these objects, which in turn further degrades the quality of features extracted in SNNs. Building upon this motivation, we propose Relevance Propagation Guided Event Mix (RPGMix). The whole mixing strategy is illustrated in fig. 2b. For two event-based data candidates, we utilize relevance propagation to localize the label-related regions and obtain two bounding boxes. To mix two objects with clear texture features, we randomly select two positions ensuring minimal overlap of their bounding boxes. This involves initially positioning one box at a corner to maximize the nonoverlapping area for the other box's placement, then selecting positions for both boxes in order, maintaining minimal overlap and maximizing sampling options. Finally, the two event streams are moved to the sampled positions. Although this linear translation part prevents the overlapping of label-related objects, the background of one object would still overlap with the other object. Moreover, in one single time step, the representation ability of the spiking neurons
|
| 179 |
+
|
| 180 |
+
(which only output binary information) is much worse than that of the activation layer (usually ReLU) of ANNs, making them less capable of spatial resolution and more likely to fall into local optima. Therefore, to promise the presence of only events from a single event stream candidate per pixel, avoiding regions with mixed information from interfering with the SNN, we adopt a CutMix strategy to mask the two event streams based on the bounding box of the second event stream, as demonstrated in the left part in fig. 2b. Kim et al. (2020) takes the sum of each sample's mask as the ratio of their corresponding labels. This ensures that the proportion of labels in the mixed label matches the proportion of pixels belonging to each sample. In our approach, we further aim to align the proportion of labels with the proportion of label-related pixels, which can be estimated using the bounding boxes. As a result, the labels of the two event streams are mixed as
|
| 181 |
+
|
| 182 |
+
$$
|
| 183 |
+
L _ {m i x} = \frac {L _ {1} \left(w _ {1} h _ {1} - S _ {\text {o v e r l a p}}\right) + L _ {2} w _ {2} h _ {2}}{w _ {1} h _ {1} + w _ {2} h _ {2} - S _ {\text {o v e r l a p}}}, \tag {15}
|
| 184 |
+
$$
|
| 185 |
+
|
| 186 |
+
where $w_{i}$ and $h_i$ denote the width and height of the bounding box in the event stream $i$ . $L_{1}$ and $L_{2}$ are the one-hot labels of the two event streams and $S_{\text{overlap}}$ is the area of the overlapping region of the two bounding boxes.
|
| 187 |
+
|
| 188 |
+
# 4.4 EVENTRPG
|
| 189 |
+
|
| 190 |
+
Combined with a few geometric data augmentation methods in NDA (Li et al., 2022), we formulate our data augmentation strategy namely EventRPG as shown in fig. 3. Specifically, for a batch of input event streams, each of the event streams would be augmented with randomly sampled policy and magnitude. They then have a probability of 0.5 to be augmented by RPGMix.
|
| 191 |
+
|
| 192 |
+

|
| 193 |
+
Figure 3: Augmentation process of EventRPG.
|
| 194 |
+
|
| 195 |
+
# 5 EXPERIMENTS
|
| 196 |
+
|
| 197 |
+
# 5.1 EFFECTIVENESS OF SLRP AND SLTRP
|
| 198 |
+
|
| 199 |
+
In this subsection, we evaluate the effectiveness of our approach for generating CAMs and saliency maps. Current event-based datasets for classification can be divided into two tasks: object recognition task and action recognition task. Generally, the former mainly involves event streams generated from jittering of static images, while the latter mainly involves event streams recorded in real environments, containing more dynamic information. We perform experiments on both types of datasets to showcase the effectiveness of our approach. We visualize the feature before the last fully connected layer as CAM.
|
| 200 |
+
|
| 201 |
+
<table><tr><td rowspan="3">Method</td><td colspan="6">Object Recognition</td><td colspan="4">Action Recognition</td></tr><tr><td colspan="2">N-Caltech101</td><td colspan="2">CIFAR10-DVS</td><td colspan="2">N-Cars</td><td colspan="2">DVSGesture</td><td colspan="2">SL-Animals</td></tr><tr><td>A.I.↑</td><td>A.D.↓</td><td>A.I.↑</td><td>A.D.↓</td><td>A.I.↑</td><td>A.D.↓</td><td>A.I.↑</td><td>A.D.↓</td><td>A.I.↑</td><td>A.D.↓</td></tr><tr><td>SAM (Kim & Panda, 2021b)</td><td>0.86</td><td>22.33</td><td>1.23</td><td>46.83</td><td>5.24</td><td>5.89</td><td>8.27</td><td>10.83</td><td>20.60</td><td>8.23</td></tr><tr><td>Grad-CAM (Selvaraju et al., 2017)</td><td>12.03</td><td>41.71</td><td>8.31</td><td>22.15</td><td>21.77</td><td>17.74</td><td>0.41</td><td>67.09</td><td>0.80</td><td>81.44</td></tr><tr><td>Grad-CAM++ (Chattopadhyay et al., 2018)</td><td>24.82</td><td>10.32</td><td>6.23</td><td>26.33</td><td>26.04</td><td>5.41</td><td>7.99</td><td>10.41</td><td>11.78</td><td>22.21</td></tr><tr><td>SLRP-RelCAM (Lee et al., 2021)</td><td>17.51</td><td>10.44</td><td>7.60</td><td>23.41</td><td>22.05</td><td>19.00</td><td>13.11</td><td>6.41</td><td>26.49</td><td>10.67</td></tr><tr><td>SLTRP-RelCAM (Lee et al., 2021)</td><td>17.54</td><td>10.44</td><td>7.60</td><td>23.41</td><td>22.05</td><td>19.00</td><td>13.05</td><td>6.40</td><td>26.49</td><td>10.67</td></tr><tr><td>SLRP-CAM</td><td>34.24</td><td>5.75</td><td>8.41</td><td>23.50</td><td>15.72</td><td>23.80</td><td>7.79</td><td>29.99</td><td>10.88</td><td>40.95</td></tr><tr><td>SLTRP-CAM</td><td>34.24</td><td>5.75</td><td>8.41</td><td>23.50</td><td>15.72</td><td>23.80</td><td>7.79</td><td>30.02</td><td>10.88</td><td>40.95</td></tr><tr><td>SLRP-Saliency Map</td><td>34.12</td><td>4.18</td><td>9.44</td><td>19.99</td><td>22.98</td><td>6.77</td><td>22.20</td><td>13.86</td><td>22.30</td><td>20.57</td></tr><tr><td>SLTRP-Saliency Map</td><td>34.17</td><td>4.19</td><td>9.51</td><td>19.98</td><td>22.84</td><td>6.75</td><td>21.17</td><td>13.95</td><td>22.30</td><td>20.79</td></tr></table>
|
| 202 |
+
|
| 203 |
+
Table 1: Comparison of A.I. and A.D. on event-based object recognition and action recognition datasets. We highlight the best results in bold and the second best results with underlining.
|
| 204 |
+
|
| 205 |
+
# 5.1.1 OBJECTIVE FAITHFULNESS
|
| 206 |
+
|
| 207 |
+
We adopt two widely used metrics, Average Drop (A.D.) and Average Increase (A.I.), to measure the objective faithfulness of our method compared with other typical visualization tools. These two metrics explain how well an attention map explains a model's attention by measuring the average change in the model's output when the attention map is applied as a mask to the input. The higher the A.I. and the lower the A.D., the better the attention map explains the model's attention. We
|
| 208 |
+
|
| 209 |
+
compare our method with Grad-CAM (Selvaraju et al., 2017), Grad-CAM++ (Chattopadhyay et al., 2018), and SAM (Kim & Panda, 2021b) on both object recognition datasets and action recognition datasets.
|
| 210 |
+
|
| 211 |
+
On object recognition task, our method achieves the best performance in terms of A.I. and A.D. on large datasets including N-Caltech101 and CIFAR10DVS, demonstrating the effectiveness of our method in generating CAMs and saliency maps. On the N-Cars dataset, Grad-CAM++ outperforms our method. This disparity may be due to N-Cars being a binary classification task that solely focuses on detecting the presence of a car in the event stream, in contrast to other datasets requiring multi-class object localization.
|
| 212 |
+
|
| 213 |
+
In terms of action recognition task, methods with spiking relevance propagation outperform other methods significantly, with an A.I. metric almost thrice as good as the best method without spiking relevance propagation — Grad-CAM++, in the DVSGesture dataset. In the SL-Animals dataset, RelCAM achieves the best results in terms of A.I. and also has a low A.D. value. Note that RelCAM is also obtained based on the relevance scores from SLRP and SLTRP. Therefore, its good results also helps to demonstrate the effectiveness of our spiking relevance propagation rules.
|
| 214 |
+
|
| 215 |
+

|
| 216 |
+
|
| 217 |
+

|
| 218 |
+
(a)
|
| 219 |
+
(c)
|
| 220 |
+
Figure 4: CAM and saliency map by different methods on (a) N-Caltech101 and (b) CIFAR10-DVS. (c) Saliency maps generated from SLTRP on DVS-Gesture and SL-Animals.
|
| 221 |
+
|
| 222 |
+
# 5.1.2 EVALUATION OF SELECTIVITY
|
| 223 |
+
|
| 224 |
+
We visualized the saliency map and CAM results of ours and other methods from Spiking-VGG11 and SEW Resnet18. As shown in fig. 4a, our method is more selective than other methods, with a higher value on the label-related objects and a lower value on the background. In contrast, Grad-CAM and SAM are more likely to be affected by the background, and Grad-CAM++ failed to locate the "dragonfly" on the top row, even though there are no other label-unrelated events in this sample. On CIFAR10-DVS, SLRP-CAM and SLRP-RelCAM successfully localize the dog's head, whereas the attention of the other methods drifted to other regions.
|
| 225 |
+
|
| 226 |
+
The saliency maps generated from SLTRP are able to track the exact moving object in the dataset (see fig. 4c). In the demonstration of SL-Animals dataset, the saliency map first focuses on the hand part to recognize the gesture. In the later time steps, it transfers its attention to the arm to capture the moving information. This proves its capability of temporal saliency information capturing, also yielding high selectivity.
|
| 227 |
+
|
| 228 |
+
<table><tr><td>Model</td><td>Resolution</td><td>Grad-CAM</td><td>Grad-CAM++</td><td>SLRP-RelCAM</td><td>SLTRP-RelCAM</td><td>SAM</td><td>SLRP-CAM</td><td>SLRP-Saliency Map</td><td>SLTRP-CAM</td><td>SLTRP-Saliency Map</td></tr><tr><td rowspan="2">Spiking VGG-11</td><td>(48, 48)</td><td>0.0776</td><td>0.0884</td><td>0.0225</td><td>0.0233</td><td>0.0267</td><td>0.0246</td><td>0.0645</td><td>0.0279</td><td>0.1157</td></tr><tr><td>(128, 128)</td><td>0.0842</td><td>0.0996</td><td>0.0335</td><td>0.0347</td><td>0.0303</td><td>0.0323</td><td>0.0716</td><td>0.0345</td><td>0.1886</td></tr><tr><td>SEW Resnet18</td><td>(128, 128)</td><td>0.2629</td><td>0.2846</td><td>0.0902</td><td>0.1072</td><td>0.0909</td><td>0.0869</td><td>0.1960</td><td>0.0785</td><td>0.2881</td></tr></table>
|
| 229 |
+
|
| 230 |
+
Table 2: Average time cost (s) of generating CAM and saliency map on N-Caltech101 (SpikingVGG11) and DVSGesture (SEW Resnet18). Results within the quickest tier are highlighted in bold.
|
| 231 |
+
|
| 232 |
+
# 5.1.3 COMPUTATION TIME
|
| 233 |
+
|
| 234 |
+
As shown in table 2, SLRP-CAM, SLTRP-CAM are on the same level as SLTRP-RelCAM, SLRP-RelCAM, and SAM, all among the fastest methods. SLRP-Saliency Map and SLTRP-Saliency Map are slower than other methods, while still being competitive on SEW Resnet18 compared with Grad-CAM and Grad-CAM++. The time cost of SLTRP-CAM does not increase a lot compared to SLRP-CAM, since it only requires the relevance computation of the last fully connected layer. In contrast, the time cost of SLTRP-Saliency Map is much higher than SLRP-Saliency Map, since it requires the relevance computation of all layers.
|
| 235 |
+
|
| 236 |
+
# 5.2 RESULTS OF EVENTRPG
|
| 237 |
+
|
| 238 |
+
<table><tr><td>Dataset</td><td>Data Augmentation</td><td>Training Method</td><td>Neural Network</td><td>Neuron</td><td>Timesteps</td><td>Resolution</td><td>Accuracy</td></tr><tr><td rowspan="8">N-Catech101</td><td>Flip</td><td>SALT (Kim & Panda, 2021a)</td><td>Spike-VGG16</td><td>LIF</td><td>20</td><td>(80,80)</td><td>55.00</td></tr><tr><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>78.20</td></tr><tr><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(128,128)</td><td>83.70</td></tr><tr><td>Eventmix (Shen et al., 2023)</td><td>STBP</td><td>Pre-Act Resnet18</td><td>PLIF</td><td>10</td><td>(48,48)</td><td>79.47</td></tr><tr><td>Identity</td><td></td><td></td><td></td><td></td><td></td><td>75.70</td></tr><tr><td>EventDrop (Gu et al., 2021)</td><td>TET (Deng et al., 2022)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(128,128)</td><td>74.04</td></tr><tr><td>EventRPG (CAM)</td><td></td><td></td><td></td><td></td><td></td><td>85.00</td></tr><tr><td>EventRPG (Saliency Map)</td><td></td><td></td><td></td><td></td><td></td><td>85.62</td></tr><tr><td rowspan="12">CIFAR10-DVS</td><td>Drop by time</td><td>STBP</td><td>SEW Wide-7B-Net</td><td>PLIF</td><td>16</td><td>(128,128)</td><td>74.40</td></tr><tr><td>Flip</td><td>SALT (Kim & Panda, 2021a)</td><td>Spike-VGG16</td><td>LIF</td><td>20</td><td>(64,64)</td><td>67.10</td></tr><tr><td>Random Crop</td><td>DSR (Meng et al., 2022)</td><td>Spike-VGG11</td><td>IF</td><td>20</td><td>(48,48)</td><td>75.03 ± 0.39</td></tr><tr><td>Random Crop</td><td>DSR (Meng et al., 2022)</td><td>Spike-VGG11</td><td>LIF</td><td>20</td><td>(48,48)</td><td>77.27±0.24</td></tr><tr><td>FlipTranslation</td><td>TET (Deng et al., 2022)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>83.17±0.15</td></tr><tr><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>79.60</td></tr><tr><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(128,128)</td><td>81.70</td></tr><tr><td>Eventmix (Shen et al., 2023)</td><td>STBP</td><td>Pre-Act Resnet18</td><td>PLIF</td><td>10</td><td>(48,48)</td><td>81.45</td></tr><tr><td>Identity</td><td></td><td></td><td></td><td></td><td></td><td>78.85</td></tr><tr><td>EventDrop (Gu et al., 2021)</td><td>TET (Deng et al., 2022)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>77.73</td></tr><tr><td>EventRPG (CAM)</td><td></td><td></td><td></td><td></td><td></td><td>85.55</td></tr><tr><td>EventRPG (Saliency Map)</td><td></td><td></td><td></td><td></td><td></td><td>84.96</td></tr><tr><td rowspan="7">N-Cars</td><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>90.10</td></tr><tr><td>NDA (Li et al., 2022)</td><td>STBP-tdBN (Zheng et al., 2021)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(128,128)</td><td>91.90</td></tr><tr><td>Eventmix (Shen et al., 2023)</td><td>STBP</td><td>Pre-Act Resnet18</td><td>PLIF</td><td>10</td><td>(48,48)</td><td>96.29</td></tr><tr><td>Identity</td><td></td><td></td><td></td><td></td><td></td><td>94.92</td></tr><tr><td>EventDrop (Gu et al., 2021)</td><td>TET (Deng et al., 2022)</td><td>Spike-VGG11</td><td>LIF</td><td>10</td><td>(48,48)</td><td>95.46</td></tr><tr><td>EventRPG (CAM)</td><td></td><td></td><td></td><td></td><td></td><td>95.76</td></tr><tr><td>EventRPG (Saliency Map)</td><td></td><td></td><td></td><td></td><td></td><td>96.00</td></tr></table>
|
| 239 |
+
|
| 240 |
+
Table 3: Accuracy of various data augmentation methods on event-based object recognition datasets. All of the datasets used are created using event cameras. Specifically, N-Caltech101 and CIFAR10DVS are derived from static images, while N-Cars is recorded in real-world environments.
|
| 241 |
+
|
| 242 |
+
In this section, we evaluate our proposed EventRPG with other augmentation methods including EventDrop (Gu et al., 2021), NDA (Li et al., 2022), and EventMix (Shen et al., 2023) across several object recognition and action recognition datasets. They could illustrate the performance of our methods in terms of static objects and moving objects, respectively. The datasets used and training settings are introduced in appendix C in details. Since SLRTP and SLRP yield nearly identical results for object recognition tasks, we only leverage SLRP in object recognition experiments since it costs fewer time. Eventdrop (Gu et al., 2021) did not conduct experiments on SNNs, so we reproduce it using its public code and conduct experiments under the same training setting of ours. We report the best accuracy for each experiment using same random seed.
|
| 243 |
+
|
| 244 |
+
# 5.2.1 OBJECT RECOGNITION TASKS
|
| 245 |
+
|
| 246 |
+
From table 3 we see that EventRPG achieves state-of-the-art performance on N-Caltech101 and CIFAR10-DVS datasets, bringing $9.92\%$ and $6.7\%$ improvements compared with identity (no augmentation), respectively. On N-Cars, EventRPG achieves the second-best performance, only $0.29\%$ lower than EventMix. This might be attributed to the fact that N-Cars is a binary classification dataset, which only contains label "car" and "background". Most samples belonging to "background" do not have a specific label-related object to locate, making it difficult for our method to generate saliency map and CAM with high quality, thus decreasing the performance.
|
| 247 |
+
|
| 248 |
+
# 5.2.2 ACTION RECOGNITION TASKS
|
| 249 |
+
|
| 250 |
+
We implement EventRPG on SEW Resnet18 for action recognition tasks. On DVSGesture dataset, our method achieves best results compared with other reproduced augmentation methods under the same training settings, though slightly lower than EventMix on Pre-Act Resnet18. On SL-Animals dataset, our method achieves state-of-the-art performance among all data augmentation approaches
|
| 251 |
+
|
| 252 |
+
<table><tr><td rowspan="2">Model</td><td rowspan="2">Spike</td><td rowspan="2">Method</td><td rowspan="2">DVSGesture</td><td colspan="2">SL-Animals</td></tr><tr><td>4 sets</td><td>3 sets</td></tr><tr><td>7-Layer Spiking CNN</td><td>Hybrid</td><td>SCTFA (Cai et al., 2023)</td><td>98.96</td><td>90.04</td><td>-</td></tr><tr><td>GoogLeNet</td><td>X</td><td>TORE (Baldwin et al., 2022)</td><td>96.20</td><td>85.10</td><td>-</td></tr><tr><td>Event Transformer</td><td>X</td><td>EvT (Sabater et al., 2022)</td><td>96.20</td><td>88.12</td><td>87.45</td></tr><tr><td>Pre-Act Resnet18</td><td>✓</td><td>EventMix (Shen et al., 2023)</td><td>96.75</td><td>-</td><td>-</td></tr><tr><td rowspan="7">SEW Resnet18</td><td rowspan="7">✓</td><td>Identity</td><td>94.33</td><td>85.42</td><td>89.09</td></tr><tr><td>EventDrop (Gu et al., 2021)</td><td>92.33</td><td>86.33</td><td>88.99</td></tr><tr><td>NDA (Li et al., 2022)</td><td>93.67</td><td>87.77</td><td>89.55</td></tr><tr><td>EventRPG (CAM, SLRP)</td><td>95.83</td><td>90.97</td><td>91.96</td></tr><tr><td>EventRPG (Saliency Map, SLRP)</td><td>95.49</td><td>91.59</td><td>93.30</td></tr><tr><td>EventRPG (CAM, SLTRP)</td><td>96.18</td><td>90.54</td><td>90.63</td></tr><tr><td>EventRPG (Saliency Map, SLTRP)</td><td>96.53</td><td>90.04</td><td>93.75</td></tr></table>
|
| 253 |
+
|
| 254 |
+
Table 4: Accuracy of various data augmentation methods on event-based action recognition datasets.
|
| 255 |
+
|
| 256 |
+
and all neural networks, with $3.82\%$ and $4.2\%$ improvements compared with the second-best augmentation method on 4 sets and 3 sets, respectively. Action recognition tasks include more dynamic information compared to object recognition tasks. Thus, the success of our method on action recognition tasks demonstrates its great potential for other dynamic event-based datasets, which is a future direction worth exploring.
|
| 257 |
+
|
| 258 |
+
# 5.2.3 TIME CONSUMPTION ANALYSIS
|
| 259 |
+
|
| 260 |
+

|
| 261 |
+
(a)
|
| 262 |
+
|
| 263 |
+

|
| 264 |
+
(b)
|
| 265 |
+
Figure 5: Average time cost of augmentation methods with SEW Resnet18 on two datasets.
|
| 266 |
+
|
| 267 |
+
In order to assess the computational efficiency of our data augmentation method, we perform two experiments to measure the time required for executing EventRPG with SLRP and SLTRP in object recognition and action recognition tasks. As depicted in fig. 5, the computation time of other data augmentation approaches remains constant regardless of the batch size, whereas our method exhibits a nearly linear decrease in computation time as the batch size increases, since the relevance propagation process, which is the main contributor to the time consumption, can be speeded up by parallizing computing across samples in a batch, similar to the gradient backpropagation process. When the batch size for each GPU exceeds 4, both SLRP and SLTRP achieve comparable speeds to NDA and EventDrop, confirming the time efficiency of EventRPG.
|
| 268 |
+
|
| 269 |
+
# 6 CONCLUSION AND LIMITATION
|
| 270 |
+
|
| 271 |
+
Conclusion In this paper, for the first time, we propose SLTRP and SLRP, two efficient and practical methods for generating CAMs and saliency maps for SNNs. Building upon this, we propose EventRPG, i.e., dropping events and mixing events with Relevance Propagation Guidance. Since EventRPG only disturbs and mixes regions on which model concerns most, it is more efficient compared to vanilla dropping and mixing, and also alleviates the likely misalignment problem between data and label. In our experiments, SLRP and SLTRP not only both yield best results compared with other feature visualization tools, but also consume very little time to compute. EventRPG achieves state-of-the-art performance on N-Caltech101, CIFAR10-DVS and SL-Animals datasets, proving its strong generalization ability across different models and datasets.
|
| 272 |
+
|
| 273 |
+
Limitation Currently, EventRPG can only be implemented on classification tasks, remaining as a limitation. However, we could still leverage multi-task training paradigm which has been proven to be effective to implement it into other downstream tasks, and we will also explore more possibilities of using EventRPG in self-supervised learning tasks.
|
| 274 |
+
|
| 275 |
+
# 7 ACKNOWLEDGEMENT
|
| 276 |
+
|
| 277 |
+
We would like to thank all anonymous reviewers for their committed work and insightful feedback. This work was supported in part by the National Natural Science Foundation of China under Grants 62073066 and U20A20197, in part by the Fundamental Research Funds for the Central Universities under Grant N2226001, in part by 111 Project under Grant B16009, in part by the Intel Neuromorphic Research Community (INRC) Grant Award (RV2.137.Fang), and in part by Guangzhou-HKUST(GZ) Joint Funding Program under Grant 2023A03J0682.
|
| 278 |
+
|
| 279 |
+
# REFERENCES
|
| 280 |
+
|
| 281 |
+
Arnon Amir, Brian Taba, David Berg, Timothy Melano, Jeffrey McKinstry, Carmelo Di Nolfo, Tapan Nayak, Alexander Andreopoulos, Guillaume Garreau, Marcela Mendoza, Jeff Kusnitz, Michael Debole, Steve Esser, Tobi Delbruck, Myron Flickner, and Dharmendra Modha. A low power, fully event-based gesture recognition system. In CVPR, July 2017.
|
| 282 |
+
Sebastian Bach, Alexander Binder, Grégoire Montavon, Frederick Klauschen, Klaus-Robert Müller, and Wojciech Samek. On Pixel-wise Explanations for Non-linear Classifier Decisions by Layerwise Relevance Propagation. *PloS One*, 10(7):e0130140, 2015.
|
| 283 |
+
R Wes Baldwin, Ruixu Liu, Mohammed Almatrafi, Vijayan Asari, and Keigo Hirakawa. Time-ordered recent event (tore) volumes for event cameras. IEEE TPAMI, 45(2):2519-2532, 2022.
|
| 284 |
+
Patrick Bardow, Andrew J Davison, and Stefan Leutenegger. Simultaneous Optical Flow and Intensity Estimation from An Event Camera. In CVPR, pp. 884-892, 2016.
|
| 285 |
+
Alexis Baudron, Zihao W Wang, Oliver Cossairt, and Aggelos K Katsaggelos. E3D: Event-Based 3D Shape Reconstruction. arXiv preprint arXiv:2012.05214, 2020.
|
| 286 |
+
Wuque Cai, Hongze Sun, Rui Liu, Yan Cui, Jun Wang, Yang Xia, Dezhong Yao, and Daqing Guo. A spatial-channel-temporal-fused attention for spiking neural networks. TNNLS, 2023.
|
| 287 |
+
Aditya Chattopadhy, Anirban Sarkar, Prantik Howlader, and Vineeth N Balasubramanian. Gradcam++: Generalized Gradient-based Visual Explanations for Deep Convolutional Networks. In WACV, pp. 839-847. IEEE, 2018.
|
| 288 |
+
Peiyu Chen, Weipeng Guan, and Peng Lu. Espvio: Event-based stereo visual inertial odometry. IEEE Robotics and Automation Letters, 2023.
|
| 289 |
+
Shikuang Deng, Yuhang Li, Shanghang Zhang, and Shi Gu. Temporal efficient training of spiking neural network via gradient re-weighting. In ICLR, 2022.
|
| 290 |
+
Wei Fang, Yanqi Chen, Jianhao Ding, Ding Chen, Zhaofei Yu, Huihui Zhou, Yonghong Tian, and other contributors. Spikingjelly. https://github.com/fangwei123456/spikingjelly, 2020. Accessed: 2022-09-19.
|
| 291 |
+
Wei Fang, Zhaofei Yu, Yanqi Chen, Tiejun Huang, Timothée Masquelier, and Yonghong Tian. Deep residual learning in spiking neural networks. NeurIPS, 34:21056-21069, 2021a.
|
| 292 |
+
Wei Fang, Zhaofei Yu, Yanqi Chen, Timothee Masquelier, Tiejun Huang, and Yonghong Tian. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In ICCV, pp. 2661-2671, 2021b.
|
| 293 |
+
Li Fei-Fei, Rob Fergus, and Pietro Perona. Learning Generative Visual Models from Few Training Examples: An Incremental Bayesian Approach Tested on 101 Object Categories. In CVPRW, pp. 178-178. IEEE, 2004.
|
| 294 |
+
Guillermo Gallego, Tobi Delbrück, Garrick Orchard, Chiara Bartolozzi, Brian Taba, Andrea Censi, Stefan Leutenegger, Andrew J Davison, Jörg Conradt, Kostas Daniilidis, et al. Event-based Vision: A Survey. IEEE TPAMI, 44(1):154-180, 2020.
|
| 295 |
+
Daniel Gehrig, Antonio Loquercio, Konstantinos G Derpanis, and Davide Scaramuzza. End-to-end Learning of Representations for Asynchronous Event-based Data. In ICCV, pp. 5633-5643, 2019.
|
| 296 |
+
|
| 297 |
+
Mathias Gehrig, Mario Millhäusler, Daniel Gehrig, and Davide Scaramuzza. E-raft: Dense Optical Flow from Event Cameras. In 3DV, pp. 197-206. IEEE, 2021.
|
| 298 |
+
Fuqiang Gu, Weicong Sng, Xuke Hu, and Fangwen Yu. EventDrop: Data Augmentation for Event-based Learning. In IJCAI, 2021. URL https://arxiv.org/abs/2106.05836.
|
| 299 |
+
Jindong Gu, Yinchong Yang, and Volker Tresp. Understanding individual decisions of cnns via contrastive backpropagation. In ACCV, pp. 119-134. Springer, 2018.
|
| 300 |
+
Dan Hendrycks, Norman Mu, Ekin D Cubuk, Barret Zoph, Justin Gilmer, and Balaji Lakshminarayanan. Augmix: A Simple Data Processing Method to Improve Robustness and Uncertainty. In ICLR, 2019.
|
| 301 |
+
Jang-Hyun Kim, Wonho Choo, and Hyun Oh Song. Puzzle Mix: Exploiting Saliency and Local Statistics for Optimal Mixup. In ICML, 2020.
|
| 302 |
+
Junho Kim, Jaehyeok Bae, Gangin Park, Dongsu Zhang, and Young Min Kim. N-imagenet: Towards robust, fine-grained object recognition with event cameras. In ICCV, pp. 2146-2156, 2021.
|
| 303 |
+
Youngeun Kim and Priyadarshini Panda. Optimizing deeper spiking neural networks for dynamic vision sensing. Neural Networks, 144:686-698, 2021a.
|
| 304 |
+
Youngeun Kim and Priyadarshini Panda. Visual explanations from spiking neural networks using inter-spike intervals. Scientific reports, 11(1):1-14, 2021b.
|
| 305 |
+
Youngeun Kim, Chough Joshua, and Priyadarshini Panda. Beyond classification: Directly training spiking neural networks for semantic segmentation. Neuromorphic Computing and Engineering, 2022.
|
| 306 |
+
Jürgen Kogler, Christoph Sulzbachner, and Wilfried Kubinger. Bio-inspired Stereo Vision System with Silicon Retina Imagers. In International Conference on Computer Vision Systems, pp. 174-183. Springer, 2009.
|
| 307 |
+
Alex Krizhevsky, Geoffrey Hinton, et al. Learning multiple layers of features from tiny images. 2009.
|
| 308 |
+
Xavier Lagorce, Garrick Orchard, Francesco Galluppi, Bertram E Shi, and Ryad B Benosman. Hots: a hierarchy of event-based time-surfaces for pattern recognition. IEEE TPAMI, 39(7):1346-1359, 2016.
|
| 309 |
+
Chankyu Lee, Adarsh Kumar Kosta, Alex Zihao Zhu, Kenneth Chaney, Kostas Daniilidis, and Kaushik Roy. Spike-flownet: Event-based Optical Flow Estimation with Energy-efficient Hybrid Neural Networks. In ECCV, pp. 366-382. Springer, 2020.
|
| 310 |
+
Jeong Ryong Lee, Sewon Kim, Inyong Park, Taejoon Eo, and Dosik Hwang. Relevance-cam: Your Model Already Knows Where to Look. In CVPR, pp. 14944-14953, 2021.
|
| 311 |
+
Hongmin Li, Hanchao Liu, Xiangyang Ji, Guoqi Li, and Luping Shi. Cifar10-dvs: an Event-stream Dataset for Object Classification. Frontiers in Neuroscience, 11:309, 2017.
|
| 312 |
+
Yuhang Li, Youngeun Kim, Hyoungseob Park, Tamar Geller, and Priyadarshini Panda. Neuro-morphic Data Augmentation for Training Spiking Neural Networks. In ECCV, 2022. URL https://arxiv.org/abs/2203.06145.
|
| 313 |
+
Wolfgang Maass. Networks of Spiking Neurons: the Third Generation of Neural Network Models. Neural Networks, 10(9):1659-1671, 1997.
|
| 314 |
+
Misha Mahowald. The Silicon Retina. In An Analog VLSI System for Stereoscopic Vision, pp. 4-65. Springer, 1994.
|
| 315 |
+
Qingyan Meng, Mingqing Xiao, Shen Yan, Yisen Wang, Zhouchen Lin, and Zhi-Quan Luo. Training High-Performance Low-Latency Spiking Neural Networks by Differentiation on Spike Representation. In CVPR, pp. 12444–12453, 2022.
|
| 316 |
+
|
| 317 |
+
Grégoire Montavon, Sebastian Lapuschkin, Alexander Binder, Wojciech Samek, and Klaus-Robert Müller. Explaining Nonlinear Classification Decisions with Deep Taylor Decomposition. Pattern Recognition, 65:211-222, 2017.
|
| 318 |
+
Garrick Orchard, Ajinkya Jayawant, Gregory K Cohen, and Nitish Thakor. Converting Static Image Datasets to Spiking Neuromorphic Datasets using Saccades. Frontiers in Neuroscience, 9:437, 2015.
|
| 319 |
+
Viktor Rudnev, Mohamed Elgharib, Christian Theobalt, and Vladislav Golyanik. EventNeRF: Neural Radiance Fields from a Single Colour Event Camera. arXiv preprint arXiv:2206.11896, 2022.
|
| 320 |
+
Alberto Sabater, Luis Montesano, and Ana C Murillo. Event transformer. a sparse-aware solution for efficient event data processing. In CVPR, pp. 2677-2686, 2022.
|
| 321 |
+
Ramprasaath R Selvaraju, Michael Cogswell, Abhishek Das, Ramakrishna Vedantam, Devi Parikh, and Dhruv Batra. Grad-cam: Visual Explanations from Deep Networks via Gradient-based Localization. In ICCV, pp. 618-626, 2017.
|
| 322 |
+
Guobin Shen, Dongcheng Zhao, and Yi Zeng. Eventmix: An efficient data augmentation strategy for event-based learning. Information Sciences, 644:119170, 2023.
|
| 323 |
+
Amos Sironi, Manuele Brambilla, Nicolas Bourdis, Xavier Lagorce, and Ryad Benosman. Hats: Histograms of averaged time surfaces for robust event-based object classification. In CVPR, pp. 1731-1740, 2018.
|
| 324 |
+
Bongki Son, Yunjae Suh, Sungho Kim, Heejae Jung, Jun-Seok Kim, Changwoo Shin, Keunju Park, Kyoobin Lee, Jinman Park, Jooyeon Woo, et al. 4.1 A $640 \times 480$ Dynamic Vision Sensor with a $9\mu \mathrm{m}$ Pixel and 300Meps Address-event Representation. In ISSCC, pp. 66-67. IEEE, 2017.
|
| 325 |
+
Timo Stoffregen, Guillermo Gallego, Tom Drummond, Lindsay Kleeman, and Davide Scaramuzza. Event-based Motion Segmentation by Motion Compensation. In ICCV, pp. 7244-7253, 2019.
|
| 326 |
+
AFM Shahab Uddin, Mst Sirazam Monira, Wheemyung Shin, TaeChoong Chung, and Sung-Ho Bae. SaliencyMix: A Saliency Guided Data Augmentation Strategy for Better Regularization. In ICLR, 2020.
|
| 327 |
+
Ajay Vasudevan, Pablo Negri, Camila Di Ielsi, Bernabe Linares-Barranco, and Teresa Serrano-Gotarredona. Sl-animals-dvs: event-driven sign language animals dataset. Pattern Analysis and Applications, pp. 1-16, 2021.
|
| 328 |
+
Haofan Wang, Zifan Wang, Mengnan Du, Fan Yang, Zijian Zhang, Sirui Ding, Piotr Mardziel, and Xia Hu. Score-CAM: Score-weighted Visual Explanations for Convolutional Neural Networks. In CVPRW, pp. 24-25, 2020.
|
| 329 |
+
Ziwei Wang, Liyuan Pan, Yonhon Ng, Zheyu Zhuang, and Robert Mahony. Stereo hybrid event-frame (shef) cameras for 3d perception. In IROS, pp. 9758-9764. IEEE, 2021.
|
| 330 |
+
Sangdoo Yun, Dongyoon Han, Seong Joon Oh, Sanghyuk Chun, Junsuk Choe, and Youngjoon Yoo. Cutmix: Regularization Strategy to Train Strong Classifiers with Localizable Features. In ICCV, pp. 6023-6032, 2019.
|
| 331 |
+
Hongyi Zhang, Moustapha Cisse, Yann N Dauphin, and David Lopez-Paz. Mixup: Beyond Empirical Risk Minimization. In ICLR, 2018.
|
| 332 |
+
Hanle Zheng, Yujie Wu, Lei Deng, Yifan Hu, and Guoqi Li. Going deeper with directly-trained larger spiking neural networks. In AAAI, volume 35, pp. 11062-11070, 2021.
|
| 333 |
+
Bolei Zhou, Aditya Khosla, Agata Lapedriza, Aude Oliva, and Antonio Torralba. Learning Deep Features for Discriminative Localization. In CVPR, pp. 2921-2929, 2016.
|
| 334 |
+
Yi Zhou, Guillermo Gallego, Xiuyuan Lu, Siqi Liu, and Shaojie Shen. Event-based Motion Segmentation with Spatio-temporal Graph Cuts. TNNLS, 2021.
|
| 335 |
+
Yi-Fan Zuo, Jiaqi Yang, Jiaben Chen, Xia Wang, Yifu Wang, and Laurent Kneip. DEVO: Depth-Event Camera Visual Odometry in Challenging Conditions. ICRA, 2022.
|
| 336 |
+
|
| 337 |
+
# APPENDIX
|
| 338 |
+
|
| 339 |
+
# A ADDITIONAL EXPERIMENTAL RESULTS
|
| 340 |
+
|
| 341 |
+
Here we present more experiments to further prove the effectiveness of our approach.
|
| 342 |
+
|
| 343 |
+
# A.1 CLASSIFICATION ON MINI N-IMAGENET DATASET
|
| 344 |
+
|
| 345 |
+
N-ImageNet, as proposed by Kim et al. (2021), represents the neuromorphic adaptation of the well-known ImageNet dataset. It encompasses a thousand object categories, making it the most challenging task in event-based classification to date. We conduct experiments to evaluate the performances of different data augmentation methods on mini N-ImageNet with SEW Resnet-18.
|
| 346 |
+
|
| 347 |
+
<table><tr><td>Data Augmentation</td><td>Identity</td><td>EventDrop</td><td>NDA</td><td>EventRPG</td></tr><tr><td>Top-1 Accuracy</td><td>28.16</td><td>34.18</td><td>35.84</td><td>40.90</td></tr><tr><td>Top-5 Accuracy</td><td>52.14</td><td>60.94</td><td>63.64</td><td>67.74</td></tr></table>
|
| 348 |
+
|
| 349 |
+
Table 5: Top-1 and Top-5 Accuracies (%) on mini N-ImageNet.
|
| 350 |
+
|
| 351 |
+
Table 5 demonstrates that data augmentations significantly enhance the performance of the model, as shown by the notable positive effects. In this comparison, our approach outperforms the nearest competitor NDA, achieving a higher Top-1 accuracy by $5.06\%$ and Top-5 accuracy by $4.1\%$ .
|
| 352 |
+
|
| 353 |
+

|
| 354 |
+
(a)
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
(b)
|
| 358 |
+
Figure 6: The loss and Accuracy curves of different augmentations on mini N-ImageNet.
|
| 359 |
+
|
| 360 |
+
As shown in fig. 6a, the performance disparity between EventRPG and NDA is as significant as the one observed between EventDrop and Identity. Additionally, late epochs of EventDrop and Identity exhibit overfitting, a problem that is effectively mitigated in NDA and EventRPG, as illustrated in fig. 6b. These outcomes highlight again the efficiency of our approach in boosting the model's performance and mitigating overfitting.
|
| 361 |
+
|
| 362 |
+
# A.2 COMPARISON WITH OTHER SALIENCY-BASED MIX METHODS
|
| 363 |
+
|
| 364 |
+
We also compare the performance of various saliency-based mix methods on two typical datasets: N-Caltech101 and SL-Animals. In the experiments, there is a $50\%$ chance for each event stream to be augmented by corresponding mix approach with no other augmentations applied. Notably, it's observed in table 6 that both Saliency Mix (Uddin et al., 2020) and Puzzle Mix (Kim et al., 2020) occasionally result in lower performance than the identity approach. This underscores RPGMix's robust generalization capability, as it consistently excels across all datasets.
|
| 365 |
+
|
| 366 |
+
To clearly showcase the differences among these mix methods, we present visualizations of the augmented samples they produce (see fig. 7). In most cases, our RPGMix aims to preserve as many label-related pixels as possible.
|
| 367 |
+
|
| 368 |
+

|
| 369 |
+
Figure 7: Mixed samples generated by different methods on N-Caltech101.
|
| 370 |
+
|
| 371 |
+
<table><tr><td>Dataset</td><td>Model</td><td>Identity</td><td>Saliency Mix</td><td>Puzzle Mix</td><td>Puzzle Mix (mask only)</td><td>RPGMix</td></tr><tr><td>N-Caltech101</td><td>Spike-VGG11</td><td>75.70</td><td>72.63</td><td>79.38</td><td>78.13</td><td>81.75</td></tr><tr><td>SL-Animals-4Sets</td><td>SEW Resnet18</td><td>85.42</td><td>84.00</td><td>85.34</td><td>85.68</td><td>88.67</td></tr><tr><td>SL-Animals-3Sets</td><td>SEW Resnet18</td><td>89.09</td><td>89.29</td><td>88.39</td><td>90.18</td><td>90.45</td></tr></table>
|
| 372 |
+
|
| 373 |
+
Table 6: Accuracy of Puzzle Mix, Saliency Mix, and RPGMix on object and action recognition tasks.
|
| 374 |
+
|
| 375 |
+
# A.3 ADDITIONAL QUAILITATIVE RESULTS
|
| 376 |
+
|
| 377 |
+
We present additional qualitative results of our method applied to the N-Caltech101, SL-Animals, and DVS-Gesture datasets. The saliency maps created using SLTRP, as shown in fig. 8, exhibit strong selectivity. They assign high values to label-related objects and low values to label-unrelated objects. In action recognition datasets, saliency maps primarily focus on label-related moving objects to capture the dynamic aspects of actions, as illustrated in fig. 9. In SL-Animals datasets (second row), the saliency maps focus on the person's hand raised to his/her head, assigning minimal attention to the lower area of the person, despite its high event density. Similarly, in the fourth row, the saliency maps show little interest in the person's right hand (from our perspective), focusing instead on the left hand, even though both hands have similar event densities. These results illustrate that it's the label-related actions, rather than event density, that truly draw the focus of the saliency maps. This observation further confirms the selectivity of SLTRP-generated saliency maps in both action recognition and object recognition datasets.
|
| 378 |
+
|
| 379 |
+
# B RELATED WORK
|
| 380 |
+
|
| 381 |
+
# B.1 EVENT-BASED DATA
|
| 382 |
+
|
| 383 |
+
Event-based data is generated by asynchronous sensors, usually referred to as event cameras (Mahowald, 1994; Son et al., 2017). Similar to point cloud, event-based data consists of four-dimensional points, denoted as $(x,y,t,p)$ , where $x$ and $y$ are the spatial coordinates, $t$ is the timestamp, and $p$ is the polarity. Due to the inherent advantages of event cameras, event-based data is widely used in the field of perception, e.g., optical flow estimation (Gehrig et al., 2021), depth estimation (Wang et al., 2021), 3d reconstruction (Baudron et al., 2020; Rudnev et al., 2022), motion segmentation (Stoffregen et al., 2019; Zhou et al., 2021), semantic segmentation (Kim et al., 2022), etc.
|
| 384 |
+
|
| 385 |
+
There are two mainstream approaches to processing event-based data, frame-based approaches and event-by-event-based approaches. Frame-based approaches (Kogler et al., 2009; Bardow et al., 2016; Lagorce et al., 2016; Gehrig et al., 2019) are similar to image processing, where events are first converted into frames with a fixed shape $(C, H, W)$ , and then the frames are fed into an ANN for downstream classification or regression tasks. Event-by-event-based approaches handle events on a one-by-one basis, which is natural for SNNs (Lee et al., 2020; Fang et al., 2021a; Deng et al., 2022).
|
| 386 |
+
|
| 387 |
+
# B.2 DATA AUGMENTATION
|
| 388 |
+
|
| 389 |
+
Vanilla data augmentations include simple transformations such as scale, rotation, flip, etc. Mixup (Zhang et al., 2018) proposes mixing two randomly selected samples and their corresponding labels as new data and label for training, based on which several works that modify the mixing details were proposed to further improve the robustness and performance (Yun et al., 2019; Hendrycks et al., 2019). Kim et al. (2020); Uddin et al. (2020) are similar to our proposed RPGMix that leverages the model's saliency information to augment the data, while our motivation and implementation details are quite different from them.
|
| 390 |
+
|
| 391 |
+
# B.3 RELEVANCE PROPAGATION
|
| 392 |
+
|
| 393 |
+
Relevance propagation was initially presented in (Montavon et al., 2017) as a method for creating saliency maps to visualize the impact of each pixel in the input data on the prediction of the model
|
| 394 |
+
|
| 395 |
+

|
| 396 |
+
Figure 8: SLTRP-Saliency Maps from Spike-VGG11 on N-Caltech101.
|
| 397 |
+
|
| 398 |
+

|
| 399 |
+
SL-Animals
|
| 400 |
+
|
| 401 |
+

|
| 402 |
+
DVS-Gesture
|
| 403 |
+
Figure 9: SLTRP-Saliency Maps from SEW Resnet-18 on SL-Animals and DVS-Gesture.
|
| 404 |
+
|
| 405 |
+
or a particular class, thereby enhancing the interpretability of neural networks. The specificity of saliency maps towards the target class can be improved by employing Contrastive Layer-wise Televance Propagation (CLRP) as described by Gu et al. (2018), which diminishes the relevance scores for non-target classes.
|
| 406 |
+
|
| 407 |
+
# B.4 CLASS ACTIVATION MAP
|
| 408 |
+
|
| 409 |
+
As another visualization tool describing the area of most interest to the model, Class Activation Map (CAM) is widely used to interpret the model's attention and to find objects belonging to a certain class in the input data. The original CAM (Zhou et al., 2016) could only visualize the activation map of the last global average pooling (GAP) layer of the model, requiring the model to have a special structure. Grad-CAM (Selvaraju et al., 2017) overcomes this limitation by replacing the weights of GAP with the sum of gradients, enabling the acquisition of CAM from any CNN model. On this basis, Grad-CAM++ (Chattopadhyay et al., 2018), Score-CAM (Wang et al., 2020), and Relevance-CAM (Lee et al., 2021) were proposed to improve the quality of CAMs.
|
| 410 |
+
|
| 411 |
+
# C DATASETS AND TRAINING DETAILS
|
| 412 |
+
|
| 413 |
+
# C.1 OBJECT RECOGNITION TASK
|
| 414 |
+
|
| 415 |
+
N-Caltech101 The neuromorphic version (Orchard et al., 2015) of Caltech101 (Fei-Fei et al., 2004). It is artificially created by moving an asynchronous time-based image sensor (ATIS) mounted on a pan tilt unit in front of an LCD screen that presents the image data in Caltech101. We use the same dataset as Li et al. (2022) that is split into the training set and test set by $9:1$ . The resolution of N-Caltech101 is $180 \times 240$ which, in our implementation, is padded to $240 \times 240$ and rescaled to $128 \times 128$ .
|
| 416 |
+
|
| 417 |
+
CIFAR10-DVS The DVS version (Li et al., 2017) of CIFAR10 (Krizhevsky et al., 2009). The generation of CIFAR10-DVS is similar to N-Caltech101. Following NDA (Li et al., 2022), we divide it by $9:1$ as the training set and test set, and scale the resolution from $128 \times 128$ to $48 \times 48$ .
|
| 418 |
+
|
| 419 |
+
N-Cars A binary classification dataset (Sironi et al., 2018). Unlike N-Caltech101 and CIFAR10-DVS transformed from image datasets, N-Cars is obtained from the recording of an ATIS in real driving scenarios. Similar to the preprocessing of N-Caltech101, we first pad the resolution from $100 \times 120$ to $120 \times 120$ and then scale it to $48 \times 48$ on SNN.
|
| 420 |
+
|
| 421 |
+
Mini N-ImageNet A subset of N-ImageNet dataset (Kim et al., 2021). Despite being a smaller segment, it includes over 100,000 samples spanning 100 classes, making it the largest dataset used in our experiments. In line with the original authors' setup, we pad the resolution from $640 \times 480$ to $640 \times 640$ and then scale it down to $224 \times 224$ as the input resolution of the SNN.
|
| 422 |
+
|
| 423 |
+
# C.2 ACTION RECOGNITION TASK
|
| 424 |
+
|
| 425 |
+
For object recognition tasks, shapes and textures are the most important information to recognize an object, and thus we do not care how an object moves in the event streams. While in action recognition tasks, the movements of the objects should be considered. They represent two different recognition strategies and thus are both essential to validate our proposed method.
|
| 426 |
+
|
| 427 |
+
DVS128 Gesture A hand gesture dataset (Amir et al., 2017) recorded from a DVS128 camera. It comprises 1464 samples with 11 classes, split into the training set and test set by 8:2. The resolution is set as $128 \times 128$ on SNN.
|
| 428 |
+
|
| 429 |
+
SL-Animals-DVS A sign language dataset (Vasudevan et al., 2021) including 19 Spanish Sign Language signs corresponding to animals. Following the raw paper, we split it by 7.5:2.5 into the training set and test set. Also, we separate the datasets into “4 sets” and “3 sets”, which excludes the samples disturbed by the indoor lighting conditions reflecting on the patterned clothing of the user. The resolution processing of SL-Animals-DVS is identical to that of DVS 128 Gesture.
|
| 430 |
+
|
| 431 |
+
<table><tr><td>Neural Networks</td><td>Neuron Model</td><td>Datasets</td><td>Epoch</td><td>Batch Size</td><td>T</td><td>Learning Rate</td></tr><tr><td rowspan="3">Spike-VGG11</td><td rowspan="3">LIF</td><td>N-Caltech101</td><td rowspan="3">100</td><td>16</td><td rowspan="3">10</td><td rowspan="3">\( 1 \times 10^{-3} \)</td></tr><tr><td>CIFAR10-DVS</td><td>64</td></tr><tr><td>N-Cars</td><td>64</td></tr><tr><td rowspan="3">SEW Resnet-18</td><td rowspan="3">PLIF</td><td>SL-Animals</td><td rowspan="2">200</td><td>20</td><td rowspan="2">16</td><td rowspan="2">\( 5 \times 10^{-4} \)</td></tr><tr><td>DVS-Gesture</td><td rowspan="2">64</td></tr><tr><td>Mini N-Imagenet</td><td>100</td><td>10</td><td>\( 1 \times 10^{-3} \)</td></tr></table>
|
| 432 |
+
|
| 433 |
+
Table 7: Hyper-parameters for different models and datasets.
|
| 434 |
+
|
| 435 |
+
# C.3 TRAINING DETAILS
|
| 436 |
+
|
| 437 |
+
In all experiments, we use Adam optimizer with the default setting $(\beta_{1},\beta_{2}) = (0.9,0.999)$ to update the parameters and Cosine Annealing Scheduler for the decrease of learning rate. Other hyper-parameters are shown in table 7. For fair comparisons, an identical seed is leveraged for all experiments. We utilize the public code of TET (Deng et al., 2022) to build Spike-VGG11 and Spikingjelly (Fang et al., 2020) to build SEW Resnet-18 with PLIF (Fang et al., 2021b).
|
| 438 |
+
|
| 439 |
+
# D PROOFS
|
| 440 |
+
|
| 441 |
+
In this section, we provide proofs of the propositions.
|
| 442 |
+
|
| 443 |
+
# D.1 PROOF FOR CONSERVATION PROPERTY ON $\alpha \beta$ -RULE
|
| 444 |
+
|
| 445 |
+
Proof. The sum of relevance scores in layer $l - 1$ is
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\begin{array}{l} \sum_ {i} R _ {i} ^ {(l - 1)} = \sum_ {i} \sum_ {j} R _ {i \leftarrow j} ^ {(l - 1, l)} = \sum_ {i} \sum_ {j} R _ {j} ^ {(l)} \cdot \left(\alpha \cdot \frac {z _ {i j} ^ {+}}{\sum_ {i} z _ {i j} ^ {+}} + \beta \cdot \frac {z _ {i j} ^ {-}}{\sum_ {i} z _ {i j} ^ {-}}\right) \\ = \sum_ {j} R _ {j} ^ {(l)} \sum_ {i} \left(\alpha \cdot \frac {z _ {i j} ^ {+}}{\sum_ {i} z _ {i j} ^ {+}} + \beta \cdot \frac {z _ {i j} ^ {-}}{\sum_ {i} z _ {i j} ^ {-}}\right) \\ = \sum_ {j} R _ {j} ^ {(l)} \left(\alpha \cdot \frac {\sum_ {i} z _ {i j} ^ {+}}{\sum_ {i} z _ {i j} ^ {+}} + \beta \cdot \frac {\sum_ {i} z _ {i j} ^ {-}}{\sum_ {i} z _ {i j} ^ {-}}\right) \\ = \sum_ {j} R _ {j} ^ {(l)} (\alpha + \beta) \\ = \sum_ {j} R _ {j} ^ {(l)}. \\ \end{array}
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
|
| 453 |
+
# D.2 PROOF FOR PROPOSITION 1
|
| 454 |
+
|
| 455 |
+
Proof. We prove proposition 1 by induction.
|
| 456 |
+
|
| 457 |
+
For case $t = 1$ , according to eq. (12) we have
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
R ^ {(l - 1)} [ 1 ] = (1 - \gamma [ 1 ]) \left(\sum_ {i = 2} ^ {T} R ^ {(l)} [ i ] \prod_ {j = 2} ^ {i} \gamma [ j ] + R ^ {(l)} [ 1 ]\right),
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
where $\gamma [1] = 0$ , since at the first time step, the membrane voltage is initialized to be 0. Clearly, proposition 1 holds for case $t = 1$ .
|
| 464 |
+
|
| 465 |
+
Next, suppose proposition 1 holds for case $t = k - 1$ , we have
|
| 466 |
+
|
| 467 |
+
$$
|
| 468 |
+
\begin{array}{l} \sum_ {t = 1} ^ {k - 1} R ^ {(l - 1)} [ t ] = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + \sum_ {i = k} ^ {T} R ^ {(l)} [ i ] \prod_ {j = k} ^ {i} \gamma [ j ] \\ = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + \gamma [ k ] \left(R ^ {(l)} [ k ] + \sum_ {i = k + 1} ^ {T} R ^ {(l)} [ i ] \prod_ {j = k + 1} ^ {i} \gamma [ j ]\right) \\ = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + \frac {\gamma [ k ]}{1 - \gamma [ k ]} R ^ {(l - 1)} [ k ]. \\ \end{array}
|
| 469 |
+
$$
|
| 470 |
+
|
| 471 |
+
Then
|
| 472 |
+
|
| 473 |
+
$$
|
| 474 |
+
\begin{array}{l} \sum_ {t = 1} ^ {k} R ^ {(l - 1)} [ t ] = \sum_ {t = 1} ^ {k - 1} R ^ {(l - 1)} [ t ] + R ^ {(l - 1)} [ k ] = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + \frac {\gamma [ k ]}{1 - \gamma [ k ]} R ^ {(l - 1)} [ k ] + R ^ {(l - 1)} [ k ] \\ = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + \frac {R ^ {(l - 1)} [ k ]}{1 - \gamma [ k ]} \\ = \sum_ {t = 1} ^ {k - 1} R ^ {(l)} [ t ] + R ^ {(l)} [ k ] + \sum_ {i = k + 1} ^ {T} R ^ {(l)} [ i ] \prod_ {j = k + 1} ^ {i} \gamma [ j ] \\ = \sum_ {t = 1} ^ {k} R ^ {(l)} [ t ] + \sum_ {i = k + 1} ^ {T} R ^ {(l)} [ i ] \prod_ {j = k + 1} ^ {i} \gamma [ j ]. \\ \end{array}
|
| 475 |
+
$$
|
| 476 |
+
|
| 477 |
+

|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:635b8733087816e7efc35591f676539061ad71a609ae31edb88a710c658eb4bd
|
| 3 |
+
size 1804872
|
2024/EventRPG_ Event Data Augmentation with Relevance Propagation Guidance/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/8f4fae3a-d0b6-4868-a52b-f038c04f6870_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f60192e53570ed6f9cfa75c7cc87fe46dcb5d5bd9f6fae225962f72a9de495f5
|
| 3 |
+
size 1571057
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/full.md
ADDED
|
@@ -0,0 +1,500 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EVOKE: EVOKING CRITICAL THINKING ABILITIES IN LLMS VIA REVIEWER-AUTHOR PROMPT EDITING
|
| 2 |
+
|
| 3 |
+
Xinyu Hu\* Pengfei Tang\* Simiao Zuo\* Zihan Wang\* Bowen Song\* Qiang Lou\* Jian Jiao\* Denis Charles
|
| 4 |
+
|
| 5 |
+
Microsoft University of Washington University of Michigan
|
| 6 |
+
|
| 7 |
+
# ABSTRACT
|
| 8 |
+
|
| 9 |
+
Large language models (LLMs) have made impressive progress in natural language processing. These models rely on proper human instructions (or prompts) to generate suitable responses. However, the potential of LLMs are not fully harnessed by commonly-used prompting methods: many human-in-the-loop algorithms employ ad-hoc procedures for prompt selection; while auto prompt generation approaches are essentially searching all possible prompts randomly and inefficiently. We propose Evoke, an automatic prompt refinement framework. In Evoke, there are two instances of a same LLM: one as a reviewer (LLM-Reviewer), it scores the current prompt; the other as an author (LLM-Author), it edits the prompt by considering the edit history and the reviewer's feedback. Such an author-reviewer feedback loop ensures that the prompt is refined in each iteration. We further aggregate a data selection approach to Evoke, where only the hard samples are exposed to the LLM. The hard samples are more important because the LLM can develop deeper understanding of the tasks out of them, while the model may already know how to solve the easier cases. Experimental results show that Evoke significantly outperforms existing methods. For instance, in the challenging task of logical fallacy detection, Evoke scores above 80, while all other baseline methods struggle to reach 20.
|
| 10 |
+
|
| 11 |
+
# 1 INTRODUCTION
|
| 12 |
+
|
| 13 |
+
Consider an intriguing trio that at first glance seems unrelated: bumble bees, cell phones, and exciting news. At a superficial level, their commonality might note their plural forms; however, a more profound analysis reveals a shared essence: they all "create a buzz." This comparison sheds light on the depth and intricacy of human cognitive processes. At the heart of such processes is critical thinking, the ability to conceptualize, analyze, question, and evaluate ideas and beliefs. As we transition to the domain of artificial intelligence, it is observed that large language models (LLMs) have remarkably evolved as general problem solvers, urging us to ponder:
|
| 14 |
+
|
| 15 |
+
# Can LLMs think on their own?
|
| 16 |
+
|
| 17 |
+
In practice, we observe that existing prompting methods are inadequate in evoking the critical thinking abilities of LLMs. For example, in Figure 1, we show two prompts for solving a common concept task. From Figure 1 (left), we see that for the input trio “bumble bees, cell phones, and exciting news”, the LLM outputs a superficial common concept “plural form” using the hand-crafted prompt. On the other hand, with the prompt generated by the proposed method, the LLM demonstrates much deeper understanding about the task, i.e., it generates the correct answer “can cause a buzz” (see Figure 1, right). These results indicate that the quality of prompts are directly related to the performance of LLMs. In this work, we focus on prompting methods that enables LLMs to think on their own.
|
| 18 |
+
|
| 19 |
+
The current prompting methodologies exhibit significant drawbacks. Many prompting methods are ad hoc because of their human-in-the loop development paradigm. In such a process, given a target task, we first draft an initial prompt. Then, we refine the prompt using techniques such as chain-of-thought, few-shot demonstrations, and coding-style problem descriptions (Wei et al., 2022c;a;
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Comparison between hand-crafted and Evoke prompts.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
Figure 2: Simplified workflow of Evoke.
|
| 26 |
+
|
| 27 |
+
Gao et al., 2023) based on the model's performance on the target task. We note that in practice, a hand-crafted prompt optimized for one task rarely translates to satisfactory performance in another task (Zhang et al., 2023). Therefore, each task becomes a new expedition, with its own set of trials, errors, and validations. Such an ad hoc human-in-the-loop development procedure introduces extensive human labor requirements, which significantly hinder the applicability of LLMs in real-world applications.
|
| 28 |
+
|
| 29 |
+
Existing works develop algorithms to automatically generate prompts instead of relying on ad hoc human optimization (Shin et al., 2020; Honovich et al., 2022; Zhou et al., 2022). However, these methods often lack feedback loops, such that the refinement procedure essentially performs a random search. For example, in each refinement iteration, Zhou et al. (2022) simply rephrases the prompt into multiple candidates, and then select the candidate that yields the best performance as the refined prompt. Note that such a procedure fails to learn from past successes and failures, such that refined prompt does not enrich the original prompt with additional context.
|
| 30 |
+
|
| 31 |
+
We propose Evoke, which addresses the aforementioned drawbacks by leveraging an author-reviewer paradigm. In this paradigm, there are two distinct purposes: one instance as an author (LLM-Author) tasked with editing prompts, and another instance as a reviewer (LLM-Reviewer) tasked with evaluating the quality of the prompts generated by the LLM-Author. Each role is played independently by separate instances of the same LLM.
|
| 32 |
+
|
| 33 |
+
Critical thinking is not something you do once with an issue and then drop it. It requires that we update our knowledge as new information comes in. Daniel Levitin
|
| 34 |
+
|
| 35 |
+
The essence of this quote resonates with the feedback loop in the workflow of Evoke, as depicted in Figure 2. The workflow comprises three steps: First, the LLM-Author edits prompts from previous iterations, taking into account the past edits and the feedback from the LLM-Reviewer. Second, the LLM-Reviewer scores the revised prompts from the LLM-Author, and the top-n candidates with the highest scores are selected for subsequent procedures. The LLM-Reviewer employs a memory module that stores history edits, prompts and task accuracy of history prompts. Finally, the task accuracy for each instruction is computed.
|
| 36 |
+
|
| 37 |
+
To further enhance the efficacy of Evoke, we propose a data selection strategy. In this strategy, only the hard samples selected by a selector are exposed to the LLM. The intuition is that the LLM can develop deeper understanding of the tasks out of the hard samples, while it already knows how to solve the easier cases. Through extensive experiments (see Figure 10 in the experiments), we see that retaining the hard samples indeed improves efficacy of Evoke.
|
| 38 |
+
|
| 39 |
+
We conduct extensive experiments to demonstrate the effectiveness of Evoke. Specifically, on eight tasks from the Instruction Induction (Honovich et al., 2022) dataset and the Big Bench Instruction Induction (Zhou et al., 2022) dataset, we show that Evoke significantly outperforms existing automatic prompt engineering approaches. For example, on the challenging logical fallacy detection task, Evoke achieves a score of over 80, while all the baseline methods struggle to reach 20. We also show that Evoke can improve LLMs' robustness against adversarial attacks, and can also handle fine-grained named entity recognition tasks with exceptional performance. As an example, Evoke
|
| 40 |
+
|
| 41 |
+
achieves significant performance gain on an adversarially constructed dataset, indicating that the proposed method can improve robustness of LLMs. Additionally, we provide detailed analysis on the effectiveness of each component of Evoke.
|
| 42 |
+
|
| 43 |
+
# 2 RELATED WORK
|
| 44 |
+
|
| 45 |
+
Large Language Models Recently, LLMs have shown emergent abilities—capabilities to perform tasks they weren't explicitly trained for (Wei et al., 2022a;b; Bubeck et al., 2023). This includes common sense question answering, code generation, and cross-domain problem solving, enriching their utility across unforeseen domains (Chen et al., 2021; Sarsa et al., 2022; Thirunavukarasu et al., 2023; Huang & Chang, 2022; Du et al., 2023). Subsequently, adapting LLMs to specific problems has drawn attention, and several methods have been proposed: Reinforcement Learning from Human Feedback (RLHF Ouyang et al. 2022), efficient fine-tuning (Hu et al., 2022; Dettmers et al., 2023), and prompt engineering (White et al., 2023), among others. Each method has its pros and cons. For instance, RLHF can significantly improve performance but may require extensive human annotations. Efficient fine-tuning, on the other hand, can be less resource-intensive but might fall short in achieving the desired level of task-specific optimization. Prompt engineering, while innovative, may require a well-crafted prompt to effectively guide the model towards accurate outputs.
|
| 46 |
+
|
| 47 |
+
In-Context Learning and Prompt Engineering In-Context Learning (ICL) refers to the ability of LLMs to learn a new task from a small set of examples presented within the context (the prompt) at inference time, without updating any parameters (Wei et al., 2022a). This paradigm has significantly improved the capabilities of LLMs across various tasks. Many studies have explored the reasons behind such improvements, examining aspects like Bayesian optimization and the difficulty of demonstrations (Xie et al., 2022; Min et al., 2022; Liu et al., 2022; Yoo et al., 2022).
|
| 48 |
+
|
| 49 |
+
Prompt engineering plays a pivotal role in facilitating ICL. It entails the design of prompts that arm the LLM with the essential information needed to learn and adeptly perform the new task. Each prompt essentially sets the stage for the LLM, enclosing the task's requirements and guiding the model towards producing the desired output. By carefully crafting prompts, it is possible to leverage the inherent capability of LLMs, enabling them to tackle a wide range of tasks even with limited or no prior explicit training on those tasks. Recently, methods such as Chain-of-Thought (CoT), Zero-CoT, Self-Consistency, Program-Aided, and Few-Shot Prompting have been demonstrated to be effective (Wei et al., 2022c; Kojima et al., 2022; Wang et al., 2022; Gao et al., 2023; Reynolds & McDonell, 2021).
|
| 50 |
+
|
| 51 |
+
Automatic Prompt Engineering The existing methodologies for automating discrete prompt optimization have their roots in instruction induction, as discussed by Honovich et al. 2022. It was discovered that LLMs can generate natural language instructions based on a small number of input-output pair examples. Building on this, Zhou et al. (2022) proposed a new algorithm for the automatic generation and selection of instructions for LLMs. The algorithm, named Automatic Prompt Engineer (APE), is capable of generating prompts that achieve human-level performance across a diverse range of NLP tasks. Work has also been done on automating prompt generation for specific domains like code generation, as discussed in Shrivastava et al. 2023.
|
| 52 |
+
|
| 53 |
+
# 3 ITERATIVE REVIEWER-AUTHOR PROMPT EDITING
|
| 54 |
+
|
| 55 |
+
# 3.1 OVERVIEW
|
| 56 |
+
|
| 57 |
+
In Evoke, the same LLM plays two different roles: an author (LLM-Author) that is in charge of editing and refine prompts, and a reviewer (LLM-Reviewer) that is in charge of scoring the refined prompts. We use two different prompts for the author's and the reviewer's task.
|
| 58 |
+
|
| 59 |
+
$\diamond$ LLM-Author edits and generates new prompts based on feedback from LLM-Reviewer. The prompt for LLM-Author consists of several components:
|
| 60 |
+
|
| 61 |
+
a Input for editing: Current task instruction to be refined and training data;
|
| 62 |
+
b Instruction for editing: "We've provided pairs consisting of inputs, the teacher's correct answers, and the students' responses. Please review the incorrect responses from the stu
|
| 63 |
+
|
| 64 |
+
Algorithm 1: Evoke
|
| 65 |
+
Return: The prompt with the highest task accuracy.
|
| 66 |
+
Require: Training set; Initial prompt for the target task (i.e., the one we want to refine).
|
| 67 |
+
// Initialization
|
| 68 |
+
LLM-Selector: Initialize data scoring instruction.
|
| 69 |
+
LLM-Author: Initialize prompt editing instruction.
|
| 70 |
+
LLM-Review: Initialize prompt reviewing instruction.
|
| 71 |
+
while $t \leq T$ do
|
| 72 |
+
// LLM-Selector
|
| 73 |
+
Assign difficulty scores for each data point in the training set.
|
| 74 |
+
Select a training subset based on the difficulty level.
|
| 75 |
+
// LLM-Author
|
| 76 |
+
LLM-Author generates multiple prompts based on the training data and its own memory.
|
| 77 |
+
// LLM-Reviewer
|
| 78 |
+
LLM-Reviewer scores the quality of each generated prompt from LLM-Author based on its own memory.
|
| 79 |
+
Select top-n prompts based on the generated scores from LLM-Reviewer.
|
| 80 |
+
Get task accuracy for all prompts.
|
| 81 |
+
// Memory update
|
| 82 |
+
Memory of LLM-Author appends ( edits, scores).
|
| 83 |
+
Memory of LLM-Reviewer appends ( edits, prompts, task accuracy).
|
| 84 |
+
|
| 85 |
+
dents and summarize key points that could be adjusted in the instruction to enhance student accuracy. Highlight major edits and present the updated task instruction."
|
| 86 |
+
|
| 87 |
+
c Memory: prior history ( edits, scores).
|
| 88 |
+
|
| 89 |
+
LLM-Author refines the instructions (prompts for the given task) by utilizing the training data and a memory component. We note that the memory consists of all prior (edit, score) pairs, where the score comes from LLM-Reviewer. This memory component enables LLM-Author to execute increasingly effective edits, drawing upon feedback from previous edits.
|
| 90 |
+
|
| 91 |
+
$\diamond$ LLM-Reviewer scores the quality of prompts generated by LLM-Author. The input prompt for LLM-Reviewer consists of several components:
|
| 92 |
+
|
| 93 |
+
a Input for scoring: problem description and current instruction from LLM-Author;
|
| 94 |
+
b Instruction for scoring: "Please rate the following instruction on a scale of 1 to 10, where 10 represents the highest level of clarity in problem description, execution steps, and a comprehensive explanation of the problem."
|
| 95 |
+
c Memory: prior ( edits, instructions, task accuracy).
|
| 96 |
+
|
| 97 |
+
The instructions generated by LLM-Author are forwarded to LLM-Reviewer for evaluation. Based on the scores generated by LLM-Reviewer, only a subset of high-scoring candidates is selected to move on to the subsequent iteration. Through this iterative editing process between LLM-Author and LLM-Reviewer, LLM-Author can refine instructions in each iteration. Details of the algorithm can be found in Algorithm 1.
|
| 98 |
+
|
| 99 |
+
To illustrate the effectiveness of Evoke, first three edits from the Movie Recommendation task in Big Bench are presented in Figure 3. To start with, the prompt contains the basic task instruction. Next, it extracts key factors considered in movie recommendation, such as the genre of each movie, the distance between the given movies and the movies the user has watched before, and the popularity of the movies. In the final step, a well-explained example is presented with a detailed explanation following aforementioned factors. In summary, Evoke successfully concludes the key components of movie recommendation, and curates a demonstration with detailed explanation.
|
| 100 |
+
|
| 101 |
+
# 3.2 DATA SELECTION VIA LLM-SELECTOR
|
| 102 |
+
|
| 103 |
+
In practice, we find that not all samples are equally important to model performance (see Figure 10). In particular, we find that even without prompt refinement, the LLM already knows how to solve
|
| 104 |
+
|
| 105 |
+
# Step 1:
|
| 106 |
+
|
| 107 |
+
Given user's interest in movies he watched previously: \{'watched\} Now given four different movies from A to D, please recommend one that might be the most interest of the user. Options: \{'list\}
|
| 108 |
+
|
| 109 |
+
# Step 2:
|
| 110 |
+
|
| 111 |
+
# {Prompt from Step 1}
|
| 112 |
+
|
| 113 |
+
To help you make a good recommendation, consider the following factors:
|
| 114 |
+
|
| 115 |
+
- The genre, theme, and tone of the movies.
|
| 116 |
+
- The similarity or difference between the movies and the ones the user watched before.
|
| 117 |
+
- The popularity, ratings, and reviews of the movies.
|
| 118 |
+
|
| 119 |
+
# Step 3:
|
| 120 |
+
|
| 121 |
+
# {Prompt from Step 2}
|
| 122 |
+
|
| 123 |
+
Example: If the user watched The Godfather, The Godfather Part II, and Goodfellas, and the options are A) The Departed, B) Scarface, C) The Irishman, and D) Casino, a possible answer is:
|
| 124 |
+
|
| 125 |
+
<Answer>A<Answer>
|
| 126 |
+
|
| 127 |
+
{detailed explanations}
|
| 128 |
+
|
| 129 |
+
Figure 3: Illustration of Prompt Editing for the first three steps in the Task of Movie Recommendation within Big Bench.
|
| 130 |
+
|
| 131 |
+
some "easier" cases. Therefore, we only use "hard" samples in each refinement iteration. Specifically, we assign a third role besides an author a reviewer to the LLM: a data selector. The LLM-Selector evaluates the difficulty level (on a scale of 1 to 10) of each data point by assessing, based on the current task instruction, how challenging it is to derive the correct answer from the input. The input prompt for LLM-Selector consists of several components:
|
| 132 |
+
|
| 133 |
+
a Input for evaluating difficulty level: current instruction and input-output pair;
|
| 134 |
+
b Instruction for evaluating difficulty level: "As an experienced teacher with insight into the various levels of difficulty of exam questions, please rate the following question on a scale of 1 to 10, considering factors such as conceptual understanding, application of knowledge, problem-solving skills, time required, clarity of language, and accessibility, where 1 denotes extremely easy and 10 denotes extremely difficult."
|
| 135 |
+
|
| 136 |
+
Empirically, we can further improve effectiveness of Evoke by using such a data selection strategy.
|
| 137 |
+
|
| 138 |
+
# 4 EXPERIMENTS
|
| 139 |
+
|
| 140 |
+
We conduct extensive experiments to demonstrate the effectiveness of Evoke. We show that for any given task, the prompts generated by Evoke include clear definitions and well-structured task execution steps. Moreover, these prompts feature demonstrations accompanied by detailed explanations. In all experiments, we utilize the Azure OpenAI API service (GPT-4) for the involved LLMs.
|
| 141 |
+
|
| 142 |
+
# 4.1 MAIN RESULTS
|
| 143 |
+
|
| 144 |
+
Datasets. We perform a comprehensive evaluation on eight tasks from Instruction Induction (Honovich et al., 2022) and Big Bench Instruction Induction (BBII) (Zhou et al., 2022), including
|
| 145 |
+
|
| 146 |
+
orthography starts with: Extract the words starting with a given letter from the input sentence.
|
| 147 |
+
|
| 148 |
+
common concept: Find a common characteristic for the given objects.
|
| 149 |
+
|
| 150 |
+
rhymes: Write a word that rhymes with the input word.
|
| 151 |
+
|
| 152 |
+
movie recommendation: Recommend movies similar to the given list of movies.
|
| 153 |
+
|
| 154 |
+
logical fallacy detection: Detect informal and formal logical fallacies.
|
| 155 |
+
|
| 156 |
+
presuppositions as nli: Determine whether the first sentence entails or contradicts the second.
|
| 157 |
+
|
| 158 |
+
winowhy: Evaluate the reasoning in answering Winograd Schema Challenge questions.
|
| 159 |
+
|
| 160 |
+
epistemic reasoning: Determine whether one sentence entails the next.
|
| 161 |
+
|
| 162 |
+
These tasks covers a wide range of natural language understanding, reasoning and inference tasks. For each task, we divide the dataset randomly into two sets, $60\%$ of the data is allocated for training (prompt refinement) and the remaining $40\%$ is for testing (prompt evaluation).
|
| 163 |
+
|
| 164 |
+
Baselines. We compare our methods against two baselines: human curated prompts (Human) from Honovich et al. (2022); Suzgun et al. (2022) and automatic prompt engineer (APE) proposed in (Zhou et al., 2022). APE first deduces an initial prompt from input-output pairs, and subsequently employs LLMs to refine and generate new prompt candidates. However, prompts are simply paraphrased during the refinement process of APE, which largely resembles random searching in the space of all possible prompts.
|
| 165 |
+
|
| 166 |
+
Main Results. Figure 4 demonstrates experimental results. We observe that Evoke outperforms all the baselines in all eight tasks. For example, on the challenging logical fallacy detection task from BBII, performance of Evoke is more than 80, while performance of both APE and Human are below 20. This is because Evoke is adept at conceptualizing the core definition of a task, decomposing a complex task into smaller subtasks, and curating relevant demonstrations accompanied by detailed explanations. To demonstrate the power of Evoke, we show the generated prompt for logical fallacy detection in Table 1. We see that the prompt begins with a clear task introduction and objective, followed by a fine-grained definition of logical fallacy. It then articulates the criteria for evaluation and the task steps to follow. Lastly, it provides a list of common logical fallacies, each accompanied by a detailed description. Additionally, a well-structured prompt for epistemic reasoning is presented in Table 2.
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 4: Results on eight tasks from the Instruction Induction and the Big Bench Instruction Induction datasets. We report the average accuracy over three runs.
|
| 170 |
+
|
| 171 |
+

|
| 172 |
+
|
| 173 |
+
# 4.2 TOWARDS ADVERSARIAL ROBUSTNESS
|
| 174 |
+
|
| 175 |
+
Despite their superior performance, LLMs are not robust to adversarial attacks (Wang et al., 2023). For example, when asking GPT-4 whether "pretty" is a positive word, the model can output the correct answer. However, if we ask whether "pretty", a clear typo of "pretty", is a positive word, the LLM outputs an opposite answer. We show that Evoke can generate prompts which alert the LLM in paying attention to potential typos, and thus can improve model robustness.
|
| 176 |
+
|
| 177 |
+
Datasets. We adopt two datasets: SST-2 (Socher et al., 2013) is a sentiment classification task, where we need to decide whether a movie review is positive or negative; and QQP (Wang et al., 2019) is a task where we need to determine whether two sentences are paraphrases of each other.
|
| 178 |
+
|
| 179 |
+
To evaluate whether Evoke can improve LLMs' robustness, we add typos to the datasets. Specifically, we perform character-level adversarial attacks for each sam
|
| 180 |
+
|
| 181 |
+
ple. In the attack, we change at most one character in each word, and we change at most 4 words in each sentence (Jones et al., 2020). In this way, the constructed adversarial texts are human-
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
Figure 5: Results on clean and adversarially attacked SST2 and QQP datasets. We report the average accuracy over three runs. We note that RobEnc is only applied to the attacked data.
|
| 185 |
+
|
| 186 |
+
Table 1: Prompt generated by Evoke for logical fallacy detection.
|
| 187 |
+
|
| 188 |
+
<table><tr><td>Prompt from Evoke</td><td>Breakdown</td></tr><tr><td>In this task, you are required to identify both informal and formal logical fallacies in the provided input statements. Your response should be a binary value: return 1 if the query is logically valid (i.e., free from any logical fallacies), and return 0 if the query is logically invalid (i.e., contains at least one logical fallacy).</td><td>Introduction and objective</td></tr><tr><td>A logical fallacy refers to an error in reasoning. Informal fallacies are often content-dependent, such as appealing to irrelevant authority or making hasty generalizations. Formal fallacies, on the other hand, are structural errors in reasoning that occur regardless of the content.</td><td>Definition of logical fallacy</td></tr><tr><td>It is crucial to consider the structure and the substance of the argument, evaluating whether the conclusions follow logically from the premises, and whether the premises and assumptions are factual and valid. Be cautious not to let personal beliefs interfere with your analysis.</td><td>Evaluation criteria</td></tr><tr><td>For each given pair, compare the input statement against the principles of logical reasoning, to determine whether it contains a logical fallacy or not. Ensure your answer reflects the presence or absence of logical fallacies, thus determining the logical validity or invalidity of the statement.</td><td>Task steps</td></tr><tr><td>Here are some common examples of logical fallacies:
|
| 189 |
+
- Ad Hominem: {details}
|
| 190 |
+
- Appeal to Nature: {details}
|
| 191 |
+
- Hasty Generalization: {details}
|
| 192 |
+
- Post Hoc: {details}
|
| 193 |
+
- False Cause: {details}</td><td>Common examples of logical fallacy</td></tr></table>
|
| 194 |
+
|
| 195 |
+
Table 2: Prompt generated by Evoke for epistemic reasoning.
|
| 196 |
+
|
| 197 |
+
<table><tr><td>Prompt from Evoke</td><td>Breakdown</td></tr><tr><td>In this task, your goal is to determine whether the statement in the “Hypothesis” logically follows from the statement in the “Premise.” This is known as entailment. If the “Hypothesis” statement is a logical consequence of the “Premise” statement, then it is an entailment. If it is not, then it is a non-entailment.</td><td>Introduction and objective</td></tr><tr><td>-Make sure to carefully consider the relations and assumptions mentioned in both the “Premise” and the “Hypothesis” statements.-The entailment does not depend on the truth of the statements, but rather whether the logic in the “Hypothesis” follows from the “Premise”.-Pay close attention to the wording and structure of the sentences to analyze whether one entails the other.</td><td>Guidelines</td></tr><tr><td>Examples:EntailmentPremise: The sun rises in the east.Hypothesis: The sun rises.Explanation: The Hypothesis is a simplified version of the Premise and does not introduce any new information or contradictions, hence it's an entailment.Non-entailmentPremise: Sarah believes that all cats are black.Hypothesis: All cats are black. Explanation: Even though the Hypothesis is expressed in the Premise, it's tied to Sarah's belief and not presented as a fact, hence it's a non-entailment.</td><td>Examples</td></tr><tr><td>Now, review the provided pairs of statements. Determine if the Hypothesis logically follows from the Premise and respond with either entailment or non-entailment.</td><td>Task Execution</td></tr></table>
|
| 198 |
+
|
| 199 |
+
interpretable and simulate real typos. As an example, one sample from SST-2 is "that's pure pr hype", and its corresponding adversarial (corrupted) sample after the attack is "tha'cs pure pr hyp". We evaluate performance of different prompting methods on the corrupted samples.
|
| 200 |
+
|
| 201 |
+
Baselines. Besides APE and Evoke, we evaluate another model: RobEnc (Jones et al., 2020), which is a widely-used rule-based defense approach. RobEnc works as a clustering denoiser to cluster and
|
| 202 |
+
|
| 203 |
+
# APE
|
| 204 |
+
|
| 205 |
+
Provided with a user query, please conduct a sentiment analysis. In this analysis, a score of 0 represents negative sentiment, while a score of 1 represents positive sentiment. Ensure to carefully check for any typos before providing a response.
|
| 206 |
+
|
| 207 |
+
# Evoke
|
| 208 |
+
|
| 209 |
+
Now given a user query, please do a sentiment analysis where 0 represents negative sentiment and 1 represents positive sentiment. Please note that the input may contain typos. These are not intentional and do not reflect the user's actual sentiment. You should try to correct the typos or infer the intended meaning from the context before assigning a sentiment score.
|
| 210 |
+
|
| 211 |
+
For example, `to merely badv trather than painfully awfl` could be corrected to `to merely bad rather than painfully awful' and scored as 0. Similarly, `l comelling mobion` could be corrected to `a compelling motion` and scored as 1.
|
| 212 |
+
|
| 213 |
+
denoise potentially corrupted inputs into an encoding, and then the denoised encoding is fed to the subsequent model (e.g., GPT-4) for inference. RobEnc learns rule-based word cluster for denoising: for example, if the word "hallo" is clustered around the word "hello", then all the "hallo" in the input will be converted to "hello".
|
| 214 |
+
|
| 215 |
+
Results. Figure 5 summarizes experimental results. We observe that Evoke significantly outperforms all the baselines in all the tasks. The performance gain is more significant for adversarially constructed datasets, e.g., Adversarial-SST2 and Adversarial-QQP. To understand this, we show the prompts generated by APE and Evoke in Figure 6. We see that although the prompt from APE provides a clear instruction regarding the given task and acknowledges the existence of typos, it does not provide clear guidelines on how to address the typo. On the other hand, the prompt from Evoke provides detailed explanations and actionable suggestions about defending against typos.
|
| 216 |
+
|
| 217 |
+
# 4.3 TOWARDS FINE-GRAINED TASKS: NAMED ENTITY RECOGNITION
|
| 218 |
+
|
| 219 |
+
Tasks in Figure 4 and Figure 5 are all sentence-level classification tasks, e.g., deciding whether a sentence is of positive or negative sentiment. In this section, we investigate whether Evoke can handle more fine-grained tasks, such as token-level named entity recognition (Schneider et al., 2020; Zuo et al., 2023).
|
| 220 |
+
|
| 221 |
+

|
| 222 |
+
Figure 7: Results of APE and Evoke on an in-house multi-lingual NER dataset.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
Figure 6: Prompts from APE and Evoke on adversarial attacked SST-2 task
|
| 226 |
+
Figure 8: Prompt from Evoke on the NER task.
|
| 227 |
+
|
| 228 |
+
We collect multi-lingual in-house query data from a search engine, and for each token in the query, our goal is to assign the token to a pre-defined class (e.g., brand, location).
|
| 229 |
+
|
| 230 |
+
We illustrate results of Evoke on the fine-grained NER task in Figure 7. We see that Evoke significantly outperforms APE on all the languages. We further show the prompt generated by Evoke in Figure 8. From the prompt, we see that Evoke is able to automatically generate examples and explanations about the task.
|
| 231 |
+
|
| 232 |
+

|
| 233 |
+
|
| 234 |
+

|
| 235 |
+
Figure 9: Correlation between scores generated by LLM-Reviewer and task accuracy.
|
| 236 |
+
|
| 237 |
+

|
| 238 |
+
|
| 239 |
+

|
| 240 |
+
Figure 10: Task accuracy over the number of iteration steps.
|
| 241 |
+
|
| 242 |
+
# 4.4 ANALYSIS
|
| 243 |
+
|
| 244 |
+
LLM-Reviewer can judge the quality of prompts. Recall that in Evoke, LLM-Reviewer scores all the prompts generated by LLM-Author. We empirically show that the scores can reflect the quality of the generated prompts. To examine the effectiveness of these scores, we illustrate the relationship between the scores and the task accuracy in Figure 9. In the experiments, we consider two tasks: Adversarial-SST2 and Common-Concept. From the results, we see that the scores can indeed reflect the final task accuracy. For example, for Common-Concept, we see that the task accuracy is about $5\%$ when the prompt score is 6, and the task accuracy increases to about $17\%$ when the prompt score increases to 7. A similar trend is also revealed on the Adversarial-SST2 task. We see that when the score is 7.5, the final task accuracy barely reaches $75\%$ . And when the score increases to 8, the task accuracy increases to $85\%$ .
|
| 245 |
+
|
| 246 |
+
LLM-Author iteratively improves prompt generation. In Evoke, because LLM-Author takes the feedback from LLM-Reviewer into consideration, it can iteratively improve the generated prompt. We demonstrate this in Figure 10 (the left-most orange bars). From the results, we see that indeed the final task accuracy continues to increase when we increase the number of iteration steps. For example, on Adversarial-SST2, with one refinement iteration, the final task accuracy is about $75\%$ . When we increase the number of refinement iterations to 3, we see that task accuracy significantly increases to above $90\%$ .
|
| 247 |
+
|
| 248 |
+
Effectiveness of LLM-Selector. Recall that in Evoke, we only consider the "hard" samples in each iteration. We demonstrate the effectiveness of such a strategy in Figure 10. We consider three settings: Hard is the strategy that we adopt in Evoke; Random is when we randomly select samples instead of selecting based on a score; and Easy is when we select the easy samples instead of the hard ones. From the results, we see that on both Common-Concept and Adversarial SST-2, Easy yields the worst performance, indicating that the hard samples are more helpful than the easy ones. Moreover, we observe that performance of Random is worse than Hard (i.e., Evoke), further implying the effectiveness of the proposed data selection strategy.
|
| 249 |
+
|
| 250 |
+
# 5 CONCLUSION
|
| 251 |
+
|
| 252 |
+
We propose Evoke, an author-reviewer framework for automatic prompt engineering. In Evoke, the same LLM serves two roles: as a reviewer it scores the quality of the prompt; and as an author it refines the prompt, taking the feedback of the reviewer into account. We further propose a data selection strategy, where we only expose the hard samples to the model. Extensive experiments show that Evoke outperforms existing automatic prompt engineering approaches.
|
| 253 |
+
|
| 254 |
+
# REFERENCES
|
| 255 |
+
|
| 256 |
+
Sebastien Bubeck, Varun Chandrasekaran, Ronen Eldan, Johannes Gehrke, Eric Horvitz, Ece Kamar, Peter Lee, Yin Tat Lee, Yuanzhi Li, Scott Lundberg, et al. Sparks of artificial general intelligence: Early experiments with gpt-4. ArXiv preprint, abs/2303.12712, 2023.
|
| 257 |
+
Mark Chen, Jerry Tworek, Heewoo Jun, Qiming Yuan, Henrique Ponde de Oliveira Pinto, Jared Kaplan, Harri Edwards, Yuri Burda, Nicholas Joseph, Greg Brockman, et al. Evaluating large language models trained on code. ArXiv preprint, abs/2107.03374, 2021.
|
| 258 |
+
Tim Dettmers, Artidoro Pagnoni, Ari Holtzman, and Luke Zettlemoyer. Qlora: Efficient finetuning of quantized llms. ArXiv preprint, abs/2305.14314, 2023.
|
| 259 |
+
Yuqing Du, Olivia Watkins, Zihan Wang, Cédric Colas, Trevor Darrell, Pieter Abbeel, Abhishek Gupta, and Jacob Andreas. Guiding pretraining in reinforcement learning with large language models, 2023.
|
| 260 |
+
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, 2023.
|
| 261 |
+
Or Honovich, Uri Shaham, Samuel R Bowman, and Omer Levy. Instruction induction: From few examples to natural language task descriptions. ArXiv preprint, abs/2205.10782, 2022.
|
| 262 |
+
Edward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu, Yanzhi Li, Shean Wang, Lu Wang, and Weizhu Chen. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022.
|
| 263 |
+
Jie Huang and Kevin Chen-Chuan Chang. Towards reasoning in large language models: A survey. ArXiv preprint, abs/2212.10403, 2022.
|
| 264 |
+
Erik Jones, Robin Jia, Aditi Raghunathan, and Percy Liang. Robust encodings: A framework for combating adversarial typos. In Proceedings of the 58th Annual Meeting of the Association for Computational Linguistics, pp. 2752-2765, Online, 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.acl-main.245.
|
| 265 |
+
Takeshi Kojima, Shixiang Shane Gu, Machel Reid, Yutaka Matsuo, and Yusuke Iwasawa. Large language models are zero-shot reasoners. Advances in neural information processing systems, 35:22199-22213, 2022.
|
| 266 |
+
Jiachang Liu, Dinghan Shen, Yizhe Zhang, Bill Dolan, Lawrence Carin, and Weizhu Chen. What makes good in-context examples for GPT-3? In Proceedings of Deep Learning Inside Out (DeeLIO 2022): The 3rd Workshop on Knowledge Extraction and Integration for Deep Learning Architectures, pp. 100–114, Dublin, Ireland and Online, 2022. Association for Computational Linguistics. doi: 10.18653/v1/2022.deelio-1.10.
|
| 267 |
+
Sewon Min, Xinxi Lyu, Ari Holtzman, Mikel Artetxe, Mike Lewis, Hannaneh Hajishirzi, and Luke Zettlemoyer. Rethinking the role of demonstrations: What makes in-context learning work? In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 11048-11064, Abu Dhabi, United Arab Emirates, 2022. Association for Computational Linguistics.
|
| 268 |
+
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.
|
| 269 |
+
Laria Reynolds and Kyle McDonell. Prompt programming for large language models: Beyond the few-shot paradigm. In *Extended Abstracts of the 2021 CHI Conference on Human Factors in Computing Systems*, pp. 1-7, 2021.
|
| 270 |
+
|
| 271 |
+
Sami Sarsa, Paul Denny, Arto Hellas, and Juho Leinonen. Automatic generation of programming exercises and code explanations using large language models. In Proceedings of the 2022 ACM Conference on International Computing Education Research-Volume 1, pp. 27-43, 2022.
|
| 272 |
+
Elisa Terumi Rubel Schneider, João Vitor Andrioli de Souza, Julien Knafou, Lucas Emanuel Silva e Oliveira, Jenny Copara, Yohan Bonescki Gumiel, Lucas Ferro Antunes de Oliveira, Emerson Cabrera Paraiso, Douglas Teodoro, and Cláudia Maria Cabral Moro Barra. BioBERTpt - a Portuguese neural language model for clinical named entity recognition. In Proceedings of the 3rd Clinical Natural Language Processing Workshop, pp. 65-72, Online, 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.clinicalnlp-1.7.
|
| 273 |
+
Taylor Shin, Yasaman Razeghi, Robert L. Logan IV, Eric Wallace, and Sameer Singh. *AutoPrompt: Eliciting Knowledge from Language Models with Automatically Generated Prompts*. In Proceedings of the 2020 Conference on Empirical Methods in Natural Language Processing (EMNLP), pp. 4222-4235, Online, 2020. Association for Computational Linguistics. doi: 10.18653/v1/2020.emnlp-main.346.
|
| 274 |
+
Disha Shrivastava, Hugo Larochelle, and Daniel Tarlow. Repository-level prompt generation for large language models of code. In International Conference on Machine Learning, pp. 31693-31715. PMLR, 2023.
|
| 275 |
+
Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Ng, and Christopher Potts. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pp. 1631-1642, Seattle, Washington, USA, 2013. Association for Computational Linguistics.
|
| 276 |
+
Mirac Suzgun, Nathan Scales, Nathanael Scharli, Sebastian Gehrmann, Yi Tay, Hyung Won Chung, Aakanksha Chowdhery, Quoc V Le, Ed H Chi, Denny Zhou, et al. Challenging big-bench tasks and whether chain-of-thought can solve them. ArXiv preprint, abs/2210.09261, 2022.
|
| 277 |
+
Arun James Thirunavukarasu, Darren Shu Jeng Ting, Kabilan Elangovan, Laura Gutierrez, Ting Fang Tan, and Daniel Shu Wei Ting. Large language models in medicine. Nature medicine, pp. 1-11, 2023.
|
| 278 |
+
Alex Wang, Amanpreet Singh, Julian Michael, Felix Hill, Omer Levy, and Samuel R. Bowman. GLUE: A multi-task benchmark and analysis platform for natural language understanding. In 7th International Conference on Learning Representations, ICLR 2019, New Orleans, LA, USA, May 6-9, 2019. OpenReview.net, 2019.
|
| 279 |
+
Jindong Wang, Xixu Hu, Wenxin Hou, Hao Chen, Runkai Zheng, Yidong Wang, Linyi Yang, Haojun Huang, Wei Ye, Xiubo Geng, et al. On the robustness of chatgpt: An adversarial and out-of-distribution perspective. ArXiv preprint, abs/2302.12095, 2023.
|
| 280 |
+
Xuezhi Wang, Jason Wei, Dale Schuurmans, Quoc Le, Ed Chi, Sharan Narang, Aakanksha Chowdhery, and Denny Zhou. Self-consistency improves chain of thought reasoning in language models. ArXiv preprint, abs/2203.11171, 2022.
|
| 281 |
+
Jason Wei, Maarten Bosma, Vincent Y. Zhao, Kelvin Guu, Adams Wei Yu, Brian Lester, Nan Du, Andrew M. Dai, and Quoc V. Le. Finetuned language models are zero-shot learners. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022a.
|
| 282 |
+
Jason Wei, Yi Tay, Rishi Bommasani, Colin Raffel, Barret Zoph, Sebastian Borgeaud, Dani Yogatama, Maarten Bosma, Denny Zhou, Donald Metzler, et al. Emergent abilities of large language models. ArXiv preprint, abs/2206.07682, 2022b.
|
| 283 |
+
Jason Wei, Xuezhi Wang, Dale Schuurmans, Maarten Bosma, Fei Xia, Ed Chi, Quoc V Le, Denny Zhou, et al. Chain-of-thought prompting elicits reasoning in large language models. Advances in Neural Information Processing Systems, 35:24824-24837, 2022c.
|
| 284 |
+
Jules White, Quchen Fu, Sam Hays, Michael Sandborn, Carlos Olea, Henry Gilbert, Ashraf Elnashar, Jesse Spencer-Smith, and Douglas C Schmidt. A prompt pattern catalog to enhance prompt engineering with chatgpt. ArXiv preprint, abs/2302.11382, 2023.
|
| 285 |
+
|
| 286 |
+
Sang Michael Xie, Aditi Raghunathan, Percy Liang, and Tengyu Ma. An explanation of in-context learning as implicit bayesian inference. In The Tenth International Conference on Learning Representations, ICLR 2022, Virtual Event, April 25-29, 2022. OpenReview.net, 2022.
|
| 287 |
+
Kang Min Yoo, Junyeob Kim, Hyuhng Joon Kim, Hyunsoo Cho, Hwiyeol Jo, Sang-Woo Lee, Sanggoo Lee, and Taeuk Kim. Ground-truth labels matter: A deeper look into input-label demonstrations. In Proceedings of the 2022 Conference on Empirical Methods in Natural Language Processing, pp. 2422-2437, Abu Dhabi, United Arab Emirates, 2022. Association for Computational Linguistics.
|
| 288 |
+
Biao Zhang, Barry Haddow, and Alexandra Birch. Prompting large language model for machine translation: A case study. ArXiv preprint, abs/2301.07069, 2023.
|
| 289 |
+
Yongchao Zhou, Andrei Ioan Muresanu, Ziwen Han, Keiran Paster, Silviu Pitis, Harris Chan, and Jimmy Ba. Large language models are human-level prompt engineers. ArXiv preprint, abs/2211.01910, 2022.
|
| 290 |
+
Simiao Zuo, Pengfei Tang, Xinyu Hu, Qiang Lou, Jian Jiao, and Denis Charles. Deeptagger: Knowledge enhanced named entity recognition for web-based ads queries. ArXiv preprint, abs/2306.17413, 2023.
|
| 291 |
+
|
| 292 |
+
# A INSTRUCTION INDUCTION
|
| 293 |
+
|
| 294 |
+
In Evoke, we use the author-reviewer framework to modify a task-specific prompt. In the experiments, we use an off-the-shelf algorithm to generate the initial task-specific prompt. Table 3 demonstrates examples of using instruction induction (Honovich et al., 2022) for prompt initialization.
|
| 295 |
+
|
| 296 |
+
Table 3: Three examples of instruction inferred from input-output pairs
|
| 297 |
+
|
| 298 |
+
<table><tr><td>Input</td><td>Output</td><td>Inferred Instruction</td></tr><tr><td>Departure</td><td>Arrival</td><td>Get antonym</td></tr><tr><td>I am Mike</td><td>Ich ben Mike</td><td>Translate to German</td></tr><tr><td>Build</td><td>Built</td><td>Get passive voice of the given verb</td></tr></table>
|
| 299 |
+
|
| 300 |
+
# B PROMPTS OF LLM ROLES IN EVOKE
|
| 301 |
+
|
| 302 |
+
# B.1 LLM-REVIEWER
|
| 303 |
+
|
| 304 |
+
# Prompt for LLM-Reviewer
|
| 305 |
+
|
| 306 |
+
As an experienced teacher, you are well-versed in discerning effective instruction that guides students toward correct answers. Please rate the following instruction on a scale of 1 to 10, where 10 represents the highest level of clarity in problem description, execution steps, and a comprehensive explanation of the problem.
|
| 307 |
+
|
| 308 |
+
The task at hand is titled: {description}
|
| 309 |
+
|
| 310 |
+
History that may help you: {memory}
|
| 311 |
+
|
| 312 |
+
The instruction to be rated is as follows: {instruction}
|
| 313 |
+
|
| 314 |
+
Kindly provide your rating below.
|
| 315 |
+
|
| 316 |
+
# B.2 LLM-AUTHOR
|
| 317 |
+
|
| 318 |
+
# Prompt for LLM-Author
|
| 319 |
+
|
| 320 |
+
Task Instruction: {instruction}
|
| 321 |
+
|
| 322 |
+
We've provided pairs consisting of inputs, the teacher's correct answers, and the students' responses. Please review the incorrect responses from the students and summarize key points that could be adjusted in the instruction to enhance student accuracy.
|
| 323 |
+
|
| 324 |
+
Pairs: {pairs}
|
| 325 |
+
|
| 326 |
+
History that may help you: {memory}
|
| 327 |
+
|
| 328 |
+
To improve the outcome, please revise the task instruction. Highlight major edits and present the updated task instruction.
|
| 329 |
+
|
| 330 |
+
# B.3 LLM-SELECTOR
|
| 331 |
+
|
| 332 |
+
# Prompt for LLM-Selector
|
| 333 |
+
|
| 334 |
+
As an experienced teacher with insight into the various levels of difficulty of exam questions, please rate the following question on a scale of 1 to 10, considering factors such as conceptual understanding, application of knowledge, problem-solving skills, time required, clarity of language, and accessibility, where 1 denotes extremely easy and 10 denotes extremely difficult.
|
| 335 |
+
|
| 336 |
+
Task instruction: {instruction}
|
| 337 |
+
|
| 338 |
+
Input: {input}
|
| 339 |
+
|
| 340 |
+
Correct answer: {answer}
|
| 341 |
+
|
| 342 |
+
# C GENERATED INSTRUCTIONS
|
| 343 |
+
|
| 344 |
+
We include generated instructions from all tasks below.
|
| 345 |
+
|
| 346 |
+
# C.1 ORTHOGRAPHY STARTS WITH
|
| 347 |
+
|
| 348 |
+
# Prompt from Evoke
|
| 349 |
+
|
| 350 |
+
Given an input sentence and a specified letter, identify the word or words starting with the given letter. If there are two or more words in a sequence starting with the specified letter, include all of them as a single answer. Ensure to present the word or group of words.
|
| 351 |
+
|
| 352 |
+
Here are the steps to follow:
|
| 353 |
+
-Read the provided input sentence carefully.
|
| 354 |
+
-Identify the word or words that start with the specified letter.
|
| 355 |
+
-If there are consecutive words starting with the specified letter, group them together as one entity.
|
| 356 |
+
-For example, if the input is "I prefer eating apples." and the specified letter is [e], your answer should be eating.
|
| 357 |
+
|
| 358 |
+
# C.2 COMMON CONCEPT
|
| 359 |
+
|
| 360 |
+
# Prompt from Evoke
|
| 361 |
+
|
| 362 |
+
Given a list, find the commonality between the inputs. The commonality should be a meaningful characteristic, property, or relation that applies to all the inputs, not just a superficial or coincidental feature.
|
| 363 |
+
|
| 364 |
+
For example, can be used for repairs is a valid commonality for ['sewing', 'wrenches', 'glue', 'surgery'], but tools or skills for joining is too broad and vague, and contain the letter e is too trivial and irrelevant.
|
| 365 |
+
|
| 366 |
+
# C.3 RHYMES
|
| 367 |
+
|
| 368 |
+
# Prompt from Evoke
|
| 369 |
+
|
| 370 |
+
For this task, you are required to find a word that rhymes with the given word. The word you provide should not be the same as the given word, and should be a real, correctly spelled word from the English language. A rhyming word is defined as a word that has the last syllable sounding identical to the last syllable of the given word. For example, if the given word is "hat", a word that rhymes with it is "cat".
|
| 371 |
+
|
| 372 |
+
Here are the steps to complete this task:
|
| 373 |
+
|
| 374 |
+
1. Read the given word carefully.
|
| 375 |
+
2. Think of a word that has the same ending sound as the given word.
|
| 376 |
+
3. Ensure that the word you thought of is a real word, is spelled correctly, and is not the same as the given word.
|
| 377 |
+
4. Write down the rhyming word next to the given word.
|
| 378 |
+
Now, please proceed with finding a word that rhymes with each of the following words.
|
| 379 |
+
|
| 380 |
+
# C.4 MOVIE RECOMMENDATION
|
| 381 |
+
|
| 382 |
+
# Prompt from Evoke
|
| 383 |
+
|
| 384 |
+
Given user's interest in movies he watched previously: 'watched'. Now given four different movies from A to D, please recommend one that might be the most interest of the user.
|
| 385 |
+
|
| 386 |
+
To help you make a good recommendation, consider the following factors:
|
| 387 |
+
|
| 388 |
+
- The genre, theme, and tone of the movies. For example, if the user likes comedy, action, or drama.
|
| 389 |
+
- The similarity or difference between the movies and the ones the user watched before. For example, if the movies are part of a series, a remake, or a spin-off.
|
| 390 |
+
- The popularity, ratings, and reviews of the movies. For example, if the movies are critically acclaimed, award-winning, or have a large fan base.
|
| 391 |
+
|
| 392 |
+
Use these factors to compare and contrast the movies and explain why you think one of them is the best choice for the user. Do not just pick a movie based on your personal preference or guesswork. Example: If the user watched The Godfather, The Godfather Part II, and Goodfellas, and the options are A) The Departed, B) Scarface, C) The Irishman, and D) Casino, a possible answer is: A
|
| 393 |
+
|
| 394 |
+
The Departed is a crime thriller that has a similar genre, theme, and tone to the movies the user watched before. It is also a remake of a Hong Kong film called Infernal Affairs, which adds a twist to the familiar story of undercover agents and mobsters. The Departed is a highly popular and acclaimed movie that won four Oscars, including Best Picture and Best Director. It has a star-studded cast that includes Leonardo DiCaprio, Matt Damon, Jack Nicholson, and Mark Wahlberg. The user might enjoy the suspense, the plot twists, and the performances of the actors in this movie. Therefore, I recommend The Departed as the best option for the user.
|
| 395 |
+
|
| 396 |
+
# C.5 LOGICAL FALLACY DETECTION
|
| 397 |
+
|
| 398 |
+
# Prompt from Evoke
|
| 399 |
+
|
| 400 |
+
In this task, you are required to identify both informal and formal logical fallacies in the provided input statements. Your response should be a binary value: return 1 if the query is logically valid (i.e., free from any logical fallacies), and return 0 if the query is logically invalid (i.e., contains at least one logical fallacy). A logical fallacy refers to an error in reasoning. Informal fallacies are often content-dependent, such as appealing to irrelevant authority or making hasty generalizations. Formal fallacies, on the other hand, are structural errors in reasoning that occur regardless of the content. It is crucial to consider the structure and the substance of the argument, evaluating whether the conclusions follow logically from the premises, and whether the premises and assumptions are factual and valid. Be cautious not to let personal beliefs interfere with your analysis. For each given pair, compare the input statement against the principles of logical reasoning, to determine whether it contains a logical fallacy or not. Ensure your answer reflects the presence or absence of logical fallacies, thus determining the logical validity or invalidity of the statement. Here are some common examples of logical fallacies:
|
| 401 |
+
|
| 402 |
+
- Ad Hominem: Attacking the character of a person making an argument rather than the argument itself.
|
| 403 |
+
- Appeal to Nature: Claiming something is good because it's natural, or bad because it's unnatural.
|
| 404 |
+
- Hasty Generalization: Making a broad claim based on a small or unrepresentative sample size.
|
| 405 |
+
- Post Hoc: Assuming that because one event followed another, the first event caused the second event.
|
| 406 |
+
- False Cause: Assuming a false or misleading cause-and-effect relationship.
|
| 407 |
+
|
| 408 |
+
# C.6 PRESUPPOSITIONS AS NLI
|
| 409 |
+
|
| 410 |
+
# Prompt from Evoke
|
| 411 |
+
|
| 412 |
+
Determine whether the first sentence entails, contradicts, or is neutral to the second sentence. The term "entailment" means that the information in the first sentence logically supports or leads to the conclusion presented in the second sentence. The term "contradiction" means that the information in the first sentence logically opposes or dis proves the information in the second sentence. The term "neutral" implies that the information in the first sentence neither supports nor opposes the information in the second sentence; they are unrelated or the relation between them is ambiguous.
|
| 413 |
+
|
| 414 |
+
It's important to focus on the factual information provided rather than assumptions or external knowledge. Make sure to carefully read both sentences and analyze their logical relation based only on the given text.
|
| 415 |
+
|
| 416 |
+
Entailment: The information in the first sentence supports the conclusion in the second sentence.
|
| 417 |
+
|
| 418 |
+
Contradiction: The information in the first sentence opposes or disproves the information in the second sentence.
|
| 419 |
+
|
| 420 |
+
Neutral: The information in the first sentence neither supports nor opposes the information in the second sentence, or the relation between them is ambiguous.
|
| 421 |
+
|
| 422 |
+
For each pair, please provide the correct judgment between entailment, contradiction, and neutral, based only on the provided text. Please avoid assumptions and focus solely on the text provided.
|
| 423 |
+
|
| 424 |
+
# C.7 WINOWHY
|
| 425 |
+
|
| 426 |
+
# Prompt from Evoke
|
| 427 |
+
|
| 428 |
+
In the given text, you are required to evaluate the reasoning provided concerning the identification of the antecedent of a pronoun in a sentence. The antecedent is the noun that the pronoun is referring to. Carefully examine the reasoning to determine if it accurately identifies the antecedent based solely on the information presented within the sentence itself. Here are the steps you should follow: Read the sentence and the reasoning provided thoroughly.
|
| 429 |
+
|
| 430 |
+
-Assess whether the reasoning accurately identifies the antecedent of the pronoun based solely on the provided text. Avoid making assumptions or using external knowledge.
|
| 431 |
+
|
| 432 |
+
-If the reasoning correctly identifies the antecedent of the pronoun, based on the information given in the sentence.
|
| 433 |
+
|
| 434 |
+
-If the reasoning fails to accurately identify the antecedent of the pronoun or relies on assumptions or external information.
|
| 435 |
+
|
| 436 |
+
Remember,
|
| 437 |
+
|
| 438 |
+
Your evaluation should strictly be based on the information provided in the text.
|
| 439 |
+
|
| 440 |
+
Your goal is to assess the accuracy of the reasoning in identifying the antecedent of the pronoun.
|
| 441 |
+
|
| 442 |
+
# C.8 EPISTEMIC REASONING
|
| 443 |
+
|
| 444 |
+
# Prompt from Evoke
|
| 445 |
+
|
| 446 |
+
In this task, your goal is to determine whether the statement in the "Hypothesis" logically follows from the statement in the "Premise." This is known as entailment. If the "Hypothesis" statement is a logical consequence of the "Premise" statement, then it is an entailment. If it is not, then it is a non-entailment.
|
| 447 |
+
|
| 448 |
+
-Make sure to carefully consider the relations and assumptions mentioned in both the "Premise" and the "Hypothesis" statements.
|
| 449 |
+
|
| 450 |
+
- The entailment does not depend on the truth of the statements, but rather whether the logic in the "Hypothesis" follows from the "Premise".
|
| 451 |
+
|
| 452 |
+
-Pay close attention to the wording and structure of the sentences to analyze whether one entails the other.
|
| 453 |
+
|
| 454 |
+
Examples:
|
| 455 |
+
|
| 456 |
+
Entailment
|
| 457 |
+
|
| 458 |
+
Premise: The sun rises in the east. Hypothesis: The sun rises.
|
| 459 |
+
|
| 460 |
+
Explanation: The Hypothesis is a simplified version of the Premise and does not introduce any new information or contradictions, hence it's an entailment.
|
| 461 |
+
|
| 462 |
+
Non-entailment
|
| 463 |
+
|
| 464 |
+
Premise: Sarah believes that all cats are black.
|
| 465 |
+
|
| 466 |
+
Hypothesis: All cats are black. Explanation: Even though the Hypothesis is expressed in the Premise, it's tied to Sarah's belief and not presented as a fact, hence it's a non-entailment.
|
| 467 |
+
|
| 468 |
+
Now, review the provided pairs of statements. Determine if the Hypothesis logically follows from the Premise and respond with either entailment or non-entailment.
|
| 469 |
+
|
| 470 |
+
# C.9 ADVERSARIAL SST2
|
| 471 |
+
|
| 472 |
+
# Prompt from Evoke
|
| 473 |
+
|
| 474 |
+
Now given a user query, please do a sentiment analysis where 0 represents negative sentiment and 1 represents positive sentiment. Please note that the input may contain typos. These are not intentional and do not reflect the user's actual sentiment. You should try to correct the typos or infer the intended meaning from the context before assigning a sentiment score. For example, 'to merely badly trather than painfully awfl' could be corrected to 'to merely bad rather than painfully awful' and scored as 0. Similarly, '1 comelling mobion' could be corrected to 'a compelling motion' and scored as 1. Sentiment analysis.
|
| 475 |
+
|
| 476 |
+
# C.10 ADVERSARIAL QQP
|
| 477 |
+
|
| 478 |
+
# Prompt from Evoke
|
| 479 |
+
|
| 480 |
+
You will be given a pair of questions and asked to determine whether they are paraphrases of each other. Paraphrases are questions that have the same meaning or ask about the same information, even if they use different words or structures. Please answer with a binary value of 1 if the questions are paraphrases, or 0 if they are not. Please pay close attention to typos, spelling, grammar, and punctuation before answering, as they may affect the meaning of the questions. If you are not sure whether the questions are paraphrases or not, you can use some strategies to help you decide, such as:
|
| 481 |
+
|
| 482 |
+
- Compare the keywords and topics of the questions. Do they match or relate to each other? - Rewrite one question in a different way and see if it still conveys the same message as the other question. - Think about the context and purpose of the questions. Are they asking for the same type of information or response?
|
| 483 |
+
|
| 484 |
+
For example, the questions What is the capital of France? and Which city is the seat of the French government? are paraphrases, because they both ask about the same fact and can be answered with the same word (Paris). However, the questions How do you play the guitar? and What are some guitar chords? are not paraphrases, because they ask for different kinds of information and have different levels of specificity.
|
| 485 |
+
|
| 486 |
+
# D ADDITIONAL EXPERIMENTS
|
| 487 |
+
|
| 488 |
+
# D.1 INITIAL PROMPT
|
| 489 |
+
|
| 490 |
+
The influence of initial prompt quality on the efficacy of Evoke was an important aspect of our investigation. To thoroughly examine this, we conducted additional experiments using two alternative initial prompts: a task description and an empty string. As illustrated in Table below, Evoke's performance showed relative insensitivity to the quality of the initial prompt. These results, further underscore the robustness of our approach.
|
| 491 |
+
|
| 492 |
+

|
| 493 |
+
Figure 11: Comparison of different prompt initialization methods: The blue bar indicates that, on average, using a task description as the initialization prompt is more effective, while the orange bar suggests that an empty string performs on par with instruction induction on average.
|
| 494 |
+
|
| 495 |
+
# D.2 OPEN SOURCE MODELS
|
| 496 |
+
|
| 497 |
+
We expanded our experiment scope to include open source models Mistral-7B-Openorca and Llama2-70B-Instruct. Our findings reveal notable performance enhancements with these models, affirming the versatility and robustness of our Evoke framework beyond GPT-4.
|
| 498 |
+
|
| 499 |
+

|
| 500 |
+
Figure 12: Comparison of test accuracy on APE and Evoke for Mistral-7B-Openorca and Llama2-70B-Instruct: the Evoke prompt outperforms the baseline for both open source models.
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30696a572a2a922e5b56fa9e8f1defd1ebb4de58d1dca9dcb34dc679aeb79549
|
| 3 |
+
size 554338
|
2024/Evoke_ Evoking Critical Thinking Abilities in LLMs via Reviewer-Author Prompt Editing/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/94c63fa2-e4a3-4e09-9faf-173c86de7dce_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:edf7736220ab571d5a64e216bc0d5e6e454e5ab9563c20be23af0924721e1fe1
|
| 3 |
+
size 586886
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/full.md
ADDED
|
@@ -0,0 +1,629 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXPECTED FLOW NETWORKS IN STOCHASTIC ENVIRONMENTS AND TWO-PLAYER ZERO-SUM GAMES
|
| 2 |
+
|
| 3 |
+
Marco Jiralerspong*, Bilun Sun*, Danilo Vucetic*, Tianyu Zhang,
|
| 4 |
+
|
| 5 |
+
Yoshua Bengio $^{\diamond}$ , Gauthier Gidel $^{\dagger}$ , Nikolay Malkin
|
| 6 |
+
|
| 7 |
+
Mila - Quebec AI Institute, Université de Montréal
|
| 8 |
+
|
| 9 |
+
marco.jiralerspong,bilun.sun,danilo.vucetic,tianyu.zhang, @mila.quebec
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Generative flow networks (GFlowNets) are sequential sampling models trained to match a given distribution. GFlowNets have been successfully applied to various structured object generation tasks, sampling a diverse set of high-reward objects quickly. We propose expected flow networks (EFlowNets), which extend GFlowNets to stochastic environments. We show that EFlowNets outperform other GFlowNet formulations in stochastic tasks such as protein design. We then extend the concept of EFlowNets to adversarial environments, proposing adversarial flow networks (AFlowNets) for two-player zero-sum games. We show that AFlowNets learn to find above $80\%$ of optimal moves in Connect-4 via self-play and outperform AlphaZero in tournaments.
|
| 14 |
+
|
| 15 |
+
Code: https://github.com/GFNOrg/AdversarialFlowNetworks.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Generative flow networks (GFlowNets; Bengio et al., 2021; 2023; Lahlou et al., 2023) are a unifying algorithmic framework for training stochastic policies in Markov decision processes (MDPs; Sutton & Barto, 2018) to sample from a given distribution over terminal states. GFlowNets have been used as an efficient alternative to Monte Carlo methods for amortized sampling in applications that require finding diverse high-reward samples (Jain et al., 2022; Zhang et al., 2022; 2023a; Li et al., 2023, see §5). This paper revisits and extends the view of GFlowNets as diversity-seeking learners in MDPs, enabling the training of robust agents in stochastic environments and two-player adversarial games.
|
| 20 |
+
|
| 21 |
+
The main application of GFlowNets to date has been generation of structured objects $x \in \mathcal{X}$ – where $\mathcal{X}$ is the set of terminal states of an episodic MDP – given a reward function $R: \mathcal{X} \to \mathbb{R}_{>0}$ interpreted as an unnormalized density. The generation of $x$ follows a trajectory $s_0 \to s_1 \to \dots \to s_n = x$ , representing iterative construction or refinement (e.g., building a graph by adding one edge at a time). These settings assume that applying an action to a partially constructed object $s_i$ deterministically yields the object $s_{i+1}$ . It is natural to attempt to generalize the GFlowNet framework to stochastic environments, in which a given sequence of actions does not always produce the same final state.
|
| 22 |
+
|
| 23 |
+
However, the common notions of GFlowNets must be modified to recover a useful stochastic generalization. An existing attempt (Pan et al., 2023) proposes to treat stochastic transitions in the environment as actions of the GFlowNet drawn from a fixed policy. One of the starting points for this paper is that this previous formulation sacrifices several desirable theoretical properties, inducing poor sampling performance in many practical settings. We propose an alternative notion of expected flow networks (EFlowNets), which provably do not suffer from the previous limitations (Fig. 1a).
|
| 24 |
+
|
| 25 |
+
As EFlowNets can perform inference via stochastic control in a fixed environment, they can be used to learn robust strategies against a stochastic opponent in a two-player game. We further define an adversarial flow network (AFlowNet) as a collection of EFlowNet players, each with its own reward function, taking actions in a shared environment. We show the existence and uniqueness of a joint optimum of the players' respective objectives. This stable point can be characterized via a probabilistic notion of game-theoretic equilibrium. We perform additional theoretical analysis and develop efficient training objectives for two-player zero-sum games.
|
| 26 |
+
|
| 27 |
+
Figure 1: We extend GFlowNets to stochastic environments (a) and games (b).
|
| 28 |
+

|
| 29 |
+
(a) Left: A stochastic MDP with four terminal states. The first (black) transition is chosen by the agent from a learnable policy with parameter $p$ , and the second (red) action is sampled from the environment's fixed transition distribution. Middle: Our proposed EFlowNets (§3.1) integrate over the uncertainty of the environment's transitions. We derive expected detailed balance training objectives to amortize this integration. Right: A prior approach to GFlowNets in stochastic environments (Pan et al., 2023) proposes to train the agent to sample from the reward distribution by treating the environment transitions as actions sampled from an immutable policy, leading to unsatisfiable constraints.
|
| 30 |
+
(b) Optimizing two EFlowNets that play against each other yields robust game-playing agents. Here, a branch-adjusted AFlowNet (§3.3) for a two-player zero-sum game is shown: each player receives a reward of $e^{\lambda}$ for a win, 1 for a draw, and $e^{-\lambda}$ for a loss, adjusted appropriately by branching factors.
|
| 31 |
+
|
| 32 |
+
The contributions of this work are as follows:
|
| 33 |
+
|
| 34 |
+
(1) We propose expected flow networks (EFlowNets, §3.1), a class of sequential sampling models and learning objectives generalizing GFlowNets on tree-structured state spaces. We demonstrate theoretically and experimentally the advantages of the EFlowNet formulation over past attempts to generalize GFlowNets to stochastic environments (§3.1, §4.1).
|
| 35 |
+
(2) We define adversarial flow networks (AFlowNets, §3.2) for two-player games and prove the existence and uniqueness of equilibrium solutions. In Proposition 4 we exploit the zero-sum structure of two-player games to get a novel trajectory balance (TB) loss for AFlowNets. We believe this new loss is a major algorithmic novelty. We conduct extensive experiments on two-player games showing that AFlowNets are able to learn robust policies via self-play (§4.2).
|
| 36 |
+
(3) We connect GFlowNets, EFlowNets, and AFlowNets to models of imperfect agents in psychology and behavioral economics (§A).
|
| 37 |
+
|
| 38 |
+
# 2 BACKGROUND
|
| 39 |
+
|
| 40 |
+
# 2.1 GFLOWNETS IN TREE-SHAPED ENVIRONMENTS
|
| 41 |
+
|
| 42 |
+
We review GFlowNets in deterministic environments, mainly following the conventions from Malkin et al. (2022). (Notably, we assume that terminating states have no children and rewards are strictly positive.) In keeping with past work, we use the language of directed acyclic graphs (DAGs), rather than the equivalent language of deterministic MDPs. We state all results only for tree-structured state spaces, but note that they are special cases of results for general DAGs.
|
| 43 |
+
|
| 44 |
+
Setting. Let $G = (S, \mathcal{A})$ be a directed tree, with finite sets of vertices (states) $S$ and edges (actions) $\mathcal{A} \subset S \times S$ , oriented away from the root (initial state) $s_0 \in S$ . Denote by $\mathrm{Ch}(s)$ the set of children of a state $s$ and by $\mathrm{Pa}(s)$ the parent of $s$ , which exists unless $s = s_0$ . The set of childless (terminal) states is denoted $X$ . A complete trajectory is a sequence $\tau = (s_0 \to s_1 \to \dots \to s_n)$ , where $s_n \in X$ and each $s_i \to s_{i+1}$ is an action. The set of complete trajectories is denoted $\mathcal{T}$ .
|
| 45 |
+
|
| 46 |
+
A (forward) policy is a collection of distributions $P_F(\cdot \mid s)$ over $\mathrm{Ch}(s)$ for every $s \in S \setminus X$ . A policy induces a distribution over $\mathcal{T}$ , with $P_F(s_0 \to s_1 \to \dots \to s_n) = \prod_{i=1}^{n} P_F(s_i \mid s_{i-1})$ . This in turn induces a terminating distribution $P_F^\top$ over $X$ , defined as the marginal distribution over the final state of a trajectory $\tau \sim P_F(\tau)$ . One can sample $x \sim P_F^\top(x)$ by running a chain starting at $s_0$ and transitioning according to $P_F$ until a terminal state $x$ is reached.
|
| 47 |
+
|
| 48 |
+
A reward function is a function $R: \mathcal{X} \to \mathbb{R}_{>0}$ . A policy $P_F$ is said to sample proportionally to the reward $R$ if $P_F^\top(x) \propto R(x)$ , i.e., $P_F^\top(x) = R(x)/Z$ for all $x \in \mathcal{X}$ , where $Z = \sum_{x \in \mathcal{X}} R(x)$ . Given a
|
| 49 |
+
|
| 50 |
+
reward function $R$ , GFlowNet algorithms aim to produce a policy $P_F$ that samples proportionally to $R$ . This is, in essence, a generative modeling problem, but the setting is close to maximum-entropy reinforcement learning (RL; Haarnoja et al., 2017): one is not given samples from the target density, as in typical generative modeling settings, but must rather explore the reward landscape through sequential sampling.
|
| 51 |
+
|
| 52 |
+
FM and DB objectives. We review the two GFlowNet objectives of flow matching (FM; Bengio et al., 2021) and detailed balance (DB; Bengio et al., 2023) in tree-structured state spaces.
|
| 53 |
+
|
| 54 |
+
The FM objective optimizes a function $F: S \to \mathbb{R}_{>0}$ , called the state flow. The objective enforces a pair of constraints, which in tree-structured DAGs are
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
F (s) = \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F \left(s ^ {\prime}\right) \forall s \in \mathcal {S} \backslash \mathcal {X} \quad \text {a n d} \quad F (x) = R (x) \forall x \in \mathcal {X}. \tag {1}
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
Any edge flow $F$ induces a policy $P_F$ , defined by $P_F(s' \mid s) = \frac{F(s')}{F(s)}$ for all $(s, s') \in \mathcal{A}$ . If the flow satisfies the FM constraints (1), then it holds that $P_F$ samples proportionally to the reward $R$ .
|
| 61 |
+
|
| 62 |
+
The DB objective avoids the explicit summation over children in (1) and jointly optimizes both $F$ and the policy $P_F$ , replacing the first constraint by
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
F (s) P _ {F} \left(s ^ {\prime} \mid s\right) = F \left(s ^ {\prime}\right) \forall (s, s ^ {\prime}) \in \mathcal {A}. \tag {2}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
This constraint implies the first constraint of (1), as $P_F$ sums to 1 over $s' \in \mathrm{Ch}(s)$ .
|
| 69 |
+
|
| 70 |
+
The function $F$ is typically parametrized as a neural network $F_{\theta}$ with parameters $\theta$ , and (if using the DB objective) the policy $P_F$ as a network producing logits of $P_F(s' \mid s; \theta)$ given $s$ as input. The parameters $\theta$ are optimized to minimize some discrepancy between the left and right sides of (1) or (2). A typical choice is the squared log-ratio; for example, the FM objective at a state $s$ is
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\mathcal {L} _ {\mathrm {F M}} (s) = \left(\log F _ {\theta} (s) - \log \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F _ {\theta} \left(s ^ {\prime}\right)\right) ^ {2}. \tag {3}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
The choice of states $s$ at which this objective is evaluated and optimized is made by a training policy $\pi$ . For example, $\pi$ could select the states $s$ seen in trajectories sampled from $P_F$ (on-policy training), but could also use off-policy exploration techniques, such as tempering, replay buffers, or Thompson sampling (Rector-Brooks et al., 2023). Because the objective can be simultaneously minimized to zero at all $s$ for a sufficiently expressive $F_{\theta}$ , the global optimum of the objective is independent of the choice of training policy $\pi$ , as long as $\pi$ has full support. This capacity for off-policy training without differentiating through the sampling procedure is a key advantage of GFlowNets over on-policy RL algorithms and over other hierarchical variational methods (Malkin et al., 2023).
|
| 77 |
+
|
| 78 |
+
Connections with RL. In the case of tree-structured state spaces, GFlowNets are closely connected to entropy-regularized RL methods (soft Q-learning; Haarnoja et al., 2017): identifying the log-flow function with a value function, the FM/DB objectives are analogous to temporal difference learning (Sutton & Barto, 2018) and TB, along with its variant SubTB (Madan et al., 2023), to path consistency learning (Nachum et al., 2017). As a diversity-seeking agent, a GFlowNet can also be understood as way to train a quantal response agent; see §A for more discussion.
|
| 79 |
+
|
| 80 |
+
How restrictive is the tree structure? Any environment that has a non-tree DAG structure – i.e., where multiple trajectories may lead to the same state – can be converted to a tree-structured environment by augmenting each state with the history (the trajectory followed to reach the state). This implicitly multiplies the reward of each terminal state by the number of trajectories that lead to it (while keeping the optimal policy independent of the history). This alternative way to reward the state may be desired in some applications (e.g., zero-sum games) for which the path to the solution matters as much as the outcome.
|
| 81 |
+
|
| 82 |
+
# 2.2 PAST APPROACHES TO GFLOWNETS IN STOCHASTIC ENVIRONMENTS
|
| 83 |
+
|
| 84 |
+
Pan et al. (2023) propose a generalization of GFlowNets to stochastic environments (i.e., where the state and choice of action nondeterministically yield the subsequent state), following an approach described in Bengio et al. (2023). We now review their formulation, which we refer to as 'stochastic GFlowNets', restating it in a suitable language to motivate our method.
|
| 85 |
+
|
| 86 |
+
In stochastic environments, every state $s$ is associated with a set of possible actions $\mathcal{A}_s$ , and the environment provides a stochastic transition function - a distribution $P_{\mathrm{env}}(s' \mid s, a)$ , understood as the likelihood of arriving in state $s'$ when taking action $a$ at state $s$ . In stochastic GFlowNets, the state space $\mathcal{S}$ is augmented with a collection of hypothetical states $(s, a)$ for $s \in S \setminus \mathcal{X}$ and $a \in \mathcal{A}_s$ . The augmented DAG $G$ contains two kinds of edges:
|
| 87 |
+
|
| 88 |
+
- Edges $s \rightarrow (s, a)$ for each $s \in S$ and $a \in \mathcal{A}_s$ , which we call agent edges;
|
| 89 |
+
- Edges $(s, a) \to s'$ for each hypothetical $s'$ in the support of $P_{\mathrm{env}}(\cdot \mid s, a)$ , $a \in \mathcal{A}_s$ , and $s' \in \mathrm{Ch}(s)$ , which we call environment edges.
|
| 90 |
+
|
| 91 |
+
Stochastic GFlowNets directly apply the training algorithms applicable to deterministic GFlowNets (e.g., DB) to the augmented DAG $G$ , with the only modification being that the forward policy $P_F$ is free to be learned only on agent edges, while on environment edges it is fixed to the transition function. Formally, for all $s \in S \setminus X$ and $a \in \mathcal{A}_s$ , one learns $P_F((s, a) \mid s)$ (denoted $P_F(a \mid s)$ for short), while $P_F(s' \mid (s, a))$ is fixed to $P_{\mathrm{env}}(s' \mid s, a)$ .
|
| 92 |
+
|
| 93 |
+
The environment policy $P_{\mathrm{env}}$ , which appears in the loss, may be assumed to be known, but may also be approximated using a neural network trained by a maximum-likelihood objective on observed environment transitions, jointly with the agent policy.
|
| 94 |
+
|
| 95 |
+
Violated desiderata in stochastic GFlowNets. By construction, if a stochastic GFlowNet satisfies the DB constraints, then the policy $P_F$ samples proportionally to the reward $R$ . In this way, stochastic GFlowNets are a minimal modification of GFlowNets that can function in stochastic environments. However, there exist stochastic environments and reward functions for which no stochastic GFlowNet policy $P_F(a \mid s)$ can satisfy the constraints (Fig. 1a). Two consequences of this are the impossibility of minimizing the loss to zero for all transitions, even for a perfectly expressive policy model, and the resulting dependence of the global optimum on the choice of training policy $\pi$ . Thus stochastic GFlowNets satisfy D0, but not D1 (as noted by Bengio et al. (2023)) and D2 below.
|
| 96 |
+
|
| 97 |
+
The generalization of GFlowNet constraints and objectives to stochastic environments that we propose satisfies the following desiderata:
|
| 98 |
+
|
| 99 |
+
D0. If the environment's transition function $P_{\mathrm{env}}$ is deterministic, one should recover deterministic GFlowNet constraints and objectives.
|
| 100 |
+
D1. Satisfiability: A perfectly expressive model should be able to minimize the generalized FM/DB losses to 0 for all states/actions in the DAG simultaneously. Consequently, the set of global optima of the loss should not depend on the choice of full-support training policy.
|
| 101 |
+
D2. Uniqueness: If $G$ is a tree, then the global optimum of the loss should be unique.
|
| 102 |
+
D3. Equilibrium: In a game where two GFlowNet agents alternate actions, there should be a unique pair of policies for the two players such that each policy is optimal for its respective loss.
|
| 103 |
+
|
| 104 |
+
As noted in §2.1, deterministic GFlowNets satisfy D1 and D2. D0 is a common-sense property, as deterministic environments are special cases of stochastic environments. D1 (satisfiability) is essential for off-policy training, while D2 (uniqueness) is desirable in game-playing agents. The meaning of D3 will be detailed in §3.2.
|
| 105 |
+
|
| 106 |
+
# 3 METHOD:EXPECTED AND ADVERSARIAL FLOW NETWORKS
|
| 107 |
+
|
| 108 |
+
# 3.1 EXPECTED FLOW NETWORKS
|
| 109 |
+
|
| 110 |
+
In this section, we define expected flow networks (EFlowNets) on tree-structured spaces, which encompasses the problems we study, in particular, two-player games with memory. We then show that EFlowNets satisfy the desiderata D0-D2 above.
|
| 111 |
+
|
| 112 |
+
Expected flow networks (EFlowNets) assume the following are given:
|
| 113 |
+
|
| 114 |
+
- A tree $G = (\mathcal{S}, \mathcal{A})$ , with initial state $s_0$ and set of terminal states $\mathcal{X}$ , and a reward function $R: \mathcal{X} \to \mathbb{R}_{>0}$ .
|
| 115 |
+
- A partition of the nonterminal states into two disjoint sets, $S \setminus X = S_{\text{agent}} \sqcup S_{\text{env}}$ , called the agent states and environment states, respectively.
|
| 116 |
+
- A distribution $P_{\mathrm{env}}(\cdot \mid s)$ over the children of every environment state $s \in S_{\mathrm{env}}$ .
|
| 117 |
+
|
| 118 |
+
Observe that if $S_{\mathrm{env}} = \emptyset$ , then the input data for an EFlowNet is the same as the input data for a GFlowNet on a tree-structured space. This setting also generalizes that of stochastic GFlowNets
|
| 119 |
+
|
| 120 |
+
in §2.2, where all transitions link agent states $s$ to environment states $(s,a)$ - called 'hypothetical states' by Pan et al. (2023) - or vice versa.
|
| 121 |
+
|
| 122 |
+
An agent policy is a collection of distributions $P_{\mathrm{agent}}(\cdot \mid s)$ over the children of every agent state $s \in S_{\mathrm{agent}}$ . Together, $P_{\mathrm{agent}}$ and $P_{\mathrm{env}}$ determine a forward policy on $G$ . We define the expected detailed balance (EDB) constraints relating $P_{\mathrm{agent}}$ , $P_{\mathrm{env}}$ , and a state flow function $F: S \to \mathbb{R}_{>0}$ :
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
F (s) P _ {\text {a g e n t}} \left(s ^ {\prime} \mid s\right) = F \left(s ^ {\prime}\right) \quad \forall s \in \mathcal {S} _ {\text {a g e n t}}, s ^ {\prime} \in \operatorname {C h} (s), \tag {4}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
F (s) = \mathbb {E} _ {s ^ {\prime} \sim P _ {\mathrm {e n v}} \left(s ^ {\prime} \mid s\right)} F \left(s ^ {\prime}\right) \quad \forall s \in S _ {\text {e n v}}, \tag {5}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
F (x) = R (x) \quad \forall x \in X. \tag {6}
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
These constraints satisfy the desiderata D0-D2, as summarized in the following proposition.
|
| 137 |
+
|
| 138 |
+
Proposition 1. There exists a unique pair of state flow function $F$ and agent policy $P_{\mathrm{agent}}$ satisfying constraints (4), (5), and (6). If $S_{\mathrm{env}} = \emptyset$ , then this pair satisfies the detailed balance constraints (2).
|
| 139 |
+
|
| 140 |
+
EFlowNets marginalize over the uncertainty of the environment's transitions: they aim to sample each action in proportion to the expected total reward available if the action is taken (see Prop. 5). A connection between EFlowNets and Luce quantal response agents is made in $\S \mathrm{A}$
|
| 141 |
+
|
| 142 |
+
Training EFlowNets: From constraints to losses. Just as in deterministic environments, when training EFlowNets, we parametrize the state flow and agent policy as neural networks $F_{\theta}$ and $P_{\mathrm{agent}}(\cdot \mid \cdot ;\theta)$ . The EDB constraints can be turned into squared log-ratio losses in the same manner that the FM constraint (1) is converted into the loss (3) and optimized by gradient descent.
|
| 143 |
+
|
| 144 |
+
In problems where the number of environment transitions is large and computing the expectation on the right side of (5) is costly, it may be replaced by an alternative constraint by introducing a distribution $Q(s' \mid s) = \frac{F(s') F_{\mathrm{env}}(s'|s)}{F(s)}$ . This quantity sums to 1 over the $s'$ if and only if (5) is satisfied. Thus (5) is equivalent to the following constraint on $Q$ :
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
F (s) Q \left(s ^ {\prime} \mid s\right) = F \left(s ^ {\prime}\right) P _ {\text {e n v}} \left(s ^ {\prime} \mid s\right). \tag {7}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
Enforcing this constraint requires learning an additional distribution $Q(s' \mid s; \theta)$ , but does not require summation over children. The conversion from (5) to (7) resembles that from FM (1) to DB (2).
|
| 151 |
+
|
| 152 |
+
Just like deterministic GFlowNets, the globally optimal agent policy in an EFlowNet is unique and does not depend on the distribution of states at which the objectives are optimized, as long as it has full support. However, the choice of training policy can be an important hyperparameter that can affect the rate of convergence and the local minimum reached in a function approximation setting. We describe the choices we make in the experiment sections below.
|
| 153 |
+
|
| 154 |
+
Just like in stochastic GFlowNets (§2.2), the environment policy $P_{\mathrm{env}}$ can be either assumed to be known or learned, jointly with the policy, from observations of the environment's transitions.
|
| 155 |
+
|
| 156 |
+
# 3.2 ADVERSARIAL FLOW NETWORKS
|
| 157 |
+
|
| 158 |
+
We now consider the application of EFlowNets to multiagent settings. Although our experiments are in the domain of two-player games, we define adversarial flow networks (AFlowNets) in their full generality, with $n$ agents. AFlowNets with $n$ agents, or players, depend on the following information:
|
| 159 |
+
|
| 160 |
+
- A tree $G = (\mathcal{S}, \mathcal{A})$ , with initial state $s_0$ and set of terminal states $\mathcal{X}$ , and a collection of reward functions $R_1, \ldots, R_n: \mathcal{X} \to \mathbb{R}_{>0}$ .
|
| 161 |
+
- A partition of the nonterminal states into disjoint sets, $S \setminus \mathcal{X} = S_1 \sqcup \dots \sqcup S_n$ .
|
| 162 |
+
|
| 163 |
+
This data defines a fully observed sequential game, where $s \in S_i$ means that player $i$ is to play at $s$ . An agent policy for player $i$ is a collection of distributions $P_{i}(\cdot \mid s)$ over $\mathrm{Ch}(s)$ for every $s \in S_i$ .
|
| 164 |
+
|
| 165 |
+
The input data for an AFlowNet also defines a collection of EFlowNets, one for each player $i$ . The EFlowNet $\mathcal{E}_i$ for player $i$ has the same underlying graph $G$ , with $S_{\mathrm{agent}} = S_i$ and $S_{\mathrm{env}} = \bigsqcup_{j \neq i} S_j = S \setminus (\mathcal{X} \cup S_i)$ , and reward function $R_i$ . That is, each player is viewed as an agent in an EFlowNet whose 'environment' is given by the other players' policies. (We also remark that the case $n = 1$ recovers a regular (deterministic) GFlowNet.)
|
| 166 |
+
|
| 167 |
+
The policy $P_{i}$ of player $i$ can be optimized using the EFlowNet training objective given fixed values of the other players' policies $P_{j}$ ( $j \neq i$ ), and by Proposition 1, there is a unique global optimum for $P_{i}$ . However, remarkably, there exists a unique collection of policies $P_{1}, \ldots, P_{n}$ such that each $P_{i}$ that jointly satisfy the EFlowNet constraints for each player.
|
| 168 |
+
|
| 169 |
+
Proposition 2. There exist unique agent policies $P_{1},\ldots ,P_{n}$ and state flow functions $F_{1},\ldots ,F_{n}: S\to \mathbb{R}_{>0}$ such that $P_{i}$ and $F_{i}$ satisfy the EDB constraints with respect to the EFlowNet $\mathcal{E}_i$ for all $i$ .
|
| 170 |
+
|
| 171 |
+
We also have a characterization of the joint optimum in the case of two-agent AFlowNets:
|
| 172 |
+
|
| 173 |
+
Proposition 3. Suppose that in a 2-player AFlowNet, the agent policies $P_{1}, P_{2}$ and state flow functions $F_{1}, F_{2}$ are jointly optimal in the sense of Prop. 2. Then the function $F(s) = F_{1}(s)F_{2}(s)$ is a flow on $G$ , i.e., satisfies the FM constraint (1), with respect to the reward $R(x) = R_{1}(x)R_{2}(x)$ .
|
| 174 |
+
|
| 175 |
+
# 3.3 BRANCH-ADJUSTED AFLOWNETS FOR TWO-PLAYER ZERO-SUM GAMES.
|
| 176 |
+
|
| 177 |
+
An important application of AFlowNets is two-player zero-sum games. We will now describe a way to turn the game outcomes into rewards that allows a simpler and more efficient training objective.
|
| 178 |
+
|
| 179 |
+
Specifically, we consider a two-player, complete-information game with tree-shaped state space $G$ , in which player 1 moves first (i.e., $s_0 \in S_1$ ) and the players alternate moves, i.e., every complete trajectory $s_0 \to s_1 \to \dots \to s_n = x$ has $s_i \in S_1$ if and only if $i$ is even. We assume that the game ends in a win for player 1, a win for player 2, or a draw. A naive way to define the rewards for players 1 and 2 is the following, which ensures the log-rewards sum to zero at every terminal state:
|
| 180 |
+
|
| 181 |
+
$$
|
| 182 |
+
R _ {i} ^ {\circ} (x) = \left\{ \begin{array}{l l} e ^ {\lambda} & \text {i f p l a y e r i w i n s ,} \\ 1 & \text {i f t h e g a m e e n d s i n a d r a w ,} \\ e ^ {- \lambda} & \text {i f p l a y e r i l o s e s .} \end{array} \right. \tag {8}
|
| 183 |
+
$$
|
| 184 |
+
|
| 185 |
+
However, we find that AFlowNets trained with this reward often exhibit suboptimal behaviour in complex games: the agent may avoid a move that leads directly to a winning terminal state (high reward) in favour of a move with a large downstream subtree. We therefore define an alternative reward function that favours shorter winning trajectories. If $s_0 \to s_1 \to \dots \to s_n = x$ is the trajectory leading to $x$ , then the branch-adjusted reward for player $i$ is defined as
|
| 186 |
+
|
| 187 |
+
$$
|
| 188 |
+
R _ {i} (x) = \frac {R _ {i} ^ {\circ} (x)}{B _ {i} (x)}, \quad B _ {i} (x) := \prod_ {k: s _ {k} \in S _ {k}} | \operatorname {C h} \left(s _ {k}\right) |. \tag {9}
|
| 189 |
+
$$
|
| 190 |
+
|
| 191 |
+
That is, $B_{i}(x)$ is the product of the branching factors (numbers of children) of the states $s_k$ on the trajectory at which player $i$ is to move. Besides delivering a higher reward for less selective trajectories and being empirically essential for good game-playing performance, this correction is necessary to derive the simplified objective below, which critically uses $R_1^\circ(x)R_2^\circ(x) = 1$ .
|
| 192 |
+
|
| 193 |
+
A 'trajectory balance' for branch-adjusted AFlowNets. A limitation of objectives such as FM, DB, and their EFlowNet and AFlowNet generalizations are their slow credit assignment (propagation of a reward signal) over long trajectories, which results from these losses being local to a state or transition. This limitation motivated the trajectory balance (TB) loss for GFlowNets (Malkin et al., 2022), which delivers a gradient update to all policy probabilities along a complete trajectory.
|
| 194 |
+
|
| 195 |
+
While the GFlowNet TB objective does not appear to generalize to expected flow networks, we derive an objective of a TB-like flavour for branch-adjusted AFlowNets.
|
| 196 |
+
|
| 197 |
+
Proposition 4. In a 2-player AFlowNet with alternating moves satisfying $R_1^\circ(x)R_2^\circ(x) = 1$ :
|
| 198 |
+
|
| 199 |
+
(a) Suppose that the agent policies $P_{1}, P_{2}$ and state flow functions $F_{1}, F_{2}$ are jointly optimal in the sense of Prop. 2. Then there exists a scalar $Z$ , independent of $x$ , such that for every complete trajectory $s_{0} \rightarrow s_{1} \rightarrow \dots \rightarrow s_{n} = x$ ,
|
| 200 |
+
|
| 201 |
+
$$
|
| 202 |
+
Z \prod_ {i: s _ {i} \in S _ {1}} P _ {1} \left(s _ {i + 1} \mid s _ {i}\right) = R _ {1} (x) B _ {2} (x) \prod_ {i: s _ {i} \in S _ {2}} P _ {2} \left(s _ {i + 1} \mid s _ {i}\right). \tag {10}
|
| 203 |
+
$$
|
| 204 |
+
|
| 205 |
+
(b) Conversely, if the constraint (10) holds for some constant $Z$ and policies $P_{1}$ and $P_{2}$ , then $P_{1}$ and $P_{2}$ are the jointly optimal AFlowNet policies.
|
| 206 |
+
|
| 207 |
+
The constraint (10) can be converted into a training objective $\mathcal{L}_{\mathrm{TB}}$ – the squared log-ratio between the left and right sides – and optimized with respect to the policy parameters and the scalar $Z$ (parametrized through $\log Z$ for stability) for complete trajectories (game simulations) sampled from a training policy. Prop. 2 and Prop. 4(a) guarantee that the constraints are satisfiable, while Prop. 4(b) guarantees that the policies satisfying the constraints are unique.
|
| 208 |
+
|
| 209 |
+
Training AFlowNets. AFlowNets are trained by optimizing the EFlowNet objectives of each agent independently. The states at which the objectives are optimized are chosen by a training policy, which may either sample the agents' policies to produce training trajectories (on-policy self-play) or use off-policy exploration. The joint global optimum, where all agents optimize their losses to 0, is unique and independent of the training policy due to Prop. 2. See Alg. 1.
|
| 210 |
+
|
| 211 |
+
A significant benefit of AFlowNets over methods like Silver et al. (2018) is that they do not require expensive rollout procedures (i.e., MCTS) to generate games. MCTS performs a number of simulations – each of which requires a forward pass – for every state in a game. AFlowNets, on the other hand, only require a single forward pass per state. Consequently, AFlowNets can be trained on more games given a similar computational budget.
|
| 212 |
+
|
| 213 |
+
# 4 EXPERIMENTS
|
| 214 |
+
|
| 215 |
+
We conduct experiments to investigate whether EFlowNets can effectively learn in stochastic environments compared to related methods (§4.1) and whether AFlowNets are effective learners of adversarial gameplay, as measured by their performance against contemporary approaches (§4.2).
|
| 216 |
+
|
| 217 |
+
# 4.1 GENERATIVE MODELING IN STOCHASTIC ENVIRONMENTS
|
| 218 |
+
|
| 219 |
+
We evaluate EFlowNets in a protein design task from Jain et al. (2022). The GFlowNet policy autoregressively generates an 8-symbol DNA sequence $x$ and receives a reward of $R(x) = f(x)^{\beta}$ , where $f(x)$ is a proxy model estimating binding affinity to a target protein and $\beta$ is a hyperparameter controlling the reward distribution's entropy. In Pan et al. (2023), the problem was made stochastic by letting the environment replace the symbol appended by the policy to the right of a partial sequence with a uniformly random symbol with probability $\alpha$ . Thus $\alpha = 0$ gives a deterministic environment and $\alpha = 1$ a fully stochastic environment, where the policy's actions have no effect.
|
| 220 |
+
|
| 221 |
+
We extend the published code of Pan et al. (2023) with an implementation of the EFlowNet objective. Besides the stochastic GFlowNet (Stoch-GFN) formulation from §2.2, we compare with the two strongest
|
| 222 |
+
|
| 223 |
+

|
| 224 |
+
Figure 2: Results on the TFBind task (five seeds per setting). EFlowNets tend to find more diverse high-reward states, especially when the reward is peaky and environment stochasticity is high, making the Stoch-GFN constraints unsatisfiable.
|
| 225 |
+
|
| 226 |
+
bases considered in that work: a “naive” GFlowNet that ignores the environment’s transitions (GFN), and a discrete soft actor-critic (SAC; Haarnoja et al., 2018). We use the hyperparameters from the existing implementation for all methods (except SAC, which we reimplemented because code was not available) and report the same primary metrics: the mean reward of the top-100 sequences among 2048 sampled from a trained model and the number of diverse modes found, as measured by the sphere exclusion algorithm from Jain et al. (2022). A model of the environment’s transition distribution is learned, consistent with Pan et al. (2023).
|
| 227 |
+
|
| 228 |
+
The results and error ranges, with different values of the stochasticity $\alpha$ and reward exponent $\beta$ , are shown in Fig. 2. When the reward is peaky (larger $\beta$ ), EFlowNets outperform other algorithms in both diversity and top-100 reward. This is consistent with situations such as those in Fig. 1a, where the Stoch-GFN constraints are unsatisfiable, being more common when the reward is peaky, as the environment's random actions place smoothness constraints on the sampling distribution. Of note, our implementation of SAC performs better than what is reported in Pan et al. (2023) and often better than Stoch-GFN, which was previously considered only with the flat-reward setting of $\beta = 3$ .
|
| 229 |
+
|
| 230 |
+
# 4.2 ADVERSARIAL GAMES
|
| 231 |
+
|
| 232 |
+
The game-playing capabilities of AFlowNets are evaluated in 2-player games. Rewards are modeled as described in §3.3, and the AFlowNets trained with rewards defined by (8) with a given $\lambda$ are denoted AFlowNet $_{\lambda}$ . We evaluate how the efficacy of an agent changes with various values of $\lambda$ .
|
| 233 |
+
|
| 234 |
+
Algorithm 1: Branch-adjusted AFlowNet Training
|
| 235 |
+
Data: $\lambda$ , batch size $n$ number of trajectories $K$ number of steps $L$ buffer capacity $M$ model and training hyperparameters
|
| 236 |
+
Initialize AFlowNet policies $P_{1},P_{2}$ log Z, and replay buffer B with capacity M
|
| 237 |
+
for $i = 1$ to $N$ do Generate $K$ trajectories (sampling from AFlowNet's policies $P_{1},P_{2})$ Add trajectories to $B / / B$ is a FIFO queue for $i = 1$ to $L$ do $\{\tau_j\}_{j = 1}^n\gets$ Sample randomly from $B$ $\mathcal{L}\leftarrow \frac{1}{n}\sum_{j = 1}^{n}\mathcal{L}_{\mathrm{TB}}(\log Z,P_1,P_2,\tau_j,\lambda)$ Gradient update on $\nabla \mathcal{L}$ with respect to log Z and policy parameters
|
| 238 |
+
|
| 239 |
+
AFlowNets are trained using the TB loss to play tic-tac-toe and Connect-4. For each, we run a tournament against an open-source AlphaZero implementation (Thakoor et al., 2016) and a uniform random agent. For tic-tac-toe we also include a tree-search agent which uses AlphaZero's value function, alpha-beta pruning, and a search depth of 3. To compare the agents, we compute their Elo over the course of training using BayesElo (Coulom, 2008; Diaz & Buck-Kaeffer, 2023). The training procedure is outlined in Alg. 1 and details are in $\S D$ .
|
| 240 |
+
|
| 241 |
+
Figure 3 (left) illustrates the Elo of the agents in tic-tac-toe over training steps and time. It is clear that AFlowNets quickly achieve a competitive Elo with AlphaZero. It is worth noting that $\mathrm{AFlowNet}_2$ and $\mathrm{AFlowNet}_{15}$ achieved and Elo of $334.8\pm 15.5$ and $231.1\pm 91.3$ , whereas $\mathrm{AFlowNet}_{10}$ achieved an Elo of $338.4\pm 14.1$ As such, it appears that $\lambda$ has a diminishing return on game performance in tic-tac-toe.
|
| 242 |
+
|
| 243 |
+
The parameter $\lambda$ has a large effect on the performance of AFlowNets in Connect-4 (cf. Fig. 3 (right)). The AFlowNets with $\lambda \in \{10,15\}$ achieve the highest Elo of all tested agents. AFlowNets win almost every game against AlphaZero and achieve an Elo score roughly 800 points higher. Additional tournament results and further analysis are available in §E.
|
| 244 |
+
|
| 245 |
+
As in Prasad et al. (2018), we take advantage of the fact that Connect-4 is solved (Allis, 1988) to obtain perfect values for arbitrary positions. We compare the moves selected by the AFlowNet with the values computed by a perfect Connect-4 solver (Pons (2019)) over the course of training. Fig. 4 shows an evaluation of the AFlowNet's performance using this metric (and baseline values for a random uniform agent). The AFlowNets learn to play optimal moves in $>80\%$ of board states after 3 hours of training on one RTX8000 GPU.
|
| 246 |
+
|
| 247 |
+

|
| 248 |
+
|
| 249 |
+

|
| 250 |
+
Figure 3: Elo as a function of training steps and training time. As a convention, random uniform baseline agents represent an Elo of 0. AFlowNets achieve similar Elo to AlphaZero in tic-tac-toe and AFlowNets quickly learn to outperform AlphaZero in Connect-4.
|
| 251 |
+
|
| 252 |
+

|
| 253 |
+
Figure 4: Move quality for the AFlowNet (for a set of 10240 randomly generated Connect-4 boards) over the course of training. An optimal move leads to the quickest win or slowest loss. An inaccuracy is a non-optimal move that has the same sign as the optimal move (e.g., leading to a win but not as quickly). A blunder leads from a winning state to either a drawing or losing state.
|
| 254 |
+
|
| 255 |
+
Table 1: Summary of the main differences between AFlowNet and AlphaZero training.
|
| 256 |
+
|
| 257 |
+
<table><tr><td></td><td>AFlowNet</td><td>AlphaZero</td></tr><tr><td>Action sampling</td><td>single forward pass</td><td>MCTS</td></tr><tr><td>Objective input</td><td>complete trajectory</td><td>single state</td></tr><tr><td>States per optim. step</td><td>batch size × traj. length</td><td>batch size</td></tr></table>
|
| 258 |
+
|
| 259 |
+
Differences between AFlowNets and AlphaZero methodologies. Distinctions exist between our approach and AlphaZero that make direct comparisons between the methods challenging, summarized in Table 1. Most importantly, the batch-adjusted AFlowNet objective depends on an entire game simulation, while the AFlowNet value function updates are performed at individual states. In addition, the game simulations in AFlowNets are obtained using a single policy rollout, without Monte Carlo tree search. Thus, generation of training data with AFlowNets is faster than with AlphaZero, assuming the base model architectures are of a similar scale.
|
| 260 |
+
|
| 261 |
+
**Demo.** We invite the reader to play Connect-4 anonymously against a pretrained AFlowNet agent at the following URL: https://bit.ly/demoafn.
|
| 262 |
+
|
| 263 |
+
# 5 RELATED WORK
|
| 264 |
+
|
| 265 |
+
Stochasticity in GFlowNets. GFlowNets have been used as diversity-seeking samplers in various settings with deterministic environment transitions. In particular, they have been interpreted as hierarchical variational inference algorithms (Malkin et al., 2023; Zimmermann et al., 2023) and correspondingly applied to modeling of Bayesian posteriors (Deleu et al., 2022; van Krieken et al., 2022; Hu et al., 2023). GFlowNets can be trained with stochastic rewards (Bengio et al., 2023), and Deleu et al. (2022; 2023); Liu et al. (2022) take advantage of this property to train samplers of Bayesian posteriors using small batches of observed data. Zhang et al. (2023b) proposed to match the uncertainty in a stochastic reward in a manner resembling distributional RL (Bellemare et al., 2017); however, the stochasticity is introduced only at terminal states, while we consider stochasticity in intermediate transitions. The stochastic modelling of Pan et al. (2023), as we have argued, is insufficient to capture desired sampling behaviours in the problems we consider.
|
| 266 |
+
|
| 267 |
+
RL in stochastic environments and games. Learning in an environment with stochastic transition dynamics and against adversaries has long been a task of RL (Sutton & Barto, 2018). While AlphaZero (Silver et al., 2018) has achieved state-of-the-art performance in chess, Shogi, and Go, it does not explicitly model stochastic transition dynamics. Stochastic MuZero (Antonoglou et al., 2022) is a model-based stochastic planning method that learns a model of the environment and a policy at the same time, allowing it to perform well in a variety of stochastic games. Both AlphaZero and MuZero use Monte Carlo tree search for policy and value estimation (Silver et al., 2018; Antonoglou et al., 2022; Schrittwieser et al., 2020). Our EFlowNets bear similarities to a recently introduced approach that integrates over environment uncertainty in RL (Yang et al., 2023).
|
| 268 |
+
|
| 269 |
+
# 6 DISCUSSION
|
| 270 |
+
|
| 271 |
+
This paper extends GFlowNets to stochastic and adversarial environments. Expected flow networks learn in settings with stochastic transitions while maintaining desirable convergence properties, and adversarial flow networks pit EFlowNets against themselves in self-play. We successfully applied these algorithms to a stochastic generative modeling problem and to two real-world zero-sum games.
|
| 272 |
+
|
| 273 |
+
In future work, we intend to scale these methods to larger game spaces (e.g., chess and Go). Such scaling is likely to require algorithmic improvements to address the limitations of our method. While we derived an efficient 'trajectory balance' for branch-adjusted AFlowNets, trajectory-level objectives suffer from high variance for long trajectories and have a high memory cost. Although these limitations did not surface in our experiments, it would be interesting to consider interpolations between expected DB and TB, akin to subtrajectory balance for GFlowNets (Madan et al., 2023).
|
| 274 |
+
|
| 275 |
+
Other future work can consider generalizations to incomplete-information games and cooperative multi-agent settings. For games with continuous action spaces, one can analyze the continuous-time and infinite-agent (mean-field) limits. Beyond games, GFlowNets and EFlowNets, in which node flows are computed by aggregation over children – either summation (4) or expectation (5) – may fall into a more general class of probabilistic flow networks that encompass a range of samplers trainable by local consistency objectives, reminiscent of the manner in which the language of circuits unifies probabilistic models with tractable inference (Choi et al., 2020; Vergari et al., 2021).
|
| 276 |
+
|
| 277 |
+
# ACKNOWLEDGMENTS
|
| 278 |
+
|
| 279 |
+
The authors thank Moksh Jain for help with baseline code for the experiments in §4.1 and Manfred Diaz for help with the Elo computations in §4.2. We also thank Quentin Bertrand and Juan Duque for their comments on a draft of the paper.
|
| 280 |
+
|
| 281 |
+
YB acknowledges funding from CIFAR, NSERC, Intel, and Samsung.
|
| 282 |
+
|
| 283 |
+
GG acknowledges funding from CIFAR.
|
| 284 |
+
|
| 285 |
+
The research was enabled in part by computational resources provided by the Digital Research Alliance of Canada (https://alliancecan.ca), Mila (https://mila.quebec), and NVIDIA.
|
| 286 |
+
|
| 287 |
+
# REFERENCES
|
| 288 |
+
|
| 289 |
+
Victor Allis. A knowledge-based approach of connect-four. J. Int. Comput. Games Assoc., 11:165, 1988.
|
| 290 |
+
Ioannis Antonoglou, Julian Schrittwieser, Sherjil Ozair, Thomas K Hubert, and David Silver. Planning in stochastic environments with a learned model. International Conference on Learning Representations (ICLR), 2022.
|
| 291 |
+
Marc G. Bellemare, Will Dabney, and Remi Munos. A distributional perspective on reinforcement learning. International Conference on Machine Learning (ICML), 2017.
|
| 292 |
+
Emmanuel Bengio, Moksh Jain, Maksym Korablyov, Doina Precup, and Yoshua Bengio. Flow network based generative models for non-iterative diverse candidate generation. Neural Information Processing Systems (NeurIPS), 2021.
|
| 293 |
+
Yoshua Bengio, Salem Lahlou, Tristan Deleu, Edward J Hu, Mo Tiwari, and Emmanuel Bengio. GFlowNet foundations. Journal of Machine Learning Research, (24):1-76, 2023.
|
| 294 |
+
YooJung Choi, Antonio Vergari, and Guy Van den Broeck. Probabilistic circuits: A unifying framework for tractable probabilistic models, 2020. URL http://starai.cs.ucla.edu/papers/ProbCirc20.pdf.
|
| 295 |
+
Rémi Coulom. Whole-history rating: A Bayesian rating system for players of time-varying strength. In H. Jaap van den Herik, Xinhe Xu, Zongmin Ma, and Mark H. M. Winands (eds.), Computers and Games, pp. 113-124, Berlin, Heidelberg, 2008. Springer Berlin Heidelberg.
|
| 296 |
+
Tristan Deleu, António Góis, Chris Emezue, Mansi Rankawat, Simon Lacoste-Julien, Stefan Bauer, and Yoshua Bengio. Bayesian structure learning with generative flow networks. Uncertainty in Artificial Intelligence (UAI), 2022.
|
| 297 |
+
Tristan Deleu, Mizu Nishikawa-Toomey, Jithendarraa Subramanian, Nikolay Malkin, Laurent Charlin, and Yoshua Bengio. Joint Bayesian inference of graphical structure and parameters with a single generative flow network. arXiv preprint arXiv:2305.19366, 2023.
|
| 298 |
+
Manfred Diaz and Aurélien Bück-Kaeffer. PopRank: A rating library for population-based training, 2023. URL https://github.com/poprl/poprank.
|
| 299 |
+
Jianqing Fan, Zhaoran Wang, Yuchen Xie, and Zhuoran Yang. A theoretical analysis of deep q-learning. In Learning for dynamics and control, pp. 486-489. PMLR, 2020.
|
| 300 |
+
Jacob K Goeree, Charles A Holt, and Thomas R Palfrey. Stochastic game theory for social science: A primer on quantal response equilibrium. In Handbook of Experimental Game Theory, pp. 8-47. 2020.
|
| 301 |
+
Tuomas Haarnoja, Haoran Tang, Pieter Abbeel, and Sergey Levine. Reinforcement learning with deep energy-based policies. International Conference on Machine Learning (ICML), 2017.
|
| 302 |
+
Tuomas Haarnoja, Aurick Zhou, Pieter Abbeel, and Sergey Levine. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. International Conference on Machine Learning (ICML), 2018.
|
| 303 |
+
|
| 304 |
+
Edward J Hu, Nikolay Malkin, Moksh Jain, Katie Everett, Alexandros Graikos, and Yoshua Bengio. GFlowNet-EM for learning compositional latent variable models. International Conference on Machine Learning (ICML), 2023.
|
| 305 |
+
Moksh Jain, Emmanuel Bengio, Alex Hernandez-Garcia, Jarrid Rector-Brooks, Bonaventure F.P. Dossou, Chanakya Ekbote, Jie Fu, Tianyu Zhang, Micheal Kilgour, Dinghuai Zhang, Lena Simine, Payel Das, and Yoshua Bengio. Biological sequence design with GFlowNets. International Conference on Machine Learning (ICML), 2022.
|
| 306 |
+
Salem Lahlou, Tristan Deleu, Pablo Lemos, Dinghuai Zhang, Alexandra Volokhova, Alex Hernández-García, Léna Néhale Ezzine, Yoshua Bengio, and Nikolay Malkin. A theory of continuous generative flow networks. International Conference on Machine Learning (ICML), 2023.
|
| 307 |
+
Wenqian Li, Yinchuan Li, Zhigang Li, Jianye Hao, and Yan Pang. DAG Matters! GFlowNets enhanced explainer for graph neural networks. International Conference on Learning Representations (ICLR), 2023.
|
| 308 |
+
Dianbo Liu, Moksh Jain, Bonaventure F. P. Dossou, Qianli Shen, Salem Lahlou, Anirudh Goyal, Nikolay Malkin, Chris C. Emezue, Dinghuai Zhang, Nadhir Hassen, Xu Ji, Kenji Kawaguchi, and Yoshua Bengio. GFlowOut: Dropout with generative flow networks. International Conference on Machine Learning (ICML), 2022.
|
| 309 |
+
R Duncan Luce. Individual Choice Behavior: A Theoretical Analysis. Wiley, 1959.
|
| 310 |
+
Kanika Madan, Jarrid Rector-Brooks, Maksym Korablyov, Emmanuel Bengio, Moksh Jain, Andrei Nica, Tom Bosc, Yoshua Bengio, and Nikolay Malkin. Learning GFlowNets from partial episodes for improved convergence and stability. International Conference on Machine Learning (ICML), 2023.
|
| 311 |
+
Nikolay Malkin, Moksh Jain, Emmanuel Bengio, Chen Sun, and Yoshua Bengio. Trajectory balance: Improved credit assignment in GFlowNets. Neural Information Processing Systems (NeurIPS), 2022.
|
| 312 |
+
Nikolay Malkin, Salem Lahlou, Tristan Deleu, Xu Ji, Edward Hu, Katie Everett, Dinghuai Zhang, and Yoshua Bengio. GFlowNets and variational inference. International Conference on Learning Representations (ICLR), 2023.
|
| 313 |
+
Richard D. McKelvey and Thomas R. Palfrey. Quantal response equilibria for normal form games. Games and Economic Behavior, 10(1):6-38, 1995.
|
| 314 |
+
Richard D. McKelvey and Thomas R. Palfrey. A statistical theory of equilibrium in games. *Japanese Economic Review*, 47:186-209, 1996.
|
| 315 |
+
Richard D. McKelvey and Thomas R. Palfrey. Quantal response equilibria for extensive form games. Experimental Economics, 1(1):9-41, 1998.
|
| 316 |
+
Ofir Nachum, Mohammad Norouzi, Kelvin Xu, and Dale Schuurmans. Bridging the gap between value and policy based reinforcement learning. Neural Information Processing Systems (NIPS), 2017.
|
| 317 |
+
Ling Pan, Dinghuai Zhang, Moksh Jain, Longbo Huang, and Yoshua Bengio. Stochastic generative flow networks. Uncertainty in Artificial Intelligence (UAI), 2023.
|
| 318 |
+
Pascal Pons. Connect 4 game solver. https://github.com/PascalPons/connect4, 2019.
|
| 319 |
+
Aditya Prasad, Vish Abrams, and Anthony Young. Lessons from implementing alphabeto. Medium, 2018. URL https://medium.com/oracledevs/lessons-from-implementing-alphabeto-7e36e9054191. Accessed: 25-08-2023.
|
| 320 |
+
Jarrid Rector-Brooks, Kanika Madan, Moksh Jain, Maksym Korablyov, Cheng-Hao Liu, Sarath Chandar, Nikolay Malkin, and Yoshua Bengio. Thompson sampling for improved exploration in GFlowNets. arXiv preprint arXiv:2306.17693, 2023.
|
| 321 |
+
|
| 322 |
+
Julian Schrittwieser, Ioannis Antonoglou, Thomas Hubert, Karen Simonyan, Laurent Sifre, Simon Schmitt, Arthur Guez, Edward Lockhart, Demis Hassabis, Thore Graepel, et al. Mastering atari, go, chess and shogi by planning with a learned model. Nature, 588(7839):604-609, 2020.
|
| 323 |
+
David Silver, Thomas Hubert, Julian Schrittwieser, Ioannis Antonoglou, Matthew Lai, Arthur Guez, Marc Lanctot, Laurent Sifre, Dharshan Kumaran, Thore Graepel, Timothy Lillicrap, Karen Simonyan, and Demis Hassabis. A general reinforcement learning algorithm that masters chess, shogi, and go through self-play. Science, 362(6419):1140-1144, 2018. doi: 10.1126/science.aar6404. URL https://www.science.org/doi/abs/10.1126/science.aar6404.
|
| 324 |
+
Richard S Sutton and Andrew G Barto. Reinforcement learning: An introduction. MIT press, 2018.
|
| 325 |
+
Shantanu Thakoor, Surag Nair, and Megha Jhunjhunwala. Learning to play Othello without human knowledge, 2016.
|
| 326 |
+
Emile van Krieken, Thiviyan Thanapalasingam, Jakub Tomczak, Frank van Harmelen, and Annette ten Teije. A-NeSI: A scalable approximate method for probabilistic neurosymbolic inference. arXiv preprint arXiv:2212.12393, 2022.
|
| 327 |
+
Antonio Vergari, YooJung Choi, Anji Liu, Stefano Teso, and Guy Van den Broeck. A compositional atlas of tractable circuit operations for probabilistic inference. Neural Information Processing Systems (NeurIPS), 2021.
|
| 328 |
+
Sherry Yang, Dale Schuurmans, Pieter Abbeel, and Ofir Nachum. Dichotomy of control: Separating what you can control from what you cannot. 2023.
|
| 329 |
+
David Zhang, Corrado Rainone, Markus Peschl, and Roberto Bondesan. Robust scheduling with GFlowNets. International Conference on Learning Representations (ICLR), 2023a.
|
| 330 |
+
Dinghuai Zhang, Nikolay Malkin, Zhen Liu, Alexandra Volokhova, Aaron Courville, and Yoshua Bengio. Generative flow networks for discrete probabilistic modeling. International Conference on Machine Learning (ICML), 2022.
|
| 331 |
+
Dinghuai Zhang, L. Pan, Ricky T. Q. Chen, Aaron C. Courville, and Yoshua Bengio. Distributional GFlowNets with quantile flows. arXiv preprint arXiv:2302.05793, 2023b.
|
| 332 |
+
Heiko Zimmermann, Fredrik Lindsten, Jan-Willem van de Meent, and Christian A. Naesseth. A variational perspective on generative flow networks. Transactions on Machine Learning Research (TMLR), 2023.
|
| 333 |
+
|
| 334 |
+
# A GFLOWNETS AS QUANTAL RESPONSE AGENTS
|
| 335 |
+
|
| 336 |
+
A GFlowNet policy as a Luce agent. GFlowNets in tree-structured spaces are closely related to probabilistic models of imperfect agent behaviour in game theory known as quantal response agents (McKelvey & Palfrey, 1996; 1995; Goeree et al., 2020). A particular kind of quantal response agent uses the Luce ratio rule (Luce, 1959) to sample strategies in proportion to their expected payoff. GFlowNet trajectories $\tau$ can be seen as (pure) strategies of an agent in a one-player game, and the reward $R(x)$ as the payoff for a trajectory $\tau$ leading to $x \in \mathcal{X}$ . A GFlowNet that samples trajectories proportionally to the rewards of their last states, i.e., $P_F(\tau = (s_0 \to s_1 \to \dots \to s_n = x)) \propto R(x)$ , is thus a Luce quantal response agent. On the level of individual actions at a given state $s$ , the policy is that of a Luce agent that treats $F(s')$ – the total reward accessible from $s'$ – as the payoff for a transition $s \to s'$ .
|
| 337 |
+
|
| 338 |
+
EFlowNets learn a marginalized quantal response policy. Next, we show that EFlowNets are Bayesian (model-averaging) analogues of Luce agents that marginalize out the uncertainty of the environment's transitions.
|
| 339 |
+
|
| 340 |
+
Define a (pure) environment strategy as an induced subgraph $G_{\mathrm{env}}$ of $G$ whose vertex set $V(G_{\mathrm{env}}) \subseteq S$ has the following properties:
|
| 341 |
+
|
| 342 |
+
- If $s \in V(G_{\mathrm{env}})$ and $s \neq s_0$ , then the parent of $s$ is in $V(G_{\mathrm{env}})$ .
|
| 343 |
+
- If $s \in V(G_{\mathrm{env}}) \cap S_{\mathrm{env}}$ , then exactly one child of $s$ is in $V(G_{\mathrm{env}})$ .
|
| 344 |
+
|
| 345 |
+
- If $s \in V(G_{\mathrm{env}}) \cap S_{\mathrm{agent}}$ , then all children of $s$ are in $V(G_{\mathrm{env}})$ .
|
| 346 |
+
|
| 347 |
+
It is clear from the first property that any such $G_{\mathrm{env}}$ is a tree. An environment strategy thus amounts to a predetermined choice of action at every state that can be reached if the environment takes the actions chosen by the strategy. The environment policy $P_{\mathrm{env}}$ determines a distribution over environment strategies, where the child of each agent state $s$ in $G_{\mathrm{agent}}$ is sampled from the policy independently for each $s$ , i.e.,
|
| 348 |
+
|
| 349 |
+
$$
|
| 350 |
+
P _ {\text {e n v}} \left(G _ {\text {e n v}}\right) = \prod_ { \begin{array}{l} s \in V \left(G _ {\text {e n v}}\right) \cap \mathcal {S} _ {\text {e n v}} \\ s ^ {\prime} \in \operatorname {C h} (s) \cap V \left(G _ {\text {e n v}}\right) \end{array} } P _ {\text {e n v}} \left(s ^ {\prime} \mid s\right). \tag {11}
|
| 351 |
+
$$
|
| 352 |
+
|
| 353 |
+
The environment strategy is a source of uncertainty for the agent. Any given $G_{\mathrm{env}}$ is a tree that contains $s_0$ and some subset $\chi_{G_{\mathrm{env}}}$ of the terminal states. Viewing $G_{\mathrm{env}}$ as a (deterministic) GFlowNet in the sense of §2.1, there is a unique policy $P_F^{G_{\mathrm{env}}}$ , and corresponding state flow $F^{G_{\mathrm{env}}}$ on $G_{\mathrm{env}}$ that samples proportionally to the reward $R$ restricted to $\chi_{G_{\mathrm{env}}}$ .
|
| 354 |
+
|
| 355 |
+
The following proposition shows that the optimal EFlowNet policy averages the stepwise utilities (i.e., total accessible rewards) of deterministic-environment GFlowNets $P_F^{G_{\mathrm{env}}}$ weighted by their likelihood under $P_{\mathrm{env}}$ .
|
| 356 |
+
|
| 357 |
+
Proposition 5. Suppose that $P_{\mathrm{agent}}$ satisfies the EDB constraints. Then, for any $s \in S_{\mathrm{agent}}$ and $s' \in \mathrm{Ch}(s)$ ,
|
| 358 |
+
|
| 359 |
+
$$
|
| 360 |
+
P _ {\text {a g e n t}} \left(s ^ {\prime} \mid s\right) \propto \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} \left(s ^ {\prime}\right) \mid s \in V (G _ {\text {e n v}}) \right],
|
| 361 |
+
$$
|
| 362 |
+
|
| 363 |
+
where the expectation is taken over the distribution over strategies determined by $P_{\mathrm{env}}$ , restricted to the strategies that contain the state $s$ .
|
| 364 |
+
|
| 365 |
+
AFlowNets and agent quantal response equilibrium. In two-player games with unadjusted rewards $R_1^\circ$ , $R_2^\circ$ and rewards $R_1$ and $R_2$ defined using the branching factor adjustment (9), we also have the following characterization of the optimal state flows:
|
| 366 |
+
|
| 367 |
+
$$
|
| 368 |
+
\begin{array}{l} B _ {i} (s) F _ {i} (s) = \mathbb {E} _ {\substack {s = s _ {1} \rightarrow s _ {2} \rightarrow \dots s _ {n} = x \in \chi\\s _ {k + 1} \sim \mathcal {U} [ \mathrm {Ch} \left(s _ {k}\right) ] \text {if } s _ {k} \in \mathcal {S} _ {i}\\s _ {k + 1} \sim P _ {j} \left(s _ {k + 1} \mid s _ {k}\right) \text {if } s _ {k} \in \mathcal {S} _ {j} (j \neq i)}} \left[ R _ {i} ^ {\circ} (x) \right] \tag{12} \\ = \sum_ {s = s _ {1} \rightarrow s _ {2} \rightarrow \dots s _ {n} = x \in \mathcal {X}} \left[ \prod_ {k: s _ {k} \in \mathcal {S} _ {i}} \frac {1}{| \operatorname {C h} (s _ {k}) |} \prod_ {k: s _ {k} \in \mathcal {S} _ {j}, j \neq i} P _ {j} \left(s _ {k + 1} \mid s _ {k}\right)\right] R _ {i} ^ {\circ} (x), \\ \end{array}
|
| 369 |
+
$$
|
| 370 |
+
|
| 371 |
+
where the notation $B_{i}(s)$ is extended to nonterminal states $s$ using the same definition (9). This is easily derived by recursion from the EDB constraints and (9) in a similar way to the proof of Prop. 5. Because $P_{i}(s^{\prime} \mid s) \propto F_{i}(s^{\prime})$ for $s \in S_{i}$ , the expression (12) characterizes the policy $P_{i}$ via a form of agent quantal response (McKelvey & Palfrey, 1998), in which the action probability of an agent is proportional to its expected reward under future actions of the opponent (sampled from its policy) and the agent itself (here, sampled uniformly).
|
| 372 |
+
|
| 373 |
+
# B PROOFS
|
| 374 |
+
|
| 375 |
+
Proposition 1. There exists a unique pair of state flow function $F$ and agent policy $P_{\mathrm{agent}}$ satisfying constraints (4), (5), and (6). If $S_{\mathrm{env}} = \emptyset$ , then this pair satisfies the detailed balance constraints (2).
|
| 376 |
+
|
| 377 |
+
Proof of Proposition 1. If the EDB constraints are satisfied, then $F$ satisfies a recurrence:
|
| 378 |
+
|
| 379 |
+
$$
|
| 380 |
+
F (s) = \left\{ \begin{array}{l l} \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F \left(s ^ {\prime}\right) & s \in S _ {\text {a g e n t}} \\ \mathbb {E} _ {s ^ {\prime} \sim P _ {\text {e n v}} \left(s ^ {\prime} \mid s\right)} F \left(s ^ {\prime}\right) & s \in S _ {\text {e n v}} \\ R (s) & s \in X \end{array} , \right. \tag {13}
|
| 381 |
+
$$
|
| 382 |
+
|
| 383 |
+
where the first case $(s\in S_{\mathrm{agent}})$ follows from summing (4) over $s^\prime$ . The uniqueness of $F(s)$ can easily be seen, e.g., by induction on the length of the longest path from $s$ to a terminal state.
|
| 384 |
+
|
| 385 |
+
Because $R(x) > 0$ for all $x \in \mathcal{X}$ , and the recurrence preserves the positivity (i.e., $F(s') > 0$ for all $s' \in \mathrm{Ch}(s)$ implies $F(s) > 0$ ), we have $F(s) > 0$ for all $s$ . Therefore, one can recover the unique $P_{\mathrm{agent}}$ that satisfies (4) jointly with $F$ via $P_{\mathrm{agent}}(s' \mid s) = \frac{F(s')}{F(s)}$ .
|
| 386 |
+
|
| 387 |
+
Finally, if $S_{\mathrm{env}} = \emptyset$ , then constraint (5) is vacuous, and the remaining constraints exactly recover (2).
|
| 388 |
+
|
| 389 |
+
Proposition 2. There exist unique agent policies $P_{1}, \ldots, P_{n}$ and state flow functions $F_{1}, \ldots, F_{n}: S \to \mathbb{R}_{>0}$ such that $P_{i}$ and $F_{i}$ satisfy the EDB constraints with respect to the EFlowNet $\mathcal{E}_i$ for all $i$ .
|
| 390 |
+
|
| 391 |
+
Proof of Proposition 2. As in the proof of Proposition 1, we give a recurrence on the flows:
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
F _ {i} (s) = \left\{ \begin{array}{l l} \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F _ {i} \left(s ^ {\prime}\right) & s \in \mathcal {S} _ {i} \\ \frac {\sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F _ {i} \left(s ^ {\prime}\right) F _ {j} \left(s ^ {\prime}\right)}{\sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F _ {j} \left(s ^ {\prime}\right)} & s \in \mathcal {S} _ {j}, j \neq i. \\ R _ {i} (s) & s \in \mathcal {X} \end{array} \right. \tag {14}
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
This recurrence uniquely determines the state flows $F_{i}$ and therefore the policies $P_{i}$ . It remains to see that if the flows satisfy (14), then each $F_{i}$ satisfies the recurrence (13). The cases $s \in S_{i}$ and $s \in X$ are clear. For the case $s \in S_{j}, j \neq i$ , observe that
|
| 398 |
+
|
| 399 |
+
$$
|
| 400 |
+
\frac {\sum_ {s ^ {\prime} \in \mathrm {C h} (s)} F _ {i} \left(s ^ {\prime}\right) F _ {j} \left(s ^ {\prime}\right)}{\sum_ {s ^ {\prime} \in \mathrm {C h} (s)} F _ {j} \left(s ^ {\prime}\right)} = \sum_ {s ^ {\prime} \in \mathrm {C h} (s)} \frac {F _ {i} \left(s ^ {\prime}\right) F _ {j} \left(s ^ {\prime}\right)}{\sum_ {s ^ {\prime \prime} \in \mathrm {C h} (s)} F _ {j} \left(s ^ {\prime \prime}\right)} = \sum_ {s ^ {\prime} \in \mathrm {C h} (s)} F _ {i} \left(s ^ {\prime}\right) P _ {j} \left(s ^ {\prime} \mid s\right) = \mathbb {E} _ {s ^ {\prime} \sim P _ {j} \left(s ^ {\prime} \mid s\right)} F _ {i} \left(s ^ {\prime}\right),
|
| 401 |
+
$$
|
| 402 |
+
|
| 403 |
+
which coincides with the second case of the recurrence (13).
|
| 404 |
+
|
| 405 |
+

|
| 406 |
+
|
| 407 |
+
Proposition 3. Suppose that in a 2-player AFlowNet, the agent policies $P_{1}, P_{2}$ and state flow functions $F_{1}, F_{2}$ are jointly optimal in the sense of Prop. 2. Then the function $F(s) = F_{1}(s)F_{2}(s)$ is a flow on $G$ , i.e., satisfies the FM constraint (1), with respect to the reward $R(x) = R_{1}(x)R_{2}(x)$ .
|
| 408 |
+
|
| 409 |
+
Proof of Proposition 3. Because $F_{1}(x) = R_{1}(x)$ and $F_{2}(x) = R_{2}(x)$ for all $x \in \mathcal{X}$ , we have $F(x) = R(x)$ for all $x \in \mathcal{X}$ .
|
| 410 |
+
|
| 411 |
+
For $s \in S \setminus \mathcal{X}$ , we must show that $F(s) = \sum_{s' \in \mathrm{Ch}(s)} F(s')$ . Suppose without loss of generality that $s \in S_1$ . Then
|
| 412 |
+
|
| 413 |
+
$$
|
| 414 |
+
F _ {1} (s) F _ {2} (s) = F _ {1} (s) \mathbb {E} _ {s ^ {\prime} \sim P _ {1} (s ^ {\prime} | s)} F _ {2} (s ^ {\prime}) = F _ {1} (s) \sum_ {s ^ {\prime} \in \mathrm {C h} (s)} \frac {F _ {1} (s ^ {\prime})}{F _ {1} (s)} F _ {2} (s ^ {\prime}) = \sum_ {s ^ {\prime} \in \mathrm {C h} (s)} F _ {1} (s ^ {\prime}) F _ {2} (s ^ {\prime}),
|
| 415 |
+
$$
|
| 416 |
+
|
| 417 |
+
which completes the proof.
|
| 418 |
+
|
| 419 |
+

|
| 420 |
+
|
| 421 |
+
Proposition 4. In a 2-player AFlowNet with alternating moves satisfying $R_1^\circ(x)R_2^\circ(x) = 1$ :
|
| 422 |
+
|
| 423 |
+
(a) Suppose that the agent policies $P_{1}, P_{2}$ and state flow functions $F_{1}, F_{2}$ are jointly optimal in the sense of Prop. 2. Then there exists a scalar $Z$ , independent of $x$ , such that for every complete trajectory $s_{0} \rightarrow s_{1} \rightarrow \dots \rightarrow s_{n} = x$ ,
|
| 424 |
+
|
| 425 |
+
$$
|
| 426 |
+
Z \prod_ {i: s _ {i} \in S _ {1}} P _ {1} \left(s _ {i + 1} \mid s _ {i}\right) = R _ {1} (x) B _ {2} (x) \prod_ {i: s _ {i} \in S _ {2}} P _ {2} \left(s _ {i + 1} \mid s _ {i}\right). \tag {10}
|
| 427 |
+
$$
|
| 428 |
+
|
| 429 |
+
(b) Conversely, if the constraint (10) holds for some constant $Z$ and policies $P_{1}$ and $P_{2}$ , then $P_{1}$ and $P_{2}$ are the jointly optimal AFlowNet policies.
|
| 430 |
+
|
| 431 |
+
Proof of Proposition 4. Part (a). We first extend the definition of $B_i$ to nonterminal states: if $s_0 \to s_1 \to \dots \to s_m = s$ is any trajectory, define $B_i(s) \coloneqq \prod_{0 \leq i < m: s_i \in S_i} |\operatorname{Ch}(s_i)|$ .
|
| 432 |
+
|
| 433 |
+
We claim that for all states $s$ , $F_{1}(s)F_{2}(s) = \frac{1}{B_{1}(s)B_{2}(s)}$ . This holds at terminal states $x$ , since $F_{1}(x)F_{2}(x) = R_{1}(x)R_{2}(x) = \frac{R_{1}^{\circ}(x)R_{2}^{\circ}(x)}{B_{1}(x)B_{2}(x)} = \frac{1}{B_{1}(x)B_{2}(x)}$ . By Prop. 3, $F_{1}(s)F_{2}(s)$ is a flow, so it suffices to show that $\frac{1}{B_{1}(s)B_{2}(s)}$ also satisfies (1) for $s \in \mathcal{X} \setminus \mathcal{S}$ . Without loss of generality, suppose $s \in S_{1}$ and let $s_0 \to \dots \to s_i = s$ be the trajectory leading to $s$ . Then
|
| 434 |
+
|
| 435 |
+
$$
|
| 436 |
+
\sum_ {s ^ {\prime} \in \operatorname {C h} (s)} \frac {1}{B _ {1} \left(s ^ {\prime}\right) B _ {2} \left(s ^ {\prime}\right)} = \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} \frac {1}{B _ {1} (s) | \operatorname {C h} (s) | \cdot B _ {2} (s)} = \frac {1}{B _ {1} (s) B _ {2} (s)},
|
| 437 |
+
$$
|
| 438 |
+
|
| 439 |
+
establishing the claim.
|
| 440 |
+
|
| 441 |
+
Returning to the proposition, rearranging factors and using the definition (9), it is necessary to show that
|
| 442 |
+
|
| 443 |
+
$$
|
| 444 |
+
\frac {R _ {1} ^ {\circ} (x) B _ {2} (x) \prod_ {i : s _ {i} \in \mathcal {S} _ {2}} P _ {2} \left(s _ {i + 1} \mid s _ {i}\right)}{B _ {1} (x) \prod_ {i : s _ {i} \in \mathcal {S} _ {1}} P _ {1} \left(s _ {i + 1} \mid s _ {i}\right)}
|
| 445 |
+
$$
|
| 446 |
+
|
| 447 |
+
is independent of $x$ . We have, using the above claim,
|
| 448 |
+
|
| 449 |
+
$$
|
| 450 |
+
\begin{array}{l} \frac {R _ {1} (x) B _ {2} (x) \prod_ {i : s _ {i} \in \mathcal {S} _ {2}} P _ {2} (s _ {i + 1} \mid s _ {i})}{\prod_ {i : s _ {i} \in \mathcal {S} _ {1}} P _ {1} (s _ {i + 1} \mid s _ {i})} = \frac {R _ {1} (x) \prod_ {i : s _ {i} \in \mathcal {S} _ {2}} | \operatorname {C h} (s _ {i}) | \frac {F _ {2} (s _ {i + 1})}{F _ {2} (s _ {i})}}{\prod_ {i : s _ {i} \in \mathcal {S} _ {1}} \frac {F _ {1} (s _ {i + 1})}{F _ {1} (s _ {i})}} \\ = \frac {R _ {1} (x) \prod_ {i : s _ {i} \in \mathcal {S} _ {2}} | \operatorname {C h} (s _ {i}) | \frac {F _ {1} (s _ {i}) B _ {1} (s _ {i}) B _ {2} (s _ {i})}{F _ {1} (s _ {i + 1}) B _ {1} (s _ {i + 1}) B _ {2} (s _ {i + 1})}}{\prod_ {i : s _ {i} \in \mathcal {S} _ {1}} \frac {F _ {1} (s _ {i + 1})}{F _ {1} (s _ {i})}} \\ = \frac {R _ {1} (x) \prod_ {i : s _ {i} \in S _ {2}} \frac {F _ {1} \left(s _ {i}\right)}{F _ {1} \left(s _ {i + 1}\right)}}{\prod_ {i : s _ {i} \in S _ {1}} \frac {F _ {1} \left(s _ {i + 1}\right)}{F _ {1} \left(s _ {i}\right)}} \\ = R _ {1} (x) \prod_ {i < n \text {e v e n}} \frac {F _ {1} \left(s _ {i}\right)}{F _ {1} \left(s _ {i + 1}\right)} \prod_ {i < n \text {o d d}} \frac {F _ {1} \left(s _ {i}\right)}{F _ {1} \left(s _ {i + 1}\right)} \\ = F _ {1} \left(s _ {n}\right) \prod_ {i = 0} ^ {n - 1} \frac {F _ {1} \left(s _ {i}\right)}{F _ {1} \left(s _ {i + 1}\right)} \quad = F _ {1} \left(s _ {0}\right), \\ \end{array}
|
| 451 |
+
$$
|
| 452 |
+
|
| 453 |
+
which is independent of $x$ .
|
| 454 |
+
|
| 455 |
+
Part (b). Because jointly optimal AFlowNet policies $P_{1}, P_{2}$ exist by Prop. 2, and they satisfy (10) by part (a) of this proposition, it suffices to show that the constraint (10) uniquely determines $P_{1}$ and $P_{2}$ for all pairs of reward functions $(R_{1}, R_{2})$ for which $R_{1}(x)R_{2}(x) = \frac{1}{B_{1}(x)B_{2}(x)}$ for all $x \in \mathcal{X}$ .
|
| 456 |
+
|
| 457 |
+
We prove this by strong induction on the number of states in $G$ . The base case $|S| = 1$ (there is a unique state which is both initial and terminal) is trivial: the products are empty and the constraint reads $Z = R_{1}(x)$ .
|
| 458 |
+
|
| 459 |
+
Now suppose that the constraint uniquely determines $P_{1}$ and $P_{2}$ for all reward functions satisfying $R_{1}(x)R_{2}(x) = \frac{1}{B_{1}(x)B_{2}(x)}$ on graphs with fewer than $N$ states, for some $N > 1$ , and consider an AFlowNet $G = (S, \mathcal{A})$ with $N$ states, for which (10) holds and the reward functions satisfy $R_{1}(x)R_{2}(x) = \frac{1}{B_{1}(x)B_{2}(x)}$ . It is easy to see that there exists a state $s \in S \setminus \mathcal{X}$ such that all children of $s$ are terminal; select one such state $s$ .
|
| 460 |
+
|
| 461 |
+
Suppose that $s \in S_1$ . We construct a new graph $G'$ and rewards $R_1', R_2'$ by deleting the children of $s$ , making $s$ a terminal state, and modifying the reward function so that $R_1'(s) = \sum_{x \in \mathrm{Ch}(s)} R_1(s)$ , setting $R_2'(s)$ so as to preserve $R_1'(s)R_2'(s) = \frac{1}{B_1(x)B_2(x)}$ , and setting $R_i'(x) = R_i(x)$ for all other terminal states $x$ . Thus the graph $G'$ is a two-player AFlowNet with alternating turns and satisfying the constraint on rewards.
|
| 462 |
+
|
| 463 |
+
We claim that the constraint (10) for $G, R_1, R_2$ and a pair of policies $P_1, P_2$ on $G$ implies the constraint for $G', R_1', R_2'$ and the same policies restricted to the states in $G'$ . For all terminal states in $G'$ inherited from $G$ , the constraint is unchanged. For the new terminal state $s$ , we sum the constraints on $G$ for the children $x_1, \ldots, x_K \in \mathrm{Ch}(s)$ . Letting $s_0 \to s_1 \to \dots \to s_n = s$ be the trajectory leading to $s$ , we have:
|
| 464 |
+
|
| 465 |
+
$$
|
| 466 |
+
\begin{array}{l} \sum_ {k = 1} ^ {K} \left[ Z \prod_ {i < n: s _ {i} \in \mathcal {S} _ {1}} P _ {1} \left(s _ {i + 1} \mid s _ {i}\right) P _ {1} \left(x _ {k} \mid s\right) \right] = \sum_ {k = 1} ^ {K} \left[ R _ {1} \left(x _ {k}\right) B _ {2} \left(x _ {k}\right) \prod_ {i: s _ {i} \in \mathcal {S} _ {2}} P _ {2} \left(s _ {i + 1} \mid s _ {i}\right) \right] \\ \left(Z \prod_ {i < n: s _ {i} \in S _ {1}} P _ {1} \left(s _ {i + 1} \mid s _ {i}\right)\right) \sum_ {k = 1} ^ {K} P _ {1} \left(x _ {k} \mid s\right) = \left(B _ {2} (s) \prod_ {i: s _ {i} \in S _ {2}} P _ {2} \left(s _ {i + 1} \mid s _ {i}\right)\right) \sum_ {k = 1} ^ {K} R _ {1} \left(x _ {k}\right) \\ Z \prod_ {i < n: s _ {i} \in \mathcal {S} _ {1}} P _ {1} (s _ {i + 1} \mid s _ {i}) = B _ {2} (s) \prod_ {i: s _ {i} \in \mathcal {S} _ {2}} P _ {2} (s _ {i + 1} \mid s _ {i}) R _ {1} ^ {\prime} (s), \\ \end{array}
|
| 467 |
+
$$
|
| 468 |
+
|
| 469 |
+
which is precisely the constraint for $G'$ at the state $s$ . So the constraint (10) is satisfied on $G'$ .
|
| 470 |
+
|
| 471 |
+
Since $G'$ has fewer than $N$ states, by the induction hypothesis, $P_{1}$ and $P_{2}$ are uniquely determined on $G'$ and are therefore equal to the jointly optimal AFlowNet policies. It remains to show that $P_{1}(\cdot \mid s)$ is uniquely determined. Indeed, the only factor on the left side of (10) that varies between
|
| 472 |
+
|
| 473 |
+
children $x$ of $s$ is $P_{1}(x \mid s)$ , while on the right side, the only such factor is $R_{1}(x)$ . It follows that if the constraint is satisfied, then $P_{1}(x \mid s) \propto R_{1}(x)$ , which uniquely determines $P_{1}(\cdot \mid s)$ .
|
| 474 |
+
|
| 475 |
+
The case $s \in S_2$ is analogous.
|
| 476 |
+
|
| 477 |
+

|
| 478 |
+
|
| 479 |
+
Proposition 5. Suppose that $P_{\mathrm{agent}}$ satisfies the EDB constraints. Then, for any $s \in S_{\mathrm{agent}}$ and $s' \in \mathrm{Ch}(s)$ ,
|
| 480 |
+
|
| 481 |
+
$$
|
| 482 |
+
P _ {\text {a g e n t}} \left(s ^ {\prime} \mid s\right) \propto \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} \left(s ^ {\prime}\right) \mid s \in V \left(G _ {\text {e n v}}\right) \right],
|
| 483 |
+
$$
|
| 484 |
+
|
| 485 |
+
where the expectation is taken over the distribution over strategies determined by $P_{\mathrm{env}}$ , restricted to the strategies that contain the state $s$ .
|
| 486 |
+
|
| 487 |
+
Proof of Proposition 5. We first note that the expression inside the expectation is well-defined, since if $s \in V(G_{\mathrm{env}}) \cap S_{\mathrm{agent}}$ , then all children of $s$ are also in $V(G_{\mathrm{env}})$ .
|
| 488 |
+
|
| 489 |
+
Now suppose that $P_{\mathrm{agent}}$ satisfies EDB jointly with a flow function $F$ . By (4), we have $P_{\mathrm{agent}}(s' \mid s) \propto F(s')$ , and $s' \in V(G_{\mathrm{env}})$ is equivalent to $s \in V(G_{\mathrm{env}})$ for $s \in S_{\mathrm{agent}}$ and $s' \in \mathrm{Ch}(s)$ . Therefore, it would suffice to show that
|
| 490 |
+
|
| 491 |
+
$$
|
| 492 |
+
F (s) = \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} (s) \mid s \in V (G _ {\text {e n v}}) \right]
|
| 493 |
+
$$
|
| 494 |
+
|
| 495 |
+
for all $s\in S\setminus \mathcal{X}$
|
| 496 |
+
|
| 497 |
+
To do so, we show that the expression on the right side satisfies the recurrence (13). We consider three cases:
|
| 498 |
+
|
| 499 |
+
- If $s \in S_{\text{agent}}$ , then the child set of $s$ in any $G_{\text{env}}$ containing $s$ is the same as its child set in $G$ . It follows that
|
| 500 |
+
|
| 501 |
+
$$
|
| 502 |
+
\begin{array}{l} \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} (s) \mid s \in V (G _ {\text {e n v}}) \right] = \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} F ^ {G _ {\text {e n v}}} (s ^ {\prime}) \mid s \in V (G _ {\text {e n v}}) \right] \\ = \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} \left(s ^ {\prime}\right) \mid s \in V \left(G _ {\text {e n v}}\right) \right] \\ = \sum_ {s ^ {\prime} \in \operatorname {C h} (s)} \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} \left(s ^ {\prime}\right) \mid s ^ {\prime} \in V \left(G _ {\text {e n v}}\right) \right], \\ \end{array}
|
| 503 |
+
$$
|
| 504 |
+
|
| 505 |
+
showing the first case of the recurrence.
|
| 506 |
+
|
| 507 |
+
- If $s \in S_{\mathrm{env}}$ , then in any $G_{\mathrm{env}}$ containing $s$ , $s$ has a unique child $s'$ and $F^{G_{\mathrm{env}}}(\bar{s}) = F^{G_{\mathrm{env}}}(\bar{s}')$ . We decompose the expectation into terms depending on the child of $s$ that is present in $G_{\mathrm{env}}$ :
|
| 508 |
+
|
| 509 |
+
$$
|
| 510 |
+
\begin{array}{l} \mathbb{E}_{G_{\mathrm{env}}\sim P_{\mathrm{env}}}\left[F^{G_{\mathrm{env}}}(s)\mid s\in V(G_{\mathrm{env}})\right] = \mathbb{E}_{\substack{s^{\prime}\in \mathrm{Ch}(s)\\ s^{\prime}\sim P_{\mathrm{env}}(s^{\prime}\in G_{\mathrm{env}}|s\in G_{\mathrm{env}})}}\mathbb{E}_{G_{\mathrm{env}}\sim P_{\mathrm{env}}}\left[F^{G_{\mathrm{env}}}(s)\mid s^{\prime}\in V(G_{\mathrm{env}})\right] \\ = \mathbb {E} _ {s ^ {\prime} \sim P _ {\text {e n v}} (s ^ {\prime} | s)} \mathbb {E} _ {G _ {\text {e n v}} \sim P _ {\text {e n v}}} \left[ F ^ {G _ {\text {e n v}}} (s ^ {\prime}) \mid s ^ {\prime} \in V (G _ {\text {e n v}}) \right], \\ \end{array}
|
| 511 |
+
$$
|
| 512 |
+
|
| 513 |
+
which shows the second case of the recurrence.
|
| 514 |
+
|
| 515 |
+
- The case $s \in \mathcal{X}$ is simple, since $F(s') = F^{G_{\mathrm{env}}}(s') = R(s')$ for all $G_{\mathrm{env}}$ containing $s$ .
|
| 516 |
+
|
| 517 |
+

|
| 518 |
+
|
| 519 |
+
# C GAME SPECIFICATION
|
| 520 |
+
|
| 521 |
+
# C.1 TIC-TAC-TOE
|
| 522 |
+
|
| 523 |
+
Two players alternate between placing X tiles and O tiles in a $3 \times 3$ grid. If any player reaches a board with three of their pieces connected by a straight line, they win. Although simplistic, tic-tac-toe has a small enough state space that the ground truth EDB-based flow values can be computed and compared to the learned values. This allows for the unique opportunity to verify that the AFlowNet has converged to the predicted stable point. The stable point can be found by recursively visiting each state in the game and backpropagating the rewards, flows, and probabilities.
|
| 524 |
+
|
| 525 |
+
# C.2 CONNECT-4
|
| 526 |
+
|
| 527 |
+
There are two players who alternate between placing yellow and red tokens (for the sake of simplicity, we use X tiles and O tiles) in a $6 \times 7$ grid (6 rows, 7 columns). Each token is placed at the top of the grid and falls to the lowest unoccupied point in the column. If any player reaches a board with four of their pieces connected in a straight line, they win. Connect-4 has a far larger state space than tic-tac-toe: it is quite difficult for even humans to learn, although the first player has been proven to have a winning strategy (Allis, 1988). As such, it is computationally infeasible to compute, or to store, the optimal policies at all states in the AFlowNet.
|
| 528 |
+
|
| 529 |
+
# D TRAINING DETAILS
|
| 530 |
+
|
| 531 |
+
For 1, we collect trajectories as sequences of tuples (state, mask, curr_player, action, done, log Reward):
|
| 532 |
+
|
| 533 |
+
- state: the current state of the environment
|
| 534 |
+
- mask: binary mask of legal moves over the action space
|
| 535 |
+
- curr_player: the player whose turn it is to make the action
|
| 536 |
+
- action: the sampled action at the given state
|
| 537 |
+
- done: whether the action resulted in a terminal state
|
| 538 |
+
- logreward: the log reward if done
|
| 539 |
+
|
| 540 |
+
As architecture, we use a convolutional neural network composed of residual blocks inspired by the AlphaZero architecture (Silver et al., 2018; Thakoor et al., 2016) with a few modifications. We remove the batch normalization layers as the population statistics varied too much between training and evaluation. We use only the policy head (using one for each side, e.g., playing as "X" or "O") and increase the number of filters it has as recommended by Prasad et al. (2018). We replace ReLU activations by Leaky ReLU activations, reduce the number of residual blocks and reduce the number of filters in each block (128 instead of 256) as tic-tac-toe/Connect-4 are simpler than chess/Go. Finally, we include a single differentiable parameter log Z.
|
| 541 |
+
|
| 542 |
+
The main training hyperparameters are:
|
| 543 |
+
|
| 544 |
+
- num_trajecories_epoch: number of trajectories added to the buffer every epoch
|
| 545 |
+
- batch_size: batch size used for training and trajectory generation
|
| 546 |
+
- num_steps: number of optimization steps per epoch
|
| 547 |
+
- replay_buffer_capacity: the maximum capacity of the replay buffer
|
| 548 |
+
- learning_rate: learning rate for the policy network
|
| 549 |
+
- learning_rate_Z: learning rate for the log Z (we find that a higher value helps training)
|
| 550 |
+
- num_residual_blocks: number of residual blocks in the architecture
|
| 551 |
+
|
| 552 |
+
Specific values are included in Table 2.
|
| 553 |
+
|
| 554 |
+
# D.1 TRAINING/EVALUATION POLICY
|
| 555 |
+
|
| 556 |
+
During training, to generate the training trajectories, we sample actions using the softmax of the policy logits of the AFlowNet with a temperature coefficient of 1.5. At test time, (i.e., for the tournaments), when it is the AFlowNet's turn to play, we select the move corresponding to $\arg \max_{s' \in Ch(s)} P_i(s' \mid s)$ , where $i$ is the index of the player to make a move at $s$ .
|
| 557 |
+
|
| 558 |
+
# D.2 ALPHAZERO TRAINING
|
| 559 |
+
|
| 560 |
+
AlphaZero is trained as per the specifications of Thakoor et al. (2016). The batch size of AlphaZero is changed to 512 to match the batch size of AFlowNets. Training discrepancies include the number of examples gathered and retained over each iteration, which is significantly different between the AFlowNet implementation and AlphaZero. Naturally, it is quite difficult to compare AlphaZero and AFlowNets exactly because we do not have an MCTS analogue. Additionally, AlphaZero trains on single transitions whereas AFlowNets with TB loss train on entire trajectories. This leads to a discrepancy in what is considered a training example: a transition versus a trajectory. The number of Monte Carlo tree search iterations for AlphaZero is 25 for both tic-tac-toe and Connect-4.
|
| 561 |
+
|
| 562 |
+
<table><tr><td>Hyperparameter</td><td>Tic-tac-toe</td><td>Connect-4</td></tr><tr><td>num-trajectories_epoch</td><td>10240</td><td>10240</td></tr><tr><td>batch_size</td><td>512</td><td>1024</td></tr><tr><td>num_steps</td><td>500</td><td>250</td></tr><tr><td>replay_buffer_capacity</td><td>10240</td><td>250000</td></tr><tr><td>learning_rate</td><td>1e-3</td><td>1e-3</td></tr><tr><td>learning_rate_Z</td><td>5e-2</td><td>5e-2</td></tr><tr><td>num_residual_blocks</td><td>10</td><td>15</td></tr><tr><td>GPU</td><td>1xRTX3090Ti</td><td>1xRTX8000</td></tr></table>
|
| 563 |
+
|
| 564 |
+
Table 2: Hyperparameters used for training the AFlowNets on on tic-tac-toe and Connect-4
|
| 565 |
+
|
| 566 |
+

|
| 567 |
+
Figure 5: Graphs of learning performance over various training runs. (Left) The average MAE of learned node flows (not in log space) compared to ground truth flows computed algorithmically. (Middle) Average MAE for learned edge flows. (Right) Loss rate of the three training regimes against a random uniform opponent.
|
| 568 |
+
|
| 569 |
+

|
| 570 |
+
|
| 571 |
+

|
| 572 |
+
|
| 573 |
+
# E ADDITIONAL RESULTS FROM ADVERSARIAL GAMES
|
| 574 |
+
|
| 575 |
+
# E.1 CONVERGENCE OF EFLOWNETS/AFLOWNETS TO UNIQUE OPTIMUM
|
| 576 |
+
|
| 577 |
+
In addition to testing game-playing performance, we aim to investigate whether EFlowNets/AFlowNets are capable of learning the correct flows (i.e., those corresponding to the unique optimum). The game tree of tic-tac-toe is small enough that ground truth flows and policies (for a fixed opponent and the stable-point optimum) can be computed algorithmically by backtracking recursively from terminal states.
|
| 578 |
+
|
| 579 |
+
We train neural networks, see §D for details, to evaluate the following configurations:
|
| 580 |
+
|
| 581 |
+
(1) EFlowNet with a fixed stochastic opponent (policy consists of choosing each legal action with equal probability) from one perspective (e.g., always plays X).
|
| 582 |
+
(2) EFlowNet versus a fixed stochastic opponent, learning both perspectives.
|
| 583 |
+
(3) AFlowNet learning using the EDB objective with off-policy self-play.
|
| 584 |
+
|
| 585 |
+
Figure 5 illustrates the learning performance of the three tested configurations. For all configurations, the ground truth flows/policies that satisfy the EDB constraints are learned, as evidenced by the left and middle graphs. Importantly, this is even the case for training through self-play, where the AFlowNet converges to the actual stable-point optimum.
|
| 586 |
+
|
| 587 |
+
Interestingly, the AFlowNet does not need to learn the exact flows to achieve strong game-playing performance. For example, here the AFlowNet is able to always win or draw against a uniform agent after less than 5000 steps even though its MAE relative to the correct flows still decreases substantially in the next 20000 steps. Additionally, the EFlowNet formulation is not enough to obtain a robust game playing agent, particularly when the agent it is playing against does not play well.
|
| 588 |
+
|
| 589 |
+

|
| 590 |
+
Figure 6: Graphs of learning performance over various training runs for AFN, DQN, SoftDQN and AlphaZero. (Left) The percent of optimal moves (for TicTacToe solved through minimax) over all states. (Right) Loss rate of the algorithms against a random uniform opponent.
|
| 591 |
+
|
| 592 |
+
# E.2 COMPARISON TO DQN AND SOFTDQN
|
| 593 |
+
|
| 594 |
+
We include additional results comparing DQN and SoftDQN to AFlowNets on TicTacToe in Fig. 6. Getting standard RL algorithms to work in multi-agent settings (learning through self-play) is non trivial and does not work in many common RL libraries.
|
| 595 |
+
|
| 596 |
+
To remedy this, and to ensure as fair of a comparison as possible, we implement DQN and its soft equivalent inside our framework (i.e. using the same environment as AFN, the same architecture, etc.). Notably, to achieve an agent that could consistently beat a uniform opponent, it was necessary to use a minimax version of DQN similar to (Fan et al., 2020) for sequential games (i.e. the q-update is based on the negation of the maximum $q$ -value of the opponent). For the soft version (denoted SoftDQN), we sample trajectories using the softmax of the Q-values and similarly use the softmax for the updates (once again in a minimax fashion).
|
| 597 |
+
|
| 598 |
+
# E.3 TIC-TAC-TOE TOURNAMENT
|
| 599 |
+
|
| 600 |
+
To test the performance of AFlowNets against state of the art methods such as AlphaZero, we train a popular open-source AlphaZero implementation Thakoor et al. (2016) to play tic-tac-toe, pitting the agents against each other and baselines in a tournament. In the set of baselines we include a uniform opponent and a tree-search agent<sup>2</sup>. By changing the value of $\lambda$ for the AFlowNet, we also test how the learned policy changes with varying rewards. We proceed to test the performance of EDB-based AFlowNets and TB-based AFlowNets.
|
| 601 |
+
|
| 602 |
+
Results with EDB-based AFlowNets Some selected results of the tournament are listed in Table 3. Note that AlphaZero is trained with Monte Carlo tree search (MCTS), but is tested in the tournament with MCTS both on and off. This ensures a fair comparison of inference-time game-playing capabilities as AFlowNets have no such tree-search mechanism to generate a policy.
|
| 603 |
+
|
| 604 |
+
It is clear from the tournament results in Table 3 that AlphaZero and AFlowNet agents are capable of perfect play in tic-tac-toe, drawing nearly every game that was played. The biggest differences in performance come from playing against the uniform and tree-search agents. It is clear that $\mathrm{AFlowNet}_{10}$ performed the best, winning or drawing all games against the uniform and tree-search agents. Interestingly, while a higher $\lambda$ produces a better X-playing agent, the same is not true for agents playing second: against the tree-search and uniform agents, a lower $\lambda$ corresponds to a better score. As such, there may be a diminishing return with higher values of $\lambda$ , perhaps encouraging overly-risky behaviour.
|
| 605 |
+
|
| 606 |
+
Training with MCTS seems to greatly improve the speed of convergence, as AlphaZero converges to a stable Elo after only a few training steps, see Figure 7. In comparison, AFlowNets require more training steps, optimization steps, and training examples to reach a similar level of performance
|
| 607 |
+
|
| 608 |
+
Table 3: Selected results of AFlowNets (AFlowNet $\lambda$ ) pitted against AlphaZero (A0) and baselines in tic-tac toe. The agents listed in the rows are playing first as X, the agents listed in the columns are playing second as O. AFlowNets are trained five times with different seeds. The results of the tournament represent the mean and standard deviation of the games over the different seeds, where wins, draws, and losses are given two points, one point, and zero points respectively. Each element in the table is the result from the perspective of the X-playing agent in the row. For example, A0 playing X achieved a score of $44.2 \pm 5.1$ against the uniform agent.
|
| 609 |
+
|
| 610 |
+
<table><tr><td>×↓ | ○→</td><td>AFlowNet2</td><td>AFlowNet10</td><td>AFlowNetAFlowNet15</td><td>A0</td><td>A0+MCTS</td><td>Uniform</td><td>Tree Search</td></tr><tr><td>AFlowNet2</td><td>-</td><td>25 ± 0</td><td>35 ± 13.7</td><td>25 ± 0</td><td>25 ± 0</td><td>45.6 ± 1.5</td><td>45.4 ± 6.4</td></tr><tr><td>AFlowNet10</td><td>25 ± 0</td><td>-</td><td>35 ± 13.7</td><td>25 ± 0</td><td>25 ± 0</td><td>49.8 ± 1.1</td><td>47.6 ± 5.4</td></tr><tr><td>AFlowNet15</td><td>15 ± 13.7</td><td>15 ± 13.7</td><td>-</td><td>30 ± 20.9</td><td>23.2 ± 18.3</td><td>43 ± 2.6</td><td>36 ± 22.0</td></tr><tr><td>A0</td><td>25 ± 0</td><td>25 ± 0</td><td>35 ± 13.7</td><td>-</td><td>25 ± 0</td><td>44.2 ± 5.1</td><td>50 ± 0</td></tr><tr><td>A0+MCTS</td><td>25 ± 0</td><td>25 ± 0</td><td>38.4 ± 13.7</td><td>25 ± 0</td><td>-</td><td>47.4 ± 2.1</td><td>49.8 ± 0.4</td></tr><tr><td>Uniform</td><td>7.2 ± 2.3</td><td>6.8 ± 0.5</td><td>13.8 ± 7.6</td><td>11 ± 7.5</td><td>10.6 ± 3.6</td><td>-</td><td>22.8 ± 5.6</td></tr><tr><td>Tree Search</td><td>0 ± 0</td><td>0 ± 0</td><td>15 ± 22.4</td><td>0 ± 0</td><td>0.4 ± 0.9</td><td>37.8 ± 3.6</td><td>-</td></tr></table>
|
| 611 |
+
|
| 612 |
+

|
| 613 |
+
Figure 7: Elo over optimization steps while training a EDB-based AFlowNet agent in tic-tac-toe. The Elo of the agents after the full course of training are $363.2 \pm 7.7$ , $357.2 \pm 12.7$ , $356.9 \pm 11.6$ , $344.3 \pm 4.6$ , and $317.6 \pm 14.3$ for AFlowNet<sub>10</sub>, AFlowNet<sub>2</sub>, AFlowNet<sub>15</sub>, AlphaZero+MCTS, and AlphaZero respectively. Other AFlowNet agents and error bars for the baseline models are omitted for clarity.
|
| 614 |
+
|
| 615 |
+
to AlphaZero in terms of Elo. $\mathrm{AFlowNet}_{10}$ achieves the highest Elo, reinforcing its tournament performance in Table 3. Again, it appears that a larger $\lambda$ produces a worse AFlowNet agent, with $\mathrm{AFlowNet}_{15}$ achieving the lowest Elo of all AFlowNets. The AlphaZero agents also achieve high Elo scores, with AlphaZero+MCTS achieving the better score of the two.
|
| 616 |
+
|
| 617 |
+
AlphaZero converges to a stable Elo after a small number of optimization steps whereas AFlowNets using the EDB constraint require an order of magnitude more steps to reach a similar Elo (about 50k steps versus 5k to 10k steps). A similar trend holds for training time, with AFlowNets requiring about 15 times longer to reach similar Elo scores (AlphaZero+MCTS took 38 seconds to reach an Elo of 46 whereas the first AFlowNet to reach a similar Elo of 51 took 558 seconds). While AFlowNets can certainly learn to play tic-tac-toe effectively, they clearly require far more training time and computation to achieve similar levels of performance to AlphaZero. We have not tested AlphaZero without MCTS in training, nor AFlowNets with tree search, so the comparison naturally favors AlphaZero given the power of tree search.
|
| 618 |
+
|
| 619 |
+
Table 4: Selected results of AFlowNets (AFlowNet $_t$ ) pitted against AlphaZero (A0) and a random uniform baseline in Connect-4. The agents listed in the rows are playing first and the agents listed in the columns are playing second. AFlowNets are trained three times with different seeds. The results of the tournament represent the mean and standard deviation of the games over the different seeds, where wins, draws, and losses are given two points, one point, and zero points respectively. Each element in the table is the result from the perspective of the agent that played first in the row. For example, A0 playing first achieved a score of $49.2 \pm 1.8$ against the uniform agent.
|
| 620 |
+
|
| 621 |
+
<table><tr><td>×↓ | ○→</td><td>AFlowNet2</td><td>AFlowNet10</td><td>AFlowNet15</td><td>A0</td><td>A0+MCTS</td><td>Uniform</td></tr><tr><td>AFlowNet2</td><td>-</td><td>0 ± 0</td><td>5 ± 11.2</td><td>50 ± 0</td><td>32.8 ± 19.4</td><td>50 ± 0</td></tr><tr><td>AFlowNet10</td><td>50 ± 0</td><td>-</td><td>20 ± 27.4</td><td>50 ± 0</td><td>46.2 ± 8.5</td><td>50 ± 0</td></tr><tr><td>AFlowNet15</td><td>50 ± 0</td><td>35 ± 22.4</td><td>-</td><td>50 ± 0</td><td>50 ± 0</td><td>50 ± 0</td></tr><tr><td>A0</td><td>0 ± 0</td><td>0 ± 0</td><td>0 ± 0</td><td>-</td><td>25 ± 0</td><td>49.2 ± 1.8</td></tr><tr><td>A0+MCTS</td><td>8.8 ± 8.7</td><td>0.8 ± 1.8</td><td>0 ± 0</td><td>25 ± 0</td><td>-</td><td>49 ± 1.0</td></tr><tr><td>Uniform</td><td>0 ± 0</td><td>0 ± 0</td><td>0 ± 0</td><td>8.4 ± 2.6</td><td>1.2 ± 1.6</td><td>-</td></tr></table>
|
| 622 |
+
|
| 623 |
+
Results with TB-based AFlowNets The results thus far have focused on EDB-trained agents, but it is important to demonstrate the performance of TB-based agents as well. Figure 3 illustrates the Elo over three training runs with different seeds of $\mathrm{AFlowNet}_{10}$ and the baseline models. Clearly, $\mathrm{AFlowNet}_{10}$ matches the Elo of AlphaZero and converges quickly. Compared to Figure 7, it appears that TB-based agents converge about as quickly as AlphaZero, about 10 times faster than the EDB-based agents. Interestingly, the Elo of the TB-based AFlowNets is lower than the Elo of the EDB-based AFlowNets.
|
| 624 |
+
|
| 625 |
+
There appears to be little difference in the performance of a TB-trained AFlowNet with different values of $\lambda$ in tic-tac-toe. This is in contrast to the EDB-trained AFlowNets which seemed to be affected by the setting of $\lambda$ . Similarly to the EDB-based agents, almost every game in the tournament was a draw, with small differences between the performance of an agent against the baselines dictating the differences in Elo.
|
| 626 |
+
|
| 627 |
+
# E.4 CONNECT-4 TOURNAMENT
|
| 628 |
+
|
| 629 |
+
We also run a tournament in Connect-4 against AlphaZero and a uniform random baseline. Again, we vary $\lambda$ to test how the reward structure changes agent performance. The tournament results in Table 4 indicate that the effect of $\lambda$ is similar to the experiments in tic-tac-toe. A higher $\lambda$ produces a better agent, however the diminishing return in these experiments relates to a reduction in benefit when increasing lambda rather than a decrease in Elo. This supports the idea that the reward structure affects the behaviour of an agent. The results of the Connect-4 tournament corroborate the Elo results of Figure 3. The Elos of agents $\mathrm{AFlowNet}_2$ , $\mathrm{AFlowNet}_{10}$ , and $\mathrm{AFlowNet}_{15}$ are $1190.8 \pm 64.2$ , $1700.1 \pm 60.0$ , and $1835.3 \pm 154.9$ . Clearly, $\mathrm{AFlowNet}_{15}$ is the best agent.
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a106b6ec67e0a217e97af7948dd1285d1aec10b273a907390af6629656aaaffc
|
| 3 |
+
size 735667
|
2024/Expected flow networks in stochastic environments and two-player zero-sum games/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/f817dfde-0e7c-40f8-83cd-f291de742776_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32f2f35a3a6512aac18da5113e18f11fe498f0af199506bbefcd1a63d0cfd3e3
|
| 3 |
+
size 2775600
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6b0d0c2d83aa6aafe7c6af8b987f0414f1273ba93721a5b313ace0b9706f3c48
|
| 3 |
+
size 597938
|
2024/Experimental Design for Multi-Channel Imaging via Task-Driven Feature Selection/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Kernel Clustering via Decision Trees/c3a41d04-27bc-4594-84f2-d189249c4a57_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6c830629199f4df58336da05fb5415e41c1f6ebdae09aaa5b7acd6d27598e65c
|
| 3 |
+
size 1752612
|
2024/Explaining Kernel Clustering via Decision Trees/full.md
ADDED
|
@@ -0,0 +1,705 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXPLAINING KERNEL CLUSTERING VIA DECISION TREES
|
| 2 |
+
|
| 3 |
+
Maximilian Fleissner
|
| 4 |
+
|
| 5 |
+
Technical University of Munich
|
| 6 |
+
fleissner@cit.tum.de
|
| 7 |
+
|
| 8 |
+
Leena C. Vankadara
|
| 9 |
+
|
| 10 |
+
Amazon Research
|
| 11 |
+
Tübingen
|
| 12 |
+
vleena@amazon.com
|
| 13 |
+
|
| 14 |
+
Debarghya Ghoshdastidar
|
| 15 |
+
|
| 16 |
+
Technical University of Munich ghoshdas@cit.tum.de
|
| 17 |
+
|
| 18 |
+
# ABSTRACT
|
| 19 |
+
|
| 20 |
+
Despite the growing popularity of explainable and interpretable machine learning, there is still surprisingly limited work on inherently interpretable clustering methods. Recently, there has been a surge of interest in explaining the classic k-means algorithm, leading to efficient algorithms that approximate k-means clusters using axis-aligned decision trees. However, interpretable variants of k-means have limited applicability in practice, where more flexible clustering methods are often needed to obtain useful partitions of the data. In this work, we investigate interpretable kernel clustering, and propose algorithms that construct decision trees to approximate the partitions induced by kernel k-means, a nonlinear extension of k-means. We further build on previous work on explainable k-means and demonstrate how a suitable choice of features allows preserving interpretability without sacrificing approximation guarantees on the interpretable model.
|
| 21 |
+
|
| 22 |
+
# 1 INTRODUCTION
|
| 23 |
+
|
| 24 |
+
The increasing predictive power of machine learning has made it a popular tool in many scientific fields. Sensitive applications such as healthcare or autonomous driving however require more than just good accuracy—it is also crucial for a model's decisions to be interpretable (Tjoa & Guan, 2020; Varshney & AleMZadeh, 2017). Unfortunately, popular machine learning models are not transparent and are often referred to as "black box" approaches. The demand for explainable machine learning has led to the development of several tools over the last few years, albeit mostly for supervised learning. Methods such as LIME or Shapley values (Ribeiro et al., 2016; Lundberg & Lee, 2017) are designed to explain the prediction of any given machine learning model. However, posthoc-explainability often is unreliable and has been criticized for not providing insight into the underlying model itself (Rudin, 2019). Counterfactual explanations on the other hand explicitly show the change in prediction had the input variables been different (Wachter et al., 2017), but do not lead to easily interpretable models. Hence, Rudin (2019) calls on researchers and practitioners to "Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead".
|
| 25 |
+
|
| 26 |
+
Decision trees are at the heart of several inherently interpretable machine learning models (Molnar, 2020; Breiman, 2017), and have recently also gained significant interest in the field of clustering (Bertsimas et al., 2018; Fraiman et al., 2013; Ghattas et al., 2017). Through recursive partitioning of the data based on individual features, they provide interpretability on a global scale by identifying the important features, while at the same time also allowing us to retrace the path of individual decisions through the tree. Despite the extensive empirical research on decision trees for clustering, Moshkovitz et al. (2020) were the first to introduce a clustering model based on decision trees that also satisfies worst-case approximation guarantees. They propose the Iterative Mistake Minimization (IMM) algorithm which approximates a given $k$ -means clustering by a decision tree with $k$ leaves, where each leaf represents a cluster. The quality of the resulting interpretable clustering is measured by the price of explainability, defined as the ratio between the cost of the decision tree and the optimal $k$ -means cost. IMM returns a decision tree with price of explainability of order $O(k^2)$ , implying that the interpretable clusters achieve a cost not much worse than the optimal partition.
|
| 27 |
+
|
| 28 |
+
Various interpretable clustering solutions for the $k$ -means problem with theoretical guarantees have emerged (see Appendix A for an overview). However, despite these advancements, a fundamental
|
| 29 |
+
|
| 30 |
+

|
| 31 |
+
Figure 1: $k$ -means does not perform well on halfmoons data that is not linearly separable, and explainable $k$ -means naturally inherits its flaws. Kernel $k$ -means perfectly finds the clusters and hence, its interpretable variant (proposed Kernel IMM) returns an axis-aligned decision tree with good clustering.
|
| 32 |
+
|
| 33 |
+

|
| 34 |
+
|
| 35 |
+

|
| 36 |
+
|
| 37 |
+

|
| 38 |
+
|
| 39 |
+
issue persists: the $k$ -means cost is ill-suited for real-world datasets, as it fails to identify clusters that are not linearly separable. Clustering methods deployed in practice tend to be more complex, and consequently even less interpretable than standard $k$ -means. The kernel $k$ -means algorithm (Dhillon et al., 2004) that extends the standard $k$ -means by implicitly mapping data to a reproducing kernel Hilbert space (RKHS), is particularly notable. It allows to discern clusters beyond Voronoi partitions of the input space, but this increased flexibility further diminishes the model's interpretability.
|
| 40 |
+
|
| 41 |
+
Works on interpretable kernel methods are scarce. Chau et al. (2022) propose efficient methods for computing Shapley values for kernel regression, which provide post-hoc explanations. Wu et al. (2019) enforce interpretability in kernel dimension reduction by linearly projecting the data into a low-dimensional space before computing kernel matrices—in spite of operating on fewer features, the kernel step of this approach is not interpretable. As such, the interpretability of kernel methods remains an open problem. We resolve this in the context of clustering by providing decision tree based interpretable approximations of the kernel $k$ -means algorithm with provable guarantees.
|
| 42 |
+
|
| 43 |
+
Our contributions. While a significant body of work on decision trees for explaining $k$ -means has emerged, these algorithms cannot directly be translated to the kernel setting. In particular, there are cases where explainable $k$ -means does not lead to axis-aligned decision trees for any choice of features for the popular Gaussian kernel. We prove this in Section 3 by introducing the notions of interpretable feature maps and interpretable decision trees, which provide a theoretical characterization of the obstacles that interpretability faces in kernel clustering. Building on these insights in Section 4, we demonstrate how suitably chosen surrogate features can resolve this issue, and we derive a kernelized variant of the IMM algorithm (Moshkovitz et al., 2020) that preserves interpretability. These surrogate features exist for several important product kernels, including the Gaussian and Laplace kernel. Crucially, the proposed algorithm (Kernel IMM) also comes with worst-case guarantees on the price of explainability for a class of interpretable Taylor kernels that include the Gaussian kernel. By incorporating information encoded in the nonlinearity of kernel $k$ -means, the resulting decision trees lead to significantly better results than explainable $k$ -means, as Figure 1 illustrates. In Section 5, we further build on previous work (Frost et al., 2020) to derive two kernelized algorithms (Kernel ExKMC and Kernel Expand) that can be used to further refine the partitions obtained from Kernel IMM (by adding more leaves to the tree). Both can also be run on an empty tree, but do not admit worst-case bounds in this case. We conclude by demonstrating the empirical performance of the proposed methods in Section 6. The algorithms are included in Table 1.
|
| 44 |
+
|
| 45 |
+
Table 1: Overview of our algorithms ( $x_{i}$ denotes $i$ -th coordinate of point $x \in \mathbb{R}^{d}$ )
|
| 46 |
+
|
| 47 |
+
<table><tr><td>Algorithm</td><td>Axis-aligned cuts</td><td>Worst price of explainability</td></tr><tr><td>Kernel for additive kernels</td><td>xi∈[θ1, θ2]</td><td>O(k2) (Remark 1, Appendix H)</td></tr><tr><td>for interpretable Taylor kernels</td><td>xi∈[θ1, θ2]</td><td>O(dk2) (Theorem 4)</td></tr><tr><td>for distance-based product kernels</td><td>xi∈[θ1, θ2]</td><td>O(dk2·Cdata) (Theorem 5)</td></tr><tr><td>Kernel ExKMC on empty tree</td><td>xi≥θ or xi∈[θ1, θ2]</td><td>Provably unbounded (Theorem 6)</td></tr><tr><td>Kernel Expand on empty tree</td><td>xi≥θ or xi∈[θ1, θ2]</td><td>Provably unbounded (Remark 2)</td></tr></table>
|
| 48 |
+
|
| 49 |
+
# 2 BACKGROUND AND PRELIMINARIES
|
| 50 |
+
|
| 51 |
+
Consider a dataset of $n$ points, $X = \{x^{(1)}, x^{(2)}, \ldots, x^{(n)}\} \subseteq \mathbb{R}^d$ . We use $x^{(i)}$ to denote the $i$ -th data point in $X$ , while the notation $x_i$ denoting the $i$ -th coordinate of any $x \in \mathbb{R}^d$ appears more frequently.
|
| 52 |
+
|
| 53 |
+
$k$ -means and kernel $k$ -means. For a partition of $X$ into $k$ disjoint clusters $C_1, \ldots, C_k$ with means $c_1, \ldots, c_k \in \mathbb{R}^d$ , the $k$ -means cost of the partition is defined as
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\operatorname {c o s t} \left(C _ {1}, \dots , C _ {k}\right) = \sum_ {l = 1} ^ {k} \sum_ {x \in C _ {l}} \| x - c _ {l} \| ^ {2}. \tag {1}
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
The optimal $k$ -means cost of $X$ is the minimum achievable cost, over all partitions $C_1, \ldots, C_k$ . We define $\mathcal{M} = \{c_1, \ldots, c_k\}$ as the set of cluster centers obtained from some algorithm designed to minimize the $k$ -means cost (1). Since finding the optimal set of centers is NP-hard (Dasgupta, 2008), in practice $\mathcal{M}$ may not necessarily consist of the $k$ optimal cluster centers. Kernel $k$ -means clustering (Dhillon et al., 2004) replaces the squared Euclidean distance in (1) by a kernel-based distance. A kernel is a symmetric, positive definite function $K: \mathbb{R}^d \times \mathbb{R}^d \to \mathbb{R}$ . Every kernel is implicitly associated with a feature space $\mathcal{H}$ , called the reproducing kernel Hilbert space (RKHS), and a feature map $\psi: \mathbb{R}^d \to \mathcal{H}$ satisfying $K(x, y) = \langle \psi(x), \psi(y) \rangle$ for all $x, y \in \mathbb{R}^d$ . For algorithms that only require knowledge of inner products between points $\psi(x)$ and $\psi(y)$ , there is no need to compute the feature map explicitly, but one may instead use the kernel $K(x, y)$ to evaluate $\langle \psi(x), \psi(y) \rangle$ . Thus the (implicit) feature map $\psi$ transforms the data non-linearly to a high dimensional space that provides additional flexibility in the model, without increasing the computational complexity. This is commonly known as the kernel trick. Given data $X \subseteq \mathbb{R}^d$ and a kernel $K$ on $\mathbb{R}^d$ , kernel $k$ -means attempts to find a partitioning $\mathcal{C} = \{C_1, \ldots, C_k\}$ of $X$ that minimizes
|
| 60 |
+
|
| 61 |
+
$$
|
| 62 |
+
\operatorname {c o s t} \left(C _ {1}, \dots , C _ {k}\right) = \sum_ {l = 1} ^ {k} \sum_ {x \in C _ {l}} \| \psi (x) - c _ {l} \| ^ {2} \tag {2}
|
| 63 |
+
$$
|
| 64 |
+
|
| 65 |
+
where the centers $c_{1},\ldots ,c_{k}$ are the means of each cluster in the feature space $\mathcal{H}$ . Appendix B shows how the cost (2) is expressed in terms of kernel $K$ and also includes the kernel $k$ -means algorithm.
|
| 66 |
+
|
| 67 |
+
Explainable $k$ -means. The goal of explainable $k$ -means clustering is to approximate a given partition $C_1, \ldots, C_k$ of $X \subseteq \mathbb{R}^d$ , with centers $\mathcal{M}$ , by an inherently interpretable model. Axis-aligned decision trees with $k$ leaves have emerged as a natural choice for this purpose, where every leaf of the tree $T$ corresponds to one cluster. Intuitively, one could think that the tree can simply be obtained by using a supervised learning algorithm with the cluster assignments as labels. However, Moshkovitz et al. (2020, Section 3) show that such algorithms can have arbitrarily bad worst-case approximation guarantees on the cost of the clustering induced by the decision tree, which we denote by $cost(T, X)$ . This observation has sparked the development of more sophisticated approaches (Moshkovitz et al., 2020; Esfandiari et al., 2022; Charikar & Hu, 2022; Gamlath et al., 2021; Laber & Murtinho, 2021), all of which construct the tree $T$ in a top-down manner: At every internal node $u$ , an axis-aligned cut $x_i \geq \theta$ partitions the data at node $u$ , while ensuring that every cluster center $c_l \in \mathcal{M}$ ends up in exactly one leaf of $T$ . This last requirement is crucial to obtain approximation guarantees. While several works restrict $T$ to have exactly $k$ leaves, few also allow more than $k$ leaves for better approximation (Makarychev & Shan, 2022; Frost et al., 2020). Appendix A provides a review of works on explainable $k$ -means, while Appendix C gives a more detailed description of the Iterative Mistake Minimization (IMM) algorithm (Moshkovitz et al., 2020) that we build on in Section 4.
|
| 68 |
+
|
| 69 |
+
# 3 EXPLAINABLE KERNEL K-MEANS VIA CUTS ON FEATURE MAPS
|
| 70 |
+
|
| 71 |
+
The objective of this paper is to present an inherently interpretable model that approximates the kernel $k$ -means algorithm. In this section, we make the first steps towards this goal. Standard supervised approaches for learning decision trees are questionable since they, as discussed earlier, can be arbitrarily bad for approximating even the standard $k$ -means clustering. On the other hand, the aforementioned iterative decision tree construction admits good worst case guarantees in the context of $k$ -means. Hence, a natural starting point would be to **kernelize** it. Unfortunately however,
|
| 72 |
+
|
| 73 |
+
the method heavily relies on explicitly characterizing the cluster centers. In kernel clustering, these cluster centers $c_{1},\ldots ,c_{k}$ reside in the RKHS $\mathcal{H}$ instead of $\mathbb{R}^d$ , and typically do not have a pre-image in the input space $\mathbb{R}^d$ . Thus, operating on centers necessitates explicit computation of the feature maps, which is in contrast to the typical use of the kernel trick.
|
| 74 |
+
|
| 75 |
+
A naive kernelization of existing algorithms would hence aim to operate in $\mathcal{H}$ and find axis-aligned cuts using the coordinates of the projection $\psi(x)$ . This approach has two fundamental limitations. For one, it requires an explicit characterization of the RKHS $\mathcal{H}$ or the feature map $\psi$ —the two famously implicit entities in the kernel trick. Explicit characterizations of $\mathcal{H}$ or $\psi$ however are not known for most kernels, and even if they are known, the dimension of $\mathcal{H}$ could be infinite (Steinwart et al., 2006), making it practically impossible to iterate over all axes. This problem does not pose a practical concern when clustering a finite set of points. Any kernel matrix $K \in \mathbb{R}^{n \times n}$ , computed on data $X = \{x^{(1)}, \ldots, x^{(n)}\}$ , can be decomposed as $K = \Phi \Phi^{\top}$ for some $\Phi = [\phi_1(x^{(j)}) \dots \phi_D(x^{(j)})]_{j=1}^n \in \mathbb{R}^{n \times D}$ through Cholesky or eigendecomposition, providing a data-dependent feature map that we denote as $\phi: X \to \mathbb{R}^D$ .
|
| 76 |
+
|
| 77 |
+
The second concern is how to translate axis-aligned cuts $\phi_j(x) \geqslant \theta$ back to axis-aligned cuts in $\mathbb{R}^d$ . Here, $\phi_j$ denotes the $j$ -th coordinate of $\phi: X \to \mathbb{R}^D$ . This issue is critically important in the context of interpretability, and can be decomposed into two principle concerns: Firstly, if $\phi_j(x)$ is a function of more than one coordinate $x_i$ , then a cut $\phi_j(x) \geqslant \theta$ cannot correspond to an axis-aligned partition of $\mathbb{R}^d$ . Secondly, even if $\phi_j(x)$ depends on exactly one coordinate $x_j$ , the cut $\phi_j(x) \geqslant \theta$ cannot correspond to a cut $x_j \geqslant \theta'$ unless $\phi_j$ is monotonic.
|
| 78 |
+
|
| 79 |
+
These conditions are not trivial and, as we show below, the popular Gaussian kernel does not satisfy either of the two conditions, whereas some additive kernels satisfy both. To formally show this, we introduce the notion of interpretable feature maps.
|
| 80 |
+
|
| 81 |
+
Definition 1. (Interpretable feature maps) Let $\phi : X \to \mathbb{R}^D$ be a feature map defined on the dataset $X \subseteq \mathbb{R}^d$ such that $K(x, y) = \langle \phi(x), \phi(y) \rangle = \sum_{j=1}^{D} \phi_j(x) \phi_j(y)$ for all $x, y \in X$ . We say that the feature map $\phi = (\phi_1, \ldots, \phi_D)$ is interpretable if each $\phi_j(x)$ depends exactly on one coordinate of $x$ .
|
| 82 |
+
|
| 83 |
+
The following result shows that no feature map for the Gaussian kernel can be interpretable, even if we allow the feature maps to be data-dependent.
|
| 84 |
+
|
| 85 |
+
Theorem 1. (The Gaussian kernel cannot have interpretable feature maps) Consider the Gaussian kernel $K(x,y) = e^{-\gamma \| x - y\| _2^2}$ in $d > 1$ dimensions. There exists a dataset $X$ such that for any feature map $\phi :X\to \mathbb{R}^{D}$ satisfying $\langle \phi (x),\phi (y)\rangle = K(x,y)$ for all $x,y\in X$ , there exists some $j\in [D]$ such that $\phi_j$ depends on more than just one input dimension of $x\in X$ .
|
| 86 |
+
|
| 87 |
+
The short proof is given in Appendix D.1. In Section 4, we resolve the inherent non-interpretability of feature maps for the Gaussian kernel by resorting to suitably chosen surrogate features. However, this still leaves the concern about monotonicity of $\phi_j$ . This too cannot hold for the Gaussian kernel.
|
| 88 |
+
|
| 89 |
+
Theorem 2. (The Gaussian kernel does not admit monotonic features) Consider the one-dimensional Gaussian kernel $K(x,y) = e^{-\gamma |x - y|^2}$ . Then, there exists a dataset $X \subseteq \mathbb{R}$ such that for any feature map $\phi : X \to \mathbb{R}^D$ there exists a component $\phi_j, j \in [D]$ that is not monotonic.
|
| 90 |
+
|
| 91 |
+
The proof is included in Appendix D.2. Theorem 2 suggests that the existing notion of interpretability, specified through threshold cuts $x_{i} \geqslant \theta$ , is too restrictive for deriving interpretable decision trees for kernels. Hence, we propose to expand the definition of interpretability. Although the partitions at each node should still align with the axes of $\mathbb{R}^d$ (this ensures that the important features can be identified), we allow the partition at the node to be any interval and its complement.
|
| 92 |
+
|
| 93 |
+
Definition 2. (Interpretable decision trees) Consider a decision tree $T$ that partitions a dataset $X \subset \mathbb{R}^d$ into $k$ leaves. We call $T$ an interpretable decision tree if at every node $u \in T$ , there exists some $i \in [d]$ , $\theta_1 < \theta_2 \in \mathbb{R}$ such that the data $X^u$ that arrives at $u$ is split into two disjoint subsets
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
X _ {L} ^ {u} = \{x \in X ^ {u}: x _ {i} \in [ \theta_ {1}, \theta_ {2} ] \} \quad a n d \quad X _ {R} ^ {u} = \{x \in X ^ {u}: x _ {i} \notin [ \theta_ {1}, \theta_ {2} ] \}. \tag {3}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
To conclude this section, we remark that several important additive kernels do in fact admit feature maps that give rise to interpretable decision trees.
|
| 100 |
+
|
| 101 |
+
Remark 1. (Certain additive kernels have interpretable and monotonic features) Additive kernels on $\mathbb{R}^d$ refer to kernels that can be decomposed as $K(x,y) = \sum_{i=1}^{d} K_i(x,y)$ , where each $K_i$ is
|
| 102 |
+
|
| 103 |
+
Algorithm 1 Kernel IMM for interpretable Taylor, or distance-based product kernels
|
| 104 |
+
|
| 105 |
+
Input: Data $X$ , integer $k$ , kernel $K$ with surrogate feature map $\phi$ . For interpretable Taylor kernels see Definition 3, for distance-based kernels see Equation (4).
|
| 106 |
+
|
| 107 |
+
Output: Interpretable decision tree $T$ that partitions $X$ into $k$ leaves
|
| 108 |
+
|
| 109 |
+
Get reference clustering $C_1, \ldots, C_k \gets \text{KERNEL } k$ -MEANS(X, K, k)
|
| 110 |
+
|
| 111 |
+
Compute surrogate features $\Phi = \left[\phi_1(x)\dots \phi_d(x)\right]$ and centers $\mathcal{M} = \{c_1,\ldots ,c_k\}$ under $\phi$
|
| 112 |
+
|
| 113 |
+
Construct a decision tree $T \gets \mathrm{IMM}(\Phi, y, \mathcal{M})$ , where $y$ denotes the cluster assignments.
|
| 114 |
+
|
| 115 |
+
Translate threshold cuts of $T$ back to a decision tree on $X$ .
|
| 116 |
+
|
| 117 |
+
a kernel on $\mathbb{R}$ . Additive kernels are commonly used for comparing histograms, e.g. in computer vision (Maji et al., 2012; Vedaldi & Zisserman, 2012). In Appendix H, we consider three popular additive kernels and derive feature maps $\phi$ for which any threshold cut $\phi_j(x) \geq \theta$ translates to an axis-aligned cut $x_j \in [\theta_1, \theta_2]$ . Hence, one may run IMM on the map $\phi$ and directly translate the tree from the feature space to an interpretable decision tree.
|
| 118 |
+
|
| 119 |
+
# 4 KERNELITERATIVEMISTAKEMINIMIZATION(KERNEL IMM)
|
| 120 |
+
|
| 121 |
+
In this section, we present an interpretable kernel $k$ -means algorithm that is applicable to a wide range of bounded product kernels, which include the Gaussian kernel $K(x,y) = e^{-\gamma \| x - y\|_2^2}$ as well as other distance-based product kernels such as the Laplace kernel $K(x,y) = e^{-\gamma \| x - y\|_1}$ . We focus on the aforementioned idea of constructing interpretable decision trees via axis-aligned cuts of suitably chosen feature maps $\phi$ , thereby leveraging existing approximation guarantees. The base interpretable $k$ -means method that we "kernelize" is the IMM algorithm, primarily due to its simpler analysis. We believe the same construction can also leverage worst-case approximation guarantees for other explainable $k$ -means algorithms (with tighter guarantees). The proposed Kernel IMM algorithm is described in Algorithm 1, and illustrated in Figure 2.
|
| 122 |
+
|
| 123 |
+
Surrogate features. Bounded product kernels on $\mathbb{R}^d$ can be expressed as $K(x,y) = \prod_{i=1}^{d} K_i(x,y)$ , where each $K_i$ is a kernel on $\mathbb{R}$ , operating on the $i$ -th coordinate of data. We assume that $K_i(x,y) \leq K_i(x,x) = 1$ for all $x,y \in \mathbb{R}^d$ . The RKHS of a product kernel $K$ is given by the tensorization $\mathcal{H} = \mathcal{H}_1 \otimes \ldots \otimes \mathcal{H}_d$ , where $\mathcal{H}_i$ is the RKHS of kernel $K_i$ . The implicit feature map $\psi: \mathbb{R}^d \to \mathcal{H}$ associated with the product kernel $K$ can be related to the feature maps $\psi_i: \mathbb{R} \to \mathcal{H}_i$ of the $d$ individual kernels $K_i$ via $\langle \psi(x), \psi(y) \rangle = \prod_{i=1}^{d} \langle \psi_i(x_i), \psi_i(y_i) \rangle$ . In order to preserve axis-aligned structures, we propose to use a surrogate feature map $\phi = (\phi_1, \dots, \phi_d)$ , where each $\phi_i$ is a finite-dimensional approximation to $\psi_i$ . Notably, $\phi$ does not approximate a map to $\mathcal{H}$ but instead to the Cartesian space $\mathcal{H}_1 \times \ldots \times \mathcal{H}_d$ , and $\langle \phi(x), \phi(y) \rangle \approx \sum_{i=1}^{d} \langle \psi_i(x_i), \psi_i(y_i) \rangle \neq \langle \psi(x), \psi(y) \rangle$ . Crucially however, we will show later that the additional cost induced by this step can be bounded. By construction, $\phi = (\phi_i)_{i=1}^d$ is an interpretable feature map, and we may compute the set of cluster centers $\mathcal{M}$ in the surrogate feature space associated with $\phi$ . As described in 1, we let IMM operate on $\mathcal{M}$ . Finally, interpretability of $\phi$ ensures that axis-aligned cuts of $\phi$ do in fact correspond to axis-aligned partitions of the input space $\mathbb{R}^d$ . For the Gaussian kernel, our surrogate features $\phi_i$ are Taylor approximations to $\psi_i$ . We also present an alternative, quite general choice for $\phi_i$ that works for all distance-based product kernels, but leads to data-dependent approximation guarantees.
|
| 124 |
+
|
| 125 |
+
Interpretable Taylor kernels. We now define a class of kernels over $\mathbb{R}$ that we refer to as interpretable Taylor kernels, and construct surrogate features for these kernels.
|
| 126 |
+
|
| 127 |
+
Definition 3. (Interpretable Taylor kernels and their surrogate features) Let $K_{i}$ be a bounded kernel on a connected domain $\mathcal{X}_i \subseteq \mathbb{R}$ , of the form $K_{i}(z,z^{\prime}) = f(z)f(z^{\prime})g(zz^{\prime})$ for some differentiable function $f$ and an analytic function $g$ . Denote by $g^{(j)}$ the $j$ -th derivative of $g$ . Assume that $g^{(j)}(0) \geq 0$ for all $j \in \mathbb{N}$ and that $z^{j-1}(zf'(z) + jf(z)) = 0$ has at most one solution $z$ on $\mathcal{X}_i$ . Then, we call $K_{i}$ an interpretable Taylor kernel. Furthermore, assume $K$ is a product of $d$ interpretable Taylor kernels $K_{1},\ldots,K_{d}$ , defined on a connected domain $\mathcal{X} \subset \mathbb{R}^{d}$ . Given an integer $M$ , we define the surrogate feature map for $K$ as $\phi(x) = (\phi_i(x_i))_{i=1}^d$ , where each $\phi_i : \mathbb{R} \to \mathbb{R}^{M+1}$ is given by $\phi_i(z) = (\phi_{i,j}(z))_{j=0}^M$ where we define $\phi_{i,j}(z) = z^j f(z)\sqrt{g^{(j)}(0)/j!}$ for all $j \leq M$ .
|
| 128 |
+
|
| 129 |
+

|
| 130 |
+
Figure 2: A schematic of Kernel IMM for Interpretable Taylor kernels.
|
| 131 |
+
|
| 132 |
+
The Gaussian kernel with bandwidth $\gamma > 0$ is a product of interpretable Taylor kernels, because with $g(z) = \exp(2z)$ and $f(z) = \exp(-\gamma z^2)$ , $zf'(z) + jf(z) = 0$ has at most one solution on $(0, \infty)$ . This is sufficient because we can always assume data $X$ that is clustered using the Gaussian kernel to be contained in $(0, \infty)^d$ , as shifting does not affect the clustering cost.
|
| 133 |
+
|
| 134 |
+
Theorem 3. (Threshold cuts in the surrogate feature space of interpretable Taylor kernels yield interpretable decision trees) Let $K$ be product of interpretable Taylor kernels, and let $\phi$ denote its surrogate feature map. Then, a threshold cut of the form $\phi_{i,j}(x_i) \geqslant \theta$ leads to an interpretable decision tree in $\mathbb{R}^d$ .
|
| 135 |
+
|
| 136 |
+
Our choice of surrogate features doesn't only provide interpretable decision trees, but also preserves worst-case bounds on the cost. To formalize this, we generalize the price of explainability to kernels.
|
| 137 |
+
|
| 138 |
+
Definition 4. (The price of explainability) For a set $X \subset \mathbb{R}^d$ and an interpretable decision tree $T$ as defined in 2, the price of explainability of $T$ on $X$ is defined as the ratio $p(T, X) = \text{cost}(T, X) / \text{cost}_{opt}(X)$ , where $\text{cost}_{opt}(X)$ is the optimal kernel $k$ -means cost. The price of explainability of the data set $X$ is given by $p(X) = \min_T p(T, X)$ , where the minimum is taken over all interpretable decision trees.
|
| 139 |
+
|
| 140 |
+
The Kernel IMM algorithm admits worst-case guarantees quite similar to the ones obtained in the linear setting, albeit with an additional factor of order $d$ . This is a result of operating on the surrogate features that decouple the $d$ input dimensions (see Appendix E).
|
| 141 |
+
|
| 142 |
+
Theorem 4. (Price of explainability for interpretable Taylor kernels) Let $C_1, \ldots, C_k$ be the clusters of a dataset $X \subset \mathbb{R}^d$ derived from kernel $k$ -means, where the kernel $K$ is an interpretable Taylor kernel. Denote by $\Phi = \phi(X)$ the surrogate features for $K$ on $X$ . Then, the interpretable decision tree obtained from Kernel IMM on $\Phi$ satisfies $p(T, X) = O\left(dk^2\right) + \frac{O(dk^2\delta)}{\text{cost}_{opt}(X)}$ , where $\delta = \delta(M)$ depends on the order $M$ of the surrogate feature map and $\lim_{M \to \infty} \delta(M) = 0$ for any dataset $X$ . Thus, by adaptively choosing $M$ such that $\delta = O(\text{cost}_{opt})$ , we obtain $O(dk^2)$ bounds.
|
| 143 |
+
|
| 144 |
+
The proof can be found in Appendix F. For interpretable Taylor kernels, Kernel IMM operates in a feature space of dimension $O(dM)$ . In practice, often even low orders $M \leq 5$ of the Taylor-based surrogate features provide enough flexibility to obtain good interpretable clusterings, and hence Kernel IMM computationally is not much more expensive than standard IMM.
|
| 145 |
+
|
| 146 |
+
Extension to all distance-based product kernels. To conclude this section, we present an extension of Kernel IMM to the entire class of distance-based product kernels $K(x,y) = \prod_{i=1}^{d} h(|x_i - y_i|)$ , where $h$ is a decreasing function on the positive real line, with $h(0) = 1$ . Examples include the Laplace kernel, for which $h(t) = \exp(-t)$ . For these kernels, we simply set
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\phi_ {i, j} (x) = K _ {i} \left(x, x ^ {(j)}\right) = h \left(\left| x _ {i} - x _ {i} ^ {(j)} \right|\right) \tag {4}
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
where $x^{(j)}$ denotes the $j$ th point in the dataset $X$ . Because $\phi_{i,j}(x) \leq \theta$ if and only if $|x_i - x_i^{(j)}| \geq h^{-1}(\theta)$ , this leads to an interpretable decision tree. However, the worst-case bounds obtained from IMM do not translate directly.
|
| 153 |
+
|
| 154 |
+
Theorem 5. (Price of explainability for distance-based product kernels) Let $C_1, \ldots, C_k$ be the clusters of a dataset $X \subset \mathbb{R}^d$ derived from kernel $k$ -means, where the kernel $K$ is a distance-based product kernel. Denote by $\Phi = \phi(X)$ the surrogate features for $K$ on $X$ , where $\phi_{i,j}(x) = K_i(x, x^{(j)})$ . Then, the interpretable decision tree obtained from Kernel IMM on $\Phi$ satisfies $p(T, X) = O(Cdk^2)$ , where $C$ depends on the dataset $X$ and the kernel $K$ .
|
| 155 |
+
|
| 156 |
+
We discuss this in Appendix G. Despite the data-dependent approximation guarantee, we observe in practice that the surrogate features defined in (4) perform well, sometimes even outperforming the surrogate Taylor features of the Gaussian kernel.
|
| 157 |
+
|
| 158 |
+
# 5 GreEDy COST MINIMIZATION
|
| 159 |
+
|
| 160 |
+
While the previous two sections cover several important kernels, there may nonetheless be cases where Kernel IMM is not applicable (because no suitable surrogate features exist), or not powerful enough to approximate kernel $k$ -means (due to its restriction to just $k$ leaves, as we illustrate in Figure 3). To address these issues, we propose kernelized variants of the ExKMC algorithm (Frost et al., 2020), which greedily add new leaves. This does not require computations in the feature space: Any set of reference clusters $C_1, \ldots, C_k$ obtained from kernel $k$ -means implicitly comes with a set of reference centers $\mathcal{M} = \{c_1, \ldots, c_k\} \subset \mathcal{H}$ . The kernel trick ensures that the distance between the feature map of any point $\psi(x) \in \mathcal{H}$ and a cluster center $c_l$ can be evaluated without explicitly computing the center as
|
| 161 |
+
|
| 162 |
+
$$
|
| 163 |
+
\left\| \psi (x) - c _ {l} \right\| ^ {2} = K (x, x) + \frac {1}{\left| C _ {l} \right| ^ {2}} \sum_ {y, z \in C _ {l}} K (y, z) - \frac {2}{\left| C _ {l} \right|} \sum_ {y \in C _ {l}} K (x, y) \tag {5}
|
| 164 |
+
$$
|
| 165 |
+
|
| 166 |
+
Kernel ExKMC (Algorithm 2). The algorithm proceeds sequentially. For every node $u$ of the decision tree, let $X^u$ denote the set of points that reach the node $u$ . A threshold cut $(i, \theta)$ is chosen, separating $X^u$ into two subsets $X_L^u = X^u \cap \{x_i \leq \theta\}$ and $X_R^u = X^u \cap \{x_i > \theta\}$ . The Kernel ExKMC algorithm chooses $(i, \theta)$ as the minimizer of the cost function
|
| 167 |
+
|
| 168 |
+
$$
|
| 169 |
+
\operatorname {c o s t} _ {e x k m c} (u, i, \theta) = \min _ {j, l \in [ k ]} \sum_ {x \in X _ {L} ^ {u}} \| \psi (x) - c _ {j} \| ^ {2} + \sum_ {x \in X _ {R} ^ {u}} \| \psi (x) - c _ {l} \| ^ {2} \tag {6}
|
| 170 |
+
$$
|
| 171 |
+
|
| 172 |
+
where the squared distances can be computed using (5). One reference center is chosen for each of the two child nodes of $u$ . To decide on which node to split, we choose the one that maximizes the difference between the cost of not splitting, given by $\min_{j\in [k]}\sum_{x\in X^u}\| \psi (x) - c_j\| ^2$ , and $cost_{exkmc}(i,\theta)$ .
|
| 173 |
+
|
| 174 |
+
Since all relevant computations happen in the input space, and no explicit feature map $\psi$ is needed, the algorithm is applicable to arbitrary kernels and can be used to refine any given partition $\hat{C}_1,\ldots ,\hat{C}_p$ . Unfortunately, we can prove that Kernel ExKMC on an empty tree does not admit approximation guarantees when limited to $k$ leaves.
|
| 175 |
+
|
| 176 |
+
Theorem 6 (ExKMC does not admit no worst-case bounds). For any $m \in \mathbb{N}$ there exists a data set $X \subset \mathbb{R}$ such that the price of explainability on $X$ is $p(X) = 1$ , IMM attain this minimum, but ExKMC (initialized on an empty tree) constructs a decision tree $T$ with $p(T, X) \geq m$ .
|
| 177 |
+
|
| 178 |
+

|
| 179 |
+
Figure 3: Standard $k$ -means is ill-suited for clustering certain datasets, and this translates to explainable $k$ -means (not plotted here). Kernel $k$ -means recovers the ground truth well. However, Kernel IMM is restricted to 3 leaves and not powerful enough to approximate it. To resolve this, we suggest Kernel ExKMC and Kernel Expand, which extend the tree to 6 leaves.
|
| 180 |
+
|
| 181 |
+

|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
|
| 185 |
+

|
| 186 |
+
|
| 187 |
+

|
| 188 |
+
|
| 189 |
+
# Algorithm 2 Kernel ExKMC
|
| 190 |
+
|
| 191 |
+
Input: Number of leaves $m\in \mathbb{N}$ reference clusters $C_1\dots ,C_k$
|
| 192 |
+
|
| 193 |
+
decision tree $T$ with leaves $\hat{C}_1,\dots ,\hat{C}_p$
|
| 194 |
+
|
| 195 |
+
Output: Tree with $m$ leaves $\mathcal{L}$
|
| 196 |
+
|
| 197 |
+
Initialize the set of leafs as $\mathcal{L} = \{\hat{C}_1,\dots ,\hat{C}_p\}$ while $|\mathcal{L}| < m$ do
|
| 198 |
+
|
| 199 |
+
Choose node $X^u \in \mathcal{L}$ and a cut $(i, \theta)$ minimizing (6)
|
| 200 |
+
|
| 201 |
+
Update $\mathcal{L}$ by replacing $X^u\in \mathcal{L}$ by its two child nodes $X_{L}^{u},X_{R}^{u}$
|
| 202 |
+
|
| 203 |
+
end while
|
| 204 |
+
|
| 205 |
+
# Algorithm 3 Kernel Expand
|
| 206 |
+
|
| 207 |
+
Input: Number of leaves $m \in \mathbb{N}$ ,
|
| 208 |
+
|
| 209 |
+
reference clusters $C_1\ldots ,C_k$
|
| 210 |
+
|
| 211 |
+
decision tree $T$ with leaves $\hat{C}_1,\dots ,\hat{C}_p$
|
| 212 |
+
|
| 213 |
+
Output: Tree with $m$ leaves $\mathcal{L}$
|
| 214 |
+
|
| 215 |
+
Initialize the set of leafs as $\mathcal{L} = \{\hat{C}_1,\dots ,\hat{C}_p\}$
|
| 216 |
+
|
| 217 |
+
while $|\mathcal{L}| < m$ do
|
| 218 |
+
|
| 219 |
+
Choose data $X^u \in \mathcal{L}$ and a cut $(i, \theta)$ minimizing (7)
|
| 220 |
+
|
| 221 |
+
Update $\mathcal{L}$ by replacing $X^u\in \mathcal{L}$ by its two child nodes $X_L^u$ $X_{R}^{u}$
|
| 222 |
+
|
| 223 |
+
end while
|
| 224 |
+
|
| 225 |
+
The proof can be found in Appendix J. If Kernel ExKMC is run as a refinement of Kernel IMM (which constructs an interpretable decision tree in the sense of Definition 2 with two-sided threshold cuts) then we suggest sticking to this expanded notion of interpretability, and Kernel ExKMC at every node chooses $(i,\theta_1,\theta_2)\in [d]\times \mathbb{R}^2$ and checks whether $x_{i}\in [\theta_{1},\theta_{2}]$ or not.
|
| 226 |
+
|
| 227 |
+
Kernel Expand (Algorithm 3). We suggest another algorithm, Kernel Expand, that also adds new leaves to an existing tree, but maximizes the purity of each leaf. This is achieved by minimizing
|
| 228 |
+
|
| 229 |
+
$$
|
| 230 |
+
\operatorname {c o s t} _ {\exp} (i, \theta) = \min _ {j, l \in [ k ]} \left(| \{x \in X _ {L} ^ {u}: c (x) \neq c _ {j} \} | + | \{x \in X _ {R} ^ {u}: c (x) \neq c _ {l} \} |\right) \tag {7}
|
| 231 |
+
$$
|
| 232 |
+
|
| 233 |
+
where $c(x)$ denotes the cluster center of $x$ according to the reference partition $\mathcal{M}$ . To decide on which node to split, we again choose the one that maximizes the difference between the cost of not splitting, given by $\min_{j\in [k]}|\{x\in X^u:c(x)\neq c_j\}|$ , and $cost_{expand}(i,\theta)$ .
|
| 234 |
+
|
| 235 |
+
Remark 2. (Kernel Expand does not admit worst-case bounds) In the same way as Kernel ExKMC, Kernel Expand does not admit worst-case bounds when initialized without Kernel IMM. This is obvious from the example in Section 3 of (Moshkovitz et al., 2020).
|
| 236 |
+
|
| 237 |
+
Finally, it is important to note that while adding more leaves improves the clustering, it gradually reduces the interpretability of the tree. Thus, there is a trade-off between explainability and accuracy in Kernel ExKMC and Kernel Expand.
|
| 238 |
+
|
| 239 |
+
# 6 EXPERIMENTS
|
| 240 |
+
|
| 241 |
+
We validate our algorithms on a number of benchmark datasets, including three synthetic clustering datasets, Pathbased, Aggregation and Flame (Franti & Sieranoja) and real datasets, Iris (Fisher, 1936) and Wisconsin breast cancer (Street et al., 1993). On all five datasets, we evaluate Kernel IMM as well as the greedy cost minimization algorithms from Section 5, Kernel ExKMC and Kernel Expand, both of which refine Kernel IMM by adding more leaves. All experiments reported here use either the Laplace or the Gaussian kernel. In Appendix H, we derive suitable approximate feature maps and evaluate Kernel IMM for the additive $\chi^2$ kernel, which is well-suited for clustering histograms or distributions. These results underline the usefulness of our method beyond distance-based product
|
| 242 |
+
|
| 243 |
+

|
| 244 |
+
Figure 4: We verify the approximation properties of our algorithms by computing the price of explainability (left plot). We also compare the clusters obtained on $k$ -means and IMM, as well as kernel $k$ -means and our three algorithms to the ground truth via the Rand index (right plot).
|
| 245 |
+
|
| 246 |
+

|
| 247 |
+
|
| 248 |
+
kernels. Finally, we also compare Kernel IMM to CART, which performs similarly well. Details on all experiments can be found in Appendix I. Although Kernel IMM can lead to sub-optimal solutions, its greedy refinements mostly result in a price of explainability close to 1 (see Figure 3 for the Pathbased dataset). Figure 4 reports the price of explainability of the three proposed explainable kernel clustering methods (closer to 1 is better). Since the ground truth is known in all datasets considered here, Figure 4 also reports the adjusted Rand index (Pedregosa et al., 2011) that measures the agreement between the interpretable clusters and the true labels (a higher value is better). This shows that kernel $k$ -means is naturally superior to $k$ -means and explainable $k$ -means, and one can observe that Kernel ExKMC and Kernel Expand mostly achieve Rand index as good as that of kernel $k$ -means, establishing that our methods provide both interpretable and accurate clusters. In addition, Kernel IMM improves over $k$ -means and IMM in recovering the ground truth.
|
| 249 |
+
|
| 250 |
+
# 7 CONCLUSION AND DISCUSSION
|
| 251 |
+
|
| 252 |
+
In this paper, we contribute to the increasing need for interpretable clustering methods by explaining kernel $k$ -means using decision trees. By operating on carefully chosen features, interpretability can be preserved, while still allowing for approximation guarantees. We characterize the obstacles that interpretability faces in kernel clustering, and find that interpretable feature maps play a key role. These maps may also be useful to understand the interpretability of other kernel methods, which still rely almost exclusively on post-hoc explainability.
|
| 253 |
+
|
| 254 |
+
On the price of explainability for kernels. We observe below that the price of explainability for kernel $k$ -means, as defined in Definition 4, may not be finite for arbitrary kernels.
|
| 255 |
+
|
| 256 |
+
Theorem 7 (Unbounded price of explainability). Consider either the quadratic kernel $K(x, y) = \langle x, y \rangle^2$ or the $\epsilon$ -neighborhood kernel $K(x, y) = \mathbf{1}_{[0, \epsilon]}(\|x - y\|_2)$ . For both, there exists a dataset $X$ such that $p(X) = \infty$ .
|
| 257 |
+
|
| 258 |
+
The above result, proved in Appendix K, is in stark contrast to standard $k$ -means, where IMM always ensures a bounded price of explainability. Our experiments further show that the price of explainability is close to 1 even in cases where the interpretable clustering model is quite different from the reference partition. In fact, if the kernel $k$ -means cost is $\Omega(n)$ for a dataset of size $n$ and the kernel is bounded, then the price of explainability is $O(1)$ . This indicates that typical metrics should be adjusted depending on the kernel and the data. While the Rand index may be used if a ground truth is known, a fundamental question remains unsolved: Under what conditions on the data can a decision tree achieve a good agreement with the nonlinear partitions of kernel $k$ -means? Another question is whether approximation guarantees can be improved. It is very likely that specific kernels benefit from algorithms tailored to their cost functions. Finally, investigating lower bounds (beyond the ones a linear kernel inherits from existing results on explainable $k$ -means) also poses an interesting direction for future work.
|
| 259 |
+
|
| 260 |
+
Ethics statement. While we do not expect negative societal impacts of our method, we remark that clustering algorithms themselves can be biased, and this can translate to its interpretable approximations.
|
| 261 |
+
Reproducibility. We add further details on the experiments in Appendix I. In addition, all proofs for our theoretical results can be found in the appendix, and have been referenced in the main paper.
|
| 262 |
+
|
| 263 |
+
# ACKNOWLEDGMENTS
|
| 264 |
+
|
| 265 |
+
This paper is supported by the DAAD programme Konrad Zuse Schools of Excellence in Artificial Intelligence, sponsored by the Federal Ministry of Education and Research, and the German Research Foundation (Research Grant GH 257/4-1).
|
| 266 |
+
|
| 267 |
+
# REFERENCES
|
| 268 |
+
|
| 269 |
+
Dimitris Bertsimas, Agni Orfanoudaki, and Holly Wiberg. Interpretable clustering via optimal trees. arXiv preprint arXiv:1812.00539, 2018.
|
| 270 |
+
Leo Breiman. Classification and regression trees. Routledge, 2017.
|
| 271 |
+
Emilio Carrizosa, Kseniia Kurishchenko, Alfredo Marín, and Dolores Romero Morales. Interpreting clusters via prototype optimization. Omega, 107:102543, 2022.
|
| 272 |
+
Moses Charikar and Lunjia Hu. Near-optimal explainable k-means for all dimensions. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 2580-2606. SIAM, 2022.
|
| 273 |
+
Siu Lun Chau, Robert Hu, Javier Gonzalez, and Dino Sejdinovic. Rkhs-shap: Shapley values for kernel methods. Advances in Neural Information Processing Systems, 35:13050-13063, 2022.
|
| 274 |
+
Sanjoy Dasgupta. The hardness of $k$ -means clustering. Department of Computer Science and Engineering, University of California ..., 2008.
|
| 275 |
+
Chengyuan Deng, Surya Teja Gavva, Parth Patel, Adarsh Srinivasan, et al. Impossibility of depth reduction in explainable clustering. arXiv preprint arXiv:2305.02850, 2023.
|
| 276 |
+
Inderjit S Dhillon, Yuqiang Guan, and Brian Kulis. Kernel k-means: spectral clustering and normalized cuts. In Proceedings of the tenth ACM SIGKDD international conference on Knowledge discovery and data mining, pp. 551-556, 2004.
|
| 277 |
+
Hossein Esfandiari, Vahab Mirrokni, and Shyam Narayanan. Almost tight approximation algorithms for explainable clustering. In Proceedings of the 2022 Annual ACM-SIAM Symposium on Discrete Algorithms (SODA), pp. 2641-2663. SIAM, 2022.
|
| 278 |
+
Ronald A Fisher. The use of multiple measurements in taxonomic problems. Annals of eugenics, 7 (2):179-188, 1936.
|
| 279 |
+
Ricardo Fraiman, Badih Ghattas, and Marcela Svarc. Interpretable clustering using unsupervised binary trees. Advances in Data Analysis and Classification, 7:125-145, 2013.
|
| 280 |
+
Pasi Fränti and Sami Sieranoja. K-means properties on six clustering benchmark datasets.
|
| 281 |
+
Nave Frost, Michal Moshkovitz, and Cyrus Rashtchian. Exkmc: Expanding explainable $k$ -means clustering. arXiv preprint arXiv:2006.02399, 2020.
|
| 282 |
+
Magzhan Gabidolla and Miguel Á Carreira-Perpiñán. Optimal interpretable clustering using oblique decision trees. In Proceedings of the 28th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pp. 400–410, 2022.
|
| 283 |
+
Buddhima Gamlath, Xinrui Jia, Adam Polak, and Ola Svensson. Nearly-tight and oblivious algorithms for explainable clustering. Advances in Neural Information Processing Systems, 34:28929-28939, 2021.
|
| 284 |
+
|
| 285 |
+
Badih Ghattas, Pierre Michel, and Laurent Boyer. Clustering nominal data using unsupervised binary decision trees: Comparisons with the state of the art methods. Pattern Recognition, 67:177-185, 2017.
|
| 286 |
+
Anupam Gupta, Madhusudhan Reddy Pittu, Ola Svensson, and Rachel Yuan. The price of explainability for clustering. arXiv preprint arXiv:2304.09743, 2023.
|
| 287 |
+
Eduardo Laber, Lucas Murtinho, and Felipe Oliveira. Shallow decision trees for explainable k-means clustering. Pattern Recognition, 137:109239, 2023.
|
| 288 |
+
Eduardo S Laber and Lucas Murtinho. On the price of explainability for some clustering problems. In International Conference on Machine Learning, pp. 5915-5925. PMLR, 2021.
|
| 289 |
+
Connor Lawless and Oktay Gunluk. Cluster explanation via polyhedral descriptions. In International Conference on Machine Learning, pp. 18652-18666. PMLR, 2023.
|
| 290 |
+
Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. Advances in neural information processing systems, 30, 2017.
|
| 291 |
+
Subhransu Maji, Alexander C Berg, and Jitendra Malik. Efficient classification for additive kernel svms. IEEE transactions on pattern analysis and machine intelligence, 35(1):66-77, 2012.
|
| 292 |
+
Konstantin Makarychev and Liren Shan. Explainable k-means: don't be greedy, plant bigger trees! In Proceedings of the 54th Annual ACM SIGACT Symposium on Theory of Computing, pp. 1629-1642, 2022.
|
| 293 |
+
Konstantin Makarychev and Liren Shan. Random cuts are optimal for explainable k-medians. arXiv preprint arXiv:2304.09113, 2023.
|
| 294 |
+
Christoph Molnar. Interpretable machine learning. Lulu. com, 2020.
|
| 295 |
+
Michal Moshkovitz, Sanjoy Dasgupta, Cyrus Rashtchian, and Nave Frost. Explainable k-means and k-medians clustering. In International conference on machine learning, pp. 7055-7065. PMLR, 2020.
|
| 296 |
+
F. Pedregosa, G. Varoquaux, A. Gramfort, V. Michel, B. Thirion, O. Grisel, M. Blondel, P. Prettenhofer, R. Weiss, V. Dubourg, J. Vanderplas, A. Passos, D. Cournapeau, M. Brucher, M. Perrot, and E. Duchesnay. Scikit-learn: Machine learning in Python. Journal of Machine Learning Research, 12:2825–2830, 2011.
|
| 297 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. "why should i trust you?" explaining the predictions of any classifier. In Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, pp. 1135-1144, 2016.
|
| 298 |
+
Cynthia Rudin. Stop explaining black box machine learning models for high stakes decisions and use interpretable models instead. Nature machine intelligence, 1(5):206-215, 2019.
|
| 299 |
+
Ingo Steinwart, Don Hush, and Clint Scovel. An explicit description of the reproducing kernel hilbert spaces of gaussian rbf kernels. IEEE Transactions on Information Theory, 52(10):4635-4643, 2006.
|
| 300 |
+
W Nick Street, William H Wolberg, and Olvi L Mangasarian. Nuclear feature extraction for breast tumor diagnosis. In Biomedical image processing and biomedical visualization, volume 1905, pp. 861-870. SPIE, 1993.
|
| 301 |
+
Erico Tjoa and Cuntai Guan. A survey on explainable artificial intelligence (xai): Toward medical xai. IEEE transactions on neural networks and learning systems, 32(11):4793-4813, 2020.
|
| 302 |
+
Kush R Varshney and Homa AleMZadeh. On the safety of machine learning: Cyber-physical systems, decision sciences, and data products. *Big data*, 5(3):246–255, 2017.
|
| 303 |
+
Andrea Vedaldi and Andrew Zisserman. Efficient additive kernels via explicit feature maps. IEEE transactions on pattern analysis and machine intelligence, 34(3):480-492, 2012.
|
| 304 |
+
|
| 305 |
+
Sandra Wachter, Brent Mittelstadt, and Chris Russell. Counterfactual explanations without opening the black box: Automated decisions and the gdpr. Harv. JL & Tech., 31:841, 2017.
|
| 306 |
+
|
| 307 |
+
Chieh Wu, Jared Miller, Yale Chang, Mario Sznaier, and Jennifer Dy. Solving interpretable kernel dimension reduction. arXiv preprint arXiv:1909.03093, 2019.
|
| 308 |
+
|
| 309 |
+
# A RELATED WORK ON EXPLAINABLE CLUSTERING
|
| 310 |
+
|
| 311 |
+
There are several papers that suggest improvements of the original IMM algorithm (Moshkovitz et al., 2020). Most rely on random threshold cuts to obtain better worst-case bounds on the price of explainability for $k$ -means and $k$ -medians (Makarychev & Shan, 2022; Esfandiari et al., 2022; Makarychev & Shan, 2023). As of today, the sharpest known upper bound on the price of explainability for $k$ -means is $O(k\log \log k)$ (Gupta et al., 2023). It is also known that the price of explainability for $k$ -means is $\Omega (k)$ (Gamlath et al., 2021), leaving a small gap. While the above works provide dimension-independent guarantees, it is also known that in low dimensions, even better guarantees can be provided (Laber & Murtinho, 2021; Charikar & Hu, 2022). A different line of research has loosened the restriction to decision trees with $k$ leaves, leading to both improved practical performance (Frost et al., 2020) and better worst-case bounds on the price of explainability (Makarychev & Shan, 2022). In addition, Laber et al. (2023) investigate shallow decision trees for explainable clustering, while Deng et al. (2023) show that depth reduction is impossible for explainable $k$ -means and $k$ -medians. There has also been some research on other cost functions such as $k$ -centers (Laber & Murtinho, 2021) or general $\| \cdot \|_p$ norms (Gamlath et al., 2021). However, to the best of our knowledge, there has not yet been an extension to the closely related kernel $k$ -means problem, a gap that we aim to bridge in this work. Other works on interpretable clustering investigate polyhedral descriptions of the clusters (Lawless & Gunluk, 2023), choose similarity-based prototypes for each cluster (Carrizosa et al., 2022), or fit sparse oblique trees to describe the clusters (Gabadolla & Carreira-Perpiñán, 2022).
|
| 312 |
+
|
| 313 |
+
# B THE KERNEL K-MEANS ALGORITHM
|
| 314 |
+
|
| 315 |
+
We first remind the reader of the following result.
|
| 316 |
+
|
| 317 |
+
Lemma 1. Let $K$ be a kernel operating on data $X \subset \mathbb{R}^d$ . Denote $\phi$ for a (possibly data-dependent) feature map of $K$ . Let $C_1, \ldots, C_k$ be a partition of $X$ into $k$ clusters with means $c_1, \ldots, c_k \in \mathcal{H}$ . Then for any $x \in X$ , we have
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\underset {l \in [ k ]} {\arg \min } \| \phi (x) - c _ {l} \| ^ {2} = \underset {l \in [ k ]} {\arg \min } \left(\frac {1}{| C _ {l} | ^ {2}} \sum_ {y, z \in C _ {l}} K (y, z) - \frac {2}{| C _ {l} |} \sum_ {y \in C _ {l}} K (x, y)\right) \tag {8}
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
Proof. First recall the identity $\| a - b \|^2 = \| a \|^2 + \| b \|^2 - 2\langle a, b \rangle$ and note that for any cluster $C_l$ , its mean is given by
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
c _ {l} = \frac {1}{| C _ {l} |} \sum_ {x \in C _ {l}} \phi (x)
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
Expressing everything in terms of the kernel $K$ , we see that
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
\| \phi (x) - c _ {l} \| ^ {2} = K (x, x) + \frac {1}{| C _ {l} | ^ {2}} \sum_ {y, z \in C _ {l}} K (y, z) - \frac {2}{| C _ {l} |} \sum_ {y \in C _ {l}} K (x, y)
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
Note that the first term does not depend on $l \in [k]$ .
|
| 336 |
+
|
| 337 |
+

|
| 338 |
+
|
| 339 |
+
Clearly, equation 8 allows computing distances in the feature space by simply evaluating $K$ .
|
| 340 |
+
|
| 341 |
+

|
| 342 |
+
Figure 5: The threshold cut illustrated by the black vertical line defines a decision tree $T$ with 2 leaves. While some points do not end up in the same leaf as their corresponding center, the tree $T$ clearly does a good job in approximating the two clusters.
|
| 343 |
+
|
| 344 |
+
Algorithm 4 Kernel $k$ -means
|
| 345 |
+
Input: Kernel $K$ for data $X\subset \mathbb{R}^d$ , integer $k\in \mathbb{N}$
|
| 346 |
+
Output: Partitioning of $X$ into $k$ clusters $\mathcal{C} = (C_1,\dots ,C_k)$
|
| 347 |
+
Initialize the clusters $C_1,\ldots ,C_k$
|
| 348 |
+
Converged $\leftarrow$ FALSE
|
| 349 |
+
while Converged $=$ FALSE do for $x\in X$ do Assign $x$ to $C_l^\prime$ such that $l = \mathrm{argmin}_{j\in [k]}\| \phi (x) - c_j\|^2$ using equation (8) end for if $C_l^{\prime} = C_l$ for all $l\in [k]$ then Converged $\leftarrow$ TRUE end if Update $\mathcal{C} = (C_1',\dots ,C_k')$
|
| 350 |
+
end while
|
| 351 |
+
|
| 352 |
+
# C ITERATIVE MISTAKE MINIMIZATION (IMM) ALGORITHM
|
| 353 |
+
|
| 354 |
+
In this section, we review the IMM algorithm (Moshkovitz et al., 2020). Consider data $X \subset \mathbb{R}^d$ and centers $\mathcal{M}$ obtained from the $k$ -means algorithm. For any $x \in X$ , we denote $c(x) \in \mathcal{M}$ for the correct center according to the $k$ -means algorithm. The algorithm constructs a decision tree $T$ that sequentially the input space $\mathbb{R}^d$ into $k$ axis-aligned cells using threshold cuts of the form $x_i \geq \theta$ . At every node $u$ of the tree, IMM chooses the threshold cut that minimizes the number of mistakes. A mistake happens if a point $x$ that arrives at node $u$ together with its correct cluster center $c(x) \in \mathcal{M}$ is now separated from this center as a result of the cut. This happens when $x_i \leq \theta$ but $c_i(x) > \theta$ or vice versa. For any point $x \in X$ , we denote $\mu(x)$ for the center that ends up in the same leaf of $T$ as $x$ . This is not necessarily $c(x)$ , as we illustrate in Figure 5.
|
| 355 |
+
|
| 356 |
+
Let us also briefly recap the theoretical analysis of IMM for $k$ -means, as presented by Moshkovitz et al. (2020). For each node $u$ of the tree $T$ built by IMM, denote by $\mathcal{M}^u$ the remaining set of centers that arrive at the node. The tree $T$ induces a partitioning $\hat{C}_1, \ldots, \hat{C}_k$ . Writing $t(u)$ for the number of mistakes at a node $u \in T$ and denoting $D(u) = \max_{a, b \in \mathcal{M}^u} \| a - b \|^2$ , it holds that
|
| 357 |
+
|
| 358 |
+
$$
|
| 359 |
+
\begin{array}{l} c o s t (\hat {C} _ {1}, \ldots , \hat {C} _ {k}) \leq \sum_ {l = 1} ^ {k} \sum_ {x \in \hat {C} _ {l}} \| x - \mu (x) \| ^ {2} \\ \leq \sum_ {l = 1} ^ {k} \sum_ {x \in \hat {C} _ {l}} \left(2 \| x - c (x) \| ^ {2} + 2 \| c (x) - \mu (x) \| ^ {2}\right) \tag {9} \\ \leq 2 \cdot c o s t (C _ {1}, \dots , C _ {k}) + 2 \sum_ {u \in T} t (u) D (u) \\ \end{array}
|
| 360 |
+
$$
|
| 361 |
+
|
| 362 |
+
The main argument in IMM is now given by the following result.
|
| 363 |
+
|
| 364 |
+
Lemma 2. Let $u \in T$ be any node of the IMM decision tree $T$ . Denote $X_{cor}^{u}$ for the subset of points $x$ that arrive at $u$ together with their correct center $c(x)$ .
|
| 365 |
+
|
| 366 |
+
1. For any $i \in [d]$ , it holds that
|
| 367 |
+
|
| 368 |
+
$$
|
| 369 |
+
t (u) \cdot \max _ {a, b \in \mathcal {M} ^ {u}} \left(a _ {i} - b _ {i}\right) ^ {2} \leq 4 k \cdot \sum_ {x \in X _ {c o r} ^ {u}} \left(x _ {i} - c _ {i} (x)\right) ^ {2} \tag {10}
|
| 370 |
+
$$
|
| 371 |
+
|
| 372 |
+
2. This directly implies
|
| 373 |
+
|
| 374 |
+
$$
|
| 375 |
+
t (u) D (u) \leq 4 k \cdot \sum_ {x \in X _ {c o r} ^ {u}} \| x _ {i} - c _ {i} (x) \| ^ {2} \tag {11}
|
| 376 |
+
$$
|
| 377 |
+
|
| 378 |
+
The proof of the first statement is based on the observation that along every axis $i \in [d]$ , and for any threshold cut halfway between two centers $a, b \in \mathcal{M}^u$ (projected to the $i$ -th axis), at least $t(u)$ mistakes are made, by definition of $t(u)$ . The second statement then directly follows from the first by summing over all $d$ coordinates. Together with Equation 9 and the fact that the maximum depth of the IMM tree is $k$ , Lemma 2 yields $O(k^2)$ bounds on the price of explainability. Let us use this opportunity to point out two things.
|
| 379 |
+
|
| 380 |
+
- Since only threshold cuts halfway between two projected centers are considered in the proof of Lemma 2, the algorithm actually preserves worst-case bounds even when we only check the number of mistakes along these $O(dm)$ threshold cuts, instead of along all possible $O(dn)$ cuts. In other words, the IMM algorithm (as well as our kernelized version) can be run in data-independent time.
|
| 381 |
+
- The IMM algorithm is essentially a supervised learning algorithm, recreating a partition $C_1, \ldots, C_k$ no matter how optimal it may be. This observation is crucial when we analyze Kernel IMM on our surrogate features (with respect to a surrogate kernel), for which the reference clustering may not even be close to the optimal partition with respect to this surrogate kernel.
|
| 382 |
+
|
| 383 |
+
# D PROOFS FROM SECTION 3
|
| 384 |
+
|
| 385 |
+
# D.1 PROOF OF THEOREM 1
|
| 386 |
+
|
| 387 |
+
Theorem. (The Gaussian kernel cannot have interpretable feature maps) Consider the Gaussian kernel in $d > 1$ dimensions. There exists a dataset $X$ such that for any feature map $\phi : X \to \mathbb{R}^D$ satisfying $\langle \phi(x), \phi(y) \rangle = K(x, y)$ for all $x, y \in X$ , there exists some $j \in [D]$ such that $\phi_j$ depends on more than just one input dimension of $x \in X$ .
|
| 388 |
+
|
| 389 |
+
Proof. We present a simple dataset $X$ such that no feature map for the Gaussian kernel $K(x, y) = \exp(-\gamma \|x - y\|^2)$ can depend only on one input coordinate in each of its elements $\phi_1, \ldots, \phi_D$ , no matter how large $D$ may be. Consider three vectors in $\mathbb{R}^2$ , given by
|
| 390 |
+
|
| 391 |
+
$$
|
| 392 |
+
x ^ {(1)} = \left( \begin{array}{c} 0 \\ 0 \end{array} \right), x ^ {(2)} = \left( \begin{array}{c} 1 \\ 0 \end{array} \right), x ^ {(3)} = \left( \begin{array}{c} 1 \\ 1 \end{array} \right)
|
| 393 |
+
$$
|
| 394 |
+
|
| 395 |
+
For sufficiently large $\gamma > 0$ , we know that $K_{1,2} + K_{2,3} < 1$ . Assume there exists some interpretable feature map $\phi: X \to \mathbb{R}^D$ . Then, we can write $\phi(x) = (f(x), g(x))$ , where $f(x)$ is a function of $x_1$ and $g(x)$ is a function of $x_2$ . By our choice of points, we may write
|
| 396 |
+
|
| 397 |
+
$$
|
| 398 |
+
\begin{array}{l} \phi (x ^ {(1)}) = (a, b) \\ \phi (x ^ {(2)}) = (c, b) \\ \phi (x ^ {(3)}) = (c, d) \\ \end{array}
|
| 399 |
+
$$
|
| 400 |
+
|
| 401 |
+
for some vectors $a, b, c, d$ . This implies
|
| 402 |
+
|
| 403 |
+
$$
|
| 404 |
+
\begin{array}{l} \boldsymbol {K} _ {1, 3} = a ^ {T} c + b ^ {T} d \\ = a ^ {T} c + \left\| b \right\| ^ {2} + \left(b ^ {T} d - \left\| b \right\| ^ {2}\right) \\ = \boldsymbol {K} _ {1, 2} + \left(b ^ {T} d + \| c \| ^ {2} - 1\right) \\ = \boldsymbol {K} _ {1, 2} + \boldsymbol {K} _ {2, 3} - 1 \\ < 0 \\ \end{array}
|
| 405 |
+
$$
|
| 406 |
+
|
| 407 |
+
a contradiction to $K_{1,3} \geq 0$ . For other $\gamma > 0$ , simply rescale the data accordingly.
|
| 408 |
+
|
| 409 |
+

|
| 410 |
+
|
| 411 |
+
# D.2 PROOF OF THEOREM 2
|
| 412 |
+
|
| 413 |
+
Theorem. Consider the one-dimensional Gaussian kernel $K(x,y) = \exp (-|x - y|^2)$ . Then, there exists a dataset $X\subset \mathbb{R}$ such that for any feature map $\phi = (\phi_j)_{j = 1}^D$ there exists a component $\phi_j$ that is not monotonic.
|
| 414 |
+
|
| 415 |
+
Proof. Consider the Gaussian kernel $K(x,y) = \exp \left(- (x - y)^2\right)$ on $\mathbb{R}$ . Choose a dataset $X = \{x^{(1)}, x^{(2)}, x^{(3)}\}$ with $x^{(1)} < x^{(2)} < x^{(3)}$ and corresponding kernel matrix $\pmb{K}$ satisfying
|
| 416 |
+
|
| 417 |
+
$$
|
| 418 |
+
\boldsymbol {K} _ {1, 2} + \boldsymbol {K} _ {2, 3} < \boldsymbol {K} _ {1, 3} + 1
|
| 419 |
+
$$
|
| 420 |
+
|
| 421 |
+
This is surely the case when the points are at a sufficiently large distance. Now assume there exists a feature map $\phi : X \to \mathbb{R}^D$ , $\phi(x^{(i)}) = (v_i, w_i)$ where $(v_i)$ is non-decreasing and $(w_i)$ is non-increasing for $i = 1, 2, 3$ . In other words, we assume there exist two vectors $v_1, w_1$ as well as non-negative vectors $\epsilon_1, \epsilon_2, \epsilon_3, \delta_1, \delta_2, \delta_3$ such that, writing
|
| 422 |
+
|
| 423 |
+
$$
|
| 424 |
+
\boldsymbol {\Phi} = \left( \begin{array}{c c c} v _ {1} & v _ {1} + \epsilon_ {1} & v _ {1} + \epsilon_ {1} + \epsilon_ {2} \\ w _ {1} & w _ {1} - \delta_ {1} & w _ {1} - \delta_ {1} - \delta_ {2} \end{array} \right) = \left( \begin{array}{c c c} v _ {1} & v _ {1} + \epsilon_ {1} & v _ {1} + \epsilon_ {3} \\ w _ {1} & w _ {1} - \delta_ {1} & w _ {1} - \delta_ {3} \end{array} \right)
|
| 425 |
+
$$
|
| 426 |
+
|
| 427 |
+
it holds that $\Phi^T\Phi = K$ . This condition gives rise to
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
v _ {1} ^ {T} v _ {1} + w _ {1} ^ {T} w _ {1} = 1
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
$$
|
| 434 |
+
\left(v _ {1} + \epsilon_ {1}\right) ^ {T} \left(v _ {1} + \epsilon_ {1}\right) + \left(w _ {1} - \delta_ {1}\right) ^ {T} \left(w _ {1} - \delta_ {1}\right) = 1
|
| 435 |
+
$$
|
| 436 |
+
|
| 437 |
+
$$
|
| 438 |
+
v _ {1} ^ {T} \left(v _ {1} + \epsilon_ {1}\right) + w _ {1} ^ {T} \left(w _ {1} - \delta_ {1}\right) = K _ {1, 2}
|
| 439 |
+
$$
|
| 440 |
+
|
| 441 |
+
which implies
|
| 442 |
+
|
| 443 |
+
$$
|
| 444 |
+
v _ {1} ^ {T} \epsilon_ {1} - w _ {1} ^ {T} \delta_ {1} = \boldsymbol {K} _ {1, 2} - 1
|
| 445 |
+
$$
|
| 446 |
+
|
| 447 |
+
and hence
|
| 448 |
+
|
| 449 |
+
$$
|
| 450 |
+
\left\| \epsilon_ {1} \right\| ^ {2} + \left\| \delta_ {1} \right\| ^ {2} = 2 - 2 K _ {1, 2}
|
| 451 |
+
$$
|
| 452 |
+
|
| 453 |
+
Using the same arguments for the two other pairs of points from $X$ , we derive in the same way
|
| 454 |
+
|
| 455 |
+
$$
|
| 456 |
+
\left\| \epsilon_ {2} \right\| ^ {2} + \left\| \delta_ {2} \right\| ^ {2} = 2 - 2 K _ {2, 3}
|
| 457 |
+
$$
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
\left\| \epsilon_ {3} \right\| ^ {2} + \left\| \delta_ {3} \right\| ^ {2} = 2 - 2 K _ {1, 3}
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
Since $\epsilon_3 = \epsilon_1 + \epsilon_2$ and $\delta_3 = \delta_1 + \delta_2$ , this implies
|
| 464 |
+
|
| 465 |
+
$$
|
| 466 |
+
\left\| \epsilon_ {1} \right\| ^ {2} + \left\| \epsilon_ {2} \right\| ^ {2} + 2 \epsilon_ {1} ^ {T} \epsilon_ {2} + \left\| \delta_ {1} \right\| ^ {2} + \left\| \delta_ {2} \right\| ^ {2} + 2 \delta_ {1} ^ {T} \delta_ {2} = 2 - 2 K _ {1, 3}
|
| 467 |
+
$$
|
| 468 |
+
|
| 469 |
+
However, this is equivalent to
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
2 - 2 \boldsymbol {K} _ {1, 2} + 2 - 2 \boldsymbol {K} _ {2, 3} + 2 \left(\epsilon_ {1} ^ {T} \epsilon_ {2} + \delta_ {1} ^ {T} \delta_ {2}\right) = 2 - 2 \boldsymbol {K} _ {1, 3} \iff
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
$$
|
| 476 |
+
0 < \epsilon_ {1} ^ {T} \epsilon_ {2} + \delta_ {1} ^ {T} \delta_ {2} = \boldsymbol {K} _ {1, 2} + \boldsymbol {K} _ {2, 3} - 1 - \boldsymbol {K} _ {1, 3} < 0
|
| 477 |
+
$$
|
| 478 |
+
|
| 479 |
+
a contradiction.
|
| 480 |
+
|
| 481 |
+

|
| 482 |
+
|
| 483 |
+
# E DECOUPLING DIMENSIONS FOR BOUNDED PRODUCT KERNELS
|
| 484 |
+
|
| 485 |
+
In this section, we prove that decoupling the input dimensions of bounded product kernels introduces errors no larger than $O(d)$ . Recall that our surrogate feature map is given by
|
| 486 |
+
|
| 487 |
+
$$
|
| 488 |
+
\phi (x) = \left(\phi_ {i} (x)\right) _ {i = 1} ^ {d}
|
| 489 |
+
$$
|
| 490 |
+
|
| 491 |
+
where each $\phi_{i}$ is a valid feature map for the one-dimensional kernel $K_{i}$ . This surrogate feature map itself is associated with a surrogate additive kernel:
|
| 492 |
+
|
| 493 |
+
$$
|
| 494 |
+
\langle \phi (x), \phi (y) \rangle = \sum_ {i = 1} ^ {d} \langle \phi_ {i} (x), \phi_ {i} (y) \rangle = \sum_ {i = 1} ^ {d} K _ {i} (x, y) \neq K (x, y)
|
| 495 |
+
$$
|
| 496 |
+
|
| 497 |
+
Of course, it is not clear that running IMM with respect to this surrogate kernel is actually sensible and not only ensures interpretability, but also preserves worst-case bounds. The justification is given in the following Lemma.
|
| 498 |
+
|
| 499 |
+
Lemma 3. Let $X \subset \mathbb{R}^d$ be a dataset, partitioned into $k$ clusters $C_1, \ldots, C_k$ . Denote by $\text{cost}(C_1, \ldots, C_k)$ the kernel $k$ -means cost function associated with a distance-based product kernel $K$ on $\mathbb{R}^d$ , and by $\text{cost}_i$ the cost with respect to the feature map $\phi_i$ . Then
|
| 500 |
+
|
| 501 |
+
$$
|
| 502 |
+
c o s t (C _ {1}, \dots , C _ {k}) \leq \sum_ {i = 1} ^ {d} c o s t _ {i} (C _ {1}, \dots , C _ {k}) \leq d \cdot c o s t (C _ {1}, \dots , C _ {k})
|
| 503 |
+
$$
|
| 504 |
+
|
| 505 |
+
Proof. First, use the GM-AM inequality and the fact that $K_{i}(x,y) \leq 1$ to obtain
|
| 506 |
+
|
| 507 |
+
$$
|
| 508 |
+
K (x, y) = \prod_ {i = 1} ^ {d} K _ {i} (x, y) \leq \left(\prod_ {i = 1} ^ {d} K _ {i} (x, y)\right) ^ {1 / d} \leq \frac {1}{d} \sum_ {i = 1} ^ {d} K _ {i} (x, y)
|
| 509 |
+
$$
|
| 510 |
+
|
| 511 |
+
Thus, rewriting the kernel $k$ -means cost function, we see that
|
| 512 |
+
|
| 513 |
+
$$
|
| 514 |
+
\begin{array}{l} \operatorname {c o s t} \left(C _ {1}, \dots , C _ {k}\right) = | X | - \sum_ {l = 1} ^ {k} \frac {1}{| C _ {l} |} \sum_ {x, y \in C _ {l}} K (x, y) \\ \geq | X | - \sum_ {l = 1} ^ {k} \frac {1}{| C _ {l} |} \sum_ {x, y \in C _ {l}} \frac {1}{d} \sum_ {i = 1} ^ {d} K _ {i} (x, y) \\ = \frac {1}{d} \sum_ {i = 1} ^ {d} \left(| X | - \sum_ {l = 1} ^ {k} \frac {1}{| C _ {l} |} \sum_ {x, y \in C _ {l}} K _ {i} (x, y)\right) \\ = \frac {1}{d} \sum_ {i = 1} ^ {d} c o s t _ {l} (C _ {1}, \dots , C _ {k}) \\ \end{array}
|
| 515 |
+
$$
|
| 516 |
+
|
| 517 |
+
This implies the upper bound from Lemma 3. For the lower bound, note that for any $x,y\in \mathbb{R}^d$
|
| 518 |
+
|
| 519 |
+
$$
|
| 520 |
+
\begin{array}{l} \left\| \phi (x) - \phi (y) \right\| ^ {2} = 2 \left(1 - K (x, y)\right) \\ = 2 \left(1 - \prod_ {i = 1} ^ {d} K _ {i} (x, y)\right) \\ \leq 2 \left(\sum_ {i = 1} ^ {d} (1 - K _ {i} (x, y))\right) \\ = \sum_ {i = 1} ^ {d} \| \phi_ {i} (x) - \phi_ {i} (y) \| ^ {2} \\ \end{array}
|
| 521 |
+
$$
|
| 522 |
+
|
| 523 |
+
where we use the fact that $\left|\prod_{i=1}^{d} a_i - \prod_{i=1}^{d} b_i\right| \leq \left|\sum_{i=1}^{d} a_i - b_i\right|$ for any $|a_i|, |b_i| \leq 1$ . Rewriting the kernel $k$ -means cost to make use of this observation, we arrive at
|
| 524 |
+
|
| 525 |
+
$$
|
| 526 |
+
\begin{array}{l} c o s t (C _ {1}, \dots , C _ {k}) = \sum_ {l = 1} ^ {k} \frac {1}{2 | C _ {l} |} \sum_ {x, y \in C _ {l}} \| \phi (x) - \phi (y) \| ^ {2} \\ \leq \sum_ {i = 1} ^ {d} \sum_ {l = 1} ^ {k} \frac {1}{2 | C _ {l} |} \sum_ {x, y \in C _ {l}} \| \phi_ {i} (x) - \phi_ {i} (y) \| ^ {2} \\ = \sum_ {i = 1} ^ {d} c o s t _ {i} \left(C _ {1}, \dots , C _ {k}\right) \\ \end{array}
|
| 527 |
+
$$
|
| 528 |
+
|
| 529 |
+

|
| 530 |
+
|
| 531 |
+
# F INTERPRETABLE TAYLOR KERNELS
|
| 532 |
+
|
| 533 |
+
# F.1 PROOF OF THEOREM 3
|
| 534 |
+
|
| 535 |
+
Theorem. (Threshold cuts in the surrogate feature space of interpretable Taylor kernels yield interpretable decision trees) Let $K$ be product of interpretable Taylor kernels, and let $\phi$ denote its surrogate feature map. Then, a threshold cut of the form $\phi_{i,j}(x_i) \geqslant \theta$ leads to an interpretable decision tree in $\mathbb{R}^d$ .
|
| 536 |
+
|
| 537 |
+
Proof. Recall our notion of surrogate features for interpretable Taylor kernels: For all $i \in [d]$ and $x \in X$ , we define
|
| 538 |
+
|
| 539 |
+
$$
|
| 540 |
+
\phi_ {i} (x) = \left(f (x _ {i}) x _ {i} ^ {j} \sqrt {\frac {g ^ {(j)} (0)}{j !}}\right) _ {j = 0} ^ {M}
|
| 541 |
+
$$
|
| 542 |
+
|
| 543 |
+
and refer to the concatenation $\phi(x) = (\phi_i(x))_{i=1}^d$ as the surrogate feature map of order $M$ . Note that $\phi_{i,j}'(x) \propto x_i^{j-1}$ ( $f'(x_i)x_i + jf(x_i)$ ). For interpretable Taylor kernels, this expression is zero for at most one point $x$ in the domain of the kernel. Thus, when we run IMM on these surrogate features, the threshold cuts $\phi_{i,j}(x) \gtrsim \theta$ can be translated to interpretable decision trees in the input space.
|
| 544 |
+
|
| 545 |
+
# F.2 PROOF OF THEOREM 4
|
| 546 |
+
|
| 547 |
+
Theorem. Let $C_1, \ldots, C_k$ be the clusters of a dataset $X \subset \mathbb{R}^d$ derived from kernel $k$ -means, where the kernel $K$ is an interpretable Taylor kernel. Denote by $\Phi = \phi(X)$ the surrogate features for $K$ on $X$ . Then, the interpretable decision tree obtained from Kernel IMM on $\Phi$ satisfies $p(T, X) = O\left(dk^2\right) + \frac{O(dk^2\delta)}{\text{cost}_{opt}(X)}$ , where $\delta = \delta(M)$ depends on the order $M$ of the surrogate feature map and $\lim_{M \to \infty} \delta(M) = 0$ for any dataset $X$ . Thus, by adaptively choosing $M$ such that $\delta = O(\text{cost}_{opt})$ , we obtain $O(dk^2)$ bounds.
|
| 548 |
+
|
| 549 |
+
Proof. We begin by noting that for all $i \in [d]$ and $x, y \in X$ , and any integer $M$ , Taylor's formula ensures that
|
| 550 |
+
|
| 551 |
+
$$
|
| 552 |
+
\begin{array}{l} |K_{i}(x,y) - \langle \phi_{i}(x),\phi_{i}(y)\rangle | = f(x_{i})f(y_{i})\cdot \left|\sum_{j = M}^{\infty}\frac{g^{(j)}(0)}{j!} (x_{i}y_{i})^{j}\right| \\ \leq \left(\max _ {x \in X} | f (x _ {i}) | ^ {2}\right) \cdot \frac {\| g ^ {(j)} \| _ {\infty ([ 0 , x _ {i} y _ {i} ])} \left(x _ {i} y _ {i}\right) ^ {M}}{M !} \\ \end{array}
|
| 553 |
+
$$
|
| 554 |
+
|
| 555 |
+
Since $g$ is assumed to be analytic, $\lim_{M\to \infty}\langle \phi_i(x),\phi_i(y)\rangle = K_i(x,y)$ for all $x,y$ . Thus, the surrogate features $\phi_{i}$ approximate the one-dimensional kernels $K_{i}$ within some $\delta >0$ that vanishes as $M\rightarrow \infty$ . Now, fix a dataset $X$ and let $\hat{C}_1,\dots \hat{C}_k$ be the interpretable clusters chosen by IMM
|
| 556 |
+
|
| 557 |
+
on the surrogate features $\phi$ . Denote by $C_1, \ldots, C_k$ the reference clusters obtained from unrestricted kernel $k$ -means with respect to the original, interpretable Taylor kernel $K$ . Denote by cost the kernel $k$ -means cost with respect to the product kernel $K$ , by $\text{cost}_i$ the costs with respect to the univariate kernels $K_i$ , and by $\text{cost}_i$ the cost with respect to the approximate kernel implicitly defined by virtue of the surrogate feature maps $\phi_i$ . Using Lemma 3 from Appendix E and keeping track of the approximation error, we obtain
|
| 558 |
+
|
| 559 |
+
$$
|
| 560 |
+
\begin{array}{l} c o s t (\hat {C} _ {1}, \dots , \hat {C} _ {k}) \leq \sum_ {i = 1} ^ {d} c o s t _ {i} (\hat {C} _ {1}, \dots , \hat {C} _ {k}) \\ \leq \sum_ {i = 1} ^ {d} \left(\widetilde {\operatorname {c o s t} _ {i}} (\hat {C} _ {1}, \dots , \hat {C} _ {k}) + O (\delta)\right) \\ \leq O (d \delta) + \sum_ {i = 1} ^ {d} \left(O \left(k ^ {2}\right) \cdot \widetilde {\operatorname {c o s t} _ {i}} \left(C _ {1}, \dots , C _ {k}\right)\right) \\ \leq O (d \delta) + \sum_ {i = 1} ^ {d} O (k ^ {2}) \left(\operatorname {c o s t} _ {i} \left(C _ {1}, \dots , C _ {k}\right) + O (\delta)\right) \\ = O (d k ^ {2} \delta) + \sum_ {i = 1} ^ {d} O (k ^ {2}) \cdot c o s t _ {i} (C _ {1}, \dots , C _ {k}) \\ \leq O \left(d k ^ {2}\right) \cdot c o s t \left(C _ {1}, \dots , C _ {k}\right) + O \left(d k ^ {2} \delta\right) \\ \end{array}
|
| 561 |
+
$$
|
| 562 |
+
|
| 563 |
+

|
| 564 |
+
|
| 565 |
+
# G DISTANCE-BASED PRODUCT KERNELS
|
| 566 |
+
|
| 567 |
+
Consider a distance-based product kernel $K(x,y) = \prod_{i=1}^{d} h(|x_i - y_i|)$ on $\mathbb{R}^d$ . As pointed out in the main paper, we may define surrogate features via $\phi_{i,j}(x) = K_i(x,x^{(j)})$ where $x^{(j)}$ denotes the $j$ th point in the dataset $X$ . While these features lead to interpretable decision trees, they do not define features that approximate the one-dimensional kernel: For all $i \in [d]$ , it must be noted that $\langle \phi_i(x),\phi_i(y)\rangle \neq K_i(x,y)$ under the standard Euclidean inner product. Of course, if we equip $\mathbb{R}^n$ with a new inner product given by $\langle \phi_i(x),\phi_i(y)\rangle = \phi_i(x)^T\pmb{K}_i^{-1}\phi_i(y)$ , then our surrogate features remain valid features for the one-dimensional kernels $K_i$ . Consequently, when setting $\phi = (\phi_i)_{i=1}^d$ , we actually map to a space $\mathcal{V}$ in which the inner product is given by $\langle u,v\rangle = \sum_{i=1}^{d}u_i^T\pmb{K}_i^{-1}v_i$ . Running explainable clustering algorithms such as IMM in this space is possible, it however introduces additional constants that depend on the kernel matrices $K_i$ .
|
| 568 |
+
|
| 569 |
+
Theorem. Let $C_1, \ldots, C_k$ be the clusters of a dataset $X \subset \mathbb{R}^d$ derived from kernel $k$ -means, where the kernel $K$ is a distance-based product kernel. Denote by $\Phi = \phi(X)$ the surrogate features for $K$ on $X$ , where $\phi_{i,j}(x) = K_i(x, x^{(j)})$ . Then, the interpretable decision tree obtained from Kernel IMM on $\Phi$ satisfies $p(T, X) = O(Cdk^2)$ , where $C$ depends on the dataset $X$ and the kernel $K$ .
|
| 570 |
+
|
| 571 |
+
Proof. To prove Theorem 5 we adopt the general proof strategy from IMM and again decouple dimensions as discussed in Appendix E. Again, $cost_{i}$ denotes the cost with respect to each one-dimensional kernel $K_{i}$ .
|
| 572 |
+
|
| 573 |
+
$$
|
| 574 |
+
\begin{array}{l} c o s t (\hat {C} _ {1}, \dots , \hat {C} _ {k}) \leq \sum_ {i = 1} ^ {d} c o s t _ {i} (\hat {C} _ {1}, \dots , \hat {C} _ {k}) \\ = \sum_ {l = 1} ^ {k} \sum_ {x \in \hat {C} _ {l}} \| \phi (x) - \mu (x) \| _ {\mathcal {V}} ^ {2} \tag {12} \\ \leq 2 \cdot \operatorname {c o s t} _ {\mathcal {V}} \left(C _ {1}, \dots , C _ {k}\right) + 2 \sum_ {u \in T} t (u) D (u) \\ \end{array}
|
| 575 |
+
$$
|
| 576 |
+
|
| 577 |
+
Now, we would in principle like to use Lemma 2. However, the space $\mathcal{V}$ in which Kernel IMM runs is equipped with the non-Euclidean inner product. Thus, the second part (11) of Lemma 2 no longer follows from the first (10). Instead, we arrive at
|
| 578 |
+
|
| 579 |
+
$$
|
| 580 |
+
\begin{array}{l} t (u) D (u) := t (u) \cdot \max _ {a, b \in \mathcal {M} ^ {u}} \| a - b \| _ {\mathcal {V}} ^ {2} \\ = t (u) \cdot \max _ {a, b \in \mathcal {M} ^ {u}} \sum_ {i = 1} ^ {d} \left(a _ {i} - b _ {i}\right) ^ {T} \boldsymbol {K} _ {i} ^ {- 1} \left(a _ {i} - b _ {i}\right) \\ \leq \kappa_ {1} \cdot t (u) \cdot \max _ {a, b \in \mathcal {M} ^ {u}} (a - b) ^ {T} (a - b) \\ \leq 4 \kappa_ {1} \cdot k \sum_ {x \in X _ {c o r} ^ {u}} (\phi (x) - c (x)) ^ {T} (\phi (x) - c (x)) \\ \leq 4 \kappa_ {1} \kappa_ {2} \cdot k \sum_ {x \in X _ {c o r} ^ {u}} \| \phi (x) - c (x) \| _ {\mathcal {V}} ^ {2} \\ \end{array}
|
| 581 |
+
$$
|
| 582 |
+
|
| 583 |
+
where we use the first part of Lemma 2 in the second inequality. The constants $\kappa_{1},\kappa_{2}$ are given by
|
| 584 |
+
|
| 585 |
+
$$
|
| 586 |
+
\kappa_ {1} = \max _ {a, b \in \mathcal {M} ^ {u}} \frac {\sum_ {i = 1} ^ {d} (a _ {i} - b _ {i}) ^ {T} \boldsymbol {K} _ {i} ^ {- 1} (a _ {i} - b _ {i})}{\sum_ {i = 1} ^ {d} (a _ {i} - b _ {i}) ^ {T} (a _ {i} - b _ {i})}
|
| 587 |
+
$$
|
| 588 |
+
|
| 589 |
+
$$
|
| 590 |
+
\kappa_ {2} = \max _ {x \in X} \frac {\sum_ {i = 1} ^ {d} (\phi_ {i} (x) - c _ {i} (x)) ^ {T} (\phi_ {i} (x) - c _ {i} (x))}{\sum_ {i = 1} ^ {d} (\phi_ {i} (x) - c _ {i} (x)) ^ {T} \pmb {K} _ {i} ^ {- 1} (\phi_ {i} (x) - c _ {i} (x))}
|
| 591 |
+
$$
|
| 592 |
+
|
| 593 |
+
and depend on the data.
|
| 594 |
+
|
| 595 |
+

|
| 596 |
+
|
| 597 |
+
# H KERNEL IMM FOR ADDITIVE KERNELS
|
| 598 |
+
|
| 599 |
+
Additive kernels are of the form $K(x,y) = \sum_{i=1}^{d} K_i(x,y)$ where every individual $K_i$ is a kernel on a suitable subset of $\mathbb{R}$ , often the positive real line. Feature maps of additive kernels $K$ can be written as the concatenation of the univariate feature maps associated with each kernel $K_i$ . If these univariate — and hence interpretable — maps consist of functions that have at most one change of slope, threshold cuts with respect to the feature map lead directly to interpretable decision trees. Conveniently, this is the case for several important additive kernels.
|
| 600 |
+
|
| 601 |
+
- Consider Hellinger's kernel $K(x, y) = \sum_{i=1}^{d} \sqrt{x_i y_i}$ on a dataset $X \subset [0, \infty)^d$ . Then $K$ admits the simple interpretable (and monotonic) feature map $\phi(x) = (\sqrt{x_1}, \ldots, \sqrt{x_d})$ .
|
| 602 |
+
- Let $K(x,y) = \sum_{i=1}^{d} \min \left( x_i^\beta, y_i^\beta \right)$ be the generalized histogram intersection kernel, for some parameter $\beta > 0$ . For any dataset $X \subset [0,\infty)^d$ , there again exists a feature map that yields interpretable decision trees: Given a feature $i \in [d]$ , denote by $z_1 < \dots < z_{m_i}$ the $m_i$ unique values in the set $\{x_i^\beta \mid x \in X\}$ . For every component $j \in [m_i]$ , let
|
| 603 |
+
|
| 604 |
+
$$
|
| 605 |
+
\phi_ {i, j} (x) = \left\{ \begin{array}{l l} \sqrt {z _ {j} - z _ {j - 1}} & , \text {i f} j \geq 2 \text {a n d} x _ {i} ^ {\beta} \geq z _ {j} \\ \sqrt {z _ {j}} & , \text {i f} j = 1 \\ 0 & , \text {e l s e} \end{array} \right. \tag {13}
|
| 606 |
+
$$
|
| 607 |
+
|
| 608 |
+
Then the concatenation $\phi = (\phi_{i,j})_{i\in [d],j\in [m_i]}$ is composed of monotone functions. Moreover, it is straightforward to verify that for all $x,y\in X$ it holds that $K(x,y) = \langle \phi (x),\phi (y)\rangle$ . Thus, $\phi$ is a valid feature map.
|
| 609 |
+
|
| 610 |
+
- As a third example, consider the additive $\chi^2$ kernel $K(x,y) = \sum_{i=1}^{d} \frac{2x_i y_i}{x_i + y_i}$ on a dataset $X \subset (0,\infty)^d$ . Given some $M \in \mathbb{N}$ , the kernel $K$ can be approximated from
|
| 611 |
+
|
| 612 |
+
$$
|
| 613 |
+
\begin{array}{l} K (x, y) = \sum_ {i = 1} ^ {d} 2 x _ {i} y _ {i} \cdot \int_ {0} ^ {1} t ^ {x _ {i} + y _ {i} - 1} d t \\ = \sum_ {i = 1} ^ {d} \int_ {0} ^ {1} \sqrt {2 / t} \cdot x _ {i} t ^ {x _ {i}} \cdot \sqrt {2 / t} \cdot y _ {i} t ^ {y _ {i}} d t \tag {14} \\ \approx \sum_ {i = 1} ^ {d} \frac {1}{M} \sum_ {j = 1} ^ {M} \sqrt {2 M / j} \cdot x _ {i} \left(\frac {j}{M}\right) ^ {x _ {i}} \cdot \sqrt {2 M / j} \cdot y _ {i} \left(\frac {j}{M}\right) ^ {y _ {i}} \\ \end{array}
|
| 614 |
+
$$
|
| 615 |
+
|
| 616 |
+
We conclude that the concatenation of all functions
|
| 617 |
+
|
| 618 |
+
$$
|
| 619 |
+
\phi_ {i, j} (x) = \sqrt {\frac {2}{j}} \cdot x _ {i} \left(\frac {j}{M}\right) ^ {x _ {i}}
|
| 620 |
+
$$
|
| 621 |
+
|
| 622 |
+
defines an approximate feature map for $K$ . Since each $\phi_{i,j}$ is strictly increasing for $x_i < 1 / \log(M / j)$ , and strictly decreasing for $x_i > 1 / \log(M / j)$ , they give rise to a feature map for which threshold cuts lead to interpretable decision trees. For normalized histograms we find that even low values of $M \leq 5$ induce the same partitions as the additive $\chi^2$ kernel, and hence $O(k^2)$ bounds are preserved when running (Kernel) IMM with respect to the kernel induced by the map $\phi$ .
|
| 623 |
+
|
| 624 |
+
# I EXPERIMENTS
|
| 625 |
+
|
| 626 |
+
Let us now give some details on the experiments. Our code is available on GitHub.
|
| 627 |
+
|
| 628 |
+
Main experiments for Kernel IMM. We first verify the approximation properties of our proposed methods on the synthetic datasets "Pathbased", "Aggregation" and "Flame" (Fränti & Sieranoja) which have $k = 3$ , $k = 7$ and $k = 2$ clusters respectively. We start with linear $k$ -means and IMM on all three, and then run kernel $k$ -means with both the Laplace as well as the Gaussian kernel over a range of hyperparameters $\gamma$ , choosing the best agreement with the ground truth as our starting point for Kernel IMM. When the Gaussian kernel is chosen, we run Kernel IMM both on the surrogate Taylor features from Definition 3 with $M = 5$ , as well as on the surrogate features based on the kernel matrix, as defined in Equation (4), and choose the better one. We then refine the partition induced by Kernel IMM using both Kernel ExKMC as well as Kernel Expand, constructing $m = 6$ , $m = 10$ and $m = 4$ leaves respectively. Note that at every step, Kernel ExKMC and Kernel Expand only need to check the cost of the threshold cuts at the new nodes (obtained from the previous iteration). Thus, adding $m$ leaves to an existing tree with $p$ leaves amounts to $p + 2m$ iterations over all possible threshold cuts.
|
| 629 |
+
|
| 630 |
+
We follow the same procedure for the two real world datasets. In Iris (Fisher, 1936), there are three classes with 50 observations each. Every class refers to a type of iris plant. As illustrated in the barplot included in Section 6, kernel $k$ -means slightly improves over $k$ -means and this translates to Kernel IMM, Kernel ExKMC and Kernel Expand. The Wisconsin breast cancer dataset consists of 569 observations of benign and malignant cells. The 30-dimensional features describe characteristics of the cell nuclei observed in each image. Interestingly, IMM exactly replicates its suboptimal reference $k$ -means clustering. Kernel $k$ -means better identifies the ground truth, and Kernel IMM approximates it well (even achieving a slightly higher agreement with the ground truth). The same is true for Kernel ExKMC and Kernel Expand.
|
| 631 |
+
|
| 632 |
+
Kernel IMM for the $\chi^2$ kernel. The additive $\chi^2$ kernel is evaluated on a toy dataset obtained from a mixture model of four discrete distributions, with values in four bins. Figure 6 shows a plot of the different distributions. For all four distribution, we draw 5 instances of 100 random samples, and compute the fraction of observations in each bin for every instance (thus $n = 20$ and $d = 4$ ). We repeat this procedure 100 times. We find that the $\chi^2$ kernel achieves a Rand index that is consistently higher than the one of $k$ -means (see Figure 6). This is not very surprising: The denominator of the
|
| 633 |
+
|
| 634 |
+

|
| 635 |
+
Figure 6: We cluster samples drawn from a mixture model of four discrete distributions by checking the fraction of observations in each of four bins. The true underlying probabilities are shown in the left plot. Over 100 draws of samples, the $\chi^2$ kernel improves over standard $k$ -means in recovering the ground truth, as the boxplot on the right shows.
|
| 636 |
+
|
| 637 |
+

|
| 638 |
+
|
| 639 |
+
$\chi^2$ kernel accounts for the overall number of observations in each bin, penalizing deviations in less probable bins more than in frequently visited bins — a nonlinear characteristic that standard $k$ -means lacks.
|
| 640 |
+
|
| 641 |
+
To provide some more intuition on how Kernel IMM constructs interpretable decision trees, let us now give some additional details for the $\chi^2$ kernel. Having drawn 5 instances (containing 100 samples) for each distribution, we compute the class probabilities for the four bins and cluster using kernel $k$ -means. We then map to a higher-dimensional feature space using the features derived for the $\chi^2$ kernel (see Appendix H). We choose $M = 5$ features for every dimension, and hence operate in a $D = Md = 20$ -dimensional space. Assuming the first threshold cut is chosen along the first axis in the feature space, Kernel IMM provides us with some $\theta$ such that we cut at
|
| 642 |
+
|
| 643 |
+
$$
|
| 644 |
+
\phi_ {1, 1} (x) \leq \theta \iff \sqrt {2} x _ {1} \left(\frac {1}{5}\right) ^ {x _ {1}} \leq \theta \iff \frac {x _ {1}}{5 ^ {x _ {1}}} \leq \frac {\theta}{\sqrt {2}}
|
| 645 |
+
$$
|
| 646 |
+
|
| 647 |
+
All we are now left with is identifying which values of $x_{1}$ satisfy the above inequality, and which do not. Equivalently, we can represent this as an interval (or its complement) in the sample space.
|
| 648 |
+
|
| 649 |
+
Comparison with CART. Standard decision tree algorithms such as CART also perform well in our experiments. CART achieves a price of explainability very close to the one that Kernel IMM attains (despite it being known that no approximation results exist for CART in the standard $k$ -means setting). We show a comparison of the results in Table 2. For the Wisconsin breast cancer dataset, CART even improves over unconstrained kernel $k$ -means (which has, in this case, not found the optimal partition).
|
| 650 |
+
|
| 651 |
+
Table 2: Comparison of price of explainability (PoE) between CART with one-sided cuts and $k$ leaves, and Kernel IMM.
|
| 652 |
+
|
| 653 |
+
<table><tr><td>Dataset</td><td>Kernel</td><td>PoE (Kernel IMM)</td><td>PoE (CART)</td></tr><tr><td>Pathbased</td><td>Gaussian</td><td>1.06645</td><td>1.07004</td></tr><tr><td>Aggregation</td><td>Laplace</td><td>1.00125</td><td>1.00125</td></tr><tr><td>Flame</td><td>Gaussian</td><td>1.02256</td><td>1.02732</td></tr><tr><td>Iris</td><td>Laplace</td><td>1.00502</td><td>1.00502</td></tr><tr><td>Cancer</td><td>Gaussian</td><td>1.00179</td><td>0.99330</td></tr></table>
|
| 654 |
+
|
| 655 |
+
# J EXKMC ON AN EMPTY TREE ADMITS NO WORST-CASE GUARANTEES (THEOREM 6)
|
| 656 |
+
|
| 657 |
+
Theorem. (ExKMC admits no worst-case bounds) For any $m \in \mathbb{N}$ there exists a data set $X \subset \mathbb{R}$ such that the price of explainability on $X$ is $p(X) = 1$ , IMM attain this minimum, but ExKMC (initialized on an empty tree) constructs a decision tree $T$ with $p(T, X) \geq m$ .
|
| 658 |
+
|
| 659 |
+
Proof. Consider a dataset $X$ of size $n$ in $\mathbb{R}$ , consisting of three clusters with centers given by $c_{1} = -1$ , $c_{2} = 0$ , $c_{3} = 1$ . Assume all points of each cluster $C_i$ lie at a distance of exactly $\epsilon$ from the center $c_{i}$ , half of them at $c_{i} - \epsilon$ and half of them at $c_{i} + \epsilon$ . The optimal $k$ -means cost is then given by
|
| 660 |
+
|
| 661 |
+
$$
|
| 662 |
+
c o s t _ {o p t} = n \epsilon^ {2}
|
| 663 |
+
$$
|
| 664 |
+
|
| 665 |
+
At the first iteration of ExKMC, suppose it chooses some cut that does not separate points belonging to the same cluster. We may then assume that w.l.o.g. $(i,\theta) = (1,0.5)$ , which implies $c_{R} = c_{3}$ and w.l.o.g. $c_{L} = c_{1}$ . Thus, the total cost of this cut is
|
| 666 |
+
|
| 667 |
+
$$
|
| 668 |
+
\begin{array}{l} f (i, \theta) = \frac {2 n}{3} \epsilon^ {2} + \sum_ {x \in C _ {2}} \| x - c _ {1} \| ^ {2} \\ = \frac {2 n}{3} \epsilon^ {2} + \frac {n}{6} (1 - \epsilon) ^ {2} + \frac {n}{6} (1 + \epsilon) ^ {2} \\ \end{array}
|
| 669 |
+
$$
|
| 670 |
+
|
| 671 |
+
This cost can be improved upon when ExKMC cuts along $(i,\theta) = (1,0)$ , choosing $c_{1} = c_{L}$ , $c_{3} = c_{R}$ , leading to a cost of
|
| 672 |
+
|
| 673 |
+
$$
|
| 674 |
+
f (i, \theta) = \frac {2 n}{3} \epsilon^ {2} + \frac {n}{3} (1 - \epsilon) ^ {2}
|
| 675 |
+
$$
|
| 676 |
+
|
| 677 |
+
Since ExKMC can now only add one more leaf, it inevitably separates at least $\frac{n}{6}$ points from their correct cluster center. Thus, there exists a leaf for which $\frac{2n}{6} \cdot \frac{n}{3} = \frac{n^2}{9}$ pairs of points are at distance of at least $1 - 2\epsilon$ , and the final cost of the associated decision tree $T$ is hence
|
| 678 |
+
|
| 679 |
+
$$
|
| 680 |
+
c o s t (T) \geq \frac {n \epsilon^ {2}}{2} + \frac {1}{n} \cdot \frac {2 n ^ {2} (1 - 2 \epsilon) ^ {2}}{9} = \frac {n \epsilon^ {2}}{2} + \frac {2 n (1 - 2 \epsilon) ^ {2}}{9}
|
| 681 |
+
$$
|
| 682 |
+
|
| 683 |
+
The price of explainability of $T$ is given by
|
| 684 |
+
|
| 685 |
+
$$
|
| 686 |
+
p (T, X) \geq \frac {n \epsilon^ {2}}{2 n \epsilon^ {2}} + \frac {2 (1 - 2 \epsilon) ^ {2}}{9 \epsilon^ {2}}
|
| 687 |
+
$$
|
| 688 |
+
|
| 689 |
+
Thus, as $\epsilon \to 0$ , we see that ExKMC gives rise to decision trees with an arbitrarily large price of explainability $p(T,X) \geq m$ . Note that IMM recreates the optimal partition perfectly, since it is possible to split clusters without making any mistakes. Thus $p(X) = 1$ . Clearly, the fact that ExKMC restricts our choice of centers to the set of reference centers limits its performance.
|
| 690 |
+
|
| 691 |
+
# K THE PRICE OF EXPLAINABILITY CAN BE INFINITE FOR KERNEL CLUSTERING (THEOREM 7)
|
| 692 |
+
|
| 693 |
+
The price of explainability, as defined in Definition 4, may not be finite for all kernels.
|
| 694 |
+
|
| 695 |
+
Proposition 1. (Unbounded price for the quadratic kernel) Let $K(x,y) = \langle x,y\rangle^2$ . Then, there exists a dataset $X\subset \mathbb{R}^2$ such that $p(X) = \infty$ .
|
| 696 |
+
|
| 697 |
+
Proof. Let $x = (0,1), y = (0, -1), z = (1,0), w = (-1,0) \in \mathbb{R}^2$ . Consider the quadratic kernel $K(s,t) = (\langle s,t\rangle)^2$ operating on $X = \{x,y,z,w\}$ . Then quadratic kernel 2-means achieves a cost of zero by partitioning $X$ into the two clusters $C_1 = \{x,y\}$ , $C_2 = \{z,w\}$ , since $K(s,t) = 1$ for all $s,t \in X$ from the same cluster. However, no interpretable decision tree can reproduce this partitioning of $X$ . Every decision tree $T$ with two leaves assigns one pair of points $(s,t)$ from different clusters to the same leaf. Since $K(s,t) = 0$ for this pair, $cost(T) > 0$ and thus $p(X) = \infty$ .
|
| 698 |
+
|
| 699 |
+
This may not come as a surprise considering the special geometry of the quadratic kernel. However, the following result demonstrates that even distance-based kernels can lead to similar problems. For this, we consider the $\epsilon$ -neighborhood kernel $K(x,y) = \mathbf{1}(\| x - y\| < \epsilon)$ . While $K$ is not a positive definite kernel (its kernel matrix may have eigenvalues), it is commonly used in spectral and kernel clustering nonetheless.
|
| 700 |
+
|
| 701 |
+
Proposition 2. (Unbounded price for the $\epsilon$ -neighborhood kernel) Let $\epsilon > 0$ and let $K(x, y) = \mathbf{1}(\|x - y\| \leq \epsilon)$ . Then, there exists a dataset $X$ such that $p(X) = \infty$ .
|
| 702 |
+
|
| 703 |
+
Proof. For four points $x^{(1)}, \ldots, x^{(4)}$ , there are exactly $d' = 6$ ways of assigning to two of them the value 0, and to the two others the value 1. Similarly, for four other points $x^{(5)}, \ldots, x^{(8)}$ , there are exactly $d' = 6$ ways of assigning to two of them the value 0, and to the two others the value -1. There are $d = (d')^2 = 36$ possible combinations of all these assignments. We define a $d$ -dimensional cluster $C_1$ by concatenating all of the combinations for each of the points $x^{(1)}, \ldots, x^{(4)}$ . Thus, every $x \in C_1$ is a vector in $\{0, 1\}^d$ . Similarly, define $C_2$ by concatenating all of the combinations for each of the points $x^{(5)}, \ldots, x^{(8)}$ . Thus, the vectors $y \in C_2$ are $\{0, -1\}^d$ . Note that for any $x, x' \in C_1$ , they agree in exactly $d/3$ dimensions but differ by 1 everywhere else. Thus $\|x - x'\|^2 = 24$ . The same holds for any pair $y, y' \in C_2$ . However, for any pair $x \in C_1, y \in C_2$ from different clusters, they agree on $d/4 = 9$ dimensions, but are separated by 1 along $d/2 = 18$ dimensions and are separated by 2 elsewhere. Thus, their distance is $\|x - y\|^2 = 18 + 36 = 54$ . By choosing the $\epsilon$ -neighborhood kernel with $\epsilon = \sqrt{24}$ , we see that $K(x, x') = K(y, y') = 1$ for all $x, x' \in C_1, y, y' \in C_2$ . This implies an optimal kernel $k$ -means cost of zero. However, any threshold cut along any one of the $d$ dimensions will assign at least one pair $(x, y)$ from distinct clusters to the same leaf, implying $K(x, y) = 0$ . Thus, the kernel $k$ -means cost for this explainable partition is strictly positive. This proves $p(X) = \infty$ . To produce the same result for other values of $\epsilon > 0$ , simply rescale the data accordingly.
|
| 704 |
+
|
| 705 |
+

|
2024/Explaining Kernel Clustering via Decision Trees/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d36c99047ec9c850ae0be72fe74c2fd8609ea4226c5218555ec63a8dd750c55
|
| 3 |
+
size 791921
|
2024/Explaining Kernel Clustering via Decision Trees/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/92b5b84a-3cd4-477f-a6a0-5735d930d785_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:34507f2d56821ece53df70d931e4ced09a40e12973fb0294fdf72dc7da9c7535
|
| 3 |
+
size 1353337
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/full.md
ADDED
|
@@ -0,0 +1,471 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# EXPLAINING TIME SERIES VIA CONTRASTIVE AND LOCALLY SPARSE PERTURBATIONS
|
| 2 |
+
|
| 3 |
+
Zichuan Liu $^{1,2*}$ , Yingying Zhang $^{2*}$ , Tianchun Wang $^{3*}$ , Zefan Wang $^{2,4}$ , Dongsheng Luo $^{5}$ , Mengnan Du $^{6}$ , Min Wu $^{7}$ , Yi Wang $^{8}$ , Chunlin Chen $^{1\dagger}$ , Lunting Fan $^{2}$ , and Qingsong Wen $^{2\dagger}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ Nanjing University, $^{2}$ Ailibaba Group, $^{3}$ Pennsylvania State University,
|
| 6 |
+
|
| 7 |
+
$^{4}$ Tsinghua University, $^{5}$ Florida International University,
|
| 8 |
+
|
| 9 |
+
$^{6}$ New Jersey Institute of Technology, $^{7}$ A*STAR, $^{8}$ The University of Hong Kong
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
Explaining multivariate time series is a compound challenge, as it requires identifying important locations in the time series and matching complex temporal patterns. Although previous saliency-based methods addressed the challenges, their perturbation may not alleviate the distribution shift issue, which is inevitable especially in heterogeneous samples. We present ContraLSP, a locally sparse model that introduces counterfactual samples to build uninformative perturbations but keeps distribution using contrastive learning. Furthermore, we incorporate sample-specific sparse gates to generate more binary-skewed and smooth masks, which easily integrate temporal trends and select the salient features parsimoniously. Empirical studies on both synthetic and real-world datasets show that ContraLSP outperforms state-of-the-art models, demonstrating a substantial improvement in explanation quality for time series data. The source code is available at https://github.com/zichuan-liu/ContraLSP.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Providing reliable explanations for predictions made by machine learning models is of paramount importance, particularly in fields like finance (Mokhtari et al., 2019), games (Liu et al., 2023), and healthcare (Amann et al., 2020), where transparency and interpretability are often ethical and legal prerequisites. These domains frequently deal with complex multivariate time series data, yet the investigation into methods for explaining time series models remains an underexplored frontier (Rojat et al., 2021). Besides, adapting explainers originally designed for different data types presents challenges, as their inductive biases may struggle to accommodate the inherently complex and less interpretable nature of time series data (Ismail et al., 2020). Achieving this requires the identification of crucial temporal positions and aligning them with explainable patterns.
|
| 18 |
+
|
| 19 |
+
In response, the predominant explanations involve the use of saliency methods (Baehrens et al., 2010; Tjoa & Guan, 2020), where the explanatory distinctions depend on how they interact with an arbitrary model. Some works establish saliency maps, e.g., incorporating gradient (Sundararajan et al., 2017; Lundberg et al., 2018) or constructing attention (Garnot et al., 2020; Lin et al., 2020), to better handle time series characteristics. Other surrogate methods, including Shapley (Castro et al., 2009; Lundberg & Lee, 2017) or LIME (Ribeiro et al., 2016), provide insight into the predictions of a model by locally approximating them through weighted linear regression. These methods mainly provide instance-level saliency maps, but the feature inter-correlation often leads to notable generalization errors (Yang et al., 2022).
|
| 20 |
+
|
| 21 |
+
The most popular class of explanation methods is to use samples for perturbation (Fong et al., 2019; Leung et al., 2023; Lee et al., 2022), usually through different styles to make non-salient features uninformative. Two representative perturbation methods in time series are Dynamask (Crabbé & Van Der Schaar, 2021) and Extrmask (Enguehard, 2023).
|
| 22 |
+
|
| 23 |
+
Dynamask utilizes meaningful perturbations to incorporate temporal smoothing, while Extrmask generates perturbations of less sense close to zero through neural network learning. However, due to shifts in shape (Zhao et al., 2022), perturbed time series may be out of distribution for the explained model, leading to a loss of faithfulness in the generated explanations. For example, a time series classified as 1 and its different forms of perturbation are shown in Figure 1. We see that the distribution of all classes moves away from 0 at intermediate time, while the 0 and mean perturbations shift in shape. In addition, the blur and learned perturbations are close to the original feature and therefore contain information for classification 1. It may result in a label leaking problem (Jethani et al., 2023), as informative perturbations are introduced. This causes us to think about counterfactuals, i.e., a contrasting perturbation does not affect model inference in non-salient areas.
|
| 24 |
+
|
| 25 |
+

|
| 26 |
+
Figure 1: Illustrating different styles of perturbation. The red line is a sample belonging to class 1 within the two categories, while the dark background indicates the salient features, otherwise non-salient. Other perturbations could be either not uninformative or not in-domain, while ours is counterfactual that is toward the distribution of negative samples.
|
| 27 |
+
|
| 28 |
+
To address these challenges, we propose a Contrastive and Locally Sparse Perturbations (ContraLSP) framework based on contrastive learning and sparse gate techniques. Specifically, our ContraLSP learns a perturbation function to generate counterfactual and in-domain perturbations through a contrastive learning loss. These perturbations tend to align with negative samples that are far from the current features (Figure 1), rendering them uninformative. To optimize the mask, we employ $\ell_0$ -regularised gates with injected random noises in each sample for regularization, which encourages the mask to approach a binary-skewed form while preserving the localized sparse explanation. Additionally, we introduce a smooth constraint with a trend function to allow the mask to capture temporal patterns. We summarize our contributions as below:
|
| 29 |
+
|
| 30 |
+
- We propose ContraLSP as a stronger time series model explanatory tool, which incorporates counterfactual samples to build uninformative in-domain perturbation through contrastive learning.
|
| 31 |
+
- ContraLSP integrates sample-specific sparse gates as a mask indicator, generating binary-skewed masks on time series. Additionally, we enforce a smooth constraint by considering temporal trends, ensuring consistent alignment of the latent time series patterns.
|
| 32 |
+
- We evaluate our method through experiments on both synthetic and real-world time series datasets. These datasets comprise either classification or regression tasks and the synthetic one includes ground-truth explanatory labels, allowing for quantitative benchmarking against other state-of-the-art time series explainers.
|
| 33 |
+
|
| 34 |
+
# 2 RELATED WORK
|
| 35 |
+
|
| 36 |
+
Time series explainability. Recent literature has delved into the realm of eXplainable Artificial Intelligence (XAI) for multivariate time series (Bento et al., 2021; Ismail et al., 2020; Zhu et al., 2023). Among them, gradient-based methods (Shrikumar et al., 2017; Sundararajan et al., 2017; Lundberg et al., 2018) translate the impact of localized input alterations to feature saliency. Attention-based methods (Lin et al., 2020; Choi et al., 2016) leverage attention layers to produce importance scores that are intrinsically based on attention coefficients. Perturbation-based methods, as the most common form in time series, usually modify the data through baseline (Suresh et al., 2017), generative models (Tonekaboni et al., 2020; Leung et al., 2023), or making the data more uninformative (Crabbé & Van Der Schaar, 2021; Enguehard, 2023). However, these methods provide only an instance-level saliency map, while the inter-sample saliency maps have been studied little in the existing literature (Gautam et al., 2022). Our investigation performs counterfactual perturbations through inter-sample variation, which goes beyond the instance-level saliency methods by focusing on understanding both the overall and specific model's behavior across groups.
|
| 37 |
+
|
| 38 |
+
Model sparsification. For a better understanding of which part of the features are most influential to the model's behavior, the existing literature enforcing sparsity (Fong et al., 2019) to constrain the model's focus on specific regions. A typical approach is LASSO (Tibshirani, 1996), which selects a subset of the most relevant features by adding an $\ell_1$ constraint to the loss function. Based on this, several works (Feng & Simon, 2017; Scardapane et al., 2017; Louizos et al., 2018; Yamada et al., 2020) are proposed to employ distinct forms of regularization to encourage the input features to be sparse. All these methods select global informative features that may neglect the underlying correlation between them. To cope with it, local stochastic gates (Yang et al., 2022) consider an instance-wise selector to heterogeneous samples, accommodating cases where salient features vary among samples. Lee et al. (2022) takes a self-supervised way to enhance stochastic gates that encourage the model's sparse explainability meanwhile. However, most of these sparse methods are utilized in tabular feature selection. Different from them, our approach reveals crucial features within the temporal patterns of multivariate time series data, offering local sample explanations.
|
| 39 |
+
|
| 40 |
+
Counterfactual explanations. Perturbation-based methods are known to have distribution shift problems, leading to abnormal model behaviors and unreliable explanation (Hase et al., 2021; Hsieh et al., 2021). Previous works (Goyal et al., 2019; Teney et al., 2020) have tackled generating reasonable counterfactuals for perturbation-based explanations, which searches pairwise inter-class perturbations in the sample domain to explain the classification models. In the field of time series, Delaney et al. (2021) builds counterfactuals by adapting label-changing neighbors. To alleviate the need for labels in model interpretation, Chuang et al. (2023) uses triplet contrastive representation learning with disturbed samples to train an explanatory encoder. However, none of these methods explored label-free perturbation generation aligned with the sample domain. On the contrary, our method yields counterfactuals with contrastive sample selection to sustain faithful explanations.
|
| 41 |
+
|
| 42 |
+
# 3 PROBLEM FORMULATION
|
| 43 |
+
|
| 44 |
+
Let $\{(\pmb{x}_i, y_i)\}_{i=1}^N$ be a set of multi-variate time series, where $\pmb{x}_i \in \mathbb{R}^{T \times D}$ is a sample with $T$ time steps and $D$ observations, $y_i \in \mathcal{V}$ is the ground truth. $\pmb{x}_i[t,d]$ denotes a feature of $\pmb{x}_i$ in time step $t$ and observation dimension $d$ , where $t \in [1:T]$ and $d \in [1:D]$ . We let $\pmb{x} \in \mathbb{R}^{N \times T \times D}$ , $y \in \mathcal{V}^N$ be the set of all the samples and that of the ground truth, respectively. We are interested in explaining the prediction $\hat{y} = f(\pmb{x})$ of a pre-trained black-box model $f$ . More specifically, our objective is to pinpoint a subset $\mathcal{S} \subseteq [N \times T \times D]$ , in which the model uses the relevant selected features $\pmb{x}[\mathcal{S}]$ to optimize its proximity to the target outcome. It can be rewritten as addressing an optimization problem: $\arg \min_{\mathcal{S}} \mathcal{L}(\hat{y}, f(\pmb{x}[\mathcal{S}]))$ , where $\mathcal{L}$ represents the cross-entropy loss for $C$ -classification tasks (i.e., $\mathcal{Y} = \{1, \dots, C\}$ ) or the mean squared error for regression tasks (i.e., $\mathcal{Y} = \mathbb{R}$ ).
|
| 45 |
+
|
| 46 |
+
To achieve this goal, we consider finding masks $\mathbf{m} = \mathbf{1}_{\mathcal{S}} \in \{0, 1\}^{N \times T \times D}$ by learning the samples of perturbed features through $\Phi(\mathbf{x}, \mathbf{m}) = \mathbf{m} \odot \mathbf{x} + (\mathbf{1} - \mathbf{m}) \odot \mathbf{x}^r$ , where $\mathbf{x}^r = \varphi_{\theta_1}(\mathbf{x})$ is the counterfactual explanation obtained from a perturbation function $\varphi_{\theta_1}: \mathbb{R}^{N \times T \times D} \to \mathbb{R}^{N \times T \times D}$ , and $\theta_1$ is a parameter of the function $\varphi(\cdot)$ (e.g., neural networks). Thus, existing literature (Fong & Vedaldi, 2017; Fong et al., 2019; Crabbé & Van Der Schaar, 2021) propose to rewrite the above optimization problem by learning an optimal mask as
|
| 47 |
+
|
| 48 |
+
$$
|
| 49 |
+
\underset {\boldsymbol {m}, \theta_ {1}} {\arg \min } \mathcal {L} (f (\boldsymbol {x}), f \circ \Phi (\boldsymbol {x}, \boldsymbol {m})) + \mathcal {R} (\boldsymbol {m}) + \mathcal {A} (\boldsymbol {m}), \tag {1}
|
| 50 |
+
$$
|
| 51 |
+
|
| 52 |
+
which promotes proximity between the predictions on the perturbed samples and the original ones in the first term, and restricts the number of explanatory features in the second term (e.g., $\mathcal{R}(\boldsymbol{m}) = \|\boldsymbol{m}\|_1$ ). The third term enforces the mask's value to be smooth by penalizing irregular shapes.
|
| 53 |
+
|
| 54 |
+
Challenges. In the real world, particularly within the healthcare field, two primary challenges are encountered: (i) Current strategies (Fong & Vedaldi, 2017; Louizos et al., 2018; Lee et al., 2022; Enguehard, 2023) of learning the perturbation $\varphi(\cdot)$ could be either not counterfactual or out of distributions due to unknown data distribution (Jethani et al., 2023). (ii) Under-considering the inter-correlation of samples would result in significant generalization errors (Yang et al., 2022). During training, cross-sample interference among masks $\{\pmb{m}_i\}_{i=1}^N$ may cause ambiguous sample-specific predictions, while local sparse weights can remove the ambiguity (Yamada et al., 2017). These challenges motivate us to learn counterfactual perturbations that are adapted to each sample individually with localized sparse masks.
|
| 55 |
+
|
| 56 |
+

|
| 57 |
+
Figure 2: The architecture of ContraLSP. A sample of features $\boldsymbol{x}_i \in \mathbb{R}^{T \times D}$ is fed simultaneously to a perturbation function $\varphi(\cdot)$ and to a trend function $\tau(\cdot)$ . The perturbation function $\varphi(\cdot)$ uses $\boldsymbol{x}_i$ to generate counterfactuals $\boldsymbol{x}_i^r$ that are closer to other negative samples (but within the sample domain) through contrastive learning. In addition, $\tau(\cdot)$ learns to predict temporal trends, which together with a set of parameters $\boldsymbol{\mu}_i$ depicts the smooth vectors $\boldsymbol{\mu}_i^r$ . It acts on the locally sparse gates by injecting noises $\epsilon_i$ to get the mask $m_i$ . Finally, the counterfactuals are replaced with perturbed features and the predictions are compared to the original results to determine which features are salient enough.
|
| 58 |
+
|
| 59 |
+
# 4 OUR METHOD
|
| 60 |
+
|
| 61 |
+
We now present the Contrastive and Locally Sparse Perturbations (ContraLSP), whose overall architecture is illustrated in Figure 2. Specifically, our ContraLSP learns counterfactuals by means of contrastive learning to augment the uninformative perturbations but maintain sample distribution. This allows perturbed features toward a negative distribution in heterogeneous samples, thus increasing the impact of the perturbation. Meanwhile, a mask selects sample-specific features in sparse gates, which is learned to be constrained with $\ell_0$ -regularization and temporal trend smoothing. Finally, comparing the perturbed prediction to the original prediction, we subsequently backpropagate the error to learn the perturbation function and adapt the saliency scores contained in the mask.
|
| 62 |
+
|
| 63 |
+
# 4.1 COUNTERFACTUALS FROM CONTRASTIVE LEARNING
|
| 64 |
+
|
| 65 |
+
To obtain counterfactual perturbations, we train the perturbation function $\varphi_{\theta_1}(\cdot)$ through a triplet-based contrastive learning objective. The main idea is to make counterfactual perturbations more uninformative by inversely optimizing a triplet loss (Schroff et al., 2015), which adapts the samples by replacing the masked unimportant regions. Specifically, we take each counterfactual perturbation $\pmb{x}_i^r = \varphi_{\theta_1}(\pmb{x}_i)$ as an anchor, and partition all samples $\pmb{x}^r$ into two clusters: a positive cluster $\Omega^{+}$ and negative one $\Omega^{-}$ , based on the pairwise Manhattan similarities between these perturbations. Following this partitioning, we select the $K^{+}$ nearest positive samples from the positive cluster $\Omega^{+}$ , denoted as $\{\pmb{x}_{i,k}^{r + }\}_{k = 1}^{K^{+}}$ , which ex
|
| 66 |
+
|
| 67 |
+
hibits similarity with the anchor features. In parallel, we randomly select $K^{-}$ subsamples from the negative cluster $\Omega^{-}$ , denoted as $\{x_{i,k}^{r^{-}}\}_{k=1}^{K^{-}}$ , where $K^{+}$ and $K^{-}$ represent the numbers of positive and negative samples selected, respectively. The strategy of triple sampling is similar to Li et al. (2021), and we introduce the details in Appendix B.
|
| 68 |
+
|
| 69 |
+
To this end, we obtain the set of triplets $\mathcal{T}$ with each element being a tuple $\mathcal{T}_i = \left(\pmb{x}_i^r,\{\pmb{x}_{i,k}^{r+}\}_{k=1}^{K^+},\{\pmb{x}_{i,k}^{r-}\}_{k=1}^{K-}\right)$ . Let the Manhattan distance between the anchor with negative samples be $\mathcal{D}_{an} = \frac{1}{K^{-}}\sum_{k=1}^{K^{-}}|\pmb{x}_i^r - \pmb{x}_{i,k}^{r-}|$ , and that with positive samples be $\mathcal{D}_{ap} = \frac{1}{K^+}\sum_{k=1}^{K^+}|\pmb{x}_i^r - \pmb{x}_{i,k}^{r+}|$ .
|
| 70 |
+
|
| 71 |
+

|
| 72 |
+
Figure 3: Illustration of the impact of triplet loss to generate counterfactual perturbations. The anchor is closer to negatives but farther from positives.
|
| 73 |
+
|
| 74 |
+
As shown in Figure 3, we aim to ensure that $\mathcal{D}_{an}$ is smaller than $\mathcal{D}_{ap}$ with a margin $b$ , thus making the perturbations counterfactual. Therefore, the objective of optimizing the perturbation function $\varphi_{\theta_1}(\cdot)$ with triplet-based contrastive learning is given by
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
\mathcal {L} _ {\text {c n t r}} \left(\boldsymbol {x} _ {i}\right) = \max \left(0, \mathcal {D} _ {\text {a n}} - \mathcal {D} _ {\text {a p}} - b\right) + \left\| \boldsymbol {x} _ {i} ^ {r} \right\| _ {1}, \tag {2}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
which encourages the original sample $\pmb{x}_i$ and the perturbation $\pmb{x}_i^r$ to be dissimilar. The second regularization limits the extent of counterfactuals. In practice, the margin $b$ is set to 1 following (Balntas et al., 2016), and we discuss the effects of different distances in Appendix E.1.
|
| 81 |
+
|
| 82 |
+
# 4.2 SPARSE GATES WITH SMOOTH CONSTRAINT
|
| 83 |
+
|
| 84 |
+
Logical masks preserve the sparsity of feature selection but introduce a large degree of variance in the approximated Bernoulli masks due to their heavy-tailedness (Yamada et al., 2020). To address this limitation, we apply a sparse stochastic gate to each feature in each sample $i$ , thus approximating the Bernoulli distribution for the local sample. Specifically, for each feature $x_{i}[t,d]$ , a sample-specific mask is obtained based on the hard thresholding function by
|
| 85 |
+
|
| 86 |
+
$$
|
| 87 |
+
\boldsymbol {m} _ {i} [ t, d ] = \min \left(1, \max \left(0, \boldsymbol {\mu} _ {i} ^ {\prime} [ t, d ] + \boldsymbol {\epsilon} _ {i} [ t, d ]\right)\right), \tag {3}
|
| 88 |
+
$$
|
| 89 |
+
|
| 90 |
+
where $\epsilon_{i}[t,d]\sim \mathcal{N}(0,\delta^{2})$ is a random noise injected into each feature. We fix the Gaussian variance $\delta^2$ during training. Typically, $\pmb{\mu}_{i}^{\prime}[t,d]$ is taken as an intrinsic parameter of the sparse gate. However, as a binary-skewed parameter, $\pmb{\mu}_{i}^{\prime}[t,d]$ does not take into account the smoothness, which may lose the underlying trend in temporal patterns. Inspired by Elfwing et al. (2018) and Biswas et al. (2022), we adopt a sigmoid-weighted unit with the temporal trend to smooth $\pmb{\mu}_{i}^{\prime}$ . Specifically, we construct the smooth vectors $\pmb{\mu}_{i}^{\prime}$ as
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\boldsymbol {\mu} _ {i} ^ {\prime} = \boldsymbol {\mu} _ {i} \odot \sigma \left(\tau_ {\theta_ {2}} \left(\boldsymbol {x} _ {i}\right) \boldsymbol {\mu} _ {i}\right) = \frac {\boldsymbol {\mu} _ {i}}{1 + e ^ {- \tau_ {\theta_ {2}} \left(\boldsymbol {x} _ {i}\right) \boldsymbol {\mu} _ {i}}}, \tag {4}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+

|
| 97 |
+
Figure 4: Different temperatures for the sigmoid-weighted unit. The learned trend function $\tau (\cdot)$ can be better adapted to smooth vectors (red) to hard masks (black).
|
| 98 |
+
|
| 99 |
+
where $\tau_{\theta_2}(\cdot):\mathbb{R}^{N\times T\times D}\to \mathbb{R}^{N\times T\times D}$ is a trend function parameterized by $\theta_{2}$ that plays a role in the sig
|
| 100 |
+
|
| 101 |
+
moid function as temperature scaling, and $\mu_{i}$ is a set of parameters initialized randomly. In practice, we use a neural network (e.g., MLP) to implement the trend function $\tau_{\theta_2}(\cdot)$ , whose details are shown in Appendix D.4. Note that employing a constant temperature may render the mask continuous. However, for a valid mask interpretation, adherence to a discrete property is appropriate (Queen et al., 2023). We illustrate in Figure 4 that a learned temperature (red solid) makes the hard mask smoother and keeps its skewed binary, in contrast to other constant temperatures.
|
| 102 |
+
|
| 103 |
+
To make the mask more informative in Eq. (1), we follow Yang et al. (2022) by replacing the $\ell_1$ -regularization into an $\ell_0$ -like constraint. Consequently, the regularization term $\mathcal{R}(\cdot)$ can be rewritten using the Gaussian error function (erf) as
|
| 104 |
+
|
| 105 |
+
$$
|
| 106 |
+
\mathcal {R} \left(\boldsymbol {x} _ {i}, \boldsymbol {m} _ {i}\right) = \| \boldsymbol {m} _ {i} \| _ {0} = \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \left(\frac {1}{2} + \frac {1}{2} \operatorname {e r f} \left(\frac {\boldsymbol {\mu} _ {i} ^ {\prime} [ t , d ]}{\sqrt {2} \delta}\right)\right), \tag {5}
|
| 107 |
+
$$
|
| 108 |
+
|
| 109 |
+
where $\pmb{\mu}_i^{\prime}$ is obtained from Eq.(4). The full derivations are given in Appendix A. We calculate the empirical expectation over $m_{i}$ for all samples. Thus, masks $\pmb{m}$ are learned by the objective
|
| 110 |
+
|
| 111 |
+
$$
|
| 112 |
+
\underset {\boldsymbol {\mu}, \theta_ {2}} {\arg \min } \mathcal {L} (f (\boldsymbol {x}), f \circ \Phi (\boldsymbol {x}, \boldsymbol {m})) + \frac {\alpha}{N} \sum_ {i = 1} ^ {N} \mathcal {R} \left(\boldsymbol {x} _ {i}, \boldsymbol {m} _ {i}\right), \tag {6}
|
| 113 |
+
$$
|
| 114 |
+
|
| 115 |
+
where $\alpha$ is the regular strength. Note that the smooth vectors $\pmb{\mu}_i^{\prime}$ restrict the penalty term $\mathcal{A}(\cdot)$ in Eq. (1) for jump saliency over time.
|
| 116 |
+
|
| 117 |
+
Table 1: Performance on Rare-Time and Rare-Observation experiments w/o different groups.
|
| 118 |
+
|
| 119 |
+
<table><tr><td rowspan="2">METHOD</td><td colspan="4">RARE-TIME</td><td colspan="4">RARE-TIME (DIFFGROUPS)</td></tr><tr><td>AUP↑</td><td>AUR↑</td><td>Im/10^4↑</td><td>Sm/10^2↓</td><td>AUP↑</td><td>AUR↑</td><td>Im/10^4↑</td><td>Sm/10^2↓</td></tr><tr><td>FO</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.46±0.01</td><td>47.20±0.61</td><td>1.00±0.00</td><td>0.16±0.00</td><td>0.53±0.01</td><td>54.89±0.70</td></tr><tr><td>AFO</td><td>1.00±0.00</td><td>0.15±0.01</td><td>0.51±0.01</td><td>55.60±0.85</td><td>1.00±0.00</td><td>0.16±0.00</td><td>0.54±0.01</td><td>57.76±0.72</td></tr><tr><td>IG</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.46±0.01</td><td>47.61±0.62</td><td>1.00±0.00</td><td>0.15±0.00</td><td>0.53±0.01</td><td>54.62±0.85</td></tr><tr><td>SVS</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.47±0.01</td><td>47.20±0.61</td><td>1.00±0.00</td><td>0.15±0.00</td><td>0.52±0.02</td><td>54.28±0.84</td></tr><tr><td>DYNAMASK</td><td>0.99±0.01</td><td>0.67±0.02</td><td>8.68±0.11</td><td>37.24±0.48</td><td>0.99±0.01</td><td>0.51±0.00</td><td>5.75±0.13</td><td>47.33±1.02</td></tr><tr><td>EXTRMASK</td><td>1.00±0.00</td><td>0.88±0.00</td><td>16.40±0.13</td><td>13.10±0.78</td><td>1.00±0.00</td><td>0.83±0.03</td><td>13.37±0.78</td><td>27.44±3.68</td></tr><tr><td>CONTRALSP</td><td>1.00±0.00</td><td>0.97±0.01</td><td>19.51±0.30</td><td>4.65±0.71</td><td>1.00±0.00</td><td>0.94±0.01</td><td>18.92±0.37</td><td>4.40±0.60</td></tr><tr><td rowspan="2">METHOD</td><td colspan="4">RARE-OBSERVATION</td><td colspan="4">RARE-OBSERVATION (DIFFGROUPS)</td></tr><tr><td>AUP↑</td><td>AUR↑</td><td>Im/10^4↑</td><td>Sm/10^2↓</td><td>AUP↑</td><td>AUR↑</td><td>Im/10^4↑</td><td>Sm/10^2↓</td></tr><tr><td>FO</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.46±0.00</td><td>47.39±0.16</td><td>1.00±0.00</td><td>0.14±0.00</td><td>0.50±0.01</td><td>52.13±0.96</td></tr><tr><td>AFO</td><td>1.00±0.00</td><td>0.16±0.00</td><td>0.55±0.01</td><td>56.81±0.39</td><td>1.00±0.00</td><td>0.16±0.01</td><td>0.54±0.02</td><td>56.92±1.24</td></tr><tr><td>IG</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.46±0.00</td><td>47.82±0.15</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.47±0.00</td><td>49.90±0.88</td></tr><tr><td>SVS</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.46±0.00</td><td>47.39±0.16</td><td>1.00±0.00</td><td>0.13±0.00</td><td>0.47±0.01</td><td>49.53±0.84</td></tr><tr><td>DYNAMASK</td><td>0.97±0.00</td><td>0.65±0.00</td><td>8.32±0.06</td><td>22.87±0.58</td><td>0.98±0.00</td><td>0.52±0.01</td><td>6.12±0.10</td><td>30.88±0.70</td></tr><tr><td>EXTRMASK</td><td>1.00±0.00</td><td>0.76±0.00</td><td>13.25±0.07</td><td>9.55±0.39</td><td>1.00±0.00</td><td>0.70±0.04</td><td>10.40±0.54</td><td>32.81±0.88</td></tr><tr><td>CONTRALSP</td><td>1.00±0.00</td><td>1.00±0.00</td><td>20.68±0.03</td><td>0.32±0.16</td><td>1.00±0.00</td><td>0.99±0.00</td><td>20.51±0.07</td><td>0.57±0.20</td></tr></table>
|
| 120 |
+
|
| 121 |
+
# 4.3 LEARNING OBJECTIVE
|
| 122 |
+
|
| 123 |
+
In our method, we utilize the preservation game (Fong & Vedaldi, 2017), where the aim is to maximize data masking while minimizing the deviation of predictions from the original ones. Thus, the overall learning objective is to train the whole framework by minimizing the total loss
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\underset {\boldsymbol {\mu}, \theta_ {1}, \theta_ {2}} {\arg \min } \mathcal {L} (f (\boldsymbol {x}), f \circ \Phi (\boldsymbol {x}, \boldsymbol {m})) + \frac {\alpha}{N} \sum_ {i = 1} ^ {N} \mathcal {R} \left(\boldsymbol {x} _ {i}, \boldsymbol {m} _ {i}\right) + \frac {\beta}{N} \sum_ {i = 1} ^ {N} \mathcal {L} _ {\text {c n t r}} \left(\boldsymbol {x} _ {i}\right), \tag {7}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
where $\{\pmb {\mu},\theta_1,\theta_2\}$ are learnable parameters of the whole framework and $\{\alpha ,\beta \}$ are hyperparameters adjusting the weight of losses to learn the sparse masks. Note that during the inference phase, we remove the random noises $\epsilon_{i}$ from the sparse gates and set $m_{i} = \min (1,\max (0,\pmb{\mu}_{i}\odot \sigma (\tau (\pmb{x}_{i})\pmb{\mu}_{i}))$ for deterministic masks. We summarize the pseudo-code of the proposed ContraLSP in Appendix C.
|
| 130 |
+
|
| 131 |
+
# 5 EXPERIMENTS
|
| 132 |
+
|
| 133 |
+
In this section, we evaluate the explainability of the proposed method on synthetic datasets (where truth feature importance is accessible) for both regression (white-box) and classification (black-box), as well as on more intricate real-world clinical tasks. For black-box and real-world experiments, we use 1-layer GRU with 200 hidden units as the target model $f_{\theta}$ to explain. All performance results for our method, benchmarks, and ablations are reported using mean ± std of 5 repetitions. For each metric in the results, we use ↑ to indicate a preference for higher values and ↓ to indicate a preference for lower values, and we mark **bold** as the best and **underline** as the second best. More details of each dataset and experiment are provided in Appendix D.
|
| 134 |
+
|
| 135 |
+
# 5.1 WHITE-BOX REGRESSION SIMULATION
|
| 136 |
+
|
| 137 |
+
Datasets and Benchmarks. Following Crabbé & Van Der Schaar (2021), we apply sparse white-box regressors whose predictions depend only on the known sub-features $\mathcal{S} = \mathcal{S}^T \times \mathcal{S}^D \subset [ : 1 : T] \times [ :, 1 : D ]$ as salient indices. Besides, we extend our investigation by incorporating heterogeneous samples to explore the influence of inter-samples on masking. Specifically, we consider the subset of samples from two unequal nonlinear groups $\{S_1, S_2\} \subset S$ , denoted as Diff-Groups. Here, $S_1$ and $S_2$ collectively constitute the entire set $S$ , with each subset having a size of $|S_1| = |S_2| = |S| / 2 = 50$ . The salient features are represented mathematically as
|
| 138 |
+
|
| 139 |
+
$$
|
| 140 |
+
[ f (\boldsymbol {x}) ] _ {t} = \left\{ \begin{array}{c c} \sum_ {[: t, d ] \in \mathcal {S}} \left(\boldsymbol {x} [ t, d ]\right) ^ {2} & \text {i f i n} \mathcal {S} \\ 0 & \text {e l s e ,} \end{array} \right. \text {a n d} [ f (\boldsymbol {x}) ] _ {t} = \left\{ \begin{array}{c c} \sum_ {[ i, t, d ] \in \mathcal {S} _ {1}} \left(\boldsymbol {x} _ {i} [ t, d ]\right) ^ {2} & \text {i f i n} \mathcal {S} _ {1} \\ \left(\sum_ {[ j, t, d ] \in \mathcal {S} _ {2}} \boldsymbol {x} _ {j} [ t, d ]\right) ^ {2} & \text {e l i f i n} \mathcal {S} _ {2} \\ 0 & \text {e l s e .} \end{array} \right.
|
| 141 |
+
$$
|
| 142 |
+
|
| 143 |
+

|
| 144 |
+
Figure 5: Differences between ContraLSP and Extrmask perturbations on the Rare-Observation (Diffgroups) experiment. We randomly select a sample in each of the two groups and sum all observations. The background color represents the mask value, with darker colors indicating higher values. ContraLSP provides counterfactual information, yet Extrmask's perturbation is close to 0.
|
| 145 |
+
|
| 146 |
+
In our experiments, we separately examine two scenarios with and without DiffGroups: where setting $|\mathcal{S}^T| \ll N \times T$ is called Rare-Time and setting $|\mathcal{S}^D| \ll N \times D$ is called Rare-Observation. These scenarios are recognized in saliency methods due to their inherent complexity (Ismail et al., 2019). In fact, some methods are not applicable to evaluate white-box regression models, e.g., DeepLIFT (Shrikumar et al., 2017) and FIT (Tonekaboni et al., 2020). To ensure a fair comparison, we compare ContraLSP with several baseline methods, including Feature Occlusion (FO) (Suresh et al., 2017), Augmented Feature Occlusion (AFO) (Tonekaboni et al., 2020), Integrated Gradient (IG) (Sundararajan et al., 2017), Shapley Value Sampling (SVS) (Castro et al., 2009), Dynamask (Crabbé & Van Der Schaar, 2021), and Extrmask (Enguehard, 2023). The implementation details of all algorithms are available in Appendix D.5.
|
| 147 |
+
|
| 148 |
+
Metrics. Since we know the exact cause, we utilize it as the ground truth important for evaluating explanations. Observations causing prediction label changes receive an explanation of 1, otherwise it is 0. To this end, we evaluate feature importance with area under precision (AUP) and area under recall (AUR). To gauge the information of the masks and the sharpness of region explanations, we also use two metrics introduced by Crabbé & Van Der Schaar (2021): the information $I_{\mathbf{m}}(\mathbf{a}) = -\sum_{[i,t,d] \in \mathbf{a}} \ln(1 - \mathbf{m}_i[t,d])$ and mask entropy $S_{\mathbf{m}}(\mathbf{a}) = -\sum_{[i,t,d] \in \mathbf{a}} \mathbf{m}_i[t,d] \ln(\mathbf{m}_i[t,d]) + (1 - \mathbf{m}_i[t,d]) \ln(1 - \mathbf{m}_i[t,d])$ , where $\mathbf{a}$ represents true salient features.
|
| 149 |
+
|
| 150 |
+
Results. Table 1 summarizes the performance results of the above regressors with rare salient features. AUP does not work as a performance discriminator in sparse scenarios. We find that for all metrics except AUP, our method significantly outperforms all other benchmarks. Moreover, ContraLSP identifies a notably larger proportion of genuinely important features in all experiments, even close to precise attribution, as indicated by the higher AUR. Note that when different groups are present within the samples, the performance of mask-based methods at the baseline significantly deteriorates, while ContraLSP remains relatively unaffected. We present a comparison between the perturbations generated by ContraLSP and Extrmask, as shown in Figure 5. This suggests that employing counterfactuals for learning contrastive inter-samples leads to less information in non-salient areas and highlights the mask more compared to other methods. We display the saliency maps for rare experiments, which are shown in the Appendix G. Our method accurately captures the important features with some smoothing in this setting, indicating that the sparse gates are working. We also explore in Appendix F whether different perturbations keep the original data distribution.
|
| 151 |
+
|
| 152 |
+
# 5.2 BLACK-BOX CLASSIFICATION SIMULATION
|
| 153 |
+
|
| 154 |
+
Datasets and Benchmarks. We reproduce the Switch-Feature and State experiments from Tonekaboni et al. (2020). The Switch-Feature data introduces complexity by altering features using a Gaussian Process (GP) mixture model. For the State dataset, we introduce intricate temporal dynamics using a non-stationary Hidden Markov Model (HMM) to generate multivariate altering observations with time-dependent state transitions. These alterations influence the predictive distribution, highlighting the importance of identifying key features during state transitions. Therefore, an accurate generator for capturing temporal dynamics is essential in this context. For a further description of the datasets, see Appendix D.2. For the benchmarks, in addition to the previous ones, we also use FIT, DeepLIFT, GradSHAP (Lundberg & Lee, 2017), LIME (Ribeiro et al., 2016), and RETAIN (Choi et al., 2016).
|
| 155 |
+
|
| 156 |
+
Table 2: Performance on Switch Feature and State data.
|
| 157 |
+
|
| 158 |
+
<table><tr><td rowspan="2">METHOD</td><td colspan="4">SWITCH-Feature</td><td colspan="4">STATE</td></tr><tr><td>AUP ↑</td><td>AUR ↑</td><td>Im/104↑</td><td>Sm/103↓</td><td>AUP ↑</td><td>AUR ↑</td><td>Im/104↑</td><td>Sm/103↓</td></tr><tr><td>FO</td><td>0.89±0.03</td><td>0.37±0.02</td><td>1.86±0.14</td><td>15.60±0.28</td><td>0.90±0.05</td><td>0.30±0.01</td><td>2.73±0.15</td><td>28.07±0.54</td></tr><tr><td>AFO</td><td>0.82±0.06</td><td>0.41±0.02</td><td>2.00±0.14</td><td>17.32±0.29</td><td>0.84±0.08</td><td>0.36±0.03</td><td>3.16±0.27</td><td>34.03±1.10</td></tr><tr><td>IG</td><td>0.91±0.02</td><td>0.44±0.03</td><td>2.21±0.17</td><td>16.87±0.52</td><td>0.93±0.02</td><td>0.34±0.03</td><td>3.17±0.28</td><td>30.19±1.22</td></tr><tr><td>GRADSHAP</td><td>0.88±0.02</td><td>0.38±0.02</td><td>1.92±0.13</td><td>15.85±0.40</td><td>0.88±0.06</td><td>0.30±0.02</td><td>2.76±0.20</td><td>28.18±0.96</td></tr><tr><td>DEEPLIFT</td><td>0.91±0.02</td><td>0.44±0.02</td><td>2.23±0.16</td><td>16.86±0.52</td><td>0.93±0.02</td><td>0.35±0.03</td><td>3.20±0.27</td><td>30.21±1.19</td></tr><tr><td>LIME</td><td>0.94±0.02</td><td>0.40±0.02</td><td>2.01±0.13</td><td>16.09±0.58</td><td>0.95±0.02</td><td>0.32±0.03</td><td>2.94±0.26</td><td>28.55±1.53</td></tr><tr><td>FIT</td><td>0.48±0.03</td><td>0.43±0.02</td><td>1.99±0.11</td><td>17.16±0.50</td><td>0.45±0.02</td><td>0.59±0.02</td><td>7.92±0.40</td><td>33.59±0.17</td></tr><tr><td>RETAIN</td><td>0.93±0.01</td><td>0.33±0.04</td><td>1.54±0.20</td><td>15.08±1.13</td><td>0.52±0.16</td><td>0.21±0.02</td><td>1.56±0.24</td><td>25.01±0.57</td></tr><tr><td>DYNAMASK</td><td>0.35±0.00</td><td>0.77±0.02</td><td>5.22±0.26</td><td>12.85±0.53</td><td>0.36±0.01</td><td>0.79±0.01</td><td>10.59±0.20</td><td>25.11±0.40</td></tr><tr><td>EXTRMASK</td><td>0.97±0.01</td><td>0.65±0.05</td><td>8.45±0.51</td><td>6.90±1.44</td><td>0.87±0.01</td><td>0.77±0.01</td><td>29.71±1.39</td><td>7.54±0.46</td></tr><tr><td>CONTRALSP</td><td>0.98±0.00</td><td>0.80±0.03</td><td>24.23±1.27</td><td>0.91±0.26</td><td>0.90±0.03</td><td>0.81±0.01</td><td>50.09±0.78</td><td>0.50±0.05</td></tr></table>
|
| 159 |
+
|
| 160 |
+
Table 3: Effects of contrastive perturbations (using the triplet loss) and smoothing constraint (using the trend function) on the Switch-Feature and State datasets.
|
| 161 |
+
|
| 162 |
+
<table><tr><td rowspan="2">METHOD</td><td colspan="4">SWITCH-Feature</td><td colspan="4">STATE</td></tr><tr><td>AUP↑</td><td>AUR↑</td><td>Im/104↑</td><td>Sm/103↓</td><td>AUP↑</td><td>AUR↑</td><td>Im/104↑</td><td>Sm/103↓</td></tr><tr><td>CONTRALSP W/O BOTH</td><td>0.92±0.01</td><td>0.79±0.02</td><td>22.08±1.43</td><td>0.78±0.16</td><td>0.76±0.02</td><td>0.74±0.01</td><td>42.26±0.45</td><td>0.14±0.02</td></tr><tr><td>CONTRALSP W/O TRIPLETS LOSS</td><td>0.97±0.01</td><td>0.79±0.02</td><td>22.99±0.84</td><td>1.00±0.21</td><td>0.88±0.03</td><td>0.80±0.01</td><td>49.04±0.75</td><td>0.76±0.07</td></tr><tr><td>CONTRALSP W/O TREND FUNCTION</td><td>0.92±0.01</td><td>0.80±0.01</td><td>24.16±0.69</td><td>0.65±0.10</td><td>0.77±0.02</td><td>0.80±0.01</td><td>42.22±0.50</td><td>0.15±0.02</td></tr><tr><td>CONTRALSP</td><td>0.98±0.00</td><td>0.80±0.03</td><td>24.23±1.27</td><td>0.91±0.26</td><td>0.90±0.03</td><td>0.81±0.01</td><td>50.09±0.78</td><td>0.50±0.05</td></tr></table>
|
| 163 |
+
|
| 164 |
+
Metrics. We maintain consistency with the ones previously employed.
|
| 165 |
+
|
| 166 |
+
Results. The performance results on simulated data are presented in Table 2. Across Switch-Feature and State settings, ContraLSP is the best explainer on 7/8 (4 metrics in two datasets) over the strongest baselines. Specifically, when AUP is at the same level, our method achieves high AUR results from its emphasis on producing smooth masks over time, favoring complete subsequence patterns over sparse portions, aligning with human interpretation needs. The reason why Dynamask has a high AUR is that the failure pro
|
| 167 |
+
|
| 168 |
+

|
| 169 |
+
Figure 6: Saliency maps produced by various methods for Switch-Feature data.
|
| 170 |
+
|
| 171 |
+
duces a smaller region of masks, as shown in Figure 6. ContraLSP also has an average $94.75\%$ improvement in the information content $I_{m}$ and an average $90.24\%$ reduction in the entropy $S_{m}$ over the strongest baselines. This indicates that the contrastive perturbation is superior to perturbation by other means when explaining forecasts based on multivariate time series data.
|
| 172 |
+
|
| 173 |
+
Ablation study. We further explore these two datasets with the ablation study of two crucial components of the model: (i) let $\mathcal{L}_{cntr}$ to cancel contrastive learning with the triplet loss and (ii) without the trend function $\tau_{\theta_2}(\cdot)$ so that $\pmb{\mu}' = \pmb{\mu}$ . As shown in Table 3, the ContraLSP with both components performs best. Whereas without the use of triplet loss, the performance degrades as the method fails to learn the mask with counterfactuals. Such perturbations without contrastive optimization are not sufficiently uninformative, leading to a lack of distinction among samples. Moreover, equipped with the trend function, ContraLSP improves the AUP by 0.06 and 0.13 on the two datasets, respectively. It indicates that temporal trends introduce context as a smoothing factor, which improves the explanatory ability of our method. To determine the values of $\alpha$ and $\beta$ in Eq. (7), we also show different values for parameter combination, which are given in more detail in the Appendix E.2.
|
| 174 |
+
|
| 175 |
+
# 5.3 MIMIC-III MORTALITY DATA
|
| 176 |
+
|
| 177 |
+
Dataset and Benchmarks. We use the MIMIC-III dataset (Johnson et al., 2016), which is a comprehensive clinical time series dataset encompassing various vital and laboratory measurements. It is extensively utilized in healthcare and medical artificial intelligence-related research. For more details, please refer to Appendix D.3. We use the same benchmarks as before the classification.
|
| 178 |
+
|
| 179 |
+
Table 4: Performance report on MIMIC-III mortality by masking $20\%$ data.
|
| 180 |
+
|
| 181 |
+
<table><tr><td rowspan="2">METHOD</td><td colspan="4">AVERAGE SUBSTITUTION</td><td colspan="4">ZERO SUBSTITUTION</td></tr><tr><td>ACC ↓</td><td>CE ↑</td><td>SUFF*10^2 ↓</td><td>COMP*10^2 ↑</td><td>ACC ↓</td><td>CE ↑</td><td>SUFF*10^2 ↓</td><td>COMP*10^2 ↑</td></tr><tr><td>FO</td><td>0.988±0.001</td><td>0.094±0.005</td><td>0.455±0.076</td><td>-0.229±0.059</td><td>0.971±0.003</td><td>0.121±0.008</td><td>-0.539±0.169</td><td>-0.523±0.274</td></tr><tr><td>AFO</td><td>0.989±0.002</td><td>0.097±0.005</td><td>0.185±0.122</td><td>0.008±0.077</td><td>0.972±0.004</td><td>0.120±0.008</td><td>-0.546±0.322</td><td>-0.169±0.240</td></tr><tr><td>IG</td><td>0.988±0.002</td><td>0.096±0.005</td><td>0.273±0.098</td><td>-0.080±0.150</td><td>0.971±0.004</td><td>0.122±0.006</td><td>-0.474±0.228</td><td>-0.385±0.268</td></tr><tr><td>GRADSHAP</td><td>0.987±0.003</td><td>0.095±0.005</td><td>0.400±0.103</td><td>-0.219±0.058</td><td>0.968±0.005</td><td>0.128±0.015</td><td>0.066±0.460</td><td>-0.628±0.377</td></tr><tr><td>DEEPLIFT</td><td>0.987±0.002</td><td>0.095±0.004</td><td>0.303±0.104</td><td>-0.115±0.140</td><td>0.972±0.004</td><td>0.119±0.005</td><td>-0.427±0.193</td><td>-0.482±0.246</td></tr><tr><td>LIME</td><td>0.997±0.001</td><td>0.094±0.005</td><td>0.116±0.122</td><td>-0.028±0.050</td><td>0.988±0.003</td><td>0.099±0.004</td><td>1.688±0.472</td><td>0.254±0.241</td></tr><tr><td>FIT</td><td>0.996±0.01</td><td>0.098±0.004</td><td>-0.139±0.139</td><td>0.375±0.067</td><td>0.987±0.004</td><td>0.108±0.07</td><td>-0.745±0.450</td><td>1.053±0.224</td></tr><tr><td>RETAIN</td><td>0.988±0.001</td><td>0.092±0.005</td><td>0.788±0.046</td><td>-0.425±0.096</td><td>0.971±0.004</td><td>0.119±0.008</td><td>0.072±0.394</td><td>-0.984±0.266</td></tr><tr><td>DYNAMASK</td><td>0.990±0.001</td><td>0.099±0.005</td><td>-0.083±0.089</td><td>0.354±0.064</td><td>0.976±0.004</td><td>0.114±0.007</td><td>-0.422±0.501</td><td>0.609±0.170</td></tr><tr><td>EXTRMASK</td><td>0.982±0.003</td><td>0.118±0.007</td><td>-1.157±0.362</td><td>1.538±0.395</td><td>0.943±0.007</td><td>0.318±0.051</td><td>-6.942±0.531</td><td>10.847±2.055</td></tr><tr><td>CONTRLSP</td><td>0.980±0.002</td><td>0.127±0.007</td><td>-1.792±0.095</td><td>2.386±0.175</td><td>0.928±0.020</td><td>0.357±0.044</td><td>-6.636±0.315</td><td>17.442±2.544</td></tr></table>
|
| 182 |
+
|
| 183 |
+

|
| 184 |
+
Figure 7: Quantitative results on the MIMIC-III mortality experiment, focusing on Accuracy $\downarrow$ , Cross Entropy $\uparrow$ , Sufficiency $\downarrow$ , and Comprehensiveness $\uparrow$ . We mask a varying percentage of the data (ranging from $10\%$ to $60\%$ ) for each patient and replace the masked data with the overall average over time for each feature: $\overline{\boldsymbol{x}}_i[t,d] = \sum_{t=1}^{T} \boldsymbol{x}_i[t,d]$ . Since some curves are similar, we show representative baselines for clarity.
|
| 185 |
+
|
| 186 |
+
Metrics. Due to the absence of real attribution features in MIMIC-III, we mask certain portions of the features to assess their importance. We report that performance is evaluated using top mask substitution, as is done in Enguehard (2023). It replaces masked features either with an average over time of this feature $(\overline{\boldsymbol{x}}_i[t,d] = \frac{1}{T}\sum_{t = 1}^{T}\boldsymbol{x}_i[t,d])$ or with zeros $(\overline{\boldsymbol{x}}_i[t,d] = 0)$ . The metrics we select are Accuracy (Acc, lower is better), Cross-Entropy (CE, higher is better), Sufficiency (Suff, lower is better), and Comprehensiveness (Comp, higher is better), where the details are in Appendix D.3.
|
| 187 |
+
|
| 188 |
+
Results. The performance results on MIMIC-III mortality by masking $20\%$ data are presented in Table 4. We can see that our method outperforms the leading baseline Extrmask on 7/8 metrics (across 4 metrics in two substitutions). Compared to other methods on feature-removal (FO, AFO, FIT) and gradient (IG, DeepLift, GradShap), the gains are greater. The reason could be that the local mask produced by ContraLSP is sparser than others and is replaced by more uninformative perturbations. We show the details of hyperparameter determination for the MIMIC-III dataset, which is deferred to Appendix E.2. Considering that replacement masks different proportions of the data, we also show the average substitution using the above metrics in Figure 7, where $10\%$ to $60\%$ of the data is masked for each patient. Our results show that our method outperforms others in most cases. This indicates that perturbations using contrastive learning are superior to those using other perturbations in interpreting forecasts for multivariate time series data.
|
| 189 |
+
|
| 190 |
+
# 6 CONCLUSION
|
| 191 |
+
|
| 192 |
+
We introduce ContraLSP, a perturbation-base model designed for the interpretation of time series models. By incorporating counterfactual samples and sample-specific sparse gates, ContraLSP not only offers contractive perturbations but also maintains sparse salient areas. The smooth constraint applied through temporal trends further enhances the model's ability to align with latent patterns in time series data. The performance of ContraLSP across various datasets and its ability to reveal essential patterns make it a valuable tool for enhancing the transparency and interpretability of time series models in diverse fields. However, generating perturbations by the contrasting objective may not bring counterfactuals strong enough, since it is label-free generation. Besides, an inherent limitation of our method is the selection of sparse parameters, especially when dealing with different datasets. Addressing this challenge may involve the implementation of more parameter-efficient tuning strategies, so it would be interesting to explore one of these adaptations to salient areas.
|
| 193 |
+
|
| 194 |
+
# ACKNOWLEDGMENTS
|
| 195 |
+
|
| 196 |
+
This work was supported by Alibaba Group through Alibaba Research Intern Program.
|
| 197 |
+
|
| 198 |
+
# REFERENCES
|
| 199 |
+
|
| 200 |
+
Ahmed Alqaraawi, Martin Schuessler, Philipp Weiß, Enrico Costanza, and Nadia Berthouze. Evaluating saliency map explanations for convolutional neural networks: A user study. In IUI, pp. 275-285, 2020.
|
| 201 |
+
Julia Amann, Alessandro Blasimme, Effy Vayena, Dietmar Frey, and Vince I Madai. Explainability for artificial intelligence in healthcare: A multidisciplinary perspective. BMC Medical Informatics and Decision Making, 20(1):1-9, 2020.
|
| 202 |
+
David Baehrens, Timon Schroeter, Stefan Harmeling, Motoaki Kawanabe, Katja Hansen, and Klaus-Robert Müller. How to explain individual classification decisions. The Journal of Machine Learning Research, 11:1803-1831, 2010.
|
| 203 |
+
Vassileios Balntas, Edgar Riba, Daniel Ponsa, and Krystian Mikolajczyk. Learning local feature descriptors with triplets and shallow convolutional neural networks. In BMVC, pp. 119.1-119.11, 2016.
|
| 204 |
+
João Bento, Pedro Saleiro, André F Cruz, Mário AT Figueiredo, and Pedro Bizarro. Timeshap: Explaining recurrent models through sequence perturbations. In SIGKDD, pp. 2565-2573, 2021.
|
| 205 |
+
Koushik Biswas, Sandeep Kumar, Shilpak Banerjee, and Ashish Kumar Pandey. Smooth maximum unit: Smooth activation function for deep networks using smoothing maximum technique. In CVPR, pp. 794-803, 2022.
|
| 206 |
+
Javier Castro, Daniel Gómez, and Juan Tejada. Polynomial calculation of the shapley value based on sampling. Computers & Operations Research, 36(5):1726-1730, 2009.
|
| 207 |
+
Edward Choi, Mohammad Taha Bahadori, Jimeng Sun, Joshua Kulas, Andy Schuetz, and Walter Stewart. Retain: An interpretable predictive model for healthcare using reverse time attention mechanism. In NeurIPS, pp. 3504-3512, 2016.
|
| 208 |
+
Yu-Neng Chuang, Guanchu Wang, Fan Yang, Quan Zhou, Pushkar Tripathi, Xuanting Cai, and Xia Hu. Cortex: Contrastive framework for real-time explanation. In ICLR, pp. 1-23, 2023.
|
| 209 |
+
Jonathan Crabbé and Mihaela Van Der Schaar. Explaining time series predictions with dynamic masks. In ICML, pp. 2166-2177, 2021.
|
| 210 |
+
Eoin Delaney, Derek Greene, and Mark T Keane. Instance-based counterfactual explanations for time series classification. In ICCBR, pp. 32-47, 2021.
|
| 211 |
+
Stefan Elfwing, Eiji Uchibe, and Kenji Doya. Sigmoid-weighted linear units for neural network function approximation in reinforcement learning. Neural Networks, 107:3-11, 2018.
|
| 212 |
+
Joseph Enguehard. Learning perturbations to explain time series predictions. In ICML, pp. 9329-9342, 2023.
|
| 213 |
+
Jean Feng and Noah Simon. Sparse-input neural networks for high-dimensional nonparametric regression and classification. arXiv preprint arXiv:1711.07592, 2017.
|
| 214 |
+
Ruth Fong, Mandela Patrick, and Andrea Vedaldi. Understanding deep networks via extremal perturbations and smooth masks. In ICCV, pp. 2950-2958, 2019.
|
| 215 |
+
Ruth C Fong and Andrea Vedaldi. Interpretable explanations of black boxes by meaningful perturbation. In ICCV, pp. 3429-3437, 2017.
|
| 216 |
+
Vivien Sainte Fare Garnot, Loic Landrieu, Sebastien Giordano, and Nesrine Chehata. Satellite image time series classification with pixel-set encoders and temporal self-attention. In CVPR, pp. 12325–12334, 2020.
|
| 217 |
+
|
| 218 |
+
Srishti Gautam, Ahcene Boubekki, Stine Hansen, Suaiba Salahuddin, Robert Jenssen, Marina Höhne, and Michael Kampffmeyer. Protovae: A trustworthy self-explainable prototypical variational model. In NeurIPS, pp. 17940-17952, 2022.
|
| 219 |
+
Yash Goyal, Ziyan Wu, Jan Ernst, Dhruv Batra, Devi Parikh, and Stefan Lee. Counterfactual visual explanations. In ICML, pp. 2376-2384, 2019.
|
| 220 |
+
Peter Hase, Harry Xie, and Mohit Bansal. The out-of-distribution problem in explainability and search methods for feature importance explanations. In NeurIPS, pp. 3650-3666, 2021.
|
| 221 |
+
Cheng-Yu Hsieh, Chih-Kuan Yeh, Xuanqing Liu, Pradeep Kumar Ravikumar, Seungyeon Kim, Sanjiv Kumar, and Cho-Jui Hsieh. Evaluations and methods for explanation through robustness analysis. In ICLR, pp. 1-30, 2021.
|
| 222 |
+
Aya Abdelsalam Ismail, Mohamed Gunady, Luiz Pessoa, Hector Corrada Bravo, and Soheil Feizi. Input-cell attention reduces vanishing saliency of recurrent neural networks. In NeurIPS, pp. 10814-10824, 2019.
|
| 223 |
+
Aya Abdelsalam Ismail, Mohamed Gunady, Hector Corrada Bravo, and Soheil Feizi. Benchmarking deep learning interpretability in time series predictions. In NeurIPS, pp. 6441-6452, 2020.
|
| 224 |
+
Neil Jethani, Adriel Saporta, and Rajesh Ranganath. Don't be fooled: label leakage in explanation methods and the importance of their quantitative evaluation. In AISTATS, pp. 8925-8953, 2023.
|
| 225 |
+
Alistair EW Johnson, Tom J Pollard, Lu Shen, Li-wei H Lehman, Mengling Feng, Mohammad Ghassemi, Benjamin Moody, Peter Szolovits, Leo Anthony Celi, and Roger G Mark. MIMIC-III, a freely accessible critical care database. Scientific Data, 3(1):1-9, 2016.
|
| 226 |
+
Changhee Lee, Fergus Imrie, and Mihaela van der Schaar. Self-supervision enhanced feature selection with correlated gates. In ICLR, pp. 1-26, 2022.
|
| 227 |
+
Kin Kwan Leung, Clayton Brooke, Jonathan Smith, Saba Zuberi, and Maksims Volkovs. Temporal dependencies in feature importance for time series prediction. In ICLR, pp. 1-18, 2023.
|
| 228 |
+
Guozhong Li, Byron Choi, Jianliang Xu, Sourav S Bhowmick, Kwok-Pan Chun, and Grace Lai-Hung Wong. Shapenet: A shapelet-neural network approach for multivariate time series classification. In AAAI, pp. 8375-8383, 2021.
|
| 229 |
+
Haoxing Lin, Rufan Bai, Weijia Jia, Xinyu Yang, and Yongjian You. Preserving dynamic attention for long-term spatial-temporal prediction. In SIGKDD, pp. 36-46, 2020.
|
| 230 |
+
Zichuan Liu, Yuanyang Zhu, and Chunlin Chen. $\mathrm{NA}^2\mathrm{Q}$ : Neural attention additive model for interpretable multi-agent Q-learning. In ICML, pp. 22539-22558, 2023.
|
| 231 |
+
Christos Louizos, Max Welling, and Diederik P. Kingma. Learning sparse neural networks through $L_{0}$ regularization. In ICLR, pp. 1-13, 2018.
|
| 232 |
+
Scott M Lundberg and Su-In Lee. A unified approach to interpreting model predictions. In NeurIPS, pp. 4765-4774, 2017.
|
| 233 |
+
Scott M Lundberg, Bala Nair, Monica S Vavilala, Mayumi Horibe, Michael J Eisses, Trevor Adams, David E Liston, Daniel King-Wai Low, Shu-Fang Newman, Jerry Kim, et al. Explainable machine-learning predictions for the prevention of hypoxaemia during surgery. Nature Biomedical Engineering, 2(10):749-760, 2018.
|
| 234 |
+
Karim El Mokhtari, Ben Peachey Higdon, and Ayşel Başar. Interpreting financial time series with shap values. In CSSE, pp. 166-172, 2019.
|
| 235 |
+
Owen Queen, Thomas Hartvigsen, Teddy Koker, Huan He, Theodoros Tsiligkaridis, and Marinka Zitnik. Encoding time-series explanations through self-supervised model behavior consistency. In NeurIPS, 2023.
|
| 236 |
+
Marco Tulio Ribeiro, Sameer Singh, and Carlos Guestrin. "why should I trust you?" Explaining the predictions of any classifier. In SIGKDD, pp. 1135-1144, 2016.
|
| 237 |
+
|
| 238 |
+
Thomas Rojat, Raphaël Puget, David Filliat, Javier Del Ser, Rodolphe Gelin, and Natalia Díaz-Rodriguez. Explainable artificial intelligence (xai) on timeseries data: A survey. arXiv preprint arXiv:2104.00950, 2021.
|
| 239 |
+
Simone Scardapane, Danilo Comminiello, Amir Hussain, and Aurelio Uncini. Group sparse regularization for deep neural networks. Neurocomputing, 241:81-89, 2017.
|
| 240 |
+
Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In CVPR, pp. 815-823, 2015.
|
| 241 |
+
Avanti Shrikumar, Peyton Greenside, and Anshul Kundaje. Learning important features through propagating activation differences. In ICML, pp. 3145-3153, 2017.
|
| 242 |
+
Mukund Sundararajan, Ankur Taly, and Qiqi Yan. Axiomatic attribution for deep networks. In ICML, pp. 3319-3328, 2017.
|
| 243 |
+
Harini Suresh, Nathan Hunt, Alistair Johnson, Leo Anthony Celi, Peter Szolovits, and Marzyeh Ghassemi. Clinical intervention prediction and understanding with deep neural networks. In MLHC, pp. 322-337, 2017.
|
| 244 |
+
Damien Teney, Ehsan Abbasnedjad, and Anton van den Hengel. Learning what makes a difference from counterfactual examples and gradient supervision. In ECCV, pp. 580-599, 2020.
|
| 245 |
+
Robert Tibshirani. Regression shrinkage and selection via the lasso. Journal of the Royal Statistical Society Series B: Statistical Methodology, 58(1):267-288, 1996.
|
| 246 |
+
Erico Tjoa and Cuntai Guan. A survey on explainable artificial intelligence (xai): Toward medical xai. IEEE Transactions on Neural Networks and Learning Systems, 32(11):4793-4813, 2020.
|
| 247 |
+
Sana Tonekaboni, Shalmali Joshi, Kieran Campbell, David K Duvenaud, and Anna Goldenberg. What went wrong and when? Instance-wise feature importance for time-series black-box models. In NeurIPS, pp. 799-809, 2020.
|
| 248 |
+
Makoto Yamada, Takeuchi Koh, Tomoharu Iwata, John Shawe-Taylor, and Samuel Kaski. Localized lasso for high-dimensional regression. In AISTATS, pp. 325-333, 2017.
|
| 249 |
+
Yutaro Yamada, Ofir Lindenbaum, Sahand Negahban, and Yuval Kluger. Feature selection using stochastic gates. In ICML, pp. 10648-10659, 2020.
|
| 250 |
+
Junchen Yang, Ofir Lindenbaum, and Yuval Kluger. Locally sparse neural networks for tabular biomedical data. In ICML, pp. 25123-25153, 2022.
|
| 251 |
+
Bingchen Zhao, Shaozuo Yu, Wufei Ma, Mingxin Yu, Shenxiao Mei, Angtian Wang, Ju He, Alan Yuille, and Adam Kortylewski. Ood-cv: a benchmark for robustness to out-of-distribution shifts of individual nuisances in natural images. In ECCV, pp. 163-180, 2022.
|
| 252 |
+
Zhaoyang Zhu, Weiqi Chen, Rui Xia, Tian Zhou, Peisong Niu, Bingqing Peng, Wenwei Wang, Hengbo Liu, Ziqing Ma, Xinyue Gu, et al. Energy forecasting with robust, flexible, and explainable machine learning algorithms. AI Magazine, 44(4):377-393, 2023.
|
| 253 |
+
|
| 254 |
+
# A REGULARIZATION TERM
|
| 255 |
+
|
| 256 |
+
Let $\operatorname{erf}$ be the Gaussian error function defined as $\operatorname{erf}(x) = \frac{2}{\sqrt{\pi}} \int_{0}^{x} e^{-t^2} dt$ , and let the mask $\pmb{m}_i$ be obtained with the sigmoid gate output $\pmb{\mu}_i'$ and an injected noise $\pmb{\epsilon}_i$ from $\mathcal{N}(0, \delta^2)$ . Thus, the regularization term for each sample $\mathcal{R}^{(i)}$ can be expressed by
|
| 257 |
+
|
| 258 |
+
$$
|
| 259 |
+
\begin{array}{l} \mathcal {R} ^ {(i)} \left(\boldsymbol {x} _ {i}, \boldsymbol {m} _ {i}\right) = \mathbb {E} \left[ \alpha \left\| \boldsymbol {m} _ {i} \right\| _ {0} \right] \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \mathbb {P} \left(\boldsymbol {\mu} _ {i} ^ {\prime} [ t, d ] + \boldsymbol {\epsilon} _ {i} [ t, d ] > 0\right) \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} [ 1 - \mathbb {P} (\boldsymbol {\mu} _ {i} ^ {\prime} [ t, d ] + \boldsymbol {\epsilon} _ {i} [ t, d ] \leq 0) ] \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \left[ 1 - \Psi \left(\frac {- \boldsymbol {\mu} _ {i} ^ {\prime} [ t , d ]}{\delta}\right) \right] \tag {8} \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \Psi \left(\frac {\boldsymbol {\mu} _ {i} ^ {\prime} [ t , d ]}{\delta}\right) \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \left(\frac {1}{2} - \frac {1}{2} \operatorname {e r f} \left(- \frac {\mu_ {i} ^ {\prime} [ t , d ]}{\sqrt {2} \delta}\right)\right) \\ = \alpha \sum_ {t = 1} ^ {T} \sum_ {d = 1} ^ {D} \left(\frac {1}{2} + \frac {1}{2} \operatorname {e r f} (\frac {\mu_ {i} ^ {\prime} [ t , d ]}{\sqrt {2} \delta})\right), \\ \end{array}
|
| 260 |
+
$$
|
| 261 |
+
|
| 262 |
+
where $\Psi (\cdot)$ is the cumulative distribution function, and $\pmb{\mu}_i^{\prime}[t,d]$ is computed by Eq. (4).
|
| 263 |
+
|
| 264 |
+
# B TRIPLE SAMPLES SELECTED
|
| 265 |
+
|
| 266 |
+
In this section, we describe how to generate positive and negative samples for contrastive learning. For each sample $\boldsymbol{x}_i$ , our goal is to generate the counterfactuals $\boldsymbol{x}_i^r$ via the perturbation function $\varphi(\cdot)$ , optimized to be counterfactual for an uninformative perturbed sample. The pseudo-code of the triplet sample selection is shown in Algorithm 1 and elaborated as follows. (i) We start by clustering samples in each batch into the positives $\Omega^+$ and the negatives $\Omega^-$ with 2-kmeans, (ii) we select the current sample from each cluster as an anchor, along with $K^+$ nearest samples from the same cluster as the positive samples, (iii) and we select $K^-$ random samples from the other cluster yielding negative samples. Note that we use $S_p$ and $S_n$ as auxiliary variables representing two sets to select positive and negative samples, respectively.
|
| 267 |
+
|
| 268 |
+
Algorithm 1 Selection of a triplet sample
|
| 269 |
+
Input: The set of perturbation time series $\Omega = \{\pmb{x}_i^r\}_{i=1}^N$ and the current perturbation $\pmb{x}_i^r$ .
|
| 270 |
+
Output: Triple sample $\mathcal{T}_i = (\pmb{x}_i^r, \{\pmb{x}_{i,k}^{r+}\}_{k=1}^{K^+}, \{\pmb{x}_{i,k}^{-}\}_{k=1}^{K^-})$
|
| 271 |
+
Initialize a positive set $S_p = \{\}$ and a negative set $S_n = \{\}$
|
| 272 |
+
Clustering positive and negative samples $\{\Omega^+, \Omega^-\} \gets 2$ -kmeans( $\Omega$ )
|
| 273 |
+
for $\Omega^*$ in $\{\Omega^+, \Omega^-\}$ do
|
| 274 |
+
Select Anchor $\pmb{x}_i^r \in \Omega^*$ $\Omega^* \gets \Omega^* \setminus \{\pmb{x}_i^r\}$
|
| 275 |
+
for $k \gets 1$ to $K^+$ do
|
| 276 |
+
$\pmb{x}_{i,k}^{r+} = \Omega^*. \mathrm{Top}(\pmb{x}_i^r)$ $\Omega^* \gets \Omega^* \setminus \{\pmb{x}_{i,k}^{r+}\}$ , $S_p \gets S_p \cup \pmb{x}_{i,k}^{r+}$
|
| 277 |
+
end for
|
| 278 |
+
for $k \gets 1$ to $K^-$ do
|
| 279 |
+
$\pmb{x}_{i,k}^{r-} = \mathrm{random}(\Omega \setminus \Omega^*)$ $\Omega^* \gets \Omega^* \setminus \{\pmb{x}_{i,k}^{r-}\}$ , $S_n \gets S_n \cup \pmb{x}_{i,k}^{r-}$
|
| 280 |
+
end for
|
| 281 |
+
end for
|
| 282 |
+
Output: Triple sample $(\pmb{x}_i^r, \{\pmb{x}_{i,k}^{r+}\}_{k=1}^{K^+}, \{\pmb{x}_{i,k}^{-}\}_{k=1}^{K^-})$
|
| 283 |
+
|
| 284 |
+
# C PSEUDO CODE
|
| 285 |
+
|
| 286 |
+
Algorithm 2 The pseudo-code of our ContraLSP
|
| 287 |
+
Input: Multi-variate time series $\{\pmb {x}_i\}_{i = 1}^N$ , black-box model $f$ , sparsity hyper-parameters $\{\alpha ,\beta \}$ Gaussian noise $\delta$ , total training epochs $E$ , learning rate $\gamma$
|
| 288 |
+
Output: Masks m to explain
|
| 289 |
+
Training:
|
| 290 |
+
Initialize the indicator vectors $\mu = \{\pmb {\mu}_i\}_{i = 1}^N$ of sparse perturbation
|
| 291 |
+
Initialize a perturbation function $\varphi_{\theta_1}(\cdot)$ and a trend function $\tau_{\theta_2}(\cdot)$
|
| 292 |
+
for $e\gets 1$ to $E$ do
|
| 293 |
+
for $i\gets 1$ to $N$ do Get time treads $\{\tau_{\theta_2}(\pmb {x}_i[(:,d)])\}_{d = 1}^D$ in each observations $\pmb {x}_i[:,d]$ Compute $\pmb {\mu}_i^{\prime}\gets \pmb {\mu}_i\odot \sigma (\tau (\pmb {x}_i)\pmb {\mu}_i)$ Sample $\epsilon_{i}$ from the Gaussian distribution $\mathcal{N}(0,\delta)$ Compute instance-wise masks $m_i\gets \min (1,\max (0,\pmb {\mu}_i' + \epsilon_i))$ Get counterfactual features $\pmb{x}_i^r\gets \varphi_{\theta_1}(\pmb {x}_i)$ Compute the triplet loss $\mathcal{L}_{cntr}$ via Alg. 1 and Eq. (2) Compute the regularization term $\mathcal{R}(\pmb {x}_i,\pmb {m}_i)$ via Eq. (5)
|
| 294 |
+
end for
|
| 295 |
+
Get perturbations $\Phi (\pmb {x},\pmb {m})\gets \pmb {m}\odot \pmb {x} + (\pmb {1} - \pmb {m})\odot \pmb{x}^{r}$
|
| 296 |
+
Construct the total loss function: $\tilde{\mathcal{L}} = \mathcal{L}\left(f(\pmb {x}),f\circ \Phi (\pmb {x},\pmb {m})\right) + \frac{\alpha}{N}\sum_{i = 1}^{N}\mathcal{R}(\pmb {x}_i,\pmb {m}_i) + \frac{\beta}{N}\sum_{i = 1}^{N}\mathcal{L}_{cntr}(\pmb {x}_i)$ Update $\mu \gets \mu -\gamma \nabla_{\mu}\widetilde{\mathcal{L}},\theta_1\gets \theta_1 - \gamma \nabla_{\theta_1}\widetilde{\mathcal{L}},\theta_2\gets \theta_2 - \gamma \nabla_{\theta_2}\widetilde{\mathcal{L}}$
|
| 297 |
+
end for
|
| 298 |
+
Store $\mu ,\varphi_{\theta_1}(\cdot),\tau_{\theta_2}(\cdot)$
|
| 299 |
+
Inference: Compute final masks $m\gets \min (1,\max (0,\pmb {\mu}\odot \sigma (\tau (\pmb {x})\pmb {\mu}))$
|
| 300 |
+
Return: Masks m
|
| 301 |
+
|
| 302 |
+
# D EXPERIMENTAL SETTINGS AND DETAILS
|
| 303 |
+
|
| 304 |
+
# D.1 WHITE-BOX REGRESSION DATA
|
| 305 |
+
|
| 306 |
+
As this experiment relies on a white-box approach, our sole responsibility is to create the input sequences. As detailed by Crabbé & Van Der Schaar (2021), each feature sequence is generated using an ARMA process:
|
| 307 |
+
|
| 308 |
+
$$
|
| 309 |
+
\boldsymbol {x} _ {i} [ t, d ] = 0. 2 5 \boldsymbol {x} _ {i} [ t - 1, d ] + 0. 1 \boldsymbol {x} _ {i} [ t - 2, d ] + 0. 0 5 \boldsymbol {x} _ {i} [ t - 3, d ] + \epsilon_ {i} ^ {\prime}, \tag {9}
|
| 310 |
+
$$
|
| 311 |
+
|
| 312 |
+
where $\epsilon_i^{\prime} \sim \mathcal{N}(0,1)$ . We generate 100 sequence samples for each observation $d$ within the range of $d \in [1:50]$ and time $t$ within the range of $t \in [1:50]$ , and set the sample size $|S_1| = |S_1| = |S| / 2 = 50$ in different group experiments.
|
| 313 |
+
|
| 314 |
+
In the experiment involving Rare-Time, we identify 5 time steps as salient in each sample, where consecutive time steps are randomly selected and differently for different groups. The salient observation instances are defined as $S^D = [(:,13:38]$ without different groups and as $S_1^D = [(:,1:25],S_2^D = [(:,13:38]$ with different groups.
|
| 315 |
+
|
| 316 |
+
In the experiment involving Rare-Observation, we identify 5 salient observations in each sample without replacement from $[1:50]$ , whereas in different groups $S_1^D$ and $S_2^D$ are 5 different observations randomly selected respectively. The salient time instances are defined as $S^T = [:,13:38]$ without different groups, and as $S_1^T = [:,1:25], S_2^T = [:,13:38]$ with different groups.
|
| 317 |
+
|
| 318 |
+
# D.2 BLACK-BOX CLASSIFICATION DATA
|
| 319 |
+
|
| 320 |
+
Data generation on the Switch-Feature experiment. We generate this dataset closely following Tonekaboni et al. (2020), where the time series states are generated via a two-state HMM with equal
|
| 321 |
+
|
| 322 |
+
initial state probabilities of $\left[\frac{1}{3},\frac{1}{3},\frac{1}{3}\right]$ and the following transition probabilities
|
| 323 |
+
|
| 324 |
+
$$
|
| 325 |
+
\left[ \begin{array}{c c c} 0. 9 5 & 0. 0 2 & 0. 0 3 \\ 0. 0 2 & 0. 9 5 & 0. 0 3 \\ 0. 0 3 & 0. 0 2 & 0. 9 5 \end{array} \right].
|
| 326 |
+
$$
|
| 327 |
+
|
| 328 |
+
The emission probability is a GP mixture, which is governed by an RBF kernel with 0.2 and uses means $\mu_{1} = [0.8, -0.5, -0.2]$ , $\mu_{2} = [0.0, -1.0, 0.0]$ , $\mu_{3} = [-0.2, -0.2, 0.8]$ in each state. The output $y_{i}$ at every step is designed as
|
| 329 |
+
|
| 330 |
+
$$
|
| 331 |
+
\boldsymbol {p} _ {i} [ t ] = \left\{ \begin{array}{l l} \frac {1}{1 + e ^ {- \boldsymbol {x} _ {i} [ t , 1 ]}}, & \text {i f} \boldsymbol {s} _ {i} [ t ] = 0 \\ \frac {1}{1 + e ^ {- \boldsymbol {x} _ {i} [ t , 2 ]}}, & \text {e l i f} \boldsymbol {s} _ {i} [ t ] = 1, \quad \text {a n d} \quad y _ {i} [ t ] \sim \operatorname {B e r n o u l l i} (\boldsymbol {p} _ {i} [ t ]), \\ \frac {1}{1 + e ^ {- \boldsymbol {x} _ {i} [ t , 3 ]}}, & \text {e l i f} \boldsymbol {s} _ {i} [ t ] = 2 \end{array} \right.
|
| 332 |
+
$$
|
| 333 |
+
|
| 334 |
+
where $s_i[t]$ is a single state at each time that controls the contribution of a single feature to the output, and we set 100 states: $t \in [1:100]$ . We generate 1000 time series samples using this approach. Then we employ a single-layer GRU trained using the Adam optimizer with a learning rate of $10^{-4}$ for 50 epochs to predict $y_i$ based on $x_i$ .
|
| 335 |
+
|
| 336 |
+
Data generation on the State experiment. We generate this dataset following Tonekaboni et al. (2020) and Enguehard (2023). The random states of the time series are generated using a two-state HMM with $\pi = [0.5, 0.5]$ and the following transition probabilities
|
| 337 |
+
|
| 338 |
+
$$
|
| 339 |
+
\left[ \begin{array}{c c} 0. 1 & 0. 9 \\ 0. 1 & 0. 9 \end{array} \right].
|
| 340 |
+
$$
|
| 341 |
+
|
| 342 |
+
The emission probability is a multivariate Gaussian, where means are $\mu_{1} = [0.1, 1.6, 0.5]$ and $\mu_{2} = [-0.1, -0.4, -1.5]$ . The label $y_{i}[t]$ is generated only using the last two observations, while the first one is irrelevant. Thus, the output $y_{i}$ at every step is defined as
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
\boldsymbol {p} _ {i} [ t ] = \left\{ \begin{array}{l l} \frac {1}{1 + e ^ {- \boldsymbol {x} _ {i} [ t , 1 ]}} & \text {i f} \boldsymbol {s} _ {i} [ t ] = 0 \\ \frac {1}{1 + e ^ {- \boldsymbol {x} _ {i} [ t , 2 ]}} & \text {e l i f} \boldsymbol {s} _ {i} [ t ] = 1 \end{array} \right., \quad \text {a n d} \quad y _ {i} [ t ] \sim \operatorname {B e r n o u l l i} (\boldsymbol {p} _ {i} [ t ]),
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
where $s_i[t]$ is either 0 or 1 at each time, and we generate 200 states: $t \in [1:200]$ . We also generate 1000 time series samples using this approach and employ a single-layer GRU with 200 units trained by the Adam optimizer with a learning rate of $10^{-4}$ for 50 epochs to predict $y_i$ based on $x_i$ .
|
| 349 |
+
|
| 350 |
+
# D.3 MIMIC-III DATA
|
| 351 |
+
|
| 352 |
+
For this experiment, we opt for adult ICU admission data sourced from the MIMIC-III dataset (Johnson et al., 2016). The objective is to predict in-hospital mortality of each patient based on 48 hours of data $(T = 48)$ , and we need to explain the prediction model (the true salient features are unknown). For each patient, we used features and data processing consistent with Tonekaboni et al. (2020). We summarize all the observations in Table 5, with a total of $D = 31$ . Patients with complete 48-hour blocks missing for specific features are excluded, resulting in 22,988 ICU admissions. The predicted model we train is a single-layer RNN consisting of 200 GRU cells. It undergoes training for 80 epochs using the Adam optimizer with a learning rate of 0.001.
|
| 353 |
+
|
| 354 |
+
Table 5: List of clinical observations at each time for the risk predictor model.
|
| 355 |
+
|
| 356 |
+
<table><tr><td>DATA CLASS</td><td>NAME</td></tr><tr><td>STATIC OBSERVATIONS</td><td>AGE, GENDER, ETHNICITY, FIRST ADMISSION TO THE ICU</td></tr><tr><td>LAB OBSERVATIONS</td><td>LACTATE, MAGNESIUM, PHOSPHATE, PLATELET, POTASSIUM, PTT, INR, PT, SODIUM, BUN, WBC</td></tr><tr><td>VITAL OBSERVATIONS</td><td>HEARTRATE, DIASBP, SYSBP, MEANBP, RESPRATE, SPO2, GLUCOSE, TEMP</td></tr></table>
|
| 357 |
+
|
| 358 |
+
In this task, we introduce the same metrics as Enguehard (2023), which are detailed as follows: (i) Accuracy (Acc) means the prediction accuracy while salient features selected by the model are removed, so a lower value is preferable. (ii) Cross-Entropy (CE) represents the entropy between
|
| 359 |
+
|
| 360 |
+
Table 6: Experimental settings for ContraLSP across all datasets.
|
| 361 |
+
|
| 362 |
+
<table><tr><td>PARAMETER</td><td>RATE-TIME</td><td>RATE-OBSERVATION</td><td>SWITCH-Feature</td><td>STATE</td><td>MIMIC-III</td></tr><tr><td>LEARNING RATE γ</td><td>0.1</td><td>0.1</td><td>0.01</td><td>0.01</td><td>0.1</td></tr><tr><td>OPTIMIZER</td><td>ADAM</td><td>ADAM</td><td>ADAM</td><td>ADAM</td><td>ADAM</td></tr><tr><td>MAX EPOCHS E</td><td>200</td><td>200</td><td>500</td><td>500</td><td>200</td></tr><tr><td>α</td><td>0.1</td><td>0.1</td><td>1.0</td><td>2.0</td><td>0.005</td></tr><tr><td>β</td><td>0.1</td><td>0.1</td><td>2.0</td><td>1.0</td><td>0.01</td></tr><tr><td>δ</td><td>0.5</td><td>0.5</td><td>0.8</td><td>0.5</td><td>0.5</td></tr><tr><td>K+</td><td>|Ω+|/5</td><td>|Ω+|/5</td><td>|Ω+|/5</td><td>|Ω+|/5</td><td>50</td></tr><tr><td>K-</td><td>|Ω-|/5</td><td>|Ω-|/5</td><td>|Ω-|/5</td><td>|Ω-|/5</td><td>50</td></tr></table>
|
| 363 |
+
|
| 364 |
+
Table 7: The specific structure of the trend function.
|
| 365 |
+
|
| 366 |
+
<table><tr><td>No.</td><td>STRUCTURE</td></tr><tr><td>1ST OBS.</td><td>MLP[LINEAR(T, 32), RELU, LINEAR(32, T)]</td></tr><tr><td>2ND OBS.</td><td>MLP[LINEAR(T, 32), RELU, LINEAR(32, T)]</td></tr><tr><td>...</td><td>...</td></tr><tr><td>DTH OBS.</td><td>MLP[LINEAR(T, 32), RELU, LINEAR(32, T)]</td></tr></table>
|
| 367 |
+
|
| 368 |
+
the predictions of perturbed features with the original features. It quantifies the information loss when crucial features are omitted, with a higher value being preferable. (iii) Sufficiency (Suff) is the average change in predicted class probabilities relative to the original values, with lower values being preferable. (iv) Comprehensiveness (Comp) is the average difference of target class prediction probability when most salient features are removed. It reflects how much the removal of features hinders the prediction, so a higher value is better.
|
| 369 |
+
|
| 370 |
+
# D.4 DETAILS OF OUR METHOD
|
| 371 |
+
|
| 372 |
+
We list hyperparameters for each experiment performed in Table 6, and for the triplet loss, the marginal parameter $b$ is consistently set to 1. The size of $K^{+}$ and $K^{-}$ are chosen to depend on the number of positive and negative samples ( $|\Omega^{+}|$ and $|\Omega^{-}|$ ). In the perturbation function $\varphi_{\theta_1}(\cdot)$ , we use a single-layer bidirectional GRU, which corresponds to a generalization of the fixed perturbation. In the trend function $\tau_{\theta_2}(\cdot)$ , we employ an independent MLP for each observation $d$ to find its trend, whose details are shown in Table 7. Please refer to our codebase<sup>1</sup> for additional details on these hyperparameters and implementations.
|
| 373 |
+
|
| 374 |
+
# D.5 DETAILS OF BENCHMARKS
|
| 375 |
+
|
| 376 |
+
We compare our method against ten popular benchmarks, including FO (Suresh et al., 2017), AFO (Tonekaboni et al., 2020), IG (Sundararajan et al., 2017), GradSHAP (Lundberg & Lee, 2017) (SVS (Castro et al., 2009) in regression), FIT (Tonekaboni et al., 2020), DeepLIFT (Shrikumar et al., 2017), LIME (Shrikumar et al., 2017), RETAIN (Choi et al., 2016), Dynamask (Crabbé & Van Der Schaar, 2021), and Extrmask (Enguehard, 2023), whereas the implementation of benchmarks is based on open source codes time interpret² and DynaMask³. All hyperparameters follow the code provided by the authors.
|
| 377 |
+
|
| 378 |
+
# E ADDITIONAL ABLATION STUDY
|
| 379 |
+
|
| 380 |
+
# E.1 EFFECT OF DISTANCE TYPE IN CONTRASTIVE LEARNING.
|
| 381 |
+
|
| 382 |
+
For the instance-wise similarity, we can consider various losses to maximize the distance between the anchor with positive or negative samples in Eq. (2). We evaluate three typical distance metrics in Rare-Time and Rare-Observation datasets: Manhattan distance, Euclidean distance, and cosine
|
| 383 |
+
|
| 384 |
+
Table 8: Performance of ContraLSP with different contrastive loss types on rare experiments.
|
| 385 |
+
|
| 386 |
+
<table><tr><td rowspan="2">DISTANCE TYPE IN Lcntr</td><td colspan="4">RARE-TIME</td><td colspan="4">RARE-OBSERVATION</td></tr><tr><td>AUP ↑</td><td>AUR ↑</td><td>Im/104↑</td><td>Sm/102↓</td><td>AUP ↑</td><td>AUR ↑</td><td>Im/104↑</td><td>Sm/102↓</td></tr><tr><td>MANHATTAN DISTANCE</td><td>1.00±0.00</td><td>0.97±0.01</td><td>19.51±0.30</td><td>4.65±0.71</td><td>1.00±0.00</td><td>1.00±0.00</td><td>20.68±0.03</td><td>0.32±0.16</td></tr><tr><td>EUCLIDEAN DISTANCE</td><td>1.00±0.00</td><td>0.97±0.02</td><td>19.67±0.52</td><td>4.97±0.55</td><td>1.00±0.00</td><td>1.00±0.01</td><td>20.72±0.06</td><td>0.69±0.17</td></tr><tr><td>COSINE SIMILARITY</td><td>1.00±0.00</td><td>0.96±0.02</td><td>18.41±0.64</td><td>5.87±0.74</td><td>1.00±0.00</td><td>0.98±0.01</td><td>19.22±0.06</td><td>0.98±0.23</td></tr></table>
|
| 387 |
+
|
| 388 |
+
similarity. The results presented in Table 8 indicate that the Manhattan distance is slightly better than the other evaluated losses.
|
| 389 |
+
|
| 390 |
+
# E.2 EFFECT OF REGULARIZATION FACTOR.
|
| 391 |
+
|
| 392 |
+
We conduct ablations on the black-box classification data using our method to determine which values of $\alpha$ and $\beta$ should be used in Eq. (7). For each parameter combination, we employed five distinct seeds, and the experimental results for Switch-Feature and State are presented in Table 9 and Table 10, respectively. Higher values of AUP and AUR are preferred, and the underlined values represent the best parameter pair associated with these metrics. Those Tables indicate that the $\ell$ -regularized mask $m$ is most appropriate when $\alpha$ is set to 1.0 and 2.0 for both Switch-Feature and State data, allowing for the retention of a small but highly valuable subset of features. Moreover, to force $\varphi_{\theta_1}(\cdot)$ to learn counterfactual perturbations from other distinguishable samples, $\beta$ is best set to 2.0 and 1.0, respectively. Otherwise, the perturbation may contain crucial features of the current sample, thereby impacting the classification.
|
| 393 |
+
|
| 394 |
+
We also perform ablation on the MIMIC-III dataset for parameters $\alpha$ and $\beta$ using our method. We employ Accuracy and Cross-Entropy as metrics and show the average substitution in Table 11. This Table shows that $\beta$ is best set to 0.01 to learn counterfactual perturbations. Note that the results are better when lower values of $\alpha$ are used, but over-regularizing $m$ close to 0 may not be beneficial. Notably, lower values of $\alpha$ yield superior results, but excessively regularizing $m$ toward 0 may prove disadvantageous (Enguehard, 2023). Therefore, we select $\alpha = 0.005$ and $\beta = 0.01$ as deterministic parameters on the MIMIC-III dataset.
|
| 395 |
+
|
| 396 |
+
Table 9: Effects of $\alpha$ and $\beta$ on the Switch-Feature data. Underlining is the best.
|
| 397 |
+
|
| 398 |
+
<table><tr><td rowspan="2"></td><td colspan="2">α=0.1</td><td colspan="2">α=0.5</td><td colspan="2">α=1.0</td><td colspan="2">α=2.0</td><td colspan="2">α=5.0</td></tr><tr><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td></tr><tr><td>β=0.1</td><td>0.53±0.05</td><td>0.28±0.18</td><td>0.26±0.07</td><td>0.01±0.00</td><td>0.18±0.07</td><td>0.01±0.00</td><td>0.12±0.05</td><td>0.01±0.00</td><td>0.14±0.06</td><td>0.01±0.00</td></tr><tr><td>β=0.5</td><td>0.56±0.03</td><td>0.97±0.01</td><td>0.91±0.06</td><td>0.44±0.28</td><td>0.52±0.20</td><td>0.02±0.01</td><td>0.19±0.05</td><td>0.02±0.00</td><td>0.16±0.09</td><td>0.01±0.00</td></tr><tr><td>β=1.0</td><td>0.55±0.02</td><td>0.97±0.01</td><td>0.89±0.02</td><td>0.87±0.02</td><td>0.98±0.01</td><td>0.56±0.10</td><td>0.71±0.27</td><td>0.09±0.09</td><td>0.28±0.12</td><td>0.02±0.00</td></tr><tr><td>β=2.0</td><td>0.54±0.02</td><td>0.97±0.01</td><td>0.86±0.02</td><td>0.89±0.02</td><td>0.98±0.01</td><td>0.80±0.03</td><td>0.99±0.00</td><td>0.68±0.06</td><td>0.50±0.32</td><td>0.05±0.07</td></tr><tr><td>β=5.0</td><td>0.54±0.02</td><td>0.97±0.01</td><td>0.87±0.02</td><td>0.89±0.02</td><td>0.97±0.01</td><td>0.80±0.03</td><td>0.99±0.00</td><td>0.69±0.05</td><td>0.99±0.00</td><td>0.37±0.09</td></tr></table>
|
| 399 |
+
|
| 400 |
+
Table 10: Effects of $\alpha$ and $\beta$ on the State data. Underlining is the best.
|
| 401 |
+
|
| 402 |
+
<table><tr><td rowspan="2"></td><td colspan="2">α=0.1</td><td colspan="2">α=0.5</td><td colspan="2">α=1.0</td><td colspan="2">α=2.0</td><td colspan="2">α=5.0</td></tr><tr><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td><td>AUP</td><td>AUR</td></tr><tr><td>β=0.1</td><td>0.54±0.01</td><td>0.99±0.00</td><td>0.67±0.03</td><td>0.79±0.05</td><td>0.69±0.05</td><td>0.01±0.00</td><td>0.32±0.14</td><td>0.01±0.00</td><td>0.53±0.08</td><td>0.01±0.00</td></tr><tr><td>β=0.5</td><td>0.52±0.01</td><td>0.96±0.00</td><td>0.66±0.01</td><td>0.90±0.01</td><td>0.77±0.02</td><td>0.85±0.01</td><td>0.88±0.03</td><td>0.79±0.03</td><td>0.77±0.11</td><td>0.08±0.14</td></tr><tr><td>β=1.0</td><td>0.52±0.02</td><td>0.96±0.00</td><td>0.66±0.01</td><td>0.91±0.00</td><td>0.77±0.03</td><td>0.87±0.01</td><td>0.90±0.02</td><td>0.82±0.01</td><td>0.88±0.09</td><td>0.23±0.29</td></tr><tr><td>β=2.0</td><td>0.52±0.01</td><td>0.96±0.00</td><td>0.65±0.02</td><td>0.92±0.00</td><td>0.77±0.02</td><td>0.88±0.01</td><td>0.89±0.02</td><td>0.82±0.01</td><td>0.97±0.01</td><td>0.70±0.01</td></tr><tr><td>β=5.0</td><td>0.52±0.01</td><td>0.96±0.00</td><td>0.65±0.01</td><td>0.91±0.00</td><td>0.76±0.02</td><td>0.88±0.01</td><td>0.89±0.03</td><td>0.82±0.01</td><td>0.97±0.01</td><td>0.70±0.02</td></tr></table>
|
| 403 |
+
|
| 404 |
+
# F DISTRIBUTION ANALYSIS OF PERTURBATIONS
|
| 405 |
+
|
| 406 |
+
To investigate whether the perturbed samples are within the original dataset's distribution, we first compute the distribution of the original samples by kernel density estimation $^{4}$ (KDE). Subsequently,
|
| 407 |
+
|
| 408 |
+
Table 11: Effects of $\alpha$ and $\beta$ on MIMIC-III mortality. We mask $20\%$ data and replace the masked data with the overall average over time for each feature. Underlining is the best.
|
| 409 |
+
|
| 410 |
+
<table><tr><td rowspan="2"></td><td colspan="2">α = 0.001</td><td colspan="2">α = 0.005</td><td colspan="2">α = 0.01</td><td colspan="2">α = 0.1</td><td colspan="2">α = 1.0</td></tr><tr><td>Acc</td><td>CE</td><td>Acc</td><td>CE</td><td>Acc</td><td>CE</td><td>Acc</td><td>CE</td><td>Acc</td><td>CE</td></tr><tr><td>β = 0.001</td><td>0.982±0.003</td><td>0.124±0.007</td><td>0.983±0.003</td><td>0.122±0.007</td><td>0.984±0.002</td><td>0.120±0.006</td><td>0.993±0.001</td><td>0.094±0.004</td><td>0.997±0.001</td><td>0.087±0.004</td></tr><tr><td>β = 0.005</td><td>0.981±0.002</td><td>0.123±0.007</td><td>0.984±0.002</td><td>0.123±0.006</td><td>0.984±0.003</td><td>0.121±0.007</td><td>0.993±0.002</td><td>0.095±0.006</td><td>0.996±0.001</td><td>0.087±0.005</td></tr><tr><td>β = 0.01</td><td>0.980±0.003</td><td>0.124±0.007</td><td>0.980±0.002</td><td>0.127±0.007</td><td>0.984±0.002</td><td>0.121±0.007</td><td>0.994±0.002</td><td>0.094±0.004</td><td>0.996±0.001</td><td>0.087±0.004</td></tr><tr><td>β = 0.1</td><td>0.980±0.002</td><td>0.127±0.007</td><td>0.980±0.003</td><td>0.127±0.007</td><td>0.983±0.003</td><td>0.123±0.007</td><td>0.992±0.002</td><td>0.098±0.006</td><td>0.997±0.001</td><td>0.087±0.005</td></tr><tr><td>β = 1.0</td><td>0.981±0.002</td><td>0.127±0.006</td><td>0.981±0.003</td><td>0.128±0.008</td><td>0.983±0.002</td><td>0.123±0.007</td><td>0.989±0.002</td><td>0.106±0.007</td><td>0.996±0.001</td><td>0.088±0.005</td></tr></table>
|
| 411 |
+
|
| 412 |
+
Table 12: Difference between the distribution of different perturbations and the original distribution.
|
| 413 |
+
|
| 414 |
+
<table><tr><td rowspan="2">PERTURBATION TYPE</td><td colspan="2">RARE-TIME</td><td colspan="2">RARE-OBSERVATION</td></tr><tr><td>KDE-SCORE ↑</td><td>KL-DIVERGENCE ↓</td><td>KDE-SCORE ↑</td><td>KL-DIVERGENCE ↓</td></tr><tr><td>ZERO PERTURBATION</td><td>-25.242</td><td>0.0523</td><td>-23.377</td><td>0.0421</td></tr><tr><td>MEAN PERTURBATION</td><td>-30.805</td><td>0.0731</td><td>-26.421</td><td>0.0589</td></tr><tr><td>EXTRMASK PERTURBATION</td><td>-22.532</td><td>0.0219</td><td>-19.102</td><td>0.0104</td></tr><tr><td>CONTRALSP PERTURBATION</td><td>-23.290</td><td>0.0393</td><td>-22.732</td><td>0.0386</td></tr></table>
|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
Figure 8: Saliency maps produced by various methods for Rare-Time experiment.
|
| 426 |
+
|
| 427 |
+

|
| 428 |
+
|
| 429 |
+

|
| 430 |
+
|
| 431 |
+

|
| 432 |
+
|
| 433 |
+
we assess the log-likelihood of each perturbed sample under the original distribution, called as KDE-score, where closer to 0 indicates a higher likelihood of perturbed samples originating from the original distribution. Additionally, we quantify the KL-divergence between the distribution of perturbed samples and original samples, where a smaller KL means that the two distributions are closer. We conduct experiments on the Rare-Time and Rare-Observation datasets and the results are shown in Table 12. It demonstrates that our ContraLSP's perturbation is more akin to the original distribution compared to the zero and mean perturbation. Furthermore, Extrmask performs best because it generates perturbations only from current samples, and therefore the generated perturbations are not guaranteed to be uninformative. This conclusion aligns with the visualization depicted in Figure 1.
|
| 434 |
+
|
| 435 |
+
# G ILLUSTRATIONS OF SALIENCY MAPS
|
| 436 |
+
|
| 437 |
+
Saliency maps represent a valuable technique for visualizing the significance of features, and previous works (Alqaraawi et al., 2020; Tonekaboni et al., 2020; Leung et al., 2023), particularly in multivariate time series analysis, have demonstrated their utility in enhancing the interpretative aspects of the results. We also demonstrate the saliency maps of the benchmarks and our method for each dataset: (i) the saliency maps for the rare experiments are shown in Figure 8, 9, 11, and 10, (ii)
|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
|
| 441 |
+

|
| 442 |
+
|
| 443 |
+

|
| 444 |
+
|
| 445 |
+

|
| 446 |
+
|
| 447 |
+

|
| 448 |
+
Figure 9: Saliency maps produced by various methods for Rare-Observation experiment.
|
| 449 |
+
|
| 450 |
+

|
| 451 |
+
|
| 452 |
+

|
| 453 |
+
|
| 454 |
+

|
| 455 |
+
|
| 456 |
+

|
| 457 |
+
Figure 10: Saliency maps produced by various methods for Rare-Time (Diffgroups) experiment.
|
| 458 |
+
|
| 459 |
+
the Switch-Feature and State saliency maps are shown in Figure 12 and Figure 13, respectively, (iii) and the saliency maps for the MIMIC-III mortality are in Figure 14.
|
| 460 |
+
|
| 461 |
+

|
| 462 |
+
Figure 11: Saliency maps produced by various methods for Rare-Observation (Diffgroups) experiment.
|
| 463 |
+
|
| 464 |
+

|
| 465 |
+
Figure 12: Saliency maps produced by various methods for Switch-Feature data.
|
| 466 |
+
|
| 467 |
+

|
| 468 |
+
Figure 13: Saliency maps produced by various methods for State data.
|
| 469 |
+
|
| 470 |
+

|
| 471 |
+
Figure 14: Saliency maps produced by various methods for MIMIC-III Mortality data.
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c0f17a04ed1484c4717b09220ad2bef614eb8d4c98bc38abbd03a648302bbade
|
| 3 |
+
size 1174801
|
2024/Explaining Time Series via Contrastive and Locally Sparse Perturbations/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/949f2702-27c7-4bf0-a284-c1193bc4e317_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:283133b27c48e6a986e214da0bb6f10f2e17c395e82e0de01f4f3b6ba3b6e4a5
|
| 3 |
+
size 1402036
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7ef18fe716ac8fb5d6bee527044cc6927091cf76e16adf6166af3885827b57f9
|
| 3 |
+
size 1312116
|
2024/Exploiting Causal Graph Priors with Posterior Sampling for Reinforcement Learning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Exploring Diffusion Time-steps for Unsupervised Representation Learning/eb88b99c-2ad3-4064-a4bc-2d7994130e04_content_list.json
ADDED
|
@@ -0,0 +1,1353 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[
|
| 2 |
+
{
|
| 3 |
+
"type": "text",
|
| 4 |
+
"text": "EXPLORING DIFFUSION TIME-STEPS FOR UNSUPERVISED REPRESENTATION LEARNING",
|
| 5 |
+
"text_level": 1,
|
| 6 |
+
"bbox": [
|
| 7 |
+
171,
|
| 8 |
+
98,
|
| 9 |
+
823,
|
| 10 |
+
148
|
| 11 |
+
],
|
| 12 |
+
"page_idx": 0
|
| 13 |
+
},
|
| 14 |
+
{
|
| 15 |
+
"type": "text",
|
| 16 |
+
"text": "Zhongqi Yue<sup>1</sup>, Jiankun Wang<sup>1</sup>, Qianru Sun<sup>2</sup>, Lei Ji<sup>3</sup>, Eric I-Chao Chang<sup>3</sup>, Hanwang Zhang<sup>1,4</sup> \n<sup>1</sup>Nanyang Technological University, <sup>2</sup>Singapore Management University, <sup>3</sup>Microsoft Research Asia, <sup>4</sup>Skywork AI zhongqi.yue@ntu.edu.sg, jiankun001@e.ntu.edu.sg, qianrusun@smu.edu.sg, leiji@microsoft.com, eric.i.chang@outlook.com, hanwangzhang@ntu.edu.sg",
|
| 17 |
+
"bbox": [
|
| 18 |
+
179,
|
| 19 |
+
167,
|
| 20 |
+
846,
|
| 21 |
+
228
|
| 22 |
+
],
|
| 23 |
+
"page_idx": 0
|
| 24 |
+
},
|
| 25 |
+
{
|
| 26 |
+
"type": "text",
|
| 27 |
+
"text": "ABSTRACT",
|
| 28 |
+
"text_level": 1,
|
| 29 |
+
"bbox": [
|
| 30 |
+
450,
|
| 31 |
+
262,
|
| 32 |
+
547,
|
| 33 |
+
277
|
| 34 |
+
],
|
| 35 |
+
"page_idx": 0
|
| 36 |
+
},
|
| 37 |
+
{
|
| 38 |
+
"type": "text",
|
| 39 |
+
"text": "Representation learning is all about discovering the hidden modular attributes that generate the data faithfully. We explore the potential of Denoising Diffusion Probabilistic Model (DM) in unsupervised learning of the modular attributes. We build a theoretical framework that connects the diffusion time-steps and the hidden attributes, which serves as an effective inductive bias for unsupervised learning. Specifically, the forward diffusion process incrementally adds Gaussian noise to samples at each time-step, which essentially collapses different samples into similar ones by losing attributes, e.g., fine-grained attributes such as texture are lost with less noise added (i.e., early time-steps), while coarse-grained ones such as shape are lost by adding more noise (i.e., late time-steps). To disentangle the modular attributes, at each time-step $t$ , we learn a $t$ -specific feature to compensate for the newly lost attribute, and the set of all $\\{1, \\ldots, t\\}$ -specific features, corresponding to the cumulative set of lost attributes, are trained to make up for the reconstruction error of a pre-trained DM at time-step $t$ . On CelebA, FFHQ, and Bedroom datasets, the learned feature significantly improves attribute classification and enables faithful counterfactual generation, e.g., interpolating only one specified attribute between two images, validating the disentanglement quality. Codes are in https://github.com/yue-zhongqi/diti.",
|
| 40 |
+
"bbox": [
|
| 41 |
+
228,
|
| 42 |
+
294,
|
| 43 |
+
769,
|
| 44 |
+
547
|
| 45 |
+
],
|
| 46 |
+
"page_idx": 0
|
| 47 |
+
},
|
| 48 |
+
{
|
| 49 |
+
"type": "text",
|
| 50 |
+
"text": "1 INTRODUCTION",
|
| 51 |
+
"text_level": 1,
|
| 52 |
+
"bbox": [
|
| 53 |
+
171,
|
| 54 |
+
571,
|
| 55 |
+
339,
|
| 56 |
+
588
|
| 57 |
+
],
|
| 58 |
+
"page_idx": 0
|
| 59 |
+
},
|
| 60 |
+
{
|
| 61 |
+
"type": "text",
|
| 62 |
+
"text": "A good feature representation should faithfully capture the underlying generative attributes in a compact and modular vector space Bengio et al. (2013), enabling not only sample inference (e.g., image classification) but also counterfactual generation Besserve et al. (2020) (e.g., image synthesis of unseen attribute combinations). Over the past decade, discriminative training has been the feature learning mainstream with exceptional performance in inference tasks He et al. (2016; 2020). However, it hardly achieves faithful generation due to the deliberate discard of certain attributes, e.g., class-irrelevant ones in supervised learning or augmentation-related ones in contrastive learning.",
|
| 63 |
+
"bbox": [
|
| 64 |
+
169,
|
| 65 |
+
603,
|
| 66 |
+
826,
|
| 67 |
+
702
|
| 68 |
+
],
|
| 69 |
+
"page_idx": 0
|
| 70 |
+
},
|
| 71 |
+
{
|
| 72 |
+
"type": "text",
|
| 73 |
+
"text": "On the other hand, generative Denoising Diffusion Probabilistic Model (DM) Sohl-Dickstein et al. (2015); Song et al. (2021) can retain all the underlying attributes for faithful generation Dhariwal & Nichol (2021), or even extrapolate novel attribute combinations by textual control Rombach et al. (2022) (e.g., \"Teddy bear skating in Time Square\"), outperforming other generative models like VAE Kingma & Welling (2014) and GAN Creswell et al. (2018). This implies that DM effectively captures the modularity of hidden attributes Yue et al. (2021). However, as DM's formulation has no explicit encoders that transform samples into feature vectors, the conventional encoder-decoder feature learning paradigm via reconstruction Higgins et al. (2017) is no longer applicable.",
|
| 74 |
+
"bbox": [
|
| 75 |
+
169,
|
| 76 |
+
708,
|
| 77 |
+
826,
|
| 78 |
+
821
|
| 79 |
+
],
|
| 80 |
+
"page_idx": 0
|
| 81 |
+
},
|
| 82 |
+
{
|
| 83 |
+
"type": "text",
|
| 84 |
+
"text": "Can we extract DM's knowledge about the modular attributes as a compact feature vector? To answer the question, we start by revealing a natural connection between the diffusion time-steps and the hidden attributes. In the forward diffusion process, given an initial sample $\\mathbf{x}_0$ , a small amount of Gaussian noise $\\mathcal{N}(\\mathbf{0},\\mathbf{I})$ is incrementally added to the sample across $T$ time-steps, resulting in a sequence of noisy samples $\\mathbf{x}_1,\\ldots ,\\mathbf{x}_T$ . In particular, each $\\mathbf{x}_t$ adheres to its noisy sample distribution $q(\\mathbf{x}_t|\\mathbf{x}_0)$ , whose mean and covariance matrix $\\sigma^2\\mathbf{I}$ is denoted as a dot and a circle with radius $\\sigma$ in Figure 1a, respectively. As $t$ increases, $q(\\mathbf{x}_t|\\mathbf{x}_0)$ progressively collapses towards a pure noise by",
|
| 85 |
+
"bbox": [
|
| 86 |
+
169,
|
| 87 |
+
825,
|
| 88 |
+
826,
|
| 89 |
+
928
|
| 90 |
+
],
|
| 91 |
+
"page_idx": 0
|
| 92 |
+
},
|
| 93 |
+
{
|
| 94 |
+
"type": "header",
|
| 95 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 96 |
+
"bbox": [
|
| 97 |
+
171,
|
| 98 |
+
32,
|
| 99 |
+
478,
|
| 100 |
+
47
|
| 101 |
+
],
|
| 102 |
+
"page_idx": 0
|
| 103 |
+
},
|
| 104 |
+
{
|
| 105 |
+
"type": "page_number",
|
| 106 |
+
"text": "1",
|
| 107 |
+
"bbox": [
|
| 108 |
+
493,
|
| 109 |
+
948,
|
| 110 |
+
504,
|
| 111 |
+
959
|
| 112 |
+
],
|
| 113 |
+
"page_idx": 0
|
| 114 |
+
},
|
| 115 |
+
{
|
| 116 |
+
"type": "image",
|
| 117 |
+
"img_path": "images/583b9f206b52ce870550d7f775b20d3b406b3249e21771a7ab0c3029fb9b9200.jpg",
|
| 118 |
+
"image_caption": [
|
| 119 |
+
"Figure 1: (a) Illustration of attribute loss as time-step $t$ increases in the forward diffusion process. The two axes depict a two-dimensional sample space. (b) DM reconstructed $\\mathbf{x}_0$ , denoted as $\\hat{\\mathbf{x}}_0$ , from randomly sampled $\\mathbf{x}_t$ at various $t$ . DM is pre-trained on CelebA, from where $\\mathbf{x}_0$ is drawn."
|
| 120 |
+
],
|
| 121 |
+
"image_footnote": [],
|
| 122 |
+
"bbox": [
|
| 123 |
+
173,
|
| 124 |
+
101,
|
| 125 |
+
823,
|
| 126 |
+
262
|
| 127 |
+
],
|
| 128 |
+
"page_idx": 1
|
| 129 |
+
},
|
| 130 |
+
{
|
| 131 |
+
"type": "text",
|
| 132 |
+
"text": "reducing mean (i.e., dots moving closer to the origin), and increasing $\\sigma$ (i.e., larger radii), which enlarges the overlapping area (OVL) of the probability density function of noisy sample distributions. In particular, we theoretically show in Section 4.1 that OVL is correlated with DM's ambiguous reconstruction of different samples, e.g., due to the large overlap between the red circles at $t_1$ , noisy samples drawn from the two distributions are reconstructed ambiguously as either A or B, losing the attribute \"expression\" that distinguishes them. As $t$ increases, more noisy sample distributions exhibit significant overlaps, inducing additional attribute loss, e.g., further losing \"gender\" at $t_2$ that confuses the identities of A/B and C/D. Eventually, with a large enough $T$ , $\\mathbf{x}_T$ becomes pure noise and all attributes are lost—the reconstruction can be any sample.",
|
| 133 |
+
"bbox": [
|
| 134 |
+
169,
|
| 135 |
+
314,
|
| 136 |
+
826,
|
| 137 |
+
441
|
| 138 |
+
],
|
| 139 |
+
"page_idx": 1
|
| 140 |
+
},
|
| 141 |
+
{
|
| 142 |
+
"type": "text",
|
| 143 |
+
"text": "This intrinsic connection between diffusion time-steps and modular attributes can act as an effective inductive bias for unsupervised learning. Specifically, DM training can be viewed as learning to reconstruct $\\mathbf{x}_0$ given $\\mathbf{x}_t$ at each $t$ (Section 3.2). However, due to the aforementioned attribute loss, perfect DM reconstruction is impossible, e.g., in Figure 1b, reconstructions exhibit variations in the cumulatively lost attributes. Hence, by contraposition, if a feature enables perfect reconstruction, it must capture the cumulatively lost attributes. This motivates us to learn an expanding set of features to supplement the expanding lost attributes as $t$ increases. Specifically, we first map $\\mathbf{x}_0$ to a feature $\\mathbf{z} = f(\\mathbf{x}_0)$ using an encoder $f$ . Then we partition $\\mathbf{z}$ into $T$ disjoint subsets $\\{\\mathbf{z}_i\\}_{i=1}^T$ . At each $t$ , we optimize $f$ so that $\\{\\mathbf{z}_i\\}_{i=1}^t$ compensates for a pre-trained DM's reconstruction error. Intuitively by induction, starting from $t = 0$ with no lost attribute; if $\\{\\mathbf{z}_i\\}_{i=1}^t$ captures the cumulatively lost attributes till $t$ , $\\mathbf{z}_{t+1}$ must capture the newly lost attribute to enable perfect reconstruction at $t + 1$ ; until $t = T - 1$ , $\\{\\mathbf{z}_i\\}_{i=1}^{T-1} \\cup \\mathbf{z}_T$ learns all hidden attributes in a compact and modular vector space.",
|
| 144 |
+
"bbox": [
|
| 145 |
+
169,
|
| 146 |
+
446,
|
| 147 |
+
823,
|
| 148 |
+
617
|
| 149 |
+
],
|
| 150 |
+
"page_idx": 1
|
| 151 |
+
},
|
| 152 |
+
{
|
| 153 |
+
"type": "text",
|
| 154 |
+
"text": "We term our approach as DiTi to highlight our leverage of Diffusion Time-step as an inductive bias for feature learning. We summarize the paper structure and our contributions below:",
|
| 155 |
+
"bbox": [
|
| 156 |
+
169,
|
| 157 |
+
622,
|
| 158 |
+
823,
|
| 159 |
+
651
|
| 160 |
+
],
|
| 161 |
+
"page_idx": 1
|
| 162 |
+
},
|
| 163 |
+
{
|
| 164 |
+
"type": "list",
|
| 165 |
+
"sub_type": "text",
|
| 166 |
+
"list_items": [
|
| 167 |
+
"- In Section 3.1, we formalize the notion of good feature with a definition of disentangled representation Higgins et al. (2018) and provide a preliminary introduction to DM in Section 3.2.",
|
| 168 |
+
"- In Section 4.1, we build a theoretical framework that connects diffusion time-steps and the hidden modular attributes, which motivates a simple and practical approach for unsupervised disentangled representation learning, discussed in Section 4.2.",
|
| 169 |
+
"- In Section 5, by extensive experiments on CelebA Liu et al. (2015), FFHQ Karras et al. (2019) and Bedroom Yu et al. (2015), our DiTi feature brings significant improvements in attribute inference accuracy and enables counterfactual generation, verifying its disentanglement quality."
|
| 170 |
+
],
|
| 171 |
+
"bbox": [
|
| 172 |
+
186,
|
| 173 |
+
657,
|
| 174 |
+
823,
|
| 175 |
+
777
|
| 176 |
+
],
|
| 177 |
+
"page_idx": 1
|
| 178 |
+
},
|
| 179 |
+
{
|
| 180 |
+
"type": "text",
|
| 181 |
+
"text": "2 RELATED WORKS",
|
| 182 |
+
"text_level": 1,
|
| 183 |
+
"bbox": [
|
| 184 |
+
171,
|
| 185 |
+
797,
|
| 186 |
+
354,
|
| 187 |
+
811
|
| 188 |
+
],
|
| 189 |
+
"page_idx": 1
|
| 190 |
+
},
|
| 191 |
+
{
|
| 192 |
+
"type": "text",
|
| 193 |
+
"text": "DM for Representation Learning. There are three main approaches: 1) DDIM Song et al. (2020) inversion aims to find a latent $\\mathbf{x}_T$ as feature, by DDIM sampling with the learned DM, can reconstruct the image $\\mathbf{x}_0$ . However, this process is time-consuming, and the resulting latent is difficult to interpret Hertz et al. (2022). 2) Kwon et al. (2022) uses the bottleneck feature of the U-Net at all time-steps. However, the feature is not compact and difficult for downstream leverage. 3)",
|
| 194 |
+
"bbox": [
|
| 195 |
+
169,
|
| 196 |
+
828,
|
| 197 |
+
823,
|
| 198 |
+
900
|
| 199 |
+
],
|
| 200 |
+
"page_idx": 1
|
| 201 |
+
},
|
| 202 |
+
{
|
| 203 |
+
"type": "header",
|
| 204 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 205 |
+
"bbox": [
|
| 206 |
+
171,
|
| 207 |
+
32,
|
| 208 |
+
478,
|
| 209 |
+
47
|
| 210 |
+
],
|
| 211 |
+
"page_idx": 1
|
| 212 |
+
},
|
| 213 |
+
{
|
| 214 |
+
"type": "page_footnote",
|
| 215 |
+
"text": "$^{1}$ Attribute name is illustrative. Our method uses no attribute supervision, nor explicitly names them.",
|
| 216 |
+
"bbox": [
|
| 217 |
+
189,
|
| 218 |
+
909,
|
| 219 |
+
782,
|
| 220 |
+
922
|
| 221 |
+
],
|
| 222 |
+
"page_idx": 1
|
| 223 |
+
},
|
| 224 |
+
{
|
| 225 |
+
"type": "page_number",
|
| 226 |
+
"text": "2",
|
| 227 |
+
"bbox": [
|
| 228 |
+
493,
|
| 229 |
+
948,
|
| 230 |
+
503,
|
| 231 |
+
959
|
| 232 |
+
],
|
| 233 |
+
"page_idx": 1
|
| 234 |
+
},
|
| 235 |
+
{
|
| 236 |
+
"type": "image",
|
| 237 |
+
"img_path": "images/1485e2de09abaf9c359b389c5daa634155f511a2e723bcae8872c77ac4edd0eb.jpg",
|
| 238 |
+
"image_caption": [
|
| 239 |
+
"(a) Examples of counterfactual generation"
|
| 240 |
+
],
|
| 241 |
+
"image_footnote": [],
|
| 242 |
+
"bbox": [
|
| 243 |
+
174,
|
| 244 |
+
99,
|
| 245 |
+
385,
|
| 246 |
+
263
|
| 247 |
+
],
|
| 248 |
+
"page_idx": 2
|
| 249 |
+
},
|
| 250 |
+
{
|
| 251 |
+
"type": "image",
|
| 252 |
+
"img_path": "images/105750c54aae52a17ef134d4c9825fe59750b411c9011ddf642c3c8cb462d460.jpg",
|
| 253 |
+
"image_caption": [
|
| 254 |
+
"(b) Histogram of classifier weight value"
|
| 255 |
+
],
|
| 256 |
+
"image_footnote": [],
|
| 257 |
+
"bbox": [
|
| 258 |
+
388,
|
| 259 |
+
99,
|
| 260 |
+
599,
|
| 261 |
+
263
|
| 262 |
+
],
|
| 263 |
+
"page_idx": 2
|
| 264 |
+
},
|
| 265 |
+
{
|
| 266 |
+
"type": "image",
|
| 267 |
+
"img_path": "images/55a1ddda8fafc9c60ca2d3d00c6446a6a05ad4e96cac6b4865869407c00f3f89.jpg",
|
| 268 |
+
"image_caption": [
|
| 269 |
+
"Figure 2: (a) Counterfactual generations on CelebA by manipulating 16 out of 512 feature dimensions (i.e., simulating the edit of a single $\\mathbf{z}_i$ ). A disentangled representation enables editing a single attribute (e.g., gender) without affecting others (e.g., lighting) and promotes faithful extrapolation (e.g., no artifacts). (b) Histogram of the classifier weight value. More dimensions of DiTi weights are closed to 1 and 0 (explanations in the text)."
|
| 270 |
+
],
|
| 271 |
+
"image_footnote": [],
|
| 272 |
+
"bbox": [
|
| 273 |
+
604,
|
| 274 |
+
99,
|
| 275 |
+
821,
|
| 276 |
+
263
|
| 277 |
+
],
|
| 278 |
+
"page_idx": 2
|
| 279 |
+
},
|
| 280 |
+
{
|
| 281 |
+
"type": "text",
|
| 282 |
+
"text": "The closest to our works are Preechakul et al. (2022); Zhang et al. (2022). However, they learn a time-step-independent $\\mathbf{z}$ to supplement DM reconstruction error. Without explicit design to enforce modularity, the learned feature entangles all the attributes. At time-step $t$ , it leaks information about attributes lost at a later time-step (i.e., $t + 1, \\dots, T$ ). Hence, instead of learning the lost attribute $\\mathbf{z}_t$ , the reconstruction may digress to use the spurious correlation between leaked information and lost attribute. In Section 5, we validate this deficiency by observing failed counterfactual generation and lower attribute prediction accuracy.",
|
| 283 |
+
"bbox": [
|
| 284 |
+
169,
|
| 285 |
+
344,
|
| 286 |
+
823,
|
| 287 |
+
443
|
| 288 |
+
],
|
| 289 |
+
"page_idx": 2
|
| 290 |
+
},
|
| 291 |
+
{
|
| 292 |
+
"type": "text",
|
| 293 |
+
"text": "Disentangled Representation separates the modular hidden attributes that generate data, which can be formally defined from a group-theoretical view Higgins et al. (2018). Our work focuses on the unsupervised learning setting. Existing methods typically learn a VAE Burgess et al. (2017) or GAN Jeon et al. (2021) with information bottleneck. Yet they lack explicit inductive bias that is necessary for unsupervised disentanglement Locatello et al. (2019). Our work reveals that the connection between hidden attributes and diffusion time-steps is an effective inductive bias towards disentanglement (Section 4.1).",
|
| 294 |
+
"bbox": [
|
| 295 |
+
169,
|
| 296 |
+
449,
|
| 297 |
+
823,
|
| 298 |
+
547
|
| 299 |
+
],
|
| 300 |
+
"page_idx": 2
|
| 301 |
+
},
|
| 302 |
+
{
|
| 303 |
+
"type": "text",
|
| 304 |
+
"text": "3 PRELIMINARIES",
|
| 305 |
+
"text_level": 1,
|
| 306 |
+
"bbox": [
|
| 307 |
+
171,
|
| 308 |
+
571,
|
| 309 |
+
339,
|
| 310 |
+
585
|
| 311 |
+
],
|
| 312 |
+
"page_idx": 2
|
| 313 |
+
},
|
| 314 |
+
{
|
| 315 |
+
"type": "text",
|
| 316 |
+
"text": "3.1 DISENTANGLED REPRESENTATION",
|
| 317 |
+
"text_level": 1,
|
| 318 |
+
"bbox": [
|
| 319 |
+
171,
|
| 320 |
+
604,
|
| 321 |
+
454,
|
| 322 |
+
618
|
| 323 |
+
],
|
| 324 |
+
"page_idx": 2
|
| 325 |
+
},
|
| 326 |
+
{
|
| 327 |
+
"type": "text",
|
| 328 |
+
"text": "A good feature can be formally defined by the classic notion of disentangled representation. We aim to provide a preliminary introduction below, and refer interesting readers to Higgins et al. (2018); Wang et al. (2021) for more formal details. Each sample $\\mathbf{x} \\in \\mathcal{X}$ in the image space $\\mathcal{X}$ is generated from a hidden attribute vector $\\mathbf{z} \\in \\mathcal{Z}$ in the vector space $\\mathcal{Z}$ through an injective mapping $\\Phi: \\mathcal{Z} \\to \\mathcal{X}$ (i.e., different samples are generated by different attributes). In particular, $\\mathcal{Z}$ can be decomposed into the Cartesian product of $N$ subspaces $\\mathcal{Z} = \\mathcal{Z}_1 \\times \\ldots \\times \\mathcal{Z}_N$ , where each $\\mathcal{Z}_i$ is called a modular attribute, as its value can be locally intervened without affecting other modular attributes (e.g., changing \"expression\" without affecting \"gender\" or \"age\"). A disentangled representation is a mapping $f: \\mathcal{X} \\to \\mathcal{Z}$ that inverses $\\Phi$ , i.e., given each image $\\mathbf{x}$ , $f(\\mathbf{x})$ recovers the modular attributes as a feature vector $\\mathbf{z} = [\\mathbf{z}_1, \\dots, \\mathbf{z}_N]$ , which possesses desired properties of a good feature in the following common views:",
|
| 329 |
+
"bbox": [
|
| 330 |
+
169,
|
| 331 |
+
631,
|
| 332 |
+
823,
|
| 333 |
+
785
|
| 334 |
+
],
|
| 335 |
+
"page_idx": 2
|
| 336 |
+
},
|
| 337 |
+
{
|
| 338 |
+
"type": "text",
|
| 339 |
+
"text": "Counterfactual generation. A counterfactual image of $\\mathbf{x}$ by intervening the $i$ -th modular attribute with $g_{i}$ (e.g., aging) is denoted as $g_{i} \\cdot \\mathbf{x} \\in \\mathcal{X}$ (e.g., an older $\\mathbf{x}$ ). Specifically, $g_{i} \\cdot \\mathbf{x}$ is generated by first mapping $\\mathbf{x}$ to $\\mathbf{z}$ by $f$ , editing $\\mathbf{z}_{i}$ according to $g_{i}$ without changing other attributes, and finally feeding the modified $\\mathbf{z}$ to $\\Phi$ . In fact, $g_{i} \\cdot \\mathbf{x}$ is formally known as group action Judson (1994). Figure 2 shows counterfactual images generated by editing three attributes.",
|
| 340 |
+
"bbox": [
|
| 341 |
+
169,
|
| 342 |
+
791,
|
| 343 |
+
823,
|
| 344 |
+
861
|
| 345 |
+
],
|
| 346 |
+
"page_idx": 2
|
| 347 |
+
},
|
| 348 |
+
{
|
| 349 |
+
"type": "text",
|
| 350 |
+
"text": "Sample inference. A modular feature facilitates robust inference in downstream tasks about any subset of $\\{\\mathbf{z}_i\\}_{i=1}^N$ , e.g., a linear classifier can eliminate task-irrelevant environmental attributes by assigning larger values to the dimensions corresponding to $\\mathbf{z}_i$ and 0 to other dimensions. In Figure 2, by explicitly disentangling the modular attributes (Section 4), our DiTi achieves higher accuracy in",
|
| 351 |
+
"bbox": [
|
| 352 |
+
169,
|
| 353 |
+
868,
|
| 354 |
+
823,
|
| 355 |
+
925
|
| 356 |
+
],
|
| 357 |
+
"page_idx": 2
|
| 358 |
+
},
|
| 359 |
+
{
|
| 360 |
+
"type": "header",
|
| 361 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 362 |
+
"bbox": [
|
| 363 |
+
173,
|
| 364 |
+
32,
|
| 365 |
+
478,
|
| 366 |
+
47
|
| 367 |
+
],
|
| 368 |
+
"page_idx": 2
|
| 369 |
+
},
|
| 370 |
+
{
|
| 371 |
+
"type": "page_number",
|
| 372 |
+
"text": "3",
|
| 373 |
+
"bbox": [
|
| 374 |
+
493,
|
| 375 |
+
948,
|
| 376 |
+
503,
|
| 377 |
+
959
|
| 378 |
+
],
|
| 379 |
+
"page_idx": 2
|
| 380 |
+
},
|
| 381 |
+
{
|
| 382 |
+
"type": "text",
|
| 383 |
+
"text": "attribute prediction than PDAE Zhang et al. (2022) (without disentangling), while more dimensions of our classifier weight are closed to 1 (corresponding to $\\mathbf{z}_i$ ) and 0 (environmental attributes).",
|
| 384 |
+
"bbox": [
|
| 385 |
+
169,
|
| 386 |
+
103,
|
| 387 |
+
823,
|
| 388 |
+
133
|
| 389 |
+
],
|
| 390 |
+
"page_idx": 3
|
| 391 |
+
},
|
| 392 |
+
{
|
| 393 |
+
"type": "text",
|
| 394 |
+
"text": "3.2 DENOISING DIFFUSION PROBABILISTIC MODEL",
|
| 395 |
+
"text_level": 1,
|
| 396 |
+
"bbox": [
|
| 397 |
+
171,
|
| 398 |
+
150,
|
| 399 |
+
547,
|
| 400 |
+
164
|
| 401 |
+
],
|
| 402 |
+
"page_idx": 3
|
| 403 |
+
},
|
| 404 |
+
{
|
| 405 |
+
"type": "text",
|
| 406 |
+
"text": "Denoising Diffusion Probabilistic Model Ho et al. (2020) (DM) is a latent variable model with a fixed forward process, and a learnable reverse process. Details are given below.",
|
| 407 |
+
"bbox": [
|
| 408 |
+
169,
|
| 409 |
+
176,
|
| 410 |
+
823,
|
| 411 |
+
205
|
| 412 |
+
],
|
| 413 |
+
"page_idx": 3
|
| 414 |
+
},
|
| 415 |
+
{
|
| 416 |
+
"type": "text",
|
| 417 |
+
"text": "Forward Process. It is fixed to a Markov chain that incrementally adds Gaussian noise to each sample $\\mathbf{x}_0$ in $T$ time-steps, producing a sequence of noisy samples $\\mathbf{x}_1,\\ldots ,\\mathbf{x}_T$ as latents of the same dimensionality as the original sample $\\mathbf{x}_0$ . Given $\\mathbf{x}_0$ and a variance schedule $\\beta_{1},\\dots ,\\beta_{T}$ (i.e., how much noise is added at each time-step), each $\\mathbf{x}_t$ adheres to the following noisy sample distribution:",
|
| 418 |
+
"bbox": [
|
| 419 |
+
169,
|
| 420 |
+
212,
|
| 421 |
+
825,
|
| 422 |
+
268
|
| 423 |
+
],
|
| 424 |
+
"page_idx": 3
|
| 425 |
+
},
|
| 426 |
+
{
|
| 427 |
+
"type": "equation",
|
| 428 |
+
"text": "\n$$\nq \\left(\\mathbf {x} _ {t} \\mid \\mathbf {x} _ {0}\\right) = \\mathcal {N} \\left(\\mathbf {x} _ {t}; \\sqrt {\\bar {\\alpha} _ {t}} \\mathbf {x} _ {0}, (1 - \\bar {\\alpha} _ {t}) \\mathbf {I}\\right), \\quad \\text {w h e r e} \\alpha_ {t} := 1 - \\beta_ {t}, \\bar {\\alpha} _ {t} := \\prod_ {s = 1} ^ {t} \\alpha_ {s}. \\tag {1}\n$$\n",
|
| 429 |
+
"text_format": "latex",
|
| 430 |
+
"bbox": [
|
| 431 |
+
238,
|
| 432 |
+
276,
|
| 433 |
+
825,
|
| 434 |
+
319
|
| 435 |
+
],
|
| 436 |
+
"page_idx": 3
|
| 437 |
+
},
|
| 438 |
+
{
|
| 439 |
+
"type": "text",
|
| 440 |
+
"text": "Reverse Process. It corresponds to a learned Gaussian transition $p_{\\theta}(\\mathbf{x}_{t - 1}|\\mathbf{x}_t)$ parameterized by $\\theta$ , starting at $p(\\mathbf{x}_T)\\coloneqq \\mathcal{N}(\\mathbf{x}_T;\\mathbf{0},\\mathbf{I})$ . Each $p_{\\theta}(\\mathbf{x}_{t - 1}|\\mathbf{x}_t)$ is computed in two steps: 1) Reconstruct $\\mathbf{x}_0$ from $\\mathbf{x}_t$ with $u_{\\theta}(\\mathbf{x}_t,t)$ , where $u_{\\theta}$ is a learnable U-Net Ronneberger et al. (2015). 2) Compute $q(\\mathbf{x}_{t - 1}|\\mathbf{x}_t,u_{\\theta}(\\mathbf{x}_t,t))$ , which has a closed-form solution given in Appendix. Training is performed by minimizing the reconstruction error made by $u_{\\theta}(\\mathbf{x}_t,t)$ at each time-step $t$ :",
|
| 441 |
+
"bbox": [
|
| 442 |
+
169,
|
| 443 |
+
334,
|
| 444 |
+
823,
|
| 445 |
+
405
|
| 446 |
+
],
|
| 447 |
+
"page_idx": 3
|
| 448 |
+
},
|
| 449 |
+
{
|
| 450 |
+
"type": "equation",
|
| 451 |
+
"text": "\n$$\n\\mathcal {L} _ {D M} = \\underset {t, \\mathbf {x} _ {0}, \\epsilon} {\\mathbb {E}} \\left[ \\frac {\\bar {\\alpha} _ {t}}{1 - \\bar {\\alpha} _ {t}} \\| \\mathbf {x} _ {0} - u _ {\\theta} (\\sqrt {\\bar {\\alpha} _ {t}} \\mathbf {x} _ {0} + \\sqrt {1 - \\bar {\\alpha} _ {t}} \\epsilon , t) \\| ^ {2} \\right], \\tag {2}\n$$\n",
|
| 452 |
+
"text_format": "latex",
|
| 453 |
+
"bbox": [
|
| 454 |
+
294,
|
| 455 |
+
412,
|
| 456 |
+
825,
|
| 457 |
+
446
|
| 458 |
+
],
|
| 459 |
+
"page_idx": 3
|
| 460 |
+
},
|
| 461 |
+
{
|
| 462 |
+
"type": "text",
|
| 463 |
+
"text": "where $\\epsilon \\sim \\mathcal{N}(\\mathbf{0},\\mathbf{I})$ is a random noise. Note that we formulate the U-Net to predict $\\mathbf{x}_0$ (equivalent to the $\\epsilon$ -formulation in Ho et al. (2020)). As DM has no explicit feature encoder, we learn one to capture the modular attributes by leveraging the inductive bias in the diffusion time-steps.",
|
| 464 |
+
"bbox": [
|
| 465 |
+
169,
|
| 466 |
+
454,
|
| 467 |
+
825,
|
| 468 |
+
498
|
| 469 |
+
],
|
| 470 |
+
"page_idx": 3
|
| 471 |
+
},
|
| 472 |
+
{
|
| 473 |
+
"type": "text",
|
| 474 |
+
"text": "4 METHOD",
|
| 475 |
+
"text_level": 1,
|
| 476 |
+
"bbox": [
|
| 477 |
+
171,
|
| 478 |
+
518,
|
| 479 |
+
282,
|
| 480 |
+
534
|
| 481 |
+
],
|
| 482 |
+
"page_idx": 3
|
| 483 |
+
},
|
| 484 |
+
{
|
| 485 |
+
"type": "text",
|
| 486 |
+
"text": "4.1 THEORY",
|
| 487 |
+
"text_level": 1,
|
| 488 |
+
"bbox": [
|
| 489 |
+
171,
|
| 490 |
+
550,
|
| 491 |
+
274,
|
| 492 |
+
564
|
| 493 |
+
],
|
| 494 |
+
"page_idx": 3
|
| 495 |
+
},
|
| 496 |
+
{
|
| 497 |
+
"type": "text",
|
| 498 |
+
"text": "We reveal that in the forward diffusion process, fine-grained attributes are lost at an earlier time-step compared to coarse-grained ones, where the granularity is defined by the pixel-level changes when altering an attribute. We first formalize the notion of attribute loss, i.e., when DM fails to distinguish the noisy samples drawn from two overlapping noisy sample distributions $q(\\mathbf{x}_t|\\mathbf{x}_0)$ and $q(\\mathbf{y}_t|\\mathbf{y}_0)$ .",
|
| 499 |
+
"bbox": [
|
| 500 |
+
169,
|
| 501 |
+
577,
|
| 502 |
+
823,
|
| 503 |
+
635
|
| 504 |
+
],
|
| 505 |
+
"page_idx": 3
|
| 506 |
+
},
|
| 507 |
+
{
|
| 508 |
+
"type": "text",
|
| 509 |
+
"text": "Definition. (Attribute Loss) Given a $\\theta$ -parameterized DM optimized by Eq. 2, we say that attribute $\\mathcal{Z}_i$ is lost with degree $\\tau$ at $t$ when $\\mathbb{E}_{\\mathbf{x}_0 \\in \\mathcal{X}}[\\mathrm{Err}(\\mathbf{x}_0, \\mathbf{y}_0 = g_i \\cdot \\mathbf{x}_0, t)] \\geq \\tau$ , where $\\mathrm{Err}(\\mathbf{x}_0, \\mathbf{y}_0, t) :=$",
|
| 510 |
+
"bbox": [
|
| 511 |
+
169,
|
| 512 |
+
640,
|
| 513 |
+
823,
|
| 514 |
+
671
|
| 515 |
+
],
|
| 516 |
+
"page_idx": 3
|
| 517 |
+
},
|
| 518 |
+
{
|
| 519 |
+
"type": "equation",
|
| 520 |
+
"text": "\n$$\n\\frac {1}{2} \\left[ \\underset {q \\left(\\mathbf {x} _ {t} \\mid \\mathbf {x} _ {0}\\right)} {\\mathbb {E}} \\left[ \\mathbb {1} \\left(\\| \\hat {\\mathbf {x}} _ {0} - \\mathbf {x} _ {0} \\| > \\| \\hat {\\mathbf {x}} _ {0} - \\mathbf {y} _ {0} \\|\\right) \\right] + \\underset {q \\left(\\mathbf {y} _ {t} \\mid \\mathbf {y} _ {0}\\right)} {\\mathbb {E}} \\left[ \\mathbb {1} \\left(\\| \\hat {\\mathbf {y}} _ {0} - \\mathbf {x} _ {0} \\| < \\| \\hat {\\mathbf {y}} _ {0} - \\mathbf {y} _ {0} \\|\\right) \\right] \\right], \\tag {3}\n$$\n",
|
| 521 |
+
"text_format": "latex",
|
| 522 |
+
"bbox": [
|
| 523 |
+
217,
|
| 524 |
+
676,
|
| 525 |
+
825,
|
| 526 |
+
712
|
| 527 |
+
],
|
| 528 |
+
"page_idx": 3
|
| 529 |
+
},
|
| 530 |
+
{
|
| 531 |
+
"type": "text",
|
| 532 |
+
"text": "with $\\mathbb{1}(\\cdot)$ denoting the indicator function and $\\hat{\\mathbf{x}}_0 = u_\\theta (\\mathbf{x}_t),\\hat{\\mathbf{y}}_0 = u_\\theta (\\mathbf{y}_t)$ denoting the DM reconstructed samples from $\\mathbf{x}_t,\\mathbf{y}_t$ , respectively.",
|
| 533 |
+
"bbox": [
|
| 534 |
+
169,
|
| 535 |
+
720,
|
| 536 |
+
823,
|
| 537 |
+
750
|
| 538 |
+
],
|
| 539 |
+
"page_idx": 3
|
| 540 |
+
},
|
| 541 |
+
{
|
| 542 |
+
"type": "text",
|
| 543 |
+
"text": "Intuitively, $\\mathrm{Err}(\\mathbf{x}_0,\\mathbf{y}_0,t)$ measures attribute loss degree by how likely a DM falsely reconstructs $\\mathbf{x}_t$ drawn from $q(\\mathbf{x}_t|\\mathbf{x}_0)$ closer to $\\mathbf{y}_0$ instead of $\\mathbf{x}_0$ (vice versa). Hence, when $\\mathbf{x}_0$ and $\\mathbf{y}_0$ differ in attribute $\\mathbf{z}_i$ modified by $g_i$ , a larger $\\mathrm{Err}(\\mathbf{x}_0,\\mathbf{y}_0,t)$ means that the attribute is more likely lost.",
|
| 544 |
+
"bbox": [
|
| 545 |
+
169,
|
| 546 |
+
755,
|
| 547 |
+
823,
|
| 548 |
+
800
|
| 549 |
+
],
|
| 550 |
+
"page_idx": 3
|
| 551 |
+
},
|
| 552 |
+
{
|
| 553 |
+
"type": "text",
|
| 554 |
+
"text": "Theorem. (Attribute Loss and Time-step) 1) For each $\\mathcal{Z}_i$ , there exists a smallest time-step $t(\\mathcal{Z}_i)$ such that $\\mathcal{Z}_i$ is lost with degree $\\tau$ at each $t \\in \\{t(\\mathcal{Z}_i), \\dots, T\\}$ . 2) $\\exists \\{\\beta_i\\}_{i=1}^T$ such that $t(\\mathcal{Z}_i) > t(\\mathcal{Z}_j)$ whenever $\\| \\mathbf{x}_0 - g_i \\cdot \\mathbf{x}_0 \\|$ is first-order stochastic dominant over $\\| \\mathbf{x}_0 - g_j \\cdot \\mathbf{x}_0 \\|$ with $\\mathbf{x}_0 \\sim \\mathcal{X}$ uniformly.",
|
| 555 |
+
"bbox": [
|
| 556 |
+
169,
|
| 557 |
+
805,
|
| 558 |
+
823,
|
| 559 |
+
849
|
| 560 |
+
],
|
| 561 |
+
"page_idx": 3
|
| 562 |
+
},
|
| 563 |
+
{
|
| 564 |
+
"type": "text",
|
| 565 |
+
"text": "Intuitively, the first part of the theorem states that a lost attribute will not be regained as time-step $t$ increases, and there is a time-step $t(\\mathcal{Z}_i)$ when $\\mathcal{Z}_i$ becomes lost (with degree $tau$ ) for the first time. The second part states that when $\\| \\mathbf{x}_0 - g_i \\cdot \\mathbf{x}_0 \\|$ is more likely to take on a larger value than $\\| \\mathbf{x}_0 - g_j \\cdot \\mathbf{x}_0 \\|$ , the attribute $\\mathcal{Z}_i$ (i.e., a coarse-grained attribute) is lost at a larger time-step compared to $\\mathcal{Z}_j$ (i.e., a fine-grained attribute). We have the following proof sketch:",
|
| 566 |
+
"bbox": [
|
| 567 |
+
169,
|
| 568 |
+
854,
|
| 569 |
+
825,
|
| 570 |
+
926
|
| 571 |
+
],
|
| 572 |
+
"page_idx": 3
|
| 573 |
+
},
|
| 574 |
+
{
|
| 575 |
+
"type": "header",
|
| 576 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 577 |
+
"bbox": [
|
| 578 |
+
171,
|
| 579 |
+
32,
|
| 580 |
+
478,
|
| 581 |
+
47
|
| 582 |
+
],
|
| 583 |
+
"page_idx": 3
|
| 584 |
+
},
|
| 585 |
+
{
|
| 586 |
+
"type": "page_number",
|
| 587 |
+
"text": "4",
|
| 588 |
+
"bbox": [
|
| 589 |
+
493,
|
| 590 |
+
948,
|
| 591 |
+
504,
|
| 592 |
+
959
|
| 593 |
+
],
|
| 594 |
+
"page_idx": 3
|
| 595 |
+
},
|
| 596 |
+
{
|
| 597 |
+
"type": "image",
|
| 598 |
+
"img_path": "images/757e552673ca1bff80bc1fe1d16aa5466b7396a9472e4eef339384387fccaa10.jpg",
|
| 599 |
+
"image_caption": [
|
| 600 |
+
"Figure 3: Illustration of our DiTi. We break down Eq. 5 at each time-step. On the right, we show the detailed network design, where $\\hat{\\mathbf{x}}_0$ denotes the reconstructed $\\mathbf{x}_0$ by the pre-trained DM."
|
| 601 |
+
],
|
| 602 |
+
"image_footnote": [],
|
| 603 |
+
"bbox": [
|
| 604 |
+
174,
|
| 605 |
+
103,
|
| 606 |
+
823,
|
| 607 |
+
265
|
| 608 |
+
],
|
| 609 |
+
"page_idx": 4
|
| 610 |
+
},
|
| 611 |
+
{
|
| 612 |
+
"type": "text",
|
| 613 |
+
"text": "1) Increasing $t$ induces further attribute loss. We show in Appendix that $\\mathrm{Err}(\\mathbf{x}_0, \\mathbf{y}_0, t) = \\frac{1}{2}\\mathrm{OVL}(q(\\mathbf{x}_t|\\mathbf{x}_0), q(\\mathbf{y}_t|\\mathbf{y}_0))$ for an optimal DM, where OVL is the overlapping coefficient Inman & Bradley Jr (1989), i.e., overlapping area of probability density functions (PDFs). In particular,",
|
| 614 |
+
"bbox": [
|
| 615 |
+
171,
|
| 616 |
+
321,
|
| 617 |
+
823,
|
| 618 |
+
364
|
| 619 |
+
],
|
| 620 |
+
"page_idx": 4
|
| 621 |
+
},
|
| 622 |
+
{
|
| 623 |
+
"type": "equation",
|
| 624 |
+
"text": "\n$$\n\\operatorname {E r r} \\left(\\mathbf {x} _ {0}, \\mathbf {y} _ {0}, t\\right) = \\frac {1}{2} \\operatorname {O V L} \\left(q \\left(\\mathbf {x} _ {t} \\mid \\mathbf {x} _ {0}\\right), q \\left(\\mathbf {y} _ {t} \\mid \\mathbf {y} _ {0}\\right)\\right) = \\frac {1}{2} \\left[ 1 - \\operatorname {e r f} \\left(\\frac {\\left\\| \\sqrt {\\bar {\\alpha} _ {t}} \\left(\\mathbf {y} _ {0} - \\mathbf {x} _ {0}\\right) \\right\\|}{2 \\sqrt {2 \\left(1 - \\bar {\\alpha} _ {t}\\right)}}\\right) \\right]. \\tag {4}\n$$\n",
|
| 625 |
+
"text_format": "latex",
|
| 626 |
+
"bbox": [
|
| 627 |
+
217,
|
| 628 |
+
369,
|
| 629 |
+
823,
|
| 630 |
+
412
|
| 631 |
+
],
|
| 632 |
+
"page_idx": 4
|
| 633 |
+
},
|
| 634 |
+
{
|
| 635 |
+
"type": "text",
|
| 636 |
+
"text": "As $\\bar{\\alpha}_t$ decreases with an increasing $t$ from Eq. 1, and the error function $\\operatorname{erf}(\\cdot)$ is strictly increasing, $\\mathrm{Err}(\\mathbf{x}_0,\\mathbf{y}_0,t)$ is strictly increasing in $t$ given any $\\mathbf{x}_0,\\mathbf{y}_0$ . Hence $\\mathbb{E}_{\\mathbf{x}_0\\in \\mathcal{X}}[\\mathrm{Err}(\\mathbf{x}_0,\\mathbf{y}_0 = g_i\\cdot \\mathbf{x}_0,t)]\\geq \\mathbb{E}_{\\mathbf{x}_0\\in \\mathcal{X}}[\\mathrm{Err}(\\mathbf{x}_0,\\mathbf{y}_0 = g_i\\cdot \\mathbf{x}_0,t(\\mathcal{Z}_i))]$ for every $t\\geq t(\\mathcal{Z}_i)$ , which completes the proof.",
|
| 637 |
+
"bbox": [
|
| 638 |
+
169,
|
| 639 |
+
417,
|
| 640 |
+
823,
|
| 641 |
+
460
|
| 642 |
+
],
|
| 643 |
+
"page_idx": 4
|
| 644 |
+
},
|
| 645 |
+
{
|
| 646 |
+
"type": "text",
|
| 647 |
+
"text": "2) Coarse-grained attributes are lost at a larger $t$ . Given that $\\mathrm{erf}(\\cdot)$ is strictly increasing and $\\| \\mathbf{x}_0 - g_i \\cdot \\mathbf{x}_0 \\|$ is first-order stochastic dominant over $\\| \\mathbf{x}_0 - g_j \\cdot \\mathbf{x}_0 \\|$ , we have $\\mathbb{E}_{\\mathbf{x}_0 \\in \\mathcal{X}} [\\mathrm{Err}(\\mathbf{x}_0, g_i \\cdot \\mathbf{x}_0, t)] > \\mathbb{E}_{\\mathbf{x}_0 \\in \\mathcal{X}} [\\mathrm{Err}(\\mathbf{x}_0, g_j \\cdot \\mathbf{x}_0, t)]$ at every time-step $t$ using Eq. 4. Hence $t(\\mathcal{Z}_i) > t(\\mathcal{Z}_j)$ under any variance schedule $\\{\\beta_i\\}_{i=1}^T$ such that $\\mathcal{Z}_i$ is not lost at $t(\\mathcal{Z}_j)$ , completing the proof. Note that in practice, DM leverages a large $T$ with small $\\{\\beta_i\\}_{i=1}^T$ . This ensures that $\\mathrm{Err}(\\mathbf{x}_0, \\mathbf{y}_0, t)$ slows increases with $t$ according to Eq. 4. Hence empirically, this theorem tends to hold.",
|
| 648 |
+
"bbox": [
|
| 649 |
+
169,
|
| 650 |
+
465,
|
| 651 |
+
825,
|
| 652 |
+
553
|
| 653 |
+
],
|
| 654 |
+
"page_idx": 4
|
| 655 |
+
},
|
| 656 |
+
{
|
| 657 |
+
"type": "text",
|
| 658 |
+
"text": "4.2 PROPOSED APPROACH",
|
| 659 |
+
"text_level": 1,
|
| 660 |
+
"bbox": [
|
| 661 |
+
171,
|
| 662 |
+
570,
|
| 663 |
+
370,
|
| 664 |
+
583
|
| 665 |
+
],
|
| 666 |
+
"page_idx": 4
|
| 667 |
+
},
|
| 668 |
+
{
|
| 669 |
+
"type": "text",
|
| 670 |
+
"text": "The previous theoretical analysis leads to two interesting groundings: 1) Attribute loss is linked with the error of reconstructing $\\mathbf{x}_0$ from the noisy $\\mathbf{x}_t$ . 2) Increasing time-step $t$ in forward diffusion process causes an expanding cumulative loss of attributes, with fine-grained attributes lost at a smaller $t$ and coarse-grained ones lost at a larger $t$ . They serve as an effective inductive bias for unsupervised learning: 1) making up for the reconstruction error can retrieve lost attributes, 2) an expanding set of features captures the expanding cumulatively lost attributes. This motivates our approach below.",
|
| 671 |
+
"bbox": [
|
| 672 |
+
169,
|
| 673 |
+
595,
|
| 674 |
+
823,
|
| 675 |
+
680
|
| 676 |
+
],
|
| 677 |
+
"page_idx": 4
|
| 678 |
+
},
|
| 679 |
+
{
|
| 680 |
+
"type": "text",
|
| 681 |
+
"text": "As illustrated in Figure 3, our model includes a frozen DM U-Net $u_{\\theta}$ pre-trained on $\\mathcal{D}$ using Eq. 2 until convergence, a trainable encoder $f$ (trained to become a disentangled representation) that maps each image (without noise) to a $d$ -dimensional feature $\\mathbf{z} \\in \\mathbb{R}^d$ , and a trainable decoder $g$ that maps $\\mathbf{z}$ back to image space given $t$ . In training, given $\\mathbf{z} = f(\\mathbf{x}_0)$ , we partition it into $T$ disjoint subsets $\\{\\mathbf{z}_i\\}_{i=1}^T$ . At each time-step $t$ , we construct a new feature $\\bar{\\mathbf{z}}_t = [\\mathbf{z}_1, \\dots, \\mathbf{z}_t, \\mathbf{0}, \\dots, \\mathbf{0}]$ , which is only about $\\{\\mathbf{z}_i\\}_{i=1}^t$ by masking $\\mathbf{z}_{t+1}, \\dots, \\mathbf{z}_T$ as $\\mathbf{0}$ . Our training loss requires $\\bar{\\mathbf{z}}_t$ to compensate for the reconstruction error made by $u_{\\theta}$ at each time-step $t$ , given by:",
|
| 682 |
+
"bbox": [
|
| 683 |
+
169,
|
| 684 |
+
686,
|
| 685 |
+
823,
|
| 686 |
+
785
|
| 687 |
+
],
|
| 688 |
+
"page_idx": 4
|
| 689 |
+
},
|
| 690 |
+
{
|
| 691 |
+
"type": "equation",
|
| 692 |
+
"text": "\n$$\n\\mathcal {L} = \\underset {t, \\mathbf {x} _ {0}, \\epsilon} {\\mathbb {E}} \\underbrace {\\left[ \\lambda_ {t} \\| \\mathbf {x} _ {0} - \\left(u _ {\\theta} \\left(\\sqrt {\\bar {\\alpha} _ {t}} \\mathbf {x} _ {0} + \\sqrt {1 - \\bar {\\alpha} _ {t}} \\epsilon , t\\right) + w _ {t} g \\left(\\bar {\\mathbf {z}} _ {t} , t\\right)\\right) \\| ^ {2} \\right]} _ {\\mathcal {L} _ {t}}, \\tag {5}\n$$\n",
|
| 693 |
+
"text_format": "latex",
|
| 694 |
+
"bbox": [
|
| 695 |
+
272,
|
| 696 |
+
789,
|
| 697 |
+
823,
|
| 698 |
+
825
|
| 699 |
+
],
|
| 700 |
+
"page_idx": 4
|
| 701 |
+
},
|
| 702 |
+
{
|
| 703 |
+
"type": "text",
|
| 704 |
+
"text": "where $\\lambda_{t},w_{t}$ are time-step weight and compensate strength. We follow PDAE Zhang et al. (2022) to use fixed values computed from the variance schedule $\\{\\beta_t\\}_{t = 1}^T$ (details in Appendix).",
|
| 705 |
+
"bbox": [
|
| 706 |
+
169,
|
| 707 |
+
832,
|
| 708 |
+
823,
|
| 709 |
+
862
|
| 710 |
+
],
|
| 711 |
+
"page_idx": 4
|
| 712 |
+
},
|
| 713 |
+
{
|
| 714 |
+
"type": "text",
|
| 715 |
+
"text": "To see the effect of Eq. 5, consider $t = 1$ , only $\\mathbf{z}_1$ is used to compensate for reconstruction error, hence $\\mathbf{z}_1$ effectively captures a (fine-grained) modular attribute $\\mathcal{Z}_i$ with $t(\\mathcal{Z}_i) = 1$ (lost at $t = 1$ ) (such $\\mathcal{Z}_i$ always exists for some threshold $\\tau$ in our definition). At $t = 2$ , the cumulatively lost attributes correspond to $\\mathcal{Z}_i$ and $\\mathcal{Z}_j$ , where $t(\\mathcal{Z}_j) = 2$ . As $\\mathbf{z}_1$ already captures the attribute $\\mathcal{Z}_i$ ,",
|
| 716 |
+
"bbox": [
|
| 717 |
+
169,
|
| 718 |
+
868,
|
| 719 |
+
825,
|
| 720 |
+
925
|
| 721 |
+
],
|
| 722 |
+
"page_idx": 4
|
| 723 |
+
},
|
| 724 |
+
{
|
| 725 |
+
"type": "header",
|
| 726 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 727 |
+
"bbox": [
|
| 728 |
+
171,
|
| 729 |
+
32,
|
| 730 |
+
478,
|
| 731 |
+
47
|
| 732 |
+
],
|
| 733 |
+
"page_idx": 4
|
| 734 |
+
},
|
| 735 |
+
{
|
| 736 |
+
"type": "page_number",
|
| 737 |
+
"text": "5",
|
| 738 |
+
"bbox": [
|
| 739 |
+
493,
|
| 740 |
+
948,
|
| 741 |
+
503,
|
| 742 |
+
959
|
| 743 |
+
],
|
| 744 |
+
"page_idx": 4
|
| 745 |
+
},
|
| 746 |
+
{
|
| 747 |
+
"type": "text",
|
| 748 |
+
"text": "$\\mathbf{z}_2$ is encouraged to further learn the attribute $\\mathcal{Z}_j$ to minimize the reconstruction error at $t = 2$ . Eventually with a large enough $T$ , $\\mathbf{x}_T$ becomes pure noise and all attributes are lost. By the above induction, $\\{\\mathbf{z}_i\\}_{i=1}^T$ captures all the hidden attributes as a modular feature. In contrast, the most related work PDAE differs from Eq. 5 by replacing $g(\\bar{\\mathbf{z}}_t)$ with $g(\\bar{\\mathbf{z}})$ . This means that PDAE uses the full-dimensional feature $\\mathbf{z}$ to compensate the reconstruction error at all time-steps, which fails to leverage the inductive bias discussed in Section 4.1. We show in Section 5 that this simple change leads to drastic differences in both inference and generation tasks.",
|
| 749 |
+
"bbox": [
|
| 750 |
+
169,
|
| 751 |
+
103,
|
| 752 |
+
826,
|
| 753 |
+
203
|
| 754 |
+
],
|
| 755 |
+
"page_idx": 5
|
| 756 |
+
},
|
| 757 |
+
{
|
| 758 |
+
"type": "text",
|
| 759 |
+
"text": "Implementation Details. We highlight some design considerations with ablations in Section 5.2.",
|
| 760 |
+
"bbox": [
|
| 761 |
+
169,
|
| 762 |
+
208,
|
| 763 |
+
813,
|
| 764 |
+
223
|
| 765 |
+
],
|
| 766 |
+
"page_idx": 5
|
| 767 |
+
},
|
| 768 |
+
{
|
| 769 |
+
"type": "list",
|
| 770 |
+
"sub_type": "text",
|
| 771 |
+
"list_items": [
|
| 772 |
+
"- Number of Subsets $k$ . In practice, the number of subsets for partitioning $\\mathbf{z}$ can be smaller than $T$ , e.g., we use feature dimension $d = 512$ that is smaller than $T = 1,000$ . This means that adjacent time-steps may share a modular feature $\\mathbf{z}_i$ . We compare the choice of $k$ later.",
|
| 773 |
+
"- Partition Strategy. The simplest way is to use the same number of feature dimensions for all modular features $\\mathbf{z}_i$ (i.e., balanced). However, we empirically find that features corresponding to time-step 100-300 require more dimensions to improve convergence of Eq. 5. We design an imbalanced partition strategy and compare it with the balanced one.",
|
| 774 |
+
"- Optimization Strategy. In training, we experiment detaching the gradient of $\\mathbf{z}_1, \\ldots, \\mathbf{z}_{t-1}$ to form $\\bar{\\mathbf{z}}_t$ , i.e., training only $\\mathbf{z}_t$ at time-step $t$ . We find that it leads to improved disentanglement quality at the cost of slower convergence."
|
| 775 |
+
],
|
| 776 |
+
"bbox": [
|
| 777 |
+
186,
|
| 778 |
+
229,
|
| 779 |
+
826,
|
| 780 |
+
371
|
| 781 |
+
],
|
| 782 |
+
"page_idx": 5
|
| 783 |
+
},
|
| 784 |
+
{
|
| 785 |
+
"type": "text",
|
| 786 |
+
"text": "5 EXPERIMENTS",
|
| 787 |
+
"text_level": 1,
|
| 788 |
+
"bbox": [
|
| 789 |
+
171,
|
| 790 |
+
396,
|
| 791 |
+
328,
|
| 792 |
+
411
|
| 793 |
+
],
|
| 794 |
+
"page_idx": 5
|
| 795 |
+
},
|
| 796 |
+
{
|
| 797 |
+
"type": "text",
|
| 798 |
+
"text": "5.1 SETTINGS",
|
| 799 |
+
"text_level": 1,
|
| 800 |
+
"bbox": [
|
| 801 |
+
171,
|
| 802 |
+
430,
|
| 803 |
+
287,
|
| 804 |
+
443
|
| 805 |
+
],
|
| 806 |
+
"page_idx": 5
|
| 807 |
+
},
|
| 808 |
+
{
|
| 809 |
+
"type": "text",
|
| 810 |
+
"text": "Datasets. We choose real-world datasets to validate if DiTi learns a disentangled representation of the generative attributes: 1) Celebrity Faces Attributes (CelebA) Liu et al. (2015) is a large-scale face attributes dataset. Each face image has 40 binary attribute labels, delineating facial features and characteristics, such as expressions, accessories, and lighting conditions. 2) Flickr-Faces-HQ (FFHQ) Karras et al. (2019) contains 70,000 high-quality face images obtained from Flickr. 3) We additionally used the Labeled Faces in the Wild (LFW) dataset Huang et al. (2007) that provides continuous attribute labels. 4) Bedroom is part of the Large-scale Scene Understanding (LSUN) dataset Yu et al. (2015) that contains around 3 million images. We apply off-the-shelf image classifiers following Yang et al. (2021) to determine scene attribute labels.",
|
| 811 |
+
"bbox": [
|
| 812 |
+
169,
|
| 813 |
+
457,
|
| 814 |
+
826,
|
| 815 |
+
583
|
| 816 |
+
],
|
| 817 |
+
"page_idx": 5
|
| 818 |
+
},
|
| 819 |
+
{
|
| 820 |
+
"type": "text",
|
| 821 |
+
"text": "Evaluation Protocols. Our evaluation is based on the properties of a disentangled representation (Section 3.1). For inference, we perform unsupervised learning on CelebA train split or FFHQ and test the linear-probe attribute prediction accuracy on CelebA test split, measured by Average Precision (AP). We also evaluate the challenging attribute regression task using LFW, where the metrics are Pearson correlation coefficient (Pearson's r) and Mean Squared Error (MSE). For counterfactual generation, we extend the conventional interpolation and manipulation technique Preechakul et al. (2022) to tailor for our needs: 1) Instead of interpolating the whole features of an image pair, we interpolate only a feature subset while keeping its complement fixed. With a disentangled representation, only the attribute captured by the subset will change in the generated counterfactuals, e.g., changing only expression between two faces. 2) In manipulation, an image is edited by altering its feature along the direction of an attribute classifier weight, where the classifier is trained on whole features. We constrain the classifier by ProbMask Zhou et al. (2021) to use a small subset of the most discriminative feature dimensions (32 out of 512 dimensions). For a disentangled representation, this should have minimal impact on the generation quality, as each single attribute is encoded in a compact feature subset. Detailed algorithms are in Appendix.",
|
| 822 |
+
"bbox": [
|
| 823 |
+
169,
|
| 824 |
+
589,
|
| 825 |
+
826,
|
| 826 |
+
800
|
| 827 |
+
],
|
| 828 |
+
"page_idx": 5
|
| 829 |
+
},
|
| 830 |
+
{
|
| 831 |
+
"type": "text",
|
| 832 |
+
"text": "Baselines include 3 representative lineups: 1) Conventional unsupervised disentanglement methods $\\beta$ -TCVAE Chen et al. (2018) and IB-GAN Jeon et al. (2021); 2) Self-supervised learning methods SimCLR Chen et al. (2020); 3) The most related works Diff-AE Preechakul et al. (2022) and PDAE Zhang et al. (2022) that also learn a representation by making up DM's reconstruction errors.",
|
| 833 |
+
"bbox": [
|
| 834 |
+
169,
|
| 835 |
+
805,
|
| 836 |
+
823,
|
| 837 |
+
863
|
| 838 |
+
],
|
| 839 |
+
"page_idx": 5
|
| 840 |
+
},
|
| 841 |
+
{
|
| 842 |
+
"type": "text",
|
| 843 |
+
"text": "Implementation Details. We followed the network design of encoder $f$ and decoder $g$ in PDAE and adopted its hyper-parameter settings (e.g., $\\lambda_t, w_t$ in Eq. 4, details in Appendix). This ensures that any emerged property of disentangled representation is solely from our leverage of the inductive bias in Section 4.1. We also used the same training iterations as PDAE, i.e., 290k iterations on CelebA,",
|
| 844 |
+
"bbox": [
|
| 845 |
+
169,
|
| 846 |
+
867,
|
| 847 |
+
826,
|
| 848 |
+
925
|
| 849 |
+
],
|
| 850 |
+
"page_idx": 5
|
| 851 |
+
},
|
| 852 |
+
{
|
| 853 |
+
"type": "header",
|
| 854 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 855 |
+
"bbox": [
|
| 856 |
+
171,
|
| 857 |
+
32,
|
| 858 |
+
478,
|
| 859 |
+
47
|
| 860 |
+
],
|
| 861 |
+
"page_idx": 5
|
| 862 |
+
},
|
| 863 |
+
{
|
| 864 |
+
"type": "page_number",
|
| 865 |
+
"text": "6",
|
| 866 |
+
"bbox": [
|
| 867 |
+
493,
|
| 868 |
+
948,
|
| 869 |
+
504,
|
| 870 |
+
959
|
| 871 |
+
],
|
| 872 |
+
"page_idx": 5
|
| 873 |
+
},
|
| 874 |
+
{
|
| 875 |
+
"type": "table",
|
| 876 |
+
"img_path": "images/9da3549af3a4f89d6a2b72bd74c87a75207921c90c8d29673e7b162bfd5c8f2a.jpg",
|
| 877 |
+
"table_caption": [],
|
| 878 |
+
"table_footnote": [],
|
| 879 |
+
"table_body": "<table><tr><td rowspan=\"2\">Method</td><td colspan=\"3\">CelebA</td><td colspan=\"3\">FFHQ</td></tr><tr><td>AP↑</td><td>Pearson's r ↑</td><td>MSE ↓</td><td>AP↑</td><td>Pearson's r ↑</td><td>MSE ↓</td></tr><tr><td>β-TCVAE Chen et al. (2018)</td><td>45.0</td><td>0.378</td><td>0.573</td><td>43.2</td><td>0.335</td><td>0.608</td></tr><tr><td>IB-GAN Jeon et al. (2021)</td><td>44.2</td><td>0.307</td><td>0.597</td><td>42.8</td><td>0.260</td><td>0.644</td></tr><tr><td>Diff-AE Preechakul et al. (2022)</td><td>60.3</td><td>0.598</td><td>0.421</td><td>60.5</td><td>0.606</td><td>0.410</td></tr><tr><td>PDAE Zhang et al. (2022)</td><td>60.2</td><td>0.596</td><td>0.410</td><td>59.7</td><td>0.603</td><td>0.416</td></tr><tr><td>SimCLR Chen et al. (2020)</td><td>59.7</td><td>0.474</td><td>0.603</td><td>60.8</td><td>0.481</td><td>0.638</td></tr><tr><td>DiTi (Ours)</td><td>62.3</td><td>0.617</td><td>0.392</td><td>61.4</td><td>0.622</td><td>0.384</td></tr></table>",
|
| 880 |
+
"bbox": [
|
| 881 |
+
196,
|
| 882 |
+
99,
|
| 883 |
+
803,
|
| 884 |
+
210
|
| 885 |
+
],
|
| 886 |
+
"page_idx": 6
|
| 887 |
+
},
|
| 888 |
+
{
|
| 889 |
+
"type": "image",
|
| 890 |
+
"img_path": "images/67dafc349a46461b996af81c60cfc17ca82e5f33c747b2af2eb774230dc05ede.jpg",
|
| 891 |
+
"image_caption": [
|
| 892 |
+
"Figure 4: Improvements in attribute classification precision of our DiTi over PDAE (bottom) and over SimCLR (top). Improvements more than $2\\%$ are highlighted with red bars. Negative values are marked with blue bars."
|
| 893 |
+
],
|
| 894 |
+
"image_footnote": [],
|
| 895 |
+
"bbox": [
|
| 896 |
+
178,
|
| 897 |
+
252,
|
| 898 |
+
823,
|
| 899 |
+
383
|
| 900 |
+
],
|
| 901 |
+
"page_idx": 6
|
| 902 |
+
},
|
| 903 |
+
{
|
| 904 |
+
"type": "text",
|
| 905 |
+
"text": "500k iterations on FFHQ, and 540k iterations on Bedroom. Hence our DiTi training is as efficient as PDAE. Our experiments were performed on 4 NVIDIA A100 GPUs.",
|
| 906 |
+
"bbox": [
|
| 907 |
+
169,
|
| 908 |
+
436,
|
| 909 |
+
823,
|
| 910 |
+
465
|
| 911 |
+
],
|
| 912 |
+
"page_idx": 6
|
| 913 |
+
},
|
| 914 |
+
{
|
| 915 |
+
"type": "text",
|
| 916 |
+
"text": "5.2 INFERENCE",
|
| 917 |
+
"text_level": 1,
|
| 918 |
+
"bbox": [
|
| 919 |
+
171,
|
| 920 |
+
484,
|
| 921 |
+
294,
|
| 922 |
+
500
|
| 923 |
+
],
|
| 924 |
+
"page_idx": 6
|
| 925 |
+
},
|
| 926 |
+
{
|
| 927 |
+
"type": "text",
|
| 928 |
+
"text": "Comparison with Diff-AE and PDAE. In Table 1, our proposed DiTi significantly outperforms the two related works. We break down the improved accuracy over PDAE on each attribute in Figure 4 bottom, where DiTi is consistently better on all attributes. The result, together with the previous analysis of Figure 2b, validates that DiTi exhibits the sample inference property of a disentangled representation. It also supports our analysis on the baselines' deficiency in Section 2, i.e., they may digress to use spurious correlation to supplement reconstruction error. For example, the most improved attribute is \"Brown Hair\", which strongly correlates with the female gender.",
|
| 929 |
+
"bbox": [
|
| 930 |
+
169,
|
| 931 |
+
512,
|
| 932 |
+
823,
|
| 933 |
+
611
|
| 934 |
+
],
|
| 935 |
+
"page_idx": 6
|
| 936 |
+
},
|
| 937 |
+
{
|
| 938 |
+
"type": "text",
|
| 939 |
+
"text": "Comparison with SimCLR. SimCLR does not perform well in attribute inference, surpassed even by PDAE. This is because SimCLR learns a representation invariant to augmentations (e.g., color jittering), which disregards its related attributes, such as hair or skin color. This is verified by the large improvements of DiTi over SimCLR on \"Pale Skin\" accuracy in Figure 4 top. The deficiency cannot be addressed by simply removing augmentations, which leads to severe performance degradation (see Appendix). Note that SimCLR slightly outperforms DiTi on some unnoticeable attributes (e.g., earrings). This suggests that some fine-grained attributes are not well disentangled. To tackle this, we will improve model expressiveness (e.g., using Stable Diffusion Rombach et al. (2022) as the frozen DM) and explore more advanced training objectives Song et al. (2023) as future work.",
|
| 940 |
+
"bbox": [
|
| 941 |
+
169,
|
| 942 |
+
617,
|
| 943 |
+
826,
|
| 944 |
+
743
|
| 945 |
+
],
|
| 946 |
+
"page_idx": 6
|
| 947 |
+
},
|
| 948 |
+
{
|
| 949 |
+
"type": "text",
|
| 950 |
+
"text": "Comparison with $\\beta$ -TCVAE and IBGAN. It is perhaps not surprising that existing unsupervised disentanglement methods perform poorly. Their previous successes are limited to synthetic datasets, and their models are far less expressive compared to DM. In fact, their pursuit of a disentangled representation by information bottleneck proves to be ever-elusive Locatello et al. (2019).",
|
| 951 |
+
"bbox": [
|
| 952 |
+
169,
|
| 953 |
+
750,
|
| 954 |
+
452,
|
| 955 |
+
888
|
| 956 |
+
],
|
| 957 |
+
"page_idx": 6
|
| 958 |
+
},
|
| 959 |
+
{
|
| 960 |
+
"type": "table",
|
| 961 |
+
"img_path": "images/efa22c5c87c84527dbdd0b175f0b5ef403e705ffa79a73c578cc2c971f4ced57.jpg",
|
| 962 |
+
"table_caption": [
|
| 963 |
+
"Table 1: AP (%) on CelebA attribute classification and Pearson's r, MSE on LFW attribute regression. The first column shows the training dataset."
|
| 964 |
+
],
|
| 965 |
+
"table_footnote": [],
|
| 966 |
+
"table_body": "<table><tr><td>Imbalance</td><td>Detach</td><td>k</td><td>AP ↑</td><td>Pearson's r ↑</td><td>MSE ↓</td></tr><tr><td>✓</td><td></td><td>16</td><td>62.1</td><td>0.619</td><td>0.389</td></tr><tr><td>✓</td><td></td><td>32</td><td>62.0</td><td>0.615</td><td>0.392</td></tr><tr><td>✓</td><td></td><td>64</td><td>62.3</td><td>0.617</td><td>0.392</td></tr><tr><td>✓</td><td></td><td>128</td><td>61.9</td><td>0.616</td><td>0.391</td></tr><tr><td></td><td></td><td>64</td><td>61.9</td><td>0.604</td><td>0.410</td></tr><tr><td></td><td>✓</td><td>64</td><td>62.5</td><td>0.590</td><td>0.422</td></tr><tr><td>✓</td><td>✓</td><td>64</td><td>62.4</td><td>0.604</td><td>0.405</td></tr></table>",
|
| 967 |
+
"bbox": [
|
| 968 |
+
467,
|
| 969 |
+
751,
|
| 970 |
+
823,
|
| 971 |
+
847
|
| 972 |
+
],
|
| 973 |
+
"page_idx": 6
|
| 974 |
+
},
|
| 975 |
+
{
|
| 976 |
+
"type": "text",
|
| 977 |
+
"text": "Table 2: Ablations on DiTi designs on CelebA. Imbalance and Detach: using our partition and optimization strategy.",
|
| 978 |
+
"bbox": [
|
| 979 |
+
462,
|
| 980 |
+
852,
|
| 981 |
+
823,
|
| 982 |
+
880
|
| 983 |
+
],
|
| 984 |
+
"page_idx": 6
|
| 985 |
+
},
|
| 986 |
+
{
|
| 987 |
+
"type": "text",
|
| 988 |
+
"text": "Ablation on #Subsets $k$ . From Table 2 first 4 lines, we observe that inference results are not sensitive to the subset number $k$ (details in Section 4.2). We choose $k = 64$ with the highest AP.",
|
| 989 |
+
"bbox": [
|
| 990 |
+
169,
|
| 991 |
+
895,
|
| 992 |
+
823,
|
| 993 |
+
924
|
| 994 |
+
],
|
| 995 |
+
"page_idx": 6
|
| 996 |
+
},
|
| 997 |
+
{
|
| 998 |
+
"type": "header",
|
| 999 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 1000 |
+
"bbox": [
|
| 1001 |
+
173,
|
| 1002 |
+
32,
|
| 1003 |
+
478,
|
| 1004 |
+
47
|
| 1005 |
+
],
|
| 1006 |
+
"page_idx": 6
|
| 1007 |
+
},
|
| 1008 |
+
{
|
| 1009 |
+
"type": "page_number",
|
| 1010 |
+
"text": "7",
|
| 1011 |
+
"bbox": [
|
| 1012 |
+
493,
|
| 1013 |
+
948,
|
| 1014 |
+
503,
|
| 1015 |
+
959
|
| 1016 |
+
],
|
| 1017 |
+
"page_idx": 6
|
| 1018 |
+
},
|
| 1019 |
+
{
|
| 1020 |
+
"type": "image",
|
| 1021 |
+
"img_path": "images/f35c124ee4fe0f604612e5f915077ddd98424e8c0aa545fe2ffe31bd3aa2255a.jpg",
|
| 1022 |
+
"image_caption": [
|
| 1023 |
+
"Figure 5: Counterfactual generations on FFHQ by interpolating a feature subset of 3 image pairs $(\\mathbf{x},\\mathbf{y})$ . We partition $\\{\\mathbf{z}_i\\}_{i = 1}^T$ according to early $t\\in (0,T / 3]$ , middle $t\\in (T / 3,2T / 3]$ and late $t\\in (2T / 3,T]$ . For each subset, we show results in 2 directions $(\\mathbf{x}\\rightarrow \\mathbf{y},\\mathbf{y}\\rightarrow \\mathbf{x})$ under 3 interpolation scales (color gradient↑, scale↑)."
|
| 1024 |
+
],
|
| 1025 |
+
"image_footnote": [],
|
| 1026 |
+
"bbox": [
|
| 1027 |
+
173,
|
| 1028 |
+
101,
|
| 1029 |
+
823,
|
| 1030 |
+
361
|
| 1031 |
+
],
|
| 1032 |
+
"page_idx": 7
|
| 1033 |
+
},
|
| 1034 |
+
{
|
| 1035 |
+
"type": "text",
|
| 1036 |
+
"text": "This means that our model can learn up to 64 hidden attributes, whose combinations are certainly diverse enough for our chosen datasets.",
|
| 1037 |
+
"bbox": [
|
| 1038 |
+
169,
|
| 1039 |
+
425,
|
| 1040 |
+
823,
|
| 1041 |
+
454
|
| 1042 |
+
],
|
| 1043 |
+
"page_idx": 7
|
| 1044 |
+
},
|
| 1045 |
+
{
|
| 1046 |
+
"type": "text",
|
| 1047 |
+
"text": "Ablation on Partition & Optimization Strategy. We devise an imbalanced partition strategy to allocate more feature dimensions for $\\mathbf{z}_i$ corresponding to $t \\in \\{100, \\dots, 300\\}$ , as this time-step range contributes the most to the overall loss (Figure A9). This leads to faster convergence and improved performance in Table 2 (line 3 vs. line 5). For optimization strategy, we tried detaching the gradient of $\\mathbf{z}_1, \\dots, \\mathbf{z}_{t-1}$ at time-step $t$ to prevent them from capturing the lost attribute at $t$ . Yet it leads to slower convergence, which especially hurts the challenging regression task. We leave it as future work to explore more principled ways of improving feature modularity.",
|
| 1048 |
+
"bbox": [
|
| 1049 |
+
169,
|
| 1050 |
+
460,
|
| 1051 |
+
826,
|
| 1052 |
+
559
|
| 1053 |
+
],
|
| 1054 |
+
"page_idx": 7
|
| 1055 |
+
},
|
| 1056 |
+
{
|
| 1057 |
+
"type": "text",
|
| 1058 |
+
"text": "5.3 COUNTERFACTUAL GENERATION",
|
| 1059 |
+
"text_level": 1,
|
| 1060 |
+
"bbox": [
|
| 1061 |
+
171,
|
| 1062 |
+
575,
|
| 1063 |
+
444,
|
| 1064 |
+
589
|
| 1065 |
+
],
|
| 1066 |
+
"page_idx": 7
|
| 1067 |
+
},
|
| 1068 |
+
{
|
| 1069 |
+
"type": "text",
|
| 1070 |
+
"text": "FFHQ Results. Figure 5 shows DiTi generations by interpolating a feature subset while fixing its complement. Different from full-feature interpolation (Figure 7), there are two directions: $\\mathbf{x} \\rightarrow \\mathbf{y}$ fixes the complement to the corresponding feature values of $\\mathbf{x}$ , and $\\mathbf{y} \\rightarrow \\mathbf{x}$ fixes it to those of $\\mathbf{y}$ . By identifying how images are changing during interpolation (left to right for top, right to left for bottom) and comparing the changes across the 3 columns, we have several observations:",
|
| 1071 |
+
"bbox": [
|
| 1072 |
+
169,
|
| 1073 |
+
606,
|
| 1074 |
+
823,
|
| 1075 |
+
676
|
| 1076 |
+
],
|
| 1077 |
+
"page_idx": 7
|
| 1078 |
+
},
|
| 1079 |
+
{
|
| 1080 |
+
"type": "list",
|
| 1081 |
+
"sub_type": "text",
|
| 1082 |
+
"list_items": [
|
| 1083 |
+
"1. Interpolating different subsets modifies different attributes. For example, subset of early $t$ mainly controls micro-expressions, such as mouth corners, cheeks, or eye details. The interpolation hardly changes a person's identity, but certainly moves one's temperament towards the other person. In contrast, subset of middle $t$ is more responsible for identity-related attributes (e.g., proportion of facial features) and accessories (e.g., eyeglasses). Finally, late $t$ controls attributes such as hairstyle, pose, and even position of the face in the image (e.g., the bottom right face moves towards center).",
|
| 1084 |
+
"2. From early to late $t$ , the corresponding feature subset controls a more coarse-grained feature, where the granularity is defined based on the pixel-level changes. For example, changing hairstyle or removing hat (subset of late $t$ ) modifies more pixels than changing facial feature proportions (subset of middle $t$ ). This is in line with our theoretical analysis in Section 4.1. Notably, both our feature subset partition and the correspondence between subsets and attributes granularity are known a priori, without relying on manual discovery techniques such as latent traversal.",
|
| 1085 |
+
"3. Our generated counterfactuals have minimal distortion or artifact, and demonstrate modular properties (e.g., subset of late $t$ controls pose with minimal impact on facial features and accessories). These are strong proofs that DiTi learns a disentangled representation Besserve et al. (2020). We show in Appendix that all generative baselines do not exhibit these traits."
|
| 1086 |
+
],
|
| 1087 |
+
"bbox": [
|
| 1088 |
+
168,
|
| 1089 |
+
683,
|
| 1090 |
+
823,
|
| 1091 |
+
921
|
| 1092 |
+
],
|
| 1093 |
+
"page_idx": 7
|
| 1094 |
+
},
|
| 1095 |
+
{
|
| 1096 |
+
"type": "header",
|
| 1097 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 1098 |
+
"bbox": [
|
| 1099 |
+
173,
|
| 1100 |
+
32,
|
| 1101 |
+
478,
|
| 1102 |
+
47
|
| 1103 |
+
],
|
| 1104 |
+
"page_idx": 7
|
| 1105 |
+
},
|
| 1106 |
+
{
|
| 1107 |
+
"type": "page_number",
|
| 1108 |
+
"text": "8",
|
| 1109 |
+
"bbox": [
|
| 1110 |
+
493,
|
| 1111 |
+
948,
|
| 1112 |
+
503,
|
| 1113 |
+
959
|
| 1114 |
+
],
|
| 1115 |
+
"page_idx": 7
|
| 1116 |
+
},
|
| 1117 |
+
{
|
| 1118 |
+
"type": "image",
|
| 1119 |
+
"img_path": "images/6c68af6a40dbcd8be93dff55f41752e910fe4c0b0c01bceefabf383137eac729.jpg",
|
| 1120 |
+
"image_caption": [],
|
| 1121 |
+
"image_footnote": [],
|
| 1122 |
+
"bbox": [
|
| 1123 |
+
174,
|
| 1124 |
+
99,
|
| 1125 |
+
823,
|
| 1126 |
+
251
|
| 1127 |
+
],
|
| 1128 |
+
"page_idx": 8
|
| 1129 |
+
},
|
| 1130 |
+
{
|
| 1131 |
+
"type": "image",
|
| 1132 |
+
"img_path": "images/ce0850b4c08cd6dbc412fb4ba20c8a727bafe8638390c43eea0598724b8b8488.jpg",
|
| 1133 |
+
"image_caption": [
|
| 1134 |
+
"Figure 6: Counterfactual generations on Bedroom by manipulating 32 out of 512 feature dimensions.",
|
| 1135 |
+
"Figure 7: Results of interpolating the whole feature on FFHQ. Baselines have distortions during interpolation."
|
| 1136 |
+
],
|
| 1137 |
+
"image_footnote": [],
|
| 1138 |
+
"bbox": [
|
| 1139 |
+
173,
|
| 1140 |
+
268,
|
| 1141 |
+
823,
|
| 1142 |
+
422
|
| 1143 |
+
],
|
| 1144 |
+
"page_idx": 8
|
| 1145 |
+
},
|
| 1146 |
+
{
|
| 1147 |
+
"type": "text",
|
| 1148 |
+
"text": "Bedroom Manipulation. Bedroom is a more challenging dataset, where room scenes are much more complex than facial images (e.g., various layouts, decorations, objects). As shown in Figure 6, DiTi is the only method that generates faithful counterfactuals. 1st row: only DiTi can alter lighting without making significant changes to room furniture. 2nd row: baselines fail to modify the rustic feeling without artifacts or changing room layouts. 3rd row: DiTi makes the room more cluttered by introducing additional objects. Last row: only DiTi adds an additional carpet.",
|
| 1149 |
+
"bbox": [
|
| 1150 |
+
169,
|
| 1151 |
+
452,
|
| 1152 |
+
826,
|
| 1153 |
+
537
|
| 1154 |
+
],
|
| 1155 |
+
"page_idx": 8
|
| 1156 |
+
},
|
| 1157 |
+
{
|
| 1158 |
+
"type": "text",
|
| 1159 |
+
"text": "Whole-feature Interpolation. Under this conventional setting, as shown in Figure 7, only DiTi smoothly interpolates between the attributes of each image pair, with minimal distortion and artifact along the trajectories. This means that our DiTi can generate faithful counterfactuals (i.e., valid images in the support of data distribution), which validates our disentanglement quality Besserve et al. (2020). For example, if a feature only captures the attribute \"smile\" (i.e., disentangled), interpolating this feature between a smiling person and a non-smiling one leads to the gradual transition of expression. However, if a feature entangles multiple attributes, such interpolation will alter all of them or even cause distortion when the interpolated feature is out of the data distribution.",
|
| 1160 |
+
"bbox": [
|
| 1161 |
+
169,
|
| 1162 |
+
542,
|
| 1163 |
+
826,
|
| 1164 |
+
654
|
| 1165 |
+
],
|
| 1166 |
+
"page_idx": 8
|
| 1167 |
+
},
|
| 1168 |
+
{
|
| 1169 |
+
"type": "text",
|
| 1170 |
+
"text": "6 CONCLUSION",
|
| 1171 |
+
"text_level": 1,
|
| 1172 |
+
"bbox": [
|
| 1173 |
+
171,
|
| 1174 |
+
667,
|
| 1175 |
+
320,
|
| 1176 |
+
681
|
| 1177 |
+
],
|
| 1178 |
+
"page_idx": 8
|
| 1179 |
+
},
|
| 1180 |
+
{
|
| 1181 |
+
"type": "text",
|
| 1182 |
+
"text": "We presented a novel unsupervised method to learn a disentangled representation, which leverages the inductive bias of diffusion time-steps. In particular, we reveal an inherent connection between time-step and hidden modular attributes that generate data faithfully, enabling a simple and effective approach to disentangle the attributes by learning a time-step-specific feature. The learned feature improves downstream inference and enables counterfactual generation, validating its disentanglement quality. As future work, we will seek additional inductive bias to improve disentanglement, e.g., using text as a disentangled template by exploring text-to-image diffusion models, and devise practical optimization techniques to enable faster convergence.",
|
| 1183 |
+
"bbox": [
|
| 1184 |
+
169,
|
| 1185 |
+
691,
|
| 1186 |
+
823,
|
| 1187 |
+
803
|
| 1188 |
+
],
|
| 1189 |
+
"page_idx": 8
|
| 1190 |
+
},
|
| 1191 |
+
{
|
| 1192 |
+
"type": "text",
|
| 1193 |
+
"text": "7 ACKNOWLEDGEMENT",
|
| 1194 |
+
"text_level": 1,
|
| 1195 |
+
"bbox": [
|
| 1196 |
+
171,
|
| 1197 |
+
823,
|
| 1198 |
+
390,
|
| 1199 |
+
837
|
| 1200 |
+
],
|
| 1201 |
+
"page_idx": 8
|
| 1202 |
+
},
|
| 1203 |
+
{
|
| 1204 |
+
"type": "text",
|
| 1205 |
+
"text": "This research is supported by Microsoft Research Asia, the National Research Foundation, Singapore under its AI Singapore Programme (AISG Award No: AISG2-RP-2021-022), MOE AcRF Tier 2 (MOE2019-T2-2-062), Wallenberg-NTU Presidential Postdoctoral Fellowship, the Lee Kong Chian (LKC) Fellowship fund awarded by Singapore Management University, and the DSO Research Grant (Fund Code MG22C03).",
|
| 1206 |
+
"bbox": [
|
| 1207 |
+
169,
|
| 1208 |
+
854,
|
| 1209 |
+
825,
|
| 1210 |
+
924
|
| 1211 |
+
],
|
| 1212 |
+
"page_idx": 8
|
| 1213 |
+
},
|
| 1214 |
+
{
|
| 1215 |
+
"type": "header",
|
| 1216 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 1217 |
+
"bbox": [
|
| 1218 |
+
173,
|
| 1219 |
+
32,
|
| 1220 |
+
478,
|
| 1221 |
+
47
|
| 1222 |
+
],
|
| 1223 |
+
"page_idx": 8
|
| 1224 |
+
},
|
| 1225 |
+
{
|
| 1226 |
+
"type": "page_number",
|
| 1227 |
+
"text": "9",
|
| 1228 |
+
"bbox": [
|
| 1229 |
+
493,
|
| 1230 |
+
948,
|
| 1231 |
+
504,
|
| 1232 |
+
959
|
| 1233 |
+
],
|
| 1234 |
+
"page_idx": 8
|
| 1235 |
+
},
|
| 1236 |
+
{
|
| 1237 |
+
"type": "text",
|
| 1238 |
+
"text": "REFERENCES",
|
| 1239 |
+
"text_level": 1,
|
| 1240 |
+
"bbox": [
|
| 1241 |
+
174,
|
| 1242 |
+
102,
|
| 1243 |
+
287,
|
| 1244 |
+
117
|
| 1245 |
+
],
|
| 1246 |
+
"page_idx": 9
|
| 1247 |
+
},
|
| 1248 |
+
{
|
| 1249 |
+
"type": "list",
|
| 1250 |
+
"sub_type": "ref_text",
|
| 1251 |
+
"list_items": [
|
| 1252 |
+
"Yoshua Bengio, Aaron Courville, and Pascal Vincent. Representation learning: A review and new perspectives. IEEE transactions on pattern analysis and machine intelligence, 35(8):1798-1828, 2013.",
|
| 1253 |
+
"Michel Besserve, Arash Mehrjou, Rémy Sun, and Bernhard Schölkopf. Counterfactuals uncover the modular structure of deep generative models. *ICLR*, 2020.",
|
| 1254 |
+
"Christopher P Burgess, Irina Higgins, Arka Pal, Loic Matthey, Nick Watters, Guillaume Desjardins, and Alexander Lerchner. Understanding disentangling in beta-vae. *ICLR*, 2017.",
|
| 1255 |
+
"Ricky TQ Chen, Xuechen Li, Roger B Grosse, and David K Duvenaud. Isolating sources of disentanglement in variational autoencoders. NeurIPS, 2018.",
|
| 1256 |
+
"Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International conference on machine learning, pp. 1597-1607. PMLR, 2020.",
|
| 1257 |
+
"Antonia Creswell, Tom White, Vincent Dumoulin, Kai Arulkumaran, Biswa Sengupta, and Anil A Bharath. Generative adversarial networks: An overview. IEEE signal processing magazine, 35 (1):53-65, 2018.",
|
| 1258 |
+
"Prafulla Dhariwal and Alexander Nichol. Diffusion models beat gans on image synthesis. Advances in Neural Information Processing Systems, 34:8780-8794, 2021.",
|
| 1259 |
+
"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.",
|
| 1260 |
+
"Kaiming He, Haoqi Fan, Yuxin Wu, Saining Xie, and Ross Girshick. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 9729-9738, 2020.",
|
| 1261 |
+
"Amir Hertz, Ron Mokady, Jay Tenenbaum, Kfir Aberman, Yael Pritch, and Daniel Cohen-Or. Prompt-to-prompt image editing with cross attention control. arXiv preprint arXiv:2208.01626, 2022.",
|
| 1262 |
+
"Irina Higgins, Loic Matthew, Arka Pal, Christopher Burgess, Xavier Glorot, Matthew Botvinick, Shakir Mohamed, and Alexander Lerchner. beta-vae: Learning basic visual concepts with a constrained variational framework. In International conference on learning representations, 2017.",
|
| 1263 |
+
"Irina Higgins, David Amos, David Pfau, Sebastien Racaniere, Loic Matthew, Danilo Rezende, and Alexander Lerchner. Towards a definition of disentangled representations. arXiv preprint arXiv:1812.02230, 2018.",
|
| 1264 |
+
"Jonathan Ho, Ajay Jain, and Pieter Abbeel. Denoising diffusion probabilistic models. Advances in Neural Information Processing Systems, 33:6840-6851, 2020.",
|
| 1265 |
+
"Gary B. Huang, Vidit Jain, and Erik Learned-Miller. Unsupervised joint alignment of complex images. In ICCV, 2007.",
|
| 1266 |
+
"Henry F Inman and Edwin L Bradley Jr. The overlapping coefficient as a measure of agreement between probability distributions and point estimation of the overlap of two normal densities. Communications in Statistics-theory and Methods, 18(10):3851-3874, 1989.",
|
| 1267 |
+
"Insu Jeon, Wonkwang Lee, Myeongjang Pyeon, and Gunhee Kim. Ib-gan: Disentangled representation learning with information bottleneck generative adversarial networks. In AAAI, 2021.",
|
| 1268 |
+
"Thomas W. Judson. Abstract Algebra: Theory and Applications (The Prindle, Weber & Schmidt Series in Advanced Mathematics). Prindle Weber & Schmidt, 1994.",
|
| 1269 |
+
"Tero Karras, Samuli Laine, and Timo Aila. A style-based generator architecture for generative adversarial networks. In CVPR, 2019."
|
| 1270 |
+
],
|
| 1271 |
+
"bbox": [
|
| 1272 |
+
171,
|
| 1273 |
+
125,
|
| 1274 |
+
825,
|
| 1275 |
+
922
|
| 1276 |
+
],
|
| 1277 |
+
"page_idx": 9
|
| 1278 |
+
},
|
| 1279 |
+
{
|
| 1280 |
+
"type": "header",
|
| 1281 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 1282 |
+
"bbox": [
|
| 1283 |
+
171,
|
| 1284 |
+
32,
|
| 1285 |
+
478,
|
| 1286 |
+
47
|
| 1287 |
+
],
|
| 1288 |
+
"page_idx": 9
|
| 1289 |
+
},
|
| 1290 |
+
{
|
| 1291 |
+
"type": "page_number",
|
| 1292 |
+
"text": "10",
|
| 1293 |
+
"bbox": [
|
| 1294 |
+
490,
|
| 1295 |
+
946,
|
| 1296 |
+
509,
|
| 1297 |
+
959
|
| 1298 |
+
],
|
| 1299 |
+
"page_idx": 9
|
| 1300 |
+
},
|
| 1301 |
+
{
|
| 1302 |
+
"type": "list",
|
| 1303 |
+
"sub_type": "ref_text",
|
| 1304 |
+
"list_items": [
|
| 1305 |
+
"Diederik Kingma and Max Welling. Auto-encoding variational bayes. In ICLR, 2014.",
|
| 1306 |
+
"Mingi Kwon, Jaeseok Jeong, and Youngjung Uh. Diffusion models already have a semantic latent space. *ICLR*, 2022.",
|
| 1307 |
+
"Ziwei Liu, Ping Luo, Xiaogang Wang, and Xiaou Tang. Deep learning face attributes in the wild. In Proceedings of International Conference on Computer Vision (ICCV), December 2015.",
|
| 1308 |
+
"Francesco Locatello, Stefan Bauer, Mario Lucic, Gunnar Raetsch, Sylvain Gelly, Bernhard Schölkopf, and Olivier Bachem. Challenging common assumptions in the unsupervised learning of disentangled representations. In international conference on machine learning, 2019.",
|
| 1309 |
+
"Konpat Preechakul, Nattanat Chathee, Suttisak Wizadwongsa, and Supasorn Suwajanakorn. Diffusion autoencoders: Toward a meaningful and decodable representation. In CVPR, 2022.",
|
| 1310 |
+
"Robin Rombach, Andreas Blattmann, Dominik Lorenz, Patrick Esser, and Björn Ommer. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 10684-10695, 2022.",
|
| 1311 |
+
"Olaf Ronneberger, Philipp Fischer, and Thomas Brox. U-net: Convolutional networks for biomedical image segmentation. In Medical Image Computing and Computer-Assisted Intervention—MICCAI 2015: 18th International Conference, Munich, Germany, October 5-9, 2015, Proceedings, Part III 18, pp. 234-241. Springer, 2015.",
|
| 1312 |
+
"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. PMLR, 2015.",
|
| 1313 |
+
"Jiaming Song, Chenlin Meng, and Stefano Ermon. Denoising diffusion implicit models. arXiv preprint arXiv:2010.02502, 2020.",
|
| 1314 |
+
"Yang Song, Jascha Sohl-Dickstein, Diederik P Kingma, Abhishek Kumar, Stefano Ermon, and Ben Poole. Score-based generative modeling through stochastic differential equations. *ICLR*, 2021.",
|
| 1315 |
+
"Yang Song, Prafulla Dhariwal, Mark Chen, and Ilya Sutskever. Consistency models. In Proceedings of the 40th International Conference on Machine Learning, 2023.",
|
| 1316 |
+
"Tan Wang, Zhongqi Yue, Jianqiang Huang, Qianru Sun, and Hanwang Zhang. Self-supervised learning disentangled group representation as feature. Advances in Neural Information Processing Systems, 34:18225-18240, 2021.",
|
| 1317 |
+
"Ceyuan Yang, Yujun Shen, and Bolei Zhou. Semantic hierarchy emerges in deep generative representations for scene synthesis. International Journal of Computer Vision, 129:1451-1466, 2021.",
|
| 1318 |
+
"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.",
|
| 1319 |
+
"Zhongqi Yue, Tan Wang, Hanwang Zhang, Qianru Sun, and Xian-Sheng Hua. Counterfactual zero-shot and open-set visual recognition. In CVPR, 2021.",
|
| 1320 |
+
"Zijian Zhang, Zhou Zhao, and Zhijie Lin. Unsupervised representation learning from pre-trained diffusion probabilistic models. Advances in Neural Information Processing Systems, 35:22117-22130, 2022.",
|
| 1321 |
+
"Xiao Zhou, Weizhong Zhang, Hang Xu, and Tong Zhang. Effective sparsification of neural networks with global sparsity constraint. In CVPR, 2021."
|
| 1322 |
+
],
|
| 1323 |
+
"bbox": [
|
| 1324 |
+
171,
|
| 1325 |
+
102,
|
| 1326 |
+
825,
|
| 1327 |
+
833
|
| 1328 |
+
],
|
| 1329 |
+
"page_idx": 10
|
| 1330 |
+
},
|
| 1331 |
+
{
|
| 1332 |
+
"type": "header",
|
| 1333 |
+
"text": "Published as a conference paper at ICLR 2024",
|
| 1334 |
+
"bbox": [
|
| 1335 |
+
171,
|
| 1336 |
+
32,
|
| 1337 |
+
478,
|
| 1338 |
+
47
|
| 1339 |
+
],
|
| 1340 |
+
"page_idx": 10
|
| 1341 |
+
},
|
| 1342 |
+
{
|
| 1343 |
+
"type": "page_number",
|
| 1344 |
+
"text": "11",
|
| 1345 |
+
"bbox": [
|
| 1346 |
+
490,
|
| 1347 |
+
946,
|
| 1348 |
+
506,
|
| 1349 |
+
959
|
| 1350 |
+
],
|
| 1351 |
+
"page_idx": 10
|
| 1352 |
+
}
|
| 1353 |
+
]
|