Add Batch 80fb586c-5d7e-46fc-bc1e-32ee2ce0f981 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_content_list.json +0 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_model.json +0 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_origin.pdf +3 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/full.md +518 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/images.zip +3 -0
- 2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/layout.json +0 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_content_list.json +0 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_model.json +0 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_origin.pdf +3 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/full.md +0 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/images.zip +3 -0
- 2023/Gradient Boosting Performs Gaussian Process Inference/layout.json +0 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_content_list.json +0 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_model.json +0 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_origin.pdf +3 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/full.md +633 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/images.zip +3 -0
- 2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/layout.json +0 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_content_list.json +0 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_model.json +0 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_origin.pdf +3 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/full.md +434 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/images.zip +3 -0
- 2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/layout.json +0 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_content_list.json +0 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_model.json +0 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_origin.pdf +3 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/full.md +389 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/images.zip +3 -0
- 2023/Graph Contrastive Learning for Skeleton-based Action Recognition/layout.json +0 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_content_list.json +0 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_model.json +0 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_origin.pdf +3 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/full.md +0 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/images.zip +3 -0
- 2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/layout.json +0 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_content_list.json +0 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_model.json +0 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_origin.pdf +3 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/full.md +731 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/images.zip +3 -0
- 2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/layout.json +0 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_content_list.json +0 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_model.json +0 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_origin.pdf +3 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/full.md +0 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/images.zip +3 -0
- 2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/layout.json +0 -0
- 2023/Graph Signal Sampling for Inductive One-Bit Matrix Completion_ a Closed-form Solution/24a50077-0100-4508-aa49-e508fd6658cc_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -6840,3 +6840,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 6840 |
2023/Geometrically[[:space:]]regularized[[:space:]]autoencoders[[:space:]]for[[:space:]]non-Euclidean[[:space:]]data/b5619142-77a2-4382-bfa6-69fcb12782ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6841 |
2023/Global[[:space:]]Explainability[[:space:]]of[[:space:]]GNNs[[:space:]]via[[:space:]]Logic[[:space:]]Combination[[:space:]]of[[:space:]]Learned[[:space:]]Concepts/28d6daa1-a9a1-446e-9bf4-3f4f8ed7f337_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6842 |
2023/Globally[[:space:]]Optimal[[:space:]]Training[[:space:]]of[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Threshold[[:space:]]Activation[[:space:]]Functions/d97c5a6a-d88c-42d7-a863-0741e11dce54_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6840 |
2023/Geometrically[[:space:]]regularized[[:space:]]autoencoders[[:space:]]for[[:space:]]non-Euclidean[[:space:]]data/b5619142-77a2-4382-bfa6-69fcb12782ad_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6841 |
2023/Global[[:space:]]Explainability[[:space:]]of[[:space:]]GNNs[[:space:]]via[[:space:]]Logic[[:space:]]Combination[[:space:]]of[[:space:]]Learned[[:space:]]Concepts/28d6daa1-a9a1-446e-9bf4-3f4f8ed7f337_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6842 |
2023/Globally[[:space:]]Optimal[[:space:]]Training[[:space:]]of[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Threshold[[:space:]]Activation[[:space:]]Functions/d97c5a6a-d88c-42d7-a863-0741e11dce54_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6843 |
+
2023/GoBigger_[[:space:]]A[[:space:]]Scalable[[:space:]]Platform[[:space:]]for[[:space:]]Cooperative-Competitive[[:space:]]Multi-Agent[[:space:]]Interactive[[:space:]]Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6844 |
+
2023/Gradient[[:space:]]Boosting[[:space:]]Performs[[:space:]]Gaussian[[:space:]]Process[[:space:]]Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6845 |
+
2023/Gradient[[:space:]]Gating[[:space:]]for[[:space:]]Deep[[:space:]]Multi-Rate[[:space:]]Learning[[:space:]]on[[:space:]]Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6846 |
+
2023/Gradient-Guided[[:space:]]Importance[[:space:]]Sampling[[:space:]]for[[:space:]]Learning[[:space:]]Binary[[:space:]]Energy-Based[[:space:]]Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6847 |
+
2023/Graph[[:space:]]Contrastive[[:space:]]Learning[[:space:]]for[[:space:]]Skeleton-based[[:space:]]Action[[:space:]]Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6848 |
+
2023/Graph[[:space:]]Domain[[:space:]]Adaptation[[:space:]]via[[:space:]]Theory-Grounded[[:space:]]Spectral[[:space:]]Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6849 |
+
2023/Graph[[:space:]]Neural[[:space:]]Network-Inspired[[:space:]]Kernels[[:space:]]for[[:space:]]Gaussian[[:space:]]Processes[[:space:]]in[[:space:]]Semi-Supervised[[:space:]]Learning/e3ba467d-9869-43d8-9a86-bf961080a389_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6850 |
+
2023/Graph[[:space:]]Neural[[:space:]]Networks[[:space:]]are[[:space:]]Inherently[[:space:]]Good[[:space:]]Generalizers_[[:space:]]Insights[[:space:]]by[[:space:]]Bridging[[:space:]]GNNs[[:space:]]and[[:space:]]MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6851 |
+
2023/Graph[[:space:]]Signal[[:space:]]Sampling[[:space:]]for[[:space:]]Inductive[[:space:]]One-Bit[[:space:]]Matrix[[:space:]]Completion_[[:space:]]a[[:space:]]Closed-form[[:space:]]Solution/24a50077-0100-4508-aa49-e508fd6658cc_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6852 |
+
2023/Graph-based[[:space:]]Deterministic[[:space:]]Policy[[:space:]]Gradient[[:space:]]for[[:space:]]Repetitive[[:space:]]Combinatorial[[:space:]]Optimization[[:space:]]Problems/5152bdd9-6dad-4efd-a688-f0dbe38f3f0e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6853 |
+
2023/Gray-Box[[:space:]]Gaussian[[:space:]]Processes[[:space:]]for[[:space:]]Automated[[:space:]]Reinforcement[[:space:]]Learning/65e97c02-8ce2-4ecb-8228-54a75461a77e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6854 |
+
2023/Greedy[[:space:]]Actor-Critic_[[:space:]]A[[:space:]]New[[:space:]]Conditional[[:space:]]Cross-Entropy[[:space:]]Method[[:space:]]for[[:space:]]Policy[[:space:]]Improvement/6f04e4d1-9e63-4dfc-a0a9-6b8bc990ad6e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6855 |
+
2023/Gromov-Wasserstein[[:space:]]Autoencoders/a14f50b6-2035-4aa5-b767-dae20e554e1f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6856 |
+
2023/Grounding[[:space:]]Graph[[:space:]]Network[[:space:]]Simulators[[:space:]]using[[:space:]]Physical[[:space:]]Sensor[[:space:]]Observations/a1328a07-b727-4f6e-aab1-c8c50c4f4db5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6857 |
+
2023/Guess[[:space:]]the[[:space:]]Instruction![[:space:]]Flipped[[:space:]]Learning[[:space:]]Makes[[:space:]]Language[[:space:]]Models[[:space:]]Stronger[[:space:]]Zero-Shot[[:space:]]Learners/aa03b5f9-c0e0-40ec-8406-707612526894_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6858 |
+
2023/Guiding[[:space:]]Safe[[:space:]]Exploration[[:space:]]with[[:space:]]Weakest[[:space:]]Preconditions/8ce989c3-43b5-4456-9dd7-a4deaeaa5965_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6859 |
+
2023/Guiding[[:space:]]continuous[[:space:]]operator[[:space:]]learning[[:space:]]through[[:space:]]Physics-based[[:space:]]boundary[[:space:]]constraints/a37f7b49-4cf0-4db0-b990-df4c0260ee27_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6860 |
+
2023/H2RBox_[[:space:]]Horizontal[[:space:]]Box[[:space:]]Annotation[[:space:]]is[[:space:]]All[[:space:]]You[[:space:]]Need[[:space:]]for[[:space:]]Oriented[[:space:]]Object[[:space:]]Detection/46d3c02e-d96d-46cc-8516-03a771b45f11_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6861 |
+
2023/Hard-Meta-Dataset++_[[:space:]]Towards[[:space:]]Understanding[[:space:]]Few-Shot[[:space:]]Performance[[:space:]]on[[:space:]]Difficult[[:space:]]Tasks/c6cb9bac-c984-432c-aefb-5000d344c622_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6862 |
+
2023/Harnessing[[:space:]]Mixed[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]Datasets[[:space:]]via[[:space:]]Trajectory[[:space:]]Weighting/e94bf347-dcb5-405e-87bb-d95dc69a4b8b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6863 |
+
2023/Harnessing[[:space:]]Out-Of-Distribution[[:space:]]Examples[[:space:]]via[[:space:]]Augmenting[[:space:]]Content[[:space:]]and[[:space:]]Style/532e9128-b631-4263-a26a-8bdbc1fec57c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6864 |
+
2023/Hebbian[[:space:]]and[[:space:]]Gradient-based[[:space:]]Plasticity[[:space:]]Enables[[:space:]]Robust[[:space:]]Memory[[:space:]]and[[:space:]]Rapid[[:space:]]Learning[[:space:]]in[[:space:]]RNNs/b976eab3-2152-4b13-b0cb-f7381f7dfa2a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6865 |
+
2023/Heterogeneous[[:space:]]Neuronal[[:space:]]and[[:space:]]Synaptic[[:space:]]Dynamics[[:space:]]for[[:space:]]Spike-Efficient[[:space:]]Unsupervised[[:space:]]Learning_[[:space:]]Theory[[:space:]]and[[:space:]]Design[[:space:]]Principles/1774d35a-a724-49fb-9c4d-8ffba901bd4b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6866 |
+
2023/HiCLIP_[[:space:]]Contrastive[[:space:]]Language-Image[[:space:]]Pretraining[[:space:]]with[[:space:]]Hierarchy-aware[[:space:]]Attention/20af30a8-4a36-4922-98da-3308bf6f4ca4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6867 |
+
2023/HiT-MDP_[[:space:]]Learning[[:space:]]the[[:space:]]SMDP[[:space:]]option[[:space:]]framework[[:space:]]on[[:space:]]MDPs[[:space:]]with[[:space:]]Hidden[[:space:]]Temporal[[:space:]]Embeddings/4b3044c4-116a-4752-a546-b53fb342cca2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6868 |
+
2023/Hierarchical[[:space:]]Abstraction[[:space:]]for[[:space:]]Combinatorial[[:space:]]Generalization[[:space:]]in[[:space:]]Object[[:space:]]Rearrangement/eece4640-f9ca-4329-90b1-03f66b409225_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6869 |
+
2023/Hierarchical[[:space:]]Relational[[:space:]]Learning[[:space:]]for[[:space:]]Few-Shot[[:space:]]Knowledge[[:space:]]Graph[[:space:]]Completion/272cb13d-4373-4c7d-afbf-9126edac5ff0_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6870 |
+
2023/Hierarchical[[:space:]]Sliced[[:space:]]Wasserstein[[:space:]]Distance/81fcd13e-1182-4e9f-88bb-b961cfac3382_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6871 |
+
2023/Holistic[[:space:]]Adversarially[[:space:]]Robust[[:space:]]Pruning/ee2ff37c-47bf-4dbc-9df3-87a5b5d50e64_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6872 |
+
2023/HomoDistil_[[:space:]]Homotopic[[:space:]]Task-Agnostic[[:space:]]Distillation[[:space:]]of[[:space:]]Pre-trained[[:space:]]Transformers/399a7611-5f96-4e6e-a77d-b2c7296f9483_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6873 |
+
2023/HotProtein_[[:space:]]A[[:space:]]Novel[[:space:]]Framework[[:space:]]for[[:space:]]Protein[[:space:]]Thermostability[[:space:]]Prediction[[:space:]]and[[:space:]]Editing/50b2577b-4d4e-4cb4-86a6-2ca2ca595855_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6874 |
+
2023/How[[:space:]]Does[[:space:]]Semi-supervised[[:space:]]Learning[[:space:]]with[[:space:]]Pseudo-labelers[[:space:]]Work_[[:space:]]A[[:space:]]Case[[:space:]]Study/056f91d6-40f6-402c-b42d-8b823e04030d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6875 |
+
2023/How[[:space:]]I[[:space:]]Learned[[:space:]]to[[:space:]]Stop[[:space:]]Worrying[[:space:]]and[[:space:]]Love[[:space:]]Retraining/5a7129b0-e6f0-4762-9b8f-95e13f84d97f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6876 |
+
2023/How[[:space:]]Informative[[:space:]]is[[:space:]]the[[:space:]]Approximation[[:space:]]Error[[:space:]]from[[:space:]]Tensor[[:space:]]Decomposition[[:space:]]for[[:space:]]Neural[[:space:]]Network[[:space:]]Compression_/0d0937b1-860a-44ca-bbba-abb168baa82b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6877 |
+
2023/How[[:space:]]Much[[:space:]]Data[[:space:]]Are[[:space:]]Augmentations[[:space:]]Worth_[[:space:]]An[[:space:]]Investigation[[:space:]]into[[:space:]]Scaling[[:space:]]Laws,[[:space:]]Invariance,[[:space:]]and[[:space:]]Implicit[[:space:]]Regularization/6744d520-080b-40ec-88cf-45d494830cd5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6878 |
+
2023/How[[:space:]]Much[[:space:]]Space[[:space:]]Has[[:space:]]Been[[:space:]]Explored_[[:space:]]Measuring[[:space:]]the[[:space:]]Chemical[[:space:]]Space[[:space:]]Covered[[:space:]]by[[:space:]]Databases[[:space:]]and[[:space:]]Machine-Generated[[:space:]]Molecules/8710eca4-9049-485f-8c92-3a32b647521b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6879 |
+
2023/How[[:space:]]Sharpness-Aware[[:space:]]Minimization[[:space:]]Minimizes[[:space:]]Sharpness_/7c2c6753-a927-442a-8929-36e036be5bcd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6880 |
+
2023/How[[:space:]]gradient[[:space:]]estimator[[:space:]]variance[[:space:]]and[[:space:]]bias[[:space:]]impact[[:space:]]learning[[:space:]]in[[:space:]]neural[[:space:]]networks/2c4fd12f-7324-43d9-884c-457c2da12181_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6881 |
+
2023/How[[:space:]]robust[[:space:]]is[[:space:]]unsupervised[[:space:]]representation[[:space:]]learning[[:space:]]to[[:space:]]distribution[[:space:]]shift_/e72532d7-ede0-41bf-8387-9bfc7e7f37d2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6882 |
+
2023/How[[:space:]]to[[:space:]]Exploit[[:space:]]Hyperspherical[[:space:]]Embeddings[[:space:]]for[[:space:]]Out-of-Distribution[[:space:]]Detection_/dfb7429a-3e30-40a9-be55-47e639acc503_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6883 |
+
2023/How[[:space:]]to[[:space:]]Train[[:space:]]your[[:space:]]HIPPO_[[:space:]]State[[:space:]]Space[[:space:]]Models[[:space:]]with[[:space:]]Generalized[[:space:]]Orthogonal[[:space:]]Basis[[:space:]]Projections/d8bce70c-0b6d-45b6-b612-67858179ae7a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6884 |
+
2023/How[[:space:]]to[[:space:]]prepare[[:space:]]your[[:space:]]task[[:space:]]head[[:space:]]for[[:space:]]finetuning/43000503-0330-4bbe-9380-07a7b3f120be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6885 |
+
2023/Human[[:space:]]MotionFormer_[[:space:]]Transferring[[:space:]]Human[[:space:]]Motions[[:space:]]with[[:space:]]Vision[[:space:]]Transformers/0fd98e12-e719-4999-ba30-16a5e7e4d93b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6886 |
+
2023/Human[[:space:]]alignment[[:space:]]of[[:space:]]neural[[:space:]]network[[:space:]]representations/1910258e-02bf-4f9e-93f4-35873d05a9fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6887 |
+
2023/Human-level[[:space:]]Atari[[:space:]]200x[[:space:]]faster/0a1c15a3-6d0a-4d7b-bad6-51fa4591ceb7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6888 |
+
2023/Hybrid[[:space:]]RL_[[:space:]]Using[[:space:]]both[[:space:]]offline[[:space:]]and[[:space:]]online[[:space:]]data[[:space:]]can[[:space:]]make[[:space:]]RL[[:space:]]efficient/f89a351f-ae9b-4f52-8788-6b3065fbeab9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6889 |
+
2023/HypeR_[[:space:]]Multitask[[:space:]]Hyper-Prompted[[:space:]]Training[[:space:]]Enables[[:space:]]Large-Scale[[:space:]]Retrieval[[:space:]]Generalization/e6472409-1e95-46d0-a557-7689680a6267_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6890 |
+
2023/Hyper-Decision[[:space:]]Transformer[[:space:]]for[[:space:]]Efficient[[:space:]]Online[[:space:]]Policy[[:space:]]Adaptation/a7e6b1bd-7cf1-4aac-8cfb-eead2d0c8298_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6891 |
+
2023/HyperDeepONet_[[:space:]]learning[[:space:]]operator[[:space:]]with[[:space:]]complex[[:space:]]target[[:space:]]function[[:space:]]space[[:space:]]using[[:space:]]the[[:space:]]limited[[:space:]]resources[[:space:]]via[[:space:]]hypernetwork/244ae56e-775b-45fc-97c4-2e073a17a7d2_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6892 |
+
2023/Hyperbolic[[:space:]]Self-paced[[:space:]]Learning[[:space:]]for[[:space:]]Self-supervised[[:space:]]Skeleton-based[[:space:]]Action[[:space:]]Representations/edf9ebdd-a231-4f2d-b41b-a636ad16b451_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6893 |
+
2023/Hyperparameter[[:space:]]Optimization[[:space:]]through[[:space:]]Neural[[:space:]]Network[[:space:]]Partitioning/f9367738-92c5-4338-823a-01018a7f2920_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6894 |
+
2023/IDEAL_[[:space:]]Query-Efficient[[:space:]]Data-Free[[:space:]]Learning[[:space:]]from[[:space:]]Black-Box[[:space:]]Models/09a8a92d-fcf8-462f-a07d-e0408ceb9efb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6895 |
+
2023/ILA-DA_[[:space:]]Improving[[:space:]]Transferability[[:space:]]of[[:space:]]Intermediate[[:space:]]Level[[:space:]]Attack[[:space:]]with[[:space:]]Data[[:space:]]Augmentation/52d2e89a-8cd6-41a6-9dde-93ef5e3e85c1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6896 |
+
2023/ISAAC[[:space:]]Newton_[[:space:]]Input-based[[:space:]]Approximate[[:space:]]Curvature[[:space:]]for[[:space:]]Newton's[[:space:]]Method/5396d47a-0724-4c1f-91f2-d77159615518_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6897 |
+
2023/Identifiability[[:space:]]Results[[:space:]]for[[:space:]]Multimodal[[:space:]]Contrastive[[:space:]]Learning/612f8d92-6b1c-48c7-9663-1d6a688192d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6898 |
+
2023/Images[[:space:]]as[[:space:]]Weight[[:space:]]Matrices_[[:space:]]Sequential[[:space:]]Image[[:space:]]Generation[[:space:]]Through[[:space:]]Synaptic[[:space:]]Learning[[:space:]]Rules/2eeefc7f-d1e5-4e94-83de-796d9cb8549e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6899 |
+
2023/ImaginaryNet_[[:space:]]Learning[[:space:]]Object[[:space:]]Detectors[[:space:]]without[[:space:]]Real[[:space:]]Images[[:space:]]and[[:space:]]Annotations/e1028628-5749-48e9-8b17-c1c6ff80b38f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6900 |
+
2023/Imbalanced[[:space:]]Semi-supervised[[:space:]]Learning[[:space:]]with[[:space:]]Bias[[:space:]]Adaptive[[:space:]]Classifier/6bc93696-9379-40b0-8da3-b8abc277d5c6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6901 |
+
2023/Imitating[[:space:]]Graph-Based[[:space:]]Planning[[:space:]]with[[:space:]]Goal-Conditioned[[:space:]]Policies/9a7b06ea-9a5d-492d-94e0-a1cf3d66b893_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6902 |
+
2023/Imitating[[:space:]]Human[[:space:]]Behaviour[[:space:]]with[[:space:]]Diffusion[[:space:]]Models/40020ed9-3d7a-4fb8-a4d4-57e401196e4d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6903 |
+
2023/Implicit[[:space:]]Regularization[[:space:]]for[[:space:]]Group[[:space:]]Sparsity/b5135685-afe9-4290-ab73-3b26230e4f19_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6904 |
+
2023/Impossibly[[:space:]]Good[[:space:]]Experts[[:space:]]and[[:space:]]How[[:space:]]to[[:space:]]Follow[[:space:]]Them/9f666edc-1c6c-44e3-95fa-0d90469e9139_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6905 |
+
2023/Improved[[:space:]]Convergence[[:space:]]of[[:space:]]Differential[[:space:]]Private[[:space:]]SGD[[:space:]]with[[:space:]]Gradient[[:space:]]Clipping/bf0c2720-0d0d-41e3-a5af-aacceeecab8b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 6906 |
+
2023/Improved[[:space:]]Learning-augmented[[:space:]]Algorithms[[:space:]]for[[:space:]]k-means[[:space:]]and[[:space:]]k-medians[[:space:]]Clustering/536d20b8-3ace-4d46-820b-dec3b031a156_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/a8eca6cf-55fd-4234-ae59-c025bf97ab26_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d2c6390d9c85d49e694f407acc13c1f9f6cc68d6d590f1fbc7a6cad58e5c4724
|
| 3 |
+
size 4359767
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/full.md
ADDED
|
@@ -0,0 +1,518 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GOBIGGER: A SCALABLE PLATFORM FOR COOPERATIVE-COMPETITIVE MULTI-AGENT REINFORCEMENT LEARNING
|
| 2 |
+
|
| 3 |
+
Ming Zhang $^{1*}$ , Shenghan Zhang $^{1*}$ , Zhenjie Yang $^{1*}$ , Lekai Chen $^{1*}$ , Jinliang Zheng $^{1}$ , Chao Yang $^{2}$ , Chuming Li $^{1}$ , Hang Zhou $^{1}$ , Yazhe Niu $^{2}$ , Yu Liu $^{1,2\dagger}$
|
| 4 |
+
|
| 5 |
+
$^{1}$ SenseTime Research, $^{2}$ Shanghai AI Laboratory, Shanghai, China
|
| 6 |
+
{zhangming, zhangshenghan, yangzhenjie, chenlekai, zhengjinliang, zhouhang2}@sensetime.com
|
| 7 |
+
{lichuming, niuyazhe, liuyu}@pjlab.org.cn
|
| 8 |
+
|
| 9 |
+
# ABSTRACT
|
| 10 |
+
|
| 11 |
+
The emergence of various multi-agent environments has motivated powerful algorithms to explore agents' cooperation or competition. Even though this has greatly promoted the development of multi-agent reinforcement learning (MARL), it is still not enough to support further exploration on the behavior of swarm intelligence between multiple teams, and cooperation between multiple agents due to their limited scalability. To alleviate this, we introduce GoBigger, a scalable platform for cooperative-competition multi-agent interactive simulation. GoBigger is an enhanced environment for the Agar-like game, enabling the simulation of multiple scales of agent intra-team cooperation and inter-team competition. Compared with existing multi-agent simulation environments, our platform supports multi-team games with more than two teams simultaneously, which dramatically expands the diversity of agent cooperation and competition, and can more effectively simulate the swarm intelligent agent behavior. Besides, in GoBigger, the cooperation between the agents in a team can lead to much higher performance. We offer a diverse set of challenging scenarios, built-in bots, and visualization tools for best practices in benchmarking. We evaluate several state-of-the-art algorithms on GoBigger and demonstrate the potential of the environment. We believe this platform can inspire various emerging research directions in MARL, swarm intelligence, and large-scale agent interactive learning. Both GoBigger and its related benchmark are open-sourced. More information could be found at https://github.com/opendilab/GoBigger.
|
| 12 |
+
|
| 13 |
+
# 1 INTRODUCTION
|
| 14 |
+
|
| 15 |
+
The swarm behavior of multi-agent systems (MAS) widely exists in nature and human society. In MAS, individual agent pursues their goal and interacts with each other in local areas, following the rules of cooperation or competition, and then the intelligent behavior of the agent group forms the complex collective behaviors. The phenomena of collective behaviors can be found in the flocking birds (Bhattacharya & Vicsek, 2010), molecular motors (Chowdhury, 2006), human crowds (Helbing et al., 2000), and traffic systems (Kanagaraj & Treiber, 2018). To understand and simulate such phenomena, some rule-based models (Castellano et al., 2009) can simulate the swarm behavior in an unconstrained environment with random movement. However, in a complex interactive environment such as intra-cellular molecular motor transport, where the interaction of agents is time-varying and updatable, it is challenging to recover the underlying collective behaviors by manually designing the controllers or rules.
|
| 16 |
+
|
| 17 |
+
Interactive simulation of multi-agent systems can provide significant convenience for multi-agent learning algorithms. Some existing multi-agent simulation environments mainly focus on the coop-
|
| 18 |
+
|
| 19 |
+

|
| 20 |
+
Figure 1: New users can follow the given research workflow, while advanced users can customize the configuration of the environment and define new tasks based on GoBigger. The lower left part shows the basic units (balls) and the related actions. The lower right part shows the training in the league with many games going on at the same time, from where cooperative and competitive behaviors of agents can be observed.
|
| 21 |
+
|
| 22 |
+
eration (Xuan et al., 2001) between agents, such as Bi-DexHands (Chen et al., 2022), Multi-Agent MuJoCo (Peng et al., 2021), PressurePlate McInroe (2022), RWARE (Papoudakis et al., 2021), and Flatland (Mohanty et al., 2020). These environments offer simulation designs for cooperation between agents but do not care about multi-agent competition. With the rapid development of the field of multi-agent reinforcement learning, more and more multi-agent simulation environments focus on both cooperation and competition, including LBF (Papoudakis et al., 2020), MALMO (Johnson et al., 2016), DM Lab (Beattie et al., 2016), DM Lab2D (Beattie et al., 2020), Derk's Gym Noren (2020), PommerMan (Resnick et al., 2018), StarCraft Multi-Agent Challenge (SMAC) (Samvelyan et al., 2019), Google Research Football (Kurach et al., 2019), Multi-Agent Particle Environment (MPE) (Mordatch & Abbeel, 2017), Hide and Seek (Baker et al., 2019), and Neural MMO (Suarez et al., 2021). Agents in these environments are divided into different teams to achieve intra-team cooperation and inter-team competition. However, most of them consist of up to two teams, named $2 \times N$ mode. That means they can not handle situations where multiple teams cooperate or compete with each other, which is necessary for the research on the swarm behavior of multi-agent systems. Besides, the performance gap caused by different levels of cooperation is not significant in most environments including SMAC, Google Research Football, and NeuralMMO. For the most popular multi-agent environment SMAC, recently SMACv2 (Ellis, 2022) shows that agents can get high performance after dropping teammates' observations. The author uses only the identity and observation of agents in the training phase under QMIX (Rashid et al., 2018) and MAPPO (Yu et al., 2021) to achieve the same performance as that using the global state additionally. And the replay videos of these environments with well-trained agents could not show the complex cooperation. For those environments that emphasize cooperation through game mechanics, the observations of them are too simple that different multi-agent algorithms can easily reach high performance. More details about the various multi-agent simulation environments are shown in Table 1.
|
| 23 |
+
|
| 24 |
+
In this paper, we propose a scalable platform, GoBigger, aiming to delve into cooperative-competitive multi-agent reinforcement learning for swarm intelligence between multiple teams. Different from the previous multi-agent simulation environment, GoBigger is a scalable environment that enables the simulation of various teams and agents in each team. In other words, in the $M \times N$ game mode of GoBigger, $M$ means the number of teams in the environment, and $N$ means the number of players in each team. This new game mode dramatically expands the way of agent cooperation and competition and can more effectively simulate the swarm intelligent agent behavior. In addition, GoBigger makes agents with intra-team cooperation and inter-team competition achieve higher performance according to the restriction of game mechanics and rules, which is approved in Section 6.1. We offer a diverse set of challenge scenarios in GoBigger for best practices in benchmarking. In most of the given scenarios, each player in a team is controlled by an independent agent that has to act based on only its local observation or all teammates' observations. Meanwhile, GoBigger is a more complex
|
| 25 |
+
|
| 26 |
+
Table 1: Comparison of GoBigger with other related multi-agent simulation environments. Agents Size denotes agent scale in the interactive environment, where $M$ and $N$ mean the number of competitive teams and the agent number in each team, respectively, in the $M \times N$ settings. Actions denotes whether the action space is continuous, discrete, or hybrid. Obs denotes whether to support the partial observation. + in Coop and Comp indicates the importance of cooperation and competition. - means there is no cooperation or competition in the environment.
|
| 27 |
+
|
| 28 |
+
<table><tr><td></td><td>Agents Size</td><td>Actions</td><td>Obs</td><td>Coop</td><td>Comp</td></tr><tr><td>SMAC (Samvelyan et al., 2019)</td><td>2 × N</td><td>Discrete</td><td>Partial</td><td>+</td><td>+++</td></tr><tr><td>GRF (Kurach et al., 2019)</td><td>2 × N</td><td>Discrete</td><td>Partial</td><td>+</td><td>+++</td></tr><tr><td>Bi-DexHands (Chen et al., 2022)</td><td>1 × N</td><td>Discrete</td><td>Full</td><td>+++</td><td>—</td></tr><tr><td>MPE (Mordatch & Abbeel, 2017)</td><td>2 × N</td><td>Hybrid</td><td>Full</td><td>++</td><td>++</td></tr><tr><td>Hide-and-Seek (Baker et al., 2019)</td><td>2 × N</td><td>Discrete</td><td>Partial</td><td>++</td><td>++</td></tr><tr><td>MAMujoco (Peng et al., 2021)</td><td>1 × N</td><td>Continuous</td><td>Partial</td><td>+++</td><td>—</td></tr><tr><td>NeuralMMO (Suarez et al., 2021)</td><td>M × N</td><td>Discrete</td><td>Partial</td><td>+</td><td>+++</td></tr><tr><td>GoBigger (Ours)</td><td>M × N</td><td>Hybrid</td><td>Partial</td><td>+++</td><td>+++</td></tr></table>
|
| 29 |
+
|
| 30 |
+
environment with well-designed action space and observation space, giving partial view for all agents in the game. A reproducible benchmark including several state-of-the-art algorithms under different scenarios is accessible for users to quickly get started with GoBigger and demonstrate the potential of the environment. GoBigger also features game systems configurable for users to research on individual aspects of intelligence and on combinations thereof, with given rule-based built-in bots and visualization tools to make it easier for users to evaluate their agents. The overview of the research workflow for users is shown in Figure 1.
|
| 31 |
+
|
| 32 |
+
# 2 RELATED WORK
|
| 33 |
+
|
| 34 |
+
Most multi-agent reinforcement learning environments are mainly designed for cooperation or competition between no more than two teams of agents. SMAC (Samvelyan et al., 2019) consists of a set of carefully designed micro scenarios and necessitates learning one or more micromanagement techniques to defeat the enemy. But the SOTA algorithms can achieve high scores even without cooperation between agents. Google Research Football (Kurach et al., 2019) is a novel open-source reinforcement learning environment provides different modes for both single-agent and multi-agent settings, while there is no baseline indicating multi-agent cooperation and competition in the environment. Furthermore, both SMAC and Google Research Football can not handle situations where multiple (more than two) teams in a game, making them unable to be used for the research on swarm behaviors. Agar (staghuntrpg) implemented with python is also available and is evaluated on recent works (Tang et al., 2021). However, it focuses on cooperation and competition between two players but not multiple teams, and its scenarios are not complex. Neural MMO (Suarez et al., 2021) is a massively multi-agent environment for AI research, which support spans 1 to 1024 agents and minute- to hours-long time horizons. It also allows $M \times N$ game mode in its scenarios, and agents need to cooperate with teammates to fight against other teams in the map. According to its given baselines, we find that agents in Neural MMO focus more on competition with other agents but less on cooperation up to now. And open-sourced agents in the challenge are more likely to play on their own instead of cooperating with teammates.
|
| 35 |
+
|
| 36 |
+
# 3 DESIGN PRINCIPLES AND SYSTEM OVERVIEW
|
| 37 |
+
|
| 38 |
+
GoBigger is inspired by the popular online multiplayer game Agar (SA). In a regular full game of Agar with OFA(One For All) mode, players cooperate with their teammates and fight against other teams for the final champion. On this basis, many modifications have been made to allow more
|
| 39 |
+
|
| 40 |
+
cooperation and competition in GoBigger. Each player, which is represented by one or more balls (dubbed clone ball), increases its size by colliding and merging with other balls within a bounded rectangular area in a limited time. The larger the size of clone balls, the higher the player's score. At the beginning of the game, a single controllable clone ball (one player) is randomly spawned on the map. In addition to the clone balls, there are three uncontrollable neutral balls in the game map (dubbed as food ball, spore ball, and thorn ball), as shown in Figure 1.
|
| 41 |
+
|
| 42 |
+
# 3.1 BASIC UNITS
|
| 43 |
+
|
| 44 |
+
Food Ball: Food balls are neutral resources and they are always fixed on the map. Clone balls can eat food balls, and then absorb their size. Food balls will be randomly and continuously generated until the number of available food balls reaches the maximum.
|
| 45 |
+
|
| 46 |
+
Spore Ball: Spore balls are ejected by clone balls. They will stay on the map and can be eaten by any other clone balls.
|
| 47 |
+
|
| 48 |
+
Thorn Ball: Thorn balls are another kind of neutral resource in the game. Different from food balls, they have a larger size and less quantity on the map. In addition, they can eat the spore balls ejected from clone balls and absorb their size. When a clone ball eats a thorn ball, it will evenly split into several small balls. It means a player can push a thorn ball to an opponent's clone ball, force it to split, and eat its small balls.
|
| 49 |
+
|
| 50 |
+
**Clone Ball:** A player consists of several clone balls and they are the only controllable balls. In addition, a clone ball can eat other smaller balls including food balls, thorn balls, spore balls, and clone balls (from teammates or opponents) by covering their center. Clone balls of an agent can be merged after a certain time. Clone balls will decay in size to ensure they will not grow too large. If all clone balls of a player are eaten, this player will respawn on the map randomly in the next frame. A player can control clone balls by the following three actions in total:
|
| 51 |
+
|
| 52 |
+
- Move: Moving can help a clone ball eat other balls or escape from danger. The bigger the clone ball, the slower it moves.
|
| 53 |
+
- Eject: Ejecting a spore ball can help a clone ball drop some size and move faster (Figure 1). When a clone ball ejects, a new spore ball will appear on the clone ball's moving direction at high speed but quickly slow down and stop.
|
| 54 |
+
- Split: Splitting helps a clone ball to evenly split into two clone balls (Figure 1). Besides, a player can have at most 16 clone balls. To move faster, a player can split and turn the clone balls into smaller ones and get a higher speed.
|
| 55 |
+
|
| 56 |
+
# 3.2 GAME SYSTEMS
|
| 57 |
+
|
| 58 |
+
The base game representation is a limited map comprising the units declared in Section 3.1. Note that the map is not a grid map, which means that the continuous state is a complex challenge for agents. At the same time, GoBigger makes the operating efficiency of the game acceptable for users. The whole game can be split into the following systems: resources, cooperation, and competition.
|
| 59 |
+
|
| 60 |
+
Resources: Resource system is designed for navigation and multi-task reasoning. In GoBigger, food balls and thorn balls can help the agents to grow larger. Eating food balls is safe but slow while eating thorn balls is dangerous but quick. There are food balls and thorn balls randomly distributed on the map. The agent needs to decide which ball to eat according to its current size and the state of other agents around it to obtain faster development. The initial state and the regeneration rates of resources are all configurable.
|
| 61 |
+
|
| 62 |
+
Cooperation: Cooperation system is designed for direct cooperation among agents in a team. For a single agent, the maximum number of clone balls is 16 (configurable), which causes an agent cannot move fast by splitting indefinitely on its own. At the same time, each clone ball of the agent has a 20 seconds cooldown period, which is reset after each split. When the clone ball is on its cooldown period, it cannot merge with other clone balls that belong to the same agent. This means that splitting is dangerous because failing to merge quickly can easily lead to attacks by other agents. The above two constraints make multiple agents in the same team need to cooperate and transfer size to each other by splitting and ejecting to move faster and ensure safety. In addition, the final ranking of
|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
(a) The full view of the game
|
| 66 |
+
|
| 67 |
+

|
| 68 |
+
(b) The partial view of players
|
| 69 |
+
Figure 2: Screenshots for the different observation methods of GoBigger. (a) The full view of the game with 4 teams and 3 players in each team. (b) The players in (a) have their observations, and the three figures in each column represent the three players' view from each team.
|
| 70 |
+
|
| 71 |
+
GoBigger is based on the size of the whole team. Therefore, frequent and reasonable cooperation within the team is an important condition for victory.
|
| 72 |
+
|
| 73 |
+
**Competition:** Competition system is designed for direct competition among different teams. In GoBigger, the agent loses some size after each timestep. This is more obvious when the agent is very large. Therefore, as the resources on the map decrease as the game progress, the agent needs to eat other agents to ensure its size. Agents can attack other agents by moving and splitting to gain their size. In addition, gathering the size of the team to fight against other agents can often have an advantage in the competition. GoBigger encourages competition among teams.
|
| 74 |
+
|
| 75 |
+
# 4 ENVIRONMENT
|
| 76 |
+
|
| 77 |
+
GoBigger provides a set of standard game environment configurations. To facilitate access to the current observation and the efficient control of the balls, GoBigger follows the design of gym (Brockman et al., 2016) and develops easy-to-use interfaces of observation and action.
|
| 78 |
+
|
| 79 |
+
# 4.1 OBSERVATION
|
| 80 |
+
|
| 81 |
+
As mentioned in Section 3, the observation space of GoBigger is quite complex. It consists of GlobalState and PlayerState:
|
| 82 |
+
|
| 83 |
+
GlobalState is shared by all players. It includes all essential global information, such as map size, total frames of the game, current running frame in the game, and the leaderboard which consists of the current scores and rankings of all teams.
|
| 84 |
+
|
| 85 |
+
PlayerState is player-wise. It is the information that can be observed within the view of each player, making GoBigger a partially observable MDP (POMDP) (Drake, 1962; Sondik, 1971). Specifically, the player's view depends on the range of the positions of its clone balls. Figure 2 shows the view of different players in a game. When the clone balls of a player are dispersed enough, a larger view will be applied to this player. Given a view, PlayerState contains the positions and radius of all balls in the view, including food balls, thorn balls, spore balls, and clone balls, as well as their owner.
|
| 86 |
+
|
| 87 |
+
More details can be found in Appendix A.1.
|
| 88 |
+
|
| 89 |
+
# 4.2 ACTION SPACE
|
| 90 |
+
|
| 91 |
+
The action space of the clone ball consists of move, eject and split could be shown as:
|
| 92 |
+
|
| 93 |
+
$$
|
| 94 |
+
a := (x, y, t). \tag {1}
|
| 95 |
+
$$
|
| 96 |
+
|
| 97 |
+
Table 2: GoBigger challenges. Agents Size denotes the number of agents on the map as Table 1. Map Size denotes the length and width of the map. Food denotes the range of food balls. Thorn denotes the range of thorn balls. Init Size denotes the size of clone balls at their first birth. Limited Frame denotes the number of frames in a game.
|
| 98 |
+
|
| 99 |
+
<table><tr><td>Name</td><td>Agents Size</td><td>Map Size</td><td>Food</td><td>Thorn</td><td>Init Size</td><td>Limited Frame</td></tr><tr><td colspan="7">Small maps</td></tr><tr><td>st_t1p1</td><td>1 × 1</td><td>32 × 32</td><td>[65, 75]</td><td>[1, 2]</td><td>1000</td><td>3600 (3min)</td></tr><tr><td>st_t1p2</td><td>1 × 2</td><td>48 × 48</td><td>[130, 150]</td><td>[2, 3]</td><td>1000</td><td>3600 (3min)</td></tr><tr><td>st_t2p1</td><td>2 × 1</td><td>48 × 48</td><td>[130, 150]</td><td>[2, 3]</td><td>1000</td><td>3600 (3min)</td></tr><tr><td>st_t2p2</td><td>2 × 2</td><td>64 × 64</td><td>[260, 300]</td><td>[3, 4]</td><td>13000</td><td>3600 (3min)</td></tr><tr><td>st_t3p2</td><td>3 × 2</td><td>88 × 88</td><td>[500, 560]</td><td>[5, 6]</td><td>13000</td><td>3600 (3min)</td></tr><tr><td colspan="7">Large maps</td></tr><tr><td>st_t4p3</td><td>4 × 3</td><td>128 × 128</td><td>[800, 900]</td><td>[9, 12]</td><td>1000</td><td>14400 (12min)</td></tr><tr><td>st_t5p3</td><td>5 × 3</td><td>128 × 128</td><td>[900, 1000]</td><td>[10, 12]</td><td>1000</td><td>14400 (12min)</td></tr><tr><td>st_t5p4</td><td>5 × 4</td><td>144 × 144</td><td>[900, 1000]</td><td>[10, 12]</td><td>1000</td><td>14400 (12min)</td></tr><tr><td>st_t6p4</td><td>6 × 4</td><td>144 × 144</td><td>[1000, 1100]</td><td>[11, 13]</td><td>1000</td><td>14400 (12min)</td></tr></table>
|
| 100 |
+
|
| 101 |
+
Here $a$ denotes the action, $(x,y)$ is a unit vector for the direction of movement, and $t$ is the action type for the clone ball to be executed in the current frame. When a player applies a direction $(x,y)$ , enforcement in this direction will be applied on all this player's clone balls and smoothly alters their movement direction to this direction in several frames. The action types consist of moving, ejecting, and splitting. Agents can complete development and attack according to the combination of different action types. For more details, please refer to Appendix A.2.
|
| 102 |
+
|
| 103 |
+
# 4.3 REWARD
|
| 104 |
+
|
| 105 |
+
In Gobigger, the goal of all teams is to become bigger and bigger and finally become the biggest. Thus a natural reward for a single agent is to consider its score change of two adjacent steps:
|
| 106 |
+
|
| 107 |
+
$$
|
| 108 |
+
\text {R e w a r d} _ {t} := \text {S c o r e} _ {t + 1} - \text {S c o r e} _ {t}. \tag {2}
|
| 109 |
+
$$
|
| 110 |
+
|
| 111 |
+
The above reward can directly reflects the players' growth and induce agents to grow bigger. But it can't encourage agents to cooperate and confront each other very well. Therefore, GoBigger provides some other kinds of reward functions as follows:
|
| 112 |
+
|
| 113 |
+
Example 1: Rapid development must come from eating a large number of thorn balls, so the reward function can be designed as the number of thorn balls eaten by the agent between two adjacent steps.
|
| 114 |
+
|
| 115 |
+
Example 2: The cooperation among teammates consists of ejecting spore balls to each other and eating teammates' clone balls, so the reward function can be designed as the number of spores and the number of clone balls eaten by teammates between two adjacent steps.
|
| 116 |
+
|
| 117 |
+
Example 3: To improve the offensive performance of the agent, the reward function can be designed as the number of clone balls that the agent eats from other teams between two adjacent steps.
|
| 118 |
+
|
| 119 |
+
With the help of different kinds of rewards and constraints, an agent with strong cooperation and aggression will be obtained. For more details of reward functions, please refer to Section 5.
|
| 120 |
+
|
| 121 |
+
# 4.4 SCENARIOS
|
| 122 |
+
|
| 123 |
+
GoBigger consists of a set of scenarios that aim to evaluate the learning cooperation and competition of different agents in different game settings. The scenarios are carefully designed with different settings including agents size, map size, food number, horn number, and so on. Most of the scenarios are a confrontation among over two teams of players. In different scenarios, agents need to learn to acquire resources on the map and fight against other teams through cooperation. Teams are only different in their locations of birth. When the specified time limit is reached, the team with the
|
| 124 |
+
|
| 125 |
+

|
| 126 |
+
Figure 3: Agents trained on $st\_t2p2$ , $st\_t3p2$ , and $st\_t4p3$ with DQN (the first row) and PPO (the second row). Each column (left to right) denotes the score against built-in bots, the average number of eaten food balls, the average number of eaten horn balls, and the average number of eaten clone balls from teammates.
|
| 127 |
+
|
| 128 |
+
higher score wins. In the evaluation phase, agents have to battle against other teams of agents in the scenarios. Built-in bots with different levels could be also chosen as competitors. The rule-based bots can increase their sizes quickly by eating the food balls and thorn balls and avoid being eaten by other players through the given rules. The complete list of challenges is presented in Table 2. The Init Size of $st\_t2p2$ and $st\_t3p2$ is 13000 to reduce farming time and make the agent more focused on cooperation and competition. According to the map size and the number of agents on the map, the scenarios are simply divided into two parts including small maps and large maps. The large maps may be more difficult as its larger observation while playing against more teams of agents.
|
| 129 |
+
|
| 130 |
+
# 5 EXPERIMENTS
|
| 131 |
+
|
| 132 |
+
In this section, we will present some experiments results of GoBigger, which are based on the most representative scenarios: $st\_t2p2$ , $st\_t3p2$ and $st\_t4p3$ . Details of observation encoding and neural network can be found in Appendix B.1. The agents learned by different RL algorithms are evaluated by fighting against the built-in bots of level 3 A.5 several times. The average score will be one of the most important metrics as it stands for the game level of the agents, showing cooperation and competition skills.
|
| 133 |
+
|
| 134 |
+
# 5.1 SINGLE AGENT ALGORITHMS
|
| 135 |
+
|
| 136 |
+
We apply DQN (Mnih et al., 2015) and PPO (Schulman et al., 2017) on GoBigger, where each agent only use its own observation and learns a value function independently. Training details are presented in Appendix B.3. The experiment results in different scenarios can be found in Figure 3. The score represents the game level of the agents. Agents can get high scores by eating more food balls and thorn balls in a limited time. It also shows that the popular single-agent algorithms can quickly converge in the given scenarios, inferring that GoBigger is a feasible and challenging environment for multi-agent reinforcement learning research.
|
| 137 |
+
|
| 138 |
+
# 5.2 MULTI AGENT ALGORITHMS
|
| 139 |
+
|
| 140 |
+
We also apply several state-of-the-art multi-agent algorithms including QMIX (Rashid et al., 2018), MAPPO (Yu et al., 2021), COMA (Foerster et al., 2018), and VMIX (Su et al., 2021) on GoBigger. The training details are presented in Appendix B.3. Figure 4 shows the performance of different multi-agent algorithms in GoBigger. Overall MAPPO achieves the highest scores when fighting against the built-in bots and is the best performer in all three scenarios with the fewest environment steps. Additionally, with a fixed number of steps, COMA has the worst performance of all algorithms, demonstrating the on-policy policy gradient methods can not have an advantage over different algorithms. Figure 4 also shows that the number of food balls and thorn balls grows rapidly in the training phase. This is in line with the expectations of the environments, in which the fastest way for an agent to farm is to eat food balls and thorn balls quickly. Besides, after enough steps, the agents
|
| 141 |
+
|
| 142 |
+

|
| 143 |
+
Figure 4: Agents trained on $st\_t2p2$ , $st\_t3p2$ , and $st\_t4p3$ with QMIX (the first row), VMIX (the second row), MAPPO (the third row), and COMA (the fourth row). Each column (left to right) denotes the score against built-in bots, the average number of eaten food balls, eaten thorn balls, and eaten clone balls from teammates.
|
| 144 |
+
|
| 145 |
+
learn to cooperate with teammates, which is shown from the number of `clone-team`. The growth of `clone-team` means that the agents are trying to merge with teammates.
|
| 146 |
+
|
| 147 |
+
The results in different scenarios are also shown in Figure 4. $st\_t2p2$ is a small map with only two teams and four agents, while $st\_t4p3$ is a large map containing four teams and each consists of three agents. QMIX plays well on small maps including $st\_t2p2$ and $st\_t3p2$ but plays bad on large map $st\_t4p3$ . We infer that the map of $st\_t4p3$ is too large and too difficult for agents to find their teammates, which causes a low level of cooperation.
|
| 148 |
+
|
| 149 |
+
# 6 ABLATION STUDY
|
| 150 |
+
|
| 151 |
+
GoBigger provides small and large maps for training on different scales. Here we explore some factors that have impacts on the performance of an agent, including the necessity of the observations from teammates, the frequency of acting in the game, and the ladder system.
|
| 152 |
+
|
| 153 |
+
# 6.1 DROPPING OBSERVATIONS FROM TEAMMATES
|
| 154 |
+
|
| 155 |
+
To explore the importance of cooperation in GoBigger, we drop the observations from teammates, making the agents decide their actions only based on their observations. Figure 5 shows that the agents with teammates' observations outperform the agents without observations from the whole team. Agents can not easily find their teammates without the observations sharing especially on a large map, i.e., $st\_t4p3$ , resulting that they could not cooperate with their teammates to fight against other teams, which is consistent with our original intention of designing the GoBigger. Appendix C.1 shows more details.
|
| 156 |
+
|
| 157 |
+

|
| 158 |
+
Figure 5: Comparing agents w/ or w/o observation from teammates. Each picture (left to right) denotes the performance of agents on $st\_t2p2$ , $st\_t3p2$ , and $st\_t4p3$ .
|
| 159 |
+
|
| 160 |
+

|
| 161 |
+
Figure 6: Comparing agents with different frequencies of actions on $st\_t2p2$ , $st\_t3p2$ , and $st\_t4p3$ (left to right). Each line denotes the score against bots with a certain frequency of actions.
|
| 162 |
+
|
| 163 |
+
# 6.2 FREQUENCY OF ACTIONS
|
| 164 |
+
|
| 165 |
+
In most reinforcement learning environments, agents will execute actions immediately after environments step(Jia et al., 2021). However, it is not necessary in a real-time game. For example, AlphaStar(Vinyals et al., 2019) uses a delay head in their network to predict delay of the next action. To save computing resources, we explore the impact of the frequency of actions on an agent's performance. Figure 6 shows that the agents with frequency $= 8$ outperform other settings. We infer this is because higher frequency will bring more redundant information, which is a little more difficult for agents to understand and distinguish.
|
| 166 |
+
|
| 167 |
+
# 6.3 LADDER SYSTEM AND LEADERBOARD
|
| 168 |
+
|
| 169 |
+
In multiplayer games, reward versus some specific opponents is not enough to fully measure agents skills in different situations. So we introduce a ladder system based on TrueSkill (Herbrich et al., 2006) to evaluate different kinds of agents objectively. This ladder system will make agents continuously play against each other, and then use their final ranks in each game to update their trueskill scores. Figure 11 shows the ladder system including all of our trained agents as well as built-in bot. More details of the ladder system could be found in Appendix C.2.
|
| 170 |
+
|
| 171 |
+
# 7 CONCLUSION AND FUTURE WORK
|
| 172 |
+
|
| 173 |
+
In this paper, GoBigger is presented as a scalable platform for multi-agent interactive simulation. GoBigger allows $M \times N$ game mode that focuses on intra-team cooperation and inter-team competition. We offer a diverse set of challenge scenarios in GoBigger for best practices in benchmarking. A reproducible benchmark including several state-of-the-art algorithms under different scenarios is accessible. GoBigger also features a game system configurable with given rule-based built-in bots and visualization tools to make it easier for users to evaluate their agents.
|
| 174 |
+
|
| 175 |
+
In the near future, we aim to explore more based on GoBigger. Considering the scenarios in GoBigger now are monotonous, we plan to develop more interesting and complex scenarios that require a higher level of coordination amongst agents. We also plan to expand GoBigger as a massive environment to host thousands of agents. With harder multi-agent coordination and competition problems, we aim to motivate further research in this domain, particularly in areas such as multi-agent exploration and coordination.
|
| 176 |
+
|
| 177 |
+
Acknowledgement. This work was supported by the National Key RD Program of China under Grant STI 2030—Major Projects 2021ZD0201300.
|
| 178 |
+
|
| 179 |
+
# REFERENCES
|
| 180 |
+
|
| 181 |
+
Bowen Baker, Ingmar Kanitscheider, Todor Markov, Yi Wu, Glenn Powell, Bob McGrew, and Igor Mordatch. Emergent tool use from multi-agent autocurricula. arXiv preprint arXiv:1909.07528, 2019.
|
| 182 |
+
Charles Beattie, Joel Z Leibo, Denis Teplyashin, Tom Ward, Marcus Wainwright, Heinrich Küttler, Andrew Lefrancq, Simon Green, Víctor Valdés, Amir Sadik, et al. Deepmind lab. arXiv preprint arXiv:1612.03801, 2016.
|
| 183 |
+
Charles Beattie, Thomas Köppe, Edgar A Duñez-Guzmán, and Joel Z Leibo. Deepmind lab2d. arXiv preprint arXiv:2011.07027, 2020.
|
| 184 |
+
Kunal Bhattacharya and Tamás Vicsek. Collective decision making in cohesive flocks. New Journal of Physics, 12(9):093019, 2010.
|
| 185 |
+
Greg Brockman, Vicki Cheung, Ludwig Pettersson, Jonas Schneider, John Schulman, Jie Tang, and Wojciech Zaremba. Openai gym, 2016.
|
| 186 |
+
Claudio Castellano, Santo Fortunato, and Vittorio Loreto. Statistical physics of social dynamics. Reviews of modern physics, 81(2):591, 2009.
|
| 187 |
+
Yuanpei Chen, Shengjie Wang, Hao Dong, Zongqing Lu, and Yaodong Yang. Bi-dexhands: Bimanual dexterous manipulation via reinforcement learning. https://github.com/PKU-MARL/DexterousHands, 2022.
|
| 188 |
+
Debashish Chowdhury. Collective effects in intra-cellular molecular motor transport: Coordination, cooperation and competition. Physica A: Statistical Mechanics and its Applications, 372(1):84-95, 2006.
|
| 189 |
+
Alvin W Drake. *Observation of a Markov process through a noisy channel*. PhD thesis, Massachusetts Institute of Technology, 1962.
|
| 190 |
+
Benjamin Ellis. Smacv2: A new benchmark for cooperative multi-agent reinforcement learning. https://github.com/oxwhirl/smacv2, 2022.
|
| 191 |
+
Jakob Foerster, Gregory Farquhar, Triantafyllos Afouras, Nantas Nardelli, and Shimon Whiteson. Counterfactual multi-agent policy gradients. In Proceedings of the AAAI conference on artificial intelligence, volume 32, 2018.
|
| 192 |
+
Simon Haykin. Neural networks: a comprehensive foundation. Prentice Hall PTR, 1994.
|
| 193 |
+
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.
|
| 194 |
+
Dirk Helbing, Illés Farkas, and Tamas Vicsek. Simulating dynamical features of escape panic. Nature, 407(6803):487-490, 2000.
|
| 195 |
+
Ralf Herbrich, Tom Minka, and Thore Graepel. TrueskillTM: a bayesian skill rating system. Advances in neural information processing systems, 19, 2006.
|
| 196 |
+
Ruonan Jia, Qingming Li, Wenzhen Huang, Junge Zhang, and Xiu Li. Consistency regularization for ensemble model based reinforcement learning. In 18th Pacific Rim International Conference on Artificial Intelligence, Proceedings, Part III 18, pp. 3-16. Springer, 2021.
|
| 197 |
+
Matthew Johnson, Katja Hofmann, Tim Hutton, and David Bignell. The malmo platform for artificial intelligence experimentation. In *Ijcai*, pp. 4246-4247. CiteSeer, 2016.
|
| 198 |
+
Venkatesan Kanagaraj and Martin Treiber. Self-driven particle model for mixed traffic and other disordered flows. Physica A: Statistical Mechanics and its Applications, 509:1-11, 2018.
|
| 199 |
+
Karol Kurach, Anton Raichuk, Piotr Stanczyk, Michal Zajac, Olivier Bachem, Lasse Espeholt, Carlos Riquelme, Damien Vincent, Marcin Michalski, Olivier Bousquet, et al. Google research football: A novel reinforcement learning environment. arXiv preprint arXiv:1907.11180, 2019.
|
| 200 |
+
|
| 201 |
+
Trevor McInroe. Repo for the multi-agent pressureplate environment. https://github.com/uoe-agents/pressureplate, 2022.
|
| 202 |
+
Volodymyr Mnih, Koray Kavukcuoglu, David Silver, Andrei A Rusu, Joel Veness, Marc G Bellemare, Alex Graves, Martin Riedmiller, Andreas K Fidjeland, Georg Ostrovski, et al. Human-level control through deep reinforcement learning. nature, 518(7540):529-533, 2015.
|
| 203 |
+
Sharada Mohanty, Erik Nygren, Florian Laurent, Manuel Schneider, Christian Scheller, Nilabha Bhattacharya, Jeremy Watson, Adrian Egli, Christian Eichenberger, Christian Baumberger, Gereon Vienken, Irene Sturm, Guillaume Sartoretti, and Giacomo Spigler. Flatland-rl: Multi-agent reinforcement learning on trains, 2020.
|
| 204 |
+
Igor Mordatch and Pieter Abbeel. Emergence of grounded compositional language in multi-agent populations. arXiv preprint arXiv:1703.04908, 2017.
|
| 205 |
+
John Fredrik Wilhelm Norén. Derk gym environment. https://gym.derkgame.com, 2020.
|
| 206 |
+
Georgios Papoudakis, Filippos Christianos, Lukas Schäfer, and Stefano V Albrecht. Comparative evaluation of multi-agent deep reinforcement learning algorithms. arXiv preprint arXiv:2006.07869, 2020.
|
| 207 |
+
Georgios Papoudakis, Filippos Christianos, Lukas Schäfer, and Stefano V. Albrecht. Benchmarking multi-agent deep reinforcement learning algorithms in cooperative tasks. In Proceedings of the Neural Information Processing Systems Track on Datasets and Benchmarks (NeurIPS), 2021. URL: http://arxiv.org/abs/2006.07869.
|
| 208 |
+
Bei Peng, Tabish Rashid, Christian Schroeder de Witt, Pierre-Alexandre Kamienny, Philip Torr, Wendelin Böhmer, and Shimon Whiteson. Facmac: Factored multi-agent centralised policy gradients. Advances in Neural Information Processing Systems, 34, 2021.
|
| 209 |
+
Tabish Rashid, Mikayel Samvelyan, Christian Schroeder, Gregory Farquhar, Jakob Foerster, and Shimon Whiteson. Qmix: Monotonic value function factorisation for deep multi-agent reinforcement learning. In International conference on machine learning, pp. 4295-4304. PMLR, 2018.
|
| 210 |
+
Cinjon Resnick, Wes Eldridge, David Ha, Denny Britz, Jakob Foerster, Julian Togelius, Kyunghyun Cho, and Joan Bruna. Pommerman: A multi-agent playground. CoRR, abs/1809.07124, 2018. URL http://arxiv.org/abs/1809.07124.
|
| 211 |
+
Miniclip SA. Agar.io. https://agar.io/.
|
| 212 |
+
Mikayel Samvelyan, Tabish Rashid, Christian Schroeder De Witt, Gregory Farquhar, Nantas Nardelli, Tim GJ Rudner, Chia-Man Hung, Philip HS Torr, Jakob Foerster, and Shimon Whiteson. The starcraft multi-agent challenge. arXiv preprint arXiv:1902.04043, 2019.
|
| 213 |
+
John Schulman, Filip Wolski, Prafulla Dhariwal, Alec Radford, and Oleg Klimov. Proximal policy optimization algorithms. arXiv preprint arXiv:1707.06347, 2017.
|
| 214 |
+
Edward Jay Sondik. The optimal control of partially observable Markov processes. Stanford University, 1971.
|
| 215 |
+
staghuntrpg. Python implement for agar. https://github.com/staghuntrpg/agar.
|
| 216 |
+
Jianyu Su, Stephen Adams, and Peter Beling. Value-decomposition multi-agent actor-critics. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 11352-11360, 2021.
|
| 217 |
+
Joseph Suarez, Yilun Du, Clare Zhu, Igor Mordatch, and Phillip Isola. The neural mmo platform for massively multiagent research. arXiv preprint arXiv:2110.07594, 2021.
|
| 218 |
+
Zhenggang Tang, Chao Yu, Boyuan Chen, Huazhe Xu, Xiaolong Wang, Fei Fang, Simon Du, Yu Wang, and Yi Wu. Discovering diverse multi-agent strategic behavior via reward randomization. arXiv preprint arXiv:2103.04564, 2021.
|
| 219 |
+
Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. Advances in neural information processing systems, 30, 2017.
|
| 220 |
+
|
| 221 |
+
Oriol Vinyals, Igor Babuschkin, Wojciech M Czarnecki, Michael Mathieu, Andrew Dudzik, Junyoung Chung, David H Choi, Richard Powell, Timo Ewalds, Petko Georgiev, et al. Grandmaster level in starcraft ii using multi-agent reinforcement learning. Nature, 575(7782):350-354, 2019.
|
| 222 |
+
Ping Xuan, Victor Lesser, and Shlomo Zilberstein. Communication decisions in multi-agent cooperation: Model and experiments. In Proceedings of the fifth international conference on Autonomous agents, pp. 616-623, 2001.
|
| 223 |
+
Chao Yu, Akash Velu, Eugene Vinitsky, Yu Wang, Alexandre Bayen, and Yi Wu. The surprising effectiveness of ppo in cooperative, multi-agent games. arXiv preprint arXiv:2103.01955, 2021.
|
| 224 |
+
|
| 225 |
+
# A GOBIGGER
|
| 226 |
+
|
| 227 |
+
# A.1 OBSERVATION
|
| 228 |
+
|
| 229 |
+
The observation in GoBigger is divided into two parts, including Global State and Player States. After each step, GoBigger will return observation for all agents in the environment. Here are the details for Global State. border denotes the map size of the game. total_frame denotes the number of total frames in the game. last_frame_count denotes the number of frames that have passed. leaderboard denotes the ranks and scores of all agents.
|
| 230 |
+
|
| 231 |
+
```txt
|
| 232 |
+
global_state = {
|
| 233 |
+
2 'border': [map_width, map_height],
|
| 234 |
+
3 'total_frame': total_frame,
|
| 235 |
+
4 'last_frame_count': last_frame_count,
|
| 236 |
+
5 'leaderboard': { team_name: team_size }
|
| 237 |
+
6 }
|
| 238 |
+
```
|
| 239 |
+
|
| 240 |
+
The Player States declare the specific states for each player (or agent) in each team. player_id denotes the identity of the player in the game. rectangle denotes the position of partial vision. overlap denotes all kinds of balls in the vision of the player, including the position, radius, score, velocity, direction, player_id, and team_id. team_name denotes the team's name of the player. score denotes the score of the player. can_eject denotes if the player can eject at this frame. can_split denotes if the player can split at this frame.
|
| 241 |
+
|
| 242 |
+
```python
|
| 243 |
+
1 player_states = {
|
| 244 |
+
2 player_id: {
|
| 245 |
+
3 'rectangle': [left_top_x, left_top_y, right_bottom_x, right_bottom_y],
|
| 246 |
+
4 'overlap': {
|
| 247 |
+
5 'food': [[position.x, position.y, radius, score], ...],
|
| 248 |
+
6 'thorns': [[position.x, position.y, radius, score, vel.x, vel.y], ...],
|
| 249 |
+
7 'spore': [[position.x, position.y, radius, score, vel.x, vel.y, owner], ...],
|
| 250 |
+
8 'clone': [[position.x, position.y, radius, score, vel.x, vel.y, direction.x, direction.y, player_id, team_id], ...],
|
| 251 |
+
9 },
|
| 252 |
+
10 'team_name': team_name,
|
| 253 |
+
11 'score': player_score,
|
| 254 |
+
12 'can_eject': bool,
|
| 255 |
+
13 'can_split': bool,
|
| 256 |
+
14 },
|
| 257 |
+
15 ...
|
| 258 |
+
16 }
|
| 259 |
+
```
|
| 260 |
+
|
| 261 |
+
The original structural observations may be difficult for new users in GoBigger. That's why we modified the observations into a simpler tensor array in Section B.1. New users can directly use the given observation encoder, while advanced users can build their own observation encoders which are more suitable for their algorithms.
|
| 262 |
+
|
| 263 |
+
# A.2 ACTION
|
| 264 |
+
|
| 265 |
+
In Section 4.2, we offers a simple action space for the control of agents. And the format of the given action could be shown as:
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
a := (x, y, t). \tag {3}
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
The value of $t$ is in $0,1,2$ , separately representing move, eject and split. Especially, when $t$ is 1 or 2, the clone balls will eject or split in the given direction decided by $(x,y)$ . At most time, a player has more than one clone ball. Under this circumstance, the action will be applied to all the clone balls of
|
| 272 |
+
|
| 273 |
+

|
| 274 |
+
(a)
|
| 275 |
+
|
| 276 |
+

|
| 277 |
+
(b)
|
| 278 |
+
Figure 7: Screenshots for one of the action combinations named middle-ejecting. This action combination will make agents gather their size into one big clone ball. (a) The clone ball is ready to eat the thorn ball. (b) After eating the thorn ball, the clone ball is forced to split into several pieces. (c) The agent ejects to the center. (d) The clone balls at the center eat the spore and merges their size together.
|
| 279 |
+
|
| 280 |
+

|
| 281 |
+
(c)
|
| 282 |
+
|
| 283 |
+

|
| 284 |
+
(d)
|
| 285 |
+
|
| 286 |
+
the player, i.e., all clone balls with sizes exceeding the split threshold will split when $t$ is 1, and all clone balls with sizes exceeding the eject threshold will eject spores when $t$ is 2.
|
| 287 |
+
|
| 288 |
+
# A.3 ACTION COMBINATIONS
|
| 289 |
+
|
| 290 |
+
Though the action space in GoBigger is simple, the combinations of different actions can lead to quick growth, attack, and escape. Figure 7 shows one of the action combinations named middle-ejecting, which is the combination of moving and ejecting. It is really useful to gather most of the size in one clone ball after eating the thorn ball. Besides, agents could use this action combination when they are split into too many pieces, which may help them to avoid being eaten by other agents. In the experiments in Section 5 we find that the agents can perform these action combinations.
|
| 291 |
+
|
| 292 |
+
# A.4 COLLISION DETECTION
|
| 293 |
+
|
| 294 |
+
The core problem of GoBigger is how to detect the collision of the balls in each frame and help the game update the state of the balls. The problem of collision detection could be simplified into a scenario where we need to get the collided balls from the given gallery balls for each ball in the given query balls. GoBigger has designed four collision detection algorithms as follows:
|
| 295 |
+
|
| 296 |
+
Exhaustive For each ball in the query, we enumerate each ball in the gallery to determine whether there is a collision. This is an exhaustive solution that will take a long time if the number of balls in the gallery is large. The complexity of the algorithm could be written in:
|
| 297 |
+
|
| 298 |
+
$$
|
| 299 |
+
O (n * m) \tag {4}
|
| 300 |
+
$$
|
| 301 |
+
|
| 302 |
+
where $m$ denotes the number of balls in the query, and $n$ denotes the number of balls in the gallery.
|
| 303 |
+
|
| 304 |
+
Precision Precision approximation algorithm divides the map into several rows according to the accuracy that has been set, dynamically maintain the row information in each frame and search by row. First, we need to sort the balls in each row according to their ordinate. For the balls in query, we abstract the boundary of the ball into a rectangle, then traverse each row in the rectangle, and find the first ball covered by the query through dichotomy in each row, and then Enumerate the balls in sequence until the ordinate exceeds the boundary of the query rectangle. The complexity of the algorithm could be written in:
|
| 305 |
+
|
| 306 |
+
$$
|
| 307 |
+
O (n * \log (n) + \Sigma r * \log (n) + p) \tag {5}
|
| 308 |
+
$$
|
| 309 |
+
|
| 310 |
+
where $m$ denotes the number of balls in query, $n$ denotes the number of balls in the gallery, $k$ denotes the precision we set, $r$ denotes the number of balls whose position status has changed and $p$ denotes the number of balls that collide with other balls.
|
| 311 |
+
|
| 312 |
+
RebuildQuadTree We build a Quadtree on a two-dimensional plane in every frame based on the positions of balls and search the collisions that happen among the balls in query and gallery according to the Quadtree. With the Quadtree, GoBigger can quickly find the nearby balls of the given query
|
| 313 |
+
|
| 314 |
+
ball, which helps to search the collisions in a relatively small search area. The complexity of the algorithm could be written in:
|
| 315 |
+
|
| 316 |
+
$$
|
| 317 |
+
O (n * \log (n) + m * \log (n) + p) \tag {6}
|
| 318 |
+
$$
|
| 319 |
+
|
| 320 |
+
where $m$ denotes the number of balls in query, $n$ denotes the number of balls in the gallery, and $p$ denotes the number of balls that collide with other balls.
|
| 321 |
+
|
| 322 |
+
RemoveQuadTree This algorithm is based on the RebuildQuadTree A.4, and we add the operations of deleting nodes in the tree with dynamically maintaining the tree. The complexity of the algorithm could be written in:
|
| 323 |
+
|
| 324 |
+
$$
|
| 325 |
+
O (r * \log (n) + m * \log (n) + p) \tag {7}
|
| 326 |
+
$$
|
| 327 |
+
|
| 328 |
+
where $m$ denotes the number of balls in query, $n$ denotes the number of balls in the gallery, $r$ denotes the number of balls whose position status has changed and $p$ denotes the number of balls that collide with other balls.
|
| 329 |
+
|
| 330 |
+
To test the efficiency of the above algorithms, we modify the parameters including the number of balls in query and gallery, the number of changed balls, and the iteration rounds to get a more fair and intuitive result. The data in Table 3 comes from the most representative scenarios. We finally choose Precision A.4 as our default algorithm for collision detection.
|
| 331 |
+
|
| 332 |
+
Table 3: Comparison of the different algorithms of collision detection on different settings. $T$ denotes the number of balls in the gallery. $Q$ denotes the number of balls in the query. $C$ denotes the number of changing balls, which means the number of collisions.
|
| 333 |
+
|
| 334 |
+
<table><tr><td></td><td>T=3000</td><td>T=3000</td><td>T=10000</td><td>T=10000</td><td>T=30000</td></tr><tr><td></td><td>Q=300</td><td>Q=300</td><td>Q=1000</td><td>Q=2000</td><td>Q=600</td></tr><tr><td></td><td>C=600</td><td>C=1500</td><td>C=2000</td><td>C=5000</td><td>C=3000</td></tr><tr><td>Exhaustive</td><td>688ms</td><td>1067ms</td><td>8384ms</td><td>12426ms</td><td>127000ms</td></tr><tr><td>Precision</td><td>14ms</td><td>16ms</td><td>61ms</td><td>86ms</td><td>403ms</td></tr><tr><td>Rebuild QuadTree</td><td>47ms</td><td>50ms</td><td>339ms</td><td>586ms</td><td>5691ms</td></tr><tr><td>Remove QuadTree</td><td>48ms</td><td>178ms</td><td>497ms</td><td>2460ms</td><td>8419ms</td></tr></table>
|
| 335 |
+
|
| 336 |
+
# A.5 BUILT-IN BOTS
|
| 337 |
+
|
| 338 |
+
Built-in bots of different levels can help users to get started with the environment and perform a standard evaluation for algorithm development. Level 1 The bot of level 1 aims to collect neutral resources on the map for quick development in size. It can only move and eat the closest food balls in its view. Level 2 We add the exploration of thorn balls in view for the bot of level 2. The bot prefers to eat thorn ball in its view. Level 3 The bot of level 3 can avoid being eaten by other larger players as they will move far away from the larger player in their view.
|
| 339 |
+
|
| 340 |
+
# B EXPERIMENTS
|
| 341 |
+
|
| 342 |
+
# B.1 OBSERVATION TRANSFORM
|
| 343 |
+
|
| 344 |
+
It is challenging to encode thousands of entities compared to other multi-agent environments. In order to better model the observation information, we transform the original information into Scalar info, Spatial info, Team info, Ball info. As shown in (Figure 8), Scalar Info models the size of the agent's local vision, the current ranking and score, and the action type at the last moment. Spatial info models the location of different types of balls in vision. Team info models information of teammates in vision. Ball info models the properties of different balls, including relative position, size, and speed. Here are more details of the information after transformation.
|
| 345 |
+
|
| 346 |
+

|
| 347 |
+
Figure 8: The overview of feature encoder.
|
| 348 |
+
|
| 349 |
+
# Scalar info
|
| 350 |
+
|
| 351 |
+
- (view_x, view_y): The positions of the center of the observation.
|
| 352 |
+
- view_width: The width of the observation.
|
| 353 |
+
- score: Score of the agent.
|
| 354 |
+
- team_score: Team score of the agent.
|
| 355 |
+
time: Remaining game time.
|
| 356 |
+
rank: Rank of the agent.
|
| 357 |
+
- last_action_type: Action type in the previous step.
|
| 358 |
+
|
| 359 |
+
# Ball info
|
| 360 |
+
|
| 361 |
+
- alliance: The numbering for different types in observation.
|
| 362 |
+
- score: Scores for different types of balls.
|
| 363 |
+
- radius: Radius for different types of balls.
|
| 364 |
+
- rank: Rank for different types of balls.
|
| 365 |
+
- x,y: position for different types of balls.
|
| 366 |
+
- next_x, next_y: The predicted position in the next frame for different types of balls.
|
| 367 |
+
- ball_num: The number of the balls(clone and thorn) in observation.
|
| 368 |
+
|
| 369 |
+
# Team info
|
| 370 |
+
|
| 371 |
+
- alliance: The teammate's identity information.
|
| 372 |
+
- view_x,view_y: The teammate's position information.
|
| 373 |
+
- player_num: The number of the teammates.
|
| 374 |
+
|
| 375 |
+
# Spatial info
|
| 376 |
+
|
| 377 |
+
- food_x, food_y: The position of food balls.
|
| 378 |
+
- spore_x, spore_y: The position of spore balls.
|
| 379 |
+
- ball_x, ball_y: The position of clone balls and thorn balls.
|
| 380 |
+
- food_num: The number of food balls.
|
| 381 |
+
- spore_num: The number of spore balls.
|
| 382 |
+
|
| 383 |
+

|
| 384 |
+
Figure 9: Neural network in experiments.
|
| 385 |
+
|
| 386 |
+
# B.2 NEURAL NETWORK
|
| 387 |
+
|
| 388 |
+
The neural network in our experiments consists of MLP (Haykin, 1994), Transformer (Vaswani et al., 2017), and ResNet (He et al., 2016). The specific structure is shown in Figure 9. Finally, we concatenate all the output embeddings into a feature.
|
| 389 |
+
|
| 390 |
+
# B.3 EXPERIMENTAL SETUP
|
| 391 |
+
|
| 392 |
+
DQN The batch_size is set as 512. learning_rate is 1e-4, replay_buffer_size is 2e4.
|
| 393 |
+
|
| 394 |
+
PPO The batch_size is set as 256. clip_range is 0.2, gae_lambda is 0.95, and grad Clip is 0.5.
|
| 395 |
+
|
| 396 |
+
QMIX The batch_size is set as 512. learning_rate is 1e-4, replay_buffer_size is 2e4.
|
| 397 |
+
|
| 398 |
+
MAPPO The batch_size is set as 512. clip_range is 0.2, gae_lambda is 0.95, and grad Clip is 0.5.
|
| 399 |
+
|
| 400 |
+
VMIX The batch_size is set as 2048, and the data in every step contains all the observations and actions of all the agents. td_lambda is 0.95, and grad Clip is 0.5.
|
| 401 |
+
|
| 402 |
+
COMA The batch_size is set as 2048, and the data in every step contains all the observations and actions of all the agents. td_lambda is 0.95, target_update_interval is 20, and grad Clip is 0.5.
|
| 403 |
+
|
| 404 |
+
# C ABLATION STUDY
|
| 405 |
+
|
| 406 |
+
# C.1 DROPPING OBSERVATIONS FROM TEAMMATES
|
| 407 |
+
|
| 408 |
+
Figure 10 shows the food, thorn, spore, clone_self, clone-team, and clone_other of the experiments in Section 6.1. With the observations from teammates, agents are more likely to eat thorn balls instead of food balls. We can find that the number of eaten thorn balls is more than that without the observations, as eating thorn balls can provide more scores. A single agent can not eat too many thorn balls, as it will split into several pieces after eating a thorn ball. With the cooldown period, an agent can not merge quickly to gather enough size to eat the next thorn ball. But when an agent learns to cooperate with teammates, they can gather size quickly and eat the next thorn ball ignoring the cooldown period, which could be found by the number of clone_team in the figure. Eating more clone balls from teammates means that the agents can better cooperate with other agents in the same team.
|
| 409 |
+
|
| 410 |
+
# C.2 LADDER SYSTEM AND LEADERBOARD
|
| 411 |
+
|
| 412 |
+
Our ladder system is based on TrueSkill (Herbrich et al., 2006), which is a skill-based ranking system developed by Microsoft for use with video game matchmaking on Xbox Live. TrueSkill is designed to support games with more than two players. In our ladder system, we assume that each contestant
|
| 413 |
+
|
| 414 |
+

|
| 415 |
+
|
| 416 |
+

|
| 417 |
+
|
| 418 |
+

|
| 419 |
+
|
| 420 |
+

|
| 421 |
+
|
| 422 |
+

|
| 423 |
+
|
| 424 |
+

|
| 425 |
+
|
| 426 |
+

|
| 427 |
+
|
| 428 |
+

|
| 429 |
+
(a) $st\_t2p2$
|
| 430 |
+
|
| 431 |
+

|
| 432 |
+
|
| 433 |
+

|
| 434 |
+
|
| 435 |
+

|
| 436 |
+
|
| 437 |
+

|
| 438 |
+
|
| 439 |
+

|
| 440 |
+
|
| 441 |
+

|
| 442 |
+
(b) $st\_ t3p2$
|
| 443 |
+
|
| 444 |
+

|
| 445 |
+
|
| 446 |
+

|
| 447 |
+
Figure 10: Comparing agents w/ or w/o observation from teammates.
|
| 448 |
+
|
| 449 |
+

|
| 450 |
+
(c) $st\_t4p3$
|
| 451 |
+
|
| 452 |
+

|
| 453 |
+
|
| 454 |
+
controls a whole team. The contestant continuously plays against other contestant and update their scores based on the ranking at the end of the game. The initial score for each contestant is 1000. To ensure the balance of contestants' matches, we select the contestant with the least number of matches each time. Eq 8 shows the quality we use as the indicator for selecting opponents.
|
| 455 |
+
|
| 456 |
+
$$
|
| 457 |
+
q u a l i t y _ {d r a w} \left(\beta^ {2}, \mu_ {i}, \mu_ {j}, \sigma_ {i}, \sigma_ {j}\right) = \sqrt {\frac {2 \beta^ {2}}{2 \beta^ {2} + \sigma_ {i} ^ {2} + \sigma_ {j} ^ {2}}} \cdot e x p \left(- \frac {\left(\mu_ {i} - \mu_ {j}\right) ^ {2}}{2 \left(2 \beta^ {2} + \sigma_ {i} ^ {2} + \sigma_ {j} ^ {2}\right)}\right) \tag {8}
|
| 458 |
+
$$
|
| 459 |
+
|
| 460 |
+

|
| 461 |
+
|
| 462 |
+

|
| 463 |
+
Figure 11: Comparing agents on the ladder system. The scenario is $st\_t2p2$ .
|
| 464 |
+
(a)
|
| 465 |
+
|
| 466 |
+

|
| 467 |
+
(b)
|
| 468 |
+
|
| 469 |
+

|
| 470 |
+
(c)
|
| 471 |
+
|
| 472 |
+

|
| 473 |
+
(d)
|
| 474 |
+
|
| 475 |
+

|
| 476 |
+
(e)
|
| 477 |
+
|
| 478 |
+

|
| 479 |
+
Figure 12: Screenshots of cooperating to eat the thorn ball. (a) The clone ball A and B get closed to each other. (b) The clone ball B eject to the A. (c) The clone ball A eat the spore and grow bigger. (d) The clone ball A eat several clone balls from teammates and grow big enough to eat the thorn ball. (e) The clone ball A eat the thorn ball.
|
| 480 |
+
(a)
|
| 481 |
+
Figure 13: Screenshots of competition between different agents. (a) The green clone balls find the purple clone balls nearby. (b) The green clone balls split to eat the purple ones. (c) The purple clone balls gather together to avoid being eaten by the green clone balls.
|
| 482 |
+
|
| 483 |
+

|
| 484 |
+
(b)
|
| 485 |
+
|
| 486 |
+

|
| 487 |
+
(c)
|
| 488 |
+
|
| 489 |
+
where contestant $i$ is assumed to exhibit a performance $p_i \sim \mathbb{N}(p_i; \mu_i, \sigma_i^2)$ , contestant $j$ is assumed to exhibit a performance $p_j \sim \mathbb{N}(p_j; \mu_j, \sigma_j^2)$ , and $\beta^2 = \left(\frac{\sigma}{2}\right)^2$
|
| 490 |
+
|
| 491 |
+
Figure 11 shows the ladder system including all the trained agents in Section 5. Most of the contestants have played over 1500 games with other contestants. The ladder system ensures that each contestant can match opponents with similar game levels as much as possible while retaining the possibility of matching opponents with higher or lower game levels.
|
| 492 |
+
|
| 493 |
+
# D PERFORMANCE
|
| 494 |
+
|
| 495 |
+
In this section, we post some screenshots to show the actual performance of the agent in the game, including the cooperation with teammates and the competition with opponents.
|
| 496 |
+
|
| 497 |
+

|
| 498 |
+
(a)
|
| 499 |
+
|
| 500 |
+

|
| 501 |
+
(b)
|
| 502 |
+
Figure 14: Screenshots of cooperation between different agents. (a) The clone ball C is ready to eat the thorn ball. (b) The clone balls split into many pieces. (c) The clone balls eject to the center of the agents. (d) The clone balls finally merge into a big one.
|
| 503 |
+
|
| 504 |
+

|
| 505 |
+
(c)
|
| 506 |
+
|
| 507 |
+

|
| 508 |
+
(d)
|
| 509 |
+
|
| 510 |
+

|
| 511 |
+
(a)
|
| 512 |
+
Figure 15: Screenshots of competition between different agents. (a) The bule and green agents are competing for the thorn ball. (b) The green clone balls split to eat the thorn ball. (c) The blue clone balls split and eat the green clone balls and win more score.
|
| 513 |
+
|
| 514 |
+

|
| 515 |
+
(b)
|
| 516 |
+
|
| 517 |
+

|
| 518 |
+
(c)
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0ef0b8075d264d815027a0573980d2ef4634d95fc9e5742420eeb684c7844da2
|
| 3 |
+
size 948932
|
2023/GoBigger_ A Scalable Platform for Cooperative-Competitive Multi-Agent Interactive Simulation/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Boosting Performs Gaussian Process Inference/b10d8d05-993a-4a8b-96c2-7197ea39a497_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:30113124b019e53fe40f46b702ce340c01197682d9484bf33a98e262e5752eb9
|
| 3 |
+
size 859943
|
2023/Gradient Boosting Performs Gaussian Process Inference/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Boosting Performs Gaussian Process Inference/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4b5616dedcc2c60c02d991f456e6c428896a76005ebc4ca1ed08718572a3a65d
|
| 3 |
+
size 1593748
|
2023/Gradient Boosting Performs Gaussian Process Inference/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/295b00cf-d194-4be0-ab34-68d4c336c378_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fbd03efa42866dd6a792cab4187da00184295af1b9e8af6f0c8218737de1dc9f
|
| 3 |
+
size 665862
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/full.md
ADDED
|
@@ -0,0 +1,633 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRADIENT GATING FOR DEEP MULTI-RATE LEARNING ON GRAPHS
|
| 2 |
+
|
| 3 |
+
T. Konstantin Rusch
|
| 4 |
+
|
| 5 |
+
ETH Zürich, ICSI and UC Berkeley
|
| 6 |
+
|
| 7 |
+
konstantin.rusch@sam.math.ethz.ch
|
| 8 |
+
|
| 9 |
+
Benjamin P. Chamberlain
|
| 10 |
+
|
| 11 |
+
Charm Therapeutics
|
| 12 |
+
|
| 13 |
+
Michael W. Mahoney
|
| 14 |
+
|
| 15 |
+
ICSI, LBNL, and UC Berkeley
|
| 16 |
+
|
| 17 |
+
Michael M. Bronstein
|
| 18 |
+
|
| 19 |
+
University of Oxford
|
| 20 |
+
|
| 21 |
+
Siddhartha Mishra
|
| 22 |
+
|
| 23 |
+
ETH Zürich
|
| 24 |
+
|
| 25 |
+
# ABSTRACT
|
| 26 |
+
|
| 27 |
+
We present Gradient Gating $(\mathbf{G}^2)$ , a novel framework for improving the performance of Graph Neural Networks (GNNs). Our framework is based on gating the output of GNN layers with a mechanism for multi-rate flow of message passing information across nodes of the underlying graph. Local gradients are harnessed to further modulate message passing updates. Our framework flexibly allows one to use any basic GNN layer as a wrapper around which the multi-rate gradient gating mechanism is built. We rigorously prove that $\mathbf{G}^2$ alleviates the oversmoothing problem and allows the design of deep GNNs. Empirical results are presented to demonstrate that the proposed framework achieves state-of-the-art performance on a variety of graph learning tasks, including on large-scale heterophilic graphs.
|
| 28 |
+
|
| 29 |
+
# 1 INTRODUCTION
|
| 30 |
+
|
| 31 |
+
Learning tasks involving graph structured data arise in a wide variety of problems in science and engineering. Graph Neural Networks (GNNs) (Sperduti, 1994; Goller & Kuchler, 1996; Sperduti & Starita, 1997; Frasconi et al., 1998; Gori et al., 2005; Scarselli et al., 2008; Bruna et al., 2014; Defferrard et al., 2016; Kipf & Welling, 2017; Monti et al., 2017; Gilmer et al., 2017) are a popular deep learning architecture for graph-structured and relational data. GNNs have been successfully applied in domains including computer vision and graphics (Monti et al., 2017), recommender systems (Ying et al., 2018), transportation (Derrow-Pinion et al., 2021), computational chemistry (Gilmer et al., 2017), drug discovery (Gaudelet et al., 2021), particle physics (Shlomi et al., 2020) and social networks. See Zhou et al. (2019); Bronstein et al. (2021) for extensive reviews.
|
| 32 |
+
|
| 33 |
+
Despite the widespread success of GNNs and a plethora of different architectures, several fundamental problems still impede their efficiency on realistic learning tasks. These include the bottleneck (Alon & Yahav, 2021), oversquashing (Topping et al., 2021), and oversmoothing (Nt & Maehara, 2019; Oono & Suzuki, 2020) phenomena. Oversmoothing refers to the observation that all node features in a deep (multi-layer) GNN converge to the same constant value as the number of layers is increased. Thus, and in contrast to standard machine learning frameworks, oversmoothing inhibits the use of very deep GNNs for learning tasks. These phenomena are likely responsible for the unsatisfactory empirical performance of traditional GNN architectures in heterophilic datasets, where the features or labels of a node tend to be different from those of its neighbors (Zhu et al., 2020).
|
| 34 |
+
|
| 35 |
+
Given this context, our main goal is to present a novel framework that alleviates the oversmoothing problem and allows one to implement very deep multi-layer GNNs that can significantly improve performance in the setting of heterophilic graphs. Our starting point is the observation that in standard Message-Passing GNN architectures (MPNNs), such as GCN (Kipf & Welling, 2017) or GAT (Velickovic et al., 2018), each node gets updated at exactly the same rate within every hidden layer. Yet, realistic learning tasks might benefit from having different rates of propagation (flow) of information on the underlying graph. This insight leads to a novel multi-rate message passing scheme capable of learning these underlying rates. Moreover, we also propose a novel procedure that harnesses graph gradients to ameliorate the oversmoothing problem. Combining these elements leads to a new architecture described in this paper, which we term Gradient Gating $(\mathbf{G}^2)$ .
|
| 36 |
+
|
| 37 |
+
Main Contributions. We will demonstrate the following advantages of the proposed approach:
|
| 38 |
+
|
| 39 |
+
- $\mathbf{G}^2$ is a flexible framework wherein any standard message-passing layer (such as GAT, GCN, GIN, or GraphSAGE) can be used as the coupling function. Thus, it should be thought of as a framework into which one can plug existing GNN components. The use of multiple rates and gradient gating facilitates the implementation of deep GNNs and generally improves performance.
|
| 40 |
+
- $\mathbf{G}^2$ can be interpreted as a discretization of a dynamical system governed by nonlinear differential equations. By investigating the stability of zero-Dirichlet energy steady states of this system, we rigorously prove that our gradient gating mechanism prevents oversmoothing. To complement this, we also prove a partial converse, that the lack of gradient gating can lead to oversmoothing.
|
| 41 |
+
- We provide extensive empirical evidence demonstrating that $\mathbf{G}^2$ achieves state-of-the-art performance on a variety of graph learning tasks, including on large heterophilic graph datasets.
|
| 42 |
+
|
| 43 |
+
# 2 GRADIENT GATING
|
| 44 |
+
|
| 45 |
+
Let $\mathcal{G} = (\mathcal{V},\mathcal{E}\subseteq \mathcal{V}\times \mathcal{V})$ be an undirected graph with $|\mathcal{V}| = v$ nodes and $|\mathcal{E}| = e$ edges (unordered pairs of nodes $\{i,j\}$ denoted $i\sim j$ ). The 1-neighborhood of a node $i$ is denoted $\mathcal{N}_i = \{j\in \mathcal{V}:i\sim j\}$ . Furthermore, each node $i$ is endowed with an $m$ -dimensional feature vector $\mathbf{X}_i$ ; the node features are arranged into a $v\times m$ matrix $\mathbf{X} = (\mathbf{X}_{ik})$ with $i = 1,\dots ,v$ and $k = 1,\ldots ,m$ .
|
| 46 |
+
|
| 47 |
+
A typical residual Message-Passing GNN (MPNN) updates the node features by performing several iterations of the form,
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathbf {X} ^ {n} = \mathbf {X} ^ {n - 1} + \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right), \tag {1}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
where $\mathbf{F}_{\theta}$ is a learnable function with parameters $\theta$ , and $\sigma$ is an element-wise non-linear activation function. Here $n \geq 1$ denotes the $n$ -th hidden layer with $n = 0$ being the input.
|
| 54 |
+
|
| 55 |
+
One can interpret (1) as a discrete dynamical system in which $\mathbf{F}$ plays the role of a coupling function determining the interaction between different nodes of the graph. In particular, we consider local (1-neighborhood) coupling of the form $\mathbf{Y}_i = (\mathbf{F}(\mathbf{X},\mathcal{G}))_i = \mathbf{F}(\mathbf{X}_i,\{\{\mathbf{X}_{j\in \mathcal{N}_i}\})$ operating on the multiset of 1-neighbors of each node. Examples of such functions used in the graph machine learning literature (Bronstein et al., 2021) are graph convolutions $\mathbf{Y}_i = \sum_{j\in \mathcal{N}_i}c_{ij}\mathbf{X}_j$ (GCN, (Kipf & Welling, 2017)) and graph attention $\mathbf{Y}_i = \sum_{j\in \mathcal{N}_i}a(\mathbf{X}_i,\mathbf{X}_j)\mathbf{X}_j$ (GAT, (Velickovic et al., 2018)).
|
| 56 |
+
|
| 57 |
+
We observe that in (1), at each hidden layer, every node and every feature channel gets updated with exactly the same rate. However, it is reasonable to expect that in realistic graph learning tasks one can encounter multiple rates for the flow of information (node updates) on the graph. Based on this observation, we propose a multi-rate (MR) generalization of (1), allowing updates to each node of the graph and feature channel with different rates,
|
| 58 |
+
|
| 59 |
+
$$
|
| 60 |
+
\mathbf {X} ^ {n} = \left(1 - \boldsymbol {\tau} ^ {n}\right) \odot \mathbf {X} ^ {n - 1} + \boldsymbol {\tau} ^ {n} \odot \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right), \tag {2}
|
| 61 |
+
$$
|
| 62 |
+
|
| 63 |
+
where $\pmb{\tau}$ denotes a $v\times m$ matrix of rates with elements $\tau_{ik}\in [0,1]$ . Rather than fixing $\pmb{\tau}$ prior to training, we aim to learn the different update rates based on the node data $\mathbf{X}$ and the local structure of the underlying graph $\mathcal{G}$ , as follows
|
| 64 |
+
|
| 65 |
+
$$
|
| 66 |
+
\boldsymbol {\tau} ^ {n} (\mathbf {X} ^ {n - 1}, \mathcal {G}) = \bar {\sigma} (\hat {\mathbf {F}} _ {\hat {\theta}} (\mathbf {X} ^ {n - 1}, \mathcal {G})), \tag {3}
|
| 67 |
+
$$
|
| 68 |
+
|
| 69 |
+
where $\hat{\mathbf{F}}_{\hat{\theta}}$ is another learnable 1-neighborhood coupling function, and $\bar{\sigma}$ is a sigmoidal logistic activation function to constrain the rates to lie within [0, 1]. Since the multi-rate message-passing scheme (2) using (3) does not necessarily prevent oversmoothing (for any choice of the coupling function), we need to further constrain the rate matrix $\tau^n$ . To this end, we note that the graph gradient of scalar node features $\mathbf{y}$ on the underlying graph $\mathcal{G}$ is defined as $(\nabla \mathbf{y})_{ij} = \mathbf{y}_j - \mathbf{y}_i$ at the edge $i \sim j$ (Lim, 2015). Next, we will use graph gradients to obtain the proposed Gradient Gating $(\mathbf{G}^2)$ framework given by
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\hat {\boldsymbol {\tau}} ^ {n} = \sigma (\hat {\mathbf {F}} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})),
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
$$
|
| 76 |
+
\boldsymbol {\tau} _ {i k} ^ {n} = \tanh \left(\sum_ {j \in \mathcal {N} _ {i}} | \hat {\boldsymbol {\tau}} _ {j k} ^ {n} - \hat {\boldsymbol {\tau}} _ {i k} ^ {n} | ^ {p}\right), \tag {4}
|
| 77 |
+
$$
|
| 78 |
+
|
| 79 |
+
$$
|
| 80 |
+
\mathbf {X} ^ {n} = \left(1 - \boldsymbol {\tau} ^ {n}\right) \odot \mathbf {X} ^ {n - 1} + \boldsymbol {\tau} ^ {n} \odot \sigma (\mathbf {F} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})),
|
| 81 |
+
$$
|
| 82 |
+
|
| 83 |
+
where $\hat{\pmb{\tau}}_{jk}^n -\hat{\pmb{\tau}}_{ik}^n = (\nabla \hat{\pmb{\tau}}_{*k}^n)_{ij}$ denotes the graph-gradient and $\hat{\pmb{\tau}}_{*k}^{n}$ is the $k$ -th column of the rate matrix $\hat{\pmb{\tau}}^n$ and $p\geq 0$ . Since $\sum_{j\in \mathcal{N}_i}|\hat{\pmb{\tau}}_{jk}^n -\hat{\pmb{\tau}}_{ik}^n |^p\geq 0$ for all $i\in \mathcal{V}$ , it follows that $\pmb {\tau}^n\in [0,1]^{v\times m}$ for all $n$ , retaining its interpretation as a matrix of rates. The sum over the neighborhood $\mathcal{N}_i$ in (4) can be replaced by any permutation-invariant aggregation function (e.g., mean or max). Moreover, any standard message-passing procedure can be used to define the coupling functions $\mathbf{F}$ and $\hat{\mathbf{F}}$ (and, in particular, one can set $\hat{\mathbf{F}} = \mathbf{F}$ ). As an illustration, Fig. 1 shows a schematic diagram of the layer-wise update of the proposed $\mathbf{G}^2$ architecture.
|
| 84 |
+
|
| 85 |
+

|
| 86 |
+
Figure 1: Schematic diagram of $\mathbf{G}^2$ (4) showing the layerwise update of the latent node features $\mathbf{X}$ (at layer $n$ ). The norm of the graph-gradient (i.e., sum in second equation in (4)) is denoted as $\|\nabla\|_p^p$ .
|
| 87 |
+
|
| 88 |
+
The intuitive idea behind gradient gating in (4) is the following: If for any node $i \in \mathcal{V}$ local oversmoothing occurs, i.e., $\lim_{n \to \infty} \sum_{j \in \mathcal{N}_i} \| \mathbf{X}_i^n - \mathbf{X}_j^n \| = 0$ , then $\mathbf{G}^2$ ensures that the corresponding rate $\tau_i^n$ goes to zero (at a faster rate), such that the underlying hidden node feature $\mathbf{X}_i$ is no longer updated. This prevents oversmoothing by early-stopping of the message passing procedure.
|
| 89 |
+
|
| 90 |
+
# 3 PROPERTIES OF $\mathbf{G}^2$ -GNN
|
| 91 |
+
|
| 92 |
+
$\mathbf{G}^2$ is a flexible framework. An important aspect of $\mathbf{G}^2$ (4) is that it can be considered as a "wrapper" around any specific MPNN architecture. In particular, the hidden layer update for any form of message passing (e.g., GCN (Kipf & Welling, 2017), GAT (Velickovic et al., 2018), GIN (Xu et al., 2018) or GraphSAGE (Hamilton et al., 2017)) can be used as the coupling functions $\mathbf{F}$ , $\hat{\mathbf{F}}$ in (4). By setting $\boldsymbol{\tau} \equiv \mathbf{I}$ , (4) reduces to
|
| 93 |
+
|
| 94 |
+
$$
|
| 95 |
+
\mathbf {X} ^ {n} = \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right), \tag {5}
|
| 96 |
+
$$
|
| 97 |
+
|
| 98 |
+
a standard (non-residual) MPNN. As we will show in the following, the use of a non-trivial gradient-gated learnable rate matrix $\tau$ allows implementing very deep architectures that avoid oversmoothing.
|
| 99 |
+
|
| 100 |
+
Maximum Principle for node features. Node features produced by $\mathbf{G}^2$ satisfy the following Maximum Principle.
|
| 101 |
+
|
| 102 |
+
Proposition 3.1. Let $\mathbf{X}^n$ be the node feature matrix generated by iteration formula (4). Then, the features are bounded as follows:
|
| 103 |
+
|
| 104 |
+
$$
|
| 105 |
+
\min \left(- 1, \underline {{\sigma}}\right) \leq \mathbf {X} _ {i k} ^ {n} \leq \max \left(1, \bar {\sigma}\right), \quad \forall 1 \leq n, \tag {6}
|
| 106 |
+
$$
|
| 107 |
+
|
| 108 |
+
where the scalar activation function is bounded by $\underline{\sigma} \leq \sigma(z) \leq \overline{\sigma}$ for all $z \in \mathbb{R}$ .
|
| 109 |
+
|
| 110 |
+
The proof follows readily from writing (4) component-wise and using the fact that $0 \leq \tau_{ik}^{n} \leq 1$ , for all $1 \leq i \leq v, 1 \leq k \leq m$ and $1 \leq n$ .
|
| 111 |
+
|
| 112 |
+
Continuous limit of $\mathbf{G}^2$ . It has recently been shown (see Avelar et al. (2019); Poli et al. (2019); Zhuang et al. (2020); Xhonneux et al. (2020); Chamberlain et al. (2021a); Eliasof et al. (2021); Chamberlain et al. (2021b); Topping et al. (2021); Rusch et al. (2022a) and references therein)
|
| 113 |
+
|
| 114 |
+
that interesting properties of GNNs (with residual connections) can be understood by taking the continuous (infinite-depth) limit and analyzing the resulting differential equations.
|
| 115 |
+
|
| 116 |
+
In this context, we can derive a continuous version of (4) by introducing a small-scale $0 < \Delta t < 1$ and rescaling the rate matrix $\tau^n$ to $\Delta t\tau^n$ leading to
|
| 117 |
+
|
| 118 |
+
$$
|
| 119 |
+
\mathbf {X} ^ {n} = \left(1 - \Delta t \boldsymbol {\tau} ^ {n}\right) \odot \mathbf {X} ^ {n - 1} + \Delta t \boldsymbol {\tau} ^ {n} \odot \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right). \tag {7}
|
| 120 |
+
$$
|
| 121 |
+
|
| 122 |
+
Rearranging the terms in (7), we obtain
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
\frac {\mathbf {X} ^ {n} - \mathbf {X} ^ {n - 1}}{\Delta t} = \boldsymbol {\tau} ^ {n} \odot \left(\sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right) - \mathbf {X} ^ {n - 1}\right). \tag {8}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Interpreting $\mathbf{X}^n\approx \mathbf{X}(n\Delta t) = \mathbf{X}(t^n)$ , i.e., marching in time, corresponds to increasing the number of hidden layers. Letting $\Delta t\to 0$ , one obtains the following system of graph-coupled ordinary differential equations (ODEs):
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\frac {d \mathbf {X} (t)}{d t} = \boldsymbol {\tau} (t) \odot (\sigma (\mathbf {F} _ {\theta} (\mathbf {X} (t), \mathcal {G})) - \mathbf {X} (t)), \quad \forall t \geq 0,
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
\boldsymbol {\tau} _ {i k} (t) = \tanh \left(\sum_ {j \in \mathcal {N} _ {i}} | \hat {\boldsymbol {\tau}} _ {i k} (t) - \hat {\boldsymbol {\tau}} _ {j k} (t) | ^ {p}\right), \tag {9}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
$$
|
| 139 |
+
\hat {\pmb {\tau}} (t) = \hat {\sigma} (\hat {\mathbf {F}} _ {\hat {\boldsymbol {\theta}}} (\mathbf {X} ^ {n - 1}, \mathcal {G})).
|
| 140 |
+
$$
|
| 141 |
+
|
| 142 |
+
We observe that the iteration formula (4) acts as a forward Euler discretization of the ODE system (9). Hence, one can follow Chamberlain et al. (2021a) and design more general (e.g., higher-order, adaptive, or implicit) discretizations of the ODE system (9). All these can be considered as design extensions of (4).
|
| 143 |
+
|
| 144 |
+
Oversmoothing. Using the interpretation of (4) as a discretization of the ODE system (9), we can adapt the mathematical framework recently proposed in Rusch et al. (2022a) to study the oversmoothing problem. In order to formally define oversmoothing, we introduce the Dirichlet energy defined on the node features $\mathbf{X}$ of an undirected graph $\mathcal{G}$ as
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\mathcal {E} (\mathbf {X}) = \frac {1}{v} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \| \mathbf {X} _ {i} - \mathbf {X} _ {j} \| ^ {2}. \tag {10}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
Following Rusch et al. (2022a), we say that the scheme (9) oversmoothes if the Dirichlet energy decays exponentially fast,
|
| 151 |
+
|
| 152 |
+
$$
|
| 153 |
+
\mathcal {E} (\mathbf {X} (t)) \leq C _ {1} e ^ {- C _ {2} t}, \quad \forall t > 0, \tag {11}
|
| 154 |
+
$$
|
| 155 |
+
|
| 156 |
+
for some $C_{1,2} > 0$ . In particular, the discrete version of (11) implies that oversmoothing happens when the Dirichlet energy, decays exponentially fast as the number of hidden layers increases ((Rusch et al., 2022a) Definition 3.2).
|
| 157 |
+
|
| 158 |
+
Next, one can prove the following proposition further characterizing oversmoothing with the standard terminology of dynamical systems (Wiggins, 2003).
|
| 159 |
+
|
| 160 |
+
Proposition 3.2. The oversmoothing problem occurs for the ODEs (9) iff the hidden states $\mathbf{X}_i^* = \mathbf{c}$ , for all $i \in \mathcal{V}$ are exponentially stable steady states (fixed points) of the ODE (9), for some $\mathbf{c} \in \mathbb{R}^m$ .
|
| 161 |
+
|
| 162 |
+
In other words, for the oversmoothing problem to occur for this system, all the trajectories of the ODE (9) that start within the corresponding basin of attraction have to converge exponentially fast in time (according to (11)) to the corresponding steady state $\mathbf{c}$ . Note that the basins of attraction will be different for different values of $\mathbf{c}$ . The proof of this Proposition is a straightforward adaptation of the proof of Proposition 3.3 of Rusch et al. (2022a).
|
| 163 |
+
|
| 164 |
+
Given this precise formulation of oversmoothing, we will investigate whether and how gradient gating in (9) can prevent oversmoothing. For simplicity, we set $m = 1$ to consider only scalar node features (extension to vector node features is straightforward). Moreover, we assume coupling functions of the form $\mathbf{F}(\mathbf{X}) = \mathbf{A}(\mathbf{X})\mathbf{X}$ , expressed element-wise as (see also Chamberlain et al. (2021a); Rusch et al. (2022a)),
|
| 165 |
+
|
| 166 |
+
$$
|
| 167 |
+
(\mathbf {F} (\mathbf {X})) _ {i} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} \left(\mathbf {X} _ {i}, \mathbf {X} _ {j}\right) \mathbf {X} _ {j}. \tag {12}
|
| 168 |
+
$$
|
| 169 |
+
|
| 170 |
+
Here, $\mathbf{A}(\mathbf{X})$ is a matrix-valued function whose form covers many commonly used coupling functions stemming from the graph attention (GAT, where $\mathbf{A}_{ij} = \mathbf{A}(\mathbf{X}_i,\mathbf{X}_j)$ is learnable) or convolution operators (GCN, where $\mathbf{A}_{ij}$ is fixed). Furthermore, the matrices are right stochastic, i.e., the entries satisfy
|
| 171 |
+
|
| 172 |
+
$$
|
| 173 |
+
0 \leq \mathbf {A} _ {i j} \leq 1, \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} = 1. \tag {13}
|
| 174 |
+
$$
|
| 175 |
+
|
| 176 |
+
Finally, as the multi-rate feature of (9) has no direct bearing on the oversmoothing problem, we focus on the contribution of the gradient feedback term. To this end, we deactivate the multi-rate aspects and assume that $\hat{\pmb{\tau}}_i = \mathbf{X}_i$ for all $i\in \mathcal{V}$ , leading to the following form of (9):
|
| 177 |
+
|
| 178 |
+
$$
|
| 179 |
+
\begin{array}{l} \frac {d \mathbf {X} _ {i} (t)}{d t} = \boldsymbol {\tau} _ {i} (t) \left(\sigma \left(\sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} \mathbf {X} _ {j} (t)\right) - \mathbf {X} _ {i} (t)\right), \quad \forall t \geq 0, \tag {14} \\ \boldsymbol {\tau} _ {i} (t) = \tanh \left(\sum_ {j \in \mathcal {N} _ {i}} \| \mathbf {X} _ {j} (t) - \mathbf {X} _ {i} (t) \| ^ {p}\right). \\ \end{array}
|
| 180 |
+
$$
|
| 181 |
+
|
| 182 |
+
Lack of $\mathbf{G}^2$ can lead to oversmoothing. We first consider the case where the Gradient Gating is switched off by setting $p = 0$ in (14). This yields a standard GNN in which node features are evolved through message passing between neighboring nodes, without any explicit information about graph gradients. We further assume that the activation function is ReLU i.e., $\sigma(x) = \max(x, 0)$ . Given this setting, we have the following proposition on oversmoothing:
|
| 183 |
+
|
| 184 |
+
Proposition 3.3. Assume the underlying graph $\mathcal{G}$ is connected. For any $c\geq 0$ , let $\mathbf{X}_i^*\equiv c$ , for all $i\in \mathcal{V}$ be a (zero-Dirichlet energy) steady state of the ODEs (14). Moreover, assume no Gradient Gating $(p = 0$ in (14)) and
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
\mathbf {A} _ {i j} (c, c) = \mathbf {A} _ {j i} (c, c), \text {a n d} \mathbf {A} _ {i j} (c, c) \geq \underline {{a}}, \quad 1 \leq i, j \leq v, \tag {15}
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
with $0 < \underline{a} \leq 1$ and that there exists at least one node denoted w.l.o.g. with index 1 such that $\mathbf{X}_1(t) \equiv c$ , for all $t \geq 0$ . Then, the steady state $\mathbf{X}_i^* = \mathbf{c}$ , for all $i \in \mathcal{V}$ , of (14) is exponentially stable.
|
| 191 |
+
|
| 192 |
+
Proposition 3.2 implies that without gradient gating $(\mathbf{G}^2)$ , (9) can lead to oversmoothing. The proof, presented in SM C.1 relies on analyzing the time-evolution of small perturbations around the steady state $\mathbf{c}$ and showing that these perturbations decay exponentially fast in time (see (20)).
|
| 193 |
+
|
| 194 |
+
$\mathbf{G}^2$ prevents oversmoothing. We next investigate the effect of Gradient Gating in the same setting of Proposition 3.3. The following Proposition shows that gradient gating prevents oversmoothing:
|
| 195 |
+
|
| 196 |
+
Proposition 3.4. Assume the underlying graph $\mathcal{G}$ is connected. For any $c\geq 0$ and for all $i\in \mathcal{V}$ , let $\mathbf{X}_i^* \equiv c$ be a (zero-Dirichlet energy) steady state of the ODEs (14). Moreover, assume Gradient Gating $(p > 0)$ and that the matrix $\mathbf{A}$ in (14) satisfies (15) and that there exists at least one node denoted w.l.o.g. with index 1 such that $\mathbf{X}_1(t)\equiv c,$ for all $t\geq 0$ . Then, the steady state $\mathbf{X}_i^* = \mathbf{c},$ for all $i\in \mathcal{V}$ is not exponentially stable.
|
| 197 |
+
|
| 198 |
+
The proof, presented in SM C.2 clearly elucidates the role of gradient gating by showing that the energy associated with the quasi-linearized evolution equations (SM Eqn. (21)) is balanced by two terms (SM Eqn. (23)), both resulting from the introduction of gradient gating by setting $p > 0$ in (14). One of them is of indefinite sign and can even cause growth of perturbations around a steady state $\mathbf{c}$ . The other decays initial perturbations. However, the rate of this decay is at most polynomial (SM Eqn. (28)). For instance, the decay is merely linear for $p = 2$ and slower for higher values of $p$ . Thus, the steady state $\mathbf{c}$ cannot be exponentially stable and oversmoothing is prevented. This justifies the intuition behind gradient gating, namely, if oversmoothing occurs around a node $i$ , i.e., $\lim_{n\to \infty}\sum_{j\in \mathcal{N}_i}\| \mathbf{X}_i^n -\mathbf{X}_j^n\| = 0$ , then the corresponding rate $\tau_i^n$ goes to zero (at a faster rate), such that the underlying hidden node feature $\mathbf{X}_i$ stops getting updated.
|
| 199 |
+
|
| 200 |
+
# 4 EXPERIMENTAL RESULTS
|
| 201 |
+
|
| 202 |
+
In this section, we present an experimental study of $\mathbf{G}^2$ on both synthetic and real datasets. We use $\mathbf{G}^2$ with three different coupling functions: GCN (Kipf & Welling, 2017), GAT (Velickovic et al., 2018) and GraphSAGE (Hamilton et al., 2017).
|
| 203 |
+
|
| 204 |
+
Effect of $\mathbf{G}^2$ on Dirichlet energy. Given that oversmoothing relates to the decay of Dirichlet energy (11), we follow the experimental setup proposed by Rusch et al. (2022a) to probe the dynamics of the Dirichlet energy of Gradient-Gated GNNs, defined on a 2-dimensional $10\times 10$ regular grid with 4-neighbor connectivity. The node features $\mathbf{X}$ are randomly sampled from $\mathcal{U}([0,1])$ and then propagated through a 1000-layer GNN with random weights. We compare GAT, GCN and their gradient-gated versions ( $\mathbf{G}^2$ -GAT and $\mathbf{G}^2$ -GCN) in this experiment. Fig. 2 depicts on log-log scale the Dirichlet energy of each layer's output with respect to the layer number. We clearly observe that GAT and GCN oversmooth as the underlying Dirichlet energy converges exponentially fast to zero, resulting in the node features becoming indistinguishable. In practice, the Dirichlet energy for these architectures is $\approx 0$ after just ten hidden layers. On the other hand, and as suggested by the theoretical results of the previous section, adding $\mathbf{G}^2$ decisively prevents this behavior and the Dirichlet energy remains (near) constant, even for very deep architectures (up to 1000 layers).
|
| 205 |
+
|
| 206 |
+

|
| 207 |
+
Figure 2: Dirichlet energy $\mathcal{E}(\mathbf{X}^n)$ of layer-wise node features $\mathbf{X}^n$ propagated through a GAT, GCN and their gradient gated versions (G $^2$ -GAT, G $^2$ -GCN).
|
| 208 |
+
|
| 209 |
+

|
| 210 |
+
Figure 3: Test accuracies of GCN with gradient gating $(\mathbf{G}^2$ -GCN) as well as plain GCN and GCN combined with other methods on the Cora dataset for increasing number of layers.
|
| 211 |
+
|
| 212 |
+
$\mathbf{G}^2$ for very deep GNNs. Oversmoothing inhibits the use of large number of GNN layers. As $\mathbf{G}^2$ is designed to alleviate oversmoothing, it should allow very deep architectures. To test this assumption, we reproduce the experiment considered in Chamberlain et al. (2021a): a node-level classification task on the Cora dataset using increasingly deeper GCN architectures. In addition to $\mathbf{G}^2$ , we also compare with two recently proposed mechanisms to alleviate oversmoothing, DropEdge (Rong et al., 2020) and GraphCON (Rusch et al., 2022a). The results are presented in Fig. 3, where we plot the test accuracy for all the models with the number of layers ranging from 2 to 128. While a plain GCN seems to suffer the most from oversmoothing (with the performance rapidly deteriorating after 8 layers), GCN+DropEdge as well as GCN+GraphCON are able to mitigate this behavior to some extent, although the performance eventually starts dropping (after 16 and 64 layers, respectively). In contrast, $\mathbf{G}^2$ -GCN exhibits a small but noticeable increase in performance for increasing number of layers, reaching its peak performance for 128 layers. This experiment suggests that $\mathbf{G}^2$ can indeed be used in conjunction with deep GNNs, potentially allowing performance gains due to depth.
|
| 213 |
+
|
| 214 |
+
$\mathbf{G}^2$ for multi-scale node-level regression. We test the multi-rate nature of $\mathbf{G}^2$ on node-level regression tasks, where the target node values exhibit multiple scales. Due to a lack of widely available node-level regression tasks, we propose regression experiments based on the Wikipedia article networks Chameleon and Squirrel, (Rozemberczki et al., 2021). While Chameleon and Squirrel are already widely used as heterophilic node-level classification tasks, the original datasets consist of continuous node targets (average monthly web-page traffic). We normalize the provided webpage traffic values for every node between 0 and 1 and note that the resulting node values exhibit values on a wide range of different scales ranging between $10^{-5}$ and 1 (see Fig. 4). Table 1 shows the test normalized
|
| 215 |
+
|
| 216 |
+
Table 1: Normalized test MSE on multiscale node-level regression tasks.
|
| 217 |
+
|
| 218 |
+
<table><tr><td></td><td>Chameleon</td><td>Squirrel</td></tr><tr><td>#Nodes</td><td>2,277</td><td>5,201</td></tr><tr><td>#Edges</td><td>31,421</td><td>198,493</td></tr><tr><td>GCNII</td><td>0.170 ± 0.034</td><td>0.093 ± 0.031</td></tr><tr><td>PairNorm</td><td>0.207 ± 0.038</td><td>0.140 ± 0.040</td></tr><tr><td>GCN</td><td>0.207 ± 0.039</td><td>0.143 ± 0.039</td></tr><tr><td>GAT</td><td>0.207 ± 0.038</td><td>0.143 ± 0.039</td></tr><tr><td>G2-GCN</td><td>0.137 ± 0.033</td><td>0.070 ± 0.028</td></tr><tr><td>G2-GAT</td><td>0.136 ± 0.029</td><td>0.069 ± 0.029</td></tr></table>
|
| 219 |
+
|
| 220 |
+
mean-square error (mean and standard deviation based on the ten pre-defined splits in Pei et al. (2020)) for two standard GNN architectures (GCN and GAT) with and without $\mathbf{G}^2$ . We observe from
|
| 221 |
+
|
| 222 |
+
Table 1 that adding $\mathbf{G}^2$ to the baselines significantly reduces the error, demonstrating the advantage of using multiple update rates.
|
| 223 |
+
|
| 224 |
+

|
| 225 |
+
Figure 4: Histogram of the target node values of the Chameleon and Squirrel node-level regression tasks.
|
| 226 |
+
|
| 227 |
+

|
| 228 |
+
Figure 5: Test accuracy of GCN and GAT with / without gradient gating $(\mathbf{G}^2)$ on synthetic Cora with a varying level of true label homophily.
|
| 229 |
+
|
| 230 |
+
$\mathbf{G}^2$ for varying homophily (Synthetic Cora). We test $\mathbf{G}^2$ on a node-level classification task with varying levels of homophily on the synthetic Cora dataset Zhu et al. (2020). Standard GNN models are known to perform poorly in heterophilic settings. This can be seen in Fig. 5, where we present the classification accuracy of GCN and GAT on the synthetic-Cora dataset with a level of homophily varying between 0 and 0.99. While these models succeed in the homophilic case (reaching nearly perfect accuracy), their performance drops to $\approx 20\%$ when the level of homophily approaches 0. Adding $\mathbf{G}^2$ to GCN or GAT mitigates this phenomenon: the resulting models reach a test accuracy of over $80\%$ , even in the most heterophilic setting, thus leading to a four-fold increase in the accuracy of the underlying GCN or GAT models. Furthermore, we notice an increase in performance even in the homophilic setting. Moreover, we compare with a state-of-the-art model GGCN (Yan et al., 2021), which has been recently proposed to explicitly deal with heterophilic graphs. From Fig. 5 we observe that $\mathbf{G}^2$ performs on par and slightly better than GGCN in strongly heterophilic settings.
|
| 231 |
+
|
| 232 |
+
Table 2: Results on heterophilic graphs. The three best performing methods are highlighted in red (First), blue (Second), and violet (Third).
|
| 233 |
+
|
| 234 |
+
<table><tr><td></td><td>Texas</td><td>Wisconsin</td><td>Film</td><td>Squirrel</td><td>Chameleon</td><td>Cornell</td></tr><tr><td>Hom level</td><td>0.11</td><td>0.21</td><td>0.22</td><td>0.22</td><td>0.23</td><td>0.30</td></tr><tr><td>#Nodes</td><td>183</td><td>251</td><td>7,600</td><td>5,201</td><td>2,277</td><td>183</td></tr><tr><td>#Edges</td><td>295</td><td>466</td><td>26,752</td><td>198,493</td><td>31,421</td><td>280</td></tr><tr><td>#Classes</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td><td>5</td></tr><tr><td>GGCN</td><td>84.86 ± 4.55</td><td>86.86 ± 3.29</td><td>37.54 ± 1.56</td><td>55.17 ± 1.58</td><td>71.14 ± 1.84</td><td>85.68 ± 6.63</td></tr><tr><td>GPRGNN</td><td>78.38 ± 4.36</td><td>82.94 ± 4.21</td><td>34.63 ± 1.22</td><td>31.61 ± 1.24</td><td>46.58 ± 1.71</td><td>80.27 ± 8.11</td></tr><tr><td>H2GCN</td><td>84.86 ± 7.23</td><td>87.65 ± 4.98</td><td>35.70 ± 1.00</td><td>36.48 ± 1.86</td><td>60.11 ± 2.15</td><td>82.70 ± 5.28</td></tr><tr><td>FAGCN</td><td>82.43 ± 6.89</td><td>82.94 ± 7.95</td><td>34.87 ± 1.25</td><td>42.59 ± 0.79</td><td>55.22 ± 3.19</td><td>79.19 ± 9.79</td></tr><tr><td>F2GAT</td><td>82.70 ± 5.95</td><td>87.06 ± 4.13</td><td>36.65 ± 1.13</td><td>47.32 ± 2.43</td><td>67.81 ± 2.05</td><td>83.51 ± 6.70</td></tr><tr><td>MixHop</td><td>77.84 ± 7.73</td><td>75.88 ± 4.90</td><td>32.22 ± 2.34</td><td>43.80 ± 1.48</td><td>60.50 ± 2.53</td><td>73.51 ± 6.34</td></tr><tr><td>GCNII</td><td>77.57 ± 3.83</td><td>80.39 ± 3.40</td><td>37.44 ± 1.30</td><td>38.47 ± 1.58</td><td>63.86 ± 3.04</td><td>77.86 ± 3.79</td></tr><tr><td>Geom-GCN</td><td>66.76 ± 2.72</td><td>64.51 ± 3.66</td><td>31.59 ± 1.15</td><td>38.15 ± 0.92</td><td>60.00 ± 2.81</td><td>60.54 ± 3.67</td></tr><tr><td>PairNorm</td><td>60.27 ± 4.34</td><td>48.43 ± 6.14</td><td>27.40 ± 1.24</td><td>50.44 ± 2.04</td><td>62.74 ± 2.82</td><td>58.92 ± 3.15</td></tr><tr><td>LINKX</td><td>74.60 ± 8.37</td><td>75.49 ± 5.72</td><td>36.10 ± 1.55</td><td>61.81 ± 1.80</td><td>68.42 ± 1.38</td><td>77.84 ± 5.81</td></tr><tr><td>GloGNN</td><td>84.32 ± 4.15</td><td>87.06 ± 3.53</td><td>37.35 ± 1.30</td><td>57.54 ± 1.39</td><td>69.78 ± 2.42</td><td>83.51 ± 4.26</td></tr><tr><td>GraphSAGE</td><td>82.43 ± 6.14</td><td>81.18 ± 5.56</td><td>34.23 ± 0.99</td><td>41.61 ± 0.74</td><td>58.73 ± 1.68</td><td>75.95 ± 5.01</td></tr><tr><td>ResGatedGCN</td><td>80.00 ± 5.57</td><td>81.57 ± 5.35</td><td>36.02 ± 1.19</td><td>37.60 ± 1.80</td><td>49.82 ± 2.71</td><td>73.51 ± 4.95</td></tr><tr><td>GCN</td><td>55.14 ± 5.16</td><td>51.76 ± 3.06</td><td>27.32 ± 1.10</td><td>31.52 ± 0.71</td><td>38.44 ± 1.92</td><td>60.54 ± 5.30</td></tr><tr><td>GAT</td><td>52.16 ± 6.63</td><td>49.41 ± 4.09</td><td>27.44 ± 0.89</td><td>36.77 ± 1.68</td><td>48.36 ± 1.58</td><td>61.89 ± 5.05</td></tr><tr><td>MLP</td><td>80.81 ± 4.75</td><td>85.29 ± 3.31</td><td>36.53 ± 0.70</td><td>28.77 ± 1.56</td><td>46.21 ± 2.99</td><td>81.89 ± 6.40</td></tr><tr><td>G2-GAT</td><td>84.59 ± 5.55</td><td>87.65 ± 4.64</td><td>37.30 ± 0.87</td><td>46.48 ± 1.41</td><td>64.12 ± 1.96</td><td>87.30 ± 4.84</td></tr><tr><td>G2-GCN</td><td>84.86 ± 3.24</td><td>87.06 ± 3.19</td><td>37.09 ± 1.16</td><td>39.62 ± 2.91</td><td>55.83 ± 2.88</td><td>86.49 ± 5.27</td></tr><tr><td>G2-GraphSAGE</td><td>87.57 ± 3.86</td><td>87.84 ± 3.49</td><td>37.14 ± 1.01</td><td>64.26 ± 2.38</td><td>71.40 ± 2.38</td><td>86.22 ± 4.90</td></tr></table>
|
| 235 |
+
|
| 236 |
+
Heterophilic datasets. In Table 2, we test the proposed framework on several real-world heterophilic graphs (with a homophily level of $\leq 0.30$ ) (Pei et al., 2020; Rozemberczki et al., 2021) and benchmark it against baseline models GraphSAGE (Hamilton et al., 2017), GCN (Kipf & Welling,
|
| 237 |
+
|
| 238 |
+
2017), GAT (Velickovic et al., 2018) and MLP (Goodfellow et al., 2016), as well as recent state-of-the-art models on heterophilic graph datasets, i.e., GGCN (Yan et al., 2021), GPRGNN (Chien et al., 2020), H2GCN (Zhu et al., 2020), FAGCN (Bo et al., 2021), $\mathbf{F}^2$ GAT (Wei et al., 2022), MixHop (Abu-El-Haija et al., 2019), GCNII (Chen et al., 2020b), Geom-GCN (Pei et al., 2020), PairNorm (Zhao & Akoglu, 2019). We can observe that $\mathbf{G}^2$ added to GCN, GAT or GraphSAGE outperforms all other methods (in particular recent methods such as GGCN, GPRGNN, H2GCN that were explicitly designed to solve heterophilic tasks). Moreover, adding $\mathbf{G}^2$ to the underlying base GNN model improves the results on average by $45.75\%$ for GAT, $45.4\%$ for GCN and $18.6\%$ for GraphSAGE.
|
| 239 |
+
|
| 240 |
+
Large-scale graphs. Given the exceptional performance of $\mathbf{G}^2$ -GraphSAGE on small and medium sized heterophilic graphs, we test the proposed $\mathbf{G}^2$ (applied to GraphSAGE, i.e., $\mathbf{G}^2$ -GraphSAGE) on large-scale datasets. To this end, we consider three different experiments based on large graphs from Lim et al. (2021), which range from highly heterophilic (homophily level of 0.07) to fairly homophilic (homophily level of 0.61). The sizes range from large graphs with $\sim 170\mathrm{K}$ nodes and $\sim 1\mathrm{M}$ edges to a very large graph with $\sim 3\mathrm{M}$ nodes and $\sim 14\mathrm{M}$ edges.
|
| 241 |
+
|
| 242 |
+
<table><tr><td colspan="4">Table 3: Results on large-scale datasets.</td></tr><tr><td></td><td>snap-patents</td><td>arXiv-year</td><td>genius</td></tr><tr><td>Hom level</td><td>0.07</td><td>0.22</td><td>0.61</td></tr><tr><td>#Nodes</td><td>2,923,922</td><td>169,343</td><td>421,961</td></tr><tr><td>#Edges</td><td>13,975,788</td><td>1,166,243</td><td>984,979</td></tr><tr><td>#Classes</td><td>5</td><td>5</td><td>2</td></tr><tr><td>MLP</td><td>31.34 ± 0.05</td><td>36.70 ± 0.21</td><td>86.68 ± 0.09</td></tr><tr><td>GCN</td><td>45.65 ± 0.04</td><td>46.02 ± 0.26</td><td>87.42 ± 0.37</td></tr><tr><td>GAT</td><td>45.37 ± 0.44</td><td>46.05 ± 0.51</td><td>55.80 ± 0.87</td></tr><tr><td>MixHop</td><td>52.16 ± 0.09</td><td>51.81 ± 0.17</td><td>90.58 ± 0.16</td></tr><tr><td>LINKX</td><td>61.95 ± 0.12</td><td>56.00 ± 1.34</td><td>90.77 ± 0.27</td></tr><tr><td>LINK</td><td>60.39 ± 0.07</td><td>53.97 ± 0.18</td><td>73.56 ± 0.14</td></tr><tr><td>GCNII</td><td>37.88 ± 0.69</td><td>47.21 ± 0.28</td><td>90.24 ± 0.09</td></tr><tr><td>APPNP</td><td>32.19 ± 0.07</td><td>38.15 ± 0.26</td><td>85.36 ± 0.62</td></tr><tr><td>GloGNN</td><td>62.09 ± 0.27</td><td>54.68 ± 0.34</td><td>90.66 ± 0.11</td></tr><tr><td>GPR-GNN</td><td>40.19 ± 0.03</td><td>45.07 ± 0.21</td><td>90.05 ± 0.31</td></tr><tr><td>ACM-GCN</td><td>55.14 ± 0.16</td><td>47.37 ± 0.59</td><td>80.33 ± 3.91</td></tr><tr><td>G2-GraphSAGE</td><td>69.50 ± 0.39</td><td>63.30 ± 1.84</td><td>90.85 ± 0.64</td></tr></table>
|
| 243 |
+
|
| 244 |
+
Table 3 shows the results of $\mathbf{G}^2$ -
|
| 245 |
+
|
| 246 |
+
GraphSAGE together with other standard GNNs, as well as recent state-of-the-art models, i.e., MLP(Goodfellow et al., 2016), GCN (Kipf & Welling, 2017), GAT (Velickovic et al., 2018), MixHop (Abu-El-Haija et al., 2019), LINK(X) (Lim et al., 2021), GCNII (Chen et al., 2020b), APPNP (Klicpera et al., 2018), GloGNN (Li et al., 2022), GPR-GNN (Chien et al., 2020) and ACM-GCN (Luan et al., 2021). We can see that $\mathbf{G}^2$ -GraphSAGE significantly outperforms current state-of-the-art (by up to $13\%$ ) on the two heterophilic graphs (i.e., snap-patents and arXiv-year). Moreover, $\mathbf{G}^2$ -GraphSAGE is on-par with the current state-of-the-art on the homophilic graph dataset genius.
|
| 247 |
+
|
| 248 |
+
We conclude that the proposed gradient gating method can successfully be scaled up to large graphs, reaching state-of-the-art performance, in particular on heterophilic graph datasets.
|
| 249 |
+
|
| 250 |
+
# 5 RELATED WORK
|
| 251 |
+
|
| 252 |
+
Gating. Gating is a key component of our proposed framework. The use of gating (i.e., the modulation between 0 and 1) of hidden layer outputs has a long pedigree in neural networks and sequence modeling. In particular, classical recurrent neural network (RNN) architectures such as LSTM (Hochreiter & Schmidhuber, 1997) and GRU (Cho et al., 2014) rely on gates to modulate information propagation in the RNN. Given the connections between RNNs and early versions of GNNs (Zhou et al., 2019), it is not surprising that the idea of gating has been used in designing GNNs Bresson & Laurent (2017); Li et al. (2016); Zhang et al. (2018). However, to the best of our knowledge, the use of local graph-gradients to further modulate gating in order to alleviate the oversmoothing problem is novel, and so is its theoretical analysis.
|
| 253 |
+
|
| 254 |
+
Multi-scale methods. The multi-rate gating procedure used in $\mathbf{G}^2$ is a particular example of multi-scale mechanisms. The use of multi-scale neural network architectures has a long history. An early example is Hinton & Plaut (1987), who proposed a neural network with each connection having a fast changing weight for temporary memory and a slow changing weight for long-term learning. The classical convolutional neural networks (CNNs, LeCun et al. (1989)) can be viewed as multi-scale architectures for processing multiple spatial scales in images (Bai et al., 2020). Moreover, there is a close connection between our multi-rate mechanism (4) and the use of multiple time scales in recently proposed sequence models such as UnICORNN (Rusch & Mishra, 2021) and long expressive memory (LEM) (Rusch et al., 2022b).
|
| 255 |
+
|
| 256 |
+
Neural differential equations. Ordinary and partial differential equations (ODEs and PDEs) are playing an increasingly important role in designing, interpreting, and analyzing novel graph machine learning architectures Avelar et al. (2019); Poli et al. (2019); Zhuang et al. (2020); Xhonneux et al. (2020). Chamberlain et al. (2021a) designed attentional GNNs by discretizing parabolic diffusion-type PDEs. Di Giovanni et al. (2022) interpreted GCNs as gradient flows minimizing a generalized version of the Dirichlet energy. Chamberlain et al. (2021b) applied a non-Euclidean diffusion equation ("Beltrami flow") yielding a scheme with adaptive spatial derivatives ("graph rewiring"), and Topping et al. (2021) studied a discrete geometric PDE similar to Ricci flow to improve information propagation in GNNs. Eliasof et al. (2021) proposed a GNN framework arising from a mixture of parabolic (diffusion) and hyperbolic (wave) PDEs on graphs with convolutional coupling operators, which describe dissipative wave propagation. Finally, Rusch et al. (2022a) used systems of nonlinear oscillators coupled through the associated graph structure to rigorously overcome the oversmoothing problem. In line with these works, one contribution of our paper is a continuous version of $\mathbf{G}^2$ (9), which we used for a rigorous analysis of the oversmoothing problem. Understanding whether this system of ODEs has an interpretation as a known physical model is a topic for future research.
|
| 257 |
+
|
| 258 |
+
# 6 DISCUSSION
|
| 259 |
+
|
| 260 |
+
We have proposed a novel framework, termed $\mathbf{G}^2$ , for efficient learning on graphs. $\mathbf{G}^2$ builds on standard MPNNs, but seeks to overcome their limitations. In particular, we focus on the fact that for standard MPNNs such as GCN or GAT, each node (in every hidden layer) is updated at the same rate. This might inhibit efficient learning of tasks where different node features would need to be updated at different rates. Hence, we equip a standard MPNN with gates that amount to a multi-rate modulation for the hidden layer output in (4). This enables multiple rates (or scales) of flow of information across a graph. Moreover, we leverage local (graph) gradients to further constrain the gates. This is done to alleviate oversmoothing where node features become indistinguishable as the number of layers is increased.
|
| 261 |
+
|
| 262 |
+
By combining these ingredients, we present a very flexible framework (dubbed $\mathbf{G}^2$ ) for graph machine learning wherein any existing MPNN hidden layer can be employed as the coupling function and the multi-rate gradient gating mechanism can be built on top of it. Moreover, we also show that $\mathbf{G}^2$ corresponds to a time-discretization of a system of ODEs (9). By studying the (in)-stability of the corresponding zero-Dirichlet energy steady states we rigorously prove that gradient gating can mitigate the oversmoothing problem, paving the way for the use of very deep GNNs within the $\mathbf{G}^2$ framework. In contrast, the lack of gradient gating is shown to lead to oversmoothing.
|
| 263 |
+
|
| 264 |
+
We also present an extensive empirical evaluation to illustrate different aspects of the proposed $\mathbf{G}^2$ framework. Starting with synthetic, small-scale experiments, we demonstrate that i) $\mathbf{G}^2$ can prevent oversmoothing by keeping the Dirichlet energy constant, even for a very large number of hidden layers, ii) this feature allows us to deploy very deep architectures and to observe that the accuracy of classification tasks can increase with increasing number of hidden layers, iii) the multi-rate mechanism significantly improves performance on node regression tasks when the node features are distributed over a range of scales, and iv) $\mathbf{G}^2$ is very accurate at classification on heterophilic datasets, witnessing an increasing gain in performance with increasing heterophily.
|
| 265 |
+
|
| 266 |
+
This last feature was more extensively investigated, and we observed that $\mathbf{G}^2$ can significantly outperform baselines as well as recently proposed methods on both benchmark medium-scale and large-scale heterophilic datasets, achieving state-of-the-art performance. Thus, by a combination of theory and experiments, we demonstrate that the $\mathbf{G}^2$ -framework is a promising approach for learning on graphs.
|
| 267 |
+
|
| 268 |
+
Future work. As future work, we would like to better understand the continuous limit of $\mathbf{G}^2$ , i.e., the ODEs (9), especially in the zero spatial-resolution limit and investigate if the resulting continuous equations have interesting geometric and analytical properties. Moreover, we would like to use $\mathbf{G}^2$ for solving scientific problems, such as in computational chemistry or the numerical solutions of PDEs. Finally, the promising results for $\mathbf{G}^2$ on large-scale graphs encourage us to use it for even larger industrial-scale applications.
|
| 269 |
+
|
| 270 |
+
# ACKNOWLEDGEMENTS
|
| 271 |
+
|
| 272 |
+
The research of TKR and SM was performed under a project that has received funding from the European Research Council (ERC) under the European Union's Horizon 2020 research and innovation programme (Grant Agreement No. 770880). MWM would like to acknowledge the IARPA (contract W911NF20C0035), NSF, and ONR for providing partial support of this work. MB is supported in part by ERC Grant No. 724228 (LEMAN). The authors thank Emmanuel de Bézenac (ETH) for his constructive suggestions.
|
| 273 |
+
|
| 274 |
+
# REFERENCES
|
| 275 |
+
|
| 276 |
+
Sami Abu-El-Haija, Bryan Perozzi, Amol Kapoor, Nazanin Alipourfard, Kristina Lerman, Hrayr Harutyunyan, Greg Ver Steeg, and Aram Galstyan. Mixhop: Higher-order graph convolutional architectures via sparsified neighborhood mixing. In international conference on machine learning, pp. 21-29. PMLR, 2019.
|
| 277 |
+
Uri Alon and Eran Yahav. On the bottleneck of graph neural networks and its practical implications. In ICML, 2021.
|
| 278 |
+
P. H. C. Avelar, A. R. Tavares, , M. Gori, and L. C. Lamb. Discrete and continuous deep residual learning over graphs. arXiv preprint, 2019.
|
| 279 |
+
Shaojie Bai, Vladlen Koltun, and J Zico Kolter. Multiscale deep equilibrium models. In Advances in Neural Information Processing Systems, pp. 770-778, 2020.
|
| 280 |
+
Deyu Bo, Xiao Wang, Chuan Shi, and Huawei Shen. Beyond low-frequency information in graph convolutional networks. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 3950-3957, 2021.
|
| 281 |
+
Xavier Bresson and Thomas Laurent. Residual gated graph convnets. arXiv:1711.07553, 2017.
|
| 282 |
+
Michael M Bronstein, Joan Bruna, Taco Cohen, and Petar Velickovic. Geometric deep learning: Grids, groups, graphs, geodesics, and gauges. arXiv:2104.13478, 2021.
|
| 283 |
+
Joan Bruna, Wojciech Zaremba, Arthur Szlam, and Yann LeCun. Spectral networks and locally connected networks on graphs. In 2nd International Conference on Learning Representations, ICLR 2014, 2014.
|
| 284 |
+
Ben Chamberlain, James Rowbottom, Maria I. Gorinova, Michael M. Bronstein, Stefan Webb, and Emanuele Rossi. GRAND: graph neural diffusion. In Proceedings of the 38th International Conference on Machine Learning, volume 139, pp. 1407-1418. PMLR, 2021a.
|
| 285 |
+
Benjamin Chamberlain, James Rowbottom, Davide Eynard, Francesco Di Giovanni, Xiaowen Dong, and Michael Bronstein. Beltrami flow and neural diffusion on graphs. In NeurIPS, 2021b.
|
| 286 |
+
Deli Chen, Yankai Lin, Wei Li, Peng Li, Jie Zhou, and Xu Sun. Measuring and relieving the oversmoothing problem for graph neural networks from the topological view. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 3438-3445, 2020a.
|
| 287 |
+
Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep graph convolutional networks. In International Conference on Machine Learning, pp. 1725-1735. PMLR, 2020b.
|
| 288 |
+
Eli Chien, Jianhao Peng, Pan Li, and Olgica Milenkovic. Adaptive universal generalized pagerank graph neural network. arXiv preprint arXiv:2006.07988, 2020.
|
| 289 |
+
Kyunghyun Cho, B van Merrienboer, Caglar Gulcehre, F Bougares, H Schwenk, and Yoshua Bengio. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014), 2014.
|
| 290 |
+
Michaël Defferrard, Xavier Bresson, and Pierre Vandergheynst. Convolutional neural networks on graphs with fast localized spectral filtering. Advances in neural information processing systems, 29:3844-3852, 2016.
|
| 291 |
+
|
| 292 |
+
Austin Derrow-Pinion, Jennifer She, David Wong, Oliver Lange, Todd Hester, Luis Perez, Marc Nunkesser, Seongjae Lee, Xueying Guo, Peter W Battaglia, Vishal Gupta, Ang Li, Zhongwen Xu, Alvaro Sanchez-Gonzalez, Yujia Li, and Petar Velicković. Traffic Prediction with Graph Neural Networks in Google Maps. 2021.
|
| 293 |
+
Francesco Di Giovanni, James Rowbottom, Benjamin P Chamberlain, Thomas Markovich, and Michael M Bronstein. Graph neural networks as gradient flows. arXiv:2206.10991, 2022.
|
| 294 |
+
Moshe Eliasof, Eldad Haber, and Eran Treister. Pde-gcn: Novel architectures for graph neural networks motivated by partial differential equations. In NeurIPS, 2021.
|
| 295 |
+
Lawrence C Evans. *Partial differential equations*, volume 19. American Mathematical Soc., 2010.
|
| 296 |
+
Paolo Frasconi, Marco Gori, and Alessandro Sperduti. A general framework for adaptive processing of data structures. IEEE Trans. Neural Networks, 9(5):768-786, 1998.
|
| 297 |
+
Thomas Gaudelet, Ben Day, Arian R Jamasb, Jyothish Soman, Cristian Regep, Gertrude Liu, Jeremy BR Hayter, Richard Vickers, Charles Roberts, Jian Tang, et al. Utilizing graph machine learning within drug discovery and development. Briefings in Bioinformatics, 22(6), 2021.
|
| 298 |
+
Justin Gilmer, Samuel S Schoenholz, Patrick F Riley, Oriol Vinyals, and George E Dahl. Neural message passing for quantum chemistry. In ICML, 2017.
|
| 299 |
+
Christoph Goller and Andreas Kuchler. Learning task-dependent distributed representations by backpropagation through structure. In ICNN, 1996.
|
| 300 |
+
Ian Goodfellow, Yoshua Bengio, and Aaron Courville. Deep learning. MIT press, 2016.
|
| 301 |
+
Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In IJCNN, 2005.
|
| 302 |
+
Will Hamilton, Zhitao Ying, and Jure Leskovec. Inductive representation learning on large graphs. Advances in neural information processing systems, 30, 2017.
|
| 303 |
+
G.E. Hinton and D.C. Plaut. Using fast weights to deblur old memories. In Proceedings of the ninth annual conference of the cognitive science society, pp. 177-186, 1987.
|
| 304 |
+
Sepp Hochreiter and Jürgen Schmidhuber. Long short-term memory. Neural computation, 9(8): 1735-1780, 1997.
|
| 305 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
|
| 306 |
+
Johannes Klicpera, Aleksandar Bojchevski, and Stephan Gunnemann. Predict then propagate: Graph neural networks meet personalized pagerank. arXiv preprint arXiv:1810.05997, 2018.
|
| 307 |
+
Yann LeCun, Bernhard Boser, John S Denker, Donnie Henderson, Richard E Howard, Wayne Hubbard, and Lawrence D Jackel. Backpropagation applied to handwritten zip code recognition. Neural computation, 1(4):541-551, 1989.
|
| 308 |
+
Xiang Li, Renyu Zhu, Yao Cheng, Caihua Shan, Siqiang Luo, Dongsheng Li, and Weining Qian. Finding global homophily in graph neural networks when meeting heterophily. arXiv preprint arXiv:2205.07308, 2022.
|
| 309 |
+
Yujia Li, Daniel Tarlow, Marc Brockschmidt, and Richard S. Zemel. Gated graph sequence neural networks. In *Joshua Bengio and Yann LeCun* (eds.), *ICLR*, 2016.
|
| 310 |
+
Derek Lim, Felix Hohne, Xiuyu Li, Sijia Linda Huang, Vaishnavi Gupta, Omkar Bhalerao, and Ser Nam Lim. Large scale learning on non-homophilous graphs: New benchmarks and strong simple methods. Advances in Neural Information Processing Systems, 34:20887-20902, 2021.
|
| 311 |
+
Lek-Heng Lim. Hodge laplacians on graphs. arXiv preprint arXiv:1507.05379, 2015.
|
| 312 |
+
|
| 313 |
+
Sitao Luan, Chenqing Hua, Qincheng Lu, Jiaqi Zhu, Mingde Zhao, Shuyuan Zhang, Xiao-Wen Chang, and Doina Precup. Is heterophily a real nightmare for graph neural networks to do node classification? arXiv preprint arXiv:2109.05641, 2021.
|
| 314 |
+
Federico Monti, Davide Boscaini, Jonathan Masci, Emanuele Rodola, Jan Svoboda, and Michael M Bronstein. Geometric deep learning on graphs and manifolds using mixture model cnns. In CVPR, 2017.
|
| 315 |
+
H Nt and T Maehara. Revisiting graph neural networks: all we have is low pass filters. arXiv:1812.08434v4, 2019.
|
| 316 |
+
K Oono and T Suzuki. Graph neural networks exponentially lose expressive power for node classification. In ICLR, 2020.
|
| 317 |
+
Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-gcn: Geometric graph convolutional networks. arXiv preprint arXiv:2002.05287, 2020.
|
| 318 |
+
Michael Poli, Stefano Massaroli, Junyoung Park, Atsushi Yamashita, Hajime Asama, and Jinkyoo Park. Graph neural ordinary differential equations. pp. 6571-6583, 2019.
|
| 319 |
+
Yu Rong, Wenbing Huang, Tingyang Xu, and Junzhou Huang. Towards deep graph convolutional networks on node classification. In ICLR, 2020.
|
| 320 |
+
Benedek Rozemberczki, Carl Allen, and Rik Sarkar. Multi-scale attributed node embedding. Journal of Complex Networks, 9(2):cnab014, 2021.
|
| 321 |
+
T. Konstantin Rusch and Siddhartha Mishra. *Unicornn: A recurrent model for learning very long time dependencies.* In *Proceedings of the 38th International Conference on Machine Learning*, volume 139 of *Proceedings of Machine Learning Research*, pp. 9168-9178. PMLR, 2021.
|
| 322 |
+
T. Konstantin Rusch, Ben Chamberlain, James Rowbottom, Siddhartha Mishra, and Michael Bronstein. Graph-coupled oscillator networks. In Proceedings of the 39th International Conference on Machine Learning, volume 162 of Proceedings of Machine Learning Research, pp. 18888-18909. PMLR, 2022a.
|
| 323 |
+
T. Konstantin Rusch, Siddhartha Mishra, N. Benjamin Erichson, and Michael. W Mahoney. Long expressive memory for sequence modeling. In International Conference on Learning Representations, 2022b.
|
| 324 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE Trans. Neural Networks, 20(1):61-80, 2008.
|
| 325 |
+
Jonathan Shlomi, Peter Battaglia, and Jean-Roch Vlimant. Graph neural networks in particle physics. Machine Learning: Science and Technology, 2(2):021001, 2020.
|
| 326 |
+
Alessandro Sperduti. Encoding labeled graphs by labeling RAAM. In NIPS, 1994.
|
| 327 |
+
Alessandro Sperduti and Antonina Starita. Supervised neural networks for the classification of structures. IEEE Trans. Neural Networks, 8(3):714-735, 1997.
|
| 328 |
+
Jake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong, and Michael M Bronstein. Understanding over-squashing and bottlenecks on graphs via curvature. arXiv:2111.14522, 2021.
|
| 329 |
+
Petar Velickovic, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. In 6th International Conference on Learning Representations, ICLR, 2018.
|
| 330 |
+
Lanning Wei, Huan Zhao, and Zhiqiang He. Designing the topology of graph neural networks: A novel feature fusion perspective. In Proceedings of the ACM Web Conference 2022, pp. 1381-1391, 2022.
|
| 331 |
+
S. Wiggins. Introduction to nonlinear dynamical systems and chaos. Springer, 2003.
|
| 332 |
+
|
| 333 |
+
Louis-pascal A C Xhonneux, Meng Qu, and Jian Tang. Continuous graph neural networks. In ICML, 2020.
|
| 334 |
+
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? arXiv preprint arXiv:1810.00826, 2018.
|
| 335 |
+
Yujun Yan, Milad Hashemi, Kevin Swersky, Yaoqing Yang, and Danai Koutra. Two sides of the same coin: Heterophily and oversmoothing in graph convolutional neural networks. arXiv preprint arXiv:2102.06462, 2021.
|
| 336 |
+
Rex Ying, Ruining He, Kaifeng Chen, Pong Eksombatchai, William L Hamilton, and Jure Leskovec. Graph convolutional neural networks for web-scale recommender systems. In KDD, 2018.
|
| 337 |
+
Jiani Zhang, Xingjian Shi, Junyuan Xie, Hao Ma, Irwin King, and Dit-Yan Yeung. Gaan: Gated attention networks for learning on large and spatiotemporal graphs. arXiv preprint arXiv:1803.07294, 2018.
|
| 338 |
+
Lingxiao Zhao and Leman Akoglu. Pairnorm: Tackling oversmoothing in gnns. arXiv preprint arXiv:1909.12223, 2019.
|
| 339 |
+
Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, Lifeng Wang, , Changcheng Li, and Maosong Sun. Graph neural networks: a review of methods and applications. arXiv:1812.08434v4, 2019.
|
| 340 |
+
Jiong Zhu, Yujun Yan, Lingxiao Zhao, Mark Heimann, Leman Akoglu, and Danai Koutra. Beyond homophily in graph neural networks: Current limitations and effective designs. Advances in Neural Information Processing Systems, 33:7793-7804, 2020.
|
| 341 |
+
J. Zhuang, N. Dvornek, X. Li, and J. S. Duncan. Ordinary differential equations on graph networks. Technical Report, 2020.
|
| 342 |
+
|
| 343 |
+
# Supplementary Material for:
|
| 344 |
+
|
| 345 |
+
Gradient Gating for Deep Multi-Rate Learning on Graphs
|
| 346 |
+
|
| 347 |
+
# A ADDITIONAL EXPERIMENTS
|
| 348 |
+
|
| 349 |
+
In this section, we describe additional empirical results to complement those in the main text.
|
| 350 |
+
|
| 351 |
+
On the multi-rate effect of $\mathbf{G}^2$ . Here, we analyze the performance of $\mathbf{G}^2$ on the multi-scale node-level regression task of the main text. As we see in the main text, $\mathbf{G}^2$ applied to GCN or GAT outperforms their plain counterparts (GCN and GAT) on the multi-scale node-level regression task by more than $50\%$ on Chameleon and more than $100\%$ on Squirrel. The question therefore arises whether this better performance can be explained by the multi-rate nature of gradient gating.
|
| 352 |
+
|
| 353 |
+
To empirically analyse this, we begin by adding a control parameter $\alpha$ to $\mathbf{G}^2$ (4) as follows,
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
\mathbf {X} ^ {n} = \left(1 - \left(\boldsymbol {\tau} ^ {n}\right) ^ {\alpha}\right) \odot \mathbf {X} ^ {n - 1} + \left(\boldsymbol {\tau} ^ {n}\right) ^ {\alpha} \odot \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right).
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
Clearly, setting $\alpha = 1$ recovers the original gradient gating message-passing update,
|
| 360 |
+
|
| 361 |
+
$$
|
| 362 |
+
\mathbf {X} ^ {n} = \left(1 - \tau^ {n}\right) \odot \mathbf {X} ^ {n - 1} + \tau^ {n} \odot \sigma (\mathbf {F} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})),
|
| 363 |
+
$$
|
| 364 |
+
|
| 365 |
+
while setting $\alpha = 0$ disables any explicit multi-rate behavior and a plain message-passing scheme is recovered,
|
| 366 |
+
|
| 367 |
+
$$
|
| 368 |
+
\mathbf {X} ^ {n} = \sigma (\mathbf {F} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})).
|
| 369 |
+
$$
|
| 370 |
+
|
| 371 |
+
Note that by continuously changing $\alpha$ from 0 to 1 controls the level of multi-rate behavior in the proposed gradient gating method.
|
| 372 |
+
|
| 373 |
+
In Fig. 6 we plot the test NMSE of the best performing $\mathbf{G}^2$ -GCN and $\mathbf{G}^2$ -GAT on the Chameleon multi-scale node-level regression task for increasing values of $\alpha \in [10^{-3}, 1]$ in log-scale. We can see that the test NMSE monotonically decreases (lower error means better performance) for both $\mathbf{G}^2$ -GCN and $\mathbf{G}^2$ -GAT for increasing values of $\alpha$ , i.e., increasing level of multi-rate behavior. We can conclude that the multi-rate behavior of $\mathbf{G}^2$ is instrumental in successfully learning multi-scale regression tasks.
|
| 374 |
+
|
| 375 |
+

|
| 376 |
+
Figure 6: Test NMSE on the multi-scale chameleon node-level regression task of $\mathbf{G}^2$ -GCN and $\mathbf{G}^2$ -GAT for continuously decreasing level of multi-rate behavior.
|
| 377 |
+
|
| 378 |
+

|
| 379 |
+
Figure 7: Test accuracies of $\mathbf{G}^2$ -GraphSAGE on Texas, Squirrel, Film, Wisconsin and Chameleon graph datasets for varying values of $p$ in (4).
|
| 380 |
+
|
| 381 |
+
On the sensitivity of performance of $\mathbf{G}^2$ to the hyperparameter $p$ . The proposed gradient gating model implicitly depends on the hyperparameter $p$ , which defines the multiple rates $\tau$ , i.e.,
|
| 382 |
+
|
| 383 |
+
$$
|
| 384 |
+
\hat {\boldsymbol {\tau}} ^ {n} = \hat {\sigma} (\hat {\mathbf {F}} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})),
|
| 385 |
+
$$
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\boldsymbol {\tau} _ {i k} ^ {n} = \tanh \left(\sum_ {j \in \mathcal {N} _ {i}} | \hat {\tau} _ {i k} ^ {n} - \hat {\tau} _ {j k} ^ {n} | ^ {p}\right).
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
While any value $p > 0$ can be used in practice, a standard hyperparameter tuning procedure (see B for the training details) on $p$ has been applied in every experiment included in this paper. Thus,
|
| 392 |
+
|
| 393 |
+
it is natural to ask how sensitive the performance of $\mathbf{G}^2$ is with respect to different values of the hyperparameter $p$ .
|
| 394 |
+
|
| 395 |
+
To answer this question, we trained different $\mathbf{G}^2$ -GraphSAGE models on a variety of different graph datasets (i.e., Texas, Squirrel, Film, Wisconsin and Chameleon) for different values of $p \in [1,5]$ . Fig. 7 shows the resulting performance of $\mathbf{G}^2$ -GraphSAGE. We can see that different values of $p$ do not significantly change the performance of the model. However, including the hyperparameter $p$ to the hyperparameter fine-tuning procedure will further improve the overall performance of $\mathbf{G}^2$ .
|
| 396 |
+
|
| 397 |
+
On the sensitivity of performance of $\mathbf{G}^2$ to the number of parameters. All results of $\mathbf{G}^2$ provided in the main paper are obtained using standard hyperparameter tuning (i.e., random search). Those hyperparameters include the number of hidden channels for each hidden node of the graph, which directly correlates with the total number of parameters used in $\mathbf{G}^2$ . It is thus natural to ask how $\mathbf{G}^2$ performs compared to its plain counter-version (e.g. $\mathbf{G}^2$ -GCN to GCN) for the exact same number of total parameters of the underlying model. To this end, Fig. 8 shows the test accuracies of $\mathbf{G}^2$ -GCN and GCN for increasing number of total parameters in its corresponding model. We can see that first, using more parameters has only a slight effect on the overall performance of both models. Second, and most importantly, $\mathbf{G}^2$ -GCN constantly reaches significantly higher test accuracies for the exact same number of total parameters. We can thus rule out that the better performance of $\mathbf{G}^2$ compared to its plain counter-versions is explained by the usage of more parameters.
|
| 398 |
+
|
| 399 |
+

|
| 400 |
+
Figure 8: Test accuracies of plain GCN and $\mathbf{G}^2$ -GCN on Texas for varying number of total parameters in the GNN.
|
| 401 |
+
|
| 402 |
+
Ablation of $\hat{\mathbf{F}}_{\theta}$ in $\mathbf{G}^2$ . In its most general form $\mathbf{G}^2$ (4) uses an additional GNN $\hat{\mathbf{F}}_{\theta}$ to construct the multiple rates $\tau^n$ . Is this additional GNN needed? To answer this question, Table 4 shows in which of the provided experiments (using $\mathbf{G}^2$ -GraphSAGE) we actually used an additional GNN $\hat{\mathbf{F}}_{\theta}$ (as suggested by our hyperparameter tuning protocol). We can see that on small-scale experiments having an additional GNN is not needed. However, on the considered medium and large-scale graph datasets it is beneficial to use it. Motivated by this, Table 5 shows the results for $\mathbf{G}^2$ -GraphSAGE on the three medium-scale graph datasets (Film, Squirrel and Chameleon) without using an additional GNN in (4) (i.e., $\mathbf{F}_{\theta} = \hat{\mathbf{F}}_{\theta}$ ) as well as with using an additional GNN (i.e., the results provided in the main paper). We can see that while $\mathbf{G}^2$ -GraphSAGE without an additional GNN (i.e., w/o $\hat{\mathbf{F}}_{\theta}$ ) yields competitive results, using an additional GNN is needed in order to obtain state-of-the-art results on these three datasets.
|
| 403 |
+
|
| 404 |
+
Table 4: Usage of $\hat{\mathbf{F}}_{\theta}$ in $\mathbf{G}^2$ (4) for each result with $\mathbf{G}^2$ -GraphSAGE presented in the main paper (YES indicates the usage of $\hat{\mathbf{F}}_{\theta}$ , while NO indicates that no additional GNN is used to construct the multiple rates, i.e., $\mathbf{F}_{\theta} = \hat{\mathbf{F}}_{\theta}$ )
|
| 405 |
+
|
| 406 |
+
<table><tr><td>Texas</td><td>Wisconsin</td><td>Film</td><td>Squirrel</td><td>Chameleon</td><td>Cornell</td><td>snap-patents</td><td>arXiv-year</td><td>genius</td></tr><tr><td>NO</td><td>NO</td><td>YES</td><td>YES</td><td>YES</td><td>NO</td><td>YES</td><td>YES</td><td>YES</td></tr></table>
|
| 407 |
+
|
| 408 |
+
Table 5: Test accuracies of $\mathbf{G}^2$ -GraphSAGE with and without additional GNN (i.e., w/ $\hat{\mathbf{F}}_{\theta}$ and w/o $\hat{\mathbf{F}}_{\theta}$ in (4)) on Film, Squirrel and Chameleon graph dataset.
|
| 409 |
+
|
| 410 |
+
<table><tr><td></td><td>Film</td><td>Squirrel</td><td>Chameleon</td></tr><tr><td>G2-GraphSAGE w/ˆFθ</td><td>37.14 ± 1.01</td><td>64.26 ± 2.38</td><td>71.40 ± 2.38</td></tr><tr><td>G2-GraphSAGE w/oˆFθ</td><td>36.83 ± 1.26</td><td>55.78 ± 1.61</td><td>65.04 ± 2.27</td></tr></table>
|
| 411 |
+
|
| 412 |
+
Ablation of multi-rate channels in $\mathbf{G}^2$ . The corner stone of the proposed $\mathbf{G}^2$ is the multi-rate matrix $\tau^n$ in (4), which automatically solves the oversmoothing issue for any given GNN (Proposition 3.3). This multi-rate matrix learns different rates for every node but also for every channel of every node. It is thus natural to ask if the multi-rate property for the channels is necessary, or if having multiple rates for the different nodes is sufficient, i.e., having a multi-rate vector $\tau^n \in \mathbb{R}^v$ . A direct construction of such multi-rate vector (derived from our proposed $\mathbf{G}^2$ ) is:
|
| 413 |
+
|
| 414 |
+
$$
|
| 415 |
+
\hat {\boldsymbol {\tau}} ^ {n} = \sigma (\hat {\mathbf {F}} _ {\theta} (\mathbf {X} ^ {n - 1}, \mathcal {G})),
|
| 416 |
+
$$
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
\boldsymbol {\tau} _ {i} ^ {n} = \tanh \left(\sum_ {j \in \mathcal {N} _ {i}} \| \hat {\boldsymbol {\tau}} _ {j} ^ {n} - \hat {\boldsymbol {\tau}} _ {i} ^ {n} \| _ {p}\right), \tag {16}
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
\mathbf {X} ^ {n} = \left(1 - \tau^ {n}\right) \odot \mathbf {X} ^ {n - 1} + \tau^ {n} \odot \sigma \left(\mathbf {F} _ {\theta} \left(\mathbf {X} ^ {n - 1}, \mathcal {G}\right)\right).
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
Note that the only difference to our proposed $\mathbf{G}^2$ is in the second equation of (16), where we sum over the node-wise $p$ -norms of the differences of adjacent nodes. This way, we compute a single scalar $\tau_i^n$ for every node $i \in \mathcal{V}$ .
|
| 427 |
+
|
| 428 |
+
Table 6 shows the results of our proposed $\mathbf{G}^2$ -GraphSAGE as well as the single-rate channels ablation of $\mathbf{G}^2$ (eq. (16)) on the Film, Squirrel and Chameleon graph datasets. As a baseline, we also include the results of a plain GraphSAGE. We can see that while $\mathbf{G}^2$ with single-scale channels outperforms the base GraphSAGE model, our proposed $\mathbf{G}^2$ with multi-rate channels vastly outperforms the single-rate channels version of $\mathbf{G}^2$ .
|
| 429 |
+
|
| 430 |
+
Table 6: Test accuracies of plain GraphSAGE, $\mathbf{G}^2$ -GraphSAGE with multi-rate channels for each node (i.e., standard $\mathbf{G}^2$ (4)) as well as with only a single rate for every channel on Film, Squirrel and Chameleon.
|
| 431 |
+
|
| 432 |
+
<table><tr><td></td><td>Film</td><td>Squirrel</td><td>Chameleon</td></tr><tr><td>GraphSAGE</td><td>34.23 ± 0.99</td><td>41.61 ± 0.74</td><td>58.73 ± 1.68</td></tr><tr><td>G2-GraphSAGE w/ multi-rate channels G2 (4)</td><td>37.14 ± 1.01</td><td>64.26 ± 2.38</td><td>71.40 ± 2.38</td></tr><tr><td>G2-GraphSAGE w/ single-rate channels G2 (16)</td><td>36.67 ± 0.56</td><td>44.03 ± 1.01</td><td>60.29 ± 3.45</td></tr></table>
|
| 433 |
+
|
| 434 |
+
Alternative measures of oversmoothing. The proof of Proposition 3.2 and Proposition 3.3 as well as the first experiment in the main paper is based on the definition of oversmoothing using the Dirichlet energy, which was proposed in Rusch et al. (2022a). However, there exist alternative measures to describe the oversmoothing phenomenon in deep GNNs. One such measure is the mean average distance (MAD), which was proposed in Chen et al. (2020a). In order to check if our proposed $\mathbf{G}^2$ mitigates oversmoothing defined through the MAD measure we repeat the first experiment in the main paper and plot the MAD instead of the Dirichlet energy for increasing number of layers in Fig. 9. We can see that while the MAD of a plain GCN and GAT converges exponentially with increasing number of layers, it remains constant for $\mathbf{G}^2$ -GCN and $\mathbf{G}^2$ -GAT. We can thus conclude that $\mathbf{G}^2$ mitigates oversmoothing defined through the MAD measure.
|
| 435 |
+
|
| 436 |
+

|
| 437 |
+
Figure 9: Mean average distance (MAD) of layerwise node features $\mathbf{X}^n$ propagated through a GAT, GCN and their gradient gated versions ( $\mathbf{G}^2$ -GAT, $\mathbf{G}^2$ -GCN).
|
| 438 |
+
|
| 439 |
+
# B TRAINING DETAILS
|
| 440 |
+
|
| 441 |
+
All small and medium-scale experiments have been run on NVIDIA GeForce RTX 2080 Ti, GeForce RTX 3090, Titan RTX and Quadro RTX 6000 GPUs. The large-scale experiments have been run on Nvidia Tesla A100 (40GiB) GPUs.
|
| 442 |
+
|
| 443 |
+
All hyperparameters were tuned using random search. Table 7 shows the ranges of each hyperparameter as well as the random distribution used to randomly sample from it. Moreover, Table 8 shows the rounded hyperparameter $p$ in $\mathbf{G}^2$ (4) of each best performing network.
|
| 444 |
+
|
| 445 |
+
Table 7: Hyperparameter ranges.
|
| 446 |
+
|
| 447 |
+
<table><tr><td></td><td>range</td><td>rand. distribution</td></tr><tr><td>learning rate</td><td>[10-4, 10-2]</td><td>log uniform</td></tr><tr><td>hidden size m</td><td>{32, 64, 128, 256, 512}</td><td>disc. uniform</td></tr><tr><td>dropout input</td><td>[0, 0.9]</td><td>uniform</td></tr><tr><td>dropout output</td><td>[0, 0.9]</td><td>uniform</td></tr><tr><td>weight decay</td><td>[10-8, 10-2]</td><td>log uniform</td></tr><tr><td>G2-exponent p</td><td>[1, 5]</td><td>uniform</td></tr><tr><td>Usage of Fθ in (4)</td><td>{YES, NO}</td><td>disc. uniform</td></tr></table>
|
| 448 |
+
|
| 449 |
+
Table 8: Rounded hyperparameter $p$ in ${\mathbf{G}}^{2}$ of each best performing network.
|
| 450 |
+
|
| 451 |
+
<table><tr><td></td><td>Texas</td><td>Wisconsin</td><td>Film</td><td>Squirrel</td><td>Chameleon</td><td>Cornell</td><td>snap-patents</td><td>arXiv-year</td><td>genius</td></tr><tr><td>G2-GAT</td><td>3.06</td><td>1.68</td><td>1.23</td><td>3.48</td><td>3.54</td><td>3.54</td><td>/</td><td>/</td><td>/</td></tr><tr><td>G2-GCN</td><td>3.93</td><td>2.92</td><td>3.79</td><td>1.99</td><td>1.08</td><td>3.87</td><td>/</td><td>/</td><td>/</td></tr><tr><td>G2-GraphSAGE</td><td>4.47</td><td>1.14</td><td>2.89</td><td>3.04</td><td>2.00</td><td>3.27</td><td>1.60</td><td>3.40</td><td>4.40</td></tr></table>
|
| 452 |
+
|
| 453 |
+
# C MATHEMATICAL DETAILS
|
| 454 |
+
|
| 455 |
+
In this section, we provide proofs for Propositions 3.3 and 3.4 in the main text. We start with the following technical result which is necessary in the subsequent proofs.
|
| 456 |
+
|
| 457 |
+
A Poincare Inequality on Connected Graphs. Poincare inequalities for functions (Evans, 2010) bound function values in terms of their gradients. Similar bounds on node values in terms of graph-gradients can be derived and a particular instance is given below,
|
| 458 |
+
|
| 459 |
+
Proposition C.1. Let $\mathcal{G} = (\mathcal{V},\mathcal{E})$ be a connected graph and the corresponding (scalar) node features are denoted by $\mathbf{y}_i\in \mathbb{R}$ , for all $i\in \mathcal{V}$ . Let $\mathbf{y}_1 = 0$ . Then, the following bound holds,
|
| 460 |
+
|
| 461 |
+
$$
|
| 462 |
+
\sum_ {i \in \mathcal {V}} \mathbf {y} _ {i} ^ {2} \leq \bar {d} \Delta_ {1} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} | \mathbf {y} _ {j} - \mathbf {y} _ {i} | ^ {2}, \tag {17}
|
| 463 |
+
$$
|
| 464 |
+
|
| 465 |
+
where $\overline{d} = \max_{i\in \mathcal{V}}\deg (i)$ and $\Delta_1$ is the eccentricity of the node 1.
|
| 466 |
+
|
| 467 |
+
Proof. Fix a node $i \in \mathcal{V}$ . By assumption, the graph $\mathcal{G}$ is connected. Hence, there exists a path connecting $i$ and the node 1. Denote the shortest path as $\mathcal{P}(i,1)$ . This path can be expressed in terms of the nodes $\ell_{i,1}$ with $0 \leq \ell \leq \delta$ , where $0_{i,1} = 1$ and $\delta_{i,1} = i$ . For any $\ell$ , we require $\ell_{i,1} \sim (\ell + 1)_{i,1}$ . Moreover, $\delta_{i,1}$ is the graph distance between the nodes $i$ and 1 and $\Delta_1 = \max_{i \in \mathcal{V}} \delta_{i,1}$ is the eccentricity of the node 1.
|
| 468 |
+
|
| 469 |
+
Given the node feature $\mathbf{y}_i$ , we can rewrite it as,
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
\mathbf {y} _ {i} = \mathbf {y} _ {1} + \sum_ {\ell = 0} ^ {\delta - 1} \mathbf {y} _ {(\ell + 1) _ {i, 1}} - \mathbf {y} _ {\ell_ {i, 1}} = \sum_ {\ell = 0} ^ {\delta - 1} \mathbf {y} _ {(\ell + 1) _ {i, 1}} - \mathbf {y} _ {\ell_ {i, 1}},
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
as by assumption $\mathbf{y}_1 = 0$
|
| 476 |
+
|
| 477 |
+
Using Cauchy-Schwartz inequality on the previous identity yields,
|
| 478 |
+
|
| 479 |
+
$$
|
| 480 |
+
\mathbf {y} _ {i} ^ {2} \leq \Delta_ {1} \sum_ {\ell = 0} ^ {\delta - 1} \left(\mathbf {y} _ {(\ell + 1) _ {i, 1}} - \mathbf {y} _ {\ell_ {i, 1}}\right) ^ {2}.
|
| 481 |
+
$$
|
| 482 |
+
|
| 483 |
+
Summing the above inequality over $i \in \mathcal{V}$ and using the fact that $\ell_{i,1} \sim (\ell + 1)_{i,1}$ , we obtain the desired Poincaré inequality (17).
|
| 484 |
+
|
| 485 |
+

|
| 486 |
+
|
| 487 |
+
# C.1 PROOF OF PROPOSITION 3.3 OF MAIN TEXT
|
| 488 |
+
|
| 489 |
+
Proof. By the definition of exponential stability, we consider a small perturbation around the steady state $\mathbf{c}$ and study whether this perturbation grows or decays in time. To this end, define the perturbation as,
|
| 490 |
+
|
| 491 |
+
$$
|
| 492 |
+
\hat {\mathbf {X}} _ {i} = \mathbf {X} _ {i} - c, \quad 1 \leq i \leq v. \tag {18}
|
| 493 |
+
$$
|
| 494 |
+
|
| 495 |
+
A tedious but straightforward calculation shows that these perturbations evolve by the following linearized system of ODEs,
|
| 496 |
+
|
| 497 |
+
$$
|
| 498 |
+
\frac {d \hat {\mathbf {X}} _ {i} (t)}{d t} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right), \quad \forall t, \forall i \in \mathcal {V}. \tag {19}
|
| 499 |
+
$$
|
| 500 |
+
|
| 501 |
+
Multiplying $\hat{\mathbf{x}}_i$ to both sides of (19) yields,
|
| 502 |
+
|
| 503 |
+
$$
|
| 504 |
+
\begin{array}{l} \hat {\mathbf {X}} _ {i} \frac {d \hat {\mathbf {X}} _ {i} (t)}{d t} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \hat {\mathbf {X}} _ {i} (\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}), \\ \Rightarrow \frac {d \hat {\mathbf {X}} _ {i} ^ {2} (t)}{d t} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}) - \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}) ^ {2}. \\ \end{array}
|
| 505 |
+
$$
|
| 506 |
+
|
| 507 |
+
Summing the above identity over all nodes $i\in \mathcal{V}$ yields,
|
| 508 |
+
|
| 509 |
+
$$
|
| 510 |
+
\begin{array}{l} \frac {d}{d t} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) = \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}) - \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}) ^ {2} \\ = \frac {1}{2} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \underbrace {\left(\mathbf {A} _ {i j} (c , c) - \mathbf {A} _ {j , i} (c , c)\right)} _ {= 0 (1 5)} \left(\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}\right) - \frac {1}{2} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \underbrace {\left(\mathbf {A} _ {i j} (c , c) + \mathbf {A} _ {j , i} (c , c)\right)} _ {= 2 \mathbf {A} _ {i j} (1 5)} \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right) ^ {2}, \\ = - \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right) ^ {2}, \\ \leq - \underline {{a}} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right) ^ {2}, \quad (\mathrm {b y (1 5)}), \\ \leq - \frac {a}{\bar {d} \Delta_ {1}} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2}. \\ \end{array}
|
| 511 |
+
$$
|
| 512 |
+
|
| 513 |
+
Here, the last inequality comes from applying the Poincaré inequality (17) for the perturbations $\hat{\mathbf{X}}$ and from the fact that by assumption $\hat{\mathbf{X}}_1 = 0$ .
|
| 514 |
+
|
| 515 |
+
Applying Gronwall's inequality yields,
|
| 516 |
+
|
| 517 |
+
$$
|
| 518 |
+
\sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (0) e ^ {- \frac {a}{d \Delta_ {1}} t}. \tag {20}
|
| 519 |
+
$$
|
| 520 |
+
|
| 521 |
+
Thus, the initial perturbations around the steady state $\mathbf{c}$ are damped down exponentially fast and the steady state $\mathbf{c}$ is exponentially stable implying that this architecture will lead to oversmoothing.
|
| 522 |
+
|
| 523 |
+
# C.2 PROOF OF PROPOSITION 3.4 OF MAIN TEXT
|
| 524 |
+
|
| 525 |
+
Proof. As in the proof of Proposition 3.3, we consider small perturbations of form (18) of the steady state $\mathbf{c}$ and investigate how these perturbations evolve in time. Assuming that the initial perturbations are small, i.e., that there exists an $0 < \epsilon < \epsilon$ such that $\max_{i\in \mathcal{V}}|\hat{\mathbf{x}}_i(0)|\leq \epsilon$ , we perform a straightforward calculation to obtain that the perturbations (for a short time) evolve with the following quasi-linearized system of ODEs,
|
| 526 |
+
|
| 527 |
+
$$
|
| 528 |
+
\frac {d \hat {\mathbf {X}} _ {i} (t)}{d t} = \bar {\boldsymbol {\tau}} _ {i} (t) \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right), \forall i \in \mathcal {V}, \tag {21}
|
| 529 |
+
$$
|
| 530 |
+
|
| 531 |
+
$$
|
| 532 |
+
\overline {{\boldsymbol {\tau}}} _ {i} (t) = \sum_ {j \in \mathcal {N} _ {i}} | \hat {\mathbf {X}} _ {j} (t) - \hat {\mathbf {X}} _ {i} (t) | ^ {p}, \forall i \in \mathcal {V}.
|
| 533 |
+
$$
|
| 534 |
+
|
| 535 |
+
Note that we have used the fact that $\sigma'(x) = 1$ and $\tanh'(0) = 1$ in obtaining (21) from (14).
|
| 536 |
+
|
| 537 |
+
Next, we multiply $\hat{\mathbf{x}}_i$ to both sides of (21) to obtain,
|
| 538 |
+
|
| 539 |
+
$$
|
| 540 |
+
\begin{array}{l} \hat {\mathbf {X}} _ {i} \frac {d \hat {\mathbf {X}} _ {i} (t)}{d t} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \overline {{\boldsymbol {\tau}}} _ {i} \hat {\mathbf {X}} _ {i} \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right), \\ \Rightarrow \quad \frac {d \hat {\mathbf {X}} _ {i} ^ {2} (t)}{d t} = \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \bar {\boldsymbol {\tau}} _ {i} \left(\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}\right) - \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \bar {\boldsymbol {\tau}} _ {i} \left(\hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i}\right) ^ {2} \tag {22} \\ \end{array}
|
| 541 |
+
$$
|
| 542 |
+
|
| 543 |
+
Trivially,
|
| 544 |
+
|
| 545 |
+
$$
|
| 546 |
+
\left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p} \leq \bar {\boldsymbol {\tau}} _ {i}, \forall j \in \mathcal {N} _ {i}, \quad \forall i.
|
| 547 |
+
$$
|
| 548 |
+
|
| 549 |
+
Applying this inequality to the last line of the identity (22), we obtain,
|
| 550 |
+
|
| 551 |
+
$$
|
| 552 |
+
\frac {d \hat {\mathbf {X}} _ {i} ^ {2} (t)}{d t} \leq \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \overline {{\boldsymbol {\tau}}} _ {i} \left(\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}\right) - \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2}.
|
| 553 |
+
$$
|
| 554 |
+
|
| 555 |
+
Summing the above inequality over $i \in \mathcal{V}$ leads to,
|
| 556 |
+
|
| 557 |
+
$$
|
| 558 |
+
\begin{array}{l} \frac {d}{d t} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \overline {{\boldsymbol {\tau}}} _ {i} \left(\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}\right) - \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2} \\ \leq \frac {1}{2} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\overline {{\boldsymbol {\tau}}} _ {i} - \overline {{\boldsymbol {\tau}}} _ {j}) (\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}) (\mathbf {A} _ {i j} = \mathbf {A} _ {j, i}) \\ - \underline {{a}} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2} \quad (\text {f r o m (1 5)}). \\ \end{array}
|
| 559 |
+
$$
|
| 560 |
+
|
| 561 |
+
Therefore, we have the following inequality,
|
| 562 |
+
|
| 563 |
+
$$
|
| 564 |
+
\frac {d}{d t} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq T _ {1} - T _ {2},
|
| 565 |
+
$$
|
| 566 |
+
|
| 567 |
+
$$
|
| 568 |
+
T _ {1} = \frac {1}{2} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \mathbf {A} _ {i j} (c, c) (\bar {\boldsymbol {\tau}} _ {i} - \bar {\boldsymbol {\tau}} _ {j}) (\hat {\mathbf {X}} _ {j} ^ {2} - \hat {\mathbf {X}} _ {i} ^ {2}) \tag {23}
|
| 569 |
+
$$
|
| 570 |
+
|
| 571 |
+
$$
|
| 572 |
+
T _ {2} = \underline {{a}} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2}.
|
| 573 |
+
$$
|
| 574 |
+
|
| 575 |
+
We analyze the differential inequality (23) by starting with the term $T_{1}$ in (23). We observe that this term does not have a definite sign and can be either positive or negative. However, we can upper bound this term in the following manner. Given that the right-hand side of the ODE system (21) is Lipschitz continuous, the well-known Cauchy-Lipschitz theorem states that the solutions $\hat{\mathbf{x}}$ depend continuously on the initial data. Given that $\max_{i\in \mathcal{V}}|\hat{\mathbf{X}}_i(0)|\leq \epsilon < < 1$ and the bounds on the hidden states (1), there exists a time $\bar{t} >0$ such that
|
| 576 |
+
|
| 577 |
+
$$
|
| 578 |
+
\max _ {i \in \mathcal {V}} | \hat {\mathbf {X}} _ {i} (t) | \leq 1, \forall t \in [ 0, \overline {{t}} ].
|
| 579 |
+
$$
|
| 580 |
+
|
| 581 |
+
Using the definitions of $\overline{\tau}$ and the right stochasticity of the matrix $\mathbf{A}$ , we easily obtain the following bound,
|
| 582 |
+
|
| 583 |
+
$$
|
| 584 |
+
\left| T _ {1} \right| \leq 2 ^ {p + 1} \bar {d} ^ {2} v, \tag {24}
|
| 585 |
+
$$
|
| 586 |
+
|
| 587 |
+
where $\overline{d} = \max_{i\in \mathcal{V}}\deg (i)$
|
| 588 |
+
|
| 589 |
+
On the other hand, the term $T_{2}$ in (23) is clearly positive. Hence, the solutions of resulting ODE,
|
| 590 |
+
|
| 591 |
+
$$
|
| 592 |
+
\frac {d}{d t} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq - T _ {2}, \tag {25}
|
| 593 |
+
$$
|
| 594 |
+
|
| 595 |
+
will clearly decay in time. The key question is whether or not the decay is exponentially fast. We answer this question below.
|
| 596 |
+
|
| 597 |
+
To this end, we have the following calculation using the Hölder's inequality,
|
| 598 |
+
|
| 599 |
+
$$
|
| 600 |
+
\begin{array}{l} \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {2} \leq (\bar {d} v) ^ {\frac {p}{p + 2}} \left(\sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2}\right) ^ {\frac {2}{p + 2}}, \\ \Rightarrow \quad \frac {1}{(\bar {d} v) ^ {\frac {p}{2}}} \left(\sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {2}\right) ^ {\frac {p + 2}{2}} \leq \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2}. \\ \end{array}
|
| 601 |
+
$$
|
| 602 |
+
|
| 603 |
+
Observing that $\tilde{\mathbf{X}}_1 = 0$ by assumption, we can applying the Poincaré inequality (17) in the above inequality to further obtain,
|
| 604 |
+
|
| 605 |
+
$$
|
| 606 |
+
\frac {1}{\bar {d} ^ {p + 1} v ^ {\frac {p}{2}} \Delta_ {1} ^ {\frac {p + 2}{2}}} \left(\sum_ {i \in \mathcal {V}} | \hat {\mathbf {X}} _ {i} | ^ {2}\right) ^ {\frac {p + 2}{2}} \leq \sum_ {i \in \mathcal {V}} \sum_ {j \in \mathcal {N} _ {i}} \left| \hat {\mathbf {X}} _ {j} - \hat {\mathbf {X}} _ {i} \right| ^ {p + 2}.
|
| 607 |
+
$$
|
| 608 |
+
|
| 609 |
+
Hence, from the definition of $T_{2}$ (23), we have,
|
| 610 |
+
|
| 611 |
+
$$
|
| 612 |
+
T _ {2} \geq \frac {a}{\bar {d} ^ {p + 1} v ^ {\frac {p}{2}} \Delta_ {1} ^ {\frac {p + 2}{2}}} \left(\sum_ {i \in \mathcal {V}} | \hat {\mathbf {X}} _ {i} | ^ {2}\right) ^ {\frac {p + 2}{2}}. \tag {26}
|
| 613 |
+
$$
|
| 614 |
+
|
| 615 |
+
Therefore, the differential inequality (25) now reduces to,
|
| 616 |
+
|
| 617 |
+
$$
|
| 618 |
+
\frac {d}{d t} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq - \frac {a}{\bar {d} ^ {p + 1} v ^ {\frac {p}{2}} \Delta_ {1} ^ {\frac {p + 2}{2}}} \left(\sum_ {i \in \mathcal {V}} | \hat {\mathbf {X}} _ {i} | ^ {2}\right) ^ {\frac {p + 2}{2}}. \tag {27}
|
| 619 |
+
$$
|
| 620 |
+
|
| 621 |
+
The differential inequality (27) can be explicitly solved to obtain,
|
| 622 |
+
|
| 623 |
+
$$
|
| 624 |
+
\sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (t) \leq \left(2 + p t \frac {a}{\bar {d} ^ {p + 1} v ^ {\frac {p}{2}} \Delta_ {1} ^ {\frac {p + 2}{2}}} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (0) ^ {\frac {p}{2}}\right) ^ {- \frac {2}{p}} \sum_ {i \in \mathcal {V}} \hat {\mathbf {X}} _ {i} ^ {2} (0). \tag {28}
|
| 625 |
+
$$
|
| 626 |
+
|
| 627 |
+
From (28), we see that the initial perturbations decay but only algebraically at a rate of $t^{-\frac{2}{p}}$ in time. For instance, the decay is only linear in time for $p = 2$ and even slower for higher value of $p$ .
|
| 628 |
+
|
| 629 |
+
Combining the analysis of the terms $T_{1,2}$ in the differential inequality (23), we see that the one of the terms can lead to a growth in the initial perturbations whereas the second term only leads to polynomial decay. Even if the contribution of the term $T_{1} \equiv 0$ , the decay of initial perturbations is only polynomial. Thus, the steady state $\mathbf{c}$ is not exponentially stable.
|
| 630 |
+
|
| 631 |
+

|
| 632 |
+
|
| 633 |
+
Remark C.2. We note that the Proposition 3.4 assumes a certain structure of the matrix $\mathbf{A}$ in (14). A careful perusal of the proof presented above reveal that this assumptions can be further relaxed. To start with, if the matrix $\mathbf{A}(c, c)$ is not symmetric, then there will be an additional term in the inequality (23), which would be proportional to $\mathbf{A}_{ij} - \mathbf{A}_{ji}$ . This term will be of indefinite sign and can cause further growth in the perturbations of the steady state $c$ . In any case, it can only further destabilize the quasi-linearized system. The assumption that the entries of $\mathbf{A}$ are uniformly positive amounts to assuming positivity of the weights of the underlying GNN layer. This can be replaced by requiring that the corresponding eigenvalues are uniformly positive. If some eigenvalues are negative, this will cause further instability and only strengthen the conclusion of lack of (exponential) stability. Finally, the assumption that one node is not perturbed during the quasi-linearization is required for the Poincaré inequality (17). If this is not true, an additional term, of indefinite sign, is added to the inequality (23). This term can cause further growth of the perturbations and will only add instability to the system. Hence, all the assumptions in Proposition 3.4 can be relaxed and the conclusion of lack of exponential stability of the zero-Dirichlet energy steady state still holds.
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0fb1e57e758cc17c42b668623f6a41bb4e8aab6ef07fa7e25be4f17c3885ec43
|
| 3 |
+
size 919811
|
2023/Gradient Gating for Deep Multi-Rate Learning on Graphs/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/20b76a9d-9de7-4097-b3cb-317945cb6e10_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:06f6ece232263e581bd6496e6532eff39b72a7b9493b4e34d3d0b7f8c4669858
|
| 3 |
+
size 11160452
|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/full.md
ADDED
|
@@ -0,0 +1,434 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRADIENT-GUIDED IMPORTANCE SAMPLING FOR LEARNING BINARY ENERGY-BASED MODELS
|
| 2 |
+
|
| 3 |
+
Meng Liu, Haoran Liu, Shuiwang Ji
|
| 4 |
+
|
| 5 |
+
Department of Computer Science & Engineering
|
| 6 |
+
|
| 7 |
+
Texas A&M University
|
| 8 |
+
|
| 9 |
+
College Station, TX 77843, USA
|
| 10 |
+
|
| 11 |
+
{mengliu, liuhr99,sji}@tamu.edu
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Learning energy-based models (EBMs) is known to be difficult especially on discrete data where gradient-based learning strategies cannot be applied directly. Although ratio matching is a sound method to learn discrete EBMs, it suffers from expensive computation and excessive memory requirements, thereby resulting in difficulties in learning EBMs on high-dimensional data. Motivated by these limitations, in this study, we propose ratio matching with gradient-guided importance sampling (RMwGGIS). Particularly, we use the gradient of the energy function w.r.t. the discrete data space to approximately construct the provably optimal proposal distribution, which is subsequently used by importance sampling to efficiently estimate the original ratio matching objective. We perform experiments on density modeling over synthetic discrete data, graph generation, and training Ising models to evaluate our proposed method. The experimental results demonstrate that our method can significantly alleviate the limitations of ratio matching, perform more effectively in practice, and scale to high-dimensional problems. Our implementation is available at https://github.com/divelab/RmwGGIS.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Energy-Based models (EBMs), also known as unnormalized probabilistic models, model distributions by associating unnormalized probability densities. Such methods have been developed for decades (Hopfield, 1982; Ackley et al., 1985; Cipra, 1987; Dayan et al., 1995; Zhu et al., 1998; Hinton, 2012) and are unified as energy-based models (EBMs) (LeCun et al., 2006) in the machine learning community. EBMs have great simplicity and flexibility since energy functions are not required to integrate or sum to one, thus enabling the usage of various energy functions. In practice, given different data types, we can parameterize the energy function with different neural networks as needed, such as multi-layer perceptrons (MLPs), convolutional neural networks (CNNs) (LeCun et al., 1998), and graph neural networks (GNNs) (Gori et al., 2005; Scarselli et al., 2008). Recently, EBMs have been drawing increasing attention and are demonstrated to be effective in various domains, including images (Ngiam et al., 2011; Xie et al., 2016; Du & Mordatch, 2019), videos (Xie et al., 2017), texts (Deng et al., 2020), 3D objects (Xie et al., 2018), molecules (Liu et al., 2021; Hataya et al., 2021), and proteins (Du et al., 2020b).
|
| 20 |
+
|
| 21 |
+
Nonetheless, learning (a.k.a., training) EBMs is known to be challenging since we cannot compute the exact likelihood due to the intractable normalization constant. As reviewed in Section 4, many approaches have been proposed to learn EBMs, such as maximum likelihood training with MCMC sampling (Hinton, 2002) and score matching (Hyvarinen & Dayan, 2005). However, most recent advanced methods cannot be applied to discrete data directly since they usually leverage gradients over the continuous data space. For example, for many methods based on maximum likelihood training with MCMC sampling, they use the gradient w.r.t. the data space to update samples in each MCMC step. However, if we update discrete samples using such gradient, the resulting samples are usually invalid in the discrete space. Therefore, learning EBMs on discrete data remains challenging.
|
| 22 |
+
|
| 23 |
+
Ratio matching (Hyvarinen, 2007) is a method to learn discrete EBMs on binary data by matching ratios of probabilities between the data distribution and the model distribution, as detailed in Sec-
|
| 24 |
+
|
| 25 |
+
tion 2.2. However, as analyzed in Section 3.1, it requires expensive computations and excessive memory usages, which is infeasible if the data is high-dimensional.
|
| 26 |
+
|
| 27 |
+
In this work, we propose to use the gradient of the energy function w.r.t. the discrete data space to guide the importance sampling for estimating the original ratio matching objective. More specifically, we use such gradient to approximately construct the provably optimal proposal distribution for importance sampling. Thus, the proposed approach is termed as ratio matching with gradient-guided importance sampling (RMwGGIS). Our RMwGGIS can significantly overcome the limitations of ratio matching. In addition, it is demonstrated to be more effective than the original ratio matching in practice. We perform extensive analysis for this improvement by connecting it with hard negative mining, and further propose an advanced version of RMwGGIS accordingly by reconsidering the importance weights. Experimental results on synthetic discrete data, graph generation, and Ising model training demonstrate that our RMwGGIS significantly alleviates the limitations of ratio matching, achieves better performance with obvious margins, and has the ability of scaling to high-dimensional relevant problems.
|
| 28 |
+
|
| 29 |
+
# 2 PRELIMINARIES
|
| 30 |
+
|
| 31 |
+
# 2.1 ENERGY-BASED MODELS
|
| 32 |
+
|
| 33 |
+
Let $\pmb{x}$ be a data point and $E_{\pmb{\theta}}(\pmb{x}) \in \mathbb{R}$ be the corresponding energy, where $\pmb{\theta}$ represents the learnable parameters of the parameterized energy function $E_{\pmb{\theta}}(\cdot)$ . The probability density function of the model distribution is given as $p_{\theta}(\pmb{x}) = \frac{e^{-E_{\theta}(\pmb{x})}}{Z_{\theta}} \propto e^{-E_{\theta}(\pmb{x})}$ , where $Z_{\theta} \in \mathbb{R}$ is the normalization constant (a.k.a., partition function). To be specific, $Z_{\theta} = \int e^{-E_{\theta}(\pmb{x})} d\pmb{x}$ if $\pmb{x}$ is in the continuous space and $Z_{\theta} = \sum e^{-E_{\theta}(\pmb{x})}$ for discrete data. Hence, computing $Z_{\theta}$ is usually infeasible due to the intractable integral or summation. Note that $Z_{\theta}$ is a variable depending on $\pmb{\theta}$ but a constant w.r.t. $\pmb{x}$ .
|
| 34 |
+
|
| 35 |
+
# 2.2 RATIO MATCHING
|
| 36 |
+
|
| 37 |
+
Ratio matching (Hyvärinen, 2007) is developed for learning EBMs on binary discrete data by matching ratios of probabilities between the data distribution and the model distribution. Note that we focus on $d$ -dimensional binary discrete data $\pmb{x} \in \{0,1\}^d$ in this work.
|
| 38 |
+
|
| 39 |
+
Specifically, ratio matching considers the ratio of $p(\pmb{x})$ and $p(\pmb{x}_{-i})$ , where $\pmb{x}_{-i} = (x_1, x_2, \dots, \bar{x}_i, \dots, x_d)$ denotes a point in the data space obtained by flipping the $i$ -th dimension of $\pmb{x}$ . The key idea is to force the ratios $\frac{p_{\theta}(\pmb{x})}{p_{\theta}(\pmb{x}_{-i})}$ defined by the model distribution $p_{\theta}$ to be as close as possible to the ratios $\frac{p_{\mathcal{D}}(\pmb{x})}{p_{\mathcal{D}}(\pmb{x}_{-i})}$ given by the data distribution $p_{\mathcal{D}}$ . The benefit of considering ratios of probabilities is that they do not involve the intractable normalization constant $Z_{\theta}$ since $\frac{p_{\theta}(\pmb{x})}{p_{\theta}(\pmb{x}_{-i})} = \frac{e^{-E_{\theta}(\pmb{x})}}{Z_{\theta}} \cdot \frac{Z_{\theta}}{e^{-E_{\theta}(\pmb{x}_{-i})}} = e^{E_{\theta}(\pmb{x}_{-i}) - E_{\theta}(\pmb{x})}$ . To achieve the match between ratios, Hyvarinen (2007) proposes to minimize the objective function
|
| 40 |
+
|
| 41 |
+
$$
|
| 42 |
+
\mathcal {J} _ {R M} (\boldsymbol {\theta}) = \mathbb {E} _ {\boldsymbol {x} \sim p _ {\mathcal {D}} (\boldsymbol {x})} \sum_ {i = 1} ^ {d} \left[ g \left(\frac {p _ {\mathcal {D}} (\boldsymbol {x})}{p _ {\mathcal {D}} (\boldsymbol {x} _ {- i})}\right) - g \left(\frac {p _ {\boldsymbol {\theta}} (\boldsymbol {x})}{p _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})}\right) \right] ^ {2} + \left[ g \left(\frac {p _ {\mathcal {D}} (\boldsymbol {x} _ {- i})}{p _ {\mathcal {D}} (\boldsymbol {x})}\right) - g \left(\frac {p _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})}{p _ {\boldsymbol {\theta}} (\boldsymbol {x})}\right) \right] ^ {2}. \tag {1}
|
| 43 |
+
$$
|
| 44 |
+
|
| 45 |
+
The sum of two square distances with the role of $\pmb{x}$ and $\pmb{x}_{-i}$ switched is specifically designed since it is essential for the following simplification. In addition, the function $g(u) = \frac{1}{1 + u}$ is also carefully chosen in order to obtain the subsequent simplification. To compute the objective defined in Eq. (1), it is known that the expectation over data distribution (i.e., $\mathbb{E}_{\pmb{x} \sim p_{\mathcal{D}}(\pmb{x})}$ ) can be unbiasedly estimated by the empirical mean of samples $\pmb{x} \sim p_{\mathcal{D}}(\pmb{x})$ . However, to obtain the ratios between $p_{\mathcal{D}}(\pmb{x})$ and $p_{\mathcal{D}}(\pmb{x}_{-i})$ in Eq. (1), the exact data distribution is required to be known, which is usually impossible.
|
| 46 |
+
|
| 47 |
+
Fortunately, thanks to the above carefully designed objective, Hyvarinen (2007) demonstrates that the objective function in Eq. (1) is equivalent to the following simplified version
|
| 48 |
+
|
| 49 |
+
$$
|
| 50 |
+
\mathcal {J} _ {R M} (\boldsymbol {\theta}) = \mathbb {E} _ {\boldsymbol {x} \sim p _ {\mathcal {D}} (\boldsymbol {x})} \sum_ {i = 1} ^ {d} \left[ g \left(\frac {p _ {\boldsymbol {\theta}} (\boldsymbol {x})}{p _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})}\right) \right] ^ {2} \tag {2}
|
| 51 |
+
$$
|
| 52 |
+
|
| 53 |
+
which does not require the data distribution to be known and can be easily computed by evaluating the energy of $\pmb{x}$ and $\pmb{x}_{-i}$ , according to $\frac{p_{\theta}(\pmb{x})}{p_{\theta}(\pmb{x}_{-i})} = e^{E_{\theta}(\pmb{x}_{-i}) - E_{\theta}(\pmb{x})}$ . Further, Lyu (2009) shows that the above objective function of ratio matching agree with the following objective
|
| 54 |
+
|
| 55 |
+
$$
|
| 56 |
+
\mathcal {J} _ {R M} (\pmb {\theta}) = \mathbb {E} _ {\pmb {x} \sim p _ {\mathcal {D}} (\pmb {x})} \sum_ {i = 1} ^ {d} \left[ \frac {p _ {\pmb {\theta}} (\pmb {x} _ {- i})}{p _ {\pmb {\theta}} (\pmb {x})} \right] ^ {2} = \mathbb {E} _ {\pmb {x} \sim p _ {\mathcal {D}} (\pmb {x})} \sum_ {i = 1} ^ {d} \left[ e ^ {E _ {\pmb {\theta}} (\pmb {x}) - E _ {\pmb {\theta}} (\pmb {x} _ {- i})} \right] ^ {2}. \qquad (3)
|
| 57 |
+
$$
|
| 58 |
+
|
| 59 |
+
They agree with each other since function $g(\cdot)$ decreases monotonically in $[0, +\infty)$ , which aligns with the value range of probability ratios $\frac{p_{\theta}(\boldsymbol{x})}{p_{\theta}(\boldsymbol{x}_{-i})}$ . Note that Eq. (3) is originally named as the discrete extension of generalized score matching in Lyu (2009). Since it agrees with Eq. (2) and includes ratios of probabilities, we also treat it as an objective function of ratio matching in our context. In the rest of this paper, we provide our analysis and develop our method based on Eq. (3) for clarity. Nonetheless, our proposed method below can be naturally performed on Eq. (2) as well.
|
| 60 |
+
|
| 61 |
+
Intuitively, the objective function of ratio matching, as formulated in Eq. (3) or Eq. (2), can push down the energy of the training sample $\pmb{x}$ and push up the energies of other data points obtained by flipping one dimension of $\pmb{x}$ . Thus, this objective faithfully expect that each training sample $\pmb{x}$ has higher probability than its local neighboring points that are hamming distance 1 from $\pmb{x}$ .
|
| 62 |
+
|
| 63 |
+
It is worth mentioning that ratio matching is not suitable for binary image data. This is because it faithfully treats $\pmb{x}$ as a positive sample and $x_{-i}$ for $i = 1,2,\dots ,d$ as negative samples. However, this assumption does not hold for binary image data. Specifically, if we flip one dimension/pixel of a binary image such as a digit image from MNIST, the resulting image is almost unchanged and is still a positive sample in nature. Thus, it is not reasonable to use ratio matching to train EBMs on binary images. Similarly, our RMwGGIS presented below also has this limitation. Having said this, our RMwGGIS is still an effective and efficient method for a broad of binary discrete data. We leave extending its applicability to general discrete EBMs for future work.
|
| 64 |
+
|
| 65 |
+
# 3 THE PROPOSED METHOD
|
| 66 |
+
|
| 67 |
+
We first analyze the limitations of the ratio matching method from the perspective of computational time and memory usage. Then, we describe our proposed method, ratio matching with gradient-guided importance sampling (RMwGGIS), which uses the gradient of the energy function w.r.t. the discrete input $\pmb{x}$ to guide the importance sampling for estimating the original ratio matching objective. Our approach can alleviate the limitations significantly and is shown to be more effective in practice.
|
| 68 |
+
|
| 69 |
+
# 3.1 ANALYSIS OF RATIO MATCHING
|
| 70 |
+
|
| 71 |
+
Time-intensive computations. Based on Eq. (3), for a sample $\pmb{x}$ , we have to compute the energies for all $x_{-i}$ , where $i = 1, \dots, d$ . This needs $\mathcal{O}(d)$ evaluations of the energy function for each training sample. This is computationally intensive, especially when the data dimension $d$ is large.
|
| 72 |
+
|
| 73 |
+
Excessive memory usages. The memory usage of ratio matching is another limitation that cannot be ignored, especially when we learn the energy function using modern GPUs with limited memory. As shown in Eq. (3), the objective function consists of $d$ terms for each training sample. When we do backpropagation, computing the gradient of the objective function w.r.t. the learnable parameters of the energy function is required. Therefore, in order to compute such gradient, we have to store the whole computational graph and the intermediate tensors for all of the $d$ terms, thereby leading to excessive memory usages especially if the data dimension $d$ is large.
|
| 74 |
+
|
| 75 |
+
# 3.2 RATIO MATCHING WITH GRADIENT-GUIDED IMPORTANCE SAMPLING
|
| 76 |
+
|
| 77 |
+
The key idea is to use the well-known importance sampling technique to reduce the variance of estimating $\mathcal{I}_{RM}(\pmb{\theta})$ with fewer than $d$ terms. The most critical and challenging part of using the importance sampling technique is choosing a good proposal distribution. In this work, we propose to use the gradient of the energy function w.r.t. the discrete input $\pmb{x}$ to approximately construct the optimal proposal distribution for importance sampling. We describe the details of our method below.
|
| 78 |
+
|
| 79 |
+
The objective for each sample $\pmb{x}$ , defined by Eq. (3), can be reformulated as
|
| 80 |
+
|
| 81 |
+
$$
|
| 82 |
+
\mathcal {J} _ {R M} (\boldsymbol {\theta}, \boldsymbol {x}) = d \sum_ {i = 1} ^ {d} \frac {1}{d} \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2} = d \mathbb {E} _ {\boldsymbol {x} _ {- i} \sim m (\boldsymbol {x} _ {- i})} \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2}, \tag {4}
|
| 83 |
+
$$
|
| 84 |
+
|
| 85 |
+
where $m(\pmb{x}_{-i}) = \frac{1}{d}$ for $i = 1, \dots, d$ is a discrete distribution. Thus, the objective of ratio matching for each sample $\pmb{x}$ can be viewed as the expectation of $\left[e^{E_{\theta}(\pmb{x}) - E_{\theta}(\pmb{x}_{-i})}\right]^2$ over the discrete distribution $m(\pmb{x}_{-i})$ . In the original ratio matching method, as described in Section 2.2, we compute such expectation exactly by considering all possible $\pmb{x}_{-i}$ , leading to expensive computations and excessive memory usages. Naturally, we can estimate the desired expectation with Monte Carlo method by considering fewer terms sampled based on $m(\pmb{x}_{-i})$ . However, such estimation usually has a high variance, and is empirically verified to be ineffective by our experiments in Section 5.
|
| 86 |
+
|
| 87 |
+
Further, we can apply the importance sampling method to reduce the variance of Monte Carlo estimation. Intuitively, certain values have more impact on the expectation than others. Hence, the estimator variance can be reduced if such important values are sampled more frequently than others. To be specific, instead of sampling based on the distribution $m(\boldsymbol{x}_{-i})$ , importance sampling aims to sample from another distribution $n(\boldsymbol{x}_{-i})$ , namely, proposal distribution. Formally,
|
| 88 |
+
|
| 89 |
+
$$
|
| 90 |
+
\mathcal {J} _ {R M} (\boldsymbol {\theta}, \boldsymbol {x}) = d \mathbb {E} _ {\boldsymbol {x} _ {- i} \sim m \left(\boldsymbol {x} _ {- i}\right)} \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2} = d \mathbb {E} _ {\boldsymbol {x} _ {- i} \sim n \left(\boldsymbol {x} _ {- i}\right)} \frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)}. \tag {5}
|
| 91 |
+
$$
|
| 92 |
+
|
| 93 |
+
A short derivation of Eq. (5) is in Appendix A. Afterwards, we can apply Monte Carlo estimation based on the proposal distribution $n(\pmb{x}_{-i})$ . Specifically, we sample $s$ terms, denoted as $\pmb{x}_{-i}^{(1)}, \dots, \pmb{x}_{-i}^{(s)}$ , according to the proposal distribution $n(\pmb{x}_{-i})$ . Note that $s$ is usually chosen to be much smaller than $d$ . Then the estimation for $\mathcal{J}_{RM}(\pmb{\theta}, \pmb{x})$ is computed based on these $s$ terms. Formally,
|
| 94 |
+
|
| 95 |
+
$$
|
| 96 |
+
\widehat {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})} _ {n} = d \frac {1}{s} \sum_ {t = 1} ^ {s} \frac {m \left(\boldsymbol {x} _ {- i} ^ {(t)}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i} ^ {(t)}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i} ^ {(t)}\right)}, \quad \boldsymbol {x} _ {- i} ^ {(t)} \sim n \left(\boldsymbol {x} _ {- i}\right). \tag {6}
|
| 97 |
+
$$
|
| 98 |
+
|
| 99 |
+
To make it clear, we stop the gradient flowing through the importance weights during backpropagation. It is known that the estimator obtained by Monte Carlo estimation with importance sampling is an unbiased estimator, as the conventional Monte Carlo estimator. The key point of importance sampling is to choose an appropriate proposal distribution $n(\boldsymbol{x}_{-i})$ , which determines the variance of the corresponding estimator. Based on Robert et al. (1999), the optimal proposal distribution $n^{*}(\boldsymbol{x}_{-i})$ , which yields the minimum variance, is given by the following fact.
|
| 100 |
+
|
| 101 |
+
Fact 1. Let $n^*(\pmb{x}_{-i}) = \frac{\left[e^{E_{\pmb{\theta}}(\pmb{x}) - E_{\pmb{\theta}}(\pmb{x}_{-i})}\right]^2}{\sum_{k=1}^d \left[e^{E_{\pmb{\theta}}(\pmb{x}) - E_{\pmb{\theta}}(\pmb{x}_{-k})}\right]^2}$ be a discrete distribution on $\pmb{x}_{-i}$ , where $i = 1, \dots, d$ . Then for any discrete distribution $n(\pmb{x}_{-i})$ on $\pmb{x}_{-i}$ , where $i = 1, \dots, d$ , we have $Var\left(\widehat{\mathcal{J}_{RM}(\pmb{\theta}, \pmb{x})}_{n^*}\right) \leq Var\left(\widehat{\mathcal{J}_{RM}(\pmb{\theta}, \pmb{x})}_n\right)$ .
|
| 102 |
+
|
| 103 |
+
Proof. The proof is included in Appendix B.
|
| 104 |
+
|
| 105 |
+
To construct the exact optimal proposal distribution $n^{*}(\pmb{x}_{-i})$ , we still have to evaluate the energies of all $\pmb{x}_{-i}$ , where $i = 1, \dots, d$ . To avoid such complexity, we propose to leverage the gradient of the energy function w.r.t. the discrete input $\pmb{x}$ to approximately construct the optimal proposal distribution. Only $\mathcal{O}(1)$ evaluations of the energy function is needed to construct the proposal distribution.
|
| 106 |
+
|
| 107 |
+
It is observed by Grathwohl et al. (2021) that many discrete distributions are implemented as continuous and differentiable functions, although they are evaluated only in discrete domains. Grathwohl et al. (2021) further proposes a scalable sampling method for discrete distributions by using the gradients of the underlying continuous functions w.r.t. the discrete input. In this study, we extend this idea to improve ratio matching. More specifically, in our case, even though our input $x$ is discrete, our parameterized energy function $E_{\theta}(\cdot)$ , such as a neural network, is usually continuous and differentiable. Hence, we can use such gradient information to efficiently and approximately construct the optimal proposal distribution given by Fact 1.
|
| 108 |
+
|
| 109 |
+
Algorithm 1 Ratio Matching with Gradient-Guided Importance Sampling (RMwGGIS)
|
| 110 |
+
1: Input: Observed dataset $\mathcal{D} = \{\pmb{x}^{(m)}\}_{m=1}^{|D|}$ , parameterized energy function $E_{\theta}(\cdot)$ , number of samples $s$ for Monte Carlo estimation with importance sampling
|
| 111 |
+
2: for $\pmb{x} \sim \mathcal{D}$ do ▷ Batch training is applied in practice
|
| 112 |
+
3: Compute $E_{\theta}(\pmb{x})$
|
| 113 |
+
4:Compute $\nabla_{\pmb{x}} E_{\theta}(\pmb{x})$
|
| 114 |
+
5:Compute the proposal distribution $\widetilde{n}^{*}(\pmb{x}_{-i})$ ▷ Eq. (10)
|
| 115 |
+
6:Sample $s$ terms, denoted as $\pmb{x}_{-i}^{(1)}, \dots, \pmb{x}_{-i}^{(s)}$ , according to $\widetilde{n}^{*}(\pmb{x}_{-i})$
|
| 116 |
+
7:Compute $\widehat{\mathcal{J}_{RM}(\pmb{\theta}, \pmb{x})}_{\widetilde{n}^{*}}$ ▷ Eq. (6) (or Eq. (11))
|
| 117 |
+
8:Update $\pmb{\theta}$ based on $\nabla_{\pmb{\theta}} \widehat{\mathcal{J}_{RM}(\pmb{\theta}, \pmb{x})}_{\widetilde{n}^{*}}$
|
| 118 |
+
9:end for
|
| 119 |
+
|
| 120 |
+
The basic idea is that we can approximate $E_{\theta}(\pmb{x}_{-i})$ based on the Taylor series of $E_{\theta}(\cdot)$ at $\pmb{x}$ , given that $\pmb{x}_{-i}$ is close to $\pmb{x}$ in the data space because they only have differences in one dimension<sup>1</sup>. Formally,
|
| 121 |
+
|
| 122 |
+
$$
|
| 123 |
+
E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right) \approx E _ {\boldsymbol {\theta}} (\boldsymbol {x}) + \left(\boldsymbol {x} _ {- i} - \boldsymbol {x}\right) ^ {T} \nabla_ {\boldsymbol {x}} E _ {\boldsymbol {\theta}} (\boldsymbol {x}). \tag {7}
|
| 124 |
+
$$
|
| 125 |
+
|
| 126 |
+
Thus, we can approximately obtain the desired term $E_{\theta}(\pmb{x}) - E_{\theta}(\pmb{x}_{-i})$ in Fact 1 using Eq. (7). Note that $\nabla_{\pmb{x}}E_{\theta}(\pmb{x}) \in \mathbb{R}^{d}$ contains the information for approximating all $E_{\theta}(\pmb{x}) - E_{\theta}(\pmb{x}_{-i})$ , where $i = 1,\dots ,d$ . Hence, we can consider the following $d$ -dimensional vector
|
| 127 |
+
|
| 128 |
+
$$
|
| 129 |
+
(2 \boldsymbol {x} - 1) \odot \nabla_ {\boldsymbol {x}} E _ {\boldsymbol {\theta}} (\boldsymbol {x}) \quad \in \mathbb {R} ^ {d}, \tag {8}
|
| 130 |
+
$$
|
| 131 |
+
|
| 132 |
+
where $\odot$ denotes the element-wise multiplication. Note that we have $x_{i} - \bar{x}_{i} = -1$ if $x_{i} = 0$ and $x_{i} - \bar{x}_{i} = 1$ if $x_{i} = 1$ , which can be unified as $x_{i} - \bar{x}_{i} = 2x_{i} - 1$ . Therefore, we have
|
| 133 |
+
|
| 134 |
+
$$
|
| 135 |
+
E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right) \approx \left[ (2 \boldsymbol {x} - 1) \odot \nabla_ {\boldsymbol {x}} E _ {\boldsymbol {\theta}} (\boldsymbol {x}) \right] _ {i}, i = 1, \dots , d. \tag {9}
|
| 136 |
+
$$
|
| 137 |
+
|
| 138 |
+
Afterwards, we can provide a proposal distribution $\widetilde{n}^{*}(\pmb{x}_{-i})$ as an approximation of the optimal proposal distribution $n^{*}(\pmb{x}_{-i})$ given by Fact 1. Formally,
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\widetilde {n} ^ {*} \left(\boldsymbol {x} _ {- i}\right) = \frac {\left[ e ^ {2 (2 \boldsymbol {x} - 1) \odot \nabla_ {\boldsymbol {x}} E _ {\boldsymbol {\theta}} (\boldsymbol {x})} \right] _ {i}}{\sum_ {k = 1} ^ {d} \left[ e ^ {2 (2 \boldsymbol {x} - 1) \odot \nabla_ {\boldsymbol {x}} E _ {\boldsymbol {\theta}} (\boldsymbol {x})} \right] _ {k}}, i = 1, \dots , d. \tag {10}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
Then $\widetilde{n}^{*}(\pmb{x}_{-i})$ is used as the proposal distribution for Monte Carlo estimation with importance sampling, as in Eq. (6). The overall process of our RMwGGIS method is summarized in Algorithm 1.
|
| 145 |
+
|
| 146 |
+
# 3.3 COMPARISON BETWEEN RATIO MATCHING AND RMWGGIS
|
| 147 |
+
|
| 148 |
+
Time and memory. Since only $s$ ( $s < d$ ) terms are considered in the objective function of our RMwGGIS, as shown in Eq. (6), we have better computational efficiency and less memory requirement compared to the original ratio matching method. To be specific, our RMwGGIS only needs $\mathcal{O}(s)$ evaluations of the energy function compared with $\mathcal{O}(d)$ in ratio matching, leading to a linear speedup, which is significant especially when the data is high-dimensional. The improvement in terms of memory usage is similar. In Section 5.1, we compare the real running time and memory usage between ratio matching and our proposed RMwGGIS on datasets with different data dimensions.
|
| 149 |
+
|
| 150 |
+
Better optimization? In Section 3.2, we propose our RMwGGIS based on the motivation to approximate the objective of ratio matching with fewer terms. Although our RMwGGIS can approximate the original ratio matching objective numerically, our objective only includes $s$ terms compared to $d$ terms in the original ratio matching objective. In other words, the objective of ratio matching, as shown in Eq. (3), intuitively pushes up the energies of all $x_{-i}$ for $i = 1,\dots ,d$ , while our RMwGGIS only considers pushing up energies of $s$ terms among them, as formulated by Eq. (6). Thus, one may wonder why our objective is effective for learning EBMs without pushing up the energies of all $d$ terms? In practice, we even observe that RMwGGIS achieves better density modeling performance
|
| 151 |
+
|
| 152 |
+
than ratio matching. We conjecture that this is because our RMwGGIS can lead to better optimization of Eq. (3) in practice for the following two properties, which are empirically verified in Section 5.
|
| 153 |
+
|
| 154 |
+
(1) RMwGGIS introduces stochasticity. Without involving all $d$ terms in the objective function, our method can introduce stochasticity, which could lead to better optimization in practice. This has the same philosophy as the comparison between mini-batch gradient descent and vanilla gradient descent. The gradient is obtained based on each batch in mini-batch gradient descent, while it is computed over the entire dataset in vanilla gradient descent. It is known that the mini-batch gradient descent usually performs better in practice since the stochasticity introduced by mini-batch training could help escape from the saddle points in non-convex optimization (Ge et al., 2015). Therefore, the stochasticity introduced by sampling only $s$ terms in RMwGGIS might help the optimization especially when $d$ is large.
|
| 155 |
+
|
| 156 |
+
(2) RMwGGIS focuses on neighbors with low energies. Even though only energies of $s$ terms are pushed up in our method, these $s$ terms correspond to the neighboring points that have low energies. According to $n^*(\boldsymbol{x}_{-i})$ given by Fact 1, a neighbor of $\boldsymbol{x}$ , denoted as $\boldsymbol{x}_{-i}$ , is more likely to be sampled if its corresponding energy value is lower. Hence, we choose to push up the energies of $s$ neighbors according to their current energies. The lower the energy, the more likely it is to be selected. This is intuitively sound because the terms that have low energies are the most offending terms, which should have the higher priorities to be pushed up. In other words, neighbors with lower energies contribute more to the objective function according to Eq. (3). That is, the loss values for these neighbors are larger. Thus, RMwGGIS has the same philosophy as hard negative mining, which pays more attention to hard negative samples during training. More detailed explanation about this connection is provided in Appendix C.
|
| 157 |
+
|
| 158 |
+
Following the hard negative mining perspective, we observe that the coefficients used in Eq. (6) provide smaller weights for terms with lower energies. In other words, among its selected offending terms (i.e., hard negative samples), it pay least attention to the most offending terms, which is intuitively less effective. Therefore, we further propose the following advanced version as an objective function by removing the coefficients in Eq. (6). Formally,
|
| 159 |
+
|
| 160 |
+
$$
|
| 161 |
+
\overbrace {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x}) _ {\widetilde {n} ^ {*}}} ^ {a d v} = \sum_ {t = 1} ^ {s} \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i} ^ {(t)}\right)} \right] ^ {2}, \quad \boldsymbol {x} _ {- i} ^ {(t)} \sim \widetilde {n} ^ {*} \left(\boldsymbol {x} _ {- i}\right). \tag {11}
|
| 162 |
+
$$
|
| 163 |
+
|
| 164 |
+
This advanced version is essentially a heuristic extension of the basic version in Eq. (6). It is demonstrated to be more effective in practice. The explanation about this is discussed in Appendix D.
|
| 165 |
+
|
| 166 |
+
# 4 RELATED WORKS
|
| 167 |
+
|
| 168 |
+
Learning EBMs has been drawing increasing attention recently. Maximum likelihood training with MCMC sampling, also known as contrastive divergence (Hinton, 2002), is the most representative method. It contrasts samples from training set and samples from the model distribution. To draw samples from the model distribution, we can employ MCMC sampling approaches, such as Langevin dynamics (Welling & Teh, 2011) and Hamiltonian dynamics (Neal et al., 2011). Such methods are further improved and shown to be effective by recent studies (Xie et al., 2016; Gao et al., 2018; Du & Mordatch, 2019; Nijkamp et al., 2019; Grathwohl et al., 2019; Jacob et al., 2020; Qiu et al., 2019; Du et al., 2020a). These methods, however, require the gradient w.r.t. the data space to update samples in each MCMC step. Thus, they cannot be applied to discrete data directly. To enable maximum likelihood training with MCMC sampling on discrete data, we can naturally use discrete sampling methods, such as Gibbs sampling and Metropolis-Hastings algorithm (Zanella, 2020), to replace the above gradient-based sampling algorithms. Unfortunately, sampling from a discrete distribution is extremely time-consuming and not scalable. Recently, Dai et al. (2020) develops a learnable sampler parameterized as a local discrete search algorithm to propose negative samples for contrasting. Grathwohl et al. (2021) proposes a scalable sampling method for discrete distributions by surprisingly using the gradient w.r.t. the data space, which inspires our work a lot.
|
| 169 |
+
|
| 170 |
+
An alternative method for learning EBMs is score matching (Hyvärinen & Dayan, 2005; Vincent, 2011; Song et al., 2020; Song & Ermon, 2019), where the scores, i.e., the gradients of the logarithmic
|
| 171 |
+
|
| 172 |
+
Table 1: Results on 32-dimensional synthetic discrete data in terms of MMD. The lower the better. The top two results on each dataset are highlighted as 1st and 2nd.
|
| 173 |
+
|
| 174 |
+
<table><tr><td>Method</td><td>2spirals</td><td>8gaussians</td><td>circles</td><td>moons</td><td>pinwheel</td><td>swissroll</td><td>checkerboard</td></tr><tr><td>Ratio Matching</td><td>0.01514</td><td>0.10270</td><td>0.11856</td><td>0.02901</td><td>0.31353</td><td>0.05820</td><td>0.00059</td></tr><tr><td>RMwGGIS (basic)</td><td>0.01099</td><td>0.09763</td><td>0.11017</td><td>0.03111</td><td>0.27885</td><td>0.05176</td><td>0.00050</td></tr><tr><td>RMwGGIS (advanced)</td><td>0.00876</td><td>0.08414</td><td>0.10230</td><td>0.02787</td><td>0.26188</td><td>0.04477</td><td>0.00026</td></tr></table>
|
| 175 |
+
|
| 176 |
+
probability distribution w.r.t. the data space, of the energy function are forced to match the scores of the training data. Ratio matching (Hyvarinen, 2007; Lyu, 2009) is obtained by extending the idea of score matching to discrete data. Our work is motivated by the limitations of ratio matching, as analyzed in Section 3.1. Stochastic ratio matching (Dauphin & Bengio, 2013) also aims to make ratio matching more efficient by considering the sparsity of input data. Stochastic ratio matching is limited to sparse data, while our method is effective for general EBMs
|
| 177 |
+
|
| 178 |
+
There are some other methods for learning EBMs, such as noise contrastive estimation (Gutmann & Hyvarinen, 2010; Bose et al., 2018; Ceylan & Gutmann, 2018; Gao et al., 2020) and learning the stein discrepancy (Grathwohl et al., 2020). We recommend readers to refer to Song & Kingma (2021) for a comprehensive introduction on learning EBMs. We note that several works (Elvira et al., 2015; Schuster, 2015) use the gradient information of the target distribution to iteratively optimize the proposal distributions for adaptive importance sampling. However, compared to our method, they can only applied to continuous distributions and require expensive iterative processes.
|
| 179 |
+
|
| 180 |
+
# 5 EXPERIMENTS
|
| 181 |
+
|
| 182 |
+
# 5.1 DENSITY MODELING ON SYNTHETIC DISCRETE DATA
|
| 183 |
+
|
| 184 |
+
Setup. For both quantitative results and qualitative visualization, we follow the experimental setting of Dai et al. (2020) for density modeling on synthetic discrete data. We firstly draw 2D data points from 2D continuous space according to some unknown distribution $\hat{p}$ , which can be naturally visualized. Then, we convert each 2D data point $\hat{x} \in \mathbb{R}^2$ to a discrete data point $x \in \{0,1\}^d$ , where $d$ is the desired number of data dimensions. To be specific, we transform each dimension of $\hat{x}$ , which is a floating-point number, into a $\frac{d}{2}$ -bit Gray code and concatenate the results to obtain a $d$ -bit vector $x$ . Thus, the unknown distribution in discrete space is $p(x) = \hat{p}\left(\left[\mathrm{GrayToFloat}(x_{1:\frac{d}{2}}), \mathrm{GrayToFloat}(x_{\frac{d}{2} + 1:d})\right]\right)$ . This density modeling task is challenging since the transformation from $\hat{x}$ to $x$ is non-linear.
|
| 185 |
+
|
| 186 |
+
To quantitatively evaluate the performance of density modeling, we adopt the maximum mean discrepancy (MMD) (Gretton et al., 2012) with a linear kernel corresponding to $(d$ -HammingDistance) to compare distributions. In our case, particularly, the MMD metric is computed based on 4000 samples, drawn from the learned energy function via Gibbs sampling, and the same number of samples from the training set. Lower MMD indicates that the distribution defined by the learned energy function is closer to the unknown data distribution. In addition, in order to qualitatively visualize the learned energy function, we firstly uniformly obtain $10k$ data points from 2D continuous space. Afterwards, they are converted into bit vectors and evaluated by the learned energy function. Subsequently, we can visualize the obtained corresponding energies in 2D space.
|
| 187 |
+
|
| 188 |
+
The energy function is parameterized by an MLP with the Swish (Ramachandran et al., 2017) activation and 256 hidden dimensions. The number of samples $s$ , involved in the objective functions of our RMwGGIS method, is set to be 10. In the following, we compare our basic and advanced RMwGGIS methods, as formulated in Eq. (6) and Eq. (11) respectively, with the original ratio matching method (Hyvärinen, 2007; Lyu, 2009).
|
| 189 |
+
|
| 190 |
+
Quantitative and qualitative results. The quantitative results on 32-dimensional datasets are shown in Table 1. Our RMwGGIS, including the basic and the advanced versions, consistently outperforms the original ratio matching by large margins, which demonstrates that it is effective for our proposed gradient-guided importance sampling to stochastically push up neighbors with low energies. This
|
| 191 |
+
|
| 192 |
+
verifies our analysis in Section 3.3. In Figure 1, we qualitatively visualize the learned energy functions of our proposed RMwGGIS. It is observed that EBMs learned by our method can fit the data distribution accurately. Note that we choose $d = 32$ for quantitative evaluation because Gibbs sampling cannot obtain appropriate samples from the learned energy function with an affordable time budget if the data dimension is too high, thus leading to invalid MMD results. We will compare the results on higher-dimensional data in the following by observing the qualitative visualization. To further demonstrate that the performance improvement of RMwGGIS over ratio matching is brought by better optimization, we show that energy functions learned with our methods actually lead to lower value for the objective function defined by Eq. (3). The details are included in Appendix E.
|
| 193 |
+
|
| 194 |
+
Observations on higher-dimensional data. As analyzed in Section 3.3, the advantages of our approach can be greater on higher-dimensional data. To evaluate this, we conduct experiments on the 256-dimensional 2spirals dataset, and visualize the learned energy functions corresponding to different learning iterations. We construct a ablation method, named as RMwRAND, which estimates the original ratio matching objective by randomly sampling $s = 10$ terms.
|
| 195 |
+
|
| 196 |
+

|
| 197 |
+
Figure 1: Visualization of learned energy functions on 32-dimensional synthetic discrete datasets.
|
| 198 |
+
|
| 199 |
+
The only difference between our RMwGGIS method and RMwRAND is that we focus more on the terms corresponding to low energies, based on our proposed gradient-guided importance sampling.
|
| 200 |
+
|
| 201 |
+
As shown in Figure 4, Appendix F, our RMwGGIS accurately captures the data distribution, while the original ratio matching method cannot. This further verifies that RMwGGIS leads to better optimization than ratio matching especially when the data dimension is high, as analyzed in Section 3.3. In addition, although RMwRAND can also introduce stochasticity as RMwGGIS by randomly sampling, it fails to capture the data distribution. This observation is intuitively reasonable since randomly pushing up $s = 10$ terms among $d = 256$ terms leads to large variance. Instead, our RMwGGIS performs well since we focus on pushing up terms with low energies, which are the most offending terms and should be pushed up first. Overall, these experiments can show the superiority of RMwGGIS endowed by our proposed gradient-guided importance sampling on high-dimensional data.
|
| 202 |
+
|
| 203 |
+
Selection of $s$ . Note that we did not perform extensive tuning for $s$ , although tuning it might bring performance improvement. To further show the influence of $s$ and the effectiveness of RMwGGIS (advanced) over RMwRAND. We perform an experiment to train both models on 256-dimensional 2spirals with $s = 5, 10, 50, 100$ . The visualization of the learned energy functions is shown in Figure 2. Our RMwGGIS is observed to achieve good density modeling performance that is robust to the selection of $s$ . In contrast, RMwRAND fails
|
| 204 |
+
|
| 205 |
+

|
| 206 |
+
Figure 2: Comparison of RMwG-GIS(advanced) and RMwRAND with several configurations of $s$ .
|
| 207 |
+
|
| 208 |
+
to capture the data distribution even with $s = 100$ . This further demonstrates the effectiveness and robustness of our proposed gradient-guided importance sampling strategy.
|
| 209 |
+
|
| 210 |
+
Running time and memory usage. To verify RMwGGIS has better efficiency than ratio matching, we compare the real running time and memory usage on datasets of various dimensions. Specifically, we construct several 2spirals datasets with different data dimensions and train parameterized energy functions using ratio matching and our RMwGGIS, respectively. We choose batch size to be 256. The reported time corresponds to the average training time per batch. For RMwGGIS, we report the results of the advanced version.
|
| 211 |
+
|
| 212 |
+
As summarized in Table 5, Appendix G, our RMwGGIS is much more efficient in terms of running time and memory usage, compared to ratio matching. In addition, the improvement is more obvious with the increasing of data dimension. Specifically, compared with ratio matching, our RMwGGIS can achieve 6.2 times speedup and save $90.1\%$ memory usage on the 2048-dimensional dataset.
|
| 213 |
+
|
| 214 |
+
# 5.2 GRAPH GENERATION
|
| 215 |
+
|
| 216 |
+
Setup. We further evaluate our RMwGGIS on graph generation using the Ego-small dataset (You et al., 2018). It is a set of one-hop ego graphs, where the number of nodes $4 \leq |V| \leq 18$ , obtained
|
| 217 |
+
|
| 218 |
+
from the Citeseer network (Sen et al., 2008). Following the experimental setting of You et al. (2018) and Liu et al. (2019), $80\%$ of the graphs are used for training and the rest for testing. New graphs can be generated via Gibbs sampling on the learned energy function. To evaluate the graph generation performance based on the generated graphs and the test graphs, we calculate MMD over three statistics, i.e., degrees, clustering coefficients, and orbit counts, as proposed in You et al. (2018).
|
| 219 |
+
|
| 220 |
+
We parameterize the energy function by a 5-layer RGCN (Schlichtkrull et al., 2018) model with the Swish activation and 32 hidden dimensions, whose input is the upper triangle of the graph adjacency matrix. The number of samples $s$ used in our RMwGGIS objective is 50. We apply our advanced version to learn the energy function since it is more effective in Section 5.1. Besides ratio matching, we consider the recent proposed method EBM (GWG) (Grathwohl et al., 2021) as a baseline. We also consider the recent works developed for graph generation as baselines, including GraphVAE (Simonovsky & Komodakis, 2018), DeepGMG (Li et al., 2018), GraphRNN (You et al., 2018),
|
| 221 |
+
|
| 222 |
+
Table 2: Graph generation results in terms of MMD. Avg. denotes the average over three MMD results.
|
| 223 |
+
|
| 224 |
+
<table><tr><td>Method</td><td>Degree</td><td>Cluster</td><td>Orbit</td><td>Avg.</td></tr><tr><td>GraphVAE</td><td>0.130</td><td>0.170</td><td>0.050</td><td>0.117</td></tr><tr><td>DeepGMG</td><td>0.040</td><td>0.100</td><td>0.020</td><td>0.053</td></tr><tr><td>GraphRNN</td><td>0.090</td><td>0.220</td><td>0.003</td><td>0.104</td></tr><tr><td>GNF</td><td>0.030</td><td>0.100</td><td>0.001</td><td>0.044</td></tr><tr><td>EDP-GNN</td><td>0.052</td><td>0.093</td><td>0.007</td><td>0.050</td></tr><tr><td>GraphAF</td><td>0.030</td><td>0.110</td><td>0.001</td><td>0.047</td></tr><tr><td>GraphDF</td><td>0.040</td><td>0.130</td><td>0.010</td><td>0.060</td></tr><tr><td>EBM (GWG)</td><td>0.093</td><td>0.027</td><td>0.053</td><td>0.058</td></tr><tr><td>Ratio Matching</td><td>0.062</td><td>0.066</td><td>0.008</td><td>0.045</td></tr><tr><td>RMwGGIS</td><td>0.044</td><td>0.059</td><td>0.013</td><td>0.039</td></tr></table>
|
| 225 |
+
|
| 226 |
+
GNF (Liu et al., 2019), EDP-GNN (Niu et al., 2020), GraphAF (Shi et al., 2019), and GraphDF (Luo et al., 2021). The detailed setup is provided in Appendix H
|
| 227 |
+
|
| 228 |
+
Quantitative and qualitative results. As summarized in Table 2, our RMwGGIS outperforms baselines in terms of the average over three MMD results. This shows that our method can learn EBMs to generate graphs that align with various characteristics of the training graphs. The generated samples are visualized in Figure 5, Appendix I. It can be observed that the generated samples are realistic one-hop ego graphs that have similar characteristics as the training samples.
|
| 229 |
+
|
| 230 |
+
# 5.3 TRAINING ISING MODELS
|
| 231 |
+
|
| 232 |
+
To further demonstrate the scaling ability of our method and compare with recent baselines more thoroughly, we use our
|
| 233 |
+
|
| 234 |
+
Table 3: Comparison of training Ising models.
|
| 235 |
+
|
| 236 |
+
<table><tr><td colspan="2">MCMC #Steps</td><td>5</td><td>10</td><td>25</td><td>50</td><td>100</td><td>Ratio Matching</td><td>RMwGGIS</td></tr><tr><td rowspan="2">log(RMSE)</td><td>EBM (Gibbs)</td><td>-1.60</td><td>-1.90</td><td>-2.50</td><td>-3.00</td><td>-3.60</td><td rowspan="2">-3.99</td><td rowspan="2">-4.06</td></tr><tr><td>EBM (GWG)</td><td>-4.02</td><td>-4.49</td><td>-4.87</td><td>-4.94</td><td>-5.05</td></tr><tr><td rowspan="2">Time/iter</td><td>EBM (Gibbs)</td><td>263.5ms</td><td>437.3ms</td><td>1113.2ms</td><td>2524.9ms</td><td>4670.1ms</td><td rowspan="2">450.7ms</td><td rowspan="2">13.9ms</td></tr><tr><td>EBM (GWG)</td><td>37.5ms</td><td>63.4ms</td><td>100.5ms</td><td>222.6ms</td><td>395.7ms</td></tr></table>
|
| 237 |
+
|
| 238 |
+
RMwGGIS to train the Ising model with a 2D cyclic lattice structure, following Grathwohl et al. (2021). We consider a $25 \times 25$ lattice, thus leading to a 625-dimension problem, which can be used to evaluate the ability of scaling to high-dimensional problems. We compare methods in terms of the RMSE between the inferred connectivity matrix $\hat{J}$ and the true $J$ and the running time per iteration. The experimental details are included in Appendix J. As shown in Table 3, our RMwGGIS is more effective than ratio matching and EBM (Gibbs) with various sample steps. The recently proposed EBM (GWG) (Grathwohl et al., 2021) achieves better RMSE than ours. In terms of running time, our method is much more efficient than baselines since we avoid the expensive MCMC sampling during training and do not have to consider flipping all dimensions as ratio matching. According to this experiment, one future direction could be further improving the effectiveness of RMwGGIS while preserving the efficiency advantage.
|
| 239 |
+
|
| 240 |
+
# 6 CONCLUSION
|
| 241 |
+
|
| 242 |
+
We propose ratio matching with gradient-guided importance sampling (RMwGGIS) for learning EBMs on binary discrete data. In particular, we use the gradient of the energy function w.r.t. the discrete input space to guide the importance sampling for estimating the original ratio matching objective. We further connect our method with hard negative mining, and obtain the advanced version of RMwGGIS. Compared to ratio matching, our RMwGGIS methods, including the basic and advanced versions, are more efficient in terms of computation and memory usage, and are shown to be more effective for density modeling. Extensive experiments on synthetic data density modeling, graph generation, and Ising model training demonstrate that our RMwGGIS achieves significant improvements over previous methods in terms of both effectiveness and efficiency.
|
| 243 |
+
|
| 244 |
+
# ACKNOWLEDGMENTS
|
| 245 |
+
|
| 246 |
+
This work was supported in part by National Science Foundation grant IIS-1908220.
|
| 247 |
+
|
| 248 |
+
# REFERENCES
|
| 249 |
+
|
| 250 |
+
David H Ackley, Geoffrey E Hinton, and Terrence J Sejnowski. A learning algorithm for boltzmann machines. Cognitive science, 9(1):147-169, 1985.
|
| 251 |
+
Avishek Joey Bose, Huan Ling, and Yanshuai Cao. Adversarial contrastive estimation. In Proceedings of the 56th Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), pp. 1021-1032, 2018.
|
| 252 |
+
Ciwan Ceylan and Michael U Gutmann. Conditional noise-contrastive estimation of unnormalised models. In International Conference on Machine Learning, pp. 726-734. PMLR, 2018.
|
| 253 |
+
Barry A Cipra. An introduction to the ising model. The American Mathematical Monthly, 94(10): 937-959, 1987.
|
| 254 |
+
Hanjun Dai, Rishabh Singh, Bo Dai, Charles Sutton, and Dale Schuurmans. Learning discrete energy-based models via auxiliary-variable local exploration. Advances in Neural Information Processing Systems, 33:10443-10455, 2020.
|
| 255 |
+
Yann Dauphin and Yoshua Bengio. Stochastic ratio matching of rbms for sparse high-dimensional inputs. Advances in Neural Information Processing Systems, 26:1340-1348, 2013.
|
| 256 |
+
Peter Dayan, Geoffrey E Hinton, Radford M Neal, and Richard S Zemel. The helmholtz machine. Neural computation, 7(5):889-904, 1995.
|
| 257 |
+
Yuntian Deng, Anton Bakhtin, Myle Ott, Arthur Szlam, and Marc'Aurelio Ranzato. Residual energy-based models for text generation. In International Conference on Learning Representations, 2020.
|
| 258 |
+
Yilun Du and Igor Mordatch. Implicit generation and modeling with energy based models. In Advances in Neural Information Processing Systems, volume 32, pp. 3608-3618, 2019.
|
| 259 |
+
Yilun Du, Shuang Li, Joshua Tenenbaum, and Igor Mordatch. Improved contrastive divergence training of energy based models. arXiv preprint arXiv:2012.01316, 2020a.
|
| 260 |
+
Yilun Du, Joshua Meier, Jerry Ma, Rob Fergus, and Alexander Rives. Energy-based models for atomic-resolution protein conformations. In International Conference on Learning Representations, 2020b.
|
| 261 |
+
Víctor Elvira, Luca Martino, David Luengo, and Jukka Corander. A gradient adaptive population importance sampler. In 2015 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), pp. 4075-4079. IEEE, 2015.
|
| 262 |
+
Pedro F Felzenszwalb, Ross B Girshick, David McAllester, and Deva Ramanan. Object detection with discriminatively trained part-based models. IEEE transactions on pattern analysis and machine intelligence, 32(9):1627-1645, 2009.
|
| 263 |
+
Ruiqi Gao, Yang Lu, Junpei Zhou, Song-Chun Zhu, and Ying Nian Wu. Learning generative convnets via multi-grid modeling and sampling. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 9155-9164, 2018.
|
| 264 |
+
Ruiqi Gao, Erik Nijkamp, Diederik P Kingma, Zhen Xu, Andrew M Dai, and Ying Nian Wu. Flow contrastive estimation of energy-based models. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 7518-7528, 2020.
|
| 265 |
+
Rong Ge, Furong Huang, Chi Jin, and Yang Yuan. Escaping from saddle points—online stochastic gradient for tensor decomposition. In Conference on learning theory, pp. 797-842. PMLR, 2015.
|
| 266 |
+
|
| 267 |
+
Marco Gori, Gabriele Monfardini, and Franco Scarselli. A new model for learning in graph domains. In Proceedings. 2005 IEEE International Joint Conference on Neural Networks, 2005., volume 2, pp. 729-734. IEEE, 2005.
|
| 268 |
+
Will Grathwohl, Kuan-Chieh Wang, Jorn-Henrik Jacobsen, David Duvenaud, Mohammad Norouzi, and Kevin Swersky. Your classifier is secretly an energy based model and you should treat it like one. arXiv preprint arXiv:1912.03263, 2019.
|
| 269 |
+
Will Grathwohl, Kuan-Chieh Wang, Jorn-Henrik Jacobsen, David Duvenaud, and Richard Zemel. Learning the stein discrepancy for training and evaluating energy-based models without sampling. In International Conference on Machine Learning, pp. 3732-3747. PMLR, 2020.
|
| 270 |
+
Will Grathwohl, Kevin Swersky, Milad Hashemi, David Duvenaud, and Chris J Maddison. Oops i took a gradient: Scalable sampling for discrete distributions. In International conference on machine learning. PMLR, 2021.
|
| 271 |
+
Arthur Gretton, Karsten M Borgwardt, Malte J Rasch, Bernhard Schölkopf, and Alexander Smola. A kernel two-sample test. The Journal of Machine Learning Research, 13(1):723-773, 2012.
|
| 272 |
+
Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 297-304. JMLR Workshop and Conference Proceedings, 2010.
|
| 273 |
+
Ryuichiro Hataya, Hideki Nakayama, and Kazuki Yoshizoe. Graph energy-based model for substructure preserving molecular design. arXiv preprint arXiv:2102.04600, 2021.
|
| 274 |
+
Geoffrey E Hinton. Training products of experts by minimizing contrastive divergence. Neural computation, 14(8):1771-1800, 2002.
|
| 275 |
+
Geoffrey E Hinton. A practical guide to training restricted boltzmann machines. In Neural networks: Tricks of the trade, pp. 599-619. Springer, 2012.
|
| 276 |
+
John J Hopfield. Neural networks and physical systems with emergent collective computational abilities. Proceedings of the national academy of sciences, 79(8):2554-2558, 1982.
|
| 277 |
+
Aapo Hyvarinen. Some extensions of score matching. Computational statistics & data analysis, 51 (5):2499-2512, 2007.
|
| 278 |
+
Aapo Hyvarinen and Peter Dayan. Estimation of non-normalized statistical models by score matching. Journal of Machine Learning Research, 6(4), 2005.
|
| 279 |
+
Ernst Ising. Beitrag zur Theorie des Ferromagnetismus. Zeitschrift fur Physik, 31(1):253-258, February 1925. doi: 10.1007/BF02980577.
|
| 280 |
+
Pierre E Jacob, John O'Leary, and Yves F Atchadé. Unbiased markov chain monte carlo methods with couplings. Journal of the Royal Statistical Society: Series B (Statistical Methodology), 82(3): 543-600, 2020.
|
| 281 |
+
Diederik P Kingma and Jimmy Ba. Adam: A method for stochastic optimization. In International Conference on Learning Representations, 2015.
|
| 282 |
+
Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278-2324, 1998.
|
| 283 |
+
Yann LeCun, Sumit Chopra, Raia Hadsell, M Ranzato, and F Huang. A tutorial on energy-based learning. Predicting structured data, 1(0), 2006.
|
| 284 |
+
Yujia Li, Oriol Vinyals, Chris Dyer, Razvan Pascanu, and Peter Battaglia. Learning deep generative models of graphs. In International Conference on Machine Learning, 2018.
|
| 285 |
+
Jenny Liu, Aviral Kumar, Jimmy Ba, Jamie Kiros, and Kevin Swersky. Graph normalizing flows. Advances in Neural Information Processing Systems, 32:13578-13588, 2019.
|
| 286 |
+
|
| 287 |
+
Meng Liu, Keqiang Yan, Bora Oztekin, and Shuiwang Ji. GraphEBM: Molecular graph generation with energy-based models. arXiv preprint arXiv:2102.00546, 2021.
|
| 288 |
+
Youzhi Luo, Keqiang Yan, and Shuiwang Ji. GraphDF: A discrete flow model for molecular graph generation. In International Conference on Machine Learning, pp. 7192-7203, 2021.
|
| 289 |
+
Siwei Lyu. Interpretation and generalization of score matching. In Proceedings of the Twenty-Fifth Conference on Uncertainty in Artificial Intelligence, pp. 359-366, 2009.
|
| 290 |
+
Radford M Neal et al. Mcmc using hamiltonian dynamics. Handbook of markov chain monte carlo, 2(11):2, 2011.
|
| 291 |
+
Jiquan Ngiam, Zhenghao Chen, Pang Wei Koh, and Andrew Y Ng. Learning deep energy models. In Proceedings of the 28th International Conference on International Conference on Machine Learning, pp. 1105-1112, 2011.
|
| 292 |
+
Erik Nijkamp, Mitch Hill, Song-Chun Zhu, and Ying Nian Wu. Learning non-convergent non-persistent short-run mcmc toward energy-based model. In Proceedings of the 33rd International Conference on Neural Information Processing Systems, pp. 5232-5242, 2019.
|
| 293 |
+
Chenhao Niu, Yang Song, Jiaming Song, Shengjia Zhao, Aditya Grover, and Stefano Ermon. Permutation invariant graph generation via score-based generative modeling. Artificial Intelligence and Statistics, 2020.
|
| 294 |
+
Yixuan Qiu, Lingsong Zhang, and Xiao Wang. Unbiased contrastive divergence algorithm for training energy-based latent variable models. In International Conference on Learning Representations, 2019.
|
| 295 |
+
Prajit Ramachandran, Barret Zoph, and Quoc V Le. Swish: a self-gated activation function. arXiv preprint arXiv:1710.05941, 7:1, 2017.
|
| 296 |
+
Christian P Robert, George Casella, and George Casella. Monte Carlo statistical methods, volume 2. Springer, 1999.
|
| 297 |
+
Henry A Rowley, Shumeet Baluja, and Takeo Kanade. Neural network-based face detection. IEEE Transactions on pattern analysis and machine intelligence, 20(1):23-38, 1998.
|
| 298 |
+
Franco Scarselli, Marco Gori, Ah Chung Tsoi, Markus Hagenbuchner, and Gabriele Monfardini. The graph neural network model. IEEE transactions on neural networks, 20(1):61-80, 2008.
|
| 299 |
+
Michael Schlichtkrull, Thomas N Kipf, Peter Bloem, Rianne Van Den Berg, Ivan Titov, and Max Welling. Modeling relational data with graph convolutional networks. In European Semantic Web Conference, pp. 593-607. Springer, 2018.
|
| 300 |
+
Ingmar Schuster. Gradient importance sampling. arXiv preprint arXiv:1507.05781, 2015.
|
| 301 |
+
Prithviraj Sen, Galileo Namata, Mustafa Bilgic, Lise Getoor, Brian Galligher, and Tina Eliassi-Rad. Collective classification in network data. AI magazine, 29(3):93-93, 2008.
|
| 302 |
+
Chence Shi, Minkai Xu, Zhaocheng Zhu, Weinan Zhang, Ming Zhang, and Jian Tang. GraphAF: a flow-based autoregressive model for molecular graph generation. In International Conference on Learning Representations, 2019.
|
| 303 |
+
Abhinav Shrivastava, Abhinav Gupta, and Ross Girshick. Training region-based object detectors with online hard example mining. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 761-769, 2016.
|
| 304 |
+
Martin Simonovsky and Nikos Komodakis. GraphVAE: Towards generation of small graphs using variational autoencoders. In International Conference on Artificial Neural Networks, pp. 412-422. Springer, 2018.
|
| 305 |
+
Yang Song and Stefano Ermon. Generative modeling by estimating gradients of the data distribution. In Advances in Neural Information Processing Systems, pp. 11918-11930, 2019.
|
| 306 |
+
|
| 307 |
+
Yang Song and Diederik P Kingma. How to train your energy-based models. arXiv preprint arXiv:2101.03288, 2021.
|
| 308 |
+
Yang Song, Sahaj Garg, Jiaxin Shi, and Stefano Ermon. Sliced score matching: A scalable approach to density and score estimation. In Uncertainty in Artificial Intelligence, pp. 574-584. PMLR, 2020.
|
| 309 |
+
Tijmen Tieleman. Training restricted boltzmann machines using approximations to the likelihood gradient. In Proceedings of the 25th international conference on Machine learning, pp. 1064-1071, 2008.
|
| 310 |
+
Pascal Vincent. A connection between score matching and denoising autoencoders. Neural computation, 23(7):1661-1674, 2011.
|
| 311 |
+
Max Welling and Yee W Teh. Bayesian learning via stochastic gradient Langevin dynamics. In Proceedings of the 28th international conference on machine learning (ICML-11), pp. 681-688, 2011.
|
| 312 |
+
Jianwen Xie, Yang Lu, Song-Chun Zhu, and Yingnian Wu. A theory of generative convnet. In International Conference on Machine Learning, pp. 2635-2644, 2016.
|
| 313 |
+
Jianwen Xie, Song-Chun Zhu, and Ying Nian Wu. Synthesizing dynamic patterns by spatial-temporal generative convnet. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 7093-7101, 2017.
|
| 314 |
+
Jianwen Xie, Zilong Zheng, Ruiqi Gao, Wenguan Wang, Song-Chun Zhu, and Ying Nian Wu. Learning descriptor networks for 3d shape synthesis and analysis. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 8629-8638, 2018.
|
| 315 |
+
Jiaxuan You, Rex Ying, Xiang Ren, William Hamilton, and Jure Leskovec. Graphrn: Generating realistic graphs with deep auto-regressive models. In International conference on machine learning, pp. 5708-5717. PMLR, 2018.
|
| 316 |
+
Giacomo Zanella. Informed proposals for local mcmc in discrete spaces. Journal of the American Statistical Association, 115(530):852-865, 2020.
|
| 317 |
+
Song Chun Zhu, Yingnian Wu, and David Mumford. Filters, random fields and maximum entropy (frame): Towards a unified theory for texture modeling. International Journal of Computer Vision, 27(2):107-126, 1998.
|
| 318 |
+
|
| 319 |
+
# A THE DETAILED DERIVATION OF EQ. (5)
|
| 320 |
+
|
| 321 |
+
The detailed derivation of Eq. (5) is as follows.
|
| 322 |
+
|
| 323 |
+
$$
|
| 324 |
+
\begin{array}{l} \mathcal {J} _ {R M} (\pmb {\theta}, \pmb {x}) = d \mathbb {E} _ {\pmb {x} _ {- i} \sim m (\pmb {x} _ {- i})} \left[ e ^ {E _ {\pmb {\theta}} (\pmb {x}) - E _ {\pmb {\theta}} (\pmb {x} _ {- i})} \right] ^ {2} \\ = d \sum_ {i = 1} ^ {d} m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2} \\ = d \sum_ {i = 1} ^ {d} \frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)} n \left(\boldsymbol {x} _ {- i}\right) \tag {12} \\ = d \mathbb {E} _ {\pmb {x} _ {- i} \sim n (\pmb {x} _ {- i})} \frac {m (\pmb {x} _ {- i}) \left[ e ^ {E _ {\pmb {\theta}} (\pmb {x}) - E _ {\pmb {\theta}} (\pmb {x} _ {- i})} \right] ^ {2}}{n (\pmb {x} _ {- i})}. \\ \end{array}
|
| 325 |
+
$$
|
| 326 |
+
|
| 327 |
+
# B PROOF OF FACT 1
|
| 328 |
+
|
| 329 |
+
Proof. According to Eq. (6), we have
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
\operatorname {V a r} \left(\widehat {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})} _ {n}\right) = \frac {d ^ {2}}{s} \operatorname {V a r} \left(\frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)}\right). \tag {13}
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
Then we can compare the variance of the estimator based on $n^{*}(\pmb{x}_{-i})$ and $n(\pmb{x}_{-i})$ . Formally,
|
| 336 |
+
|
| 337 |
+
$$
|
| 338 |
+
\begin{array}{l} \operatorname {V a r} \left(\widehat {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})} _ {n ^ {*}}\right) (14) \\ = \frac {d ^ {2}}{s} \operatorname {V a r} \left(\frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n ^ {*} \left(\boldsymbol {x} _ {- i}\right)}\right) (15) \\ = \frac {d ^ {2}}{s} \left\{\mathbb {E} _ {\boldsymbol {x} _ {- i} \sim n ^ {*} (\boldsymbol {x} _ {- i})} \left[ \frac {m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2}}{n ^ {*} (\boldsymbol {x} _ {- i})} \right] ^ {2} - \left[ \mathbb {E} _ {\boldsymbol {x} _ {- i} \sim n ^ {*} (\boldsymbol {x} _ {- i})} \frac {m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2}}{n ^ {*} (\boldsymbol {x} _ {- i})} \right] ^ {2} \right\} (16) \\ = \frac {d ^ {2}}{s} \left\{\mathbb {E} _ {\boldsymbol {x} _ {- i} \sim n ^ {*} (\boldsymbol {x} _ {- i})} \left[ \frac {m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2}}{n ^ {*} (\boldsymbol {x} _ {- i})} \right] ^ {2} - \left[ \frac {\mathcal {I} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (17) \\ = \frac {d ^ {2}}{s} \left\{\frac {1}{d} \sum_ {i = 1} ^ {d} n ^ {*} (\boldsymbol {x} _ {- i}) \left[ \frac {m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\theta} (\boldsymbol {x}) - E _ {\theta} (\boldsymbol {x} _ {- i})} \right] ^ {2}}{n ^ {*} (\boldsymbol {x} _ {- i})} \right] ^ {2} - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (18) \\ = \frac {d ^ {2}}{s} \left\{\frac {1}{d} \sum_ {i = 1} ^ {d} m ^ {2} (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2} \sum_ {k = 1} ^ {d} \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- k})} \right] ^ {2} - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (19) \\ = \frac {d ^ {2}}{s} \left\{\frac {1}{d} \left[ \sum_ {i = 1} ^ {d} m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2} \right] ^ {2} - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (20) \\ = \frac {d ^ {2}}{s} \left\{\frac {1}{d} \left[ \sum_ {i = 1} ^ {d} \frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\theta} (\boldsymbol {x}) - E _ {\theta} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)} \sqrt {n \left(\boldsymbol {x} _ {- i}\right)} \sqrt {n \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2} - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (21) \\ \leq \frac {d ^ {2}}{s} \left\{\frac {1}{d} \sum_ {i = 1} ^ {d} \left[ \frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\theta} (\boldsymbol {x}) - E _ {\theta} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)} \sqrt {n \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2} \sum_ {i = 1} ^ {d} n \left(\boldsymbol {x} _ {- i}\right) - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (22) \\ \end{array}
|
| 339 |
+
$$
|
| 340 |
+
|
| 341 |
+
$$
|
| 342 |
+
\begin{array}{l} = \frac {d ^ {2}}{s} \left\{\frac {1}{d} \sum_ {i = 1} ^ {d} n \left(\boldsymbol {x} _ {- i}\right) \left[ \frac {m \left(\boldsymbol {x} _ {- i}\right) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2}}{n \left(\boldsymbol {x} _ {- i}\right)} \right] ^ {2} - \left[ \frac {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (23) \\ = \frac {d ^ {2}}{s} \left\{\mathbb {E} _ {\boldsymbol {x} _ {- i} \sim n (\boldsymbol {x} _ {- i})} \left[ \frac {m (\boldsymbol {x} _ {- i}) \left[ e ^ {E _ {\boldsymbol {\theta}} (\boldsymbol {x}) - E _ {\boldsymbol {\theta}} (\boldsymbol {x} _ {- i})} \right] ^ {2}}{n (\boldsymbol {x} _ {- i})} \right] ^ {2} - \left[ \frac {\mathcal {I} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})}{d} \right] ^ {2} \right\} (24) \\ = \operatorname {V a r} \left(\widehat {\mathcal {J} _ {R M} (\boldsymbol {\theta} , \boldsymbol {x})} _ {n}\right). (25) \\ \end{array}
|
| 343 |
+
$$
|
| 344 |
+
|
| 345 |
+
Eq. (17) can be derived because the estimator is unbiased no matter what proposal distribution is applied. Eq. (19) is obtained by choosing $n^{*}(\pmb{x}_{-i}) = \frac{\left[e^{E_{\theta}(\pmb{x}) - E_{\theta}(\pmb{x}_{-i})}\right]^{2}}{\sum_{k=1}^{d}\left[e^{E_{\theta}(\pmb{x}) - E_{\theta}(\pmb{x}_{-k})}\right]^{2}}$ . Eq. (20) holds since $m(\pmb{x}_{-i}) = \frac{1}{d}$ for $i = 1, \dots, d$ . To derive Eq. (22), we apply the Cauchy-Schwarz inequality $\left(\sum_{i=1}^{d} a_{i} b_{i}\right)^{2} \leq \left(\sum_{i=1}^{d} a_{i}^{2}\right)\left(\sum_{i=1}^{d} b_{i}^{2}\right)$ . This completes the proof of Fact 1.
|
| 346 |
+
|
| 347 |
+
# C CONNECTION WITH HARD NEGATIVE MINING
|
| 348 |
+
|
| 349 |
+
Here, we provide an insight to understand why the second property, described in Section 3.3, can lead to better optimization, by connecting it with hard sample mining.
|
| 350 |
+
|
| 351 |
+
Hard sample mining (Felzenszwalb et al., 2009; Rowley et al., 1998) has been widely applied to train deep neural networks (Shrivastava et al., 2016). Our RMwGGIS is particularly highly related to hard negative training strategies. The basic idea for hard negative mining is to pay more attention to hard negative samples during training, which can usually achieve better performance since it can reduce false positives. In our setting of discrete EBMs, each training sample $\pmb{x}$ is a positive sample, and its energy should be pushed down. For each positive sample $\pmb{x}$ , all $x_{-i}$ for $i = 1, 2, \dots, d$ are negative samples, and their energy should be pushed up. Our RMwGGIS with the specific proposal distribution shown in Eq. (10) can approximately choose the $x_{-i}$ 's that currently have low energies with larger probabilities. This has the same philosophy as hard negative mining. Specifically, in our case, $x_{-i}$ 's with low energies are hard negative samples since they are the most offending terms, which are close to the positive sample $\pmb{x}$ and have low energies.
|
| 352 |
+
|
| 353 |
+
Since our proposal distribution defined in Eq. (10) approximates the provable optimal proposal distribution given in Theorem 1, our proposal distribution thus approximately performs "hard negative mining". The natural follow-up question is how accurate is the approximation and how does it affect the learning process? We answer this question by analyzing the following two stages during learning, which can intuitively show that our RMwGGIS is technically sound.
|
| 354 |
+
|
| 355 |
+

|
| 356 |
+
(a)
|
| 357 |
+
|
| 358 |
+

|
| 359 |
+
(b)
|
| 360 |
+
Figure 3: An intuitive illustration of the approximation: (a) Stage I and (b) Stage II. The black curves denote the energy functions. Green nodes and brown nodes represent the true energy values and approximated values of neighbors, respectively. Note that the approximated values are obtained based on Taylor series of $E_{\theta}(\cdot)$ at $x$ , as shown in Eq. (7). For clarity, we only show two neighbors of $x$ in this figure, but this illustration can also be extended to include all neighbors.
|
| 361 |
+
|
| 362 |
+
Stage I. As shown in Figure 3 (a), at the early stage of learning, the energy function is not learned well, thus the energy $E_{\theta}(\pmb{x})$ of positive sample $\pmb{x}$ is not smaller than its all neighbors. In this case,
|
| 363 |
+
|
| 364 |
+
Table 4: Comparison of resulting objective values. The top two lowest values on each dataset are highlighted as 1st and 2nd.
|
| 365 |
+
|
| 366 |
+
<table><tr><td>Method</td><td>2spirals</td><td>8gaussians</td><td>circles</td><td>moons</td><td>pinwheel</td><td>swissroll</td><td>checkerboard</td></tr><tr><td>Ratio Matching</td><td>46.02</td><td>39.26</td><td>31.82</td><td>28.57</td><td>28.50</td><td>37.52</td><td>26.05</td></tr><tr><td>RMwGGIS (basic)</td><td>26.84</td><td>30.15</td><td>29.89</td><td>27.80</td><td>28.08</td><td>32.20</td><td>26.09</td></tr><tr><td>RMwGGIS (advanced)</td><td>27.15</td><td>29.31</td><td>29.54</td><td>27.75</td><td>27.30</td><td>29.45</td><td>26.06</td></tr></table>
|
| 367 |
+
|
| 368 |
+
there are some neighbors of $\pmb{x}$ which have lower energies than $E_{\theta}(\pmb{x})$ , such as $\pmb{x}_{-1}$ in Figure 3 (a). Therefore, "hard negative mining" is in demand in this stage. Under this situation, our approximated energies of neighbors could help to perform "hard negative mining". To be specific, the estimated energies of neighbors are close to the true energies, and the estimated energy of $\pmb{x}_{-1}$ is much lower than the estimated energy of $\pmb{x}_{-2}$ . Thus, our proposal distribution will sample $\pmb{x}_{-1}$ with a higher probability. This actually works as "hard negative mining" since $\pmb{x}_{-1}$ is the current most offending term, i.e., the so-called hard negative sample.
|
| 369 |
+
|
| 370 |
+
Stage II. After learning for a while, we can obtain a relatively good energy function, where the positive sample $\pmb{x}$ locates in the low energy area compared to its local neighbors. In this case our approximation is less accurate. Fortunately, in this case, "hard negative mining" is not that necessary since there do not exist many offending terms. Specifically, as shown in Figure 3 (b), the energies of $\pmb{x}_{-1}$ and $\pmb{x}_{-2}$ are safely higher than $E_{\theta}(\pmb{x})$ .
|
| 371 |
+
|
| 372 |
+
Even though the above analysis is based on a simplified example, we believe it can serve as a good intuitive understanding of why our RMwGGIS performs better than ratio matching.
|
| 373 |
+
|
| 374 |
+
# D WHY DOES THE ADVANCED VERSION PERFORM BETTER?
|
| 375 |
+
|
| 376 |
+
Here, we provide an intuitive explanation on why our advanced version usually performs better than the basic version.
|
| 377 |
+
|
| 378 |
+
Following our analysis of the connection between our method and hard negative mining, as described in Appendix C, it is obvious that both basic version (i.e., Eq. (6)) and advanced version (i.e., Eq. (11)) perform "hard negative mining". The difference lies in the coefficients for different terms. Specifically, the advanced version gives the same weights to all sampled terms. In contrast, the basic version provides a weight $\frac{m(\boldsymbol{x}_{-i}^{(t)})}{n(\boldsymbol{x}_{-i}^{(t)})}$ to each sampled term $\boldsymbol{x}_{-i}^{(t)}$ , as shown in Eq. (6). Note that $m(\boldsymbol{x}_{-i}^{(t)}) = \frac{1}{d}$ for all terms and $n(\boldsymbol{x}_{-i}^{(t)})$ would be larger if $\boldsymbol{x}_{-i}^{(t)}$ has lower energy. Hence, the basic version provides smaller weights for terms with lower energies. In other words, among its selected offending terms (i.e., hard negative samples), it pay least attention to the most offending terms, which could be less effective than the advanced version with equal weights. This could explain why our advanced RMwGGIS usually performs better than the basic version.
|
| 379 |
+
|
| 380 |
+
# E COMPARISON OF ACHIEVED OBJECTIVE VALUES
|
| 381 |
+
|
| 382 |
+
Specifically, for all the learned energy functions in Table 1, we sample 4000 data points on each dataset and evaluate the resulting objective value defined by Eq. (3). The results are summarized in Table 4. We can observe that our basic and advanced RMwGGIS indeed achieve lower objective values, which further demonstrates that our proposed RMwGGIS can lead to better optimization. This is quite natural and straightforward since our method focuses on neighbors with low energies. Specifically, according to the objective function of ratio matching (i.e., Eq. (3)), neighbors with lower energies contribute more to the objective function. In other words, the loss values for these neighbors are larger. This explains why our methods, focusing on reducing the loss values (i.e., pushing up energies) of these neighbors, indeed lead to lower value for the objective function defined by Eq. (3).
|
| 383 |
+
|
| 384 |
+

|
| 385 |
+
Figure 4: Visualization of learned energy functions w.r.t. number of learning iterations on the 256-dimensional 2spiralts dataset.
|
| 386 |
+
|
| 387 |
+
Table 5: Comparison between ratio matching and our RMwGGIS on 2spirals datasets with different dimensions in terms of running time and memory usage.
|
| 388 |
+
|
| 389 |
+
<table><tr><td></td><td># Data Dimensions</td><td>32</td><td>64</td><td>128</td><td>256</td><td>512</td><td>1024</td><td>2048</td></tr><tr><td rowspan="3">Time</td><td>Ratio Matching</td><td>63.9ms</td><td>106.5ms</td><td>185.6ms</td><td>372.9ms</td><td>735.2ms</td><td>1390.1ms</td><td>2684.1ms</td></tr><tr><td>RMwGGIS</td><td>41.2ms</td><td>47.2ms</td><td>58.8ms</td><td>86.9ms</td><td>137.7ms</td><td>244.9ms</td><td>434.1ms</td></tr><tr><td>Speedup</td><td>1.6×</td><td>2.3×</td><td>3.2×</td><td>4.3×</td><td>5.3×</td><td>5.7×</td><td>6.2×</td></tr><tr><td rowspan="3">Memory</td><td>Ratio Matching</td><td>957MB</td><td>1031MB</td><td>1189MB</td><td>1545MB</td><td>2315MB</td><td>4237MB</td><td>9633MB</td></tr><tr><td>RMwGGIS</td><td>891MB</td><td>893MB</td><td>893MB</td><td>915MB</td><td>919MB</td><td>931MB</td><td>951MB</td></tr><tr><td>Memory Saving</td><td>6.9%</td><td>13.4%</td><td>24.9%</td><td>40.8%</td><td>60.3%</td><td>78.0%</td><td>90.1%</td></tr></table>
|
| 390 |
+
|
| 391 |
+
# F VISUALIZATION OF LEARNED ENERGY FUNCTIONS ON HIGHER-DIMENSIONAL DATA
|
| 392 |
+
|
| 393 |
+
The learned energy functions w.r.t. number of learning iterations on the 256-dimensional 2spirals dataset are qualitatively visualized in Figure 4
|
| 394 |
+
|
| 395 |
+
# G COMPARISON OF RUNNING TIME AND MEMORY USAGE
|
| 396 |
+
|
| 397 |
+
The comparison of running time and memory usage are summarized in Table 5.
|
| 398 |
+
|
| 399 |
+
# H DETAILED SETTINGS OF GRAPH GENERATION
|
| 400 |
+
|
| 401 |
+
The results of baselines in Table 2 are reported from You et al. (2018), Liu et al. (2019), Niu et al. (2020), Shi et al. (2019), and Luo et al. (2021). We obtain the result of EBM (GWG) by using their official implementation, and the detailed settings are provided as follows.
|
| 402 |
+
|
| 403 |
+
We use the official open-sourced implementation<sup>4</sup> of EBM (GWG) to perform its graph generation experiment. We train models with persistent contrastive divergence (Tieleman, 2008) with a buffer size of 200 samples. We use the Adam optimizer (Kingma & Ba, 2015) with a learning rate of $1e-4$ and a batch size of 200. The following hyperparameters are tuned and the finally chosen ones are underlined: buffer initialization rate $\in \{0, 0.2, \underline{0.4}, 0.6\}$ and MCMC steps $\in \{100, 200, \underline{500}, 1000, 2000\}$ .
|
| 404 |
+
|
| 405 |
+
# I VISUALIZATION OF GENERATED GRAPHS
|
| 406 |
+
|
| 407 |
+
Generated graph samples are shown in Figure 5.
|
| 408 |
+
|
| 409 |
+

|
| 410 |
+
Training data
|
| 411 |
+
Figure 5: Visualization of training data and samples drawn from the energy function learned by our RMwGGIS for graph generation.
|
| 412 |
+
|
| 413 |
+

|
| 414 |
+
RMwGGIS samples
|
| 415 |
+
|
| 416 |
+
# J DETAILS OF TRAINING ISING MODELS
|
| 417 |
+
|
| 418 |
+
Lattice Ising Models. Ising models (Cipra, 1987) is firstly developed to model the spin magnetic particles (Ising, 1925). For Ising models, our energy function can be naturally defined as
|
| 419 |
+
|
| 420 |
+
$$
|
| 421 |
+
E (\boldsymbol {x}) = - \boldsymbol {x} ^ {T} \boldsymbol {J} \boldsymbol {x} - \boldsymbol {b} ^ {T} \boldsymbol {x}, \tag {26}
|
| 422 |
+
$$
|
| 423 |
+
|
| 424 |
+
where $J$ and $b$ are the parameters. $J$ is the connectivity matrix which indicates the correlation across dimensions in $x$ . We follow one specific setting in Grathwohl et al. (2021), where all of the non-zero entries of $J$ are identical (denoted as $\sigma$ ) and $J$ is the adjacency matrix of a cyclic 2D lattice structure. Therefore,
|
| 425 |
+
|
| 426 |
+
$$
|
| 427 |
+
E (\boldsymbol {x}) = - \sigma \boldsymbol {x} ^ {T} \boldsymbol {J} \boldsymbol {x} - \boldsymbol {b} ^ {T} \boldsymbol {x}. \tag {27}
|
| 428 |
+
$$
|
| 429 |
+
|
| 430 |
+
Setup. We follow Grathwohl et al. (2021) for our experimental setting. To be specific, we create a model using a $25 \times 25$ lattice and $\sigma = 0.25$ , thus leading to a 625 dimensional distribution. For training the model, 2000 examples are generated via 1,000,000 steps of Gibbs sampling. We apply our proposed RMwGGIS method to train the model. The number of samples $s$ used in our RMwGGIS objective is set to 10. We use Adam optimizer (Kingma & Ba, 2015) with a learning rate of $1e-4$ and a batch size of 100. $\ell 1$ penalty with strength 0.01 is used to encourage sparsity. In terms of baselines, in addition to ratio matching, we further consider the approaches which train discrete EBMs with persistent contrastive divergence (Tieleman, 2008). The number of steps for MCMC per training iteration is $\in \{5,10,25,50,100\}$ . The samplers are Gibbs and Gibbs-With-Gradient (GWG) (Grathwohl et al., 2021). Results of EBM (GWG) are obtained by running the official implementation from Grathwohl et al. (2021). Results of EBM (Gibbs) are obtained by reading from Figure 6 in Grathwohl et al. (2021).
|
| 431 |
+
|
| 432 |
+
Evaluation. We evaluate the performance by computing the root-mean-squared-error (RMSE) between the learned connectivity matrix $\hat{J}$ and the true matrix $J$ . In addition, we compare the efficiency by reporting the running time for each iteration. To be specific, for comparing efficiency, we use the same batch size 100 for our method and baselines. The report time is the average over 100 iterations.
|
| 433 |
+
|
| 434 |
+

|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c526932aba8c94f94b18bb45f4413f3524f01481d6bfb1c4fdb66714bc0544a
|
| 3 |
+
size 659298
|
2023/Gradient-Guided Importance Sampling for Learning Binary Energy-Based Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/ee8ad529-bc0b-43b6-88be-ded8d8f12cd8_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0d0312254e932f8e432711b9a027631cadc002c4a58eda6df37617d5cd36ede2
|
| 3 |
+
size 941506
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/full.md
ADDED
|
@@ -0,0 +1,389 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRAPH CONTRASTIVE LEARNING FOR SKELETON-BASED ACTION RECOGNITION
|
| 2 |
+
|
| 3 |
+
Xiaohu Huang $^{1,2*}$ Hao Zhou $^{2\dagger}$ Jian Wang $^{2}$ Haocheng Feng $^{2}$ Junyu Han $^{2}$ Errui Ding $^{2}$ Jingdong Wang $^{2}$ Xinggang Wang $^{1}$ Wenyu Liu $^{1}$ Bin Feng $^{1\dagger}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup> School of EIC, Huazhong University of Science & Technology
|
| 6 |
+
$^{2}$ Department of Computer Vision Technology (VIS), Baidu Inc., China
|
| 7 |
+
{huangxiaohu, xgwang, liuwy, fengbin}@hust.edu.cn
|
| 8 |
+
{zhouhao14, wangjian33, fenghaocheng, hanjunyu}@baidu.com
|
| 9 |
+
{dingerrui, wangjingdong}@baidu.com
|
| 10 |
+
|
| 11 |
+
# ABSTRACT
|
| 12 |
+
|
| 13 |
+
In the field of skeleton-based action recognition, current top-performing graph convolutional networks (GCNs) exploit intra-sequence context to construct adaptive graphs for feature aggregation. However, we argue that such context is still local since the rich cross-sequence relations have not been explicitly investigated. In this paper, we propose a graph contrastive learning framework for skeleton-based action recognition (SkeletonGCL) to explore the global context across all sequences. In specific, SkeletonGCL associates graph learning across sequences by enforcing graphs to be class-discriminative, i.e., intra-class compact and inter-class dispersed, which improves the GCN capacity to distinguish various action patterns. Besides, two memory banks are designed to enrich cross-sequence context from two complementary levels, i.e., instance and semantic levels, enabling graph contrastive learning in multiple context scales. Consequently, SkeletonGCL establishes a new training paradigm, and it can be seamlessly incorporated into current GCNs. Without loss of generality, we combine SkeletonGCL with three GCNs (2S-ACGN, CTR-GCN, and InfoGCN), and achieve consistent improvements on NTU60, NTU120, and NW-UCLA benchmarks. The source code will be available at https://github.com/OliverHxh/SkeletonGCL.
|
| 14 |
+
|
| 15 |
+
# 1 INTRODUCTION
|
| 16 |
+
|
| 17 |
+
Graph convolutional networks (GCNs) have been widely applied in skeleton-based action recognition since they can naturally process non-grid skeleton sequences. For GCN-based methods, how to effectively learn the graphs remains a core and challenging problem. In particular, ST-GCN (Yan et al., 2018) is a milestone work, using pre-defined graphs to extract the action patterns. However, the pre-defined graphs only enable each joint to access the fixed neighboring joints but are hard to capture long-range dependency adaptively. Therefore, a mainstream of subsequent works (Li et al., 2019; Shi et al., 2019; Zhang et al., 2020b;a; Ye et al., 2020; Chen et al., 2021b; Chi et al., 2022) take efforts to solve this issue by generating adaptive graphs. The adaptive graphs can dynamically aggregate the features within each sequence and thus show significant advantages in performance comparison.
|
| 18 |
+
|
| 19 |
+
Generally, adaptive graphs are constructed by using intra-sequence context. However, such context will still be "local" when viewing the cross-sequence information as an available context. Therefore, we wonder: Is it possible to involve the cross-sequence context in graph learning? To find out the answer, in Fig. 1, we visualize the adaptive graphs learned from sequences of two easily confused classes ("point to something" and "take a selfie"). The graphs are learned by a strong GCN, i.e.,
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: Graph visualization of sequences from two easily confused classes ("point to something" and "take a selfie"). The graphs are learned by CTR-GCN (Chen et al., 2021b). We take the tip of the hand that does the action as the anchor. The size of the red circles and the width of the blue lines both denote the strengths of connections between joints. For simplicity, only representative frames are visualized. (a) Three sequences from class "point to something" are correctly classified, where the graphs contain connections to the body joints. (b) Three sequences from class "take a selfie" are correctly classified, where the graphs highly emphasize the connections to the hands, while the connections to the body are suppressed. (c) A sequence from class "point to something" is misclassified as "take a selfie", whose graph resembles the graphs in (b), but is dissimilar from graphs in (a). Hence, we realize that the class-ambiguous graph representations would make negative impacts on recognition performance.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+
CTR-GCN (Chen et al., 2021b). From the visualization, we find that (1) For sequences that are correctly classified in Fig. 1 (a) and Fig. 1 (b), the learned graphs in the same class look similar, while graphs in different classes have distinct differences. (2) For a misclassified sequence in Fig. 1 (c), the learned graph resembles the graphs from the misclassified class more than those from the ground truth class. These observations remind us that graph learning in current adaptive GCNs can implicitly learn class-specific graph representations to some extent. But without explicit constraints, it leads to class-ambiguous representations in some cases, thereby affecting the GCN capacity to discriminate classes (in Tab. 9 of Sec. 4.4, we provide quantitative results to further support our hypothesis). Therefore, we speculate that if the cross-sequence semantic relations are incorporated as guidance in graph learning, the class-ambiguity issue will be alleviated and the graph representations will better express individual characteristics of actions.
|
| 29 |
+
|
| 30 |
+
In recent years, contrastive learning has achieved great success in self-supervised representation learning (He et al., 2020; Chen et al., 2020; 2021a). It studies cross-sample relations in the dataset. The essence of contrastive learning is "comparing", which pulls together the feature embedding from positive pairs and pushes away the feature embedding from negative pairs.
|
| 31 |
+
|
| 32 |
+
Based on the analysis above and the advances in contrastive learning, we propose a graph contrastive learning framework for skeleton-based action recognition in the fully-supervised setting, dubbed SkeletonGCL. Instead of just using the local information within each sequence, SkeletonGCL explores the cross-sequence global context to improve graph learning. The core idea is to pull together the learned graphs from the same class while pushing away the learned graphs from different classes. Since graphs can reveal the action patterns of sequences, enforcing graph consistency in the same class and inconsistency among different classes helps the model understand various motion modes. In addition, to enrich the cross-sequence context, we build memory banks to store the graphs from historical sequences. In specific, an instance-level memory bank stores the sequence-wise graphs, which hold the individual properties of each sequence. In contrast, a semantic-level memory bank stores the aggregation of graphs from each class, which contains the class-level representation. The two banks are complementary to each other, enabling us to leverage more samples. SkeletonGCL can be seamlessly combined with existing GCNs. Eventually, we combine SkeletonGCL with three GCNs (2S-AGCN (Shi et al., 2019), CTR-GCN (Chen et al., 2021b), and InfoGCN (Chi et al., 2022)), and conduct experiments on three popular datasets (NTU60 (Shahroudy et al., 2016), NTU120 (Liu et al., 2019) and NW-UCLA (Wang et al., 2014)). SkeletonGCL achieves consistent improvements with these models using different testing protocols (single-modal or multi-modal) on all three datasets, which widely demonstrates the effectiveness of our design. Notably, SkeletonGCL only introduces a small amount of training consumption but has no impact at the test stage.
|
| 33 |
+
|
| 34 |
+
Though there exist some works that apply contrastive learning in skeleton-based action recognition (Li et al., 2021; Guo et al., 2022; Mao et al., 2022), our method differs from them as follows: (1) The previous methods took pooled feature vectors to conduct contrastive learning as in (He et al., 2020; Chen et al., 2020), where the structural properties in skeletons are lost. In contrast, SkeletonGCL uses graphs to contrast, which maintains the structure details of skeletons and offers high-order connection information between joints. (2) The previous methods used memory banks to store instance-level representations only. Differently, our memory banks store both instance-level and semantic-level representations, allowing us to leverage context from individual sequences and class-specific aggregations, which are complementary to each other. (3) The previous methods were used in the pre-training stage, while SkeletonGCL is incorporated into the fully-supervised setting without extra pre-training cost.
|
| 35 |
+
|
| 36 |
+
Summarily, the contribution of this paper can be concluded as follows:
|
| 37 |
+
|
| 38 |
+
- We present a new perspective for graph learning of GCN models in skeleton-based action recognition. In specific, we propose to make use of the cross-sequence context to guide graph learning, whose goal is to enforce graphs to be intra-class compact and inter-class dispersed.
|
| 39 |
+
- Motivated by the advances in contrastive learning, we smoothly combine the ideas of contrastive learning and cross-sequence graph learning together, then propose a new training paradigm for skeleton-based action recognition, called SkletonGCL. SkeletonGCL incorporates an instance-level and a semantic-level memory bank to enrich the cross-sequence context comprehensively. Besides, it can be seamlessly incorporated into current GCNs.
|
| 40 |
+
- SkeletonGCL achieves consistent improvements combined with three GCNs (2S-AGCN, CTR-GCN, and InfoGCN) on three popular benchmarks (NTU60, NTU120, NW-UCLA) using both single-modal and multi-modal testing protocols. In addition, SkeletonGCL is training-efficient and has no impact at the test stage.
|
| 41 |
+
|
| 42 |
+
# 2 RELATED WORKS
|
| 43 |
+
|
| 44 |
+
# 2.1 SKELETON-BASED ACTION RECOGNITION
|
| 45 |
+
|
| 46 |
+
Skeleton-based action recognition is to classify actions from sequences of estimated key points. The early deep-learning methods applied convolution neural networks (CNNs) (Chéron et al., 2015; Liu et al., 2017b) or recurrent neural networks (RNNs) (Du et al., 2015; Lev et al., 2016; Wang & Wang, 2017; Liu et al., 2017a) to model the skeletons, but they could not explicitly explore the topological structure of skeletons, thus the performances were limited. Recently, PoseC3D (Duan et al., 2022) revisited the CNN-based method by stacking the heatmaps as 3D volumes, which maintained the spatial-temporal properties of skeletons and obtained marginal performance improvements. In the past few years, the mainstream works in skeleton-based action recognition were GCN models. ST-GCN (Yan et al., 2018) was the first work that adopted GCN as the feature extractor, which heuristically designed fixed graphs to model the skeletons. The follow-up methods proposed spatial-temporal graphs (Liu et al., 2020), multi-scale graph convolutions (Chen et al., 2021c), channel-decoupled graphs (Chen et al., 2021b; Cheng et al., 2020a) and adaptive graphs (Li et al., 2019; Shi et al., 2019; Ye et al., 2020; Zhang et al., 2020b; Chen et al., 2021b; Chi et al., 2022) to improve the capacity of GCNs. Tracking the development of GCN-based methods, we find that graph learning has always been a core problem and now the adaptive GCNs are leading since they can model the intrinsic topology of skeletons.
|
| 47 |
+
|
| 48 |
+
However, current adaptive GCNs generated the graphs based on the local context within each sequence, where the cross-sequence relations have been neglected. In contrast, we propose to explore the cross-sequence global context to shape graph representations. In this way, the learned graphs can not only describe the individual characteristics within each sequence but also emphasize the similarity and dissimilarity of motion patterns across sequences.
|
| 49 |
+
|
| 50 |
+
# 2.2 CONTRASTIVE LEARNING
|
| 51 |
+
|
| 52 |
+
In recent years, numerous representation learning methods (Wu et al., 2018; Oord et al., 2018; He et al., 2020; Chen et al., 2020; Wang et al., 2021) with contrastive learning have emerged, especially
|
| 53 |
+
|
| 54 |
+
in self-supervised representation learning. The key idea is to pull together the positive pairs and push away the negative pairs in the feature space. Generally, the features are vectors obtained from feature extractors followed by a pooling layer. A standard approach to obtaining the positive pairs is augmenting an original sample into two different views. The negative samples are selected randomly or using hard mining strategies (Khosla et al., 2020; Robinson et al., 2020; Kalantidis et al., 2020). To increase the capacity of negative samples, the memory bank mechanism was devised in (He et al., 2020; Misra & Maaten, 2020) to store more negative instances. By contrasting positive pairs against negative pairs, the model can learn to focus on semantic representations.
|
| 55 |
+
|
| 56 |
+
In the field of skeleton-based action recognition, prior works (Li et al., 2021; Mao et al., 2022; Guo et al., 2022) proposed to apply contrastive learning in the pre-training stage by roughly following the frameworks mentioned above. CrossCLR (Li et al., 2021) mined positive pairs in the data space and explored the cross-modal distribution relationships. Further, CMD (Mao et al., 2022) transferred the cross-modal knowledge in a distillation manner. And AimCLR (Guo et al., 2022) used extreme augmentations to improve the representation universality.
|
| 57 |
+
|
| 58 |
+
Compared with the above methods, we use graph representations to contrast instead of using pooled feature vectors. Meanwhile, we establish two different memory banks at complementary levels, i.e., instance and semantic levels, to enrich the context scales. Besides, the proposed method is used with GCNs under the fully-supervised setting, which requires no pre-training procedure.
|
| 59 |
+
|
| 60 |
+
# 3 METHOD
|
| 61 |
+
|
| 62 |
+
# 3.1 PRELIMINARY
|
| 63 |
+
|
| 64 |
+
We denote a human skeleton as a vertex set $\mathcal{V} = \{v_{1}, v_{2}, \dots, v_{N}\}$ , where $N$ denotes the number of vertices. For each vertex $v_{i}$ , the feature dimension is set as $C$ . Hence, a skeleton sequence with $T$ frames can be denoted as $\mathbf{X} \in \mathbb{R}^{T \times N \times C}$ . Graph topology is used to represent the correlations between joints, formulated as $\mathbf{g}$ .
|
| 65 |
+
|
| 66 |
+
GCNs in Skeleton-Based Action Recognition. Generally, GCN models alternatively apply graph convolutions and temporal convolutions to extract the spatial configuration and motion pattern of skeletons, respectively. The graph $\mathbf{g}$ is vital for graph convolutions since it determines the message passing among joints. In current adaptive GCNs, $\mathbf{g}$ is learned within each sequence and has different sizes, e.g., $\mathbf{g} \in \mathbb{R}^{K_S \times N \times N}$ in 2S-AGCN (Shi et al., 2019) and $\mathbf{g} \in \mathbb{R}^{K_S \times C \times N \times N}$ in CTR-GCN (Chen et al., 2021b). The $K_S$ denotes the number of sub-graphs, normally set as 3. In general, the graph convolution is defined as:
|
| 67 |
+
|
| 68 |
+
$$
|
| 69 |
+
\mathbf {X} _ {\mathbf {S}} = \sum_ {k = 1} ^ {K _ {S}} \mathbf {g} ^ {k} \mathbf {X} \mathbf {W} _ {\mathbf {S}} ^ {\mathbf {k}}, \tag {1}
|
| 70 |
+
$$
|
| 71 |
+
|
| 72 |
+
where $\mathbf{X}_{\mathbf{S}} \in \mathbb{R}^{T \times N \times C'}$ denotes the spatial extracted feature with $C'$ channels, and $\mathbf{W}_{\mathbf{S}} \in \mathbb{R}^{K_S \times C \times C'}$ denotes the spatial feature transformation filters. Next, temporal convolutions are applied on $\mathbf{X}_{\mathbf{S}}$ , producing motion extracted feature $\mathbf{X}_{\mathbf{T}} \in \mathbb{R}^{T \times N \times C'}$ . After stacking layers of graph convolutions and temporal convolutions, a global average pooling (GAP) layer summarizes the global features, then a classification head (fully-connected layer) followed by a Softmax activation function is applied to obtain the class prediction $\hat{\mathbf{y}} \in \mathbb{R}^{C_k}$ , where $C_k$ denotes the number of classes. Finally, a cross-entropy loss $\mathcal{L}_{\mathrm{CE}}$ supervises the class prediction with the ground truth label $\mathbf{y}$ as follows:
|
| 73 |
+
|
| 74 |
+
$$
|
| 75 |
+
\mathcal {L} _ {\mathrm {C E}} = - \sum_ {i} \mathbf {y} _ {\mathrm {i}} \log \hat {\mathbf {y}} _ {\mathrm {i}} \tag {2}
|
| 76 |
+
$$
|
| 77 |
+
|
| 78 |
+
Self-Supervised Contrastive Learning. In the context of self-supervised contrastive learning, each input sample is processed by data augmentations to produce a positive pair: $I$ and $I^{+}$ . Through a feature extraction network, $I$ and $I^{+}$ are transformed into feature vectors $\mathbf{f} \in \mathbb{R}^{D}$ and $\mathbf{f}^{+} \in \mathbb{R}^{D}$ . As for the negative samples, they are selected from the dataset excluding $I$ and $I^{+}$ , represented as a negative set $\mathcal{N}^{-}$ . Each negative in $\mathcal{N}^{-}$ is denoted as $\mathbf{f}^{-} \in \mathbb{R}^{D}$ . The similarity between two feature vectors is calculated as $sim(\mathbf{f}^{+}, \mathbf{f}^{-}) = \frac{\mathbf{f}^{+}\mathbf{f}^{-}}{\|\mathbf{f}^{+}\|_{\|\mathbf{f}^{-}\|}}$ . InfoNCE (Gutmann & Hyvarinen, 2010; Oord
|
| 79 |
+
|
| 80 |
+

|
| 81 |
+
Figure 2: Overview of SkeletonGCL. An input skeleton sequence $I$ is fed into a GCN encoder, producing a feature vector $\mathbf{f}$ for classification and a learned graph $\mathbf{g}$ for graph contrastive learning. The graph $\mathbf{g}$ is embedded into a vector by a projection head. And two memory banks are built to store the embedded graphs. From the memory banks, we sample the positives and negatives according to the labels, then perform contrastive loss. The memory banks are only used in the training stage but will be removed during the testing stage.
|
| 82 |
+
|
| 83 |
+
et al., 2018) is widely adopted for contrastive learning, which is formulated as:
|
| 84 |
+
|
| 85 |
+
$$
|
| 86 |
+
\mathcal {L} _ {\mathrm {N C E}} = - \log \frac {\operatorname {s i m} \left(\mathbf {f} , \mathbf {f} ^ {+}\right) / \tau}{\operatorname {s i m} \left(\mathbf {f} , \mathbf {f} ^ {+}\right) / \tau + \sum_ {\mathbf {f} ^ {-} \in \mathcal {N} ^ {-}} \operatorname {s i m} \left(\mathbf {f} , \mathbf {f} ^ {-}\right) / \tau}, \tag {3}
|
| 87 |
+
$$
|
| 88 |
+
|
| 89 |
+
where temperature $\tau > 0$ is a hyper-parameter.
|
| 90 |
+
|
| 91 |
+
# 3.2 GRAPH CONTRASTIVE LEARNING
|
| 92 |
+
|
| 93 |
+
The proposed SkeletonGCL is illustrated in Fig. 2. The framework consists of two branches, where the classification branch is parallel to the graph contrast branch. Taking a skeleton sequence $I$ as input, the GCN encoder outputs a feature vector $\mathbf{f}$ for classification and a graph $\mathbf{g}$ for graph contrast.
|
| 94 |
+
|
| 95 |
+
Graph Projection Head. In order to contrast the graphs in a common feature space, we embed the graphs into vectors by a graph projection head. The projection heads for different GCNs are similar (see App. 6.1 for details). In Fig. 2, taking the graph $\mathbf{g} \in \mathbb{R}^{K_S \times C \times N \times N}$ learned in CTR-GCN (Chen et al., 2021b) as an example, we first squeeze $\mathbf{g}$ along the channel dimension by an average pooling layer into $\overline{\mathbf{g}} \in \mathbb{R}^{K_S \times N \times N}$ . Then, we flatten graph $\overline{\mathbf{g}}$ into a 1D vector as $\mathbf{g}' \in \mathbb{R}^{K_S N^2}$ and project $\mathbf{g}'$ into a vector $\mathbf{v} \in \mathbb{R}^{C_g}$ by an FC layer $\mathbf{W_G} \in \mathbb{R}^{K_S N^2 \times C_g}$ . Since different channels in $\mathbf{W_G}$ are specific to different vertices in the graph, the graph projection is vertex-aware and thus can encode the structures of skeletons. Afterward, we update two memory banks with $\mathbf{v}$ . The memory banks are illustrated in Fig. 2, and detailed next.
|
| 96 |
+
|
| 97 |
+
Memory Bank. To enrich the cross-sequence context, we build memory banks to store the cross-batch graphs. In specific, two memory banks are constructed, i.e., an instance-level memory bank $\mathcal{M}_{\mathrm{Ins}} \in \mathbb{R}^{C_k \times P \times C_g}$ and a semantic-level memory bank $\mathcal{M}_{\mathrm{Sem}} \in \mathbb{R}^{C_k \times C_g}$ . $P$ denotes the number of instances stored for each class in $\mathcal{M}_{\mathrm{Ins}}$ . Particularly, each element in $\mathcal{M}_{\mathrm{Ins}}$ denotes a graph instance from a class. In contrast, each element in $\mathcal{M}_{\mathrm{Sem}}$ denotes the graph aggregation of a class. Therefore, the two memory banks are on complementary levels, where the instance-level memory bank emphasizes the instance discrimination of each sequence, while the semantic-level memory bank covers the class properties across sequences.
|
| 98 |
+
|
| 99 |
+
We update $\mathcal{M}_{\mathrm{Ins}}$ in a first-in-first-out manner, which maintains the number of instances for each class as $P$ . As for $\mathcal{M}_{\mathrm{Sem}}$ , we use a momentum update strategy, which integrates the graphs of the same class from the current timestamp and all previous timestamps, regarded as a long-term representation. The momentum update is defined as follows:
|
| 100 |
+
|
| 101 |
+
$$
|
| 102 |
+
\mathbf {m} _ {\text {s e m}} ^ {c _ {*}} \leftarrow \alpha \mathbf {m} _ {\text {s e m}} ^ {c _ {*}} + (1 - \alpha) \mathbf {v}, \tag {4}
|
| 103 |
+
$$
|
| 104 |
+
|
| 105 |
+
where $\mathbf{m}_{\mathrm{sem}}^{c_*}$ is the representation for class $c_*, c_*$ is the class label for the input $I$ and $0 < \alpha < 1$ is a hyper-parameter.
|
| 106 |
+
|
| 107 |
+
Loss. To achieve the graph contrast, we sample positives and negatives from the memory banks $\mathcal{M}_{\mathrm{Ins}}$ and $\mathcal{M}_{\mathrm{Sem}}$ . For $\mathcal{M}_{\mathrm{Ins}}$ , vector $\mathbf{v}$ is set as the anchor, hence samples in the positive set $\mathcal{N}_{\mathrm{Ins}}^{+}$ are with label $c_{*}$ , and samples in the negative set $\mathcal{N}_{\mathrm{Ins}}^{-}$ are with different labels. Consequently, the InfoNCE loss in Eq. 3 can be rewritten as:
|
| 108 |
+
|
| 109 |
+
$$
|
| 110 |
+
\mathcal {L} _ {\mathrm {N C E}} ^ {\text {I n s}} = - \sum_ {\mathbf {v} ^ {+} \in \mathcal {N} _ {\text {I n s}} ^ {+}} \log \frac {\operatorname {s i m} (\mathbf {v} , \mathbf {v} ^ {+}) / \tau}{\operatorname {s i m} (\mathbf {v} , \mathbf {v} ^ {+}) / \tau + \sum_ {\mathbf {v} ^ {-} \in \mathcal {N} _ {\text {I n s}} ^ {-}} \operatorname {s i m} (\mathbf {v} , \mathbf {v} ^ {-}) / \tau}, \tag {5}
|
| 111 |
+
$$
|
| 112 |
+
|
| 113 |
+
$$
|
| 114 |
+
\mathcal {L} _ {\mathrm {N C E}} ^ {\text {S e m}} = - \sum_ {\mathbf {v} ^ {+} \in \mathcal {N} _ {\text {S e m}} ^ {+}} \log \frac {\operatorname {s i m} \left(\mathbf {v} , \mathbf {v} ^ {+}\right) / \tau}{\operatorname {s i m} \left(\mathbf {v} , \mathbf {v} ^ {+}\right) / \tau + \sum_ {\mathbf {v} ^ {-} \in \mathcal {N} _ {\text {S e m}} ^ {-}} \operatorname {s i m} \left(\mathbf {v} , \mathbf {v} ^ {-}\right) / \tau}. \tag {6}
|
| 115 |
+
$$
|
| 116 |
+
|
| 117 |
+
$\mathcal{L}_{\mathrm{NCE}}^{\mathrm{Ins}}$ leverages multiple positives compared with Eq. 3 by using label information, which mines more semantic-related samples. Similarly, we can define the InfoNCE loss $\mathcal{L}_{\mathrm{NCE}}^{\mathrm{Sem}}$ , which is specific for the memory bank $\mathcal{M}_{\mathrm{Sem}}$ . Summarily, the overall contrastive loss is written as follows:
|
| 118 |
+
|
| 119 |
+
$$
|
| 120 |
+
\mathcal {L} _ {\mathrm {N C E}} = \mathcal {L} _ {\mathrm {N C E}} ^ {\text {I n s}} + \mathcal {L} _ {\mathrm {N C E}} ^ {\text {S e m}}. \tag {7}
|
| 121 |
+
$$
|
| 122 |
+
|
| 123 |
+
And the overall loss function is defined as follows:
|
| 124 |
+
|
| 125 |
+
$$
|
| 126 |
+
\mathcal {L} = \mathcal {L} _ {\mathrm {N C E}} + \mathcal {L} _ {\mathrm {C E}}. \tag {8}
|
| 127 |
+
$$
|
| 128 |
+
|
| 129 |
+
**Hard Sampling.** As the training continues, most samples become too easy, which contribute less to the training. Therefore, methods in (Tabassum et al., 2022; Robinson et al., 2020; Kalantidis et al., 2020; Wang et al., 2021) are proposed to use hard mining strategies to focus on informative samples. In this paper, considering the massive number of instances in $\mathcal{M}_{\mathrm{Ins}}$ , contrasting with all these instances naturally leads to redundancy and hinders the training. To alleviate this issue, we propose to mine hard examples in $\mathcal{M}_{\mathrm{Ins}}$ . Specifically, we take the similarity calculation $sim(\mathbf{v}, \mathbf{v}^{\prime})$ as a criterion to evaluate hardness. Harder positives are with lower similarities, and harder negatives are with higher similarities. In total, for $\mathcal{M}_{\mathrm{Ins}}$ , we select $K_{\mathrm{H}}^{+}$ hardest positive examples, $K_{\mathrm{H}}^{-}$ hardest negative examples, and $K_{\mathrm{R}}^{-}$ random negative examples.
|
| 130 |
+
|
| 131 |
+
# 4 EXPERIMENTS
|
| 132 |
+
|
| 133 |
+
# 4.1 DATASETS
|
| 134 |
+
|
| 135 |
+
NTU RGB+D. NTU RGB+D (NTU60) (Shahroudy et al., 2016) is a large-scale skeleton-based action recognition dataset, which contains 60 action classes and 56,880 sequences. Each sequence is annotated as skeletons with 25 joints. All the sequences are performed by 40 subjects and filmed by 3 Kinect cameras from three different views. Generally, two protocols are used to evaluate the performances: (1) cross-subject (X-Sub): train data are performed by 20 subjects, and test data are performed by other 20 subjects. (2) cross-view (X-View): train data from cameras 2 and 3, and test data from camera 1.
|
| 136 |
+
|
| 137 |
+
NTU RGB+D 120. NTU RGB+D 120 (NTU120) (Liu et al., 2019) is an extension of NTU RGB+D dataset, which newly includes 57,367 skeletons of 60 extra classes. All the sequences are performed by 106 subjects and filmed by three cameras from three different views. In addition, NTU RGB+D 120 has 32 setups, where each denotes a unique location. Generally, two protocols are used to evaluate the performances: (1) cross-subject (X-Sub): train data are performed by 53 subjects, and test data are performed by other 53 subjects. (2) cross-setup (X-Set): train data are samples with even setup IDs, and test data are samples with odd setup IDs.
|
| 138 |
+
|
| 139 |
+
Northwestern-UCLA. Northwestern-UCLA (NW-UCLA) dataset (Wang et al., 2014) contains 1494 sequences from 10 action classes. Each sequence is annotated as skeletons with 20 joints. All sequences are performed by 10 subjects and filmed by three Kinect cameras from different views. We follow the official evaluation protocol: train data are captured by the first two cameras, and test data are captured by the third camera.
|
| 140 |
+
|
| 141 |
+
# 4.2 IMPLEMENTATION DETAILS
|
| 142 |
+
|
| 143 |
+
To thoroughly validate SkeletonGCL, we take three GCNs (2S-AGCN (Shi et al., 2019), CTR-GCN (Chen et al., 2021b), and InfoGCN (Chi et al., 2022)) as baseline models. For CTR-GCN and
|
| 144 |
+
|
| 145 |
+
Table 1: Top-1 accuracy comparison (\%) with the state-of-the-art methods on NTU 60 and NTU120 datasets. The numbers in gray indicate the results reported in their papers. * indicates that we retrain the models using their officially released code. Particularly, 2S-AGCN is retrained using a stronger train recipe from CTR-GCN.
|
| 146 |
+
|
| 147 |
+
<table><tr><td>Dataset</td><td colspan="8">NTU 60</td><td colspan="8">NTU 120</td></tr><tr><td>Setting</td><td colspan="4">X-Sub</td><td colspan="4">X-View</td><td colspan="4">X-Sub</td><td colspan="4">X-Set</td></tr><tr><td>Method/Modality</td><td>J</td><td>B</td><td>J+B</td><td>4S</td><td>J</td><td>B</td><td>J+B</td><td>4S</td><td>J</td><td>B</td><td>J+B</td><td>4S</td><td>J</td><td>B</td><td>J+B</td><td>4S</td></tr><tr><td>SGCN (Zhang et al., 2020a)</td><td>-</td><td>-</td><td>89.0</td><td>-</td><td>-</td><td>-</td><td>94.5</td><td>-</td><td>-</td><td>-</td><td>79.2</td><td>-</td><td>-</td><td>-</td><td>81.5</td><td>-</td></tr><tr><td>ST-TR-GCN (Plizzari et al., 2021)</td><td>89.2</td><td>-</td><td>90.3</td><td>-</td><td>95.8</td><td>-</td><td>96.3</td><td>-</td><td>82.7</td><td>-</td><td>85.1</td><td>-</td><td>85.0</td><td>-</td><td>87.1</td><td>-</td></tr><tr><td>Shift-GCN (Cheng et al., 2020b)</td><td>87.8</td><td>-</td><td>89.7</td><td>90.7</td><td>95.1</td><td>-</td><td>96.0</td><td>96.5</td><td>80.9</td><td>-</td><td>85.3</td><td>85.9</td><td>83.2</td><td>-</td><td>86.6</td><td>87.6</td></tr><tr><td>DC-GCN+ADG (Cheng et al., 2020a)</td><td>-</td><td>-</td><td>90.8</td><td>-</td><td>-</td><td>-</td><td>96.6</td><td>-</td><td>-</td><td>-</td><td>86.5</td><td>-</td><td>-</td><td>-</td><td>88.1</td><td>-</td></tr><tr><td>Dynamic GCN (Ye et al., 2020)</td><td>-</td><td>-</td><td>-</td><td>91.5</td><td>-</td><td>-</td><td>-</td><td>96.0</td><td>-</td><td>-</td><td>-</td><td>87.3</td><td>-</td><td>-</td><td>-</td><td>88.6</td></tr><tr><td>MS-G3D (Liu et al., 2020)</td><td>89.4</td><td>90.1</td><td>91.5</td><td>-</td><td>95.0</td><td>95.3</td><td>96.2</td><td>-</td><td>-</td><td>-</td><td>86.9</td><td>-</td><td>-</td><td>-</td><td>88.4</td><td>-</td></tr><tr><td>MST-GCN (Chen et al., 2021c)</td><td>89.0</td><td>89.5</td><td>91.1</td><td>91.5</td><td>95.1</td><td>95.2</td><td>96.4</td><td>96.6</td><td>82.8</td><td>84.8</td><td>87.0</td><td>87.5</td><td>84.5</td><td>86.3</td><td>88.3</td><td>88.8</td></tr><tr><td>2S-AGCN (Shi et al., 2019)</td><td>-</td><td>-</td><td>88.5</td><td>-</td><td>93.7</td><td>93.2</td><td>95.1</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>2S-AGCN* (Shi et al., 2019)</td><td>88.9</td><td>89.2</td><td>91.0</td><td>91.5</td><td>94.5</td><td>94.1</td><td>95.7</td><td>95.9</td><td>84.0</td><td>85.1</td><td>87.8</td><td>88.2</td><td>85.3</td><td>86.3</td><td>89.0</td><td>89.6</td></tr><tr><td>2S-AGCN* w/SkeletonGCL</td><td>89.9</td><td>90.0</td><td>91.6</td><td>92.2</td><td>95.0</td><td>94.4</td><td>96.1</td><td>96.4</td><td>84.7</td><td>86.0</td><td>88.4</td><td>88.7</td><td>86.1</td><td>86.8</td><td>89.7</td><td>90.2</td></tr><tr><td>CTR-GCN (Chen et al., 2021b)</td><td>-</td><td>-</td><td>-</td><td>92.4</td><td>-</td><td>-</td><td>-</td><td>96.8</td><td>-</td><td>85.7</td><td>88.7</td><td>88.9</td><td>-</td><td>87.5</td><td>90.1</td><td>90.6</td></tr><tr><td>CTR-GCN* (Chen et al., 2021b)</td><td>89.8</td><td>90.2</td><td>92.0</td><td>92.4</td><td>94.8</td><td>94.8</td><td>96.3</td><td>96.8</td><td>84.9</td><td>85.7</td><td>88.7</td><td>88.9</td><td>86.7</td><td>87.5</td><td>90.1</td><td>90.5</td></tr><tr><td>CTR-GCN* w/SkeletonGCL</td><td>90.8</td><td>91.1</td><td>92.6</td><td>93.1</td><td>95.3</td><td>95.4</td><td>96.6</td><td>97.0</td><td>85.6</td><td>86.9</td><td>89.2</td><td>89.5</td><td>87.3</td><td>88.2</td><td>90.5</td><td>91.0</td></tr><tr><td>InfoGCN (Chi et al., 2022)</td><td>89.8</td><td>90.6</td><td>91.6</td><td>92.7</td><td>95.2</td><td>95.5</td><td>96.5</td><td>96.9</td><td>85.1</td><td>87.3</td><td>88.5</td><td>89.4</td><td>86.3</td><td>88.5</td><td>89.7</td><td>90.7</td></tr><tr><td>InfoGCN* (Chi et al., 2022)</td><td>89.4</td><td>90.6</td><td>91.3</td><td>92.3</td><td>95.2</td><td>95.4</td><td>96.2</td><td>96.7</td><td>84.2</td><td>86.9</td><td>88.2</td><td>89.2</td><td>86.3</td><td>88.5</td><td>89.4</td><td>90.7</td></tr><tr><td>InfoGCN* w/SkeletonGCL</td><td>90.1</td><td>91.0</td><td>91.9</td><td>92.8</td><td>95.5</td><td>95.7</td><td>96.6</td><td>97.1</td><td>85.2</td><td>87.4</td><td>88.8</td><td>89.8</td><td>87.2</td><td>88.7</td><td>90.0</td><td>91.2</td></tr></table>
|
| 148 |
+
|
| 149 |
+
InfoGCN, we follow their training recipes. Particularly, for 2S-AGCN, since its training recipe is out of date, we borrow the training recipe from CTR-GCN, which effectively improves its baseline performance. $P$ , the number of stored instances for each class in $\mathcal{M}_{\mathrm{Ins}}$ , is set as 684 on NTU60 and NTU120, and 342 on NW-UCLA. The dimension of graph vector $C_g$ is set to 256. For all datasets, the number of sampling examples $K_{\mathrm{H}}^{+}$ , $K_{\mathrm{H}}^{-}$ , and $K_{\mathrm{R}}^{-}$ are set as 128, 512, and 512, respectively. For different models used in different modalities, we experiment with temperature $\tau$ of 0.5, 0.8, 1.0, and 1.5, and choose the best one. The hyper-parameter $\alpha$ for momentum updating is set as 0.85. Besides, we fix the random seed to ensure experiment reproducibility. All experiments are conducted using a single NVIDIA V100 GPU.
|
| 150 |
+
|
| 151 |
+
# 4.3 COMPARED WITH THE STATE-OF-THE-ART
|
| 152 |
+
|
| 153 |
+
In this section, we combine our method with three GCNs, and compare them with the state-of-the-art (SoTA) methods. In Tab. 1 and Tab. 2, we list current SoTA methods in skeleton-based action recognition except PoseC3D (Duan et al., 2022). PoseC3D is a promising CNN-based method, but it uses non-official skeleton data and applies a multi-crop test protocol (GCN methods typically use one crop), which are unfair for comparison here. In evaluation, four modalities are used: "joint stream" $(J)$ denotes the joint coordinates, "bone stream" $(B)$ denotes the coordinate difference between spatially connected joints, "joint motion" $(J - M)$ denotes the coordinate difference between temporally adjacent frames, and "bone motion" $(B - M)$ denotes the bone difference between temporally adjacent frames. The 4-stream ensemble $(4S)$ denotes using the four modalities together. Following the widely-adopted protocol, we evaluate models using $J$ , $B$ , $J + B$ , and $4S$ modalities.
|
| 154 |
+
|
| 155 |
+
NTU60 and NTU120. Tab. 1 lists the results on NTU60 and NTU120. From the results, we find that: (1) Combined with SkeletonGCL, all three baseline models achieve solid improvements on these two benchmarks over different settings and modalities. Taking the $J$ modality on NTU60 X-Sub as an example, 2S-AGCN improves by $1.0\%$ ( $88.9\%$ to $89.9\%$ ), CTR-GCN improves by $1.0\%$ ( $89.8\%$ to $90.8\%$ ), and InfoGCN improves by $0.7\%$ ( $89.4\%$ to $90.1\%$ ). Considering NTU60 is an extensively-benchmarked dataset, such improvements are quite hard. (2) With SkeletonGCL, CTR-GCN and InfoGCN can set new SoTA performance.
|
| 156 |
+
|
| 157 |
+
NW-UCLA. Tab. 2 lists the results on NW-UCLA. SkeletonGCL can still achieve consistent improvements based on the three models. And new state-of-the-art performances are achieved by combining SkeletonGCL with CTR-GCN and InfoGCN.
|
| 158 |
+
|
| 159 |
+
Table 2: Top-1 accuracy Comparison (%) with the state-of-the-art methods on the NW-UCLA dataset. Numbers in gray denote the results reported in their papers. * indicates that we retrain the models using their officially released codes. Particularly, 2S-AGCN is retrained using a stronger train recipe from CTR-GCN.
|
| 160 |
+
|
| 161 |
+
<table><tr><td>Dataset</td><td colspan="4">NW-UCLA</td></tr><tr><td>Method/Modality</td><td>J</td><td>B</td><td>J+B</td><td>4S</td></tr><tr><td>AGC-LSTM (Si et al., 2019)</td><td>93.3</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DC-GCN+ADG (Cheng et al., 2020a)</td><td>-</td><td>-</td><td>95.3</td><td>-</td></tr><tr><td>Shift-GCN (Cheng et al., 2020b)</td><td>92.5</td><td>-</td><td>94.2</td><td>94.6</td></tr><tr><td>2S-AGCN (Shi et al., 2019)</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>2S-AGCN* (Shi et al., 2019)</td><td>92.0</td><td>92.2</td><td>95.0</td><td>95.5</td></tr><tr><td>2S-AGCN* w/SkeletonGCL</td><td>92.6</td><td>93.0</td><td>95.7</td><td>96.3</td></tr><tr><td>CTR-GCN (Chen et al., 2021b)</td><td>-</td><td>-</td><td>-</td><td>96.5</td></tr><tr><td>CTR-GCN* (Chen et al., 2021b)</td><td>94.6</td><td>91.8</td><td>94.2</td><td>96.5</td></tr><tr><td>CTR-GCN* w/SkeletonGCL</td><td>95.1</td><td>95.0</td><td>95.9</td><td>96.8</td></tr><tr><td>InfoGCN (Chi et al., 2022)</td><td>94.0</td><td>95.3</td><td>96.3</td><td>96.6</td></tr><tr><td>InfoGCN* (Chi et al., 2022)</td><td>93.8</td><td>94.2</td><td>95.5</td><td>96.1</td></tr><tr><td>InfoGCN* w/SkeletonGCL</td><td>94.8</td><td>94.6</td><td>96.1</td><td>96.8</td></tr></table>
|
| 162 |
+
|
| 163 |
+
# 4.4 DIAGNOSTIC EXPERIMENTS
|
| 164 |
+
|
| 165 |
+
In this section, we conduct diagnostic experiments to verify the design of SkeletonGCL. Otherwise stated, we use CTR-GCN as the GCN encoder to perform the experiments on the NTU60 dataset under the X-Sub setting using the joint modality $(J)$ . See App. 6.2 for more diagnostic experiments.
|
| 166 |
+
|
| 167 |
+
Table 3: Comparison of intrabatch and inter-batch contrast.
|
| 168 |
+
|
| 169 |
+
<table><tr><td>Model (CTR-GCN)</td><td>Acc (%)</td></tr><tr><td>Baseline (w/o contrast)</td><td>89.8</td></tr><tr><td>Intra-batch Contrast (No Bank)</td><td>90.2</td></tr><tr><td>Inter-batch Contrast</td><td>90.8</td></tr></table>
|
| 170 |
+
|
| 171 |
+
Table 6: Impact of sampling strategies. R: Random; H: Hard.
|
| 172 |
+
|
| 173 |
+
<table><tr><td colspan="2">Sampling</td><td rowspan="2">Acc(%)</td></tr><tr><td>Positive</td><td>Negative</td></tr><tr><td rowspan="3">R</td><td>R</td><td>90.1</td></tr><tr><td>H</td><td>90.2</td></tr><tr><td>R+H</td><td>90.5</td></tr><tr><td rowspan="3">H</td><td>R</td><td>90.4</td></tr><tr><td>H</td><td>90.6</td></tr><tr><td>R+H</td><td>90.8</td></tr><tr><td>R + H</td><td>R + H</td><td>90.3</td></tr></table>
|
| 174 |
+
|
| 175 |
+
Table 9: Graph Distance (dis.) comparison using Euclidean distance $(10^{-5})$
|
| 176 |
+
Table 4: Comparison of feature and graph contrast.
|
| 177 |
+
|
| 178 |
+
<table><tr><td colspan="2">Model (CTR-GCN) | Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>Feature Contrast</td><td>90.2</td></tr><tr><td>Graph contrast</td><td>90.8</td></tr></table>
|
| 179 |
+
|
| 180 |
+
Table 7: Comparison with using triplet loss.
|
| 181 |
+
|
| 182 |
+
<table><tr><td colspan="2">Model (CTR-GCN) | Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>Triplet loss</td><td>90.7</td></tr><tr><td>InfoNCE loss</td><td>90.8</td></tr></table>
|
| 183 |
+
|
| 184 |
+
Table 5: Impact of memory banks.
|
| 185 |
+
|
| 186 |
+
<table><tr><td>Model (CTR-GCN)</td><td>Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>Instance Memory</td><td>90.3</td></tr><tr><td>Semantic Memory</td><td>90.2</td></tr><tr><td>Instance + Semantic</td><td>90.8</td></tr></table>
|
| 187 |
+
|
| 188 |
+
Table 8: Training consumption on NTU60.
|
| 189 |
+
|
| 190 |
+
<table><tr><td>Model</td><td>Time (hours)</td></tr><tr><td>2S-AGCN</td><td>3.4</td></tr><tr><td>2S-AGCN w/ours</td><td>3.5 ↑ 2.9%</td></tr><tr><td>CTR-GCN</td><td>11.4</td></tr><tr><td>CTR-GCN w/ours</td><td>11.7 ↑ 2.6%</td></tr><tr><td>InfoGCN</td><td>4.3</td></tr><tr><td>InfoGCN w/ours</td><td>4.6 ↑ 7.0%</td></tr></table>
|
| 191 |
+
|
| 192 |
+
Table 10: Performance $(\%)$ of samples with different graph distance ranks to the correct class.
|
| 193 |
+
|
| 194 |
+
<table><tr><td>Sample</td><td>Average dis. to all classes</td><td>Dis. to correct class</td><td>Dis. to misclassified class</td></tr><tr><td>Incorrectly-Classified Samples</td><td>1.70</td><td>0.74</td><td>0.68</td></tr><tr><td>Correctly-Classified Samples</td><td>2.20</td><td>0.47</td><td>-</td></tr></table>
|
| 195 |
+
|
| 196 |
+
<table><tr><td></td><td>CTR</td><td>CTR w/Ours</td><td>+/-</td></tr><tr><td>rank1</td><td>97.2</td><td>97.4</td><td>+0.2</td></tr><tr><td>rank2-5</td><td>92.1</td><td>92.9</td><td>+0.8</td></tr><tr><td>rank6-10</td><td>88.3</td><td>89.3</td><td>+1.0</td></tr><tr><td>rank11-20</td><td>84.9</td><td>86.3</td><td>+1.4</td></tr><tr><td>rank21-40</td><td>83.2</td><td>84.8</td><td>+1.6</td></tr><tr><td>rank41-60</td><td>80.8</td><td>82.9</td><td>+2.1</td></tr></table>
|
| 197 |
+
|
| 198 |
+
Intra-batch vs. Inter-batch Graph Contrast. In Tab. 3, the effectiveness of introducing cross-sequence context is investigated. We find that only contrasting the graphs within one batch can bring improvement with $0.4\%$ (89.8% to 90.2%), which owes to the cross-sequence relation mining. And further exploring the inter-batch relations can bring more improvements to $1.0\%$ (89.8% to 90.8%), which explains that different batches provide richer context than a single batch.
|
| 199 |
+
|
| 200 |
+
Graph Contrast vs. Feature Contrast. In Tab. 4, the comparison of using features $f$ to contrast and using graphs $g$ to contrast is investigated. We find that feature contrast can improve the performance on the baseline with $0.4\%$ (89.8% to 90.2%). But graph contrast can obviously outperform it by $0.6\%$ (90.2% to 90.8%). The results suggest that, due to the high-order structural information in graphs, graph contrast can better benefit graph convolution learning in GCNs.
|
| 201 |
+
|
| 202 |
+
Memory Banks. In Tab. 5, the effectiveness of instance-level and semantic-level memory banks is investigated. We find that both memory banks benefit the recognition, and using them together achieves much higher performance, which proves their complementary properties.
|
| 203 |
+
|
| 204 |
+
Sampling Strategy. In Tab. 6, we compare different sampling strategies for SkeletonGCL. We find that selecting hard positive/negative examples can generally improve recognition. And also random negative samples are meaningful to recognition, which allows the contrastive loss to involve more negative samples.
|
| 205 |
+
|
| 206 |
+
InfoNCE Loss vs. Triplet Loss. In Tab. 7, we compare the performance of using another popular metric learning loss, i.e., triplet loss (Schroff et al., 2015). We find that using triplet loss can achieve similar performance compared to InfoNCE loss. The results indicate the generality of our idea that it does not depend on a certain loss but can boost the performance using different losses.
|
| 207 |
+
|
| 208 |
+
Traning Consumption. In Tab. 8, we report the training consumption on NTU60. With our method, the training time only slightly increases with different baseline models, ranging from $2.6\%$ to $7.0\%$ , which proves the efficiency of the design.
|
| 209 |
+
|
| 210 |
+
Quantitative Results about Graph Similarities. As shown in Tab. 9, we statistically calculate the graph distances between each sample and all classes (detailed in App. 6.4). For incorrectly-classified samples, we find that: (1) The graph distance to the misclassified class (0.68) is much lower than the average distance (1.70) to all classes. (2) The graph distance to the misclassified class (0.68) is indeed slightly lower than the distance to the correct class (0.74), which explains that not learning class-specific graphs could truly degrade recognition performance. In addition, for correctly-classified samples, we notice that: (1) The average graph distance (2.20) is higher than that for the misclassified ones (1.70), which indicates that the inter-class graph representations are more dispersed for the correctly-classified samples. (2) The distance to the correct class (0.47) is lower than that for the misclassified ones (0.74), which reveals that the intra-class representations are more compact for the correctly classified samples. To sum up, these quantitative results illustrate the strong correlation between recognition performance and class-specific graph representation.
|
| 211 |
+
|
| 212 |
+
Performance vs. Graph Quality. In Tab. 10, we first calculate the graph distances between each sample and all classes (detailed in App. 6.4) for CTR-GCN. Then, we rank the distances from low to high. In Tab. 10, we report the recognition accuracies of samples according to their distance ranks to the correct class. Here, higher ranks indicate that graphs are of higher quality (intra-class compact and inter-class dispersed), while lower ranks indicate that graphs are of lower quality (intra-class dispersed and inter-class aliasing). We note that: (1) Considering samples from lower ranks to higher ranks, performances improve monotonically, revealing the significant correlations between graph quality and recognition performance. (2) Combined with the proposed method, we improve performances in all cases, where larger improvements are obtained on the samples with lower-quality graphs. These results prove that our method can alleviate the problem caused by learning low-quality graphs.
|
| 213 |
+
|
| 214 |
+
# 5 CONCLUSION
|
| 215 |
+
|
| 216 |
+
In this paper, we establish a new training paradigm for skeleton-based action recognition, called SkeletonGCL, which explicitly explores the rich semantic context across sequences. Concretely, SkeletonGCL contrasts the learned graphs among sequences, guiding the graph representations to be class-associated, hence improving GCN capacity to recognize different actions. We improve the current methods significantly to achieve SoTA on three benchmarks.
|
| 217 |
+
|
| 218 |
+
Limitation. In this paper, we push away the negative pairs from different classes in the same way without considering their intrinsic relations. Therefore, a comprehensive contrasting manner may be more suitable by delicately involving cross-class relations. We leave this for future work.
|
| 219 |
+
|
| 220 |
+
# ACKNOWLEDGEMENTS
|
| 221 |
+
|
| 222 |
+
This research is supported by the NSFC (grants No. 61773176 and No. 61733007).
|
| 223 |
+
|
| 224 |
+
# REFERENCES
|
| 225 |
+
|
| 226 |
+
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.
|
| 227 |
+
Xinlei Chen, Saining Xie, and Kaiming He. An empirical study of training self-supervised vision transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 9640-9649, 2021a.
|
| 228 |
+
Yuxin Chen, Ziqi Zhang, Chunfeng Yuan, Bing Li, Ying Deng, and Weiming Hu. Channel-wise topology refinement graph convolution for skeleton-based action recognition. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 13359-13368, 2021b.
|
| 229 |
+
Zhan Chen, Sicheng Li, Bing Yang, Qinghan Li, and Hong Liu. Multi-scale spatial temporal graph convolutional network for skeleton-based action recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 35, pp. 1113-1122, 2021c.
|
| 230 |
+
Ke Cheng, Yifan Zhang, Congqi Cao, Lei Shi, Jian Cheng, and Hanqing Lu. Decoupling gcn with dropgraph module for skeleton-based action recognition. In European Conference on Computer Vision, pp. 536-553. Springer, 2020a.
|
| 231 |
+
Ke Cheng, Yifan Zhang, Xiangyu He, Weihan Chen, Jian Cheng, and Hanqing Lu. Skeleton-based action recognition with shift graph convolutional network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 183-192, 2020b.
|
| 232 |
+
Guilhem Chéron, Ivan Laptev, and Cordelia Schmid. P-cnn: Pose-based cnn features for action recognition. In Proceedings of the IEEE International Conference on Computer Vision, pp. 3218-3226, 2015.
|
| 233 |
+
Hyung-gun Chi, Myoung Hoon Ha, Seunggeun Chi, Sang Wan Lee, Qixing Huang, and Karthik Ramani. Infogcn: Representation learning for human skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 20186-20196, 2022.
|
| 234 |
+
Yong Du, Wei Wang, and Liang Wang. Hierarchical recurrent neural network for skeleton based action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1110-1118, 2015.
|
| 235 |
+
Haodong Duan, Yue Zhao, Kai Chen, Dahua Lin, and Bo Dai. Revisiting skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2969-2978, 2022.
|
| 236 |
+
Tianyu Guo, Hong Liu, Zhan Chen, Mengyuan Liu, Tao Wang, and Runwei Ding. Contrastive learning from extremely augmented skeleton sequences for self-supervised action recognition. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 762-770, 2022.
|
| 237 |
+
Michael Gutmann and Aapo Hyvarinen. Noise-contrastive estimation: A new estimation principle for unnormalized statistical models. In Proceedings of the thirteenth international conference on artificial intelligence and statistics, pp. 297-304. JMLR Workshop and Conference Proceedings, 2010.
|
| 238 |
+
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.
|
| 239 |
+
Yannis Kalantidis, Mert Bulent Sariyildiz, Noe Pion, Philippe Weinzaepfel, and Diane Larlus. Hard negative mixing for contrastive learning. Advances in Neural Information Processing Systems, 33:21798-21809, 2020.
|
| 240 |
+
Prannay Khosla, Piotr Teterwak, Chen Wang, Aaron Sarna, Yonglong Tian, Phillip Isola, Aaron Maschinot, Ce Liu, and Dilip Krishnan. Supervised contrastive learning. Advances in Neural Information Processing Systems, 33:18661-18673, 2020.
|
| 241 |
+
|
| 242 |
+
Guy Lev, Gil Sadeh, Benjamin Klein, and Lior Wolf. Rnn fisher vectors for action recognition and image annotation. In European Conference on Computer Vision, pp. 833-850. Springer, 2016.
|
| 243 |
+
Linguo Li, Minsi Wang, Bingbing Ni, Hang Wang, Jiancheng Yang, and Wenjun Zhang. 3d human action representation learning via cross-view consistency pursuit. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4741-4750, 2021.
|
| 244 |
+
Maosen Li, Siheng Chen, Xu Chen, Ya Zhang, Yanfeng Wang, and Qi Tian. **Actional-structural graph convolutional networks for skeleton-based action recognition.** In *Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition*, pp. 3595–3603, 2019.
|
| 245 |
+
Jun Liu, Gang Wang, Ping Hu, Ling-Yu Duan, and Alex C Kot. Global context-aware attention LSTM networks for 3d action recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1647-1656, 2017a.
|
| 246 |
+
Jun Liu, Amir Shahroudy, Mauricio Perez, Gang Wang, Ling-Yu Duan, and Alex C Kot. Ntu rgb+ d 120: A large-scale benchmark for 3d human activity understanding. IEEE Transactions on Pattern Analysis and Machine Intelligence, 42(10):2684-2701, 2019.
|
| 247 |
+
Mengyuan Liu, Hong Liu, and Chen Chen. Enhanced skeleton visualization for view invariant human action recognition. Pattern Recognition, 68:346-362, 2017b.
|
| 248 |
+
Ziyu Liu, Hongwen Zhang, Zhenghao Chen, Zhiyong Wang, and Wanli Ouyang. Disentangling and unifying graph convolutions for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 143-152, 2020.
|
| 249 |
+
Yunyao Mao, Wengang Zhou, Zhenbo Lu, Jiajun Deng, and Houqiang Li. Cmd: Self-supervised 3d action representation learning with cross-modal mutual distillation. arXiv preprint arXiv:2208.12448, 2022.
|
| 250 |
+
Ishan Misra and Laurens van der Maaten. Self-supervised learning of pretext-invariant representations. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 6707-6717, 2020.
|
| 251 |
+
Aaron van den Oord, Yazhe Li, and Oriol Vinyals. Representation learning with contrastive predictive coding. arXiv preprint arXiv:1807.03748, 2018.
|
| 252 |
+
Chiara Plizzari, Marco Cannici, and Matteo Matteucci. Skeleton-based action recognition via spatial and temporal transformer networks. Computer Vision and Image Understanding, 208:103219, 2021.
|
| 253 |
+
Joshua Robinson, Ching-Yao Chuang, Suvrit Sra, and Stefanie Jegelka. Contrastive learning with hard negative samples. arXiv preprint arXiv:2010.04592, 2020.
|
| 254 |
+
Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 815-823, 2015.
|
| 255 |
+
Amir Shahroudy, Jun Liu, Tian-Tsong Ng, and Gang Wang. Nturgb+ d: A large scale dataset for 3d human activity analysis. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 1010-1019, 2016.
|
| 256 |
+
Lei Shi, Yifan Zhang, Jian Cheng, and Hanqing Lu. Two-stream adaptive graph convolutional networks for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12026-12035, 2019.
|
| 257 |
+
Chenyang Si, Wentao Chen, Wei Wang, Liang Wang, and Tieniu Tan. An attention enhanced graph convolutional LSTM network for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1227-1236, 2019.
|
| 258 |
+
Afrina Tabassum, Muntasir Wahed, Hoda Eldardiry, and Ismini Lourentzou. Hard negative sampling strategies for contrastive representation learning. arXiv preprint arXiv:2206.01197, 2022.
|
| 259 |
+
|
| 260 |
+
Laurens Van der Maaten and Geoffrey Hinton. Visualizing data using t-sne. Journal of machine learning research, 9(11), 2008.
|
| 261 |
+
Hongsong Wang and Liang Wang. Modeling temporal dynamics and spatial configurations of actions using two-stream recurrent neural networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 499-508, 2017.
|
| 262 |
+
Jiang Wang, Xiaohan Nie, Yin Xia, Ying Wu, and Song-Chun Zhu. Cross-view action modeling, learning and recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 2649-2656, 2014.
|
| 263 |
+
Wenguan Wang, Tianfei Zhou, Fisher Yu, Jifeng Dai, Ender Konukoglu, and Luc Van Gool. Exploring cross-image pixel contrast for semantic segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7303-7313, 2021.
|
| 264 |
+
Zhirong Wu, Yuanjun Xiong, Stella X Yu, and Dahua Lin. Unsupervised feature learning via nonparametric instance discrimination. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pp. 3733-3742, 2018.
|
| 265 |
+
Sijie Yan, Yuanjun Xiong, and Dahua Lin. Spatial temporal graph convolutional networks for skeleton-based action recognition. In Thirty-second AAAI Conference on Artificial Intelligence, 2018.
|
| 266 |
+
Fanfan Ye, Shiliang Pu, Qiaoyong Zhong, Chao Li, Di Xie, and Huiming Tang. Dynamic gcn: Context-enriched topology learning for skeleton-based action recognition. In Proceedings of the 28th ACM International Conference on Multimedia, pp. 55-63, 2020.
|
| 267 |
+
Pengfei Zhang, Cuiling Lan, Wenjun Zeng, Junliang Xing, Jianru Xue, and Nanning Zheng. Semantics-guided neural networks for efficient skeleton-based human action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 1112-1121, 2020a.
|
| 268 |
+
Xikun Zhang, Chang Xu, and Dacheng Tao. Context aware graph convolution for skeleton-based action recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14333-14342, 2020b.
|
| 269 |
+
|
| 270 |
+
# 6 APPENDIX
|
| 271 |
+
|
| 272 |
+
# 6.1 IMPLEMENTATIONS OF GRAPH PROJECTION HEADS FOR GCNS.
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 3: Illustration of graph projection heads for GCNs.
|
| 276 |
+
|
| 277 |
+
In Fig. 3, we illustrate the implementation details of graph projection heads for different GCNs. Particularly, for CTR-GCN and InfoGCN, we first apply an average pooling layer to summarize the information along the channel and temporal dimensions, respectively. Then, the same as 2S-AGCN, we flatten the graphs and embed them with an FC layer.
|
| 278 |
+
|
| 279 |
+
# 6.2 MORE DIAGNOSTIC EXPERIMENTS.
|
| 280 |
+
|
| 281 |
+
Table 11: Comparison of using cross-entropy loss to supervise graph learning.
|
| 282 |
+
|
| 283 |
+
<table><tr><td>Model (CTR-GCN)</td><td>Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>w/Cross-entropy loss</td><td>89.7</td></tr><tr><td>w/SkeletonGCL</td><td>90.8</td></tr></table>
|
| 284 |
+
|
| 285 |
+
Table 12: Impact of the FC layer in graph projection head.
|
| 286 |
+
|
| 287 |
+
<table><tr><td>Model (CTR-GCN)</td><td>Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>Graph Projection w/FC</td><td>90.1</td></tr><tr><td>Graph Projection w/FC</td><td>90.8</td></tr><tr><td>Graph Projection w/MLP</td><td>90.6</td></tr></table>
|
| 288 |
+
|
| 289 |
+
Table 13: Apply graph contrast on different layers.
|
| 290 |
+
Table 14: Impact of the size of Table 15: Performance comparison with different $C_g$
|
| 291 |
+
|
| 292 |
+
<table><tr><td colspan="2">Model (CTR-GCN) | Acc (%)</td></tr><tr><td>Baseline</td><td>89.8</td></tr><tr><td>7th layer</td><td>89.8</td></tr><tr><td>8th layer</td><td>90.0</td></tr><tr><td>9th layer</td><td>90.4</td></tr><tr><td>10th layer</td><td>90.8</td></tr></table>
|
| 293 |
+
|
| 294 |
+
Table 16: Impact of $\tau$ .
|
| 295 |
+
|
| 296 |
+
<table><tr><td>τ</td><td>Acc (%)</td></tr><tr><td>0.5</td><td>90.4</td></tr><tr><td>0.8</td><td>90.6</td></tr><tr><td>1.0</td><td>90.8</td></tr><tr><td>1.5</td><td>90.5</td></tr></table>
|
| 297 |
+
|
| 298 |
+
<table><tr><td>P</td><td>Acc (%)</td></tr><tr><td>128</td><td>90.3</td></tr><tr><td>342</td><td>90.5</td></tr><tr><td>684</td><td>90.8</td></tr><tr><td>1368</td><td>90.4</td></tr><tr><td>2736</td><td>90.0</td></tr></table>
|
| 299 |
+
|
| 300 |
+
Table 17: Impact of $\alpha$ .
|
| 301 |
+
|
| 302 |
+
<table><tr><td>α</td><td>Acc (%)</td></tr><tr><td>0.75</td><td>90.6</td></tr><tr><td>0.80</td><td>90.7</td></tr><tr><td>0.85</td><td>90.8</td></tr><tr><td>0.9</td><td>90.6</td></tr></table>
|
| 303 |
+
|
| 304 |
+
<table><tr><td>Cg</td><td>Acc (%)</td></tr><tr><td>64</td><td>90.4</td></tr><tr><td>128</td><td>90.6</td></tr><tr><td>256</td><td>90.8</td></tr><tr><td>512</td><td>90.5</td></tr></table>
|
| 305 |
+
|
| 306 |
+
Table 18: Performance comparison with different $K_H^+$
|
| 307 |
+
|
| 308 |
+
<table><tr><td>KH+</td><td>Acc (%)</td></tr><tr><td>64</td><td>90.6</td></tr><tr><td>128</td><td>90.8</td></tr><tr><td>256</td><td>90.6</td></tr><tr><td>512</td><td>90.5</td></tr></table>
|
| 309 |
+
|
| 310 |
+
Table 19: Performance comparison with different $K_H^-$
|
| 311 |
+
Table 20: Performance comparison with different $K_{R}^{-}$ .
|
| 312 |
+
|
| 313 |
+
<table><tr><td>KH</td><td>Acc (%)</td></tr><tr><td>128</td><td>90.5</td></tr><tr><td>256</td><td>90.7</td></tr><tr><td>512</td><td>90.8</td></tr><tr><td>1024</td><td>90.5</td></tr></table>
|
| 314 |
+
|
| 315 |
+
<table><tr><td>KR</td><td>Acc (%)</td></tr><tr><td>128</td><td>90.6</td></tr><tr><td>256</td><td>90.7</td></tr><tr><td>512</td><td>90.8</td></tr><tr><td>1024</td><td>90.6</td></tr></table>
|
| 316 |
+
|
| 317 |
+
Comparison of using cross-entropy loss. Since cross-entropy loss is a widely used classification loss in learning class-discriminative representations, in Tab. 11, we investigate its performance to supervise graph learning. We find that directly using cross-entropy loss for graph learning has negligible effects on the performance (89.8% to 89.7%), which indicates that it is impractical to learn favorable class-discriminative graphs by naively using a classification loss. In this paper, we find a practical way to achieve this goal by introducing the cross-sequence context for guiding graph learning.
|
| 318 |
+
|
| 319 |
+
Impact of FC in Projection Head. In Tab. 12, the effectiveness of transformation layer (FC layer) in the graph projection head is investigated. We find that the model achieves obvious improvement $(90.1\%)$ to $90.8\%$ equipped with the FC layer, which proves the importance of vertex-aware graph encoding. In addition, we find that using an MLP achieves a similar but lower accuracy, hence we use a simple FC in the framework.
|
| 320 |
+
|
| 321 |
+
Which Layer to Contrast Graphs? In Tab. 13, we apply graph contrast on different layers. We find that contrasting graphs on deeper layers outperform on shallower layers. One possible explanation is that deeper layers can provide higher-level semantics that is relevant to recognition.
|
| 322 |
+
|
| 323 |
+
Impact of the size of $\mathcal{M}_{\mathrm{Ins}}$ . In Tab. 14, the impact of the size of $\mathcal{M}_{\mathrm{Ins}}$ is investigated, where we use different values of $P$ to control the size. We find that appropriately increasing the size can effectively expand the cross-sequence context, and improve recognition performance. However, an over large memory bank stores old samples from a few batches ago, which hinders representation learning.
|
| 324 |
+
|
| 325 |
+
Impact of dimension $C_g$ . In Tab. 15, the influences of the dimension of graph vector $C_g$ are investigated. For pursuing the best performance, we set $C_g$ as 256.
|
| 326 |
+
|
| 327 |
+
Impact of temperature $\tau$ . In Tab. 16, the influences of the temperature $\tau$ are investigated. For pursuing the best performance, we set $\tau$ as 1.0.
|
| 328 |
+
|
| 329 |
+
Impact of $\alpha$ . In Tab. 17, the influences of the momentum updating hyper-parameter $\alpha$ are investigated. For pursuing the best performance, we set $\alpha$ as 0.85.
|
| 330 |
+
|
| 331 |
+
Impact of the number of sampling examples. In Tab. 18, the impact of selecting $K_H^+$ hardest positive examples is investigated. In Tab. 19, the impact of selecting $K_H^-$ hardest negative examples is investigated. In Tab. 20, the impact of selecting $K_R^-$ random negative examples is investigated. For pursuing the best performance, we set $K_H^+, K_H^-$ , and $K_R^-$ to 128, 512 and 512, respectively.
|
| 332 |
+
|
| 333 |
+
The quantitative analysis of accuracy improvement. In Tab. 21, the recognition accuracies of the top-10 hardest classes for CTR-GCN on NTU-60 are presented. The improvements in four classes (i.e., "reading", "typing on a keyboard", "headache" and "point to something") are over $4\%$ . Though performances in three classes decrease, they are relatively small $(-1.5\%$ on "writing", $-1.0\%$ on "take off a shoe", and $-2.5\%$ on "sneeze/cough") vs. others' increase. Overall, we obtain an average improvement in the 10 classes of $2.7\%$ .
|
| 334 |
+
|
| 335 |
+
In Tab. 22, the recognition accuracies of top-10 improved classes for CTR-GCN on NTU-60 are presented. The accuracy of the above 10 classes shows an average gain of $4.6\%$ .
|
| 336 |
+
|
| 337 |
+
Table 21: Performance $(\%)$ on top 10 hardest classes for CTR-GCN.
|
| 338 |
+
|
| 339 |
+
<table><tr><td>classes</td><td>CTR-GCN</td><td>CTR-GCN w/GCL</td><td>+/-</td></tr><tr><td>reading</td><td>58.2</td><td>67.8</td><td>+9.6</td></tr><tr><td>type on a keyboard</td><td>66.5</td><td>70.9</td><td>+4.4</td></tr><tr><td>writing</td><td>67.3</td><td>65.8</td><td>-1.5</td></tr><tr><td>play with phone/tablet</td><td>68.0</td><td>70.9</td><td>+2.9</td></tr><tr><td>eat meal</td><td>71.6</td><td>75.3</td><td>+3.7</td></tr><tr><td>take off a shoe</td><td>75.5</td><td>74.5</td><td>-1.0</td></tr><tr><td>headache</td><td>78.3</td><td>83.0</td><td>+4.7</td></tr><tr><td>point to something</td><td>81.9</td><td>85.9</td><td>+4.0</td></tr><tr><td>clapping</td><td>82.1</td><td>85.7</td><td>+3.6</td></tr><tr><td>sneeze/cough</td><td>82.2</td><td>79.7</td><td>-2.5</td></tr><tr><td>Average</td><td>73.2</td><td>75.9</td><td>+2.7</td></tr></table>
|
| 340 |
+
|
| 341 |
+
Table 22: Performance (%) on top 10 improved classes for CTR-GCN.
|
| 342 |
+
|
| 343 |
+
<table><tr><td>classes</td><td>CTR-GCN</td><td>CTR-GCN w/GCL</td><td>+/-</td></tr><tr><td>reading</td><td>58.2</td><td>67.8</td><td>+9.6</td></tr><tr><td>headache</td><td>78.3</td><td>83.0</td><td>+4.7</td></tr><tr><td>rub two hands</td><td>87.3</td><td>92.0</td><td>+4.7</td></tr><tr><td>punch/slap</td><td>89.4</td><td>93.8</td><td>+4.4</td></tr><tr><td>type on a keyboard</td><td>66.6</td><td>70.9</td><td>+4.3</td></tr><tr><td>point to something</td><td>81.9</td><td>85.9</td><td>+4.0</td></tr><tr><td>clapping</td><td>82.1</td><td>85.7</td><td>+3.6</td></tr><tr><td>reach into pocket</td><td>82.5</td><td>86.1</td><td>+3.6</td></tr><tr><td>eat meal</td><td>71.6</td><td>75.2</td><td>+3.6</td></tr><tr><td>neck pain</td><td>88.0</td><td>91.3</td><td>+3.3</td></tr><tr><td>Average</td><td>78.6</td><td>83.2</td><td>+4.6</td></tr></table>
|
| 344 |
+
|
| 345 |
+
# 6.3 QUALITATIVE RESULTS
|
| 346 |
+
|
| 347 |
+
In Fig. 4, we visualize the t-SNE distribution of graph and feature representations of sequences from six classes, illustrating the impact of SkeletonGCL. As shown in Fig. 4(a), SkeletonGCL can shape the graph representation structure, where the graphs from the same class get together and graphs from different classes spread out. Consequently, in Fig. 4(b), with SkeletonGCL, the features from different classes become more distinguishable, which indicates that graph contrast indeed improves the feature extraction capacity.
|
| 348 |
+
|
| 349 |
+

|
| 350 |
+
CTR-GCN
|
| 351 |
+
|
| 352 |
+

|
| 353 |
+
CTR-GCN w/SkeletonGCL
|
| 354 |
+
(a) t-SNE visualization of graph representation.
|
| 355 |
+
|
| 356 |
+

|
| 357 |
+
Feature Representation t-SNE
|
| 358 |
+
CTR-GCN
|
| 359 |
+
|
| 360 |
+

|
| 361 |
+
CTR-GCN w/ours
|
| 362 |
+
(b) t-SNE visualization of feature representation.
|
| 363 |
+
Figure 4: t-SNE visualization. t-SNE (Van der Maaten & Hinton, 2008) visualization of graph and feature representations from sequences in the test set of NTU 60. Each color denotes a certain class. Best viewed with zoom in.
|
| 364 |
+
|
| 365 |
+
# 6.4 THE CALCULATION DETAILS OF GRAPH DISTANCE
|
| 366 |
+
|
| 367 |
+
In Tab. 9, the statistics of graph distance for all samples are investigated. In CTR-GCN, the graph $\mathbf{g} \in \mathbb{R}^{K_S \times C \times N \times N}$ is learned for graph convolution. For the convenience of calculation, we use an average pooling to squeeze $\mathbf{g}$ and reshape it into $\mathbf{g} = \overline{\mathbf{g}} \in \mathbb{R}^{1 \times N^2}$ as the graph embedding to conduct distance measurement.
|
| 368 |
+
|
| 369 |
+
To acquire the graph embedding for each class $c_{*}$ , we first calculate the centroid vector $s$ as follows,
|
| 370 |
+
|
| 371 |
+
$$
|
| 372 |
+
\boldsymbol {s} _ {c _ {*}} = \frac {1}{N _ {c _ {*}}} \sum_ {i = 1} ^ {N _ {c _ {*}}} \boldsymbol {g} _ {i} \tag {9}
|
| 373 |
+
$$
|
| 374 |
+
|
| 375 |
+
where $N_{c*}$ denotes the number of samples which belongs to class $c_*$ . To effectively reveal the relation between graph quality and classification accuracy, we introduce three types of graph distance, i.e., $d_{\mathrm{all}}$ , $d_{\mathrm{cor}}$ and $d_{\mathrm{mis}}$ . $d_{\mathrm{all}}$ measures the average distance to all classes. $d_{\mathrm{cor}}$ measures the distance to the correct class $c_*$ . $d_{\mathrm{mis}}$ measures the distance to the misclassified class $c_{\mathrm{mis}}$ .
|
| 376 |
+
|
| 377 |
+
$$
|
| 378 |
+
d _ {\text {a l l}} = \frac {1}{K} \sum_ {k = 1} ^ {K} \left\| \boldsymbol {g} - \boldsymbol {s} _ {c _ {k}} \right\| ^ {2} \tag {10}
|
| 379 |
+
$$
|
| 380 |
+
|
| 381 |
+
$$
|
| 382 |
+
d _ {\mathrm {c o r}} = \left\| \boldsymbol {g} - \boldsymbol {s} _ {c _ {*}} \right\| ^ {2}, \tag {11}
|
| 383 |
+
$$
|
| 384 |
+
|
| 385 |
+
$$
|
| 386 |
+
d _ {\text {m i s}} = \left\| \boldsymbol {g} - \boldsymbol {s} _ {c _ {\text {m i s}}} \right\| ^ {2}, \tag {12}
|
| 387 |
+
$$
|
| 388 |
+
|
| 389 |
+
where $K$ denotes the number of classes in the dataset.
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:709e1407ee8a2ee7b94245053df22a055bc26ab1106be5e7c959f05a4e1e5fb7
|
| 3 |
+
size 597521
|
2023/Graph Contrastive Learning for Skeleton-based Action Recognition/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/94f3cfae-fec2-4e59-ad14-5701ff3a6720_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:14d433df169d781fe3984d57ac6295dffe34de8d3397882cfec1108d23f03b5a
|
| 3 |
+
size 624853
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:47b193f9d7e0ab008cd5800bacc7acad3489b69cdb6e85e77c273cfe4eb6c8c1
|
| 3 |
+
size 1574572
|
2023/Graph Domain Adaptation via Theory-Grounded Spectral Regularization/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/e3ba467d-9869-43d8-9a86-bf961080a389_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0004434816a55587598d604b55278040232a7457cf5bfa20766ee53fe3d99f2f
|
| 3 |
+
size 498232
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/full.md
ADDED
|
@@ -0,0 +1,731 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# GRAPH NEURAL NETWORK-INSPIRED Kernels FOR GAUSSIAN PROCESSES IN SEMI-SUPERVISED LEARNING
|
| 2 |
+
|
| 3 |
+
Zehao Niu $^{1}$ , Mihai Anitescu $^{1,2}$
|
| 4 |
+
|
| 5 |
+
<sup>1</sup>University of Chicago, <sup>2</sup>Argonne National Laboratory
|
| 6 |
+
niuzehao@uchicago.edu
|
| 7 |
+
anitescu@mcs.anl.gov
|
| 8 |
+
|
| 9 |
+
Jie Chen*
|
| 10 |
+
|
| 11 |
+
MIT-IBM Watson AI Lab IBM Research chenjie@us.ibm.com
|
| 12 |
+
|
| 13 |
+
# ABSTRACT
|
| 14 |
+
|
| 15 |
+
Gaussian processes (GPs) are an attractive class of machine learning models because of their simplicity and flexibility as building blocks of more complex Bayesian models. Meanwhile, graph neural networks (GNNs) emerged recently as a promising class of models for graph-structured data in semi-supervised learning and beyond. Their competitive performance is often attributed to a proper capturing of the graph inductive bias. In this work, we introduce this inductive bias into GPs to improve their predictive performance for graph-structured data. We show that a prominent example of GNNs, the graph convolutional network, is equivalent to some GP when its layers are infinitely wide; and we analyze the kernel universality and the limiting behavior in depth. We further present a programmable procedure to compose covariance kernels inspired by this equivalence and derive example kernels corresponding to several interesting members of the GNN family. We also propose a computationally efficient approximation of the covariance matrix for scalable posterior inference with large-scale data. We demonstrate that these graph-based kernels lead to competitive classification and regression performance, as well as advantages in computation time, compared with the respective GNNs.
|
| 16 |
+
|
| 17 |
+
# 1 INTRODUCTION
|
| 18 |
+
|
| 19 |
+
Gaussian processes (GPs) (Rasmussen & Williams, 2006) are widely used in machine learning, uncertainty quantification, and global optimization. In the Bayesian setting, a GP serves as a prior probability distribution over functions, characterized by a mean (often treated as zero for simplicity) and a covariance. Conditioned on observed data with a Gaussian likelihood, the random function admits a posterior distribution that is also Gaussian, whose mean is used for prediction and the variance serves as an uncertainty measure. The closed-form posterior allows for exact Bayesian inference, resulting in great attractiveness and wide usage of GPs.
|
| 20 |
+
|
| 21 |
+
The success of GPs in practice depends on two factors: the observations (training data) and the covariance kernel. We are interested in semi-supervised learning, where only a small amount of data is labeled while a large amount of unlabeled data can be used together for training (Zhu, 2008). In recent years, graph neural networks (GNNs) (Zhou et al., 2020; Wu et al., 2021) emerged as a promising class of models for this problem, when the labeled and unlabeled data are connected by a graph. The graph structure becomes an important inductive bias that leads to the success of GNNs. This inductive bias inspires us to design a GP model under limited observations, by building the graph structure into the covariance kernel.
|
| 22 |
+
|
| 23 |
+
An intimate relationship between neural networks and GPs is known: a neural network with fully connected layers, equipped with a prior probability distribution on the weights and biases, converges to a GP when each of its layers is infinitely wide (Lee et al., 2018; de G. Matthews et al., 2018). Such a result is owing to the central limit theorem (Neal, 1994; Williams, 1996) and the GP covariance
|
| 24 |
+
|
| 25 |
+
can be recursively computed if the weights (and biases) in each layer are iid Gaussian. Similar results for other architectures, such as convolution layers and residual connections, were subsequently established in the literature (Novak et al., 2019; Garriga-Alonso et al., 2019).
|
| 26 |
+
|
| 27 |
+
One focus of this work is to establish a similar relationship between GNNs and the limiting GPs. We will derive the covariance kernel that incorporates the graph inductive bias as GNNs do. We start with one of the most widely studied GNNs, the graph convolutional network (GCN) (Kipf & Welling, 2017), and analyze the kernel universality as well as the limiting behavior when the depth also tends to infinity. We then derive covariance kernels from other GNNs by using a programmable procedure that corresponds every building block of a neural network to a kernel operation.
|
| 28 |
+
|
| 29 |
+
Meanwhile, we design efficient computational procedures for posterior inference (i.e., regression and classification). GPs are notoriously difficult to scale because of the cubic complexity with respect to the number of training data. Benchmark graph datasets used by the GNN literature may contain thousands or even millions of labeled nodes (Hu et al., 2020b). The semi-supervised setting worsens the scenario, as the covariance matrix needs to be (recursively) evaluated in full because of the graph convolution operation. We propose a Nyström-like scheme to perform low-rank approximations and apply the approximation recursively on each layer, to yield a low-rank kernel matrix. Such a matrix can be computed scalably. We demonstrate through numerical experiments that the GP posterior inference is much faster than training a GNN and subsequently performing predictions on the test set.
|
| 30 |
+
|
| 31 |
+
We summarize the contributions of this work as follows:
|
| 32 |
+
|
| 33 |
+
1. We derive the GP as a limit of the GCN when the layer widths tend to infinity and study the kernel universality and the limiting behavior in depth.
|
| 34 |
+
2. We propose a computational procedure to compute a low-rank approximation of the covariance matrix for practical and scalable posterior inference.
|
| 35 |
+
3. We present a programmable procedure to compose covariance kernels and their approximations and show examples corresponding to several interesting members of the GNN family.
|
| 36 |
+
4. We conduct comprehensive experiments to demonstrate that the GP model performs favorably compared to GNNs in prediction accuracy while being significantly faster in computation.
|
| 37 |
+
|
| 38 |
+
# 2 RELATED WORK
|
| 39 |
+
|
| 40 |
+
It has long been observed that GPs are limits of standard neural networks with one hidden layer when the layer width tends to infinity (Neal, 1994; Williams, 1996). Recently, renewed interests in the equivalence between GPs and neural networks were extended to deep neural networks (Lee et al., 2018; de G. Matthews et al., 2018) as well as modern neural network architectures, such as convolution layers (Novak et al., 2019), recurrent networks (Yang, 2019), and residual connections (Garriga-Alonso et al., 2019). The term NNGP (neural network Gaussian process) henceforth emerged under the context of Bayesian deep learning. Besides the fact that an infinite neural network defines a kernel, the training of a neural network by using gradient descent also defines a kernel—the neural tangent kernel (NTK)—that describes the evolution of the network (Jacot et al., 2018; Lee et al., 2019). Library supports in Python were developed to automatically construct the NNGP and NTK kernels based on programming the corresponding neural networks (Novak et al., 2020).
|
| 41 |
+
|
| 42 |
+
GNNs are neural networks that handle graph-structured data (Zhou et al., 2020; Wu et al., 2021). They are a promising class of models for semi-supervised learning. Many GNNs use the message-passing scheme (Gilmer et al., 2017), where neighborhood information is aggregated to update the representation of the center node. Representative examples include GCN (Kipf & Welling, 2017), GraphSAGE (Hamilton et al., 2017), GAT (Velicković et al., 2018), and GIN (Xu et al., 2019). It is found that the performance of GNNs degrades as they become deep; one approach to mitigating the problem is to insert residual/skip connections, as done by JumpingKnowledge (Xu et al., 2018), APPNP (Gasteiger et al., 2019), and GCNII (Chen et al., 2020).
|
| 43 |
+
|
| 44 |
+
GP inference is too costly, because it requires the inverse of the $N \times N$ dense kernel matrix. Scalable approaches include low-rank methods, such as Nyström approximation (Drineas & Mahoney, 2005), random features (Rahimi & Recht, 2007), and KISS-GP (Wilson & Nickisch, 2015); as well as multi-resolution (Katzfuss, 2017) and hierarchical methods (Chen et al., 2017; Chen & Stein, 2021).
|
| 45 |
+
|
| 46 |
+
Prior efforts on integrating graphs into GPs exist. Ng et al. (2018) define a GP kernel by combing a base kernel with the adjacency matrix; it is related to a special case of our kernels where the network has only one layer and the output admits a robust-max likelihood for classification. Hu et al. (2020a) explore a similar route to us, by taking the limit of a GCN, but its exploration is less comprehensive because it does not generalize to other GNNs and does not tackle the scalability challenge.
|
| 47 |
+
|
| 48 |
+
# 3 GRAPH CONVOLUTIONAL NETWORK AS A GAUSSIAN PROCESS
|
| 49 |
+
|
| 50 |
+
We start with a few notations used throughout this paper. Let an undirected graph be denoted by $\mathcal{G} = (\mathcal{V},\mathcal{E})$ with $N = |\mathcal{V}|$ nodes and $M = |\mathcal{E}|$ edges. For notational simplicity, we use $A\in \mathbb{R}^{N\times N}$ to denote the original graph adjacency matrix or any modified/normalized version of it. Using $d_{l}$ to denote the width of the $l$ -th layer, the layer architecture of GCN reads
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
X ^ {(l)} = \phi \left(A X ^ {(l - 1)} W ^ {(l)} + b ^ {(l)}\right), \tag {1}
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
where $X^{(l-1)} \in \mathbb{R}^{N \times d_{l-1}}$ and $X^{(l)} \in \mathbb{R}^{N \times d_l}$ are layer inputs and outputs, respectively; $W^{(l)} \in \mathbb{R}^{d_{l-1} \times d_l}$ and $b^{(l)} \in \mathbb{R}^{1 \times d_l}$ are the weights and the biases, respectively; and $\phi$ is the ReLU activation function. The graph convolutional operator $A$ is a symmetric normalization of the graph adjacency matrix with self-loops added (Kipf & Welling, 2017).
|
| 57 |
+
|
| 58 |
+
For ease of exposition, it will be useful to rewrite the matrix notation (1) in element-sums and products. To this end, for a node $x$ , let $z_{i}^{(l)}(x)$ and $x_{i}^{(l)}(x)$ denote the pre- and post-activation value at the $i$ -th coordinate in the $l$ -th layer, respectively. Particularly, in an $L$ -layer GCN, $x^{(0)}(x)$ is the input feature vector and $z^{(L)}(x)$ is the output vector. The layer architecture of GCN reads
|
| 59 |
+
|
| 60 |
+
$$
|
| 61 |
+
y _ {i} ^ {(l)} (x) = \sum_ {j = 1} ^ {d _ {l - 1}} W _ {j i} ^ {(l)} x _ {j} ^ {(l - 1)} (x), \quad z _ {i} ^ {(l)} (x) = b _ {i} ^ {(l)} + \sum_ {v \in \mathcal {V}} A _ {x v} y _ {i} ^ {(l)} (v), \quad x _ {i} ^ {(l)} (x) = \phi \left(z _ {i} ^ {(l)} (x)\right). \tag {2}
|
| 62 |
+
$$
|
| 63 |
+
|
| 64 |
+
# 3.1 LIMIT IN THE WIDTH
|
| 65 |
+
|
| 66 |
+
The following theorem states that when the weights and biases in each layer are iid zero-mean Gaussians, in the limit on the layer width, the GCN output $z^{(L)}(x)$ is a multi-output GP over the index $x$ .
|
| 67 |
+
|
| 68 |
+
Theorem 1. Assume $d_{1}, \ldots, d_{L-1}$ to be infinite in succession and let the bias and weight terms be independent with distributions
|
| 69 |
+
|
| 70 |
+
$$
|
| 71 |
+
b _ {i} ^ {(l)} \sim \mathcal {N} (0, \sigma_ {b} ^ {2}), \quad W _ {i j} ^ {(l)} \sim \mathcal {N} (0, \sigma_ {w} ^ {2} / d _ {l - 1}), \quad l = 1, \ldots , L.
|
| 72 |
+
$$
|
| 73 |
+
|
| 74 |
+
Then, for each $i$ , the collection $\{z_i^{(l)}(x)\}$ over all graph nodes $x$ follows the normal distribution $\mathcal{N}(0,K^{(l)})$ , where the covariance matrix $K^{(l)}$ can be computed recursively by
|
| 75 |
+
|
| 76 |
+
$$
|
| 77 |
+
C ^ {(l)} = \operatorname {E} _ {z _ {i} ^ {(l)} \sim \mathcal {N} (0, K ^ {(l)})} [ \phi (z _ {i} ^ {(l)}) \phi (z _ {i} ^ {(l)}) ^ {T} ], \quad l = 1, \dots , L, \tag {3}
|
| 78 |
+
$$
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
K ^ {(l + 1)} = \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + \sigma_ {w} ^ {2} A C ^ {(l)} A ^ {T}, \quad l = 0, \dots , L - 1. \tag {4}
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
All proofs of this paper are given in the appendix. Note that different from a usual GP, which is a random function defined over a connected region of the Euclidean space, here $z^{(L)}$ is defined over a discrete set of graph nodes. In the usual use of a graph in machine learning, this set is finite, such that the function distribution degenerates to a multivariate distribution. In semi-supervised learning, the dimension of the distribution, $N$ , is fixed when one conducts transductive learning; but it will vary in the inductive setting because the graph will have new nodes and edges. One special care of a graph-based GP over a usual GP is that the covariance matrix will need to be recomputed from scratch whenever the graph alters.
|
| 85 |
+
|
| 86 |
+
Theorem 1 leaves out the base definition $C^{(0)}$ , whose entry denotes the covariance between two input nodes. The traditional literature uses the inner product $C^{(0)}(x, x') = \frac{x \cdot x'}{d_0}$ (Lee et al., 2018),
|
| 87 |
+
|
| 88 |
+
but nothing prevents us using any positive-definite kernel alternatively. $^{1}$ For example, we could use the squared exponential kernel $C^{(0)}(x,x^{\prime}) = \exp \left(-\frac{1}{2}\sum_{j = 1}^{d_0}\left(\frac{x_j - x_j'}{\ell_j}\right)^2\right)$ . Such flexibility in essence performs an implicit feature transformation as preprocessing.
|
| 89 |
+
|
| 90 |
+
# 3.2 UNIVERSALITY
|
| 91 |
+
|
| 92 |
+
A covariance kernel is positive definite; hence, the Moore-Aronszajn theorem (Aronszajn, 1950) suggests that it defines a unique Hilbert space for which it is a reproducing kernel. If this space is dense, then the kernel is called universal. One can verify universality by checking if the kernel matrix is positive definite for any set of distinct points. For the case of graphs, it suffices to verify if the covariance matrix for all nodes is positive definite.
|
| 93 |
+
|
| 94 |
+
We do this job for the ReLU activation function. It is known that the kernel $\mathrm{E}_{w\sim \mathcal{N}(0,I_d)}[\phi (w\cdot x)\phi (w\cdot x')]$ admits a closed-form expression as a function of the angle between $x$ and $x'$ , hence named the arc-cosine kernel (Cho & Saul, 2009). We first establish the following lemma that states that the kernel is universal over a half-space.
|
| 95 |
+
|
| 96 |
+
Lemma 2. The arc-cosine kernel is universal on the upper-hemisphere $S = \{x \in \mathbb{R}^d : \| x \|_2 = 1, x_1 > 0\}$ for all $d \geq 2$ .
|
| 97 |
+
|
| 98 |
+
It is also known that the expectation in (3) is proportional to the arc-cosine kernel up to a factor $\sqrt{K^{(l)}(x,x)K^{(l)}(x',x')}$ (Lee et al., 2018). Therefore, we iteratively work on the post-activation covariance (3) and the pre-activation covariance (4) and show that the covariance kernel resulting from the limiting GCN is universal, for any GCN with three or more layers.
|
| 99 |
+
|
| 100 |
+
Theorem 3. Assume $A$ is irreducible and non-negative and $C^{(0)}$ does not contain two linearly dependent rows. Then, $K^{(l)}$ is positive definite for all $l \geq 3$ .
|
| 101 |
+
|
| 102 |
+
# 3.3 LIMIT IN THE DEPTH
|
| 103 |
+
|
| 104 |
+
The depth of a neural network exhibits interesting behaviors. Deep learning tends to favor deep networks because of their empirically outstanding performance, exemplified by generations of convolutional networks for the ImageNet classification (Krizhevsky et al., 2012; Wortsman et al., 2022); while graph neural networks are instrumental to be shallow because of the over-smoothing and oversquashing properties (Li et al., 2018; Topping et al., 2022). For multi-layer perceptrons (networks with fully connected layers), several previous works have noted that the recurrence relation of the covariance kernel across layers leads to convergence to a fixed-point kernel, when the depth $L \to \infty$ (see, e.g., Lee et al. (2018); in Appendix B.5, we elaborate this limit). In what follows, we offer the parallel analysis for GCN.
|
| 105 |
+
|
| 106 |
+
Theorem 4. Assume $A$ is symmetric, irreducible, aperiodic, and non-negative with Perron-Frobenius eigenvalue $\lambda > 0$ . The following results hold as $l \to \infty$ .
|
| 107 |
+
|
| 108 |
+
1. When $\sigma_b^2 = 0$ , $\rho_{\min}(K^{(l)}) \nearrow 1$ , where $\rho_{\min}$ denotes the minimum correlation between any two nodes $x$ and $x'$ .
|
| 109 |
+
2. When $\sigma_w^2 < 2 / \lambda^2$ , a subsequence of $K^{(l)}$ converges to some matrix.
|
| 110 |
+
3. When $\sigma_w^2 > 2 / \lambda^2$ , let $c_l = (\sigma_w^2 \lambda^2 / 2)^l$ ; then, $K^{(l)} / c_l \to vv^T$ where $v$ is an eigenvector corresponding to $\lambda$ .
|
| 111 |
+
|
| 112 |
+
A few remarks follow. The first case implies that the correlation matrix converges monotonously to a matrix of all ones. As a consequence, up to some scaling $c_{l}^{\prime}$ that may depend on $l$ , the scaled covariance matrix $K^{(l)} / c_{l}^{\prime}$ converges to a rank-1 matrix. The third case shares a similar result, with the limit explicitly spelled out, but note that the eigenvector $v$ may not be normalized. The second case is challenging to analyze. According to empirical verification, we speculate a stronger result—convergence of $K^{(l)}$ to a unique fixed point—may hold.
|
| 113 |
+
|
| 114 |
+
Table 1: Computational costs. $M$ : number of edges; $N$ : number of nodes; ${N}_{b}$ : number of training nodes; ${N}_{ * }$ : number of prediction nodes; ${N}_{a}$ : number of landmark nodes; $L$ : number of layers. Assume ${N}_{b} \gg {N}_{a}$ . For posterior variance,assume only the diagonal is needed.
|
| 115 |
+
|
| 116 |
+
<table><tr><td></td><td>Time O(·)</td><td>Storage O(·)</td></tr><tr><td>Computation of Q(L)</td><td>LMNa + LNN2a + LNa3</td><td>NNa</td></tr><tr><td>Posterior mean (6)</td><td>NaNa + NbNa2 + Na3</td><td>(Nb + N*)Na</td></tr><tr><td>Posterior variance (7)</td><td>NaNa + NbNa2 + Na3</td><td>(Nb + N*)Na</td></tr></table>
|
| 117 |
+
|
| 118 |
+
# 4 SCALABLE COMPUTATION THROUGH LOW-RANK APPROXIMATION
|
| 119 |
+
|
| 120 |
+
The computation of the covariance matrix $K^{(L)}$ through recursion (3)-(4) is the main computational bottleneck for GP posterior inference. We start the exposition with the mean prediction. We compute the posterior mean $\widehat{y}_{*} = K_{*b}^{(L)}(K_{bb}^{(L)} + \epsilon I)^{-1}y_{b}$ , where the subscripts $b$ and $*$ denote the training set and the prediction set, respectively; and $\epsilon$ , called the nugget, is the noise variance of the training data. Let there be $N_{b}$ training nodes and $N_{*}$ prediction nodes. It is tempting to compute only the $(N_{b} + N_{*}) \times N_{b}$ submatrix of $K^{(L)}$ for the task, but the recursion (4) requires the full $C^{(L-1)}$ at the presence of $A$ , and hence all the full $C^{(l)}$ 's and $K^{(l)}$ 's.
|
| 121 |
+
|
| 122 |
+
To reduce the computational costs, we resort to a low-rank approximation of $C^{(l)}$ , from which we easily see that $K^{(l + 1)}$ is also low-rank. Before deriving the approximation recursion, we note (again) that for the ReLU activation $\phi$ , $C^{(l)}$ in (3) is the arc-cosine kernel with a closed-form expression:
|
| 123 |
+
|
| 124 |
+
$$
|
| 125 |
+
C _ {x x ^ {\prime}} ^ {(l)} = \frac {1}{2 \pi} \sqrt {K _ {x x} ^ {(l)} K _ {x ^ {\prime} x ^ {\prime}} ^ {(l)}} \left(\sin \theta_ {x x ^ {\prime}} ^ {(l)} + \left(\pi - \theta_ {x x ^ {\prime}} ^ {(l)}\right) \cos \theta_ {x x ^ {\prime}} ^ {(l)}\right) \quad \text {w h e r e} \quad \theta_ {x x ^ {\prime}} ^ {(l)} = \arccos \left(\frac {K _ {x x ^ {\prime}} ^ {(l)}}{\sqrt {K _ {x x} ^ {(l)} K _ {x ^ {\prime} x ^ {\prime}} ^ {(l)}}}\right). \tag {5}
|
| 126 |
+
$$
|
| 127 |
+
|
| 128 |
+
Hence, the main idea is that starting with a low-rank approximation of $K^{(l)}$ , compute an approximation of $C^{(l)}$ by using (5), and then obtain an approximation of $K^{(l + 1)}$ based on (4); then, repeat.
|
| 129 |
+
|
| 130 |
+
To derive the approximation, we use the subscript $a$ to denote a set of landmark nodes with cardinality $N_{a}$ . The Nystrom approximation (Drineas & Mahoney, 2005) of $K^{(0)}$ is $K_{:a}^{(0)}(K_{aa}^{(0)})^{-1}K_{a:}^{(0)}$ , where the subscript : denotes retaining all rows/columns. We rewrite this approximation in the Cholesky style as $Q^{(0)}Q^{(0)^T}$ , where $Q^{(0)} = K_{:a}^{(0)}(K_{aa}^{(0)})^{-\frac{1}{2}}$ has size $N\times N_{a}$ . Proceed with induction. Let $K^{(l)}$ be approximated by $\widehat{K}^{(l)} = Q^{(l)}Q^{(l)^T}$ , where $Q^{(l)}$ has size $N\times (N_a + 1)$ . We apply (5) to compute an approximation to $C_{:a}^{(l)}$ , namely $\widehat{C}_{:a}^{(l)}$ , by using $\widehat{K}_{:a}^{(l)}$ . Then, (4) leads to a Cholesky style approximation of $K^{(l + 1)}$ :
|
| 131 |
+
|
| 132 |
+
$$
|
| 133 |
+
\widehat {K} ^ {(l + 1)} = \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + \sigma_ {w} ^ {2} A \widehat {C} ^ {(l)} A ^ {T} \equiv Q ^ {(l + 1)} Q ^ {(l + 1) ^ {T}},
|
| 134 |
+
$$
|
| 135 |
+
|
| 136 |
+
where $Q^{(l + 1)} = \left[ \sigma_w A \widehat{C}_{:a}^{(l)} (\widehat{C}_{aa}^{(l)})^{-\frac{1}{2}} \sigma_b \mathbf{1}_{N \times 1} \right]$ . Clearly, $Q^{(l + 1)}$ has size $N \times (N_a + 1)$ , completing the induction.
|
| 137 |
+
|
| 138 |
+
In summary, $K^{(L)}$ is approximated by a rank- $(N_{a} + 1)$ matrix $\widehat{K}^{(L)} = Q^{(L)}Q^{(L)^T}$ . The computation of $Q^{(L)}$ is summarized in Algorithm 1. Once it is formed, the posterior mean is computed as
|
| 139 |
+
|
| 140 |
+
$$
|
| 141 |
+
\widehat {y} _ {*} \approx \widehat {K} _ {* b} ^ {(L)} \left(\widehat {K} _ {b b} ^ {(L)} + \epsilon I\right) ^ {- 1} y _ {b} = Q _ {*:} ^ {(L)} \left(Q _ {b:} ^ {(L) ^ {T}} Q _ {b:} ^ {(L)} + \epsilon I\right) ^ {- 1} Q _ {b:} ^ {(L) ^ {T}} y _ {b}, \tag {6}
|
| 142 |
+
$$
|
| 143 |
+
|
| 144 |
+
where note that the matrix to be inverted has size $(N_{a} + 1)\times (N_{a} + 1)$ , which is assumed to be significantly smaller than $N_{b}\times N_{b}$ . Similarly, the posterior variance is
|
| 145 |
+
|
| 146 |
+
$$
|
| 147 |
+
\widehat {K} _ {* *} ^ {(L)} - \widehat {K} _ {* b} ^ {(L)} \left(\widehat {K} _ {b b} ^ {(L)} + \epsilon I\right) ^ {- 1} \widehat {K} _ {b *} ^ {(L)} = \epsilon Q _ {*:} ^ {(L)} \left(Q _ {b:} ^ {(L) ^ {T}} Q _ {b:} ^ {(L)} + \epsilon I\right) ^ {- 1} Q _ {*:} ^ {(L) ^ {T}}. \tag {7}
|
| 148 |
+
$$
|
| 149 |
+
|
| 150 |
+
The computational costs of $Q^{(L)}$ and the posterior inference (6)-(7) are summarized in Table 1.
|
| 151 |
+
|
| 152 |
+
Algorithm 1 Computing $K^{(L)} \approx \widehat{K}^{(L)} = Q^{(L)}Q^{(L)^T}$
|
| 153 |
+
Require: $Q^{(0)}$ such that $K^{(0)}\approx Q^{(0)}Q^{(0)T}$
|
| 154 |
+
1: for $l = 0,\dots ,L - 1$ do
|
| 155 |
+
2: Compute $\widehat{K}_{:a}^{(l)} = Q_{:a}^{(0)}Q_{a:}^{(0)^T}$
|
| 156 |
+
3: Compute $\widehat{C}_{:a}^{(l)}$ by (5), where $C^{(l)}$ (resp. $K^{(l)})$ entries are replaced by $\widehat{C}^{(l)}$ (resp. $\widehat{K}^{(l)})$ entries
|
| 157 |
+
4: Compute $Q^{(l + 1)} = \left[\sigma_wA\widehat{C}_{:a}^{(l)}(\widehat{C}_{aa}^{(l)})^{-\frac{1}{2}}\sigma_b\mathbf{1}_{N\times 1}\right]$
|
| 158 |
+
5: end for
|
| 159 |
+
|
| 160 |
+
Table 2: Neural network building blocks, kernel operations, and the low-rank counterpart.
|
| 161 |
+
|
| 162 |
+
<table><tr><td>Building block</td><td>Neural network</td><td>Kernel operation</td><td>Low-rank operation</td></tr><tr><td>Input</td><td>X← X(0)</td><td>K← C(0)</td><td>Q← Chol(C(0))</td></tr><tr><td>Bias term</td><td>X← X + b</td><td>K← K + σb21N×N</td><td>Q← [Q σb1N×1]</td></tr><tr><td>Weight term</td><td>X← XW</td><td>K← σw2K</td><td>Q← σwQ</td></tr><tr><td>Mixed weight term</td><td>X← X(αI + βW)</td><td>K← (α2 + β2σw2)K</td><td>Q← √α2 + β2σw2Q</td></tr><tr><td>Graph convolution</td><td>X← AX</td><td>K← AKAT</td><td>Q← AQ</td></tr><tr><td>Activation</td><td>X← φ(X)</td><td>K← g(K)</td><td>Q← Chol(g(QQT))</td></tr><tr><td>Independent addition</td><td>X← X1 + X2</td><td>K← K1 + K2</td><td>Q← [Q1 Q2]</td></tr></table>
|
| 163 |
+
|
| 164 |
+
# 5 COMPOSING GRAPH NEURAL NETWORK-INSPIRED KERNELS
|
| 165 |
+
|
| 166 |
+
Theorem 1, together with its proof, suggests that the covariance matrix of the limiting GP can be computed in a composable manner. Moreover, the derivation of Algorithm 1 indicates that the low-rank approximation of the covariance matrix can be similarly composed. Altogether, such a nice property allows one to easily derive the corresponding covariance matrix and its approximation for a new GNN architecture, like writing a program and obtaining a transformation of it automatically through operator overloading (Novak et al., 2020): the covariance matrix is a transformation of the GNN and the composition of the former is in exactly the same manner and order as that of the latter. We call the covariance matrices programmable.
|
| 167 |
+
|
| 168 |
+
For example, we write a GCN layer as $X \gets A\phi(X)W + b$ , where for notational simplicity, $X$ denotes pre-activation rather than post-activation as in the earlier sections. The activation $\phi$ on $X$ results in a transformation of the kernel matrix $K$ into $g(K)$ , defined as:
|
| 169 |
+
|
| 170 |
+
$$
|
| 171 |
+
g (K) := C = \operatorname {E} _ {z \sim \mathcal {N} (0, K)} [ \phi (z) \phi (z) ^ {T} ], \tag {8}
|
| 172 |
+
$$
|
| 173 |
+
|
| 174 |
+
due to (3). Moreover, if $K$ admits a low-rank approximation $QQ^{T}$ , then $g(K)$ admits a low-rank approximation $PPT$ where $P = \mathrm{Chol}(g(K))$ with
|
| 175 |
+
|
| 176 |
+
$$
|
| 177 |
+
\operatorname {C h o l} (C) := C _ {: a} C _ {a a} ^ {- \frac {1}{2}}.
|
| 178 |
+
$$
|
| 179 |
+
|
| 180 |
+
The next operation—graph convolution—multiplies $A$ to the left of the post-activation. Correspondingly, the covariance matrix $K$ is transformed to $A K A^T$ and the low-rank approximation factor $Q$ is transformed to $A Q$ . Then, the operation—multiplying the weight matrix $W$ to the right—will transform $K$ to $\sigma_w^2 K$ and $Q$ to $\sigma_w Q$ . Finally, adding the bias $b$ will transform $K$ to $K + \sigma_b^2 \mathbf{1}_{N \times N}$ and $Q$ to $[Q - \sigma_b \mathbf{1}_{N \times 1}]$ . Altogether, we have obtained the following updates per layer:
|
| 181 |
+
|
| 182 |
+
$$
|
| 183 |
+
\operatorname {G C N}: \quad X \leftarrow A \phi (X) W + b
|
| 184 |
+
$$
|
| 185 |
+
|
| 186 |
+
$$
|
| 187 |
+
K \leftarrow \sigma_ {w} ^ {2} A g (K) A ^ {T} + \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N}
|
| 188 |
+
$$
|
| 189 |
+
|
| 190 |
+
$$
|
| 191 |
+
Q \leftarrow \left[ \sigma_ {w} A \operatorname {C h o l} (g (Q Q ^ {T})) \quad \sigma_ {b} \mathbf {1} _ {N \times 1} \right].
|
| 192 |
+
$$
|
| 193 |
+
|
| 194 |
+
One may verify the $K$ update against (3)-(4) and the $Q$ update against Algorithm 1. Both updates can be automatically derived based on the update of $X$ .
|
| 195 |
+
|
| 196 |
+
We summarize the building blocks of a GNN and the corresponding kernel/low-rank operations in Table 2. The independent-addition building block is applicable to skip/residual connections. For
|
| 197 |
+
|
| 198 |
+
example, here is the composition for the GCNII layer (Chen et al., 2020) without a bias term, where a skip connection with $X^{(0)}$ occurs:
|
| 199 |
+
|
| 200 |
+
$$
|
| 201 |
+
\operatorname {G C N I I}: \quad X \leftarrow \left((1 - \alpha) A \phi (X) + \alpha X ^ {(0)}\right) ((1 - \beta) I + \beta W)
|
| 202 |
+
$$
|
| 203 |
+
|
| 204 |
+
$$
|
| 205 |
+
K \leftarrow \left((1 - \alpha) ^ {2} A g (K) A ^ {T} + \alpha^ {2} K ^ {(0)}\right) ((1 - \beta) ^ {2} + \beta^ {2} \sigma_ {w} ^ {2})
|
| 206 |
+
$$
|
| 207 |
+
|
| 208 |
+
$$
|
| 209 |
+
Q \leftarrow \left[ (1 - \alpha) A \operatorname {C h o l} (g (Q Q ^ {T})) \quad \alpha Q ^ {(0)} \right] \sqrt {(1 - \beta) ^ {2} + \beta^ {2} \sigma_ {w} ^ {2}}.
|
| 210 |
+
$$
|
| 211 |
+
|
| 212 |
+
For another example of the composability, we consider the popular GIN layer (Xu et al., 2019), which we assume uses a 2-layer MLP after the neighborhood aggregation:
|
| 213 |
+
|
| 214 |
+
$$
|
| 215 |
+
\operatorname {G I N}: \quad X \leftarrow \phi (A \phi (X) W + b) W ^ {\prime} + b ^ {\prime}
|
| 216 |
+
$$
|
| 217 |
+
|
| 218 |
+
$$
|
| 219 |
+
K \leftarrow \sigma_ {w} ^ {2} g (B) + \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} \quad \text {w h e r e} \quad B = \sigma_ {w} ^ {2} A g (K) A ^ {T} + \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N}
|
| 220 |
+
$$
|
| 221 |
+
|
| 222 |
+
$$
|
| 223 |
+
Q \leftarrow \left[ \sigma_ {w} \operatorname {C h o l} (g (P P ^ {T})) \quad \sigma_ {b} \mathbf {1} _ {N \times 1} \right] \quad \text {w h e r e} \quad P = \left[ \sigma_ {w} A \operatorname {C h o l} (g (Q Q ^ {T})) \quad \sigma_ {b} \mathbf {1} _ {N \times 1} \right].
|
| 224 |
+
$$
|
| 225 |
+
|
| 226 |
+
Additionally, the updates for a GraphSAGE layer (Hamilton et al., 2017) are given in Appendix C.
|
| 227 |
+
|
| 228 |
+
# 6 EXPERIMENTS
|
| 229 |
+
|
| 230 |
+
In this section, we conduct a comprehensive set of experiments to evaluate the performance of the GP kernels derived by taking limits on the layer width of GCN and other GNNs. We demonstrate that these GPs are comparable with GNNs in prediction performance, while being significantly faster to compute. We also show that the low-rank version scales favorably, suitable for practical use.
|
| 231 |
+
|
| 232 |
+
Datasets. The experiments are conducted on several benchmark datasets of varying sizes, covering both classification and regression. They include predicting the topic of scientific papers organized in a citation network (Cora, Citeseer, PubMed, and ArXiv); predicting the community of online posts based on user comments (Reddit), and predicting the average daily traffic of Wikipedia pages using hyperlinks among them (Chameleon, Squirrel, and Crocodile). Details of the datasets (including sources and preprocessing) are given in Appendix D.
|
| 233 |
+
|
| 234 |
+
Experiment environment, training details, and hyperparameters are given in Appendix D.
|
| 235 |
+
|
| 236 |
+
Prediction Performance: GCN-based comparison. We first conduct the semi-supervised learning tasks on all datasets by using GCN and GPs with different kernels. These kernels include the one equivalent to the limiting GCN (GCNGP), a usual squared-exponential kernel (RBF), and the GGP kernel proposed by Ng et al. (2018). Each of these kernels has a low-rank version (simplified with -X). RBF-X and GGP-X<sup>4</sup> use the Nyström approximation, consistent with GCNGP-X.
|
| 237 |
+
|
| 238 |
+
GPs are by nature suitable for regression. For classification tasks, we use the one-hot representation of labels to set up a multi-output regression. Then, we take the coordinate with the largest output as the class prediction. Such an ad hoc treatment is widely used in the literature, as other more principled approaches (such as using the Laplace approximation on the non-Gaussian posterior) are too time-consuming for large datasets, meanwhile producing no noticeable gain in accuracy.
|
| 239 |
+
|
| 240 |
+
Table 3 summarizes the accuracy for classification and the coefficient of determination, $R^2$ , for regression. Whenever randomness is involved, the performance is reported as an average over five runs. The results of the two tasks show different patterns. For classification, GCNGP(-X) is slightly better than GCN and GGP(-X), while RBF(-X) is significantly worse than all others; moreover, the low-rank version is outperformed by using the full kernel matrix. On the other hand, for regression, GCNGP(-X) significantly outperforms GCN, RBF(-X), and GGP(-X); and the low-rank version becomes better. The less competitive performance of RBF(-X) is expected, as it does not leverage the graph inductive bias. It is attractive that GCNGP(-X) is competitive with GCN.
|
| 241 |
+
|
| 242 |
+
Prediction Performance: Comparison with other GNNs. In addition to GCN, we conduct experiments with several popularly used GNN architectures (GCNII, GIN, and GraphSAGE) and GPs
|
| 243 |
+
|
| 244 |
+
Table 3: Performance of GCNGP, in comparison with GCN and typical GP kernels. The Micro-F1 score is reported for classification tasks and $R^2$ is reported for regression tasks.
|
| 245 |
+
|
| 246 |
+
<table><tr><td></td><td>GCN</td><td>GCNGP</td><td>GCNGP-X</td><td>RBF</td><td>RBF-X</td><td>GGP</td><td>GGP-X</td></tr><tr><td>Cora</td><td>0.8183±0.0055</td><td>0.8280</td><td>0.7980</td><td>0.5860</td><td>0.5850</td><td>0.7850</td><td>0.7410</td></tr><tr><td>Citeseer</td><td>0.6941±0.0079</td><td>0.7090</td><td>0.7080</td><td>0.6120</td><td>0.6090</td><td>0.7060</td><td>0.6470</td></tr><tr><td>PubMed</td><td>0.7649±0.0058</td><td>0.7960</td><td>0.7810</td><td>0.7360</td><td>0.7340</td><td>0.7820</td><td>0.7380</td></tr><tr><td>ArXiv</td><td>0.6990±0.0014</td><td>OOM</td><td>0.7011±0.0011</td><td>OOM</td><td>0.5382</td><td>OOM</td><td>0.6527</td></tr><tr><td>Reddit</td><td>0.9330±0.0006</td><td>OOM</td><td>0.9465±0.0003</td><td>OOM</td><td>0.5920</td><td>OOM</td><td>0.9058</td></tr><tr><td>Chameleon</td><td>0.5690±0.0376</td><td>0.6720</td><td>0.6852</td><td>0.5554</td><td>0.5613</td><td>0.5280</td><td>0.5311</td></tr><tr><td>Squirrel</td><td>0.4243±0.0393</td><td>0.4926</td><td>0.4998</td><td>0.3187</td><td>0.3185</td><td>0.2440</td><td>0.2251</td></tr><tr><td>Crocodile</td><td>0.6976±0.0323</td><td>0.8002</td><td>0.8013</td><td>0.6643</td><td>0.6710</td><td>0.6952</td><td>0.6810</td></tr></table>
|
| 247 |
+
|
| 248 |
+
Table 4: Performance comparison (Micro-F1) between GNNs and the corresponding GP kernels.
|
| 249 |
+
|
| 250 |
+
<table><tr><td rowspan="2">architecture</td><td colspan="2">PubMed</td><td colspan="2">ArXiv</td><td colspan="2">Reddit</td></tr><tr><td>GNN</td><td>GNNGP</td><td>GNN</td><td>GNNGP-X</td><td>GNN</td><td>GNNGP-X</td></tr><tr><td>GCN</td><td>0.7649±0.0058</td><td>0.7960</td><td>0.6989±0.0016</td><td>0.7011±0.0011</td><td>0.9330±0.0006</td><td>0.9465±0.0003</td></tr><tr><td>GCNII</td><td>0.7558±0.0096</td><td>0.7840</td><td>0.7008±0.0021</td><td>0.6955±0.0011</td><td>0.9482±0.0007</td><td>0.9500±0.0003</td></tr><tr><td>GIN</td><td>0.7406±0.0112</td><td>0.7690</td><td>0.6340±0.0056</td><td>0.6652±0.0012</td><td>0.9398±0.0016</td><td>0.9428±0.0005</td></tr><tr><td>GraphSAGE</td><td>0.7535±0.0047</td><td>0.7900</td><td>0.6984±0.0021</td><td>0.6962±0.0007</td><td>0.9628±0.0007</td><td>0.9539±0.0003</td></tr></table>
|
| 251 |
+
|
| 252 |
+
with the corresponding kernels. We test with the three largest datasets: PubMed, ArXiv, and Reddit, for the latter two of which a low-rank version of the GPs is used for computational feasibility.
|
| 253 |
+
|
| 254 |
+
Table 4 summarizes the results. The observations on other GNNs extend similarly those on the GCN. In particular, on PubMed the GPs noticeably improve over the corresponding GNNs, while on ArXiv and Reddit the two families perform rather similarly. An exception is GIN for ArXiv, which significantly underperforms the GP counterpart, as well as other GNNs. It may improve with an extensive hyperparameter tuning.
|
| 255 |
+
|
| 256 |
+
Running time. We compare the running time of the methods covered by Table 3. Different from usual neural networks, the training and inference of GNNs do not decouple in full-batch training. Moreover, there is not a universally agreed split between the training and the inference steps in GPs. Hence, we compare the total time for each method.
|
| 257 |
+
|
| 258 |
+
Figure 1 plots the timing results, normalized against the GCN time for ease of comparison. It suggests that GCNGP(-X) is generally faster than GCN. Note that the vertical axis is in the logarithmic scale. Hence, for some of the datasets, the speedup is even one to two orders of magnitude.
|
| 259 |
+
|
| 260 |
+
Scalability. For graphs, especially under the semi-supervised learning setting, the computational cost of a GP is much more complex than that of a usual one (which can be simply described as "cubic in the training set size"). One sees in Table 1 the many factors that determine the cost of our graph-based low-rank kernels. To explore the practicality of the proposed method, we use the timings gathered for Figure 1 to obtain an empirical scaling with respect to the graph size, $M + N$ .
|
| 261 |
+
|
| 262 |
+
Figure 2 fits the running times, plotted in the log-log scale, by using a straight line. We see that for neither GCN nor GCNGP(-X), the actual running time closely follows a polynomial complexity. However, interestingly, the least-squares fittings all lead to a slope approximately 1, which agrees with a linear cost. Theoretically, only GCNGP-X and GCN are approximately linear with respect to $M + N$ , while GCNGP is cubic.
|
| 263 |
+
|
| 264 |
+
Analysis on the depth. The performance of GCN deteriorates with more layers, known as the oversmoothing phenomenon. Adding residual/skip connections mitigates the problem, such as in GCNII. A natural question asks if the corresponding GP kernels behave similarly.
|
| 265 |
+
|
| 266 |
+
Figure 3 shows that the trends of GCN and GCNII are indeed as expected. Interestingly, their GP counterparts both remain stable for depth $L$ as large as 12. Our depth analysis (Theorem 4) suggests that in the limit, the GPs may perform less well because the kernel matrix may degenerate to rank 1. This empirical result indicates that the drop in performance may have not started yet.
|
| 267 |
+
|
| 268 |
+

|
| 269 |
+
Figure 1: Timing comparison. For each dataset, the times are normalized against that of GCN.
|
| 270 |
+
|
| 271 |
+

|
| 272 |
+
Figure 2: Scaling of the running time with respect to the graph size, $M + N$ .
|
| 273 |
+
|
| 274 |
+

|
| 275 |
+
Figure 3: Performance of GNNs and GNNGPs as depth $L$ increases. Dataset: Pubmed.
|
| 276 |
+
|
| 277 |
+

|
| 278 |
+
Figure 4: Performance of GCNGP-X as number of landmark nodes increases. Dataset: Reddit.
|
| 279 |
+
|
| 280 |
+
Analysis on the landmark set. The number of landmark nodes, $N_{a}$ , controls the approximation quality of the low-rank kernels and hence the prediciton accuracy. On the other hand, the computational costs summarized in Table 1 indicate a dependency on $N_{a}$ as high as the third power. It is crucial to develop an empirical understanding of the accuracy-time trade-off it incurs.
|
| 281 |
+
|
| 282 |
+
Figure 4 clearly shows that as $N_{a}$ becomes larger, the running time increase is not linear, while the increase of accuracy diminishes as the landmark set approaches the training set. It is remarkable that using only 1/800 of the training set as landmark nodes already achieves an accuracy surpassing that of GCN, by using time that is only a tiny fraction of the time otherwise needed to gain an additional 1% increase in the accuracy.
|
| 283 |
+
|
| 284 |
+
# 7 CONCLUSIONS
|
| 285 |
+
|
| 286 |
+
We have presented a GP approach for semi-supervised learning on graph-structured data, where the covariance kernel incorporates a graph inductive bias by exploiting the relationship between a GP and a GNN with infinitely wide layers. Similar to other neural networks priorly investigated, one can work out the equivalent GP (in particular, the covariance kernel) for GCN; and inspired by this equivalence, we formulate a procedure to compose covariance kernels corresponding to many other members of the GNN family. Moreover, every building block in the procedure has a low-rank counterpart, which allows for building a low-rank approximation of the covariance matrix that facilitates scalable posterior inference. We demonstrate the effectiveness of the derived kernels used for semi-supervised learning and show their advantages in computation time over GNNs.
|
| 287 |
+
|
| 288 |
+
# ACKNOWLEDGMENTS
|
| 289 |
+
|
| 290 |
+
Mihai Anitescu was supported by the U.S. Department of Energy, Office of Science, Office of Advanced Scientific Computing Research (ASCR) under Contract DE-AC02-06CH11347. Jie Chen acknowledges supports from the MIT-IBM Watson AI Lab.
|
| 291 |
+
|
| 292 |
+
# REFERENCES
|
| 293 |
+
|
| 294 |
+
Nachman Aronszajn. Theory of reproducing kernels. Transactions of the American Mathematical Society, 68(3):337-404, 1950.
|
| 295 |
+
Jie Chen and Michael L. Stein. Linear-cost covariance functions for Gaussian random fields. Journal of the American Statistical Association, 2021.
|
| 296 |
+
Jie Chen, Haim Avron, and Vikas Sindhwani. Hierarchically compositional kernels for scalable nonparametric learning. Journal of Machine Learning Research, 18(66):1-42, 2017.
|
| 297 |
+
Ming Chen, Zhewei Wei, Zengfeng Huang, Bolin Ding, and Yaliang Li. Simple and deep graph convolutional networks. In ICML, 2020.
|
| 298 |
+
Youngmin Cho and Lawrence Saul. Kernel methods for deep learning. In NIPS, 2009.
|
| 299 |
+
Alexander G. de G. Matthews, Jiri Hron, Mark Rowland, Richard E. Turner, and Zoubin Ghahrami. Gaussian process behaviour in wide deep neural networks. In ICLR, 2018.
|
| 300 |
+
Petros Drineas and Michael W. Mahoney. On the nystrom method for approximating a gram matrix for improved kernel-based learning. Journal of Machine Learning Research, 6(72):2153-2175, 2005.
|
| 301 |
+
Matthias Fey and Jan E. Lenssen. Fast graph representation learning with PyTorch Geometric. In ICLR Workshop on Representation Learning on Graphs and Manifolds, 2019.
|
| 302 |
+
Adrià Garriga-Alonso, Carl Edward Rasmussen, and Laurence Aitchison. Deep convolutional networks as shallow Gaussian processes. In ICLR, 2019.
|
| 303 |
+
Johannes Gasteiger, Aleksandar Bojchevski, and Stephan Gunnemann. Predict then propagate: Graph neural networks meet personalized PageRank. In ICLR, 2019.
|
| 304 |
+
Justin Gilmer, Samuel S. Schoenholz, Patrick F. Riley, Oriol Vinyals, and George E. Dahl. Neural message passing for quantum chemistry. In ICML, 2017.
|
| 305 |
+
William L. Hamilton, Rex Ying, and Jure Leskovec. Inductive representation learning on large graphs. In NIPS, 2017.
|
| 306 |
+
Jilin Hu, Jianbing Shen, Bin Yang, and Ling Shao. Infinitely wide graph convolutional networks: Semi-supervised learning via Gaussian processes. Preprint arXiv:2002.12168, 2020a.
|
| 307 |
+
Weihua Hu, Matthias Fey, Marinka Zitnik, Yuxiao Dong, Hongyu Ren, Bowen Liu, Michele Catasta, and Jure Leskovec. Open graph benchmark: Datasets for machine learning on graphs. In NeurIPS, 2020b.
|
| 308 |
+
Arthur Jacot, Franck Gabriel, and Clément Hongler. Neural tangent kernel: Convergence and generalization in neural networks. In NeurIPS, 2018.
|
| 309 |
+
Matthias Katzfuss. A multi-resolution approximation for massive spatial datasets. Journal of the American Statistical Association, 112(517):201-214, 2017.
|
| 310 |
+
Thomas N. Kipf and Max Welling. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
|
| 311 |
+
Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. ImageNet classification with deep convolutional neural networks. In NIPS, 2012.
|
| 312 |
+
|
| 313 |
+
Jaehoon Lee, Yasaman Bahri, Roman Novak, Samuel S. Schoenholz, Jeffrey Pennington, and Jascha Sohl-Dickstein. Deep neural networks as Gaussian processes. In ICLR, 2018.
|
| 314 |
+
Jaehoon Lee, Lechao Xiao, Samuel S. Schoenholz, Yasaman Bahri, Roman Novak, Jascha Sohl-Dickstein, and Jeffrey Pennington. Wide neural networks of any depth evolve as linear models under gradient descent. In NeurIPS, 2019.
|
| 315 |
+
Qimai Li, Zhichao Han, and Xiao-Ming Wu. Deeper insights into graph convolutional networks for semi-supervised learning. In AAAI, 2018.
|
| 316 |
+
Radford M. Neal. Priors for infinite networks. Technical Report CRG-TR-94-1, University of Toronto, 1994.
|
| 317 |
+
Yin Cheng Ng, Nicolo Colombo, and Ricardo Silva. Bayesian semi-supervised learning with graph Gaussian processes. In NeurIPS, 2018.
|
| 318 |
+
Roman Novak, Lechao Xiao, Jaehoon Lee, Yasaman Bahri, Greg Yang, Jiri Hron, Daniel A. Abolafia, Jeffrey Pennington, and Jascha Sohl-Dickstein. Bayesian deep convolutional networks with many channels are Gaussian processes. In ICLR, 2019.
|
| 319 |
+
Roman Novak, Lechao Xiao, Jiri Hron, Jaehoon Lee, Alexander A. Alemi, Jascha Sohl-Dickstein, and Samuel S. Schoenholz. Neural tangents: Fast and easy infinite neural networks in Python. In ICLR, 2020.
|
| 320 |
+
Hongbin Pei, Bingzhe Wei, Kevin Chen-Chuan Chang, Yu Lei, and Bo Yang. Geom-GCN: Geometric graph convolutional networks. In ICLR, 2020.
|
| 321 |
+
Ali Rahimi and Benjamin Recht. Random features for large-scale kernel machines. In NIPS, 2007.
|
| 322 |
+
Carl Edward Rasmussen and Christopher K. I. Williams. Gaussian Processes for Machine Learning. The MIT Press, 2006.
|
| 323 |
+
Benedek Rozemberczki, Carl Allen, and Rik Sarkar. Multi-scale attributed node embedding. Journal of Complex Networks, 9(2), 2021.
|
| 324 |
+
Jake Topping, Francesco Di Giovanni, Benjamin Paul Chamberlain, Xiaowen Dong, and Michael M. Bronstein. Understanding over-squashing and bottlenecks on graphs via curvature. In ICLR, 2022.
|
| 325 |
+
Petar Velicković, Guillem Cucurull, Arantxa Casanova, Adriana Romero, Pietro Lio, and Yoshua Bengio. Graph attention networks. In ICLR, 2018.
|
| 326 |
+
Christopher Williams. Computing with infinite networks. In NIPS, 1996.
|
| 327 |
+
Andrew Gordon Wilson and Hannes Nickisch. Kernel interpolation for scalable structured Gaussian processes (KISS-GP). In ICML, 2015.
|
| 328 |
+
Mitchell Wortsman, Gabriel Ilharco, Samir Yitzhak Gadre, Rebecca Roelofs, Raphael Gontijo-Lopes, Ari S. Morcos, Hongseok Namkoong, Ali Farhadi, Yair Carmon, Simon Kornblith, and Ludwig Schmidt. Model soups: averaging weights of multiple fine-tuned models improves accuracy without increasing inference time. In ICML, 2022.
|
| 329 |
+
Zonghan Wu, Shirui Pan, Fengwen Chen, Guodong Long, Chengqi Zhang, and Philip S. Yu. A comprehensive survey on graph neural networks. IEEE Transactions on Neural Networks and Learning Systems, 32(1):4-24, 2021.
|
| 330 |
+
Keyulu Xu, Chengtao Li, Yonglong Tian, Tomohiro Sonobe, Ken ichi Kawarabayashi, and Stefanie Jegelka. Representation learning on graphs with jumping knowledge networks. In ICML, 2018.
|
| 331 |
+
Keyulu Xu, Weihua Hu, Jure Leskovec, and Stefanie Jegelka. How powerful are graph neural networks? In ICLR, 2019.
|
| 332 |
+
Greg Yang. Tensor programs I: Wide feedforward or recurrent neural networks of any architecture are Gaussian processes. In NeurIPS, 2019.
|
| 333 |
+
|
| 334 |
+
Jie Zhou, Ganqu Cui, Zhengyan Zhang, Cheng Yang, Zhiyuan Liu, Lifeng Wang, Changcheng Li, and Maosong Sun. Graph neural networks: A review of methods and applications. AI Open, 1: 57-81, 2020.
|
| 335 |
+
Xiaojin Zhu. Semi-supervised learning literature survey. Technical Report TR1530, University of Wisconsin-Madison, 2008.
|
| 336 |
+
|
| 337 |
+
# A CODE
|
| 338 |
+
|
| 339 |
+
Code is available at https://github.com/niuzehao/gnn-gp.
|
| 340 |
+
|
| 341 |
+
# B PROOFS AND ADDITIONAL THEOREMS
|
| 342 |
+
|
| 343 |
+
# B.1 PROOF OF THEOREM 1
|
| 344 |
+
|
| 345 |
+
We use mathematical induction. First, write the matrix form of (2) as follows:
|
| 346 |
+
|
| 347 |
+
$$
|
| 348 |
+
\boldsymbol {Y} _ {N \times d _ {l}} ^ {(l)} = \boldsymbol {X} _ {N \times d _ {l - 1}} ^ {(l - 1)} \boldsymbol {W} _ {d _ {l - 1} \times d _ {l}} ^ {(l)}, \quad \boldsymbol {Z} _ {N \times d _ {l}} ^ {(l)} = \mathbf {1} _ {N \times 1} \boldsymbol {b} _ {1 \times d _ {l}} ^ {(l)} + \boldsymbol {A} _ {N \times N} \boldsymbol {Y} _ {N \times d _ {l}} ^ {(l)}, \quad \boldsymbol {X} _ {N \times d _ {l}} ^ {(l)} = \phi (\boldsymbol {Z} _ {N \times d _ {l}} ^ {(l)}).
|
| 349 |
+
$$
|
| 350 |
+
|
| 351 |
+
Assume each column of $Z^{(l-1)}$ is iid, then $X^{(l-1)}$ also has iid columns. Hence, $y_i^{(l)}(x)$ is a sum of iid terms and thus normal. Also, $(y_i^{(l)}(x_1), \dots, y_i^{(l)}(x_N))$ are jointly multivariate normal, and identically distributed for different $i$ ; so they form a GP.
|
| 352 |
+
|
| 353 |
+
Moreover, terms like $y_{i}^{(l)}(x)$ and $y_{i'}^{(l)}(x')$ with $i \neq i'$ are jointly Gaussian, with zero covariance:
|
| 354 |
+
|
| 355 |
+
$$
|
| 356 |
+
\operatorname {C o v} \left(y _ {i} ^ {(l)} (x), y _ {i ^ {\prime}} ^ {(l)} \left(x ^ {\prime}\right)\right) = \sum_ {j = 1} ^ {d _ {l - 1}} \sum_ {j ^ {\prime} = 1} ^ {d _ {l - 1}} \operatorname {C o v} \left(W _ {j i} ^ {(l)} x _ {j} ^ {(l - 1)} (x), W _ {j ^ {\prime} i ^ {\prime}} ^ {(l)} x _ {j ^ {\prime}} ^ {(l - 1)} \left(x ^ {\prime}\right)\right) = 0.
|
| 357 |
+
$$
|
| 358 |
+
|
| 359 |
+
Thus, they are independent, despite the fact that they may share the same $X^{(l-1)}$ terms. In conclusion, each column of $Y^{(l)}$ is an iid GP. Hence, each column of $Z^{(l)}$ is also an iid GP $\mathcal{N}(0, K^{(l)})$ .
|
| 360 |
+
|
| 361 |
+
The covariance $K^{(l)}$ can be computed recursively. Similar to the case of a fully connected network, the covariance of $Y^{(l)}$ is
|
| 362 |
+
|
| 363 |
+
$$
|
| 364 |
+
\operatorname {E} [ y _ {i} ^ {(l)} (x) y _ {i} ^ {(l)} (x ^ {\prime}) ] = \sigma_ {w} ^ {2} \operatorname {E} [ x _ {j} ^ {(l - 1)} (x) x _ {j} ^ {(l - 1)} (x ^ {\prime}) ] = \sigma_ {w} ^ {2} C ^ {(l - 1)} (x, x ^ {\prime}),
|
| 365 |
+
$$
|
| 366 |
+
|
| 367 |
+
where
|
| 368 |
+
|
| 369 |
+
$$
|
| 370 |
+
C ^ {(l - 1)} (x, x ^ {\prime}) = \operatorname {E} _ {z \sim \mathcal {N} (0, K ^ {(l - 1)})} [ \phi (z _ {j} (x)) \phi (z _ {j} (x ^ {\prime})) ] \quad \text {f o r a n y} j.
|
| 371 |
+
$$
|
| 372 |
+
|
| 373 |
+
In the matrix form, this is to say $\mathrm{Cov}(Y_j^{(l)}) = \sigma_w^2\operatorname {E}[X_j^{(l - 1)}X_j^{(l - 1)^T}] = \sigma_w^2 C^{(l - 1)}$ . Then, because $Z_{i}^{(l)} = A Y_{i}^{(l)} + \mathbf{1}_{N\times 1}b_{i}^{(l)}$ , we obtain
|
| 374 |
+
|
| 375 |
+
$$
|
| 376 |
+
K ^ {(l)} = \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + A \operatorname {C o v} \left(Y _ {i} ^ {(l)}\right) A ^ {T} = \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + \sigma_ {w} ^ {2} A C ^ {(l - 1)} A ^ {T},
|
| 377 |
+
$$
|
| 378 |
+
|
| 379 |
+
which concludes the proof.
|
| 380 |
+
|
| 381 |
+
# B.2 PROOF OF LEMMA 2
|
| 382 |
+
|
| 383 |
+
We know that $\phi (w\cdot x)$ is the feature mapping of the arc-cosine kernel. It suffices to show for different $x_{1},\ldots ,x_{m}\in S$ , the $\phi (w,x_i)$ 's are linearly independent.
|
| 384 |
+
|
| 385 |
+
We prove this by contradiction. Assume there exist $c_{1},\ldots ,c_{m}$ not simultaneously zero, such that
|
| 386 |
+
|
| 387 |
+
$$
|
| 388 |
+
\sum_ {i = 1} ^ {m} c _ {i} \phi (w \cdot x _ {i}) \equiv 0. \tag {9}
|
| 389 |
+
$$
|
| 390 |
+
|
| 391 |
+
WLOG, we further assume that $m$ is the smallest integer that satisfies (9). Let $e_1 = (1,0,\dots ,0)$ then $x\cdot e_1 > 0,\forall x\in S$ . Assume $x_{m}\cdot e_{1} = \min_{1\leq i\leq m}\{x_{i}\cdot e_{1}\} >0$ . Then, for $1\leq i\leq m - 1$
|
| 392 |
+
|
| 393 |
+
$$
|
| 394 |
+
\frac {x _ {i} \cdot x _ {m}}{x _ {i} \cdot e _ {1}} < \frac {1}{x _ {m} \cdot e _ {1}} = \frac {x _ {m} \cdot x _ {m}}{x _ {m} \cdot e _ {1}}.
|
| 395 |
+
$$
|
| 396 |
+
|
| 397 |
+
Therefore, there exists $t$ such that
|
| 398 |
+
|
| 399 |
+
$$
|
| 400 |
+
\frac {x _ {i} \cdot x _ {m}}{x _ {i} \cdot e _ {1}} < t < \frac {x _ {m} \cdot x _ {m}}{x _ {m} \cdot e _ {1}}, \quad 1 \leq i \leq m - 1.
|
| 401 |
+
$$
|
| 402 |
+
|
| 403 |
+
Let $w = x_{m} - te_{1}$ ; then
|
| 404 |
+
|
| 405 |
+
$$
|
| 406 |
+
w \cdot x _ {m} > 0, \quad w \cdot x _ {i} < 0, \quad 1 \leq i \leq m - 1.
|
| 407 |
+
$$
|
| 408 |
+
|
| 409 |
+
Using (9) we know $c_{m}(w\cdot x_{m}) = 0$ ; so $c_{m} = 0$ . Thus, $c_{1}, \dots, c_{m-1}$ and $\phi(w\cdot x_{1}), \dots, \phi(w\cdot x_{m-1})$ also satisfy (9), with a smaller number $m$ , which forms a contradiction.
|
| 410 |
+
|
| 411 |
+
# B.3 PROOF OF THEOREM 3
|
| 412 |
+
|
| 413 |
+
From the recursive relation (3)-(4), we know $C^{(0)}$ is element-wise non-negative. Hence, $K^{(1)}$ is element-wise non-negative, $C^{(1)}$ is element-wise positive, and $K^{(2)}$ is element-wise positive.
|
| 414 |
+
|
| 415 |
+
Assume the Cholesky decomposition $K^{(2)} = LL^T$ and denote $L = (l_1, \dots, l_n)^T$ . Let $r_i = \| l_i \|_2 > 0$ and $x_i = \frac{l_i}{r_i}$ . Then, $x_1 = \pm e_1$ , and WLOG we assume $x_1 = e_1$ . Then for each $x_i$ , we know
|
| 416 |
+
|
| 417 |
+
$$
|
| 418 |
+
x _ {i} \cdot e _ {1} = \frac {l _ {i} \cdot l _ {1}}{r _ {i} r _ {1}} = \frac {K ^ {(2)} (i , 1)}{r _ {i} r _ {1}} > 0
|
| 419 |
+
$$
|
| 420 |
+
|
| 421 |
+
and each $\| x_{i}\|_{2} = 1$ . Therefore, $x_{i}\in S$ is defined in Lemma 2.
|
| 422 |
+
|
| 423 |
+
By the assumption that $C^{(0)}$ does not contain two linearly dependent rows, we know so are $K^{(1)}$ and $K^{(2)}$ . Thus, no two $l_i$ 's are linearly dependent and hence $x_i$ 's are pairwise distinct. Using the universality of the arc-cosine kernel (Lemma 2), we know $C^{(2)} = g(K^{(2)})$ is positive definite. Hence, $K^{(3)}$ is positive definite. An induction argument on the layer index completes the proof.
|
| 424 |
+
|
| 425 |
+
# B.4 PROOF OF THEOREM 4
|
| 426 |
+
|
| 427 |
+
For a covariance matrix $K$ , denote its standard deviation and correlation by
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
\sigma_ {K} (x) = \sqrt {K (x , x)},
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
$$
|
| 434 |
+
\rho_ {K} (x, x ^ {\prime}) = \frac {K (x , x ^ {\prime})}{\sqrt {K (x , x) K (x ^ {\prime} , x ^ {\prime})}}.
|
| 435 |
+
$$
|
| 436 |
+
|
| 437 |
+
From the closed-form formula (5) for the arc-cosine kernel, we have
|
| 438 |
+
|
| 439 |
+
$$
|
| 440 |
+
\rho_ {C ^ {(l)}} (x, x ^ {\prime}) = \frac {1}{\pi} \left(\sin \theta_ {x, x ^ {\prime}} ^ {(l)} + (\pi - \theta_ {x, x ^ {\prime}} ^ {(l)}) \cos \theta_ {x, x ^ {\prime}} ^ {(l)}\right),
|
| 441 |
+
$$
|
| 442 |
+
|
| 443 |
+
$$
|
| 444 |
+
\rho_ {K ^ {(l)}} (x, x ^ {\prime}) = \cos \theta_ {x, x ^ {\prime}} ^ {(l)}.
|
| 445 |
+
$$
|
| 446 |
+
|
| 447 |
+
We define the correlation mapping from $\rho_{K^{(l)}}$ to $\rho_{C^{(l)}}$ :
|
| 448 |
+
|
| 449 |
+
$$
|
| 450 |
+
f: \cos \theta \mapsto \frac {1}{\pi} (\sin \theta + (\pi - \theta) \cos \theta), \quad \theta \in [ 0, \pi ].
|
| 451 |
+
$$
|
| 452 |
+
|
| 453 |
+
We first establish a few properties of $f$ . A pictorial illustration of $f$ is given in Figure 5.
|
| 454 |
+
|
| 455 |
+

|
| 456 |
+
Figure 5: Correlation mapping $f$ .
|
| 457 |
+
|
| 458 |
+
Lemma 5. The following facts hold.
|
| 459 |
+
|
| 460 |
+
1. $f$ is increasing and it is a contraction mapping on $[-1, 1]$ .
|
| 461 |
+
|
| 462 |
+
2. $f(\rho)\geq \rho$ and the equality holds only when $\rho = 1$
|
| 463 |
+
|
| 464 |
+
Proof. For part 1, denote $\rho = \cos \theta \in [-1,1]$ . Then,
|
| 465 |
+
|
| 466 |
+
$$
|
| 467 |
+
f ^ {\prime} (\rho) = \frac {\partial f (\rho)}{\partial \theta} \frac {\partial \theta}{\partial \rho} = \frac {- 1}{\pi} (\pi - \theta) \sin \theta \cdot \frac {- 1}{\sin \theta} = \frac {\pi - \theta}{\pi} \in [ 0, 1 ].
|
| 468 |
+
$$
|
| 469 |
+
|
| 470 |
+
Thus, $f$ is increasing and it is a contraction mapping on $[-1, 1]$ .
|
| 471 |
+
|
| 472 |
+
For part 2, we know that $f(1) = 1$ . Using the contraction mapping, we know $f(\rho) \geq \rho$ for $\rho \in [-1,1]$ . Clearly, the equality holds only when $\rho = 1$ .
|
| 473 |
+
|
| 474 |
+
After the correlation mapping $f$ , we further consider the covariance mapping $g: K^{(l)} \mapsto C^{(l)}$ defined in (3) (and equivalently in (8)). We establish a few properties of $g$ below.
|
| 475 |
+
|
| 476 |
+
Lemma 6. For positive semi-definite matrices $B$ , the following facts hold.
|
| 477 |
+
|
| 478 |
+
1. $g(B) = \frac{1}{2} D^{1/2} f(D^{-1/2} BD^{-1/2}) D^{1/2}$ , where $D = \mathrm{diag}\{B\} \in \mathbb{R}^{N \times N}$ and $f$ is elementwise.
|
| 479 |
+
2. $g(B) \succ \frac{1}{2} B$ and $\operatorname{diag}\{g(B)\} = \frac{1}{2} \operatorname{diag}\{B\}$ , where $\succ$ means elementwise greater.
|
| 480 |
+
3. $\operatorname{tr}\left(A g(B) A^T\right) \leq \frac{1}{2} \|A\|_2^2 \operatorname{tr}(B)$ , where $\|A\|_2$ is the spectral norm of matrix $A$ .
|
| 481 |
+
|
| 482 |
+
Proof. For part 1, it is obvious according to (5).
|
| 483 |
+
|
| 484 |
+
For part 2, using the properties of $f$ we straightforwardly obtain
|
| 485 |
+
|
| 486 |
+
$$
|
| 487 |
+
g (B) = \frac {1}{2} D ^ {1 / 2} f (D ^ {- 1 / 2} B D ^ {- 1 / 2}) D ^ {1 / 2} \succ \frac {1}{2} D ^ {1 / 2} (D ^ {- 1 / 2} B D ^ {- 1 / 2}) D ^ {1 / 2} = \frac {1}{2} B.
|
| 488 |
+
$$
|
| 489 |
+
|
| 490 |
+
For part 3, note that $g(B)$ is positive semi-definite. Using von Neumann's trace inequality,
|
| 491 |
+
|
| 492 |
+
$$
|
| 493 |
+
\operatorname {t r} \left(A g (B) A ^ {T}\right) = \operatorname {t r} \left(A ^ {T} A g (B)\right) \leq \sum_ {i = 1} ^ {N} \lambda_ {i} \left(A ^ {T} A\right) \lambda_ {i} (g (B)) \leq \| A ^ {T} A \| _ {2} \sum_ {i = 1} ^ {N} \lambda_ {i} (g (B)),
|
| 494 |
+
$$
|
| 495 |
+
|
| 496 |
+
where the last term is equal to $\| A\| _2^2\mathrm{tr}\left(g(B)\right) = \frac{1}{2}\| A\| _2^2\mathrm{tr}\left(B\right)$ .
|
| 497 |
+
|
| 498 |
+
Now, we are ready to prove Theorem 4.
|
| 499 |
+
|
| 500 |
+
Proof of Theorem 4, part 1. We focus on uniform convergence over all pairwise correlations. Denote
|
| 501 |
+
|
| 502 |
+
$$
|
| 503 |
+
\rho_ {\mathrm {m i n}} (K) = \min _ {x, x ^ {\prime}} \rho_ {K} (x, x ^ {\prime}) \in [ - 1, 1 ].
|
| 504 |
+
$$
|
| 505 |
+
|
| 506 |
+
To simplify notation, we temporarily let $C = C^{(l)}$ . Then,
|
| 507 |
+
|
| 508 |
+
$$
|
| 509 |
+
\begin{array}{l} K ^ {(l + 1)} (x, x ^ {\prime}) = \sigma_ {w} ^ {2} \sum_ {v, v ^ {\prime}} A _ {x v} A _ {x ^ {\prime} v ^ {\prime}} C (v, v ^ {\prime}) \\ = \sigma_ {w} ^ {2} \sum_ {v, v ^ {\prime}} A _ {x v} A _ {x ^ {\prime} v ^ {\prime}} \sigma_ {C} (v) \sigma_ {C} (v ^ {\prime}) \rho_ {C} (v, v ^ {\prime}) \\ \geq \rho_ {\mathrm {m i n}} (C) \cdot \sigma_ {w} ^ {2} \sum_ {v, v ^ {\prime}} A _ {x v} A _ {x ^ {\prime} v ^ {\prime}} \sigma_ {C} (v) \sigma_ {C} (v ^ {\prime}) \\ = \rho_ {\mathrm {m i n}} (C) \cdot \sigma_ {w} ^ {2} \left(\sum_ {v} A _ {x v} \sigma_ {C} (v)\right) \left(\sum_ {v ^ {\prime}} A _ {x ^ {\prime} v ^ {\prime}} \sigma_ {C} (v ^ {\prime})\right). \\ \end{array}
|
| 510 |
+
$$
|
| 511 |
+
|
| 512 |
+
Meanwhile,
|
| 513 |
+
|
| 514 |
+
$$
|
| 515 |
+
\begin{array}{l} K ^ {(l + 1)} (x, x) = \sigma_ {w} ^ {2} \sum_ {v, v ^ {\prime}} A _ {x v} A _ {x v ^ {\prime}} C (v, v ^ {\prime}) \\ \leq \sigma_ {w} ^ {2} \sum_ {v, v ^ {\prime}} A _ {x v} A _ {x v ^ {\prime}} \sigma_ {C} (v) \sigma_ {C} (v ^ {\prime}) \\ = \sigma_ {w} ^ {2} \left(\sum_ {v} A _ {x v} \sigma_ {C} (v)\right) ^ {2} \\ \end{array}
|
| 516 |
+
$$
|
| 517 |
+
|
| 518 |
+
and similarly
|
| 519 |
+
|
| 520 |
+
$$
|
| 521 |
+
K ^ {(l + 1)} \left(x ^ {\prime}, x ^ {\prime}\right) \leq \sigma_ {w} ^ {2} \left(\sum_ {v ^ {\prime}} A _ {x ^ {\prime} v ^ {\prime}} \sigma_ {C} \left(v ^ {\prime}\right)\right) ^ {2}.
|
| 522 |
+
$$
|
| 523 |
+
|
| 524 |
+
Combining the above inequalities, we obtain
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
\rho (K ^ {(l + 1)}) (x, x ^ {\prime}) = \frac {K ^ {(l + 1)} (x , x ^ {\prime})}{\sqrt {K ^ {(l + 1)} (x , x) K ^ {(l + 1)} (x ^ {\prime} , x ^ {\prime})}} \geq \rho_ {\min } (C ^ {(l)}), \quad \forall x, x ^ {\prime},
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+
and thus
|
| 531 |
+
|
| 532 |
+
$$
|
| 533 |
+
\rho_ {\min } (K ^ {(l + 1)}) \geq \rho_ {\min } (C ^ {(l)}).
|
| 534 |
+
$$
|
| 535 |
+
|
| 536 |
+
From the correlation mapping, we know
|
| 537 |
+
|
| 538 |
+
$$
|
| 539 |
+
\rho_ {\min } (C ^ {(l)}) = f \left(\rho_ {\min } \left(K ^ {(l)}\right)\right).
|
| 540 |
+
$$
|
| 541 |
+
|
| 542 |
+
Therefore, by the properties of $f$ ,
|
| 543 |
+
|
| 544 |
+
$$
|
| 545 |
+
\rho_ {\min } (K ^ {(l + 1)}) \geq f (\rho_ {\min } (K ^ {(l)})) \geq \rho_ {\min } (K ^ {(l)}).
|
| 546 |
+
$$
|
| 547 |
+
|
| 548 |
+
Thus, $\rho_{\min}(K^{(l)}) \nearrow$ some $\rho_{\infty} \in [-1, 1]$ . Because $\rho_{\infty} = f(\rho_{\infty})$ , we conclude that $\rho_{\infty} = 1$ .
|
| 549 |
+
|
| 550 |
+

|
| 551 |
+
|
| 552 |
+
Proof of Theorem 4, part 2. Consider each $h: K^{(l)} \mapsto K^{(l+1)}$ :
|
| 553 |
+
|
| 554 |
+
$$
|
| 555 |
+
K ^ {(l + 1)} = \sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + \sigma_ {w} ^ {2} A C ^ {(l)} A ^ {T} = \sigma_ {b} ^ {2} + \sigma_ {w} ^ {2} A g (K ^ {(l)}) A ^ {T} := h (K ^ {(l)}).
|
| 556 |
+
$$
|
| 557 |
+
|
| 558 |
+
Let $\delta = \frac{1}{2}\sigma_w^2\lambda^2 < 1$ . Using part 3 of Lemma 6,
|
| 559 |
+
|
| 560 |
+
$$
|
| 561 |
+
\begin{array}{l} \operatorname {t r} \left(K ^ {(l + 1)}\right) = \operatorname {t r} \left(\sigma_ {b} ^ {2} \mathbf {1} _ {N \times N}\right) + \operatorname {t r} \left(\sigma_ {w} ^ {2} A g (K ^ {(l)}) A ^ {T}\right) \\ = N \sigma_ {b} ^ {2} + \sigma_ {w} ^ {2} \operatorname {t r} \left(A g (K ^ {(l)}) A ^ {T}\right) \\ \leq N \sigma_ {b} ^ {2} + \frac {1}{2} \sigma_ {w} ^ {2} \lambda^ {2} \operatorname {t r} \left(K ^ {(l)}\right) \\ = N \sigma_ {b} ^ {2} + \delta \cdot \operatorname {t r} \left(K ^ {(l)}\right). \\ \end{array}
|
| 562 |
+
$$
|
| 563 |
+
|
| 564 |
+
Therefore, for sufficiently large $l$ ,
|
| 565 |
+
|
| 566 |
+
$$
|
| 567 |
+
\operatorname {t r} \left(K ^ {(l)}\right) \leq \frac {N \sigma_ {b} ^ {2}}{1 - \delta} + 1.
|
| 568 |
+
$$
|
| 569 |
+
|
| 570 |
+
Because each $K^{(l)}$ is positive semi-definite, we know $K^{(l)}$ is bounded. Thus, a subsequence of $K^{(l)} \to$ some matrix.
|
| 571 |
+
|
| 572 |
+
Proof of Theorem 4, part 3. Define $\kappa^{(l)}\coloneqq K^{(l)} / c_l$ . We have the following recursive relationship between $\kappa^{(l)}$ and $\kappa^{(l + 1)}$ :
|
| 573 |
+
|
| 574 |
+
$$
|
| 575 |
+
\kappa^ {(l + 1)} = \frac {1}{c _ {l + 1}} (\sigma_ {b} ^ {2} \mathbf {1} _ {N \times N} + \sigma_ {w} ^ {2} A g (K ^ {(l)}) A ^ {T}) = \frac {\sigma_ {b} ^ {2}}{c _ {l + 1}} \mathbf {1} _ {N \times N} + \frac {2}{\lambda^ {2}} A g (\kappa^ {(l)}) A ^ {T}.
|
| 576 |
+
$$
|
| 577 |
+
|
| 578 |
+
Then,
|
| 579 |
+
|
| 580 |
+
$$
|
| 581 |
+
\operatorname {t r} \left(\kappa^ {(l + 1)}\right) = \operatorname {t r} \left(\frac {\sigma_ {b} ^ {2}}{c _ {l + 1}} \mathbf {1} _ {N \times N}\right) + \frac {2}{\lambda^ {2}} \operatorname {t r} \left(A g (\kappa^ {(l)}) A ^ {T}\right) \leq \frac {N \sigma_ {b} ^ {2}}{c _ {l + 1}} + \operatorname {t r} \left(\kappa^ {(l)}\right),
|
| 582 |
+
$$
|
| 583 |
+
|
| 584 |
+
where the inequality results from part 3 of Lemma 8. Therefore, $\kappa^{(l)}$ is bounded.
|
| 585 |
+
|
| 586 |
+
Using the Perron-Frobenius theorem, we know the eigenspace $V$ corresponding to $\lambda$ is one-dimensional, and there exists $v\in V$ such that $\| v\| _2 = 1$ and $v\succ 0$ . Then,
|
| 587 |
+
|
| 588 |
+
$$
|
| 589 |
+
v ^ {T} \kappa^ {(l + 1)} v = \frac {\sigma_ {b} ^ {2}}{c _ {l + 1}} v ^ {T} \mathbf {1} _ {N \times N} v + \frac {2}{\lambda^ {2}} v ^ {T} A g (\kappa^ {(l)}) A ^ {T} v \geq 2 v ^ {T} g (\kappa^ {(l)}) v \geq v ^ {T} \kappa^ {(l)} v.
|
| 590 |
+
$$
|
| 591 |
+
|
| 592 |
+
Therefore, $v^T \kappa^{(l)} v$ has a limit $c > 0$ .
|
| 593 |
+
|
| 594 |
+
Let $P = \operatorname{Proj}_{V^{\perp}} = I - \operatorname{Proj}_V = I - vv^T$ . Then $PA = AP$ , $\| PA \|_2 = \lambda' < \lambda$ , and
|
| 595 |
+
|
| 596 |
+
$$
|
| 597 |
+
\operatorname {t r} \left(P g (\kappa^ {(l)}) P ^ {T}\right) = \operatorname {t r} \left(g (\kappa^ {(l)})\right) - v ^ {T} g (\kappa^ {(l)}) v \leq \frac {1}{2} \operatorname {t r} \left(\kappa^ {(l)}\right) - \frac {1}{2} v ^ {T} \kappa^ {(l)} v = \frac {1}{2} \operatorname {t r} \left(P \kappa^ {(l)} P ^ {T}\right).
|
| 598 |
+
$$
|
| 599 |
+
|
| 600 |
+
Therefore,
|
| 601 |
+
|
| 602 |
+
$$
|
| 603 |
+
\begin{array}{l} \operatorname {t r} \left(P \kappa^ {(l + 1)} P ^ {T}\right) = \operatorname {t r} \left(\frac {\sigma_ {b} ^ {2}}{c _ {l + 1}} P \mathbf {1} _ {N \times N} P ^ {T}\right) + \frac {2}{\lambda^ {2}} \operatorname {t r} \left(P A g (\kappa^ {(l)}) A ^ {T} P ^ {T}\right) \\ \leq \frac {N \sigma^ {2}}{c _ {l + 1}} + \frac {2}{\lambda^ {2}} \operatorname {t r} \left(P A P g (\kappa^ {(l)}) P ^ {T} A ^ {T} P ^ {T}\right) \\ \leq \frac {N \sigma^ {2}}{c _ {l + 1}} + \frac {2}{\lambda^ {2}} \| P A \| _ {2} ^ {2} \operatorname {t r} \left(P g (\kappa^ {(l)}) P ^ {T}\right) \\ \leq \frac {N \sigma^ {2}}{c _ {l + 1}} + (\frac {\lambda^ {\prime}}{\lambda}) ^ {2} \operatorname {t r} \left(P \kappa^ {(l)} P ^ {T}\right). \\ \end{array}
|
| 604 |
+
$$
|
| 605 |
+
|
| 606 |
+
Thus, $P\kappa^{(l)}P^T\to 0$
|
| 607 |
+
|
| 608 |
+
Combining the results, we have $\kappa^{(l)}\to cvv^T$
|
| 609 |
+
|
| 610 |
+

|
| 611 |
+
|
| 612 |
+
# B.5 RESULTS FOR MULTI-LAYER PERCEPTRONS
|
| 613 |
+
|
| 614 |
+
Theorem 4 has parallel results for fully connected layers.
|
| 615 |
+
|
| 616 |
+
Theorem 7. Let $A$ be the identity matrix. The following results hold as $l \to \infty$ .
|
| 617 |
+
|
| 618 |
+
1. When $\sigma_w^2 < 2$ and $\sigma_b^2 > 0$ , then $K^{(l)} \to q\mathbf{1}_{N \times N}$ where $q = \frac{\sigma_b^2}{1 - \sigma_w^2 / 2}$ .
|
| 619 |
+
2. When $\sigma_w^2 > 2$ , let $c_l = (\sigma_w^2 / 2)^l$ ; then $K^{(l)} / c_l \to vv^T$ where $v_x = \left[\frac{\sigma_b^2}{\sigma_w^2 / 2 - 1} + K^{(0)}(x, x)\right]^{\frac{1}{2}}$ .
|
| 620 |
+
|
| 621 |
+
Proof of Theorem 7, part 1. Starting with the diagonal elements, we have
|
| 622 |
+
|
| 623 |
+
$$
|
| 624 |
+
K ^ {(l + 1)} (x, x) = \sigma_ {b} ^ {2} + \frac {\sigma_ {w} ^ {2}}{2} K ^ {(l)} (x, x).
|
| 625 |
+
$$
|
| 626 |
+
|
| 627 |
+
Therefore, $K^{(l)}(x,x) \to q = \frac{\sigma_b^2}{1 - \sigma_w^2 / 2}$ .
|
| 628 |
+
|
| 629 |
+
For the off-diagonal elements, we have
|
| 630 |
+
|
| 631 |
+
$$
|
| 632 |
+
\begin{array}{l} K ^ {(l + 1)} (x, x ^ {\prime}) = \sigma_ {b} ^ {2} + \frac {\sigma_ {w} ^ {2}}{2} \sigma_ {K ^ {(l)}} (x) \sigma_ {K ^ {(l)}} (x ^ {\prime}) f (\rho_ {K ^ {(l)}} (x, x ^ {\prime})) \\ \geq \sigma_ {b} ^ {2} + \frac {\sigma_ {w} ^ {2}}{2} \sigma_ {K ^ {(l)}} (x) \sigma_ {K ^ {(l)}} (x ^ {\prime}) \rho_ {K ^ {(l)}} (x, x ^ {\prime}) \\ = \sigma_ {b} ^ {2} + \frac {\sigma_ {w} ^ {2}}{2} K ^ {(l)} (x, x ^ {\prime}). \\ \end{array}
|
| 633 |
+
$$
|
| 634 |
+
|
| 635 |
+
Therefore,
|
| 636 |
+
|
| 637 |
+
$$
|
| 638 |
+
\lim _ {l} \inf K ^ {(l + 1)} (x, x ^ {\prime}) \geq \sigma_ {b} ^ {2} + \frac {\sigma_ {w} ^ {2}}{2} \lim _ {l} \inf K ^ {(l)} (x, x ^ {\prime}) \Rightarrow \lim _ {l} \inf K ^ {(l)} (x, x ^ {\prime}) \geq q.
|
| 639 |
+
$$
|
| 640 |
+
|
| 641 |
+
Meanwhile,
|
| 642 |
+
|
| 643 |
+
$$
|
| 644 |
+
\lim _ {l} \sup K ^ {(l)} (x, x ^ {\prime}) \leq \lim _ {l} \sup \sqrt {K ^ {(l)} (x , x) K ^ {(l)} (x ^ {\prime} , x ^ {\prime})} = q.
|
| 645 |
+
$$
|
| 646 |
+
|
| 647 |
+
Thus, $K^{(l)}(x,x') \to q$ . In conclusion, $K^{(l)} \to q\mathbf{1}_{N \times N}$ .
|
| 648 |
+
|
| 649 |
+
Proof of Theorem 7, part 2. Again, we start with diagonal elements. Define $\kappa^{(l)}\coloneqq K^{(l)} / c_l$ . When $\sigma_w^2 >2$ , we have
|
| 650 |
+
|
| 651 |
+
$$
|
| 652 |
+
\kappa^ {(l + 1)} (x, x) = \frac {\sigma_ {b} ^ {2}}{(\sigma_ {w} ^ {2} / 2) ^ {l + 1}} + \kappa^ {(l)} (x, x).
|
| 653 |
+
$$
|
| 654 |
+
|
| 655 |
+
Therefore,
|
| 656 |
+
|
| 657 |
+
$$
|
| 658 |
+
\lim _ {l \to \infty} \kappa^ {(l)} (x, x) = \sum_ {l = 0} ^ {\infty} \frac {\sigma_ {b} ^ {2}}{(\sigma_ {w} ^ {2} / 2) ^ {l + 1}} + \kappa^ {(0)} (x, x) = \frac {\sigma_ {b} ^ {2}}{\sigma_ {w} ^ {2} / 2 - 1} + K ^ {(0)} (x, x) = v _ {x} ^ {2}.
|
| 659 |
+
$$
|
| 660 |
+
|
| 661 |
+
For the off-diagonal elements, we have
|
| 662 |
+
|
| 663 |
+
$$
|
| 664 |
+
\begin{array}{l} \kappa^ {(l + 1)} (x, x ^ {\prime}) = \frac {\sigma_ {b} ^ {2}}{c _ {l + 1}} + \sigma_ {\kappa^ {(l)}} (x) \sigma_ {\kappa^ {(l)}} (x ^ {\prime}) f (\rho_ {\kappa^ {(l)}} (x, x ^ {\prime})) \\ \geq \sigma_ {\kappa^ {(l)}} (x) \sigma_ {\kappa^ {(l)}} \left(x ^ {\prime}\right) \rho_ {\kappa^ {(l)}} (x, x ^ {\prime}) \\ = \kappa^ {(l)} (x, x ^ {\prime}). \\ \end{array}
|
| 665 |
+
$$
|
| 666 |
+
|
| 667 |
+
Thus, $\kappa^{(l)}(x,x^{\prime})$ has a limit $c$ . Taking limits on both sides, we have
|
| 668 |
+
|
| 669 |
+
$$
|
| 670 |
+
c = v _ {x} v _ {x ^ {\prime}} \cdot f \left(c / \left(v _ {x} v _ {x ^ {\prime}}\right)\right),
|
| 671 |
+
$$
|
| 672 |
+
|
| 673 |
+
which suggests that $c = v_{x}v_{x^{\prime}}$ . In conclusion, $\kappa^{(l)}\to vv^T$
|
| 674 |
+
|
| 675 |
+

|
| 676 |
+
|
| 677 |
+
# C COMPOSING GRAPHSAGE
|
| 678 |
+
|
| 679 |
+
As before, $X$ denotes pre-activation rather post activation. A GraphSAGE layer has two weight matrices, $W_{1}$ and $W_{2}$ . Hence, we use two variance parameters $\sigma_{w_1}$ and $\sigma_{w_2}$ for them, respectively. For simplicity, we focus on the mean-aggregation version of GraphSAGE, where $A$ is effectively the random-walk matrix. The updates are:
|
| 680 |
+
|
| 681 |
+
GraphSAGE: $X \gets \phi(X)W_{1} + A\phi(X)W_{2}$
|
| 682 |
+
|
| 683 |
+
$$
|
| 684 |
+
K \gets \sigma_ {w _ {1}} ^ {2} g (K) + \sigma_ {w _ {2}} ^ {2} A g (K) A ^ {T}
|
| 685 |
+
$$
|
| 686 |
+
|
| 687 |
+
$$
|
| 688 |
+
Q \leftarrow \left[ \sigma_ {w _ {1}} P \quad \sigma_ {w _ {2}} A P \right] \quad \text {w h e r e} \quad P = \operatorname {C h o l} (g (Q Q ^ {T})).
|
| 689 |
+
$$
|
| 690 |
+
|
| 691 |
+
Note that we do not use a bias term. If it is desired, one can easily add it to the updates following the example of GCN.
|
| 692 |
+
|
| 693 |
+
# D EXPERIMENT DETAILS
|
| 694 |
+
|
| 695 |
+
Datasets. A summary is given in Table 5. The datasets Cora/CiteSeer/PubMed/Reddit, with predefined training/validation/test splits, are downloaded from the PyTorch Geometric library (Fey & Lenssen, 2019) and used as is. The dataset ArXiv comes from the Open Graph Benchmark (Hu et al., 2020b). The datasets Chameleon/Squirrel/Crocodile come from MUSAE (Rozemberczki et al., 2021). The training/validation/test splits of the former two sets of datasets come from GeomGCN (Pei et al., 2020), in accordance with the PyTorch Geometric library. The split for Crocodile
|
| 696 |
+
|
| 697 |
+
Table 5: Dataset summary. The edge column lists the number of directed edges.
|
| 698 |
+
|
| 699 |
+
<table><tr><td>Dataset</td><td>Task</td><td>Nodes</td><td>Edges</td><td>Features</td><td>Train/Val/Test Ratio</td></tr><tr><td>Cora</td><td>Classification</td><td>2,708</td><td>5,429</td><td>1,433</td><td>0.05/0.18/0.37</td></tr><tr><td>Citeseer</td><td>Classification</td><td>3,327</td><td>4,732</td><td>3,703</td><td>0.04/0.15/0.30</td></tr><tr><td>PubMed</td><td>Classification</td><td>19,717</td><td>44,338</td><td>500</td><td>0.003/0.025/0.051</td></tr><tr><td>ArXiv</td><td>Classification</td><td>169,343</td><td>1,166,243</td><td>128</td><td>0.54/0.18/0.28</td></tr><tr><td>Reddit</td><td>Classification</td><td>232,965</td><td>11,606,919</td><td>602</td><td>0.66/0.10/0.24</td></tr><tr><td>Chameleon</td><td>Regression</td><td>2,277</td><td>36,101</td><td>3,132</td><td>0.48/0.32/0.20</td></tr><tr><td>Squirrel</td><td>Regression</td><td>5,201</td><td>217,073</td><td>3,148</td><td>0.48/0.32/0.20</td></tr><tr><td>Crocodile</td><td>Regression</td><td>11,631</td><td>180,020</td><td>13,183</td><td>0.48/0.32/0.20</td></tr></table>
|
| 700 |
+
|
| 701 |
+
is not available, so we conduct a random split with the same 0.48/0.32/0.20 proportion as that used for Chameleon and Squirrel (Rozemberczki et al., 2021).
|
| 702 |
+
|
| 703 |
+
Dataset preprocessing. For each graph, we treat the edges as undirected and construct a binary, symmetric adjacent matrix $\underline{A}$ . Then, we apply the normalization proposed by Kipf & Welling (2017) to define $A$ used in (1). Specifically, $A = (I_N + D)^{-1/2}(I + \underline{A})(I_N + D)^{-1/2}$ , where $D = \mathrm{diag}\{\sum_{j} \underline{A}_{ij}\}$ . For GraphSAGE and GGP, we instead use the row-normalized version $A = (I_N + D)^{-1}(I_N + \underline{A})$ . No feature preprocessing is done except running the GPs on ArXiv, for which we apply a centering on the input features.
|
| 704 |
+
|
| 705 |
+
Environment. All experiments are conducted on a Nvidia Quadro GV100 GPU with 32GB of HBM2 memory. The code is written in Python 3.10.4 as distributed with Ubuntu 22.04 LTS. We use PyTorch 1.11.0 and PyTorch Geometric 2.1.0 with CUDA 11.3.
|
| 706 |
+
|
| 707 |
+
Training. For all datasets except Reddit, we train GCN using the Adam optimizer in full batch for 100 epochs. Reddit is too large for GPU computation and hence we conduct mini-batch training (with a batch size 10240) for 10 epochs.
|
| 708 |
+
|
| 709 |
+
Hyperparameters. For classification tasks in Table 3, the hyperparameters are set to $\sigma_{b} = 0.0$ , $\sigma_{w} = 1.0$ , $L = 2$ , hidden = 256, and dropout = 0.5. GCN is trained with learning rate 0.01. For regression tasks, they are set to $\sigma_{b} = \sqrt{0.1}$ , $\sigma_{w} = 1.0$ , $L = 2$ , hidden = 256, and dropout = 0.5. GCN is trained with learning rate $\sqrt{0.1}$
|
| 710 |
+
|
| 711 |
+
We choose $C^{(0)}$ to be the inner product kernel. The exception is when working with the low-rank versions, we apply PCA on the input features to ensure the number of features is smaller than the number of landmark nodes.
|
| 712 |
+
|
| 713 |
+
For Table 4: GCNII uses a 2-layer architecture and sets $\alpha = 0.1$ , $\lambda = 0.5$ , $\beta_{l} = \log \left(\frac{\lambda}{l} + 1\right)$ . GIN uses $L = 2$ and $\epsilon = 0.0$ . GraphSAGE uses a 2-layer architecture and sets $\sigma_{w_1} = \sqrt{0.1}$ for Reddit and $\sigma_{w_1} = 0.0$ for other datasets, and $\sigma_{w_2} = 1.0$ .
|
| 714 |
+
|
| 715 |
+
The nugget $\epsilon$ is chosen using a grid search over $[10^{-3}, 10^{1}]$ .
|
| 716 |
+
|
| 717 |
+
For GCNGP-X, GNNGP-X and RBF-X, the landmark points are chosen to be the training set for small datasets, while for large datasets (ArXiv and Reddit) the landmark points are a random 1/50 of the training set.
|
| 718 |
+
|
| 719 |
+
Kernels. For the RBF kernel,
|
| 720 |
+
|
| 721 |
+
$$
|
| 722 |
+
K (x, x ^ {\prime}) = \exp (- \gamma \| x - x ^ {\prime} \| _ {2} ^ {2}),
|
| 723 |
+
$$
|
| 724 |
+
|
| 725 |
+
where $\gamma$ is chosen using a grid search over $[10^{-2}, 10^{2}]$ . For the GGP kernel,
|
| 726 |
+
|
| 727 |
+
$$
|
| 728 |
+
K = A K _ {0} A ^ {T}, \quad K _ {0} (x, x ^ {\prime}) = (x ^ {T} x ^ {\prime} + c) ^ {d},
|
| 729 |
+
$$
|
| 730 |
+
|
| 731 |
+
where $c = 5.0, d = 3.0$ . Note that we use only the kernel but not the robust-max likelihood nor the ELBO training proposed by Ng et al. (2018), because their code written in Python 2 is outdated and cannot be used. Note also that GGP-X in Ng et al. (2018) has a different meaning—training GGP by using additionally the 500 nodes in the validation set—while we use GGP-X to denote the Nyström approximation of GGP.
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b97056491a971bc55fdb8de07425728cb43b2f0e27264fe4bbc32d3ee097bab0
|
| 3 |
+
size 881436
|
2023/Graph Neural Network-Inspired Kernels for Gaussian Processes in Semi-Supervised Learning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/bc96e3f3-436c-4933-a400-2282c62302e6_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5a3a277e118491d356935d9d413d55ceeba46b51df1cfdc6085efe037de64d66
|
| 3 |
+
size 1791075
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8f1d3a4227ccf3c1e22a10ca6d5a73ad5a589682e269c60a11a339fe61c3369a
|
| 3 |
+
size 2647862
|
2023/Graph Neural Networks are Inherently Good Generalizers_ Insights by Bridging GNNs and MLPs/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2023/Graph Signal Sampling for Inductive One-Bit Matrix Completion_ a Closed-form Solution/24a50077-0100-4508-aa49-e508fd6658cc_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|