Chelsea707 commited on
Commit
17c0b82
·
verified ·
1 Parent(s): e8c958d

Add Batch 2246bc63-20df-4879-ae7f-d13f3f5f4091 data

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. .gitattributes +64 -0
  2. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_content_list.json +0 -0
  3. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_model.json +0 -0
  4. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_origin.pdf +3 -0
  5. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/full.md +0 -0
  6. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/images.zip +3 -0
  7. 2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/layout.json +0 -0
  8. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_content_list.json +0 -0
  9. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_model.json +0 -0
  10. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_origin.pdf +3 -0
  11. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/full.md +0 -0
  12. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/images.zip +3 -0
  13. 2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/layout.json +0 -0
  14. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_content_list.json +0 -0
  15. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_model.json +0 -0
  16. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_origin.pdf +3 -0
  17. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/full.md +383 -0
  18. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/images.zip +3 -0
  19. 2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/layout.json +0 -0
  20. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_content_list.json +0 -0
  21. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_model.json +0 -0
  22. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_origin.pdf +3 -0
  23. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/full.md +0 -0
  24. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/images.zip +3 -0
  25. 2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/layout.json +0 -0
  26. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_content_list.json +0 -0
  27. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_model.json +0 -0
  28. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_origin.pdf +3 -0
  29. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/full.md +572 -0
  30. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/images.zip +3 -0
  31. 2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/layout.json +0 -0
  32. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_content_list.json +0 -0
  33. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_model.json +0 -0
  34. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_origin.pdf +3 -0
  35. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/full.md +536 -0
  36. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/images.zip +3 -0
  37. 2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/layout.json +0 -0
  38. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_content_list.json +1459 -0
  39. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_model.json +2202 -0
  40. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_origin.pdf +3 -0
  41. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/full.md +282 -0
  42. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/images.zip +3 -0
  43. 2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/layout.json +0 -0
  44. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_content_list.json +0 -0
  45. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_model.json +0 -0
  46. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_origin.pdf +3 -0
  47. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/full.md +0 -0
  48. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/images.zip +3 -0
  49. 2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/layout.json +0 -0
  50. 2024/Trainable Transformer in Transformer/a08be247-8641-498b-af93-08217efc8fe6_content_list.json +0 -0
.gitattributes CHANGED
@@ -5802,3 +5802,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
5802
  2024/Towards[[:space:]]Scalable[[:space:]]and[[:space:]]Versatile[[:space:]]Weight[[:space:]]Space[[:space:]]Learning/415440ae-abf4-4d66-a47f-eac1ef3a48c8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5803
  2024/Towards[[:space:]]Theoretical[[:space:]]Understanding[[:space:]]of[[:space:]]Learning[[:space:]]Large-scale[[:space:]]Dependent[[:space:]]Data[[:space:]]via[[:space:]]Random[[:space:]]Features/ad51fc74-3105-42a1-8eca-5281f682a778_origin.pdf filter=lfs diff=lfs merge=lfs -text
5804
  2024/Towards[[:space:]]Theoretical[[:space:]]Understandings[[:space:]]of[[:space:]]Self-Consuming[[:space:]]Generative[[:space:]]Models/b8cdb69d-4335-4321-af61-ac3bf9132249_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5802
  2024/Towards[[:space:]]Scalable[[:space:]]and[[:space:]]Versatile[[:space:]]Weight[[:space:]]Space[[:space:]]Learning/415440ae-abf4-4d66-a47f-eac1ef3a48c8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5803
  2024/Towards[[:space:]]Theoretical[[:space:]]Understanding[[:space:]]of[[:space:]]Learning[[:space:]]Large-scale[[:space:]]Dependent[[:space:]]Data[[:space:]]via[[:space:]]Random[[:space:]]Features/ad51fc74-3105-42a1-8eca-5281f682a778_origin.pdf filter=lfs diff=lfs merge=lfs -text
5804
  2024/Towards[[:space:]]Theoretical[[:space:]]Understandings[[:space:]]of[[:space:]]Self-Consuming[[:space:]]Generative[[:space:]]Models/b8cdb69d-4335-4321-af61-ac3bf9132249_origin.pdf filter=lfs diff=lfs merge=lfs -text
5805
+ 2024/Towards[[:space:]]Understanding[[:space:]]Inductive[[:space:]]Bias[[:space:]]in[[:space:]]Transformers_[[:space:]]A[[:space:]]View[[:space:]]From[[:space:]]Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5806
+ 2024/Towards[[:space:]]Understanding[[:space:]]the[[:space:]]Word[[:space:]]Sensitivity[[:space:]]of[[:space:]]Attention[[:space:]]Layers_[[:space:]]A[[:space:]]Study[[:space:]]via[[:space:]]Random[[:space:]]Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5807
+ 2024/Towards[[:space:]]Unified[[:space:]]Multi-granularity[[:space:]]Text[[:space:]]Detection[[:space:]]with[[:space:]]Interactive[[:space:]]Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5808
+ 2024/Towards[[:space:]]a[[:space:]]Better[[:space:]]Theoretical[[:space:]]Understanding[[:space:]]of[[:space:]]Independent[[:space:]]Subnetwork[[:space:]]Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5809
+ 2024/Towards[[:space:]]a[[:space:]]Self-contained[[:space:]]Data-driven[[:space:]]Global[[:space:]]Weather[[:space:]]Forecasting[[:space:]]Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5810
+ 2024/Towards[[:space:]]an[[:space:]]Understanding[[:space:]]of[[:space:]]Stepwise[[:space:]]Inference[[:space:]]in[[:space:]]Transformers_[[:space:]]A[[:space:]]Synthetic[[:space:]]Graph[[:space:]]Navigation[[:space:]]Model/d542e768-1743-45a2-9be5-d2eca62b2737_origin.pdf filter=lfs diff=lfs merge=lfs -text
5811
+ 2024/Towards[[:space:]]efficient[[:space:]]deep[[:space:]]spiking[[:space:]]neural[[:space:]]networks[[:space:]]construction[[:space:]]with[[:space:]]spiking[[:space:]]activity[[:space:]]based[[:space:]]pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5812
+ 2024/Towards[[:space:]]the[[:space:]]Theory[[:space:]]of[[:space:]]Unsupervised[[:space:]]Federated[[:space:]]Learning_[[:space:]]Non-asymptotic[[:space:]]Analysis[[:space:]]of[[:space:]]Federated[[:space:]]EM[[:space:]]Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_origin.pdf filter=lfs diff=lfs merge=lfs -text
5813
+ 2024/Trainable[[:space:]]Transformer[[:space:]]in[[:space:]]Transformer/a08be247-8641-498b-af93-08217efc8fe6_origin.pdf filter=lfs diff=lfs merge=lfs -text
5814
+ 2024/Trained[[:space:]]Random[[:space:]]Forests[[:space:]]Completely[[:space:]]Reveal[[:space:]]your[[:space:]]Dataset/a7d1a65c-2a99-4f95-a7de-f6d0ae182e7d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5815
+ 2024/Training[[:space:]]Greedy[[:space:]]Policy[[:space:]]for[[:space:]]Proposal[[:space:]]Batch[[:space:]]Selection[[:space:]]in[[:space:]]Expensive[[:space:]]Multi-Objective[[:space:]]Combinatorial[[:space:]]Optimization/a199d16d-0767-4ce9-9c52-cdff8d7e71fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
5816
+ 2024/Training[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]for[[:space:]]Reasoning[[:space:]]through[[:space:]]Reverse[[:space:]]Curriculum[[:space:]]Reinforcement[[:space:]]Learning/e8c16467-60ea-4d58-bb66-f1a4f58fdf9b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5817
+ 2024/Training-Free[[:space:]]Long-Context[[:space:]]Scaling[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/f2db9295-43f9-4505-a2b1-0b53ae60226f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5818
+ 2024/Transferable[[:space:]]Facial[[:space:]]Privacy[[:space:]]Protection[[:space:]]against[[:space:]]Blind[[:space:]]Face[[:space:]]Restoration[[:space:]]via[[:space:]]Domain-Consistent[[:space:]]Adversarial[[:space:]]Obfuscation/978c6951-9ba5-4d7e-bcc6-91cdba97498c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5819
+ 2024/Transferring[[:space:]]Knowledge[[:space:]]From[[:space:]]Large[[:space:]]Foundation[[:space:]]Models[[:space:]]to[[:space:]]Small[[:space:]]Downstream[[:space:]]Models/cdd65292-b247-4390-a37d-e6cdf35a643f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5820
+ 2024/Transformers[[:space:]]Get[[:space:]]Stable_[[:space:]]An[[:space:]]End-to-End[[:space:]]Signal[[:space:]]Propagation[[:space:]]Theory[[:space:]]for[[:space:]]Language[[:space:]]Models/48ebc820-5714-4307-b6c2-0603a276cce2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5821
+ 2024/Transformers[[:space:]]Implement[[:space:]]Functional[[:space:]]Gradient[[:space:]]Descent[[:space:]]to[[:space:]]Learn[[:space:]]Non-Linear[[:space:]]Functions[[:space:]]In[[:space:]]Context/824ec08a-a27a-45a0-a172-f167147cdaf9_origin.pdf filter=lfs diff=lfs merge=lfs -text
5822
+ 2024/Transformers[[:space:]]Learn[[:space:]]Nonlinear[[:space:]]Features[[:space:]]In[[:space:]]Context_[[:space:]]Nonconvex[[:space:]]Mean-field[[:space:]]Dynamics[[:space:]]on[[:space:]]the[[:space:]]Attention[[:space:]]Landscape/e4b75684-376d-4893-bd5c-1d72a80dd715_origin.pdf filter=lfs diff=lfs merge=lfs -text
5823
+ 2024/Transformers[[:space:]]Provably[[:space:]]Learn[[:space:]]Sparse[[:space:]]Token[[:space:]]Selection[[:space:]]While[[:space:]]Fully-Connected[[:space:]]Nets[[:space:]]Cannot/15d9aef5-95a3-4287-8e1a-03281383bf9b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5824
+ 2024/Transformers[[:space:]]are[[:space:]]SSMs_[[:space:]]Generalized[[:space:]]Models[[:space:]]and[[:space:]]Efficient[[:space:]]Algorithms[[:space:]]Through[[:space:]]Structured[[:space:]]State[[:space:]]Space[[:space:]]Duality/f6aa99ec-efcd-4598-86c4-c3aaba05f0c9_origin.pdf filter=lfs diff=lfs merge=lfs -text
5825
+ 2024/Transformers,[[:space:]]parallel[[:space:]]computation,[[:space:]]and[[:space:]]logarithmic[[:space:]]depth/b418da71-00b2-4212-99ea-8dfd26375bff_origin.pdf filter=lfs diff=lfs merge=lfs -text
5826
+ 2024/Transforming[[:space:]]and[[:space:]]Combining[[:space:]]Rewards[[:space:]]for[[:space:]]Aligning[[:space:]]Large[[:space:]]Language[[:space:]]Models/01efdb64-3cd3-4c9a-ac18-22174971cd07_origin.pdf filter=lfs diff=lfs merge=lfs -text
5827
+ 2024/Transitional[[:space:]]Uncertainty[[:space:]]with[[:space:]]Layered[[:space:]]Intermediate[[:space:]]Predictions/5463046a-2902-42ee-a1d4-4bfd5a467b71_origin.pdf filter=lfs diff=lfs merge=lfs -text
5828
+ 2024/Translating[[:space:]]Subgraphs[[:space:]]to[[:space:]]Nodes[[:space:]]Makes[[:space:]]Simple[[:space:]]GNNs[[:space:]]Strong[[:space:]]and[[:space:]]Efficient[[:space:]]for[[:space:]]Subgraph[[:space:]]Representation[[:space:]]Learning/76ed5c4a-4911-4437-90f1-b09b6041fa7a_origin.pdf filter=lfs diff=lfs merge=lfs -text
5829
+ 2024/Translation[[:space:]]Equivariant[[:space:]]Transformer[[:space:]]Neural[[:space:]]Processes/560d2035-911e-4a7d-81ba-9f9a11d62002_origin.pdf filter=lfs diff=lfs merge=lfs -text
5830
+ 2024/Transolver_[[:space:]]A[[:space:]]Fast[[:space:]]Transformer[[:space:]]Solver[[:space:]]for[[:space:]]PDEs[[:space:]]on[[:space:]]General[[:space:]]Geometries/cc16ea9c-7a49-4e47-bcae-ed514d641692_origin.pdf filter=lfs diff=lfs merge=lfs -text
5831
+ 2024/Transport[[:space:]]of[[:space:]]Algebraic[[:space:]]Structure[[:space:]]to[[:space:]]Latent[[:space:]]Embeddings/90bffdd4-c9ff-4066-a4e5-e4b59ab80db4_origin.pdf filter=lfs diff=lfs merge=lfs -text
5832
+ 2024/TravelPlanner_[[:space:]]A[[:space:]]Benchmark[[:space:]]for[[:space:]]Real-World[[:space:]]Planning[[:space:]]with[[:space:]]Language[[:space:]]Agents/6ab46a42-35fa-47f7-84f7-0193d92697a2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5833
+ 2024/Triadic-OCD_[[:space:]]Asynchronous[[:space:]]Online[[:space:]]Change[[:space:]]Detection[[:space:]]with[[:space:]]Provable[[:space:]]Robustness,[[:space:]]Optimality,[[:space:]]and[[:space:]]Convergence/3b86ddcb-5354-4186-af6c-42ba7b469fe7_origin.pdf filter=lfs diff=lfs merge=lfs -text
5834
+ 2024/Triple[[:space:]]Changes[[:space:]]Estimator[[:space:]]for[[:space:]]Targeted[[:space:]]Policies/59ae3cb1-2979-44c1-ac93-d0cce2d0d2b0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5835
+ 2024/Triplet[[:space:]]Interaction[[:space:]]Improves[[:space:]]Graph[[:space:]]Transformers_[[:space:]]Accurate[[:space:]]Molecular[[:space:]]Graph[[:space:]]Learning[[:space:]]with[[:space:]]Triplet[[:space:]]Graph[[:space:]]Transformers/c591cff4-143f-43c3-883d-0f60e536b37a_origin.pdf filter=lfs diff=lfs merge=lfs -text
5836
+ 2024/Tripod_[[:space:]]Three[[:space:]]Complementary[[:space:]]Inductive[[:space:]]Biases[[:space:]]for[[:space:]]Disentangled[[:space:]]Representation[[:space:]]Learning/5f5779c4-6eb6-42cb-b262-37d6d92d18eb_origin.pdf filter=lfs diff=lfs merge=lfs -text
5837
+ 2024/TroVE_[[:space:]]Inducing[[:space:]]Verifiable[[:space:]]and[[:space:]]Efficient[[:space:]]Toolboxes[[:space:]]for[[:space:]]Solving[[:space:]]Programmatic[[:space:]]Tasks/bda489e5-4324-4f20-9889-9109107c53f4_origin.pdf filter=lfs diff=lfs merge=lfs -text
5838
+ 2024/Truly[[:space:]]No-Regret[[:space:]]Learning[[:space:]]in[[:space:]]Constrained[[:space:]]MDPs/858bbaba-ace5-4c2c-bcd6-d484e659bd87_origin.pdf filter=lfs diff=lfs merge=lfs -text
5839
+ 2024/Trust[[:space:]]Regions[[:space:]]for[[:space:]]Explanations[[:space:]]via[[:space:]]Black-Box[[:space:]]Probabilistic[[:space:]]Certification/8e7bc199-ea5a-45dd-a78d-e175b32ed90f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5840
+ 2024/Trust[[:space:]]the[[:space:]]Model[[:space:]]Where[[:space:]]It[[:space:]]Trusts[[:space:]]Itself[[:space:]]-[[:space:]]Model-Based[[:space:]]Actor-Critic[[:space:]]with[[:space:]]Uncertainty-Aware[[:space:]]Rollout[[:space:]]Adaption/8cf76aa8-f637-4c4c-84fc-d2f011ec5c85_origin.pdf filter=lfs diff=lfs merge=lfs -text
5841
+ 2024/Trustless[[:space:]]Audits[[:space:]]without[[:space:]]Revealing[[:space:]]Data[[:space:]]or[[:space:]]Models/ecac78b7-1344-4a7d-bea6-775bd48d0ca1_origin.pdf filter=lfs diff=lfs merge=lfs -text
5842
+ 2024/Trustworthy[[:space:]]Actionable[[:space:]]Perturbations/22cd4bea-162a-4c2b-bb0d-f30555cb3bb7_origin.pdf filter=lfs diff=lfs merge=lfs -text
5843
+ 2024/Trustworthy[[:space:]]Alignment[[:space:]]of[[:space:]]Retrieval-Augmented[[:space:]]Large[[:space:]]Language[[:space:]]Models[[:space:]]via[[:space:]]Reinforcement[[:space:]]Learning/18ec70e8-c95e-4fc8-a16c-bbb8d0784348_origin.pdf filter=lfs diff=lfs merge=lfs -text
5844
+ 2024/Tuning-Free[[:space:]]Stochastic[[:space:]]Optimization/29c366ec-97f5-424e-943a-367f3fb03931_origin.pdf filter=lfs diff=lfs merge=lfs -text
5845
+ 2024/Tuning-free[[:space:]]Estimation[[:space:]]and[[:space:]]Inference[[:space:]]of[[:space:]]Cumulative[[:space:]]Distribution[[:space:]]Function[[:space:]]under[[:space:]]Local[[:space:]]Differential[[:space:]]Privacy/e312bf16-ee71-4e3f-800c-ccb674f20923_origin.pdf filter=lfs diff=lfs merge=lfs -text
5846
+ 2024/Turnstile[[:space:]]$_ell_p$[[:space:]]leverage[[:space:]]score[[:space:]]sampling[[:space:]]with[[:space:]]applications/57dbdd55-af31-43c0-9d2a-5a110106f4ed_origin.pdf filter=lfs diff=lfs merge=lfs -text
5847
+ 2024/Two[[:space:]]Fists,[[:space:]]One[[:space:]]Heart_[[:space:]]Multi-Objective[[:space:]]Optimization[[:space:]]Based[[:space:]]Strategy[[:space:]]Fusion[[:space:]]for[[:space:]]Long-tailed[[:space:]]Learning/0e5e3eba-02a5-446c-9399-c26d117ed75e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5848
+ 2024/Two[[:space:]]Heads[[:space:]]Are[[:space:]]Better[[:space:]]Than[[:space:]]One_[[:space:]]Boosting[[:space:]]Graph[[:space:]]Sparse[[:space:]]Training[[:space:]]via[[:space:]]Semantic[[:space:]]and[[:space:]]Topological[[:space:]]Awareness/bfcf7ce6-57f3-4daf-b4f0-0027fe3b2cd6_origin.pdf filter=lfs diff=lfs merge=lfs -text
5849
+ 2024/Two[[:space:]]Heads[[:space:]]are[[:space:]]Actually[[:space:]]Better[[:space:]]than[[:space:]]One_[[:space:]]Towards[[:space:]]Better[[:space:]]Adversarial[[:space:]]Robustness[[:space:]]via[[:space:]]Transduction[[:space:]]and[[:space:]]Rejection/0173c169-7e01-4e5b-9a06-b922136854aa_origin.pdf filter=lfs diff=lfs merge=lfs -text
5850
+ 2024/Two[[:space:]]Stones[[:space:]]Hit[[:space:]]One[[:space:]]Bird_[[:space:]]Bilevel[[:space:]]Positional[[:space:]]Encoding[[:space:]]for[[:space:]]Better[[:space:]]Length[[:space:]]Extrapolation/972b6a08-ba66-40e7-ae46-e0dff2c55e93_origin.pdf filter=lfs diff=lfs merge=lfs -text
5851
+ 2024/Two[[:space:]]Tales[[:space:]]of[[:space:]]Single-Phase[[:space:]]Contrastive[[:space:]]Hebbian[[:space:]]Learning/d3e25109-4903-45cf-85fd-050368b6853a_origin.pdf filter=lfs diff=lfs merge=lfs -text
5852
+ 2024/Two-Stage[[:space:]]Shadow[[:space:]]Inclusion[[:space:]]Estimation_[[:space:]]An[[:space:]]IV[[:space:]]Approach[[:space:]]for[[:space:]]Causal[[:space:]]Inference[[:space:]]under[[:space:]]Latent[[:space:]]Confounding[[:space:]]and[[:space:]]Collider[[:space:]]Bias/b509e39c-7287-4050-b759-3172f9e47a1f_origin.pdf filter=lfs diff=lfs merge=lfs -text
5853
+ 2024/Two-sided[[:space:]]Competing[[:space:]]Matching[[:space:]]Recommendation[[:space:]]Markets[[:space:]]With[[:space:]]Quota[[:space:]]and[[:space:]]Complementary[[:space:]]Preferences[[:space:]]Constraints/1c9dbd4d-634a-4924-909d-a95185d005a6_origin.pdf filter=lfs diff=lfs merge=lfs -text
5854
+ 2024/Two-timescale[[:space:]]Derivative[[:space:]]Free[[:space:]]Optimization[[:space:]]for[[:space:]]Performative[[:space:]]Prediction[[:space:]]with[[:space:]]Markovian[[:space:]]Data/bddc7e4c-c34d-4edb-9bcc-d271c32faf37_origin.pdf filter=lfs diff=lfs merge=lfs -text
5855
+ 2024/UGrid_[[:space:]]An[[:space:]]Efficient-And-Rigorous[[:space:]]Neural[[:space:]]Multigrid[[:space:]]Solver[[:space:]]for[[:space:]]Linear[[:space:]]PDEs/8d283ef5-8387-4d1e-abf6-925e7eba3acc_origin.pdf filter=lfs diff=lfs merge=lfs -text
5856
+ 2024/ULAREF_[[:space:]]A[[:space:]]Unified[[:space:]]Label[[:space:]]Refinement[[:space:]]Framework[[:space:]]for[[:space:]]Learning[[:space:]]with[[:space:]]Inaccurate[[:space:]]Supervision/c5ed9213-56d5-4d45-84ed-b741e4958b09_origin.pdf filter=lfs diff=lfs merge=lfs -text
5857
+ 2024/ULTRAFEEDBACK_[[:space:]]Boosting[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Scaled[[:space:]]AI[[:space:]]Feedback/21073954-9858-4eb6-99c9-a9b4ba71d2e5_origin.pdf filter=lfs diff=lfs merge=lfs -text
5858
+ 2024/UP2ME_[[:space:]]Univariate[[:space:]]Pre-training[[:space:]]to[[:space:]]Multivariate[[:space:]]Fine-tuning[[:space:]]as[[:space:]]a[[:space:]]General-purpose[[:space:]]Framework[[:space:]]for[[:space:]]Multivariate[[:space:]]Time[[:space:]]Series[[:space:]]Analysis/f8275b69-df54-40a5-b1f9-cc972f5dfdeb_origin.pdf filter=lfs diff=lfs merge=lfs -text
5859
+ 2024/UPAM_[[:space:]]Unified[[:space:]]Prompt[[:space:]]Attack[[:space:]]in[[:space:]]Text-to-Image[[:space:]]Generation[[:space:]]Models[[:space:]]Against[[:space:]]Both[[:space:]]Textual[[:space:]]Filters[[:space:]]and[[:space:]]Visual[[:space:]]Checkers/d5e9ae99-5648-4a7f-a79b-a961792e9047_origin.pdf filter=lfs diff=lfs merge=lfs -text
5860
+ 2024/UPOCR_[[:space:]]Towards[[:space:]]Unified[[:space:]]Pixel-Level[[:space:]]OCR[[:space:]]Interface/b54dba54-a3c8-4319-9a25-6b31c1215d5d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5861
+ 2024/USTAD_[[:space:]]Unified[[:space:]]Single-model[[:space:]]Training[[:space:]]Achieving[[:space:]]Diverse[[:space:]]Scores[[:space:]]for[[:space:]]Information[[:space:]]Retrieval/2e55ea22-3818-461c-990f-ba06ef9bc984_origin.pdf filter=lfs diff=lfs merge=lfs -text
5862
+ 2024/Unbiased[[:space:]]Multi-Label[[:space:]]Learning[[:space:]]from[[:space:]]Crowdsourced[[:space:]]Annotations/c7b3f325-e83e-4bc0-b1ef-823e7930a171_origin.pdf filter=lfs diff=lfs merge=lfs -text
5863
+ 2024/Uncertainty[[:space:]]Estimation[[:space:]]by[[:space:]]Density[[:space:]]Aware[[:space:]]Evidential[[:space:]]Deep[[:space:]]Learning/264b9a02-dc64-482d-988f-2ce940f9ab88_origin.pdf filter=lfs diff=lfs merge=lfs -text
5864
+ 2024/Uncertainty[[:space:]]for[[:space:]]Active[[:space:]]Learning[[:space:]]on[[:space:]]Graphs/e3a5e751-d949-49c4-86fc-5fa4e50cfb03_origin.pdf filter=lfs diff=lfs merge=lfs -text
5865
+ 2024/Uncertainty-Aware[[:space:]]Reward-Free[[:space:]]Exploration[[:space:]]with[[:space:]]General[[:space:]]Function[[:space:]]Approximation/01487138-df78-435c-935c-b71baa398f85_origin.pdf filter=lfs diff=lfs merge=lfs -text
5866
+ 2024/Understanding[[:space:]]Adam[[:space:]]Optimizer[[:space:]]via[[:space:]]Online[[:space:]]Learning[[:space:]]of[[:space:]]Updates_[[:space:]]Adam[[:space:]]is[[:space:]]FTRL[[:space:]]in[[:space:]]Disguise/b2ddba71-2c42-4d70-bb9f-140b3b95e087_origin.pdf filter=lfs diff=lfs merge=lfs -text
5867
+ 2024/Understanding[[:space:]]Diffusion[[:space:]]Models[[:space:]]by[[:space:]]Feynman’s[[:space:]]Path[[:space:]]Integral/75208453-2bff-46a3-bbf4-d7d71bf50b69_origin.pdf filter=lfs diff=lfs merge=lfs -text
5868
+ 2024/Understanding[[:space:]]Finetuning[[:space:]]for[[:space:]]Factual[[:space:]]Knowledge[[:space:]]Extraction/8dfbca3f-75b3-4166-a185-32e90fdfcdbf_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/693a1024-85f7-4bd1-a3fd-638c3aa883b5_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e445066595b247265ffd3537eb234fc86e15566d707fe8fdeaf1708a7099e516
3
+ size 2497375
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4123cf73fe65a5c5a9c8867df74116282460e4bef591b118ee358ca2ee64d4ec
3
+ size 1032698
2024/Towards Understanding Inductive Bias in Transformers_ A View From Infinity/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/5cc8705b-275f-4f79-a2ae-2bf555c0318d_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:3149cab86c55c87b52403f0313ab8e4ab6ba091fdcd8f26db47bac8c4681925b
3
+ size 1151191
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f68e64ef611735738057500f640514ad76fe6c30c357d9acd5d99dd2f5dc33cc
3
+ size 1528057
2024/Towards Understanding the Word Sensitivity of Attention Layers_ A Study via Random Features/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/3c512ec3-f5df-4f99-8097-ccc3d99e7f5f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8be96f9aedb52935e03b66359c8be4448897142e46c82023e39717c4743c530
3
+ size 7103604
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/full.md ADDED
@@ -0,0 +1,383 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards Unified Multi-granularity Text Detection with Interactive Attention
2
+
3
+ Xingyu Wan $^{1}$ Chengquan Zhang $^{†,1}$ Pengyuan Lyu $^{1}$ Sen Fan $^{1}$ Zihan Ni $^{1}$ Kun Yao $^{1}$ Errui Ding $^{1}$ Jingdong Wang $^{1}$
4
+
5
+ # Abstract
6
+
7
+ Existing OCR engines or document image analysis systems typically rely on training separate models for text detection in varying scenarios and granularities, leading to significant computational complexity and resource demands. In this paper, we introduce "Detect Any Text" (DAT), an advanced paradigm that seamlessly unifies scene text detection, layout analysis, and document page detection into a cohesive, end-to-end model. This design enables DAT to efficiently manage text instances at different granularities, including word, line, paragraph and page. A pivotal innovation in DAT is the across-granularity interactive attention module, which significantly enhances the representation learning of text instances at varying granularities by correlating structural information across different text queries. As a result, it enables the model to achieve mutually beneficial detection performances across multiple text granularities. Additionally, a prompt-based segmentation module refines detection outcomes for texts of arbitrary curvature and complex layouts, thereby improving DAT's accuracy and expanding its real-world applicability. Experimental results demonstrate that DAT achieves state-of-the-art performances across a variety of text-related benchmarks, including multi-oriented/arbitrarily-shaped scene text detection, document layout analysis and page detection tasks.
8
+
9
+ # 1. Introduction
10
+
11
+ Text detection serves as the cornerstone for parsing and understanding the content of texts in natural scenes and electronic documents. Existing document image analysis systems typically categorize text-related detection tasks into
12
+
13
+ <zhangchengquan@baidu.com>.
14
+
15
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
16
+
17
+ ![](images/b27072cd69418e00b3f28f781f1faf3010f3d849453ff82927c1eb2c1c5be344.jpg)
18
+
19
+ ![](images/6f9617058831698154fece2e8abff2090a1785a107c3192cf268272cfd3a5839.jpg)
20
+
21
+ ![](images/21aed20c863d2512b5e3845893d058583bf9015a00440d2097245fdcc5ebc9dc.jpg)
22
+
23
+ ![](images/9d00d69e1319337a6566144d59999ce50942ba847ec497e04b756bf113af3fc6.jpg)
24
+ Figure 1. Illustration of the structural correlations among multi-granularity text instances, i.e., word(annotated with yellow polygons), text-line(annotated with green polygons), paragraph(annotated with brown polygons) and page(annotated with magenta contours). The blurred small text instances are ignored.
25
+
26
+ ![](images/70a307db57a4fa92f0df5f755714ee68fc16b727bd8bf8b9c689c53614a6fc54.jpg)
27
+
28
+ ![](images/e4a23b6882ebefb415e068e83d664b8ff99be88ab2e05411d3bcc15e9ae2e47f.jpg)
29
+
30
+ separate modules, such as scene text detection, document layout analysis, and document page detection. Within this context, scene text detection focuses on localizing individual text instances, which may be multi-oriented (Karatzas et al., 2015; Yao et al., 2012) or arbitrarily-shaped (Ch'ng et al., 2020; Liu et al., 2019), and primarily involves detecting elements at the word-level or text line-level. Document layout analysis delves into examining geometric structures at the paragraph-level. It involves classifying fine-grained categories within these structures, but does not extend to analyzing their sub-level elements. Document page detection addresses the identification of the most salient page body in natural scenes, typically utilizing image segmentation techniques (Chen et al., 2018; Kirillov et al., 2023).
31
+
32
+ To achieve state-of-the-art (SOTA) results in the aforementioned tasks, current methods necessitate training separate models for each task using diverse datasets, which leads to considerable computational complexity and resource demands. Moreover, while these tasks involve representation learning at varying text granularities, there is often a lack of attention to the intrinsic correlations among these multi-granularity text instances, as illustrated in Figure 1.
33
+
34
+ HierText (Long et al., 2022) is the first to propose the unified framework for scene text detection and layout analysis, claiming that such a combination can benefit both tasks. However, it has two limitations: (1) It does not fully explore the intrinsic correlations of multi-granularity texts during representation learning. The framework primarily relies on word- or line-based methods for paragraph construction through online clustering, this bottom-up unidirectional approach neglects the potential influence of paragraph-level representations on sub-level elements. (2) The training methodology suffers from limited generalizability due to its reliance on a cascading bottom-up design. This design necessitates ground-truth labeling at all text granularities for each training sample, which restricts its applicability to other prevalent datasets.
35
+
36
+ To overcome these limitations, we introduce DAT, a unified multi-granularity text detection paradigm for detecting text instances at multiple granularities. Unlike the bottom-up, cascaded framework of HierText, DAT incorporates an interactive attention module within its Transformer decoder. This module facilitates the transmission of learned query embeddings across adjacent granularities during representation learning. In order to enable parallel training using datasets with incomplete-granularity annotations, we design a multi-granularity detection framework with a mixed-granularity training strategy. Additionally, to facilitate arbitrarily-shaped text localization and accurate document page segmentation, we follow SAM (Kirillov et al., 2023) and introduce a prompt-based mask decoder to perform foreground-background segmentation of the multi-granularity text instances.
37
+
38
+ A key feature of DAT is across-granularity representation learning within the proposed interactive attention module. This module effectively correlates the structural information among text queries of different granularities, enriching the understanding and integration of textual instance representations from both bottom-up and top-down perspectives. This attention mechanism not only elevates the accuracy in text detection but also allows for a more nuanced analysis of texts, regardless of their complexity or format. This innovative use of interactive attention significantly enhances the versatility and effectiveness of DAT, making it suitable for a wide range of text detection and understanding scenarios.
39
+
40
+ Our contributions can be summarized as follows: (1) We propose an innovative interactive across-granularity attention module tailored for the representation learning of text instances across varying granularities. (2) We design a multi-granularity text detection framework with a mixed-granularity training strategy, which addresses the limitation of previous methods that required full annotations at all text levels. The resulted model substantially improves detection performances across all text granularities, and out
41
+
42
+ performs other SOTA single-task models in text detection benchmarks across multiple granularities. (3) We introduce a prompt-based mask decoder to perform fine-grained text segmentation, which significantly improves the detection performances of arbitrarily-shaped texts, complex layouts and page bodies.
43
+
44
+ # 2. Related Works
45
+
46
+ # 2.1. Text Detection
47
+
48
+ Scene Text Detection. Scene text detection has evolved considerably, primarily divided into two categories: regression-based (or point-based) and segmentation-based approaches. Regression-based methods (He et al., 2021; Liu et al., 2020; Wang et al., 2019b; Zhu et al., 2021b; Ye et al., 2023) directly regress bounding boxes or polygon points around the text regions, demonstrating their efficiency in detecting texts of varying complexity. To enhance the detection accuracy of texts with arbitrary curvature in complex scenes, the number of regressed points are usually augmented in this line of works. Segmentation-based methods (Liao et al., 2020; 2022; Tian et al., 2019; Wang et al., 2019a; Xie et al., 2019; Qin et al., 2023; Wang et al., 2020a,b) frame text detection as a segmentation problem at different levels, e.g., pixel level (Liao et al., 2020; 2022; Tian et al., 2019; Wang et al., 2019a; Xie et al., 2019; Qin et al., 2023), segment level (Baek et al., 2019; Tang et al., 2019), and contour level (Wang et al., 2020a,b), which usually involve grouping algorithms as post-processing stages. This line of works excels at delineating arbitrarily-shaped text by analyzing fine details of contours. Datasets for scene text detection tasks are typically annotated at the word or text line level granularity.
49
+
50
+ Document Layout Analysis. Recent advancements in document layout analysis are marked by the development of comprehensive datasets. Notable examples include PubLayNet (Zhong et al., 2019), DocBank (Li et al., 2020), and DocLayNet (Pfitzmann et al., 2022), which offer diverse annotations covering a range of documents from magazines to technical papers. M6Doc (Cheng et al., 2023) is the first dataset to include Chinese examples and blend both real-world and born-digital files, presenting the most fine-grained categories for layout analysis. Therefore, we use M6Doc to validate the effectiveness of our model in document layout analysis. The annotation granularity of these datasets is at the paragraph level.
51
+
52
+ Additionally, HierText (Long et al., 2022) first proposed a unified framework for scene text detection and layout analysis, claiming that such a combination can simultaneously benefit both tasks. However, due to insufficient representation learning strategy and cascading bottom-up design, its applicability remains confined to specific dataset and
53
+
54
+ scenarios.
55
+
56
+ Document Page Detection. The objective of document page detection (or page frame detection) is to accurately capture the clean and actual contour regions of text page in natural scenes or scanned documents. Traditional approaches (Shafait et al., 2007; Stamatopoulos et al., 2010; Shafait et al., 2008; Reza et al., 2019) primarily utilize detection-based strategies, which involve identifying text regions such as text lines and subsequently employing post-processing techniques to amalgamate these regions into unified page areas. Modern document image dewarping methods (Das et al., 2019; Xie et al., 2021; Ma et al., 2022; Xue et al., 2022) based on deep-learning typically employ image segmentation techniques (Chen et al., 2018; Kirillov et al., 2023) to extract the accurate edges of document pages and exclude background information, followed by subsequent rectification processes. This page segmentation is performed on commonly used document dewarping datasets, such as DIW (Ma et al., 2022) and Doc3D (Das et al., 2019), which are annotated at the page level.
57
+
58
+ # 2.2. Transformer-based Object Detection
59
+
60
+ Recent advancements in text detection have been significantly influenced by the evolution of Transformer-based object detection algorithms. A pivotal development in this field was marked by DETR (Carion et al., 2020), which introduced a novel one-to-one label assignment strategy and eliminated the need for manually designed components like non-maximum suppression (NMS). Subsequent methods have delved deeper into the evolution of decoder queries within DETR (Carion et al., 2020). Deformable DETR (Zhu et al., 2021a) proposed a deformable attention module that focuses on specific sampling points around a reference point. DN-DETR (Li et al., 2022) introduced a denoising training method by bringing noisy annotations and boxes to the decoder. DINO (Zhang et al., 2022) advanced this field further by introducing mixed query selection and contrastive denoising modules. Most recently, Group-DETR (Chen et al., 2023) proposed to learn group-wise object queries for one-to-many label assignment, enhancing both detection accuracy and training efficiency.
61
+
62
+ Different from Group-DETR (Chen et al., 2023), our proposed DAT model adopts multiple groups of object queries to enable parallel training for multi-granularity text detection, and to facilitate the correlation of intrinsic structural information across different text granularities. In the DAT decoder, each group of object queries is distinctly defined by text instances at varying granularities, including word, line, paragraph and page.
63
+
64
+ # 3. Method
65
+
66
+ # 3.1. Preliminaries
67
+
68
+ We frame multi-granularity text detection task as two hierarchical branches, i.e., text detection (DET) and text segmentation (SEG), as demonstrated in Figure 2. Given an input image $\mathbf{I} \in \mathbb{R}^{3 \times H \times W}$ , the output of DET branch is defined as $\mathbf{Y}^{DET} = \{(b_j, c_j)\}_{j=1}^n$ , where $b_j \in \mathbb{R}^4$ denotes the polygon points coordinates of $j$ -th located text instance, and $c_j \in \mathcal{C}^{DET}$ denotes the corresponding assigned class label. Here, the category vocabulary $\mathcal{C}^{DET} = \mathcal{C}^{word} + \mathcal{C}^{line} + \mathcal{C}^{para} + \mathcal{C}^{page}$ is composed of four granularity levels. Specifically, $\mathcal{C}^{para}$ denotes a multiclass vocabulary, while $\mathcal{C}^{word}$ , $\mathcal{C}^{line}$ , and $\mathcal{C}^{page}$ represent binary classifications. The output of SEG branch is defined as $\mathbf{Y}^{SEG} = \{m_j\}_{j=1}^n$ , where $m_j \in \mathbb{R}^{1 \times H \times W}$ denotes the predicted mask of $j$ -th detected text instance. The forward propagation for DET ans SEG branches are formulated as follows:
69
+
70
+ $$
71
+ \mathbf {Y} ^ {D E T} = f _ {\mathcal {H}} \left(f _ {d e c} \left(f _ {e n c} (\mathbf {F}) | \mathbf {A}, \mathbf {Q}\right)\right) \tag {1}
72
+ $$
73
+
74
+ $$
75
+ \mathbf {Y} ^ {S E G} = f _ {\mathcal {M}} \left(f _ {f p n} (\mathbf {F}), \mathbf {Y} ^ {D E T}\right) \tag {2}
76
+ $$
77
+
78
+ For DET branch in Eq.(1), the Transformer encoder $f_{enc}(\cdot)$ first aggregates the multi-scale image features $\mathbf{F}$ using multi-head self-attention, and the Transformer decoder $f_{dec}(\cdot)$ takes the aggregated image embedding, attention mask $\mathbf{A}$ and group queries $\mathbf{Q}$ as inputs to conduct interactive feature learning and global reasoning about text instances. The output $\mathbf{Y}^{DET}$ is obtained through a multi-task detection head $f_{\mathcal{H}}(\cdot)$ for each granularity. For SEG branch in Eq.(2), we adopt a FPN network $f_{fpn}(\cdot)$ to obtain a fused image feature from $\mathbf{F}$ . The task-agnostic mask decoder $f_{\mathcal{M}(\cdot)}$ takes the fused image feature and detection output $\mathbf{Y}^{DET}$ as inputs to conduct detection-conditioned image segmentation.
79
+
80
+ # 3.2. Multi-granularity Detection Framework
81
+
82
+ We employ the advanced Transformer-based object detection algorithm DINO (Zhang et al., 2022) to construct our text detection framework. To enable parallel training and inference for multi-granularity text instances, we initialize a set of learnable query embeddings for each granularity of text instance separately, forming group queries $\mathbf{Q} = \{(\mathbf{Q}_k^{word},\mathbf{Q}_k^{line},\mathbf{Q}_k^{para},\mathbf{Q}_k^{page})\}_{k = 1}^{N_q}$ that serve as inputs to the Transformer decoder as in Eq.(1). Here $N_{q}$ is the query number of each group, which is same for all text granularities. As in Figure 2, each layer of Transformer decoder is composed of three components: 1) group-wise self-attention module with non-shared parameters for learning text queries at each granularity, 2) an interactive across-granularity attention module for correlating the intrinsic structural information between different text queries (introduced in 3.3), 3) a parameter-shared cross-attention module and feed-forward
83
+
84
+ ![](images/dc642730c2f4a3e74b35db7a9d03a8b57bdb26f9c43178a7309f255df3625ca0.jpg)
85
+ Figure 2. Network structure of Detect Any Text (DAT). "DET" illustrates the multi-granularity detection framework with a single layer of Transformer decoder network, where the residual connection and norm layers are omitted for simplicity. "SEG" illustrates the model pipeline of prompt-based segmentation module.
86
+
87
+ network (FFN) for global reasoning about text instances at each text granularity. Additionally, a group-wise multi-task detection head $f_{\mathcal{H}} = \{f_{\mathcal{H}}^{word}, f_{\mathcal{H}}^{line}, f_{\mathcal{H}}^{para}, f_{\mathcal{H}}^{page}\}$ is added to the FFN. Here $f_{\mathcal{H}}$ for each granularity is composed of a box regression head, a box classification head and a polygon regression head, in which the polygon regression head is only added to the last layer of Transformer decoder for efficiency.
88
+
89
+ Mixed-granularity Training. The training target for optimizing multi-granularity text detection task is defined as follow:
90
+
91
+ $$
92
+ \mathcal {L} ^ {D E T} = \sum_ {t = 1} ^ {4} \left(\omega_ {t} \times \mathcal {L} _ {t} \left(\mathbf {Y} _ {t} ^ {D E T}, \hat {\mathbf {Y}} _ {t} ^ {D E T}\right)\right) \tag {3}
93
+ $$
94
+
95
+ The subscript $t$ in Eq.(3) refers to four different tasks of optimizing word, line, paragraph, page granularities. $\mathbf{Y}_t^{DET}$ is the output prediction for granularity $t$ , and $\hat{\mathbf{Y}}_t^{DET}$ is the corresponding training label generated from ground-truth(GT). The loss function of each granularity is composed of $l_{1}$ loss for polygon regression, $l_{1}$ and GIoU (Rezatofighi et al., 2019) losses for box regression, and focal loss (Lin et al., 2017) for classification. The loss weights $\omega_{t}$ for multi-task
96
+
97
+ learning are defined as follow:
98
+
99
+ $$
100
+ \omega_ {t} = \left\{ \begin{array}{l l} 0, & \text {i f} \hat {N} _ {t} = 0; \\ 1, & \text {i f} \hat {N} _ {t} = 1 \text {a n d} \sum_ {t = 1} ^ {4} \hat {N} _ {t} = 1; \\ \frac {1}{\sum_ {t = 1} ^ {4} \hat {N} _ {t}}, & \text {i f} \hat {N} _ {t} = 1 \text {a n d} \sum_ {t = 1} ^ {4} \hat {N} _ {t} > 1. \end{array} \right. \tag {4}
101
+ $$
102
+
103
+ Here $\hat{N}_t$ is a binary indicator $(0/1)$ representing whether the label of granularity $t$ is annotated in the GT. It is worth mentioning that the loss weights $\omega_t$ for each text granularity are dynamically adjusted within each training batch.
104
+
105
+ Discussion. Such framework design leverages the power of parallel training on diverse datasets, even those with limited annotation granularities such as single-granularity annotations or incomplete labeling schemes. Notably, the resulting model generates multi-granularity text detection outputs in one-forward-propagation, leading to significantly improved efficiency in text-related systems. Moreover, our model is capable of generating high-quality multi-granularity pseudo labels for incomplete-granularity annotated datasets. The detailed results of generated pseudo labels are present in Sec 4.4.
106
+
107
+ # 3.3. Across-granularity Representation Learning with Interactive Attention Module
108
+
109
+ As shown in Figure 1, text instances in natural scenes or document images are normally (but not necessarily) correlated to each other structurally among different granularities. Most existing approaches overlooked the correlation of these intrinsic linked multi-level texts, while we argue that such intrinsic correlations can be useful to facilitate a deeper understanding and integration of textual instance representations. Motivated by this, we introduce an across-granularity interactive attention module to text detection decoder, facilitating the transmission of learned query embeddings across adjacent granularities during representation learning. As shown in Figure 3, after group-wise self-attention for each level of query embeddings, we concatenate them to form a global query embedding $\mathbf{Q}_g\in \mathbb{R}^{4N_q\times c}$ , here $c$ is the embedding dimensions for each query. We employ a global attention mask $\mathbf{A}$ with interaction factor $\mathcal{I}$ to conduct across-granularity self-attention for global query embedding $\mathbf{Q}_g$ . The attention mask $\mathbf{A}$ is a binary matrix with a shape of $4N_{q}\times 4N_{q}$ (here we omit the batch size and numbers of attention heads for simplicity). In this layer of global self-attention, the interactions between query embeddings of different granularities depend on the weight parameters at corresponding positions in the attention mask $\mathbf{A}$ . When $\mathcal{I} = 1$ , the global query embedding is enabled to interactive across different levels of query embeddings only in adjacent granularities, i.e., the interactions of word-to-line, line-to-para, para-to-page from bottom-up, and pageto-para, para-to-line, line-to-word from top-down. When $\mathcal{I}$ is increased to 2 and 3, more extensive cross-granularity interactions are allowed during global self-attention. After this interactive across-granularity attention computation, we extract each group of query embeddings from the corresponding positions of global query embedding $\mathbf{Q}_g$ to obtain the updated $\mathbf{Q} = \left\{\left(\mathbf{Q}_k^{word},\mathbf{Q}_k^{line},\mathbf{Q}_k^{para},\mathbf{Q}_k^{page}\right)\right\}_{k = 1}^{N_q}$ for the subsequent cross-attention.
110
+
111
+ # 3.4. Prompt-based Segmentation Module
112
+
113
+ To address the problem of arbitrarily-shaped text localization and accurate document page segmentation, we introduce a hierarchical prompt-based segmentation module to perform foreground-background segmentation of the multi-granularity text instances. As illustrated in Figure 2, the learnable parameters for segmentation module is composed of a FPN layer for extracting a fused image feature, a Prompt Encoder for representing multi-granularity polygons from detection module, and a Mask Decoder for generating fine-grained masks of given text regions. Following SAM (Kirillov et al., 2023), we initialize a group of learnable embeddings to sum with the positional encodings of each polygon coordinates for encoding multi-granularity polygons within
114
+
115
+ ![](images/f80f1d1d095ce5168274b9aebeb251b26bc6d6d277c0fbff6a5f1aa8bcf0a81c.jpg)
116
+ Figure 3. Illustration of across-granularity representation learning with interactive attention module (interaction factor $\mathcal{I} = 1$ ).
117
+
118
+ Prompt Encoder. The Mask Decoder includes blocks of prompt self-attention, two-way cross-attention, up-sampling, and MLP modules.
119
+
120
+ The introduced mask decoder can perform more fine-grained text contour segmentation by using the multi-granularity detection results as prompts, which can significantly improve the detection of curved and arbitrarily-shaped texts, as well as the segmentation of complex layouts and page bodies.
121
+
122
+ The training target for optimizing segmentation module is a linear combination of mean-square-error(MSE) and dice losses (Milletari et al., 2016) for mask prediction and MSE loss for intersection-over-union(IoU) prediction:
123
+
124
+ $$
125
+ \begin{array}{l} \mathcal {L} ^ {S E G} = \mathfrak {s} \times \mathcal {L} _ {m s e} (\mathbf {Y} ^ {S E G}, \hat {\mathbf {Y}} ^ {S E G}) \\ + \mathcal {L} _ {d i c e} (\mathbf {Y} ^ {S E G}, \hat {\mathbf {Y}} ^ {S E G}) \\ + \mathcal {L} _ {i o u} \left(\mathbf {Y} ^ {S E G}, \hat {\mathbf {Y}} ^ {S E G}\right) \tag {5} \\ \end{array}
126
+ $$
127
+
128
+ # 4. Experiments
129
+
130
+ # 4.1. Experiment Setup
131
+
132
+ Datasets and Evaluation Protocol. Our experimental framework utilized popular benchmarks corresponding to each level of text granularity. For word detection, we used the ICDAR2015 (Karatzas et al., 2015) and Total-Text (Ch'ng et al., 2020) datasets; for line detection, CTW1500 (Liu et al., 2019) and MSRA-TD500 (Yao et al.,
133
+
134
+ Table 1. Results for DAT and other SOTA models on benchmark test sets of scene text detection, layout analysis, and document page segmentation. "WORD, LINE, PARA, PAGE" indicate the word detection, text-line detection, layout analysis and page segmentation respectively. "P, R, F" stand for Precision, Recall, Fscore metrics. The best and secone-best metrics are highlighted in bold and blue.
135
+
136
+ <table><tr><td rowspan="3">METHOD</td><td colspan="6">WORD</td><td colspan="6">LINE</td><td>PARA</td><td>PAGE</td></tr><tr><td colspan="3">ICDAR2015</td><td colspan="3">TOTAL-TEXT</td><td colspan="3">CTW1500</td><td colspan="3">MSRA-TD500</td><td>M6DOC</td><td>DIW</td></tr><tr><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>MAP</td><td>MIOU</td></tr><tr><td>SAM (KIRILLOV ET AL., 2023)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>84.1</td></tr><tr><td>DEEPLABV3+ (CHEN ET AL., 2018)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>98.61</td></tr><tr><td>M6DOC (CHENG ET AL., 2023)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>63.8</td><td>-</td></tr><tr><td>HIERTEXT (LONG ET AL., 2022)</td><td>-</td><td>-</td><td>-</td><td>85.49</td><td>90.53</td><td>87.94</td><td>84.56</td><td>87.44</td><td>85.97</td><td>88.04</td><td>87.44</td><td>87.70</td><td>-</td><td>-</td></tr><tr><td>SIR (QIN ET AL., 2023)</td><td>90.4</td><td>85.4</td><td>87.8</td><td>90.9</td><td>85.6</td><td>88.2</td><td>87.4</td><td>83.7</td><td>85.5</td><td>93.6</td><td>86.0</td><td>89.6</td><td>-</td><td>-</td></tr><tr><td>DPTEXT-DETR (YE ET AL., 2023)</td><td>-</td><td>-</td><td>-</td><td>91.8</td><td>86.4</td><td>89.0</td><td>91.7</td><td>86.2</td><td>88.8</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>UNITS (KIL ET AL., 2023)</td><td>94.0</td><td>91.0</td><td>92.5</td><td>-</td><td>-</td><td>89.8</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ESTEXTSPOTTER (HUANG ET AL., 2023)</td><td>92.5</td><td>89.6</td><td>91.0</td><td>92.0</td><td>88.1</td><td>90.0</td><td>91.5</td><td>88.6</td><td>90.0</td><td>92.9</td><td>86.3</td><td>89.5</td><td>-</td><td>-</td></tr><tr><td>DAT-DET (OURS)</td><td>90.87</td><td>94.51</td><td>92.66</td><td>93.98</td><td>88.17</td><td>90.98</td><td>89.25</td><td>89.28</td><td>89.26</td><td>95.11</td><td>86.63</td><td>90.67</td><td>-</td><td>-</td></tr><tr><td>DAT-SEG (OURS)</td><td>87.46</td><td>95.76</td><td>91.42</td><td>95.04</td><td>89.16</td><td>92.01</td><td>92.51</td><td>90.94</td><td>91.72</td><td>92.74</td><td>88.60</td><td>90.62</td><td>65.7</td><td>98.65</td></tr></table>
137
+
138
+ 2012) were employed; M6Doc (Cheng et al., 2023) facilitated our document layout analysis; and DIW (Ma et al., 2022) was the choice for page detection. Notably, IC-DAR2015 and MSRA-TD500 are multi-oriented datasets annotated with quadrilateral points, Total-Text and CTW-1500 feature arbitrarily shaped texts annotated with polygon points outlining text contours. M6Doc offers a fine-grained layout analysis with 74 categories, and DIW is recognized for document dewarping, annotated with foreground page masks. For evaluation metrics, we report Precision, Recall, and F1-Score (abbreviated as “P, R, F”) for word and line detection tasks. The mean Average Precision (mAP) metric is used for layout analysis, and mean Intersection Over Union (mIoU) is used for page segmentation tasks.
139
+
140
+ Implementation Details. We adopted the Swin Transformer Large (SwinL) (Liu et al., 2021) pretrained on ImageNet-22K (Deng et al., 2009) as our initialization backbone network. For comprehensive benchmark evaluations, we trained our DAT model on a diverse set of datasets: ICDAR2015 (Karatzas et al., 2015), Total-text (Ch'ng et al., 2020), Curved SynthText (Liu et al., 2020), ICDAR-MLT (Nayef et al., 2017), ArT (Chng et al., 2019), CTW1500 (Liu et al., 2019), MSRA-TD500 (Yao et al., 2012), M6Doc (Cheng et al., 2023), DIW (Ma et al., 2022), and Doc3d (Das et al., 2019). Notably, ICDAR-MLT and ArT are multilingual datasets, with annotations for Chinese and Japanese texts at the text-line level, and annotations for other languages at the word level. To accommodate these datasets within our DAT framework, we implemented a masking strategy. Specifically, for images annotated with Chinese or Japanese texts, we masked out texts of other languages, categorizing these images under the text-line level for training. Conversely, images devoid of these languages were categorized under the word level. Further elaboration on training settings is detailed in the Appendix.
141
+
142
+ # 4.2. Main Results
143
+
144
+ As outlined in Section 3.3, the DAT model consists of two key branches: a text detection branch (DAT-DET) and a hierarchical segmentation branch (DAT-SEG). Table 1 demonstrates that our "all-in-one" DAT model consistently outperforms single-task models, achieving SOTA performances in all text-related tasks: scene text detection, document layout analysis, and page segmentation.
145
+
146
+ Scene Text Detection. The DAT-DET model outperformed the previous SOTA methods UNITS (Kil et al., 2023) and SIR (Qin et al., 2023) on ICDAR2015 and MSRA-TD500 multi-oriented datasets. The DAT-SEG model further boosted the F-score by 2.01 and 1.72 points on TotalText and CTW-1500 datasets respectively, outperforming ETextSpotter (Huang et al., 2023). Our approach obtained the highest precision on arbitrarily shaped datasets and the highest recall on multi-oriented datasets, validating the effectiveness of our multi-granularity text detection framework. Notably, the DAT-SEG model showed a slight decrease in performance on ICDAR2015 and MSRA-TD500 datasets compared to the DAT-DET model. This is attributed to the quadrilateral-based annotations used in these datasets, which does not favor the more refined outcomes of DAT-SEG. We discuss this further with visualizations in Sec 4.4.
147
+
148
+ Document Layout Analysis. For paragraph-level document layout analysis, the DAT-SEG model significantly improved performance on M6Doc dataset (Cheng et al., 2023), currently the most fine-grained dataset with 74 categories. The model's mAP saw an increase from 63.8 to 65.7, a notable gain of 1.9 points. This improvement indicates that our model, leveraging interactive information from multiple granularities, is adept at learning more discriminative and nuanced paragraph features, enhancing its overall document layout analysis capability.
149
+
150
+ Document Page Detection. We implemented SAM (Kir
151
+
152
+ Table 2. Ablation study on impact of each text granularity. "WORD, LINE, PARA, PAGE" indicate the word detection, text-line detection, layout analysis and page detection respectively. "P, R, F" stand for Precision, Recall, Fscore metrics.
153
+
154
+ <table><tr><td rowspan="3">MODEL</td><td colspan="6">WORD</td><td colspan="6">LINE</td><td>PARA</td><td>PAGE</td></tr><tr><td colspan="3">ICDAR 15</td><td colspan="3">TOTAL-TEXT</td><td colspan="3">CTW1500</td><td colspan="3">MSRA-TD500</td><td>M6Doc</td><td>DIW</td></tr><tr><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>MAP</td><td>MIOU</td></tr><tr><td>SINGLE GRANULARITY BASELINE</td><td>72.90</td><td>91.19</td><td>81.02</td><td>89.82</td><td>89.66</td><td>89.74</td><td>81.05</td><td>80.02</td><td>80.53</td><td>91.46</td><td>83.87</td><td>87.50</td><td>62.0</td><td>98.67</td></tr><tr><td>WORD + LINE</td><td>82.37</td><td>97.16</td><td>89.15</td><td>88.29</td><td>90.97</td><td>89.61</td><td>85.73</td><td>80.48</td><td>83.02</td><td>92.78</td><td>84.95</td><td>88.69</td><td>-</td><td>-</td></tr><tr><td>WORD + LINE + PARA</td><td>88.99</td><td>94.17</td><td>91.51</td><td>91.56</td><td>90.20</td><td>90.88</td><td>88.90</td><td>88.92</td><td>88.91</td><td>94.94</td><td>86.48</td><td>90.51</td><td>67.8</td><td>-</td></tr><tr><td>WORD + LINE + PARA + PAGE (DAT)</td><td>90.87</td><td>94.51</td><td>92.66</td><td>93.98</td><td>88.17</td><td>90.98</td><td>89.25</td><td>89.28</td><td>89.26</td><td>95.11</td><td>86.63</td><td>90.67</td><td>70.5</td><td>98.65</td></tr></table>
155
+
156
+ Table 3. Analysis of different attention modules. The best results are highlighted in bold.
157
+
158
+ <table><tr><td rowspan="3">MODEL</td><td colspan="6">WORD</td><td colspan="6">LINE</td><td>PARA</td><td>PAGE</td></tr><tr><td colspan="3">ICDAR 15</td><td colspan="3">TOTAL-TEXT</td><td colspan="3">CTW1500</td><td colspan="3">MSRA-TD500</td><td>M6Doc</td><td>DIW</td></tr><tr><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>P</td><td>R</td><td>F</td><td>MAP</td><td>F@0.9</td></tr><tr><td>w/o INTERACTIVE ATTENTION</td><td>76.32</td><td>87.67</td><td>81.60</td><td>85.80</td><td>83.79</td><td>84.78</td><td>77.63</td><td>78.39</td><td>78.01</td><td>92.23</td><td>82.03</td><td>86.83</td><td>54.9</td><td>85.31</td></tr><tr><td>BOTTOM-UP ATTENTION</td><td>81.56</td><td>95.62</td><td>88.03</td><td>90.44</td><td>90.20</td><td>90.32</td><td>83.60</td><td>83.21</td><td>83.40</td><td>88.77</td><td>89.86</td><td>89.31</td><td>63.0</td><td>89.05</td></tr><tr><td>INTERACTIVE ATTENTION (I = 1)</td><td>90.88</td><td>94.51</td><td>92.66</td><td>93.98</td><td>88.17</td><td>90.98</td><td>89.25</td><td>89.28</td><td>89.26</td><td>95.11</td><td>86.63</td><td>90.67</td><td>70.5</td><td>94.15</td></tr><tr><td>INTERACTIVE ATTENTION (I = 2)</td><td>83.47</td><td>97.01</td><td>89.73</td><td>90.76</td><td>91.37</td><td>91.06</td><td>86.48</td><td>86.11</td><td>86.30</td><td>90.28</td><td>89.86</td><td>90.07</td><td>71.2</td><td>91.00</td></tr><tr><td>INTERACTIVE ATTENTION (I = 3)</td><td>76.99</td><td>89.74</td><td>82.88</td><td>86.69</td><td>84.42</td><td>85.54</td><td>75.66</td><td>79.01</td><td>77.30</td><td>89.57</td><td>84.48</td><td>86.96</td><td>61.2</td><td>87.25</td></tr></table>
159
+
160
+ illov et al., 2023) on DIW dataset with official pre-trained weights, employing its default Automatic Mask Generation configuration. The largest mask area from panoptic segmentation results was chosen as the final page segmentation outcome. In contrast, DeepLabv3+ (Chen et al., 2018) was fine-tuned on DIW and Doc3d training sets for a fair comparison. As shown in the last column of Table 1, our DAT-SEG model outperformed these algorithms on DIW dataset. This success is attributed to our robust representation learning for individual text elements and accurate page segmentation via edge features.
161
+
162
+ # 4.3. Ablation Study
163
+
164
+ # 4.3.1. IMPACT OF EACH TEXT GRANULARITY
165
+
166
+ Word + Line. Table 2 reveals that the word + line model saw an 8.13-point F-score increase at the word-level on IC-DAR2015 dataset, compared to the baseline model (Table 2 row 1). However, on Total-Text dataset, a minor decrease of 0.13-point in F-score was observed. This drop is primarily attributed to a rise in false positives due to the integration of line-level features, as indicated by a higher recall but lower precision. On CTW1500 and MSRA-TD500 datasets, the model registered F-score improvements of 2.49 and 1.19 points respectively, showcasing the efficacy of word-level features in supporting line-level detection.
167
+
168
+ Word + Line + Paragraph. As detailed in Table 2, incorporating paragraph granularity tasks led to significant enhancements across various granularity benchmarks. Notably, the word + line + para model showed a remarkable 5.89-point increase in F-score on CTW1500 dataset over the word + line model. Furthermore, on M6Doc dataset,
169
+
170
+ this model exhibited an impressive mAP improvement from 62.0 to 67.8 (+5.8), confirming our hypothesis that text line distributions are beneficial for detailed layout analysis and that layout structures can guide the localizations of words and text lines.
171
+
172
+ Word + Line + Paragraph + Page. Our full DAT model (Table 2 row 4), which includes page-level granularity, achieved the highest performance metrics in text detection tasks across word, line, and paragraph granularities. This highlights the value of page-level granularity in providing top-down guidance for sub-level text detection. On DIW dataset, the full model experienced a slight mIoU decrease from 98.67 to 98.65 compared to the baseline model, due to the relatively simpler task of page segmentation. Nevertheless, the baseline model's robust performance on this dataset already outperformed DeepLabv3+ (Chen et al., 2018) (98.61). The introduction of page detection in our full model leverages top-down feature learning at the page level, significantly enhancing sub-level text detection tasks.
173
+
174
+ # 4.3.2. ANALYSIS OF INTERACTIVE ATTENTION MODULE
175
+
176
+ Without Interactive Attention. The first row of Table 3 presents the model's performance without the interactive attention module. This model relies solely on group-wise self-attention and global cross-attention within the Transformer decoder. The evaluation results show that, while the model was trained using datasets of various granularities, it only attained sub-optimal detection outcomes. This underlines the importance of interactive attention in enhancing the model's learning capabilities for better performance.
177
+
178
+ Bottom-up Attention. Similar to HierText (Long et al.,
179
+
180
+ ![](images/abd4f9000b5f100e746cc74813ce6437d7dff861497a82dd637ea970376d0c1b.jpg)
181
+ word: Total-Text
182
+
183
+ ![](images/5a80459fccefd8c9de6cacfca7c54514cceed9049028ce73a8596e7b2faaecaa.jpg)
184
+
185
+ ![](images/c90b1f0d11c6372a6c6ac7197deab3658b5ab59dae9b45cfdb763a0eab528492.jpg)
186
+ paragraph: M6Doc
187
+
188
+ ![](images/551e97b8e461ea0611e1ddad4200d3252d98841c9657c70af828e9f5b45625f3.jpg)
189
+
190
+ ![](images/b8bc4b2f55e771bdedfca09a0fc4e82693d9fcaf0c10e5d7a1eeac12eb190c71.jpg)
191
+ page: DIW
192
+
193
+ ![](images/9c0cb9a0e7d3f1c8e7f39cb74284e0894d5e8e683845c6a32ccfac8a8af0b6d7.jpg)
194
+ line:CTW-1500
195
+ word: ICDAR-2015
196
+ Figure 4. Visualization results of DAT on each granularity of benchmark datasets. "DET" and "SEG" indicate text detection and segmentation results respectively. For multi-oriented datasets ICDAR-2015 and MSRA-TD500, the DAT-SEG model further refined detection results, particularly for curved texts. However, a slight decline in benchmark evaluation results occurred due to the quadrilateral-based annotations.
197
+
198
+ ![](images/83e96870443b4d116918799a1cc1b7ff4fc044b0cd0251489c4b6fe185463a4e.jpg)
199
+ word:MSRA-TD500
200
+
201
+ ![](images/1b740b6d6f4cfcd3065e03aa932675c6589d07cebc90aa3dbdb9bab6fd6b3cc6.jpg)
202
+
203
+ ![](images/c43598bf99c718a0f2c5794f15b991e31e6a2dc055dd410d97a467ebe6c15076.jpg)
204
+ word
205
+ Figure 5. Multi-granularity pseudo labels produced by DAT. From left to right: text detection results at the word, line and paragraph levels. Note that these datasets do not have the corresponding GT annotations for these specific granularities.
206
+
207
+ ![](images/bdcc1bf361416ff833fec227fdf41b35ecf76d3f50e429fa01caa55178dd0d38.jpg)
208
+
209
+ ![](images/659f38208709f3228046266be4eb61fe266c77f02a59dc28b411f9dcc250f90d.jpg)
210
+ line
211
+
212
+ ![](images/82f6868f56969d8cdd171bf4eeaa2a6869c5f4ad42e39b0e5bd2f02800f848df.jpg)
213
+
214
+ ![](images/5d66015c45c42c4e707505bf648cf462c105ffd3df1dcf48e9e61ef016a1e065.jpg)
215
+ paragraph
216
+
217
+ 2022), we constructed a bottom-up attention scheme to investigate the effects of unidirectional interactive attention. As shown in the second row of Table 3, incorporating bottom-up attention significantly improved text detection across all granularities compared to models without interactive attention. Notably, this approach improved the F-score on Total-Text from 87.94 to 90.32 (+2.38), and on MSRTD500 from 87.70 to 89.31 (+1.61), surpassing original HierText metrics. Unlike HierText, our method does not require hierarchical text annotations and benefits single gran
218
+
219
+ cularity detection by increasing training data volume.
220
+
221
+ Interactive Attention. We observed the highest detection performance metrics at the line and page granularities when $\mathcal{I} = 1$ as demonstrated in Table 3. Increasing $\mathcal{I}$ to 2 improved performance on Total-Text and M6Doc but resulted in a decline in other datasets such as ICDAR2015, CTW1500, and DIW, where F-scores dropped by 2.93, 2.96, and 3.15, respectively. This change indicates a trade-off between higher recall and lower precision, suggesting that $\mathcal{I} = 2$ model introduced more false positives, reducing text detection accuracy. When $\mathcal{I}$ was further increased to 3, there was a sharp drop in performance across all granularities, nearly mirroring the model without interactive attention. This implies that a completely unrestricted information interaction (no attention mask) is detrimental to feature learning across granularities due to difficulty in distinguishing relevant features from noise. Therefore, we selected $\mathcal{I} = 1$ for our experimental benchmark evaluations on public datasets.
222
+
223
+ # 4.4. Qualitative Results
224
+
225
+ Figure 4 presents the qualitative results of DAT across different text granularities. Our model shows notable detection performances in arbitrarily-shaped datasets Total-Text and CTW-1500. The model also demonstrates its proficiency in fine-grained paragraph classification on M6Doc dataset, as well as accurate page segmentation on DIW dataset. For the multi-oriented datasets ICDAR-2015 and MSRA-TD500 (the last two blocks in Figure 4, the segmentation results output by the DAT model after introducing the prompt-based segmentation module further optimize the text contours within the detected polygons, especially for curved texts. This demonstrates the effectiveness of the proposed
226
+
227
+ segmentation module for the overall multi-granularity detection framework. Thanks to the multi-granularity detection framework design and the across-granularity interactive attention module, our DAT model is capable of generating high-quality pseudo labels for incomplete-granularity annotated datasets as demonstrated in Figure 5, more detailed analyses are provided in the Appendix.
228
+
229
+ # 4.5. Discussion
230
+
231
+ Computational Cost Analysis. The number of parameters (Params) and GFLOPS of our proposed DAT-DET model are 228.29M and 394 respectively, and the complete DAT model (DET+SEG) has a Params of 284.65M and GFLOPS of 474. Our method has approximately 2 times the GFLOPS of single-task SOTA method DText-DETR (Ye et al., 2023) (GFLOPS=249), but the training/testing speeds remain competitive or even faster than SOTA methods. For instance, the training and testing FPS of our DAT-DET model are 1.4 and 3.57, respectively. In contrast, the training and testing FPS of DText-DETR (Ye et al., 2023) are 0.56 and 3.84, respectively. Moreover, our approach achieves the detection of text at four different granularities using a single unified model, with the only cost being a slight increase in GPU memory usage (31.21G). In contrast, previous SOTA methods dedicated to single-task operations would require training and testing separate models for multi-granularity tasks, essentially necessitating four times the amount of time for training and testing. These analyses not only highlight our model's superior efficiency and effectiveness but also underscore its innovation in handling multi-granularity text detection tasks within a single framework.
232
+
233
+ Limitations. The limitations of our DAT method can be summarized as follows: (1) The number of parameters and GFLOPS of our DAT model are relatively larger than previous single-task text detection models, requiring more GPU memory and a longer training cycle, but the unified framework is still more cost-effective than the sum of the three independent task models, as discussed above. (2) Our model shows a low utilization rate of multilingual training data (such as MLT and ArT). Due to the different annotation granularities of different languages in existing multilingual datasets (e.g., English annotations at the word level, Chinese at the line level), we have not yet been able to clarify whether the annotation granularity of other languages is word or line, except for Chinese and English. As a result, we have only used incomplete training samples when training the MLT set (described in Section 4.1). In the future, we will explore the possibility of unified training that includes more languages with different granularities.
234
+
235
+ # 5. Conclusion
236
+
237
+ In this paper, we introduce a novel multi-granularity text detection paradigm, termed as "DAT". Inspired by the inherent structural relationships among different text granularities in natural scenes, we propose a bi-directional interactive attention module within the text detection decoder to bolster representation learning across all granularities. Particularly, our approach is distinguished by its independence from complete granularity data annotations and the capability of parallel training of a single model for concurrent text detection tasks across word, line, paragraph, and page granularities within a unified detection framework. Our extensive experiments on public datasets reveal that DAT significantly enhances text detection performance at all levels of granularity, establishing a new benchmark for State-of-the-Art (SOTA) in multi-granularity text detection models. Additionally, we have integrated a prompt-based segmentation module to accurately localize arbitrarily-shaped texts and segment document pages. These innovative designs allow our model to outperform other SOTA single-task models across a variety of benchmarks, including scene text detection, document layout analysis, and page segmentation.
238
+
239
+ # Impact Statement
240
+
241
+ This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
242
+
243
+ # References
244
+
245
+ Baek, Y., Lee, B., Han, D., Yun, S., and Lee, H. Character region awareness for text detection. In CVPR, pp. 9365-9374, 2019.
246
+ Carion, N., Massa, F., Synnaeve, G., Usunier, N., Kirillov, A., and Zagoruyko, S. End-to-end object detection with transformers. In ECCV, pp. 213-229. Springer, 2020.
247
+ Chen, L.-C., Zhu, Y., Papandreou, G., Schroff, F., and Adam, H. Encoder-decoder with atrous separable convolution for semantic image segmentation. In ECCV, pp. 801-818, 2018.
248
+ Chen, Q., Chen, X., Wang, J., Zhang, S., Yao, K., Feng, H., Han, J., Ding, E., Zeng, G., and Wang, J. Group detr: Fast detr training with group-wise one-to-many assignment. In ICCV, pp. 6633-6642, 2023.
249
+ Cheng, H., Zhang, P., Wu, S., Zhang, J., Zhu, Q., Xie, Z., Li, J., Ding, K., and Jin, L. M6doc: A large-scale multi-format, multi-type, multi layout, multi-language, multi-annotation category dataset for modern document layout analysis. In CVPR, pp. 15138-15147, 2023.
250
+
251
+ Chng, C. K., Liu, Y., Sun, Y., Ng, C. C., Luo, C., Ni, Z., Fang, C., Zhang, S., Han, J., Ding, E., et al. Icdar2019 robust reading challenge on arbitrary-shaped text-rrc-art. In ICDAR, pp. 1571-1576. IEEE, 2019.
252
+ Ch'ng, C.-K., Chan, C. S., and Liu, C.-L. Total-text: toward orientation robustness in scene text detection. *IJDAR*, 23 (1):31-52, 2020.
253
+ Das, S., Ma, K., Shu, Z., Samaras, D., and Shilkrot, R. Dewarpnet: Single-image document unwarping with stacked 3d and 2d regression networks. In ICCV, pp. 131-140, 2019.
254
+ Deng, J., Dong, W., Socher, R., Li, L.-J., Li, K., and Fei-Fei, L. Imagenet: A large-scale hierarchical image database. In CVPR, pp. 248-255. IEEE, 2009.
255
+ He, M., Liao, M., Yang, Z., Zhong, H., Tang, J., Cheng, W., Yao, C., Wang, Y., and Bai, X. Most: A multi-oriented scene text detector with localization refinement. In CVPR, pp. 8813-8822, 2021.
256
+ Huang, M., Zhang, J., Peng, D., Lu, H., Huang, C., Liu, Y., Bai, X., and Jin, L. Estextspotter: Towards better scene text spotting with explicit synergy in transformer. In ICCV, pp. 19495-19505, 2023.
257
+ Karatzas, D., Gomez-Bigorda, L., Nicolaou, A., Ghosh, S., Bagdanov, A., Iwamura, M., Matas, J., Neumann, L., Chandrasekhar, V. R., Lu, S., et al. Icdar 2015 competition on robust reading. In ICDAR, pp. 1156-1160. IEEE, 2015.
258
+ Kil, T., Kim, S., Seo, S., Kim, Y., and Kim, D. Towards unified scene text spotting based on sequence generation. In CVPR, pp. 15223-15232, 2023.
259
+ Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A. C., Lo, W.-Y., et al. Segment anything. In ICCV, pp. 4015-4026, 2023.
260
+ Li, F., Zhang, H., Liu, S., Guo, J., Ni, L. M., and Zhang, L. Dn-detr: Accelerate detr training by introducing query denoising. In CVPR, pp. 13619-13627, 2022.
261
+ Li, M., Xu, Y., Cui, L., Huang, S., Wei, F., Li, Z., and Zhou, M. Docbank: A benchmark dataset for document layout analysis. arXiv preprint arXiv:2006.01038, 2020.
262
+ Liao, M., Wan, Z., Yao, C., Chen, K., and Bai, X. Real-time scene text detection with differentiable binarization. In AAAI, volume 34, pp. 11474-11481, 2020.
263
+ Liao, M., Zou, Z., Wan, Z., Yao, C., and Bai, X. Real-time scene text detection with differentiable binarization and adaptive scale fusion. TPAMI, 45(1):919-931, 2022.
264
+
265
+ Lin, T.-Y., Goyal, P., Girshick, R., He, K., and Dólar, P. Focal loss for dense object detection. In ICCV, pp. 2980-2988, 2017.
266
+ Liu, Y., Jin, L., Zhang, S., Luo, C., and Zhang, S. Curved scene text detection via transverse and longitudinal sequence connection. Pattern Recognition, 90:337-345, 2019.
267
+ Liu, Y., Chen, H., Shen, C., He, T., Jin, L., and Wang, L. Abcnet: Real-time scene text spotting with adaptiveBezier-curve network. In CVPR, pp. 9809-9818, 2020.
268
+ Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In ICCV, pp. 10012-10022, 2021.
269
+ Long, S., Qin, S., Panteleev, D., Bissacco, A., Fujii, Y., and Raptis, M. Towards end-to-end unified scene text detection and layout analysis. In CVPR, pp. 1049-1059, 2022.
270
+ Ma, K., Das, S., Shu, Z., and Samaras, D. Learning from documents in the wild to improve document unwarping. In ACM SIGGRAPH, pp. 1-9, 2022.
271
+ Milletari, F., Navab, N., and Ahmadi, S.-A. V-net: Fully convolutional neural networks for volumetric medical image segmentation. In 3DV, pp. 565-571. IEEE, 2016.
272
+ Nayef, N., Yin, F., Bizid, I., Choi, H., Feng, Y., Karatzas, D., Luo, Z., Pal, U., Rigaud, C., Chazalon, J., et al. Icdar2017 robust reading challenge on multi-lingual scene text detection and script identification-rrc-mlt. In ICDAR, volume 1, pp. 1454–1459. IEEE, 2017.
273
+ Pfitzmann, B., Auer, C., Dolfi, M., Nassar, A. S., and Staar, P. Doclaynet: A large human-annotated dataset for document layout segmentation. In KDD, pp. 3743-3751, 2022.
274
+ Qin, X., Lyu, P., Zhang, C., Zhou, Y., Yao, K., Zhang, P., Lin, H., and Wang, W. Towards robust real-time scene text detection: From semantic to instance representation learning. In ACM Multimedia, pp. 2025-2034, 2023.
275
+ Reza, M. M., Rakib, M. A., Bukhari, S. S., and Dengel, A. A robust page frame detection method for complex historical document images. In ICPRAM, pp. 556-564, 2019.
276
+ Rezatofighi, H., Tsoi, N., Gwak, J., Sadeghian, A., Reid, I., and Savarese, S. Generalized intersection over union: A metric and a loss for bounding box regression. In CVPR, pp. 658-666, 2019.
277
+
278
+ Shafait, F., Van Beusekom, J., Keysers, D., and Breuel, T. M. Page frame detection for marginal noise removal from scanned documents. In Image Analysis: 15th Scandinavian Conference, pp. 651-660. Springer, 2007.
279
+ Shafait, F., Van Beusekom, J., Keysers, D., and Breuel, T. M. Document cleanup using page frame detection. *IJDAR*, 11:81-96, 2008.
280
+ Stamatopoulos, N., Gatos, B., and Georgiou, T. Page frame detection for double page document images. In Proceedings of the 9th IAPR International Workshop on Document Analysis Systems, pp. 401-408, 2010.
281
+ Tang, J., Yang, Z., Wang, Y., Zheng, Q., Xu, Y., and Bai, X. Seglink++: Detecting dense and arbitrary-shaped scene text by instance-aware component grouping. Pattern recognition, 96:106954, 2019.
282
+ Tian, Z., Shu, M., Lyu, P., Li, R., Zhou, C., Shen, X., and Jia, J. Learning shape-aware embedding for scene text detection. In CVPR, pp. 4234-4243, 2019.
283
+ Wang, F., Chen, Y., Wu, F., and Li, X. Textray: Contour-based geometric modeling for arbitrary-shaped scene text detection. In ACM Multimedia, pp. 111-119, 2020a.
284
+ Wang, W., Xie, E., Song, X., Zang, Y., Wang, W., Lu, T., Yu, G., and Shen, C. Efficient and accurate arbitrary-shaped text detection with pixel aggregation network. In ICCV, pp. 8440-8449, 2019a.
285
+ Wang, X., Jiang, Y., Luo, Z., Liu, C.-L., Choi, H., and Kim, S. Arbitrary shape scene text detection with adaptive text region representation. In CVPR, pp. 6449-6458, 2019b.
286
+ Wang, Y., Xie, H., Zha, Z.-J., Xing, M., Fu, Z., and Zhang, Y. Contournet: Taking a further step toward accurate arbitrary-shaped scene text detection. In CVPR, pp. 11753-11762, 2020b.
287
+ Xie, E., Zang, Y., Shao, S., Yu, G., Yao, C., and Li, G. Scene text detection with supervised pyramid context network. In AAAI, volume 33, pp. 9038-9045, 2019.
288
+ Xie, G.-W., Yin, F., Zhang, X.-Y., and Liu, C.-L. Document dewarping with control points. In ICDAR, pp. 466-480. Springer, 2021.
289
+ Xue, C., Tian, Z., Zhan, F., Lu, S., and Bai, S. Fourier document restoration for robust document dewarping and recognition. In CVPR, pp. 4573-4582, 2022.
290
+ Yao, C., Bai, X., Liu, W., Ma, Y., and Tu, Z. Detecting texts of arbitrary orientations in natural images. In CVPR, pp. 1083-1090. IEEE, 2012.
291
+
292
+ Ye, M., Zhang, J., Zhao, S., Liu, J., Du, B., and Tao, D. Dptext-detr: Towards better scene text detection with dynamic points in transformer. In AAAI, volume 37, pp. 3241-3249, 2023.
293
+ Zhang, H., Li, F., Liu, S., Zhang, L., Su, H., Zhu, J., Ni, L. M., and Shum, H.-Y. Dino: Detr with improved denoising anchor boxes for end-to-end object detection. arXiv preprint arXiv:2203.03605, 2022.
294
+ Zhong, X., Tang, J., and Yepes, A. J. Publaynet: largest dataset ever for document layout analysis. In ICDAR, pp. 1015-1022. IEEE, 2019.
295
+ Zhu, X., Su, W., Lu, L., Li, B., Wang, X., and Dai, J. Deformable detr: Deformable transformers for end-to-end object detection. In ICLR, 2021a.
296
+ Zhu, Y., Chen, J., Liang, L., Kuang, Z., Jin, L., and Zhang, W. Fourier contour embedding for arbitrary-shaped text detection. In CVPR, pp. 3123-3131, 2021b.
297
+
298
+ # A. Training Details
299
+
300
+ Our multi-granularity text detection framework was implemented on 8 NVIDIA A100 GPUs. During the model training phase, the batch size is set to 8 (1 per single GPU). The query number $N_{q}$ of each group (Sec 3.2) is set to 900. We train our full DAT model using public datasets of all granularities, with total 120 epochs. The base learning rate is $1 \times 10^{-4}$ and reduced to $1 \times 10^{-5}$ at the 66-th epoch and $1 \times 10^{-6}$ at the 99-th epoch. For our proposed mixed-granularity training (Sec 3.2), the weight of $l_{1}$ loss is 5.0, the weight of GIoU loss is 2.0, and the weight of focal loss is 1.0. We choose AdamW with a weight decay parameter of $1 \times 10^{-4}$ as our optimizer. The number of both encoder and decoder layers is set to 6. The size of fused image feature after the FPN layer (Figure 2) is $\frac{1}{8}$ of the original input image size. We adopt multiple data augmentation strategies for training DAT-DET module including: 1) randomly flipping the image with a probability of 0.3; 2) randomly rotating the image within a range of -45 to 45 degrees with a probability of 0.5; 3) random color distortion with a probability of 0.1; 4) randomly cropping the image with a probability of 0.3; 5) randomly resizing the shorter size of input images within a range of 480 to 800 with an interval of 32, while constraining the longer size within 1333 pixels. No additional data augmentation strategies were used when training the DAT-SEG module. During the model testing phase, we uniformly resize the input images to $800 \times 1333$ in height and width.
301
+
302
+ ![](images/238ba953ba0e6c4590cb5a93692a70200dadea1796c39b02e949170fd99fd4f5.jpg)
303
+ (a)
304
+ Figure 6. Illustration of interactive attention module with different interaction factors $\mathcal{I}$ .
305
+
306
+ ![](images/c8db50027f187f8e1cf4e13cbbc7219a6c6af7c10591f5d5c84a6bbcc0ecab6e.jpg)
307
+ (b)
308
+
309
+ # B. Explanation for the interactive attention module with different interaction factors
310
+
311
+ Within our proposed multi-granularity text detection framework, the feature interactions between text queries of different granularities are facilitated through a global self-attention layer, which is guided by an attention mask $\mathbf{A}$ . This interactive can be adjusted based on the interactive factor $\mathcal{I}$ . Specifically, as illustrated in Figure 6, when $\mathcal{I} = 1$ , the global query embedding is enabled to interactive across different levels of query embeddings only in adjacent granularities, i.e., the interactions of word-to-line, line-to-para, para-to-page from bottom-up, and page-to-para, para-to-line, line-to-word from top-down. When $\mathcal{I}$ is increased to 2 and 3, more extensive cross-granularity interactions are allowed during global self-attention. Specifically, the bi-directional interactions between word-para, line-page are enabled when $\mathcal{I} = 2$ , and word-page is enabled when $\mathcal{I} = 3$ . It is worth mentioning that when $\mathcal{I} = 3$ , query embeddings of different granularities are fully connected, meaning no mask is applied to this global self-attention module.
312
+
313
+ The proposed across-granularity attention module can effectively correlate the intrinsic structural information among text queries by learning representations from other granularity of query embeddings and enabling the duplicate removal for instances. By doing so, it facilitates a deeper understanding and integration of textual instance representations from bottom-up and top-down, ranging from individual words to entire page.
314
+
315
+ # C. Qualitative results of multi-granularity pseudo labels
316
+
317
+ Our proposed multi-granularity text detection framework, equipped with a mixed-granularity training strategy, supports parallel training using datasets with incomplete-granularity annotations. More importantly, after training on multi-granularity public datasets, the resulting DAT model is capable of generating high-quality pseudo labels for various text granularities. This feature significantly enhances the model's utility and applicability, especially in scenarios where comprehensive annotations are not readily available. We provided some qualitative results of multi-granularity pseduo labels produced by our DAT-DET model as shown in Figure 7. It is worth mentioning that the Total-Text dataset is annotated at the word granularity, while the CTW-1500 and MSRA-TD500 datasets are annotated at the line granularity. Additionally, the M6Doc dataset is annotated at the paragraph granularity, the DIW and Doc3D datasets are annotated at the page granularity. Figure 7 illustrates pseudo labels of text detection branch at different text granularities: the first row shows word-level pseudo labels, the second row presents line-level pseudo labels, and the third row features paragraph-level pseudo labels. Figure 8 further visualizes the multi-granularity pseudo labels of segmentation task produced by our DAT-SEG model. Thanks to our well-designed multi-granularity detection framework and interactive cross-granularity representation learning, our model is capable of producing quite promising text detection results at the word, line, paragraph and page-level without the need for corresponding annotated data for training. It also demonstrates strong multi-granularity text detection and segmentation capabilities in complex scenarios, such as dense text lines (M6Doc) and rich texts in natural scenes (DIW & Doc3D).
318
+
319
+ Our failure cases primarily focus on blurred small text instances and extremely severe occlusions, as shown in the partial image regions of Figure 8 in our paper.
320
+
321
+ ![](images/b2e079919f32a59abad9e816a7bb48c4d0dc279a1967e63c0cbba63bc1c58324.jpg)
322
+
323
+ ![](images/0f9bd1194eb93ce246870c7682351aceca065309db57e0abf1d729f235b2ba11.jpg)
324
+
325
+ ![](images/78651a1f52f59d8f0193abdcd29de129e97648fc37d593a52a8f368d5217ec6f.jpg)
326
+
327
+ ![](images/02a6886a3c8814a3c248803fb529ffa26adea26d40636d68bf8b5f8b57453fd7.jpg)
328
+
329
+ ![](images/adb10cda5caf0fab37b23db7fc46091d18aa1cdfac90c1c0dbbe4197a05fc092.jpg)
330
+
331
+ ![](images/5670b9f1434b501bff27de68703e3d0bf1ebde09a4a1efb478191f8030725bd8.jpg)
332
+
333
+ ![](images/4aac607605b8e58432dddd636f1c7891df68c17dbb59149e6c9f53a64ef27e01.jpg)
334
+
335
+ ![](images/f5c8b294cddc7aebaeb3138be00457ab4c3800760ec215535c01de12ad268860.jpg)
336
+
337
+ ![](images/f19c5d2ba6023608f8590c7bc94e674fd9c6c7e2e9bf23a266adb95c6ec69cdf.jpg)
338
+
339
+ ![](images/06640bfaa70e3070fa95ae7b7108ce7f2e288a5a22a4e3e4aa6501449d7df392.jpg)
340
+
341
+ ![](images/5081ecf179389aaf99960cb6d3fbc471ec50f6d564218c61277e4103a1613c30.jpg)
342
+ Figure 7. Qualitative results of multi-granularity pseudo labels on public benchmarks produced by our DAT-DET model. From top to bottom: visualization results of the produced pseudo labels at word, line, paragraph levels respectively.
343
+
344
+ ![](images/d06bc08e181c0cc5eeb4dabb0b251c99a566730c67fcc9565afc253a9eceeff4.jpg)
345
+
346
+ ![](images/9ad1486a47c1751afc9f44cc4c93090aad842fbe3dacf146ab21f7a6bee21650.jpg)
347
+
348
+ ![](images/c17319d50e9b8a9d1ccd92f804d9618e83761c48932a5c09d2d728e4111b3e27.jpg)
349
+
350
+ ![](images/c9a60ad01fab20dd8406c95d3e05340366f03489f4f5f676f9d82d1fc38be2b6.jpg)
351
+
352
+ ![](images/c8910974171d03f464c1cbe21dc45132244c79d09e633d87f0d6304e2bf450d5.jpg)
353
+
354
+ ![](images/5d79ab59e4251a170bc18cab8a2dd03868f6d0f922b10e862beffec59d1347ff.jpg)
355
+
356
+ ![](images/581ed90669c73074333eaafab3e190b50c47b796c773499c42fbb54c1a5e9c76.jpg)
357
+
358
+ ![](images/9f915f578bc40ea99eddab77091de59790d24863d15514c52b0125906e4bb58d.jpg)
359
+
360
+ ![](images/0bb0937294b9f1716dd27a3d5f399b5e1565413db9d34c57310e52765488f093.jpg)
361
+
362
+ ![](images/29cfa2cead3d432734946005da48da5e4ab674ab0151849906081d06f30096ef.jpg)
363
+
364
+ ![](images/e500c86de896c4c4940abf300f9ad782437f30c4ea889baa633b256675eab1b7.jpg)
365
+
366
+ ![](images/ba877ab033dfeae24610589e24f743d5c45ee306247edca10ee6278767c44d85.jpg)
367
+
368
+ ![](images/622e4094a88a545cdb9b8ed0ab8f4c0ee0dd6ce391a42410b0f3ab0627404533.jpg)
369
+
370
+ ![](images/d43d79e31d886cf527da37de7321a18aba65e39dffce889d7205f47e06433778.jpg)
371
+
372
+ ![](images/4df17ac6fb02bad8c189c04718118abc972a8bc91eddd40f3b9b47dc7d2f7e64.jpg)
373
+
374
+ ![](images/655c8c8887e986b9b4c01b9d219635e62825229f79a49ca83ab7644c4f5314d6.jpg)
375
+
376
+ ![](images/38c64a6b30bca2f5da0b3bfe3cba9095b58f7e006e007dc8cbffd946f06080b8.jpg)
377
+ Figure 8. Qualitative results of multi-granularity pseudo labels on public benchmarks produced by our DAT-SEG model. From top to bottom: visualization results of the produced pseudo labels at word, line, paragraph, page levels respectively.
378
+
379
+ ![](images/adc45c219519b6d640f6038516d611ed778e2076608da4cc2b20eeadb4567c97.jpg)
380
+
381
+ ![](images/14cfb62fc7a4af61add56b61fd02e9d08de5476f526cf3025a47b80453f7ed1c.jpg)
382
+
383
+ ![](images/342b2b03c924502bb1dbbdc0d02e724a63e2c8f81e1e4315d1ce9ee3225412b0.jpg)
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:de471ed57b81abc2fc08873d59e70d2cdf425a2e4b42ab4812863558f4d7428e
3
+ size 1180645
2024/Towards Unified Multi-granularity Text Detection with Interactive Attention/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/3a916d98-16b4-4f28-8bd7-a0dd1c61b0e8_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8f6b7723268320211467d20f1b27542a92eb9d8ce5b442db10762b69c0ca0bd
3
+ size 1066327
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ba95d6fe124c32a968e7451b594cdd7da9237a3c0485af39df690da30bd2c46d
3
+ size 1635576
2024/Towards a Better Theoretical Understanding of Independent Subnetwork Training/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/d6771284-64d4-4a2a-91af-9d7512a2579f_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e29fb5859a6d38eae91e47f9de50f65ce8e3885ae38c51ce5ecc0a38c6fcbc85
3
+ size 9616854
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/full.md ADDED
@@ -0,0 +1,572 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards a Self-contained Data-driven Global Weather Forecasting Framework
2
+
3
+ Yi Xiao $^{12}$ Lei Bai $^{2}$ Wei Xue $^{13}$ Hao Chen $^{2}$ Kun Chen $^{24}$ Kang Chen $^{2}$ Tao Han $^{2}$ Wanli Ouyang
4
+
5
+ # Abstract
6
+
7
+ Data-driven weather forecasting models are advancing rapidly, yet they rely on initial states (i.e., analysis states) typically produced by traditional data assimilation algorithms. Four-dimensional variational assimilation (4DVar) is one of the most widely adopted data assimilation algorithms in numerical weather prediction centers; it is accurate but computationally expensive. In this paper, we aim to couple the AI forecasting model, FengWu, with 4DVar to build a self-contained data-driven global weather forecasting framework, FengWu-4DVar. To achieve this, we propose an AI-embedded 4DVar algorithm that includes three components: (1) a 4DVar objective function embedded with the FengWu forecasting model and its error representation to enhance efficiency and accuracy; (2) a spherical-harmonic-transform-based (SHT-based) approximation strategy for capturing the horizontal correlation of background error; and (3) an auto-differentiation (AD) scheme for determining the optimal analysis fields. Experimental results show that under the ERA5 simulated observational data with varying proportions and noise levels, FengWu-4DVar can generate accurate analysis fields; remarkably, it has achieved stable self-contained global weather forecasts for an entire year for the first time, demonstrating its potential for real-world applications. Additionally, our framework is approximately 100 times faster than the traditional 4DVar algorithm under similar experimental conditions, highlighting its significant computational efficiency.
8
+
9
+ $^{1}$ Department of Computer Science and Technology, Tsinghua University, Beijing, China $^{2}$ Shanghai Artificial Intelligence Laboratory, Shanghai, China $^{3}$ Qinghai University and Intelligent Computing and Application Laboratory of Qinghai Province, China $^{4}$ School of Information Science and Technology, Fudan University, Shanghai, China. Correspondence to: Wei Xue <xuewei@tsinghua.edu.cn>, Lei Bai <baisanshi@gmail.com>.
10
+
11
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
12
+
13
+ # 1. Introduction
14
+
15
+ Weather forecasting is the cornerstone of human society and profoundly impacts all aspects of our daily lives and economic activities. Accurately predicting weather conditions in advance is beneficial to various sectors, ranging from agricultural planning to renewable energy generation and disaster preparedness.
16
+
17
+ Traditional numerical weather forecasting methods rely on building partial differential equations based on physical rules and solving these equations for accurate predictions (Kalnay, 2003). However, it is difficult to accurately resolve complex physical processes like clouds and convection, which makes medium-range forecasts less accurate (Hourdin et al., 2017; Donner et al., 2011). Moreover, solving these equations is computationally expensive, leading to significant investment in supercomputers for weather forecasting (Bauer et al., 2015). In the past few years, a multitude of Artificial Intelligence (AI) weather forecasting models have emerged as a promising alternative, such as FourCastNet (Pathak et al., 2022), Pangu Weather (Bi et al., 2023), GraphCast (Lam et al., 2022), FengWu (Chen et al., 2023a), FuXi (Chen et al., 2023b), etc. These data-driven models are informed by modern neural network structures (Vaswani et al., 2017; Liu et al., 2021; Zhao et al., 2023; Wang et al., 2023), and their forecast accuracy rivals or even surpasses traditional methods like Integrated Forecasting System (IFS) developed by European Centre for Medium-Range Weather Forecasts (ECMWF). Notably, they exhibit forecasting efficiency orders of magnitude higher than that of traditional algorithms.
18
+
19
+ Despite the potential success of AI forecasting models, most previous works have overlooked a crucial component of weather forecasting systems: data assimilation. Data assimilation is a statistical technique that combines observational information with numerical models to achieve an optimal estimate of the current state (also known as the analysis state), which then serves as the initial value for predicting future states. In previous studies, the establishment of initial states is usually achieved by assimilating the forecast fields of physics-based forecasting models, as shown in Figure 1(a). However, these initial states often face issues such as inconsistency with AI forecasting models and high computational complexity, which hinder the accuracy and
20
+
21
+ ![](images/125b78141474e20a4e77b5f13e420dcc0690ef23c88581ee875e9c5dbf48dc65.jpg)
22
+
23
+ ![](images/b36330223eb1638789adf1bf303330fb78572e2fe2aa04581b7f085995a7258a.jpg)
24
+ Figure 1. (a) Previous works. The physics-based weather forecasting model is required to provide initial states. (b) Our work. The data-driven weather forecasting model can operate in a self-contained manner.
25
+
26
+ efficiency of the entire data-driven weather prediction system. The approach to resolving this issue is to couple the AI weather forecasting model with data assimilation and build a data-driven weather forecasting framework capable of realizing continuous forecasts in a self-contained manner, as shown in Figure 1(b).
27
+
28
+ Four-dimensional variational assimilation (4DVar) is one of the most popular data assimilation algorithms and has been successfully adopted in numerical weather prediction centers worldwide (Rabier et al., 1998; 2000). The main problem of 4DVar lies in its high computational cost. In the traditional 4DVar algorithm, the physics-based forecasting model is involved in its objective function to represent the so-called flow dependency (Rabier et al., 1998). Due to the high computational complexity of the physics-based model itself, the computational cost of the entire algorithm is also very high. For example, in the China Meteorological Administration, realizing 4DVar on the $1^{\circ}$ flow dependency resolution takes about 50 minutes on 256 processors of the PI-SUGON high-performance computer (Zhang et al., 2019). Therefore, directly coupling the traditional 4DVar algorithm with the AI forecasting model will greatly hinder the efficiency gain of the AI forecasting model.
29
+
30
+ Geer (2021) suggests that by introducing AI forecasting models to 4DVar as the flow dependency and solving the optimal analysis field with the aid of auto-differentiation,
31
+
32
+ it is possible to reduce the computational cost. Although this method has achieved some success on simple dynamical systems (Dong et al., 2022), several challenges remain when scaling to the real-world global weather forecasting system. First, in a high-dimensional forecasting system, the correlation of the background error is very complex, and if we follow the convention of AI data assimilation on low-dimensional systems and use the diagonal matrix to approximate the error covariance, a lot of information will be lost and the assimilation will not work (Kalnay, 2003; Fisher, 2003). Second, compared with low-dimensional dynamical systems, the errors of global AI forecasting models grow relatively quickly (Bi et al., 2023), which will greatly reduce the representative accuracy of flow dependencies in the 4DVar objective function, thereby hindering the final assimilation accuracy.
33
+
34
+ In this paper, we aim to resolve these issues and design an AI-embedded 4DVar algorithm on the global weather system. For the first time, the 4DVar algorithm is coupled with a global AI forecasting model to achieve a self-contained data-driven weather forecasting framework. We leverage three techniques to achieve this goal. First, inspired by Geer (2021), we embed the AI forecasting model into the flow dependency of 4DVar to reduce the computational cost of physics-based models. Considering that the error accumulation of AI forecasting models is relatively faster than the traditional model, we go one step further and add the error covariance term to the objective function to improve the assimilation accuracy. Second, we take advantage of the spherical harmonic transform to implement the differentiable spherical convolution for approximating horizontal correlations of the background error. Third, we utilize the auto-differentiation technique to solve the data assimilation problem and find the optimal analysis states, eliminating the need of manually coding adjoint models, which is required by the traditional 4DVar.
35
+
36
+ We conduct this research on the global AI weather forecasting model, FengWu, and couple it with AI-embedded 4DVar to implement an AI weather forecasting framework, FengWu-4DVar<sup>1</sup>. Our experiments are conducted with the FengWu forecasting model at a $1.4^{\circ}$ resolution and the observations simulated from the ERA5 reanalysis data. When the observation proportion is between $5\%$ and $15\%$ and the assimilation window is set to 6 hours, FengWu-4DVar is able to generate reasonable analysis fields and achieve stable and efficient cyclic assimilation and forecasting for at least one year. With an observation proportion of $15\%$ , the accuracy of the analysis fields is comparable to that of the 6-hour forecast of IFS. Moreover, assimilating observations in a 6-hour window can be realized in less than 30
37
+
38
+ seconds on one NVIDIA A100 GPU, 100 times faster than the traditional 4DVar on 256 processors of the PI-SUGON high-performance computer.
39
+
40
+ # 2. Fundamentals of 4DVar
41
+
42
+ Denote $\mathbf{x}_t$ the physical states and $\mathbf{y}_t$ the observations at time $t$ . Then, the 4DVar algorithm estimates the optimal physical state at time $t = 0$ by minimizing the following objective function:
43
+
44
+ $$
45
+ \begin{array}{l} J (\mathbf {x} _ {0}) = \frac {1}{2} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) ^ {\mathrm {T}} \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) \\ + \frac {1}{2} \sum_ {\tau = 0} ^ {T - 1} \left(\mathcal {H} \left(\mathbf {x} _ {\tau}\right) - \mathbf {y} _ {\tau}\right) ^ {\mathrm {T}} \mathbf {R} _ {\tau} ^ {- 1} \left(\mathcal {H} \left(\mathbf {x} _ {\tau}\right) - \mathbf {y} _ {\tau}\right) \tag {1} \\ \mathbf {x} _ {\tau} = \mathcal {M} _ {0 \rightarrow \tau} (\mathbf {x} _ {0}) \\ \end{array}
46
+ $$
47
+
48
+ The objective is to compute a maximum likelihood estimate for the initial state $\mathbf{x}_0$ of a trajectory $(\mathbf{x}_0, \ldots, \mathbf{x}_{T-1})$ evolved through a physical model $\mathcal{M}$ , given a sequence of observations $\{\mathbf{y}_{\tau}\}_{\tau=0}^{T-1}$ and a prior estimate $\mathbf{x}^b$ . We note here that the subscript $0 \to \tau$ of $\mathcal{M}$ stands for integration from time 0 to time $\tau$ . Since we only consider autonomous systems (Strogatz, 2018) in this paper, $\mathcal{M}_{0 \to \tau} = \mathcal{M}_{t \to t + \tau}$ holds for any $t$ , thus we may also rewrite it as $\mathcal{M}_{\tau}$ . The observation operator $\mathcal{H}$ maps physical states into the observation space. For example, physical fields are often modeled on a regular grid, while the positions of observation stations are typically distributed irregularly. Observation operators can map the values of the physical field at regular grid points to the positions of observation stations.
49
+
50
+ The loss function $J(\mathbf{x}_0)$ characterizes both the initial condition and the conditional distribution of observations as multivariate normal distributions. The first term incorporates a guess for the initial state $\mathbf{x}_0$ (referred to as the background field $\mathbf{x}^b$ ), where $\mathbf{B}$ is a background covariance matrix representing the uncertainty associated with this assumption. The second term incorporates the observations at different time steps, and the error variance of observations at time $\tau$ is represented by the matrix $\mathbf{R}_{\tau}$ . The flow dependency refers to the feature of the 4DVar objective that the initial state is integrated (by the forecasting model $\mathcal{M}$ ) to generate a sequence of states to evaluate its deviation from the observation sequence over the entire time interval. In Equation 1, the interval $[0, T - 1]$ is often referred to as the assimilation window (Trémolet, 2006).
51
+
52
+ Function Optimization In 4DVar, the objective function is minimized via gradient-based optimization algorithms like L-BFGS (Jorge & Stephen, 2006). The gradient of
53
+
54
+ $J(\mathbf{x}_0)$ can be formulated as
55
+
56
+ $$
57
+ \begin{array}{l} \frac {\partial J}{\partial \mathbf {x} _ {0}} = \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) \\ + \sum_ {\tau = 0} ^ {T - 1} \mathbf {M} _ {\tau \rightarrow 0} ^ {\mathrm {T}} \mathbf {H} ^ {\mathrm {T}} \mathbf {R} _ {\tau} ^ {- 1} \left(\mathcal {H} \left(\mathbf {x} _ {\tau}\right) - \mathbf {y} _ {\tau}\right), \tag {2} \\ \end{array}
58
+ $$
59
+
60
+ where $\mathbf{M}_{\tau \rightarrow 0}^{\mathrm{T}} = \left(\frac{\partial\mathcal{M}_{0\rightarrow\tau}(\mathbf{x})}{\partial\mathbf{x}}\right)^{\mathrm{T}}$ is the adjoint model (Rabier & Liu, 2003) of $\mathcal{M}_{0\rightarrow \tau}$ and $\mathbf{H} = \frac{\partial\mathcal{H}(\mathbf{x})}{\partial\mathbf{x}}$ is the linearized observation operator. In the traditional 4DVar, $\mathcal{M}$ corresponds to the physics-based forecasting model and its adjoint model $\mathbf{M}_{\tau \rightarrow 0}^{\mathrm{T}}$ is coded manually (Trémolet, 2006). Due to the high computational complexity of the forward forecasting model, the adjoint model also bears a substantial computational burden. This load is further amplified in optimization algorithms, which require multiple gradient calculations through iterative processes.
61
+
62
+ Cyclic Forecasting In operational weather forecasting centers, establishing a self-contained forecasting system is achievable through alternatively operating model forecasts and data assimilation. In the data assimilation stage, the observational data is utilized to correct the prediction field at the current moment (i.e., background field) to obtain more accurate analysis field. In the prediction stage, starting from the analysis field at the current moment, the numerical prediction model is applied to integrate to obtain the forecast field (background field) at the subsequent moment. As time goes by, new observations at the subsequent moment can be obtained, starting a new round of "analysis-prediction" cycle. This process is called cyclic forecasting.
63
+
64
+ # 3. AI-embedded 4DVar on a Global Forecasting Model
65
+
66
+ # 3.1. AI-embedded 4DVar Objective Function
67
+
68
+ The major computational cost of 4DVar lies in the calculation of $\mathcal{M}$ and its adjoint $\mathbf{M}^{\mathrm{T}}$ . Inspired by Dong et al. (2022) and Geer (2021), we substitute the physics-based forecasting model $\mathcal{M}$ in the objective function with a data driven model $\mathcal{M}^{ml}$ to reduce the computational cost of the 4DVar algorithm. Another advantage of the AI-embedded 4DVar objective function is that the flow dependencies are consistent with the AI forecasting model, which will lead to better cyclic forecasting results.
69
+
70
+ Moreover, considering that the errors of global AI forecasting models grow relatively quickly (Bi et al., 2023), the flow dependency in the objective function is inaccurate, which hinders the final assimilation accuracy. To deal with this issue, we explicitly take model error into account in the 4DVar objective function to improve assimilation accuracy. Specifically, assuming that the error of the forecasting
71
+
72
+ model for integrating $\tau$ steps follows a Gaussian distribution $\mathcal{N}(\mathbf{0},\mathbf{Q}_{\tau})$ (Howes et al., 2017) and that the observation operator is linear, i.e., $\mathcal{H}(\mathbf{x}) = \mathbf{H}\mathbf{x}$ , we can re-derive the objective function according to the Bayes' theorem. We let readers refer to the Appendix for the detailed derivation. The form of the new objective function is almost identical to the original one, except that the model error covariance matrices are added to the observation covariance matrices to give smaller confidence to the future observations. That is,
73
+
74
+ $$
75
+ \begin{array}{l} J (\mathbf {x} _ {0}) = \frac {1}{2} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) ^ {\mathrm {T}} \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) \\ + \frac {1}{2} \sum_ {\tau = 0} ^ {T - 1} \mathbf {d} _ {\tau} ^ {\mathrm {T}} \left(\mathbf {R} _ {\tau} + \mathbf {H Q} _ {\tau} \mathbf {H} ^ {\mathrm {T}}\right) ^ {- 1} \mathbf {d} _ {\tau} \tag {3} \\ \end{array}
76
+ $$
77
+
78
+ $$
79
+ \mathbf {d} _ {\tau} = \mathcal {H} \left(\mathcal {M} _ {0 \rightarrow \tau} ^ {m l} \left(\mathbf {x} _ {0}\right)\right) - \mathbf {y} _ {\tau}.
80
+ $$
81
+
82
+ # 3.2. SHT-based Horizontal Correlation Approximation
83
+
84
+ The background covariance matrix $\mathbf{B}$ describes the uncertainty of the forecasting model. In most previous works of AI data assimilation (Fablet et al., 2021; Frerix et al., 2021; Dong et al., 2022), the covariance matrix is assumed to be diagonal, that is, only the variance is taken into consideration and the correlational information is ignored. Such an assumption simplifies the algorithm implementation, yet compromises assimilation accuracy as how observations at a single point affect the estimate of its neighbourhood is not encoded into the $\mathbf{B}$ matrix. In the global weather forecasting system, the observations are sparse; therefore, it's infeasible to make such a simplification.
85
+
86
+ To address this issue, we introduce the horizontal correlation into the $\mathbf{B}$ matrix. Due to the large horizontal spacing, the vertical correlation is relatively weak and is not considered in this work. Inspired by Bannister (2008), Barker et al. (2004) and Descombes et al. (2015), instead of assuming $\mathbf{B}$ to be diagonal, we assume that $\mathbf{B}$ can be decomposed as $\mathbf{B} = \mathbf{U}\mathbf{U}^{\mathrm{T}}$ , where $\mathbf{U}$ is a sparse matrix for representing horizontal correlations. By defining the control variable $\mathbf{u}_0 = \mathbf{U}^{-1}\left(\mathbf{x}_0 - \mathbf{x}^b\right)$ , we can transform the original objective function, where $\mathbf{x}_0$ serves as the variable, into an objective function, where $\mathbf{u}_0$ is the variable:
87
+
88
+ $$
89
+ \begin{array}{l} \tilde {J} (\mathbf {u} _ {0}) = \frac {1}{2} \mathbf {u} _ {0} ^ {\mathrm {T}} \mathbf {u} _ {0} + \frac {1}{2} \sum_ {\tau = 0} ^ {T - 1} \mathbf {d} _ {\tau} ^ {\mathrm {T}} \left(\mathbf {R} _ {\tau} + \mathbf {H Q} _ {\tau} \mathbf {H} ^ {\mathrm {T}}\right) ^ {- 1} \mathbf {d} _ {\tau} \\ \mathbf {d} _ {\tau} = \mathcal {H} \left(\mathcal {M} _ {0 \rightarrow \tau} ^ {m l} \left(\mathbf {U} \mathbf {u} _ {0} + \mathbf {x} ^ {b}\right)\right) - \mathbf {y} _ {\tau}. \tag {4} \\ \end{array}
90
+ $$
91
+
92
+ The key problem lies in the calculation of $\mathbf{U}\mathbf{u}_0$ . Related works suggest that the matrix multiplication of $\mathbf{U}\mathbf{u}_0$ can be approximated by convolving $\mathbf{u}_0$ with a Gaussian distribution kernel, the parameters of which are obtained by the NMC method (Descombes et al., 2015). Since we represent the horizontal correlation on the sphere, the convolution needs to be a spherical one. According to the convolution theorem,
93
+
94
+ the convolution operation in the physical domain can be equivalently converted to the multiplication operation in the spectral domain (Driscoll & Healy, 1994). Denoting $\mathcal{F}$ the spherical harmonic transform (SHT), $\kappa$ the convolution kernel and $u$ the field to be convolved, the convolution can be achieved according to the following formula:
95
+
96
+ $$
97
+ \mathcal {F} [ \kappa \star u ] (l, m) = 2 \pi \sqrt {\frac {4 \pi}{2 l + 1}} \mathcal {F} [ u ] (l, m) \cdot \mathcal {F} [ \kappa ] (l, 0). \tag {5}
98
+ $$
99
+
100
+ In our work, the "torch-harmonics" package developed by NVIDIA is applied to efficiently implement the differentiable SHT (Bonev et al., 2023).
101
+
102
+ # 3.3. AD Scheme for Solving the Analysis Field
103
+
104
+ To optimize the 4DVar objective function, we construct a new "neural network" with $\mathbf{u}_0$ (the control variable of the analysis fields to be optimized) as the input, and use this "neural network" to calculate the "loss" $\tilde{J}(\mathbf{u}_0)$ . Noting that $\mathcal{M}^{ml}$ is a differentiable AI model and other calculations like matrix multiplication and addition are also differentiable, if we fix the parameters of the AI model $\mathcal{M}$ and regard the input $\mathbf{u}_0$ as the "parameters" of our "neural network", the back-propagation algorithm can be implemented through auto-differentiation and thereafter the gradient $\frac{\partial\tilde{J}}{\partial\mathbf{u}_0}$ can be directly obtained. With this approach, we no longer need to build the adjoint model manually, which saves substantial engineering effort. In the Appendix, we provide further explanation on the equivalence between AD and manual coding. After calculating the gradient, the optimizer packages in PyTorch can be applied to solve the function optimization problem. Different from neural network training in which a batch of samples are utilized for optimization, in AI-embedded 4DVar, only one sample is involved. Therefore, batch optimization algorithms like SGD and ADAM are not feasible for this task. Quasi-Newton optimization algorithms like L-BFGS are employed in this work instead.
105
+
106
+ # 3.4. Coupling with the Forecasting Model
107
+
108
+ Denoting $\tilde{J}\left(\cdot \mid \mathbf{x}^b,\{\mathbf{y}_{\tau}\}_{\tau = 0}^{T - 1}\right)$ the objective function with respect to observations $\{\mathbf{y}_{\tau}\}_{\tau = 0}^{T - 1}$ and the background field $\mathbf{x}^b$ , the coupling of the AI-embedded 4DVar algorithm with model forecasts is implemented as shown in Algorithm 1, where the outputs $\{\mathbf{x}_{lT}^b\}_{l = 0}^L$ and $\{\mathbf{x}_{lT}^a\}_{l = 0}^L$ represent the sequences of background fields and analysis fields, respectively.
109
+
110
+ # 4. Results
111
+
112
+ # 4.1. Experimental Setup
113
+
114
+ Forecasting Model Setup Our experiments are conducted with FengWu (Chen et al., 2023a), a data-driven global medium-range weather forecasting model. We choose this
115
+
116
+ ![](images/71f79427213f9f5121ab12f37309033152b54e88f3414843761174625943dfa1.jpg)
117
+
118
+ ![](images/f2042d11b68d42a8448b7a8127769695012695c79230fa69052148956c9a53ff.jpg)
119
+
120
+ ![](images/9d1e2cbb131ab86ec96ad69f030c2a1522345075fcbc09f9781ef672362a19e7.jpg)
121
+
122
+ ![](images/7172ba6a27eeab485468b07930bca721184d6f3dc0bfc6d2ffcb5171157adffb.jpg)
123
+
124
+ ![](images/38157c7c96d9162bc8c638647c6d2f310a89289be194e3e058d86f6295a251b3.jpg)
125
+ Figure 2. Cyclic forecasting results of FengWu-4DVar. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias. The blue lines correspond to the analysis fields ( $\mathbf{x}^a$ in Algorithm 1); the black lines correspond to the background fields ( $\mathbf{x}^b$ in Algorithm 1); the green dotted lines correspond to the average RMSE of the IFS six-hour forecast fields.
126
+
127
+ ![](images/ce4ead8dfd90482a8e1a445c8f5e8fae8c077e9bee68750e27db0da242a68182.jpg)
128
+
129
+ ![](images/cb939194acb7f1f01a7c914ce8476766e4a75de5c92137fbef54b608b30f8ea5.jpg)
130
+
131
+ ![](images/bc2df82e68d7df9d161fa9833911ec617b8dcf2a002f25006cdd12fb0d38001b.jpg)
132
+
133
+ # Algorithm 1 Cyclic Forecasting with FengWu-4DVar
134
+
135
+ input Prior estimate of the initial state $\mathbf{x}_0^b$ , AI forecasting model $\mathcal{M}^{ml}$ , observations, background covariance matrix, observation covariance matrices, window size $T$ , total steps $L$
136
+
137
+ 1: $t \gets 0$ {Initialize the time stamp}
138
+ 2: for step from 0 to $L$ do
139
+ 3: $\mathbf{u}_t^a\gets \arg \min_{\mathbf{u}}\tilde{J}\left(\mathbf{u}|\mathbf{x}_t^b,\{\mathbf{y}_{\tau}\}_{\tau = t}^{t + T - 1}\right)$ {Solve 4DVar to obtain the analysis field control variable.}
140
+ 4: $\mathbf{x}_t^a = \mathbf{U}\mathbf{u}_t^a +\mathbf{x}^b$ {Recover the analysis field.}
141
+ 5: $\mathbf{x}_{t + T}^{b}\gets \mathcal{M}_{t\to t + T}^{ml}(\mathbf{x}_{t}^{a})$ {A forecast is made to obtain the background field for the next time step. The lead time is equal to the assimilation window size.}
142
+ 6: $t\gets t + T$
143
+ 7: end for
144
+
145
+ model because it is a classic AI weather forecasting model known for its outstanding forecasting capabilities, extending beyond ten days. We simulate five atmospheric variables (each with 13 pressure levels) and four surface variables, resulting in a total of 69 predictands. In this paper, the atmospheric variables are geopotential (z), specific humidity (q), zonal component of wind (u), meridional component of wind (v), and air temperature (t); the 13 sub-variables at different vertical levels are presented by abbreviating
146
+
147
+ their short name and pressure levels (e.g., z500 denotes the geopotential height at a pressure level of $500\mathrm{hPa}$ ). The four surface variables are 2-meter temperature (t2m), 10-meter u wind component (u10), 10-meter v wind component (v10), and mean sea level pressure (mslp). The spatial resolution we test is $128 \times 256$ . We have trained two models using ERA5 dataset of year 1979-2015, including a 1-hour forecasting model $\mathcal{M}_1$ , which is embedded into the 4DVar algorithm for representing flow dependencies, and a 6-hour forecasting model $\mathcal{M}_6$ , which is employed for making forecasts.
148
+
149
+ Observation Setup In this study, all observations are simulated observations generated from the ERA5 reanalysis dataset (Hersbach et al., 2020). Two modifications are made to the reanalysis fields to make them as close as possible to the real-world observations. First, we introduce a random mask into the reanalysis field and fix the random mask at different time steps to simulate the sparse distribution of observation stations in real scenarios. Additionally, we add Gaussian noise to the reanalysis field to simulate measurement errors at observation stations. Unless stated otherwise, the mask proportion in our experiments is $15\%$ , indicating that only $15\%$ of the locations have observations. The standard deviation of observation noise is 0.001 times the standard deviation of the variable distribution.
150
+
151
+ ![](images/50e7b90affb9c35542caded187649754968a04bbc0e8031755d4d9f861eab735.jpg)
152
+
153
+ ![](images/b88543a249fda4ec3068ccd2c613fded0bf0398687ca10f0cdd40284dcaf68f8.jpg)
154
+
155
+ ![](images/5aaa742fa25fdb4f7d559b6f4fb9f5050288c6e91840db632850e97757fbb32b.jpg)
156
+
157
+ ![](images/c32f278bb065cfa34bb1195bf622011b71a80b50329696ff31aecd5630623c5f.jpg)
158
+ Figure 3. Visualization of z500 at time 2018-01-01 00:00. The ERA5 ground truth, the background field and the observation mask are demonstrated in the first row; the error of the background field(background field minus ground truth), the analysis increment (analysis field minus background field) and the error of the analysis field (analysis field minus ground truth) are shown in the second row. In the image of the observation mask, a pixel with a value of 1 indicates that there is an observation at that location, and a pixel with a value of 0 indicates an absence of any observation at that location.
159
+
160
+ ![](images/26c49241865983c452754b26cd0a72dbdc16cd6dafcd034576b3da90a7ef25a1.jpg)
161
+
162
+ ![](images/1e3f30b0ec10717e613c9b80394f8ccc52a82ff1d55e4b234528d8ecda5d9b87.jpg)
163
+
164
+ Cyclic Forecasting Setup The initial state for starting our cyclic forecasting is obtained from the ERA5 dataset. In our experiments, FengWu-4DVar is initiated from 00:00 on January 1, 2018. To obtain the background field $\mathbf{x}_0^b$ , we start from the ERA5 reanalysis field at 00:00 on December 30, 2017, integrate it using the 6-hour forecasting model for eight steps, and use the resulting fields to start the cyclic forecasting. We run FengWu-4DVar for one year, concluding its operation at 23:00 on December 31, 2018.
165
+
166
+ # 4.2. Analysis Field Evaluation
167
+
168
+ Figure 2 demonstrates the cyclic forecasting results of FengWu-4DVar. Four atmospheric variables at geopotential height $500\mathrm{hPa}$ and four surface variables are reported on two metrics (RMSE and Bias), which we let readers refer to the Appendix for detailed definitions (Rasp et al., 2020). It can be found that our AI-embedded 4DVar algorithm is capable of increasing the quality of the initial field. Take z500 as an example: the RMSE of z500 at the initial moment is over $60\mathrm{m}^2/\mathrm{s}^2$ ; after one step of assimilation, the RMSE of the background field drops below $40\mathrm{m}^2/\mathrm{s}^2$ . The error remains stable after convergence, proving that our cyclic forecasting can operate stably in the long term. Furthermore, the RMSE of the analysis fields is smaller than the average RMSE of the IFS six-hour forecast fields on most variables, indicating that the analysis fields generated by
169
+
170
+ FengWu-4DVar are accurate. The Bias indicator of the analysis fields is also improved compared with the background fields across all variables, showing that our AI-embedded 4DVar algorithm is capable of mitigating model bias in AI forecasting models.
171
+
172
+ In Figure 3, we visualize the assimilation results at time 2018-01-01 00:00, when the background error is the largest, corresponding to the most challenging case for data assimilation algorithms. It can be seen that the pattern of the z500 analysis increment resembles that of the background error, indicating that our AI-embedded 4DVar is capable of correcting the background error. Moreover, by comparing the error of the analysis fields and the background fields, it can be found that the error is significantly reduced after assimilation, which further validates the effectiveness of the assimilation process.
173
+
174
+ # 4.3. Evaluation Under Different Experimental Settings
175
+
176
+ In this section, we conduct experiments under different experimental settings to test the robustness of FengWu-4DVar.
177
+
178
+ Effect of Initial States We choose different initial states, corresponding to $\mathbf{x}_0^b$ in Algorithm 1, to test the performance of the cyclic forecasting framework under worse or better initial conditions. To achieve this, we select reanalysis fields
179
+
180
+ ![](images/46e9169fe1f836113e77bda8920cef2a2c46510550a323ceceb972640d222506.jpg)
181
+ Figure 4. Evaluation under different experimental settings. The RMSE and Bias of the z500 analysis field are reported for experiments with (1) different initial states (in the first row), (2) different observation proportions (in the second row) and (3) different observation noise levels (in the last row). We let readers refer to the main text for the meanings of the labels.
182
+
183
+ from different timestamps and integrate them over different time steps. Specifically, we integrate the reanalysis field from 6 hours prior for one step, from 2 days prior for 8 steps, from 4 days prior for 16 steps, and from 6 days prior for 24 steps, and use these resulting states as initial conditions for assimilation experiments. These experiments are labeled as "init-1", "init-2", "init-3", and "init-4", with the original version of the experiment corresponding to "init-2".
184
+
185
+ The RMSE and Bias results on z500 variable are reported in the first row of Figure 4. It is shown that regardless of the magnitude of the initial state error, as we iterate the cyclic forecasting for around 20 days, our data assimilation framework consistently reduces the error to the same level as the original experiment setting. This indicates that our AI-embedded 4DVar algorithm is robust to the initial states.
186
+
187
+ Effect of Observation Proportions In this experiment, we reduce the observation proportion from $15\%$ to $5\%$ and evaluate the cyclic forecasting results. As shown in Figure 4, FengWu-4DVar adapt well to different observation proportions: when the observation proportion is only $5\%$ , the error of z500 analysis field still converges. The RMSE after convergence is about $40\mathrm{m}^2/\mathrm{s}^2$ , larger than the case where the observation proportion is $15\%$ , but it is still a small value, equivalent to the 18-hour forecast error of IFS.
188
+
189
+ Effect of Observation Noise Levels This experiment evaluates the impact of observation noise intensity. We make the observations noisier by increasing the standard deviation of the observation noise from 0.001 to 0.01. The results are shown in the last row of Figure 4. It can be found that increasing the observation noise intensity has a negative impact on the assimilation results, with the RMSE of z500 rising from around $20\mathrm{m}^2/\mathrm{s}^2$ to over $70\mathrm{m}^2/\mathrm{s}^2$ . Despite this, our FengWu-4DVar framework can still work stably in this situation and will not crash.
190
+
191
+ # 4.4. Comparison with the 3DVar Baseline
192
+
193
+ ![](images/232aaa404308bc4c6015c535c6f635cbd3d927ee9c07e76a2cc40f8c6f4cf476.jpg)
194
+
195
+ ![](images/bcd95a813cd884450326a27a6145a2cc57f84ffab74dcc0fd5431a7484e6047a.jpg)
196
+
197
+ ![](images/dd839fa3264f71b556f2777a956e3b9e23ca728919224fe6f3d70a01329386cb.jpg)
198
+ Figure 5. Comparison with the 3DVar baseline. The RMSE of the z500 analysis field is reported for AI-embedded 4DVar and 3DVar in experiments with different observation noise. The observation proportion is fixed to $15\%$ across all the experiments.
199
+
200
+ ![](images/2506b9ca6406459a91e721be761e5fce9ab706273614d085ee80eb1bdb5e5063.jpg)
201
+
202
+ In this section, we compare the results of AI-embedded 4DVar with a traditional three-dimensional variational assimilation (3DVar) baseline. In the 3DVar algorithm, only observations at the same time as the background fields are assimilated and no flow-dependencies are taken into consideration. Its objective function is shown below:
203
+
204
+ $$
205
+ \begin{array}{l} J \left(\mathbf {x} _ {0}\right) = \frac {1}{2} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) ^ {\mathrm {T}} \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) \tag {6} \\ + \frac {1}{2} \left(\mathcal {H} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {0}\right) ^ {\mathrm {T}} \mathbf {R} _ {0} ^ {- 1} \left(\mathcal {H} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {0}\right) \\ \end{array}
206
+ $$
207
+
208
+ As demonstrated in Figure 5, our AI-embedded 4DVar algorithm consistently outperforms the 3DVar algorithm in terms of assimilation accuracy. As the observation becomes noisier, the accuracy gain of AI-embedded 4DVar gets greater. This is because when the observation quality deteriorates, AI-embedded 4DVar can use observations in the future to compensate for the quality defects. This comparison demonstrates the superiority of AI-embedded 4DVar over 3DVar.
209
+
210
+ # 4.5. Ablation Study
211
+
212
+ Additional experiments have been conducted in this section to demonstrate the effectiveness of our proposed AI-embedded 4DVar algorithm.
213
+
214
+ Effect of Horizontal Correlation Two experiments are conducted to evaluate the effect of our proposed horizontal correlation approximation strategy. In the first experiment, horizontal correlation is considered, but we approximate the horizontal correlation using ordinary convolutions instead of spherical convolutions. In the second experiment, the horizontal correlation is removed and the background covariance matrix is assumed to be diagonal, as done in most previous AI data assimilation works.
215
+
216
+ ![](images/d0277dc9a08807aad7bf958949d566910c08f89638057e447dd0d19c6f747883.jpg)
217
+ Figure 6. Effect of horizontal correlation. The analysis increment of z500 at time 2018-01-01 00:00 for two control experiments are demonstrated. In the first panel, the ordinary convolution is employed for approximating the horizontal correlation; in the second one, the horizontal correlation is removed. The observation proportion is set to $15\%$ and the standard deviation is set to 0.001 in both experiments.
218
+
219
+ The analysis increments of these two experiments are shown in Figure 6. It can be found that when the ordinary convolution is used, the patterns of the analysis increment appear more fragmented compared with the results of applying the spherical convolution (as shown in the middle bottom panel of Figure 3), and the situation in polar regions is more serious. This is because when spherical convolution is used, the nonlinear equirectangular projection (ERP), which makes the actual distance between adjacent grid points smaller as it gets closer to the pole, is taken into account; whereas after switching to the ordinary convolution, the spherical field is treated as an ordinary two-dimensional image and the
220
+
221
+ nonlinear transformation is not considered, which leads to worse assimilation results. When the horizontal correlation is removed, the analysis increment patterns appear even more discontinuous and most of the correction increments are concentrated at or near the observation points. These two experiments highlight the significance of our proposed SHT-based horizontal correlation approximation strategy.
222
+
223
+ ![](images/4321e02737c89b3969727a2fe2642731f448d21910c4ef32409a433202c1e9a0.jpg)
224
+ Figure 7. Effect of the model error term. The RMSE and Bias of the z500 analysis field are reported in both scenarios: one with the model error term (for a month) and another without it (for a week). The observation proportion is set to $15\%$ and the standard deviation is set to 0.001 in both experiments.
225
+
226
+ ![](images/2dc656b4bf8295033f2631e159637dfa5044055202610fa4a4d8416f3d180c25.jpg)
227
+
228
+ Effect of the Model Error Term In this experiment, we remove the model error term in the objective function and demonstrate the assimilation results. As shown in Figure 7, after removing the model error term in the objective function, the RMSE of z500 rises to above $200\mathrm{m}^2/\mathrm{s}^2$ after a week of cyclic forecasting. This is because the 4DVar algorithm learns too much from observations at future moments, which should have been given less weight during assimilation. This ablation study indicates that the model error term plays a crucial role in the effective assimilation of AI-embedded 4DVar.
229
+
230
+ # 4.6. Computational Cost
231
+
232
+ FengWu-4DVar is implemented using auto-differentiation, and no additional neural network training is required once the forecasting model has been trained. The primary computational expenses of the data assimilation algorithm arise from the calculations involving auto-differentiation and the updates to the analysis fields using the L-BFGS optimization algorithm implemented by PyTorch. In our experiments, both auto-differentiation and gradient optimization updates are carried out on one GPU card of NVIDIA A100, with an average runtime of 29.3 seconds for assimilating over 300 thousand observations within a 6-hour assimilation window. As a comparison, realizing the traditional 4DVar algorithm on the $1^{\circ}$ flow dependency resolution costs about 50 minutes on 256 processors of the PI-SUGON high-performance computer. This proves that our AI-embedded 4DVar algorithm achieves significant efficiency gain.
233
+
234
+ # 5. Conclusion
235
+
236
+ In this paper, we propose an AI-embedded 4DVar data assimilation algorithm, which consists of three components to deal with the challenge of building an AI data assimilation algorithm on a real-world weather forecasting system. By coupling this algorithm with the FengWu forecasting model, we build a self-contained data-driven global weather forecasting framework, FengWu-4DVar. This framework is evaluated with the forecasting model at $1.4^{\circ}$ resolution and the ERA5 simulation observations. Under different observational settings and different initial conditions, FengWu-4DVar is capable of generating reasonable analysis fields and achieving stable and efficient cyclic assimilation and forecasting for at least one year, and the error of the analysis fields is smaller than both the 3DVar algorithm and the 6-hour forecast error of IFS. In addition, the computational efficiency of our algorithm greatly exceeds that of the traditional 4DVar algorithm.
237
+
238
+ We admit certain limitations of our current work. First, our experiments are conducted on simulated observations based on ERA5 and the effectiveness of our framework on real-world observations is yet to be verified. Second, we have not performed an end-to-end comparison between our proposed AI-embedded 4DVar algorithm and an operational 4DVar algorithm. We will address these limitations in future work.
239
+
240
+ # Acknowledgements
241
+
242
+ This work is supported by the National Natural Science Foundation of China (NO.U2242210). This work is also supported by Shanghai Artificial Intelligence Laboratory.
243
+
244
+ We gratefully acknowledge the ERA5 dataset provided by the European Centre for Medium-Range Weather Forecasts (ECMWF), whose efforts in data collection, archiving, and dissemination made this study possible.
245
+
246
+ We appreciate the Research Support, IT, and Infrastructure team at the Shanghai AI Laboratory for their provision of computational resources and network support.
247
+
248
+ We would also like to express our gratitude to Prof. Juanjuan Liu from the University of Chinese Academy of Science for her assistance and insightful discussions during the course of this research. Additionally, we thank Wanghan Xu from the Shanghai AI Laboratory for his help in conducting experiments for the rebuttal. Their contributions have significantly enhanced the quality of this work.
249
+
250
+ # Impact Statement
251
+
252
+ This paper presents work whose goal is to advance the field of weather forecasting. Improving the accuracy and efficiency of weather forecasts can bring significant social ben
253
+
254
+ efits to various industries. First, enhanced weather forecasts can contribute to public safety by providing more reliable information for disaster preparedness and response. Accurate forecasts help authorities and communities make timely decisions, evacuate vulnerable areas and allocate resources effectively when faced with severe weather events such as hurricanes, floods or storms.
255
+
256
+ In the agricultural sector, precise weather forecasts are crucial for farmers to optimize planting and harvesting schedules, manage irrigation efficiently, and mitigate the impact of extreme weather conditions on crops. This leads to increased agricultural productivity, better resource management, and ultimately, food security.
257
+
258
+ Additionally, industries such as transportation and logistics rely heavily on accurate weather forecasts for planning and operational efficiency. Airlines, shipping lines and ground transportation services can optimize routes, schedules and fuel consumption, reducing costs and improving overall reliability.
259
+
260
+ In the energy sector, particularly in renewable energy production, precise weather predictions are essential for optimizing the output of solar and wind farms. This allows for better integration of renewable energy sources into the power grid, contributing to the transition to sustainable and environmentally friendly energy systems.
261
+
262
+ Overall, the potential social benefits of this work extend to public safety, food security, economic productivity, and sustainable resource management.
263
+
264
+ # References
265
+
266
+ Bannister, R. N. A review of forecast error covariance statistics in atmospheric variational data assimilation. i: Characteristics and measurements of forecast error covariances. Quarterly Journal of the Royal Meteorological Society: A journal of the atmospheric sciences, applied meteorology and physical oceanography, 134(637):1951-1970, 2008.
267
+ Barker, D. M., Huang, W., Guo, Y.-R., Bourgeois, A., and Xiao, Q. A three-dimensional variational data assimilation system for mm5: Implementation and initial results. Monthly Weather Review, 132(4):897-914, 2004.
268
+ Bauer, P., Thorpe, A., and Brunet, G. The quiet revolution of numerical weather prediction. Nature, 525(7567):47-55, 2015.
269
+ Bi, K., Xie, L., Zhang, H., Chen, X., Gu, X., and Tian, Q. Accurate medium-range global weather forecasting with 3d neural networks. Nature, 619(7970):533-538, 2023.
270
+ Bonev, B., Kurth, T., Hundt, C., Pathak, J., Baust, M., Kashinath, K., and Anandkumar, A. Spherical fourier
271
+
272
+ neural operators: Learning stable dynamics on the sphere. arXiv preprint arXiv:2306.03838, 2023.
273
+ Chen, K., Han, T., Gong, J., Bai, L., Ling, F., Luo, J.-J., Chen, X., Ma, L., Zhang, T., Su, R., et al. Fengwu: Pushing the skillful global medium-range weather forecast beyond 10 days lead. arXiv preprint arXiv:2304.02948, 2023a.
274
+ Chen, L., Zhong, X., Zhang, F., Cheng, Y., Xu, Y., Qi, Y., and Li, H. Fuxi: A cascade machine learning forecasting system for 15-day global weather forecast. arXiv preprint arXiv:2306.12873, 2023b.
275
+ Descombes, G., Auligné, T., Vandenberghe, F., Barker, D., and Barre, J. Generalized background error covariance matrix model (gen_be v2.0). Geoscientific Model Development, 8(3):669-696, 2015.
276
+ Dong, R., Leng, H., Zhao, J., Song, J., and Liang, S. A framework for four-dimensional variational data assimilation based on machine learning. Entropy, 24(2):264, 2022.
277
+ Donner, L. J., Wyman, B. L., Hemler, R. S., Horowitz, L. W., Ming, Y., Zhao, M., Golaz, J.-C., Ginoux, P., Lin, S.-J., Schwarzkopf, M. D., et al. The dynamical core, physical parameterizations, and basic simulation characteristics of the atmospheric component am3 of the gfdl global coupled model cm3. Journal of Climate, 24(13):3484-3519, 2011.
278
+ Driscoll, J. R. and Healy, D. M. Computing fourier transforms and convolutions on the 2-sphere. Advances in applied mathematics, 15(2):202-250, 1994.
279
+ Fablet, R., Chapron, B., Drumetz, L., Mémin, E., Pannekoucke, O., and Rousseau, F. Learning variational data assimilation models and solvers. Journal of Advances in Modeling Earth Systems, 13(10):e2021MS002572, 2021.
280
+ Fisher, M. Background error covariance modelling. In Seminar on Recent Development in Data Assimilation for Atmosphere and Ocean, pp. 45-63. Shinfield Park, Reading, 2003.
281
+ Frerix, T., Kochkov, D., Smith, J., Cremers, D., Brenner, M., and Hoyer, S. Variational data assimilation with a learned inverse observation operator. In International Conference on Machine Learning, pp. 3449-3458. PMLR, 2021.
282
+ Geer, A. J. Learning earth system models from observations: machine learning or data assimilation? Philosophical Transactions of the Royal Society A, 379(2194):20200089, 2021.
283
+ Hersbach, H., Bell, B., Berrisford, P., Hirahara, S., Horányi, A., Muñoz-Sabater, J., Nicolas, J., Peubey, C., Radu, R.,
284
+
285
+ Schepers, D., et al. The era5 global reanalysis. Quarterly Journal of the Royal Meteorological Society, 146(730): 1999-2049, 2020.
286
+ Hourdin, F., Mauritsen, T., Gettelman, A., Golaz, J.-C., Balaji, V., Duan, Q., Folini, D., Ji, D., Klocke, D., Qian, Y., et al. The art and science of climate model tuning. Bulletin of the American Meteorological Society, 98(3): 589-602, 2017.
287
+ Howes, K., Fowler, A. M., and Lawless, A. Accounting for model error in strong-constraint 4d-var data assimilation. Quarterly Journal of the Royal Meteorological Society, 143(704):1227-1240, 2017.
288
+ Jorge, N. and Stephen, J. W. Numerical optimization. Springer, 2006.
289
+ Kalnay, E. Atmospheric modeling, data assimilation and predictability. Cambridge university press, 2003.
290
+ Lam, R., Sanchez-Gonzalez, A., Willson, M., Wirnsberger, P., Fortunato, M., Pritzel, A., Ravuri, S., Ewalds, T., Alet, F., Eaton-Rosen, Z., et al. Graphcast: Learning skillful medium-range global weather forecasting. arXiv preprint arXiv:2212.12794, 2022.
291
+ Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 10012-10022, 2021.
292
+ Pathak, J., Subramanian, S., Harrington, P., Raja, S., Chattopadhyay, A., Mardani, M., Kurth, T., Hall, D., Li, Z., Azizzadenesheli, K., et al. Fourcastnet: A global data-driven high-resolution weather model using adaptive fourier neural operators. arXiv preprint arXiv:2202.11214, 2022.
293
+ Rabier, F. and Liu, Z. Variational data assimilation: theory and overview. In Proc. ECMWF Seminar on Recent Developments in Data Assimilation for Atmosphere and Ocean, Reading, UK, September 8-12, pp. 29-43, 2003.
294
+ Rabier, F., Thépaut, J.-N., and Courtier, P. Extended assimilation and forecast experiments with a four-dimensional variational assimilation system. Quarterly Journal of the Royal Meteorological Society, 124(550):1861-1887, 1998.
295
+ Rabier, F., Järvinen, H., Klinker, E., Mahfouf, J.-F., and Simmons, A. The ecmwf operational implementation of four-dimensional variational assimilation. i: Experimental results with simplified physics. Quarterly Journal of the Royal Meteorological Society, 126(564):1143-1170, 2000.
296
+
297
+ Rasp, S., Dueben, P. D., Scher, S., Weyn, J. A., Mouatadid, S., and Thuerey, N. Weatherbench: a benchmark data set for data-driven weather forecasting. Journal of Advances in Modeling Earth Systems, 12(11):e2020MS002203, 2020.
298
+ Strogatz, S. H. Nonlinear dynamics and chaos with student solutions manual: With applications to physics, biology, chemistry, and engineering. CRC press, 2018.
299
+ Trémolet, Y. Accounting for an imperfect model in 4d-var. Quarterly Journal of the Royal Meteorological Society: A journal of the atmospheric sciences, applied meteorology and physical oceanography, 132(621):2483-2504, 2006.
300
+ Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. Advances in neural information processing systems, 30, 2017.
301
+ Wang, X., Chen, G., Qian, G., Gao, P., Wei, X.-Y., Wang, Y., Tian, Y., and Gao, W. Large-scale multi-modal pretrained models: A comprehensive survey. Machine Intelligence Research, 20(4):447-482, 2023.
302
+ Zhang, L., Liu, Y., Liu, Y., Gong, J., Lu, H., Jin, Z., Tian, W., Liu, G., Zhou, B., and Zhao, B. The operational global four-dimensional variational data assimilation system at the china meteorological administration. Quarterly Journal of the Royal Meteorological Society, 145(722): 1882-1896, 2019.
303
+ Zhao, Y., Zhang, J., and Zong, C. Transformer: A general framework from machine translation to others. Machine Intelligence Research, 20(4):514-538, 2023.
304
+
305
+ # A. Constructing the Adjoint Model Through Auto-differentiation
306
+
307
+ Assuming that $\mathcal{M}:\mathbb{R}^d\to \mathbb{R}^d$ is a forecasting model (the physical field flattened into a one-dimensional vector), the adjoint model of $\mathcal{M}$ at state $\mathbf{x}_0$ is defined as $\left(\frac{\partial\mathcal{M}(\mathbf{x})}{\partial\mathbf{x}}\bigg|_{\mathbf{x} = \mathbf{x}_0}\right)^{\mathrm{T}}$ . It is a $d\times d$ matrix.
308
+
309
+ Suppose $\mathbf{y} \in \mathbb{R}^{d \times d}$ is another arbitrary $d$ -dimensional vector. Then we can build the following "neural network", as shown in Figure 8. It only consists of two steps. In the first step, $\mathbf{x}_0$ is fed into the forecasting model and the predicted state $\mathbf{x}_1$ is obtained. In the second step, we do a dot product between $\mathbf{x}_1$ and $\mathbf{y}$ and produce a scalar $z$ as the output.
310
+
311
+ ![](images/58b71a613947da97fc4f89b554363c4dc8f6e6f9fdb4e479a94bb1e9b3d6489b.jpg)
312
+ Figure 8. "Neural Network" for calculating the adjoint model.
313
+
314
+ Through auto-differentiation, we can obtain the gradient at node $\mathbf{x}_0$ , that is $\frac{\partial z}{\partial \mathbf{x}_0}$ . On the other hand, we can do the computational graph manually, and find out what the gradient stands for:
315
+
316
+ $$
317
+ \frac {\partial z}{\partial \mathbf {x} _ {1}} = \mathbf {y}
318
+ $$
319
+
320
+ $$
321
+ \frac {\partial z}{\partial \mathbf {x} _ {0}} = \left(\frac {\partial \mathbf {x} _ {1}}{\partial \mathbf {x} _ {0}}\right) ^ {T} \frac {\partial z}{\partial \mathbf {x} _ {1}} = \left(\left. \frac {\partial \mathcal {M} (\mathbf {x})}{\partial \mathbf {x}} \right| _ {\mathbf {x} = \mathbf {x} _ {0}}\right) ^ {T} \mathbf {y} \tag {7}
322
+ $$
323
+
324
+ According to Equation 7, it can be found that the gradient at node $\mathbf{x}_0$ precisely represents the result of the adjoint model (defined at $\mathbf{x}_0$ ) acting on $\mathbf{y}$ . Since both $\mathbf{x}_0$ and $\mathbf{y}$ are arbitrary, through this approach, we can calculate the results of the adjoint model, defined at any point, acting on any vectors. This concludes the proof that the adjoint of any differentiable forecasting model can be constructed through auto-differentiation.
325
+
326
+ # B. Equivalence Between Two Optimization Methods
327
+
328
+ Define $g(\mathbf{x}_0, \mathbf{x}^b) = \frac{1}{2} (\mathbf{x}_0 - \mathbf{x}^b)^{\mathrm{T}}\mathbf{B}^{-1}(\mathbf{x}_0 - \mathbf{x}^b)$ , $f_i(\mathbf{x}, \mathbf{y}) = \frac{1}{2} (\mathcal{H}(\mathbf{x}) - \mathbf{y})^{\mathrm{T}}\mathbf{R}_i^{-1}(\mathcal{H}(\mathbf{x}) - \mathbf{y})$ . Let $\mathcal{M}_{0 \to 1} = \mathcal{M}_{1 \to 2} = \dots = \mathcal{M}_{T-2 \to T-1} = \mathcal{M}$ . Then the computational graph of calculating the 4DVar objective function can be constructed, as shown in Figure 9. For simplicity, Denote $\mathbf{H}_{\tau} = \left.\frac{\partial\mathcal{H}(\mathbf{x})}{\partial\mathbf{x}}\right|_{\mathbf{x} = \mathbf{x}_{\tau}}$ and $\mathbf{M}_{\tau} = \left.\frac{\partial\mathcal{M}(\mathbf{x})}{\partial\mathbf{x}}\right|_{\mathbf{x} = \mathbf{x}_{\tau}} = \frac{\partial\mathbf{x}_{\tau+1}}{\partial\mathbf{x}_{\tau}}$ . We can simulate the computational graph back-propagation process and calculate the gradient sequentially:
329
+
330
+ $$
331
+ \begin{array}{l} \frac {\partial J}{\partial \mathbf {x} _ {T - 1}} = \frac {\partial J _ {R _ {T - 1}}}{\partial \mathbf {x} _ {T - 1}} \frac {\partial J}{\partial J _ {R _ {T - 1}}} = \frac {\partial J _ {R _ {T - 1}}}{\partial \mathbf {x} _ {T - 1}} = \mathbf {H} _ {T - 1} ^ {\mathrm {T}} \mathbf {R} _ {T - 1} ^ {- 1} (\mathcal {H} (\mathbf {x} _ {T - 1}) - \mathbf {y} _ {T - 1}), \\ \frac {\partial J}{\partial \mathbf {x} _ {T - 2}} = \frac {\partial J _ {R _ {T - 2}}}{\partial \mathbf {x} _ {T - 2}} \frac {\partial J}{\partial J _ {R _ {T - 2}}} + \left(\frac {\partial \mathbf {x} _ {T - 1}}{\partial \mathbf {x} _ {T - 2}}\right) ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {T - 1}} = \frac {\partial J _ {R _ {T - 2}}}{\partial \mathbf {x} _ {T - 2}} + \left(\frac {\partial \mathbf {x} _ {T - 1}}{\partial \mathbf {x} _ {T - 2}}\right) ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {T - 1}} \tag {8} \\ \mathbf {\Omega} = \mathbf {H} _ {T - 2} ^ {\mathrm {T}} \mathbf {R} _ {T - 2} ^ {- 1} (\mathcal {H} (\mathbf {x} _ {T - 2}) - \mathbf {y} _ {T - 2}) + \mathbf {M} _ {T - 2} ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {T - 1}}, \\ \end{array}
332
+ $$
333
+
334
+ Continuing in this manner, we can derive a general formula:
335
+
336
+ $$
337
+ \begin{array}{l} \frac {\partial J}{\partial \mathbf {x} _ {\tau}} = \frac {\partial J _ {R _ {\tau}}}{\partial \mathbf {x} _ {\tau}} \frac {\partial L}{\partial J _ {R _ {\tau}}} + \left(\frac {\partial \tau_ {k + 1}}{\partial \mathbf {x} _ {\tau}}\right) ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {\tau + 1}} = \frac {\partial J _ {R _ {\tau}}}{\partial \mathbf {x} _ {\tau}} + \left(\frac {\partial \mathbf {x} _ {\tau + 1}}{\partial \mathbf {x} _ {\tau}}\right) ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {\tau + 1}} \tag {9} \\ = \mathbf {H} _ {\tau} ^ {\mathrm {T}} \mathbf {R} _ {\tau} ^ {- 1} (\mathcal {H} (\mathbf {x} _ {\tau}) - \mathbf {y} _ {\tau}) + \mathbf {M} _ {\tau} ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {\tau + 1}}. \\ \end{array}
338
+ $$
339
+
340
+ ![](images/166577d75945688f3027359a1d8d882a43bc5845cb5f4583bc41c78fe90fa0f7.jpg)
341
+ Figure 9. "Neural Network" for calculating the 4DVar objective function.
342
+
343
+ This corresponds to the gradient stored at the intermediate node $\mathbf{x}_{\tau}$ , which is calculated through auto-differentiation.
344
+
345
+ Equation 9 holds for $1 \leq \tau \leq T - 2$ ; when $\tau = 0$ , an additional background term should be included:
346
+
347
+ $$
348
+ \frac {\partial J}{\partial \mathbf {x} _ {0}} = \frac {\partial J _ {R _ {B}}}{\partial \mathbf {x} _ {0}} \frac {\partial J}{\partial J _ {B}} + \frac {\partial J _ {R _ {0}}}{\partial \mathbf {x} _ {0}} \frac {\partial J}{\partial J _ {R _ {0}}} + \left(\frac {\partial \mathbf {x} _ {1}}{\partial \mathbf {x} _ {0}}\right) ^ {\mathrm {T}} \frac {\partial J}{\partial \mathbf {x} _ {1}} = \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} _ {b}\right) + \mathbf {H} _ {0} ^ {\mathrm {T}} \mathbf {R} _ {0} ^ {- 1} \left(\mathcal {H} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {0}\right) + \mathbf {M} _ {0} ^ {\mathrm {T}} \frac {\partial L}{\partial \mathbf {x} _ {1}}. \tag {10}
349
+ $$
350
+
351
+ Up to this point, we have elucidated the mechanism through which auto-differentiation computes the gradient. By comparing this process with the methodology employed by traditional adjoint model-based methods for gradient calculation (Rabier & Liu, 2003), it becomes evident that these two processes are entirely identical.
352
+
353
+ # C. Derivation of the Model Error Term in AI-embedded 4DVar
354
+
355
+ First, we assume that the error of the forecasting model follows a Gaussian distribution. It's worth noting that this assumption holds true only for linear models. For nonlinear models, the preservation of Gaussian distribution errors cannot be guaranteed during model integration. However, this does not prevent us from making such an approximation to make the problem manageable. Denote $\mathbf{Q}_{\tau}$ the error variance of the $\tau$ -step integration model, $\mathcal{M}_{0\rightarrow \tau}$ or $\mathcal{M}_{\tau}$ , then $\mathbf{x}_{\tau}|\mathbf{x}_0\sim \mathcal{N}(\mathcal{M}_{\tau}(\mathbf{x}_0),\mathbf{Q}_{\tau})$ . In practice, $\mathbf{Q}_{\tau}$ can also be estimated by computing the sampling statistics in a manner similar to the national meteorological center (NMC) method (Bannister, 2008). Since the observation at time $\tau$ follows the Gaussian distribution $\mathbf{y}_{\tau}|\mathbf{x}_{\tau}\sim \mathcal{N}(\mathbf{H}\mathbf{x}_{\tau},\mathbf{R}_{\tau})$ , through the compound rule of Gaussian distributions, $\mathbf{y}_{\tau}|\mathbf{x}_0$ also follows the Gaussian distribution:
356
+
357
+ $$
358
+ \mathbf {y} _ {\tau} \left| \mathbf {x} _ {0} \right. \sim \mathcal {N} \left(\mathcal {M} _ {\tau} \left(\mathbf {x} _ {0}\right), \mathbf {R} _ {\tau} + \mathbf {H Q} _ {\tau} \mathbf {H} ^ {\mathrm {T}}\right) \tag {11}
359
+ $$
360
+
361
+ According to Bayesian Theorem, we have
362
+
363
+ $$
364
+ \arg \max _ {\mathbf {x} _ {0}} p (\mathbf {x} _ {0} | \mathbf {y} _ {0}, \dots , \mathbf {y} _ {T - 1}) = \arg \max _ {\mathbf {x} _ {0}} \frac {p (\mathbf {y} _ {0} , \cdots , \mathbf {y} _ {T - 1} | \mathbf {x} _ {0}) p (\mathbf {x} _ {0})}{p (\mathbf {y} _ {0} , \cdots , \mathbf {y} _ {T - 1})} = \arg \max _ {\mathbf {x} _ {0}} p (\mathbf {y} _ {0}, \dots , \mathbf {y} _ {T - 1} | \mathbf {x} _ {0}) p (\mathbf {x} _ {0}). \tag {12}
365
+ $$
366
+
367
+ Since observations at different time steps are independent, the above formula can be simplified as follows:
368
+
369
+ $$
370
+ \begin{array}{l} p (\mathbf {y} _ {0}, \dots , \mathbf {y} _ {T - 1} | \mathbf {x} _ {0}) p (\mathbf {x} _ {0}) = p (\mathbf {x} _ {0}) \prod_ {\tau = 0} ^ {T - 1} p (\mathbf {y} _ {\tau} | \mathbf {x} _ {0}) \\ = C \exp \left(- \frac {1}{2} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) ^ {\mathrm {T}} \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right)\right) \prod_ {\tau = 0} ^ {T - 1} \exp \left(- \frac {1}{2} \left(\mathcal {M} _ {\tau} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {\tau}\right) ^ {\mathrm {T}} \left(\mathbf {R} _ {\tau} + \mathbf {H Q} _ {\tau} \mathbf {H} ^ {\mathrm {T}}\right) ^ {- 1} \left(\mathcal {M} _ {\tau} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {\tau}\right)\right), \tag {13} \\ \end{array}
371
+ $$
372
+
373
+ where $C$ is a constant. Taking negative logarithm of this likelihood yields the objective function,
374
+
375
+ $$
376
+ J \left(\mathbf {x} _ {0}\right) = \frac {1}{2} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) ^ {\mathrm {T}} \mathbf {B} ^ {- 1} \left(\mathbf {x} _ {0} - \mathbf {x} ^ {b}\right) + \frac {1}{2} \sum_ {\tau = 0} ^ {T - 1} \left(\mathcal {M} _ {\tau} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {\tau}\right) ^ {\mathrm {T}} \left(\mathbf {R} _ {\tau} + \mathbf {H Q} _ {\tau} \mathbf {H} ^ {\mathrm {T}}\right) ^ {- 1} \left(\mathcal {M} _ {\tau} \left(\mathbf {x} _ {0}\right) - \mathbf {y} _ {\tau}\right), \tag {14}
377
+ $$
378
+
379
+ which concludes the proof.
380
+
381
+ # D. Evaluation Metrics
382
+
383
+ To evaluate the performance of our FengWu-4DVar framework, we regard the ERA5 dataset as the ground truth and compare the analysis fields sequence $\{\mathbf{x}_{lT}^a\}_{l = 0}^L$ and the background fields sequence $\{\mathbf{x}_{lT}^b\}_{l = 0}^L$ with it. The metrics we use are RMSE and Bias.
384
+
385
+ RMSE corresponds to the latitude-weighted root mean square error. It is a statistical metric widely used to assess the accuracy of a model's predictions across different latitudes. Denote $\hat{x}_{l,c,w,h}$ the predicted value of the $l$ -th sample at channel $c$ (It can either be the surface variable or the atmospheric variable at a certain pressure level.), and $w$ and $h$ represents the indices for each grid along the latitude and longitude indices. Denote $x_{l,c,w,h}$ the target value. Then the RMSE at channel $c$ is defined as
386
+
387
+ $$
388
+ \operatorname {R M S E} (c) = \frac {1}{L} \sum_ {l = 1} ^ {L} \sqrt {\frac {1}{W \cdot H} \sum_ {w = 1} ^ {W} \sum_ {h = 1} ^ {H} W \cdot \frac {\cos (\alpha_ {w , h})}{\sum_ {w ^ {\prime} = 1} ^ {W} \cos (\alpha_ {w ^ {\prime} , h})} \left(x _ {l , c , w , h} - \hat {x} _ {l , c , w , h}\right) ^ {2}}, \tag {15}
389
+ $$
390
+
391
+ where $\alpha_{w,h}$ is the latitude of point $(w,h)$ .
392
+
393
+ Bias corresponds to the latitude-weighted bias. It is widely used to assess the systematic bias of a model. Following the denotation above, the Bias at channel $c$ is defined as
394
+
395
+ $$
396
+ \operatorname {B i a s} (c) = \frac {1}{L} \sum_ {l = 1} ^ {L} \frac {1}{W \cdot H} \sum_ {w = 1} ^ {W} \sum_ {h = 1} ^ {H} W \cdot \frac {\cos (\alpha_ {w , h})}{\sum_ {w ^ {\prime} = 1} ^ {W} \cos (\alpha_ {w ^ {\prime} , h})} \left(\hat {x} _ {l, c, w, h} - x _ {l, c, w, h}\right). \tag {16}
397
+ $$
398
+
399
+ # E. Additional Results
400
+
401
+ Figure 10, 11 and 12 demonstrate the cyclic forecasting results of FengWu-4DVar under different observation proportions on 12 variables, with the observation standard deviation fixed to 0.001. Figure 13, 14 and 15 demonstrate the cyclic forecasting results of FengWu-4DVar under different observation standard deviations on 12 variables, with the observation proportions fixed to $15\%$ .
402
+
403
+ # F. Comparison with Traditional 4DVar
404
+
405
+ We also conducted experiments to compare the forecasting skills of the analysis fields generated by FengWu-4DVar with those of the IFS analysis fields. Using the analysis fields obtained from FengWu-4DVar, we performed forecasts with FengWu and calculated the RMSE (relative to ERA5 ground truth) at different lead times (up to 7 days). Similarly, we calculated the RMSE for the IFS forecast results and compared the errors. The results are presented in Figure 16. This comparison visually demonstrates the forecasting skills of the analysis fields generated by FengWu-4DVar. However, it does not establish that our algorithm is superior to the traditional 4DVar algorithm, as IFS utilizes real observational data for assimilation, whereas our system incorporates simulated observations.
406
+
407
+ ![](images/6e9fc3ec7fc9a83da5b3882b2920813ccef6e8cdc4b5e2aa012bd69d2006fdaa.jpg)
408
+
409
+ ![](images/23dbeafa19e08e10135481ba66d1a964e1f551980d71e1929986fad1a6f9a3c7.jpg)
410
+
411
+ ![](images/9b60c2f2e6abe33eb5bad3f8e3ffaa693c8d230f5984915815d12eaca730378f.jpg)
412
+
413
+ ![](images/771acb22ca1d7ccd2e93ea884ef9540c8941d7f15d646df08cde2cad8c05631a.jpg)
414
+
415
+ ![](images/2d410325abfad3688370be0461dbbe3c7967801d22acf5ee925e1657de932be3.jpg)
416
+
417
+ ![](images/5c14dfef150073ec1e2b37b0a239c94184c1999b8f257395379e67f375293a50.jpg)
418
+
419
+ ![](images/1510684785c0f66a444175db97a8f601aef51b16d889807144d76b0b28b8942b.jpg)
420
+
421
+ ![](images/db024455d8c4b12c4de698e16a8536150be71436cc339e2851e2cbcda450a209.jpg)
422
+
423
+ ![](images/dfc5553bd0027875f5c741ee2d958169bb5fc525cde088bded579241f24f83f0.jpg)
424
+ Figure 10. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $15\%$ and an observation standard deviation of 0.001. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
425
+
426
+ ![](images/94caef552d5a3340b1821a27abb228563367625fd17a7f733e68797daaadacbb.jpg)
427
+
428
+ ![](images/b27e7a8dec91614dacf96b273224e2594b543784fd24ec6b7f87e75f25014e8d.jpg)
429
+
430
+ ![](images/459304d08b37fb8174e9bd0ffd4288b1504249155b73d15435553f2fc8752991.jpg)
431
+
432
+ ![](images/a6d852b55b009228fa3ceb236300ee5830e9baa875df2a394e41e348ccfe07b2.jpg)
433
+
434
+ ![](images/3c336f0f4f9a06a14a1f14424122680cfdf3e7c7f25a70f1a2d12e42290e7449.jpg)
435
+
436
+ ![](images/fee691995ef8390d32097f6de2c2f6e70ae9683da0428cb7b628683cbcc6f6e5.jpg)
437
+
438
+ ![](images/11b5a030ed1d786f59614d7d4401cd940a84aac2568357332d957b8b2700e988.jpg)
439
+
440
+ ![](images/6bffc2ada4021d66ba8113a3d56db012b977153c5562d81b999fdd35a4def42a.jpg)
441
+
442
+ ![](images/9dcd2c29a0163dcd732e7813ed4d4bd0d6555184cbd24ca520106fe8a28dfb86.jpg)
443
+
444
+ ![](images/03d378ad86a066efaf6cde70295bc25cb9016cc36930b49cd9b8921f20f58407.jpg)
445
+
446
+ ![](images/610ddf914a5ce0c54f9a4d88923af795cdaf60b0ad614442f6c1ee21085a045f.jpg)
447
+
448
+ ![](images/0018de3369f10352478d31f86898d67feefbf52430df294a72d38b206d9eab39.jpg)
449
+ Figure 11. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $10\%$ and an observation standard deviation of 0.001. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
450
+
451
+ ![](images/d4f2b09048fdb4675cef004a1615860abc0ac8c1a7cebf180252f52290a74600.jpg)
452
+
453
+ ![](images/7dbde42c295e38afce602aaa2415bb156c50592c8c3ce4e2534c7481ecc41cd3.jpg)
454
+
455
+ ![](images/9645c8c51103a5baa6f3ba84b3343da8d928512b0b1d7133a02a91490ddb0cb9.jpg)
456
+
457
+ ![](images/d31966328f01cb78348e6dd1e811d4437af16294a50d8081364e3d3ff3e5d700.jpg)
458
+
459
+ ![](images/c0def6e3a23b74679c9f50912ba8b7a72fc6d5df5a633a5f397122f204d4a394.jpg)
460
+
461
+ ![](images/e525c6ab4d77d37663ee82653b5ed6970870ea753b580787fe94905dacb08ba8.jpg)
462
+
463
+ ![](images/9214798f4d10d32d2449663a93db028927e76dab764097189f166a8bb9915857.jpg)
464
+
465
+ ![](images/02a7847b8decba3dce316c4b7bff038cdfac9e244d0a83407f26118d0dd87841.jpg)
466
+
467
+ ![](images/87b94244972a6c26a84f2171a3cf614c856df138718385e8318674b0c3d7b2ff.jpg)
468
+
469
+ ![](images/9e7cb11cafdd8b14ed225983aa5a4383b17e41736720997d44445b8123a957f5.jpg)
470
+
471
+ ![](images/c2763712d6d3dfadfbaaa9b6d6e5317bd0a10e22638eda22b8c2b8faa620b451.jpg)
472
+
473
+ ![](images/666c2bcd08f814046d3cb7594ac47c6c22f6e9a786d0f59c73abf361cc7ad75e.jpg)
474
+ Figure 12. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $5\%$ and an observation standard deviation of 0.001. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
475
+
476
+ ![](images/321ba6aa708736c315dcbe5ae2b28046a6450501086e07f92561af2d125d01d5.jpg)
477
+
478
+ ![](images/7aaafe369af612b44a11028486da57b205e141fb68641a2fc8bba9f4506b6dea.jpg)
479
+
480
+ ![](images/865f94d0a4b6de0d08c90b4896539393e65857bb7e92ec466b6a6972b116c3ad.jpg)
481
+
482
+ ![](images/5415a7419b69ac687c32b57c77307f84ff4486440d26654a479517ccaea4240f.jpg)
483
+
484
+ ![](images/ba03a6528772ab1a6460cf13ce2ca2a892afbd2ec4c6b61796cad5f1d014734e.jpg)
485
+
486
+ ![](images/16a4c674ae99c7297287295a19cd13873e50a76295393e36410f39a53c15737e.jpg)
487
+
488
+ ![](images/e8c2f000631f7c1c38085ec89ca303eb4b18d93c79a4e2718dac6b85d5f7903f.jpg)
489
+
490
+ ![](images/4b5b27932f05d4a8f6b2bb6817ae694624547338284f4e3c6986efef511450e7.jpg)
491
+
492
+ ![](images/c0196fad1f6042e768e3e351fae4fb7b6a3af1f74ce8d7d7ea7fcd133c139e75.jpg)
493
+
494
+ ![](images/d0777f1612475d06db1c0d2d9a1b0e4d06751f15297d7468d3b3c1ac03b6e496.jpg)
495
+
496
+ ![](images/991ce6fe802a2b6cb80d81e67e3d4ebd142aaaa0cbadbdd152cb6d81d2eb87cb.jpg)
497
+
498
+ ![](images/8d453bb98cdbf7f8180df06738f8a34a9074fae122b954335b2fc8dde967ce0e.jpg)
499
+ Figure 13. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $15\%$ and an observation standard deviation of 0.003. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
500
+
501
+ ![](images/cd3b110ba120c179320c25914541b2eafb4f4dd84ebacb881bb67acd0ed8c306.jpg)
502
+
503
+ ![](images/fea1aadafa6fb36415d2a1c825ed7b3a13e8a2a9f3df93d9885580cd2f85c767.jpg)
504
+
505
+ ![](images/f337bd093d7cac8179c291d8a613e6efe5d7f1f4ea7f00853d5aec13cf247f56.jpg)
506
+
507
+ ![](images/a87d4d8af1cbfc47fbc2d8653e327163e978c717492f8d73070f3e0b9468eb73.jpg)
508
+
509
+ ![](images/cc97f02a4d5a8bfbede70def2d3ac8de7072a5e69013c57e79114c5d32621e96.jpg)
510
+
511
+ ![](images/b10a08c076d4c3f6521bd3c8d818fb65880cf0fc8ac055f99adc1f0afdcef367.jpg)
512
+
513
+ ![](images/e234ee7492091be4f6a4a5071e5d94d2c518b60c00c2805c34f859ab862b56de.jpg)
514
+
515
+ ![](images/a1c17ba2c9a778296a56a5179ae352c005cffa2b7c3e80427d8582fe5979d3ab.jpg)
516
+
517
+ ![](images/cdeb70549126f5cf228d2ab005e96110529c061851664058d213e55d344a7fd7.jpg)
518
+
519
+ ![](images/7fcc88ed0bdbdbb38fd835dca5492c7d0f6d1f45609d01243ab78f9be6fe4ce4.jpg)
520
+
521
+ ![](images/8ec3838294fea367af8cbb1a9b22c4ef5af226204789dc09554766a2b53a6162.jpg)
522
+
523
+ ![](images/9eaf543cd1008dd9d6e860290233df45ee0ed4d54be0cb6454ed25255b19884c.jpg)
524
+ Figure 14. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $15\%$ and an observation standard deviation of 0.005. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
525
+
526
+ ![](images/c0316a0c59592d2116a007f6d2e3cba1632f3130984272827547c93dbe94f5ff.jpg)
527
+
528
+ ![](images/73946f78c5f565e407a5129d9eaf088c58c60d4b8d292e2342f32cf26c7085b7.jpg)
529
+
530
+ ![](images/064146206c23d35d02c1276c9fd8e1dc741833859e05bf03e7ad045a38b020df.jpg)
531
+
532
+ ![](images/e4e608bde17dca44e3b93c714dea5865c052bdf6c9da42204808779cd88cec50.jpg)
533
+
534
+ ![](images/18f98c537e41ce74957fca75ded3475edfb20264e6939ab7d0e9fb1c86ad9c8d.jpg)
535
+
536
+ ![](images/d47d63d50241d89dee138837529a396c0a7c67988b6275e1f1da145d77c9995b.jpg)
537
+
538
+ ![](images/6fbad30209f17e66c8aa0e4379fff258c689b560540331b4a93271f643b11305.jpg)
539
+
540
+ ![](images/4b8cb58c8d536208f77f95cf5cdae709dccd5ed5d71ba60054419ef1c252ebf1.jpg)
541
+
542
+ ![](images/d1aa7fce0b56586e806f6010154bceb164d0b69caa432311eea93c6890a5544b.jpg)
543
+
544
+ ![](images/1358e46cf95422abeb3c6abc1d3cc36c004d18ca2708c63afe912088e879af7b.jpg)
545
+
546
+ ![](images/20f1461ad9bd1cfa106ec4817c373f38e794c010bd5eb344ac85c5aa901c8b8b.jpg)
547
+
548
+ ![](images/c3bfcd534dc350ca2951a05d0e966e3c2b544ce909f24390b483a563dcf961fe.jpg)
549
+ Figure 15. Cyclic forecasting results of FengWu-4DVar with an observation proportion of $15\%$ and an observation standard deviation of 0.01. The x-axis in each sub-figure represents lead time, at a 6-hour interval over a one-year lead time. The y-axis represents RMSE and Bias.
550
+
551
+ ![](images/9ae94c73194319b03c93123a6835f0b17eb7e4b7dfd88a0a418bb8cbf9533aef.jpg)
552
+
553
+ ![](images/9cd8a9870c8ba2675b0676bc6dcf45cb22c153c37c1193d0f1982c3b3df7a680.jpg)
554
+
555
+ ![](images/b93ee04f3a505f7706575db93f46520b05f83f0aadb1f181eb9d403968efaa5c.jpg)
556
+
557
+ ![](images/5c3dcf5ab94fcf2ace9e1fd4764c1e16cdde09025cf3ff2068363517d4825083.jpg)
558
+
559
+ ![](images/9752f2cea4b9ba892626956e7ab82259d97c285eed8b5a0bc04a8ef65bf3705f.jpg)
560
+
561
+ ![](images/439a185f662e9e90f6183077ea8de74a857d998ed2599eb9eeb24c7738c41a6c.jpg)
562
+
563
+ ![](images/9e3beeeadf288921df7a7c70ffddfa5bc8e78454206101c0ba6de4c46e8de59c.jpg)
564
+
565
+ ![](images/ed878a941ae526379d256d78e67ede6c64327eb0f631c68223b79720fd0fac8d.jpg)
566
+ Figure 16. Forecast skills of FengWu-4DVar's analysis fields and IFS's analysis fields. The analysis fields of FengWu-4DVar are generated with an observation proportion of $15\%$ and an observation standard deviation of 0.01. The x-axis in each sub-figure represents the lead time of forecasting, at a 6-hour interval over a one-week period. The y-axis indicates the RMSE, averaged over the analysis fields for the entire year.
567
+
568
+ ![](images/26204bbcbd625e1363dc4581ed9946dd18c32d3b7ec4f090da8b2b1c41508904.jpg)
569
+
570
+ ![](images/f8eda62941b686c7d48a11685face5a0c410cfffee16b5abc669c65daca41efb.jpg)
571
+
572
+ ![](images/5092131e1c25d305edfa68f9c8028c8537aeb7062a8111f12a7f2da682dd44cc.jpg)
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9e696336dbfd7f2ee3d57d4abccb9d1a09f79881968e87a2e52555d6e953cb1d
3
+ size 2192986
2024/Towards a Self-contained Data-driven Global Weather Forecasting Framework/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/d542e768-1743-45a2-9be5-d2eca62b2737_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:303948738d75fddd33a4d6bf052fc5947f6e666e0ffb204805bad34d20dca238
3
+ size 8397898
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/full.md ADDED
@@ -0,0 +1,536 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards an Understanding of Stepwise Inference in Transformers: A Synthetic Graph Navigation Model
2
+
3
+ Mikail Khona $^{12}$ Maya Okawa $^{2}$ Jan Hula $^{3}$ Rahul Ramesh $^{4,2}$ Kento Nishi $^{5,2}$ Robert Dick $^{6}$ Ekdeep Singh Lubana* $^{5,6}$ Hidenori Tanaka* $^{2,5}$
4
+
5
+ # Abstract
6
+
7
+ Stepwise inference protocols, such as scratchpads and chain-of-thought, help language models solve complex problems by decomposing them into a sequence of simpler subproblems. To unravel the underlying mechanisms of stepwise inference we propose to study autoregressive Transformer models on a synthetic task that embodies the multi-step nature of problems where stepwise inference is generally most useful. Specifically, we define a graph navigation problem wherein a model is tasked with traversing a path from a start to a goal node on the graph. We find we can empirically reproduce and analyze several phenomena observed at scale: (i) the stepwise inference reasoning gap, the cause of which we find in the structure of the training data; (ii) a diversity-accuracy trade-off in model generations as sampling temperature varies; (iii) a simplicity bias in the model's output; and (iv) compositional generalization and a primacy bias with in-context exemplars. Overall, our work introduces a grounded, synthetic framework for studying stepwise inference and offers mechanistic hypotheses that can lay the foundation for a deeper understanding of this phenomenon.
8
+
9
+ # 1. Introduction
10
+
11
+ Transformers, the backbone of large language models (LLMs), have revolutionized several domains of machine learning (OpenAI, 2023; Anil et al., 2023; Gemini et al., 2023; Touvron et al., 2023). An intriguing capability that
12
+
13
+ *Equal contribution 1Massachusetts Institute of Technology 2NTT Physics and Informatics Lab 3Czech Technical University in Prague and the University of Ostrava 4University of Pennsylvania 5Center for Brain Science, Harvard University 6University of Michigan. Correspondence to: Mikail Khona <mikail@mit.edu>, Ekdeep Singh <eslabana@umich.edu>, Hidenori Tanaka <hidenori.tanaka@fas.harvard.edu>.
14
+
15
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
16
+
17
+ (a)
18
+ ![](images/e29b7628b06104ac8b84ed42f905d3b55169441e5c5de17d0d4b2e71cfbb88ab.jpg)
19
+ "Consider a Tower of Hanoi problem with three rods. At start, Rod A has two disks with radius 3 and 1; Rod B has a disk of radius 2. The goal is to move all disks to rod C. Think step-by-step."
20
+
21
+ ![](images/e95601a6cf154575a34bc4f1a61c64a5e76e63ba87a87d1233d0d4768a5c1b52.jpg)
22
+ Figure 1. Examples of stepwise inference protocols and how they can be cast as a graph navigation problem. (a) Zero-shot chain-of-thought (Kojima et al., 2022) involves asking a model to produce intermediate outputs to perform complex multi-step computations, such as solving the Tower of Hanoi problem. Casting the configurations of the rods in Tower of Hanoi as nodes of a graph, we can see that the problem is essentially traversal over states describing different configurations of the setup to reach the desired configuration (the goal state). (b) Scratchpad (Nye et al., 2021) improves LLMs' ability to perform complex multi-step computations, such as arithmetic, when they write intermediate computation steps to a buffer called a scratchpad.
23
+
24
+ emerges with training of Transformers on large-scale language modeling datasets is the ability to perform stepwise inference, such as zero-shot chain-of-thought (CoT) (Kojima et al., 2022), use of scratchpads (Nye et al., 2021), few-shot CoT (Wei et al., 2022), and variants of these protocols (Creswell et al., 2022; Yao et al., 2023; Besta et al., 2023; Creswell & Shanahan, 2022; Press et al., 2022). Specifically, in stepwise inference, the model is asked to or shown exemplars describing how to decompose a broader problem into multiple sub-problems. Solving these sub-problems in a step-by-step manner simplifies the overall task and significantly improves performance (see Fig. 1). Arguably, stepwise inference protocols are the workhorse behind the "sparks" of intelligence demonstrated by LLMs (Bubeck et al., 2023; Suzgun et al., 2022; Lu et al., 2023; Huang & Chang, 2022)—yet, their inner workings are poorly understood.
25
+
26
+ Motivated by the above, we aim to design and study an abstraction which enables a precise understanding of stepwise inference in Transformers. Specifically, we argue that tasks which see maximum benefit from stepwise inference
27
+
28
+ can be cast as a graph navigation problem: given an input describing the data to operate on and a goal to be achieved, a sequence of primitive skills (e.g., ability to perform arithmetic operations) is chained such that each skill acts on the previous skill's output, ultimately to achieve the given goal. If the input data, the final goal, and the sequence of intermediate outputs are represented as a sequence of nodes of a graph, along with primitive skills as edges connecting these nodes, the overall task can be re-imagined as navigating nodes of the graph via the execution of primitive skills. Several logical reasoning problems come under the purview of this abstraction (LaValle, 2006; Cormen et al., 2022; Momennejad et al., 2023; Dziri et al., 2023; Saparov & He, 2023): e.g., in Fig. 1a, we show how the problem of Tower of Hanoi can be decomposed into simpler sub-problems. See also Appendix B for several more examples.
29
+
30
+ This work. We design a suite of graph navigation tasks wherein a Transformer is trained from scratch to predict whether two nodes from a well-defined graph can be connected via a path ${}^{1}$ . The model can generate intermediate outputs to solve the task, i.e., if it can generate a sequence of nodes to infer a path connecting the two nodes. In other settings exemplars demonstrating navigation paths connecting different graphs are provided. Our framework assumes that the model has to only produce nodes on the graph, edges, which can be abstractly thought of as "skills", are implicit, and their existence is inferred during evaluation through successive nodes generated by the model. This is justified because a skill-based failure is the most trivial mechanism via which stepwise inference protocols can fail; in contrast, inability to plan is an independent and underexplored axis for understanding stepwise inference. Overall, we make the following contributions.
31
+
32
+ - A Framework for Investigating Stepwise Inference. We propose a synthetic graph navigation task as an abstraction of scenarios where stepwise inference protocols help Transformers improve performance, showing that we can replicate and explain behaviors seen with use of stepwise inference in prior work. For instance, the structure of the data generating process (the graph) impacts whether stepwise inference will yield any benefits (Prystawski & Goodman, 2023). We identify further novel behaviors of stepwise inference as well, such as the existence of a tradeoff between diversity of outputs generated by the model and its accuracy with respect to inference hyperparameters (e.g., sampling temperature).
33
+ - Demonstrating a Simplicity Bias in Stepwise Inference. When multiple solutions are possible for an input, we demonstrate the existence of a simplicity bias: the model prefers to follow the shortest path connecting two
34
+
35
+ nodes. We assess this result mechanistically by identifying the underlying algorithm learned by the model to solve the task, showing the bias is likely a consequence of a "pattern matching" behavior that has been hypothesized to cause LLMs to fail in complex reasoning problems (Dziri et al., 2023).
36
+
37
+ - Controllability via In-Context Exemplars. We show the model's preferred path to navigate between two nodes can be controlled via use of in-context exemplars. We use this setup to evaluate the model's ability to generalize to paths of longer length and the influence of exemplars which conflict with each other, i.e., that steer the model along different paths.
38
+
39
+ # 2. Stepwise Inference as Graph Navigation
40
+
41
+ In this section, we define our setup for studying how stepwise inference aids Transformers in solving complex reasoning problems. Specifically, we define a graph navigation task wherein, given a start and a goal node, a Transformer is autoregressively trained to produce a sequence of nodes that concludes at the goal node. In our experiments, we consider two scenarios: one where in-context exemplars are absent (see Fig. 2a) and another where they are present (see Fig. 2b). The former scenario emulates protocols such as the scratchpad and zero-shot Chain of Thought (CoT) (Kojima et al., 2022; Nye et al., 2021), while the latter models few-shot CoT (Wei et al., 2022). In Section 2.1, we set up our experiment to explore these two scenarios. In the subsequent sections, we explicitly analyze the benefits of stepwise inference in both scenarios: without in-context exemplars (Section 2.2) and with in-context exemplars (Section 2.3). We refer the reader to a detailed related work on stepwise inference protocols in Appendix A and further discussion on graph navigation as a model of stepwise inference which is in Appendix B.
42
+
43
+ # 2.1. Preliminaries: Bernoulli and Hierarchical DAGs
44
+
45
+ We use directed acyclic graphs (DAGs) to define our graph navigation tasks. DAGs are a natural mathematical abstraction to study multi-step, logical reasoning problems: e.g., as discussed in Dziri et al. (2023), the output of any deterministic algorithm can be represented as a DAG. Specifically, a DAG is defined as $G := (N, E)$ , where $N := \{X_i\}_{i=1}^{|N|}$ denotes the set of nodes in the graph and $E := \{(X_i, X_j)\}_{X_i, X_j \in N}$ denotes the set of directed edges across the nodes. The edges of a DAG are captured by its adjacency matrix $A$ , where $A_{ij} = 1$ if $(X_i, X_j) \in E$ . A directed simple path is a sequence of distinct nodes of $G$ which are joined by a sequence of edges. If two nodes are connected via a directed simple path, we call them path-connected. The first node of a path is referred to as the start node, which we denote as $X_s$ , and the last node as the goal
46
+
47
+ ![](images/29562933be4a535a982575d969dfdf95addcaefb3e1792a2de1b1c736595c56c.jpg)
48
+
49
+ 2. Sample paths from start to goal
50
+ 3. Represent the path in task format
51
+ 4. Repeat this process for other (start,goal) node pairs
52
+ Figure 2. Data generating process. (a) In absence of exemplars. This figure illustrates the step-by-step process of generating a training dataset using a single underlying graph. 1) A directed acyclic graph (DAG) is generated, which can be either hierarchically structured or Bernoulli. 2) A start node and a goal node are selected. 3) All possible paths connecting the start and goal nodes are sampled, and one path is randomly selected. 4) The chosen path is then represented in a task-specific format. (b) In presence of exemplars. The process of generating a training dataset by combining multiple subgraphs (motifs) involves the following. (1.) Start by building a set of Bernoulli directed acyclic graphs (DAGs). (2.) Pick a subset of $K$ of these DAGs $\{g_{i_1}, g_{i_2}, \dots, g_{i_K}\}$ and connect them together using "ghost edges" to create a chain of motifs $g_{i_1} \mapsto g_{i_2} \mapsto \dots \mapsto g_{i_K}$ . (3.) Sample exemplars from every pair of motifs that have been connected by a ghost edge to construct the context. (4.) Now choose a start node $X_s \in g_{i_1}$ and a goal node $X_g \in g_{i_K}$ and construct a sequence passing through the whole chain of motifs.
53
+ ![](images/7bbaa4ffae60e889e0398b0a3061b36a51db94bf48c9d3c74021e66dab8474af.jpg)
54
+ goal: $X_{2}X_{4}X_{3}X_{6}X_{2}\mathsf{P}_{1}$ goal: $X_{9}X_{8}\mathsf{P}_{0}$
55
+
56
+ ![](images/e897042190649a5bdacc8c4350ae78e5b23da7e97640628989fd9a477d0c951b.jpg)
57
+ (b) 1. Generate a set of random Directed Acyclic Graphs (DAGs)
58
+ 2. Connect Motifs with ghost edges to sample exemplars
59
+ 3. Stitch motifs with in-context exemplars
60
+
61
+ ![](images/cb0cc7214a5b3a2da04b8333a544a80cdc728a38e5235b7ff2af495755369f9c.jpg)
62
+ goal: $X_{61}$ $X_{45}X_{31}$ $X_{15}X_{26}X_{35}X_{99}X_{14}X_{8}X_{60}X_{10}X_{18}X_{28}X_{77}X_{28}X_{77}X_{61}$
63
+
64
+ ![](images/6f2b803a5ce1850d958096c7954e24540d4538051cff48b8af292d0a1a8fdbb0.jpg)
65
+ 4. Prompt model to perform inference with context
66
+
67
+ # node, which we denote as $X_{g}$
68
+
69
+ We briefly discuss the process of construction of DAGs used in our work and how paths are sampled from them; a more thorough description is provided in Appendix C.1. We define a Bernoulli DAG of $N_B$ nodes, whose adjacency matrix has an upper triangular structure with Bernoulli entries with edge density $p$ , such that $p(A_{ij} = 1) = p$ . We also define a hierarchical DAG, wherein the nodes follow a feedforward, layered structure such that all $N_H$ nodes at a given layer are only connected to nodes in the following layer (see Fig. 2a). In particular, for every node $n_l$ in layer $l$ and $n_{l + 1}$ in layer $l + 1$ , we draw a directed edge $(n_l, n_{l + 1})$ with probability $p$ , which we refer to as edge density. On average, between any two layers of a hierarchical DAG, there are $pN_H^2$ edges and each node in an intermediate layer has an out-degree and in-degree of $pN_H$ . The number of paths from a particular node in layer $l$ to layer $l' > l$ is exponential and given by $(pN)^{l' - l}$ , while for Bernoulli DAGs, it is bell-shaped; this is quantified in the path length distribution shown in Appendix Fig. 11. For both graph structures, source nodes are nodes that do not have any parent nodes, and the nodes that do not have any children nodes are sink nodes. We use rejection sampling to ensure that graphs are connected.
70
+
71
+ # 2.2. Modeling stepwise inference without exemplars
72
+
73
+ Zero-shot CoT (Kojima et al., 2022) and scratchpads (Nye et al., 2021) represent two examples of stepwise inference protocols that do not rely on exemplars. For instance, in the zero-shot CoT approach, the input of the model is augmented with the phrase let's think step by step. This encourages the model to generate outputs that elaborate on the intermediate steps required to solve the target problem, thereby enhancing accuracy by breaking down the target problem into several simpler problems.
74
+
75
+ To compare the model's performance with stepwise inference and without stepwise inference (i.e., direct inference), we create two datasets: one including intermediate steps and the other without them. Each dataset is subsequently used to train distinct models. During the test phase, we present these trained models with pairs of nodes and task them to determine the existence of a path between the nodes. A model's performance is assessed based on its accuracy in classifying whether a path exists.
76
+
77
+ Fig. 2a shows how we generate the datasets above. First, we define a DAG denoted as $G$ . Within this graph, for each dataset instance, we sample a start node $X_{s}$ and a goal node $X_{g}$ and then identify all feasible paths between these two nodes. From the identified paths, we select one to form a
78
+
79
+ sequence of tokens, $S$ . This procedure is iterated for other node pairs within the graph $G$ to compile the complete dataset. For the dataset with stepwise inference, we use all the intermediate steps, including the start node $X_{s}$ and the goal node $X_{g}$ , to form $S$ . For the dataset without stepwise inference (i.e., direct inference), we only use the start node $X_{s}$ and the goal node $X_{g}$ . We introduce a binary variable path $\in \{\mathfrak{p}_1, \mathfrak{p}_0\}$ to denote whether there is a path between the start and goal nodes. We append the 'path' token $\mathfrak{p}_1$ to the end of the sequence $S$ if there is at least one path between the start and goal nodes; otherwise, we append the 'no path' token $\mathfrak{p}_0$ .
80
+
81
+ Example: For the example path in Fig. 2a, in the dataset with stepwise inference, the sequence of tokens $S$ includes the intermediate steps and takes the form goal: $X_{2}X_{4}X_{3}X_{6}X_{2}\mathfrak{p}_{1}$ . For the dataset without stepwise inference (i.e., direct inference), the sequence $S$ does not contain intermediate steps and has the form goal: $X_{2}X_{4}\mathfrak{p}_{1}$ .
82
+
83
+ # 2.3. Modeling stepwise inference with exemplars
84
+
85
+ Here we examine the influence of stepwise inference on model performance when in-context exemplars are present. This scenario is prominently exemplified by protocols based on few-shot CoT prompting (Wei et al., 2022; Creswell et al., 2022). Specifically, we extend the setup with a single DAG described in Section 2.2 by incorporating a set of DAGs, which we call motifs. The data generation process is shown in Fig. 2b. First, we generate a set of $n$ Bernoulli DAGs denoted by $\widehat{g} = \{g_i\}_{i=1}^n$ and randomly select a subset of $K$ motifs from this set $\{g_{j_1}, g_{j_2}, \ldots, g_{j_K}\} \subset \widehat{g}$ . Then, we add edges between the sink node of each motif $g_{j_k}$ and the source node of the subsequent motif $g_{j_{k+1}}$ , forming a chain of motifs $g_{i_1} \mapsto g_{i_2} \mapsto \dots \mapsto g_{i_K}$ . These interconnecting edges are termed ghost edges. We sample paths from each pair of motifs linked by a ghost edge to establish the context. We select a start node from the sink nodes of one motif, $X_s \in g$ , and a goal node from the source nodes of a different motif, $X_g \in g'$ , then sample a path between them, denoted as $e_{gg'}$ . This procedure generates a sequence of nodes spanning across motifs, $g \to g'$ , including exactly one ghost edge. We refer to this as an exemplar sequence and use them as in-context samples. Exemplars to model few-shot CoT are represented as $e_{gg'}$ and denote a exemplar sequence from the motif-pair $g \to g'$ . Finally, we select a start node $X_s \in g_{i_1}$ and a goal node $X_g \in g_{i_K}$ . We then prompt the model to either directly output a path that connects the node pair $X_s$ and $X_g$ , or to provide exemplars demonstrating traversal between motifs within the specified context. Recall that our graph is constructed from a combination of $K$ motifs. For the training dataset, we intentionally exclude $20\%$ of the combinations. For the test dataset, we randomly select motifs from the remaining combinations
86
+
87
+ in $\widehat{g}$ , and sample sequences that illustrate how to navigate between two nodes within this graph. From training data, a model can learn the structure and interconnections of motifs; yet, during testing, it faces unseen combinations of these motifs. Correspondingly, the model must use the context to infer the overall structure of the graph. In essence, an in-context exemplar tells the model which motifs are connected via ghost edges and hence can be navigated between.
88
+
89
+ Example: We directly study the path of navigation outputted by the model in this setup, i.e., no special tokens are used. A sample is constructed by selecting motifs to define in-context exemplars, say $g_{i_1}, g_{i_2}, g_{i_3}$ . For every successive pair of motifs, we construct an exemplar and put them together to create the context. To do this, we select two (start, goal) pairs: $X_{s_1} \in g_{i_1}$ , $X_{g_1} \in g_{i_2}$ and $X_{s_2} \in g_{i_2}$ , $X_{g_2} \in g_{i_3}$ . We sample exemplar sequences starting and ending at these node pairs: one sequence from $g_{i_1}$ to $g_{i_2}$ , goal: $X_{g_1}X_{s_1}X_1 \ldots X_{k_1}X_{g_1}$ , and another from $g_{i_2}$ to $g_{i_3}$ , goal: $X_{g_2}X_{s_2}X_1' \ldots X_{k_2}'X_{g_2}$ . These sequences act as exemplars to be provided in context to the model when it is shown an input. The number of exemplars can vary from two to four, which correspond to chains of motifs of length three to five. The input itself is defined by choosing a goal node $X_g \in g_{i_3}$ , a start node $X_s \in g_{i_1}$ , and a path through an intermediate node $X_{\text{inter}} \in g_{i_2}$ ; e.g., goal: $X_gX_sX_1'' \ldots X_{\text{inter}} \ldots X_{k_1}'X_{g_3}$ . Here, $X_sX_1'' \ldots X_{\text{inter}}$ is a path between motifs $g_{i_1}$ and $g_{i_2}$ , while $X_{\text{inter}} \ldots X_k''X_{g_3}$ is a path between motifs $g_{i_2}$ and $g_{i_3}$ . When exemplars are not provided, the model must rely on its internalized knowledge to infer whether there exist two connected motifs that can be used to move from the start to goal node. The context exemplars simplify the problem by telling the model the motifs above are connected.
90
+
91
+ # 3. Results: Stepwise Navigation
92
+
93
+ In this section, we discuss findings on how stepwise inference affects the model's ability to solve problems. We investigate two scenarios: in the absence of in-context exemplars (Section 3.1) and in the presence of them (Section 3.2). For all experiments, unless stated otherwise, we use a 2-layer Transformer defined by Karpathy (2021) to mimic the GPT architecture (Brown et al., 2020). For more details on the experimental setup, please refer to Appendix C.3 for model architecture details and Appendix D for training data generation and train/test split.
94
+
95
+ # 3.1. Navigation without exemplars
96
+
97
+ We assess the performance of the model by evaluating its ability to classify whether there is a path given a pair of nodes during the test phase. Specifically, we randomly sample pairs of start and goal nodes that were not seen in the training data and observe whether the model outputs
98
+
99
+ ![](images/6e1443d507373ac2d05cfedb126694c49b4c50576eec98beda82f680fafbe6e7.jpg)
100
+
101
+ ![](images/2aacae941a387f61b168e7b6801710de0d1e8d904db024b3ce79a76a5bbccbd7.jpg)
102
+
103
+ ![](images/287907663cbc00ca0e4b3d1bbc023c4d1c3fbaed302ad67875dc9c4f684e4a5b.jpg)
104
+ Figure 3. Advantage of stepwise inference in graph navigation tasks and stitching: (a) In the Bernoulli DAG, stepwise inference demonstrates an advantage over direct inference in predicting whether given node pairs are connected. (b) This advantage is further pronounced in hierarchical DAGs, where the distances between nodes are greater than in Bernoulli DAGs. (c) The stepwise inference gap arises when to generalize, the model has to flexibly recombine (sub)paths seen over pretraining, which we refer to as stitching. (d) The stepwise inference is beneficial when the model must connect paths seen during training: the red, green, and blue paths represent subsets of paths seen during training; we find the model produces paths that combine these subsets during the test phase.
105
+
106
+ ![](images/07687ed3274ce00a3dcd784d1176620b04a6fb7af01998aef51d26d97c39a807.jpg)
107
+ Figure 4. Diversity vs. accuracy trade-off for different sampling temperatures of the Transformer model: As the sampling temperature increases, the diversity of paths generated by the model also increases, while the accuracy decreases. This tradeoff is captured by measuring the number of unique valid paths (top panel), indicating that there is an optimal temperature for sampling. The dashed line represents the ground truth path diversity.
108
+
109
+ either the 'path' token $p_1$ or the 'no path' token $p_0$ .
110
+
111
+ # 3.1.1. STEPWISE INFERENCE GAP
112
+
113
+ Fig. 3 shows the accuracy of classifying 'path' or 'no path' for two different types of graphs: a Bernoulli graph and a hierarchical graph. We observe that for both types of graphs, the use of stepwise inference significantly improves the model's performance compared to direct inference, with more pronounced improvements noted for the hierarchical graph. Following Prystawski & Goodman (2023), we refer to the improvement in performance observed between stepwise inference and direct inference as the "stepwise inference gap". We even simulate the effect of noisy or ambiguous real-world labels by introducing random corruptions into the tokens and found that the results above continue to hold, as detailed in Appendix Fig. 14.
114
+
115
+ To further probe the results above, we control for path lengths in the hierarchical graph. Specifically, to set the maximum path length in the training data to $\Delta$ , we choose a starting layer $l$ and a goal layer $l'$ such that $l' - l < \Delta$ . Then, we sample starting nodes from layer $l$ and goal nodes from layer $l'$ . For the test data, we select node pairs with $l' - l \geq \Delta$ . Results are shown in Fig. 3(c). We plot the classification accuracy across various values of $\Delta$ and observe that the smaller the value of $\Delta$ , the greater the stepwise inference gap becomes. We hypothesize this happens be
116
+
117
+ ![](images/ab201e3e541097ef66dd7bd9797f989ec2c14929f1053f1fbddd96bebe76d37c.jpg)
118
+
119
+ cause when the training data only includes short paths, the model needs to more effectively 'stitch' the paths observed during training, which, as a recursive task, is more feasible via stepwise inference.
120
+
121
+ # 3.1.2. DIVERSITY-ACCURACY TRADEOFF WITH HIGHER SAMPLING TEMPERATURES
122
+
123
+ Here, we investigate how the sampling temperature of the autoregressive Transformer affects the diversity of the generations produced by the model and its accuracy. To this end, we fixed the start and goal nodes and prompted the model 3,000 times, varying the sampling temperatures from 0.0 to 3.0. We define accuracy as the probability that a generated path consists of valid edges and correctly terminates at the designated goal node. Diversity is defined as the number of unique paths generated. As shown in Fig. 4, there is a clear trade-off between the diversity of the paths generated by the model and their accuracy. We term this phenomenon the diversity-accuracy tradeoff: at lower sampling temperatures, the model generates fewer but more accurate and valid paths; in contrast, higher sampling temperatures result in greater path diversity but reduced accuracy. Our result provides the first explicit demonstration of a trade-off between the accuracy and diversity of Transformer outputs. To the best of our knowledge, this phenomena has not been quantitatively studied before.
124
+
125
+ # 3.1.3. PREFERENCE FOR SHORTER PATHS
126
+
127
+ Note that there are multiple possible paths the model can choose from in the pursuit of inferring a path that connects a start and goal node. We showed that by increasing the
128
+
129
+ ![](images/ba2912eff5b5693eeecb70afb574bc2088ca16815c5be1402536e0a8533deb9c.jpg)
130
+ Figure 5. Model outputs are biased toward shorter paths. Comparing the average lengths of ground-truth paths for a specific set of node pairs and the paths produced by the model for these same pairs in the Bernoulli DAG, we observe that the model tends to generate shorter paths than the actual ones. This observation points to a "simplicity bias" in the trained model towards favoring shorter over potentially more accurate or realistic paths.
131
+
132
+ sampling temperature, a diverse set of paths can be generated; however, by default, which path does the model prefer? To evaluate this, we compare the true path lengths in the Bernoulli graph between nodes in the test set with those generated by trained model. In Fig. 5a, we observe that the model consistently produces paths that are shorter, on average, than the paths in the ground truth DAG. This observation suggests that the model exhibits a simplicity bias; this finding is likely an architectural bias of the transformer trained with gradient descent since it is not present in the training data. However, simplicity biases have been shown to yield oversimplification of a problem, forcing a model to learn spurious features (Shah et al., 2020; Lubana et al., 2023). In the context of stepwise inference, this can amount to omission of important intermediate steps, similar to 'shortcut solutions' arising from pattern-matching behaviors discussed in prior work on Transformers (Liu et al., 2022; Dziri et al., 2023).
133
+
134
+ # 3.1.4. EVOLUTION OF FAILURES IN STEPWISE INFERENCE OVER TRAINING
135
+
136
+ In the above discussion, we evaluated how stepwise inference assists a model in successfully completing a complex, multi-step task. We now assess how it fails. Specifically, assume that for a given graph $G$ , the model produces a sequence of nodes $X_{s}X_{1}\ldots X_{k}\ldots X_{t}$ starting at the start node $X_{s}$ . Following (Saparov & He, 2023; Momennejad et al., 2023), we define two categories of potential failures.
137
+
138
+ - Misstep $(X_{k}, X_{k + 1}) \notin G$ : An edge produced by the model does not exist in the DAG ("hallucinations").
139
+ - Planning failure $X_{t} \neq X_{g}$ : The model produces a path
140
+
141
+ ![](images/ea5b97d1dfbf67c139c601617168237428e4333acba66f1987d59c8911acebee.jpg)
142
+ Figure 6. Learning dynamics for two failure modes: misstep and planning failure. Given the model-generated path in the stepwise inference protocol, we measure the probability of missteps and planning failures in the model's outputs. A misstep refers to an instance where the model generates an edge that is not present in the graph, while a planning failure means that the model outputs a path that fails to reach the intended goal node. Initially, the model learns to avoid missteps. Subsequently, around the $200^{\text{th}}$ optimization step, it begins to effectively learn planning. The accuracy curves are averaged over three models, each trained with a distinct random seed.
143
+
144
+ that does not terminate at the goal node.
145
+
146
+ In Fig. 6, we examine the learning dynamics for each failure mode. The figure indicates that the model initially acquires the skill to circumvent missteps (the blue line). Subsequently, it develops the ability to plan effectively, which is shown by a decrease in planning failures (the red line). By integrating these abilities—avoiding missteps and minimizing planning failures—the model is finally able to generate accurate paths for node pairs not seen during training.
147
+
148
+ # 3.1.5. MECHANISTIC BASIS OF THE LEARNED GRAPH NAVIGATION ALGORITHM
149
+
150
+ Our results above elicit several intriguing behaviors attributable to stepwise inference. We next take a more mechanistic lens to explain why these behaviors possibly occur. We hypothesize that the model learns embeddings for the nodes of the graph that enable easy computation of an approximate distance measure. This suggests that to move closer to the goal node, one can simply transition to the node that exhibits the least distance from the goal node. For the detailed intuition guiding our analysis, see Appendix F.
151
+
152
+ To verify this, we first strip the model down to a single-head, self-attention layer. We visualize the attention scores for this minimal model in Fig. 7a, observing they are concentrated on the goal node and the current node. This suggests that the model utilizes only the embedding values of the goal $X_{g}$ and the current nodes $X_{\mathrm{current}}$ to select the next token. Inspired by this observation, we develop a simplified algorithm that mimics the behavior of the model,
153
+
154
+ ![](images/33aa31dfdc683b1db7e95db4958ae07d7b3186ae5b0f11d46d5cdb53f92fc118.jpg)
155
+
156
+ ![](images/4ea4cff17619b4dda8b7b9fa56441eac1c11e9bb0044f6ec7ee68ee89f996d7c.jpg)
157
+
158
+ ![](images/6f58582ed8ecae2590da1e56ec134d65d0d678b641e9a23f80bffc594043786e.jpg)
159
+
160
+ ![](images/36a2eaa06ba95e2cff71a08042747346f03a8c7f6904a2037907e7a54863bc6d.jpg)
161
+
162
+ ![](images/52591ed6507f6b202fdc8b0df5706ea4a3024402db91b59ac1ff381c0f7c1ac2.jpg)
163
+ Figure 7. Mechanistic analysis of the graph navigation algorithm: Emergent linear representation. (a) Attention maps from the 1-layer, attention-only Transformer, highlighting the model's attention on the goal token $X_{g}$ and the current token $X_{\mathrm{current}}$ . (b) Steps of our simplified algorithm that emulates the 1-layer, attention-only Transformer are as follows. (1.) We extract value embeddings for $X_{g}$ and $X_{\mathrm{current}}$ , ignoring other tokens for simplicity. (2.) Next, we compute the value embeddings of the goal $v_{g}$ and current $v_{\mathrm{current}}$ nodes and add them together $v = v_{g} + v_{\mathrm{current}}$ . (3.) We then compute the token embedding with the highest inner product with $v$ , approximating the token that receives the highest logit score after the single forward pass. (c) Comparison of the model's accuracy on a set of 500 held-out node pairs $(X_{s}, X_{g})$ using our simplified algorithm $(99.8\%)$ versus the full trained model $(99.6\%)$ . (d) The paths generated by the simplified algorithm almost exactly match the paths generated by the full trained model. Path similarity on 2000 held-out node pairs was compared by measuring the Levenshtein edit distance (Navarro, 2001) between paths generated by the full trained model and the simplified algorithm for the same $(X_{s}, X_{g})$ pairs. (e) The short path bias can be attributed to the inner products between the token embedding of the next chosen token $X_{\mathrm{next}}$ and the value embedding of $X_{g}$ and $v_{g}$ . We observe that nodes $X_{\mathrm{next}}$ further away from $X_{g}$ have a lower inner product, indicating that the model's embedding of nodes reflects the underlying graph topology. The red line denotes the best least squares fit and has a slope of -0.106.
164
+
165
+ as outlined in detail in Fig. 7b. First, we extract the value embeddings for $X_{g}$ and $X_{\mathrm{current}}$ using the weight matrix $W_{V}$ from the self-attention layer, yielding $v_{g}$ and $v_{\mathrm{current}}$ , respectively. We then merge these embeddings into a single vector $v$ , i.e., $v = v_{g} + v_{\mathrm{current}}$ . Finally, we determine the next token by identifying the node whose token embedding has the highest inner product with $v$ . This operation mimics the logit computation in a full Transformer.
166
+
167
+ In Fig. 7c, we demonstrate the simplified algorithm retrieved via the process above matches the accuracy of the full trained model. Furthermore, in Fig. 7d, we find that the paths generated by our simplified algorithm and those produced by the full trained model are nearly identical. Herein, we use a string edit distance metric (Navarro, 2001) to quantify the similarity between the two sets of paths and find that over $75\%$ of paths are identical.
168
+
169
+ Given that accuracy is computed over test nodes not seen in the training data, the model likely encodes a notion of distance between two nodes on the graph in its embedding, as we hypothesized. Indeed, in Fig. 7e, we find that the inner product of the embedding of $v_{g}$ with the token embeddings of $X_{\mathrm{next}}$ is negatively correlated with the distance between these two nodes in the ground truth DAG; here, we used the average path length as a distance measure over the graph.
170
+
171
+ Since potential nodes with shorter paths to the goal node have a higher logit value, this implies they will be more likely to be predicted, thus showing the origin of the short path bias we observed in Sec. 3.1.3. This is a mechanistic explanation of the interpolative pattern-matching behavior of Dziri et al. (2023) in the context of our task.
172
+
173
+ # 3.2. Navigation with exemplars
174
+
175
+ The single graph setting let us explore zero-shot navigation and stepwise reasoning, where the model relied on knowledge internalized over pretraining for stepwise navigation towards a goal. Next, we study how context can influence the model generated paths, how subgoals that are provided in-context can guide the model's navigation, and how the content of the exemplars affects the navigation path chosen by the model. Our results shed some light on and create hypotheses for (1) compositional generalization, (2) length generalization, and (3) impact of conflicting, long context.
176
+
177
+ # 3.2.1.COMPOSITIONAL GENERALIZATION
178
+
179
+ We find that the model can successfully follow the chain defined by the in-context exemplars. An example output produced by the model is in Fig. 2(b), highlighting the path the model takes through the chain of motifs $g_{3} \rightarrow g_{4} \rightarrow$
180
+
181
+ ![](images/f0bd6f1c1cdc9bec009496acbe05d97705452dac559d3aca35b6572a50f1ea14.jpg)
182
+ Figure 8. In-context steerability and length generalization. We vary the number of intermediate motifs $g_{\mathrm{inter}}$ in a chain of motifs constructed for the particular context $g_{i_1} \rightarrow \{g_{\mathrm{inter}} \rightarrow \}_{n} \rightarrow g_{i_K}$ . The path generated by the model follows the path described by the chain in context until $n = 4$ , which is the maximum chain length in the training data.
183
+
184
+ $g_{2} \rightarrow g_{9}$ . We also find that the model generalizes to arbitrary orders of motifs strung out, including those that did not occur consecutively in the training data, up to the length in the training data (see Fig. 8). In other words, in-context control is capable of eliciting compositional generalization (Li et al., 2023), if appropriately trained. Further, we see that the attentional patterns used by the model suggest that while navigating across motifs, the model treats nodes across ghost edges as subgoals (see Appendix Fig. 19).
185
+
186
+ # 3.2.2. NUMBER OF INTERMEDIATE MOTIFS
187
+
188
+ In Fig. 8, we vary the number of exemplars provided to the model. This is equivalent to stringing together a longer chain of exemplar sequences across motifs to navigate over. We define successful steering via a product of indicator variables that measure (i) whether the path ended at the specified goal and (ii) that each ghost edge, and thus the intermediate motif, was present in the path. We computed the probability by averaging over distinct source nodes from $g_{i_1}$ and sink nodes from $g_{i_K}$ . We find that the model can generalize well to unseen orders of motifs up to the maximum number chained together in the training data, after which the model fails to navigate. We hypothesize that even when using stepwise inference methods at scale, the model will fail to generalize to reasoning chains longer than those present in its training data.
189
+
190
+ # 3.2.3. PRIMACY BIAS TOWARDS THE FIRST EXEMPLAR IN THE CASE OF CONFLICT
191
+
192
+ Language models are generally prompted with several exemplars in context. Some of these exemplars may have incorrect or even conflicting information with respect to other exemplars, for example in a multiple choice Q&A task (Hendrycks et al., 2020; Pal et al., 2022; Srivastava et al., 2022). The model has to choose the relevant informa
193
+
194
+ ![](images/aaebdb5f4829589eacd9581af15c38551ffd070041b1686e1c98b75f304fc313.jpg)
195
+ Figure 9. How does the model handle conflicting exemplars? To construct the context, we selected an initial motif $g_{i_1}$ , a terminal motif $g_{i_T}$ and two intermediate motifs $g_{\mathrm{inter}}$ and $g_{\mathrm{inter}}^{\prime}$ . We string them together so that the motif has two possible paths: $g_{i_1} \to g_{\mathrm{inter}} \to g_{i_T}$ and $g_{i_1} \to g_{\mathrm{inter}}^{\prime} \to g_{i_T}$ . In this case of two conflicting chains in-context, the model has a bias to pick the chain that appears first in context.
196
+
197
+ tion between these exemplars to solve the specified task. Motivated by this, we quantitatively study the behavior of the model when a noisy context with exemplars with conflicting information are provided. Specifically, we study a case where two chains of motifs are used to design exemplars for our task, such that the exemplars start from the same set of initial and terminal motifs $g_{i_1}$ and $g_{i_T}$ , but with distinct intermediate motifs $g_{\mathrm{inter}}$ and $g_{\mathrm{inter}}^{\prime}$ . The model is then prompted with $X_s \in g_{i_1}$ and $X_g \in g_{i_T}$ , after in-context exemplars in order: $e_{g_{i_1}, g_{\mathrm{inter}}}, e_{g_{\mathrm{inter}}, g_{i_T}}, e_{g_{i_2}, g_{\mathrm{inter}}^{\prime}}, e_{g_{\mathrm{inter}}, g_{i_T}}^{\prime}$ . Results are shown in Fig. 9. We find that the model does indeed navigate to the goal, thus following the prompt, but has a strong bias toward choosing a path defined by the first chain over the second, i.e., $g_{i_1} \to g_{\mathrm{inter}} \to g_{i_T}$ . This result is similar to what happens at scale with large context windows, where content in the middle of a long context window is ignored (Liu et al., 2023).
198
+
199
+ # 4. Conclusion and Limitations
200
+
201
+ In this work, we introduced a synthetic graph navigation task to investigate the behavior, training dynamics, and mechanisms of Transformers under stepwise inference protocols. We have adopted the model-experimental systems approach, an empirical strategy to precisely characterize and understand smaller, more steerable model systems with the ultimate goal of transferring this understanding to larger-scale systems. It is important to clarify the trade-offs and limitations inherent in our approach. Drawing an analogy to the study of biological neural networks, where neural mechanisms identified in small-scale model organisms such as fruit flies may not be directly applicable to medical applications involving the human brain, our observations should not be taken as definitive conclusions directly applicable to
202
+
203
+ large-scale generative models. Instead, our study seeks to establish a minimal synthetic framework, identify data-centric control variables, and formulate mechanistic hypotheses. This lays the groundwork for more in-depth theoretical and empirical investigations of larger models.
204
+
205
+ # Impact Statement
206
+
207
+ This paper provides a comprehensive scientific analysis of a Transformer model that solves a small-scale synthetic task. We believe that the scientific findings presented in this paper will lay the groundwork for the development of more reliable and interpretable AI systems for the benefit of society.
208
+
209
+ # Acknowledgement
210
+
211
+ Mikail Khona, Hidenori Tanaka, Rahul Ramesh, Maya Okawa and Kento Nishi acknowledge NTT Research and NTT Physics and Informatics Lab for compute and support. Jan Hula was supported by the Ministry of Education, Youth and Sports within the dedicated program ERC CZ under the project POSTMAN no. LL1902. Ekdeep S Lubana was partially supported by the National Science Foundation (IIS-2008151).
212
+
213
+ # References
214
+
215
+ Allen-Zhu, Z. and Li, Y. Physics of language models: Part 1, context-free grammar. arXiv preprint arXiv:2305.13673, 2023.
216
+ Anil, R., Dai, A. M., First, O., Johnson, M., Lepikhin, D., Passos, A., and et al., S. S. Palm 2 technical report, 2023.
217
+ Besta, M., Blach, N., Kubicek, A., Gerstenberger, R., Gi-aninazzi, L., Gajda, J., Lehmann, T., Podstawski, M., Niewiadomski, H., Nczyk, P., et al. Graph of thoughts: Solving elaborate problems with large language models. arXiv preprint arXiv:2308.09687, 2023.
218
+ Broadbent, S. R. and Hammersley, J. M. Percolation processes: I. crystals and mazes. In Mathematical proceedings of the Cambridge philosophical society, volume 53, pp. 629-641. Cambridge University Press, 1957.
219
+ Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. Advances in neural information processing systems, 33: 1877-1901, 2020.
220
+ Bubeck, S., Chandrasekaran, V., Eldan, R., Gehrke, J., Horvitz, E., Kamar, E., Lee, P., Lee, Y. T., Li, Y., Lundberg, S., et al. Sparks of artificial general intel
221
+
222
+ ligence: Early experiments with gpt-4. arXiv preprint arXiv:2303.12712, 2023.
223
+ Chen, A., Phang, J., Parrish, A., Padmakumar, V., Zhao, C., Bowman, S. R., and Cho, K. Two failures of self-consistency in the multi-step reasoning of llms. arXiv preprint arXiv:2305.14279, 2023.
224
+ Chen, W., Ma, X., Wang, X., and Cohen, W. W. Program of thoughts prompting: Disentangling computation from reasoning for numerical reasoning tasks. arXiv preprint arXiv:2211.12588, 2022.
225
+ Chomsky, N. Syntactic structures. Mouton de Gruyter, 2002.
226
+ Cormen, T. H., Leiserson, C. E., Rivest, R. L., and Stein, C. Introduction to algorithms. MIT press, 2022.
227
+ Creswell, A. and Shanahan, M. Faithful reasoning using large language models. arXiv preprint arXiv:2208.14271, 2022.
228
+ Creswell, A., Shanahan, M., and Higgins, I. Selection-inference: Exploiting large language models for interpretable logical reasoning. arXiv preprint arXiv:2205.09712, 2022.
229
+ Dziri, N., Lu, X., Sclar, M., Li, X. L., Jian, L., Lin, B. Y., West, P., Bhagavatula, C., Bras, R. L., Hwang, J. D., et al. Faith and fate: Limits of transformers on compositionality. arXiv preprint arXiv:2305.18654, 2023.
230
+ Feng, G., Gu, Y., Zhang, B., Ye, H., He, D., and Wang, L. Towards revealing the mystery behind chain of thought: a theoretical perspective. arXiv preprint arXiv:2305.15408, 2023.
231
+ Gemini, T., Anil, R., Borgeaud, S., Wu, Y., Alayrac, J.-B., Yu, J., Soricut, R., Schalkwyk, J., Dai, A. M., Hauth, A., et al. Gemini: a family of highly capable multimodal models. arXiv preprint arXiv:2312.11805, 2023.
232
+ Hao, S., Gu, Y., Ma, H., Hong, J. J., Wang, Z., Wang, D. Z., and Hu, Z. Reasoning with language model is planning with world model. arXiv preprint arXiv:2305.14992, 2023.
233
+ Hendrycks, D. and Gimpel, K. Gaussian error linear units (gelus). arXiv preprint arXiv:1606.08415, 2016.
234
+ Hendrycks, D., Burns, C., Basart, S., Zou, A., Mazeika, M., Song, D., and Steinhardt, J. Measuring massive multitask language understanding. arXiv preprint arXiv:2009.03300, 2020.
235
+ Huang, J. and Chang, K. C.-C. Towards reasoning in large language models: A survey. arXiv preprint arXiv:2212.10403, 2022.
236
+
237
+ Karpathy, A. NanoGPT, 2021. Github link. https://github.com/karpathy/nanoGPT.
238
+ Kojima, T., Gu, S. S., Reid, M., Matsuo, Y., and Iwasawa, Y. Large language models are zero-shot reasoners. arXiv preprint arXiv:2205.11916, 2022.
239
+ LaValle, S. Planning algorithms. Cambridge University Press google schola, 2:3671-3678, 2006.
240
+ Li, Y., Sreenivasan, K., Giannou, A., Papailiopoulos, D., and Oymak, S. Dissecting chain-of-thought: A study on compositional in-context learning of mlps. arXiv preprint arXiv:2305.18869, 2023.
241
+ Liu, B., Ash, J. T., Goel, S., Krishnamurthy, A., and Zhang, C. Transformers learn shortcuts to automata. arXiv preprint arXiv:2210.10749, 2022.
242
+ Liu, N. F., Lin, K., Hewitt, J., Paranjape, A., Bevilacqua, M., Petroni, F., and Liang, P. Lost in the middle: How language models use long contexts. arXiv preprint arXiv:2307.03172, 2023.
243
+ Lu, S., Bigoulaeva, I., Sachdeva, R., Madabushi, H. T., and Gurevych, I. Are emergent abilities in large language models just in-context learning? arXiv preprint arXiv:2309.01809, 2023.
244
+ Lu, Y., Bartolo, M., Moore, A., Riedel, S., and Stenetorp, P. Fantastically ordered prompts and where to find them: Overcoming few-shot prompt order sensitivity. arXiv preprint arXiv:2104.08786, 2021.
245
+ Lubana, E. S., Bigelow, E. J., Dick, R. P., Krueger, D., and Tanaka, H. Mechanistic mode connectivity. In International Conference on Machine Learning, pp. 22965-23004. PMLR, 2023.
246
+ Momennejad, I., Hasanbeig, H., Frujeri, F. V., Sharma, H., Ness, R. O., Jojic, N., Palangi, H., and Larson, J. Evaluating cognitive maps in large language models with cogeval: No emergent planning. Advances in neural information processing systems, 37, 2023.
247
+ Navarro, G. A guided tour to approximate string matching. ACM computing surveys (CSUR), 33(1):31-88, 2001.
248
+ Nye, M., Andreassen, A. J., Gur-Ari, G., Michalewski, H., Austin, J., Bieber, D., Dohan, D., Lewkowycz, A., Bosma, M., Luan, D., et al. Show your work: Scratchpads for intermediate computation with language models. arXiv preprint arXiv:2112.00114, 2021.
249
+ OpenAI. Gpt-4 technical report. arXiv, pp. 2303-08774, 2023.
250
+
251
+ Pal, A., Umapathi, L. K., and Sankarasubbu, M. Medmcqa: A large-scale multi-subject multi-choice dataset for medical domain question answering. In Conference on Health, Inference, and Learning, pp. 248-260. PMLR, 2022.
252
+ Press, O. and Wolf, L. Using the output embedding to improve language models. arXiv preprint arXiv:1608.05859, 2016.
253
+ Press, O., Zhang, M., Min, S., Schmidt, L., Smith, N. A., and Lewis, M. Measuring and narrowing the compositionality gap in language models. arXiv preprint arXiv:2210.03350, 2022.
254
+ Prystawski, B. and Goodman, N. D. Why think step-by-step? reasoning emerges from the locality of experience. arXiv preprint arXiv:2304.03843, 2023.
255
+ Radford, A., Wu, J., Child, R., Luan, D., Amodei, D., Sutskever, I., et al. Language models are unsupervised multitask learners. OpenAI blog, 1(8):9, 2019.
256
+ Ramesh, R., Khona, M., Dick, R. P., Tanaka, H., and Lubana, E. S. How capable can a transformer become? a study on synthetic, interpretable tasks. arXiv preprint arXiv:2311.12997, 2023.
257
+ Razeghi, Y., Logan IV, R. L., Gardner, M., and Singh, S. Impact of pretraining term frequencies on few-shot reasoning. arXiv preprint arXiv:2202.07206, 2022.
258
+ Saparov, A. and He, H. Language models are greedy reasoners: A systematic formal analysis of chain-of-thought. In The Eleventh International Conference on Learning Representations, 2023. URL https://openreview.net/forum?id=qFVVBzXxR2V.
259
+ Schaeffer, R., Pistunova, K., Khanna, S., Consul, S., and Koyejo, S. Invalid logic, equivalent gains: The miseriness of reasoning in language model prompting. arXiv preprint arXiv:2307.10573, 2023.
260
+ Shah, H., Tamuly, K., Raghunathan, A., Jain, P., and Netrapalli, P. The pitfalls of simplicity bias in neural networks. Advances in Neural Information Processing Systems, 33: 9573-9585, 2020.
261
+ Srivastava, A., Rastogi, A., Rao, A., Shoeb, A. A. M., Abid, A., Fisch, A., Brown, A. R., Santoro, A., Gupta, A., Garriga-Alonso, A., et al. Beyond the imitation game: Quantifying and extrapolating the capabilities of language models. arXiv preprint arXiv:2206.04615, 2022.
262
+ Suzgun, M., Scales, N., Schärli, N., Gehrmann, S., Tay, Y., Chung, H. W., Chowdhery, A., Le, Q. V., Chi, E. H., Zhou, D., et al. Challenging big-bench tasks and whether chain-of-thought can solve them. arXiv preprint arXiv:2210.09261, 2022.
263
+
264
+ Touvron, H., Lavril, T., Izacard, G., Martinet, X., Lachaux, M.-A., Lacroix, T., Rozière, B., Goyal, N., Hambro, E., Azhar, F., et al. Llama: Open and efficient foundation language models. arXiv preprint arXiv:2302.13971, 2023.
265
+ Turpin, M., Michael, J., Perez, E., and Bowman, S. R. Language models don't always say what they think: Unfaithful explanations in chain-of-thought prompting. arXiv preprint arXiv:2305.04388, 2023.
266
+ Wang, B., Min, S., Deng, X., Shen, J., Wu, Y., Zettlemoyer, L., and Sun, H. Towards understanding chain-of-thought prompting: An empirical study of what matters. arXiv preprint arXiv:2212.10001, 2022a.
267
+ Wang, X., Wei, J., Schuurmans, D., Le, Q., Chi, E., Narang, S., Chowdhery, A., and Zhou, D. Self-consistency improves chain of thought reasoning in language models. arXiv preprint arXiv:2203.11171, 2022b.
268
+ Wei, J., Wang, X., Schuurmans, D., Bosma, M., Chi, E., Le, Q., and Zhou, D. Chain of thought prompting elicits reasoning in large language models. arXiv preprint arXiv:2201.11903, 2022.
269
+ Yao, S., Yu, D., Zhao, J., Shafran, I., Griffiths, T. L., Cao, Y., and Narasimhan, K. Tree of thoughts: Deliberate problem solving with large language models. arXiv preprint arXiv:2305.10601, 2023.
270
+ Zelikman, E., Mu, J., Goodman, N. D., and Wu, Y. T. Star: Self-taught reasoner bootstrapping reasoning with reasoning. 2022.
271
+
272
+ # A. Detailed Related Work
273
+
274
+ Stepwise inference protocols Large language models (LLMs) have been shown to possess sophisticated and human-like reasoning and problem-solving abilities (Srivastava et al., 2022). Chain-of-thought or scratchpad reasoning refers to many similar and related phenomena involving multiple intermediate steps of reasoning generated internally and autoregressively by the language model. First described by Nye et al. (2021); Kojima et al. (2022), adding prompts such as 'think step by step' allows the LLM to autonomously generate intermediate steps of reasoning and computation, improving accuracy and quality of its responses. This is referred to as zero-shot chain-of-thought. A related set of phenomena, few-shot chain-of-thought prompting (Wei et al., 2022) occurs when the language model is shown exemplars of reasoning before being prompted with a reasoning task. The model follows the structure of logic in these exemplars, solving the task with higher accuracy. Further, there have been several prompting strategies developed, all of which rely on sampling intermediate steps, such as tree-of-thoughts (Yao et al., 2023), graph-of-thoughts (Besta et al., 2023), program-of-thoughts (Chen et al., 2022), self-ask (Press et al., 2022). There are also methods which use more than one LLM, such as STaR (Zelikman et al., 2022), RAP (Hao et al., 2023), Selection-Inference (SI) (Creswell et al., 2022; Creswell & Shanahan, 2022).
275
+
276
+ Understanding stepwise inference Dziri et al. (2023) study how LLMs solve multi-step reasoning tasks and argue that models likely fail because they reduce most multi-step reasoning tasks to linearized sub-graph matching, essentially learning 'shortcut solutions' (Liu et al., 2022). Momennejad et al. (2023) study in-context graph navigation in LLMs, finding that they fail to do precise planning. Saparov & He (2023) introduce a synthetic dataset called PrOntoQA to systematically study the failure modes of chain of thought in the GPT3 family fine-tuned on the dataset and find that misleading steps of reasoning are a common cause of failure in the best-performing models. Chen et al. (2023) find that chain-of-thought fails at compositional generalization and counterfactual reasoning. Wang et al. (2022a); Schaeffer et al. (2023) find that the content of the exemplars is less relevant to accuracy than their syntactic structure. Razeghi et al. (2022) find that the accuracy of reasoning is correlated with the frequencies of occurrence in the pretraining dataset. Recently, a few works have used theoretical approaches to characterize and explain stepwise inference. Li et al. (2023) study in-context learning of random MLPs and find that a Transformer that outputs the values of intermediate hidden layers achieves better generalization. Feng et al. (2023) show that with stepwise reasoning, Transformers can solve dynamic programming problems, and Prystawski & Goodman (2023) study reasoning traces in Transformers trained to learn the conditionals of a Bayes network. There are also several puzzling phenomena in the prompts used to elicit few-shot chain-of-thought reasoning: chain-of-thought can be improved by sampling methods such as self-consistency (Wang et al., 2022b); prompts might not reflect the true reasoning process used by the language model, as identified by Turpin et al. (2023); and the accuracy of the model can be sensitive to the order in which prompts are provided (Lu et al., 2021).
277
+
278
+ # B. Why graph navigation?
279
+
280
+ In this section, we describe examples of various computational tasks that have been cast as graph navigation in literature to study Transformers and LLMs.
281
+
282
+ - First order logic: Saparov & He (2023) study simple DAGs as models of first order logical reasoning. They construct ontologies (see Fig. 10a) and prompt LLMs to do analogical reasoning.
283
+ - Mathematical expression evaluation: Dziri et al. (2023) study mathematical expression evaluation in large scale LLMs as DAG navigation (see Fig. 10b). Any mathematical expression can be decomposed into elementary computations which are chained together.
284
+ - Planning and spatial navigation: Momennejad et al. (2023) evaluates many large scale LLMs such as ChatGPT-4 and Claude2 on synthetically designed planning and navigation tasks (see Fig. 10c).
285
+ - Formal grammars and natural language: Allen-Zhu & Li (2023) studies Transformers trained on context-free grammars (CFGs) which are DAGs. Another motivation for the study of graph navigation comes from linguistics and natural language syntax (Chomsky, 2002). Every sentence in a language can broken down into its syntactic or parse tree, a special case of a directed acyclic graph. For example, the sentence 'I drive a car to my college' can be parsed as the following graph: ('I': Noun phrase, 'drive a car to my college': Verb Phrase) $\rightarrow$ ('drive': Verb, 'a car': Noun Phrase, 'to my college': Prepositional Phrase) $\rightarrow$ ('a': Determiner, 'car': Noun), ('to': Preposition, 'my college': Noun Phrase) $\rightarrow$ ('my': Determiner, 'college': Noun).
286
+
287
+ ![](images/2a8a19d4c573f6547dcbf15ac0134b3a8842876a372eff801b77fdaa81a6b38a.jpg)
288
+ Figure 10. Examples of stepwise inference as graph navigation in LLM evaluations: [Figures taken from respective papers] (a) An example graph created for a prompt (left) from the ProntoQ&A dataset (Saparov & He, 2023) (b) (Dziri et al., 2023) studies how simple algorithms such as multiplication of digits can be represented as a graph (c) CogEval (Momennejad et al., 2023) studies many large scale LLMs such as ChatGPT-4 and Claude2 on planning and navigation tasks. (d) Mathematical expression evaluation in the case of additionof two numbers can be visualized as a series of steps of a digit-wise addition algorithm.
289
+
290
+ Effective stepwise reasoning consists of several elementary logical steps put together in a goal-directed path that terminates at a precise state (LaValle, 2006). We argue that graph navigation problems provide such a fundamental framework for studying stepwise inference. Graphs provide a universal language for modeling and solving complex problems across various domains. Whether it is optimizing network traffic, analyzing social networks, sequencing genetic data, or solving puzzles like the Travelling Salesman Problem, the underlying structure can often be mapped onto a graph (Cormen et al., 2022; Momennejad et al., 2023; Dziri et al., 2023; Saparov & He, 2023).
291
+
292
+ # C. Setup and construction of graph and model
293
+
294
+ # C.1. Graph structures
295
+
296
+ Here we describe the properties of the DAGs we use, the training setup, model architecture, and hyperparameters.
297
+
298
+ We use two DAG structures, as shown in Fig. 11. Specifically, Bernoulli DAGs are constructed by randomly generating an upper-triangular matrix where each entry has probability $p$ of existing. Hierarchical DAGs are generated by predefining L sets of nodes and drawing an edge between a node $n_l$ in layer $l$ and $n_{l+1}$ in layer $l+1$ with probability $p$ ; we constrain the graph to be connected. These generation processes lead to different path diversity and path length distributions, which affect the efficacy of stepwise inference, as shown in our results. Below, we provide algorithms to generate our graph structures.
299
+
300
+ ![](images/8aa3cdc2efdbf6ed8d1313dc97594503f78c11f90f76a05b377e2209b8077600.jpg)
301
+ Hierarchical graph
302
+
303
+ ![](images/cfdb86a986713497e34973d1205424aad08ec8ce7eebdcdefe5363f3b1c26c4d.jpg)
304
+ Directed Acyclic Graph (DAG) Structures
305
+ Bernoulli graph
306
+
307
+ ![](images/15e54520f84c7d5ecdfd772da63a509592e41599dab6aaab0cdeed0260337f2d.jpg)
308
+
309
+ ![](images/4741d277dce0e7dce5a5ba003e1c5b106e16952a6d13f4cdf004a0932a330f49.jpg)
310
+ Path Diversity Distribution
311
+
312
+ ![](images/4ec8667ecd5351baa2de32f5f24778908a05ab5f2b7ccdd0d5a7e21b71584800.jpg)
313
+ Path Length Distribution
314
+ Figure 11. Construction and properties of Hierarchical and Bernoulli DAGs: (top) Schematic of hierarchical and Bernoulli graphs. Hierarchical graphs are organized into layers with connections only between nodes of successive layers but Bernoulli graphs have no such structure. (middle) Path diversity is defined as the number of paths between any two path connected nodes. (bottom) Path length distributions: Owing to the hierarchical nature, the path length distribution is exponential in hierarchical graphs whereas it is more Gaussian-like for Bernoulli graphs.
315
+
316
+ ![](images/dedc1b4c380c247910f2cc9c050bc8038b3166cb8b2056dbb033ca21dfddb1c1.jpg)
317
+
318
+ # Algorithm 1 Generate Bernoulli connected DAG
319
+
320
+ Require: numNodes $>0$ , probability $p$ for edges
321
+
322
+ 1: nodeNames $\leftarrow$ ['X' + str(i) for i in range(numNodes)]
323
+ 2: Function CreateUpperTriangularMask(n, p)
324
+ 3: matrix $\leftarrow$ random binary matrix with size $n\times n$ and probability $p$ for 1s
325
+ 4: upperTriangular $\leftarrow$ extract upper triangular part of matrix
326
+ 5: return upperTriangular
327
+ 6: repeat
328
+ 7: adjMatrix $\leftarrow$ CreateUpperTriangularMask(numNodes, p)
329
+ 8: dag $\leftarrow$ create directed graph in NetworkX from adjMatrix and nodeNames
330
+ 9: until dag is connected
331
+
332
+ ![](images/6e69307f648d4fd957cd8b6dbd4c0c7ffef8ff8cf5bb19569067197ed86195d1.jpg)
333
+ Hierarchical Graph
334
+
335
+ ![](images/8a80dfe4b97fa31bce9dc54d15f05d8710c2b1020a1717e5aa1b764458acb9ca.jpg)
336
+ Path Diversity
337
+
338
+ ![](images/0214e27cecbc87d3f040b4af51ca1936ed6d94be4360f207572da62faeac91bc.jpg)
339
+ Increasing p(connection)
340
+
341
+ ![](images/98c0e6a05c29c90c3c09b1d775fe60606b0d8ce3e4188d7cc0a0b05b1adca00a.jpg)
342
+
343
+ ![](images/3ca0bc7926e823dc867ab6c05094c92d0a18384d7b65241b07807291a32b01a6.jpg)
344
+ Figure 12. Properties of Hierarchical DAGs with varying connection probability: As the probability of connections between nodes increases, the path length distribution becomes more exponential (left column) while the path diversity distribution becomes more uniform (right column).
345
+
346
+ ![](images/74b1550b100ebb7342617b8bd67301babbfa56cdb85a0218c759856d0fa8685b.jpg)
347
+
348
+ Algorithm 2 Generate Hierarchical Connected DAG
349
+ 1: $p \gets [probability$ of connection between layers]
350
+ 2: nodesPerLayer $\gets$ [number of nodes in each layer]
351
+ 3: numLayers $\gets$ [total number of layers]
352
+ 4: numNodes $\gets$ nodesPerLayer $\times$ numLayers
353
+ 5: Function CreateLayeredDAG (nodesPerLayer, numLayers, p)
354
+ 6: Initialize an empty directed graph G in NetworkX
355
+ 7: for currentLayer $\gets 1$ to numLayers - 1 do
356
+ 8: for each node $j$ in currentLayer do
357
+ 9: for each node $k$ in currentLayer + 1 do
358
+ 10: if random number $\leq p$ then
359
+ 11: Add edge from node $X_{j}$ to node $X_{k}$ in G
360
+ 12: end if
361
+ 13: end for
362
+ 14: end for
363
+ 15: end for
364
+ 16: return G
365
+ 17: End Function
366
+ 18: repeat
367
+ 19: dag $\gets$ CreateLayeredDAG (nodesPerLayer, numLayers, p)
368
+ 20: until dag is connected
369
+
370
+ # C.2. Motif construction
371
+
372
+ In the multi-graph scenario, we first construct a set of $n$ graphs (in our experiments, we use Bernoulli DAGs with $n = 10$ ) denoted by $G = \{g_1, g_2, \dots, g_n\}$ . To construct the training data, we first create all pairwise motif orders $\{(g_i \to g_j)\}$ . For test evaluations, we held out 10 out of these 45 motif orders.
373
+
374
+ # C.2.1. CONSTRUCTION OF EXEMPLAR SEQUENCES
375
+
376
+ To provide examples in-context, we create exemplar sequences connecting motifs, say $g_{i_1}$ and $g_{i_2}$ . In our construction, we select $X_s$ to be source node in $g_{i_1}$ and $X_g$ to be a sink node in $g_{i_2}$ . Further, we choose a sink of $g_{i_1}$ , $X_{\mathrm{sink}}(g_{i_1})$ and a source of $g_{i_2}$ , $X_{\mathrm{source}}(g_{i_2})$ and connect them via a ghost edge: $(X_{\mathrm{sink}}(g_{i_1}), X_{\mathrm{source}}(g_{i_2}))$ . These intermediate nodes are subgoals for the path that the model has to produce. Finally putting everything together, the exemplar sequence has the following form: goal: $X_g X_s \ldots X_{\mathrm{sink}}(g_{i_1}) X_{\mathrm{source}}(g_{i_2}) \ldots X_g$ . Here, $X_s \ldots X_{\mathrm{sink}}$ is a path from a source to a sink in $g_{i_1}$ and $X_{\mathrm{source}}(g_{i_2}) \ldots X_g$ is a path from a source to a sink in $g_{i_2}$ . To be precise, we summarize this process into the algorithm below.
377
+
378
+ # Algorithm 3 Generate In-context Exemplars
379
+
380
+ Require: $\{g_{i_1}, g_{i_2}\}$ , two motifs across which a ghost edge will be placed.
381
+
382
+ 1: $X_{s}\gets$ Sample sources $(g_{i_1})$
383
+ 2: $X_{g}\gets$ Sample sinks $(g_{i_2})$
384
+ 3: $(X_{\mathrm{pre}}^{\mathrm{ghost edge}}, X_{\mathrm{post}}^{\mathrm{ghost edge}}) \gets (\text{Sample sinks} (g_{i_1}), \text{Sample sources} (g_{i_2}))$
385
+ 4: $(X_{s}\dots X_{\mathrm{pre}}^{\mathrm{ghostedge}})\gets$ Sample path $(g_{i_1})$
386
+ 5: $(X_{\mathrm{post}}^{\mathrm{ghost edge}}\ldots X_g)\gets$ Sample path $(g_{i_2})$
387
+ 6: return $e_{g_{i_1}, g_{i_2}} \gets X_s \ldots X_{\text{pre}}^{\text{ghost edge}} X_{\text{post}}^{\text{ghost edge}} \ldots X_g$
388
+
389
+ After providing a set of exemplar sequences in-context, we chain them together to create a longer sequence. To be precise, given a set of $K$ motifs $\{g_{i_1}, g_{i_2}, g_{i_3}, \ldots, g_{i_K}\}$ , we have the set of $K - 1$ ghost edges, one for each exemplar: $\{(X_{\mathrm{sink}}(g_{i_1}), X_{\mathrm{source}}(g_{i_2})), (X_{\mathrm{sink}}(g_{i_2}), X_{\mathrm{source}}(g_{i_3})), \ldots, (X_{\mathrm{sink}}(g_{i_{K-1}}), X_{\mathrm{source}}(g_{i_K}))\}$ . To create the final path, we choose goal $X_g \in g_{i_1}$ and start $X_s \in g_{i_K}$ . This path has every ghost edge from the list present in it.
390
+
391
+ ![](images/547530b938e70edd39ce3391ff40aae9755c88d3958d49f205714d6663b776a8.jpg)
392
+ Figure 13. The architecture of GPT-style (Radford et al., 2019) decode-only Transformers. Note the presence of both pre and post-LayerNorm in each Transformer block. Figure from methods section of Ramesh et al. (2023).
393
+
394
+ # C.3. Architecture details and loss function
395
+
396
+ # LOSS FUNCTION
397
+
398
+ For training, we tokenize every node and we use the standard language modeling objective, next-token prediction with a cross entropy loss. Here $\mathrm{target}_n$ is the 1-shifted version of the training sequence and $\mathbf{x}_n$ are the logit outputs of the model at the $n^{\text{th}}$ timestep.
399
+
400
+ $$
401
+ \mathcal {L} \left(\mathbf {x} _ {n}, \text {t a r g e t} n\right) = - \log \left(\frac {\exp \left(\beta x _ {n , \text {t a r g e t}} n\right)}{\sum_ {v = 0} ^ {\# \text {t o k e n s}} \exp \left(\beta x _ {n , v}\right)}\right) = - \log \left(\underbrace {\operatorname {s o f t m a x} \left(\beta \mathbf {x} _ {n}\right) _ {\text {t a r g e t}} n} _ {\text {p r o b} (\text {t a r g e t} n)}\right) \tag {1}
402
+ $$
403
+
404
+ <table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>learning rate</td><td>10-4</td></tr><tr><td>Batch size</td><td>64</td></tr><tr><td>Context length</td><td>32</td></tr><tr><td>Optimizer</td><td>Adam</td></tr><tr><td>Momentum</td><td>0.9, 0.95</td></tr><tr><td>Activation function</td><td>GeLU</td></tr><tr><td>Number of blocks</td><td>2</td></tr><tr><td>Embedding dimension</td><td>64</td></tr></table>
405
+
406
+ Table 1. Hyperparameters of the Transformer models used for all experiments except mechanistic analyses
407
+
408
+ For model architecture, we use a GPT based decode-only Transformer with a causal self-attention mask. Our implementation is based on the nanoGPT repository<sup>2</sup>.
409
+
410
+ The Transformer architecture consists of repeated blocks of pre-LayerNorm, causal multi-head self-attention, post-LayerNorm, and an MLP with skip connections (see Fig. 13). The MLP contains two fully-connected layers with a
411
+
412
+ GELU non-linearity (Hendrycks & Gimpel, 2016). The dimensionality of the hidden layer of the MLP is $4x$ the embedding dimensionality. We do not include any dropout in the model or biases in the linear layers. We use weight-tying (Press & Wolf, 2016) in the embedding and un-embedding layers.
413
+
414
+ To do the mechanistic study, we consider a 1 layer attention-only Transformer without a few modifications: We remove the MLP and post-LayerNorm and vary the embedding dimensionality from four to 64. This 1L Transformer is described by the following model equations. Here $\mathbf{X}_{\mathrm{token}} \in \mathcal{R}^{\mathrm{vocab\_size} \times \mathrm{T}}$ denotes the tokens, $W_{E} \in \mathcal{R}^{n_{\mathrm{embd}} \times \mathrm{vocab\_size}}$ is the positional embedding matrix, $W_{\mathrm{pos}} \in \mathcal{R}^{n_{\mathrm{embd}} \times T}$ is the token embedding matrix, and $\mathbf{X} \in \mathcal{R}^{n_{\mathrm{embd}} \times \mathrm{T}}$ .
415
+
416
+ $$
417
+ \begin{array}{l} \mathbf {X} = W _ {E} \left(\mathbf {X} _ {\text {t o k e n}}\right) + W _ {\text {p o s}} \left(\mathbf {X} _ {\text {t o k e n}}\right) \\ \mathbf {X} = \operatorname {L N} (\mathbf {X}) \\ \mathbf {X} = \mathbf {X} + \operatorname {s o f t m a x} \left(\mathbf {X} ^ {T} W _ {Q} ^ {T} W _ {K} \mathbf {X}\right) W _ {V} \mathbf {X} \\ \mathbf {z} = \operatorname {s o f t m a x} \left(W _ {E} ^ {T} \mathbf {X}\right) \\ \text {n e x t} = \operatorname {a r g m a x} _ {\text {a l l t o k e n s}} \mathbf {z} \\ \end{array}
418
+ $$
419
+
420
+ # D. Training protocol for experiments
421
+
422
+ For experiments in our setup without exemplars, we randomly generate either a hierarchical graph or a Bernoulli graph $G$ with $N = 200$ nodes. In the Bernoulli graph setting the probability of an edge $p = 0.05$ ; similarly, in the hierarchical graph, the probability of an edge between a node in layer $l$ and layer $l + 1$ is $p = 0.05$ . We choose 10 layers with 20 nodes each to match the number of nodes in the two graph types. We convert all the nodes to tokens, along with a special goal token which corresponds to a [BOS] token and an end token which corresponds to an [EOS] token. We use another token, pad, for padding as well.
423
+
424
+ Train-Test split To generate training data corresponding to path connected node pairs, we first put all edges (which are simple paths of length one) into the training data. This procedure was done in all experiments to ensure that full knowledge of the graph was presented to the model. Further, we generate all simple paths between every pair of nodes in the graph. A variable fraction of these paths are included in the training data, depending on experimental conditions which we outline below.
425
+
426
+ Navigation without exemplars: A single graph For experiments in Figs. 3a-b, we pick $20\%$ of the path-connected nodes and put all simple paths between them into the training data for each graph type. We also add an equal number of non-path connected nodes to the training data.
427
+
428
+ In Fig. 3c, for each value of the path-length threshold parameter, which sets the maximum length of paths in the training dataset, we pick paths corresponding to $20\%$ of the allowed path-connected node pairs and put them into the training data, while the remainder are held out evaluations. For the non-path connected pairs, we simply take all node pairs that are not path-connected and add a fraction of these node pairs into the training data, chosen to roughly balance the number of path-connected node pairs according to the experimental conditions. The remainder of the node pairs are held-out for evaluation. For Fig. 4, we choose a single held out path-connected node pair and prompt the model 3000 times to stochastically sample paths.
429
+
430
+ Navigation with exemplars: A set of motifs For the motif experiments in Fig. 8, we generate a set of 10 motifs, each with a Bernoulli graph structure of 100 nodes with a bernoulli parameter $p = 0.95$ . We then divide the 45 possible pairwise motif orders ( $g_i \to g_j$ for all pairs ( $i, j$ ) of 10 motifs) into a set of 35 and 10 that we put into train and test respectively. For generating the context, we combine 3-6 motifs in a linear chain according to the allowed orders, and then sample exemplars as well as the final sequence that traverses the full motif chain by choosing start and goal nodes from the set of sources and sinks respectively.
431
+
432
+ For experiments in Fig. 9, we choose an initial and terminal motif $g_{i_1}$ and $g_{i_T}$ , and distinct intermediate motifs $g_{\text{inter}}$ and $g_{\text{inter}}'$ . We then construct the in-context exemplars in order: $e_{g_{i_1}, g_{\text{inter}}}, e_{g_{\text{inter}}, g_{i_T}}, e_{g_{i_2}, g_{\text{inter}}'}, e_{g_{\text{inter}}, g_{i_T}}$ . The model is then prompted with $X_s \in g_{i_1}$ and $X_g \in g_{i_T}$ .
433
+
434
+ # Comparisons between natural language and our graph navigation setup
435
+
436
+ - Connecting concepts to token paths. The mapping of natural language semantics onto a latent graph is an important piece of stepwise inference, but in our study we abstract this mapping away and study the capabilities of a transformer architecture trained with next token prediction. However, in this (much) simplified setting, we still uncover analogs of several phenomena at scale and also predict new phenomena, which is a valuable contribution and speaks to the fundamental limitations and properties of this task.
437
+ - Long-range correlation in the token sequence. We included long-range correlation in our sequences in two ways. In the single graph setting, the path produced by the model must end to the goal, which is the first token in the prompt. This is exemplified in figure 5, where we tracked failure modes over training. To reiterate, what we found was that edges (short-range correlation) are learnt before paths that end in the specified goal (long range correlation). In the motif setting, the "ghost edge" in each exemplar must be identified and reproduced in the final produced path.
438
+ - Disambiguating correct word sense. We have incorporated a version of the ambiguity of natural language by including label noise in a fraction of the tokens. Our Appendix figure 14 shows that the main results continue to hold in this case. Further, given a (start, goal) node pair, there are several possible paths between them. This is another source of stochasticity/ambiguity that models real language, Fig. 11. Further, in our motif setup, in each exemplar path, the transition from one motif to another is not explicitly provided and thus the model has to infer this, this adds another source of ambiguity.
439
+
440
+ Given these observations, there are several examples not captured by our simplified setup:
441
+
442
+ - A cyclic reasoning failure mode is not captured by the model since we have only included simple paths in the training data.
443
+ - Further, the mapping from natural language semantics to a latent graph has been abstracted out and thus failures based on a misidentification of the graph are not captured by the model.
444
+ - Another limitation of our work is that our graphs in both the single graph setting and motif setting are fixed over pretraining. There are scenarios where generation of a step of reasoning or decision-making can change the underlying graph dynamically. Real-world examples of this include: (1) a game-like environment where navigation can produce new information, or question-answer format of reasoning where new information is provided (2) a scientific domain where a new experimental result can introduce new entities or change existing relationships (e.g., discovering a new gene-disease association), necessitating a dynamic update of the graph to guide future experiments.
445
+
446
+ # E. Additional experimental results
447
+
448
+ Label noise in training data In Fig. 14, we mimic real-world language data, abundant in ambiguity and polysemy, by corrupting (a) $5\%$ , (b) $10\%$ and (c) $20\%$ of tokens in a single graph scenario. To achieve this, we replaced a randomly chosen $5\%$ and $10\%$ of the tokens in the training data with random tokens. We observe that the gap between stepwise inference and direct inference persists in both scenarios. This finding indicates that stepwise inference remains effective in more realistic settings with noise.
449
+
450
+ Varying edge density In Fig. 15, we swept the density of the graph from 0.08 to 0.12 on a hierarchical graph. We observe a stepwise inference gap in all cases. The stepwise inference gap becomes smaller for larger densities. This is because the more likely the nodes are to be connected, the more likely it is for shortest paths to exist between nodes and thus less "stitching" is needed (Broadbent & Hammersley, 1957).
451
+
452
+ Short path bias Fig. 16 presents a density plot comparing the average lengths of actual paths with those generated by the model in a Bernoulli graph. This observation verifies the model tends to produce shorter paths between a given pair of stars and goal nodes.
453
+
454
+ ![](images/ff3b5c94a865c057ebf09f794c0d6af7313dd0e067d7a17546703ed901c1f90c.jpg)
455
+ Figure 14. Persistence of stepwise inference gap with corrupted tokens: In this experiment with setup identical to Fig. 3a-b, (a) $5\%$ , (b) $10\%$ and (c) $20\%$ of tokens were randomly corrupted to mimic real world language data. The stepwise-inference gap persists.
456
+
457
+ ![](images/93ca895a206c8ecb80cdc6d9ee5f12cb32da8b11c9c9c8ee0110e1afd3b44c0d.jpg)
458
+
459
+ ![](images/4e99e7fcace7c53d004210046e0aa6c848c551d95abc7701b87dc64a9e1c684b.jpg)
460
+
461
+ ![](images/091dfb374d890f4860278811bb554f5da922880b33490e3b735b4d3c4d8a3bc0.jpg)
462
+ Figure 15. The effect of varying edge density in the single graph scenario: Here we vary $p$ , the edge density of connectivity in the graph, from 0.08 in the left-most plot to 0.12 in the right-most plot, in steps of 0.01. The stepwise inference gap persists in all cases.
463
+
464
+ ![](images/ad78744267b619040f3b9657588e5c23be233c1548c26fb7b61157e209971dc4.jpg)
465
+
466
+ ![](images/7882a542df6c054d98d2c1847569e4dd73e38664052e453d3b0699365092ee83.jpg)
467
+
468
+ ![](images/bee6190cc12d23d375ffcac946a52d828795633f2edbffc133a5af86d01d49c1.jpg)
469
+
470
+ Effect of varying embedding dimensionality in the single graph scenario Here we consider the 1-layer Transformer without MLP and post-LayerNorm and ask the following question: for a fixed underlying graph size and training data, how does the model performance vary as we sweep embedding dimensionality. Intuitively, if the embedding dimensionality is large, the model should be able to generalize better by learning a better embedding of the node tokens. We see that beyond a critical dimensionality (which is around 20 for a graph of 200 nodes), the model generalizes to all held out (start, goal) node pairs with a fairly abrupt transition (see Fig. 18).
471
+
472
+ # F. Intuition guiding the mechanistic analysis
473
+
474
+ In this section, we present the intuition that served as the hypothesis guiding our mechanistic analysis.
475
+
476
+ Consider the optimal maximum likelihood estimator designed to solve our graph navigation task. Given a start node $X_{s}$ and an incomplete sequence of predicted nodes $X_{1},\ldots ,X_{k}$ in the pursuit of navigating to the goal node $X_{g}$ , the estimator
477
+
478
+ ![](images/870119ac4a682fe0f75387c2474bc2f041a7774edf5e51a63e35c83238bc3d16.jpg)
479
+ Figure 16. Model outputs are biased toward shorter paths.
480
+
481
+ ![](images/c4fb959b23622fe5f3ba49271b544194d0309ff2a7f0d7770d49241ddc5d73ce.jpg)
482
+ Figure 17. Varying number of layers: We find that there is no qualitative change in the learning dynamics as we vary the number of layers in a transformer, keeping the data distribution fixed.
483
+
484
+ ![](images/7b42eaa518187f7bbcda11152572095f4d493c9e41d668b3ee8360f8b0becedb.jpg)
485
+
486
+ ![](images/2863e47a85a7d8a6fbd5bc7db4e7cebc5968126526d57933c40e9cc5b5338b4e.jpg)
487
+ Figure 18. Varying embedding dimensionality in 1 layer models: We find that there is a critical embedding dimensionality (around 20 for a Bernoulli graph of size 200 nodes and $p = 0.05$ ) above which the model can generalize to all held-out node pairs.
488
+
489
+ ![](images/b699dfd6e28381de944e1b7ff2cacdc2b90aedfcf06b5de127fc8f8c72622ccc.jpg)
490
+
491
+ works the following way:
492
+
493
+ $$
494
+ X _ {\text {n e x t}} = \arg \max _ {X ^ {\prime}} P (X ^ {\prime} | X _ {s}; X _ {1}, \dots , X _ {k}; X _ {g})
495
+ $$
496
+
497
+ Since the task is conditionally Markovian: the choice of the next step will be independent of the history when conditioned on $X_{g}$ and $X_{k}$ . Accordingly, we have:
498
+
499
+ $$
500
+ \begin{array}{l} X _ {\text {n e x t}} = \operatorname {a r g m a x} _ {X ^ {\prime}} P \left(X ^ {\prime} \mid X _ {k}, X _ {g}\right) \\ = \arg \max _ {X ^ {\prime}} \frac {P (X _ {g} | X ^ {\prime} , X _ {k}) P (X ^ {\prime} , X _ {k})}{P (X _ {g} , X _ {k})} \\ \end{array}
501
+ $$
502
+
503
+ This decomposition leads to interpretable terms which shed light on what algorithm the model might use:
504
+
505
+ $$
506
+ \log P \left(X ^ {\prime} \mid X _ {k}, X _ {g}\right) = \log P \left(X _ {g} \mid X ^ {\prime}, X _ {k}\right) + \log P \left(X ^ {\prime}, X _ {k}\right) - \log P \left(X _ {g}, X _ {k}\right)
507
+ $$
508
+
509
+ These terms can be interpreted as follows:
510
+
511
+ 1. $\log P(X_{g},X_{k})$ describes the prompt.
512
+ 2. $\log P(X', X_k)$ describes the knowledge of the world model: How well does the model know the ground truth structure of the graph?
513
+ 3. $\log P(X_g|X', X_k)$ corresponds to the goal-directed behavior: What $X'$ is most likely to lead to the goal?
514
+
515
+ Let $\mathcal{C}(X_k)$ denote the subset of nodes in the graph that are children of the node $X_k$ . Then, while selecting the next token that has the highest likelihood, note that terms (1) and (2) cannot be optimized over: the former does not depend on $X'$ and the latter, for the optimal predictor, will be $1 / |\mathcal{C}(X_k)|$ if $X' \in \mathcal{C}(X_k)$ and 0 otherwise. Accordingly, the only term that can be optimized over is the third one, i.e., the one that measures how likely the goal is if the next state is $X'$ . However, due to term (2), $X' \in \mathcal{C}(X_k)$ —that is, the possible set of next tokens is constrained to the set $\mathcal{C}(X_k)$ .
516
+
517
+ Now, exploiting the task's conditional Markovian nature again, we have $P(X_{g}|X^{\prime},X_{k}) = P(X_{g}|X^{\prime}:X^{\prime}\in \mathcal{C}(X_{k}))$ . Heuristically, assume that $P(X_{g}|X^{\prime})\propto \mathrm{e}^{-d(X_{g},X^{\prime})}\cdot \mathbb{I}(X^{\prime}\in \mathcal{C}(X_{k}))$ , where $d(X_{i},X_{j})$ is a measure that describes the distance between nodes $X_{i}$ and $X_{j}$ , while respecting the topology of the graph, and $\mathbb{I}$ is an indicator function that is 1 if its input is True, and 0 if not. Then, we have $\log P(X_g|X',X_k)\propto -d(X_g,X')\cdot \mathbb{I}(X'\in \mathcal{C}(X_k))$ .
518
+
519
+ The intuitive argument above, though likely to be approximate, suggests that a possible solution the model can learn via autoregressive training in our graph navigation setup is (i) compute the distance between all neighboring nodes of the current node and the goal node, (ii) move to the node that has the least distance, and (iii) repeat. The algorithm we uncover in our analysis in Sec. 3.1.4 in fact functions in a similar way: the model is constantly computing a inner product between the goal token's representation and the embeddings of all tokens; we find this inner product is highest for the neighbors of the current token. Then, the highest inner product token is outputted and the process is repeated. Since the embeddings are not normalized, this inner product is not exactly the Euclidean distance—we expected as much, since the topology of the graph will have to be accounted for and learning an inner product based metric will be easier for a model (because most operations therein are inner products).
520
+
521
+ Further, in the case of motifs, we expect that the model constructs a path through checkpoints defined by ghost edges, which act as subgoals. To explain, given a set of K motifs strung together in-context $\{g_{i_1}, g_{i_2}, g_{i_3}, \ldots, g_{i_K}\}$ , we have the set of K-1 ghost edges, one for each exemplar: $\{(X_{\mathrm{sink}}(g_{i_1}), X_{\mathrm{source}}(g_{i_2})), (X_{\mathrm{sink}}(g_{i_2}), X_{\mathrm{source}}(g_{i_3})), \ldots, (X_{\mathrm{sink}}(g_{i_{K-1}}), X_{\mathrm{source}}(g_{i_K}))\}$ . Thus, we hypothesize that the model identifies all K-1 ghost edges from its context and plans sub-paths to each ghost edge in pursuit of the goal. Preliminary analyses of attention patterns in Fig. 19 provide evidence for this hypothesis.
522
+
523
+ # F.1. Generalizing static word embeddings to 3-way relations
524
+
525
+ Static word embedding algorithms such as Word2vec are trained by sampling pairs of words $(w_{i}, w_{c})$ that appear in the same context and adjusting their embeddings so that their inner product is higher than an inner product with the embedding of word $w_{i}$ and a randomly sampled word from the vocabulary. The algorithm can be understood as performing a low-rank factorization of the matrix of co-occurrence statistics. In the case of Word2vec, the matrix is factorized as $P = I \cdot C$ where
526
+
527
+ ![](images/1476a8f588cc625c855dbbdfdfaec87138d65ac708ba1ed9bb237f7d3dd35dc8.jpg)
528
+ Figure 19. Attention pattern after in-context exemplars: Here we visualize the portion of the attention map after prompting with four in-context exemplar sequences. The model generates attentional patterns that treat the node across ghost edges as a subgoal.
529
+
530
+ $I$ contains word vectors in its rows and $C$ contains word covectors in its columns. Therefore, every word has two types of embeddings. One is used when the word appears in the first position in the pair (which corresponds to center words), and the second when it appears in the second position (which corresponds to context words).
531
+
532
+ Inspired by the interpretability results, we argue our graph navigation task can also be solved using a similar low-rank factorization method that is generalized to 3-way relations. In this case, the tensor $T$ to be factorized is third-order, and for each node, we have three types of embeddings: one which is used when the node acts as a goal, one when it acts as the current state, and one when it acts as the next possible state.
533
+
534
+ Since we do not deal with a natural corpus with different frequency of occurrence of individual nodes, we can set the numbers $T_{ijk}$ to be proportional to the length $l_{ijk}$ of a path which goes through an ordered pair of neighbour nodes $(i,j)$ to a node $k$ . If there is no such path, we set the length to infinity. The target value $T_{ijk}$ can be seen as a preference for a node $j$ when the goal is to reach the node $k$ from the node $i$ ; it is equal to $l_{ijk}^{-1} / \sum_{j'} l_{ij'k}^{-1}$ .
535
+
536
+ Inspired by the learned algorithm, we can use low-rank tensor factorization to approximate this matrix by the following expression $T_{ijk} \approx \hat{T}_{ijk} = (\mathbf{s}_i + \mathbf{g}_k) \cdot \mathbf{n}_i$ , where $\mathbf{s}_i, \mathbf{g}_k, \mathbf{n}_i$ are the three types of learnable embeddings. Therefore, by interpreting the trained Transformer, we can obtain a simple algorithm that can be potentially useful in setups that deal with 3-way relationships. We leave this for future work.
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:bf681c9757c419c32368d71d79e0a18bfce7c0388df36a74aa9fffe24ed6b723
3
+ size 846057
2024/Towards an Understanding of Stepwise Inference in Transformers_ A Synthetic Graph Navigation Model/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_content_list.json ADDED
@@ -0,0 +1,1459 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 169,
8
+ 109,
9
+ 803,
10
+ 156
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Yaxin Li $^{1,2}$ Qi $\\mathbf{X}\\mathbf{u}^{\\boxtimes 1}$ Jiangrong Shen $^{3}$ Hongming $\\mathbf{X}\\mathbf{u}^{1}$ Long Chen $^{4}$ Gang Pan $^{3}$",
17
+ "bbox": [
18
+ 189,
19
+ 198,
20
+ 776,
21
+ 215
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 241,
31
+ 242,
32
+ 320,
33
+ 258
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "The emergence of deep and large-scale spiking neural networks (SNNs) exhibiting high performance across diverse complex datasets has led to a need for compressing network models due to the presence of a significant number of redundant structural units, aiming to more effectively leverage their low-power consumption and biological interpretability advantages. Currently, most model compression techniques for SNNs are based on unstructured pruning of individual connections, which requires specific hardware support. Hence, we propose a structured pruning approach based on the activity levels of convolutional kernels named Spiking Channel Activity-based (SCA) network pruning framework. Inspired by synaptic plasticity mechanisms, our method dynamically adjusts the network's structure by pruning and regenerating convolutional kernels during training, enhancing the model's adaptation to the current target task. While maintaining model performance, this approach refines the network architecture, ultimately reducing computational load and accelerating the inference process. This indicates that structured dynamic sparse learning methods can better facilitate the application of deep SNNs in low-power and high-efficiency scenarios.",
40
+ "bbox": [
41
+ 117,
42
+ 263,
43
+ 444,
44
+ 672
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1. Introduction",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 86,
54
+ 700,
55
+ 217,
56
+ 715
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Spiking Neural Networks (SNNs), known as the third generation of artificial neural networks (Maass, 1997), are",
63
+ "bbox": [
64
+ 84,
65
+ 726,
66
+ 475,
67
+ 756
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "$^{1}$ School of Computer Science and Technology, Dalian University of Technology, Dalian, China $^{2}$ Guangdong Laboratory of Artificial Intelligence and Digital Economy, Shenzhen, China $^{3}$ College of Computer Science and Technology, Zhejiang University, Hangzhou, China $^{4}$ Centre for Systems Engineering and Innovation, Imperial College London, London, UK. Correspondence to: Qi Xu <xuqi@dlut.edu.cn>.",
74
+ "bbox": [
75
+ 84,
76
+ 763,
77
+ 473,
78
+ 854
79
+ ],
80
+ "page_idx": 0
81
+ },
82
+ {
83
+ "type": "text",
84
+ "text": "Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).",
85
+ "bbox": [
86
+ 84,
87
+ 864,
88
+ 473,
89
+ 905
90
+ ],
91
+ "page_idx": 0
92
+ },
93
+ {
94
+ "type": "text",
95
+ "text": " renowned for their advantages in biological interpretability and low power consumption. Inspired by biological information processing mechanisms, unlike traditional artificial neural networks (ANNs), SNNs utilize spike sequences for feature encoding, transmission, and processing. Deployed on neuromorphic chips (Ma et al., 2023), SNNs capitalize on event-driven and asynchronous computation to significantly reduce computational complexity and minimize unnecessary overhead (Davies et al., 2018). It's noteworthy that the human brain operates on just 20 watts of power (Mink et al., 1981). The synaptic connection count undergoes a rapid increase and a gradual decrease throughout the lifecycle (Cizeron et al., 2020). In the process of cognition, the brain network's structure exhibits plasticity, meaning synaptic connections can strengthen, weaken, establish, or eliminate under the influence of learning and experience (Trachtenberg et al., 2002) (Stettler et al., 2006) (Holtmaat & Svoboda, 2009) (Barnes & Finnerty, 2010). However, many SNNs adopt fixed network structures from conventional deep learning (Wu et al., 2018) (Fang et al., 2021a) (Ding et al., 2021) (Bu et al., 2023), which may contain illogical or redundant components. Therefore, to better leverage the energy-efficient advantages of SNNs, drawing inspiration from the mechanisms of synaptic plasticity in biology, it is highly essential to adaptively learn appropriate and sparse network structures during training according to the objectives of the task.",
96
+ "bbox": [
97
+ 495,
98
+ 244,
99
+ 887,
100
+ 652
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "In recent years, much research has focused on the adaptive sparse structural learning of SNNs, training a lightweight network from scratch. Kappel et al. (2015) proposed a framework of synaptic sampling for Bayesian inference to optimize both the structure and parameters of the network. Inspired by the mechanisms of brain rewiring, Bellec et al. (2017) introduced the Deep R method for ANNs. This method trains deep networks under strict connectivity constraints. They extended the Deep R approach to RSNN and LSNN (Bellec et al., 2018) while also implementing it on the prototype chip of the 2nd generation SpiNNaker system (Liu et al., 2018). The Spike-Thrift method employs attention mechanisms for pruning and growing connections during training (Kundu et al., 2021). Chen et al. (2021) introduced the Grad R method, defining the size and density of dendritic spines as the absolute values of weights and",
107
+ "bbox": [
108
+ 495,
109
+ 659,
110
+ 888,
111
+ 902
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "page_number",
117
+ "text": "1",
118
+ "bbox": [
119
+ 480,
120
+ 922,
121
+ 491,
122
+ 934
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "text",
128
+ "text": "the pruning and growth occur through adaptive competition. They further defined dynamic pruning methods for excitatory and inhibitory transformation of dendrites (Chen et al., 2022). Jiang et al. (2023) trained a sparse network structure by combining global and local information. However, most of the aforementioned approaches for SNNs structural learning focus on sparsification at the level of individual connections. This approach is non-structured and exhibits irregular and unstable characteristics, making it less suitable for hardware deployment and optimization. On the other hand, structured sparse methods are more amenable to achieving lightweight networks, reducing the complexity of memory access, and displaying superior hardware adaptability.",
129
+ "bbox": [
130
+ 84,
131
+ 85,
132
+ 475,
133
+ 296
134
+ ],
135
+ "page_idx": 1
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "This paper introduces an adaptive and structured sparse learning framework for SNNs, inspired by the mechanisms of synaptic plasticity in biological neural networks. As shown in Figure 1(a), the proposed SCA framework achieves network lightweight at the granularity of convolutional kernels, akin to the sparse responses of receptive cells in the biological visual system (Houweling & Brecht, 2008) (Hu et al., 2014) (Yan et al., 2020) (Yu et al., 2020). During training, the SCA framework jointly learns both the network's parameters and its structure. It accomplishes this through a self-discovery process of pruning and regrowing, guided by the structure learning rule, leading to the identification of a lightweight yet high-performance network model. The structure learning rule determines the importance of channels based on the spiking activity level, to identify the guidance for dynamic topology updates. Coarse-grained sparsification facilitates the learning of regularized structures, effectively reducing storage and computational costs, while also enhancing hardware compatibility (He & Xiao, 2023). The following are the main contributions of this paper:",
140
+ "bbox": [
141
+ 84,
142
+ 303,
143
+ 477,
144
+ 621
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "list",
150
+ "sub_type": "text",
151
+ "list_items": [
152
+ "- The proposed SNNs sparsification framework adapts the structure and parameters of a joint learning network by using convolutional kernels as the fundamental units. Structured pruning aligns better with the characteristics of sparsified responses in the biological visual neural system, making it easier to achieve more compressed and lightweight network models.",
153
+ "- The structural learning rule of this framework adheres to the mechanisms of synaptic plasticity, allowing for the removal of redundancies and regeneration of certain convolutional kernels based on spiking activity level. An adaptive structural learning approach is advantageous for acquiring a network structure that is more appropriate for the target task.",
154
+ "- This framework is a general-purpose framework that can be applied to most directly trained deep convolutional SNNs. Experimental results demonstrate that"
155
+ ],
156
+ "bbox": [
157
+ 104,
158
+ 633,
159
+ 473,
160
+ 905
161
+ ],
162
+ "page_idx": 1
163
+ },
164
+ {
165
+ "type": "text",
166
+ "text": "our approach performs well on CIFAR10, CIFAR100 and DVS-CIFAR10, maintaining network performance while reducing the parameter count.",
167
+ "bbox": [
168
+ 529,
169
+ 84,
170
+ 885,
171
+ 130
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2. Related Work",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 496,
181
+ 162,
182
+ 638,
183
+ 178
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Training Method. The development of SNNs training methods has undergone a progression from shallow to deep architectures. The earliest SNN algorithms are primarily based on unsupervised learning principles of synaptic plasticity. These methods often utilize fully connected single-layer network structures such as STDP (Song et al., 2000), Oja (Oja, 1982), and BCM (Bienenstock et al., 1982), or shallow convolutional architectures like SDNN (Kheradpisheh et al., 2018), SpiCNN (Lee et al., 2018), and ReStoCNet (Srinivasan & Roy, 2019). Typically, these approaches exhibit limited performance and are applied to less complex datasets. In recent years, numerous supervised training methods for deep SNNs have emerged which can be categorized into two main types: direct and indirect. Indirect learning methods focus on converting trained SNNs (Hu et al., 2021a) (Hu et al., 2023). The direct training methods draw inspiration from the concepts of backpropagation. These methods significantly enhance the performance of SNNs on intricate datasets. The STBP method employs a gradient surrogate approach to implement error backpropagation across both temporal and spatial dimensions (Wu et al., 2018). This technique can be applied to sophisticated network architectures like VGG and ResNet. Building upon this, Zheng et al. (2021) have introduced the tdBN method, which offers improved feature normalization in both temporal and spatial dimensions. Further, Duan et al. (2022) proposed the TEBN method using different weights at each time step. Fang et al. (2021b) introduced the PLIF model that enables the updating of membrane time constants during the training process. Deng et al. (2022) proposed the TET method to address momentum loss during the surrogate gradient descent process. SEW-Resnet (Fang et al., 2021a) and MS-ResNet (Hu et al., 2021b) adjust the structure of residual networks to achieve better identity mapping of residual blocks. These address challenges related to gradient explosion or vanishing and enable the successful training of SNN models with over a hundred layers. These techniques hold promise for the creation of intricate, large-scale deep SNNs with impressive performance (Guo et al., 2023).",
190
+ "bbox": [
191
+ 495,
192
+ 188,
193
+ 888,
194
+ 779
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "Structural Learning Method. These deep SNNs often come with a large number of parameters and significant computational costs, making the pruning of redundant connections essential. Pruning methods can generally be categorized as non-structured and structured. Non-structured pruning typically involves removing individual connections to reduce the parameter count. Deng et al. (2021) combined STBP with the ADMM (Alternating Direction Method of",
201
+ "bbox": [
202
+ 495,
203
+ 784,
204
+ 888,
205
+ 905
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "header",
211
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
212
+ "bbox": [
213
+ 169,
214
+ 56,
215
+ 800,
216
+ 70
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "page_number",
222
+ "text": "2",
223
+ "bbox": [
224
+ 480,
225
+ 922,
226
+ 491,
227
+ 934
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "image",
233
+ "img_path": "images/7f40ba7fbb5bd185ebc296f325901a8245b361042d04d16a4ceaf3ee7dc76765.jpg",
234
+ "image_caption": [
235
+ "(a) The SCA structure learning framework."
236
+ ],
237
+ "image_footnote": [],
238
+ "bbox": [
239
+ 196,
240
+ 108,
241
+ 612,
242
+ 323
243
+ ],
244
+ "page_idx": 2
245
+ },
246
+ {
247
+ "type": "image",
248
+ "img_path": "images/5b1a022945c83545aa44214aa6aa0fc33fcad01ddd2502d02c01652166ece1b8.jpg",
249
+ "image_caption": [
250
+ "(b) Network structures.",
251
+ "Figure 1. The schematic illustration of the SCA structure learning framework. (a) The proposed framework follows structure learning rules to adaptively learn lightweight network models during training. (b) The proposed framework is applicable to various network structures like pre-activation, post-activation, etc."
252
+ ],
253
+ "image_footnote": [],
254
+ "bbox": [
255
+ 617,
256
+ 104,
257
+ 782,
258
+ 323
259
+ ],
260
+ "page_idx": 2
261
+ },
262
+ {
263
+ "type": "text",
264
+ "text": "Multipliers) optimization tool to achieve a sparse network structure through alternating optimization. Yin et al. (2021) devised binary \"gates\" to control the presence of connections, optimizing binary Bernoulli gate values through a smoothed objective function. Drawing inspiration from the dynamic changes in brain connectivity, Chen et al. (2021) proposed the Grad R method, where pruning is accompanied by the growth of certain connections in an adaptive competitive process. Chen et al. (2022) further defined a process of transformation between filamentous pseudopodia and mature dendritic spines, allowing connections to be adaptively pruned or reactivated. The ESL-SNNs method initializes a sparse network structure using the Erdos-Renyi random graph approach and progressively adapts the network structure from scratch (Shen et al., 2023). Furthermore, Shen et al. (2024) proposed a dynamic network structure by selecting activated units in the spatio and temporal dimensions and applied it to continuous learning tasks. However, Non-structured pruning, being a fine-grained method, often requires specific hardware support. On the other hand, structured pruning typically operates at the channel or layer level, yielding more compact network structures. Chowdhury et al. (2021) employed principal component analysis to compute inter-channel correlations, identifying redundant channels within SNNs. This method is primarily inspired by techniques from the field of ANNs and applies to SNNs.",
265
+ "bbox": [
266
+ 83,
267
+ 404,
268
+ 478,
269
+ 797
270
+ ],
271
+ "page_idx": 2
272
+ },
273
+ {
274
+ "type": "text",
275
+ "text": "3. Preliminary",
276
+ "text_level": 1,
277
+ "bbox": [
278
+ 84,
279
+ 816,
280
+ 210,
281
+ 834
282
+ ],
283
+ "page_idx": 2
284
+ },
285
+ {
286
+ "type": "text",
287
+ "text": "Spiking Neuron Model. The spiking neuron model is the fundamental unit of a spiking neural network, simulating the behavior of biological neurons in transmitting information through spikes. The mechanism underlying the generation",
288
+ "bbox": [
289
+ 84,
290
+ 842,
291
+ 475,
292
+ 905
293
+ ],
294
+ "page_idx": 2
295
+ },
296
+ {
297
+ "type": "text",
298
+ "text": "of action potentials in biological neurons involves processes of depolarization, overshoot, and repolarization. The spiking neuron model simulates the mechanism of biological action potentials and thus establishes a simplified mathematical model, which consists of three equations: charging, discharging, and resetting. As shown in the following Eq. (1), the spiking neuron accumulates the input stimuli $X_{t}$ from presynaptic neurons, integrating all the currents received from these neurons. If the membrane potential $H_{t}$ of the spiking neuron exceeds a certain threshold $V_{\\mathrm{th}}$ , it will fire a spike and reset to the resting potential $V_{\\mathrm{reset}}$ .",
299
+ "bbox": [
300
+ 496,
301
+ 404,
302
+ 888,
303
+ 571
304
+ ],
305
+ "page_idx": 2
306
+ },
307
+ {
308
+ "type": "equation",
309
+ "text": "\n$$\nH _ {t} = f \\left(V _ {t} - 1, X _ {t}\\right)\n$$\n",
310
+ "text_format": "latex",
311
+ "bbox": [
312
+ 571,
313
+ 580,
314
+ 712,
315
+ 597
316
+ ],
317
+ "page_idx": 2
318
+ },
319
+ {
320
+ "type": "equation",
321
+ "text": "\n$$\nS _ {t} = g \\left(H _ {t} - V _ {\\mathrm {t h}}\\right) = \\Theta \\left(H _ {t} - V _ {\\mathrm {t h}}\\right) \\tag {1}\n$$\n",
322
+ "text_format": "latex",
323
+ "bbox": [
324
+ 576,
325
+ 599,
326
+ 885,
327
+ 616
328
+ ],
329
+ "page_idx": 2
330
+ },
331
+ {
332
+ "type": "equation",
333
+ "text": "\n$$\nV _ {t} = H _ {t} \\cdot \\left(1 - S _ {t}\\right) + V _ {\\text {r e s e t}} \\cdot S _ {t}\n$$\n",
334
+ "text_format": "latex",
335
+ "bbox": [
336
+ 576,
337
+ 618,
338
+ 785,
339
+ 633
340
+ ],
341
+ "page_idx": 2
342
+ },
343
+ {
344
+ "type": "text",
345
+ "text": "Where $\\Theta (\\cdot)$ denotes the Heaviside step function, thus $s_t$ is 1 if a spike is fired, and 0 otherwise. The function $f(\\cdot)$ is the equation describing the dynamics of spiking neurons. In this paper, the spiking neuron models we use are the Integrate-and-Fire (IF) neuron model and the Leaky Integrate-and-Fire (LIF) neuron model as presented in Eq. (2) of Spikingjelly (Fang et al., 2020).",
346
+ "bbox": [
347
+ 495,
348
+ 643,
349
+ 888,
350
+ 751
351
+ ],
352
+ "page_idx": 2
353
+ },
354
+ {
355
+ "type": "equation",
356
+ "text": "\n$$\nV _ {t} = f \\left(V _ {t - 1}, X _ {t}\\right) = V _ {t - 1} + X _ {t}\n$$\n",
357
+ "text_format": "latex",
358
+ "bbox": [
359
+ 496,
360
+ 760,
361
+ 715,
362
+ 777
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "equation",
368
+ "text": "\n$$\nV _ {t} = f \\left(V _ {t - 1}, X _ {t}\\right) = V _ {t - 1} + \\frac {1}{\\tau_ {m}} \\left(- \\left(V _ {t - 1} - V _ {\\text {r e s e t}}\\right) + X _ {t}\\right) \\tag {2}\n$$\n",
369
+ "text_format": "latex",
370
+ "bbox": [
371
+ 500,
372
+ 779,
373
+ 885,
374
+ 821
375
+ ],
376
+ "page_idx": 2
377
+ },
378
+ {
379
+ "type": "text",
380
+ "text": "Where $\\tau_{m}$ represents the time constant of membrane potential.",
381
+ "bbox": [
382
+ 495,
383
+ 823,
384
+ 887,
385
+ 851
386
+ ],
387
+ "page_idx": 2
388
+ },
389
+ {
390
+ "type": "text",
391
+ "text": "Surrogate Gradient. Differing from conventional neural networks, the spiking neurons in SNNs transmit feature information through a sequence of discrete spikes. As de",
392
+ "bbox": [
393
+ 495,
394
+ 859,
395
+ 888,
396
+ 906
397
+ ],
398
+ "page_idx": 2
399
+ },
400
+ {
401
+ "type": "header",
402
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
403
+ "bbox": [
404
+ 169,
405
+ 56,
406
+ 802,
407
+ 71
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "page_number",
413
+ "text": "3",
414
+ "bbox": [
415
+ 480,
416
+ 922,
417
+ 491,
418
+ 934
419
+ ],
420
+ "page_idx": 2
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "picted in Eq. (3), the backpropagation in SNNs leverages the chain rule to compute gradients across spatial and temporal dimensions, akin to the Backpropagation Through Time (BPTT) algorithm in Recurrent Neural Networks (RNNs).",
425
+ "bbox": [
426
+ 84,
427
+ 84,
428
+ 473,
429
+ 146
430
+ ],
431
+ "page_idx": 3
432
+ },
433
+ {
434
+ "type": "equation",
435
+ "text": "\n$$\n\\frac {\\partial L}{\\partial W} = \\sum_ {t = 1} ^ {T} \\frac {\\partial L}{\\partial H _ {t}} \\frac {\\partial H _ {t}}{\\partial W} = \\sum_ {t = 1} ^ {T} \\frac {\\partial L}{\\partial S _ {t}} \\frac {\\partial S _ {t}}{\\partial H _ {t}} \\frac {\\partial H _ {t}}{\\partial X _ {t}} \\frac {\\partial X _ {t}}{\\partial W} \\tag {3}\n$$\n",
436
+ "text_format": "latex",
437
+ "bbox": [
438
+ 109,
439
+ 181,
440
+ 475,
441
+ 223
442
+ ],
443
+ "page_idx": 3
444
+ },
445
+ {
446
+ "type": "text",
447
+ "text": "Due to the binary nature of spikes $(S_{t}\\in \\{0,1\\})$ $\\frac{\\partial S_t}{\\partial H_t}$ is non-differentiable. Hence, to enable the utilization of backpropagation for the direct training of SNNs, the gradient surrogate method employs differentiable functions $g(x)$ to substitute for the non-differentiable spikes $\\Theta (x)$ . The gradient surrogate function utilized here is the sigmoid function $g(x) = \\mathrm{Sigmoid}(\\alpha x) = \\frac{1}{1 + e^{-\\alpha x}}$ , where $\\alpha$ is used to control the smoothness of the function.",
448
+ "bbox": [
449
+ 84,
450
+ 260,
451
+ 475,
452
+ 380
453
+ ],
454
+ "page_idx": 3
455
+ },
456
+ {
457
+ "type": "text",
458
+ "text": "4. Methodology",
459
+ "text_level": 1,
460
+ "bbox": [
461
+ 84,
462
+ 401,
463
+ 220,
464
+ 419
465
+ ],
466
+ "page_idx": 3
467
+ },
468
+ {
469
+ "type": "text",
470
+ "text": "This section introduces the dynamic structural pruning framework proposed in this paper, SCA network pruning method. This method determines the importance of channels based on their spiking activity and dynamically optimizes the network structure during the training process. It is applicable to various convolutional network architectures, including VGG, ResNet, and others.",
471
+ "bbox": [
472
+ 84,
473
+ 428,
474
+ 475,
475
+ 532
476
+ ],
477
+ "page_idx": 3
478
+ },
479
+ {
480
+ "type": "text",
481
+ "text": "4.1. The SCA Structure Learning Framework",
482
+ "text_level": 1,
483
+ "bbox": [
484
+ 84,
485
+ 550,
486
+ 408,
487
+ 565
488
+ ],
489
+ "page_idx": 3
490
+ },
491
+ {
492
+ "type": "text",
493
+ "text": "As depicted in Algorithm 1, the SCA structure learning method simultaneously performs joint learning of both the network's weight parameters and its topological structure during the training process. Its inspiration originates from the plasticity of the biological neural system, resembling how biological neural networks optimize information transmission through processes of synaptic modulation, establishment and elimination. In the structural learning phase, the significance of each channel is determined by assessing the spiking activity level. This method identifies redundant channels with lower spiking activity and removes them while generating a subset of channels in each or several iterations. The network's structural changes are recorded using a mask. During the weight learning phase, the network's weights are updated using gradient surrogate method. Then, repeat the two aforementioned processes until the model converges. During the training process, we added L1 regularization to better identify redundant structures. Finally, a new model is obtained by completely removing redundant channels according to the mask, ensuring a meticulously optimized lightweight network without compromising its performance.",
494
+ "bbox": [
495
+ 84,
496
+ 573,
497
+ 475,
498
+ 905
499
+ ],
500
+ "page_idx": 3
501
+ },
502
+ {
503
+ "type": "text",
504
+ "text": "Algorithm 1 The Overall Training Framework.",
505
+ "text_level": 1,
506
+ "bbox": [
507
+ 498,
508
+ 84,
509
+ 808,
510
+ 99
511
+ ],
512
+ "page_idx": 3
513
+ },
514
+ {
515
+ "type": "text",
516
+ "text": "Input: Input data $X$ . Labels $Y$ .",
517
+ "bbox": [
518
+ 500,
519
+ 102,
520
+ 712,
521
+ 114
522
+ ],
523
+ "page_idx": 3
524
+ },
525
+ {
526
+ "type": "text",
527
+ "text": "Output: Pruning channels ratio $p\\%$ . Mask update ratio $q\\%$ . The weight $W$ . The weight mask $M$ .",
528
+ "bbox": [
529
+ 500,
530
+ 114,
531
+ 885,
532
+ 141
533
+ ],
534
+ "page_idx": 3
535
+ },
536
+ {
537
+ "type": "list",
538
+ "sub_type": "text",
539
+ "list_items": [
540
+ "1: Initialize the weight $W$ ;",
541
+ "2: for $i$ in [1, epoch] do",
542
+ "3: Learn weight parameters based on surrogate gradient under L1 regularization;",
543
+ "4: Learn weight connection based on structure learning rule:",
544
+ "5: (1) Prune $q\\%$ channels, resulting in the removal of $(p + q)\\%$ channels;",
545
+ "6: (2) Regrow $q\\%$ channels, maintaining a pruning ratio of $p\\%$ ;",
546
+ "7: for each layer of the model do",
547
+ "8: $W = M\\odot W;$",
548
+ "9: end for \n0: end for",
549
+ "11: Completely remove the channels corresponding to zero positions in the mask to obtain the compressed network model.",
550
+ "12: return: The lightweight SNN."
551
+ ],
552
+ "bbox": [
553
+ 501,
554
+ 141,
555
+ 883,
556
+ 359
557
+ ],
558
+ "page_idx": 3
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "4.2. Channel Importance Score",
563
+ "text_level": 1,
564
+ "bbox": [
565
+ 496,
566
+ 388,
567
+ 718,
568
+ 404
569
+ ],
570
+ "page_idx": 3
571
+ },
572
+ {
573
+ "type": "text",
574
+ "text": "In SNNs, features were encoded and transmitted in the form of spike sequences. We obtain importance assessment scores by calculating the spiking neuron activity of each channel in the overall network model's feature map. In biological neural cells, the resting membrane potential is around - 65mV. When excited stimuli are received, the membrane potential increases, leading to a decrease in polarization level; this process is termed depolarization. On the other hand, inhibitory stimuli result in a decrease in membrane potential, causing an increase in polarization level; this process is referred to as hyperpolarization (Gerstner et al., 2014). Drawing inspiration from this biological mechanism, neurons with lower polarization levels can be considered less important, and their removal has a relatively minor impact on the network's accuracy. We use $r_k^l$ to denote the k-th channel of the l-th layer in the network. In each iteration, the average membrane potential of this channel on the training set is computed, as shown in Eq. (4).",
575
+ "bbox": [
576
+ 496,
577
+ 412,
578
+ 887,
579
+ 685
580
+ ],
581
+ "page_idx": 3
582
+ },
583
+ {
584
+ "type": "equation",
585
+ "text": "\n$$\nr _ {k} ^ {l} = \\frac {1}{N} \\frac {1}{T} \\left(\\sum_ {n = 1} ^ {N} \\sum_ {t = 1} ^ {T} \\| H _ {k} ^ {l} (t) \\|\\right) \\tag {4}\n$$\n",
586
+ "text_format": "latex",
587
+ "bbox": [
588
+ 581,
589
+ 695,
590
+ 885,
591
+ 736
592
+ ],
593
+ "page_idx": 3
594
+ },
595
+ {
596
+ "type": "text",
597
+ "text": "Where $N$ represents the number of samples in the training set, and $T$ is the time step of the SNN. $\\left\\| H_k^l (t)\\right\\|$ denotes the L1 norm of the membrane potential of that channel's feature map. In the feature map, the membrane potential of a specific neuron at time $t$ is denoted as $H_{t}^{ij}$ $(\\left\\| H_k^l (t)\\right\\| = \\left[H_t^{ij}\\right]_{h\\times w})$ . If $H_{t}^{ij}$ is positive, it is referred to as an excitatory postsynaptic potential (EPSP); otherwise, it is an inhibitory postsynaptic potential (IPSP). EPSP and IPSP generate firing and non-firing patterns, respectively. Both of these patterns play crucial roles in feature encoding.",
598
+ "bbox": [
599
+ 496,
600
+ 746,
601
+ 888,
602
+ 905
603
+ ],
604
+ "page_idx": 3
605
+ },
606
+ {
607
+ "type": "header",
608
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
609
+ "bbox": [
610
+ 169,
611
+ 56,
612
+ 800,
613
+ 70
614
+ ],
615
+ "page_idx": 3
616
+ },
617
+ {
618
+ "type": "page_number",
619
+ "text": "4",
620
+ "bbox": [
621
+ 480,
622
+ 922,
623
+ 491,
624
+ 934
625
+ ],
626
+ "page_idx": 3
627
+ },
628
+ {
629
+ "type": "text",
630
+ "text": "Filters with minimal impact on the spike sequence patterns are considered unimportant. Therefore, the degree of neuronal polarization can be used to assess its significance. In other words, the degree to which $H_{t}^{ij}$ deviates from 0 is used to determine the activity level of the spiking neuron, i.e. Spiking Channel Activity, similar to the polarization level of biological cells (Gerstner et al., 2014).",
631
+ "bbox": [
632
+ 88,
633
+ 85,
634
+ 472,
635
+ 189
636
+ ],
637
+ "page_idx": 4
638
+ },
639
+ {
640
+ "type": "text",
641
+ "text": "4.3. Structure Learning Rule",
642
+ "text_level": 1,
643
+ "bbox": [
644
+ 88,
645
+ 207,
646
+ 289,
647
+ 220
648
+ ],
649
+ "page_idx": 4
650
+ },
651
+ {
652
+ "type": "text",
653
+ "text": "Filter Pruning. In order to eliminate redundant portions in the network that contribute minimally to the target task or cause interference, a certain proportion of convolutional kernels are pruned based on channel importance scores. Initially, the sparsity ratio is set to $p\\%$ . We first calculate importance scores for all channels in the network and sort these scores, considering channels with lower scores as redundant components. This approach enables a more balanced reduction of redundancy across the entire network, leading to greater compression benefits while maintaining performance. We employ a mask to record the network's structure, where 0 denotes pruned channels and 1 represents retained ones. To better explore optimal network structures, during each iteration, a further $q\\%$ of pruning convolutional kernels are introduced. Simultaneously, $q\\%$ of the pruned convolutional kernels are reselected for regeneration, maintaining a consistent network sparsity ratio $p\\%$ .",
654
+ "bbox": [
655
+ 88,
656
+ 231,
657
+ 473,
658
+ 486
659
+ ],
660
+ "page_idx": 4
661
+ },
662
+ {
663
+ "type": "text",
664
+ "text": "Selective Growth. During the phase of selective growth, we determine the channels to be reactivated based on the gradient magnitudes of the Gamma parameters $\\gamma$ within the Batch Normalization (BN) layer. The Gamma parameters in the BN layers, acting as scaling factors, influence the range of features in the output. When pruned channels exhibit significant gradients in their Gamma parameters, it suggests the potential for these channels to regain their activity. Consequently, we can selectively regrow the network's channels with higher Gamma parameter gradients, aiming to optimize the network structure. After structural adjustments, the network is iteratively trained for one or several epochs, with the channels masked with 0 participating in the training. Through the process of pruning and regrowth, this framework mitigates the issue of potentially irreversible losses caused by pruning. Moreover, it facilitates the correction of accuracy losses resulting from erroneous pruning by allowing reactivation through regrowth.",
665
+ "bbox": [
666
+ 88,
667
+ 494,
668
+ 473,
669
+ 766
670
+ ],
671
+ "page_idx": 4
672
+ },
673
+ {
674
+ "type": "text",
675
+ "text": "4.4. Various Network Architectures",
676
+ "text_level": 1,
677
+ "bbox": [
678
+ 88,
679
+ 782,
680
+ 334,
681
+ 797
682
+ ],
683
+ "page_idx": 4
684
+ },
685
+ {
686
+ "type": "text",
687
+ "text": "This framework can be applied to various convolutional spiking neural network architectures. As shown in Figure 1(b), the SN denotes the spiking neuron layer. For post-activation network structures like VGG and ResNet, we employ the process of pruning and regeneration using the BN layer and spiking neuron layer immediately following the conv",
688
+ "bbox": [
689
+ 88,
690
+ 806,
691
+ 473,
692
+ 896
693
+ ],
694
+ "page_idx": 4
695
+ },
696
+ {
697
+ "type": "text",
698
+ "text": "layer. For pre-activation network structures like PreResNet, in the architecture on the right side, the BN1 and SN1 of the current block are used to determine filter pruning for the convolutional layer Conv2 of the previous block, while BN2 and SN2 are used to decide that of Conv1 for the current block. We will elaborate on the structural details employed in the experimental section.",
699
+ "bbox": [
700
+ 501,
701
+ 85,
702
+ 883,
703
+ 189
704
+ ],
705
+ "page_idx": 4
706
+ },
707
+ {
708
+ "type": "text",
709
+ "text": "5. Experiments",
710
+ "text_level": 1,
711
+ "bbox": [
712
+ 501,
713
+ 210,
714
+ 627,
715
+ 226
716
+ ],
717
+ "page_idx": 4
718
+ },
719
+ {
720
+ "type": "text",
721
+ "text": "5.1. Experiment Settings.",
722
+ "text_level": 1,
723
+ "bbox": [
724
+ 501,
725
+ 234,
726
+ 674,
727
+ 250
728
+ ],
729
+ "page_idx": 4
730
+ },
731
+ {
732
+ "type": "text",
733
+ "text": "Our experiments are conducted using the SpikeJelly framework (Fang et al., 2020), an SNN framework implemented based on PyTorch. We perform experiments on both static datasets and neuromorphic datasets. CIFAR-10 and CIFAR100 are commonly used static image classification datasets, containing 10 and 100 classes, respectively. The images in these datasets are $32 \\times 32$ RGB images. To input images into SNNs, encoding is required, and we use a time step of 4. The DVS-CIFAR10 dataset is a neuromorphic dataset, and we divide it into training and testing sets with 9000 and 1000 samples, respectively. The Tiny ImageNet dataset consists of 200 classes with a training set of 100000 samples and a test set of 10000 samples. Event data needs to be integrated into frame data, and we use 20 time steps for this purpose. The network structures used in the experiments are based on VGG and Pre-ResNet architectures. For the DVS-CIFAR10 experiments, the network structure is 64C3-AP2-128C3-AP2-128C3-AP2-256C3-AP2-256C3-AP2-10FC. The number of iterations for all experiments is set to 300 epochs.",
734
+ "bbox": [
735
+ 501,
736
+ 258,
737
+ 883,
738
+ 560
739
+ ],
740
+ "page_idx": 4
741
+ },
742
+ {
743
+ "type": "text",
744
+ "text": "5.2. Evaluation on different datasets.",
745
+ "text_level": 1,
746
+ "bbox": [
747
+ 501,
748
+ 578,
749
+ 754,
750
+ 592
751
+ ],
752
+ "page_idx": 4
753
+ },
754
+ {
755
+ "type": "text",
756
+ "text": "As shown in Figure 2, we present the experimental results of our framework on various datasets. We set different channel pruning ratios and maintain a fixed level of sparsity during the training process. After training is completed, we completely remove redundant channels and construct a new lightweight model for evaluation. The computational energy consumption of the network is evaluated using the number of parameters and synaptic operations.",
757
+ "bbox": [
758
+ 501,
759
+ 602,
760
+ 883,
761
+ 720
762
+ ],
763
+ "page_idx": 4
764
+ },
765
+ {
766
+ "type": "text",
767
+ "text": "Performance analysis. The bar chart in Figure 2 represents the model's accuracy on the test set under different channel pruning ratios. The green and red lines indicate the final model's parameters and synaptic operations, measured in units of M $(10^{6})$ and K $(10^{3})$ . It can be observed that as the channel pruning ratio increases, the model's test accuracy experiences only a minor loss, while the number of parameters decreases significantly, and in some cases, even at lower pruning ratios, the accuracy slightly improves. This indicates that our framework can compress the network's parameter count to obtain a lightweight model while main",
768
+ "bbox": [
769
+ 501,
770
+ 729,
771
+ 883,
772
+ 893
773
+ ],
774
+ "page_idx": 4
775
+ },
776
+ {
777
+ "type": "header",
778
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
779
+ "bbox": [
780
+ 171,
781
+ 56,
782
+ 800,
783
+ 70
784
+ ],
785
+ "page_idx": 4
786
+ },
787
+ {
788
+ "type": "page_number",
789
+ "text": "5",
790
+ "bbox": [
791
+ 482,
792
+ 924,
793
+ 490,
794
+ 934
795
+ ],
796
+ "page_idx": 4
797
+ },
798
+ {
799
+ "type": "image",
800
+ "img_path": "images/fa35e72a7fd90567ffd64aeaa0b194065f0d2c9b01f07ec46c461f476bae646c.jpg",
801
+ "image_caption": [
802
+ "(a) SNNVGG16 on dataset CIFAR10."
803
+ ],
804
+ "image_footnote": [],
805
+ "bbox": [
806
+ 109,
807
+ 117,
808
+ 472,
809
+ 305
810
+ ],
811
+ "page_idx": 5
812
+ },
813
+ {
814
+ "type": "image",
815
+ "img_path": "images/2a13681d97d15f61c30bd298d394b9c2eccf2dc23a5bc8ee94b133f7f3c3131e.jpg",
816
+ "image_caption": [
817
+ "(b) Pre-Resnet18 on dataset CIFAR10."
818
+ ],
819
+ "image_footnote": [],
820
+ "bbox": [
821
+ 491,
822
+ 117,
823
+ 857,
824
+ 305
825
+ ],
826
+ "page_idx": 5
827
+ },
828
+ {
829
+ "type": "image",
830
+ "img_path": "images/45344376bb6725109c82466f6034b00bdf5a6eac2ff0c3b8fbe7860c7a425512.jpg",
831
+ "image_caption": [
832
+ "(c) SNNVGG16 on dataset CIFAR100."
833
+ ],
834
+ "image_footnote": [],
835
+ "bbox": [
836
+ 117,
837
+ 349,
838
+ 472,
839
+ 539
840
+ ],
841
+ "page_idx": 5
842
+ },
843
+ {
844
+ "type": "image",
845
+ "img_path": "images/33138ea253793cbfabd69fc225d9bf983c0d45568a64522fac35791375827e94.jpg",
846
+ "image_caption": [
847
+ "(d) 5Conv+1FC on dataset DVS-CIFAR10."
848
+ ],
849
+ "image_footnote": [],
850
+ "bbox": [
851
+ 491,
852
+ 351,
853
+ 854,
854
+ 539
855
+ ],
856
+ "page_idx": 5
857
+ },
858
+ {
859
+ "type": "image",
860
+ "img_path": "images/21cad08bdce8b0ab4d7b3e268c54d30bf1ba46a7985594f53dec7a669996db03.jpg",
861
+ "image_caption": [
862
+ "(a) Network structures under various pruning ratios.",
863
+ "Figure 3. Analysis of structural changes in the SCA framework."
864
+ ],
865
+ "image_footnote": [],
866
+ "bbox": [
867
+ 176,
868
+ 608,
869
+ 547,
870
+ 750
871
+ ],
872
+ "page_idx": 5
873
+ },
874
+ {
875
+ "type": "image",
876
+ "img_path": "images/63e8f6f1fbfc0772f76117b5b373de10d4a33718b58da6142c78d9cbf00929e9.jpg",
877
+ "image_caption": [
878
+ "Figure 2. The performance of the SCA structure learning framework.",
879
+ "(b) The evolution of network structure during the training process."
880
+ ],
881
+ "image_footnote": [],
882
+ "bbox": [
883
+ 578,
884
+ 603,
885
+ 803,
886
+ 750
887
+ ],
888
+ "page_idx": 5
889
+ },
890
+ {
891
+ "type": "text",
892
+ "text": "taining close-to-original high performance. For CIFAR-10, in the case of the VGG16 model shown in Figure 2(a), when the parameter count is compressed to approximately $10\\%$ of the original size (i.e., 1.42 million parameters), the accuracy drops by less than $1\\%$ . When the parameter count is compressed to around $5\\%$ (i.e., 0.93 million parameters), the",
893
+ "bbox": [
894
+ 84,
895
+ 809,
896
+ 478,
897
+ 898
898
+ ],
899
+ "page_idx": 5
900
+ },
901
+ {
902
+ "type": "text",
903
+ "text": "accuracy decreases by about $2\\%$ . When the parameter count is reduced by approximately $30\\%$ , the model's accuracy reaches $91.67\\%$ , showing an increase of $0.53\\%$ . For the ResNet model depicted in Figure 2(b), when the parameter count is compressed to approximately $20\\%$ , the accuracy loss is less than $1\\%$ . For CIFAR-100 in Figure 2(c), when",
904
+ "bbox": [
905
+ 496,
906
+ 809,
907
+ 885,
908
+ 898
909
+ ],
910
+ "page_idx": 5
911
+ },
912
+ {
913
+ "type": "header",
914
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
915
+ "bbox": [
916
+ 171,
917
+ 56,
918
+ 800,
919
+ 70
920
+ ],
921
+ "page_idx": 5
922
+ },
923
+ {
924
+ "type": "page_number",
925
+ "text": "6",
926
+ "bbox": [
927
+ 480,
928
+ 922,
929
+ 491,
930
+ 934
931
+ ],
932
+ "page_idx": 5
933
+ },
934
+ {
935
+ "type": "image",
936
+ "img_path": "images/5ac49eb8032ffcf82a9ea5082bba2500442eb552c97a42b6913e37153c974129.jpg",
937
+ "image_caption": [
938
+ "(a) Channel importance score distribution."
939
+ ],
940
+ "image_footnote": [],
941
+ "bbox": [
942
+ 112,
943
+ 103,
944
+ 328,
945
+ 253
946
+ ],
947
+ "page_idx": 6
948
+ },
949
+ {
950
+ "type": "image",
951
+ "img_path": "images/8f88e1a651eed3798711ecad4ea72d51b8fb56a8bdf951c3630ce67a404e89bf.jpg",
952
+ "image_caption": [
953
+ "(b) The parameters of ablation experiments."
954
+ ],
955
+ "image_footnote": [],
956
+ "bbox": [
957
+ 361,
958
+ 103,
959
+ 614,
960
+ 258
961
+ ],
962
+ "page_idx": 6
963
+ },
964
+ {
965
+ "type": "image",
966
+ "img_path": "images/307c378587d5702672e08c9a56414316da723923f670f196612bd626e3bd2b82.jpg",
967
+ "image_caption": [
968
+ "(c) The accuracy of ablation experiments.",
969
+ "Figure 4. Analysis of the effectiveness of the SCA structure learning framework."
970
+ ],
971
+ "image_footnote": [],
972
+ "bbox": [
973
+ 625,
974
+ 103,
975
+ 879,
976
+ 258
977
+ ],
978
+ "page_idx": 6
979
+ },
980
+ {
981
+ "type": "text",
982
+ "text": "the model's parameter count is compressed to $20\\%$ of the original (i.e., 3.60 million parameters), the accuracy still increases by $+0.64\\%$ . In the case of DVS-CIFAR10, as shown in Figure 2(d), even when the parameter count is reduced to only $6.95\\%$ of the original (i.e., 0.08 million parameters), the accuracy decreases by less than $1\\%$ . Furthermore, when the parameter count is compressed to approximately $20\\%$ of the original (i.e., 0.25 million parameters), the accuracy improves by nearly $1\\%$ .",
983
+ "bbox": [
984
+ 84,
985
+ 303,
986
+ 475,
987
+ 439
988
+ ],
989
+ "page_idx": 6
990
+ },
991
+ {
992
+ "type": "text",
993
+ "text": "Energy Consumption Analysis. The synaptic operations (SynOps) of SNNs can represent the network's complexity and computational cost. As seen from the red line in Figure 2, with an increase in the network's channel pruning ratio, the synaptic operations gradually decrease. As shown in the Figure 2(a), for SNNVGG16 on the CIFAR-10 dataset, when the redundant channel removal ratio reaches 0.8, nearly half of the synaptic operations can be reduced. For DVS-CIFAR10 in Figure 2(d), when the number of synaptic operations (0.43M) is less than half of the original, the performance only decreases by less than $1\\%$ . This indicates that our method can reduce computational costs, improve resource utilization, and enhance network performance, which is highly beneficial for deploying SNNs in resource-constrained environments or achieving more efficient neural computations.",
994
+ "bbox": [
995
+ 84,
996
+ 446,
997
+ 477,
998
+ 688
999
+ ],
1000
+ "page_idx": 6
1001
+ },
1002
+ {
1003
+ "type": "text",
1004
+ "text": "5.3. Analysis of Network Structure Learning.",
1005
+ "text_level": 1,
1006
+ "bbox": [
1007
+ 84,
1008
+ 705,
1009
+ 403,
1010
+ 720
1011
+ ],
1012
+ "page_idx": 6
1013
+ },
1014
+ {
1015
+ "type": "text",
1016
+ "text": "Structure Analysis. In order to better analyze the learning process of the network structure, we visualized the changes in the number of channels for each layer of the network, as shown in Figure 3. In Figure 3(a), different lines represent the number of channels in each layer of the final network structure under different pruning ratios, using SNNVGG16 on the CFAR10 dataset as an example. It can be observed that there is a certain pattern in the change of channel numbers under different pruning ratios. The removal of more channels in the deeper layers suggests their lower importance, while channels in the shallower layers appear to be rel-",
1017
+ "bbox": [
1018
+ 84,
1019
+ 728,
1020
+ 475,
1021
+ 893
1022
+ ],
1023
+ "page_idx": 6
1024
+ },
1025
+ {
1026
+ "type": "text",
1027
+ "text": "atively more important. In deep network structures, deeper layers extract more abstract and advanced features, but as the layers get deeper, they become harder to train, leading to the presence of many redundant connections. In Figure 3(b), the changes in the number of channels for convolutional layers 8-13 of the SNNVGG16 model under a pruning ratio of 0.5 during the training process are visualized. During the training process, some layers exhibit significant fluctuations in the number of channels, while others show relatively minor variations, suggesting the network is dynamically adapting and reallocating parameters to learn optimal channel quantities across different layers. It can be seen that as the network converges, the model's structure stabilizes to some extent. This indicates that the structural learning framework, as the network structure evolves, autonomously adapts to an appropriate structure.",
1028
+ "bbox": [
1029
+ 495,
1030
+ 303,
1031
+ 887,
1032
+ 545
1033
+ ],
1034
+ "page_idx": 6
1035
+ },
1036
+ {
1037
+ "type": "text",
1038
+ "text": "Channel Importance Score Distribution. As shown in Figure 4(a), we visualized the distribution of channel importance scores for the entire network at different pruning ratios. The points where the importance score is 0 represent the removed channels that are no longer firing. It can be seen that the original network's importance score distribution has a higher mean and is more scattered, indicating that the channels have higher spiking activity levels and larger variance. As the pruning ratio increases, the overall network activity decreases and tends towards zero, indicating that removing redundant channels reduces the overall energy consumption of the network.",
1039
+ "bbox": [
1040
+ 495,
1041
+ 551,
1042
+ 888,
1043
+ 733
1044
+ ],
1045
+ "page_idx": 6
1046
+ },
1047
+ {
1048
+ "type": "text",
1049
+ "text": "5.4. Analysis of Ablation Experiments.",
1050
+ "text_level": 1,
1051
+ "bbox": [
1052
+ 496,
1053
+ 750,
1054
+ 769,
1055
+ 765
1056
+ ],
1057
+ "page_idx": 6
1058
+ },
1059
+ {
1060
+ "type": "text",
1061
+ "text": "To further demonstrate the effectiveness of the structural learning method in this framework, we conducted ablation experiments, as shown in Figure 4(b) Figure 4(c). The yellow curve represents the testing accuracy and parameter count of the SNNVGG16 method on the CIFAR10 dataset. The green and red curves represent the results of pruning only without regrowth and random pruning at initialization, respectively. It can be observed that the testing accuracy",
1062
+ "bbox": [
1063
+ 495,
1064
+ 773,
1065
+ 887,
1066
+ 893
1067
+ ],
1068
+ "page_idx": 6
1069
+ },
1070
+ {
1071
+ "type": "header",
1072
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
1073
+ "bbox": [
1074
+ 169,
1075
+ 56,
1076
+ 800,
1077
+ 70
1078
+ ],
1079
+ "page_idx": 6
1080
+ },
1081
+ {
1082
+ "type": "page_number",
1083
+ "text": "7",
1084
+ "bbox": [
1085
+ 480,
1086
+ 922,
1087
+ 491,
1088
+ 934
1089
+ ],
1090
+ "page_idx": 6
1091
+ },
1092
+ {
1093
+ "type": "table",
1094
+ "img_path": "images/6c7dfa5551f09f88dfea1241215a37f8d8c76a684d8bf5d46d3bc9ee35791b88.jpg",
1095
+ "table_caption": [
1096
+ "Table 1. Comparison of Experimental Performance with Other Methods."
1097
+ ],
1098
+ "table_footnote": [],
1099
+ "table_body": "<table><tr><td>Dataset</td><td>Method</td><td>Network Architecture</td><td>Granularity</td><td>ACC.(%)</td><td>ACC. Loss(%)</td><td>Connectivity(%)</td></tr><tr><td rowspan=\"15\">CIFAR10</td><td rowspan=\"2\">Attention-based (Kundu et al., 2021)</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">91.13</td><td>-0.39</td><td>5.00</td></tr><tr><td>-0.98</td><td>2.99</td></tr><tr><td rowspan=\"2\">ADMM-based (Deng et al., 2021)</td><td rowspan=\"2\">7Conv+2FC</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">89.53</td><td>-2.16</td><td>25.00</td></tr><tr><td>-3.85</td><td>10.00</td></tr><tr><td rowspan=\"3\">Grad R (Chen et al., 2021)</td><td rowspan=\"3\">6Conv+2FC</td><td rowspan=\"3\">Weight</td><td rowspan=\"3\">92.84</td><td>-0.30</td><td>28.41</td></tr><tr><td>-0.34</td><td>12.04</td></tr><tr><td>-0.81</td><td>5.08</td></tr><tr><td rowspan=\"2\">Dendritic-based (Chen et al., 2022)</td><td rowspan=\"2\">6Conv+2FC</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">92.84</td><td>-0.35</td><td>2.23</td></tr><tr><td>-2.63</td><td>0.75</td></tr><tr><td>ESL-SNNs (Shen et al., 2023)</td><td>Resnet19</td><td>Weight</td><td>91.09</td><td>-1.70</td><td>50.00</td></tr><tr><td>SD-SNN (Han et al., 2022)</td><td>6Conv+2FC</td><td>Channel</td><td>94.74</td><td>-0.64</td><td>62.56</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG9</td><td>Channel</td><td>90.10</td><td>-1.06</td><td>7.00</td></tr><tr><td rowspan=\"3\">SCA-based</td><td rowspan=\"3\">VGG16</td><td rowspan=\"3\">Channel</td><td rowspan=\"3\">91.14</td><td>+0.32</td><td>55.86</td></tr><tr><td>+0.53</td><td>28.39</td></tr><tr><td>-0.88</td><td>9.31</td></tr><tr><td rowspan=\"4\">CIFAR100</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>64.69</td><td>-0.03</td><td>10.00</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG11</td><td>Channel</td><td>68.10</td><td>-1.70</td><td>10.70</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">64.89</td><td>+0.64</td><td>23.52</td></tr><tr><td>-0.25</td><td>16.47</td></tr><tr><td rowspan=\"3\">DVS-CIFAR10</td><td>ESL-SNNs (Shen et al., 2023)</td><td>VGG8</td><td>Weight</td><td>78.30</td><td>-0.28</td><td>10.00</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">5Conv+1FC</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">72.80</td><td>+0.90</td><td>21.73</td></tr><tr><td>-0.90</td><td>6.95</td></tr><tr><td rowspan=\"3\">Tiny-ImageNet</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>51.92</td><td>+0.78</td><td>40.00</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">49.33</td><td>+0.03</td><td>43.21</td></tr><tr><td>-0.19</td><td>30.60</td></tr></table>",
1100
+ "bbox": [
1101
+ 119,
1102
+ 118,
1103
+ 854,
1104
+ 590
1105
+ ],
1106
+ "page_idx": 7
1107
+ },
1108
+ {
1109
+ "type": "text",
1110
+ "text": "follows the order 'Prune and Regrow' > 'Only Prune' > 'Random Prune', and the parameter count for the latter two is higher than that of 'Prune and Regrow.' When the pruning ratio is 0.8, our framework achieves only about a $2\\%$ decrease in accuracy, while the accuracy of only pruning and random pruning drops significantly. When only pruning is performed, after an initial mask update at the beginning of training, the mask hardly gets updated during subsequent training, indicating that the regrowth process can reactivate mistakenly pruned channels. Random pruning, which prunes with the same probability for each layer, cannot accurately identify redundant structural units. Therefore, the SCA framework's mechanism for identifying redundant channels and reactivating pruned channels autonomously searches for an appropriate network structure.",
1111
+ "bbox": [
1112
+ 84,
1113
+ 604,
1114
+ 475,
1115
+ 832
1116
+ ],
1117
+ "page_idx": 7
1118
+ },
1119
+ {
1120
+ "type": "text",
1121
+ "text": "5.5. Comparison with Other Methods.",
1122
+ "text_level": 1,
1123
+ "bbox": [
1124
+ 84,
1125
+ 848,
1126
+ 354,
1127
+ 863
1128
+ ],
1129
+ "page_idx": 7
1130
+ },
1131
+ {
1132
+ "type": "text",
1133
+ "text": "As shown in Table 1, we compared our method with existing SNNs pruning methods, presenting the loss in test",
1134
+ "bbox": [
1135
+ 84,
1136
+ 871,
1137
+ 475,
1138
+ 902
1139
+ ],
1140
+ "page_idx": 7
1141
+ },
1142
+ {
1143
+ "type": "text",
1144
+ "text": "accuracy for different pruning ratios and the percentage of remaining parameters. On the CIFAR-10 dataset, at approximately $9.31\\%$ of the original parameter count, our method achieved a less than $1\\%$ decrease in accuracy. This performance is similar to the PCA-based channel pruning method (Chowdhury et al., 2021). However, the PCA-based method uses a time step of 25, much larger than our method's 4. Compared to the SD-SNN method (Han et al., 2022), our method also exhibited advantages in parameter compression and performance loss. The SCA-based method achieved a $0.53\\%$ improvement in accuracy at only $28.39\\%$ of the original parameter count, outperforming the ADMM-based (Deng et al., 2021) and ESL-SNNs (Shen et al., 2023) methods. The SCA-based method may not excel in parameter compression compared to Attention-based (Kundu et al., 2021), Grad R (Chen et al., 2021), and Dendritic-based (Chen et al., 2022) methods. However, our approach employs structured pruning specifically targeting convolutional layers and efficiently retracts from scratch in a more energy-",
1145
+ "bbox": [
1146
+ 495,
1147
+ 604,
1148
+ 888,
1149
+ 892
1150
+ ],
1151
+ "page_idx": 7
1152
+ },
1153
+ {
1154
+ "type": "header",
1155
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
1156
+ "bbox": [
1157
+ 169,
1158
+ 56,
1159
+ 800,
1160
+ 70
1161
+ ],
1162
+ "page_idx": 7
1163
+ },
1164
+ {
1165
+ "type": "page_number",
1166
+ "text": "8",
1167
+ "bbox": [
1168
+ 480,
1169
+ 922,
1170
+ 491,
1171
+ 934
1172
+ ],
1173
+ "page_idx": 7
1174
+ },
1175
+ {
1176
+ "type": "text",
1177
+ "text": "efficient manner. Ultimately, it allows for the complete removal of redundant structural units, resulting in a new model with improved hardware-friendliness. On the CIFAR100 dataset, the accuracy loss is $0.25\\%$ when the parameters are $16.47\\%$ of the original, which is better than the PCA-based method (Chowdhury et al., 2021). The attention-based method (Kundu et al., 2021) requires a process involving ANN-SNN conversion, while our method is comparatively more energy-efficient. For the Tiny ImageNet dataset, when the pruning ratio is approximately $40\\%$ , the accuracy improves by $0.03\\%$ . With a pruning ratio of $30\\%$ , there is only a slight decrease in accuracy. This suggests that the proposed method remains effective on complex datasets. On the DVS-CIFAR10 dataset, there was a slight improvement in accuracy when compressing fewer parameters. Additionally, the network structure used was simpler compared to ESL-SNNs (Shen et al., 2023). Therefore, the experimental results indicate that our SCA structured pruning method can efficiently identify redundant structural units and adapt the lightweight network autonomously for the target task through training from scratch. This method results in a thoroughly lightweight model with a more regular structure, making it easier to deploy on hardware chips compared to unstructured pruning (Shrestha et al., 2022).",
1178
+ "bbox": [
1179
+ 84,
1180
+ 85,
1181
+ 475,
1182
+ 448
1183
+ ],
1184
+ "page_idx": 8
1185
+ },
1186
+ {
1187
+ "type": "text",
1188
+ "text": "6. Conclusion",
1189
+ "text_level": 1,
1190
+ "bbox": [
1191
+ 84,
1192
+ 465,
1193
+ 205,
1194
+ 482
1195
+ ],
1196
+ "page_idx": 8
1197
+ },
1198
+ {
1199
+ "type": "text",
1200
+ "text": "Lightweight and high-performance SNNs can better leverage their advantages of low power consumption. The structured pruning methods can result in regular, sparse SNN models, making them more hardware-friendly. The approach proposed in this paper starts from the perspective of biological plasticity, combining pruning and regrowth in an adaptive manner during training to explore suitable lightweight network structures. This approach allows for the compression of network parameters while maintaining network high performance. This is of significant value for deploying high-performance, low-memory SNNs on neuromorphic chips.",
1201
+ "bbox": [
1202
+ 84,
1203
+ 492,
1204
+ 475,
1205
+ 674
1206
+ ],
1207
+ "page_idx": 8
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "Acknowledgements",
1212
+ "text_level": 1,
1213
+ "bbox": [
1214
+ 86,
1215
+ 693,
1216
+ 253,
1217
+ 709
1218
+ ],
1219
+ "page_idx": 8
1220
+ },
1221
+ {
1222
+ "type": "text",
1223
+ "text": "This work is supported by National Key R&D Program of China (2021ZD0109803), National Natural Science Foundation of China (NSFC No.62206037, 62306274), The Open Project of Anhui Provincial Key Laboratory of Multimodal Cognitive Computation, Anhui University, No. MMC202104 and under Grant No. GML-KF-22-11.",
1224
+ "bbox": [
1225
+ 84,
1226
+ 719,
1227
+ 475,
1228
+ 809
1229
+ ],
1230
+ "page_idx": 8
1231
+ },
1232
+ {
1233
+ "type": "text",
1234
+ "text": "Impact Statement",
1235
+ "text_level": 1,
1236
+ "bbox": [
1237
+ 84,
1238
+ 829,
1239
+ 241,
1240
+ 845
1241
+ ],
1242
+ "page_idx": 8
1243
+ },
1244
+ {
1245
+ "type": "text",
1246
+ "text": "This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none of which we feel must be",
1247
+ "bbox": [
1248
+ 84,
1249
+ 854,
1250
+ 473,
1251
+ 900
1252
+ ],
1253
+ "page_idx": 8
1254
+ },
1255
+ {
1256
+ "type": "text",
1257
+ "text": "specifically highlighted here.",
1258
+ "bbox": [
1259
+ 498,
1260
+ 84,
1261
+ 691,
1262
+ 99
1263
+ ],
1264
+ "page_idx": 8
1265
+ },
1266
+ {
1267
+ "type": "text",
1268
+ "text": "References",
1269
+ "text_level": 1,
1270
+ "bbox": [
1271
+ 498,
1272
+ 119,
1273
+ 594,
1274
+ 135
1275
+ ],
1276
+ "page_idx": 8
1277
+ },
1278
+ {
1279
+ "type": "list",
1280
+ "sub_type": "ref_text",
1281
+ "list_items": [
1282
+ "Barnes, S. J. and Finnerty, G. T. Sensory experience and cortical rewiring. The Neuroscientist, 16(2):186-198, 2010.",
1283
+ "Bellec, G., Kappel, D., Maass, W., and Legenstein, R. Deep rewiring: Training very sparse deep networks. arXiv preprint arXiv:1711.05136, 2017.",
1284
+ "Bellec, G., Salaj, D., Subramoney, A., Legenstein, R., and Maass, W. Long short-term memory and learning-to-learn in networks of spiking neurons. Advances in neural information processing systems, 31, 2018.",
1285
+ "Bienenstock, E. L., Cooper, L. N., and Munro, P. W. Theory for the development of neuron selectivity: orientation specificity and binocular interaction in visual cortex. Journal of Neuroscience, 2(1):32-48, 1982.",
1286
+ "Bu, T., Fang, W., Ding, J., Dai, P., Yu, Z., and Huang, T. Optimal ann-snn conversion for high-accuracy and ultra-low-latency spiking neural networks. arXiv preprint arXiv:2303.04347, 2023.",
1287
+ "Chen, Y., Yu, Z., Fang, W., Huang, T., and Tian, Y. Pruning of deep spiking neural networks through gradient rewiring. arXiv preprint arXiv:2105.04916, 2021.",
1288
+ "Chen, Y., Yu, Z., Fang, W., Ma, Z., Huang, T., and Tian, Y. State transition of dendritic spines improves learning of sparse spiking neural networks. In International Conference on Machine Learning, pp. 3701-3715. PMLR, 2022.",
1289
+ "Chowdhury, S. S., Garg, I., and Roy, K. Spatio-temporal pruning and quantization for low-latency spiking neural networks. In 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1-9. IEEE, 2021.",
1290
+ "Cizeron, M., Qiu, Z., Koniaris, B., Gokhale, R., Komiyama, N. H., Fransén, E., and Grant, S. G. A brainwide atlas of synapses across the mouse life span. Science, 369(6501): 270-275, 2020.",
1291
+ "Davies, M., Srinivasa, N., Lin, T.-H., Chinya, G., Cao, Y., Choday, S. H., Dimou, G., Joshi, P., Imam, N., Jain, S., et al. Loihi: A neuromorphic manycore processor with on-chip learning. *IEEE Micro*, 38(1):82-99, 2018.",
1292
+ "Deng, L., Wu, Y., Hu, Y., Liang, L., Li, G., Hu, X., Ding, Y., Li, P., and Xie, Y. Comprehensive snn compression using admm optimization and activity regularization. IEEE transactions on neural networks and learning systems, 2021."
1293
+ ],
1294
+ "bbox": [
1295
+ 498,
1296
+ 143,
1297
+ 887,
1298
+ 904
1299
+ ],
1300
+ "page_idx": 8
1301
+ },
1302
+ {
1303
+ "type": "header",
1304
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
1305
+ "bbox": [
1306
+ 169,
1307
+ 56,
1308
+ 800,
1309
+ 71
1310
+ ],
1311
+ "page_idx": 8
1312
+ },
1313
+ {
1314
+ "type": "page_number",
1315
+ "text": "9",
1316
+ "bbox": [
1317
+ 480,
1318
+ 922,
1319
+ 491,
1320
+ 934
1321
+ ],
1322
+ "page_idx": 8
1323
+ },
1324
+ {
1325
+ "type": "list",
1326
+ "sub_type": "ref_text",
1327
+ "list_items": [
1328
+ "Deng, S., Li, Y., Zhang, S., and Gu, S. Temporal efficient training of spiking neural network via gradient weighting. arXiv preprint arXiv:2202.11946, 2022.",
1329
+ "Ding, J., Yu, Z., Tian, Y., and Huang, T. Optimal ann-snn conversion for fast and accurate inference in deep spiking neural networks. arXiv preprint arXiv:2105.11654, 2021.",
1330
+ "Duan, C., Ding, J., Chen, S., Yu, Z., and Huang, T. Temporal effective batch normalization in spiking neural networks. Advances in Neural Information Processing Systems, 35: 34377-34390, 2022.",
1331
+ "Fang, W., Chen, Y., Ding, J., Chen, D., Yu, Z., Zhou, H., Tian, Y., and other contributors. Spikingjelly. https://github.com/fangwei123456/spikingjelly, 2020. Accessed: 2021-12-30.",
1332
+ "Fang, W., Yu, Z., Chen, Y., Huang, T., Masquelier, T., and Tian, Y. Deep residual learning in spiking neural networks. Advances in Neural Information Processing Systems, 34:21056-21069, 2021a.",
1333
+ "Fang, W., Yu, Z., Chen, Y., Masquelier, T., Huang, T., and Tian, Y. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 2661-2671, 2021b.",
1334
+ "Gerstner, W., Kistler, W. M., Naud, R., and Paninski, L. Neuronal dynamics: From single neurons to networks and models of cognition. Cambridge University Press, 2014.",
1335
+ "Guo, Y., Huang, X., and Ma, Z. Direct learning-based deep spiking neural networks: a review. Frontiers in Neuroscience, 17:1209795, 2023.",
1336
+ "Han, B., Zhao, F., Zeng, Y., and Pan, W. Adaptive sparse structure development with pruning and regeneration for spiking neural networks. arXiv preprint arXiv:2211.12219, 2022.",
1337
+ "He, Y. and Xiao, L. Structured pruning for deep convolutional neural networks: A survey. arXiv preprint arXiv:2303.00566, 2023.",
1338
+ "Holtmaat, A. and Svoboda, K. Experience-dependent structural synaptic plasticity in the mammalian brain. Nature Reviews Neuroscience, 10(9):647-658, 2009.",
1339
+ "Houweling, A. R. and Brecht, M. Behavioural report of single neuron stimulation in somatosensory cortex. Nature, 451(7174):65-68, 2008.",
1340
+ "Hu, X., Zhang, J., Li, J., and Zhang, B. Sparsity-regularized hmax for visual recognition. PloS one, 9(1):e81813, 2014."
1341
+ ],
1342
+ "bbox": [
1343
+ 86,
1344
+ 84,
1345
+ 475,
1346
+ 904
1347
+ ],
1348
+ "page_idx": 9
1349
+ },
1350
+ {
1351
+ "type": "list",
1352
+ "sub_type": "ref_text",
1353
+ "list_items": [
1354
+ "Hu, Y., Tang, H., and Pan, G. Spiking deep residual networks. IEEE Transactions on Neural Networks and Learning Systems, 34(8):5200-5205, 2021a.",
1355
+ "Hu, Y., Wu, Y., Deng, L., and Li, G. Advancing residual learning towards powerful deep spiking neural networks. arXiv e-prints, pp. arXiv-2112, 2021b.",
1356
+ "Hu, Y., Zheng, Q., Jiang, X., and Pan, G. Fast-snn: Fast spiking neural network by converting quantized ann. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.",
1357
+ "Jiang, T., Xu, Q., Ran, X., Shen, J., Lv, P., Zhang, Q., and Pan, G. Adaptive deep spiking neural network with global-local learning via balanced excitatory and inhibitory mechanism. In The Twelfth International Conference on Learning Representations, 2023.",
1358
+ "Kappel, D., Habenschuss, S., Legenstein, R., and Maass, W. Network plasticity as bayesian inference. PLoS computational biology, 11(11):e1004485, 2015.",
1359
+ "Kheradpisheh, S. R., Ganjtabesh, M., Thorpe, S. J., and Masquelier, T. Stdp-based spiking deep convolutional neural networks for object recognition. Neural Networks, 99:56-67, 2018.",
1360
+ "Kundu, S., Datta, G., Pedram, M., and Beerel, P. A. Spike-thrift: Towards energy-efficient deep spiking neural networks by limiting spiking activity via attention-guided compression. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3953-3962, 2021.",
1361
+ "Langley, P. Crafting papers on machine learning. In Langley, P. (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), pp. 1207-1216, Stanford, CA, 2000. Morgan Kaufmann.",
1362
+ "Lee, C., Srinivasan, G., Panda, P., and Roy, K. Deep spiking convolutional neural network trained with unsupervised spike-timing-dependent plasticity. IEEE Transactions on Cognitive and Developmental Systems, 11(3):384-394, 2018.",
1363
+ "Liu, C., Bellec, G., Vogginger, B., Kappel, D., Partzsch, J., Neumärker, F., Hoppner, S., Maass, W., Furber, S. B., Legenstein, R., et al. Memory-efficient deep learning on a spinnaker 2 prototype. Frontiers in neuroscience, 12: 840, 2018.",
1364
+ "Ma, D., Jin, X., Sun, S., Li, Y., Wu, X., Hu, Y., Yang, F., Tang, H., Zhu, X., Lin, P., et al. Darwin3: A large-scale neuromorphic chip with a novel isa and on-chip learning. arXiv preprint arXiv:2312.17582, 2023."
1365
+ ],
1366
+ "bbox": [
1367
+ 500,
1368
+ 84,
1369
+ 885,
1370
+ 904
1371
+ ],
1372
+ "page_idx": 9
1373
+ },
1374
+ {
1375
+ "type": "header",
1376
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
1377
+ "bbox": [
1378
+ 169,
1379
+ 56,
1380
+ 800,
1381
+ 71
1382
+ ],
1383
+ "page_idx": 9
1384
+ },
1385
+ {
1386
+ "type": "page_number",
1387
+ "text": "10",
1388
+ "bbox": [
1389
+ 477,
1390
+ 922,
1391
+ 495,
1392
+ 934
1393
+ ],
1394
+ "page_idx": 9
1395
+ },
1396
+ {
1397
+ "type": "list",
1398
+ "sub_type": "ref_text",
1399
+ "list_items": [
1400
+ "Maass, W. Networks of spiking neurons: the third generation of neural network models. Neural networks, 10(9): 1659-1671, 1997.",
1401
+ "Mink, J. W., Blumenschine, R. J., and Adams, D. B. Ratio of central nervous system to body metabolism in vertebrates: its constancy and functional basis. American Journal of Physiology-Regulatory, Integrative and Comparative Physiology, 241(3):R203-R212, 1981.",
1402
+ "Oja, E. Simplified neuron model as a principal component analyzer. Journal of mathematical biology, 15:267-273, 1982.",
1403
+ "Shen, J., Xu, Q., Liu, J. K., Wang, Y., Pan, G., and Tang, H. Esl-snns: An evolutionary structure learning strategy for spiking neural networks. arXiv preprint arXiv:2306.03693, 2023.",
1404
+ "Shen, J., Ni, W., Xu, Q., and Tang, H. Efficient spiking neural networks with sparse selective activation for continual learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 611-619, 2024.",
1405
+ "Shrestha, A., Fang, H., Mei, Z., Rider, D. P., Wu, Q., and Qiu, Q. A survey on neuromorphic computing: Models and hardware. IEEE Circuits and Systems Magazine, 22 (2):6-35, 2022.",
1406
+ "Song, S., Miller, K. D., and Abbott, L. F. Competitive heb- bian learning through spike-timing-dependent synaptic plasticity. Nature neuroscience, 3(9):919-926, 2000.",
1407
+ "Srinivasan, G. and Roy, K. Restocnet: Residual stochastic binary convolutional spiking neural network for memory-efficient neuromorphic computing. Frontiers in neuroscience, 13:189, 2019.",
1408
+ "Stettler, D. D., Yamahachi, H., Li, W., Denk, W., and Gilbert, C. D. Axons and synaptic boutons are highly dynamic in adult visual cortex. Neuron, 49(6):877-887, 2006.",
1409
+ "Trachtenberg, J. T., Chen, B. E., Knott, G. W., Feng, G., Sanes, J. R., Welker, E., and Svoboda, K. Long-term in vivo imaging of experience-dependent synaptic plasticity in adult cortex. Nature, 420(6917):788-794, 2002.",
1410
+ "Wu, Y., Deng, L., Li, G., Zhu, J., and Shi, L. Spatiotemporal backpropagation for training high-performance spiking neural networks. Frontiers in neuroscience, 12: 331, 2018.",
1411
+ "Yan, Q., Zheng, Y., Jia, S., Zhang, Y., Yu, Z., Chen, F., Tian, Y., Huang, T., and Liu, J. K. Revealing fine structures of the retinal receptive field by deep-learning networks. IEEE transactions on cybernetics, 52(1):39-50, 2020."
1412
+ ],
1413
+ "bbox": [
1414
+ 86,
1415
+ 84,
1416
+ 475,
1417
+ 905
1418
+ ],
1419
+ "page_idx": 10
1420
+ },
1421
+ {
1422
+ "type": "list",
1423
+ "sub_type": "ref_text",
1424
+ "list_items": [
1425
+ "Yin, H., Lee, J. B., Kong, X., Hartvigsen, T., and Xie, S. Energy-efficient models for high-dimensional spike train classification using sparse spiking neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 2017-2025, 2021.",
1426
+ "Yu, Z., Liu, J. K., Jia, S., Zhang, Y., Zheng, Y., Tian, Y., and Huang, T. Toward the next generation of retinal neuroprosthesis: Visual computation with spikes. Engineering, 6(4):449-461, 2020.",
1427
+ "Zheng, H., Wu, Y., Deng, L., Hu, Y., and Li, G. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pp. 11062-11070, 2021."
1428
+ ],
1429
+ "bbox": [
1430
+ 500,
1431
+ 84,
1432
+ 887,
1433
+ 316
1434
+ ],
1435
+ "page_idx": 10
1436
+ },
1437
+ {
1438
+ "type": "header",
1439
+ "text": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning",
1440
+ "bbox": [
1441
+ 169,
1442
+ 56,
1443
+ 800,
1444
+ 71
1445
+ ],
1446
+ "page_idx": 10
1447
+ },
1448
+ {
1449
+ "type": "page_number",
1450
+ "text": "11",
1451
+ "bbox": [
1452
+ 477,
1453
+ 922,
1454
+ 493,
1455
+ 934
1456
+ ],
1457
+ "page_idx": 10
1458
+ }
1459
+ ]
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_model.json ADDED
@@ -0,0 +1,2202 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ [
3
+ {
4
+ "type": "title",
5
+ "bbox": [
6
+ 0.17,
7
+ 0.11,
8
+ 0.805,
9
+ 0.157
10
+ ],
11
+ "angle": 0,
12
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
13
+ },
14
+ {
15
+ "type": "text",
16
+ "bbox": [
17
+ 0.19,
18
+ 0.199,
19
+ 0.777,
20
+ 0.217
21
+ ],
22
+ "angle": 0,
23
+ "content": "Yaxin Li \\(^{1,2}\\) Qi \\(\\mathbf{X}\\mathbf{u}^{\\boxtimes 1}\\) Jiangrong Shen \\(^{3}\\) Hongming \\(\\mathbf{X}\\mathbf{u}^{1}\\) Long Chen \\(^{4}\\) Gang Pan \\(^{3}\\)"
24
+ },
25
+ {
26
+ "type": "title",
27
+ "bbox": [
28
+ 0.242,
29
+ 0.243,
30
+ 0.321,
31
+ 0.259
32
+ ],
33
+ "angle": 0,
34
+ "content": "Abstract"
35
+ },
36
+ {
37
+ "type": "text",
38
+ "bbox": [
39
+ 0.118,
40
+ 0.265,
41
+ 0.445,
42
+ 0.673
43
+ ],
44
+ "angle": 0,
45
+ "content": "The emergence of deep and large-scale spiking neural networks (SNNs) exhibiting high performance across diverse complex datasets has led to a need for compressing network models due to the presence of a significant number of redundant structural units, aiming to more effectively leverage their low-power consumption and biological interpretability advantages. Currently, most model compression techniques for SNNs are based on unstructured pruning of individual connections, which requires specific hardware support. Hence, we propose a structured pruning approach based on the activity levels of convolutional kernels named Spiking Channel Activity-based (SCA) network pruning framework. Inspired by synaptic plasticity mechanisms, our method dynamically adjusts the network's structure by pruning and regenerating convolutional kernels during training, enhancing the model's adaptation to the current target task. While maintaining model performance, this approach refines the network architecture, ultimately reducing computational load and accelerating the inference process. This indicates that structured dynamic sparse learning methods can better facilitate the application of deep SNNs in low-power and high-efficiency scenarios."
46
+ },
47
+ {
48
+ "type": "title",
49
+ "bbox": [
50
+ 0.087,
51
+ 0.701,
52
+ 0.218,
53
+ 0.717
54
+ ],
55
+ "angle": 0,
56
+ "content": "1. Introduction"
57
+ },
58
+ {
59
+ "type": "text",
60
+ "bbox": [
61
+ 0.085,
62
+ 0.727,
63
+ 0.477,
64
+ 0.757
65
+ ],
66
+ "angle": 0,
67
+ "content": "Spiking Neural Networks (SNNs), known as the third generation of artificial neural networks (Maass, 1997), are"
68
+ },
69
+ {
70
+ "type": "text",
71
+ "bbox": [
72
+ 0.085,
73
+ 0.765,
74
+ 0.475,
75
+ 0.856
76
+ ],
77
+ "angle": 0,
78
+ "content": "\\(^{1}\\)School of Computer Science and Technology, Dalian University of Technology, Dalian, China \\(^{2}\\)Guangdong Laboratory of Artificial Intelligence and Digital Economy, Shenzhen, China \\(^{3}\\)College of Computer Science and Technology, Zhejiang University, Hangzhou, China \\(^{4}\\)Centre for Systems Engineering and Innovation, Imperial College London, London, UK. Correspondence to: Qi Xu <xuqi@dlut.edu.cn>."
79
+ },
80
+ {
81
+ "type": "text",
82
+ "bbox": [
83
+ 0.085,
84
+ 0.866,
85
+ 0.475,
86
+ 0.906
87
+ ],
88
+ "angle": 0,
89
+ "content": "Proceedings of the \\(41^{st}\\) International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s)."
90
+ },
91
+ {
92
+ "type": "text",
93
+ "bbox": [
94
+ 0.496,
95
+ 0.245,
96
+ 0.888,
97
+ 0.653
98
+ ],
99
+ "angle": 0,
100
+ "content": " renowned for their advantages in biological interpretability and low power consumption. Inspired by biological information processing mechanisms, unlike traditional artificial neural networks (ANNs), SNNs utilize spike sequences for feature encoding, transmission, and processing. Deployed on neuromorphic chips (Ma et al., 2023), SNNs capitalize on event-driven and asynchronous computation to significantly reduce computational complexity and minimize unnecessary overhead (Davies et al., 2018). It's noteworthy that the human brain operates on just 20 watts of power (Mink et al., 1981). The synaptic connection count undergoes a rapid increase and a gradual decrease throughout the lifecycle (Cizeron et al., 2020). In the process of cognition, the brain network's structure exhibits plasticity, meaning synaptic connections can strengthen, weaken, establish, or eliminate under the influence of learning and experience (Trachtenberg et al., 2002) (Stettler et al., 2006) (Holtmaat & Svoboda, 2009) (Barnes & Finnerty, 2010). However, many SNNs adopt fixed network structures from conventional deep learning (Wu et al., 2018) (Fang et al., 2021a) (Ding et al., 2021) (Bu et al., 2023), which may contain illogical or redundant components. Therefore, to better leverage the energy-efficient advantages of SNNs, drawing inspiration from the mechanisms of synaptic plasticity in biology, it is highly essential to adaptively learn appropriate and sparse network structures during training according to the objectives of the task."
101
+ },
102
+ {
103
+ "type": "text",
104
+ "bbox": [
105
+ 0.496,
106
+ 0.66,
107
+ 0.889,
108
+ 0.903
109
+ ],
110
+ "angle": 0,
111
+ "content": "In recent years, much research has focused on the adaptive sparse structural learning of SNNs, training a lightweight network from scratch. Kappel et al. (2015) proposed a framework of synaptic sampling for Bayesian inference to optimize both the structure and parameters of the network. Inspired by the mechanisms of brain rewiring, Bellec et al. (2017) introduced the Deep R method for ANNs. This method trains deep networks under strict connectivity constraints. They extended the Deep R approach to RSNN and LSNN (Bellec et al., 2018) while also implementing it on the prototype chip of the 2nd generation SpiNNaker system (Liu et al., 2018). The Spike-Thrift method employs attention mechanisms for pruning and growing connections during training (Kundu et al., 2021). Chen et al. (2021) introduced the Grad R method, defining the size and density of dendritic spines as the absolute values of weights and"
112
+ },
113
+ {
114
+ "type": "page_number",
115
+ "bbox": [
116
+ 0.482,
117
+ 0.924,
118
+ 0.492,
119
+ 0.935
120
+ ],
121
+ "angle": 0,
122
+ "content": "1"
123
+ }
124
+ ],
125
+ [
126
+ {
127
+ "type": "header",
128
+ "bbox": [
129
+ 0.171,
130
+ 0.057,
131
+ 0.802,
132
+ 0.071
133
+ ],
134
+ "angle": 0,
135
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
136
+ },
137
+ {
138
+ "type": "text",
139
+ "bbox": [
140
+ 0.085,
141
+ 0.086,
142
+ 0.477,
143
+ 0.297
144
+ ],
145
+ "angle": 0,
146
+ "content": "the pruning and growth occur through adaptive competition. They further defined dynamic pruning methods for excitatory and inhibitory transformation of dendrites (Chen et al., 2022). Jiang et al. (2023) trained a sparse network structure by combining global and local information. However, most of the aforementioned approaches for SNNs structural learning focus on sparsification at the level of individual connections. This approach is non-structured and exhibits irregular and unstable characteristics, making it less suitable for hardware deployment and optimization. On the other hand, structured sparse methods are more amenable to achieving lightweight networks, reducing the complexity of memory access, and displaying superior hardware adaptability."
147
+ },
148
+ {
149
+ "type": "text",
150
+ "bbox": [
151
+ 0.085,
152
+ 0.304,
153
+ 0.478,
154
+ 0.622
155
+ ],
156
+ "angle": 0,
157
+ "content": "This paper introduces an adaptive and structured sparse learning framework for SNNs, inspired by the mechanisms of synaptic plasticity in biological neural networks. As shown in Figure 1(a), the proposed SCA framework achieves network lightweight at the granularity of convolutional kernels, akin to the sparse responses of receptive cells in the biological visual system (Houweling & Brecht, 2008) (Hu et al., 2014) (Yan et al., 2020) (Yu et al., 2020). During training, the SCA framework jointly learns both the network's parameters and its structure. It accomplishes this through a self-discovery process of pruning and regrowing, guided by the structure learning rule, leading to the identification of a lightweight yet high-performance network model. The structure learning rule determines the importance of channels based on the spiking activity level, to identify the guidance for dynamic topology updates. Coarse-grained sparsification facilitates the learning of regularized structures, effectively reducing storage and computational costs, while also enhancing hardware compatibility (He & Xiao, 2023). The following are the main contributions of this paper:"
158
+ },
159
+ {
160
+ "type": "text",
161
+ "bbox": [
162
+ 0.105,
163
+ 0.634,
164
+ 0.475,
165
+ 0.74
166
+ ],
167
+ "angle": 0,
168
+ "content": "- The proposed SNNs sparsification framework adapts the structure and parameters of a joint learning network by using convolutional kernels as the fundamental units. Structured pruning aligns better with the characteristics of sparsified responses in the biological visual neural system, making it easier to achieve more compressed and lightweight network models."
169
+ },
170
+ {
171
+ "type": "text",
172
+ "bbox": [
173
+ 0.105,
174
+ 0.748,
175
+ 0.475,
176
+ 0.853
177
+ ],
178
+ "angle": 0,
179
+ "content": "- The structural learning rule of this framework adheres to the mechanisms of synaptic plasticity, allowing for the removal of redundancies and regeneration of certain convolutional kernels based on spiking activity level. An adaptive structural learning approach is advantageous for acquiring a network structure that is more appropriate for the target task."
180
+ },
181
+ {
182
+ "type": "text",
183
+ "bbox": [
184
+ 0.105,
185
+ 0.861,
186
+ 0.475,
187
+ 0.906
188
+ ],
189
+ "angle": 0,
190
+ "content": "- This framework is a general-purpose framework that can be applied to most directly trained deep convolutional SNNs. Experimental results demonstrate that"
191
+ },
192
+ {
193
+ "type": "list",
194
+ "bbox": [
195
+ 0.105,
196
+ 0.634,
197
+ 0.475,
198
+ 0.906
199
+ ],
200
+ "angle": 0,
201
+ "content": null
202
+ },
203
+ {
204
+ "type": "text",
205
+ "bbox": [
206
+ 0.53,
207
+ 0.085,
208
+ 0.886,
209
+ 0.131
210
+ ],
211
+ "angle": 0,
212
+ "content": "our approach performs well on CIFAR10, CIFAR100 and DVS-CIFAR10, maintaining network performance while reducing the parameter count."
213
+ },
214
+ {
215
+ "type": "title",
216
+ "bbox": [
217
+ 0.498,
218
+ 0.163,
219
+ 0.64,
220
+ 0.179
221
+ ],
222
+ "angle": 0,
223
+ "content": "2. Related Work"
224
+ },
225
+ {
226
+ "type": "text",
227
+ "bbox": [
228
+ 0.496,
229
+ 0.189,
230
+ 0.889,
231
+ 0.78
232
+ ],
233
+ "angle": 0,
234
+ "content": "Training Method. The development of SNNs training methods has undergone a progression from shallow to deep architectures. The earliest SNN algorithms are primarily based on unsupervised learning principles of synaptic plasticity. These methods often utilize fully connected single-layer network structures such as STDP (Song et al., 2000), Oja (Oja, 1982), and BCM (Bienenstock et al., 1982), or shallow convolutional architectures like SDNN (Kheradpisheh et al., 2018), SpiCNN (Lee et al., 2018), and ReStoCNet (Srinivasan & Roy, 2019). Typically, these approaches exhibit limited performance and are applied to less complex datasets. In recent years, numerous supervised training methods for deep SNNs have emerged which can be categorized into two main types: direct and indirect. Indirect learning methods focus on converting trained SNNs (Hu et al., 2021a) (Hu et al., 2023). The direct training methods draw inspiration from the concepts of backpropagation. These methods significantly enhance the performance of SNNs on intricate datasets. The STBP method employs a gradient surrogate approach to implement error backpropagation across both temporal and spatial dimensions (Wu et al., 2018). This technique can be applied to sophisticated network architectures like VGG and ResNet. Building upon this, Zheng et al. (2021) have introduced the tdBN method, which offers improved feature normalization in both temporal and spatial dimensions. Further, Duan et al. (2022) proposed the TEBN method using different weights at each time step. Fang et al. (2021b) introduced the PLIF model that enables the updating of membrane time constants during the training process. Deng et al. (2022) proposed the TET method to address momentum loss during the surrogate gradient descent process. SEW-Resnet (Fang et al., 2021a) and MS-ResNet (Hu et al., 2021b) adjust the structure of residual networks to achieve better identity mapping of residual blocks. These address challenges related to gradient explosion or vanishing and enable the successful training of SNN models with over a hundred layers. These techniques hold promise for the creation of intricate, large-scale deep SNNs with impressive performance (Guo et al., 2023)."
235
+ },
236
+ {
237
+ "type": "text",
238
+ "bbox": [
239
+ 0.496,
240
+ 0.785,
241
+ 0.889,
242
+ 0.906
243
+ ],
244
+ "angle": 0,
245
+ "content": "Structural Learning Method. These deep SNNs often come with a large number of parameters and significant computational costs, making the pruning of redundant connections essential. Pruning methods can generally be categorized as non-structured and structured. Non-structured pruning typically involves removing individual connections to reduce the parameter count. Deng et al. (2021) combined STBP with the ADMM (Alternating Direction Method of"
246
+ },
247
+ {
248
+ "type": "page_number",
249
+ "bbox": [
250
+ 0.481,
251
+ 0.923,
252
+ 0.493,
253
+ 0.935
254
+ ],
255
+ "angle": 0,
256
+ "content": "2"
257
+ }
258
+ ],
259
+ [
260
+ {
261
+ "type": "header",
262
+ "bbox": [
263
+ 0.171,
264
+ 0.057,
265
+ 0.803,
266
+ 0.073
267
+ ],
268
+ "angle": 0,
269
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
270
+ },
271
+ {
272
+ "type": "image",
273
+ "bbox": [
274
+ 0.197,
275
+ 0.109,
276
+ 0.614,
277
+ 0.324
278
+ ],
279
+ "angle": 0,
280
+ "content": null
281
+ },
282
+ {
283
+ "type": "image_caption",
284
+ "bbox": [
285
+ 0.267,
286
+ 0.326,
287
+ 0.525,
288
+ 0.34
289
+ ],
290
+ "angle": 0,
291
+ "content": "(a) The SCA structure learning framework."
292
+ },
293
+ {
294
+ "type": "image",
295
+ "bbox": [
296
+ 0.619,
297
+ 0.106,
298
+ 0.784,
299
+ 0.324
300
+ ],
301
+ "angle": 0,
302
+ "content": null
303
+ },
304
+ {
305
+ "type": "image_caption",
306
+ "bbox": [
307
+ 0.621,
308
+ 0.326,
309
+ 0.762,
310
+ 0.34
311
+ ],
312
+ "angle": 0,
313
+ "content": "(b) Network structures."
314
+ },
315
+ {
316
+ "type": "image_caption",
317
+ "bbox": [
318
+ 0.084,
319
+ 0.356,
320
+ 0.888,
321
+ 0.399
322
+ ],
323
+ "angle": 0,
324
+ "content": "Figure 1. The schematic illustration of the SCA structure learning framework. (a) The proposed framework follows structure learning rules to adaptively learn lightweight network models during training. (b) The proposed framework is applicable to various network structures like pre-activation, post-activation, etc."
325
+ },
326
+ {
327
+ "type": "text",
328
+ "bbox": [
329
+ 0.084,
330
+ 0.405,
331
+ 0.479,
332
+ 0.799
333
+ ],
334
+ "angle": 0,
335
+ "content": "Multipliers) optimization tool to achieve a sparse network structure through alternating optimization. Yin et al. (2021) devised binary \"gates\" to control the presence of connections, optimizing binary Bernoulli gate values through a smoothed objective function. Drawing inspiration from the dynamic changes in brain connectivity, Chen et al. (2021) proposed the Grad R method, where pruning is accompanied by the growth of certain connections in an adaptive competitive process. Chen et al. (2022) further defined a process of transformation between filamentous pseudopodia and mature dendritic spines, allowing connections to be adaptively pruned or reactivated. The ESL-SNNs method initializes a sparse network structure using the Erdos-Renyi random graph approach and progressively adapts the network structure from scratch (Shen et al., 2023). Furthermore, Shen et al. (2024) proposed a dynamic network structure by selecting activated units in the spatio and temporal dimensions and applied it to continuous learning tasks. However, Non-structured pruning, being a fine-grained method, often requires specific hardware support. On the other hand, structured pruning typically operates at the channel or layer level, yielding more compact network structures. Chowdhury et al. (2021) employed principal component analysis to compute inter-channel correlations, identifying redundant channels within SNNs. This method is primarily inspired by techniques from the field of ANNs and applies to SNNs."
336
+ },
337
+ {
338
+ "type": "title",
339
+ "bbox": [
340
+ 0.086,
341
+ 0.817,
342
+ 0.212,
343
+ 0.835
344
+ ],
345
+ "angle": 0,
346
+ "content": "3. Preliminary"
347
+ },
348
+ {
349
+ "type": "text",
350
+ "bbox": [
351
+ 0.085,
352
+ 0.843,
353
+ 0.476,
354
+ 0.906
355
+ ],
356
+ "angle": 0,
357
+ "content": "Spiking Neuron Model. The spiking neuron model is the fundamental unit of a spiking neural network, simulating the behavior of biological neurons in transmitting information through spikes. The mechanism underlying the generation"
358
+ },
359
+ {
360
+ "type": "text",
361
+ "bbox": [
362
+ 0.497,
363
+ 0.405,
364
+ 0.889,
365
+ 0.572
366
+ ],
367
+ "angle": 0,
368
+ "content": "of action potentials in biological neurons involves processes of depolarization, overshoot, and repolarization. The spiking neuron model simulates the mechanism of biological action potentials and thus establishes a simplified mathematical model, which consists of three equations: charging, discharging, and resetting. As shown in the following Eq. (1), the spiking neuron accumulates the input stimuli \\( X_{t} \\) from presynaptic neurons, integrating all the currents received from these neurons. If the membrane potential \\( H_{t} \\) of the spiking neuron exceeds a certain threshold \\( V_{\\mathrm{th}} \\), it will fire a spike and reset to the resting potential \\( V_{\\mathrm{reset}} \\)."
369
+ },
370
+ {
371
+ "type": "equation",
372
+ "bbox": [
373
+ 0.573,
374
+ 0.581,
375
+ 0.713,
376
+ 0.598
377
+ ],
378
+ "angle": 0,
379
+ "content": "\\[\nH _ {t} = f \\left(V _ {t} - 1, X _ {t}\\right)\n\\]"
380
+ },
381
+ {
382
+ "type": "equation",
383
+ "bbox": [
384
+ 0.578,
385
+ 0.6,
386
+ 0.887,
387
+ 0.617
388
+ ],
389
+ "angle": 0,
390
+ "content": "\\[\nS _ {t} = g \\left(H _ {t} - V _ {\\mathrm {t h}}\\right) = \\Theta \\left(H _ {t} - V _ {\\mathrm {t h}}\\right) \\tag {1}\n\\]"
391
+ },
392
+ {
393
+ "type": "equation",
394
+ "bbox": [
395
+ 0.578,
396
+ 0.619,
397
+ 0.787,
398
+ 0.635
399
+ ],
400
+ "angle": 0,
401
+ "content": "\\[\nV _ {t} = H _ {t} \\cdot \\left(1 - S _ {t}\\right) + V _ {\\text {r e s e t}} \\cdot S _ {t}\n\\]"
402
+ },
403
+ {
404
+ "type": "text",
405
+ "bbox": [
406
+ 0.496,
407
+ 0.645,
408
+ 0.889,
409
+ 0.752
410
+ ],
411
+ "angle": 0,
412
+ "content": "Where \\(\\Theta (\\cdot)\\) denotes the Heaviside step function, thus \\(s_t\\) is 1 if a spike is fired, and 0 otherwise. The function \\(f(\\cdot)\\) is the equation describing the dynamics of spiking neurons. In this paper, the spiking neuron models we use are the Integrate-and-Fire (IF) neuron model and the Leaky Integrate-and-Fire (LIF) neuron model as presented in Eq. (2) of Spikingjelly (Fang et al., 2020)."
413
+ },
414
+ {
415
+ "type": "equation",
416
+ "bbox": [
417
+ 0.498,
418
+ 0.761,
419
+ 0.717,
420
+ 0.778
421
+ ],
422
+ "angle": 0,
423
+ "content": "\\[\nV _ {t} = f \\left(V _ {t - 1}, X _ {t}\\right) = V _ {t - 1} + X _ {t}\n\\]"
424
+ },
425
+ {
426
+ "type": "equation",
427
+ "bbox": [
428
+ 0.5,
429
+ 0.78,
430
+ 0.887,
431
+ 0.822
432
+ ],
433
+ "angle": 0,
434
+ "content": "\\[\nV _ {t} = f \\left(V _ {t - 1}, X _ {t}\\right) = V _ {t - 1} + \\frac {1}{\\tau_ {m}} \\left(- \\left(V _ {t - 1} - V _ {\\text {r e s e t}}\\right) + X _ {t}\\right) \\tag {2}\n\\]"
435
+ },
436
+ {
437
+ "type": "text",
438
+ "bbox": [
439
+ 0.496,
440
+ 0.824,
441
+ 0.888,
442
+ 0.852
443
+ ],
444
+ "angle": 0,
445
+ "content": "Where \\(\\tau_{m}\\) represents the time constant of membrane potential."
446
+ },
447
+ {
448
+ "type": "text",
449
+ "bbox": [
450
+ 0.496,
451
+ 0.861,
452
+ 0.889,
453
+ 0.907
454
+ ],
455
+ "angle": 0,
456
+ "content": "Surrogate Gradient. Differing from conventional neural networks, the spiking neurons in SNNs transmit feature information through a sequence of discrete spikes. As de"
457
+ },
458
+ {
459
+ "type": "page_number",
460
+ "bbox": [
461
+ 0.481,
462
+ 0.924,
463
+ 0.492,
464
+ 0.935
465
+ ],
466
+ "angle": 0,
467
+ "content": "3"
468
+ }
469
+ ],
470
+ [
471
+ {
472
+ "type": "header",
473
+ "bbox": [
474
+ 0.171,
475
+ 0.057,
476
+ 0.801,
477
+ 0.071
478
+ ],
479
+ "angle": 0,
480
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
481
+ },
482
+ {
483
+ "type": "text",
484
+ "bbox": [
485
+ 0.085,
486
+ 0.085,
487
+ 0.475,
488
+ 0.147
489
+ ],
490
+ "angle": 0,
491
+ "content": "picted in Eq. (3), the backpropagation in SNNs leverages the chain rule to compute gradients across spatial and temporal dimensions, akin to the Backpropagation Through Time (BPTT) algorithm in Recurrent Neural Networks (RNNs)."
492
+ },
493
+ {
494
+ "type": "equation",
495
+ "bbox": [
496
+ 0.11,
497
+ 0.182,
498
+ 0.476,
499
+ 0.224
500
+ ],
501
+ "angle": 0,
502
+ "content": "\\[\n\\frac {\\partial L}{\\partial W} = \\sum_ {t = 1} ^ {T} \\frac {\\partial L}{\\partial H _ {t}} \\frac {\\partial H _ {t}}{\\partial W} = \\sum_ {t = 1} ^ {T} \\frac {\\partial L}{\\partial S _ {t}} \\frac {\\partial S _ {t}}{\\partial H _ {t}} \\frac {\\partial H _ {t}}{\\partial X _ {t}} \\frac {\\partial X _ {t}}{\\partial W} \\tag {3}\n\\]"
503
+ },
504
+ {
505
+ "type": "text",
506
+ "bbox": [
507
+ 0.085,
508
+ 0.261,
509
+ 0.477,
510
+ 0.381
511
+ ],
512
+ "angle": 0,
513
+ "content": "Due to the binary nature of spikes \\((S_{t}\\in \\{0,1\\})\\) \\(\\frac{\\partial S_t}{\\partial H_t}\\) is non-differentiable. Hence, to enable the utilization of backpropagation for the direct training of SNNs, the gradient surrogate method employs differentiable functions \\(g(x)\\) to substitute for the non-differentiable spikes \\(\\Theta (x)\\). The gradient surrogate function utilized here is the sigmoid function \\(g(x) = \\mathrm{Sigmoid}(\\alpha x) = \\frac{1}{1 + e^{-\\alpha x}}\\), where \\(\\alpha\\) is used to control the smoothness of the function."
514
+ },
515
+ {
516
+ "type": "title",
517
+ "bbox": [
518
+ 0.086,
519
+ 0.402,
520
+ 0.221,
521
+ 0.42
522
+ ],
523
+ "angle": 0,
524
+ "content": "4. Methodology"
525
+ },
526
+ {
527
+ "type": "text",
528
+ "bbox": [
529
+ 0.085,
530
+ 0.429,
531
+ 0.476,
532
+ 0.533
533
+ ],
534
+ "angle": 0,
535
+ "content": "This section introduces the dynamic structural pruning framework proposed in this paper, SCA network pruning method. This method determines the importance of channels based on their spiking activity and dynamically optimizes the network structure during the training process. It is applicable to various convolutional network architectures, including VGG, ResNet, and others."
536
+ },
537
+ {
538
+ "type": "title",
539
+ "bbox": [
540
+ 0.086,
541
+ 0.551,
542
+ 0.409,
543
+ 0.566
544
+ ],
545
+ "angle": 0,
546
+ "content": "4.1. The SCA Structure Learning Framework"
547
+ },
548
+ {
549
+ "type": "text",
550
+ "bbox": [
551
+ 0.085,
552
+ 0.574,
553
+ 0.477,
554
+ 0.906
555
+ ],
556
+ "angle": 0,
557
+ "content": "As depicted in Algorithm 1, the SCA structure learning method simultaneously performs joint learning of both the network's weight parameters and its topological structure during the training process. Its inspiration originates from the plasticity of the biological neural system, resembling how biological neural networks optimize information transmission through processes of synaptic modulation, establishment and elimination. In the structural learning phase, the significance of each channel is determined by assessing the spiking activity level. This method identifies redundant channels with lower spiking activity and removes them while generating a subset of channels in each or several iterations. The network's structural changes are recorded using a mask. During the weight learning phase, the network's weights are updated using gradient surrogate method. Then, repeat the two aforementioned processes until the model converges. During the training process, we added L1 regularization to better identify redundant structures. Finally, a new model is obtained by completely removing redundant channels according to the mask, ensuring a meticulously optimized lightweight network without compromising its performance."
558
+ },
559
+ {
560
+ "type": "title",
561
+ "bbox": [
562
+ 0.499,
563
+ 0.085,
564
+ 0.81,
565
+ 0.1
566
+ ],
567
+ "angle": 0,
568
+ "content": "Algorithm 1 The Overall Training Framework."
569
+ },
570
+ {
571
+ "type": "text",
572
+ "bbox": [
573
+ 0.5,
574
+ 0.103,
575
+ 0.713,
576
+ 0.116
577
+ ],
578
+ "angle": 0,
579
+ "content": "Input: Input data \\(X\\). Labels \\(Y\\)."
580
+ },
581
+ {
582
+ "type": "text",
583
+ "bbox": [
584
+ 0.5,
585
+ 0.116,
586
+ 0.887,
587
+ 0.142
588
+ ],
589
+ "angle": 0,
590
+ "content": "Output: Pruning channels ratio \\( p\\% \\). Mask update ratio \\( q\\% \\). The weight \\( W \\). The weight mask \\( M \\)."
591
+ },
592
+ {
593
+ "type": "text",
594
+ "bbox": [
595
+ 0.509,
596
+ 0.142,
597
+ 0.687,
598
+ 0.155
599
+ ],
600
+ "angle": 0,
601
+ "content": "1: Initialize the weight \\( W \\);"
602
+ },
603
+ {
604
+ "type": "text",
605
+ "bbox": [
606
+ 0.509,
607
+ 0.156,
608
+ 0.666,
609
+ 0.169
610
+ ],
611
+ "angle": 0,
612
+ "content": "2: for \\(i\\) in [1, epoch] do"
613
+ },
614
+ {
615
+ "type": "text",
616
+ "bbox": [
617
+ 0.509,
618
+ 0.169,
619
+ 0.885,
620
+ 0.193
621
+ ],
622
+ "angle": 0,
623
+ "content": "3: Learn weight parameters based on surrogate gradient under L1 regularization;"
624
+ },
625
+ {
626
+ "type": "text",
627
+ "bbox": [
628
+ 0.509,
629
+ 0.193,
630
+ 0.885,
631
+ 0.217
632
+ ],
633
+ "angle": 0,
634
+ "content": "4: Learn weight connection based on structure learning rule:"
635
+ },
636
+ {
637
+ "type": "text",
638
+ "bbox": [
639
+ 0.509,
640
+ 0.217,
641
+ 0.885,
642
+ 0.244
643
+ ],
644
+ "angle": 0,
645
+ "content": "5: (1) Prune \\(q\\%\\) channels, resulting in the removal of \\((p + q)\\%\\) channels;"
646
+ },
647
+ {
648
+ "type": "text",
649
+ "bbox": [
650
+ 0.509,
651
+ 0.244,
652
+ 0.885,
653
+ 0.27
654
+ ],
655
+ "angle": 0,
656
+ "content": "6: (2) Regrow \\( q\\% \\) channels, maintaining a pruning ratio of \\( p\\% \\);"
657
+ },
658
+ {
659
+ "type": "text",
660
+ "bbox": [
661
+ 0.509,
662
+ 0.27,
663
+ 0.746,
664
+ 0.283
665
+ ],
666
+ "angle": 0,
667
+ "content": "7: for each layer of the model do"
668
+ },
669
+ {
670
+ "type": "text",
671
+ "bbox": [
672
+ 0.509,
673
+ 0.283,
674
+ 0.662,
675
+ 0.295
676
+ ],
677
+ "angle": 0,
678
+ "content": "8: \\(W = M\\odot W;\\)"
679
+ },
680
+ {
681
+ "type": "text",
682
+ "bbox": [
683
+ 0.508,
684
+ 0.295,
685
+ 0.597,
686
+ 0.316
687
+ ],
688
+ "angle": 0,
689
+ "content": "9: end for \n0: end for"
690
+ },
691
+ {
692
+ "type": "text",
693
+ "bbox": [
694
+ 0.503,
695
+ 0.313,
696
+ 0.885,
697
+ 0.348
698
+ ],
699
+ "angle": 0,
700
+ "content": "11: Completely remove the channels corresponding to zero positions in the mask to obtain the compressed network model."
701
+ },
702
+ {
703
+ "type": "text",
704
+ "bbox": [
705
+ 0.503,
706
+ 0.348,
707
+ 0.729,
708
+ 0.36
709
+ ],
710
+ "angle": 0,
711
+ "content": "12: return: The lightweight SNN."
712
+ },
713
+ {
714
+ "type": "list",
715
+ "bbox": [
716
+ 0.503,
717
+ 0.142,
718
+ 0.885,
719
+ 0.36
720
+ ],
721
+ "angle": 0,
722
+ "content": null
723
+ },
724
+ {
725
+ "type": "title",
726
+ "bbox": [
727
+ 0.498,
728
+ 0.39,
729
+ 0.719,
730
+ 0.405
731
+ ],
732
+ "angle": 0,
733
+ "content": "4.2. Channel Importance Score"
734
+ },
735
+ {
736
+ "type": "text",
737
+ "bbox": [
738
+ 0.497,
739
+ 0.414,
740
+ 0.888,
741
+ 0.686
742
+ ],
743
+ "angle": 0,
744
+ "content": "In SNNs, features were encoded and transmitted in the form of spike sequences. We obtain importance assessment scores by calculating the spiking neuron activity of each channel in the overall network model's feature map. In biological neural cells, the resting membrane potential is around - 65mV. When excited stimuli are received, the membrane potential increases, leading to a decrease in polarization level; this process is termed depolarization. On the other hand, inhibitory stimuli result in a decrease in membrane potential, causing an increase in polarization level; this process is referred to as hyperpolarization (Gerstner et al., 2014). Drawing inspiration from this biological mechanism, neurons with lower polarization levels can be considered less important, and their removal has a relatively minor impact on the network's accuracy. We use \\( r_k^l \\) to denote the k-th channel of the l-th layer in the network. In each iteration, the average membrane potential of this channel on the training set is computed, as shown in Eq. (4)."
745
+ },
746
+ {
747
+ "type": "equation",
748
+ "bbox": [
749
+ 0.583,
750
+ 0.696,
751
+ 0.887,
752
+ 0.737
753
+ ],
754
+ "angle": 0,
755
+ "content": "\\[\nr _ {k} ^ {l} = \\frac {1}{N} \\frac {1}{T} \\left(\\sum_ {n = 1} ^ {N} \\sum_ {t = 1} ^ {T} \\| H _ {k} ^ {l} (t) \\|\\right) \\tag {4}\n\\]"
756
+ },
757
+ {
758
+ "type": "text",
759
+ "bbox": [
760
+ 0.497,
761
+ 0.747,
762
+ 0.889,
763
+ 0.906
764
+ ],
765
+ "angle": 0,
766
+ "content": "Where \\(N\\) represents the number of samples in the training set, and \\(T\\) is the time step of the SNN. \\(\\left\\| H_k^l (t)\\right\\|\\) denotes the L1 norm of the membrane potential of that channel's feature map. In the feature map, the membrane potential of a specific neuron at time \\(t\\) is denoted as \\(H_{t}^{ij}\\) \\((\\left\\| H_k^l (t)\\right\\| = \\left[H_t^{ij}\\right]_{h\\times w})\\). If \\(H_{t}^{ij}\\) is positive, it is referred to as an excitatory postsynaptic potential (EPSP); otherwise, it is an inhibitory postsynaptic potential (IPSP). EPSP and IPSP generate firing and non-firing patterns, respectively. Both of these patterns play crucial roles in feature encoding."
767
+ },
768
+ {
769
+ "type": "page_number",
770
+ "bbox": [
771
+ 0.481,
772
+ 0.924,
773
+ 0.492,
774
+ 0.935
775
+ ],
776
+ "angle": 0,
777
+ "content": "4"
778
+ }
779
+ ],
780
+ [
781
+ {
782
+ "type": "header",
783
+ "bbox": [
784
+ 0.172,
785
+ 0.058,
786
+ 0.802,
787
+ 0.071
788
+ ],
789
+ "angle": 0,
790
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
791
+ },
792
+ {
793
+ "type": "text",
794
+ "bbox": [
795
+ 0.089,
796
+ 0.086,
797
+ 0.473,
798
+ 0.19
799
+ ],
800
+ "angle": 0,
801
+ "content": "Filters with minimal impact on the spike sequence patterns are considered unimportant. Therefore, the degree of neuronal polarization can be used to assess its significance. In other words, the degree to which \\( H_{t}^{ij} \\) deviates from 0 is used to determine the activity level of the spiking neuron, i.e. Spiking Channel Activity, similar to the polarization level of biological cells (Gerstner et al., 2014)."
802
+ },
803
+ {
804
+ "type": "title",
805
+ "bbox": [
806
+ 0.089,
807
+ 0.208,
808
+ 0.29,
809
+ 0.222
810
+ ],
811
+ "angle": 0,
812
+ "content": "4.3. Structure Learning Rule"
813
+ },
814
+ {
815
+ "type": "text",
816
+ "bbox": [
817
+ 0.089,
818
+ 0.232,
819
+ 0.474,
820
+ 0.487
821
+ ],
822
+ "angle": 0,
823
+ "content": "Filter Pruning. In order to eliminate redundant portions in the network that contribute minimally to the target task or cause interference, a certain proportion of convolutional kernels are pruned based on channel importance scores. Initially, the sparsity ratio is set to \\( p\\% \\). We first calculate importance scores for all channels in the network and sort these scores, considering channels with lower scores as redundant components. This approach enables a more balanced reduction of redundancy across the entire network, leading to greater compression benefits while maintaining performance. We employ a mask to record the network's structure, where 0 denotes pruned channels and 1 represents retained ones. To better explore optimal network structures, during each iteration, a further \\( q\\% \\) of pruning convolutional kernels are introduced. Simultaneously, \\( q\\% \\) of the pruned convolutional kernels are reselected for regeneration, maintaining a consistent network sparsity ratio \\( p\\% \\)."
824
+ },
825
+ {
826
+ "type": "text",
827
+ "bbox": [
828
+ 0.089,
829
+ 0.495,
830
+ 0.474,
831
+ 0.767
832
+ ],
833
+ "angle": 0,
834
+ "content": "Selective Growth. During the phase of selective growth, we determine the channels to be reactivated based on the gradient magnitudes of the Gamma parameters \\(\\gamma\\) within the Batch Normalization (BN) layer. The Gamma parameters in the BN layers, acting as scaling factors, influence the range of features in the output. When pruned channels exhibit significant gradients in their Gamma parameters, it suggests the potential for these channels to regain their activity. Consequently, we can selectively regrow the network's channels with higher Gamma parameter gradients, aiming to optimize the network structure. After structural adjustments, the network is iteratively trained for one or several epochs, with the channels masked with 0 participating in the training. Through the process of pruning and regrowth, this framework mitigates the issue of potentially irreversible losses caused by pruning. Moreover, it facilitates the correction of accuracy losses resulting from erroneous pruning by allowing reactivation through regrowth."
835
+ },
836
+ {
837
+ "type": "title",
838
+ "bbox": [
839
+ 0.089,
840
+ 0.784,
841
+ 0.335,
842
+ 0.798
843
+ ],
844
+ "angle": 0,
845
+ "content": "4.4. Various Network Architectures"
846
+ },
847
+ {
848
+ "type": "text",
849
+ "bbox": [
850
+ 0.089,
851
+ 0.808,
852
+ 0.474,
853
+ 0.897
854
+ ],
855
+ "angle": 0,
856
+ "content": "This framework can be applied to various convolutional spiking neural network architectures. As shown in Figure 1(b), the SN denotes the spiking neuron layer. For post-activation network structures like VGG and ResNet, we employ the process of pruning and regeneration using the BN layer and spiking neuron layer immediately following the conv"
857
+ },
858
+ {
859
+ "type": "text",
860
+ "bbox": [
861
+ 0.502,
862
+ 0.086,
863
+ 0.885,
864
+ 0.19
865
+ ],
866
+ "angle": 0,
867
+ "content": "layer. For pre-activation network structures like PreResNet, in the architecture on the right side, the BN1 and SN1 of the current block are used to determine filter pruning for the convolutional layer Conv2 of the previous block, while BN2 and SN2 are used to decide that of Conv1 for the current block. We will elaborate on the structural details employed in the experimental section."
868
+ },
869
+ {
870
+ "type": "title",
871
+ "bbox": [
872
+ 0.502,
873
+ 0.211,
874
+ 0.628,
875
+ 0.227
876
+ ],
877
+ "angle": 0,
878
+ "content": "5. Experiments"
879
+ },
880
+ {
881
+ "type": "title",
882
+ "bbox": [
883
+ 0.502,
884
+ 0.236,
885
+ 0.675,
886
+ 0.251
887
+ ],
888
+ "angle": 0,
889
+ "content": "5.1. Experiment Settings."
890
+ },
891
+ {
892
+ "type": "text",
893
+ "bbox": [
894
+ 0.502,
895
+ 0.26,
896
+ 0.885,
897
+ 0.561
898
+ ],
899
+ "angle": 0,
900
+ "content": "Our experiments are conducted using the SpikeJelly framework (Fang et al., 2020), an SNN framework implemented based on PyTorch. We perform experiments on both static datasets and neuromorphic datasets. CIFAR-10 and CIFAR100 are commonly used static image classification datasets, containing 10 and 100 classes, respectively. The images in these datasets are \\(32 \\times 32\\) RGB images. To input images into SNNs, encoding is required, and we use a time step of 4. The DVS-CIFAR10 dataset is a neuromorphic dataset, and we divide it into training and testing sets with 9000 and 1000 samples, respectively. The Tiny ImageNet dataset consists of 200 classes with a training set of 100000 samples and a test set of 10000 samples. Event data needs to be integrated into frame data, and we use 20 time steps for this purpose. The network structures used in the experiments are based on VGG and Pre-ResNet architectures. For the DVS-CIFAR10 experiments, the network structure is 64C3-AP2-128C3-AP2-128C3-AP2-256C3-AP2-256C3-AP2-10FC. The number of iterations for all experiments is set to 300 epochs."
901
+ },
902
+ {
903
+ "type": "title",
904
+ "bbox": [
905
+ 0.502,
906
+ 0.579,
907
+ 0.755,
908
+ 0.593
909
+ ],
910
+ "angle": 0,
911
+ "content": "5.2. Evaluation on different datasets."
912
+ },
913
+ {
914
+ "type": "text",
915
+ "bbox": [
916
+ 0.502,
917
+ 0.603,
918
+ 0.885,
919
+ 0.722
920
+ ],
921
+ "angle": 0,
922
+ "content": "As shown in Figure 2, we present the experimental results of our framework on various datasets. We set different channel pruning ratios and maintain a fixed level of sparsity during the training process. After training is completed, we completely remove redundant channels and construct a new lightweight model for evaluation. The computational energy consumption of the network is evaluated using the number of parameters and synaptic operations."
923
+ },
924
+ {
925
+ "type": "text",
926
+ "bbox": [
927
+ 0.502,
928
+ 0.731,
929
+ 0.885,
930
+ 0.895
931
+ ],
932
+ "angle": 0,
933
+ "content": "Performance analysis. The bar chart in Figure 2 represents the model's accuracy on the test set under different channel pruning ratios. The green and red lines indicate the final model's parameters and synaptic operations, measured in units of M \\((10^{6})\\) and K \\((10^{3})\\). It can be observed that as the channel pruning ratio increases, the model's test accuracy experiences only a minor loss, while the number of parameters decreases significantly, and in some cases, even at lower pruning ratios, the accuracy slightly improves. This indicates that our framework can compress the network's parameter count to obtain a lightweight model while main"
934
+ },
935
+ {
936
+ "type": "page_number",
937
+ "bbox": [
938
+ 0.483,
939
+ 0.925,
940
+ 0.491,
941
+ 0.935
942
+ ],
943
+ "angle": 0,
944
+ "content": "5"
945
+ }
946
+ ],
947
+ [
948
+ {
949
+ "type": "header",
950
+ "bbox": [
951
+ 0.172,
952
+ 0.057,
953
+ 0.802,
954
+ 0.071
955
+ ],
956
+ "angle": 0,
957
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
958
+ },
959
+ {
960
+ "type": "image",
961
+ "bbox": [
962
+ 0.111,
963
+ 0.118,
964
+ 0.473,
965
+ 0.306
966
+ ],
967
+ "angle": 0,
968
+ "content": null
969
+ },
970
+ {
971
+ "type": "image_caption",
972
+ "bbox": [
973
+ 0.182,
974
+ 0.316,
975
+ 0.411,
976
+ 0.33
977
+ ],
978
+ "angle": 0,
979
+ "content": "(a) SNNVGG16 on dataset CIFAR10."
980
+ },
981
+ {
982
+ "type": "image",
983
+ "bbox": [
984
+ 0.493,
985
+ 0.118,
986
+ 0.858,
987
+ 0.306
988
+ ],
989
+ "angle": 0,
990
+ "content": null
991
+ },
992
+ {
993
+ "type": "image_caption",
994
+ "bbox": [
995
+ 0.562,
996
+ 0.317,
997
+ 0.794,
998
+ 0.33
999
+ ],
1000
+ "angle": 0,
1001
+ "content": "(b) Pre-Resnet18 on dataset CIFAR10."
1002
+ },
1003
+ {
1004
+ "type": "image",
1005
+ "bbox": [
1006
+ 0.119,
1007
+ 0.351,
1008
+ 0.473,
1009
+ 0.54
1010
+ ],
1011
+ "angle": 0,
1012
+ "content": null
1013
+ },
1014
+ {
1015
+ "type": "image_caption",
1016
+ "bbox": [
1017
+ 0.179,
1018
+ 0.55,
1019
+ 0.414,
1020
+ 0.563
1021
+ ],
1022
+ "angle": 0,
1023
+ "content": "(c) SNNVGG16 on dataset CIFAR100."
1024
+ },
1025
+ {
1026
+ "type": "image",
1027
+ "bbox": [
1028
+ 0.493,
1029
+ 0.352,
1030
+ 0.856,
1031
+ 0.54
1032
+ ],
1033
+ "angle": 0,
1034
+ "content": null
1035
+ },
1036
+ {
1037
+ "type": "image_caption",
1038
+ "bbox": [
1039
+ 0.548,
1040
+ 0.55,
1041
+ 0.807,
1042
+ 0.563
1043
+ ],
1044
+ "angle": 0,
1045
+ "content": "(d) 5Conv+1FC on dataset DVS-CIFAR10."
1046
+ },
1047
+ {
1048
+ "type": "image_caption",
1049
+ "bbox": [
1050
+ 0.281,
1051
+ 0.571,
1052
+ 0.691,
1053
+ 0.585
1054
+ ],
1055
+ "angle": 0,
1056
+ "content": "Figure 2. The performance of the SCA structure learning framework."
1057
+ },
1058
+ {
1059
+ "type": "image",
1060
+ "bbox": [
1061
+ 0.177,
1062
+ 0.609,
1063
+ 0.549,
1064
+ 0.751
1065
+ ],
1066
+ "angle": 0,
1067
+ "content": null
1068
+ },
1069
+ {
1070
+ "type": "image_caption",
1071
+ "bbox": [
1072
+ 0.22,
1073
+ 0.755,
1074
+ 0.53,
1075
+ 0.77
1076
+ ],
1077
+ "angle": 0,
1078
+ "content": "(a) Network structures under various pruning ratios."
1079
+ },
1080
+ {
1081
+ "type": "image",
1082
+ "bbox": [
1083
+ 0.58,
1084
+ 0.604,
1085
+ 0.804,
1086
+ 0.75
1087
+ ],
1088
+ "angle": 0,
1089
+ "content": null
1090
+ },
1091
+ {
1092
+ "type": "image_caption",
1093
+ "bbox": [
1094
+ 0.577,
1095
+ 0.755,
1096
+ 0.802,
1097
+ 0.782
1098
+ ],
1099
+ "angle": 0,
1100
+ "content": "(b) The evolution of network structure during the training process."
1101
+ },
1102
+ {
1103
+ "type": "image_caption",
1104
+ "bbox": [
1105
+ 0.295,
1106
+ 0.789,
1107
+ 0.677,
1108
+ 0.803
1109
+ ],
1110
+ "angle": 0,
1111
+ "content": "Figure 3. Analysis of structural changes in the SCA framework."
1112
+ },
1113
+ {
1114
+ "type": "text",
1115
+ "bbox": [
1116
+ 0.085,
1117
+ 0.81,
1118
+ 0.479,
1119
+ 0.9
1120
+ ],
1121
+ "angle": 0,
1122
+ "content": "taining close-to-original high performance. For CIFAR-10, in the case of the VGG16 model shown in Figure 2(a), when the parameter count is compressed to approximately \\(10\\%\\) of the original size (i.e., 1.42 million parameters), the accuracy drops by less than \\(1\\%\\). When the parameter count is compressed to around \\(5\\%\\) (i.e., 0.93 million parameters), the"
1123
+ },
1124
+ {
1125
+ "type": "text",
1126
+ "bbox": [
1127
+ 0.497,
1128
+ 0.81,
1129
+ 0.887,
1130
+ 0.9
1131
+ ],
1132
+ "angle": 0,
1133
+ "content": "accuracy decreases by about \\(2\\%\\). When the parameter count is reduced by approximately \\(30\\%\\), the model's accuracy reaches \\(91.67\\%\\), showing an increase of \\(0.53\\%\\). For the ResNet model depicted in Figure 2(b), when the parameter count is compressed to approximately \\(20\\%\\), the accuracy loss is less than \\(1\\%\\). For CIFAR-100 in Figure 2(c), when"
1134
+ },
1135
+ {
1136
+ "type": "page_number",
1137
+ "bbox": [
1138
+ 0.481,
1139
+ 0.924,
1140
+ 0.492,
1141
+ 0.935
1142
+ ],
1143
+ "angle": 0,
1144
+ "content": "6"
1145
+ }
1146
+ ],
1147
+ [
1148
+ {
1149
+ "type": "header",
1150
+ "bbox": [
1151
+ 0.171,
1152
+ 0.057,
1153
+ 0.802,
1154
+ 0.071
1155
+ ],
1156
+ "angle": 0,
1157
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
1158
+ },
1159
+ {
1160
+ "type": "image",
1161
+ "bbox": [
1162
+ 0.113,
1163
+ 0.104,
1164
+ 0.329,
1165
+ 0.254
1166
+ ],
1167
+ "angle": 0,
1168
+ "content": null
1169
+ },
1170
+ {
1171
+ "type": "image_caption",
1172
+ "bbox": [
1173
+ 0.097,
1174
+ 0.262,
1175
+ 0.351,
1176
+ 0.276
1177
+ ],
1178
+ "angle": 0,
1179
+ "content": "(a) Channel importance score distribution."
1180
+ },
1181
+ {
1182
+ "type": "image",
1183
+ "bbox": [
1184
+ 0.362,
1185
+ 0.104,
1186
+ 0.616,
1187
+ 0.259
1188
+ ],
1189
+ "angle": 0,
1190
+ "content": null
1191
+ },
1192
+ {
1193
+ "type": "image_caption",
1194
+ "bbox": [
1195
+ 0.359,
1196
+ 0.262,
1197
+ 0.621,
1198
+ 0.276
1199
+ ],
1200
+ "angle": 0,
1201
+ "content": "(b) The parameters of ablation experiments."
1202
+ },
1203
+ {
1204
+ "type": "image",
1205
+ "bbox": [
1206
+ 0.626,
1207
+ 0.104,
1208
+ 0.88,
1209
+ 0.259
1210
+ ],
1211
+ "angle": 0,
1212
+ "content": null
1213
+ },
1214
+ {
1215
+ "type": "image_caption",
1216
+ "bbox": [
1217
+ 0.629,
1218
+ 0.262,
1219
+ 0.876,
1220
+ 0.276
1221
+ ],
1222
+ "angle": 0,
1223
+ "content": "(c) The accuracy of ablation experiments."
1224
+ },
1225
+ {
1226
+ "type": "image_caption",
1227
+ "bbox": [
1228
+ 0.246,
1229
+ 0.283,
1230
+ 0.725,
1231
+ 0.297
1232
+ ],
1233
+ "angle": 0,
1234
+ "content": "Figure 4. Analysis of the effectiveness of the SCA structure learning framework."
1235
+ },
1236
+ {
1237
+ "type": "text",
1238
+ "bbox": [
1239
+ 0.085,
1240
+ 0.304,
1241
+ 0.477,
1242
+ 0.44
1243
+ ],
1244
+ "angle": 0,
1245
+ "content": "the model's parameter count is compressed to \\(20\\%\\) of the original (i.e., 3.60 million parameters), the accuracy still increases by \\(+0.64\\%\\). In the case of DVS-CIFAR10, as shown in Figure 2(d), even when the parameter count is reduced to only \\(6.95\\%\\) of the original (i.e., 0.08 million parameters), the accuracy decreases by less than \\(1\\%\\). Furthermore, when the parameter count is compressed to approximately \\(20\\%\\) of the original (i.e., 0.25 million parameters), the accuracy improves by nearly \\(1\\%\\)."
1246
+ },
1247
+ {
1248
+ "type": "text",
1249
+ "bbox": [
1250
+ 0.085,
1251
+ 0.448,
1252
+ 0.478,
1253
+ 0.689
1254
+ ],
1255
+ "angle": 0,
1256
+ "content": "Energy Consumption Analysis. The synaptic operations (SynOps) of SNNs can represent the network's complexity and computational cost. As seen from the red line in Figure 2, with an increase in the network's channel pruning ratio, the synaptic operations gradually decrease. As shown in the Figure 2(a), for SNNVGG16 on the CIFAR-10 dataset, when the redundant channel removal ratio reaches 0.8, nearly half of the synaptic operations can be reduced. For DVS-CIFAR10 in Figure 2(d), when the number of synaptic operations (0.43M) is less than half of the original, the performance only decreases by less than \\(1\\%\\). This indicates that our method can reduce computational costs, improve resource utilization, and enhance network performance, which is highly beneficial for deploying SNNs in resource-constrained environments or achieving more efficient neural computations."
1257
+ },
1258
+ {
1259
+ "type": "title",
1260
+ "bbox": [
1261
+ 0.086,
1262
+ 0.706,
1263
+ 0.405,
1264
+ 0.721
1265
+ ],
1266
+ "angle": 0,
1267
+ "content": "5.3. Analysis of Network Structure Learning."
1268
+ },
1269
+ {
1270
+ "type": "text",
1271
+ "bbox": [
1272
+ 0.085,
1273
+ 0.729,
1274
+ 0.476,
1275
+ 0.895
1276
+ ],
1277
+ "angle": 0,
1278
+ "content": "Structure Analysis. In order to better analyze the learning process of the network structure, we visualized the changes in the number of channels for each layer of the network, as shown in Figure 3. In Figure 3(a), different lines represent the number of channels in each layer of the final network structure under different pruning ratios, using SNNVGG16 on the CFAR10 dataset as an example. It can be observed that there is a certain pattern in the change of channel numbers under different pruning ratios. The removal of more channels in the deeper layers suggests their lower importance, while channels in the shallower layers appear to be rel-"
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "bbox": [
1283
+ 0.496,
1284
+ 0.304,
1285
+ 0.888,
1286
+ 0.546
1287
+ ],
1288
+ "angle": 0,
1289
+ "content": "atively more important. In deep network structures, deeper layers extract more abstract and advanced features, but as the layers get deeper, they become harder to train, leading to the presence of many redundant connections. In Figure 3(b), the changes in the number of channels for convolutional layers 8-13 of the SNNVGG16 model under a pruning ratio of 0.5 during the training process are visualized. During the training process, some layers exhibit significant fluctuations in the number of channels, while others show relatively minor variations, suggesting the network is dynamically adapting and reallocating parameters to learn optimal channel quantities across different layers. It can be seen that as the network converges, the model's structure stabilizes to some extent. This indicates that the structural learning framework, as the network structure evolves, autonomously adapts to an appropriate structure."
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "bbox": [
1294
+ 0.496,
1295
+ 0.553,
1296
+ 0.889,
1297
+ 0.734
1298
+ ],
1299
+ "angle": 0,
1300
+ "content": "Channel Importance Score Distribution. As shown in Figure 4(a), we visualized the distribution of channel importance scores for the entire network at different pruning ratios. The points where the importance score is 0 represent the removed channels that are no longer firing. It can be seen that the original network's importance score distribution has a higher mean and is more scattered, indicating that the channels have higher spiking activity levels and larger variance. As the pruning ratio increases, the overall network activity decreases and tends towards zero, indicating that removing redundant channels reduces the overall energy consumption of the network."
1301
+ },
1302
+ {
1303
+ "type": "title",
1304
+ "bbox": [
1305
+ 0.497,
1306
+ 0.751,
1307
+ 0.771,
1308
+ 0.766
1309
+ ],
1310
+ "angle": 0,
1311
+ "content": "5.4. Analysis of Ablation Experiments."
1312
+ },
1313
+ {
1314
+ "type": "text",
1315
+ "bbox": [
1316
+ 0.496,
1317
+ 0.774,
1318
+ 0.888,
1319
+ 0.895
1320
+ ],
1321
+ "angle": 0,
1322
+ "content": "To further demonstrate the effectiveness of the structural learning method in this framework, we conducted ablation experiments, as shown in Figure 4(b) Figure 4(c). The yellow curve represents the testing accuracy and parameter count of the SNNVGG16 method on the CIFAR10 dataset. The green and red curves represent the results of pruning only without regrowth and random pruning at initialization, respectively. It can be observed that the testing accuracy"
1323
+ },
1324
+ {
1325
+ "type": "page_number",
1326
+ "bbox": [
1327
+ 0.481,
1328
+ 0.923,
1329
+ 0.492,
1330
+ 0.935
1331
+ ],
1332
+ "angle": 0,
1333
+ "content": "7"
1334
+ }
1335
+ ],
1336
+ [
1337
+ {
1338
+ "type": "header",
1339
+ "bbox": [
1340
+ 0.171,
1341
+ 0.057,
1342
+ 0.802,
1343
+ 0.071
1344
+ ],
1345
+ "angle": 0,
1346
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
1347
+ },
1348
+ {
1349
+ "type": "table_caption",
1350
+ "bbox": [
1351
+ 0.271,
1352
+ 0.094,
1353
+ 0.7,
1354
+ 0.108
1355
+ ],
1356
+ "angle": 0,
1357
+ "content": "Table 1. Comparison of Experimental Performance with Other Methods."
1358
+ },
1359
+ {
1360
+ "type": "table",
1361
+ "bbox": [
1362
+ 0.12,
1363
+ 0.119,
1364
+ 0.855,
1365
+ 0.591
1366
+ ],
1367
+ "angle": 0,
1368
+ "content": "<table><tr><td>Dataset</td><td>Method</td><td>Network Architecture</td><td>Granularity</td><td>ACC.(%)</td><td>ACC. Loss(%)</td><td>Connectivity(%)</td></tr><tr><td rowspan=\"15\">CIFAR10</td><td rowspan=\"2\">Attention-based (Kundu et al., 2021)</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">91.13</td><td>-0.39</td><td>5.00</td></tr><tr><td>-0.98</td><td>2.99</td></tr><tr><td rowspan=\"2\">ADMM-based (Deng et al., 2021)</td><td rowspan=\"2\">7Conv+2FC</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">89.53</td><td>-2.16</td><td>25.00</td></tr><tr><td>-3.85</td><td>10.00</td></tr><tr><td rowspan=\"3\">Grad R (Chen et al., 2021)</td><td rowspan=\"3\">6Conv+2FC</td><td rowspan=\"3\">Weight</td><td rowspan=\"3\">92.84</td><td>-0.30</td><td>28.41</td></tr><tr><td>-0.34</td><td>12.04</td></tr><tr><td>-0.81</td><td>5.08</td></tr><tr><td rowspan=\"2\">Dendritic-based (Chen et al., 2022)</td><td rowspan=\"2\">6Conv+2FC</td><td rowspan=\"2\">Weight</td><td rowspan=\"2\">92.84</td><td>-0.35</td><td>2.23</td></tr><tr><td>-2.63</td><td>0.75</td></tr><tr><td>ESL-SNNs (Shen et al., 2023)</td><td>Resnet19</td><td>Weight</td><td>91.09</td><td>-1.70</td><td>50.00</td></tr><tr><td>SD-SNN (Han et al., 2022)</td><td>6Conv+2FC</td><td>Channel</td><td>94.74</td><td>-0.64</td><td>62.56</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG9</td><td>Channel</td><td>90.10</td><td>-1.06</td><td>7.00</td></tr><tr><td rowspan=\"3\">SCA-based</td><td rowspan=\"3\">VGG16</td><td rowspan=\"3\">Channel</td><td rowspan=\"3\">91.14</td><td>+0.32</td><td>55.86</td></tr><tr><td>+0.53</td><td>28.39</td></tr><tr><td>-0.88</td><td>9.31</td></tr><tr><td rowspan=\"4\">CIFAR100</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>64.69</td><td>-0.03</td><td>10.00</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG11</td><td>Channel</td><td>68.10</td><td>-1.70</td><td>10.70</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">64.89</td><td>+0.64</td><td>23.52</td></tr><tr><td>-0.25</td><td>16.47</td></tr><tr><td rowspan=\"3\">DVS-CIFAR10</td><td>ESL-SNNs (Shen et al., 2023)</td><td>VGG8</td><td>Weight</td><td>78.30</td><td>-0.28</td><td>10.00</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">5Conv+1FC</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">72.80</td><td>+0.90</td><td>21.73</td></tr><tr><td>-0.90</td><td>6.95</td></tr><tr><td rowspan=\"3\">Tiny-ImageNet</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>51.92</td><td>+0.78</td><td>40.00</td></tr><tr><td rowspan=\"2\">SCA-based</td><td rowspan=\"2\">VGG16</td><td rowspan=\"2\">Channel</td><td rowspan=\"2\">49.33</td><td>+0.03</td><td>43.21</td></tr><tr><td>-0.19</td><td>30.60</td></tr></table>"
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "bbox": [
1373
+ 0.085,
1374
+ 0.605,
1375
+ 0.477,
1376
+ 0.833
1377
+ ],
1378
+ "angle": 0,
1379
+ "content": "follows the order 'Prune and Regrow' > 'Only Prune' > 'Random Prune', and the parameter count for the latter two is higher than that of 'Prune and Regrow.' When the pruning ratio is 0.8, our framework achieves only about a \\(2\\%\\) decrease in accuracy, while the accuracy of only pruning and random pruning drops significantly. When only pruning is performed, after an initial mask update at the beginning of training, the mask hardly gets updated during subsequent training, indicating that the regrowth process can reactivate mistakenly pruned channels. Random pruning, which prunes with the same probability for each layer, cannot accurately identify redundant structural units. Therefore, the SCA framework's mechanism for identifying redundant channels and reactivating pruned channels autonomously searches for an appropriate network structure."
1380
+ },
1381
+ {
1382
+ "type": "title",
1383
+ "bbox": [
1384
+ 0.086,
1385
+ 0.849,
1386
+ 0.355,
1387
+ 0.864
1388
+ ],
1389
+ "angle": 0,
1390
+ "content": "5.5. Comparison with Other Methods."
1391
+ },
1392
+ {
1393
+ "type": "text",
1394
+ "bbox": [
1395
+ 0.085,
1396
+ 0.872,
1397
+ 0.476,
1398
+ 0.903
1399
+ ],
1400
+ "angle": 0,
1401
+ "content": "As shown in Table 1, we compared our method with existing SNNs pruning methods, presenting the loss in test"
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "bbox": [
1406
+ 0.496,
1407
+ 0.605,
1408
+ 0.889,
1409
+ 0.893
1410
+ ],
1411
+ "angle": 0,
1412
+ "content": "accuracy for different pruning ratios and the percentage of remaining parameters. On the CIFAR-10 dataset, at approximately \\(9.31\\%\\) of the original parameter count, our method achieved a less than \\(1\\%\\) decrease in accuracy. This performance is similar to the PCA-based channel pruning method (Chowdhury et al., 2021). However, the PCA-based method uses a time step of 25, much larger than our method's 4. Compared to the SD-SNN method (Han et al., 2022), our method also exhibited advantages in parameter compression and performance loss. The SCA-based method achieved a \\(0.53\\%\\) improvement in accuracy at only \\(28.39\\%\\) of the original parameter count, outperforming the ADMM-based (Deng et al., 2021) and ESL-SNNs (Shen et al., 2023) methods. The SCA-based method may not excel in parameter compression compared to Attention-based (Kundu et al., 2021), Grad R (Chen et al., 2021), and Dendritic-based (Chen et al., 2022) methods. However, our approach employs structured pruning specifically targeting convolutional layers and efficiently retracts from scratch in a more energy-"
1413
+ },
1414
+ {
1415
+ "type": "page_number",
1416
+ "bbox": [
1417
+ 0.481,
1418
+ 0.924,
1419
+ 0.492,
1420
+ 0.935
1421
+ ],
1422
+ "angle": 0,
1423
+ "content": "8"
1424
+ }
1425
+ ],
1426
+ [
1427
+ {
1428
+ "type": "header",
1429
+ "bbox": [
1430
+ 0.171,
1431
+ 0.057,
1432
+ 0.802,
1433
+ 0.072
1434
+ ],
1435
+ "angle": 0,
1436
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
1437
+ },
1438
+ {
1439
+ "type": "text",
1440
+ "bbox": [
1441
+ 0.085,
1442
+ 0.086,
1443
+ 0.477,
1444
+ 0.449
1445
+ ],
1446
+ "angle": 0,
1447
+ "content": "efficient manner. Ultimately, it allows for the complete removal of redundant structural units, resulting in a new model with improved hardware-friendliness. On the CIFAR100 dataset, the accuracy loss is \\(0.25\\%\\) when the parameters are \\(16.47\\%\\) of the original, which is better than the PCA-based method (Chowdhury et al., 2021). The attention-based method (Kundu et al., 2021) requires a process involving ANN-SNN conversion, while our method is comparatively more energy-efficient. For the Tiny ImageNet dataset, when the pruning ratio is approximately \\(40\\%\\), the accuracy improves by \\(0.03\\%\\). With a pruning ratio of \\(30\\%\\), there is only a slight decrease in accuracy. This suggests that the proposed method remains effective on complex datasets. On the DVS-CIFAR10 dataset, there was a slight improvement in accuracy when compressing fewer parameters. Additionally, the network structure used was simpler compared to ESL-SNNs (Shen et al., 2023). Therefore, the experimental results indicate that our SCA structured pruning method can efficiently identify redundant structural units and adapt the lightweight network autonomously for the target task through training from scratch. This method results in a thoroughly lightweight model with a more regular structure, making it easier to deploy on hardware chips compared to unstructured pruning (Shrestha et al., 2022)."
1448
+ },
1449
+ {
1450
+ "type": "title",
1451
+ "bbox": [
1452
+ 0.086,
1453
+ 0.467,
1454
+ 0.206,
1455
+ 0.483
1456
+ ],
1457
+ "angle": 0,
1458
+ "content": "6. Conclusion"
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "bbox": [
1463
+ 0.085,
1464
+ 0.493,
1465
+ 0.477,
1466
+ 0.675
1467
+ ],
1468
+ "angle": 0,
1469
+ "content": "Lightweight and high-performance SNNs can better leverage their advantages of low power consumption. The structured pruning methods can result in regular, sparse SNN models, making them more hardware-friendly. The approach proposed in this paper starts from the perspective of biological plasticity, combining pruning and regrowth in an adaptive manner during training to explore suitable lightweight network structures. This approach allows for the compression of network parameters while maintaining network high performance. This is of significant value for deploying high-performance, low-memory SNNs on neuromorphic chips."
1470
+ },
1471
+ {
1472
+ "type": "title",
1473
+ "bbox": [
1474
+ 0.087,
1475
+ 0.694,
1476
+ 0.254,
1477
+ 0.71
1478
+ ],
1479
+ "angle": 0,
1480
+ "content": "Acknowledgements"
1481
+ },
1482
+ {
1483
+ "type": "text",
1484
+ "bbox": [
1485
+ 0.085,
1486
+ 0.72,
1487
+ 0.476,
1488
+ 0.81
1489
+ ],
1490
+ "angle": 0,
1491
+ "content": "This work is supported by National Key R&D Program of China (2021ZD0109803), National Natural Science Foundation of China (NSFC No.62206037, 62306274), The Open Project of Anhui Provincial Key Laboratory of Multimodal Cognitive Computation, Anhui University, No. MMC202104 and under Grant No. GML-KF-22-11."
1492
+ },
1493
+ {
1494
+ "type": "title",
1495
+ "bbox": [
1496
+ 0.086,
1497
+ 0.83,
1498
+ 0.242,
1499
+ 0.847
1500
+ ],
1501
+ "angle": 0,
1502
+ "content": "Impact Statement"
1503
+ },
1504
+ {
1505
+ "type": "text",
1506
+ "bbox": [
1507
+ 0.085,
1508
+ 0.856,
1509
+ 0.475,
1510
+ 0.901
1511
+ ],
1512
+ "angle": 0,
1513
+ "content": "This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none of which we feel must be"
1514
+ },
1515
+ {
1516
+ "type": "text",
1517
+ "bbox": [
1518
+ 0.499,
1519
+ 0.085,
1520
+ 0.692,
1521
+ 0.101
1522
+ ],
1523
+ "angle": 0,
1524
+ "content": "specifically highlighted here."
1525
+ },
1526
+ {
1527
+ "type": "title",
1528
+ "bbox": [
1529
+ 0.499,
1530
+ 0.12,
1531
+ 0.596,
1532
+ 0.136
1533
+ ],
1534
+ "angle": 0,
1535
+ "content": "References"
1536
+ },
1537
+ {
1538
+ "type": "ref_text",
1539
+ "bbox": [
1540
+ 0.499,
1541
+ 0.144,
1542
+ 0.888,
1543
+ 0.189
1544
+ ],
1545
+ "angle": 0,
1546
+ "content": "Barnes, S. J. and Finnerty, G. T. Sensory experience and cortical rewiring. The Neuroscientist, 16(2):186-198, 2010."
1547
+ },
1548
+ {
1549
+ "type": "ref_text",
1550
+ "bbox": [
1551
+ 0.499,
1552
+ 0.201,
1553
+ 0.887,
1554
+ 0.247
1555
+ ],
1556
+ "angle": 0,
1557
+ "content": "Bellec, G., Kappel, D., Maass, W., and Legenstein, R. Deep rewiring: Training very sparse deep networks. arXiv preprint arXiv:1711.05136, 2017."
1558
+ },
1559
+ {
1560
+ "type": "ref_text",
1561
+ "bbox": [
1562
+ 0.499,
1563
+ 0.257,
1564
+ 0.888,
1565
+ 0.319
1566
+ ],
1567
+ "angle": 0,
1568
+ "content": "Bellec, G., Salaj, D., Subramoney, A., Legenstein, R., and Maass, W. Long short-term memory and learning-to-learn in networks of spiking neurons. Advances in neural information processing systems, 31, 2018."
1569
+ },
1570
+ {
1571
+ "type": "ref_text",
1572
+ "bbox": [
1573
+ 0.499,
1574
+ 0.329,
1575
+ 0.888,
1576
+ 0.39
1577
+ ],
1578
+ "angle": 0,
1579
+ "content": "Bienenstock, E. L., Cooper, L. N., and Munro, P. W. Theory for the development of neuron selectivity: orientation specificity and binocular interaction in visual cortex. Journal of Neuroscience, 2(1):32-48, 1982."
1580
+ },
1581
+ {
1582
+ "type": "ref_text",
1583
+ "bbox": [
1584
+ 0.499,
1585
+ 0.4,
1586
+ 0.887,
1587
+ 0.461
1588
+ ],
1589
+ "angle": 0,
1590
+ "content": "Bu, T., Fang, W., Ding, J., Dai, P., Yu, Z., and Huang, T. Optimal ann-snn conversion for high-accuracy and ultra-low-latency spiking neural networks. arXiv preprint arXiv:2303.04347, 2023."
1591
+ },
1592
+ {
1593
+ "type": "ref_text",
1594
+ "bbox": [
1595
+ 0.499,
1596
+ 0.472,
1597
+ 0.887,
1598
+ 0.518
1599
+ ],
1600
+ "angle": 0,
1601
+ "content": "Chen, Y., Yu, Z., Fang, W., Huang, T., and Tian, Y. Pruning of deep spiking neural networks through gradient rewiring. arXiv preprint arXiv:2105.04916, 2021."
1602
+ },
1603
+ {
1604
+ "type": "ref_text",
1605
+ "bbox": [
1606
+ 0.499,
1607
+ 0.529,
1608
+ 0.888,
1609
+ 0.604
1610
+ ],
1611
+ "angle": 0,
1612
+ "content": "Chen, Y., Yu, Z., Fang, W., Ma, Z., Huang, T., and Tian, Y. State transition of dendritic spines improves learning of sparse spiking neural networks. In International Conference on Machine Learning, pp. 3701-3715. PMLR, 2022."
1613
+ },
1614
+ {
1615
+ "type": "ref_text",
1616
+ "bbox": [
1617
+ 0.499,
1618
+ 0.615,
1619
+ 0.887,
1620
+ 0.676
1621
+ ],
1622
+ "angle": 0,
1623
+ "content": "Chowdhury, S. S., Garg, I., and Roy, K. Spatio-temporal pruning and quantization for low-latency spiking neural networks. In 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1-9. IEEE, 2021."
1624
+ },
1625
+ {
1626
+ "type": "ref_text",
1627
+ "bbox": [
1628
+ 0.499,
1629
+ 0.687,
1630
+ 0.887,
1631
+ 0.747
1632
+ ],
1633
+ "angle": 0,
1634
+ "content": "Cizeron, M., Qiu, Z., Koniaris, B., Gokhale, R., Komiyama, N. H., Fransén, E., and Grant, S. G. A brainwide atlas of synapses across the mouse life span. Science, 369(6501): 270-275, 2020."
1635
+ },
1636
+ {
1637
+ "type": "ref_text",
1638
+ "bbox": [
1639
+ 0.499,
1640
+ 0.759,
1641
+ 0.887,
1642
+ 0.82
1643
+ ],
1644
+ "angle": 0,
1645
+ "content": "Davies, M., Srinivasa, N., Lin, T.-H., Chinya, G., Cao, Y., Choday, S. H., Dimou, G., Joshi, P., Imam, N., Jain, S., et al. Loihi: A neuromorphic manycore processor with on-chip learning. *IEEE Micro*, 38(1):82-99, 2018."
1646
+ },
1647
+ {
1648
+ "type": "ref_text",
1649
+ "bbox": [
1650
+ 0.499,
1651
+ 0.83,
1652
+ 0.887,
1653
+ 0.905
1654
+ ],
1655
+ "angle": 0,
1656
+ "content": "Deng, L., Wu, Y., Hu, Y., Liang, L., Li, G., Hu, X., Ding, Y., Li, P., and Xie, Y. Comprehensive snn compression using admm optimization and activity regularization. IEEE transactions on neural networks and learning systems, 2021."
1657
+ },
1658
+ {
1659
+ "type": "list",
1660
+ "bbox": [
1661
+ 0.499,
1662
+ 0.144,
1663
+ 0.888,
1664
+ 0.905
1665
+ ],
1666
+ "angle": 0,
1667
+ "content": null
1668
+ },
1669
+ {
1670
+ "type": "page_number",
1671
+ "bbox": [
1672
+ 0.481,
1673
+ 0.924,
1674
+ 0.493,
1675
+ 0.935
1676
+ ],
1677
+ "angle": 0,
1678
+ "content": "9"
1679
+ }
1680
+ ],
1681
+ [
1682
+ {
1683
+ "type": "header",
1684
+ "bbox": [
1685
+ 0.171,
1686
+ 0.057,
1687
+ 0.802,
1688
+ 0.072
1689
+ ],
1690
+ "angle": 0,
1691
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
1692
+ },
1693
+ {
1694
+ "type": "ref_text",
1695
+ "bbox": [
1696
+ 0.088,
1697
+ 0.085,
1698
+ 0.476,
1699
+ 0.13
1700
+ ],
1701
+ "angle": 0,
1702
+ "content": "Deng, S., Li, Y., Zhang, S., and Gu, S. Temporal efficient training of spiking neural network via gradient weighting. arXiv preprint arXiv:2202.11946, 2022."
1703
+ },
1704
+ {
1705
+ "type": "ref_text",
1706
+ "bbox": [
1707
+ 0.088,
1708
+ 0.141,
1709
+ 0.476,
1710
+ 0.187
1711
+ ],
1712
+ "angle": 0,
1713
+ "content": "Ding, J., Yu, Z., Tian, Y., and Huang, T. Optimal ann-snn conversion for fast and accurate inference in deep spiking neural networks. arXiv preprint arXiv:2105.11654, 2021."
1714
+ },
1715
+ {
1716
+ "type": "ref_text",
1717
+ "bbox": [
1718
+ 0.088,
1719
+ 0.197,
1720
+ 0.476,
1721
+ 0.256
1722
+ ],
1723
+ "angle": 0,
1724
+ "content": "Duan, C., Ding, J., Chen, S., Yu, Z., and Huang, T. Temporal effective batch normalization in spiking neural networks. Advances in Neural Information Processing Systems, 35: 34377-34390, 2022."
1725
+ },
1726
+ {
1727
+ "type": "ref_text",
1728
+ "bbox": [
1729
+ 0.088,
1730
+ 0.268,
1731
+ 0.476,
1732
+ 0.328
1733
+ ],
1734
+ "angle": 0,
1735
+ "content": "Fang, W., Chen, Y., Ding, J., Chen, D., Yu, Z., Zhou, H., Tian, Y., and other contributors. Spikingjelly. https://github.com/fangwei123456/spikingjelly, 2020. Accessed: 2021-12-30."
1736
+ },
1737
+ {
1738
+ "type": "ref_text",
1739
+ "bbox": [
1740
+ 0.088,
1741
+ 0.339,
1742
+ 0.476,
1743
+ 0.399
1744
+ ],
1745
+ "angle": 0,
1746
+ "content": "Fang, W., Yu, Z., Chen, Y., Huang, T., Masquelier, T., and Tian, Y. Deep residual learning in spiking neural networks. Advances in Neural Information Processing Systems, 34:21056-21069, 2021a."
1747
+ },
1748
+ {
1749
+ "type": "ref_text",
1750
+ "bbox": [
1751
+ 0.088,
1752
+ 0.41,
1753
+ 0.476,
1754
+ 0.485
1755
+ ],
1756
+ "angle": 0,
1757
+ "content": "Fang, W., Yu, Z., Chen, Y., Masquelier, T., Huang, T., and Tian, Y. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 2661-2671, 2021b."
1758
+ },
1759
+ {
1760
+ "type": "ref_text",
1761
+ "bbox": [
1762
+ 0.088,
1763
+ 0.496,
1764
+ 0.476,
1765
+ 0.554
1766
+ ],
1767
+ "angle": 0,
1768
+ "content": "Gerstner, W., Kistler, W. M., Naud, R., and Paninski, L. Neuronal dynamics: From single neurons to networks and models of cognition. Cambridge University Press, 2014."
1769
+ },
1770
+ {
1771
+ "type": "ref_text",
1772
+ "bbox": [
1773
+ 0.088,
1774
+ 0.566,
1775
+ 0.476,
1776
+ 0.611
1777
+ ],
1778
+ "angle": 0,
1779
+ "content": "Guo, Y., Huang, X., and Ma, Z. Direct learning-based deep spiking neural networks: a review. Frontiers in Neuroscience, 17:1209795, 2023."
1780
+ },
1781
+ {
1782
+ "type": "ref_text",
1783
+ "bbox": [
1784
+ 0.088,
1785
+ 0.622,
1786
+ 0.476,
1787
+ 0.682
1788
+ ],
1789
+ "angle": 0,
1790
+ "content": "Han, B., Zhao, F., Zeng, Y., and Pan, W. Adaptive sparse structure development with pruning and regeneration for spiking neural networks. arXiv preprint arXiv:2211.12219, 2022."
1791
+ },
1792
+ {
1793
+ "type": "ref_text",
1794
+ "bbox": [
1795
+ 0.088,
1796
+ 0.693,
1797
+ 0.476,
1798
+ 0.738
1799
+ ],
1800
+ "angle": 0,
1801
+ "content": "He, Y. and Xiao, L. Structured pruning for deep convolutional neural networks: A survey. arXiv preprint arXiv:2303.00566, 2023."
1802
+ },
1803
+ {
1804
+ "type": "ref_text",
1805
+ "bbox": [
1806
+ 0.088,
1807
+ 0.749,
1808
+ 0.476,
1809
+ 0.794
1810
+ ],
1811
+ "angle": 0,
1812
+ "content": "Holtmaat, A. and Svoboda, K. Experience-dependent structural synaptic plasticity in the mammalian brain. Nature Reviews Neuroscience, 10(9):647-658, 2009."
1813
+ },
1814
+ {
1815
+ "type": "ref_text",
1816
+ "bbox": [
1817
+ 0.088,
1818
+ 0.805,
1819
+ 0.476,
1820
+ 0.849
1821
+ ],
1822
+ "angle": 0,
1823
+ "content": "Houweling, A. R. and Brecht, M. Behavioural report of single neuron stimulation in somatosensory cortex. Nature, 451(7174):65-68, 2008."
1824
+ },
1825
+ {
1826
+ "type": "ref_text",
1827
+ "bbox": [
1828
+ 0.088,
1829
+ 0.861,
1830
+ 0.476,
1831
+ 0.905
1832
+ ],
1833
+ "angle": 0,
1834
+ "content": "Hu, X., Zhang, J., Li, J., and Zhang, B. Sparsity-regularized hmax for visual recognition. PloS one, 9(1):e81813, 2014."
1835
+ },
1836
+ {
1837
+ "type": "list",
1838
+ "bbox": [
1839
+ 0.088,
1840
+ 0.085,
1841
+ 0.476,
1842
+ 0.905
1843
+ ],
1844
+ "angle": 0,
1845
+ "content": null
1846
+ },
1847
+ {
1848
+ "type": "ref_text",
1849
+ "bbox": [
1850
+ 0.5,
1851
+ 0.085,
1852
+ 0.887,
1853
+ 0.13
1854
+ ],
1855
+ "angle": 0,
1856
+ "content": "Hu, Y., Tang, H., and Pan, G. Spiking deep residual networks. IEEE Transactions on Neural Networks and Learning Systems, 34(8):5200-5205, 2021a."
1857
+ },
1858
+ {
1859
+ "type": "ref_text",
1860
+ "bbox": [
1861
+ 0.5,
1862
+ 0.143,
1863
+ 0.887,
1864
+ 0.189
1865
+ ],
1866
+ "angle": 0,
1867
+ "content": "Hu, Y., Wu, Y., Deng, L., and Li, G. Advancing residual learning towards powerful deep spiking neural networks. arXiv e-prints, pp. arXiv-2112, 2021b."
1868
+ },
1869
+ {
1870
+ "type": "ref_text",
1871
+ "bbox": [
1872
+ 0.5,
1873
+ 0.201,
1874
+ 0.887,
1875
+ 0.261
1876
+ ],
1877
+ "angle": 0,
1878
+ "content": "Hu, Y., Zheng, Q., Jiang, X., and Pan, G. Fast-snn: Fast spiking neural network by converting quantized ann. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023."
1879
+ },
1880
+ {
1881
+ "type": "ref_text",
1882
+ "bbox": [
1883
+ 0.5,
1884
+ 0.274,
1885
+ 0.887,
1886
+ 0.349
1887
+ ],
1888
+ "angle": 0,
1889
+ "content": "Jiang, T., Xu, Q., Ran, X., Shen, J., Lv, P., Zhang, Q., and Pan, G. Adaptive deep spiking neural network with global-local learning via balanced excitatory and inhibitory mechanism. In The Twelfth International Conference on Learning Representations, 2023."
1890
+ },
1891
+ {
1892
+ "type": "ref_text",
1893
+ "bbox": [
1894
+ 0.5,
1895
+ 0.362,
1896
+ 0.887,
1897
+ 0.408
1898
+ ],
1899
+ "angle": 0,
1900
+ "content": "Kappel, D., Habenschuss, S., Legenstein, R., and Maass, W. Network plasticity as bayesian inference. PLoS computational biology, 11(11):e1004485, 2015."
1901
+ },
1902
+ {
1903
+ "type": "ref_text",
1904
+ "bbox": [
1905
+ 0.5,
1906
+ 0.42,
1907
+ 0.887,
1908
+ 0.48
1909
+ ],
1910
+ "angle": 0,
1911
+ "content": "Kheradpisheh, S. R., Ganjtabesh, M., Thorpe, S. J., and Masquelier, T. Stdp-based spiking deep convolutional neural networks for object recognition. Neural Networks, 99:56-67, 2018."
1912
+ },
1913
+ {
1914
+ "type": "ref_text",
1915
+ "bbox": [
1916
+ 0.5,
1917
+ 0.493,
1918
+ 0.887,
1919
+ 0.582
1920
+ ],
1921
+ "angle": 0,
1922
+ "content": "Kundu, S., Datta, G., Pedram, M., and Beerel, P. A. Spike-thrift: Towards energy-efficient deep spiking neural networks by limiting spiking activity via attention-guided compression. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3953-3962, 2021."
1923
+ },
1924
+ {
1925
+ "type": "ref_text",
1926
+ "bbox": [
1927
+ 0.5,
1928
+ 0.596,
1929
+ 0.887,
1930
+ 0.657
1931
+ ],
1932
+ "angle": 0,
1933
+ "content": "Langley, P. Crafting papers on machine learning. In Langley, P. (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), pp. 1207-1216, Stanford, CA, 2000. Morgan Kaufmann."
1934
+ },
1935
+ {
1936
+ "type": "ref_text",
1937
+ "bbox": [
1938
+ 0.5,
1939
+ 0.669,
1940
+ 0.887,
1941
+ 0.744
1942
+ ],
1943
+ "angle": 0,
1944
+ "content": "Lee, C., Srinivasan, G., Panda, P., and Roy, K. Deep spiking convolutional neural network trained with unsupervised spike-timing-dependent plasticity. IEEE Transactions on Cognitive and Developmental Systems, 11(3):384-394, 2018."
1945
+ },
1946
+ {
1947
+ "type": "ref_text",
1948
+ "bbox": [
1949
+ 0.5,
1950
+ 0.758,
1951
+ 0.887,
1952
+ 0.832
1953
+ ],
1954
+ "angle": 0,
1955
+ "content": "Liu, C., Bellec, G., Vogginger, B., Kappel, D., Partzsch, J., Neumärker, F., Hoppner, S., Maass, W., Furber, S. B., Legenstein, R., et al. Memory-efficient deep learning on a spinnaker 2 prototype. Frontiers in neuroscience, 12: 840, 2018."
1956
+ },
1957
+ {
1958
+ "type": "ref_text",
1959
+ "bbox": [
1960
+ 0.5,
1961
+ 0.845,
1962
+ 0.887,
1963
+ 0.905
1964
+ ],
1965
+ "angle": 0,
1966
+ "content": "Ma, D., Jin, X., Sun, S., Li, Y., Wu, X., Hu, Y., Yang, F., Tang, H., Zhu, X., Lin, P., et al. Darwin3: A large-scale neuromorphic chip with a novel isa and on-chip learning. arXiv preprint arXiv:2312.17582, 2023."
1967
+ },
1968
+ {
1969
+ "type": "list",
1970
+ "bbox": [
1971
+ 0.5,
1972
+ 0.085,
1973
+ 0.887,
1974
+ 0.905
1975
+ ],
1976
+ "angle": 0,
1977
+ "content": null
1978
+ },
1979
+ {
1980
+ "type": "page_number",
1981
+ "bbox": [
1982
+ 0.478,
1983
+ 0.924,
1984
+ 0.496,
1985
+ 0.935
1986
+ ],
1987
+ "angle": 0,
1988
+ "content": "10"
1989
+ }
1990
+ ],
1991
+ [
1992
+ {
1993
+ "type": "header",
1994
+ "bbox": [
1995
+ 0.171,
1996
+ 0.057,
1997
+ 0.802,
1998
+ 0.072
1999
+ ],
2000
+ "angle": 0,
2001
+ "content": "Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning"
2002
+ },
2003
+ {
2004
+ "type": "ref_text",
2005
+ "bbox": [
2006
+ 0.088,
2007
+ 0.085,
2008
+ 0.476,
2009
+ 0.13
2010
+ ],
2011
+ "angle": 0,
2012
+ "content": "Maass, W. Networks of spiking neurons: the third generation of neural network models. Neural networks, 10(9): 1659-1671, 1997."
2013
+ },
2014
+ {
2015
+ "type": "ref_text",
2016
+ "bbox": [
2017
+ 0.088,
2018
+ 0.142,
2019
+ 0.476,
2020
+ 0.22
2021
+ ],
2022
+ "angle": 0,
2023
+ "content": "Mink, J. W., Blumenschine, R. J., and Adams, D. B. Ratio of central nervous system to body metabolism in vertebrates: its constancy and functional basis. American Journal of Physiology-Regulatory, Integrative and Comparative Physiology, 241(3):R203-R212, 1981."
2024
+ },
2025
+ {
2026
+ "type": "ref_text",
2027
+ "bbox": [
2028
+ 0.088,
2029
+ 0.231,
2030
+ 0.476,
2031
+ 0.276
2032
+ ],
2033
+ "angle": 0,
2034
+ "content": "Oja, E. Simplified neuron model as a principal component analyzer. Journal of mathematical biology, 15:267-273, 1982."
2035
+ },
2036
+ {
2037
+ "type": "ref_text",
2038
+ "bbox": [
2039
+ 0.088,
2040
+ 0.289,
2041
+ 0.476,
2042
+ 0.35
2043
+ ],
2044
+ "angle": 0,
2045
+ "content": "Shen, J., Xu, Q., Liu, J. K., Wang, Y., Pan, G., and Tang, H. Esl-snns: An evolutionary structure learning strategy for spiking neural networks. arXiv preprint arXiv:2306.03693, 2023."
2046
+ },
2047
+ {
2048
+ "type": "ref_text",
2049
+ "bbox": [
2050
+ 0.088,
2051
+ 0.362,
2052
+ 0.476,
2053
+ 0.424
2054
+ ],
2055
+ "angle": 0,
2056
+ "content": "Shen, J., Ni, W., Xu, Q., and Tang, H. Efficient spiking neural networks with sparse selective activation for continual learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 611-619, 2024."
2057
+ },
2058
+ {
2059
+ "type": "ref_text",
2060
+ "bbox": [
2061
+ 0.088,
2062
+ 0.436,
2063
+ 0.476,
2064
+ 0.496
2065
+ ],
2066
+ "angle": 0,
2067
+ "content": "Shrestha, A., Fang, H., Mei, Z., Rider, D. P., Wu, Q., and Qiu, Q. A survey on neuromorphic computing: Models and hardware. IEEE Circuits and Systems Magazine, 22 (2):6-35, 2022."
2068
+ },
2069
+ {
2070
+ "type": "ref_text",
2071
+ "bbox": [
2072
+ 0.088,
2073
+ 0.509,
2074
+ 0.476,
2075
+ 0.556
2076
+ ],
2077
+ "angle": 0,
2078
+ "content": "Song, S., Miller, K. D., and Abbott, L. F. Competitive heb- bian learning through spike-timing-dependent synaptic plasticity. Nature neuroscience, 3(9):919-926, 2000."
2079
+ },
2080
+ {
2081
+ "type": "ref_text",
2082
+ "bbox": [
2083
+ 0.088,
2084
+ 0.567,
2085
+ 0.476,
2086
+ 0.628
2087
+ ],
2088
+ "angle": 0,
2089
+ "content": "Srinivasan, G. and Roy, K. Restocnet: Residual stochastic binary convolutional spiking neural network for memory-efficient neuromorphic computing. Frontiers in neuroscience, 13:189, 2019."
2090
+ },
2091
+ {
2092
+ "type": "ref_text",
2093
+ "bbox": [
2094
+ 0.088,
2095
+ 0.64,
2096
+ 0.476,
2097
+ 0.686
2098
+ ],
2099
+ "angle": 0,
2100
+ "content": "Stettler, D. D., Yamahachi, H., Li, W., Denk, W., and Gilbert, C. D. Axons and synaptic boutons are highly dynamic in adult visual cortex. Neuron, 49(6):877-887, 2006."
2101
+ },
2102
+ {
2103
+ "type": "ref_text",
2104
+ "bbox": [
2105
+ 0.088,
2106
+ 0.698,
2107
+ 0.476,
2108
+ 0.759
2109
+ ],
2110
+ "angle": 0,
2111
+ "content": "Trachtenberg, J. T., Chen, B. E., Knott, G. W., Feng, G., Sanes, J. R., Welker, E., and Svoboda, K. Long-term in vivo imaging of experience-dependent synaptic plasticity in adult cortex. Nature, 420(6917):788-794, 2002."
2112
+ },
2113
+ {
2114
+ "type": "ref_text",
2115
+ "bbox": [
2116
+ 0.088,
2117
+ 0.772,
2118
+ 0.476,
2119
+ 0.832
2120
+ ],
2121
+ "angle": 0,
2122
+ "content": "Wu, Y., Deng, L., Li, G., Zhu, J., and Shi, L. Spatiotemporal backpropagation for training high-performance spiking neural networks. Frontiers in neuroscience, 12: 331, 2018."
2123
+ },
2124
+ {
2125
+ "type": "ref_text",
2126
+ "bbox": [
2127
+ 0.088,
2128
+ 0.845,
2129
+ 0.476,
2130
+ 0.906
2131
+ ],
2132
+ "angle": 0,
2133
+ "content": "Yan, Q., Zheng, Y., Jia, S., Zhang, Y., Yu, Z., Chen, F., Tian, Y., Huang, T., and Liu, J. K. Revealing fine structures of the retinal receptive field by deep-learning networks. IEEE transactions on cybernetics, 52(1):39-50, 2020."
2134
+ },
2135
+ {
2136
+ "type": "list",
2137
+ "bbox": [
2138
+ 0.088,
2139
+ 0.085,
2140
+ 0.476,
2141
+ 0.906
2142
+ ],
2143
+ "angle": 0,
2144
+ "content": null
2145
+ },
2146
+ {
2147
+ "type": "ref_text",
2148
+ "bbox": [
2149
+ 0.5,
2150
+ 0.085,
2151
+ 0.888,
2152
+ 0.175
2153
+ ],
2154
+ "angle": 0,
2155
+ "content": "Yin, H., Lee, J. B., Kong, X., Hartvigsen, T., and Xie, S. Energy-efficient models for high-dimensional spike train classification using sparse spiking neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 2017-2025, 2021."
2156
+ },
2157
+ {
2158
+ "type": "ref_text",
2159
+ "bbox": [
2160
+ 0.5,
2161
+ 0.186,
2162
+ 0.888,
2163
+ 0.246
2164
+ ],
2165
+ "angle": 0,
2166
+ "content": "Yu, Z., Liu, J. K., Jia, S., Zhang, Y., Zheng, Y., Tian, Y., and Huang, T. Toward the next generation of retinal neuroprosthesis: Visual computation with spikes. Engineering, 6(4):449-461, 2020."
2167
+ },
2168
+ {
2169
+ "type": "ref_text",
2170
+ "bbox": [
2171
+ 0.5,
2172
+ 0.256,
2173
+ 0.888,
2174
+ 0.318
2175
+ ],
2176
+ "angle": 0,
2177
+ "content": "Zheng, H., Wu, Y., Deng, L., Hu, Y., and Li, G. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pp. 11062-11070, 2021."
2178
+ },
2179
+ {
2180
+ "type": "list",
2181
+ "bbox": [
2182
+ 0.5,
2183
+ 0.085,
2184
+ 0.888,
2185
+ 0.318
2186
+ ],
2187
+ "angle": 0,
2188
+ "content": null
2189
+ },
2190
+ {
2191
+ "type": "page_number",
2192
+ "bbox": [
2193
+ 0.478,
2194
+ 0.923,
2195
+ 0.495,
2196
+ 0.935
2197
+ ],
2198
+ "angle": 0,
2199
+ "content": "11"
2200
+ }
2201
+ ]
2202
+ ]
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/5bcab5f0-72c6-4282-acd6-bfe60c345a3e_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:34f9383076412aee1d7583bb992bee72bfbedfadfcaaedd1ea6cdd9d94acd694
3
+ size 986418
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/full.md ADDED
@@ -0,0 +1,282 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Towards Efficient Deep Spiking Neural Networks Construction with Spiking Activity based Pruning
2
+
3
+ Yaxin Li $^{1,2}$ Qi $\mathbf{X}\mathbf{u}^{\boxtimes 1}$ Jiangrong Shen $^{3}$ Hongming $\mathbf{X}\mathbf{u}^{1}$ Long Chen $^{4}$ Gang Pan $^{3}$
4
+
5
+ # Abstract
6
+
7
+ The emergence of deep and large-scale spiking neural networks (SNNs) exhibiting high performance across diverse complex datasets has led to a need for compressing network models due to the presence of a significant number of redundant structural units, aiming to more effectively leverage their low-power consumption and biological interpretability advantages. Currently, most model compression techniques for SNNs are based on unstructured pruning of individual connections, which requires specific hardware support. Hence, we propose a structured pruning approach based on the activity levels of convolutional kernels named Spiking Channel Activity-based (SCA) network pruning framework. Inspired by synaptic plasticity mechanisms, our method dynamically adjusts the network's structure by pruning and regenerating convolutional kernels during training, enhancing the model's adaptation to the current target task. While maintaining model performance, this approach refines the network architecture, ultimately reducing computational load and accelerating the inference process. This indicates that structured dynamic sparse learning methods can better facilitate the application of deep SNNs in low-power and high-efficiency scenarios.
8
+
9
+ # 1. Introduction
10
+
11
+ Spiking Neural Networks (SNNs), known as the third generation of artificial neural networks (Maass, 1997), are
12
+
13
+ $^{1}$ School of Computer Science and Technology, Dalian University of Technology, Dalian, China $^{2}$ Guangdong Laboratory of Artificial Intelligence and Digital Economy, Shenzhen, China $^{3}$ College of Computer Science and Technology, Zhejiang University, Hangzhou, China $^{4}$ Centre for Systems Engineering and Innovation, Imperial College London, London, UK. Correspondence to: Qi Xu <xuqi@dlut.edu.cn>.
14
+
15
+ Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
16
+
17
+ renowned for their advantages in biological interpretability and low power consumption. Inspired by biological information processing mechanisms, unlike traditional artificial neural networks (ANNs), SNNs utilize spike sequences for feature encoding, transmission, and processing. Deployed on neuromorphic chips (Ma et al., 2023), SNNs capitalize on event-driven and asynchronous computation to significantly reduce computational complexity and minimize unnecessary overhead (Davies et al., 2018). It's noteworthy that the human brain operates on just 20 watts of power (Mink et al., 1981). The synaptic connection count undergoes a rapid increase and a gradual decrease throughout the lifecycle (Cizeron et al., 2020). In the process of cognition, the brain network's structure exhibits plasticity, meaning synaptic connections can strengthen, weaken, establish, or eliminate under the influence of learning and experience (Trachtenberg et al., 2002) (Stettler et al., 2006) (Holtmaat & Svoboda, 2009) (Barnes & Finnerty, 2010). However, many SNNs adopt fixed network structures from conventional deep learning (Wu et al., 2018) (Fang et al., 2021a) (Ding et al., 2021) (Bu et al., 2023), which may contain illogical or redundant components. Therefore, to better leverage the energy-efficient advantages of SNNs, drawing inspiration from the mechanisms of synaptic plasticity in biology, it is highly essential to adaptively learn appropriate and sparse network structures during training according to the objectives of the task.
18
+
19
+ In recent years, much research has focused on the adaptive sparse structural learning of SNNs, training a lightweight network from scratch. Kappel et al. (2015) proposed a framework of synaptic sampling for Bayesian inference to optimize both the structure and parameters of the network. Inspired by the mechanisms of brain rewiring, Bellec et al. (2017) introduced the Deep R method for ANNs. This method trains deep networks under strict connectivity constraints. They extended the Deep R approach to RSNN and LSNN (Bellec et al., 2018) while also implementing it on the prototype chip of the 2nd generation SpiNNaker system (Liu et al., 2018). The Spike-Thrift method employs attention mechanisms for pruning and growing connections during training (Kundu et al., 2021). Chen et al. (2021) introduced the Grad R method, defining the size and density of dendritic spines as the absolute values of weights and
20
+
21
+ the pruning and growth occur through adaptive competition. They further defined dynamic pruning methods for excitatory and inhibitory transformation of dendrites (Chen et al., 2022). Jiang et al. (2023) trained a sparse network structure by combining global and local information. However, most of the aforementioned approaches for SNNs structural learning focus on sparsification at the level of individual connections. This approach is non-structured and exhibits irregular and unstable characteristics, making it less suitable for hardware deployment and optimization. On the other hand, structured sparse methods are more amenable to achieving lightweight networks, reducing the complexity of memory access, and displaying superior hardware adaptability.
22
+
23
+ This paper introduces an adaptive and structured sparse learning framework for SNNs, inspired by the mechanisms of synaptic plasticity in biological neural networks. As shown in Figure 1(a), the proposed SCA framework achieves network lightweight at the granularity of convolutional kernels, akin to the sparse responses of receptive cells in the biological visual system (Houweling & Brecht, 2008) (Hu et al., 2014) (Yan et al., 2020) (Yu et al., 2020). During training, the SCA framework jointly learns both the network's parameters and its structure. It accomplishes this through a self-discovery process of pruning and regrowing, guided by the structure learning rule, leading to the identification of a lightweight yet high-performance network model. The structure learning rule determines the importance of channels based on the spiking activity level, to identify the guidance for dynamic topology updates. Coarse-grained sparsification facilitates the learning of regularized structures, effectively reducing storage and computational costs, while also enhancing hardware compatibility (He & Xiao, 2023). The following are the main contributions of this paper:
24
+
25
+ - The proposed SNNs sparsification framework adapts the structure and parameters of a joint learning network by using convolutional kernels as the fundamental units. Structured pruning aligns better with the characteristics of sparsified responses in the biological visual neural system, making it easier to achieve more compressed and lightweight network models.
26
+ - The structural learning rule of this framework adheres to the mechanisms of synaptic plasticity, allowing for the removal of redundancies and regeneration of certain convolutional kernels based on spiking activity level. An adaptive structural learning approach is advantageous for acquiring a network structure that is more appropriate for the target task.
27
+ - This framework is a general-purpose framework that can be applied to most directly trained deep convolutional SNNs. Experimental results demonstrate that
28
+
29
+ our approach performs well on CIFAR10, CIFAR100 and DVS-CIFAR10, maintaining network performance while reducing the parameter count.
30
+
31
+ # 2. Related Work
32
+
33
+ Training Method. The development of SNNs training methods has undergone a progression from shallow to deep architectures. The earliest SNN algorithms are primarily based on unsupervised learning principles of synaptic plasticity. These methods often utilize fully connected single-layer network structures such as STDP (Song et al., 2000), Oja (Oja, 1982), and BCM (Bienenstock et al., 1982), or shallow convolutional architectures like SDNN (Kheradpisheh et al., 2018), SpiCNN (Lee et al., 2018), and ReStoCNet (Srinivasan & Roy, 2019). Typically, these approaches exhibit limited performance and are applied to less complex datasets. In recent years, numerous supervised training methods for deep SNNs have emerged which can be categorized into two main types: direct and indirect. Indirect learning methods focus on converting trained SNNs (Hu et al., 2021a) (Hu et al., 2023). The direct training methods draw inspiration from the concepts of backpropagation. These methods significantly enhance the performance of SNNs on intricate datasets. The STBP method employs a gradient surrogate approach to implement error backpropagation across both temporal and spatial dimensions (Wu et al., 2018). This technique can be applied to sophisticated network architectures like VGG and ResNet. Building upon this, Zheng et al. (2021) have introduced the tdBN method, which offers improved feature normalization in both temporal and spatial dimensions. Further, Duan et al. (2022) proposed the TEBN method using different weights at each time step. Fang et al. (2021b) introduced the PLIF model that enables the updating of membrane time constants during the training process. Deng et al. (2022) proposed the TET method to address momentum loss during the surrogate gradient descent process. SEW-Resnet (Fang et al., 2021a) and MS-ResNet (Hu et al., 2021b) adjust the structure of residual networks to achieve better identity mapping of residual blocks. These address challenges related to gradient explosion or vanishing and enable the successful training of SNN models with over a hundred layers. These techniques hold promise for the creation of intricate, large-scale deep SNNs with impressive performance (Guo et al., 2023).
34
+
35
+ Structural Learning Method. These deep SNNs often come with a large number of parameters and significant computational costs, making the pruning of redundant connections essential. Pruning methods can generally be categorized as non-structured and structured. Non-structured pruning typically involves removing individual connections to reduce the parameter count. Deng et al. (2021) combined STBP with the ADMM (Alternating Direction Method of
36
+
37
+ ![](images/7f40ba7fbb5bd185ebc296f325901a8245b361042d04d16a4ceaf3ee7dc76765.jpg)
38
+ (a) The SCA structure learning framework.
39
+
40
+ ![](images/5b1a022945c83545aa44214aa6aa0fc33fcad01ddd2502d02c01652166ece1b8.jpg)
41
+ (b) Network structures.
42
+ Figure 1. The schematic illustration of the SCA structure learning framework. (a) The proposed framework follows structure learning rules to adaptively learn lightweight network models during training. (b) The proposed framework is applicable to various network structures like pre-activation, post-activation, etc.
43
+
44
+ Multipliers) optimization tool to achieve a sparse network structure through alternating optimization. Yin et al. (2021) devised binary "gates" to control the presence of connections, optimizing binary Bernoulli gate values through a smoothed objective function. Drawing inspiration from the dynamic changes in brain connectivity, Chen et al. (2021) proposed the Grad R method, where pruning is accompanied by the growth of certain connections in an adaptive competitive process. Chen et al. (2022) further defined a process of transformation between filamentous pseudopodia and mature dendritic spines, allowing connections to be adaptively pruned or reactivated. The ESL-SNNs method initializes a sparse network structure using the Erdos-Renyi random graph approach and progressively adapts the network structure from scratch (Shen et al., 2023). Furthermore, Shen et al. (2024) proposed a dynamic network structure by selecting activated units in the spatio and temporal dimensions and applied it to continuous learning tasks. However, Non-structured pruning, being a fine-grained method, often requires specific hardware support. On the other hand, structured pruning typically operates at the channel or layer level, yielding more compact network structures. Chowdhury et al. (2021) employed principal component analysis to compute inter-channel correlations, identifying redundant channels within SNNs. This method is primarily inspired by techniques from the field of ANNs and applies to SNNs.
45
+
46
+ # 3. Preliminary
47
+
48
+ Spiking Neuron Model. The spiking neuron model is the fundamental unit of a spiking neural network, simulating the behavior of biological neurons in transmitting information through spikes. The mechanism underlying the generation
49
+
50
+ of action potentials in biological neurons involves processes of depolarization, overshoot, and repolarization. The spiking neuron model simulates the mechanism of biological action potentials and thus establishes a simplified mathematical model, which consists of three equations: charging, discharging, and resetting. As shown in the following Eq. (1), the spiking neuron accumulates the input stimuli $X_{t}$ from presynaptic neurons, integrating all the currents received from these neurons. If the membrane potential $H_{t}$ of the spiking neuron exceeds a certain threshold $V_{\mathrm{th}}$ , it will fire a spike and reset to the resting potential $V_{\mathrm{reset}}$ .
51
+
52
+ $$
53
+ H _ {t} = f \left(V _ {t} - 1, X _ {t}\right)
54
+ $$
55
+
56
+ $$
57
+ S _ {t} = g \left(H _ {t} - V _ {\mathrm {t h}}\right) = \Theta \left(H _ {t} - V _ {\mathrm {t h}}\right) \tag {1}
58
+ $$
59
+
60
+ $$
61
+ V _ {t} = H _ {t} \cdot \left(1 - S _ {t}\right) + V _ {\text {r e s e t}} \cdot S _ {t}
62
+ $$
63
+
64
+ Where $\Theta (\cdot)$ denotes the Heaviside step function, thus $s_t$ is 1 if a spike is fired, and 0 otherwise. The function $f(\cdot)$ is the equation describing the dynamics of spiking neurons. In this paper, the spiking neuron models we use are the Integrate-and-Fire (IF) neuron model and the Leaky Integrate-and-Fire (LIF) neuron model as presented in Eq. (2) of Spikingjelly (Fang et al., 2020).
65
+
66
+ $$
67
+ V _ {t} = f \left(V _ {t - 1}, X _ {t}\right) = V _ {t - 1} + X _ {t}
68
+ $$
69
+
70
+ $$
71
+ V _ {t} = f \left(V _ {t - 1}, X _ {t}\right) = V _ {t - 1} + \frac {1}{\tau_ {m}} \left(- \left(V _ {t - 1} - V _ {\text {r e s e t}}\right) + X _ {t}\right) \tag {2}
72
+ $$
73
+
74
+ Where $\tau_{m}$ represents the time constant of membrane potential.
75
+
76
+ Surrogate Gradient. Differing from conventional neural networks, the spiking neurons in SNNs transmit feature information through a sequence of discrete spikes. As de
77
+
78
+ picted in Eq. (3), the backpropagation in SNNs leverages the chain rule to compute gradients across spatial and temporal dimensions, akin to the Backpropagation Through Time (BPTT) algorithm in Recurrent Neural Networks (RNNs).
79
+
80
+ $$
81
+ \frac {\partial L}{\partial W} = \sum_ {t = 1} ^ {T} \frac {\partial L}{\partial H _ {t}} \frac {\partial H _ {t}}{\partial W} = \sum_ {t = 1} ^ {T} \frac {\partial L}{\partial S _ {t}} \frac {\partial S _ {t}}{\partial H _ {t}} \frac {\partial H _ {t}}{\partial X _ {t}} \frac {\partial X _ {t}}{\partial W} \tag {3}
82
+ $$
83
+
84
+ Due to the binary nature of spikes $(S_{t}\in \{0,1\})$ $\frac{\partial S_t}{\partial H_t}$ is non-differentiable. Hence, to enable the utilization of backpropagation for the direct training of SNNs, the gradient surrogate method employs differentiable functions $g(x)$ to substitute for the non-differentiable spikes $\Theta (x)$ . The gradient surrogate function utilized here is the sigmoid function $g(x) = \mathrm{Sigmoid}(\alpha x) = \frac{1}{1 + e^{-\alpha x}}$ , where $\alpha$ is used to control the smoothness of the function.
85
+
86
+ # 4. Methodology
87
+
88
+ This section introduces the dynamic structural pruning framework proposed in this paper, SCA network pruning method. This method determines the importance of channels based on their spiking activity and dynamically optimizes the network structure during the training process. It is applicable to various convolutional network architectures, including VGG, ResNet, and others.
89
+
90
+ # 4.1. The SCA Structure Learning Framework
91
+
92
+ As depicted in Algorithm 1, the SCA structure learning method simultaneously performs joint learning of both the network's weight parameters and its topological structure during the training process. Its inspiration originates from the plasticity of the biological neural system, resembling how biological neural networks optimize information transmission through processes of synaptic modulation, establishment and elimination. In the structural learning phase, the significance of each channel is determined by assessing the spiking activity level. This method identifies redundant channels with lower spiking activity and removes them while generating a subset of channels in each or several iterations. The network's structural changes are recorded using a mask. During the weight learning phase, the network's weights are updated using gradient surrogate method. Then, repeat the two aforementioned processes until the model converges. During the training process, we added L1 regularization to better identify redundant structures. Finally, a new model is obtained by completely removing redundant channels according to the mask, ensuring a meticulously optimized lightweight network without compromising its performance.
93
+
94
+ # Algorithm 1 The Overall Training Framework.
95
+
96
+ Input: Input data $X$ . Labels $Y$ .
97
+
98
+ Output: Pruning channels ratio $p\%$ . Mask update ratio $q\%$ . The weight $W$ . The weight mask $M$ .
99
+
100
+ 1: Initialize the weight $W$ ;
101
+ 2: for $i$ in [1, epoch] do
102
+ 3: Learn weight parameters based on surrogate gradient under L1 regularization;
103
+ 4: Learn weight connection based on structure learning rule:
104
+ 5: (1) Prune $q\%$ channels, resulting in the removal of $(p + q)\%$ channels;
105
+ 6: (2) Regrow $q\%$ channels, maintaining a pruning ratio of $p\%$ ;
106
+ 7: for each layer of the model do
107
+ 8: $W = M\odot W;$
108
+ 9: end for
109
+ 0: end for
110
+ 11: Completely remove the channels corresponding to zero positions in the mask to obtain the compressed network model.
111
+ 12: return: The lightweight SNN.
112
+
113
+ # 4.2. Channel Importance Score
114
+
115
+ In SNNs, features were encoded and transmitted in the form of spike sequences. We obtain importance assessment scores by calculating the spiking neuron activity of each channel in the overall network model's feature map. In biological neural cells, the resting membrane potential is around - 65mV. When excited stimuli are received, the membrane potential increases, leading to a decrease in polarization level; this process is termed depolarization. On the other hand, inhibitory stimuli result in a decrease in membrane potential, causing an increase in polarization level; this process is referred to as hyperpolarization (Gerstner et al., 2014). Drawing inspiration from this biological mechanism, neurons with lower polarization levels can be considered less important, and their removal has a relatively minor impact on the network's accuracy. We use $r_k^l$ to denote the k-th channel of the l-th layer in the network. In each iteration, the average membrane potential of this channel on the training set is computed, as shown in Eq. (4).
116
+
117
+ $$
118
+ r _ {k} ^ {l} = \frac {1}{N} \frac {1}{T} \left(\sum_ {n = 1} ^ {N} \sum_ {t = 1} ^ {T} \| H _ {k} ^ {l} (t) \|\right) \tag {4}
119
+ $$
120
+
121
+ Where $N$ represents the number of samples in the training set, and $T$ is the time step of the SNN. $\left\| H_k^l (t)\right\|$ denotes the L1 norm of the membrane potential of that channel's feature map. In the feature map, the membrane potential of a specific neuron at time $t$ is denoted as $H_{t}^{ij}$ $(\left\| H_k^l (t)\right\| = \left[H_t^{ij}\right]_{h\times w})$ . If $H_{t}^{ij}$ is positive, it is referred to as an excitatory postsynaptic potential (EPSP); otherwise, it is an inhibitory postsynaptic potential (IPSP). EPSP and IPSP generate firing and non-firing patterns, respectively. Both of these patterns play crucial roles in feature encoding.
122
+
123
+ Filters with minimal impact on the spike sequence patterns are considered unimportant. Therefore, the degree of neuronal polarization can be used to assess its significance. In other words, the degree to which $H_{t}^{ij}$ deviates from 0 is used to determine the activity level of the spiking neuron, i.e. Spiking Channel Activity, similar to the polarization level of biological cells (Gerstner et al., 2014).
124
+
125
+ # 4.3. Structure Learning Rule
126
+
127
+ Filter Pruning. In order to eliminate redundant portions in the network that contribute minimally to the target task or cause interference, a certain proportion of convolutional kernels are pruned based on channel importance scores. Initially, the sparsity ratio is set to $p\%$ . We first calculate importance scores for all channels in the network and sort these scores, considering channels with lower scores as redundant components. This approach enables a more balanced reduction of redundancy across the entire network, leading to greater compression benefits while maintaining performance. We employ a mask to record the network's structure, where 0 denotes pruned channels and 1 represents retained ones. To better explore optimal network structures, during each iteration, a further $q\%$ of pruning convolutional kernels are introduced. Simultaneously, $q\%$ of the pruned convolutional kernels are reselected for regeneration, maintaining a consistent network sparsity ratio $p\%$ .
128
+
129
+ Selective Growth. During the phase of selective growth, we determine the channels to be reactivated based on the gradient magnitudes of the Gamma parameters $\gamma$ within the Batch Normalization (BN) layer. The Gamma parameters in the BN layers, acting as scaling factors, influence the range of features in the output. When pruned channels exhibit significant gradients in their Gamma parameters, it suggests the potential for these channels to regain their activity. Consequently, we can selectively regrow the network's channels with higher Gamma parameter gradients, aiming to optimize the network structure. After structural adjustments, the network is iteratively trained for one or several epochs, with the channels masked with 0 participating in the training. Through the process of pruning and regrowth, this framework mitigates the issue of potentially irreversible losses caused by pruning. Moreover, it facilitates the correction of accuracy losses resulting from erroneous pruning by allowing reactivation through regrowth.
130
+
131
+ # 4.4. Various Network Architectures
132
+
133
+ This framework can be applied to various convolutional spiking neural network architectures. As shown in Figure 1(b), the SN denotes the spiking neuron layer. For post-activation network structures like VGG and ResNet, we employ the process of pruning and regeneration using the BN layer and spiking neuron layer immediately following the conv
134
+
135
+ layer. For pre-activation network structures like PreResNet, in the architecture on the right side, the BN1 and SN1 of the current block are used to determine filter pruning for the convolutional layer Conv2 of the previous block, while BN2 and SN2 are used to decide that of Conv1 for the current block. We will elaborate on the structural details employed in the experimental section.
136
+
137
+ # 5. Experiments
138
+
139
+ # 5.1. Experiment Settings.
140
+
141
+ Our experiments are conducted using the SpikeJelly framework (Fang et al., 2020), an SNN framework implemented based on PyTorch. We perform experiments on both static datasets and neuromorphic datasets. CIFAR-10 and CIFAR100 are commonly used static image classification datasets, containing 10 and 100 classes, respectively. The images in these datasets are $32 \times 32$ RGB images. To input images into SNNs, encoding is required, and we use a time step of 4. The DVS-CIFAR10 dataset is a neuromorphic dataset, and we divide it into training and testing sets with 9000 and 1000 samples, respectively. The Tiny ImageNet dataset consists of 200 classes with a training set of 100000 samples and a test set of 10000 samples. Event data needs to be integrated into frame data, and we use 20 time steps for this purpose. The network structures used in the experiments are based on VGG and Pre-ResNet architectures. For the DVS-CIFAR10 experiments, the network structure is 64C3-AP2-128C3-AP2-128C3-AP2-256C3-AP2-256C3-AP2-10FC. The number of iterations for all experiments is set to 300 epochs.
142
+
143
+ # 5.2. Evaluation on different datasets.
144
+
145
+ As shown in Figure 2, we present the experimental results of our framework on various datasets. We set different channel pruning ratios and maintain a fixed level of sparsity during the training process. After training is completed, we completely remove redundant channels and construct a new lightweight model for evaluation. The computational energy consumption of the network is evaluated using the number of parameters and synaptic operations.
146
+
147
+ Performance analysis. The bar chart in Figure 2 represents the model's accuracy on the test set under different channel pruning ratios. The green and red lines indicate the final model's parameters and synaptic operations, measured in units of M $(10^{6})$ and K $(10^{3})$ . It can be observed that as the channel pruning ratio increases, the model's test accuracy experiences only a minor loss, while the number of parameters decreases significantly, and in some cases, even at lower pruning ratios, the accuracy slightly improves. This indicates that our framework can compress the network's parameter count to obtain a lightweight model while main
148
+
149
+ ![](images/fa35e72a7fd90567ffd64aeaa0b194065f0d2c9b01f07ec46c461f476bae646c.jpg)
150
+ (a) SNNVGG16 on dataset CIFAR10.
151
+
152
+ ![](images/2a13681d97d15f61c30bd298d394b9c2eccf2dc23a5bc8ee94b133f7f3c3131e.jpg)
153
+ (b) Pre-Resnet18 on dataset CIFAR10.
154
+
155
+ ![](images/45344376bb6725109c82466f6034b00bdf5a6eac2ff0c3b8fbe7860c7a425512.jpg)
156
+ (c) SNNVGG16 on dataset CIFAR100.
157
+
158
+ ![](images/33138ea253793cbfabd69fc225d9bf983c0d45568a64522fac35791375827e94.jpg)
159
+ (d) 5Conv+1FC on dataset DVS-CIFAR10.
160
+
161
+ ![](images/21cad08bdce8b0ab4d7b3e268c54d30bf1ba46a7985594f53dec7a669996db03.jpg)
162
+ (a) Network structures under various pruning ratios.
163
+ Figure 3. Analysis of structural changes in the SCA framework.
164
+
165
+ ![](images/63e8f6f1fbfc0772f76117b5b373de10d4a33718b58da6142c78d9cbf00929e9.jpg)
166
+ Figure 2. The performance of the SCA structure learning framework.
167
+ (b) The evolution of network structure during the training process.
168
+
169
+ taining close-to-original high performance. For CIFAR-10, in the case of the VGG16 model shown in Figure 2(a), when the parameter count is compressed to approximately $10\%$ of the original size (i.e., 1.42 million parameters), the accuracy drops by less than $1\%$ . When the parameter count is compressed to around $5\%$ (i.e., 0.93 million parameters), the
170
+
171
+ accuracy decreases by about $2\%$ . When the parameter count is reduced by approximately $30\%$ , the model's accuracy reaches $91.67\%$ , showing an increase of $0.53\%$ . For the ResNet model depicted in Figure 2(b), when the parameter count is compressed to approximately $20\%$ , the accuracy loss is less than $1\%$ . For CIFAR-100 in Figure 2(c), when
172
+
173
+ ![](images/5ac49eb8032ffcf82a9ea5082bba2500442eb552c97a42b6913e37153c974129.jpg)
174
+ (a) Channel importance score distribution.
175
+
176
+ ![](images/8f88e1a651eed3798711ecad4ea72d51b8fb56a8bdf951c3630ce67a404e89bf.jpg)
177
+ (b) The parameters of ablation experiments.
178
+
179
+ ![](images/307c378587d5702672e08c9a56414316da723923f670f196612bd626e3bd2b82.jpg)
180
+ (c) The accuracy of ablation experiments.
181
+ Figure 4. Analysis of the effectiveness of the SCA structure learning framework.
182
+
183
+ the model's parameter count is compressed to $20\%$ of the original (i.e., 3.60 million parameters), the accuracy still increases by $+0.64\%$ . In the case of DVS-CIFAR10, as shown in Figure 2(d), even when the parameter count is reduced to only $6.95\%$ of the original (i.e., 0.08 million parameters), the accuracy decreases by less than $1\%$ . Furthermore, when the parameter count is compressed to approximately $20\%$ of the original (i.e., 0.25 million parameters), the accuracy improves by nearly $1\%$ .
184
+
185
+ Energy Consumption Analysis. The synaptic operations (SynOps) of SNNs can represent the network's complexity and computational cost. As seen from the red line in Figure 2, with an increase in the network's channel pruning ratio, the synaptic operations gradually decrease. As shown in the Figure 2(a), for SNNVGG16 on the CIFAR-10 dataset, when the redundant channel removal ratio reaches 0.8, nearly half of the synaptic operations can be reduced. For DVS-CIFAR10 in Figure 2(d), when the number of synaptic operations (0.43M) is less than half of the original, the performance only decreases by less than $1\%$ . This indicates that our method can reduce computational costs, improve resource utilization, and enhance network performance, which is highly beneficial for deploying SNNs in resource-constrained environments or achieving more efficient neural computations.
186
+
187
+ # 5.3. Analysis of Network Structure Learning.
188
+
189
+ Structure Analysis. In order to better analyze the learning process of the network structure, we visualized the changes in the number of channels for each layer of the network, as shown in Figure 3. In Figure 3(a), different lines represent the number of channels in each layer of the final network structure under different pruning ratios, using SNNVGG16 on the CFAR10 dataset as an example. It can be observed that there is a certain pattern in the change of channel numbers under different pruning ratios. The removal of more channels in the deeper layers suggests their lower importance, while channels in the shallower layers appear to be rel-
190
+
191
+ atively more important. In deep network structures, deeper layers extract more abstract and advanced features, but as the layers get deeper, they become harder to train, leading to the presence of many redundant connections. In Figure 3(b), the changes in the number of channels for convolutional layers 8-13 of the SNNVGG16 model under a pruning ratio of 0.5 during the training process are visualized. During the training process, some layers exhibit significant fluctuations in the number of channels, while others show relatively minor variations, suggesting the network is dynamically adapting and reallocating parameters to learn optimal channel quantities across different layers. It can be seen that as the network converges, the model's structure stabilizes to some extent. This indicates that the structural learning framework, as the network structure evolves, autonomously adapts to an appropriate structure.
192
+
193
+ Channel Importance Score Distribution. As shown in Figure 4(a), we visualized the distribution of channel importance scores for the entire network at different pruning ratios. The points where the importance score is 0 represent the removed channels that are no longer firing. It can be seen that the original network's importance score distribution has a higher mean and is more scattered, indicating that the channels have higher spiking activity levels and larger variance. As the pruning ratio increases, the overall network activity decreases and tends towards zero, indicating that removing redundant channels reduces the overall energy consumption of the network.
194
+
195
+ # 5.4. Analysis of Ablation Experiments.
196
+
197
+ To further demonstrate the effectiveness of the structural learning method in this framework, we conducted ablation experiments, as shown in Figure 4(b) Figure 4(c). The yellow curve represents the testing accuracy and parameter count of the SNNVGG16 method on the CIFAR10 dataset. The green and red curves represent the results of pruning only without regrowth and random pruning at initialization, respectively. It can be observed that the testing accuracy
198
+
199
+ Table 1. Comparison of Experimental Performance with Other Methods.
200
+
201
+ <table><tr><td>Dataset</td><td>Method</td><td>Network Architecture</td><td>Granularity</td><td>ACC.(%)</td><td>ACC. Loss(%)</td><td>Connectivity(%)</td></tr><tr><td rowspan="15">CIFAR10</td><td rowspan="2">Attention-based (Kundu et al., 2021)</td><td rowspan="2">VGG16</td><td rowspan="2">Weight</td><td rowspan="2">91.13</td><td>-0.39</td><td>5.00</td></tr><tr><td>-0.98</td><td>2.99</td></tr><tr><td rowspan="2">ADMM-based (Deng et al., 2021)</td><td rowspan="2">7Conv+2FC</td><td rowspan="2">Weight</td><td rowspan="2">89.53</td><td>-2.16</td><td>25.00</td></tr><tr><td>-3.85</td><td>10.00</td></tr><tr><td rowspan="3">Grad R (Chen et al., 2021)</td><td rowspan="3">6Conv+2FC</td><td rowspan="3">Weight</td><td rowspan="3">92.84</td><td>-0.30</td><td>28.41</td></tr><tr><td>-0.34</td><td>12.04</td></tr><tr><td>-0.81</td><td>5.08</td></tr><tr><td rowspan="2">Dendritic-based (Chen et al., 2022)</td><td rowspan="2">6Conv+2FC</td><td rowspan="2">Weight</td><td rowspan="2">92.84</td><td>-0.35</td><td>2.23</td></tr><tr><td>-2.63</td><td>0.75</td></tr><tr><td>ESL-SNNs (Shen et al., 2023)</td><td>Resnet19</td><td>Weight</td><td>91.09</td><td>-1.70</td><td>50.00</td></tr><tr><td>SD-SNN (Han et al., 2022)</td><td>6Conv+2FC</td><td>Channel</td><td>94.74</td><td>-0.64</td><td>62.56</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG9</td><td>Channel</td><td>90.10</td><td>-1.06</td><td>7.00</td></tr><tr><td rowspan="3">SCA-based</td><td rowspan="3">VGG16</td><td rowspan="3">Channel</td><td rowspan="3">91.14</td><td>+0.32</td><td>55.86</td></tr><tr><td>+0.53</td><td>28.39</td></tr><tr><td>-0.88</td><td>9.31</td></tr><tr><td rowspan="4">CIFAR100</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>64.69</td><td>-0.03</td><td>10.00</td></tr><tr><td>PAC-based (Chowdhury et al., 2021)</td><td>VGG11</td><td>Channel</td><td>68.10</td><td>-1.70</td><td>10.70</td></tr><tr><td rowspan="2">SCA-based</td><td rowspan="2">VGG16</td><td rowspan="2">Channel</td><td rowspan="2">64.89</td><td>+0.64</td><td>23.52</td></tr><tr><td>-0.25</td><td>16.47</td></tr><tr><td rowspan="3">DVS-CIFAR10</td><td>ESL-SNNs (Shen et al., 2023)</td><td>VGG8</td><td>Weight</td><td>78.30</td><td>-0.28</td><td>10.00</td></tr><tr><td rowspan="2">SCA-based</td><td rowspan="2">5Conv+1FC</td><td rowspan="2">Channel</td><td rowspan="2">72.80</td><td>+0.90</td><td>21.73</td></tr><tr><td>-0.90</td><td>6.95</td></tr><tr><td rowspan="3">Tiny-ImageNet</td><td>Attention-based (Kundu et al., 2021)</td><td>VGG16</td><td>Weight</td><td>51.92</td><td>+0.78</td><td>40.00</td></tr><tr><td rowspan="2">SCA-based</td><td rowspan="2">VGG16</td><td rowspan="2">Channel</td><td rowspan="2">49.33</td><td>+0.03</td><td>43.21</td></tr><tr><td>-0.19</td><td>30.60</td></tr></table>
202
+
203
+ follows the order 'Prune and Regrow' > 'Only Prune' > 'Random Prune', and the parameter count for the latter two is higher than that of 'Prune and Regrow.' When the pruning ratio is 0.8, our framework achieves only about a $2\%$ decrease in accuracy, while the accuracy of only pruning and random pruning drops significantly. When only pruning is performed, after an initial mask update at the beginning of training, the mask hardly gets updated during subsequent training, indicating that the regrowth process can reactivate mistakenly pruned channels. Random pruning, which prunes with the same probability for each layer, cannot accurately identify redundant structural units. Therefore, the SCA framework's mechanism for identifying redundant channels and reactivating pruned channels autonomously searches for an appropriate network structure.
204
+
205
+ # 5.5. Comparison with Other Methods.
206
+
207
+ As shown in Table 1, we compared our method with existing SNNs pruning methods, presenting the loss in test
208
+
209
+ accuracy for different pruning ratios and the percentage of remaining parameters. On the CIFAR-10 dataset, at approximately $9.31\%$ of the original parameter count, our method achieved a less than $1\%$ decrease in accuracy. This performance is similar to the PCA-based channel pruning method (Chowdhury et al., 2021). However, the PCA-based method uses a time step of 25, much larger than our method's 4. Compared to the SD-SNN method (Han et al., 2022), our method also exhibited advantages in parameter compression and performance loss. The SCA-based method achieved a $0.53\%$ improvement in accuracy at only $28.39\%$ of the original parameter count, outperforming the ADMM-based (Deng et al., 2021) and ESL-SNNs (Shen et al., 2023) methods. The SCA-based method may not excel in parameter compression compared to Attention-based (Kundu et al., 2021), Grad R (Chen et al., 2021), and Dendritic-based (Chen et al., 2022) methods. However, our approach employs structured pruning specifically targeting convolutional layers and efficiently retracts from scratch in a more energy-
210
+
211
+ efficient manner. Ultimately, it allows for the complete removal of redundant structural units, resulting in a new model with improved hardware-friendliness. On the CIFAR100 dataset, the accuracy loss is $0.25\%$ when the parameters are $16.47\%$ of the original, which is better than the PCA-based method (Chowdhury et al., 2021). The attention-based method (Kundu et al., 2021) requires a process involving ANN-SNN conversion, while our method is comparatively more energy-efficient. For the Tiny ImageNet dataset, when the pruning ratio is approximately $40\%$ , the accuracy improves by $0.03\%$ . With a pruning ratio of $30\%$ , there is only a slight decrease in accuracy. This suggests that the proposed method remains effective on complex datasets. On the DVS-CIFAR10 dataset, there was a slight improvement in accuracy when compressing fewer parameters. Additionally, the network structure used was simpler compared to ESL-SNNs (Shen et al., 2023). Therefore, the experimental results indicate that our SCA structured pruning method can efficiently identify redundant structural units and adapt the lightweight network autonomously for the target task through training from scratch. This method results in a thoroughly lightweight model with a more regular structure, making it easier to deploy on hardware chips compared to unstructured pruning (Shrestha et al., 2022).
212
+
213
+ # 6. Conclusion
214
+
215
+ Lightweight and high-performance SNNs can better leverage their advantages of low power consumption. The structured pruning methods can result in regular, sparse SNN models, making them more hardware-friendly. The approach proposed in this paper starts from the perspective of biological plasticity, combining pruning and regrowth in an adaptive manner during training to explore suitable lightweight network structures. This approach allows for the compression of network parameters while maintaining network high performance. This is of significant value for deploying high-performance, low-memory SNNs on neuromorphic chips.
216
+
217
+ # Acknowledgements
218
+
219
+ This work is supported by National Key R&D Program of China (2021ZD0109803), National Natural Science Foundation of China (NSFC No.62206037, 62306274), The Open Project of Anhui Provincial Key Laboratory of Multimodal Cognitive Computation, Anhui University, No. MMC202104 and under Grant No. GML-KF-22-11.
220
+
221
+ # Impact Statement
222
+
223
+ This paper presents work whose goal is to advance the field of Machine Learning. There are many potential societal consequences of our work, none of which we feel must be
224
+
225
+ specifically highlighted here.
226
+
227
+ # References
228
+
229
+ Barnes, S. J. and Finnerty, G. T. Sensory experience and cortical rewiring. The Neuroscientist, 16(2):186-198, 2010.
230
+ Bellec, G., Kappel, D., Maass, W., and Legenstein, R. Deep rewiring: Training very sparse deep networks. arXiv preprint arXiv:1711.05136, 2017.
231
+ Bellec, G., Salaj, D., Subramoney, A., Legenstein, R., and Maass, W. Long short-term memory and learning-to-learn in networks of spiking neurons. Advances in neural information processing systems, 31, 2018.
232
+ Bienenstock, E. L., Cooper, L. N., and Munro, P. W. Theory for the development of neuron selectivity: orientation specificity and binocular interaction in visual cortex. Journal of Neuroscience, 2(1):32-48, 1982.
233
+ Bu, T., Fang, W., Ding, J., Dai, P., Yu, Z., and Huang, T. Optimal ann-snn conversion for high-accuracy and ultra-low-latency spiking neural networks. arXiv preprint arXiv:2303.04347, 2023.
234
+ Chen, Y., Yu, Z., Fang, W., Huang, T., and Tian, Y. Pruning of deep spiking neural networks through gradient rewiring. arXiv preprint arXiv:2105.04916, 2021.
235
+ Chen, Y., Yu, Z., Fang, W., Ma, Z., Huang, T., and Tian, Y. State transition of dendritic spines improves learning of sparse spiking neural networks. In International Conference on Machine Learning, pp. 3701-3715. PMLR, 2022.
236
+ Chowdhury, S. S., Garg, I., and Roy, K. Spatio-temporal pruning and quantization for low-latency spiking neural networks. In 2021 International Joint Conference on Neural Networks (IJCNN), pp. 1-9. IEEE, 2021.
237
+ Cizeron, M., Qiu, Z., Koniaris, B., Gokhale, R., Komiyama, N. H., Fransén, E., and Grant, S. G. A brainwide atlas of synapses across the mouse life span. Science, 369(6501): 270-275, 2020.
238
+ Davies, M., Srinivasa, N., Lin, T.-H., Chinya, G., Cao, Y., Choday, S. H., Dimou, G., Joshi, P., Imam, N., Jain, S., et al. Loihi: A neuromorphic manycore processor with on-chip learning. *IEEE Micro*, 38(1):82-99, 2018.
239
+ Deng, L., Wu, Y., Hu, Y., Liang, L., Li, G., Hu, X., Ding, Y., Li, P., and Xie, Y. Comprehensive snn compression using admm optimization and activity regularization. IEEE transactions on neural networks and learning systems, 2021.
240
+
241
+ Deng, S., Li, Y., Zhang, S., and Gu, S. Temporal efficient training of spiking neural network via gradient weighting. arXiv preprint arXiv:2202.11946, 2022.
242
+ Ding, J., Yu, Z., Tian, Y., and Huang, T. Optimal ann-snn conversion for fast and accurate inference in deep spiking neural networks. arXiv preprint arXiv:2105.11654, 2021.
243
+ Duan, C., Ding, J., Chen, S., Yu, Z., and Huang, T. Temporal effective batch normalization in spiking neural networks. Advances in Neural Information Processing Systems, 35: 34377-34390, 2022.
244
+ Fang, W., Chen, Y., Ding, J., Chen, D., Yu, Z., Zhou, H., Tian, Y., and other contributors. Spikingjelly. https://github.com/fangwei123456/spikingjelly, 2020. Accessed: 2021-12-30.
245
+ Fang, W., Yu, Z., Chen, Y., Huang, T., Masquelier, T., and Tian, Y. Deep residual learning in spiking neural networks. Advances in Neural Information Processing Systems, 34:21056-21069, 2021a.
246
+ Fang, W., Yu, Z., Chen, Y., Masquelier, T., Huang, T., and Tian, Y. Incorporating learnable membrane time constant to enhance learning of spiking neural networks. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 2661-2671, 2021b.
247
+ Gerstner, W., Kistler, W. M., Naud, R., and Paninski, L. Neuronal dynamics: From single neurons to networks and models of cognition. Cambridge University Press, 2014.
248
+ Guo, Y., Huang, X., and Ma, Z. Direct learning-based deep spiking neural networks: a review. Frontiers in Neuroscience, 17:1209795, 2023.
249
+ Han, B., Zhao, F., Zeng, Y., and Pan, W. Adaptive sparse structure development with pruning and regeneration for spiking neural networks. arXiv preprint arXiv:2211.12219, 2022.
250
+ He, Y. and Xiao, L. Structured pruning for deep convolutional neural networks: A survey. arXiv preprint arXiv:2303.00566, 2023.
251
+ Holtmaat, A. and Svoboda, K. Experience-dependent structural synaptic plasticity in the mammalian brain. Nature Reviews Neuroscience, 10(9):647-658, 2009.
252
+ Houweling, A. R. and Brecht, M. Behavioural report of single neuron stimulation in somatosensory cortex. Nature, 451(7174):65-68, 2008.
253
+ Hu, X., Zhang, J., Li, J., and Zhang, B. Sparsity-regularized hmax for visual recognition. PloS one, 9(1):e81813, 2014.
254
+
255
+ Hu, Y., Tang, H., and Pan, G. Spiking deep residual networks. IEEE Transactions on Neural Networks and Learning Systems, 34(8):5200-5205, 2021a.
256
+ Hu, Y., Wu, Y., Deng, L., and Li, G. Advancing residual learning towards powerful deep spiking neural networks. arXiv e-prints, pp. arXiv-2112, 2021b.
257
+ Hu, Y., Zheng, Q., Jiang, X., and Pan, G. Fast-snn: Fast spiking neural network by converting quantized ann. IEEE Transactions on Pattern Analysis and Machine Intelligence, 2023.
258
+ Jiang, T., Xu, Q., Ran, X., Shen, J., Lv, P., Zhang, Q., and Pan, G. Adaptive deep spiking neural network with global-local learning via balanced excitatory and inhibitory mechanism. In The Twelfth International Conference on Learning Representations, 2023.
259
+ Kappel, D., Habenschuss, S., Legenstein, R., and Maass, W. Network plasticity as bayesian inference. PLoS computational biology, 11(11):e1004485, 2015.
260
+ Kheradpisheh, S. R., Ganjtabesh, M., Thorpe, S. J., and Masquelier, T. Stdp-based spiking deep convolutional neural networks for object recognition. Neural Networks, 99:56-67, 2018.
261
+ Kundu, S., Datta, G., Pedram, M., and Beerel, P. A. Spike-thrift: Towards energy-efficient deep spiking neural networks by limiting spiking activity via attention-guided compression. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 3953-3962, 2021.
262
+ Langley, P. Crafting papers on machine learning. In Langley, P. (ed.), Proceedings of the 17th International Conference on Machine Learning (ICML 2000), pp. 1207-1216, Stanford, CA, 2000. Morgan Kaufmann.
263
+ Lee, C., Srinivasan, G., Panda, P., and Roy, K. Deep spiking convolutional neural network trained with unsupervised spike-timing-dependent plasticity. IEEE Transactions on Cognitive and Developmental Systems, 11(3):384-394, 2018.
264
+ Liu, C., Bellec, G., Vogginger, B., Kappel, D., Partzsch, J., Neumärker, F., Hoppner, S., Maass, W., Furber, S. B., Legenstein, R., et al. Memory-efficient deep learning on a spinnaker 2 prototype. Frontiers in neuroscience, 12: 840, 2018.
265
+ Ma, D., Jin, X., Sun, S., Li, Y., Wu, X., Hu, Y., Yang, F., Tang, H., Zhu, X., Lin, P., et al. Darwin3: A large-scale neuromorphic chip with a novel isa and on-chip learning. arXiv preprint arXiv:2312.17582, 2023.
266
+
267
+ Maass, W. Networks of spiking neurons: the third generation of neural network models. Neural networks, 10(9): 1659-1671, 1997.
268
+ Mink, J. W., Blumenschine, R. J., and Adams, D. B. Ratio of central nervous system to body metabolism in vertebrates: its constancy and functional basis. American Journal of Physiology-Regulatory, Integrative and Comparative Physiology, 241(3):R203-R212, 1981.
269
+ Oja, E. Simplified neuron model as a principal component analyzer. Journal of mathematical biology, 15:267-273, 1982.
270
+ Shen, J., Xu, Q., Liu, J. K., Wang, Y., Pan, G., and Tang, H. Esl-snns: An evolutionary structure learning strategy for spiking neural networks. arXiv preprint arXiv:2306.03693, 2023.
271
+ Shen, J., Ni, W., Xu, Q., and Tang, H. Efficient spiking neural networks with sparse selective activation for continual learning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 611-619, 2024.
272
+ Shrestha, A., Fang, H., Mei, Z., Rider, D. P., Wu, Q., and Qiu, Q. A survey on neuromorphic computing: Models and hardware. IEEE Circuits and Systems Magazine, 22 (2):6-35, 2022.
273
+ Song, S., Miller, K. D., and Abbott, L. F. Competitive heb- bian learning through spike-timing-dependent synaptic plasticity. Nature neuroscience, 3(9):919-926, 2000.
274
+ Srinivasan, G. and Roy, K. Restocnet: Residual stochastic binary convolutional spiking neural network for memory-efficient neuromorphic computing. Frontiers in neuroscience, 13:189, 2019.
275
+ Stettler, D. D., Yamahachi, H., Li, W., Denk, W., and Gilbert, C. D. Axons and synaptic boutons are highly dynamic in adult visual cortex. Neuron, 49(6):877-887, 2006.
276
+ Trachtenberg, J. T., Chen, B. E., Knott, G. W., Feng, G., Sanes, J. R., Welker, E., and Svoboda, K. Long-term in vivo imaging of experience-dependent synaptic plasticity in adult cortex. Nature, 420(6917):788-794, 2002.
277
+ Wu, Y., Deng, L., Li, G., Zhu, J., and Shi, L. Spatiotemporal backpropagation for training high-performance spiking neural networks. Frontiers in neuroscience, 12: 331, 2018.
278
+ Yan, Q., Zheng, Y., Jia, S., Zhang, Y., Yu, Z., Chen, F., Tian, Y., Huang, T., and Liu, J. K. Revealing fine structures of the retinal receptive field by deep-learning networks. IEEE transactions on cybernetics, 52(1):39-50, 2020.
279
+
280
+ Yin, H., Lee, J. B., Kong, X., Hartvigsen, T., and Xie, S. Energy-efficient models for high-dimensional spike train classification using sparse spiking neural networks. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery & Data Mining, pp. 2017-2025, 2021.
281
+ Yu, Z., Liu, J. K., Jia, S., Zhang, Y., Zheng, Y., Tian, Y., and Huang, T. Toward the next generation of retinal neuroprosthesis: Visual computation with spikes. Engineering, 6(4):449-461, 2020.
282
+ Zheng, H., Wu, Y., Deng, L., Hu, Y., and Li, G. Going deeper with directly-trained larger spiking neural networks. In Proceedings of the AAAI conference on artificial intelligence, volume 35, pp. 11062-11070, 2021.
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e166d961a412a105af33b85ee8134a523f890d461a512625d7ae673bbc847175
3
+ size 439446
2024/Towards efficient deep spiking neural networks construction with spiking activity based pruning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/00e19c5b-6762-4b32-9111-c51fcd515143_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:893596238d449a0f34803e8e07cb85db0eb0f0542a51383273703ab425059c41
3
+ size 1830802
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b251d3f5fbb64274fd19e11cc35990e8ff3e52cdaab0582744f2c4b9aeb5cebe
3
+ size 5550362
2024/Towards the Theory of Unsupervised Federated Learning_ Non-asymptotic Analysis of Federated EM Algorithms/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/Trainable Transformer in Transformer/a08be247-8641-498b-af93-08217efc8fe6_content_list.json ADDED
The diff for this file is too large to render. See raw diff