Chelsea707 commited on
Commit
53a1e1d
·
verified ·
1 Parent(s): 1ed65ac

Add Batch 03e6f288-b190-4d0c-8eb9-d7a1b627747e 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/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_content_list.json +0 -0
  3. 2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_model.json +0 -0
  4. 2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_origin.pdf +3 -0
  5. 2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/full.md +613 -0
  6. 2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/images.zip +3 -0
  7. 2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/layout.json +0 -0
  8. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_content_list.json +0 -0
  9. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_model.json +0 -0
  10. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_origin.pdf +3 -0
  11. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/full.md +554 -0
  12. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/images.zip +3 -0
  13. 2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/layout.json +0 -0
  14. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_content_list.json +0 -0
  15. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_model.json +0 -0
  16. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_origin.pdf +3 -0
  17. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/full.md +720 -0
  18. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/images.zip +3 -0
  19. 2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/layout.json +0 -0
  20. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_content_list.json +0 -0
  21. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_model.json +0 -0
  22. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_origin.pdf +3 -0
  23. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/full.md +558 -0
  24. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/images.zip +3 -0
  25. 2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/layout.json +0 -0
  26. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_content_list.json +0 -0
  27. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_model.json +0 -0
  28. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_origin.pdf +3 -0
  29. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/full.md +0 -0
  30. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/images.zip +3 -0
  31. 2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/layout.json +0 -0
  32. 2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_content_list.json +2319 -0
  33. 2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_model.json +0 -0
  34. 2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_origin.pdf +3 -0
  35. 2024/SAPG_ Split and Aggregate Policy Gradients/full.md +415 -0
  36. 2024/SAPG_ Split and Aggregate Policy Gradients/images.zip +3 -0
  37. 2024/SAPG_ Split and Aggregate Policy Gradients/layout.json +0 -0
  38. 2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_content_list.json +0 -0
  39. 2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_model.json +0 -0
  40. 2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_origin.pdf +3 -0
  41. 2024/SCoRe_ Submodular Combinatorial Representation Learning/full.md +0 -0
  42. 2024/SCoRe_ Submodular Combinatorial Representation Learning/images.zip +3 -0
  43. 2024/SCoRe_ Submodular Combinatorial Representation Learning/layout.json +0 -0
  44. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_content_list.json +0 -0
  45. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_model.json +0 -0
  46. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_origin.pdf +3 -0
  47. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/full.md +0 -0
  48. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/images.zip +3 -0
  49. 2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/layout.json +0 -0
  50. 2024/SFC_ Achieve Accurate Fast Convolution under Low-precision Arithmetic/cba16951-aab6-48d6-be6b-65b02d2acff0_content_list.json +2077 -0
.gitattributes CHANGED
@@ -5482,3 +5482,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
5482
  2024/Run-Time[[:space:]]Task[[:space:]]Composition[[:space:]]with[[:space:]]Safety[[:space:]]Semantics/85a20198-2a54-429e-9ce5-f05fac834a84_origin.pdf filter=lfs diff=lfs merge=lfs -text
5483
  2024/Rényi[[:space:]]Pufferfish[[:space:]]Privacy_[[:space:]]General[[:space:]]Additive[[:space:]]Noise[[:space:]]Mechanisms[[:space:]]and[[:space:]]Privacy[[:space:]]Amplification[[:space:]]by[[:space:]]Iteration[[:space:]]via[[:space:]]Shift[[:space:]]Reduction[[:space:]]Lemmas/4fb42941-da5d-47e5-a5df-b15158720471_origin.pdf filter=lfs diff=lfs merge=lfs -text
5484
  2024/S$Ω$I_[[:space:]]Score-based[[:space:]]O-INFORMATION[[:space:]]Estimation/be616375-e996-4921-88cc-5aeaa07e07e0_origin.pdf filter=lfs diff=lfs merge=lfs -text
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
5482
  2024/Run-Time[[:space:]]Task[[:space:]]Composition[[:space:]]with[[:space:]]Safety[[:space:]]Semantics/85a20198-2a54-429e-9ce5-f05fac834a84_origin.pdf filter=lfs diff=lfs merge=lfs -text
5483
  2024/Rényi[[:space:]]Pufferfish[[:space:]]Privacy_[[:space:]]General[[:space:]]Additive[[:space:]]Noise[[:space:]]Mechanisms[[:space:]]and[[:space:]]Privacy[[:space:]]Amplification[[:space:]]by[[:space:]]Iteration[[:space:]]via[[:space:]]Shift[[:space:]]Reduction[[:space:]]Lemmas/4fb42941-da5d-47e5-a5df-b15158720471_origin.pdf filter=lfs diff=lfs merge=lfs -text
5484
  2024/S$Ω$I_[[:space:]]Score-based[[:space:]]O-INFORMATION[[:space:]]Estimation/be616375-e996-4921-88cc-5aeaa07e07e0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5485
+ 2024/S3GCL_[[:space:]]Spectral,[[:space:]]Swift,[[:space:]]Spatial[[:space:]]Graph[[:space:]]Contrastive[[:space:]]Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5486
+ 2024/S3O_[[:space:]]A[[:space:]]Dual-Phase[[:space:]]Approach[[:space:]]for[[:space:]]Reconstructing[[:space:]]Dynamic[[:space:]]Shape[[:space:]]and[[:space:]]Skeleton[[:space:]]of[[:space:]]Articulated[[:space:]]Objects[[:space:]]from[[:space:]]Single[[:space:]]Monocular[[:space:]]Video/29912845-7c45-4d75-8f31-1d61213f4588_origin.pdf filter=lfs diff=lfs merge=lfs -text
5487
+ 2024/SAM[[:space:]]as[[:space:]]the[[:space:]]Guide_[[:space:]]Mastering[[:space:]]Pseudo-Label[[:space:]]Refinement[[:space:]]in[[:space:]]Semi-Supervised[[:space:]]Referring[[:space:]]Expression[[:space:]]Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_origin.pdf filter=lfs diff=lfs merge=lfs -text
5488
+ 2024/SAM-E_[[:space:]]Leveraging[[:space:]]Visual[[:space:]]Foundation[[:space:]]Model[[:space:]]with[[:space:]]Sequence[[:space:]]Imitation[[:space:]]for[[:space:]]Embodied[[:space:]]Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_origin.pdf filter=lfs diff=lfs merge=lfs -text
5489
+ 2024/SAMformer_[[:space:]]Unlocking[[:space:]]the[[:space:]]Potential[[:space:]]of[[:space:]]Transformers[[:space:]]in[[:space:]]Time[[:space:]]Series[[:space:]]Forecasting[[:space:]]with[[:space:]]Sharpness-Aware[[:space:]]Minimization[[:space:]]and[[:space:]]Channel-Wise[[:space:]]Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5490
+ 2024/SAPG_[[:space:]]Split[[:space:]]and[[:space:]]Aggregate[[:space:]]Policy[[:space:]]Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_origin.pdf filter=lfs diff=lfs merge=lfs -text
5491
+ 2024/SCoRe_[[:space:]]Submodular[[:space:]]Combinatorial[[:space:]]Representation[[:space:]]Learning/69e94097-94c3-4af0-a534-92b563fbf142_origin.pdf filter=lfs diff=lfs merge=lfs -text
5492
+ 2024/SF-DQN_[[:space:]]Provable[[:space:]]Knowledge[[:space:]]Transfer[[:space:]]using[[:space:]]Successor[[:space:]]Feature[[:space:]]for[[:space:]]Deep[[:space:]]Reinforcement[[:space:]]Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_origin.pdf filter=lfs diff=lfs merge=lfs -text
5493
+ 2024/SFC_[[:space:]]Achieve[[:space:]]Accurate[[:space:]]Fast[[:space:]]Convolution[[:space:]]under[[:space:]]Low-precision[[:space:]]Arithmetic/cba16951-aab6-48d6-be6b-65b02d2acff0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5494
+ 2024/SHINE_[[:space:]]Shielding[[:space:]]Backdoors[[:space:]]in[[:space:]]Deep[[:space:]]Reinforcement[[:space:]]Learning/1390c8fa-b08b-428a-b69f-4122a64b7d1c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5495
+ 2024/SILVER_[[:space:]]Single-loop[[:space:]]variance[[:space:]]reduction[[:space:]]and[[:space:]]application[[:space:]]to[[:space:]]federated[[:space:]]learning/77648a6c-4668-40d8-b4ac-6cd78ef2edcf_origin.pdf filter=lfs diff=lfs merge=lfs -text
5496
+ 2024/SIN_[[:space:]]Selective[[:space:]]and[[:space:]]Interpretable[[:space:]]Normalization[[:space:]]for[[:space:]]Long-Term[[:space:]]Time[[:space:]]Series[[:space:]]Forecasting/a8901ace-f0a2-4ab8-b3ed-c3a88d39806b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5497
+ 2024/SLAB_[[:space:]]Efficient[[:space:]]Transformers[[:space:]]with[[:space:]]Simplified[[:space:]]Linear[[:space:]]Attention[[:space:]]and[[:space:]]Progressive[[:space:]]Re-parameterized[[:space:]]Batch[[:space:]]Normalization/f1d83e04-078e-4028-9543-62a27f35b8d2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5498
+ 2024/SLEB_[[:space:]]Streamlining[[:space:]]LLMs[[:space:]]through[[:space:]]Redundancy[[:space:]]Verification[[:space:]]and[[:space:]]Elimination[[:space:]]of[[:space:]]Transformer[[:space:]]Blocks/19e9ba66-69e8-46c3-8752-2a03ee38ee5d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5499
+ 2024/SLOG_[[:space:]]An[[:space:]]Inductive[[:space:]]Spectral[[:space:]]Graph[[:space:]]Neural[[:space:]]Network[[:space:]]Beyond[[:space:]]Polynomial[[:space:]]Filter/690a35fe-aa11-4bf0-b9a4-5627b0ae694b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5500
+ 2024/SMaRt_[[:space:]]Improving[[:space:]]GANs[[:space:]]with[[:space:]]Score[[:space:]]Matching[[:space:]]Regularity/8d4ae57d-443c-4214-85c3-1a8ff7de5790_origin.pdf filter=lfs diff=lfs merge=lfs -text
5501
+ 2024/SPABA_[[:space:]]A[[:space:]]Single-Loop[[:space:]]and[[:space:]]Probabilistic[[:space:]]Stochastic[[:space:]]Bilevel[[:space:]]Algorithm[[:space:]]Achieving[[:space:]]Optimal[[:space:]]Sample[[:space:]]Complexity/7c14944a-c2d8-457b-b3b5-9cfced5a4a67_origin.pdf filter=lfs diff=lfs merge=lfs -text
5502
+ 2024/SPADE_[[:space:]]Sparsity-Guided[[:space:]]Debugging[[:space:]]for[[:space:]]Deep[[:space:]]Neural[[:space:]]Networks/74e06373-d779-4792-ae1c-cb9c7f9a511c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5503
+ 2024/SPHINX-X_[[:space:]]Scaling[[:space:]]Data[[:space:]]and[[:space:]]Parameters[[:space:]]for[[:space:]]a[[:space:]]Family[[:space:]]of[[:space:]]Multi-modal[[:space:]]Large[[:space:]]Language[[:space:]]Models/a3b69b7f-306a-4f7a-9e32-b9f23d2faf91_origin.pdf filter=lfs diff=lfs merge=lfs -text
5504
+ 2024/SPP_[[:space:]]Sparsity-Preserved[[:space:]]Parameter-Efficient[[:space:]]Fine-Tuning[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/a34651ca-b47f-4c77-a382-2dd96d646e80_origin.pdf filter=lfs diff=lfs merge=lfs -text
5505
+ 2024/SSL4Q_[[:space:]]Semi-Supervised[[:space:]]Learning[[:space:]]of[[:space:]]Quantum[[:space:]]Data[[:space:]]with[[:space:]]Application[[:space:]]to[[:space:]]Quantum[[:space:]]State[[:space:]]Classification/29b088fb-7244-4e8c-b4e4-bc67152217f6_origin.pdf filter=lfs diff=lfs merge=lfs -text
5506
+ 2024/STEER_[[:space:]]Assessing[[:space:]]the[[:space:]]Economic[[:space:]]Rationality[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/f90e929d-9ac1-415d-b5ef-5ccd52ff71d7_origin.pdf filter=lfs diff=lfs merge=lfs -text
5507
+ 2024/STELLA_[[:space:]]Continual[[:space:]]Audio-Video[[:space:]]Pre-training[[:space:]]with[[:space:]]SpatioTemporal[[:space:]]Localized[[:space:]]Alignment/19df73de-3d52-4ec4-887c-99e89a766d1e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5508
+ 2024/SaVeR_[[:space:]]Optimal[[:space:]]Data[[:space:]]Collection[[:space:]]Strategy[[:space:]]for[[:space:]]Safe[[:space:]]Policy[[:space:]]Evaluation[[:space:]]in[[:space:]]Tabular[[:space:]]MDP/ba1b7cba-4417-4220-bd36-034358fef136_origin.pdf filter=lfs diff=lfs merge=lfs -text
5509
+ 2024/Safe[[:space:]]Exploration[[:space:]]in[[:space:]]Dose[[:space:]]Finding[[:space:]]Clinical[[:space:]]Trials[[:space:]]with[[:space:]]Heterogeneous[[:space:]]Participants/b2ce26a0-719a-413f-8371-e95609abe41d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5510
+ 2024/Safe[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]using[[:space:]]Finite-Horizon[[:space:]]Gradient-based[[:space:]]Estimation/083214db-621a-4197-b110-77cf7b59ed34_origin.pdf filter=lfs diff=lfs merge=lfs -text
5511
+ 2024/Safe[[:space:]]and[[:space:]]Robust[[:space:]]Subgame[[:space:]]Exploitation[[:space:]]in[[:space:]]Imperfect[[:space:]]Information[[:space:]]Games/7a6f91ad-eecb-414f-9863-fb8e369953db_origin.pdf filter=lfs diff=lfs merge=lfs -text
5512
+ 2024/Safety[[:space:]]Fine-Tuning[[:space:]]at[[:space:]](Almost)[[:space:]]No[[:space:]]Cost_[[:space:]]A[[:space:]]Baseline[[:space:]]for[[:space:]]Vision[[:space:]]Large[[:space:]]Language[[:space:]]Models/4221dc35-90f8-4dd6-a29a-ae52def5693e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5513
+ 2024/Saliency[[:space:]]strikes[[:space:]]back_[[:space:]]How[[:space:]]filtering[[:space:]]out[[:space:]]high[[:space:]]frequencies[[:space:]]improves[[:space:]]white-box[[:space:]]explanations/66596824-f0e7-4138-8646-dd9f1c74feaf_origin.pdf filter=lfs diff=lfs merge=lfs -text
5514
+ 2024/Sample[[:space:]]Average[[:space:]]Approximation[[:space:]]for[[:space:]]Conditional[[:space:]]Stochastic[[:space:]]Optimization[[:space:]]with[[:space:]]Dependent[[:space:]]Data/f2e880cb-e7bd-467c-bf02-97fde5713c7b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5515
+ 2024/Sample[[:space:]]Complexity[[:space:]]Bounds[[:space:]]for[[:space:]]Estimating[[:space:]]Probability[[:space:]]Divergences[[:space:]]under[[:space:]]Invariances/e0e6cef1-9f63-4688-9440-fa4c793f1471_origin.pdf filter=lfs diff=lfs merge=lfs -text
5516
+ 2024/Sample[[:space:]]as[[:space:]]you[[:space:]]Infer_[[:space:]]Predictive[[:space:]]Coding[[:space:]]with[[:space:]]Langevin[[:space:]]Dynamics/3534c774-3bd2-43a3-a2e8-e31e7d1270f9_origin.pdf filter=lfs diff=lfs merge=lfs -text
5517
+ 2024/Sample-Efficient[[:space:]]Multiagent[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Reset[[:space:]]Replay/883fedb8-b28c-4a11-bd06-5f4a96971dbd_origin.pdf filter=lfs diff=lfs merge=lfs -text
5518
+ 2024/Sample-Efficient[[:space:]]Robust[[:space:]]Multi-Agent[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]in[[:space:]]the[[:space:]]Face[[:space:]]of[[:space:]]Environmental[[:space:]]Uncertainty/aac3a7b0-41f0-46f3-ab1c-81d201a12579_origin.pdf filter=lfs diff=lfs merge=lfs -text
5519
+ 2024/Sample-specific[[:space:]]Masks[[:space:]]for[[:space:]]Visual[[:space:]]Reprogramming-based[[:space:]]Prompting/1fef4653-f2ca-4925-aaaa-edf33f368667_origin.pdf filter=lfs diff=lfs merge=lfs -text
5520
+ 2024/Sampling[[:space:]]in[[:space:]]Unit[[:space:]]Time[[:space:]]with[[:space:]]Kernel[[:space:]]Fisher-Rao[[:space:]]Flow/0e3320df-1c0b-4e15-87bd-85eb9b93f472_origin.pdf filter=lfs diff=lfs merge=lfs -text
5521
+ 2024/Sampling[[:space:]]is[[:space:]]as[[:space:]]easy[[:space:]]as[[:space:]]keeping[[:space:]]the[[:space:]]consistency_[[:space:]]convergence[[:space:]]guarantee[[:space:]]for[[:space:]]Consistency[[:space:]]Models/37326808-a55f-43dd-81ab-1d35ad4a44b0_origin.pdf filter=lfs diff=lfs merge=lfs -text
5522
+ 2024/Sampling-based[[:space:]]Multi-dimensional[[:space:]]Recalibration/60d3245a-0004-4d54-8ecd-c5677014dd5c_origin.pdf filter=lfs diff=lfs merge=lfs -text
5523
+ 2024/Sarah[[:space:]]Frank-Wolfe_[[:space:]]Methods[[:space:]]for[[:space:]]Constrained[[:space:]]Optimization[[:space:]]with[[:space:]]Best[[:space:]]Rates[[:space:]]and[[:space:]]Practical[[:space:]]Features/cd6dabcb-1a8b-4a24-b82b-086c4a621abd_origin.pdf filter=lfs diff=lfs merge=lfs -text
5524
+ 2024/Scalable[[:space:]]AI[[:space:]]Safety[[:space:]]via[[:space:]]Doubly-Efficient[[:space:]]Debate/b308a128-5260-4af9-aa36-b1b9bd565f3e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5525
+ 2024/Scalable[[:space:]]High-Resolution[[:space:]]Pixel-Space[[:space:]]Image[[:space:]]Synthesis[[:space:]]with[[:space:]]Hourglass[[:space:]]Diffusion[[:space:]]Transformers/e99c08d9-b339-477e-8096-db4aab2e8e90_origin.pdf filter=lfs diff=lfs merge=lfs -text
5526
+ 2024/Scalable[[:space:]]Multiple[[:space:]]Kernel[[:space:]]Clustering_[[:space:]]Learning[[:space:]]Clustering[[:space:]]Structure[[:space:]]from[[:space:]]Expectation/9f9bfda7-86dd-4249-8fc4-08d42430f6c4_origin.pdf filter=lfs diff=lfs merge=lfs -text
5527
+ 2024/Scalable[[:space:]]Online[[:space:]]Exploration[[:space:]]via[[:space:]]Coverability/9396d45a-903c-44d4-9932-4334f75a4243_origin.pdf filter=lfs diff=lfs merge=lfs -text
5528
+ 2024/Scalable[[:space:]]Pre-training[[:space:]]of[[:space:]]Large[[:space:]]Autoregressive[[:space:]]Image[[:space:]]Models/496e6e8a-84e9-4fe7-acf9-1bc6c7762b77_origin.pdf filter=lfs diff=lfs merge=lfs -text
5529
+ 2024/Scalable[[:space:]]Safe[[:space:]]Policy[[:space:]]Improvement[[:space:]]for[[:space:]]Factored[[:space:]]Multi-Agent[[:space:]]MDPs/04110060-d149-4b6e-9e09-05584096d918_origin.pdf filter=lfs diff=lfs merge=lfs -text
5530
+ 2024/Scalable[[:space:]]Wasserstein[[:space:]]Gradient[[:space:]]Flow[[:space:]]for[[:space:]]Generative[[:space:]]Modeling[[:space:]]through[[:space:]]Unbalanced[[:space:]]Optimal[[:space:]]Transport/7fb930b5-bc13-4605-a55e-3aeef41c6727_origin.pdf filter=lfs diff=lfs merge=lfs -text
5531
+ 2024/Scalable[[:space:]]and[[:space:]]Flexible[[:space:]]Causal[[:space:]]Discovery[[:space:]]with[[:space:]]an[[:space:]]Efficient[[:space:]]Test[[:space:]]for[[:space:]]Adjacency/74bea5bc-d64d-4a40-9108-e3d7654c0f2b_origin.pdf filter=lfs diff=lfs merge=lfs -text
5532
+ 2024/Scale-Free[[:space:]]Image[[:space:]]Keypoints[[:space:]]Using[[:space:]]Differentiable[[:space:]]Persistent[[:space:]]Homology/398207ef-fc55-42b3-b10f-b59c6b234641_origin.pdf filter=lfs diff=lfs merge=lfs -text
5533
+ 2024/Scaling[[:space:]]Beyond[[:space:]]the[[:space:]]GPU[[:space:]]Memory[[:space:]]Limit[[:space:]]for[[:space:]]Large[[:space:]]Mixture-of-Experts[[:space:]]Model[[:space:]]Training/31866d56-d1c8-4cbe-8972-257bb76335c3_origin.pdf filter=lfs diff=lfs merge=lfs -text
5534
+ 2024/Scaling[[:space:]]Down[[:space:]]Deep[[:space:]]Learning[[:space:]]with[[:space:]]MNIST-1D/572d7358-dc19-470e-baeb-d3ddbd217fa4_origin.pdf filter=lfs diff=lfs merge=lfs -text
5535
+ 2024/Scaling[[:space:]]Exponents[[:space:]]Across[[:space:]]Parameterizations[[:space:]]and[[:space:]]Optimizers/3966170a-3a4e-447d-aef7-14b3e9ec1a91_origin.pdf filter=lfs diff=lfs merge=lfs -text
5536
+ 2024/Scaling[[:space:]]Laws[[:space:]]for[[:space:]]Fine-Grained[[:space:]]Mixture[[:space:]]of[[:space:]]Experts/ac9a3a67-d5a8-41fd-b499-a107f3c973bc_origin.pdf filter=lfs diff=lfs merge=lfs -text
5537
+ 2024/Scaling[[:space:]]Laws[[:space:]]for[[:space:]]the[[:space:]]Value[[:space:]]of[[:space:]]Individual[[:space:]]Data[[:space:]]Points[[:space:]]in[[:space:]]Machine[[:space:]]Learning/44441b6b-1176-424f-9d6b-f43f4e57160d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5538
+ 2024/Scaling[[:space:]]Rectified[[:space:]]Flow[[:space:]]Transformers[[:space:]]for[[:space:]]High-Resolution[[:space:]]Image[[:space:]]Synthesis/d75415ee-eee3-4f9e-a06a-4fec0a466d7d_origin.pdf filter=lfs diff=lfs merge=lfs -text
5539
+ 2024/Scaling[[:space:]]Tractable[[:space:]]Probabilistic[[:space:]]Circuits_[[:space:]]A[[:space:]]Systems[[:space:]]Perspective/c65ecca0-5346-4e6f-a191-466ef691b300_origin.pdf filter=lfs diff=lfs merge=lfs -text
5540
+ 2024/Scene[[:space:]]Graph[[:space:]]Generation[[:space:]]Strategy[[:space:]]with[[:space:]]Co-occurrence[[:space:]]Knowledge[[:space:]]and[[:space:]]Learnable[[:space:]]Term[[:space:]]Frequency/0070fc99-f7f2-4ddc-849f-b5e0c49d6e23_origin.pdf filter=lfs diff=lfs merge=lfs -text
5541
+ 2024/SceneCraft_[[:space:]]An[[:space:]]LLM[[:space:]]Agent[[:space:]]for[[:space:]]Synthesizing[[:space:]]3D[[:space:]]Scenes[[:space:]]as[[:space:]]Blender[[:space:]]Code/411b9a06-1ae0-49f7-9f0e-8bc308671d13_origin.pdf filter=lfs diff=lfs merge=lfs -text
5542
+ 2024/SciBench_[[:space:]]Evaluating[[:space:]]College-Level[[:space:]]Scientific[[:space:]]Problem-Solving[[:space:]]Abilities[[:space:]]of[[:space:]]Large[[:space:]]Language[[:space:]]Models/46056d3d-ce07-433c-9c2e-73bbf50d9d76_origin.pdf filter=lfs diff=lfs merge=lfs -text
5543
+ 2024/Score[[:space:]]identity[[:space:]]Distillation_[[:space:]]Exponentially[[:space:]]Fast[[:space:]]Distillation[[:space:]]of[[:space:]]Pretrained[[:space:]]Diffusion[[:space:]]Models[[:space:]]for[[:space:]]One-Step[[:space:]]Generation/ad662a23-1805-414a-b6c6-ed0ab0061ca2_origin.pdf filter=lfs diff=lfs merge=lfs -text
5544
+ 2024/Score-Based[[:space:]]Causal[[:space:]]Discovery[[:space:]]of[[:space:]]Latent[[:space:]]Variable[[:space:]]Causal[[:space:]]Models/55ffd20e-aa83-4465-86c9-6a530e7e3808_origin.pdf filter=lfs diff=lfs merge=lfs -text
5545
+ 2024/Scribble-Supervised[[:space:]]Semantic[[:space:]]Segmentation[[:space:]]with[[:space:]]Prototype-based[[:space:]]Feature[[:space:]]Augmentation/61fcecf3-6a6a-41f7-a415-7ea3dab2ada6_origin.pdf filter=lfs diff=lfs merge=lfs -text
5546
+ 2024/SeMOPO_[[:space:]]Learning[[:space:]]High-quality[[:space:]]Model[[:space:]]and[[:space:]]Policy[[:space:]]from[[:space:]]Low-quality[[:space:]]Offline[[:space:]]Visual[[:space:]]Datasets/7c1abaee-859e-409a-bc97-a91807915d9e_origin.pdf filter=lfs diff=lfs merge=lfs -text
5547
+ 2024/Second-Order[[:space:]]Uncertainty[[:space:]]Quantification_[[:space:]]A[[:space:]]Distance-Based[[:space:]]Approach/95f0f210-b56b-4a35-8b86-6b287bcbc091_origin.pdf filter=lfs diff=lfs merge=lfs -text
5548
+ 2024/See[[:space:]]More[[:space:]]Details_[[:space:]]Efficient[[:space:]]Image[[:space:]]Super-Resolution[[:space:]]by[[:space:]]Experts[[:space:]]Mining/1ce57dc8-f7d3-4fb4-8351-bdf3e9b38907_origin.pdf filter=lfs diff=lfs merge=lfs -text
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/a7bbeaea-89dc-41e7-8ede-6ff40872ca5d_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d943b50da040c91411deda8faa69b586513e78bea545dd1f0e49823c8998b10c
3
+ size 6152169
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/full.md ADDED
@@ -0,0 +1,613 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Guancheng Wan<sup>1</sup> Yijun Tian<sup>2</sup> Wenke Huang<sup>1</sup> Nitesh V Chawla<sup>2</sup> Mang Ye<sup>13</sup>
2
+
3
+ # Abstract
4
+
5
+ Graph Contrastive Learning (GCL) has emerged as a highly effective self-supervised approach in graph representation learning. However, prevailing GCL methods confront two primary challenges: 1) They predominantly operate under homophily assumptions, focusing on low-frequency signals in node features while neglecting heterophilic edges that connect nodes with dissimilar features. 2) Their reliance on neighborhood aggregation for inference leads to scalability challenges and hinders deployment in real-time applications. In this paper, we introduce S3GCL, an innovative framework designed to tackle these challenges. Inspired by spectral GNNs, we initially demonstrate the correlation between frequency and homophily levels. Then, we propose a novel cosine-parameterized Chebyshev polynomial as low/high-pass filters to generate biased graph views. To resolve the inference dilemma, we incorporate an MLP encoder and enhance its awareness of graph context by introducing structurally and semantically neighboring nodes as positive pairs in the spatial domain. Finally, we formulate a cross-pass GCL objective between full-pass MLP and biased-pass GNN filtered features, eliminating the need for augmentation. Extensive experiments on real-world tasks validate S3GCL proficiency in generalization to diverse homophily levels and its superior inference efficiency.
6
+
7
+ # 1. Introduction
8
+
9
+ Graph Neural Networks (GNNs) (Hamilton et al., 2017; Kipf & Welling, 2017) play a crucial role in analyzing graph-
10
+
11
+ ![](images/f03c681b26d398197428f7a81a171f57800742f1dcf1331f101ebe4314aa96be.jpg)
12
+
13
+ ![](images/fc8afabc0e2e09467e3841880072f6b9b2cefc1b2892f71e0447a6c0d419521a.jpg)
14
+
15
+ ![](images/f5eee1530ffc86a51298ca6dd6ca6b4e48c0ece9d5b2ffe05da8db2fb7b9d0b3.jpg)
16
+ Figure 1. Performance and efficiency comparison of different methods: (Testing) Accuracy, (Time of) Inference, (Time of) Training, and (Time of) Augmentation in contrastive learning. Results are generated on homophilic and heterophilic datasets. For all metrics except Accuracy, we employ reverse ranking along each axis, where a larger polygonal area indicates superior performance. Our method demonstrates a superior balance between effectiveness and efficiency. On large-scale datasets like Obgn-Arxiv, ours accelerates inference by $\times 174$ while maintaining competitive performance. Further details are shown in Tab. 2 and Sec. 4.3.
17
+
18
+ ![](images/51826b47ec26b5dfe20d1e254f9a915b8964a2ab17db4ac999484169b08f42f6.jpg)
19
+
20
+ structured data (Xiong et al., 2024b;a). They excel in identifying complex interactions and distinct node characteristics through message-passing mechanisms (Wu et al., 2020; Dai et al., 2022). Traditionally, GNN research has focused on supervised training, which requires a lot of labeled data. However, data labeling is costly and time-consuming. To overcome this, Graph Contrastive Learning (GCL) has emerged as a self-supervised technique in graph representation learning (Zhu et al., 2021b; Xia et al., 2021), particularly useful when task-specific labels are scarce. GCL works by maximizing agreement between different augmented views of the same example and minimizing it between differently augmented views of separate examples. Its efficacy has been validated in diverse fields, including social network analysis and recommender systems (Xu et al., 2021; Cai et al., 2023; Liu et al., 2023c; Tian et al., 2023a).
21
+
22
+ Despite the recent developments, two key problems of GCL
23
+
24
+ remain unsolved. Firstly, most existing methods are based on homophily assumptions (Zhu et al., 2020), primarily depending on low-pass filter GNNs (e.g., GCN) to learn representations. This focus on low-frequency components implies similarity between connected nodes. While effective for homophilic graphs, this approach overlooks the prevalence of heterophilic graphs in real-world scenarios, where connected nodes have different labels or dissimilar features (Zheng et al., 2022a; He et al., 2022a). Recent efforts to address this include adaptive augmentation (Liu et al., 2023f) and parameterized sampling strategies (He et al., 2023), without giving special consideration to the graph signal filters. Therefore the encoder inevitably encourages neighbor features to be pooled, irrespective of their actual similarity. This approach limits the ability to generate distinct representations and to generalize across graphs with varying homophily levels. Thus, the following question naturally emerges: I) how can we design filters generalizable to graphs of different homophily levels without labels?
25
+
26
+ Secondly, although GNNs exhibit a remarkable ability to capture graph-structured contexts, deploying them in large-scale applications presents challenges due to their time-intensive message-passing mechanisms. However, it is crucial to make efficient inferences for latency-sensitive applications. To tackle this problem, many studies have investigated the distillation of knowledge from a pre-trained GNN teacher to a student MLP, then deploying the MLP for inference acceleration (Tian et al., 2023b; Zhang et al., 2022). However, these methods can only be adopted in the context of supervised scenarios, which require task-specific labels to train an effective teacher GNN, limiting their adaptability in scenarios lacking labels. This raises another intriguing question: II) how can we combine the inference-efficient characteristics of MLP and graph context-awareness of GNN in a self-supervised way?
27
+
28
+ To address the aforementioned questions, we revisit existing graph contrastive learning from both spectral and spatial perspectives, introducing our Spectral, Swift, Spatial Graph Contrastive Learning (S3GCL). To go beyond the homophily assumption and address I), we first theoretically and empirically analyze the homophily in the spectral domain. We discover that high homophily levels correspond to low-frequency signals, whereas low homophily correlates with high-frequency signals. In supervised tasks, spectral GNNs with polynomial approximations have demonstrated their superiority in both homophilic and heterophilic graphs. Chebyshev polynomial (Defferrard et al., 2016; He et al., 2022b) among them are widely used to approximate various functions in graph signal filtering. However, these require labels to learn the filter shape suited to the graph, posing challenges in label-scarce environments. To overcome this, we propose a cosine-parameterized Chebyshev polynomial approach. This method utilizes cosine modulation for calcu
29
+
30
+ lating filter values in Chebyshev interpolation, emphasizing the graph high-frequency and low-frequency components respectively. The cosine parameterization method selectively emphasizes certain frequency ranges, effectively decomposing graphs into two distinct biased-pass views. Moreover, this strategy simplifies the filter learning process by adopting less learnable parameters and enhances adaptability to graphs with diverse homophily levels.
31
+
32
+ In the second place, to address the inefficient inference problem mentioned in II), we propose utilizing an MLP encoder for representation learning. Since the MLP functions as the feature transformation without any spectral filter, it is capable of creating a comprehensive full-pass view of graphs. Building on this, we formulate our Cross-Pass GCL objective, contrasting the full-pass MLP with a biased-pass GNN. To further enhance the graph context awareness of the MLP encoder, we divide the cross-pass GCL objective into two parts and introduce positive pairs in the spatial domain. By incorporating structurally neighboring nodes in the full-low component and semantically neighboring nodes in the full-high component, the MLP is enabled to identify finer granularity features from the graph property, which might be overlooked by relying solely on global spectral filter methods. Consequently, with the help of such a cross-pass and cross-architecture design and adopted spatial positive pairs, our method conducts efficient training of GCL without any manually specified graph augmentation. In practical applications, deploying the trained MLP encoder leads to faster inference and superior performance, generalizable to various graph types. Our principal contributions are summarized as follows.
33
+
34
+ - We identify that existing GCL methods often overlook generalization across varying graphs and encounter challenges in efficient inference within applications.
35
+ - We uncover the correlation between homophily and frequency in the spectral domain and introduce biased cosine-parameterized Chebyshev polynomials to facilitate generalization across various graph types.
36
+ - We utilize the MLP encoder and incorporate positive pairs in the spatial domain. By integrating this with our innovative cross-pass optimization objective, swift and efficient inference for obtaining representations is achieved.
37
+ - Extensive experiments demonstrate that our method not only achieves higher inference speed but also enhances performance, making it adaptable to different graphs.
38
+
39
+ # 2. Motivation
40
+
41
+ # 2.1. Preliminaries
42
+
43
+ Notations. Define the graph data as $\mathcal{G} = (\mathcal{V},\mathcal{E})$ , with $\nu$ signifying the node set encompassing $|\mathcal{V}| = N$ nodes. The edge set $\mathcal{E}\subseteq \mathcal{V}\times \mathcal{V}$ symbolizes the connections between nodes. The feature matrix $\mathbf{X} = \{\mathbf{x}_1,\mathbf{x}_2,\dots ,\mathbf{x}_N\}^\top$ comprises feature vectors $\mathbf{x}_i$ corresponding to node $v_{i}$ .The
44
+
45
+ adjacency matrix of $\mathcal{G}$ , denoted as $\mathbf{A} \in \mathbb{R}^{n \times n}$ , assigns $\mathbf{A}_{ij} = 1$ for existing edges $e_{i,j} \in \mathcal{E}$ and $\mathbf{A}_{ij} = 0$ otherwise. The normalized adjacency matrix is expressed as $\hat{\mathbf{A}} = \mathbf{D}^{-1/2} \mathbf{A} \mathbf{D}^{-1/2}$ . The degree matrix $\mathbf{D}$ , a diagonal matrix, is defined with $D_{i,i} = \sum_{j} A_{i,j}$ . The graph Laplacian matrix is given by $\mathbf{L} = \mathbf{D} - \mathbf{A}$ , and the symmetric normalized Laplacian matrix is $\tilde{\mathbf{L}} = \mathbf{I} - \hat{\mathbf{A}}$ , where $\mathbf{I}$ is the identity matrix. $\tilde{\mathbf{L}}$ can be decomposed as $\tilde{\mathbf{L}} = \mathbf{U} \boldsymbol{\Lambda} \mathbf{U}^{\top}$ , where $\boldsymbol{\Lambda} = \mathrm{diag}(\lambda_0, \dots, \lambda_{N-1})$ is a diagonal eigenvalue matrix with $0 = \lambda_0 \leq \lambda_1 \leq \dots \leq \lambda_{N-1} \leq 2$ , and $\mathbf{U}$ is a unitary matrix consisting of eigenvectors.
46
+
47
+ Graph Filtering. Graph filtering on features $\mathbf{X}$ is defined by $\mathbf{Z} = \mathbf{U}g(\boldsymbol{\Lambda})\mathbf{U}^{\top}\mathbf{X}$ , where $g(\boldsymbol{\Lambda})$ represents the graph filter. Directly learning $g(\boldsymbol{\Lambda})$ necessitates eigendecomposition (EVD), which has a time complexity of $O(N^{3})$ . Recent studies (Lei et al., 2022; Wang & Zhang, 2022) advocate for approximating $g(\boldsymbol{\Lambda})$ using polynomials:
48
+
49
+ $$
50
+ \mathbf {U} g (\boldsymbol {\Lambda}) \mathbf {U} ^ {\top} \mathbf {X} \approx \mathbf {U} \left(\sum_ {i = 0} ^ {K - 1} w _ {k} \lambda^ {k}\right) \mathbf {U} ^ {\top} \mathbf {X} = \sum_ {i = 0} ^ {K - 1} w _ {k} \tilde {\boldsymbol {\Lambda}} ^ {k} \mathbf {X}. \tag {1}
51
+ $$
52
+
53
+ The polynomial coefficients are denoted by $\{w_k\}$ . Furthermore, a $K$ -order polynomial graph filter can be represented as the filter function $g(\lambda) = \sum_{k=0}^{K} w_k \lambda^k$ , mapping each eigenvalue $\lambda$ in the range $[0, 2]$ to $g(\lambda)$ .
54
+
55
+ Definition 2.1. (Homophily Level $h$ ): Consider a graph $\mathcal{G} = (\mathcal{V}, \mathcal{E})$ with its node label vector $\mathbf{y}$ . The edge homophily level is quantified as the proportion of edges connecting nodes sharing identical labels. Formally, it is expressed as:
56
+
57
+ $$
58
+ h \left(\mathcal {G}, \left\{\mathbf {y} _ {i}: i \in \mathcal {V} \right\}\right) = \frac {1}{| \mathcal {E} |} \sum_ {(k, l) \in \mathcal {E}} \mathbf {1} \left(y _ {k} = y _ {l}\right). \tag {2}
59
+ $$
60
+
61
+ Here, $|\mathcal{E}|$ denotes the total number of edges in the graph, and $\mathbf{1}(\cdot)$ represents the indicator function.
62
+
63
+ Problem Description. Our objective is to advance the field of self-supervised learning for node representation. We aim to develop an encoder $\mathcal{F}$ that generates high-level node representations $\mathbf{Z} = \{z_1, \ldots, z_N\} \in \mathbb{R}^{n \times d}$ , where each $z_i \in \mathbb{R}^d$ corresponds to a node $v_i$ . These representations can be utilized in downstream tasks like node classification.
64
+
65
+ # 2.2. Motivation
66
+
67
+ In this subsection, we examine both theoretically and empirically the relationship between graph filters that emphasize different frequencies, and their performance in homophilic or heterophilic graphs. This study contributes to the development of generalizable graph filters for GCL. We employ the widely-used Contextual Stochastic Block Model (CSBM) to generate graphs with varying levels of homophily (refer to Appendix B for a comprehensive description of CSBM).
68
+
69
+ Initially, we theoretically analyze the performance of spectral GNNs with various filters on different graph types. In
70
+
71
+ addition to homophily levels for categorical node labels, we assess the similarity of numerical node signals in the spectral domain, as described by (Huang & Lio, 2023). This assessment is conducted using the following metric:
72
+
73
+ Definition 2.2. (Spectral Signal Frequency f): For a normalized feature signal $x \in \mathbb{R}^n$ , the spectral signal frequency $\mathbf{f}(x)$ on graph $\mathcal{G}$ is $\mathbf{f}(x) = \frac{x^\top \mathbf{L}x}{2}$ .
74
+
75
+ Spectral signal frequency, as related to the Dirichlet Energy (Karhadkar et al., 2022), measures the variance of signal $x$ in the spectral domain across graph $\mathcal{G}$ :
76
+
77
+ Lemma 2.3. A lower $\mathbf{f}(x)$ suggests reduced distances between connected nodes, indicating smoothness over $\mathcal{G}$ , where $x_{u}$ represents the $u$ -th element of $x$ :
78
+
79
+ $$
80
+ \mathbf {f} (x) = \frac {x ^ {\top} \mathbf {L} x}{2} = \sum_ {(u, v) \in \mathcal {E}} \frac {\left(x _ {u} - x _ {v}\right) ^ {2}}{2}. \tag {3}
81
+ $$
82
+
83
+ Lemma 2.4. For a given graph signal $x$ , $\Delta D(x)$ denotes the disparity between intra-class and inter-class distances:
84
+
85
+ $$
86
+ \begin{array}{l} \Delta D(x) = \mathbb{E}\Big[\sum_{\substack{(u,v)\in \mathcal{E}\\ y_{u} = y_{v}}}(x_{u} - x_{v})^{2} - \sum_{\substack{(u,v)\in \mathcal{E}\\ y_{u}\neq y_{v}}}(x_{u} - x_{v})^{2}\Big] \\ = 2 \mathbb {E} \left[ \left(p _ {\text {i n t r a}} - p _ {\text {i n t e r}}\right) \mathbf {f} (x) \right]. \tag {4} \\ \end{array}
87
+ $$
88
+
89
+ A lower $\Delta D(x)$ indicates that the encoder generates node representations that are more similar within the same class and distinct across different classes, demonstrating better self-supervised learning performance.
90
+
91
+ Given graph data $\mathcal{G} \sim \mathrm{CSBM}(\mu_1, \mu_2, p, q)$ generated by the CSBM model, comprising two classes, $c_0$ and $c_1$ , with intra-class probability $p$ and inter-class probability $q$ for edge formation, we develop a theorem to ascertain the advantageous filter for given graph data:
92
+
93
+ Theorem 2.5. Consider graph signals $x^l$ and $x^h$ processed by filters $g_l$ and $g_h$ , respectively. In heterophilic graphs (where $p < q$ ) and when $\Delta D(x^h) < \Delta D(x^l)$ , there exists an integer $M(0 < M \leq N - 1)$ such that $\sum_{i = M}^{N - 1} g_h^2(\lambda_i) \geq \sum_{i = M}^{N - 1} g_l^2(\lambda_i)$ , with $0 = \lambda_0 \leq \lambda_1 \leq \ldots \leq \lambda_{N - 1} \leq 2$ .
94
+
95
+ The complete proof of this theorem is available in Appendix D. This theorem indicates that in heterophilic graphs, a high-pass filter, which amplifies high frequencies, is more effective for distinct node representations, whereas a low-pass filter is preferable for homophilic graphs. To empirically validate this, we further conduct following experiments: we used ChebNet (Defferrard et al., 2016), known for its ability to approximate various spectral filters in supervised learning. ChebNet redefines the filter in Equation (1) as $\sum_{k=0}^{K} w_k T_k(\tilde{\mathbf{L}})\mathbf{X}$ , where $\hat{\mathbf{L}} = 2\mathbf{L} / \lambda_{max} - \mathbf{I}$ . The function $T_k(x)$ follows the relation $T_k(x) = 2xT_{k-1}(x) - T_{k-2}(x)$ , with $T_0(x) = 1$ and $T_1(x) = x$ . Expanding on this, (He et al., 2022b) enhanced Chebyshev polynomials
96
+
97
+ ![](images/b9590e36b9d0583cf874ac0e75794fb3f454829454fb25d3b4a0fb62daf664c5.jpg)
98
+ Figure 2. Case Studies on graphs with varying homophily levels. The dashed lines represent the mean performance across all homophily levels. We reveal that adopting both low-pass and high-pass will bring promising generalization across different homophily levels.
99
+
100
+ with Chebyshev interpolation, reparameterizing $w_{k}$ as
101
+
102
+ $$
103
+ w _ {k} = \frac {2}{K + 1} \sum_ {j = 0} ^ {K} \gamma_ {j} T _ {k} \left(x _ {j}\right). \tag {5}
104
+ $$
105
+
106
+ We generated synthetic graphs with homophily levels ranging from 0 to 1 and applied the GRACE (Zhu et al., 2020) contrastive learning framework, evaluating performance through a node classification task. Due to challenges in learning filter parameters without labels, we initialized $\{\gamma_0^h,\dots ,\gamma_K^h\}$ in Equation (5) as an increasing arithmetic sequence, holding them constant during training as $w_{k}^{h}$ for a high-pass filter. Conversely, we set $w_{k}^{l}$ for the low-pass filter using a decreasing arithmetic sequence. Specifically, we set $\gamma_0^h$ and $\gamma_K^h$ at 0 and 2 for the high-pass filter, and inversely for the low-pass filter. Our experiments involved four filtering methods: ChebNet (with interpolation), low-pass only, high-pass only, and a combination of both. The results are in Figure 2. Our key findings are: 1) Using a biased-pass filter alone can limit generalization across various homophily levels, 2) Spectral GNNs struggle to approximate optimal filters without labels, 3) Employing both low- and high-pass filters separately enhances generalizability. These insights guide the development of our proposed method.
107
+
108
+ # 3. Methodology
109
+
110
+ # 3.1. Spectral: Cosine-Parameterized Chebyshev Polynomial Encoder
111
+
112
+ To better handle graphs with different homophily levels and without labels (as discussed in Sec. 2.2), we initially consider using both low- and high-pass filters on the input graph data. However, this method encounters two issues: 1) In the parameterization method, a linear increase in parameters proportional to the order $K$ occurs. This results in uniform growth across all intervals, not emphasizing any specific frequency range. It potentially causes the two graph views to remain coupled and not disentangled. 2) The filter remains static during training and cannot be optimized alongside the contrastive objective. To address these issues, we propose a novel cosine-parameterized Chebyshev polynomial. This approach derives the high-pass filter parameter $w_{k}^{h}$ with $\gamma_{j}^{h}$
113
+
114
+ substituting $\gamma_{j}$ in Equation (5). $\gamma_j^h$ can be calculated as:
115
+
116
+ $$
117
+ \gamma_ {j} ^ {h} = \sigma \left(\beta_ {a} ^ {h}\right) + \frac {1}{2} \sigma \left(\beta_ {b} ^ {h}\right) (1 + \cos \left((1 + j / K) \pi\right)). \tag {6}
118
+ $$
119
+
120
+ $\sigma = \mathrm{ReLU}(\cdot)$ to ensure the non-negative property of $\gamma_{j}$ and guarantee that $\gamma_j^h\leq \gamma_{j + 1}^h$ . Similarly, we obtain the low-pass filter parameter $w_{k}^{l}$ with $\gamma_j^l\geq \gamma_{j + 1}^l$ ..
121
+
122
+ $$
123
+ \gamma_ {j} ^ {l} = \sigma \left(\beta_ {a} ^ {l}\right) - \frac {1}{2} \sigma \left(\beta_ {b} ^ {l}\right) (1 + \cos ((1 + j / K) \pi)). \tag {7}
124
+ $$
125
+
126
+ We initialize $\beta_{a}^{h}$ and $\beta_{a}^{l}$ as 0 and 2, respectively, and set $\beta_{b}^{h}$ and $\beta_{b}^{l}$ to 2. It is important to note that $\beta$ is trainable during the contrastive learning process. This approach simplifies learning Chebyshev polynomials without labels by utilizing only two learnable parameters for each filter. Moreover, the cosine-parameterized strategy effectively emphasizes relevant frequencies while diminishing less significant ones, facilitating a smoother frequency distribution. In contrast, linear-increasing parameterization might result in an abrupt distribution, potentially less effective in capturing graph spectral properties. The effectiveness of this method will be further validated in Sec. 4.4. By applying distinct filters with $w_{k}^{h}$ and $w_{k}^{l}$ , we can decompose the graph into two biased views, each yielding its representation:
127
+
128
+ $$
129
+ \mathbf {Z} ^ {h} = \sum_ {k = 0} ^ {K} w _ {k} ^ {h} T _ {k} (\tilde {\mathbf {L}}) f _ {\theta} ^ {h} (\mathbf {X}), \quad \mathbf {Z} ^ {l} = \sum_ {k = 0} ^ {K} w _ {k} ^ {l} T _ {k} (\tilde {\mathbf {L}}) f _ {\theta} ^ {l} (\mathbf {X}). \tag {8}
130
+ $$
131
+
132
+ The notation $f_{\theta}(\mathbf{X})$ represents the application of the MLP on the node feature matrix $\mathbf{X}$ . After processing the features through filters and transformations, we can use these enhanced representations for contrastive learning objectives.
133
+
134
+ # 3.2. Swift: MLP Encoder and Cross-Pass Objective
135
+
136
+ Previous methods highlight the challenges of GNNs in terms of inference efficiency and scalability, primarily due to data dependency (Jia et al., 2020). In GCL, generating node representations typically requires message passing to aggregate neighborhood features. However, this aggregation process can be time-consuming, especially in latency-sensitive applications. To mitigate this issue, some research has focused on distillation methods, transferring knowledge from teacher GNNs to student MLPs for more efficient inference in industrial settings. Yet, these methods rely on supervised signals to train a high-quality teacher GNN and guide the student
137
+
138
+ ![](images/2478690a05a81b225efcf2ee44cdf67ea5c9135019b71412ed785ba104486aa0.jpg)
139
+ Figure 3. Architecture illustration of S3GCL: Spectral, Swift, Spatial Graph Contrastive Learning. We show the training process (left) and inference process (right) of S3GCL. Best viewed in color. Zoom in for details.
140
+
141
+ MLP, which is impractical in unsupervised scenarios.
142
+
143
+ To bridge this gap, we introduce an MLP encoder throughout the entire GCL training process, enabling its direct deployment for efficient inference. Initially, we input the original node feature matrix $\mathbf{X}$ into an $L$ -layer MLP encoder $\mathcal{F}_{\theta}$ , yielding representations $\mathbf{Z}^{f} = \mathcal{F}_{\theta}(\mathbf{X})$ . Furthermore, the MLP can be regarded as a full-pass filter, focusing solely on feature transformation (Luan et al., 2022). Consequently, this allows us to establish an optimization objective between the full-pass and biased-pass filtered representations. Drawing inspiration from the Info-NCE loss (Chen et al., 2020), we formulate our Cross-Pass objective as:
144
+
145
+ $$
146
+ \begin{array}{l} \mathcal {L} _ {c p} = \frac {- 1}{2 | \mathcal {V} |} \sum_ {v _ {i} \in \mathcal {V}} \left(\log \frac {\mathrm {s} \left(z _ {p} ^ {f} , z _ {p} ^ {l}\right)}{\sum_ {p \neq q} \mathrm {s} \left(z _ {p} ^ {f} , z _ {q} ^ {l}\right)} \right. \\ + \log \left. \frac {\mathrm {s} \left(z _ {p} ^ {f} , z _ {p} ^ {h}\right)}{\sum_ {p \neq q} \mathrm {s} \left(z _ {p} ^ {f} , z _ {q} ^ {h}\right)}\right). \\ \end{array}
147
+ $$
148
+
149
+ Here the $\mathrm{s}(z_p^f, z_p^h) = \exp(\omega(z_p^f, z_p^h) / \tau)$ , $\omega$ is the cosine similarity defined as: $\omega(z_p^f, z_p^h) = z_p^f \cdot z_p^h / (||z_p^f|| \times ||z_p^h||)$ . The parameter $\tau$ denotes the contrast temperature. This method offers guidance for node representation learning by encouraging the model to produce semantically consistent representations from two distinct graph views. Moreover, from a spectral perspective, this cross-pass process ensures that the MLP encoder captures more invariant information from the task-relevant properties of graph spectral signals. The MLP optimization with different graph frequency ranges also improves the generalizability of graphs.
150
+
151
+ Upon optimizing the cross-pass GCL objective, we obtain a refined MLP encoder capable of generating high-level and expressive node representations. However, MLPs inherently lack the ability to capture graph structural properties and context. Therefore in our initial studies, we observed that representations learned by MLPs tend to deteriorate and
152
+
153
+ become suboptimal. Thus, enhancing the graph context awareness of MLPs in these scenarios is imperative.
154
+
155
+ # 3.3. Spatial: Neighboring Positive Pairs
156
+
157
+ To address the issue of the MLP encoder limited awareness of graph context, we introduce our concept of positive pairs in the spatial domain. Prior research in spatial GNNs has underscored the significance of the spatial domain in graph learning (Wang et al., 2021; 2022), highlighting its role in enhancing model adaptability to graph structure and effectively managing long-range dependencies and heterogeneity. In our study, knowledge of the spatial domain provides contextual insights that enable the MLP encoder to more effectively comprehend the underlying structure and semantics of the graph. Because the low-pass filter emphasizes neighborhood similarity in the spatial domain, we initially identify structurally neighboring nodes as positive pairs and separate the Cross-Pass objective as delineated in Equation (9) into the Full-Low part, formulated as follows:
158
+
159
+ $$
160
+ \mathcal {L} _ {f l} = - \frac {1}{2 | \mathcal {V} |} \sum_ {v _ {i} \in \mathcal {V}} \frac {1}{| \mathcal {N} _ {i} ^ {\prime} |} \sum_ {v _ {p} \in \mathcal {N} _ {i} ^ {\prime}} \log \frac {\mathrm {s} \left(z _ {i} ^ {f} , z _ {p} ^ {l}\right)}{\sum_ {v _ {q} \in \mathcal {V} \backslash v _ {i}} \mathrm {s} \left(z _ {i} ^ {f} , z _ {q} ^ {l}\right)}. \tag {10}
161
+ $$
162
+
163
+ $\mathcal{N}_i^{\prime}$ denotes the positive sample set of local neighbors for node $v_{i}$ in node set $\nu$ . It is important to note that treating structurally neighboring nodes as positive pairs does not necessarily lead to identical representations. As suggested in (Altenburger & Ugander, 2018; Xiao et al., 2023), the phenomenon known as Monophily has been observed in both homophilic and heterophilic graphs. It implies that the attributes of a node's friends are likely to resemble those of the node's other friends, indicating two-hop similarities. For instance, nodes $v_{i}$ and $v_{k}$ share a common neighbor $v_{j}$ . The representations $z_{i}^{f}$ and $z_{k}^{f}$ are derived from the MLP, respectively. Equation (10) encourages these representations to
164
+
165
+ capture their shared one-hop neighborhood structure pattern, coming from spectral GNN as $z_{j}^{l}$ . This cross-architecture aligns these two-hop pairs implicitly and extends beyond the homophily assumption. We show one-hop and two-hop representations similarities in Figure 6.
166
+
167
+ Additionally, the high-pass filter indicates local neighborhood dissimilarity and global long-range similarity within the spatial domain. Therefore, we introduce semantically neighboring nodes as positive pairs, determined by feature-level similarity. Specifically, for each node $v_{i}$ , we identify its top- $k$ similar nodes based on original features, denoted as $\mathcal{N}_i'' = kNN(v_i,k)$ . This leads to the formulation of the Full-High part of our objective, as defined in Equation (9):
168
+
169
+ $$
170
+ \mathcal {L} _ {f h} = - \frac {1}{2 | \mathcal {V} |} \sum_ {v _ {i} \in \mathcal {V}} \frac {1}{| \mathcal {N} _ {i} ^ {\prime \prime} |} \sum_ {v _ {p} \in \mathcal {N} _ {i} ^ {\prime \prime}} \log \frac {\mathrm {s} \left(z _ {i} ^ {f} , z _ {p} ^ {h}\right)}{\sum_ {v _ {q} \in \mathcal {V} \backslash v _ {i}} \mathrm {s} \left(z _ {i} ^ {f} , z _ {q} ^ {h}\right)}. \tag {11}
171
+ $$
172
+
173
+ By integrating spatial relationships, the MLP encoder gains enhanced awareness of the graph context. This integration enables it to learn finer granularity features, which may be overlooked by solely relying on global spectral filter methods. Utilizing both components of the loss, we can establish our optimization objective as follows:
174
+
175
+ $$
176
+ \mathcal {L} = \alpha \mathcal {L} _ {f l} + (1 - \alpha) \mathcal {L} _ {f h}, \tag {12}
177
+ $$
178
+
179
+ where the coefficient $\alpha$ is employed to balance these two loss functions. The deployed MLP encoder is advantageous for inference efficiency, particularly in managing large-scale graphs or real-time applications. The complexity and scalability analysis can be found in Appendix E.
180
+
181
+ # 3.4. Discussion and Comprasion
182
+
183
+ Existing GCL methods, such as GRACE (Zhu et al., 2020) and GBT (Bielak et al., 2021), typically employ a shared primary encoder with the same architecture. These methods often apply topology or feature transformations to augment the graph data. In contrast, our S3GCL introduces an innovative cross architecture approach. Coupled with our unique spatial positive pairs, S3GCL is augmentation-free while still achieving competitive performance. PolyGCL (Chen et al., 2024) also integrates the learnable spectral GNN in GCL, however, they still struggle with the efficient inference issue. Additionally, current research in knowledge distillation, such as FF-G2M (Wu et al., 2023a), employs structurally neighboring samples similar to our approach. However, these studies still rely on labels to guide the student MLP encoder. In contrast, our method attains consistency between the MLP target encoder and the spectral GNN encoder through our unique cross-pass objective at the representation level.
184
+
185
+ Proposition 3.1. Given a node representation $z_{i}$ and its neighboring node representation $z_{j}$ , optimizing Equation (12) leads to maximizing their mutual information
186
+
187
+ $I(z_{j};z_{i})$ , while inherently minimizing $D_{KL}(z_j||z_i)$ :
188
+
189
+ $$
190
+ I \left(z _ {j}; z _ {i}\right) \sim \frac {1}{D _ {K L} \left(z _ {j} \mid \mid z _ {i}\right)} \tag {13}
191
+ $$
192
+
193
+ The proof is detailed in Appendix D. The proposition implies that information gain represented by $D_{KL}$ is negatively correlated to the mutual information. By optimizing the cross-pass objective, we maximize mutual information between structurally or semantically neighboring nodes. This strategy not only facilitates the transfer of knowledge from GNN to MLP without labels, but also enriches the MLP. The trained MLP can be leveraged for more efficient inference (Ding et al., 2021) or saving communication cost (Huang et al., 2023c;b).
194
+
195
+ One potential limitation of the proposed method is that, in the training phase, we still need polynomial filters to get representations. Although adopting MLP encoder can reduce the training time cost to a certain extent, its advantages can only be fully utilized in the inference phase. We believe this is also one of the directions in this field for the future.
196
+
197
+ # 4. Experiment
198
+
199
+ In this section, we comprehensively evaluate our proposed S3GCL by answering the main questions as follows.
200
+
201
+ - Q1: Superiority. Does S3GCL outperforms the existing state-of-the-art graph contrastive learning methods?
202
+ - Q2: Efficiency. How about the inference time efficiency of the proposed method?
203
+ - Q3: Effectiveness. Are proposed cosine-parameterized Chebyshev polynomial, MLP encoder, and spatial positive pairs effective?
204
+ - Q4: Sensitivity. What is the performance of the proposed method with different hyper-parameters?
205
+
206
+ The answers of Q1-Q3 are illustrated in 4.2-4.4, and sensitivity analyses (Q4) can be found in the Appendix G. The code is available at https://github.com/GuanchengWan/S3GCL.
207
+
208
+ # 4.1. Experimental Setup
209
+
210
+ # 4.1.1. REAL-WORLD DATASETS
211
+
212
+ To effectively evaluate our approach in practical scenarios, we employed 14 benchmark graph datasets of various sizes and features, including both homophilic and heterophilic graphs. Please see Appendix A for details about datasets.
213
+
214
+ # 4.1.2. EVALUATION PROTOCOL
215
+
216
+ To evaluate the proposed method, we follow (Velickovic et al., 2019) to adopt a standard linear evaluation protocol. In this approach, the representations generated by our MLP encoder are fixed and subsequently employed for training, validation, and testing using a straightforward linear classifier. We repeat this experiment five times for each dataset to
217
+
218
+ Table 1. Comparison with the state-of-the-art methods on homophilic (upper) and heterophilic (lower) real-world datasets. We report node classification accuracies $(\%)$ ( $\pm$ standard deviation) for downstream task performance. The best and second results are highlighted with bold and underline, respectively.
219
+
220
+ <table><tr><td>Methods</td><td>Cora</td><td>CiteSeer</td><td>PubMed</td><td>Amz-Comp</td><td>Amz-Photo</td><td>Coauthor-CS</td><td>Obgn-Arxiv</td><td>Rank</td></tr><tr><td>DGI</td><td>83.69±1.20</td><td>72.54±1.64</td><td>80.41±0.33</td><td>86.11±1.21</td><td>90.38±0.90</td><td>91.57±0.88</td><td>70.19±0.73</td><td>7.86</td></tr><tr><td>GMI</td><td>83.11±1.53</td><td>73.69±1.89</td><td>83.44±1.64</td><td>86.91±0.45</td><td>91.27±1.23</td><td>90.11±0.20</td><td>69.23±0.79</td><td>8.14</td></tr><tr><td>MVGRL</td><td>87.67±0.86</td><td>74.31±0.82</td><td>86.98±1.22</td><td>87.91±0.34</td><td>92.77±0.57</td><td>90.95±0.28</td><td>70.88±0.51</td><td>4.29</td></tr><tr><td>GRACE</td><td>86.13±0.56</td><td>71.84±1.79</td><td>82.33±0.91</td><td>81.33±1.74</td><td>92.11±1.41</td><td>91.33±0.65</td><td>70.96±0.31</td><td>7.43</td></tr><tr><td>GBT</td><td>84.53±0.38</td><td>73.88±1.91</td><td>79.96±1.32</td><td>83.11±0.78</td><td>92.87±0.48</td><td>92.49±0.42</td><td>70.32±0.22</td><td>6.0</td></tr><tr><td>BGRL</td><td>83.17±1.77</td><td>70.11±0.54</td><td>85.57±0.90</td><td>88.35±0.32</td><td>93.10±0.44</td><td>91.72±0.21</td><td>71.24±0.35</td><td>5.43</td></tr><tr><td>DSSL</td><td>86.23±1.06</td><td>73.99±0.90</td><td>86.31±1.34</td><td>83.11±0.73</td><td>92.78±0.91</td><td>92.03±0.30</td><td>70.13±0.25</td><td>5.43</td></tr><tr><td>GREET</td><td>86.78±1.11</td><td>74.56±1.82</td><td>86.38±0.87</td><td>87.79±1.18</td><td>93.24±0.78</td><td>92.33±0.65</td><td>71.09±0.43</td><td>3.14</td></tr><tr><td>SP-GCL</td><td>87.45±1.42</td><td>73.19±2.10</td><td>85.66±0.44</td><td>89.45±1.95</td><td>92.32±0.17</td><td>90.91±0.93</td><td>69.11±0.36</td><td>6.0</td></tr><tr><td>S3GCL</td><td>88.47±1.39</td><td>76.31±1.67</td><td>87.89±1.23</td><td>88.45±1.98</td><td>94.31±0.83</td><td>92.55±0.89</td><td>71.36±0.60</td><td>1.14</td></tr></table>
221
+
222
+ <table><tr><td>Methods</td><td>Cornell</td><td>Texas</td><td>Wisconsin</td><td>Actor</td><td>Roman-empire</td><td>Minesweeper</td><td>Tolokers</td><td>Rank</td></tr><tr><td>DGI</td><td>65.02±4.87</td><td>79.13±2.77</td><td>73.33±2.12</td><td>28.47±1.29</td><td>43.16±0.78</td><td>78.91±0.76</td><td>78.50±0.81</td><td>6.29</td></tr><tr><td>GMI</td><td>60.99±5.89</td><td>75.44±3.84</td><td>70.13±3.84</td><td>27.51±0.55</td><td>45.22±0.83</td><td>76.91±0.43</td><td>77.23±0.35</td><td>8.43</td></tr><tr><td>MVGRL</td><td>67.90±3.75</td><td>76.22±3.90</td><td>74.72±0.99</td><td>30.11±1.41</td><td>47.93±0.21</td><td>79.78±1.27</td><td>79.13±0.77</td><td>4.71</td></tr><tr><td>GRACE</td><td>50.82±4.78</td><td>75.32±2.11</td><td>74.91±2.78</td><td>29.23±0.21</td><td>51.58±0.98</td><td>78.99±1.45</td><td>78.06±0.90</td><td>7.14</td></tr><tr><td>GBT</td><td>54.66±3.10</td><td>72.30±2.14</td><td>65.32±1.34</td><td>23.42±0.55</td><td>38.77±0.54</td><td>77.32±0.64</td><td>79.43±1.00</td><td>8.14</td></tr><tr><td>BGRL</td><td>60.93±5.22</td><td>71.42±3.19</td><td>62.81±4.61</td><td>29.26±1.59</td><td>52.16±0.09</td><td>79.03±0.39</td><td>78.08±0.62</td><td>7.14</td></tr><tr><td>DSSL</td><td>76.78±3.68</td><td>75.92±2.11</td><td>81.33±3.66</td><td>33.31±0.86</td><td>61.29±0.44</td><td>78.76±0.70</td><td>78.42±0.85</td><td>4.43</td></tr><tr><td>GREET</td><td>75.23±4.96</td><td>78.33±4.78</td><td>83.11±3.91</td><td>36.42±0.65</td><td>63.37±1.91</td><td>79.05±1.21</td><td>79.21±0.79</td><td>2.86</td></tr><tr><td>SP-GCL</td><td>78.33±3.22</td><td>80.21±3.94</td><td>79.13±2.91</td><td>30.91±0.91</td><td>52.16±0.25</td><td>78.72±0.42</td><td>78.21±0.67</td><td>4.43</td></tr><tr><td>S3GCL</td><td>81.27±3.67</td><td>86.12±3.91</td><td>84.56±2.71</td><td>36.88±0.34</td><td>66.27±1.33</td><td>79.33±1.48</td><td>79.39±0.44</td><td>1.29</td></tr></table>
223
+
224
+ Table 2. Statistics during the training process with different methods in the Cora and Actor dataset. Please see details in Sec. 4.3.
225
+
226
+ <table><tr><td rowspan="2">Method</td><td colspan="4">Cora</td><td colspan="4">Actor</td></tr><tr><td>Augment ms ↓</td><td>Training s ↓</td><td>Inference ms ↓</td><td>Acc ↑</td><td>Augment ms ↓</td><td>Training s ↓</td><td>Inference ms ↓</td><td>Acc ↑</td></tr><tr><td>BGRL</td><td>129.1</td><td>4.32</td><td>8.33</td><td>83.17</td><td>132.8</td><td>9.87</td><td>9.69</td><td>29.26</td></tr><tr><td>GRACE</td><td>98.21</td><td>6.12</td><td>4.38</td><td>86.13</td><td>98.12</td><td>16.85</td><td>5.13</td><td>29.23</td></tr><tr><td>GREET</td><td>19272</td><td>43.21</td><td>1.32</td><td>86.78</td><td>54272</td><td>401.3</td><td>2.31</td><td>36.42</td></tr><tr><td>S3GCL</td><td>0</td><td>3.59</td><td>0.32</td><td>88.47</td><td>0</td><td>10.91</td><td>0.23</td><td>36.88</td></tr></table>
227
+
228
+ ensure the robustness and reliability of the results. Please see more details about implementation in Appendix C.
229
+
230
+ # 4.1.3. COMPARED METHODS
231
+
232
+ We compare ours against several popular graph contrastive learning methods: DGI (Velickovic et al., 2019), GMI (Peng et al., 2020), MVGRL (Hassani & Khasahmadi, 2020), GRACE (Zhu et al., 2020), GBT (Bielak et al., 2021) and BGRL(Thakoor et al., 2021). We also include more recent GCL methods considering the heterophilic graphs for convincing comparison: GREET (Liu et al., 2023f), DSSL (Xiao et al., 2022) and SP-GCL (Wang et al., 2023).
233
+
234
+ ![](images/f0c7034268ea08fc472bf8cf18f2546dee9a721855991039d5faa423dc2f22d0.jpg)
235
+ Figure 4. Inference Time (log scale) with datasets of different sizes. Please refer to Sec. 4.3 for details.
236
+
237
+ # 4.2. Superiority
238
+
239
+ In this section, we address Q1 by analyzing the superior performance of S3GCL. We conduct comprehensive experiments on both homophilic and heterophilic graphs, as detailed in Tab. 1. Our findings include the average test accuracy and standard deviation from five runs, along with a comparative ranking across all datasets. Three key observations emerge: 1) S3GCL exhibits competitive performance on typical homophilic graphs, such as social networks. For instance, in the Cora dataset, our method achieves a $0.8\%$ accuracy gain over the next best approach, indicating that
240
+
241
+ ![](images/3b1ce84d5374d736f4740cab577495138e886b7cb05f0216f5b361278fc8ae6c.jpg)
242
+ (a) BGRL
243
+
244
+ ![](images/66c5e77677617423576e3fe735d4f0da6d5507b80fa77cc318474d62bf6ff7f4.jpg)
245
+ (b) GRACE
246
+
247
+ ![](images/cce80a8f9edc89b6375e5aea29f2f28991c28255d8f56ba036aab02c1cdb7bad.jpg)
248
+ (c) GREET
249
+
250
+ ![](images/c57a2931b9137299fd0e00bc984d224d9e9ff7e472118ac23e889b2281d40ccf.jpg)
251
+ (d) S3GCL
252
+
253
+ Table 3. Ablation Study of different variants on four dataset.
254
+
255
+ <table><tr><td>Variants</td><td>Cora</td><td>PubMed</td><td>Actor</td><td>Roman-empire</td></tr><tr><td>GCN-MLP</td><td>85.32±1.11</td><td>86.97±0.45</td><td>34.32±0.57</td><td>57.32±1.22</td></tr><tr><td>w/o Param.</td><td>84.33±0.78</td><td>83.14±0.65</td><td>35.11±0.74</td><td>58.32±1.06</td></tr><tr><td>Linear Param.</td><td>87.81±1.44</td><td>86.42±0.78</td><td>36.23±0.13</td><td>65.77±1.54</td></tr><tr><td>InfoNCE Loss</td><td>84.97±1.46</td><td>85.62±0.98</td><td>35.87±0.35</td><td>63.89±0.91</td></tr><tr><td>w/o Struct. Pairs</td><td>86.87±1.35</td><td>86.67±0.68</td><td>36.21±0.47</td><td>64.48±1.03</td></tr><tr><td>w/o Seman. Pairs</td><td>87.54±0.58</td><td>87.11±0.93</td><td>35.42±0.66</td><td>63.11±0.55</td></tr><tr><td>S3GCL</td><td>88.47±1.39</td><td>87.89±1.23</td><td>36.88±0.34</td><td>66.27±0.1.33</td></tr></table>
256
+
257
+ incorporating spatial information enables the MLP to effectively capture graph context. 2) S3GCL demonstrates a consistent ability to generalize across graphs with varying homophily levels. Among 14 benchmark datasets, our method ranks the highest and attains state-of-the-art performance on 11 of them. This underscores the efficacy of different filters in handling diverse graph types. 3) Notably, the performance gains with S3GCL are more pronounced in heterophilic graphs than in homophilic ones, compared to other baseline methods. This suggests that the encoder plays a pivotal role in GCL, an aspect previously overlooked in other approaches. Furthermore, to intuitively underscore the effectiveness of S3GCL, we employ the t-SNE algorithm to visualize the learned node representations. The results, depicted in Figure 5, reveal that our method yields more distinct representations in the latent space compared to competing methods, further highlighting its superiority.
258
+
259
+ # 4.3. Efficiency
260
+
261
+ This section addresses Q2 by examining the inference time across datasets of varying sizes, as illustrated in Figure 4. The inference time for the self-supervised methods discussed in this paper is comparable to that of SAGE (Hamilton et al., 2017). Our analysis reveals that S3GCL consistently outperforms other GCL methods in terms of inference efficiency on almost all datasets, particularly with larger graphs. For instance, in the Ogbn-Arxiv dataset, a 2-layer BGRL requires $389.6\mathrm{ms}$ to obtain representations, whereas S3GCL necessitates only $2.23\mathrm{ms}$ , translating to an impressive $\times 174$ acceleration. This disparity in inference speed becomes increasingly pronounced with larger datasets.
262
+
263
+ Additionally, for smaller datasets, training time tends to outweigh inference time (Zheng et al., 2022b). Consequently,
264
+
265
+ ![](images/326809f18d8e7f317f4246d0c04b12bc3d0543b83b43df28b64440291a7be761.jpg)
266
+ Figure 5. t-SNE Visualization of representations with different methods on the Cora dataset. Please see Sec. 4.2 for details.
267
+ (a) Cora
268
+
269
+ ![](images/7d773452a2e95e63bdb2173d29d8ae77719aa95e0c0d30226256f591dbeaa0d1.jpg)
270
+ (b) Cornell
271
+
272
+ ![](images/8b6873f381f8a7de18de7baf9c73bfca83fffcd74ad3f63333dd22c7c8775698.jpg)
273
+ (a) Coefficient $\alpha$
274
+ Figure 7. Analysis on hyper-parameter. Performance with hyperparameter $\alpha$ and $k$ , where red and green represent the Cora and PubMed respectively, while yellow and blue represent the Romanempire and Actor respectively.
275
+
276
+ ![](images/21d0b1c0e515bbffe00f5c0e1a8773ff053e32479eca2b0bdab75f8befdce619.jpg)
277
+ Figure 6. Cosine Similarity assessed through pairs comprising one-hop neighbors, two-hop neighbors, and randomly sampled nodes on the Cora and Cornell dataset.
278
+ (b) Semantic Neighbors $k$
279
+
280
+ we also perform experiments focusing on the training process with smaller graphs, detailed in Tab. 2. The results demonstrate that S3GCL not only achieves a balance between accuracy and inference time but also requires similar or less training time compared to other baseline methods.
281
+
282
+ # 4.4. Effectiveness
283
+
284
+ In this section, we undertake ablation studies to address Q3. As detailed in Tab. 3, we first assess the effectiveness of our proposed cosine-parameterized Chebyshev polynomial. Our initial baseline is a basic cross-architecture GCL model, namely GCN-MLP contrastive learning (GCN-MLP). The results indicate that relying solely on a low-pass filter, based on the homophily assumption, leads to adaptability issues in graphs with lower homophily levels. Subsequently, we evaluate the original ChebNet with interpolation but without parameterization (w/o Param.) and a linear parameterization strategy (Linear Param.). ChebNet exhibits poor performance across all datasets. This is likely due to the absence of labels, a spectral GNN struggles to learn the optimal filter shape. The linear parameterization approach results in suboptimal performance, as it fails to allocate unbalanced attention across different frequency intervals, potentially causing the two graph views to remain not disentangled.
285
+
286
+ Further, we investigate the efficacy of spatial pairs through three experiments: removing structurally neighboring pairs
287
+
288
+ (w/o Struct. Pairs), removing semantically neighboring pairs (w/o Seman. Pairs), and removing both (InfoNCE Loss in Equation (9)). The findings affirm the significance of both structurally and semantically neighboring nodes in the spatial domain, which substantially enhances the MLP awareness of graph context. This enhancement is pivotal for the MLP encoder to learn more expressive representations.
289
+
290
+ # 5. Conclusion
291
+
292
+ In this paper, we address a significant gap in existing graph contrastive learning methods: their limited generalization across graphs with varying levels of homophily and challenges in efficient inference for applications. We empirically and theoretically analyze the relationship between frequency and homophily levels. We then introduce a cosine-parameterized Chebyshev polynomial, designed to adapt to different graph types and facilitate training spectral GNNs in label-scarce scenarios. To tackle the issue of latency in inference, we leverage an MLP encoder and incorporate spatial positive pairs to enhance its awareness of the graph context. Based on these insights, we propose the S3GCL framework, which is strategically designed to achieve both competitive generalizable performance and efficient inference.
293
+
294
+ # Acknowledgement
295
+
296
+ This work is supported by the National Natural Science Foundation of China under Grant (62361166629, 62176188, 623B2080).
297
+
298
+ # Impact Statement
299
+
300
+ 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 specifically highlighted here.
301
+
302
+ # References
303
+
304
+ Altenburger, K. M. and Ugander, J. Monophily in social networks introduces similarity among friends-of-friends. Nature human behaviour, 2(4):284-290, 2018.
305
+ Azabou, M., Ganesh, V., Thakoor, S., Lin, C.-H., Sathidevi, L., Liu, R., Valko, M., Velicković, P., and Dyer, E. L. Half-hop: A graph upsampling approach for slowing down message passing. In International Conference on Machine Learning, pp. 1341-1360. PMLR, 2023.
306
+ Belghazi, M. I., Baratin, A., Rajeshwar, S., Ozair, S., Bengio, Y., Courville, A., and Hjelm, D. Mutual information neural estimation. In International conference on machine learning, pp. 531-540. PMLR, 2018.
307
+
308
+ Bielak, P., Kajdanowicz, T., and Chawla, N. V. Graph barlow twins: A self-supervised representation learning framework for graphs. arXiv preprint arXiv:2106.02466, 2021.
309
+ Cai, X., Huang, C., Xia, L., and Ren, X. Lightgcl: Simple yet effective graph contrastive learning for recommendation. arXiv preprint arXiv:2302.08191, 2023.
310
+ Cao, J., Ku, D., Du, J., Ng, V., Wang, Y., and Dong, W. A structurally enhanced, ergonomically and human-computer interaction improved intelligent seat's system. *Designs*, 1(2):11, 2017. doi: 10.3390/designs1020011.
311
+ Chen, J., Lei, R., and Wei, Z. Polygcl: Graph contrastive learning via learnable spectral polynomial filters. In ICLR, 2024.
312
+ Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. A simple framework for contrastive learning of visual representations. In ICML, pp. 1597-1607, 2020.
313
+ Dai, E., Zhao, T., Zhu, H., Xu, J., Guo, Z., Liu, H., Tang, J., and Wang, S. A comprehensive survey on trustworthy graph neural networks: Privacy, robustness, fairness, and explainability. arXiv preprint arXiv:2204.08570, 2022.
314
+ Defferrard, M., Bresson, X., and Vandergheynst, P. Convolutional neural networks on graphs with fast localized spectral filtering. NeurIPS, 29, 2016.
315
+ Deshpande, Y., Sen, S., Montanari, A., and Mossel, E. Contextual stochastic block models. NeurIPS, 31, 2018.
316
+ Ding, M., Kong, K., Li, J., Zhu, C., Dickerson, J., Huang, F., and Goldstein, T. Vq-gnn: A universal framework to scale up graph neural networks using vector quantization. NeurIPS, 34:6733-6746, 2021.
317
+ Fatemi, B., El Asri, L., and Kazemi, S. M. Slaps: Self-supervision improves structure learning for graph neural networks. Advances in Neural Information Processing Systems, 34:22667-22681, 2021.
318
+ Gou, J., Yu, B., Maybank, S. J., and Tao, D. Knowledge distillation: A survey. *IJCV*, pp. 1789–1819, 2021.
319
+ Hamilton, W., Ying, Z., and Leskovec, J. Inductive representation learning on large graphs. NeurIPS, 30, 2017.
320
+ Hassani, K. and Khasahmadi, A. H. Contrastive multi-view representation learning on graphs. In ICML, pp. 4116-4126, 2020.
321
+ He, D., Liang, C., Liu, H., Wen, M., Jiao, P., and Feng, Z. Block modeling-guided graph convolutional neural networks. In AAAI, volume 36, pp. 4022-4029, 2022a.
322
+
323
+ He, D., Zhao, J., Guo, R., Feng, Z., Jin, D., Huang, Y., Wang, Z., and Zhang, W. Contrastive learning meets homophily: two birds with one stone. In ICML, pp. 12775-12789. PMLR, 2023.
324
+ He, M., Wei, Z., and Wen, J.-R. Convolutional neural networks on graphs with chebyshev approximation, revisited. NeurIPS, 35:7264-7276, 2022b.
325
+ Hinton, G., Vinyals, O., and Dean, J. Distilling the knowledge in a neural network. arXiv preprint arXiv:1503.02531, 2015.
326
+ Hu, W., Fey, M., Zitnik, M., Dong, Y., Ren, H., Liu, B., Catasta, M., and Leskovec, J. Open graph benchmark: Datasets for machine learning on graphs. NeurIPS, 33: 22118-22133, 2020.
327
+ Huang, K. and Lio, P. An effective universal polynomial basis for spectral graph neural networks. arXiv preprint arXiv:2311.18177, 2023.
328
+ Huang, W., Wan, G., Ye, M., and Du, B. Federated graph semantic and structural learning. 2023a.
329
+ Huang, W., Ye, M., Shi, Z., Li, H., and Du, B. Rethinking federated learning with domain shift: A prototype view. In CVPR, 2023b.
330
+ Huang, W., Ye, M., Shi, Z., Wan, G., Li, H., Du, B., and Yang, Q. A federated learning for generalization, robustness, fairness: A survey and benchmark. arXiv, 2023c.
331
+ Jia, Z., Lin, S., Ying, R., You, J., Leskovec, J., and Aiken, A. Redundancy-free computation for graph neural networks. In ACM SIGKDD, pp. 997-1005, 2020.
332
+ Jiang, H., Qin, F., Cao, J., Peng, Y., and Shao, Y. Recurrent neural network from adder's perspective: Carrylookahead rnn. Neural Networks, 144:297-306, December 2021.
333
+ Karhadkar, K., Banerjee, P. K., and Montúfar, G. Fosr: First-order spectral rewiring for addressing oversquashing in gnns. arXiv preprint arXiv:2210.11790, 2022.
334
+ Kipf, T. N. and Welling, M. Semi-supervised classification with graph convolutional networks. In ICLR, 2017.
335
+ Kong, K., Chen, J., Kirchenbauer, J., Ni, R., Bruss, C. B., and Goldstein, T. Goat: A global transformer on largescale graphs. In International Conference on Machine Learning, pp. 17375-17390. PMLR, 2023.
336
+ Lei, R., Wang, Z., Li, Y., Ding, B., and Wei, Z. Evennet: Ignoring odd-hop neighbors improves robustness of graph neural networks. NeurIPS, 35:4694-4706, 2022.
337
+
338
+ Lin, T. and Cao, J. Touch interactive system design with intelligent vase of psychotherapy for alzheimer's disease. *Designs*, 4(3):28, 2020. doi: 10.3390/designs4030028.
339
+ Liu, Y., Jin, M., Pan, S., Zhou, C., Zheng, Y., Xia, F., and Yu, P. Graph self-supervised learning: A survey. IEEE TKDE, 2022a.
340
+ Liu, Y., Tu, W., Zhou, S., Liu, X., Song, L., Yang, X., and Zhu, E. Deep graph clustering via dual correlation reduction. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 36, pp. 7603-7611, 2022b.
341
+ Liu, Y., Ding, K., Lu, Q., Li, F., Zhang, L. Y., and Pan, S. Towards self-interpretable graph-level anomaly detection. arXiv preprint arXiv:2310.16520, 2023a.
342
+ Liu, Y., Ding, K., Wang, J., Lee, V., Liu, H., and Pan, S. Learning strong graph neural networks with weak information. arXiv preprint arXiv:2305.18457, 2023b.
343
+ Liu, Y., Liang, K., Xia, J., Zhou, S., Yang, X., Liu, X., and Li, S. Z. Dink-net: Neural clustering on large graphs. In ICML, 2023c.
344
+ Liu, Y., Yang, X., Zhou, S., Liu, X., Wang, S., Liang, K., Tu, W., and Li, L. Simple contrastive graph clustering. IEEE TNNLS, 2023d.
345
+ Liu, Y., Yang, X., Zhou, S., Liu, X., Wang, Z., Liang, K., Tu, W., Li, L., Duan, J., and Chen, C. Hard sample aware network for contrastive deep graph clustering. In AAAI, volume 37, pp. 8914-8922, 2023e.
346
+ Liu, Y., Zheng, Y., Zhang, D., Lee, V., and Pan, S. Beyond smoothing: Unsupervised graph representation learning with edge heterophily discriminating. In AAAI, 2023f.
347
+ Liu, Z., Wan, G., Prakash, B. A., Lau, M. S., and Jin, W. A review of graph neural networks in epidemic modeling. arXiv preprint arXiv:2403.19852, 2024.
348
+ Luan, S., Hua, C., Lu, Q., Zhu, J., Zhao, M., Zhang, S., Chang, X.-W., and Precup, D. Revisiting heterophily for graph neural networks. NeurIPS, 35:1362-1375, 2022.
349
+ Pan, E. and Kang, Z. Beyond homophily: Reconstructing structure for graph-agnostic clustering. arXiv preprint arXiv:2305.02931, 2023.
350
+ Pan, S., Zheng, Y., and Liu, Y. Integrating graphs with large language models: Methods and prospects. IEEE Intelligent Systems, 39(1):64-68, 2024.
351
+ Pang, J., Wang, Z., Tang, J., Xiao, M., and Yin, N. Sa-gda: Spectral augmentation for graph domain adaptation. In Proceedings of the 31st ACM International Conference on Multimedia, pp. 309-318, 2023.
352
+
353
+ Peng, Z., Huang, W., Luo, M., Zheng, Q., Rong, Y., Xu, T., and Huang, J. Graph representation learning via graphical mutual information maximization. In WWW, pp. 259-270, 2020.
354
+ Platonov, O., Kuznedelev, D., Diskin, M., Babenko, A., and Prokhorenkova, L. A critical look at the evaluation of gnns under heterophily: are we really making progress? arXiv preprint arXiv:2302.11640, 2023.
355
+ Robbins, H. and Monro, S. A stochastic approximation method. AoMS, pp. 400-407, 1951.
356
+ Rozemberczki, B., Allen, C., and Sarkar, R. Multi-scale attributed node embedding. Journal of Complex Networks, 9(2):cnab014, 2021.
357
+ Sen, P., Namata, G., Bilgic, M., Getoor, L., Galligher, B., and Eliassi-Rad, T. Collective classification in network data. AI magazine, 29(3):93-93, 2008.
358
+ Shchur, O., Mumme, M., Bojchevski, A., and Gunnemann, S. Pitfalls of graph neural network evaluation. In NeurIPS Workshop, 2018.
359
+ Thakoor, S., Tallec, C., Azar, M. G., Munos, R., Velicković, P., and Valko, M. Bootstrapped representation learning on graphs. In ICLR Workshop, 2021.
360
+ Tian, Y., Dong, K., Zhang, C., Zhang, C., and Chawla, N. V. Heterogeneous graph masked autoencoders. In Proceedings of the AAAI Conference on Artificial Intelligence, 2023a.
361
+ Tian, Y., Zhang, C., Guo, Z., Zhang, X., and Chawla, N. Learning mlp's on graphs: A unified view of effectiveness, robustness, and efficiency. In ICLR, 2023b.
362
+ Tian, Y., Song, H., Wang, Z., Wang, H., Hu, Z., Wang, F., Chawla, N. V., and Xu, P. Graph neural prompting with large language models. In AAAI, 2024a.
363
+ Tian, Y., Zhang, C., Kou, Z., Liu, Z., Zhang, X., and Chawla, N. V. Ugmae: A unified framework for graph masked autoencoders. arXiv preprint arXiv:2402.08023, 2024b.
364
+ Velickovic, P., Fedus, W., Hamilton, W. L., Lio, P., Bengio, Y., and Hjelm, R. D. Deep graph infomax. In ICLR, 2019.
365
+ Wan, G., Huang, W., and Ye, M. Federated graph learning under domain shift with generalizable prototypes. In AAAI, 2024.
366
+ Wang, H., Yin, H., Zhang, M., and Li, P. Equivariant and stable positional encoding for more powerful graph neural networks. arXiv preprint arXiv:2203.00199, 2022.
367
+
368
+ Wang, H., Zhang, J., Zhu, Q., Huang, W., Kawaguchi, K., and Xiao, X. Single-pass contrastive learning can work for both homophilic and heterophilic graph. Transactions on Machine Learning Research, 2023.
369
+ Wang, R., Mou, S., Wang, X., Xiao, W., Ju, Q., Shi, C., and Xie, X. Graph structure estimation neural networks. In WWW, pp. 342-353, 2021.
370
+ Wang, X. and Zhang, M. How powerful are spectral graph neural networks. In ICML, pp. 23341-23362. PMLR, 2022.
371
+ Wu, L., Lin, H., Huang, Y., Fan, T., and Li, S. Z. Extracting low-/high-frequency knowledge from graph neural networks and injecting it into mlps: An effective gnn-to-mlp distillation framework. arXiv preprint arXiv:2305.10758, 2023a.
372
+ Wu, L., Lin, H., Huang, Y., and Li, S. Z. Quantifying the knowledge in gnns for reliable distillation into mlps. arXiv preprint arXiv:2306.05628, 2023b.
373
+ Wu, Z., Pan, S., Chen, F., Long, G., Zhang, C., and Philip, S. Y. A comprehensive survey on graph neural networks. IEEE TNNLS, pp. 4-24, 2020.
374
+ Xia, J., Wu, L., Wang, G., Chen, J., and Li, S. Z. Progcl: Rethinking hard negative mining in graph contrastive learning. arXiv preprint arXiv:2110.02027, 2021.
375
+ Xia, J., Wu, L., Chen, J., Hu, B., and Li, S. Z. Simgrace: A simple framework for graph contrastive learning without data augmentation. In WWW, pp. 1070-1079, 2022.
376
+ Xiao, T., Chen, Z., Guo, Z., Zhuang, Z., and Wang, S. Decoupled self-supervised learning for non-homophilous graphs. arXiv preprint arXiv:2206.03601, 2022.
377
+ Xiao, T., Zhu, H., Chen, Z., and Wang, S. Simple and asymmetric graph contrastive learning without augmentations. arXiv preprint arXiv:2310.18884, 2023.
378
+ Xiong, S., Yang, Y., Fekri, F., and Kerc, J. C. Tilp: Differentiable learning of temporal logical rules on knowledge graphs. arXiv preprint arXiv:2402.12309, 2024a.
379
+ Xiong, S., Yang, Y., Payani, A., Kerce, J. C., and Fekri, F. Teilp: Time prediction over knowledge graphs via logical reasoning. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 16112-16119, 2024b.
380
+ Xu, D., Cheng, W., Luo, D., Chen, H., and Zhang, X. Infogcl: Information-aware graph contrastive learning. In NeurIPS, pp. 30414-30425, 2021.
381
+
382
+ Xu, J., Dai, E., Luo, D., Zhang, X., and Wang, S. Learning graph filters for spectral gnns via newton interpolation. arXiv preprint arXiv:2310.10064, 2023.
383
+ Yang, X., Liu, Y., Zhou, S., Wang, S., Tu, W., Zheng, Q., Liu, X., Fang, L., and Zhu, E. Cluster-guided contrastive graph clustering network. arXiv preprint arXiv:2301.01098, 2023.
384
+ Yin, N., Wang, M., Chen, Z., De Masi, G., Xiong, H., and Gu, B. Dynamic spiking graph neural networks. In AAAI.
385
+ Yin, N., Feng, F., Luo, Z., Zhang, X., Wang, W., Luo, X., Chen, C., and Hua, X.-S. Dynamic hypergraph convolutional network. In 2022 IEEE 38th International Conference on Data Engineering (ICDE), pp. 1621-1634. IEEE, 2022a.
386
+ Yin, N., Shen, L., Li, B., Wang, M., Luo, X., Chen, C., Luo, Z., and Hua, X.-S. Deal: An unsupervised domain adaptive framework for graph-level classification. In Proceedings of the 30th ACM International Conference on Multimedia, pp. 3470-3479, 2022b.
387
+ Yin, N., Shen, L., Wang, M., Lan, L., Ma, Z., Chen, C., Hua, X.-S., and Luo, X. Coco: A coupled contrastive framework for unsupervised domain adaptive graph classification. In International Conference on Machine Learning, pp. 40040-40053. PMLR, 2023a.
388
+ Yin, N., Wang, M., Chen, Z., Shen, L., Xiong, H., Gu, B., and Luo, X. Dream: Dual structured exploration with mixup for open-set graph domain adaption. In The Twelfth International Conference on Learning Representations, 2023b.
389
+ You, Y., Chen, T., Sui, Y., Chen, T., Wang, Z., and Shen, Y. Graph contrastive learning with augmentations. NeurIPS, 33:5812-5823, 2020a.
390
+ You, Y., Chen, T., Sui, Y., Chen, T., Wang, Z., and Shen, Y. Graph contrastive learning with augmentations. In NeurIPS, pp. 5812-5823, 2020b.
391
+ Zhang, G., Zhang, S., and Yuan, G. Bayesian graph local extrema convolution with long-tail strategy for misinformation detection. ACM Transactions on Knowledge Discovery from Data, 2024.
392
+ Zhang, S., Liu, Y., Sun, Y., and Shah, N. Graph-less neural networks: Teaching old mlps new tricks via distillation. In ICLR, 2022.
393
+ Zheng, X., Liu, Y., Pan, S., Zhang, M., Jin, D., and Yu, P. S. Graph neural networks for graphs with heterophily: A survey. arXiv preprint arXiv:2202.07082, 2022a.
394
+
395
+ Zheng, X., Liu, Y., Bao, Z., Fang, M., Hu, X., Liew, A. W.-C., and Pan, S. Towards data-centric graph machine learning: Review and outlook. arXiv preprint arXiv:2309.10979, 2023a.
396
+ Zheng, Y., Pan, S., Lee, V., Zheng, Y., and Yu, P. S. Rethinking and scaling up graph contrastive learning: An extremely efficient approach with group discrimination. NeurIPS, 35:10809-10820, 2022b.
397
+ Zheng, Y., Zhang, H., Lee, V., Zheng, Y., Wang, X., and Pan, S. Finding the missing-half: Graph complementary learning for homophily-prone and heterophily-prone graphs. arXiv preprint arXiv:2306.07608, 2023b.
398
+ Zhou, H., Srivastava, A., Zeng, H., Kannan, R., and Prasanna, V. Accelerating large scale real-time gnn inference using channel pruning. arXiv preprint arXiv:2105.04528, 2021.
399
+ Zhu, Y., Xu, Y., Yu, F., Liu, Q., Wu, S., and Wang, L. Deep graph contrastive representation learning. In ICML, 2020.
400
+ Zhu, Y., Xu, Y., Liu, Q., and Wu, S. An empirical study of graph contrastive learning. arXiv preprint arXiv:2109.01116, 2021a.
401
+ Zhu, Y., Xu, Y., Yu, F., Liu, Q., Wu, S., and Wang, L. Graph contrastive learning with adaptive augmentation. In WWW, pp. 2069-2080, 2021b.
402
+
403
+ # A. Datasets Details
404
+
405
+ We evaluate S3GCL on seven homophilic graphs: Cora, CiteSeer, PubMed, Wiki-CS, Amazon-Computer, Amazon-Photo, CoAuthor-CS, and Ogbn-Arxiv (Sen et al., 2008; Shchur et al., 2018; Hu et al., 2020) and seven heterophilic graph data: Cornell, Texas, Wisconsin, Actor, Roman-empire, Minesweeper, and Tolokers (Rozemberczki et al., 2021; Platonov et al., 2023). Since other widely used datasets (i.e. Squirrel and Chameleon) are faced with drawbacks of the presenting duplicate nodes (Platonov et al., 2023), so we abandon them in our experiments. We utilize a commonly used split of $60\% / 20\% / 20\%$ for train/validation/test sets. For Obgn-Arxiv, we process the dataset in PyG using OGB public interfaces with the standard public split setting. The statistics of datasets are provided in Tab. 4, which also include homophily level $h$ . The details are introduced as follows:
406
+
407
+ - Cora, CiteSeer, and PubMed. These datasets are recognized as classic examples of homophilic citation networks. In these graphs, nodes are indicative of academic papers, while edges signify the citations connecting them. The papers are represented through bag-of-word features, and the research themes of the papers are reflected in the labels.
408
+ - Amazon Computers and Amazon Photo. In these Amazon-based co-purchase networks, each node corresponds to a product, with edges indicating frequent co-purchases between products. Product reviews are converted into bag-of-word feature representations, and the product categories serve as labels.
409
+ - CoAuthor CS. Extracted from the Microsoft Academic Graph, the network map co-authorship connections. Nodes represent authors, and co-authorship is marked by edges. The features are bag-of-words embeddings from paper keywords, and labels denote the authors' research areas.
410
+ - Ogbn-Arxiv. A large-scale directed graph from the arXiv's Computer Science section. Nodes represent scientific papers, with edges indicating citations. Features are derived from bag-of-words representations of titles and abstracts, and labels denote the paper's arXiv category. Primarily used for node classification tasks in graph machine learning.
411
+ - Cornell, Texas, and Wisconsin. Originating from the WebKB project, these heterophilic networks represent web pages from various university computer science departments. Nodes are these web pages, linked by edges that denote hyperlinks. The content of each page is encapsulated in bag-of-words features, with labels identifying the web page types.
412
+ - Actor. This unique heterophilic network maps the co-occurrence of actors within movies. Nodes symbolize actors, with edges revealing co-occurrences. Wikipedia pages provide keyword-based features, and the labels are constituted of words linked to the respective actors.
413
+ - Roman-emperor. Derived from the English Wikipedia article on the Roman Empire, this dataset represents words as nodes, connected based on their adjacency or syntactic dependency in the text. Nodes are classified based on their syntactic roles, with features sourced from FastText word embeddings.
414
+ - Minesweeper. A synthetic dataset inspired by the Minesweeper game. Nodes represent cells, connected to adjacent cells, with the task to identify nodes that are mines. Node features indicate the count of neighboring mines.
415
+ - Tolokers. Based on data from the Toloka crowdsourcing platform, this dataset includes nodes representing workers who participated in various projects. Edges connect workers who work on the same task. The objective is to predict banned workers, with features derived from their profile information and task performance.
416
+
417
+ Table 4. Statistics of datasets used in experiments.
418
+
419
+ <table><tr><td>Dataset</td><td>#Nodes</td><td>#Edges</td><td>#Classes</td><td>#Features</td><td>Homophily Level</td></tr><tr><td>Cora</td><td>2,708</td><td>5,278</td><td>7</td><td>1,433</td><td>0.810</td></tr><tr><td>Citeseer</td><td>3,327</td><td>4,552</td><td>6</td><td>3,703</td><td>0.736</td></tr><tr><td>Pubmed</td><td>19,717</td><td>44,324</td><td>3</td><td>500</td><td>0.802</td></tr><tr><td>Amz-Comp</td><td>13,752</td><td>574,418</td><td>10</td><td>767</td><td>0.777</td></tr><tr><td>Amz-Photo</td><td>7,650</td><td>287,326</td><td>8</td><td>745</td><td>0.827</td></tr><tr><td>Coauthor-CS</td><td>18,333</td><td>327,576</td><td>15</td><td>6,805</td><td>0.808</td></tr><tr><td>Obgn-Arxiv</td><td>169,343</td><td>1,166,243</td><td>40</td><td>128</td><td>0.655</td></tr><tr><td>Cornell</td><td>183</td><td>298</td><td>5</td><td>1,703</td><td>0.305</td></tr><tr><td>Texas</td><td>183</td><td>325</td><td>5</td><td>1,703</td><td>0.108</td></tr><tr><td>Wisconsin</td><td>251</td><td>515</td><td>5</td><td>1,703</td><td>0.196</td></tr><tr><td>Actor</td><td>7,600</td><td>30,019</td><td>5</td><td>932</td><td>0.219</td></tr><tr><td>Roman-empire</td><td>22,622</td><td>65,854</td><td>18</td><td>300</td><td>0.047</td></tr><tr><td>Minesweeper</td><td>10,000</td><td>78,804</td><td>2</td><td>7</td><td>0.683</td></tr><tr><td>Tolokers</td><td>11,758</td><td>1,038,000</td><td>2</td><td>10</td><td>0.595</td></tr></table>
420
+
421
+ # B. Synthetic Datasets
422
+
423
+ In this study, we employ the Contextual Stochastic Block Model (CSBM) (Deshpande et al., 2018; Xu et al., 2023) to create synthetic graphs. These graphs are characterized by adjustable edge probabilities within and between different classes. The fundamental concept is that nodes within the same class exhibit a consistent feature distribution. The generated graph is denoted as $\mathcal{G} \sim \mathrm{CSBM}(n, f, \sigma, \mu)$ , where $n$ represents the total node count, $f$ is the feature dimension, and $\sigma$ and $\mu$ are hyperparameters. The hyperparameters $\sigma$ and $\mu$ respectively influence the contributions from the graph's structure and the node features. We consider two classes of equal size, $c_{1}$ and $c_{0}$ , each comprising $n/2$ nodes. The CSBM generates features as follows:
424
+
425
+ $$
426
+ \mathbf {x} _ {i} = \sqrt {\frac {\mu}{n}} y _ {i} u + \frac {w _ {i}}{\sqrt {f}}, \tag {14}
427
+ $$
428
+
429
+ where $y_{i} \in \{-1, + 1\}$ indicates the label of node $v_{i}, \mu$ is the mean value of the Gaussian distribution, $u \sim \mathcal{N}(0,I / f)$ , and the elements of $w_{i}$ follow independent standard normal distributions. We define the average degree of the generated graph as $d$ , and the adjacency matrix $\mathbf{A}$ for the CSBM graph is described by:
430
+
431
+ $$
432
+ P \left(\mathbf {A} _ {i j} = 1\right) = \left\{ \begin{array}{l l} \frac {1}{n} (d + \sigma \sqrt {d}) & \text {w h e n} y _ {i} = y _ {j} \\ \frac {1}{n} (d - \sigma \sqrt {d}) & \text {w h e n} y _ {i} \neq y _ {j}. \end{array} \right. \tag {15}
433
+ $$
434
+
435
+ The homophily level $h$ is adjustable by modifying $\sigma = \sqrt{d(2h - 1)}$ , with a range of $-\sqrt{d} \leq \sigma \leq \sqrt{d}$ . A completely heterophilic graph corresponds to $\sigma = -\sqrt{d}$ , while a completely homophilic graph occurs when $\sigma = \sqrt{d}$ . In accordance with (Xu et al., 2023), we set $d = 5$ , $\mu = 1$ , $n = 3000$ , and $f = 4000$ to generate our synthetic dataset. By varying $\sigma$ , we can produce graphs with different levels of homophily for our case studies.
436
+
437
+ # C. Implementation Details
438
+
439
+ The experiments are conducted using NVIDIA GeForce RTX 3090 GPUs as the hardware platform, coupled with Intel(R) Xeon(R) Gold 6240 CPU @ 2.60GHz. The deep learning framework employed was Pytorch, version 1.11.0, alongside CUDA version 11.3. Regarding the network architecture, consistent with prevalent practices in GCL, we used GraphSage (Hamilton et al., 2017) as a 2-layer encoder for all baseline models. We utilize the MLP projection for aligning the outputs of two models. The hidden layer size was set to 1024 for each dataset. For optimization, Stochastic Gradient Descent (SGD) (Robbins & Monro, 1951) was chosen, featuring a momentum of 0.9 and a weight decay of $1e - 5$ . The learning rate was configured to $5e - 4$ during the training process and $1e - 2$ for the linear evaluation phase.
440
+
441
+ # D. Detailed Proofs
442
+
443
+ # D.1. Proof of Theorem 2.5
444
+
445
+ Theorem 4.4. Consider graph signals $x^{l}$ and $x^{h}$ processed by filters $g_{l}$ and $g_{h}$ , respectively. In heterophilic graphs (where $p < q$ ) and when $\Delta D(x^{h}) < \Delta D(x^{l})$ , there exists an integer $M(0 < M \leq N - 1)$ such that $\sum_{i = M}^{N - 1}g_h^2 (\lambda_i) \geq \sum_{i = M}^{N - 1}g_l^2 (\lambda_i)$ , with $0 = \lambda_0 \leq \lambda_1 \leq \ldots \leq \lambda_{N - 1} \leq 2$ .
446
+
447
+ Proof. Given a graph $\mathcal{G}$ generated by CSBM with intra-class probability $p$ and inter-class probability $q$ , and referring to Lemma 2.4, we have:
448
+
449
+ $$
450
+ \Delta D \left(x ^ {h}\right) - \Delta D \left(x ^ {l}\right) = 2 \mathbb {E} \left[ \left(\frac {p}{p + q} - \frac {q}{p + q}\right) \mathbf {f} \left(x ^ {h}\right) - \left(\frac {p}{p + q} - \frac {q}{p + q}\right) \mathbf {f} \left(x ^ {l}\right) \right]. \tag {16}
451
+ $$
452
+
453
+ With $\Delta D(x^h) < \Delta D(x^l)$ and $p < q$ , it follows that:
454
+
455
+ $$
456
+ \Delta D \left(x ^ {h}\right) - \Delta D \left(x ^ {l}\right) = 2 \mathbb {E} \left[ \frac {p - q}{p + q} [ \mathbf {f} \left(x ^ {h}\right) - \mathbf {f} \left(x ^ {l}\right) ] \right] < 0 \tag {17}
457
+ $$
458
+
459
+ Therefore, $\mathbf{f}(x^h) > \mathbf{f}(x^l)$ . By the definition of spectral signal frequency in Definition 2.2, we compute $\mathbf{f}(x)$ as follows:
460
+
461
+ $$
462
+ \mathbf {f} (x) = \frac {x ^ {\top} \mathbf {L} x}{2} = \sum_ {(u, v) \in \mathcal {E}} \frac {\left(x _ {u} - x _ {v}\right) ^ {2}}{2},
463
+ $$
464
+
465
+ $$
466
+ \mathbf {f} \left(x ^ {l}\right) = \frac {x ^ {l \top} \mathbf {L} x ^ {l}}{2} = \sum_ {(u, v) \in \mathcal {E}} \frac {\left(x _ {u} ^ {l} - x _ {v} ^ {l}\right) ^ {2}}{2}, \tag {18}
467
+ $$
468
+
469
+ $$
470
+ \mathbf {f} (x ^ {h}) = \frac {x ^ {h \top} \mathbf {L} x ^ {h}}{2} = \sum_ {(u, v) \in \mathcal {E}} \frac {(x _ {u} ^ {h} - x _ {v} ^ {h}) ^ {2}}{2},
471
+ $$
472
+
473
+ With $\mathbf{L}$ being real and symmetric, a set of orthonormal eigenvectors $v_{i}$ forms a complete basis in $\mathbb{R}^N$ . Any graph signal $x\in \mathbb{R}^{N}$ can be decomposed into a weighted sum of $v_{i}$ , represented as $x = \sum_{i = 0}^{N - 1}\alpha_{i}v_{i}$ , where $\alpha_{i} = s^{\top}v_{i}$ . $\alpha_{i}$ as the coefficient of $x$ at frequency component $i$ of graph $\mathcal{G}$ . Hence, the filtered graph signals are:
474
+
475
+ $$
476
+ x ^ {l} = g _ {l} (\mathbf {L}) x = \mathbf {U} g _ {l} (\boldsymbol {\Lambda}) \mathbf {U} ^ {\top} x = \left(\sum_ {i = 0} ^ {N - 1} g _ {l} \left(\lambda_ {i}\right) v _ {i} v _ {i} ^ {\top}\right) \left(\sum_ {i = 0} ^ {N - 1} \alpha_ {i} v _ {i}\right) = \sum_ {i = 0} ^ {N - 1} g _ {1} \left(\lambda_ {i}\right) \alpha_ {i} v _ {i}, \tag {19}
477
+ $$
478
+
479
+ $$
480
+ x ^ {h} = g _ {h} (\mathbf {L}) x = \mathbf {U} g _ {h} (\boldsymbol {\Lambda}) \mathbf {U} ^ {\top} x = \left(\sum_ {i = 0} ^ {N - 1} g _ {h} (\lambda_ {i}) v _ {i} v _ {i} ^ {\top}\right) \left(\sum_ {i = 0} ^ {N - 1} \alpha_ {i} v _ {i}\right) = \sum_ {i = 0} ^ {N - 1} g _ {2} (\lambda_ {i}) \alpha_ {i} v _ {i}.
481
+ $$
482
+
483
+ The spectral signal frequency is decomposed into:
484
+
485
+ $$
486
+ \mathbf {f} \left(x ^ {l}\right) = \left(\sum_ {i = 0} ^ {N - 1} g _ {l} \left(\lambda_ {i}\right) \alpha_ {i} v _ {i}\right) ^ {\top} \left(\sum_ {i = 0} ^ {N - 1} \lambda_ {i} v _ {i} v _ {i} ^ {\top}\right) \left(\sum_ {i = 0} ^ {N - 1} g _ {l} \left(\lambda_ {i}\right) \alpha_ {i} v _ {i}\right) = \sum_ {i = 0} ^ {N - 1} \lambda_ {i} \alpha_ {i} ^ {2} g _ {l} ^ {2} \left(\lambda_ {i}\right). \tag {20}
487
+ $$
488
+
489
+ $$
490
+ \mathbf {f} (x ^ {h}) = \left(\sum_ {i = 0} ^ {N - 1} g _ {h} (\lambda_ {i}) \alpha_ {i} v _ {i}\right) ^ {\top} \left(\sum_ {i = 0} ^ {N - 1} \lambda_ {i} v _ {i} v _ {i} ^ {\top}\right) \left(\sum_ {i = 0} ^ {N - 1} g _ {h} (\lambda_ {i}) \alpha_ {i} v _ {i}\right) = \sum_ {i = 0} ^ {N - 1} \lambda_ {i} \alpha_ {i} ^ {2} g _ {h} ^ {2} (\lambda_ {i}).
491
+ $$
492
+
493
+ Given $\mathbf{f}(x^h) > \mathbf{f}(x^l)$ , we deduce $\sum_{i=0}^{N-1} \lambda_i g_h^2(\lambda_i) > \sum_{i=0}^{N-1} \lambda_i g_l^2(\lambda_i)$ , leading to:
494
+
495
+ $$
496
+ \mathbf {f} \left(x ^ {h}\right) - \mathbf {f} \left(x ^ {l}\right) = \sum_ {i = 0} ^ {N - 1} \alpha_ {i} ^ {2} \left[ \lambda_ {i} g _ {h} ^ {2} \left(\lambda_ {i}\right) - \lambda_ {i} g _ {l} ^ {2} \left(\lambda_ {i}\right) \right] > 0 \tag {21}
497
+ $$
498
+
499
+ Then we move to prove that there exist an integer $M(0 < M \leq N - 1)$ such that $\sum_{i = M}^{N - 1} g_h^2(\lambda_i) \geq \sum_{i = M}^{N - 1} g_l^2(\lambda_i)$ . We prove this statement by contradiction. Suppose there does not exist an integer $M(0 < M \leq N - 1)$ that satisfies this condition. We have $\sum_{i = M}^{N - 1} g_h^2(\lambda_i) < \sum_{i = M}^{N - 1} g_l^2(\lambda_i)$ with $M(0 < M \leq N - 1)$ , then following inequalities exist:
500
+
501
+ $$
502
+ \left(\lambda_ {1} - \lambda_ {0}\right) \left[ g _ {h} ^ {2} \left(\lambda_ {1}\right) + g _ {h} ^ {2} \left(\lambda_ {2}\right) + \dots + g _ {h} ^ {2} \left(\lambda_ {N - 1}\right) \right] \leq \left(\lambda_ {1} - \lambda_ {0}\right) \left[ g _ {l} ^ {2} \left(\lambda_ {1}\right) + g _ {l} ^ {2} \left(\lambda_ {2}\right) + \dots + g _ {l} ^ {2} \left(\lambda_ {N - 1}\right) \right] \tag {22}
503
+ $$
504
+
505
+ $$
506
+ \left(\lambda_ {2} - \lambda_ {1}\right) \left[ g _ {h} ^ {2} \left(\lambda_ {2}\right) + \dots + g _ {h} ^ {2} \left(\lambda_ {N - 1}\right) \right] \leq \left(\lambda_ {2} - \lambda_ {1}\right) \left[ g _ {l} ^ {2} \left(\lambda_ {2}\right) + \dots + g _ {l} ^ {2} \left(\lambda_ {N - 1}\right) \right] \tag {23}
507
+ $$
508
+
509
+ 中
510
+
511
+ $$
512
+ \left(\lambda_ {N - 1} - \lambda_ {N - 2}\right) \left[ g _ {h} ^ {2} \left(\lambda_ {N - 1}\right) \right] \leq \left(\lambda_ {N - 1} - \lambda_ {N - 2}\right) \left[ g _ {l} ^ {2} \left(\lambda_ {N - 1}\right) \right] \tag {24}
513
+ $$
514
+
515
+ We assume that both filters $g_{l}$ and $g_{h}$ possess the same $\ell_2$ -norms. This assumption allows us to concentrate on the role of different frequency ranges and avoid trivial solutions:
516
+
517
+ $$
518
+ \lambda_ {0} \left[ g _ {h} ^ {2} \left(\lambda_ {0}\right) + g _ {h} ^ {2} \left(\lambda_ {1}\right) + \dots + g _ {h} ^ {2} \left(\lambda_ {N - 1}\right) \right] = \lambda_ {0} \left[ g _ {l} ^ {2} \left(\lambda_ {0}\right) + g _ {l} ^ {2} \left(\lambda_ {1}\right) + \dots + g _ {l} ^ {2} \left(\lambda_ {N - 1}\right) \right]. \tag {25}
519
+ $$
520
+
521
+ Summing both sides of the above inequalities and considering Equation (25), we deduce:
522
+
523
+ $$
524
+ \sum_ {i = 0} ^ {N - 1} \lambda_ {i} g _ {h} ^ {2} (\lambda_ {i}) \leq \sum_ {i = 0} ^ {N - 1} \lambda_ {i} g _ {l} ^ {2} (\lambda_ {i}),
525
+ $$
526
+
527
+ which contradicts the earlier results that $\sum_{i=0}^{N-1} \lambda_i g_h^2(\lambda_i) > \sum_{i=0}^{N-1} \lambda_i g_l^2(\lambda_i)$ . Therefore, the initial assumption is invalid, and there must exist an integer $M(0 < M \leq n-1)$ such that $\sum_{i=M}^{N-1} g_h^2(\lambda_i) \geq \sum_{i=M}^{N-1} g_l^2(\lambda_i)$ , which completes the proof.
528
+
529
+ # D.2. Proof of Prop. 3.1
530
+
531
+ Proposition 4.5. Given a node representation $z_{i}$ and its neighboring node representation $z_{j}$ , optimizing Equation (12) leads to maximizing their mutual information $I(z_{j};z_{i})$ , while inherently minimizing $D_{KL}(z_j||z_i)$ :
532
+
533
+ $$
534
+ I \left(z _ {j}; z _ {i}\right) \sim \frac {1}{D _ {K L} \left(z _ {j} \mid \mid z _ {i}\right)} \tag {26}
535
+ $$
536
+
537
+ Proof. Mutual Information Neural Estimation (MINE)(Belghazi et al., 2018) converts mutual information maximization into minimizing the InfoNCE loss Equation (12), where the positive pair is $z_{i}$ and its neighboring node representation $z_{j}$ . Utilizing the relationship between mutual information and information entropy, we derive:
538
+
539
+ $$
540
+ I \left(z _ {j}; z _ {i}\right) = H \left(z _ {j}\right) + H \left(z _ {i}\right) - H \left(z _ {j}, z _ {i}\right), \tag {27}
541
+ $$
542
+
543
+ where $H(\cdot)$ denotes information entropy, and $H(\cdot, \cdot)$ represents joint entropy. The Kullback-Leibler divergence, or information gain, in relation to information entropy is defined as:
544
+
545
+ $$
546
+ D _ {K L} \left(z _ {j} \| z _ {i}\right) = H \left(z _ {j}, z _ {i}\right) - H \left(z _ {j}\right). \tag {28}
547
+ $$
548
+
549
+ By integrating Equation (27) and Equation (28), we obtain:
550
+
551
+ $$
552
+ I \left(z _ {j}; z _ {i}\right) = H \left(z _ {i}\right) - D _ {K L} \left(z _ {j} \parallel z _ {i}\right). \tag {29}
553
+ $$
554
+
555
+ As per Equation (29), there is a negative correlation between $I(z_{j};z_{i})$ and $D_{KL}(z_j\parallel z_i)$ . This implies that maximizing $I(z_{j};z_{i})$ inherently minimizes $D_{KL}(z_j\parallel z_i)$ , thereby fulfilling the objective of transferring graph property knowledge from the GNN to the MLP:
556
+
557
+ $$
558
+ I \left(z _ {j}; z _ {i}\right) \sim \frac {1}{D _ {K L} \left(z _ {j} \mid \mid z _ {i}\right)}. \tag {30}
559
+ $$
560
+
561
+ # E. Complexity Analysis
562
+
563
+ In this subsection, we delve into the time complexity of S3GCL. The process of acquiring the semantically neighboring node set $\mathcal{N}_i^{\prime \prime}$ involves executing the k-nearest neighbors (kNN) algorithm on the entire graph. This step, a preprocessing phase external to formal training, is performed only once per dataset. Typically, computing a kNN graph requires a time complexity of $\mathcal{O}(N^2 D_f)$ , where $N$ is the number of nodes and $D_{f}$ represents the feature dimension. This computation becomes particularly intensive when $N$ is large. To mitigate this, following the approach in (Liu et al., 2023b), we initially apply the locality-sensitive approximation algorithm (Fatemi et al., 2021) in two separate batches. Subsequently, we merge the resulting local kNN graphs to form a comprehensive global kNN graph, ensuring potential connectivity between all nodes rather than just those within the same batch. This strategy effectively reduces the computational cost from $\mathcal{O}(N^{2}D_{f})$ to $\mathcal{O}(NBD_{f})$ , with $B$ denoting the batch size.
564
+
565
+ During the learning process, the computation for propagating $K$ -order polynomial filters is $\mathcal{O}(KE)$ , where $E$ represents the number of edges. The MLP encoder requires $\mathcal{O}(ND_fD)$ computations, with $D$ being the representation dimension. The projection step involves $\mathcal{O}(NDD_p)$ computations, where $D_p$ is the projection dimension. The complexity of our final loss Equation (12) is $\mathcal{O}(ND_pB')$ , with $B'$ as the batch size in contrastive learning. Overall, our method scales linearly with the number of nodes $N$ , demonstrating its scalability.
566
+
567
+ # F. Related Work
568
+
569
+ Graph Contrastive Learning. Within the domain of GCL (Liu et al., 2022a; Zhu et al., 2021a; Liu et al., 2023e;d; Yang et al., 2023; Liu et al., 2022b), contemporary studies have primarily focused on two distinct strategies: augmentation-based and augmentation-free techniques. Augmentation-based techniques, illustrated by GRACE (Zhu et al., 2020; Huang et al., 2023a; Wan et al., 2024), GCA(You et al., 2020a), and MVGRL(Hassani & Khasahmadi, 2020), concentrate on improving graph representation learning through diverse data augmentations such as edge dropping and attribute masking (You et al., 2020b). These techniques aspire to optimize mutual information across various graph perspectives. On the other hand, augmentation-free strategies, as demonstrated in studies such as SimGRACE (Xia et al., 2022) and BGRL (Thakoor et al., 2021), deviate from intricate data augmentation tactics. Alternatively, they depend on various graph encoders to create unique views, promoting the convergence of analogous node or class representations from these diverse perspectives (Yin et al., 2022b; 2023a; Tian et al., 2024b;a). In this study, we present a new, augmentation-free, yet effective cross-architecture GCL technique. It attains cross-pass uniformity between the node and its spatial neighbors, originating from full-pass MLP and biased-pass spectral GNN respectively.
570
+
571
+ Heterophilic Graphs. Despite significant advancements in GNNs (Zhang et al., 2024; Liu et al., 2024; Jiang et al., 2021; Yin et al., 2023b), most adhere to the homophily principle. However, real-world graphs often diverge from the homophily principle and exhibit heterophily, where connected nodes possess dissimilar features and distinct class labels (Zheng et al., 2023b; Pan & Kang, 2023). To tackle such graphs, numerous methods aimed at excelling in either heterophily or both homophily and heterophily contexts have emerged recently (Kong et al., 2023; Azabou et al., 2023; Pang et al., 2023). Among these, spectral GNNs have garnered notable success for their proficiency in learning filters of diverse shapes with labels, suitable for a variety of graphs. Contemporary works like GREET(Liu et al., 2023f) and NeCo (He et al., 2023) address non-homophily scenarios through edge discriminating augmentation and parameterized neighbor sampling, respectively. However, these approaches overlook the special consideration of the filter role, leading to suboptimal outcomes. In contrast, we propose a cosine-parameterized Chebyshev polynomial, enhancing generalization across both homophilic and heterophilic graphs without relying on labels.
572
+
573
+ Inference Acceleration on graphs. Recently, more and more research focuses on applying machine learning methods to industrial tasks (Cao et al., 2017; Lin & Cao, 2020). GNNs typically utilize message passing for feature aggregation from neighbors (Liu et al., 2023a; Zheng et al., 2023a; Pan et al., 2024), yet this process during inference can hinder latency-sensitive applications (Yin et al., 2022a; Yin et al.). Initial efforts in acceleration, such as quantization (Ding et al., 2021) and pruning (Zhou et al., 2021), failed to eliminate neighborhood dependencies. In response, GLNN (Zhang et al., 2022) introduces knowledge distillation (KD) (Hinton et al., 2015; Gou et al., 2021) to transfer knowledge from a teacher GNN to a student MLP, using the latter for inference acceleration. Subsequent studies (Tian et al., 2023b; Wu et al., 2023b) have enhanced this distillation process. Yet, these approaches primarily concentrate on well-trained teacher GNNs and label-supervised signals. Our work, in contrast, adopts a self-supervised approach, employing cross-pass GCL to enable MLP to acquire task-relevant knowledge and utilizing spatial positive nodes to foster graph-context awareness in MLP. The deployed MLP enjoyed both swift inference and competitive performance.
574
+
575
+ # G. Sensitivity
576
+
577
+ In this section, we analyze the method sensitivity to various hyper-parameters. Our findings, as depicted in Figure 7, indicate that our approach demonstrates low sensitivity to the number of semantic neighbors $k$ . Appropriate $k$ will enhance performance, but too much $k$ will introduce noise and affect the learning effect. Furthermore, we perform ablation studies on the coefficient $\alpha$ to highlight the respective roles of $\mathcal{L}_{fl}$ and $\mathcal{L}_{fh}$ in the learning process. The results, shown in Figure 6, indicate that S3GCL encourages greater similarity between one-hop and two-hop neighbors compared to randomly selected pairs, across both homophilic and heterophilic graphs. This suggests that S3GCL effectively makes nodes cognizant of their one-hop neighbor context, irrespective of homophily levels.
578
+
579
+ # H. Additional Experimental Results
580
+
581
+ # H.1. Representation Dimension
582
+
583
+ This section delves into the impact of varying dimensions on different datasets, with the findings presented in Figure 9. The results suggest that larger dimensions generally lead to improved outcomes for all graphs. However, it is observed that excessively small dimensions can hinder the learning process, while overly large dimensions might cause overfitting issues.
584
+
585
+ ![](images/59732b7e761bb9d2c653bb6e618c8badd9f57d4435b26bbc274e181cfb52bf47.jpg)
586
+ (a) Cora
587
+
588
+ ![](images/154176b66a3b652a216e3dd2e8132b781ee91b9aaaa074b54b8ddb2be5925e06.jpg)
589
+ (b) PubMed
590
+ Figure 8. Impact of varying representation dimensions on four datasets, where red and yellow represent the S3GCL and BGRL respectively, while blue and green represent the GRACE and GREET respectively.
591
+
592
+ ![](images/9e3ee773f97e6b1e0ce1bdb0fbf9204a7108c0594f1a7c134d3f45f48ed21121.jpg)
593
+ (c) Actor
594
+
595
+ ![](images/14121cc6763066f3855a83e52945478288adcc61fbb66213633d434368793696.jpg)
596
+ (d) Roman-empire
597
+
598
+ # H.2. Contrastive Learning Temperature
599
+
600
+ The diagnostic analysis regarding the contrastive learning temperature is presented in Figure 8. Overall, the performance remains stable across various contrastive learning temperatures, with the exception of some extreme cases (e.g., when $\tau$ is set to 0.01). Setting the temperature too high in contrastive learning can result in inadequate differentiation between similar and dissimilar pairs, leading to the loss of valuable information and reduced model sensitivity to subtle yet crucial distinctions. On the other hand, an excessively low temperature may cause the model to overemphasize minor differences between samples, potentially leading to overfitting and diminished generalization capabilities on novel, unseen data.
601
+
602
+ ![](images/e2b0417399b75bde6bd2d73f6157b58abaea594f09d573a3d7d121245f4c79e0.jpg)
603
+ (a) Cora
604
+ Figure 9. Impact of varying contrastive learning temperature $\tau$ on four datasets, where red and yellow represent the S3GCL and BGRL respectively, while blue and green represent the GRACE and GREET respectively.
605
+
606
+ ![](images/6399d0e0f27b838d8e4e027f1ce4a4df3fdf901701b29876eb6c5ad4f862f341.jpg)
607
+ (b) PubMed
608
+
609
+ ![](images/b38b810e59c403ef05a39e5ff1f345ab409919e34b47b87b4359a2a55457384d.jpg)
610
+ (c) Actor
611
+
612
+ ![](images/e2ce2c894b10fedbcb7d2a6421b1b79a507d8e18b4a107503c2ef7e1a44a887a.jpg)
613
+ (d) Roman-empire
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:ac632a740e7fa80f61e40b36fd50a53658dfa1c48e531bc801c84c2dfb57c469
3
+ size 966948
2024/S3GCL_ Spectral, Swift, Spatial Graph Contrastive Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/29912845-7c45-4d75-8f31-1d61213f4588_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9306d9f80d148f889482794b897cc170f152ed491ea2b5c51edae353ae95517e
3
+ size 9745640
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/full.md ADDED
@@ -0,0 +1,554 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # S3O: A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video
2
+
3
+ Hao Zhang $^{1}$ Fang Li $^{1}$ Samyak Rawlekar $^{1}$ Narendra Ahuja $^{1}$
4
+
5
+ # Abstract
6
+
7
+ Reconstructing dynamic articulated objects from a singular monocular video is challenging, requiring joint estimation of shape, motion, and camera parameters from limited views. Current methods typically demand extensive computational resources and training time, and require additional human annotations such as predefined parametric models, camera poses, and key points, limiting their generalizability. We propose Synergistic Shape and Skeleton Optimization (S3O), a novel two-phase method that forgoes these prerequisites and efficiently learns parametric models including visible shapes and underlying skeletons. Conventional strategies typically learn all parameters simultaneously, leading to interdependencies where a single incorrect prediction can result in significant errors. In contrast, S3O adopts a phased approach: it first focuses on learning coarse parametric models, then progresses to motion learning and detail addition. This method substantially lowers computational complexity and enhances robustness in reconstruction from limited viewpoints, all without requiring additional annotations. To address the current inadequacies in 3D reconstruction from monocular video benchmarks, we collected the PlanetZoo dataset. Our experimental evaluations on standard benchmarks and the PlanetZoo dataset affirm that S3O provides more accurate 3D reconstruction, and plausible skeletons, and reduces the training time by approximately $60\%$ compared to the state-of-the-art, thus advancing the state of the art in dynamic object reconstruction. The code is available on GitHub at: https://github.com/haoz19/LIMR.
8
+
9
+ $^{1}$ Department of Electrical and Computer Engineering, University of Illinois Urbana-Champaign, USA. Correspondence to: Hao Zhang <haoz19@illinois.edu>.
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
+ Table 1. Difference between S3O and existing methods. Detailed comparisons are provided in Supp. Sec.A.
14
+
15
+ <table><tr><td>Method</td><td>Shape Template</td><td>Skeleton Template</td><td>Rigging</td><td>Multiple Videos</td><td>Camera Pose</td><td>Learn Skeleton</td></tr><tr><td>SMAL</td><td>✓</td><td>✓</td><td>skeleton</td><td>×</td><td>×</td><td>×</td></tr><tr><td>LASR</td><td>×</td><td>×</td><td>bones</td><td>×</td><td>×</td><td>×</td></tr><tr><td>ViSER</td><td>×</td><td>×</td><td>bones</td><td>×</td><td>×</td><td>×</td></tr><tr><td>BANMo</td><td>×</td><td>×</td><td>bones</td><td>✓</td><td>✓</td><td>×</td></tr><tr><td>CASA</td><td>✓</td><td>✓</td><td>skeleton</td><td>×</td><td>×</td><td>×</td></tr><tr><td>WIM</td><td>×</td><td>×</td><td>skeleton</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>CAMM</td><td>×</td><td>✓</td><td>skeleton</td><td>✓</td><td>✓</td><td>×</td></tr><tr><td>RAC</td><td>×</td><td>✓</td><td>skeleton</td><td>✓</td><td>✓</td><td>×</td></tr><tr><td>MagicPony</td><td>×</td><td>✓</td><td>skeleton</td><td>✓</td><td>×</td><td>×</td></tr><tr><td>S3O</td><td>×</td><td>×</td><td>skeleton</td><td>×</td><td>×</td><td>✓</td></tr></table>
16
+
17
+ # 1. Introduction
18
+
19
+ Given a single monocular video of an object undergoing articulated motion caused by an underlying skeleton of rigid bones (pairs of bones connected at joints and each bone surrounded by nonrigid skin), our goal is to estimate the visible dynamic 3D shape and invisible skeleton pose. We represent the motion of the objects using a physical 3D skeleton (Magnenat et al., 1988; Baran & Popovic, 2007b; Wang et al., 2007; Xu et al., 2020) with certain poses. This task is highly challenging as it requires concurrent learning of shape, skeleton, motion, and camera parameters from a limited number of camera views. An error in any one of them can seriously impact the reconstruction results. Recent methods (Weng et al., 2022; Yang et al., 2021b; 2022; Luvizon et al., 2019) make use of virtual bones to represent the motion. These virtual bones do not model the physical skeleton as well as our physical bones (Fig.3 and Sec.4.3). Some methods (Yang et al., 2021a;b; 2022) calculate the displacement of each vertex in terms of the motion of the virtual bones and skinning weights using the blend skinning technique. They assign a bone to a group of nearby surface vertices without regard to the underlying structure of the mesh. As a result, these methods often fail to achieve physically plausible bone distribution as shown in Fig.3 (d). Other, model-based methods (Yang et al., 2023; Wu et al., 2023b; Kuai et al., 2023; Wu et al., 2022; Goel et al., 2023) use pre-defined shape and skeleton templates to attain a physically plausible skeleton and bone distribution; however, they require these as category-specific ground truth inputs, instead of estimating them from the video. This diminishes their generalizability to out-of-distribution (OOD)
20
+
21
+ objects. In terms of the amount of input, many recent NeRF-based methods (Yang et al., 2022; Noguchi et al., 2022; Wu et al., 2023b) require multiple videos, captured from a wide range of viewpoints, along with accurate camera calibration. Most current methods require substantial computational resources to obtain reasonable results, taking $8 - 30$ hours on A100 GPUs to train on a single object, which again reduces their usability.
22
+
23
+ In this work, we introduce Synergistic Shape and Skeleton Optimization (S3O), a two-phase methodology that (1) learns visible shape and the underlying skeleton, without reliance on pre-specified parametric models or additional human annotations, and (2) significantly reduces the training time by segregating the learning of distinct parameters such as shape, motion, and camera parameters in two phases: a coarse parametric model learning phase, and a motion and fine model learning phase.
24
+
25
+ In phase one, we automatically extract a canonical frame from the entire video, which depicts the object in standard poses (e.g., side view) via the horizontal-to-vertical distance ratio, lift its 2D skeleton to 3D, and learn a coarse rest shape. (Sec.3.2). The second phase is dedicated to learning the time-varying parameters, including the motion and camera parameters, and refining the shape and skeleton details. Here, we employ a method akin to the Expectation-Maximization (EM) algorithm, alternating the update of shape and skeleton. During the E-step, we utilize the current skeleton to deduce the bones and update the shape, time-varying camera parameters, and temporal transformation of each bone (motion). In the M-step, we begin by adapting the skeleton to align with the deformed mesh using skinning weights (Sec.3.4). Subsequently, utilizing the current mesh and time-varying parameters, we calculate the 2D motion and length of each bone, thereby forming physical constraints that guide the update of the skeleton's structure. Since current datasets mostly include minimal camera motion, they fail to test an algorithm's robustness against extensive camera movement. To overcome this, we introduce a new dataset, PlanetZoo, designed to assess algorithm performance under significant, long-range camera movements. Key contributions of our work include:
26
+
27
+ - We introduce S3O which estimates the 3D shape and skeleton of articulated objects from a single monocular video, without prior templates and ground truth camera poses, while significantly reducing training time and computational complexity over SOTA.
28
+ - We introduce a new dataset called PlanetZoo, to help evaluate 3D reconstruction methods from single monocular video.
29
+ - Experiments on standard and PlanetZoo videos show that S3O outperforms SOTA methods in shape recon
30
+
31
+ striction quality while requiring $60\%$ less training time.
32
+
33
+ - S3O displays superior generalization capabilities over RigNet (Xu et al., 2020) and Skeleton (Au et al., 2008) in reconstructing skeletons.
34
+
35
+ # 2. Related Work
36
+
37
+ 3D Skeleton Extraction for Reconstruction. Skeletons lack a uniform definition and are subject to varying requirements across different applications. Some efforts aim to capture the object's medial axis (Au et al., 2008), a process known as curve-skeleton extraction. For instance, voxel-thinning methods (Ma et al., 2002; Palágyi & Kuba, 1999; Wang & Lee, 2008) achieve this by iteratively pruning boundary voxels while preserving topology. In contrast, distance-field methods (Hassouna & Farag, 2005; Zhou & Toga, 1999; Wade, 2000; Bitter et al., 2001; Cornea et al., 2005; Ma et al., 2003) involve computing a distance transform for each interior point of a 3D object and then identifying ridges in the field to select a set of candidate voxels. Recent works (Xu et al., 2020; Baran & Popović, 2007a; Yao et al., 2023; Yu et al., 2017; Vlasic et al., 2008b) focus on learning skeletons, tailored to reflect the mobility of an articulated shape. These physical skeletons, influenced by more than just shape geometry, incorporate the placement of joints and bones based on the animator's understanding of the character's anatomy and anticipated deformations.
38
+
39
+ Model-Based and Class-Specific Approach. The model-based approach employs a parametric framework, incorporating structured mesh templates and associated skinning weights, to tackle the challenge of estimating 3D shape and pose. Extensive research (Zuffi et al., 2017; Xiang et al., 2019; Loper et al., 2023) dedicated to 3D reconstruction of human and animal forms makes use of these parametric models, which are informed by 3D scans of actual human figures or animal replicas. The latest regression techniques (Yang et al., 2023; Zuffi et al., 2019; Biggs et al., 2020; Badger et al., 2020; Kocabas et al., 2020) devised to deduce pose parameters have shown to yield satisfactory reconstruction outputs, though they typically depend on manually provided annotations like pose, keypoints, and rely on predefined parametric models for their training processes. Consequently, these model-based approaches encounter difficulties when applied to the reconstruction of objects in an open-world context and exhibit limited generalizability in the absence of comprehensive annotations. Current trends aim to minimize reliance on 3D annotations, opting for 2D annotations like silhouettes and key points (Goel et al., 2020; Kanazawa et al., 2018; Li et al., 2020b). Single-view image reconstruction achieves impressive results without explicit 3D annotations (Li et al., 2020a; Kanazawa et al., 2018; Kulkarni et al., 2020). MagicPony (Wu et al., 2023b)
40
+
41
+ learns 3D models for objects such as horses and birds from single-view images, but faces challenges with fine details and substantial deformations, especially for unfamiliar objects.
42
+
43
+ Reconstruction from Video. Instead of leveraging predefined parametric models, some works (Yang et al., 2021a;b; 2022) jointly learn the skin weights, shape, camera parameters, and motion from monocular video(s). This method requires only mask annotations, eliminating the need for additional labeling and significantly enhancing its generalizability in real-world scenarios. However, due to the absence of structural information about the object and annotations regarding camera parameters, this approach tends to be effective only under certain conditions, such as with videos that do not involve extensive camera movement and that contain a multitude of standard viewpoints, including side and front views. Moreover, the Non-Rigid Structure from Motion (NRSfM) technique (Torresani et al., 2008; Kumar, 2019) is capable of functioning without explicit 3D data. It processes 2D keypoints and optical flow derived from readily available methods (Teed & Deng, 2020). However, this process necessitates persistent point tracking, which is often impractical or unavailable/unreliable in real-world settings.
44
+
45
+ # 3. Method
46
+
47
+ # 3.1. Terminology and Overview
48
+
49
+ Towards articulated object reconstruction from video sequences, we propose a method, named Synergistic Shape and Skeleton Optimization (S3O), that concurrently learns parametric models and time-varying motion parameters. The parametric model includes canonical shape $\mathbf{M}_c$ , underlying skeleton $\mathbf{S}_{\mathbf{c}} = \{\mathbf{B} \in \mathbb{R}^{B \times 13}, \mathbf{J} \in \mathbb{R}^{J \times 5}\}$ , and skinning weights $\mathbf{W} \in \mathbb{R}^{N \times B}$ . The time-varying motion parameters include the camera parameters and articulation $\mathbf{T}^t = \{\mathbf{T}_0^t, \mathbf{T}_1^t, \dots, \mathbf{T}_B^t\}$ , $\mathbf{T}_b^t \in SE(3)$ , where $\mathbf{T}_0^t$ and $\mathbf{T}_{b > 0}^t$ are the root body and $B$ bone transformations. The quantities $B$ , and $J$ represent the count of bones and joints. Skeleton Definition. In the skeleton, bones $\mathbf{B}$ are further defined by Gaussian centers $\mathbf{B}(:, :3]$ , precision matrices $\mathbf{B}(:, 3:12]$ , and bone lengths $\mathbf{B}(:, 12]$ . Joints $\mathbf{J}$ are specified by connections between bones $\mathbf{J}(:, :2]$ and their spatial coordinates $\mathbf{J}(:, 2]$ .
50
+
51
+ Overview of S3O. As illustrated in Algorithm.1, the algorithm commences with a Coarse Shape Phase, wherein it selects one canonical frame from the video (Sec.3.2) to extract a 2D skeleton and derives an initial coarse 3D parametric model (Sec.3.2). This model forms the basis for the subsequent Motion & Fine Shape Phase, a process of time-varying parameters optimization and 3D shape and skeleton refinement (Sec.3.4). Similar to an Expectation-
52
+
53
+ Maximization approach, the algorithm alternates between adapting the skeletal structure to optimize shape and applying physical constraints to ensure the physical plausibility of the model. The optimization cycles through these steps, gradually improving the representation until convergence is achieved (the skeleton doesn't change), thus providing an accurate and dynamic 3D reconstruction of the articulated subjects in the video. Details of each step and the associated physical constraints are delineated in the respective sections of the paper below.
54
+
55
+ # 3.2. Coarse Model Learning
56
+
57
+ Canonical Frames and 2D Skeleton Extraction. Given a set of video frames, we first apply the medial axis transform (Lee, 1982; Ahuja & Chuang, 1997) to their silhouettes where we gradually remove the pixels from the border until we obtain a single-pixel-wide potential skeleton that preserves the original region's extent and connectivity. Along the 2D skeleton curve, we categorize the points into three distinct groups: junctions (points with three or more neighbors), endpoints (points with only one neighbor), and connections (points with two neighbors). Next, we remove the connections and reestablish connections between the remaining endpoints and junctions while preserving the overall topology as shown in Fig.1. By computing the skeleton's horizontal-to-vertical distance ratio across all frames, the frame with the highest ratio is selected as the canonical frame.
58
+
59
+ Generating Coarse 3D Skeleton and Mesh. We leverage the 2D skeleton of the canonical frame as the foundation for generating the coarse 3D skeleton following (Yao et al., 2022; 2023). The key idea in this transformation is the utilization of the plane of symmetry found in most articulated objects. Starting with the silhouette and the 2D skeleton, we create an ellipsoid around each edge (blue lines in Fig.1), ensuring it fits the silhouette as shown in Fig.14. Next, we identify the symmetric parts by the following features: (1) sum of average DINO features, (2) bone length, and (3) average radius of the ellipsoid similar to (Yao et al., 2023). For the symmetric parts, we set the z-coordinates to be on the opposite side of the symmetry plane. Next, we deform the neural surface to obtain mesh. We follow the deformation methods from (Lindell et al., 2022), which performs analysis-by-synthesis to supervise the shape reconstruction. To supervise deformations, we rely on silhouette, part silhouette, and semantic consistency loss described in Sec.D.
60
+
61
+ # 3.3. Time-Varying Articulation
62
+
63
+ Skinning Weights. W is designed to represent the probabilities that each vertex corresponds to $B$ semi-rigid parts. Following LASR (Yang et al., 2021a), the skinning weights
64
+
65
+ ![](images/d452fddaba3e3a7c23f3cdb03fcfa60836870e27c568bb751d285967b0f2d499.jpg)
66
+ Figure 1. Overview of Skeleton Learning of S3O: We start by deriving a 3D skeleton from 2D inputs and learning a coarse shape, represented in 'cyan' for the coarse and 'gray' for the current shape. The next step involves refining this shape by adjusting the skeleton, shifting bones, and expanding the structure. We then upsample the skeleton points for greater detail before applying final physical constraints to ensure proper results.
67
+
68
+ are modeled by the mixture of $B$ Gaussian ellipsoids (semirigid parts) as: $\mathbf{W}_{n,b} = \mathcal{F}e^{-\frac{1}{2} (\mathbf{X}_n - \mathbf{C}_b)^T\mathbf{Q}_b(\mathbf{X}_n - \mathbf{C}_b)}$ , where $\mathcal{F}$ is the factor of normalization and precision matrices $\mathbf{Q}_b = \mathbf{V}_b^T\boldsymbol{\Lambda}_b\mathbf{V}_b$ . In each Gaussian ellipsoid, $\mathbf{C} \in \mathbb{R}^{B \times 3}$ denotes Gaussian centers, $\mathbf{V} \in \mathbb{R}^{B \times 3 \times 3}$ defines the orientation and $\boldsymbol{\Lambda} \in \mathbb{R}^{B \times 3 \times 3}$ denotes the diagonal scale matrix. $\mathbf{X}_n$ is the 3D location of vertex $n$ .
69
+
70
+ Dynamic Rigidity. To guarantee the flexibility of the deformed articulated mesh without losing stability, following LIMR (Zhang et al., 2023), we leverage Dynamic Rigidity (DR) loss $\mathcal{L}_{\mathrm{DR}}$ to provide more freedom for the vertices close to the joints and less freedom for the ones between adjacent joints (along the bones), in that the vertices around joints are always more likely to be deformed. The freedom rules are derived from the proposed Rigidity Coefficient $\mathbf{R} \in \mathbb{R}^{N \times N}$ calculated by skinning weights $\mathbf{W} \in \mathbb{R}^{N \times B}$ .
71
+
72
+ Rigidity Coefficient $\mathbf{R} \in \mathbb{R}^{N \times N}$ is proposed to represent the freedom of each vertex relative to each neighbor vertex based on the a priori assumption on skinning weights $\mathbf{W}$ . For example, given $\mathbf{W} \in \mathbb{R}^{N \times B}$ , each vertex $\mathbf{X}_n$ is provided a discrete probability distribution regarding all bones. The denser the distribution, the higher the likelihood that the vertex is assigned to the core of only one specific semi-rigid part (bone). In stark contrast, the sparser the distribution, the more probable the vertex is attributed to the border between two semi-rigid parts, which is actually around the joint. We model the density of distribution by entropy $\mathcal{E}$ and simulate the rigidity coefficient $\mathbf{R}$ by the product of entropies:
73
+
74
+ $$
75
+ \mathbf {R} _ {i, j} = \mathcal {E} (i) ^ {- 1} \mathcal {E} (j) ^ {- 1}, \tag {1}
76
+ $$
77
+
78
+ $$
79
+ \mathcal {E} (i) = \sum_ {b = 0} ^ {B - 1} \mathbf {W} _ {i, b} \log_ {2} \mathbf {W} _ {i, b} + \lambda .
80
+ $$
81
+
82
+ Here, $\mathbf{R}$ is a skew-symmetric matrix so that $\mathbf{R}_{i,j} = \mathbf{R}_{j,i}$ and $\mathbf{R}_{i,j}$ signifies the rigidity coefficient between vertices $i$ and $j$ . Besides, the stabilization constant is set as $\lambda = 0.1$ by default avoiding being divided by zero. Notably, in practice, $\mathbf{R}_{i,j}$ will be set to 0 if there is not an edge connecting vertices $i$ and $j$ .
83
+
84
+ Given Rigidity Coefficient $\mathbf{R}$ , we define the Dynamic Rigid
85
+
86
+ ity (DR) loss $\mathcal{L}_{\mathrm{DR}}$ as following:
87
+
88
+ $$
89
+ \mathcal {L} _ {\mathrm {D R}} = \sum_ {i = 1} ^ {n} \sum_ {j \in N _ {i}} \mathbf {R} _ {i, j} \left| \left\| \mathbf {X} _ {i} ^ {t} - \mathbf {X} _ {j} ^ {t} \right\| _ {2} - \left\| \mathbf {X} _ {i} ^ {t + 1} - \mathbf {X} _ {j} ^ {t + 1} \right\| _ {2} \right|, \tag {2}
90
+ $$
91
+
92
+ where $\mathbf{X}_i^t$ means the coordinate of vertex $i$ at time $t$ . DR loss allows more adaptive freedom to deformation compared to the conventional ARAP (As Rigid As Possible) loss (Yang et al., 2021a). The latter encourages the constant distance between the adjacent vertices, which limits the movement and deformation of the vertices near the joints.
93
+
94
+ Blend Skinning. The mapping from surface vertex $\mathbf{X}_n^0$ in canonical space (time 0 by default) to $\mathbf{X}_n^t$ at time t in camera space is designed by blend skinning. The forward blend skinning is shown below:
95
+
96
+ $$
97
+ \mathbf {X} _ {n} ^ {t} = \mathbf {T} _ {0} ^ {t} \left(\sum_ {b = 1} ^ {B} \mathbf {W} _ {n, b} \mathbf {T} _ {b} ^ {t}\right) \mathbf {X} _ {n} ^ {0}, \tag {3}
98
+ $$
99
+
100
+ including the number of bones $\mathbf{B}$ , skinning weights $\mathbf{W}$ and the transformation $\mathbf{T}^t = \{\mathbf{T}_b^t\}_{b=0}^B$ at time $t$ , where $\mathbf{T}_0^t$ represents the root body transformation (Yang et al., 2021a) and $\mathbf{T}_{b>0}^t$ describes the bone transformation. Each $\mathbf{X}_n^0$ is first transformed by the weighted sum of each bone transformation $\mathbf{T}_{b>0}^t$ and then transformed by root body transformation $\mathbf{T}_0^t$ to achieve $\mathbf{X}_n^t$ . On the other hand, the backward blend skinning maps $\mathbf{X}_n^t$ back to $\mathbf{X}_n^0$ utilizing $\mathbf{T}^{-1}$ instead of $\mathbf{T}$ .
101
+
102
+ 2D Optical Flow Warping for Bone Motion. Our task is to discern the 2D motion trajectory of each semi-rigid segment covering a bone, from time $t$ to $t + 1$ . 2D optical flow is represented as $\mathbf{F}^{2\mathrm{D},t}$ , and the specific motion path for a bone is denoted as $\mathbf{F}^{B,t} \in \mathbb{R}^{B \times 2}$ . Essentially, a bone's movement is a cumulative effect of the movements of its exterior vertices. As shown in Fig.8, this process involves back-projecting each pixel from the 2D optical flow into the 3D canonical space. Due to the imperfect alignment between vertices and pixels, the surface motion trajectory $\mathbf{F}^{S,t} \in \mathbb{R}^{N \times 2}$ is calculated through bilinear interpolation.
103
+
104
+ A critical aspect is the inaccuracy of applying optical flow directions to vertices on the obscured side of the surface.
105
+
106
+ ![](images/6c2a2de977d7cc446512e5c1bbfd33d7c0f4e5ab246714ec886e1cc12829fefb.jpg)
107
+ RGB Images
108
+ Figure 2. Mesh Results. We show the reconstruction results of (a) LASR, (b) BANMo, and (c) Ours in the DAVIS's camel, cows and PlanetZoo's zebra, elephant, tiger, and giraffe. Top view of the reconstruction results are shown in Fig.9.
109
+
110
+ ![](images/76dce8107c1fdf796d5b797f2b83789005eb0cbd3612e5b88f4bc74abe6f87c4.jpg)
111
+ (a) LASR
112
+
113
+ ![](images/b978529fba6d1a0e60cc4d9a9fe7b0a7a233facbf89a866a73287310a243cc47.jpg)
114
+ (b) BANMo
115
+
116
+ ![](images/02dd2cef739c98b1f91099a6d71435ca1fee04e06b9c5615bee1d5c06dd79142.jpg)
117
+ (c) Ours
118
+
119
+ ![](images/95a8ba4cad938086edb67caea9974bd735641b98195ac7be60c8cef324b665bc.jpg)
120
+ RGB Images
121
+
122
+ ![](images/fcfe8ed8fabcbbd357f3c3d169f73adf3e9bfd06f0dc43fecfa86f4109145f9c.jpg)
123
+ (a) LASR
124
+
125
+ ![](images/585e336ec9d9dca1dbfaaff7c1f7fd825d224c152e86c8f604a92de49967c6f6.jpg)
126
+ (b) BANMo
127
+
128
+ ![](images/cc777a94959f01d2d586c88d395708df70d2b394710c3e84429a0bdd78a7cda3.jpg)
129
+ (c) Ours
130
+
131
+ ![](images/2eec75dd7f5a30014f16847de47c64bd9f1b836d14808ab8806c674af9025642.jpg)
132
+ RGB Images
133
+
134
+ ![](images/c6c4b7b480625da00e97d1e8bb8aeb87d831e8c09b9b996a1ad5615b844edd9d.jpg)
135
+ (a) LASR
136
+
137
+ ![](images/5d1c5880044f599663d4fb12bafeb37de0a3aa472c5851c7228cb1f9b1ab2806.jpg)
138
+ (b) BANMo
139
+
140
+ ![](images/ab1dd245cddc8b5fc41b1f8322b24c523aad89883b9c1ed36cbb7ba3b7306e99.jpg)
141
+
142
+ ![](images/7729c7bdfc75b15b908559325c5014aceac20f1569f645076686d67164b77540.jpg)
143
+
144
+ ![](images/36c394e19f0c629b09d23ad8daeb41ceeada1df08816ad0cce142176c9c9ceec.jpg)
145
+
146
+ ![](images/6b5ccc8625e66615fecd3726da6365cdc88c130a1e290bd7849c5bb2c124088c.jpg)
147
+ RGB Images
148
+
149
+ ![](images/d80227385a96c13142c21b236fa89a62e202a3e1e602061a938080f96de16c60.jpg)
150
+ Before Refinement
151
+ Figure 3. Skeleton and Skinning Weight Results. (a), (b), and (c) show the skeleton and skinning weights results from S3O with different bone motion similarity thresholds (0.99, 0.95, 0.90). (d) shows the bone distribution and skinning weights from LASR. Since each vertex on the surface is assigned to multiple bones (each given a different color) via the skinning weights, here we show the vertex in the color of the bone which has the maximum skinning weight for the vertex.
152
+
153
+ ![](images/1ebd3fec6045d17939cb0b4c6736d94952b1c8e57679c67d5f28665ba12b5820.jpg)
154
+ (a) Parametric Model $(\mathrm{T} = 0.99)$
155
+
156
+ (a) Parametric Model $(\mathrm{T} = 0.99)$
157
+
158
+ ![](images/3ba5ec3027f943aa3495044d2f90d6c38d87214f9a3d7c1a9a7380bb0df4a202.jpg)
159
+
160
+ ![](images/0cb53c8d92ae771ed3778abaf6da76e82e1675a76ffd39c7eba204a614675c46.jpg)
161
+ (b) Parametric Model $(\mathrm{T} = 0.95)$
162
+
163
+ (b) Parametric Model $(\mathrm{T} = 0.95)$
164
+
165
+ ![](images/b909e771951cabaf927685f629f05d242e81ac18c9be29b57801dddd126eadde.jpg)
166
+
167
+ ![](images/3704cb66dea4dec8c53c1625dc238f389a3eb5374bc7711dfea5113ce3d07f86.jpg)
168
+
169
+ ![](images/cb1f13d2b84af4049b5ebbdbe8cd1e73ed630e6878593c33d64b8386dc506519.jpg)
170
+ (c) Parametric Model $(\mathrm{T} = 0.90)$
171
+
172
+ ![](images/a38712192309fc30f5e77f421a60411e455dfe08316db96784de892f7a3ac325.jpg)
173
+
174
+ ![](images/cbd4f30d20a346a0a598ea9c5033f547f45427c63c9e9c25f683771abc449958.jpg)
175
+
176
+ ![](images/5b6d9663fb50d5b1ed3ec619c93b709bfbc12628d3a5adc34b64f4d871491b33.jpg)
177
+
178
+ ![](images/5e0ab491f8d1025203b7c7558c684a26c6c90cb91be65a0509b87cb2e6415230.jpg)
179
+ (d) LASR
180
+
181
+ To rectify this, a visibility matrix $\mathcal{V}^t\in \mathbb{R}^{N\times 1}$ is created, reflecting the current mesh configuration and viewpoint at time $t$ , determined via ray-casting. Optical flow for obscured vertices is thus disregarded.
182
+
183
+ The bone motion trajectory is then approximated by blending the optical flow of surface vertices. Considering the predefined skinning weights $\mathbf{W}$ and the derived surface flow path $\mathbf{F}^{S,t}$ , the bone motion direction is expressed as:
184
+
185
+ $$
186
+ \mathbf {F} _ {b} ^ {B, t} = \sum_ {n = 0} ^ {N - 1} \mathbf {W} _ {n, b} \mathbf {F} _ {n} ^ {S, t} \mathcal {V} _ {n} ^ {t}, \quad \mathbf {F} ^ {B, t} = \left\{\mathbf {F} _ {0} ^ {B, t}, \dots , \mathbf {F} _ {B - 1} ^ {B, t} \right\} \tag {4}
187
+ $$
188
+
189
+ Here, $\mathbf{F}_b^{B,t}$ represents the directional flow linked with bone $b$ , while $\mathbf{F}_n^{S,t}$ and $\mathcal{V}_n^t$ specify the directional flow and the visibility of vertex $n$ , respectively.
190
+
191
+ # 3.4. Motion and Fine Shape Phase
192
+
193
+ Our approach is grounded in two interdependent sets of learnable parameters. The first set includes 3D shape and time-varying motion parameters. The second set pertains to the underlying skeleton, encompassing the bones and articulation joints. To achieve a harmonized optimization of these parameter sets, we update both parameter sets iteratively similar to the EM algorithm. During the E-step, the skeleton remains fixed, and the first set of parameters is then updated based on the reconstruction loss. Subsequently, using the updated parameters, in the M-step we adjust the skeleton to match the current mesh and then determine the bone motion direction and bone lengths for constructing
194
+
195
+ physical constraints. Such constraints are utilized for optimizing the skeleton. The skeleton optimization consists of three operations: (1) bone shifting, (2) skeleton growth, and (3) physically constrained refinement. Since the coarse shape phase typically yields only an approximate shape, the second phase involves significant deformations and scale changes to the mesh in each iteration, as shown in Fig.1. The purpose of the Bone Shifting and Skeleton Growing operations is to automatically update the skeleton so that its structure aligns with the revised mesh.
196
+
197
+ Bone Shifting. We start with the assumption that, although each vertex of the mesh undergoes displacement, their relative position remains unchanged as the coarse shape already being closely representative of the actual shape. Therefore, we update the Gaussian center for the bone with the centroid of the corresponding semi-rigid part:
198
+
199
+ $$
200
+ \mathbf {B} [ b,: 3 ] = \frac {1}{| \mathbf {I} _ {b} |} \sum_ {i \in \mathbf {I} _ {b}} \mathbf {M} _ {c} [ i ], \tag {5}
201
+ $$
202
+
203
+ where $b$ is the index of bone, $\mathbf{I}_b$ is a set of vertex indexes that belong to the semi-rigid part corresponding to bone $b$ . $\mathbf{W}_{\mathrm{one - hot}}[i,:] = \mathbf{W}[\mathbf{W}[i,:]] == \mathrm{argmax}_i\mathbf{W}[I,:]]$ , $\mathbf{W}_{\mathrm{one - hot}}\in \{0,1\}^{N\times B}$ , and $\mathbf{I}_b = \mathbf{W}_{\mathrm{one - hot}} == 1$ .
204
+
205
+ Skeleton Growing. The coarse shape often fails to accurately reconstruct the fine structures at the extremities of an object, such as limbs, which mostly need to be built during the second phase. This results resulting in an incomplete coarse skeleton. To complete it during the second phase, we introduce the skeleton growth that automatically extends the
206
+
207
+ Table 2. 2D Keypoint Transfer Accuracy. This table presents the 2D keypoint transfer accuracy on DAVIS and PlanetZoo datasets. For classes from DAVIS (camel, cow) and PlanetZoo (giraffe, tiger), we carry out multiple executions and report the mean and standard deviation of the observed accuracy in each case. Time is in GPU hours on A100. Note that the results for LASR and ViSER here are from our executions of the codes provided by the authors. The authors in their papers provide a single number for accuracy. It is not clear if this represents the results of a single run, or mean/min/max of multiple runs. This makes our numbers hard to compare with those reported by the authors in their papers.
208
+
209
+ <table><tr><td rowspan="2">Method</td><td colspan="7">DAVIS</td><td colspan="8">PlanetZoo</td></tr><tr><td>camel</td><td>cow</td><td>dog</td><td>bear</td><td>dance-twirl</td><td>Ave.</td><td>Ave. time</td><td>giraffe</td><td>tiger</td><td>elephant</td><td>bear</td><td>zebra</td><td>deer</td><td>Ave.</td><td>Ave. time</td></tr><tr><td>ViSER</td><td>71.7 ±4.4</td><td>73.7 ±4.1</td><td>65.1</td><td>72.7</td><td>78.3</td><td>72.3</td><td>10.4</td><td>51.2 ±4.6</td><td>68.4 ±4.3</td><td>68.9</td><td>60.3</td><td>55.7</td><td>57.3</td><td>60.3</td><td>12.1</td></tr><tr><td>LASR</td><td>75.2 ±2.9</td><td>80.3 ±2.4</td><td>60.3</td><td>83.1</td><td>55.3</td><td>70.8</td><td>9.1</td><td>56.3 ±3.7</td><td>70.4 ±2.1</td><td>69.5</td><td>63.1</td><td>57.4</td><td>60.3</td><td>62.8</td><td>10.2</td></tr><tr><td>S3O</td><td>79.8 ±1.1</td><td>83.2 ±0.7</td><td>67.3</td><td>86.7</td><td>84.7</td><td>80.4 ↑5.7</td><td>3.8 ↓5.3</td><td>63.1 ±0.8</td><td>72.8 ±0.6</td><td>71.3</td><td>66.4</td><td>61.5</td><td>62.1</td><td>66.2↑3.4</td><td>4.2↓6.0</td></tr></table>
210
+
211
+ ![](images/2f731fef1cdfb682d338841287dc07101c4353fa0778aeeabf145a18ca475d5b.jpg)
212
+ Figure 4. Skeleton Comparison. We compared the learned skeleton for tiger, elephant, camel from our approach with RigNet (Xu et al., 2020) and Skeleton (Au et al., 2008).
213
+
214
+ skeleton based on the new extremity structures formed by the mesh, ensuring the skeleton's growth is both systematic and reflects the nuanced changes in the mesh structure. The skeleton growth operates by identifying end parts ${}^{1}$ and subdividing them into 2 distinct parts along the direction of the skeletal edge if the maximum distance within the end part is more than twice of the initial value. Once identified, the algorithm computes the direction vector of the growth by taking the normalized vector pointing to the endpoint from the connected point on the skeleton. The vertices assigned to the endpoint are then projected onto this direction vector, and their distribution along the edge is used to subdivide them into $k$ sections. Each section's centroid is calculated, and new skeletal points (bones) are added at these centroid locations. These points are interconnected to form new edges that replace the original edge, effectively growing the skeleton.
215
+
216
+ Physically Constrained Refinement. The skeleton is refined by adhering to two physical principles: (1) The fusion of bones $\mathbf{B}_b$ and $\mathbf{B}_{b'}$ is executed when they exhibit synchronized movements throughout all $\mathbf{H}$ frames $\{\mathbf{I}_f\}_{f=0}^{\mathbf{H}}$ , suggesting they form a single semi-rigid structure. (2) A joint is established between $\mathbf{J}_j$ and $\mathbf{J}_{j'}$ upon observing significant distance variations in certain frames.
217
+
218
+ Accordingly,
219
+
220
+ $$
221
+ \begin{array}{l} \text {i f} \max _ {f} \operatorname {L e n g t h} \left(\mathbf {B} _ {b ^ {\prime}} ^ {f}\right) - \min _ {f} \operatorname {L e n g t h} \left(\mathbf {B} _ {b ^ {\prime}} ^ {f}\right) > t _ {d} (6) \\ \Rightarrow \text {c r e a t e} \widetilde {\mathbf {J}}; (7) \\ \end{array}
222
+ $$
223
+
224
+ $$
225
+ \begin{array}{l} \operatorname * {i f} \min _ {f} \mathcal {S} \left(\mathbf {F} _ {B} ^ {b ^ {\prime}, f}, \mathbf {F} _ {B} ^ {b ^ {\prime \prime}, f}\right) > t _ {o} (8) \\ \Rightarrow \operatorname {m e g r e} \mathbf {B} _ {b ^ {\prime}} \text {w i t h} \mathbf {B} _ {b ^ {\prime \prime}} \text {t o g e n e r a t e} \widetilde {\mathbf {B}}, (9) \\ \end{array}
226
+ $$
227
+
228
+ where $S(\mathbf{a},\mathbf{b}) = \frac{\mathbf{a}\cdot\mathbf{b}}{||\mathbf{a}||_2\times||\mathbf{b}||_2}$ calculates the cosine similarity. Moreover, the position of $\widetilde{\mathbf{J}}$ is determined by averaging the coordinates of $\mathbf{J}_j$ and $\mathbf{J}_{j^{\prime}}$ , after which their connection is removed and redirected to $\widetilde{\mathbf{J}}$ . The formulation $\widetilde{\mathbf{B}} = w_{b}^{\prime}\mathbf{B}_{b^{\prime}} + w_{b^{\prime \prime}}\mathbf{B}_{b^{\prime \prime}}$ , where $w_{b}^{\prime} = \frac{\exp\sum_{b = b^{\prime}}\mathbf{W}_{n,b}}{\exp\sum_{b = b^{\prime}}\mathbf{W}_{n,b} + \exp\sum_{b = b^{\prime \prime}}\mathbf{W}_{n,b}}$ , is applied to Gaussian centers $\mathbf{C}$ and precision matrices $\mathbf{Q}$ . However, the new bone length is directly derived from the joint coordinates at the extremities of the two bones.
229
+
230
+ Joint Positions and Bone Lengths Calculation. Utilizing the current bone coordinates $\mathbf{B}$ , the inter-bone links $\mathbf{J}[:,2]$ , and the skinning weights $\mathbf{W}$ , the procedure begins by locating the vertices $V_{i,j}$ situated directly above the joint $\mathbf{J}_{i,j}$ that connect bones $i$ and $j$ . A vertex $v_{n}$ is classified as part of $V_{i,j}$ if its corresponding weights for bones $i$ and $j$ ( $\mathbf{W}_{n,i}$ and $\mathbf{W}_{n,j}$ ) meet or exceed a threshold value $t_r$ (commonly 0.4). The position of the joint $\mathbf{J}_{i,j}$ is then ascertained by averaging the coordinates of the vertices in $V_{i,j}$ , formulated as $\mathbf{J}_{i,j}[:,2:] = \frac{\sum v_n \in V_{i,j} \mathbf{X}_n}{|V_{i,j}|}$ , where $\mathbf{X}_n$ denotes the coordinates of $v_{n}$ . Finally, upon acquiring each joint's coordinates, we compute the lengths of bones by determining the distance between the coordinates of joint pairs.
231
+
232
+ # 3.5. Losses and Regularization
233
+
234
+ In the coarse shape phase, S3O leverages a reconstruction loss, which consists of silhouette loss, optical flow loss, texture loss, perceptual loss, DINO feature loss, and smooth, motion, and symmetric regularizations. In the fine shape phase, unlike the coarse shape phase, we eliminate the DINO feature loss. While the use of DINO features effectively aids in quickly learning a coarse model in the initial phase, their limited accuracy eventually hampers the acquisition of a more detailed shape in later stages. More
235
+
236
+ ![](images/22e861d6ca6163880b286f0ed175249bcdd349547db41d56ba64282ca4fca925.jpg)
237
+ Figure 5. Rendering Results of S3O and LASR on camel video.
238
+
239
+ ![](images/dc0761fd2ee97edc1235b9d6bf61988b2f48f15e0982e8d944c37e39783ab46a.jpg)
240
+ Figure 6. Enhanced Physical Plausibility with Dynamic Rigidity. (a), (b), and (c) show the results of S3O with Dynamic Rigidity (DR), with As-Rigid-As-Possible (ARAP), and without both regularization terms.
241
+
242
+ details and discussion are in Sec.D.
243
+
244
+ # 4. Experiments and Discussion
245
+
246
+ In this section, we conduct a detailed evaluation of our approach, focusing on two main areas: 3D Shape Reconstruction (Sec.4.2) and 3D Skeleton Reconstruction (Sec.4.3). For shape reconstruction, we compare our method with state of art techniques including Hi-lASSIE (Yao et al., 2023), LASR (Yang et al., 2021a), and BANMo (Yang et al., 2022). All the requirements for S3O, LASR, and Hi-LASSIE are the same while BANMo needs an extra pre-trained PoseNet to obtain the initial camera pose. For skeleton reconstruction, we use RigNet (Xu et al., 2020) and Skeleton (Au et al., 2008) as benchmarks. Note that RigNet is trained with ground truth 3D annotations, such as skinning weights and skeletons, while S3O and Skeleton (Au et al., 2008) do not require any 3D annotation. More experimental results and comparisons are given in Sec.E. Details and results for the benchmarks and implementation are given in Sec.B.
247
+
248
+ # 4.1. Datasets
249
+
250
+ PlanetZoo. We introduce here a curated dataset named PlanetZoo, which includes RGB synthetic videos of different animals with around 100 frames each. PlanetZoo covers a 180-degree visual field, captured by a moving camera to allow better evaluation of 3D reconstruction when imaging parameters must also be dynamically estimated due to the moving camera, and over a large visual field. In addition, following BADJA (Biggs et al., 2018), we also provide 2D key point annotations. More details about PlanetZoo, as well as DAVIS (Peruzzi et al., 2016) and AMA-Human (Vlasic et al., 2008a) are provided in Sec.C.
251
+
252
+ # 4.2. Shape Reconstruction Comparison
253
+
254
+ Qualitative Comparisons. As depicted in Fig.2,9 (b) and 10, existing NeRF-based (Neural Radiance Fields) approaches, often require a substantial number of input videos, acquired from a wide range of viewpoints and precise camera poses. Therefore, when the input is a monocular short video, these methods struggle to produce plausible outcomes. We present the results of BANMo (Yang et al., 2022) in Fig.2. MagicPony (Wu et al., 2023b), RAC (Yang et al., 2023), and CAMM (Kuai et al., 2023) also have nearly the same results as BANMo because they can be seen to be an extension of BANMo utilizing a pre-trained RigNet (Xu et al., 2020) to generate skeleton or directly providing predefined skeleton. However, when the mesh quality is poor, the reconstruction results are also significantly compromised. Conversely, for monocular short videos, methods based on NMR (Neural Mesh Rendering) like LASR (Yang et al., 2021a) (Fig.2 (a)) and Hi-LASSIE (Yao et al., 2023) (Fig.15 (b)) demonstrate superior performance. Nevertheless, due to a lack of structural information about the object, LASR also falls short of achieving ideal results. Hi-Lassie only can provide coarse shape and motion due to the lack of temporal information and refinement operations. However, S3O, without using any additional annotations, outperforms both methods, as illustrated in Fig.2 (c) and Fig.5.
255
+
256
+ Quantitative Comparisons. Furthermore, for a comprehensive comparison, we examine the performance of S3O against the best existing methods, LASR and ViSER, in terms of 2D keypoint transfer accuracy, as shown in Tab.2. S3O consistently surpasses both LASR and ViSER across all animal subjects and requires approximately $40\%$ less training time. Another point worth noting is the superior stability of S3O compared to the other two methods. We conduct multiple trials on DAVIS camel, cows, and Planet ZOO giraffe, tiger, noting standard deviations as a measure of the stability of the method. We observe that LASR and ViSER exhibit poor stability; for instance, in the camel experiments with LASR, results vary per trial, sometimes erroneously producing three or five legs. In contrast, S3O, by learning skeletal structural information, effectively avoids such inconsistencies, yielding reliable results.
257
+
258
+ Another important point to note is that when tested on the PlanetZoo dataset, LASR/BANMo tends to learn shapes that are reasonable only in a side view but extremely incorrect in other views. For example, as seen in Fig.2 and 9, the shapes of the giraffe, tiger, and elephant look acceptable from the side view, but from the top view, their shapes are completely incorrect. This issue stems from errors in learning the camera pose, leading to a situation where, despite each frame's predicted parameters aligning the rendered results with the ground truth mask, the incorrect camera pose results in all other parameters being wrong.
259
+
260
+ Also, we compared S3O with BANMo on the AMA-Human dataset. This dataset contains multi-view RGB videos by 8 synchronized cameras and provides ground truth camera parameters and 3D meshes. However, we use only the videos; we do not use the camera parameters and 3D meshes, since we estimate them as a part of our S30. However, as shown in Tab.3, S3O still shows superior performance on all three metrics (Chamfer Distance, F-score, and mIoU) with much less training time.
261
+
262
+ # 4.3. Skeleton Reconstruction Comparison
263
+
264
+ We outline the essential features of an effective skeleton in 3D modeling. (1) Bone distribution should be logical and tailored to the object's movement complexity, with denser bones in areas of high skeletal motion like limbs. (2) The skeleton should be sufficiently detailed to depict the structure of the object while avoiding unnecessary complexities due to local irregularities.
265
+
266
+ S3O vs RigNet and Skeleton. We compare the skeletons generated by S3O and RigNet (Xu et al., 2020) and Skeleton (Au et al., 2008), as illustrated in Fig.4. ${}^{2}$ S3O achieves better generalization than RigNet without 3D supervision. Although RigNet leverages extensive 3D models, ground truth skeletons, and skinning weights as supervision, it fails on out-of-distribution (OOD) objects, e.g., for the cases of tiger and elephant. Further, S3O effectively utilizes motion information from videos to produce physically plausible skeletons. It allocates more bones to areas with denser motion and fewer bones to less dynamic regions. This contrasts with RigNet and Skeleton, which lack such motion information. For instance, Skeleton assigns an excessive number of redundant bones to the torso, which exhibits much less movement than legs. This discrepancy underscores the advanced capability of S3O in generating more physically meaningful skeletal structures, highlighting its practicality for dynamic object analysis in video data.
267
+
268
+ # 4.4. Diagnostics
269
+
270
+ Fine Granularity of the Skeleton. Our approach allows for the generation of skeletons with varying levels of granularity by adjusting the threshold for merging bone motion. As demonstrated in Fig.3, by employing thresholds of 0.99, 0.95, and 0.90, we progressively reduce the granularity of the skeleton predictions, while still preserving the most critical bones and structural integrity. It enables the creation of a skeleton with differing levels of detail.
271
+
272
+ Effectiveness of Dynamic Rigidity. As shown in Fig.6, incorporating Dynamic Rigidity into our reconstruction process yields a shape that adheres more closely to physical
273
+
274
+ reality compared to methods utilizing As-Rigid-As-Possible (ARAP) modeling and without both regularization terms. The resulting structure maintains geometric integrity and behaves in a manner consistent with real-world physics.
275
+
276
+ Bone Motion Estimation. We use optical flow warp to estimate bone motion, as illustrated in Fig.8. We experimented with using the estimated bone formation (SE(3)) for each bone as the basis for determining bone motion, similar to the method used in WIM (Noguchi et al., 2022). Intuitively, utilizing the SE(3) of each bone, which encompasses 3D information, should be more effective than relying on 2D optical flow, which lacks depth perception. However, our results were not as anticipated for two main reasons: (1) The SE(3) of bones are predicted, meaning the motion calculated for each part is only accurate when these predictions are highly stable and precise. This explains why the bone merge stage in WIM is more akin to a post-processing step, where accurate learning of the mesh and pose of each part is prioritized before the merge. In contrast, our method synchronously updates the skeleton and other learnable parameters, merging or generating bones at specific epochs. The model then needs to relearn the SE(3) and other parameters for these new bones. In such cases, the fluctuating SE(3) values may not be as reliable as the consistent 2D optical flow, which can be derived using existing models. (2) From a degenerate perspective, consider a scenario where the rotation of the bones occurs in a plane that projects as a line in the image plane. In this case, the motion directions of two adjoining bones (across a potential joint) align and become indistinguishable. However, this degenerate scenario also impedes the estimation of SE(3) from images, rendering both SE(3) and optical flow ineffective. Therefore, for arbitrary views, the direction indicated by optical flow is sufficient, and the use of SE(3) becomes unnecessary.
277
+
278
+ Physical Skeletons vs Virtual Bones. In this discussion, we explore why using a physical skeleton outperforms virtual bones for mesh pose and motion manipulation. As shown in Fig.2 (d), methods like LASR, ViSER, and BANMo use k-means clustering on meshes to determine virtual bone positions. This often results in larger areas like the torso getting more bones, while slender limbs have fewer. This allocation contradicts the body's motion dynamics, where more bones should be in frequently deforming areas like legs and fewer in more stable areas like the torso. Such skewed distribution leads to a rigid treatment of entire limbs, as seen in LASR, preventing natural bending.
279
+
280
+ # 5. Conclusions and Limitations
281
+
282
+ We have presented S3O, an approach to concurrently learn the shape, time-varying parameters, and skeleton of a dynamically articulated object from a single monocular video, without any 3D supervision. We propose the concept of
283
+
284
+ Dynamic Rigidity as a solution to the limitations inherent in existing As-Rigid-As-Possible (ARAP) formulations. Our experiments show that S3O exhibits enhanced generalization in the generation of skeletons, compared to RigNet which also uses 3D supervision. Further, the ability of S3O to leverage the 3D structure it captures helps it surpass current state-of-the-art methods in shape reconstruction performance, while significantly reducing training time. A limitation of most methods, including ours, is the excessive computation time required, rendering them impractical for everyday applications. Recognizing this, our future work will focus on utilizing large-scale pre-trained text/image-to-3D models as 3D priors to expedite the training process.
285
+
286
+ # Impact Statement
287
+
288
+ The proposed Synergistic Shape and Skeleton Optimization (S3O) method significantly advances the field of 3D reconstruction from single monocular videos by addressing the limitations of current techniques that require extensive computational resources and additional human annotations. By adopting a dual-phase approach, S3O learns visible shapes and underlying skeletons without predefined models, camera poses, or key points. This innovation reduces training time by $60\%$ compared to state-of-the-art methods and improves reconstruction accuracy and robustness from limited viewpoints. The introduction of the PlanetZoo dataset further demonstrates S3O's capability to handle dynamic camera movements and diverse objects, setting a new benchmark for 3D reconstruction from monocular videos.
289
+
290
+ # Acknowledgement
291
+
292
+ The support of the Office of Naval Research under grant N00014-20-1-2444 and of the USDA National Institute of Food and Agriculture under grant 2020-67021-32799/1024178 are gratefully acknowledged
293
+
294
+ # References
295
+
296
+ Ahuja, N. and Chuang, J.-H. Shape representation using a generalized potential field model. IEEE Transactions on Pattern Analysis and Machine Intelligence, 19(2):169-176, 1997.
297
+ Au, O. K.-C., Tai, C.-L., Chu, H.-K., Cohen-Or, D., and Lee, T.-Y. Skeleton extraction by mesh contraction. ACM transactions on graphics (TOG), 27(3):1-10, 2008.
298
+ Badger, M., Wang, Y., Modh, A., Perkes, A., Kolotouros, N., Pfrommer, B. G., Schmidt, M. F., and Daniilidis, K. 3d bird reconstruction: a dataset, model, and shape recovery from a single view. In European Conference on Computer Vision, pp. 1-17. Springer, 2020.
299
+
300
+ Baran, I. and Popovic, J. Automatic rigging and animation of 3d characters. ACM Transactions on graphics (TOG), 26(3):72-es, 2007a.
301
+ Baran, I. and Popovic, J. Automatic rigging and animation of 3d characters. ACM Transactions on graphics (TOG), 26(3):72-es, 2007b.
302
+ Biggs, B., Roddick, T., Fitzgibbon, A., and Cipolla, R. Creatures great and small: Recovering the shape and motion of animals from video, 2018.
303
+ Biggs, B., Roddick, T., Fitzgibbon, A., and Cipolla, R. Creatures great and small: Recovering the shape and motion of animals from video. In Computer Vision-ACCV 2018: 14th Asian Conference on Computer Vision, Perth, Australia, December 2-6, 2018, Revised Selected Papers, Part V 14, pp. 3-19. Springer, 2019.
304
+ Biggs, B., Boyne, O., Charles, J., Fitzgibbon, A., and Cipolla, R. Who left the dogs out? 3d animal reconstruction with expectation maximization in the loop. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XI 16, pp. 195-211. Springer, 2020.
305
+ Bitter, I., Kaufman, A. E., and Sato, M. Penalized-distance volumetric skeleton algorithm. IEEE Transactions on Visualization and computer Graphics, 7(3):195-206, 2001.
306
+ Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., and Joulin, A. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 9650-9660, 2021.
307
+ Cornea, N. D., Silver, D., Yuan, X., and Balasubramanian, R. Computing hierarchical curve-skeletons of 3d objects. The Visual Computer, 21:945-955, 2005.
308
+ Goel, S., Kanazawa, A., and Malik, J. Shape and viewpoint without keypoints. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XV 16, pp. 88-104. Springer, 2020.
309
+ Goel, S., Pavlakos, G., Rajasegaran, J., Kanazawa, A., and Malik, J. Humans in 4d: Reconstructing and tracking humans with transformers. arXiv preprint arXiv:2305.20091, 2023.
310
+ Hassouna, M. S. and Farag, A. A. Robust centerline extraction framework using level sets. In 2005 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR'05), volume 1, pp. 458-465. IEEE, 2005.
311
+ Huang, J., Su, H., and Guibas, L. Robust watertight manifold surface generation method for shapenet models, 2018.
312
+
313
+ Kanazawa, A., Tulsiani, S., Efros, A. A., and Malik, J. Learning category-specific mesh reconstruction from image collections. In Proceedings of the European Conference on Computer Vision (ECCV), pp. 371-386, 2018.
314
+ Kirillov, A., Mintun, E., Ravi, N., Mao, H., Rolland, C., Gustafson, L., Xiao, T., Whitehead, S., Berg, A. C., Lo, W.-Y., Dollár, P., and Girshick, R. Segment anything. arXiv:2304.02643, 2023.
315
+ Kocabas, M., Athanasiou, N., and Black, M. J. Vibe: Video inference for human body pose and shape estimation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 5253-5263, 2020.
316
+ Kuai, T., Karthikeyan, A., Kant, Y., Mirzaei, A., and Gilitschenski, I. Camm: Building category-agnostic and animatable 3d models from monocular videos, 2023.
317
+ Kulkarni, N., Gupta, A., Fouhey, D. F., and Tulsiani, S. Articulation-aware canonical surface mapping. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 452-461, 2020.
318
+ Kumar, S. Non-Rigid Structure from Motion. PhD thesis, College of Engineering & Computer Science, The Australian National University, 2019.
319
+ Lee, D.-T. Medial axis transformation of a planar shape. IEEE Transactions on pattern analysis and machine intelligence, (4):363-369, 1982.
320
+ Li, X., Liu, S., De Mello, S., Kim, K., Wang, X., Yang, M.-H., and Kautz, J. Online adaptation for consistent mesh reconstruction in the wild. Advances in Neural Information Processing Systems, 33:15009-15019, 2020a.
321
+ Li, X., Liu, S., Kim, K., De Mello, S., Jampani, V., Yang, M.-H., and Kautz, J. Self-supervised single-view 3d reconstruction via semantic consistency. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XIV 16, pp. 677-693. Springer, 2020b.
322
+ Lindell, D. B., Van Veen, D., Park, J. J., and Wetzstein, G. Bacon: Band-limited coordinate networks for multiscale scene representation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 16252-16262, 2022.
323
+ Liu, S., Li, T., Chen, W., and Li, H. Soft rasterizer: A differentiable renderer for image-based 3d reasoning. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7708-7717, 2019.
324
+ Liu, S., Zeng, Z., Ren, T., Li, F., Zhang, H., Yang, J., Li, C., Yang, J., Su, H., Zhu, J., and Zhang, L. Grounding dino: Marrying dino with grounded pre-training for open-set object detection, 2023.
325
+
326
+ Loper, M., Mahmood, N., Romero, J., Pons-Moll, G., and Black, M. J. Smpl: A skinned multi-person linear model. In Seminal Graphics Papers: Pushing the Boundaries, Volume 2, pp. 851-866. 2023.
327
+ Luvizon, D. C., Tabia, H., and Picard, D. Human pose regression by combining indirect part detection and contextual information. Computers & Graphics, 85:15-22, 2019.
328
+ Ma, C.-M., Wan, S.-Y., and Lee, J.-D. Three-dimensional topology preserving reduction on the 4-subfields. IEEE Transactions on Pattern Analysis and Machine Intelligence, 24(12):1594-1605, 2002.
329
+ Ma, W.-C., Wu, F.-C., and Ouhyoung, M. Skeleton extraction of 3d objects with radial basis functions. In 2003 Shape Modeling International., pp. 207-215. IEEE, 2003.
330
+ Magnenat, T., Laperriere, R., and Thalmann, D. Joint-dependent local deformations for hand animation and object grasping. Technical report, Canadian Inf. Process. Soc, 1988.
331
+ Noguchi, A., Iqbal, U., Tremblay, J., Harada, T., and Gallo, O. Watch it move: Unsupervised discovery of 3d joints for re-positioning of articulated objects, 2022.
332
+ Palágyi, K. and Kuba, A. A parallel 3d 12-subiteration thinning algorithm. Graphical Models and Image Processing, 61(4):199-221, 1999.
333
+ Perazzi, F., Pont-Tuset, J., McWilliams, B., Van Gool, L., Gross, M., and Sorkine-Hornung, A. A benchmark dataset and evaluation methodology for video object segmentation. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 724-732, 2016.
334
+ Teed, Z. and Deng, J. Raft: Recurrent all-pairs field transforms for optical flow. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part II 16, pp. 402-419. Springer, 2020.
335
+ Torresani, L., Hertzmann, A., and Bregler, C. Nonrigid structure-from-motion: Estimating shape and motion with hierarchical priors. IEEE transactions on pattern analysis and machine intelligence, 30(5):878-892, 2008.
336
+ Vlasic, D., Baran, I., Matusik, W., and Popovic, J. Articulated mesh animation from multi-view silhouettes. In Acm Siggraph 2008 papers, pp. 1-9. 2008a.
337
+ Vlasic, D., Baran, I., Matusik, W., and Popovic, J. Articulated mesh animation from multi-view silhouettes. In Acm Siggraph 2008 papers, pp. 1-9. 2008b.
338
+
339
+ Wada, K. Labelme: Image Polygonal Annotation with Python. URL https://github.com/wkentaro/ labelme.
340
+ Wade, L. Automated generation of control skeletons for use in animation. The Ohio State University, 2000.
341
+ Wang, R. Y., Pulli, K., and Popovic, J. Real-time enveloping with rotational regression. In ACM SIGGRAPH 2007 papers, pp. 73-es. 2007.
342
+ Wang, Y.-S. and Lee, T.-Y. Curve-skeleton extraction using iterative least squares optimization. IEEE Transactions on Visualization and Computer Graphics, 14(4):926-936, 2008.
343
+ Weng, C.-Y., Curless, B., Srinivasan, P. P., Barron, J. T., and Kemelmacher-Shlizerman, I. Humannerf: Free-viewpoint rendering of moving people from monocular video. In Proceedings of the IEEE/CVF conference on computer vision and pattern Recognition, pp. 16210-16220, 2022.
344
+ Wu, S., Li, R., Jakab, T., Rupprecht, C., and Vedaldi, A. Magicpony: Learning articulated 3d animals in the wild, 2023a.
345
+ Wu, S., Li, R., Jakab, T., Rupprecht, C., and Vedaldi, A. Magicpony: Learning articulated 3d animals in the wild. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 8792-8802, 2023b.
346
+ Wu, Y., Chen, Z., Liu, S., Ren, Z., and Wang, S. Casa: Category-agnostic skeletal animal reconstruction. Advances in Neural Information Processing Systems, 35: 28559-28574, 2022.
347
+ Xiang, D., Joo, H., and Sheikh, Y. Monocular total capture: Posing face, body, and hands in the wild. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10965-10974, 2019.
348
+ Xu, Z., Zhou, Y., Kalogerakis, E., Landreth, C., and Singh, K. Rignet: Neural rigging for articulated characters. arXiv preprint arXiv:2005.00559, 2020.
349
+ Yang, G., Sun, D., Jampani, V., Vlasic, D., Cole, F., Chang, H., Ramanan, D., Freeman, W. T., and Liu, C. Lasr: Learning articulated shape reconstruction from a monocular video. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 15980-15989, 2021a.
350
+ Yang, G., Sun, D., Jampani, V., Vlasic, D., Cole, F., Liu, C., and Ramanan, D. Viser: Video-specific surface embeddings for articulated 3d shape reconstruction. Advances in Neural Information Processing Systems, 34:19326-19338, 2021b.
351
+
352
+ Yang, G., Vo, M., Neverova, N., Ramanan, D., Vedaldi, A., and Joo, H. Banmo: Building animatable 3d neural models from many casual videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2863-2873, 2022.
353
+ Yang, G., Wang, C., Reddy, N. D., and Ramanan, D. Reconstructing animatable categories from videos. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16995-17005, 2023.
354
+ Yao, C.-H., Hung, W.-C., Li, Y., Rubinstein, M., Yang, M.-H., and Jampani, V. Lassie: Learning articulated shapes from sparse image ensemble via 3d part discovery. Advances in Neural Information Processing Systems, 35: 15296-15308, 2022.
355
+ Yao, C.-H., Hung, W.-C., Li, Y., Rubinstein, M., Yang, M.-H., and Jampani, V. Hi-lassie: High-fidelity articulated shape and skeleton discovery from sparse image ensemble. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), pp. 4853-4862, June 2023.
356
+ Yu, T., Guo, K., Xu, F., Dong, Y., Su, Z., Zhao, J., Li, J., Dai, Q., and Liu, Y. Bodyfusion: Real-time capture of human motion and surface geometry using a single depth camera. In Proceedings of the IEEE International Conference on Computer Vision, pp. 910-919, 2017.
357
+ Zhang, H., Li, F., Rawlekar, S., and Ahuja, N. Learning implicit representation for reconstructing articulated objects. In The Twelfth International Conference on Learning Representations, 2023.
358
+ Zhang, H., Li, F., Qi, L., Yang, M.-H., and Ahuja, N. Csl: Class-agnostic structure-constrained learning for segmentation including the unseen. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 38, pp. 7078-7086, 2024.
359
+ Zhang, R., Isola, P., Efros, A. A., Shechtman, E., and Wang, O. The unreasonable effectiveness of deep features as a perceptual metric. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 586-595, 2018.
360
+ Zhou, Y. and Toga, A. W. Efficient skeletonization of volumetric objects. IEEE Transactions on visualization and computer graphics, 5(3):196-209, 1999.
361
+ Zuffi, S., Kanazawa, A., Jacobs, D. W., and Black, M. J. 3d menagerie: Modeling the 3d shape and pose of animals. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 6365-6373, 2017.
362
+
363
+ Zuffi, S., Kanazawa, A., Berger-Wolf, T., and Black, M. J. Three-d safari: Learning to estimate zebra pose, shape, and texture from images" in the wild". In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 5359-5368, 2019.
364
+
365
+ ![](images/8102cafe7622627ea69e02780e73cab2b501f74651b2e5dfb93a849a74fec385.jpg)
366
+ Figure 7. Coarse-to-Fine Deformation. The second phase of S3O focuses on intricacies, notably improving head and tail details that are less defined in the initial coarse learning stage. Points marked in red denote uniformly sized coarse shapes. ER represents Even Resampling, a process that makes vertices evenly distributed while maintaining the integrity of the original shape. Note the gradual improvement from coarse to fine stages as explained in Sec.E. Details of ER operation are presented in Sec.B.
367
+
368
+ In this section, we aim to provide additional information not included in the main text due to length constraints. This supplemental content includes (1) A comparison between S3O and existing methods (Sec.A) (2) Implementation details (Sec.B), (3) Information about the dataset used for evaluation (Sec.C), (4) an In-depth explanation of loss and regularization terms (Sec.D), (5) Further experimental results (human dataset in Tab.3, reconstruction from top view in Fig.9, reconstruction results of MagicPony and Hi-LASSIE in Fig.10 and 15, procedure of coarse shape phase in Fig.7) along with discussions (Sec.E), and (6) Table of Notations (Tab.4).
369
+
370
+ # A. Difference of S3O with existing methods
371
+
372
+ In Tab.1 from the main paper, we compare the proposed S3O method with existing methods under various settings. S3O addresses more complex yet realistic scenarios, which include: 1) In real-world applications, ground truth (GT) 3D shapes, skeleton templates, and camera poses are often not readily available. 2) It's not always feasible to have multiple videos of moving objects showcasing different viewpoints.
373
+
374
+ Methods like CASA (Wu et al., 2022), SMAL (Zuffi et al., 2017), and others that rely on instance-specific 3D shapes, skeletons, or both as templates for motion modeling face limitations in generalizing to Out-Of-Distribution objects lacking GT 3D data. Similarly, approaches such as WIM (Noguchi et al., 2022), CAMM (Kuai et al., 2023), RAC (Yang et al., 2023), and BANMo (Yang et al., 2022) require accurate camera poses and extensive video data (exceeding 1000 frames) from varied viewpoints to produce satisfactory results. Monocular video from limited viewing directions lead to unsatisfying results, shown in Fig.2, 10, and 9.
375
+
376
+ Alternatively, while methods like LASR (Yang et al., 2021a) and VISER (Yang et al., 2021b) do not require shape and skeleton templates, the apparent surface motion does not match the apparent ground truth motion, due to errors in joint estimates of surface shape and motion, which is because they do not use any structural information (skeleton) about the object. In contrast, S3O also learns a physical skeleton to model the articulated motions of objects more effectively than the virtual bones used in LASR (Yang et al., 2021a), BANMo (Yang et al., 2022), and ViSER (Yang et al., 2021b). This allows our S3O to not require inputs of shape and skeleton templates, and camera pose, yielding a less demanding solution.
377
+
378
+ <table><tr><td>Algorithm 1 Dual-Phase Synergistic Shape and Skeleton Optimization (S3O)</td></tr><tr><td>Given a set of frames F from a video.</td></tr><tr><td>Select canonical frame fc. (Sec.3.2)</td></tr><tr><td>• Coarse Shape Phase</td></tr><tr><td>Extract 2D skeleton from fc (Sec.3.2)</td></tr><tr><td>Learn coarse parametric model including canonical 3D shape Mc(0) and skeleton ST(0) from F (Sec.3.2)</td></tr><tr><td>• Motion &amp; Fine Shape Phase</td></tr><tr><td>Initialize the camera &amp; motion parameters θ(0)</td></tr><tr><td>for e = 1 to E do</td></tr><tr><td>if e &lt; e1 then</td></tr><tr><td>Articulation Mt(e) ← Mc(e) (Sec.3.3)</td></tr><tr><td>Compute the reconstruction loss.</td></tr><tr><td>Update canonical shape and time-varying parameter: θ(e+1), Mc(e+1) ← θ(e), Mc(e)</td></tr><tr><td>Adapt skeleton Sc(e) to Mc(e+1) (Sec.3.4)</td></tr><tr><td>else if e = e1 then</td></tr><tr><td>Upsample Skeleton</td></tr><tr><td>else</td></tr><tr><td>Calculate physical constraints (Sec.3.4)</td></tr><tr><td>Update Skeleton: Sc(e+1) ← Sc(e)</td></tr><tr><td>end if</td></tr><tr><td>end for</td></tr></table>
379
+
380
+ ![](images/21d20b37c489f0361edf88f58bc06bb64446bb00d4d7feb1510cace71f40112b.jpg)
381
+ Figure 8. Optical Flow Warp. We estimate the bone motion from the 2D optical flow.
382
+
383
+ # B. Implementation Details
384
+
385
+ S3O follows Neural Mesh Rasterization (NMR) approaches that jointly learn the (1) parametric model, including the mesh and skeleton, which is used in calculating the skinning weights and changing the pose of the object via blending skinning operation, and (2) time-varying parameters, which include the bone transformation, and camera parameter.
386
+
387
+ Coarse Shape Phase. While different from existing shape-template-free methods such as LASR (Yang et al., 2021a), MagicPony (Wu et al., 2023a), and BANMo (Yang et al., 2022), which initializes the mesh with a sphere or an ellipsoid, we use the extraction of 2D skeletons from the canonical frame and DINO feature information to obtain an instance-specified initial mesh, similar to the work Hi-LASSIE (Yao et al., 2023), as shown in the Fig.14. Then, through the coarse shape phase (Sec.3.2 in the main paper), we can quickly learn a coarse shape. Although the quality of the mesh is still far from satisfactory, this coarse mesh can greatly assist us in learning accurate camera parameters more quickly (results are shown in Fig.14).
388
+
389
+ Analysis-by-Synthesis Strategy. Our approach adopts an analysis-by-synthesis strategy. In this strategy, we first obtain the object silhouette, optical flow, and pixel values by rendering (Liu et al., 2019) the deformed mesh to image space, defined as the synthesis process. Next, we analyze the predicted object silhouette, optical flow, and pixel values with respect to the video observations.
390
+
391
+ ![](images/6736d3086c7c197632e73f011aa3431964770c305eb82b0d51d573027a26916f.jpg)
392
+ Figure 9. Reconstructed Mesh Results (top view). For (a) LASR, (b) BANMo, and (c) S30 (ours), for six animal videos: DAVIS's camel, cows and PlanetZoo's zebra, elephant, tiger, and giraffe.
393
+
394
+ ![](images/f42ebc6a08ce174cf536e52f5c6d44c9480020824dc9dc02c171724e1b5f721b.jpg)
395
+ Figure 10. Reconstructed Mesh Results (side and top views). For MagicPony (Wu et al., 2023a), for three animal videos: DAVIS's cows and PlanetZoo's elephant, tiger.
396
+
397
+ Even Resampling. During the training process, as shown in Fig.7, only the outermost points on the camel's legs initially move downward, thereby elongating the entire leg to achieve a shape more akin to a real camel in the video. However, in this scenario, the distribution of vertices is highly uneven, with the lower half of the leg having very few points. Therefore, every 1,500 iterations, we perform an Evenly Resampling (2-Manifold Processing) (Huang et al., 2018), which makes the vertices roughly uniformly distributed on the geometry surface.
398
+
399
+ Mask and Optical Flow Generation. We generate object-level segmentation masks for input videos using CSL (Zhang et al., 2024), Grounding DINO (Liu et al., 2023) and Segment Anything Model (SAM) (Kirillov et al., 2023). By inputting text about the target object in the video, we leverage Grounding DINO to track that object across frames and then we input the detected bounding boxes to SAM to obtain the segmentation masks. Results are shown in Fig.12. For part-level segmentation, which is used during the coarse phase, we leverage DINO (Caron et al., 2021) to extract per-pixel embeddings and then cluster the embeddings to generate part-level masks similar to (Yao et al., 2023). The results are shown in Fig.13. Optical flow was estimated using existing flow estimators (Teed & Deng, 2020).
400
+
401
+ Experimental Setup. For our experiments on DAVIS and PlanetZoo, we utilized a single A100 40GB GPU. The batch size was set to 8, and the training consisted of 10 epochs compared to LASR and ViSER having 25 epochs. Each epoch comprised 1500 iterations. Similar to LASR, for the first $40\%$ epochs, we estimate 16 cameras and keep the best one in the following epochs. For our experiment on AMA-Human, we follow the same training setting as the original BANMo, except we only use one single GPU and S3O requires $40\%$ training epochs to achieve better reconstruction results compared to BANMo.
402
+
403
+ # C. Datasets and Metrics
404
+
405
+ # C.1. Datasets
406
+
407
+ DAVIS & BADJA. BADJA (Biggs et al., 2019) dataset is a derivative of DAVIS (Perazzi et al., 2016) which contains the RGB videos and the corresponding ground truth segmentation results. It contains typical quadrupeds like bears, camels, dogs, and horses. Besides, BADJA also provides 2D key points for all videos. In experiments, we show both numerical and visualization results on DAVIS & BADJA.
408
+
409
+ PlanetZoo. We obtain 2D key points for the ground truth using Labelme tools (Wada). Experiments on the PlanetZoo dataset containing quantitative and qualitative results are also shown in the paper. For annotation rules, we also adopt the same real physical morphology across frames in each video as DAVIS & BADJA. In detail, these points are located on the
410
+
411
+ ![](images/7035f70dbb70f0ef623ae392baa728f894c4742cefdd455c3679e5ecf8532456.jpg)
412
+
413
+ ![](images/517240fa1206876072eaac6d2cc6c430a0568b9a8f9f07c47317207461475654.jpg)
414
+
415
+ ![](images/52d85b9d9106f352e9cce84276f61d259542f3d3d4a964ad74eb486514da111f.jpg)
416
+ Figure 11. Keypoints Annotations for PlanetZoo dataset.
417
+
418
+ ![](images/4441cbae2a1c4d8aac6fd564cefecea7fd4e218737b83db7d50d888dd65f9968.jpg)
419
+
420
+ ![](images/6afc62970ceae6ef6ecc2cf7530a18ac0784d0485a3862bdcd3d7b47686ed255.jpg)
421
+
422
+ ![](images/2038fe54d953578c25e3b6e08746ba12798f9c7782608fa67524fa147c8fb45d.jpg)
423
+
424
+ ![](images/c958921bffc4c917ef27e5d746a380a24bcb409b4c01f2e342f92dc5e10d4766.jpg)
425
+ Figure 12. Example frames and masks of tiger from PlanetZoo dataset.
426
+
427
+ ![](images/a38d4927f194026723a4192af5374a861c71f06b78dc635f29cbd1c247d9e23c.jpg)
428
+
429
+ ![](images/bce4cd7fd420a80f23cdd78d47946569d89973cf344ff11fe17498fa3d2dbbaa.jpg)
430
+
431
+ ![](images/a752750f225aac6a7997616e153b2047d94087dd32f17274a337e560023be572.jpg)
432
+
433
+ ![](images/77b2aeea587fbfb5c1a6fab940bcd2e37b97e3eb976d431142bd32bac144c4b7.jpg)
434
+
435
+ ![](images/b76336478edce53670b303628b0c8b56edc144741b6ccea436d8c499cd9b9daf.jpg)
436
+
437
+ ![](images/9679892d974414ab16e664b1ef85d03d4fdb398ac74d94efe0b78f8fffa11c2e.jpg)
438
+
439
+ ![](images/ea8ede508b747dcb377bcf8d23cbd8f36d5a84444a2e46abc45012c94a957b0a.jpg)
440
+
441
+ ![](images/51778657df5e469a769126e8c40886d5fc2343ee7680c36c6f7b688eb09a533b.jpg)
442
+
443
+ ![](images/a6624c8fa60cf7cff111d7785f7a743028c4ad47d24930a685f4f434e1066588.jpg)
444
+
445
+ paws, knees, ears, tails, jaws, and noses as shown in Fig.11. We plan to release the whole PlanetZoo dataset including the RGB videos, 2D ground truth segmentation, and 2D key points annotations in the future.
446
+
447
+ AMA human. (Vlasic et al., 2008a) records multi-view videos by 8 synchronized cameras for which it provides ground truth camera pose, mesh, and masks. To compute the Chamfer distance we use to evaluate our 3D reconstruction, We need to use only the 3D mesh.
448
+
449
+ # C.2. Metrics
450
+
451
+ To evaluate the performance of S3O and the existing methods, we use 2D Keypoint Transfer Accuracy same as LASR (Yang et al., 2021a) and ViSER (Yang et al., 2021b). 2D Keypoint Transfer Accuracy evaluates results by the percentage of correct key point transfer (PCK-T) (Kanazawa et al., 2018; Kulkarni et al., 2020). If the distance between the transferred point and the corresponding ground truth is one is within a predefined threshold, this transferred point will be categorized as 'Correct'. This threshold $d_{th}$ is defined by $0.2\sqrt{|S|}$ , and $|S|$ means the area of ground truth mask (Biggs et al., 2019). We use 3D Chamfer distance, mIoU, and F-score on the AMA-Human dataset.
452
+
453
+ # D. Losses and Regularization
454
+
455
+ The model is learned by minimizing the reconstruction loss, which includes seven terms. The first five terms are similar to those in existing differentiable rendering pipelines (Yang et al., 2021a; Yao et al., 2023; Yang et al., 2022; Goel et al., 2020). We define $\mathbf{S}^{\mathrm{t}},\mathbf{I}^{\mathrm{t}}$ $\mathbf{F}^{2\mathrm{D},t}$ as the silhouette, input image, and optical flow of the input image, and their corresponding rendered counterparts as $\tilde{\mathbf{S}}^{\mathrm{t}},\tilde{\mathbf{I}}^{\mathrm{t}}$ $\tilde{\mathbf{F}}^{2\mathrm{D},t}$ . The following losses ensure the fitting between rendered and original:
456
+
457
+ $$
458
+ \mathcal {L} _ {\text {s i l h o u e t t e}} = \sum_ {\mathbf {x} ^ {t}} \left\| \mathbf {s} \left(\mathbf {x} ^ {t}\right) - \hat {\mathbf {s}} \left(\mathbf {x} ^ {t}\right) \right\| _ {2}, \tag {10}
459
+ $$
460
+
461
+ ![](images/8971d029ce6a1ad9732f8f3903750fe3a1493b0b00001d15d4abfcc1bfaaebd0.jpg)
462
+ Figure 13. Part results obtained from DINO features.
463
+
464
+ ![](images/84be6d3ad0507dc7a4234ecd89163eb4c262fec6a37d37845f6aba0549c3a6a2.jpg)
465
+ 2D skeleton
466
+
467
+ ![](images/574da481ae487d35578fd51dcc5a2127434389ea9dea533f786851e6c0e031ff.jpg)
468
+ Initial mesh
469
+
470
+ ![](images/809701ceffe8c4616d039922638bc16b5250bbd5560099ebbbe5217b044421c2.jpg)
471
+ Coarse mesh
472
+
473
+ ![](images/fa3e22d4490e8a232ed325dfbd01f122def47c7ba461c3f9413c590a2cc6d69d.jpg)
474
+ Skinning weights
475
+ Figure 14. Procedure of coarse shape learning phase.
476
+
477
+ ![](images/279e6d0d5369142901dd72c65052e45353f1c162d766d96c101dbc33c3f1c5f2.jpg)
478
+ Coarse 3D skeleton
479
+
480
+ $$
481
+ \mathcal {L} _ {\text {o p t i c a l f l o w}} = \sigma \left\| \left(\tilde {\mathbf {F}} ^ {2 \mathrm {D}, \mathbf {t}}\right) - \left(\mathbf {F} ^ {2 \mathrm {D}, \mathbf {t}}\right) \right\| _ {2} ^ {2}, \tag {11}
482
+ $$
483
+
484
+ $$
485
+ \mathcal {L} _ {\text {t e x t u r e}} = \left\| \tilde {\mathbf {I}} ^ {\mathbf {t}} - \mathbf {I} ^ {\mathbf {t}} \right\| _ {1}, \tag {12}
486
+ $$
487
+
488
+ $$
489
+ \mathcal {L} _ {\text {p e r c e p t u a l}} = \operatorname {p d i s t} \left(\tilde {\mathbf {I}} ^ {t}, \mathbf {I} ^ {t}\right), \tag {13}
490
+ $$
491
+
492
+ $$
493
+ \mathcal {L} _ {\text {d i n o f e a t}} = \mathcal {L} _ {\text {p a r t s i l h o u e t t e}} + \mathcal {L} _ {\text {c o n s i s t e n c y}}, \tag {14}
494
+ $$
495
+
496
+ where $\text{pdist}(\cdot)$ is the perceptual distance (Zhang et al., 2018), and $\mathcal{L}_{\text{dino feat}}$ leverages the dino features, which combines the part silhouettes and consistency loss that maintains consistency between 2D pixels on a part and corresponding 3D points on the part surface.
497
+
498
+ $$
499
+ \mathcal {L} _ {\text {p a r t s i l h o u e t t e}} = \sum_ {p} \left\| s _ {p} ^ {t} - \hat {s} _ {p} ^ {t} \right\| _ {2}, \tag {15}
500
+ $$
501
+
502
+ where $s_p^t$ represents part silhouettes for part $p$ and frame $t$ . The consistency loss, denoted as $\mathcal{L}_{\mathrm{consistency}}$ , is designed to optimize the 3D surface coordinates. This optimization ensures that the aggregated 3D point features project more accurately onto corresponding pixel features within the image ensemble, following the methodology outlined in (Yao et al., 2023). In our experiments, we observed that the dino feature loss aids the model in more rapidly learning a coarse shape through part-wise optimization. However, due to the limited accuracy of part-level annotations, as shown in Fig.13, it is not guaranteed to maintain excellent consistency across all frames. Consequently, the dino feature loss restricts the model's capacity for more detailed deformation. Therefore, in the motion and fine shape phase, we removed the dino feature loss.
503
+
504
+ Also, we leverage three regularization terms: (1) Dynamic Rigidity term, which is introduced in the main paper Sec.3.3. (2) Symmetry term, which encourages the canonical mesh to be symmetric.
505
+
506
+ $$
507
+ \mathcal {L} _ {\text {s y m m}} = \sum_ {i} \min _ {j} \| v _ {j} - \phi \left(v _ {i} ^ {\text {s y m m}}\right) \| ^ {2}, \tag {16}
508
+ $$
509
+
510
+ ![](images/749711a30df7250d0c687f0cff1dc78ad7268d3ab6afa566e2fdeffb8a28d650.jpg)
511
+
512
+ ![](images/e7567d9f082b0cdd41917cc1c320379a0b0618e923420fe887abda2eb3a5c3c0.jpg)
513
+
514
+ ![](images/048aadf6cace8c103178c8b994a043fb4a6d59ce47d298b1ab72cee2e705a3ee.jpg)
515
+ (a) RGB Image
516
+
517
+ ![](images/e98716455c70e367f533b62597dd39088991f0322c840a836413e41fd5895c5b.jpg)
518
+
519
+ ![](images/2a374d4359051b77273482b32d01fad3642fc19d36d126654fc5fbae2d257644.jpg)
520
+
521
+ ![](images/b5375b2496c1b777822b8141c87d6f74e464241be1b0c89747825c6449f50f5e.jpg)
522
+ (b) Hi-LASSIE
523
+
524
+ ![](images/c54860d54dc7adf9eed7cb3ac811d8d7fe332068b7b31012eb034293093ae793.jpg)
525
+
526
+ ![](images/568ce5376238ae6390c975f5da3b04445bfe15bca6e79d3706f60f6d63df178a.jpg)
527
+
528
+ ![](images/1da671b9dd1dc702c1d8f7049cc924be7891d4647f25292a360694e3d042b791.jpg)
529
+ (c) S3O
530
+ Figure 15. Mesh Results of S3O compared with with Hi-LASSIE.
531
+
532
+ Table 3. Quantitative results on AMA's swing and samba. 3D Chamfer Distance, F-score, and mIoU are shown averaged over all frames. Note we use one A100 GPU with half batch size compared with the original BANMo (Yang et al., 2022), which leads to lower accuracy. For the AMA-Human dataset, we use more than one video for training, which is different from other experiments. (Time: GPU hours on A100)
533
+
534
+ <table><tr><td rowspan="2">method</td><td colspan="4">AMA-samba</td><td colspan="4">AMA-swing</td><td colspan="4">Ave.</td></tr><tr><td>CD</td><td>F@2%</td><td>mIoU</td><td>Time</td><td>CD</td><td>F@2%</td><td>mIoU</td><td>Time</td><td>CD</td><td>F@2%</td><td>mIoU</td><td>Time</td></tr><tr><td>BANMo</td><td>15.3</td><td>53.1</td><td>61.2</td><td>12.5</td><td>13.8</td><td>54.8</td><td>62.4</td><td>12.7</td><td>14.6</td><td>53.9</td><td>61.8</td><td>12.6</td></tr><tr><td>S3O</td><td>12.9</td><td>55.2</td><td>62.5</td><td>5.1</td><td>12.3</td><td>56.4</td><td>63.6</td><td>4.8</td><td>12.9</td><td>55.8</td><td>62.5</td><td>4.9</td></tr></table>
535
+
536
+ where, $v_{j}$ is the vertex $j$ in the one side of the symmetry plane, and $v_{i}^{symm}$ is the vertex from the other side. $\phi$ is the reflection operation w.r.t to the symmetry plane. (3) Laplacian smoothing: We apply laplacian smoothing to generate smooth mesh surfaces.
537
+
538
+ $$
539
+ \mathcal {L} _ {\text {s h a p e}} = \left\| \mathbf {X} _ {i} ^ {0} - \frac {1}{\left| N _ {i} \right|} \sum_ {j \in N _ {i}} \mathbf {X} _ {j} ^ {0} \right\| ^ {2}, \tag {17}
540
+ $$
541
+
542
+ where, $\mathbf{X}_i^0$ is coordinates of vertex $i$ in canonical space. And $N$ is the number of vertices
543
+
544
+ # E. Discussion
545
+
546
+ Coarse-to-Fine Deformation. As illustrated in Fig.7, S3O starts with learning a coarse shape in the first phase, which takes approximately 15 minutes. This is followed by a warm-up stage at the onset of the second phase, where the mesh is kept constant while only the time-varying motion parameters are learned (30 minutes). Subsequently, training is conducted for all parameters. The coarse mesh initially struggles to accurately reconstruct finer extremities, such as the legs and head. These structures gradually emerge during the second phase. Points marked in red denote coarse shapes. ER denotes Evenly Resampling, a process that makes vertices evenly distributed while maintaining the integrity of the original shape.
547
+
548
+ Comparison between NeRF-based and NMR-based Methods. Methods based on Neural Radiance Fields (NeRF), such as BANMo and MagicPony, have demonstrated remarkable capabilities in reconstruction tasks. These methods involve learning a neural radiance field and subsequently extracting a mesh from this learned field. However, the process of learning a neural radiance field is data-intensive, often requiring multiple videos and viewpoints for optimal results. This becomes a limitation, as obtaining such extensive data can be challenging. The performance of NeRF-based methods significantly diminishes with restricted data and viewpoints, as evidenced in Fig.2, 10, and 9. In contrast, methods utilizing the Neural Mesh Renderer (NMR) focus on directly training models to produce a mesh. These approaches have been shown to yield satisfactory outcomes even with limited data availability, such as using a single monocular video with less than a hundred input frames. Our approach is based on NMR and demonstrates considerable improvements, both qualitatively and
549
+
550
+ quantitatively, compared with existing NMR-based methods.
551
+
552
+ Table 4. Table of Notations
553
+
554
+ <table><tr><td>Symbol</td><td>Description</td><td>Dimension</td></tr><tr><td>B</td><td>Number of Bones</td><td>-</td></tr><tr><td>E</td><td>Number of Edges in Surface Mesh</td><td>-</td></tr><tr><td>J</td><td>Number of Joints</td><td>-</td></tr><tr><td colspan="3">Representation Parameters</td></tr><tr><td>M</td><td>Canonical Surface Mesh and Color</td><td>-</td></tr><tr><td>Pc</td><td>Camera Parameters</td><td>-</td></tr><tr><td>W</td><td>Skinning Weights</td><td>W∈RN×B</td></tr><tr><td>R</td><td>Rigidity Coefficient</td><td>R∈RE</td></tr><tr><td>Tt</td><td>Time Varying Transformation</td><td>T∈SE(3)</td></tr><tr><td colspan="3">Skeleton Components</td></tr><tr><td>ST</td><td>Skeleton</td><td>-</td></tr><tr><td>B</td><td>Bines</td><td>B∈RB×13</td></tr><tr><td>J</td><td>Joints</td><td>J∈RJ×5</td></tr><tr><td colspan="3">Bone Components</td></tr><tr><td>C/B[;, : 3]</td><td>Gaussian Centers Coordinates</td><td>C∈RB×3</td></tr><tr><td>Q/B[;, 3:12]</td><td>Precision Matrix</td><td>Q∈RB×9</td></tr><tr><td>L/B[;, 12]</td><td>Bone Length</td><td>L∈RB</td></tr><tr><td colspan="3">Joint Components</td></tr><tr><td>J[;, : 2]</td><td>Index of Two connected Bones</td><td>RJ×2</td></tr><tr><td>J[;, 2:]</td><td>Joint Coordinates</td><td>RJ×3</td></tr><tr><td colspan="3">Optical Flow Notations (at time t)</td></tr><tr><td>F2D,t</td><td>2D Optical Flow</td><td>F2D,t∈RH×W</td></tr><tr><td>FB,t</td><td>2D Bone Motion Direction</td><td>FB,t∈RB×2</td></tr><tr><td>FS,t</td><td>Surface Flow Direction</td><td>FS,t∈RS×2</td></tr><tr><td>Vt</td><td>Visibility Matrix</td><td>Vt∈RN×1</td></tr><tr><td colspan="3">2D Notations</td></tr><tr><td>S/S</td><td>Input silhouette/ Observed silhouette</td><td>S/S∈RH×W</td></tr><tr><td>I/I</td><td>Input Image / Observed Image</td><td>I/I∈RH×W</td></tr><tr><td>F2D/F2D</td><td>2D Input OF / 2D observed OF</td><td>F2D/F2D∈RH×W</td></tr></table>
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a6a415acbd0f43183404753e41ede185a6fa4fd7b2c99ab5e8f2fed1db939c4c
3
+ size 1026321
2024/S3O_ A Dual-Phase Approach for Reconstructing Dynamic Shape and Skeleton of Articulated Objects from Single Monocular Video/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/2c51e646-12f9-45e4-95fc-f01331d93cc3_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:60c2d674a4faf67d9bed99b0034e0c710901996626995245a57fcedd8faac535
3
+ size 9644600
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/full.md ADDED
@@ -0,0 +1,720 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SAM as the Guide: Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation
2
+
3
+ Danni Yang $^{*1}$ Jiayi Ji $^{*1}$ Yiwei Ma $^{1}$ Tianyu Guo $^{1}$ Haowei Wang $^{1,2}$ Xiaoshuai Sun $^{1}$ Rongrong Ji
4
+
5
+ # Abstract
6
+
7
+ In this paper, we introduce SemiRES, a semisupervised framework that effectively leverages a combination of labeled and unlabeled data to perform RES. A significant hurdle in applying semisupervised techniques to RES is the prevalence of noisy pseudo-labels, particularly at the boundaries of objects. SemiRES incorporates the Segment Anything Model (SAM), renowned for its precise boundary demarcation, to improve the accuracy of these pseudo-labels. Within SemiRES, we offer two alternative matching strategies: IoU-based Optimal Matching (IOM) and Composite Parts Integration (CPI). These strategies are designed to extract the most accurate masks from SAM's output, thus guiding the training of the student model with enhanced precision. In instances where a precise mask cannot be matched from the available candidates, we develop the Pixel-Wise Adjustment (PWA) strategy, guiding the student model's training directly by the pseudo-labels. Extensive experiments on three RES benchmarks—RefCOCO, RefCOCO+, and G-Ref reveal its superior performance compared to fully supervised methods. Remarkably, with only $1\%$ labeled data, our SemiRES outperforms the supervised baseline by a large margin, e.g. $+18.64\%$ gains on RefCOCO val set. The project code is available at https://github.com/nini0919/SemiRES.
8
+
9
+ *Equal contribution $^{1}$ Key Laboratory of Multimedia Trusted Perception and Efficient Computing, Ministry of Education of China, School of Informatics, Xiamen University, 361005, P.R. China. $^{2}$ Youtu Lab, Tencent, Shanghai, China. Correspondence to: Xiaoshuai Sun <xssun@xmu.edu.cn>.
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
+ ![](images/3f85fec6f1eacb42a1f650b1ba5c5bae16d4ba8ef06017ec3f5d2beecf60c111.jpg)
14
+ Figure 1. (a) A large number of noisy and incomplete cases exist in pseudo-labels. The proposed SemiRES can address this issue. (b) Analysis shows labeling a small portion of RefCOCO data can greatly reduce costs. (c) Our method substantially improves performance, even with a small number of annotated samples.
15
+
16
+ # 1. Introduction
17
+
18
+ Referring Expression Segmentation (RES) has attracted considerable attention from the fields of vision and language research (Hu et al., 2016; Chen et al., 2019b; Huang et al., 2020; Liu et al., 2019; 2023b). Unlike common visual grounding tasks such as phrase localization (Bajaj et al., 2019; Chen et al., 2017; Dogan et al., 2019; Plummer et al., 2015; 2017) and referring expression comprehension (Yang et al., 2020; Yu et al., 2018; Deng et al., 2021; Kamath et al., 2021; Huang et al., 2021), RES requires precise pixel-level segmentation of an object within an image, as directed by a referring expression, which goes beyond simple bounding box identification.
19
+
20
+ Despite advancements, the high demand for labeled data presents a significant barrier to the deployment of RES, particularly in domains where labeling is prohibitively expensive, such as medical imaging and autonomous driving. The labor intensity of the task is underscored by findings
21
+
22
+ from (Kim et al., 2023a), indicating that an average mask segmentation requires approximately 79.1 seconds. This is further exemplified by the extensive annotation efforts needed for benchmark datasets like RefCOCO (Yu et al., 2016), RefCOCO+ (Yu et al., 2016), and G-Ref (Mao et al., 2016; Nagaraja et al., 2016), which consist of tens of thousands of labeled instances and necessitate substantial time investments, as illustrated in Fig. 1 (b). The cost and time implications, alongside the potential for inaccuracies in manual labeling, present considerable challenges for the scalability and reliability of RES models, highlighting the urgent need for more efficient methodologies.
23
+
24
+ To address the challenges outlined above, we pioneer a semi-supervised learning framework tailored for RES, utilizing a combination of a small subset of image-text pairs with segmentation annotations and a large corpus of unannotated pairs to train the model. This approach has been widely validated across the fields of computer vision (Sohn et al., 2020; Olsson et al., 2021; Chen et al., 2023), natural language processing (Miyato et al., 2016; Cheng & Cheng, 2019; Zou & Caragea, 2023), and vision-language research (Yang et al., 2023; Sun et al., 2023; Jin et al., 2023). Yet, its application in RES has not yet been explored. We establish a baseline for semi-supervised RES, encompassing a comprehensive pipeline that goes beyond data augmentation (Zhang et al., 2017; Hendrycks et al., 2019; Cubuk et al., 2019; Zhao et al., 2023a) and Exponential Moving Average (Kingma & Ba, 2014; He et al., 2020; Grill et al., 2020; Tarvainen & Valpola, 2017) training mechanisms. However, this baseline encounters a substantial challenge: pseudo-labels are significantly noisy, particularly at the edges of instances, which can trap the model in suboptimal performance, as depicted in Fig. 1 (a). The crux of semi-supervised learning lies in refining these pseudo-labels to enhance their quality. Previous methods have addressed this by employing confidence-based pseudo-label filtering strategies (Sohn et al., 2020) or auxiliary correcting networks (Kwon & Kwak, 2022; Kim et al., 2023a). While intuitively appealing, relying solely on confidence for filtering may lead to the under-utilization of unlabeled data and lack flexibility in handling diverse noise in pseudo-labels.
25
+
26
+ To tackle the aforementioned issues, we introduce a novel semi-supervised RES framework named SemiRES. The motivation behind SemiRES is to leverage the robust segmentation capabilities of SAM (Kirillov et al., 2023) to rectify pseudo-labels, especially around the edges of instances. Specifically, we employ SAM to extract multi-scale masks from original images to build a proposal library. The central concept of SemiRES is to retrieve one or multiple proposals from this library to reconstruct pseudo-labels. To achieve this, we propose two alternative strategies: IoU-based Optimal Matching (IOM) and Composite Parts Integration (CPI). The first assumes that the proposal library contains masks
27
+
28
+ closely approximating the target instance, thus utilizing IoU to directly identify and replace the pseudo-label with the most corresponding mask from the library. The second strategy moves away from this assumption, instead using the pseudo-label to select different part-specific proposals from the library to assemble a complete mask. In cases where a suitable replacement cannot be retrieved from the proposal library, we default to optimizing the student model using the pseudo-label itself. To enhance training in such scenarios, we have devised a Pixel-Wise Adjustment (PWA) strategy that adjusts the final loss on a per-pixel basis according to the confidence levels on the pseudo-label.
29
+
30
+ To further qualitatively validate the effectiveness of our proposed SemiRES, we conduct extensive experiments on three RES benchmark datasets—RefCOCO, RefCOCO+, and G-Ref. Our experiments show that SemiRES notably surpasses both supervised and semi-supervised baselines in all settings, for example, gaining $+18.64\%$ and $+8.28\%$ on $1\%$ labeled RefCOCO as shown in Fig. 1 (c), which highlights its significant real-world application potential.
31
+
32
+ To sum up, the contributions of this paper are three-fold:
33
+
34
+ - We first present SemiRES, a semi-supervised framework tailored for RES that efficiently trains models using a minimal amount of labeled data, thus reducing dependence on expensive pixel-level annotations.
35
+ - We introduce two alternative strategies, IoU-based Optimal Matching (IOM) and Composite Parts Integration (CPI), that leverage the SAM's edge-segmentation proficiency to produce superior-quality pseudo-labels.
36
+ - Our SemiRES framework achieves notable performance improvements on three benchmark datasets RefCOCO, RefCOCO+, and G-Ref, demonstrating significant gains in model accuracy while concurrently cutting down on labeling costs.
37
+
38
+ # 2. Related Work
39
+
40
+ # 2.1. Referring Expression Segmentation
41
+
42
+ Referring Expression Segmentation (Chen et al., 2019b; Huang et al., 2020; Liu et al., 2023b;a; Hu et al., 2023; Kim et al., 2023b; Yang et al., 2022b) is a multimodal task involving both image segmentation and natural language understanding. It aims to identify specific target regions within an image according to natural language expressions. In recent years, RES methods have made significant progress, with Transformer-based backbones emerging as the predominant choice for this task. Additionally, RES methods can be categorized into two main types: one-stage and two-stage approaches. One-stage methods (Chen et al., 2019a; Hu et al., 2020; Hui et al., 2020) usually use end-to-end networks for
43
+
44
+ prediction, while two-stage methods (Yu et al., 2018; Liu et al., 2022) employ an instance segmentation network to generate a set of instance proposals before selecting the target instance. Recently, GRES (Liu et al., 2023a) introduces multi-target and no-target expressions, extending the classic RES to refer to an arbitrary number of target objects.
45
+
46
+ # 2.2. Semi-Supervised Semantic Segmentation
47
+
48
+ Semi-supervised learning (French et al., 2019; Xu et al., 2021; Wu et al., 2021; Olsson et al., 2021; Jiang et al., 2022; Yang et al., 2023), using a small amount of labeled data alongside a larger pool of unlabeled data for training, has widespread applications in computer vision and natural language processing. In recent years, semi-supervised semantic segmentation has developed rapidly, with many new research works emerging (Ouali et al., 2020; Chen et al., 2021; Wang et al., 2022; Yang et al., 2022a). Building upon FixMatch (Sohn et al., 2020), PseudoSeg (Zou et al., 2020) extends weak consistency to strong consistency in segmentation scenarios and incorporates a calibration module for pseudo-label refinement. ReCo (Liu et al., 2021a) samples classes prone to confusion across all categories to assist the segmentation network for better representations. AugSeg (Zhao et al., 2023b), a simple yet effective method, primarily enhances the performance of semi-supervised semantic segmentation through data augmentation.
49
+
50
+ # 2.3. Segment Anything Model
51
+
52
+ The recent Segment Anything Model (SAM) (Kirillov et al., 2023) has made significant advancements in pushing the boundaries of segmentation, greatly boosting the development of foundational models for computer vision. Trained on SA-1B of over 1 billion masks, it aims to segment any object in any given image without requiring any additional task-specific adaptation. SAM is proved to be capable of solving various tasks, such as medical image analysis (Ma & Wang, 2023; Shi et al., 2023), adversarial attacks (Guan et al., 2023; Zhang et al., 2023a), image inpainting (Yu et al., 2023), image editing (Xie et al., 2023), image captioning (Wang et al., 2023). Recently, several works (Zhang et al., 2023b; Liu et al., 2023c) have incorporated SAM for one-shot learning, contributing significantly to SAM's multifaceted development. In this paper, we investigate how to leverage SAM to enhance pseudo-labels and improve the performance of semi-supervised learning.
53
+
54
+ # 3. Method
55
+
56
+ # 3.1. Task Definition
57
+
58
+ Before diving into SemiRES, we begin with illustrating the task definition of semi-supervised referring expression segmentation (RES). We usually have a small labeled dataset
59
+
60
+ $\mathcal{D}_l = \left\{\left(\mathcal{T}_i^l,\mathcal{T}_i^l\right),Y_i^l\right\}_{i = 1}^{N^l}$ and a much larger unlabeled dataset $\mathcal{D}_u = \left\{\left(\mathcal{T}_i^u,\mathcal{T}_i^u\right),\emptyset\right\}_{i = 1}^{N^u}$ , where $\mathcal{T}_i^l,\mathcal{T}_i^u$ denote the $i$ -th labeled and unlabeled image, respectively; $\mathcal{T}_i^l$ and $\mathcal{T}_i^u$ are the corresponding language expressions; $N^l$ and $N^u$ are the number of labeled and unlabeled data, with $N^l\ll N^u$ . It is crucial to note that the unlabeled set $\mathcal{D}_u$ lacks ground truth mask labels, utilizing language expressions solely as input. Our primary aim is to leverage this small labeled set alongside a large unlabeled set to achieve competitive performance in the RES task.
61
+
62
+ # 3.2. Semi-Supervised Baseline
63
+
64
+ We introduce a semi-supervised baseline for RES based on a teacher-student network structure. This approach unfolds in two stages:
65
+
66
+ Stage1: Burn-In Stage. In the semi-supervised teacher-student framework, achieving proper parameter initialization is crucial for accelerating the convergence of training during the mutual learning stage (Liu et al., 2021b). During the Burn-In stage, we train the pre-trained model using only labeled data. The optimization objective is defined as follows:
67
+
68
+ $$
69
+ \mathcal {L} _ {s u p} = \frac {1}{H \times W} \sum_ {j = 1} ^ {H \times W} \mathcal {L} _ {B C E} \left(M _ {i, j} ^ {l}, Y _ {i, j} ^ {l}\right), \tag {1}
70
+ $$
71
+
72
+ where $M_{i,j}^{l}$ denotes the prediction mask of Burn-In model for the $j$ -th pixel of $i$ -th labeled image, $Y_{i,j}^{l}$ denotes the corresponding ground truth, $\mathcal{L}_{BCE}$ denotes binary cross entropy loss (Csiszár, 2008).
73
+
74
+ Stage2: Mutual-Learning Stage. After the Burn-In stage, we use the trained weights $\theta$ to initialize both the teacher and student models. This process is defined as follows:
75
+
76
+ $$
77
+ \theta_ {t} \leftarrow \theta , \theta_ {s} \leftarrow \theta , \tag {2}
78
+ $$
79
+
80
+ where $\theta_t, \theta_s, \theta$ denote the parameters of the teacher, student and Burn-In model, respectively.
81
+
82
+ During the mutual learning stage, the teacher generates pseudo-labels for unlabeled data to supervise the training of the student, which is defined as follows:
83
+
84
+ $$
85
+ \mathcal {L} _ {u n s u p} = \frac {1}{H \times W} \sum_ {j = 1} ^ {H \times W} \mathcal {L} _ {B C E} \left(M _ {i, j} ^ {u}, \hat {M} _ {i, j} ^ {u}\right), \tag {3}
86
+ $$
87
+
88
+ where $M_{i,j}^{u}$ and $\hat{M}_{i,j}^{u}$ denote the predicted mask for $j$ -th pixel of $i$ -th unlabeled image by student and teacher, respectively.
89
+
90
+ Simultaneously, the student continues to train on a small subset of labeled data, jointly optimizing with these two components of loss function, which is defined as follows:
91
+
92
+ $$
93
+ \mathcal {L} = \lambda_ {\sup } \mathcal {L} _ {\sup } + \lambda_ {\text {u n s u p}} \mathcal {L} _ {\text {u n s u p}}, \tag {4}
94
+ $$
95
+
96
+ ![](images/f5e9369c8499d47a4eaaa7a13dddb501dcda4b0e0d858dab58d763993ea26b4d.jpg)
97
+ Figure 2. An overview of the proposed SemiRES, featuring a teacher-student network with data augmentation and mutual learning. It includes SAM-based pseudo-label refinement using IOM or CPI strategies, and PWA supervision when matches are not found.
98
+
99
+ where $\lambda_{sup}$ and $\lambda_{unsup}$ is the hyperparameter of supervised loss $\mathcal{L}_{sup}$ and unsupervised loss $\mathcal{L}_{unsup}$ .
100
+
101
+ To maintain the stability of pseudo-labels, we forego gradient backpropagation for updating the teacher model's parameters. Instead, we employ the Exponential Moving Average (EMA) method to create an aggregated model reflecting both the current and previous states. EMA's effectiveness has been substantiated in numerous studies (Kingma & Ba, 2014; Ioffe & Szegedy, 2015; He et al., 2020; Grill et al., 2020; Tarvainen & Valpola, 2017). The use of EMA not only improves the teacher model's accuracy but also its stability, making it a valuable tool during the mutual learning stage, which is formulated as follows:
102
+
103
+ $$
104
+ \theta_ {t} \leftarrow \alpha \theta_ {t} + (1 - \alpha) \theta_ {s}, \tag {5}
105
+ $$
106
+
107
+ where $\alpha$ is the decay coefficient of EMA, typically set within the small range of 0.9 to 0.999.
108
+
109
+ # 3.3. The Proposed SemiRES
110
+
111
+ # 3.3.1. OVERVIEW
112
+
113
+ The overview of our proposed SemiRES is depicted in Fig. 2. SemiRES inherits the semi-supervised framework introduced in Sec. 3.2 and proposes new strategies to address the challenges of noisy pseudo-labels encountered by regular semi-supervised frameworks, which limit the extraction of knowledge from unlabeled data. The core idea is to exploit the powerful edge segmentation capabilities of SAM. The central question of our research is how to utilize these masks to refine the noisy pseudo-labels. In this paper, we propose two alternative matching strategies, IoU-based Optimal Matching (IOM) and Composite Parts Integration
114
+
115
+ (CPI), to select masks that contribute to the final pseudolabels, as detailed in Sec. 3.3.2. Moreover, when segments generated by SAM cannot be matched with pseudo-labels, we introduce a Pixel-Wise Weighted Adjustment (PWA) scheme to focus the model on more reliable pixels, thereby improving performance, as outlined in Sec. 3.3.3.
116
+
117
+ # 3.3.2. SAM-BASED PSEUDO-LABEL REFINEMENT
118
+
119
+ Despite SAM's powerful segmentation capabilities, effectively harnessing these for pseudo-label refinement is an area ripe for investigation. We have formulated two strategies for matching SAM-generated segments with the original pseudo-labels to improve their accuracy. Before deploying these strategies, we utilize SAM's "Segment Everything" feature to create an extensive proposal library of multi-scale candidate segments for our dataset offline, eliminating the need for specific prompts. To optimize storage space, we implement the Run Length Encoding (RLE) algorithm<sup>1</sup>. Considering that SAM is capable of producing hundreds to thousands of intricate segments per image, adopting efficient storage solutions is crucial. Importantly, while the RLE algorithm achieves high compression rates, it also preserves the precision of the candidate masks.
120
+
121
+ IoU-based Optimal Matching (IOM). To achieve our goal, we initially consider a more straightforward approach, premised on the robust multi-scale segmentation ability of the Segment Anything Model (SAM). We hypothesize that the proposal library, constructed as previously mentioned, likely contains a close approximation of the ideal target seg
122
+
123
+ ![](images/6760b71804a92df1247fdd6bf44c56ad253052216b93c37e368ff8148ce4e60a.jpg)
124
+ Figure 3. Visualization of the principles behind IOM and CPI addressing pseudo-label issues in different cases.
125
+
126
+ mentation. Therefore, our task simplifies devising a method to retrieve this optimal mask from the library.
127
+
128
+ Our method involves an IoU-based selection process, which computes the similarity between the pseudo-labels and each segment generated by SAM. We aim to identify the segment with the highest similarity score, ensuring it aligns closely with the overall target mask. The similarity measure is calculated using the Intersection over Union (IoU) metric, a standard in object detection and segmentation tasks that quantifies the extent of overlap between two areas. By selecting the segment with the top-1 IoU score from the candidate pool, we can effectively align our model's output with the most accurate representation of the intended segmentation, as detailed below:
129
+
130
+ $$
131
+ s ^ {k} = \frac {\sum_ {j = 1} ^ {H \times W} \left(\hat {M} _ {i , j} ^ {u} \cap \widetilde {M} _ {i , j , k} ^ {u}\right)}{\sum_ {j = 1} ^ {H \times W} \left(\hat {M} _ {i , j} ^ {u} \cup \widetilde {M} _ {i , j , k} ^ {u}\right)}, \tag {6}
132
+ $$
133
+
134
+ where $\hat{M}_{i,j}^{u}$ and $\widetilde{M}_{i,j,k}^{u}$ denote the pseudo-labels and $k$ -th segment mask generated by SAM for $j$ -th pixel of $i$ -th unlabeled image $\mathcal{I}_i^u$ , respectively. When the score $s^k$ exceeds a certain threshold $IoU_{rate}$ , the matched mask will replace the pseudo-label. The detailed matching schemes can be found in Algorithm 1, particularly within lines 4 to 9.
135
+
136
+ Composite Parts Integration (CPI). In our exploration of semi-supervised referring expression segmentation, we recognize that while the IoU-based Optimal Matching (IOM) strategy is generally straightforward and effective, it may falter in certain scenarios. One such instance occurs when the proposal library lacks an ideal target segmentation, rendering even the most sophisticated matching algorithm incapable of finding an appropriate guide mask. Another instance is when the disparity between the pseudo-labels and the desired segmentation is too substantial to allow for effective correction. We have noted that the original pseudo-labels generated by the teacher model can suffer from either under-segmentation or over-segmentation of the target instances, as depicted in Fig. 3. These inaccuracies diminish the quality of the pseudo-labels, providing erroneous guidance to the student model and impeding its learning.
137
+
138
+ Under-segmentation is characterized by incomplete coverage of the target instance, missing activation for certain region pixels. To address this, we aim to identify larger regions within the proposal library to rectify the pseudolabels. Our selection is based on the overlap ratio with the pseudo-labels, calculated as follows:
139
+
140
+ $$
141
+ s _ {1} ^ {k} = \frac {\sum_ {j = 1} ^ {H \times W} \left(\hat {M} _ {i , j} ^ {u} \cap \widetilde {M} _ {i , j , k} ^ {u}\right)}{\sum_ {j = 1} ^ {H \times W} \left(\hat {M} _ {i , j} ^ {u}\right) + \epsilon}, \tag {7}
142
+ $$
143
+
144
+ where $\epsilon$ is the smoothing factor to prevent a denominator of zero. When the overlap ratio $s_1^k$ exceeds a predefined threshold $inter_1$ , the $k$ -th segment $\widetilde{M}_{i,:,k}^u$ generated by SAM is selected and subsequently merged to replace the pseudo-labels. This method is referred to as Composite Parts Integration for Under-segmentation (CPI-U). Conversely, over-segmentation introduces erroneous regions into the segmentation. To mitigate this, we seek to leverage SAM's segmentation to filter out the extraneous noise. The selection is based on the overlap ratio with the candidate mask, computed as:
145
+
146
+ $$
147
+ s _ {2} ^ {k} = \frac {\sum_ {j = 1} ^ {H \times W} \left(\hat {M} _ {i , j} ^ {u} \cap \widetilde {M} _ {i , j , k} ^ {u}\right)}{\sum_ {j = 1} ^ {H \times W} \left(\widetilde {M} _ {i , j , k} ^ {u}\right)}. \tag {8}
148
+ $$
149
+
150
+ Likewise, when the ratio $s_2^k$ is above the set threshold $inter_2$ , the segment $\widetilde{M}_{i,:,k}^u$ generated by SAM is chosen and integrated to refine the pseudo-labels. This approach is termed Composite Parts Integration for Over-segmentation (CPI-O). When both conditions are met, we form the overarching CPI strategy. The detailed matching schemes can be found in Algorithm 1, particularly within lines 10 to 15.
151
+
152
+ # 3.3.3. Pixel-WISE WEIGHTED ADJUSTMENT
153
+
154
+ Despite the effectiveness of our two strategies for refining pseudo-labels, there are cases where the scores do not ex
155
+
156
+ Algorithm 1 Pseudo code for our proposed SemiRES
157
+
158
+ Input: Teacher's predicted pseudo mask $\hat{M}_i^u$ for $i$ -th unlabeled image $\mathcal{I}_i^u$ , the multi-scale mask $\{\widetilde{M}_{i,:k}^u\}_{k=1}^{N_i}$ generated by SAM, the number of masks $N_i$ generated by SAM for $\mathcal{I}_i^u$ , selected strategy $S$ , current top-1 score $s_{top}$
159
+
160
+ Output: Enhanced pseudo mask $\tilde{M}_i^u$
161
+
162
+ 1: Initialize $\ddot{M}_i^u\gets \emptyset ,s_{top}\gets 0;$
163
+ 2: for k in 1... $N_{i}$ do
164
+ 3: Get $k$ -th SAM's segment $\widetilde{M}_{i,:;k}^{u}$ for image $\mathcal{T}_i^u$ ;
165
+ 4: if $S ==$ "IOM" then
166
+ 5: Compute the score $s^k$ by Eq.(6);
167
+ 6: if $s^k > IoU_{rate}$ and $s^k > s_{stop}$ then
168
+ 7: $\ddot{M}_i^u\gets \widetilde{M}_{i,::k}^u,s_{top}\gets s;$
169
+ 8: end if
170
+ 9: end if
171
+ 10: if $S ==$ "CPI" then
172
+ 11: Compute the score $s_1^k, s_2^k$ by Eq.(7) and Eq.(8);
173
+ 12: if $s_1^k > \text{inter}_1$ or $s_2^k > \text{inter}_2$ then
174
+ 13: $\tilde{M}_i^u\gets \tilde{M}_i^u\cup \tilde{M}_{i,:;k}^u;$
175
+ 14: end if
176
+ 15: end if
177
+ 16: end for
178
+ 17: if $\ddot{M}_i^u = = \emptyset$ then
179
+ 18: Replace the enhanced pseudo-label $\tilde{M}_i^u$ with the teacher's predicted pseudo-labels: $\tilde{M}_i^u\gets \tilde{M}_i^u$
180
+ 19: end if
181
+
182
+ ceed a certain threshold, indicating a mismatch between SAM-generated segments and the current pseudo-labels. In such situations, as inspired by previous work (Yang et al., 2023), we implement the Pixel-Wise Weighted Adjustment (PWA). PWA's core objective is to assign weights to pixels based on their confidence levels. High-confidence pixels, with scores near 0 or 1, indicate certainty in foreground or background prediction and are given higher weights. In contrast, pixels with scores around 0.5, often associated with noise or ambiguity, receive lower weights to reduce their influence on training. The mapping function $\Psi$ for translating pixel confidence into weights is defined as:
183
+
184
+ $$
185
+ \Psi (\hat {M} _ {i, j} ^ {u}) = \gamma - \frac {1}{\sqrt {2 \pi} \sigma} \exp \left(- \frac {(\hat {M} _ {i , j} ^ {u} - \mu) ^ {2}}{2 \sigma^ {2}}\right), \qquad (9)
186
+ $$
187
+
188
+ where $\gamma, \sigma^2, \mu$ are hyperparameters, which are set to 1.3, 0.1, and 0.5 respectively.
189
+
190
+ Therefore, the loss for $i$ -th unlabeled image $\mathcal{I}_i^u$ is defined as follows:
191
+
192
+ $$
193
+ \mathcal {L} _ {u n s u p} = \frac {1}{H \times W} \sum_ {j = 1} ^ {H \times W} \Psi \left(\hat {M} _ {i, j} ^ {u}\right) * L _ {B C E} \left(M _ {i, j} ^ {u}, \hat {M} _ {i, j} ^ {u}\right). \tag {10}
194
+ $$
195
+
196
+ # 4. Experiment
197
+
198
+ # 4.1. Datasets
199
+
200
+ We verify the effectiveness of our proposed method on three standard RES benchmark datasets, RefCOCO (Yu et al., 2016), RefCOCO+ (Yu et al., 2016), and G-Ref (Mao et al., 2016; Nagaraja et al., 2016). Images in these datasets are collected from the MS-COCO dataset (Lin et al., 2014) and are attached with one or more short captions.
201
+
202
+ RefCOCO & RefCOCO+ contains 19,994, 19,992 images, with 50,000, 49,856 annotated objects and 142,209, 141,564 annotated expressions, respectively. RefCOCO and RefCOCO+ are split into four parts, i.e., train, val, testA and testB. The expressions of RefCOCO are mainly about absolute position, while the ones of RefCOCO+ includes more information related to attributes.
203
+
204
+ G-Ref contains 26,711 images, with 54,822 annotated objects and 104,560 annotated expressions. In contrast, G-Ref contains more intricate expressions, with an average length of 8.4 words, making the dataset more challenging. Moreover, the G-Ref dataset is split into two distinct partitions, one maintained by UMD and the other by Google, and we present results for UMD split.
205
+
206
+ # 4.2. Implementation Details
207
+
208
+ Our experimental setup uses LAVT (Yang et al., 2022b) as the baseline for the RES network, employing the same Swin Transformer (Liu et al., 2021c) and BERT (Devlin et al., 2018) backbones for visual and linguistic modalities, respectively. We implement our SemiRES model in PyTorch (Paszke et al., 2019), training it on 4 RTX3090 GPUs with 3 labeled and 3 unlabeled samples per GPU. Optimization is done using the AdamW optimizer, with an initial learning rate of $5 \times 10^{-5}$ and weight decay of $10^{-2}$ . Data augmentation includes RandomColorJitter and RandomGaussianBlur. We set the EMA rate at 0.996 and use pre-trained weights of the ViT-Huge version for SAM in generating multi-scale masks.
209
+
210
+ We use the overall Intersection-over-Union (oIoU) metric (Ding et al., 2021; Yang et al., 2022b; Liu et al., 2023b), a standard in RES, to measure the overlap ratio between predicted masks and ground truth.
211
+
212
+ # 4.3. Experimental Results
213
+
214
+ # 4.3.1. COMPARISON WITH SUPERVISED MODEL AND BASELINE
215
+
216
+ In Tab. 1, we conduct experiments on RefCOCO, RefCOCO+ and G-Ref under the setting of $0.5\%$ , $1\%$ , $2\%$ and $5\%$ labeled data. From the results, it can be observed that the performance of the supervised model dramatically drops when lacking sufficient labeled data. For instance,
217
+
218
+ Table 1. Comparison of supervised, baseline and our proposed SemiRES on RefCOCO, RefCOCO+ and G-Ref. For all approaches, we use LAVT (Yang et al., 2022b) as the RES model. "Supervised" denotes the fully-supervised training with only labeled data. "Baseline" denotes the plain semi-supervised training with data augmentation using both labeled and unlabeled data.
219
+
220
+ <table><tr><td rowspan="3">Methods</td><td colspan="12">RefCOCO</td></tr><tr><td colspan="3">0.5%</td><td colspan="3">1%</td><td colspan="3">2%</td><td colspan="3">5%</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>Supervised</td><td>22.37</td><td>25.35</td><td>19.28</td><td>32.26</td><td>35.71</td><td>28.02</td><td>39.46</td><td>42.50</td><td>35.26</td><td>49.40</td><td>53.72</td><td>44.87</td></tr><tr><td>Baseline</td><td>30.33</td><td>35.18</td><td>25.74</td><td>42.62</td><td>48.86</td><td>37.43</td><td>51.05</td><td>54.75</td><td>46.34</td><td>60.58</td><td>64.98</td><td>54.85</td></tr><tr><td>SemiRES</td><td>40.31</td><td>46.48</td><td>34.88</td><td>50.90</td><td>57.54</td><td>44.48</td><td>54.85</td><td>60.39</td><td>48.52</td><td>61.31</td><td>66.64</td><td>55.94</td></tr><tr><td rowspan="3">Methods</td><td colspan="12">RefCOCO+</td></tr><tr><td colspan="3">0.5%</td><td colspan="3">1%</td><td colspan="3">2%</td><td colspan="3">5%</td></tr><tr><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>Supervised</td><td>20.83</td><td>24.53</td><td>16.25</td><td>24.76</td><td>29.11</td><td>20.29</td><td>28.88</td><td>32.41</td><td>24.49</td><td>37.60</td><td>42.32</td><td>32.39</td></tr><tr><td>Baseline</td><td>25.89</td><td>30.42</td><td>20.23</td><td>30.91</td><td>35.83</td><td>24.98</td><td>36.98</td><td>41.44</td><td>30.63</td><td>46.29</td><td>52.46</td><td>38.61</td></tr><tr><td>SemiRES</td><td>31.99</td><td>38.06</td><td>25.92</td><td>36.49</td><td>42.86</td><td>28.58</td><td>40.41</td><td>46.84</td><td>33.30</td><td>47.00</td><td>54.42</td><td>38.74</td></tr><tr><td rowspan="3">Methods</td><td colspan="12">G-Ref</td></tr><tr><td colspan="3">0.5%</td><td colspan="3">1%</td><td colspan="3">2%</td><td colspan="3">5%</td></tr><tr><td>val(U)</td><td colspan="2">test(U)</td><td>val(U)</td><td colspan="2">test(U)</td><td>val(U)</td><td colspan="2">test(U)</td><td>val(U)</td><td colspan="2">test(U)</td></tr><tr><td>Supervised</td><td>18.33</td><td colspan="2">18.69</td><td>24.31</td><td colspan="2">24.72</td><td>28.23</td><td colspan="2">29.86</td><td>37.25</td><td colspan="2">38.62</td></tr><tr><td>Baseline</td><td>26.02</td><td colspan="2">27.62</td><td>30.91</td><td colspan="2">31.51</td><td>37.07</td><td colspan="2">38.55</td><td>46.67</td><td colspan="2">48.39</td></tr><tr><td>SemiRES</td><td>31.81</td><td colspan="2">33.40</td><td>34.76</td><td colspan="2">36.18</td><td>42.15</td><td colspan="2">43.49</td><td>47.61</td><td colspan="2">50.11</td></tr></table>
221
+
222
+ with $0.5\%$ labeled data, the overall IoU on RefCOCO val set is only $22.37\%$ . We also compare the plain semi-supervised baseline, as mentioned in Sec. 3.2, which surpasses the supervised method in all settings, i.e., exhibiting a $+7.96\%$ improvement on RefCOCO val set, with $0.5\%$ labeled data. Most importantly, our proposed SemiRES achieves state-of-the-art performance compared to baseline. In comparison to the supervised model, SemiRES gains $+17.94\%$ , $+18.64\%$ , $+15.39\%$ , and $+11.91\%$ on RefCOCO val set under the setting of $0.5\%$ , $1\%$ , $2\%$ , and $5\%$ labeled data, respectively.
223
+
224
+ # 4.3.2. ABLATION STUDY
225
+
226
+ To validate the effectiveness of components in SemiRES, we conduct the ablation study on the $1\%$ labeled data and the remaining $99\%$ unlabeled data on RefCOCO.
227
+
228
+ The comparison of different matching strategies. In Tab. 2, we evaluate our two proposed matching strategies: IOM and CPI. Both strategies significantly surpass the baseline, demonstrating their effectiveness. IOM, which matches the top-1 IoU mask from SAM, attains $49.66\%$ oIoU on the RefCOCO val set. This result not only indicates the simplicity and efficacy of IOM but also corroborates SAM's exceptional segmentation ability, capable of producing ideal masks in most instances. However, IOM is slightly less effective compared to CPI, particularly when pseudo-labels segment only a small part of the target.
229
+
230
+ CPI-O, tailored for over-segmentation scenarios, effec
231
+
232
+ Table 2. Ablation study of SAM Matching Strategy.
233
+
234
+ <table><tr><td>SAM Matching Strategy</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>baseline</td><td>42.62</td><td>48.86</td><td>37.43</td></tr><tr><td>IOM</td><td>49.66</td><td>55.26</td><td>44.09</td></tr><tr><td>CPI-O</td><td>45.23</td><td>52.53</td><td>38.30</td></tr><tr><td>CPI-U</td><td>50.90</td><td>57.54</td><td>44.48</td></tr><tr><td>CPI</td><td>50.37</td><td>56.88</td><td>44.52</td></tr></table>
235
+
236
+ tively eliminates noise by filtering out excessively segmented small regions. Nonetheless, its performance increment is less pronounced (45.23% vs. 42.62%) when the noisy region enlarges and starts matching with new noisy areas. In contrast, CPI-U, designed to tackle under-segmentation, emerges as the most performant strategy (50.90% vs. 42.62%). This superior performance of CPI-U can be attributed to its efficient resolution of the common under-segmentation problem in pseudo-labels. When CPI-O and CPI-U are combined into a CPI strategy, there is a minor decrease in performance, likely due to CPI-U inadvertently introducing noise in the pseudo-label refinement process.
237
+
238
+ The impact of the matching threshold. In the proposed SemiRES, we use specific thresholds to optimize the matching rates for the IOM and CPI strategies. Our ablation study, shown in Tab. 3, reveals that IOM achieves its best performance with an $IoU_{rate}$ of 0.5. For CPI, a higher performance is observed when $inter_1$ and $inter_2$ are both set
239
+
240
+ # Input img
241
+
242
+ # Supervised
243
+
244
+ # Baseline
245
+
246
+ # Ours
247
+
248
+ # Ground Truth
249
+
250
+ ![](images/fdd3b5624555231674da53dbdd73fed0a845a76bd32185edf6be7df4d2cefb61.jpg)
251
+ Exp-1: far right luggage.
252
+ Exp-2: smile piece.
253
+
254
+ ![](images/29bf173bafabae32c91b72dbe80e271e9e4f55265a9ce2aa6e7f47f30850f8a8.jpg)
255
+
256
+ ![](images/6da8550020c4d0b40c6bca72b0b4230d6f6d8c62943bcd5a40f2c8002fa67f46.jpg)
257
+
258
+ ![](images/0dbbea9c84e95794453b851062fd78bd9e983f64ace33b441d334b15d7c6f075.jpg)
259
+
260
+ ![](images/f57653c8b7755eb76ae7aa72487ccf23437bfb1d51a172061737fd081a61a61d.jpg)
261
+
262
+ ![](images/33a67d6460c15cfb1a5e806b47f6198c7ea8f07ac8ac2099389f2a23df51ed6c.jpg)
263
+
264
+ ![](images/dbdd6abf30603da0d68ea7d7015ce0f3e964138164e129072e740876bfa2f633.jpg)
265
+
266
+ ![](images/04e4a50ed9d5771ccea11756e444e5d4be542b7dce0573f5e3dc4bed632e08b1.jpg)
267
+
268
+ ![](images/4abf7db19c0790056ae03ccf97eaff6ee95231f5b5951155fdd9c7aae51dc939.jpg)
269
+
270
+ ![](images/d79eb1f868d8e881677b60ce59718500e1ccda8dadb2c272bd14fb4a4128e4c3.jpg)
271
+
272
+ ![](images/d07eb8eb538b738400de5ab809927b1cfbe0c44d178f4ad910e31daeb26e48e5.jpg)
273
+ Exp-3: elephant facing us.
274
+ Figure 4. Qualitative analysis for SemiRES, supervised model, semi-supervised baseline and ground truth. The white number in the bottom right corner represents the IoU value between predicted image and ground truth. The object enclosed by the red dashed box represents incorrect segmentation. Here we use supervised and semi-supervised model trained on $1\%$ labeled data for visualization.
275
+
276
+ ![](images/8c47079712ddab266612606c0689442268adfd8d6cace13dbcf012f0e9f960a8.jpg)
277
+
278
+ ![](images/432db47596e29570a899cfaf3df21b695d6e457860b16fee38ebad69c03ff3a1.jpg)
279
+
280
+ ![](images/20c084c2b390ebcf842a8994e4954551a96348fbd652dd2bbe29377d6a3f446e.jpg)
281
+
282
+ ![](images/c70074382cd7cda8474e968881e68589c6116b6e68d9f8163d55966df71e1941.jpg)
283
+
284
+ Table 3. Ablation study of different thresholds for matching.
285
+
286
+ <table><tr><td>inter1</td><td>inter2</td><td>IoUrate</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>-</td><td>-</td><td>0.7</td><td>48.24</td><td>55.34</td><td>41.83</td></tr><tr><td>-</td><td>-</td><td>0.6</td><td>49.36</td><td>56.35</td><td>42.94</td></tr><tr><td>-</td><td>-</td><td>0.5</td><td>49.66</td><td>55.26</td><td>44.09</td></tr><tr><td>0.7</td><td>0.7</td><td>-</td><td>50.37</td><td>56.88</td><td>44.52</td></tr><tr><td>0.6</td><td>0.6</td><td>-</td><td>50.18</td><td>56.97</td><td>44.51</td></tr><tr><td>0.5</td><td>0.5</td><td>-</td><td>49.38</td><td>56.40</td><td>43.07</td></tr><tr><td>0.7</td><td>-</td><td>-</td><td>50.90</td><td>57.54</td><td>44.48</td></tr><tr><td>0.6</td><td>-</td><td>-</td><td>50.13</td><td>57.66</td><td>43.71</td></tr><tr><td>0.5</td><td>-</td><td>-</td><td>50.21</td><td>57.03</td><td>44.17</td></tr></table>
287
+
288
+ to 0.7. This setting is crucial as lower thresholds in CPI could include noise, especially in the CPI-U variant, where $inter_1 = 0.7$ yields the best results. By default, unless specified otherwise, $IoU_{rate}$ , $inter_1$ , and $inter_2$ are set to 0.5, 0.7, and 0.7, respectively.
289
+
290
+ Comparison with filtering-based method. In our analysis, as presented in Tab. 4, we compare SemiRES with a confidence filtering method that eliminates the lowest $5\%$ of pseudo-labels based on confidence scores. SemiRES demonstrates superior performance, achieving $50.90\%$ versus $42.99\%$ on the $1\%$ RefCOCO validation set. This result suggests that the filtering-based method is overly rigid, leading to suboptimal use of pseudo-labels.
291
+
292
+ Effectiveness of different Components. We present our
293
+
294
+ Table 4. Comparison of SemiRES and filtering-based method.
295
+
296
+ <table><tr><td>Semi-Supervised Settings</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>Supervised</td><td>32.26</td><td>35.71</td><td>28.02</td></tr><tr><td>baseline</td><td>42.62</td><td>48.86</td><td>37.43</td></tr><tr><td>+confidence filtering</td><td>42.99</td><td>48.78</td><td>35.96</td></tr><tr><td>+SemiRES</td><td>50.90</td><td>57.54</td><td>44.48</td></tr></table>
297
+
298
+ Table 5. Ablation study on various components: MLT (mutual learning training), DA (data augmentation), PWA (pixel-wise adjustment), and Refine (SAM matching refinement).
299
+
300
+ <table><tr><td>MLT</td><td>DA</td><td>PWA</td><td>Refine</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>X</td><td>X</td><td>X</td><td>X</td><td>32.26</td><td>35.71</td><td>28.02</td></tr><tr><td>✓</td><td>X</td><td>X</td><td>X</td><td>40.84</td><td>46.46</td><td>35.22</td></tr><tr><td>✓</td><td>✓</td><td>X</td><td>X</td><td>42.62</td><td>48.86</td><td>37.43</td></tr><tr><td>✓</td><td>✓</td><td>✓</td><td>X</td><td>43.09</td><td>49.72</td><td>37.10</td></tr><tr><td>✓</td><td>✓</td><td>X</td><td>✓</td><td>49.96</td><td>57.12</td><td>43.86</td></tr><tr><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>50.90</td><td>57.54</td><td>44.48</td></tr></table>
301
+
302
+ experimental analysis in Tab. 5, systematically ablated to evaluate each component of SemiRES. The first row uses only $1\%$ labeled data for supervised training. The second row adds the remaining $99\%$ as unlabeled data for basic semi-supervised learning. The third and fourth rows include data augmentation and the PWA module, demonstrating their effectiveness with incremental improvements (40.84% vs. 42.62% vs. 43.09%). The fifth row shows a significant
303
+
304
+ gain from using SAM for pseudo-label refinement, with a $7.34\%$ increase (49.96% vs. 42.62%). Finally, the sixth row indicates that PWA continues to improve performance even when SAM candidates do not match the pseudo-labels, highlighting the synergistic effect of these modules.
305
+
306
+ # 4.4. Qualitative Analysis
307
+
308
+ We showcase qualitative results in Fig. 4, comparing SemiRES with a supervised model, a semi-supervised baseline, and ground truth. Impressively, SemiRES corrects errors from both the supervised model and the semi-supervised baseline. For instance, in the first example, while the supervised and baseline models fail to interpret "far right" correctly, leading to inaccurate identification of the luggage, SemiRES precisely localizes the target. In the second example, SemiRES effectively understands "smile" and accurately segments the correct pizza. In a more complex third scenario with several elephants, SemiRES successfully identifies the elephant facing towards us, demonstrating its advanced understanding.
309
+
310
+ # 5. Conclusion
311
+
312
+ In this work, we present a novel semi-supervised framework, namely SemiRES, to address the challenge of costly annotations in RES. SemiRES incorporates two innovative matching strategies that leverage the robust segmentation capabilities of SAM to refine the quality of pseudo-labels. In situations where SAM is unable to rectify the pseudolabels, we employ the Pixel-Wise Adjustment (PWA) strategy, which utilizes the original pseudo-labels for efficient training directly. Our extensive experiments demonstrate that SemiRES achieves competitive results on three RES benchmark datasets, underscoring its viability and effectiveness for real-world applications.
313
+
314
+ # Impact Statement
315
+
316
+ 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.
317
+
318
+ # Acknowledgements
319
+
320
+ This work was supported by National Key R&D Program of China (No.2023YFB4502804), the National Science Fund for Distinguished Young Scholars (No.62025603), the National Natural Science Foundation of China (No. U21B2037, No. U22B2051, No. 62072389), the National Natural Science Fund for Young Scholars of China (No. 62302411), China Postdoctoral Science Foundation (No. 2023M732948), the Natural Science Foundation of Fujian
321
+
322
+ Province of China (No.2021J01002, No.2022J06001), and partially sponsored by CCF-NetEase ThunderFire Innovation Research Funding (NO. CCF-Netease 202301).
323
+
324
+ # References
325
+
326
+ Bajaj, M., Wang, L., and Sigal, L. G3raphground: Graph-based language grounding. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 4281-4290, 2019.
327
+ Chen, D.-J., Jia, S., Lo, Y.-C., Chen, H.-T., and Liu, T.-L. See-through-text grouping for referring image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 7454-7463, 2019a.
328
+ Chen, H., Tao, R., Fan, Y., Wang, Y., Wang, J., Schiele, B., Xie, X., Raj, B., and Savvides, M. Softmatch: Addressing the quantity-quality trade-off in semi-supervised learning. arXiv preprint arXiv:2301.10921, 2023.
329
+ Chen, K., Kovvuri, R., and Nevatia, R. Query-guided regression network with context policy for phrase grounding. In Proceedings of the IEEE International Conference on Computer Vision, pp. 824-832, 2017.
330
+ Chen, X., Yuan, Y., Zeng, G., and Wang, J. Semi-supervised semantic segmentation with cross pseudo supervision. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2613-2622, 2021.
331
+ Chen, Y.-W., Tsai, Y.-H., Wang, T., Lin, Y.-Y., and Yang, M.-H. Referring expression object segmentation with caption-aware consistency. arXiv preprint arXiv:1910.04748, 2019b.
332
+ Cheng, Y. and Cheng, Y. Semi-supervised learning for neural machine translation. Joint training for neural machine translation, pp. 25-40, 2019.
333
+ Csiszár, I. Axiomatic characterizations of information measures. Entropy, 10(3):261-273, 2008.
334
+ Cubuk, E. D., Zoph, B., Mane, D., Vasudevan, V., and Le, Q. V. Autoaugment: Learning augmentation strategies from data. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 113-123, 2019.
335
+ Deng, J., Yang, Z., Chen, T., Zhou, W., and Li, H. Transvg: End-to-end visual grounding with transformers. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 1769-1779, 2021.
336
+ Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. arXiv preprint arXiv:1810.04805, 2018.
337
+
338
+ Ding, H., Liu, C., Wang, S., and Jiang, X. Vision-language transformer and query generation for referring segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 16321-16330, 2021.
339
+ Dogan, P., Sigal, L., and Gross, M. Neural sequential phrase grounding (seqground). In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4175-4184, 2019.
340
+ French, G., Laine, S., Aila, T., Mackiewicz, M., and Finlayson, G. Semi-supervised semantic segmentation needs strong, varied perturbations. arXiv preprint arXiv:1906.01916, 2019.
341
+ Grill, J.-B., Strub, F., Altché, F., Tallec, C., Richemond, P., Buchatskaya, E., Doersch, C., Avila Pires, B., Guo, Z., Gheshlaghi Azar, M., et al. Bootstrap your own latent-a new approach to self-supervised learning. Advances in neural information processing systems, 33:21271-21284, 2020.
342
+ Guan, Z., Hu, M., Zhou, Z., Zhang, J., Li, S., and Liu, N. Badsam: Exploring security vulnerabilities of sam via backdoor attacks. arXiv preprint arXiv:2305.03289, 2023.
343
+ He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. Momentum contrast for unsupervised visual representation learning. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 9729-9738, 2020.
344
+ Hendrycks, D., Mu, N., Cubuk, E. D., Zoph, B., Gilmer, J., and Lakshminarayanan, B. Augmix: A simple data processing method to improve robustness and uncertainty. arXiv preprint arXiv:1912.02781, 2019.
345
+ Hu, R., Rohrbach, M., and Darrell, T. Segmentation from natural language expressions. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part I 14, pp. 108-124. Springer, 2016.
346
+ Hu, Y., Wang, Q., Shao, W., Xie, E., Li, Z., Han, J., and Luo, P. Beyond one-to-one: Rethinking the referring image segmentation. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4067-4077, 2023.
347
+ Hu, Z., Feng, G., Sun, J., Zhang, L., and Lu, H. Bidirectional relationship inferring network for referring image segmentation. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 4424-4433, 2020.
348
+
349
+ Huang, B., Lian, D., Luo, W., and Gao, S. Look before you leap: Learning landmark features for one-stage visual grounding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 16888-16897, 2021.
350
+ Huang, S., Hui, T., Liu, S., Li, G., Wei, Y., Han, J., Liu, L., and Li, B. Referring image segmentation via cross-modal progressive comprehension. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10488-10497, 2020.
351
+ Hui, T., Liu, S., Huang, S., Li, G., Yu, S., Zhang, F., and Han, J. Linguistic structure guided context modeling for referring image segmentation. In European Conference on Computer Vision, pp. 59-75. Springer, 2020.
352
+ Ioffe, S. and Szegedy, C. Batch normalization: Accelerating deep network training by reducing internal covariate shift. In International conference on machine learning, pp. 448-456. pmlr, 2015.
353
+ Jiang, Y., Li, X., Chen, Y., He, Y., Xu, Q., Yang, Z., Cao, X., and Huang, Q. Maxmatch: Semi-supervised learning with worst-case consistency. IEEE Transactions on Pattern Analysis and Machine Intelligence, 45(5):5970-5987, 2022.
354
+ Jin, L., Luo, G., Zhou, Y., Sun, X., Jiang, G., Shu, A., and Ji, R. Refclip: A universal teacher for weakly supervised referring expression comprehension. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 2681-2690, 2023.
355
+ Kamath, A., Singh, M., LeCun, Y., Synnaeve, G., Misra, I., and Carion, N. Mdetr-modulated detection for end-to-end multi-modal understanding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 1780-1790, 2021.
356
+ Kim, B., Jeong, J., Han, D., and Hwang, S. J. The devil is in the points: Weakly semi-supervised instance segmentation via point-guided mask representation. arXiv preprint arXiv:2303.15062, 2023a.
357
+ Kim, D., Kim, N., Lan, C., and Kwak, S. Shatter and gather: Learning referring image segmentation with text supervision. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 15547-15557, 2023b.
358
+ Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980, 2014.
359
+ 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. arXiv preprint arXiv:2304.02643, 2023.
360
+
361
+ Kwon, D. and Kwak, S. Semi-supervised semantic segmentation with error localization network. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 9957-9967, 2022.
362
+ Lin, T.-Y., Maire, M., Belongie, S., Hays, J., Perona, P., Ramanan, D., Dollár, P., and Zitnick, C. L. Microsoft coco: Common objects in context. In Computer Vision-ECCV 2014: 13th European Conference, Zurich, Switzerland, September 6-12, 2014, Proceedings, Part V 13, pp. 740-755. Springer, 2014.
363
+ Liu, C., Jiang, X., and Ding, H. Instance-specific feature propagation for referring segmentation. IEEE Transactions on Multimedia, 2022.
364
+ Liu, C., Ding, H., and Jiang, X. Gres: Generalized referring expression segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 23592-23601, 2023a.
365
+ Liu, D., Zhang, H., Wu, F., and Zha, Z.-J. Learning to assemble neural module tree networks for visual grounding. In Proceedings of the IEEE/CVF International Conference on Computer Vision, pp. 4673-4682, 2019.
366
+ Liu, J., Ding, H., Cai, Z., Zhang, Y., Satzoda, R. K., Mahadevan, V., and Manmatha, R. Polyformer: Referring image segmentation as sequential polygon generation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18653-18663, 2023b.
367
+ Liu, S., Zhi, S., Johns, E., and Davison, A. J. Bootstrapping semantic segmentation with regional contrast. arXiv preprint arXiv:2104.04465, 2021a.
368
+ Liu, Y., Zhu, M., Li, H., Chen, H., Wang, X., and Shen, C. Matcher: Segment anything with one shot using all-purpose feature matching. arXiv preprint arXiv:2305.13310, 2023c.
369
+ Liu, Y.-C., Ma, C.-Y., He, Z., Kuo, C.-W., Chen, K., Zhang, P., Wu, B., Kira, Z., and Vajda, P. Unbiased teacher for semi-supervised object detection. arXiv preprint arXiv:2102.09480, 2021b.
370
+ 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, 2021c.
371
+ Ma, J. and Wang, B. Segment anything in medical images. arXiv preprint arXiv:2304.12306, 2023.
372
+ Mao, J., Huang, J., Toshev, A., Camburu, O., Yuille, A. L., and Murphy, K. Generation and comprehension of unambiguous object descriptions. In Proceedings of the IEEE
373
+
374
+ conference on computer vision and pattern recognition, pp. 11-20, 2016.
375
+ Miyato, T., Dai, A. M., and Goodfellow, I. Adversarial training methods for semi-supervised text classification. arXiv preprint arXiv:1605.07725, 2016.
376
+ Nagaraja, V. K., Morariu, V. I., and Davis, L. S. Modeling context between objects for referring expression understanding. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part IV 14, pp. 792-807. Springer, 2016.
377
+ Olsson, V., Tranheden, W., Pinto, J., and Svensson, L. Class-mix: Segmentation-based data augmentation for semi-supervised learning. In Proceedings of the IEEE/CVF Winter Conference on Applications of Computer Vision, pp. 1369-1378, 2021.
378
+ Ouali, Y., Hudelot, C., and Tami, M. Semi-supervised semantic segmentation with cross-consistency training. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12674-12684, 2020.
379
+ Paszke, A., Gross, S., Massa, F., Lerer, A., Bradbury, J., Chanan, G., Killeen, T., Lin, Z., Gimelshein, N., Antiga, L., et al. Pytorch: An imperative style, high-performance deep learning library. Advances in neural information processing systems, 32, 2019.
380
+ Plummer, B. A., Wang, L., Cervantes, C. M., Caicedo, J. C., Hockenmaier, J., and Lazebnik, S. Flickr30k entities: Collecting region-to-phrase correspondences for richer image-to-sentence models. In Proceedings of the IEEE international conference on computer vision, pp. 2641-2649, 2015.
381
+ Plummer, B. A., Mallya, A., Cervantes, C. M., Hockenmaier, J., and Lazebnik, S. Phrase localization and visual relationship detection with comprehensive image-language cues. In Proceedings of the IEEE international conference on computer vision, pp. 1928-1937, 2017.
382
+ Shi, P., Qiu, J., Abaxi, S. M. D., Wei, H., Lo, F. P.-W., and Yuan, W. Generalist vision foundation models for medical imaging: A case study of segment anything model on zero-shot medical segmentation. *Diagnostics*, 13(11): 1947, 2023.
383
+ Sohn, K., Berthelot, D., Carlini, N., Zhang, Z., Zhang, H., Raffel, C. A., Cubuk, E. D., Kurakin, A., and Li, C.-L. Fixmatch: Simplifying semi-supervised learning with consistency and confidence. Advances in neural information processing systems, 33:596-608, 2020.
384
+
385
+ Sun, J., Luo, G., Zhou, Y., Sun, X., Jiang, G., Wang, Z., and Ji, R. Refteacher: A strong baseline for semi-supervised referring expression comprehension. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 19144-19154, 2023.
386
+ Tarvainen, A. and Valpola, H. Mean teachers are better role models: Weight-averaged consistency targets improve semi-supervised deep learning results. Advances in neural information processing systems, 30, 2017.
387
+ Wang, T., Zhang, J., Fei, J., Ge, Y., Zheng, H., Tang, Y., Li, Z., Gao, M., Zhao, S., Shan, Y., et al. Caption anything: Interactive image description with diverse multimodal controls. arXiv preprint arXiv:2305.02677, 2023.
388
+ Wang, Y., Wang, H., Shen, Y., Fei, J., Li, W., Jin, G., Wu, L., Zhao, R., and Le, X. Semi-supervised semantic segmentation using unreliable pseudo-labels. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 4248-4257, 2022.
389
+ Wu, J., Fan, H., Zhang, X., Lin, S., and Li, Z. Semi-supervised semantic segmentation via entropy minimization. In 2021 IEEE International Conference on Multimedia and Expo (ICME), pp. 1-6. IEEE, 2021.
390
+ Xie, D., Wang, R., Ma, J., Chen, C., Lu, H., Yang, D., Shi, F., and Lin, X. everything: A text-guided generative system for images editing. arXiv preprint arXiv:2304.14006, 2023.
391
+ Xu, Y., Shang, L., Ye, J., Qian, Q., Li, Y.-F., Sun, B., Li, H., and Jin, R. Dash: Semi-supervised learning with dynamic thresholding. In International Conference on Machine Learning, pp. 11525-11536. PMLR, 2021.
392
+ Yang, D., Ji, J., Sun, X., Wang, H., Li, Y., Ma, Y., and Ji, R. Semi-supervised panoptic narrative grounding. In Proceedings of the 31st ACM International Conference on Multimedia, pp. 7164-7174, 2023.
393
+ Yang, L., Qi, L., Feng, L., Zhang, W., and Shi, Y. Revisiting weak-to-strong consistency in semi-supervised semantic segmentation. arXiv preprint arXiv:2208.09910, 2022a.
394
+ Yang, Z., Chen, T., Wang, L., and Luo, J. Improving one-stage visual grounding by recursive sub-query construction. In Computer Vision-ECCV 2020: 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part XIV 16, pp. 387-404. Springer, 2020.
395
+ Yang, Z., Wang, J., Tang, Y., Chen, K., Zhao, H., and Torr, P. H. Lavt: Language-aware vision transformer for referring image segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 18155-18165, 2022b.
396
+
397
+ Yu, L., Poirson, P., Yang, S., Berg, A. C., and Berg, T. L. Modeling context in referring expressions. In Computer Vision-ECCV 2016: 14th European Conference, Amsterdam, The Netherlands, October 11-14, 2016, Proceedings, Part II 14, pp. 69-85. Springer, 2016.
398
+ Yu, L., Lin, Z., Shen, X., Yang, J., Lu, X., Bansal, M., and Berg, T. L. Mattnet: Modular attention network for referring expression comprehension. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 1307-1315, 2018.
399
+ Yu, T., Feng, R., Feng, R., Liu, J., Jin, X., Zeng, W., and Chen, Z. Inpaint anything: Segment anything meets image inpainting. arXiv preprint arXiv:2304.06790, 2023.
400
+ Zhang, C., Zhang, C., Kang, T., Kim, D., Bae, S.-H., and Kweon, I. S. Attack-sam: Towards evaluating adversarial robustness of segment anything model. arXiv preprint arXiv:2305.00866, 2023a.
401
+ Zhang, H., Cisse, M., Dauphin, Y. N., and Lopez-Paz, D. mixup: Beyond empirical risk minimization. arXiv preprint arXiv:1710.09412, 2017.
402
+ Zhang, R., Jiang, Z., Guo, Z., Yan, S., Pan, J., Ma, X., Dong, H., Gao, P., and Li, H. Personalize segment anything model with one shot. arXiv preprint arXiv:2305.03048, 2023b.
403
+ Zhao, Z., Yang, L., Long, S., Pi, J., Zhou, L., and Wang, J. Augmentation matters: A simple-yet-effective approach to semi-supervised semantic segmentation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 11350-11359, 2023a.
404
+ Zhao, Z., Yang, L., Long, S., Pi, J., Zhou, L., and Wang, J. Augmentation matters: A simple-yet-effective approach to semi-supervised semantic segmentation. In CVPR, 2023b.
405
+ Zou, H. P. and Caragea, C. Jointmatch: A unified approach for diverse and collaborative pseudo-labeling to semi-supervised text classification. arXiv preprint arXiv:2310.14583, 2023.
406
+ Zou, X., Yang, J., Zhang, H., Li, F., Li, L., Wang, J., Wang, L., Gao, J., and Lee, Y. J. Segment everything everywhere all at once. Advances in Neural Information Processing Systems, 36, 2024.
407
+ Zou, Y., Zhang, Z., Zhang, H., Li, C.-L., Bian, X., Huang, J.-B., and Pfister, T. Pseudoseg: Designing pseudo labels for semantic segmentation. arXiv preprint arXiv:2010.09713, 2020.
408
+
409
+ # A. The Labeling Cost at Different Ratios
410
+
411
+ In semi-supervised learning, the more labeled data there is, the higher the cost of annotation. The three RES benchmark datasets RefCOCO, RefCOCO+, G-Ref contain 50000, 49856 and 54822 annotated objects, respectively. Following the label budget calculation in (Kim et al., 2023a), manually labeling a mask for one instance takes approximately 79.1 seconds. Therefore, it can be observed that annotating masks for the entire dataset is a very time-consuming task. Based on this, we calculate the required annotation time for labeling $0.5\%$ , $1\%$ , $2\%$ , $5\%$ , $10\%$ , $20\%$ , and $50\%$ of the data on the RefCOCO as follows:
412
+
413
+ - $0.5\%$ : $50000 \times 0.005 \times 79.1 / 60 / 60 / 24 = 0.2$ day
414
+ - $1\%$ : $50000 \times 0.01 \times 79.1 / 60 / 60 / 24 = 0.5$ day
415
+ - $2\%$ : $50000 \times 0.02 \times 79.1 / 60 / 60 / 24 = 1.0$ day
416
+ - $5\%$ : $50000 \times 0.05 \times 79.1 / 60 / 60 / 24 = 2.3$ day
417
+ - $10\%$ : $50000 \times 0.1 \times 79.1 / 60 / 60 / 24 = 4.6$ day
418
+ - $20\%$ : $50000 \times 0.2 \times 79.1 / 60 / 60 / 24 = 9.2$ day
419
+ - $50\%$ : $50000 \times 0.5 \times 79.1 / 60 / 60 / 24 = 22.9$ day
420
+ - Fully-supervised: $50000 \times 79.1 / 60 / 60 / 24 = 45.8$ day
421
+
422
+ # B. The Impact of the Proportion of Labeled Data
423
+
424
+ We further conduct the experiment using our SemiRES framework with a larger proportion of labeled data under the settings of $10\%$ , $20\%$ , $30\%$ , $40\%$ , and $50\%$ of labeled data, as shown in Tab. 6. We observe that when the labeled data approaches $30\%$ , the performance of our method nearly matches that of fully supervised models. This validates that our proposed SemiRES maintains great segmentation performance with a significant reduction in annotation costs.
425
+
426
+ # C. The Impact on Different RES Frameworks
427
+
428
+ To assess the generalizability of SemiRES, we integrate it with the region-based GRES baseline ReLA (Liu et al., 2023a). As Tab. 7 shows, SemiRES significantly enhances performance compared to the "Supervised" approach $(43.57\%$ vs. $31.54\%)$ , demonstrating its robust generalization capabilities across different RES frameworks.
429
+
430
+ # D. The Working Principles of IOM and CPI
431
+
432
+ To provide a clearer understanding of the working principles underlying the two SAM-based Pseudo-Label Refinement modules we have introduced, namely the IOM and CPI
433
+
434
+ Table 6. The impact of the proportion of labeled data.
435
+
436
+ <table><tr><td>Setting</td><td>Labeled Fraction</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td rowspan="5">SemiRES</td><td>10%</td><td>63.60</td><td>68.43</td><td>60.20</td></tr><tr><td>20%</td><td>65.97</td><td>69.15</td><td>62.08</td></tr><tr><td>30%</td><td>68.54</td><td>70.62</td><td>63.90</td></tr><tr><td>40%</td><td>68.76</td><td>71.69</td><td>65.23</td></tr><tr><td>50%</td><td>69.45</td><td>72.94</td><td>65.68</td></tr><tr><td>Fully-Supervised</td><td>-</td><td>72.73</td><td>75.82</td><td>68.79</td></tr></table>
437
+
438
+ Table 7. Results of different state-of-the-art (SOTA) RES approaches equipped with the SemiRES strategy.
439
+
440
+ <table><tr><td>RES Baseline</td><td>Settings</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td rowspan="3">LAVT (Yang et al., 2022b)</td><td>Supervised</td><td>32.26</td><td>35.71</td><td>28.02</td></tr><tr><td>Baseline</td><td>42.62</td><td>48.86</td><td>37.43</td></tr><tr><td>SemiRES</td><td>50.90</td><td>57.54</td><td>44.48</td></tr><tr><td rowspan="3">GRES (Liu et al., 2023a)</td><td>Supervised</td><td>31.54</td><td>35.93</td><td>25.37</td></tr><tr><td>Baseline</td><td>38.65</td><td>43.53</td><td>34.63</td></tr><tr><td>SemiRES</td><td>43.57</td><td>49.05</td><td>39.05</td></tr></table>
441
+
442
+ method, as depicted in Fig. 5. Specifically, we select a sample to elucidate how IOM and CPI operate in matching pseudo-labels. Specifically, IOM selects the best-matching segment proposal that meets the criteria from the candidate pool within SAM and uses it as the refined pseudo-label. IOM algorithm selects the segment with index 7 as the optimal match to refine the pseudo-label. On the other hand, CPI leverages the multi-scale characteristics obtained from SAM segmentation, systematically selecting qualifying partial segments, and eventually merging them together to form the final result. For CPI, it selects all segments that meet the conditions, such as indices 3, 4, 5, 6, and 7. In the end, it takes the union of these segments as the final refined pseudo-label. Observably, IOM and CPI, while both aimed at refining pseudo-labels within the SAM differ significantly in their operational approach and specialization. IOM is tailored for simpler, less noisy label refinement tasks, while CPI is designed to address more complex segmentation errors, together providing a comprehensive solution for enhancing the accuracy of pseudo-labels in segmentation tasks.
443
+
444
+ # E. Comparison with other class-agnostic proposal network
445
+
446
+ To validate the tight combination between our SemiRES and SAM, we replace SAM with SEEM (Zou et al., 2024) for generating class-agnostic mask proposals and applied our matching strategy to refine pseudo-labels. As shown in Tab. 8, the results maintained under the same configurations as detailed in our paper, indicated that the performance did not match that achieved using SAM for proposal extraction. Our analysis suggests that this discrepancy stems from the designed CPI algorithm capitalizing on SAM's strong seg
447
+
448
+ ![](images/429a071e99ebfe73f76f9637a9fae15663f2ee67b48859d46e96f808904b792c.jpg)
449
+ Figure 5. Demonstration of how IOM and CPI operate in matching pseudo-labels. The caption for this image is "kid looking at you".
450
+
451
+ Table 8. Comparison with other class-agnostic proposal network.
452
+
453
+ <table><tr><td>Semi-Supervised Settings</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td>Supervised</td><td>32.26</td><td>35.71</td><td>28.02</td></tr><tr><td>SemiRES(+SEEM)</td><td>47.61</td><td>56.28</td><td>43.62</td></tr><tr><td>SemiRES(+SAM)</td><td>50.90</td><td>57.54</td><td>44.48</td></tr></table>
454
+
455
+ mentation capability and its ability to extract multi-scale proposal masks, which facilitated effective pseudo-label optimization, a feat not typically achievable with general class-agnostic proposal networks.
456
+
457
+ # F. The potential of SemiRES for detecting small objects
458
+
459
+ To explore the potential of our proposed SemiRES method for detecting small objects, we curated samples from the Ref-COCO training, validation, and test sets, organizing them by the size of the ground truth masks from smallest to largest, and specifically selected the top $5\%$ and $10\%$ of samples featuring small objects. As shown in Tab. 9, experiments conducted on these subsets serve to validate the efficacy of our SemiRES approach in comparison to traditional supervised methods when focusing on small objects. Our findings reveal that our method significantly outperforms the supervised approach in this area. This improvement is
460
+
461
+ Table 9. The potential of SemiRES for detecting small objects.
462
+
463
+ <table><tr><td>Setting</td><td>Method</td><td>val</td><td>testA</td><td>testB</td></tr><tr><td rowspan="2">Top 5% small objects</td><td>Supervised</td><td>11.37</td><td>13.84</td><td>11.75</td></tr><tr><td>SemiRES</td><td>20.45</td><td>27.21</td><td>17.04</td></tr><tr><td rowspan="2">Top 10% small objects</td><td>Supervised</td><td>13.70</td><td>14.88</td><td>12.59</td></tr><tr><td>SemiRES</td><td>24.98</td><td>29.76</td><td>18.05</td></tr></table>
464
+
465
+ attributed to the SAM's ability to utilize a multi-scale library of offline-generated masks, which includes candidates for small objects, allowing for the refinement of pseudo-labels.
466
+
467
+ # G. Quantitative Statistics for Pseudo-label Refinement
468
+
469
+ Due to the presence of noise and incompleteness in pseudolabels, our proposed two SAM-based Pseudo-Label Refinement modules effectively enhance the quality of pseudolabels, facilitating the mutual learning process between teacher and student models. To further analyze the roles of the designed IOM and CPI, along with their variants, we numerically compute their frequency for positive, negative corrections and no correction of pseudo-labels, as illustrated in Fig. 6. Here we use the ground truth of all unlabeled data in three RES datasets to validate the correction performance of our methods. Positive correction indicates that, after
470
+
471
+ ![](images/766346fd2b29c4caa9e7193d3a3a30bcd6c0ea32ef5835c8ac5883d54b450f0b.jpg)
472
+ Figure 6. Quantitative statistics of positive, negative corrections and no corrections(PWA) for IOM, CPI and variants.
473
+
474
+ ![](images/a0b3dcbb1632934f916688f35a929dd12e655019ca4e176a3a7dc6b7649177af.jpg)
475
+ Figure 7. Training curves of two matching strategies of SemiRES and semi-supervised baselines.
476
+
477
+ the matching refinement, the corrected pseudo-label has a higher IoU with the ground truth than the original pseudolabel, thereby improving the quality of the pseudo-label. Negative correction, on the other hand, is the opposite; the quality of the updated pseudo-label is worse, exacerbating the misguidance in student learning. No correction indicates that the matching algorithms do not find a suitable correction for the pseudo label, thus the Pixel-Wise Adjustment (PWA) strategy mentioned in this paper is used for adjustment. The histogram results show that, among the three datasets for RES, the CPI method performs best in positive correction, while its variant CPI-U has the least occurrence of negative correction. And CPI-U exhibits faster convergence as shown in Fig. 7.
478
+
479
+ # H. Additional Visualizations
480
+
481
+ We present more comparative visualizations of our proposed SemiRES with both supervised and baseline models, alongside the ground truth, as illustrated in Fig. 8. Through these extensive examples, it becomes apparent that our proposed SemiRES excels in understanding semantic attributes such
482
+
483
+ as absolute positional terms, spatial relations, and colors. Moreover, it demonstrates a strong capability in comprehending the semantics of complex sentences. Furthermore, it adeptly handles intricate details, showcasing robust proficiency in managing nuanced information. These visualizations underscore the effectiveness of our proposed SemiRES in correcting noisy and incomplete pseudo-labels, significantly enhancing performance, especially in scenarios with limited data.
484
+
485
+ # Input img
486
+
487
+ # Supervised
488
+
489
+ # Baseline
490
+
491
+ # Ours
492
+
493
+ # Ground Truth
494
+
495
+ Exp-1: left donut with white icing.
496
+
497
+ ![](images/44b013f1efeafcad8d73ee01d784ba74b3cb9c491dc38846a92aa394a426ceb4.jpg)
498
+
499
+ ![](images/59533520ec1ce9b40826c8f748f0994daec0fb93e69f91c322a79e06acba91a2.jpg)
500
+
501
+ ![](images/770edbfedab2a7c16af409696c0e45f810da51eb1bebc758b02bb46c47a3df64.jpg)
502
+
503
+ ![](images/852b16806dde2abafe02b6cf41122e28237f8a3e0c0998b2a4d1bd1b68d68cb7.jpg)
504
+
505
+ ![](images/448ae2f58065133a9b24ac57d7c48da3d654e7bc6ce5300672ecd5881ef3ea15.jpg)
506
+
507
+ Exp-2: left laptop.
508
+
509
+ ![](images/fb6a5f38761b88290c4916e01eff390a2b29e7afb318b9ef3739fec1a10848ce.jpg)
510
+
511
+ ![](images/29f698c5b30654950d26483cc8634035df6f6ab91e71cc2d8f560bd35e56577f.jpg)
512
+
513
+ ![](images/fb4adedfeae0a84a673a5057ec5bdce051ac606f028bb386da6526ee9e4d6587.jpg)
514
+
515
+ ![](images/76feeaeab10ffae8d6f0415a2210df8e95ac98c0c014537bbb29fb615bfece73.jpg)
516
+
517
+ ![](images/581f04af550c35030892d8619478d415dec2d8c178872fd1beb49f41cd83fc65.jpg)
518
+
519
+ Exp-3: lower left girl.
520
+
521
+ ![](images/832e1aad6f36816b291286b14deec44ff846e9778c3403e55f0fe92571361f15.jpg)
522
+
523
+ ![](images/f4c1b0663f522ee104640f38b25950fda5f72fe0c445d9860088f378f6ca039b.jpg)
524
+
525
+ ![](images/37a84ea4aa653aa3e415e9472086f2be6f73d6e18bf0d87bfd5839e630df87f8.jpg)
526
+
527
+ ![](images/32e76a159fd7fa65a0273b2c66ca9b5e3e85c056be9528ffb35ce65624977aae.jpg)
528
+
529
+ ![](images/e537fc1047b95abc59e629f78629477002cace71d73e45788c9708d48405fd15.jpg)
530
+
531
+ Exp-4: the one cloest.
532
+
533
+ ![](images/ff58a710c5ecc7ce24ffd213e6f1b8d932042f7483ce4074a9aad2e8bf612b97.jpg)
534
+
535
+ ![](images/a520f0456e965b357ce5020c3efeafee1bf446f06e723e028a345cbd7f32941c.jpg)
536
+
537
+ ![](images/29668b9414dc00fd562e524b502e9ac78af4441eb1a7faf8c508cfa3cb6b6b4a.jpg)
538
+
539
+ ![](images/051b2c1447f30fa6503e240cc4b3acd592db1e0030353961a2322e3a83eb3558.jpg)
540
+
541
+ ![](images/85b9e0671f17e310ee900d4b1fe9bbd55158ea79720877c3abcbdb1fec4dc793.jpg)
542
+
543
+ Exp-5: man in hat.
544
+
545
+ ![](images/878580b2aa2707f003e0aa26767a3067d3fd899efdf66466448bb8b23ce68b42.jpg)
546
+
547
+ ![](images/50706771eed5fc5c6e4fd644a9dd23b3a15b583acbf3869b3416ce59d20baac2.jpg)
548
+
549
+ ![](images/00693c77344005d63c22a253a5c58e63dc3b6292777b05f61c709471d03ae824.jpg)
550
+
551
+ ![](images/2b1d559105c97982a58be24f98a8c1db1aa13f1559afc4afa3123b2878e4eff0.jpg)
552
+
553
+ ![](images/39cb13a72676ff4bc8b79fb14b4748fe6835cc632e64761743c719063b5b8e32.jpg)
554
+
555
+ Exp-6: person in black shirt.
556
+
557
+ ![](images/1b559ea1c75643f72921734ee40ad0e5f9e08be0a856a1f995c3715779e545cb.jpg)
558
+
559
+ ![](images/742c1e4f1873b54fb80089557817e40e8642b485e5d88dafd9a63037a6e7b365.jpg)
560
+
561
+ ![](images/2307912f472fd94735b93d90d3f0436aa1e0782430dc407d023e303bc9493193.jpg)
562
+
563
+ ![](images/e126e8cbb02fb2fcd4238dd7c5aeb003deaec1a848bdf9420fb1ed243bd61dce.jpg)
564
+
565
+ ![](images/945968b3fe2dc2b2722014f3c8097ccf824ce1bd0b6b0b3e81ef6bd7f6c4b0ad.jpg)
566
+
567
+ Exp-7: the gentleman in the middle with a white shirt and a purple necktie.
568
+
569
+ ![](images/2e0844e17f9fc92e8bfd61a05236c6bbf72c16c8f141d6e468db97455082f67d.jpg)
570
+
571
+ ![](images/8005312d5bd5228c8a414583e80124dc0d1797ca9c3ff0c12d6069a1410cee32.jpg)
572
+
573
+ ![](images/4a5cefdf84a08d1cfc063372901c9e037f63f4b0c0b5291a015e2ebfe87659af.jpg)
574
+
575
+ ![](images/d55aa8e407e3c43c1551aa271cbb38da240ebb14c5b935d8071815d57dd6c3bc.jpg)
576
+
577
+ ![](images/1a3dbfda93bb8dd6dcb430237986cd5520ff41fbbf5a2d20d484ea3245319d14.jpg)
578
+
579
+ Exp-8: red bus in road.
580
+
581
+ ![](images/a7f310bf062d61ffaaedbc1a3b1639bc6f18b482ef7fca2c3051f1234eb2cef8.jpg)
582
+
583
+ ![](images/3d3eef8b5c87f76bad371c697ba7f3fa442acaeeba6925216bb53fc3958642a0.jpg)
584
+
585
+ ![](images/3a952dfb6bf2f8a0ba367ebdac70fc8d441699ef7162c38ad301a59a53861ec1.jpg)
586
+
587
+ ![](images/c795725b9a4680ffcc03d89054da37d3eb2d0d8cebc3ff708566ab200f6882f0.jpg)
588
+
589
+ ![](images/238b759cd82266dc17e0dec23fefbb18e7bcccb93b8a5a65aa14a66914a02d17.jpg)
590
+
591
+ Exp-9: the white bus with no markings.
592
+
593
+ ![](images/629c43d6a23940bcc49750bdf9bb63c5626123c26c4239d9f2fd1da39292e3b5.jpg)
594
+
595
+ ![](images/4c8357790e1a6a073a89f15a354f935a0b555ea74fa59903a837c783d11da29a.jpg)
596
+
597
+ ![](images/4e7210555416d48d63c6c5e97d2c5aedc14f1034341a0f1d761bbbfb00e58215.jpg)
598
+
599
+ ![](images/fe909bf0b0ca0e24e703e515a7d0a3ddf3a8c39c36cd9ed046e7c51fa9200d5d.jpg)
600
+
601
+ ![](images/42ecb6c8e4d155c78eb2b9eaf1e468860c152262c8e86193bde6ba4c5acfe2dc.jpg)
602
+
603
+ # Input img
604
+
605
+ Exp-19: man in blue.
606
+
607
+ ![](images/ac5c42073cf79a4cf699b32c63529b6f26c3d8bf1c37b1f7d8dc74928b75d2d0.jpg)
608
+
609
+ # Supervised
610
+
611
+ ![](images/01bc9695903db2f1f94919c5eae72fc305df37993ecdf23088a022f7597c45ef.jpg)
612
+
613
+ # Baseline
614
+
615
+ ![](images/40064a62f7464ba06c7440bf7b7dae2f222703d17b210b701bebf6b0a70d40bb.jpg)
616
+
617
+ # Ours
618
+
619
+ ![](images/497d8688f95de21873837cbbb672527d2f2fa0008e2f45689bba1c51c9f929f1.jpg)
620
+
621
+ # Ground Truth
622
+
623
+ ![](images/f6794df4618f2badfe5e635e7c03078a9fb5856e8dd33ffd4b19f44454a57cea.jpg)
624
+
625
+ Exp-20: the man in the striped shirt.
626
+
627
+ ![](images/d5a6d0d1724f5af1007839c7c707109259f5a2b8be862645af960e59d4c4f3a8.jpg)
628
+
629
+ ![](images/c22683811337e1d7dd3eba7508758b3680ccd3d9212303cbe63bb2181a48e779.jpg)
630
+
631
+ ![](images/411c349a359352e029ee06fb41c8a3200022f1010fd25cb3d1b3ce8a99e186bb.jpg)
632
+
633
+ ![](images/f32567bab2e47858e4fe679da6d9dbb36cd5c9c8fb4dfe73f43daddc266f88bb.jpg)
634
+
635
+ ![](images/5df801bba5bd0cfc8ee3d4da8767eda5121610ad92d9e1fe45e04a1288bccde9.jpg)
636
+
637
+ Exp-21: the train.
638
+
639
+ ![](images/f00fd130140dd99ed1bf15d22f6c08c738e4d30b74909bec8e94df34247c9cd1.jpg)
640
+
641
+ ![](images/0a585cfeb1d9aefbb55c6000db3b8cb9e88859f6f344d1e5667638ae41466fad.jpg)
642
+
643
+ ![](images/7729e89a431bc6c1e3ee1b10fbbb9ae905369ea9e915449350512e38ff7bc5ff.jpg)
644
+
645
+ ![](images/29e5e5530f3b0b25cdd308384fc580dbf8b627cedf8a240e92cc47b460505c61.jpg)
646
+
647
+ ![](images/f0a103c342dbd6ac646f64f45e3b17699c7a0631f38dc70e947be27bdde3ec3d.jpg)
648
+
649
+ Exp-22: girl looking at laptop.
650
+
651
+ ![](images/2f67a3f31d83251c5a2172671fda5f510c30a7fd10d382edcbb3e18d6ac25700.jpg)
652
+
653
+ ![](images/ebb4505d5fdbc167b5489685eab4f0425ecc25499a827689c390a81ce6234a51.jpg)
654
+
655
+ ![](images/cb9505093ecc8ed201f23cb9a72f8e0ac520a43b03b5b1690af825e191888521.jpg)
656
+
657
+ ![](images/9a9ad9fd1aafb2444f70cde7a3baac272b0278a317d2487894c645e1b3072fa6.jpg)
658
+
659
+ ![](images/b5990e69e84dce1fe85dbaf7472d97e00b061c3e9899597b99b125234b5b3802.jpg)
660
+
661
+ Exp-23:a man in a purple shirt is riding on a skateboard as his picture is being taken.
662
+
663
+ ![](images/75bf6761eca974b5ac8e179e9fc784ae607798c57c63781d8cea8e5454df0538.jpg)
664
+
665
+ ![](images/e0b6420533a52169b8387cfbd692f5565cfb82fcc3eec043c2a949e24a348721.jpg)
666
+
667
+ ![](images/44b1cf8dd73a5b031c98695c2aad9b13effa04ec8fc26d19a49aef236315322d.jpg)
668
+
669
+ ![](images/f584a6078934cbffce91f1915f3f9752cb4aeeb126ed89d3d807b442c5f273bb.jpg)
670
+
671
+ ![](images/a1701338759afb50e4102986543fbdb8602b613aa2e888d00571b639b80829d9.jpg)
672
+
673
+ Exp-24: lying cow.
674
+
675
+ ![](images/42a334fff7de08e7442024f39b81af35110eccc04e581fa0f36c310184c7b94f.jpg)
676
+
677
+ ![](images/372ad9f6bd182cd8fcf617a416c8f238b2efc6af3bc8469b1bb37c681231a372.jpg)
678
+
679
+ ![](images/389ad2735e08e52391baee94ddf070207090f5646441481a55df3ca03794724c.jpg)
680
+
681
+ ![](images/cbb1467b30a2fef3fabcce2c88ec13d127fc553f3515b323225beb6033f01f44.jpg)
682
+
683
+ ![](images/85cf200864f2e0768ecd88c171d444dc8f407bcef93798b9c8122fb79127c909.jpg)
684
+
685
+ Exp-25: main red bus.
686
+
687
+ ![](images/345d6f341bf73d17f564c56c692a3775fd8127f95f3a6e515c831826ec890966.jpg)
688
+
689
+ ![](images/0b429f50174dda7becc6c31c25bdcdbb6e18eb2ac855c9b3c29e264da24210f5.jpg)
690
+
691
+ ![](images/f980039c371d95ee9d8e7d4488bae713c06518b702ccfd30989c497137b722fd.jpg)
692
+
693
+ ![](images/226178552b47d68d795ea34ad915718215c65f323fc993fb9054b2ceeded314f.jpg)
694
+
695
+ ![](images/bda2cd6b5fa3b6013b7b860d398475dc7895e519e59d6583d2d7e4a33145024b.jpg)
696
+
697
+ Exp-26: the chair to the right of the fireplace.
698
+
699
+ ![](images/62d46e7ab573f551822bc466b718a346886eeebd417fe6716b65df9490056db5.jpg)
700
+
701
+ ![](images/c1c88c2f11013282764e503441d1b32e86dbd7a7817e8423f91b1c0e599cf1c0.jpg)
702
+
703
+ ![](images/2ca2872f5fca18a06c3766abd6fec15eb38944ac871c47df4014b55a9b766d2c.jpg)
704
+
705
+ ![](images/29d1a9792671a57d7932fa5a8caad40c33b3a254e29adc1a64ba1369cc1f2a31.jpg)
706
+
707
+ ![](images/a580689425155dd7b872bb3e49bb6f2df90aaf990bfefbca948814cd8f3ed252.jpg)
708
+
709
+ Exp-27: a child cutting paper with safety scissors next to her mom.
710
+
711
+ ![](images/6f4770dd6ab22d47383c22545ae87e847e3df1a688c11f2c1c90d1645ca273a1.jpg)
712
+ Figure 8. More visualization results of our proposed SemiRES, compared with the supervised and baseline model. The red dashed bounding boxes denote regions where our model has made accurate predictions, while other models have made inaccurate predictions.
713
+
714
+ ![](images/461faf39403f5c5f4f83dad292a67649487fad8817017f33007fe7ff946cccc7.jpg)
715
+
716
+ ![](images/c66c8aa0c642d7b6eb504360f819d7e1e9c110cd49085fc4ce53e600070a1f9b.jpg)
717
+
718
+ ![](images/66644b76230803ca99d03a08bffd7800e06cd7ebd5f80a3c7ae2468a2cdc46d0.jpg)
719
+
720
+ ![](images/1749a11163b5d1da2ac923694febfe528100893a053ddc59e03810c986223c89.jpg)
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:85e18636fe1792675f7909b02e4f8b6669cf0aebce1d2e7320f6f8c7af3093de
3
+ size 1773271
2024/SAM as the Guide_ Mastering Pseudo-Label Refinement in Semi-Supervised Referring Expression Segmentation/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/ca39871c-0210-423a-8328-51d4d0c380ec_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b8dd5b4d2101bcb5b275bf6b7a15192332e4acdec177bb7288fa59979a10800a
3
+ size 9677232
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/full.md ADDED
@@ -0,0 +1,558 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SAM-E: Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation
2
+
3
+ Junjie Zhang $^{1,2}$ Chenjia Bai $^{2}$ Haoran He $^{3,2}$ Zhigang Wang $^{2}$ Bin Zhao $^{2}$ Xiu Li $^{1}$ Xuelong Li $^{2,4}$
4
+
5
+ # Abstract
6
+
7
+ Acquiring a multi-task imitation policy in 3D manipulation poses challenges in terms of scene understanding and action prediction. Current methods employ both 3D representation and multiview 2D representation to predict the poses of the robot's end-effector. However, they still require a considerable amount of high-quality robot trajectories, and suffer from limited generalization in unseen tasks and inefficient execution in long-horizon reasoning. In this paper, we propose SAM-E, a novel architecture for robot manipulation by leveraging a vision-foundation model for generalizable scene understanding and sequence imitation for long-term action reasoning. Specifically, we adopt Segment Anything (SAM) pretrained on a huge number of images and promptable masks as the foundation model for extracting task-relevant features, and employ parameter-efficient fine-tuning on robot data for a better understanding of embodied scenarios. To address long-horizon reasoning, we develop a novel multichannel heatmap that enables the prediction of the action sequence in a single pass, notably enhancing execution efficiency. Experimental results from various instruction-following tasks demonstrate that SAM-E achieves superior performance with higher execution efficiency compared to the baselines, and also significantly improves generalization in few-shot adaptation to new tasks.
8
+
9
+ # 1. Introduction
10
+
11
+ Robot manipulation has made significant progress, benefiting from embodied datasets (Walke et al., 2023; Collaboration, 2023; Fang et al., 2023), Imitation Learning (IL) (Jiang
12
+
13
+ $^{1}$ Tsinghua Shenzhen International Graduate School, Tsinghua University $^{2}$ Shanghai Artificial Intelligence Laboratory $^{3}$ Hong Kong University of Science and Technology $^{4}$ Institute of Artificial Intelligence (TeleAI), China Telecom, P. R. China. Correspondence to: Chenjia Bai <baichenjia@pjlab.org.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
+ et al., 2023; Reed et al., 2022) or Reinforcement Learning (RL) algorithms (Zakka et al., 2023; Hansen et al., 2022; Shi et al., 2024; Bai et al., 2024), and advanced transformer (Chebotar et al., 2023; Zhao et al., 2023a) or diffusion-based networks (Xian et al., 2023; He et al., 2023; 2024). To perform a wide range of complex manipulation tasks in the 3D physical world, it is crucial to understand the 3D scene structure that encompasses object positions, orientations, shapes, occlusions, and the relationships between objects and the environment (Billard & Kragic, 2019). Various methods utilize 3D representations such as voxel patches (James et al., 2022b; Shridhar et al., 2022b), point clouds (Chen et al., 2023; Zhang et al., 2023b) to provide 3D localizations for predicting the end-effector poses. However, learning a 3D representation can be computationally expensive. For instance, the voxel-based method (Shridhar et al., 2022b) achieves state-of-the-art performance while suffering from cubic scaling of the number of voxels with the resolution, making it prohibitive for larger datasets.
18
+
19
+ To tackle these challenges, recent studies have investigated feature extraction from single-view images and information aggregation using multi-view transformers (Guhur et al., 2022), which provide enhanced efficiency as the scaling of image patches aligns with the input resolution. For example, recently proposed RVT (Goyal et al., 2023) achieves 36 times faster training speeds and better performance than voxel-based approaches. However, learning a multi-view policy still requires a considerable amount of high-quality robot trajectories for imitation, and the resulting policy exhibits limited generalization capabilities for unseen tasks and low execution efficiency in long-horizon reasoning. Motivated by recent research on visual foundation models that leverage web-scale datasets and demonstrate robust zero-shot and few-shot generalization (Radford et al., 2021; Li et al., 2022; Rombach et al., 2022; Hudson et al., 2023), we delve further into the multi-view architecture to enhance the generalization capabilities and execution efficiency of 3D manipulation policies in language-following tasks.
20
+
21
+ In this paper, we present a novel architecture for robot manipulation that leverages a vision-foundation model for image understanding and sequence imitation for long-horizon reasoning. We name our method SAM-E, as we utilize the
22
+
23
+ Segment Anything Model (SAM) (Kirillov et al., 2023) as the foundation model for Embodied manipulation. SAM is a prompt-conditioned image segmentation model trained on a large dataset of images and masks. Utilizing SAM as the foundational perception model benefits the scene understanding and generalization in various manipulation scenarios. Moreover, the prompt-conditioned SAM encoder is suitable for language-instructed manipulation by extracting task-relevant visual features according to the task descriptions. Further, we conduct parameter-efficient finetuning for SAM with robot data to enhance the understanding of embodied scenarios. With prompt-guided features, we employ multi-view attention to integrate the view-wise representations with coordinate information for action prediction.
24
+
25
+ To improve the efficiency of long-horizon action prediction, we propose a novel prediction head that generates multi-channel pose heatmaps for an action sequence. Subsequently, the heatmaps from different views are backprojected into 3D space to generate scores for a discretized set of 3D points, ultimately determining the 3D positions and rotations of actions. During inference, the action sequence can be predicted in a single pass and executed sequentially, resulting in a notable improvement in execution efficiency compared to previous step-by-step prediction methods. We conduct experiments on various 3D instruction-following tasks from RLBench, consisting of 18 tasks with 249 variations (James et al., 2020). The results demonstrate that SAM-E achieves superior performance and higher reasoning efficiency compared to baseline methods. Moreover, the visual foundation model greatly enhances the generalization ability of the learned policy in adapting to new tasks with few-shot demonstrations.
26
+
27
+ # 2. Preliminaries
28
+
29
+ LC-POMDP. The problem of language-conditioned robot manipulation can be modeled as a Language-Conditioned Partial Observable Markov Decision Process (LC-POMDP) formulated as an augmented POMDP $\mathcal{M} \coloneqq (\mathcal{S}, \mathcal{O}, \mathcal{A}, \mathcal{P}, \rho_0, \mathcal{L}, f, T)$ , where $\mathcal{S}$ and $\mathcal{A}$ denote state space and action space separately, $O$ denotes the space of observations, $\mathcal{P}(s|s, a): S \times \mathcal{A} \to \mathcal{S}$ denotes the transition probability or the environment dynamics, $\rho_0$ represents the initial state distribution, $\mathcal{L}$ denotes the set of all language instructions, $f(o|s): S \to \mathcal{O}$ is the observation function, and $T$ represents the episode horizon. We adopt imitation learning without considering the reward function used for RL. For each episode, the robot is given a language instruction $l \in \mathcal{L}$ representing the goal of the current task. At each time step $t$ , the robot is required to take action according to a policy $\pi(a_t|o_t, l)$ given the observation $o_t$ . Since we focus on 3D manipulation, the observation $o_t$ contains multi-view images from cameras at different perspectives.
30
+
31
+ Imitation Learning. To address the language-conditioned manipulation tasks, imitation learning (Goyal et al., 2023; Li et al., 2024) allows the agent to mimic a set of expert demonstrations denoted as $\mathcal{D} \coloneqq \{(\tau, l)_i\}_{i=0}^{|\mathcal{D}|}$ , where $\tau \coloneqq (o_0, a_0, \ldots, o_{T-1}, a_{T-1}, o_T)$ is the expert trajectory, and $l$ represents the language instruction. A common imitation learning objective for the policy $\pi_\theta$ is to maximize the likelihood of action conditioned on the language and current state, Formally, the loss function is
32
+
33
+ $$
34
+ \mathcal {L} (\theta) := - \mathbb {E} _ {(\tau , l) \sim \mathcal {D}} \left[ \sum_ {t = 0} ^ {T - 1} \log \pi_ {\theta} \left(a _ {t} \mid o _ {t}, l\right) \right]. \tag {1}
35
+ $$
36
+
37
+ Key-frame Extraction. To improve the utilization of expert demonstrations, we align with the consensus in 3D manipulation algorithms (James & Davison, 2022; James et al., 2022a; Shridhar et al., 2022b; Goyal et al., 2023) by incorporating key-frame extraction for selecting key-frame actions. The key-frame extraction involves a Boolean function $K: \mathbb{R}^{|A|} \to \{0,1\}$ , which determines whether an action should be identified as a key-frame. For each demonstration $\tau$ , a sequence of key-frame actions $\{k_1, k_2, \ldots, k_m\}$ is generated by the function $K$ following two simple conditions: (i) the joint-velocities are near zero (occurs when entering pre-grasp poses or a new phase of task), and (ii) gripper state has changed (occurs when the object is grasped or released). Based on the function $K$ , the imitation objective in Eq. (1) becomes predicting the 'next key-frame action' in the demonstration. In the following, we slightly abuse $a_t$ to represent the next key-frame action of $s_t$ since we adopt the same key-frame extraction process to SAM-E and baselines.
38
+
39
+ # 3. Method
40
+
41
+ The proposed SAM-E is a multi-view imitation framework that leverages the pre-trained visual foundation model and action-sequence imitation for multi-task 3D manipulation. The key idea of SAM-E contains two perspectives: (i) leveraging the visual foundation model SAM with the prompt-driven architecture and its strong generalization ability to handle the language-prompt(instructed) tasks in embodied scenarios; (ii) utilizing the temporal smooth properties of actions to perform sequence modeling of actions to enhance coherent planning and execution efficiency. We introduce the visual foundation model for embodied perception in §3.1 and the multi-view architecture in §3.2. Then we give the motivation of sequence imitation in §3.3 and the multichannel prediction architecture in §3.4.
42
+
43
+ We illustrate the architecture of SAM-E in Figure 1. Overall, we adopt the SAM encoder (Kirillov et al., 2023) to generate prompt-guided and object-oriented representations, and fine-tune the encoder with embodied data and Low-Rank Adaptation (LoRA) (Hu et al., 2022) technique for manip-
44
+
45
+ ![](images/e197c1fe7cbbab4d4d70088f710e4df247f5c47ffc64ad1b9e93664362705ca0.jpg)
46
+ Figure 1. Overview of SAM-E. (i) The SAM encoder provides promptable visual embedding of single-view observations after fine-tuning on embodied scenarios with parameter-efficient LoRA. (ii) Multi-view transformer achieves cross-view information integration and vision-language alignment. (iii) The coherent action sequence is predicted via temporal imitation for efficient multi-step execution.
47
+
48
+ ulation scenarios, which results in a minimal increase in computation requirement. Then, a multi-view transformer is used to integrate cross-view visual information combined with coordinate information and language instruction for multi-view correspondence and vision-language alignment. To address long-horizon action prediction, SAM-E predicts a coherent action sequence in a single pass with a novel action-sequence policy head.
49
+
50
+ # 3.1. Perception Foundation and LoRA Finetune
51
+
52
+ SAM for Promptable Perception. SAM (Kirillov et al., 2023) comprises a powerful image encoder and lightweight mask decoder, structured as a prompt-driven architecture designed for real-world image segmentation. Aiming at achieving promptable segmentation and effective ambiguity awareness, the image encoder of SAM is trained with flexible prompts from the downstream mask decoder. Consequently, after diverse segmentation task training, the SAM encoder is capable of extracting powerful object-centering image embedding rich in semantic information. This also enables SAM to handle unknown prompts arising from various segmentation requirements in robot interactions, including complex object-associated scenarios.
53
+
54
+ In 3D manipulation, the scene perception is expected to be object-oriented and adaptable, accommodating a range of intentions and shifting focus as tasks progress. For instance, given the task instruction of 'place the apple in the basket', the agent should first find and focus on the apple to pick it up, followed by finding the basket to place. The perception module should be capable of flexible object-centered attention based on task instructions and allow attention adjustment to other objects as the task progresses (See §C for an example). From this point, the SAM encoder is suitable
55
+
56
+ as a perception foundation model for language-instructed manipulation with rich task variations. The SAM encoder is a Vision Transformer (ViT) (Dosovitskiy et al., 2021) pretrained with MAE (He et al., 2022), which processes RGB images into $C \times H \times W$ image embedding. In practice, we utilize the ViT-B architecture for the image encoder to showcase the advantages of pre-trained segmentation representations with a low computational cost in manipulation tasks. The image encoder contains 12 layers of transformer blocks and outputs the image embedding of the visual inputs. The proposed SAM-E leverages the SAM encoder as the foundation to generate prompt-guided and object-oriented representations from visual observations, which is essential for language-instructed manipulation.
57
+
58
+ LoRA with Embodied Data. To effectively adapt the SAM encoder to embodied scenarios at an affordable computing cost, we employ LoRA to finetune the encoder during the policy training. As indicated in LoRA, we freeze the parameters in the image encoder and add a trainable low-rank bypass to each of the transformer encoder blocks as:
59
+
60
+ $$
61
+ W _ {0} + \Delta W = W _ {0} + B A, \tag {2}
62
+ $$
63
+
64
+ where $W_0 \in \mathbb{R}^{d \times k}$ is the pre-trained weight matrix frozen during training, $B \in \mathbb{R}^{d \times r}$ and $A \in \mathbb{R}^{r \times k}$ are trainable matrix, and rank $r \ll min(d, k)$ . $\Delta W = BA$ represents the accumulated gradient update during adaptation with $A$ initiated by Gaussian initialization and $B$ initiated with zero. We set the rank $r$ to 4 by default. In practice, we apply LoRA to the self-attention modules with query and value projection layers:
65
+
66
+ $$
67
+ \operatorname {A t t e n t i o n} (Q, K, V) = \operatorname {S o f t m a x} \left(\frac {Q K ^ {T}}{\sqrt {d _ {k}}}\right) V, \tag {3}
68
+ $$
69
+
70
+ ![](images/c960958a006edefaafd155ec7b9e12354b190744f078092949b0713db2fbed43.jpg)
71
+ Figure 2. Multi-view Transformer has two stages for view-wise information and cross-view information integration.
72
+
73
+ $$
74
+ Q = \hat {W} _ {q} X = W _ {q} X + B _ {q} A _ {q} X, \tag {4}
75
+ $$
76
+
77
+ $$
78
+ K = W _ {k} X, \tag {5}
79
+ $$
80
+
81
+ $$
82
+ V = \hat {W} _ {v} X = W _ {v} X + B _ {v} A _ {v} X, \tag {6}
83
+ $$
84
+
85
+ where $W_{q}$ , $W_{k}$ and $W_{v}$ are frozen projection weights inherited from SAM encoder, and $A_{q}, B_{q}, A_{v}$ , and $B_{v}$ are trainable LoRA parameters.
86
+
87
+ # 3.2. Multi-View Transformer
88
+
89
+ After extracting the view-wise representations, we adopt a multi-view transformer to integrate multi-view visual observations, depth information with coordinates, and task-relevant language instructions using an attention mechanism, enabling a comprehensive fusion of the input in multiple modalities. The architecture is shown in Figure 2. The visual observations are processed into image embedding by the previously mentioned SAM encoder, while depth and coordinate information is processed through a Conv2D layer to obtain 3D spatial features. We concatenate the image embeddings with spatial features in the channel dimension along the patch tokens, resulting in a combined representation that we refer to as 'view tokens'. Additionally, we utilize a pretrained CLIP text encoder to generate language embeddings, from which language tokens are derived. Firstly, view tokens from the same view pass through view-wise attention blocks like ViT to maintain the single-view information. Subsequently, visual tokens across different views and the language tokens are attended to cross-view attention blocks, to integrate cross-view scene information with language instructions. The visual tokens, now enriched with cross-view information and language information are used as input for the action-sequence prediction.
90
+
91
+ ![](images/0963ba4342f178472ad330c5e7e95b4e18652d868b762550b9eeb3553683cb9a.jpg)
92
+ Figure 3. Movement shift in positions and rotations of the end effector in RLBench task close.jar, representing smooth changes of positions and rotations in temporally adjacent steps.
93
+
94
+ ![](images/184187b770b619c53a257b2987ebca4ee14bcc72a61d558f8a828c3bde6af1be.jpg)
95
+
96
+ # 3.3. Motivation for Action-Sequence Modeling
97
+
98
+ In the next, we aim to provide the intuition of action-sequence modeling, attempting to ground the utility of this technique. We start with an assumption about the temporal smooth properties of actions in the robot manipulation.
99
+
100
+ Assumption 3.1 (Temporal-Smooth Assumption). Since the actions of the manipulation task are the desired positions and rotations of the end effector, the optimal action sequences $(a_0^*, a_1^*, a_2^*, \ldots, a_T^*)$ are smooth, formulated as:
101
+
102
+ $$
103
+ \left\| a _ {t} ^ {*} - a _ {t + 1} ^ {*} \right\| < \epsilon , \quad 0 \leq t \leq T - 2, \tag {7}
104
+ $$
105
+
106
+ $$
107
+ \forall \tau^ {*} := \left(o _ {0}, a _ {0} ^ {*}, o _ {1}, a _ {1} ^ {*}, \dots , o _ {T - 1}, a _ {T - 1} ^ {*}, o _ {T}\right) \sim \mathrm {P} _ {\pi^ {*}} ^ {\tau} (\cdot),
108
+ $$
109
+
110
+ where $\mathrm{P}_{\pi^*}^\tau (\cdot)$ denotes the distribution of trajectories derived from the optimal policy $\pi^{*}$ .
111
+
112
+ Intuitively, the assumption holds in most embodied manipulation tasks if the actions are the positions and rotations of the end effector. For example, in the common Pick-and-Place tasks, the optimal action sequences are a sequence of points in Euclidean space, which leads the end effector to approach the object and desired goal. Meanwhile, the gripper will rotate smoothly to align with the gripping points of the object. In Figure 3, we show the movement shift of positions and the Quaternion angle of rotations of the end-effector in a manipulation task close jar from RLBench (James et al., 2020), which further justifies our assumption. We observe that in certain manipulation tasks, end effector rotations undergo relatively rapid changes, particularly with large keyframe intervals, which weaken the assumption of smooth rotation. However, the end effector positions maintain superior smoothness in Euclidean space, which are more crucial for action-sequence modeling in our method.
113
+
114
+ The typical approach trains the policy $\pi$ to predict the action $a_{t}$ given the multi-view image $o_{t}$ and the task instruction $l$ , as
115
+
116
+ $$
117
+ \pi (l, o _ {t}) \rightarrow a _ {t}.
118
+ $$
119
+
120
+ Such a step-by-step process only focuses on predicting ac
121
+
122
+ tions of the current situation, which can lead to stagnation and contradictory sequential actions, as observed in experiments. Based on the Assumption 3.1, we can improve the action-prediction process by considering a long-horizon decision process instead of a single action, as
123
+
124
+ $$
125
+ \pi^ {\operatorname {s e q}} (l, o _ {t}) \rightarrow \left\{a _ {t}, a _ {t + 1}, \dots , a _ {t + h - 1} \right\},
126
+ $$
127
+
128
+ where $h$ is the horizon of the action sequence.
129
+
130
+ Then we motivate the sequence-prediction procedure based on the assumption. The sequence modeling process tries to predict the optimal action sequence condition on the observation. Intuitively, the learning objective of $\pi^{\mathrm{seq}}$ is more difficult compared to that of $\pi^{\mathrm{step}}$ . However, when we take a closer look at the prediction of action in a sequence (e.g., $a_{t + k}$ ), training to predict this action is accompanied by the prediction of former actions (i.e., $(\hat{a}_t,\dots ,\hat{a}_{t + k - 1}))$ and latter actions (i.e., $(\hat{a}_{t + k + 1},\dots ,\hat{a}_{t + h - 1}))$ . Back to the assumption that the optimal action sequences are smooth, we believe that predicting the former and latter actions can provide implicit prior and constraint in predicting $a_{t + k}$ . Thus, the smooth properties of action sequences provide an opportunity to perform long-horizon reasoning by predicting the adjacent actions as a whole, thereby reflecting the motion trajectory of the robot's end-effector in completing tasks. In contrast, the action prediction of the traditional policy is only conditioned on the observation without any 'prompt' from the former actions, making the traditional policy inferior to action-sequence modeling in these tasks. Such a technique in 2D manipulation tasks is also called action chunking (Bharadhwaj et al., 2023; Zhao et al., 2023a), while we give a clear motivation by an empirically justified assumption and extend it to 3D scenarios using multi-channel heatmaps.
131
+
132
+ # 3.4. Architecture for Action-Sequence Prediction
133
+
134
+ We introduce a novel multi-channel policy head for the action-sequence prediction, as shown in Figure 4. The policy head takes view tokens from the multi-view transformer (shown in Figure 2) as input, processing view tokens from different views independently, and outputs action sequence prediction in parallel channels within a single view image.
135
+
136
+ In 3D manipulation, each action in the sequence comprises an 8-dimensional vector dictating the next movement. This vector includes a 6-DoF target end effector pose (3-DoF for position and 3-DoF for rotation), a binary value indicating the gripper state (open or closed), and another binary value determining whether the collision is permissible for the low-level motion planner. (i) For predicting positions, the policy head generates a heatmap from the view tokens corresponding to each view. These heatmaps represent the desired position distribution from the perspective of each view. Then the heatmaps from different views are back-projected to into 3D space to generate scores for a discretized set of 3D points, de
137
+
138
+ ![](images/82fe18572a1d16ace07f018747757f48c0af9399708f52d90439bb64d0cf54fe.jpg)
139
+ Figure 4. The Action-Sequence Policy Head outputs multichannel pose heatmaps for a sequence of positions and rotations.
140
+
141
+ termining the 3D positions. For action-sequence prediction, we equip the heatmap with time-dimension channels to learn temporal information from demonstrations, which leads to coherent action prediction in the temporal dimension. (ii) For predicting rotations, we follow previous methods (Goyal et al., 2023) to discretize Euler angles into bins of $5^{\circ}$ resolution and thus turn rotation prediction into classification as the binary of gripper state and collision indicator. We use heatmap as the weight to extract the view-wise features from the view tokens, which provide higher weights near the desired target position within the view image, and then output the action sequence of rotation, gripper state, and collision indicator using a fully connected network.
142
+
143
+ # 4. Related Works
144
+
145
+ Visual Robot Manipulation. Early research in robot manipulation adopts joint states of the robot arm and geometric information of objects in RL or IL frameworks (Zeng et al., 2017; Deng et al., 2020; Xie et al., 2020; Yu et al., 2020; Xu et al., 2022), assuming the acquisition of pre-perception information and coordinates of objects. In real-world manipulation tasks, visual perception provides more general inputs without additional assumptions (Yuan et al., 2023). Various methods have adopted visual pretraining models for affordance (Goyal et al., 2022; Bahl et al., 2023), representation learning (Khandelwal et al., 2022; Shridhar et al., 2022a; Nair et al., 2023; Ma et al., 2023b;a), and goal generation (Gao et al., 2023; Jia et al., 2023) to facilitate policy learning. Other works incorporate language encoders (Xie et al., 2023) and cross-modal transformers (Brohan et al., 2023b; Guhur et al., 2022) for instruction-following manipulation. However, these methods learn manipulation policies from top-down 2D images and are limited to pick-and-place primitives (Hansen et al., 2023). In contrast, by leverag-
146
+
147
+ ing 3D perception, the robot is able to take into account object orientations, occlusions, and collisions in complex manipulation tasks. Recent methods utilize 3D representations, such as voxel patches (James et al., 2022b; Shridhar et al., 2022b), point clouds (Chen et al., 2023; Zhang et al., 2023b; Eisner et al., 2022), and feature fields (Gervet et al., 2023), to achieve accurate 3D localizations for action prediction. Another line of research utilizes multi-view images to represent the projections of a 3D environment onto image planes, significantly reducing the computation requirements (Liu et al., 2023a; Seo et al., 2023; Goyal et al., 2023). Our method lies in multi-view architectures and leverages pre-trained foundation models to enhance generalization across various visual scenarios and task descriptions. The technique of action chunking is also employed in 2D manipulation (Bharadhwaj et al., 2023; Zhao et al., 2023a), while we extend it to 3D scenarios using multi-channel heatmaps.
148
+
149
+ Foundation Models for Embodied Agents. Large Language Models (LLMs) (Touvron et al., 2023; Hu et al., 2023a), Vision Language Models (VLMs) (Liu et al., 2023b; Li et al., 2023), and vision foundation models (Radford et al., 2021) have demonstrated remarkable capabilities (Akyurek et al., 2023) and hold great promise for solving complex embodied tasks. The chain-of-thought capacity (Wei et al., 2022) of LLMs has been effectively utilized in task planning for embodied agents, including EmbodiedGPT (Mu et al., 2023), ReAct (Yao et al., 2023), SayCan (Ahn et al., 2022), and DoReMi (Guo et al., 2023). The commonsense knowledge within LLMs can serve as a world model (Zhao et al., 2023b; Hao et al., 2023; Lin et al., 2023) in text-based environments. Additionally, it can be utilized as a reward designer, as demonstrated by VoxPoser (Huang et al., 2023), Text2Reward (Xie et al., 2024), and Eureka (Ma et al., 2024). GenSim (Wang et al., 2024) and RoboGen (Wang et al., 2023a) leverage LLMs to generate task curricula and simulation environments to augment robot data. VLMs are commonly employed as foundation models for embodied policies, taking visual observations and language instructions as inputs, and generating language plans (Driess et al., 2023) or tokenized actions (Brohan et al., 2023a; Wu et al., 2023) as outputs. Other approaches utilize VLMs for reward generation (Rocamonde et al., 2024) in RL frameworks and self-reflection for task planning (Hu et al., 2023b). RoboFlamingo (Li et al., 2024) is related to our method as it employs OpenFlamingo as a base policy and finetunes this policy using embodied datasets. However, it is limited to 2D manipulation and lacks explicit consideration of 3D geometry, which hinders its capacity to develop highly accurate spatial manipulation skills in robotics.
150
+
151
+ Segment Anything Model. SAM (Kirillov et al., 2023) is a promptable segmentation model capable of generating masks by receiving various prompts, including points,
152
+
153
+ bounding boxes, and language prompts. Subsequent works have examined the application of SAM for object localization (Zhang et al., 2023a), tracking (Rajic et al., 2023; Cheng et al., 2023), and semantic analysis (Mazurowski et al., 2023). For embodied agents, SAM-G (Wang et al., 2023b) is a concurrent work that utilizes point prompts to establish correspondences and employs SAM to generate masked images for the agent. However, SAM-G focuses on extracting the agent-relevant mask for robust visual representations and mitigating the impact of noise (e.g., colors, backgrounds) in 2D manipulation and locomotion tasks. In contrast, our method adopts SAM to enhance 3D manipulation within a multi-view framework and extracts task-relevant features to facilitate generalization across various manipulation scenarios and language instructions.
154
+
155
+ # 5. Experiments
156
+
157
+ In this section, we evaluate SAM-E in RLBench (James et al., 2020), which is a challenging multi-task 3D manipulation benchmark. To perform a fair comparison to baselines, we use the same settings as the state-of-art method (Goyal et al., 2023) by using 18 tasks with 249 variations in experiments. Moreover, we evaluate the generalization ability of SAM-E via few-shot adaptation in 6 new tasks. The Videos are available at: https://sam-embodied.github.io/.
158
+
159
+ # 5.1. Experiment Setup
160
+
161
+ Baselines. We compare SAM-E against off-the-shelf algorithms proved to work on multi-view 3D manipulation, including (i) RVT (Goyal et al., 2023), the state-of-the-art multi-view architecture for 3D manipulation by re-rendering visual observations into orthographic projections of cube views and predicting the next move based on these projections; (ii) PerAct (Shridhar et al., 2022b), an action-centric method that encodes RGB-D images into voxel grid patches for 3D representation and predicts the action within the 3D voxel space. (iii) We include R3M (Nair et al., 2023), the visual representation designed for robot manipulation, as an alternative encoder in our architecture. (iv) We include two more general visual representations CLIP (Radford et al., 2021), DINO (Caron et al., 2021) in our architecture. (v) We include a variant referred to SAM $\rightarrow$ RVT that replaces the SAM encoder with RVT's visual encoder, which is trained from scratch. (vi) Since RVT has been shown to significantly outperform other behavior cloning (BC) baselines including CNN-BC, ViT-BC (Jang et al., 2021), and Coarse-to-Fine BC (James et al., 2022b), we do not include the scores of these methods and we refer to Goyal et al. (2023) for details. (vii) Additionally, we compare SAE-E against Hiveformer (Guhur et al., 2022) with same tasks evaluated in their paper (we refer to §E for the results).
162
+
163
+ ![](images/f7263b6567980cd7f4452b15eef590f90f84e7183fa87724fed8fcc4a8714b9d.jpg)
164
+ Figure 5. The comparison of training curves from 5 seeds with $\pm 1$ std. We observe that SAM-E achieves a higher success rate than R3M and non-pre-trained baselines. Meanwhile, SAM and its variations achieve a better training efficiency compared to RVT, benefiting from action sequence imitation. The training curve of RVT is from our reproduction by running the official code.
165
+
166
+ Table 1. A comparison of trainable parameters to baselines.
167
+
168
+ <table><tr><td>Models</td><td>RVT</td><td>SAM-E (SAM → RVT)</td><td>SAM-E (SAM → R3M)</td><td>SAM-E</td></tr><tr><td>Trainable Para.</td><td>36.3M</td><td>35.6M</td><td>35.6M</td><td>35.7M</td></tr></table>
169
+
170
+ Simulation Environment. We perform experiments in RL-Bench (James et al., 2020), which is simulated by CoppeliaSim (Rohmer et al., 2013) to control a Franka Panda robot equipped with a parallel gripper. Visual observations are captured by four RGB-D cameras (left shoulder, right shoulder, front, and wrist) with a resolution of $128 \times 128$ , and target gripper pose is achieved by a sample-based motion planner. In this elaborated simulator, the agent is tested to complete the task within a limited number of timesteps, which is 25 in experiments. The tasks include picking and placing items, executing staged moves for tool usage, and comprehending scenes to solve puzzles (see §A for more detailed descriptions of the tasks). The algorithms are evaluated in a multi-task and multi-modal setting, characterized by a high degree of variation, which necessitates the agent to demonstrate scene understanding, instruction comprehension, and precise action prediction.
171
+
172
+ Training Datasets. We utilize the same training datasets as RVT and PerAct, comprising 100 expert demonstrations per task. Unlike RVT and PerAct, which slice demonstration episodes into keyframe transitions with empirically crucial duplication for important transitions, we seamlessly decompose demonstrations into multiple sub-episodes of keyframes to facilitate action-sequence prediction. We train SAM-E for 60K steps and choose the last model for evaluation, which is the same as RVT. We use cosine learning rate decay after 2K steps warm-start (see §B for more details).
173
+
174
+ ![](images/ecd3c8b58cb919c98ddfd45a264b85bff125bf4396058ce944274de6e15f6a4e.jpg)
175
+ Figure 6. An illustration of the execution efficiency in several tasks. SAM-E completes most tasks in merely once or twice inferences in all success cases. We refer to §D for more examples.
176
+
177
+ # 5.2. Main Experiments
178
+
179
+ Multi-Task Learning. We train all methods in 18 tasks and the comparison of success rate is given in Table 2. SAM-E outperforms PerAct and RVT in 14 out of 18 tasks. SAM-E outperforms PerAct and RVT by an average of $21.2\%$ and $7.7\%$ percentage points in success rate across 18 tasks, marking a relative improvement with $43.0\%$ and $12.2\%$ , while incurring significantly lower model inference costs. Furthermore, it achieves an improvement exceeding $30\%$ points in several tasks. Eliminating the pre-trained SAM encoder in SAM-E leads to a performance drop but still outperforms RVT, benefiting from the action sequence policy head. Building upon this, the addition of R3M's frozen representation has yielded a marginal performance improvement, however, which is still inferior compared to SAM-E. Similarly, CLIP and DINO representations have mediocre performances compared to SAM-E. Notably, SAM-E has comparable training time and even less trainable parameters compared to RVT, as shown in Table 1. Moreover, Figure 5 shows that SAM-E and its variations exhibit higher training efficiency than RVT, mainly attributed to the action sequence imitation. Further, utilizing SAM as the scalable visual foundation, SAM-E not only achieves the best performance on the current setup, but also shows potential for further enhancing its advantages with more embodied data or update steps.
180
+
181
+ Different from baselines that predict the next keypoint gripper pose at each timestep, SAM-E generates a sequence of actions for long-term planning and sequential execution, thereby considering the task completion from a higher perspective and has much fewer inference steps. According to Table 2, SAM-E demonstrates an average execution efficiency of more than $5\mathbf{X}$ greater than that of RVT. In tasks such as meat_off_grill, push Buttons, and put-money_inSAFE (see $\S A$ for task descriptions), SAM-E can complete the task after merely a glance at the initial state, as shown in Figure 6. In contrast, RVT requires, on average, 5.5, 3.8, and 6.0 steps to complete them for its successful cases. For
182
+
183
+ Table 2. Multi-task Performances. SAM-E outperforms state-of-the-art methods in most tasks and on average, with much fewer inference steps in execution. Scores of PerAct and RVT are adopted from Goyal et al. (2023). Mean and std of 5 evaluations are reported.
184
+
185
+ <table><tr><td>Models</td><td>Put in
186
+ Drawer</td><td>Reach
187
+ and Drag</td><td>Turn
188
+ Tap</td><td>Slide to
189
+ Target</td><td>Open
190
+ Drawer</td><td>Put in
191
+ Cupboard</td><td>Place in
192
+ Shape Sorter</td><td>Put Money
193
+ in Safe</td><td>Push
194
+ Buttons</td><td>Close
195
+ Jar</td></tr><tr><td>PerAct</td><td>51.2±4.7</td><td>89.6±4.1</td><td>88.0±4.4</td><td>74.0±13.0</td><td>88.0±5.7</td><td>28.0±4.4</td><td>16.8±4.7</td><td>84.0±3.6</td><td>92.8±3.0</td><td>55.2±4.7</td></tr><tr><td>RVT</td><td>88.0±5.7</td><td>99.2±1.6</td><td>93.6±4.1</td><td>81.6±5.4</td><td>71.2±6.9</td><td>49.6±3.2</td><td>36.0±2.5</td><td>91.2±3.0</td><td>100.0±0.0</td><td>52.0±2.5</td></tr><tr><td>SAM-E (SAM → RVT)</td><td>87.2±5.9</td><td>100.0±0.0</td><td>100.0±0.0</td><td>79.2±6.6</td><td>95.2±3.3</td><td>59.2±5.2</td><td>35.2±4.4</td><td>72.0±4.0</td><td>98.4±2.2</td><td>83.2±5.9</td></tr><tr><td>SAM-E (SAM → R3M)</td><td>83.2±5.9</td><td>99.2±1.8</td><td>100.0±0.0</td><td>88.8±4.4</td><td>95.2±3.3</td><td>41.6±7.3</td><td>31.2±7.7</td><td>95.2±3.3</td><td>96.0±0.0</td><td>78.4±2.2</td></tr><tr><td>SAM-E (SAM → CLIP)</td><td>88.8±3.3</td><td>100.0±0.0</td><td>100.0±0.0</td><td>78.4±13.4</td><td>92.0±4.0</td><td>40.0±4.9</td><td>42.4±6.1</td><td>80.8±1.8</td><td>100.0±0.0</td><td>73.6±2.2</td></tr><tr><td>SAM-E (SAM → DINO)</td><td>78.4±4.6</td><td>99.2±1.8</td><td>99.2±1.8</td><td>88.0±4.9</td><td>89.6±5.4</td><td>52.0±7.5</td><td>30.4±9.2</td><td>85.6±2.2</td><td>100.0±0.0</td><td>89.6±3.6</td></tr><tr><td>SAM-E (ours)</td><td>92.0±5.7</td><td>100.0±0.0</td><td>100.0±0.0</td><td>95.2±1.8</td><td>95.2±5.2</td><td>64.0±2.8</td><td>34.4±6.1</td><td>95.2±3.3</td><td>100.0±0.0</td><td>82.4±3.6</td></tr><tr><td>Models</td><td>Stack
196
+ Blocks</td><td>Place
197
+ Cups</td><td>Place Wine
198
+ at Rack</td><td>Screw
199
+ Bulb</td><td>Sweep to
200
+ Dustpan</td><td>Insert
201
+ Peg</td><td>Meat off
202
+ Grill</td><td>Stack
203
+ Cups</td><td>On
204
+ Average</td><td>Inference
205
+ Steps(Sum)</td></tr><tr><td>PerAct</td><td>26.4±3.2</td><td>2.4±3.2</td><td>44.8±7.8</td><td>17.6±2.0</td><td>52.0±0.0</td><td>5.6±4.1</td><td>70.4±2.0</td><td>2.4±2.0</td><td>49.4</td><td>-</td></tr><tr><td>RVT</td><td>28.8±3.9</td><td>4.0±2.5</td><td>91.0±5.2</td><td>48.0±5.7</td><td>72.0±0.0</td><td>11.2±3.0</td><td>88.0±2.5</td><td>26.4±8.2</td><td>62.9</td><td>6158±64</td></tr><tr><td>SAM-E (SAM → RVT)</td><td>22.4±3.6</td><td>0.0±0.0</td><td>92.8±6.6</td><td>61.6±9.2</td><td>84±0.0</td><td>7.2±5.9</td><td>95.2±3.3</td><td>3.2±3.3</td><td>65.3±0.6</td><td>1190±19</td></tr><tr><td>SAM-E (SAM → R3M)</td><td>32.0±2.8</td><td>1.6±2.2</td><td>92.8±3.3</td><td>60.0±2.8</td><td>96.8±3.3</td><td>5.6±6.7</td><td>97.6±2.2</td><td>2.4±2.2</td><td>66.5±1.0</td><td>1165±63</td></tr><tr><td>SAM-E (SAM → CLIP)</td><td>22.4±10.8</td><td>0.0±0.0</td><td>93.6±2.2</td><td>59.2±4.4</td><td>85.6±2.2</td><td>8.0±2.8</td><td>96.0±4.0</td><td>4.8±3.3</td><td>64.8±0.9</td><td>1192±17</td></tr><tr><td>SAM-E (SAM → DINO)</td><td>28.8±7.7</td><td>0.8±1.8</td><td>93.6±3.6</td><td>64.0±9.8</td><td>100.0±0.0</td><td>11.2±3.3</td><td>96.0±2.8</td><td>1.6±2.2</td><td>67.1±0.4</td><td>1143±15</td></tr><tr><td>SAM-E (ours)</td><td>26.4±4.6</td><td>0.0±0.0</td><td>94.4±4.6</td><td>78.4±3.6</td><td>100.0±0.0</td><td>18.4±4.6</td><td>95.2±3.3</td><td>0.0±0.0</td><td>70.6±0.7</td><td>1130±12</td></tr></table>
206
+
207
+ Table 3. Few-shot adaptation. Mean and std of 5 evaluations are reported.
208
+
209
+ <table><tr><td>Models</td><td>Meat on Grill</td><td>Open Jar</td><td>Screw Nail</td><td>Toilet Seat Done</td><td>TV on</td><td>Solve Puzzle</td><td>On Average</td></tr><tr><td>RVT (from scratch)</td><td>80.0±6.3</td><td>36.0±4.9</td><td>7.2±4.4</td><td>99.2±1.8</td><td>2.4±3.6</td><td>11.2±4.4</td><td>39.3±2.3</td></tr><tr><td>SAM-E (from scratch, SAM → RVT)</td><td>60.0±2.8</td><td>12.0±0.0</td><td>36.0±6.9</td><td>96.0±0.0</td><td>15.2±3.3</td><td>20.8±7.7</td><td>40.0±1.8</td></tr><tr><td>SAM-E (from scratch, SAM → R3M)</td><td>69.6±4.6</td><td>16.0±0.0</td><td>29.6±6.1</td><td>100.0±0.0</td><td>12.0±2.8</td><td>22.4±2.2</td><td>41.6±1.4</td></tr><tr><td>SAM-E (from scratch, SAM → CLIP)</td><td>64.0±0.0</td><td>12.0±0.0</td><td>16.0±4.0</td><td>100.0±0.0</td><td>14.7±6.1</td><td>24.0±4.0</td><td>38.4±1.0</td></tr><tr><td>SAM-E (from scratch, SAM → DINO)</td><td>53.3±8.3</td><td>12.0±4.0</td><td>26.7±2.3</td><td>100.0±0.0</td><td>16.0±4.0</td><td>24.0±4.0</td><td>38.7±1.2</td></tr><tr><td>SAM-E (from scratch)</td><td>75.2±4.4</td><td>12.8±1.8</td><td>28.0±8.0</td><td>100.0±0.0</td><td>20.8±1.8</td><td>17.6±2.2</td><td>42.4±1.5</td></tr><tr><td>RVT (adaptation)</td><td>68.8±3.3</td><td>36.0±0.0</td><td>1.6±2.2</td><td>100.0±0.0</td><td>1.6±2.2</td><td>14.4±6.7</td><td>37.1±1.0</td></tr><tr><td>SAM-E (adaptation, SAM → RVT)</td><td>69.6±6.1</td><td>39.2±3.3</td><td>38.4±4.6</td><td>99.2±1.8</td><td>17.6±2.2</td><td>38.4±3.6</td><td>50.4±1.1</td></tr><tr><td>SAM-E (adaptation, SAM → R3M)</td><td>64.8±5.9</td><td>37.6±2.2</td><td>28.8±5.9</td><td>100.0±0.0</td><td>12.8±1.8</td><td>37.6±6.7</td><td>46.9±2.3</td></tr><tr><td>SAM-E (adaptation, SAM → CLIP)</td><td>78.7±2.3</td><td>38.7±4.6</td><td>28.0±6.9</td><td>100.0±0.0</td><td>16.0±0.0</td><td>25.3±8.3</td><td>47.8±1.9</td></tr><tr><td>SAM-E (adaptation, SAM → DINO)</td><td>68.0±4.0</td><td>33.3±6.1</td><td>50.7±8.3</td><td>98.7±2.3</td><td>24.0±4.0</td><td>22.7±2.3</td><td>49.6±1.0</td></tr><tr><td>SAM-E (adaptation)</td><td>84.0±5.7</td><td>56.0±7.5</td><td>62.4±4.6</td><td>100.0±0</td><td>35.2±1.8</td><td>41.6±7.3</td><td>63.2±1.5</td></tr></table>
210
+
211
+ reach_anddrag, SAM-E completes it all in two inferences while RVT needs to execute 6.4 times on average.
212
+
213
+ Few-Shot Adaptation. We evaluate the generalization ability of SAM-E by adapting the trained model to 6 new tasks from RLBench. We use 10X fewer demonstrations and 15X fewer update steps in policy adaptation than that of the multi-task experiments to show the generalization capability of the SAM-E in few-shot adaptation. The results are shown in Table 3. We initialize the models with weights from their multi-task training for adaptation, and also introduce their random initialization variants for training from scratch. We find RVT struggles with transferring knowledge from previous tasks to new ones during adaptation, often resulting in performance drops compared to training from scratch. In contrast, SAM-E significantly benefits from adaptation compared to starting from scratch. Specifically, SAM-E outperforms RVT by $3.1\%$ points (a $7.9\%$ relative increase) when trained from scratch. However, during adaptation to new tasks, the performance gap widens dramatically, with SAM-E surpassing RVT by $26.1\%$ points, a substantial $70.4\%$ relative improvement. This demonstrates that SAM-E has superior generalization capabilities.
214
+
215
+ When training from scratch, SAM-E (SAM $\rightarrow$ R3M) achieves a slightly better performance than SAM-E (SAM $\rightarrow$ RVT) that does not have a pre-trained encoder, but results in worse performance in adaptation, which shows R3M has limited few-shot generalization ability. While worse than SAM-E (SAM $\rightarrow$ R3M) in training from scratch, SAM-E (SAM $\rightarrow$ CLIP) and SAM-E (SAM $\rightarrow$ DINO) have better performances in adaptation, showing greater generalization of the representations pre-trained in more general image data. SAM-E (SAM $\rightarrow$ RVT) also significantly outperforms RVT in adaptation over from scratch, demonstrating the enhanced generalization ability gained from the action-sequence prediction. In terms of adapting to new tasks, SAM-E equipped with a SAM encoder demonstrates significant advantages over the methods mentioned above. This highlights the exceptional capabilities of SAM-E to generalize in novel task descriptions.
216
+
217
+ # 5.3. Ablations
218
+
219
+ First, we conduct ablation experiments in multi-task experiments to verify the necessity of components in SAM-E. We
220
+
221
+ Table 4. Success rate and parameters amount of the variations
222
+
223
+ <table><tr><td>Models</td><td>Success Rate</td><td>Parameters</td><td>Trainable Parameters</td></tr><tr><td>SAM-E</td><td>70.6±0.7</td><td>122.5M</td><td>35.7M</td></tr><tr><td>SAM-E (SAM→RVT)</td><td>65.3±0.6</td><td>35.6M</td><td>35.6M</td></tr><tr><td>SAM-E (LoRA, QKV)</td><td>69.2±0.9</td><td>122.6M</td><td>35.8M</td></tr><tr><td>SAM-E (w/o LoRA)</td><td>67.2±1.0</td><td>122.4M</td><td>35.6M</td></tr><tr><td>SAM-E (full finetune)</td><td>65.8±1.0</td><td>122.4M</td><td>122.4M</td></tr></table>
224
+
225
+ include (i) SAM-E $(SAM\rightarrow RVT)$ ; (ii) SAM-E (LoRA, QKV), which is a variant of LoRA module additionally including $K$ matrix of attention blocks; (iii) SAM-E (w/o LoRA), a frozen SAM encoder without LoRA fine-tuning, and (iv) SAM-E (full finetune), which performs full-parameter training of the SAM encoder. We give the brief result in Table 4. We find SAM is a crucial visual foundation and a suitable finetune method is required for adaptation to embodied scenarios. Using LoRA to parameter-efficiently finetuning, SAM is better than the variant that trains all parameters, which may lead to failure due to the limited demonstrations. For LoRA, adding the trainable matrix for $Q$ and $V$ is better than all $Q$ , $K$ , and $V$ , which is consistent with previous observations (Hu et al., 2022). (See §F for the complete results)
226
+
227
+ Additionally, to illustrate the impact of the action sequence length $h$ (refer to §B.2 for details), we conduct an ablation study on the action horizon, examining $h$ values of $\{1,3,5,7\}$ . During both the training and evaluation execution of the multi-task experiments, we modify the action horizon $h$ while maintaining consistency in other experimental settings. The outcomes are presented in Table 5 (See §F for the complete results), showing the average success rate across 18 tasks and the computing time for each model inference on our same device during the model evaluation. We observe that $h = 5$ performs the best on the average success rate, while it may not suitable for certain tasks. We can also find that $h = 1$ leads to a drop in performance, which we attribute to the insufficient temporal information to drive SAM foundation training, combined with the lack of empirically crucial duplication for important transitions. Moreover, we can observe that SAM-E's inference time is slightly longer than that of RVT. Nevertheless, SAM-E is even faster in inference considering an action sequence (5 actions) is predicted in 152ms, while RVT requires 5*103ms to predict 5 actions.
228
+
229
+ # 5.4. Real-World Experiment
230
+
231
+ To demonstrate the effectiveness of SAM-E in real-world scenarios, we train and test the model in a real-world setup with a Franka Panda robot arm. As shown in Figure 14, we use two statically mounted RGB-D cameras in a third-person view at the left front and right front to capture the multi-view observation. We calibrate the cameras with the robot base and record the RGB-D streams from the cameras and robot joint pose simultaneously during the data
232
+
233
+ Table 5. Ablation over action sequence length $h$
234
+
235
+ <table><tr><td>Models</td><td>Success Rate</td><td>Inference Time (ms)</td></tr><tr><td>RVT</td><td>62.9</td><td>103</td></tr><tr><td>SAM-E (h=1)</td><td>30.6±1.4</td><td>126</td></tr><tr><td>SAM-E (h=3)</td><td>64.0±0.6</td><td>144</td></tr><tr><td>SAM-E (h=5)</td><td>70.6±0.7</td><td>152</td></tr><tr><td>SAM-E (h=7)</td><td>66.5±1.2</td><td>156</td></tr></table>
236
+
237
+ collection. We train SAM-E in 5 tasks with 10 episodes for each, including put the towel on the cabinet, stack the block, close the drawer, pick up the banana, and put the orange into the drawer. All the episodes are collected by human demonstrators. The results show that SAM-E can perform real-time prediction in real-world scenarios and complete tasks effectively, validating SAM-E's capability in real-world scenarios. See the §G and the videos for more details and model performance.
238
+
239
+ # 6. Conclusion
240
+
241
+ We have introduced Segment Anything Model for Embodied 3D manipulation (SAM-E), a novel multi-view architecture that adopts SAM as the visual foundation model with parameter-efficient finetuning for promptable perception to embodied scenarios, as well as a novel action-sequence prediction head for efficient planning and coherent execution. We conduct experiments of SAM-E on various 3D instruction-following tasks from RLBench for multi-task experiments and few-show adaptation. We find SAM-E outperforms prior state-of-the-art models on multi-task manipulation and achieves a significant improvement in execution efficiency and few-shot adaptation with great generalization ability. Our work highlights the feasibility of leveraging a visual foundation model and sequence prediction for enhancing generalization and efficiency in 3D manipulation.
242
+
243
+ # Acknowledgements
244
+
245
+ This work was supported by the National Natural Science Foundation of China (Nos.62306242 & 62376222), the STI 2030-Major Projects under Grant 2021ZD0201404, the National Key R&D Program of China (No.2022ZD0160102), and Young Elite Scientists Sponsorship Program by CAST (No.2023QNRC001). We thank Wenke Xia for his excellent assistance in hardware deployment and data collection for real robot experiments.
246
+
247
+ # Impact Statement
248
+
249
+ 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.
250
+
251
+ # References
252
+
253
+ Ahn, M., Brohan, A., Chebotar, Y., Finn, C., Hausman, K., Herzog, A., Ho, D., Ibarz, J., Irpan, A., Jang, E., Julian, R., Kalashnikov, D., Levine, S., and et al. Do as i can, not as i say: Grounding language in robotic affordances. In Annual Conference on Robot Learning, 2022.
254
+ Akyurek, E., Schuurmans, D., Andreas, J., Ma, T., and Zhou, D. What learning algorithm is in-context learning? investigations with linear models. In International Conference on Learning Representations, 2023.
255
+ Bahl, S., Mendonca, R., Chen, L., Jain, U., and Pathak, D. Affordances from human videos as a versatile representation for robotics. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13778-13790, 2023.
256
+ Bai, C., Wang, L., Hao, J., Yang, Z., Zhao, B., Wang, Z., and Li, X. Pessimistic value iteration for multi-task data sharing in offline reinforcement learning. Artificial Intelligence, 326:104048, 2024.
257
+ Bharadhwaj, H., Vakil, J., Sharma, M., Gupta, A., Tulsiani, S., and Kumar, V. Roboagent: Generalization and efficiency in robot manipulation via semantic augmentations and action chunking. In First Workshop on Out-of-Distribution Generalization in Robotics at CoRL 2023, 2023.
258
+ Billard, A. and Kragic, D. Trends and challenges in robot manipulation. Science, 364(6446):eaat8414, 2019.
259
+ Brohan, A., Brown, N., Carbajal, J., Chebotar, Y., Chen, X., Choromanski, K., Ding, T., Driess, D., Dubey, A., Finn, C., Florence, P., Fu, C., Arenas, M. G., Gopalakrishnan, K., Han, K., Hausman, K., Herzog, A., and et al. RT-2: vision-language-action models transfer web knowledge to robotic control. CoRR, abs/2307.15818, 2023a.
260
+ Brohan, A., Brown, N., Carbajal, J., Chebotar, Y., Dabis, J., Finn, C., Gopalakrishnan, K., Hausman, K., Herzog, A., and et al. Rt-1: Robotics transformer for real-world control at scale. In Robotics: Science and Systems, 2023b.
261
+ Caron, M., Touvron, H., Misra, I., Jégou, H., Mairal, J., Bojanowski, P., and Joulin, A. Emerging properties in self-supervised vision transformers. In Proceedings of the IEEE/CVF international conference on computer vision, pp. 9650-9660, 2021.
262
+ Chebotar, Y., Vuong, Q., Hausman, K., Xia, F., Lu, Y., Irpan, A., Kumar, A., Yu, T., Herzog, A., Pertsch, K., et al. Q-transformer: Scalable offline reinforcement learning via autoregressive q-functions. In Conference on Robot Learning, pp. 3909-3928. PMLR, 2023.
263
+
264
+ Chen, S., Pinel, R. G., Schmid, C., and Laptev, I. Polarnet: 3d point clouds for language-guided robotic manipulation. In 7th Annual Conference on Robot Learning, 2023.
265
+ Cheng, Y., Li, L., Xu, Y., Li, X., Yang, Z., Wang, W., and Yang, Y. Segment and track anything. arXiv preprint arXiv:2305.06558, 2023.
266
+ Collaboration, O. X. Open x-embodiment: Robotic learning datasets and RT-X models. CoRR, abs/2310.08864, 2023.
267
+ Deng, X., Xiang, Y., Mousavian, A., Eppner, C., Bretl, T., and Fox, D. Self-supervised 6d object pose estimation for robot manipulation. In 2020 IEEE International Conference on Robotics and Automation (ICRA), pp. 3665-3671. IEEE, 2020.
268
+ Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., Uszkoreit, J., and Houlsby, N. An image is worth 16x16 words: Transformers for image recognition at scale. In 9th International Conference on Learning Representations, ICLR, 2021.
269
+ Driess, D., Xia, F., Sajjadi, M. S. M., Lynch, C., Chowdhery, A., Ichter, B., Wahid, A., Tompson, J., Vuong, Q., Yu, T., Huang, W., Chebotar, Y., Sermanet, P., Duckworth, D., Levine, S., Vanhoucke, V., Hausman, K., Toussaint, M., Greff, K., Zeng, A., Mordatch, I., and Florence, P. Palm-e: An embodied multimodal language model. In International Conference on Machine Learning, volume 202, pp. 8469-8488, 2023.
270
+ Eisner, B., Zhang, H., and Held, D. Flowbot3d: Learning 3d articulation flow to manipulate articulated objects. In Robotics: Science and Systems (RSS), 2022.
271
+ Fang, H.-S., Fang, H., Tang, Z., Liu, J., Wang, C., Wang, J., Zhu, H., and Lu, C. Rh20t: A comprehensive robotic dataset for learning diverse skills in one-shot. Towards Generalist Robots: Learning Paradigms for Scalable Skill Acquisition@ CoRL2023, 3:5, 2023.
272
+ Gao, J., Hu, K., Xu, G., and Xu, H. Can pre-trained text-to-image models generate visual goals for reinforcement learning? In Neural Information Processing Systems, 2023.
273
+ Gervet, T., Xian, Z., Gkanatsios, N., and Fragkiadaki, K. Act3d: 3d feature field transformers for multi-task robotic manipulation. In Conference on Robot Learning, 2023.
274
+ Goyal, A., Xu, J., Guo, Y., Blukis, V., Chao, Y.-W., and Fox, D. RVT: Robotic view transformer for 3d object manipulation. In 7th Annual Conference on Robot Learning, 2023.
275
+
276
+ Goyal, M., Modi, S., Goyal, R., and Gupta, S. Human hands as probes for interactive object understanding. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 3293-3303, 2022.
277
+ Guhur, P.-L., Chen, S., Pinel, R. G., Tapaswi, M., Laptev, I., and Schmid, C. Instruction-driven history-aware policies for robotic manipulations. In 6th Annual Conference on Robot Learning, 2022.
278
+ Guo, Y., Wang, Y.-J., Zha, L., Jiang, Z., and Chen, J. Doremi: Grounding language model by detecting and recovering from plan-execution misalignment. arXiv preprint arXiv:2307.00329, 2023.
279
+ Hansen, N., Yuan, Z., Ze, Y., Mu, T., Rajeswaran, A., Su, H., Xu, H., and Wang, X. On pre-training for visuo-motor control: Revisiting a learning-from-scratch baseline. In Proceedings of the 40th International Conference on Machine Learning, volume 202 of Proceedings of Machine Learning Research, pp. 12511-12526, 23-29 Jul 2023.
280
+ Hansen, N. A., Su, H., and Wang, X. Temporal difference learning for model predictive control. In International Conference on Machine Learning, pp. 8387-8406. PMLR, 2022.
281
+ 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.
282
+ He, H., Bai, C., Xu, K., Yang, Z., Zhang, W., Wang, D., Zhao, B., and Li, X. Diffusion model is an effective planner and data synthesizer for multi-task reinforcement learning. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.
283
+ He, H., Bai, C., Pan, L., Zhang, W., Zhao, B., and Li, X. Large-scale actionless video pre-training via discrete diffusion for efficient policy learning. arXiv preprint arXiv:2402.14407, 2024.
284
+ He, K., Chen, X., Xie, S., Li, Y., Dollar, P., and Girshick, R. Masked autoencoders are scalable vision learners. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 16000-16009, 2022.
285
+ Hu, E. J., Shen, Y., Wallis, P., Allen-Zhu, Z., Li, Y., Wang, S., Wang, L., and Chen, W. Lora: Low-rank adaptation of large language models. In The Tenth International Conference on Learning Representations, ICLR, 2022.
286
+ Hu, Y., Lin, F., Zhang, T., Yi, L., and Gao, Y. Look before you leap: Unveiling the power of gpt-4v in robotic vision-language planning. arXiv preprint arXiv:2311.17842, 2023a.
287
+
288
+ Hu, Y., Lin, F., Zhang, T., Yi, L., and Gao, Y. Look before you leap: Unveiling the power of gpt-4v in robotic vision-language planning. arXiv preprint arXiv:2311.17842, 2023b.
289
+ Huang, W., Wang, C., Zhang, R., Li, Y., Wu, J., and Fei-Fei, L. Voxposer: Composable 3d value maps for robotic manipulation with language models. In Annual Conference on Robot Learning, 2023.
290
+ Hudson, D. A., Zoran, D., Malinowski, M., Lampinen, A. K., Jaegle, A., McClelland, J. L., Matthey, L., Hill, F., and Lerchner, A. Soda: Bottleneck diffusion models for representation learning. arXiv preprint arXiv:2311.17901, 2023.
291
+ James, S. and Davison, A. J. Q-attention: Enabling efficient learning for vision-based robotic manipulation. IEEE Robotics and Automation Letters, 7(2):1612-1619, 2022.
292
+ James, S., Ma, Z., Arrojo, D. R., and Davison, A. J. Rlbench: The robot learning benchmark & learning environment. IEEE Robotics and Automation Letters, 5(2):3019-3026, 2020.
293
+ James, S., Wada, K., Laidlow, T., and Davison, A. J. Coarse-to-fine q-attention: Efficient learning for visual robotic manipulation via discretisation. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13739-13748, 2022a.
294
+ James, S., Wada, K., Laidlow, T., and Davison, A. J. Coarse-to-fine q-attention: Efficient learning for visual robotic manipulation via discretisation. In IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 13739–13748, 2022b.
295
+ Jang, E., Irpan, A., Khansari, M., Kappler, D., Ebert, F., Lynch, C., Levine, S., and Finn, C. BC-z: Zero-shot task generalization with robotic imitation learning. In 5th Annual Conference on Robot Learning, 2021. URL https://openreview.net/forum?id=8kbp23tSGYv.
296
+ Jia, Z., Liu, F., Thumuluri, V., Chen, L., Huang, Z., and Su, H. Chain-of-thought predictive control. arXiv preprint arXiv:2304.00776, 2023.
297
+ Jiang, Y., Gupta, A., Zhang, Z., Wang, G., Dou, Y., Chen, Y., Fei-Fei, L., Anandkumar, A., Zhu, Y., and Fan, L. Vima: Robot manipulation with multimodal prompts. In International Conference on Machine Learning, pp. 14975–15022, 2023.
298
+ Khandelwal, A., Weihs, L., Mottaghi, R., and Kembhavi, A. Simple but effective: Clip embeddings for embodied ai. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 14829-14838, 2022.
299
+
300
+ 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. arXiv preprint arXiv:2304.02643, 2023.
301
+ Li, J., Li, D., Xiong, C., and Hoi, S. Blip: Bootstrapping language-image pre-training for unified vision-language understanding and generation. In International Conference on Machine Learning, pp. 12888-12900. PMLR, 2022.
302
+ Li, K., He, Y., Wang, Y., Li, Y., Wang, W., Luo, P., Wang, Y., Wang, L., and Qiao, Y. Videochat: Chat-centric video understanding. arXiv preprint arXiv:2305.06355, 2023.
303
+ Li, X., Liu, M., Zhang, H., Yu, C., Xu, J., Wu, H., Cheang, C., Jing, Y., Zhang, W., Liu, H., et al. Vision-language foundation models as effective robot imitators. In International Conference on Learning Representations, 2024.
304
+ Lin, J., Du, Y., Watkins, O., Hafner, D., Abbeel, P., Klein, D., and Dragan, A. Learning to model the world with language. arXiv preprint arXiv:2308.01399, 2023.
305
+ Liu, H., Lee, L., Lee, K., and Abbeel, P. Instruction-following agents with jointly pre-trained vision-language models, 2023a. URL https://openreview.net/forum?id=U0jfsqmoV-4.
306
+ Liu, H., Li, C., Wu, Q., and Lee, Y. J. Visual instruction tuning. arXiv preprint arXiv:2304.08485, 2023b.
307
+ Ma, Y. J., Kumar, V., Zhang, A., Bastani, O., and Jayaraman, D. LIV: Language-image representations and rewards for robotic control. In International Conference on Machine Learning, volume 202, pp. 23301-23320, 2023a.
308
+ Ma, Y. J., Sodhani, S., Jayaraman, D., Bastani, O., Kumar, V., and Zhang, A. VIP: Towards universal visual reward and representation via value-implicit pre-training. In International Conference on Learning Representations, 2023b.
309
+ Ma, Y. J., Liang, W., Wang, G., Huang, D., Bastani, O., Jayaraman, D., Zhu, Y., Fan, L., and Anandkumar, A. Eureka: Human-level reward design via coding large language models. In International Conference on Learning Representations, 2024.
310
+ Mazurowski, M. A., Dong, H., Gu, H., Yang, J., Konz, N., and Zhang, Y. Segment anything model for medical image analysis: an experimental study. Medical Image Analysis, 89:102918, 2023.
311
+ Mu, Y., Zhang, Q., Hu, M., Wang, W., Ding, M., Jin, J., Wang, B., Dai, J., Qiao, Y., and Luo, P. EmbodiedGPT: Vision-language pre-training via embodied chain of thought. In Neural Information Processing Systems, 2023.
312
+
313
+ Nair, S., Rajeswaran, A., Kumar, V., Finn, C., and Gupta, A. R3m: A universal visual representation for robot manipulation. In Conference on Robot Learning, pp. 892-909. PMLR, 2023.
314
+ Radford, A., Kim, J. W., Hallacy, C., Ramesh, A., Goh, G., Agarwal, S., Sastry, G., Askell, A., Mishkin, P., Clark, J., et al. Learning transferable visual models from natural language supervision. In International conference on machine learning, pp. 8748-8763. PMLR, 2021.
315
+ Rajic, F., Ke, L., Tai, Y.-W., Tang, C.-K., Danelljan, M., and Yu, F. Segment anything meets point tracking. arXiv preprint arXiv:2307.01197, 2023.
316
+ Reed, S., Zolna, K., Parisotto, E., Colmenarejo, S. G., Novikov, A., Barth-Maron, G., Gimenez, M., Sulsky, Y., Kay, J., Springenberg, J. T., et al. A generalist agent. arXiv preprint arXiv:2205.06175, 2022.
317
+ Rocamonde, J., Montesinos, V., Nava, E., Perez, E., and Lindner, D. Vision-language models are zero-shot reward models for reinforcement learning. In International Conference on Learning Representations, 2024.
318
+ Rohmer, E., Singh, S. P., and Freese, M. V-rep: A versatile and scalable robot simulation framework. In 2013 IEEE/RSJ international conference on intelligent robots and systems, pp. 1321-1326. IEEE, 2013.
319
+ Rombach, R., Blattmann, A., Lorenz, D., Esser, P., and Ommer, B. High-resolution image synthesis with latent diffusion models. In Proceedings of the IEEE/CVF conference on computer vision and pattern recognition, pp. 10684-10695, 2022.
320
+ Seo, Y., Kim, J., James, S., Lee, K., Shin, J., and Abbeel, P. Multi-view masked world models for visual robotic manipulation. In Proceedings of the 40th International Conference on Machine Learning, volume 202, pp. 30613-30632, 2023.
321
+ Shi, J., Bai, C., He, H., Han, L., Wang, D., Zhao, B., Li, X., and Li, X. Robust quadrupedal locomotion via risk-averse policy learning. In IEEE International Conference on Robotics and Automation (ICRA), 2024.
322
+ Shridhar, M., Manuelli, L., and Fox, D. CIport: What and where pathways for robotic manipulation. In Conference on Robot Learning, pp. 894-906. PMLR, 2022a.
323
+ Shridhar, M., Manuelli, L., and Fox, D. Perceiver-actor: A multi-task transformer for robotic manipulation. In 6th Annual Conference on Robot Learning, 2022b.
324
+ Touvron, H., Martin, L., Stone, K., Albert, P., Almahairi, A., Babaei, Y., Bashlykov, N., Batra, S., Bhargava, P.,
325
+
326
+ Bhosale, S., et al. Llama 2: Open foundation and finetuned chat models. arXiv preprint arXiv:2307.09288, 2023.
327
+ Walke, H. R., Black, K., Zhao, T. Z., Vuong, Q., Zheng, C., Hansen-Estruch, P., He, A. W., Myers, V., Kim, M. J., Du, M., Lee, A., Fang, K., Finn, C., and Levine, S. Bridgedata v2: A dataset for robot learning at scale. In Conference on Robot Learning, pp. 1723-1736, 2023.
328
+ Wang, L., Ling, Y., Yuan, Z., Shridhar, M., Bao, C., Qin, Y., Wang, B., Xu, H., and Wang, X. Gensim: Generating robotic simulation tasks via large language models. In International Conference on Learning Representations, 2024.
329
+ Wang, Y., Xian, Z., Chen, F., Wang, T., Wang, Y., Erickson, Z., Held, D., and Gan, C. Robogen: Towards unleashing infinite data for automated robot learning via generative simulation. CoRR, abs/2311.01455, 2023a.
330
+ Wang, Z., Ze, Y., Sun, Y., Yuan, Z., and Xu, H. Generalizable visual reinforcement learning with segment anything model. arXiv preprint arXiv:2312.17116, 2023b.
331
+ Wei, J., Wang, X., Schuurmans, D., Bosma, M., brian richter, Xia, F., Chi, E. H., Le, Q. V., and Zhou, D. Chain of thought prompting elicits reasoning in large language models. In Advances in Neural Information Processing Systems, 2022.
332
+ Wu, H., Jing, Y., Cheang, C., Chen, G., Xu, J., Li, X., Liu, M., Li, H., and Kong, T. Unleashing large-scale video generative pre-training for visual robot manipulation. In International Conference on Learning Representations, 2023.
333
+ Xian, Z., Gkanatsios, N., Gervet, T., Ke, T.-W., and Fragkiadaki, K. Chaineddiffuser: Unifying trajectory diffusion and keypose prediction for robotic manipulation. In 7th Annual Conference on Robot Learning, 2023. URL https://openreview.net/forum?id=W0zgY2mBTA8.
334
+ Xie, A., Lee, Y., Abbeel, P., and James, S. Language-conditioned path planning. In Conference on Robot Learning, pp. 3384-3396. PMLR, 2023.
335
+ Xie, C., Xiang, Y., Mousavian, A., and Fox, D. The best of both modes: Separately leveraging rgb and depth for unseen object instance segmentation. In Conference on robot learning, pp. 1369-1378. PMLR, 2020.
336
+ Xie, T., Zhao, S., Wu, C. H., Liu, Y., Luo, Q., Zhong, V., Yang, Y., and Yu, T. Text2reward: Automated dense reward function generation for reinforcement learning. In International Conference on Learning Representations, 2024.
337
+
338
+ Xu, M., Shen, Y., Zhang, S., Lu, Y., Zhao, D., Tenenbaum, J., and Gan, C. Prompting decision transformer for few-shot policy generalization. In International Conference on Machine Learning, volume 162, pp. 24631-24645, 17-23 Jul 2022.
339
+ Yao, S., Zhao, J., Yu, D., Du, N., Shafran, I., Narasimhan, K. R., and Cao, Y. React: Synergizing reasoning and acting in language models. In International Conference on Learning Representations, 2023.
340
+ Yu, T., Quillen, D., He, Z., Julian, R., Hausman, K., Finn, C., and Levine, S. Meta-world: A benchmark and evaluation for multi-task and meta reinforcement learning. In Conference on robot learning, pp. 1094-1100. PMLR, 2020.
341
+ Yuan, Z., Yang, S., Hua, P., Chang, C., Hu, K., and Xu, H. Rl-vigen: A reinforcement learning benchmark for visual generalization. In Conference on Neural Information Processing Systems Datasets and Benchmarks Track, 2023.
342
+ Zakka, K., Wu, P., Smith, L., Gileadi, N., Howell, T., Peng, X. B., Singh, S., Tassa, Y., Florence, P., Zeng, A., and Abbeel, P. Robopianist: Dexterous piano playing with deep reinforcement learning. In Conference on Robot Learning, 2023.
343
+ Zeng, A., Yu, K.-T., Song, S., Suo, D., Walker, E., Rodriguez, A., and Xiao, J. Multi-view self-supervised deep learning for 6d pose estimation in the amazon picking challenge. In 2017 IEEE international conference on robotics and automation (ICRA), pp. 1386-1383. IEEE, 2017.
344
+ Zhang, R., Jiang, Z., Guo, Z., Yan, S., Pan, J., Dong, H., Gao, P., and Li, H. Personalize segment anything model with one shot. arXiv preprint arXiv:2305.03048, 2023a.
345
+ Zhang, T., Hu, Y., Cui, H., Zhao, H., and Gao, Y. A universal semantic-geometric representation for robotic manipulation. In 7th Annual Conference on Robot Learning, 2023b.
346
+ Zhao, T. Z., Kumar, V., Levine, S., and Finn, C. Learning fine-grained bimanual manipulation with low-cost hardware. In ICML Workshop on New Frontiers in Learning, Control, and Dynamical Systems, 2023a.
347
+ Zhao, Z., Lee, W. S., and Hsu, D. Large language models as commonsense knowledge for large-scale task planning. arXiv preprint arXiv:2305.14078, 2023b.
348
+
349
+ # A. RLBench Tasks
350
+
351
+ We follow the multi-task multi-variation simulated experiments setting of RVT (Goyal et al., 2023) and PerAct (Shridhar et al., 2022b) with 18 RLBench tasks (shown in Figure 7) and 249 unique variations across object placement, color, size, category, count, and shape. Here we give a summary of the 18 RLBench tasks in Table 6. The extra 6 RLBench tasks (shown in Figure 8) for the few-shot adaptation experiment are summarized in Table 7.
352
+
353
+ ![](images/5e6e0d0c63569938c552f3756e577a60b5c12118ac8886e409e7cd0d91017078.jpg)
354
+
355
+ ![](images/8aeb970ae54c15b0cb49c27c777837eb8501c36bdc9c157c86249337e7a122ed.jpg)
356
+ Figure 7. Language-Conditioned Manipulation Tasks in RLBench. We conduct multi-task experiments on 18 simulated tasks in RLBench(James et al., 2020). Apart from the language instruction depicted in the figures, there are a total of 249 variations of these tasks, as illustrated in Table 6. During the test, the agent needs to handle the novel object poses, randomly sampled goals, and randomly sampled scenes with different semantic instantiations of object colors, shapes, sizes, and categories within a maximum of 25 execution steps.
357
+
358
+ Table 6. The 18 RLBench tasks for multi-task experiment
359
+
360
+ <table><tr><td>Task name</td><td>Language Template</td><td>Avg. Keyframes</td><td>#of Variations</td><td>Variation Type</td></tr><tr><td>put in drawer</td><td>“put the item in the __ drawer”</td><td>12.0</td><td>3</td><td>placement</td></tr><tr><td>reach and drag</td><td>“use the stick to drag the cube onto the __ target”</td><td>6.0</td><td>20</td><td>color</td></tr><tr><td>turn tap</td><td>“turn __ tap”</td><td>2.0</td><td>2</td><td>placement</td></tr><tr><td>slide to target</td><td>“slide the block to __ target”</td><td>4.7</td><td>4</td><td>color</td></tr><tr><td>open drawer</td><td>“open the __ drawer”</td><td>3.0</td><td>3</td><td>placement</td></tr><tr><td>put in cupboard</td><td>“put the __ in the cupboard”</td><td>5.0</td><td>9</td><td>category</td></tr><tr><td>place in shape sorter</td><td>“put the __ in the shape sorter”</td><td>5.0</td><td>5</td><td>shape</td></tr><tr><td>put money in safe</td><td>“put the money away in the safe on the __ shelf”</td><td>5.0</td><td>3</td><td>placement</td></tr><tr><td>push buttons</td><td>“push the __ button, [then the __ button]”</td><td>3.8</td><td>50</td><td>color</td></tr><tr><td>close jar</td><td>“close the __ jar”</td><td>6.0</td><td>20</td><td>color</td></tr><tr><td>stack block</td><td>“stack __ blocks”</td><td>14.6</td><td>60</td><td>color,count</td></tr><tr><td>place cups</td><td>“place __ cups on the cup holder”</td><td>11.5</td><td>3</td><td>count</td></tr><tr><td>place wine at rack</td><td>“stack the wine bottle to the __ of the rack”</td><td>5.0</td><td>3</td><td>placement</td></tr><tr><td>screw bulb</td><td>“screw in the __ light bulb”</td><td>7.0</td><td>20</td><td>color</td></tr><tr><td>sweep to dustpan</td><td>“sweep dirt to the __ dustpan”</td><td>4.6</td><td>2</td><td>size</td></tr><tr><td>insert peg</td><td>“put the ring on the __ spoke”</td><td>5.0</td><td>20</td><td>color</td></tr><tr><td>meat off grill</td><td>“take the __ off the grill”</td><td>5.0</td><td>2</td><td>category</td></tr><tr><td>stack cups</td><td>“stack the other cups on top of the __ cup”</td><td>10.0</td><td>20</td><td>color</td></tr></table>
361
+
362
+ ![](images/e856c64d6a5d2f126d8d9714ac267eadd690767cd899a799fd7b9e0b1fe80029.jpg)
363
+ Figure 8. Language-Conditioned Manipulation Tasks in RLBench. We conduct few-shot adaptation experiments on 6 simulated tasks in RLBench to evaluate the generalization ability of SAM-E. Task variations are shown in Table 7. The tasks must be completed by the agent within a maximum of 25 steps.
364
+
365
+ # B. Implementation Details
366
+
367
+ In this section, we provide more implementation details of SAM-E.
368
+
369
+ # B.1. Visual Input
370
+
371
+ In our experiments of RLBench, the visual observations are captured by four cameras (left shoulder, right shoulder, front, and wrist) with a resolution of $128 \times 128$ in RGB-D. We follow the re-render approach introduced by RVT (Goyal et al.,
372
+
373
+ Table 7. The 6 RLBench tasks used for the few-shot adaptation experiments.
374
+
375
+ <table><tr><td>Task name</td><td>Language Template</td><td>Avg. Keyframes</td><td>#of Variations</td><td>Variation Type</td></tr><tr><td>meat on grill</td><td>“put the _ on the grill”</td><td>5.0</td><td>2</td><td>category</td></tr><tr><td>open jar</td><td>“open the — jar”</td><td>6.0</td><td>20</td><td>color</td></tr><tr><td>screw nail</td><td>“screw the nail in to the block”</td><td>6.0</td><td>1</td><td>-</td></tr><tr><td>toilet seat down</td><td>“toilet seat down”</td><td>4.7</td><td>1</td><td>-</td></tr><tr><td>tv on</td><td>“turn on the TV”</td><td>8.0</td><td>1</td><td>-</td></tr><tr><td>solve puzzle</td><td>“solve the puzzle”</td><td>5.0</td><td>1</td><td>-</td></tr></table>
376
+
377
+ 2023) before feeding visual images to the model. Specifically, the RGB-D images are rerendered to generate virtual images in the form of cube orthographic projection. Then we use the cube orthographic projections as the visual inputs of SAM-E.
378
+
379
+ # B.2. Action Sequence Imitation
380
+
381
+ We utilize a multi-channel action sequence policy head to predict the action sequence, trained by action sequence imitation. To extract the temporal information of actions from the expert demonstrations, we employ the keyframe extraction on each demonstration, generating a dataset of keyframe sequences. Given observations, SAM-E generates an action sequence with a default action horizon of 5 and is trained to maximize the likelihood objective of imitation learning. Note that the action sequence data may have variable lengths, when the data is shorter than the action horizon, we mask the untrained action head, and when the data is longer, we truncate it accordingly.
382
+
383
+ # B.3. Hyperparameters
384
+
385
+ In our experiments, the hyperparameters are primarily fixed, as shown in Table 8.
386
+
387
+ Table 8. Training Hyperparameters
388
+
389
+ <table><tr><td>Hyperparameters</td><td>Multi-task Training</td><td>Few-shot adaptation</td></tr><tr><td>batch size</td><td>10</td><td>10</td></tr><tr><td>learning rate</td><td>4e-3</td><td>4e-3</td></tr><tr><td>optimizer</td><td>LAMB</td><td>LAMB</td></tr><tr><td>learning rate schedule</td><td>cosine decay</td><td>cosine decay</td></tr><tr><td>warmup steps</td><td>2000</td><td>2000</td></tr><tr><td>training steps</td><td>60K</td><td>4K</td></tr><tr><td>training epochs</td><td>15</td><td>1</td></tr></table>
390
+
391
+ # C. Visualization
392
+
393
+ We visualize the attention map of the multi-view transformer to show SAM-E's various attention patterns for task comprehension and action sequence prediction. We use task put_item_inDrawer as an example, which is completed by three executions.
394
+
395
+ (i) In the first execution with the initial observation (see Figure 9), SAM-E's attention, from one of its heads, is predominantly focused on the Franka robot, the drawer cabinet, and more specifically, the item on the cabinet and the handle of the top drawer. This observation aligns with the given instruction to 'put the item in the top drawer', highlighting SAM-E's capability to identify key objects within the scene according to the task description for task execution.
396
+ (ii) In the second inference, following an action sequence that results in the opening of the top drawer, SAM-E adapts its focus. It now observes the newly available space within the drawer for placing the item (see Figure 10). Concurrently, another of its attention heads redirects back to the end-effector and the item, strategizing the subsequent action of picking up and placing the item into the drawer(see Figure 11).
397
+
398
+ (iii) In the final inference (see Figure 12), SAM-E concentrates on the end-effector picking up the item and positioning it accurately into the target position. This phase likely involves precise adjustments and movements, ensuring the successful completion of the task as the language instruction.
399
+
400
+ ![](images/e725283172e5c40a62b06d1c8033bf06a5b252be65b8bce7a10a2946b9f319a1.jpg)
401
+ Top View
402
+
403
+ ![](images/f1aecd87c39d451a9f57bd153831b6c356d7d7374668fc0d0de85f36801e5eae.jpg)
404
+ Back View
405
+
406
+ ![](images/575660c7b75886e41b02fbf88bff24571dddace365cdf93fb04084f3a7df1f4a.jpg)
407
+ Front View
408
+
409
+ ![](images/6697930a4eceed4f7f0c330d0e88b7622fad2143160f9b56f0850dba4737c066.jpg)
410
+ Right View
411
+
412
+ ![](images/95f4abe92be176af7c4ec5f8f60adbdfa7f4ef0259d4b8f5a0d8bf4ccd27cd46.jpg)
413
+ Left View
414
+
415
+ ![](images/4458f797733d82761c67e0cc8178da6165e22df1c785a80ee706ca9f260b1024.jpg)
416
+ Top View
417
+
418
+ ![](images/7e10518695a89855c7755b5fe76220665073cfd9a81ea41197366abfd1812096.jpg)
419
+ Figure 9. SAM-E's multi-view attention map of the initial inference.
420
+ Back View
421
+
422
+ ![](images/883187a8f2d07b6fa5b35866dc289b80702fe02bc4e72fd5b2371087331d4188.jpg)
423
+ Front View
424
+
425
+ ![](images/054e70f822fa63e3071d88203113cf6521c91d5cffbfd027a8f9b72f8f8d9193.jpg)
426
+ Right View
427
+
428
+ ![](images/a99e7381398a50dd43649970b88d950e52c87752fc0ac78835a9638004f79466.jpg)
429
+ Left View
430
+
431
+ ![](images/495aa7b2d16ebc8ee118e5bc0232b1e3caf2251c95f6cc227f1a69c6b86a0ce3.jpg)
432
+ Top View
433
+
434
+ ![](images/447c40f1093e83517737cba5ed20287f109aed031508771d0d86a2931ffe876a.jpg)
435
+ Figure 10. SAM-E's multi-view attention map of the second inference, focusing on the open drawer.
436
+ Back View
437
+
438
+ ![](images/ca8dd4f97f2a6e580407b390d88df366fe9e740c581985257e78e7d66b8971dd.jpg)
439
+ Front View
440
+
441
+ ![](images/e4e2b257081dc422e842c2bd3e018b443986c792c3e44ff5a4a433c1a9475665.jpg)
442
+ Right View
443
+
444
+ ![](images/a1c6dd6762197111254af0e6070729efdcd48e61a5aa473a04a8e7293cd439aa.jpg)
445
+ Left View
446
+
447
+ ![](images/13ea9e560d985718f48f063554cfbc94471832baf23342eacbf2bbf32fb5e215.jpg)
448
+ Figure 11. SAM-E's multi-view attention map of the second inference, focusing on the end-effector and the item.
449
+ Top View
450
+
451
+ ![](images/e82c58d6e23f9c70124a8a5c077be56a8cd03925dbe0364f9617a4f753e1f943.jpg)
452
+ Back View
453
+ Figure 12. SAM-E's multi-view attention map of the last inference.
454
+
455
+ ![](images/618a96b8940ee408ff0f21f5958d11f787cc8b5bb26c6f3a2ad73cce1c4968c4.jpg)
456
+ Front View
457
+
458
+ ![](images/c4bcc83ff8f1c76d49f9f8b59158f8b90980510e6b398ea435c3ffd74eed433e.jpg)
459
+ Right View
460
+
461
+ ![](images/2d648f6cd4938a3488a022c58d0c00a84d0276a9b6386afb387ffe466f5353c8.jpg)
462
+ Left View
463
+
464
+ # D. One Glance Results
465
+
466
+ Figure 13 shows the results of execution times of SAM-E on success cases of several tasks. Thanks to its promptable perception and efficient action sequence prediction, SAM-E excels in task completion by executing actions coherently, resulting in improved performance and significantly reduced inference requirements. For the following tasks, in comparison, RVT requires an average of [6.4, 6.0, 3.8, 5.5, 3.7, 4.3, 5.5, 5.0, 4.8] execution times of its success cases.
467
+
468
+ ![](images/2c547244d1d58a217daf984b3f93b407f7c6e6abcaf5b68b38cd189efc0a8138.jpg)
469
+ Figure 13. The comparison of execution times on success cases of several tasks.
470
+
471
+ # E. Comparison with Hiveformer
472
+
473
+ To compare the performance of SAM-E and HiverFormer, we add experiments to train SAM-E with the same 10 tasks evaluated in the Hiveformer paper with 100 demonstrations per task, which is the same as Hiveformer (results are shown in Table 9). The score of Hiveformer is adapted from their original paper. We remark that SAM-E is trained with 10 tasks with all variations, which is much more challenging than Hiveformer which is trained with a unique variation for each task.
474
+
475
+ Table 9. Comparison with Hiveformer. Scores of Hiveformer are adopted from Guhur et al. (2022). Mean and std of 5 evaluations are reported.
476
+
477
+ <table><tr><td>Models</td><td>Pick and Lift</td><td>Pick up Cup</td><td>Put Knife on Board</td><td>Reach Target</td><td>Stack Wine</td><td>Take Money out Safe</td><td>Take Umbrella out Stand</td><td>Push Buttons</td><td>Put Money in Safe</td><td>Slide to Target</td><td>On Average</td></tr><tr><td>Hiveformer</td><td>88.9</td><td>92.9</td><td>75.3</td><td>100.0</td><td>71.2</td><td>79.1</td><td>89.2</td><td>100.0</td><td>58.2</td><td>78.7</td><td>83.3</td></tr><tr><td>SAM-E</td><td>87.2±1.8</td><td>88.8±5.2</td><td>68.0±4.0</td><td>100.0±0.0</td><td>69.6±7.3</td><td>98.4±2.2</td><td>96.0±2.8</td><td>100.0±0.0</td><td>93.6±2.2</td><td>84.8±7.7</td><td>88.6±0.7</td></tr></table>
478
+
479
+ # F. Ablation
480
+
481
+ We provide the complete results of the ablation study in Table 10 and Table 11.
482
+
483
+ # G. Real-World Experiments
484
+
485
+ We conduct real-world experiments on a FranKa Panda robot arm in the real world, equipped with a dual RGB-D camera setup positioned at the left front and right front for multi-view observation, shown in Figure 14. We construct the real-world scene and design 5 tasks for experiments, including put the towel on the cabinet, stack the block, close the drawer, pick up
486
+
487
+ Table 10. Ablation Performances of SAM-E's variations. Mean and std of 5 evaluations are reported.
488
+
489
+ <table><tr><td>Models</td><td>Put in
490
+ Drawer</td><td>Reach
491
+ and Drag</td><td>Turn
492
+ Tap</td><td>Slide to
493
+ Target</td><td>Open
494
+ Drawer</td><td>Put in
495
+ Cupboard</td><td>Place in
496
+ Shape Sorter</td><td>Put Money
497
+ in Safe</td><td>Push
498
+ Buttons</td><td>Close
499
+ Jar</td></tr><tr><td>SAM-E</td><td>92.0±5.7</td><td>100.0±0.0</td><td>100.0±0.0</td><td>95.2±1.8</td><td>95.2±5.2</td><td>64.0±2.8</td><td>34.4±6.1</td><td>95.2±3.3</td><td>100.0±0.0</td><td>82.4±3.6</td></tr><tr><td>SAM-E (LoRA, QKV)</td><td>88.8±7.7</td><td>100.0±0.0</td><td>100.0±0.0</td><td>90.4±6.1</td><td>94.4±3.6</td><td>57.6±4.6</td><td>37.6±5.4</td><td>92.8±5.2</td><td>100.0±0.0</td><td>78.4±4.6</td></tr><tr><td>SAM-E (w/o LoRA)</td><td>84.8±7.2</td><td>100.0±0.0</td><td>100.0±0.0</td><td>92.0±4.0</td><td>92.8±3.3</td><td>52.0±2.8</td><td>31.2±5.2</td><td>92.8±1.8</td><td>98.4±2.2</td><td>87.2±5.2</td></tr><tr><td>SAM-E (full finetune)</td><td>93.3±4.6</td><td>98.7±2.3</td><td>100.0±0.0</td><td>69.3±11.5</td><td>90.7±2.3</td><td>52.0±0.0</td><td>29.3±11.5</td><td>89.3±2.3</td><td>100.0±0.0</td><td>68.0±0.0</td></tr><tr><td>Models</td><td>Stack
500
+ Blocks</td><td>Place
501
+ Cups</td><td>Place Wine
502
+ at Rack</td><td>Screw
503
+ Bulb</td><td>Sweep to
504
+ Dustpan</td><td>Insert
505
+ Peg</td><td>Meat off
506
+ Grill</td><td>Stack
507
+ Cups</td><td>On
508
+ Average</td><td>Inference
509
+ Steps(Sum)</td></tr><tr><td>SAM-E</td><td>26.4±4.6</td><td>0.0±0.0</td><td>94.4±4.6</td><td>78.4±3.6</td><td>100.0±0.0</td><td>18.4±4.6</td><td>95.2±3.3</td><td>0.0±0.0</td><td>70.6±0.7</td><td>1130±12</td></tr><tr><td>SAM-E (LoRA, QKV)</td><td>32.0±4.9</td><td>3.2±1.8</td><td>93.6±3.6</td><td>69.6±4.6</td><td>98.4±2.2</td><td>6.4±6.1</td><td>97.6±2.2</td><td>5.6±2.2</td><td>69.2±0.9</td><td>1142±6</td></tr><tr><td>SAM-E (w/o LoRA)</td><td>20.8±7.2</td><td>0.0±0.0</td><td>92.0±4.0</td><td>64.0±7.5</td><td>96.8±1.8</td><td>8.8±6.6</td><td>94.4±3.6</td><td>0.8±1.8</td><td>67.2±1.0</td><td>1182±6</td></tr><tr><td>SAM-E (full finetune)</td><td>20.0±6.9</td><td>1.3±2.3</td><td>90.7±2.3</td><td>69.3±4.6</td><td>100.0±0.0</td><td>0.0±0.0</td><td>98.7±2.3</td><td>13.3±4.6</td><td>65.8±1.0</td><td>1204±18</td></tr></table>
510
+
511
+ Table 11. Ablation Performances with different action sequence length. Mean and std of 5 evaluations are reported.
512
+
513
+ <table><tr><td>Models</td><td>Put in
514
+ Drawer</td><td>Reach
515
+ and Drag</td><td>Turn
516
+ Tap</td><td>Slide to
517
+ Target</td><td>Open
518
+ Drawer</td><td>Put in
519
+ Cupboard</td><td>Place in
520
+ Shape Sorter</td><td>Put Money
521
+ in Safe</td><td>Push
522
+ Buttons</td><td>Close
523
+ Jar</td></tr><tr><td>SAM-E (h=1)</td><td>0.0±0.0</td><td>6.7±2.3</td><td>98.7±2.3</td><td>45.3±4.6</td><td>72.0±6.9</td><td>8.0±4.0</td><td>14.7±2.3</td><td>8.0±0.0</td><td>69.3±2.3</td><td>12.0±4.0</td></tr><tr><td>SAM-E (h=3)</td><td>77.6±2.2</td><td>84.8±1.8</td><td>100.0±0.0</td><td>72.8±1.8</td><td>92.0±2.8</td><td>31.2±5.2</td><td>35.2±3.3</td><td>84.8±5.2</td><td>99.2±1.8</td><td>73.6±3.6</td></tr><tr><td>SAM-E (h=5)</td><td>92.0±5.7</td><td>100.0±0.0</td><td>100.0±0.0</td><td>95.2±1.8</td><td>95.2±5.2</td><td>64.0±2.8</td><td>34.4±6.1</td><td>95.2±3.3</td><td>100.0±0.0</td><td>82.4±3.6</td></tr><tr><td>SAM-E (h=7)</td><td>88.8±9.5</td><td>99.2±1.8</td><td>100.0±0.0</td><td>80.8±18.6</td><td>90.4±4.6</td><td>53.6±7.3</td><td>28.8±3.3</td><td>92.8±1.8</td><td>100.0±0.0</td><td>72.8±3.3</td></tr><tr><td>Models</td><td>Stack
524
+ Blocks</td><td>Place
525
+ Cups</td><td>Place Wine
526
+ at Rack</td><td>Screw
527
+ Bulb</td><td>Sweep to
528
+ Dustpan</td><td>Insert
529
+ Peg</td><td>Meat off
530
+ Grill</td><td>Stack
531
+ Cups</td><td>On
532
+ Average</td><td>Inference
533
+ Steps(Sum)</td></tr><tr><td>SAM-E (h=1)</td><td>0.0±0.0</td><td>1.3±2.3</td><td>40.0±6.9</td><td>58.7±2.3</td><td>24.0±4.0</td><td>34.7±14.0</td><td>54.7±4.6</td><td>2.7±4.6</td><td>30.6±1.4</td><td>8329±60</td></tr><tr><td>SAM-E (h=3)</td><td>16.8±3.3</td><td>1.6±2.2</td><td>76.8±4.4</td><td>49.6±6.7</td><td>87.2±1.8</td><td>54.4±2.2</td><td>100.0±0.0</td><td>13.6±3.6</td><td>64.0±0.6</td><td>2026±30</td></tr><tr><td>SAM-E (h=5)</td><td>26.4±4.6</td><td>0.0±0.0</td><td>94.4±4.6</td><td>78.4±3.6</td><td>100.0±0.0</td><td>18.4±4.6</td><td>95.2±3.3</td><td>0.0±0.0</td><td>70.6±0.7</td><td>1130±12</td></tr><tr><td>SAM-E (h=7)</td><td>13.6±5.4</td><td>3.2±3.3</td><td>92.0±4.0</td><td>70.4±5.4</td><td>100.0±0.0</td><td>8.8±4.4</td><td>97.6±3.6</td><td>4.8±1.8</td><td>66.5±1.2</td><td>919±12</td></tr></table>
534
+
535
+ the banana, and put the orange into the drawer. For data collection, we manually control the robot arm for demonstrations by a controller and collect the RGB-D stream and robot joint pose simultaneously with a data collection pipeline. We collect demonstrations with variations in item placement for all tasks. See https://sam-embodied.github.io/ for videos and performance.
536
+
537
+ ![](images/fa0d069caf264a442a63b7db76889c95fbd81a9e4f44639d087f1ee38ffb2136.jpg)
538
+ Real World Scene
539
+ Put the towel on the cabinet
540
+
541
+ ![](images/07680444ad958b85cffb8d08946db637cf9011fef1e49d58d90e5ac498d3a7e5.jpg)
542
+
543
+ ![](images/1de23717871d9ae273d8b2106d112e93dbcc142e414c4e8cad697acaba9e0884.jpg)
544
+ Stack the block
545
+
546
+ ![](images/b44d97621adc1f66e322e8fa5065ebc413a0b763c09204e6ef1f2e1e9895d7dd.jpg)
547
+ Close the drawer
548
+ Figure 14. Real-World Scene and tasks.
549
+
550
+ ![](images/ba1e942d07a5c580744712bb0a0b9af6766c6735b5a5daf0c6687507db4c16bb.jpg)
551
+ Pick up the banana
552
+ Put the orange into the drawer
553
+
554
+ ![](images/30e06c107dbccda8d7e83715b859d8c5db4635070e67d465ea4745d781ef72e8.jpg)
555
+
556
+ # H. Limitation and Future Work
557
+
558
+ In this work, we propose SAM-E with SAM as the visual foundation and action-sequence policy head, which outperforms prior state-of-the-art methods. However, we also identify limitations that suggest directions for future research. We employ parameter-efficient fine-tuning on relatively limited robot data to enhance its understanding of embodied manipulation. Future improvements might include leveraging the scalability of the visual foundation through training on larger datasets, such as Open-X (Collaboration, 2023). Additionally, we employed a fixed horizon for the action-sequence policy, which, while generally effective, could be less suitable for certain tasks, such as stack cups in our experiments, in which may need to pay more attention to the trade-off between precision and coherence of the action. It would be intriguing to see the action horizon optimized through a mechanism or learned from data.
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:63f42ea3d2c73ebfa81e155a603cc47af18f82c59786d2b574b4cc95d1099c44
3
+ size 1637858
2024/SAM-E_ Leveraging Visual Foundation Model with Sequence Imitation for Embodied Manipulation/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/0b6780a8-10c5-48d2-a17a-a0bccd0ad09c_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c0bef34f6bc9d1ebcf46131dfad8c0439713959d8c98ccaf1163a468403449b7
3
+ size 2119001
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:e9606d9e57d07a6486c2c2d8306275a535f45a2d80e72f6b1d30d6ad9be0e067
3
+ size 2058008
2024/SAMformer_ Unlocking the Potential of Transformers in Time Series Forecasting with Sharpness-Aware Minimization and Channel-Wise Attention/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_content_list.json ADDED
@@ -0,0 +1,2319 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "Jayesh Singla $^{*1}$ Ananye Agarwal $^{*1}$ Deepak Pathak",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 290,
8
+ 176,
9
+ 676,
10
+ 193
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Abstract",
17
+ "text_level": 1,
18
+ "bbox": [
19
+ 241,
20
+ 220,
21
+ 318,
22
+ 234
23
+ ],
24
+ "page_idx": 0
25
+ },
26
+ {
27
+ "type": "text",
28
+ "text": "Despite extreme sample inefficiency, on-policy reinforcement learning, aka policy gradients, has become a fundamental tool in decision-making problems. With the recent advances in GPU-driven simulation, the ability to collect large amounts of data for RL training has scaled exponentially. However, we show that current RL methods, e.g. PPO, fail to ingest the benefit of parallelized environments beyond a certain point and their performance saturates. To address this, we propose a new on-policy RL algorithm that can effectively leverage large-scale environments by splitting them into chunks and fusing them back together via importance sampling. Our algorithm, termed SAPG, shows significantly higher performance across a variety of challenging environments where vanilla PPO and other strong baselines fail to achieve high performance. Webpage at https://sapg-rl.github.io.",
29
+ "bbox": [
30
+ 117,
31
+ 243,
32
+ 444,
33
+ 530
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "1. Introduction",
40
+ "text_level": 1,
41
+ "bbox": [
42
+ 86,
43
+ 546,
44
+ 217,
45
+ 561
46
+ ],
47
+ "page_idx": 0
48
+ },
49
+ {
50
+ "type": "text",
51
+ "text": "Broadly, there are two main categories in reinforcement learning (RL): off-policy RL, e.g., Q-learning (Watkins & Dayan, 1992), and on-policy RL, e.g., policy gradients (Sutton et al., 1999). On-policy methods are relatively more sample inefficient than off-policy but often tend to converge to higher asymptotic performance. Due to this reason, on-policy RL methods, especially PPO (Schulman et al., 2017), are usually the preferred RL paradigm for almost all sim2real robotic applications (Miki et al., 2022; Agarwal et al., 2022; Chen et al., 2021) to games such as StarCraft (Vinyals et al., 2019), where one could simulate years of real-world experience in minutes to hours.",
52
+ "bbox": [
53
+ 84,
54
+ 571,
55
+ 475,
56
+ 752
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "RL is fundamentally a trial-n-error-based framework and hence is sample inefficient in nature. Due to this, one needs to have large batch sizes for each policy update, especially in",
63
+ "bbox": [
64
+ 84,
65
+ 760,
66
+ 475,
67
+ 806
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "*Equal contribution ${}^{1}$ Carnegie Mellon University. Correspondence to: Ananye Agarwal <ananyea@andrew.cmu.edu>, Jayesh Singla <jsingla@andrew.cmu.edu>.",
74
+ "bbox": [
75
+ 84,
76
+ 815,
77
+ 475,
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": "Parallel Envs",
96
+ "bbox": [
97
+ 535,
98
+ 282,
99
+ 594,
100
+ 309
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "Regular On-policy RL",
107
+ "bbox": [
108
+ 601,
109
+ 223,
110
+ 774,
111
+ 241
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "image",
117
+ "img_path": "images/b57ad28d340bcb4d9003d31ec900d0a8c56cf5f12ab623d1656445fad84763c8.jpg",
118
+ "image_caption": [],
119
+ "image_footnote": [],
120
+ "bbox": [
121
+ 599,
122
+ 258,
123
+ 730,
124
+ 329
125
+ ],
126
+ "page_idx": 0
127
+ },
128
+ {
129
+ "type": "image",
130
+ "img_path": "images/a95bad4e4903265d5dfd4d38a4f3694e23f3456f23baafc7dae98fa1496aaced.jpg",
131
+ "image_caption": [
132
+ "Single learner"
133
+ ],
134
+ "image_footnote": [],
135
+ "bbox": [
136
+ 751,
137
+ 247,
138
+ 833,
139
+ 314
140
+ ],
141
+ "page_idx": 0
142
+ },
143
+ {
144
+ "type": "image",
145
+ "img_path": "images/7bdccc2bf40309b57b04dc070e543acaabddc184408a8bb8934a289483a18a04.jpg",
146
+ "image_caption": [
147
+ "Split and Aggregate Policy Gradients (SAPG)",
148
+ "Followers"
149
+ ],
150
+ "image_footnote": [],
151
+ "bbox": [
152
+ 593,
153
+ 401,
154
+ 653,
155
+ 450
156
+ ],
157
+ "page_idx": 0
158
+ },
159
+ {
160
+ "type": "image",
161
+ "img_path": "images/7be2c58e97eebe98e168b3f183cc585081e62c28723ebbc286d97bc308399fc6.jpg",
162
+ "image_caption": [],
163
+ "image_footnote": [],
164
+ "bbox": [
165
+ 647,
166
+ 441,
167
+ 730,
168
+ 497
169
+ ],
170
+ "page_idx": 0
171
+ },
172
+ {
173
+ "type": "image",
174
+ "img_path": "images/4d5770707ed126b7774190ec35eaa3db8431e137a46c4305a0ba20d222021aa4.jpg",
175
+ "image_caption": [],
176
+ "image_footnote": [],
177
+ "bbox": [
178
+ 723,
179
+ 402,
180
+ 782,
181
+ 452
182
+ ],
183
+ "page_idx": 0
184
+ },
185
+ {
186
+ "type": "image",
187
+ "img_path": "images/935b6e2dff5c7c4228c93c8ac9e562bc5cb8e0572afeeb316f1702da697546c2.jpg",
188
+ "image_caption": [
189
+ "Leader"
190
+ ],
191
+ "image_footnote": [],
192
+ "bbox": [
193
+ 808,
194
+ 426,
195
+ 885,
196
+ 492
197
+ ],
198
+ "page_idx": 0
199
+ },
200
+ {
201
+ "type": "image",
202
+ "img_path": "images/d00bbe95c49532e92effe3080c1147d49be5e4484b461e5096f16554c788a5fd.jpg",
203
+ "image_caption": [],
204
+ "image_footnote": [],
205
+ "bbox": [
206
+ 591,
207
+ 496,
208
+ 650,
209
+ 545
210
+ ],
211
+ "page_idx": 0
212
+ },
213
+ {
214
+ "type": "image",
215
+ "img_path": "images/cc078c1ed5fa5958dad4b0a76b834bbf3c23987a3826e78c95eff515fb6075a6.jpg",
216
+ "image_caption": [],
217
+ "image_footnote": [],
218
+ "bbox": [
219
+ 522,
220
+ 534,
221
+ 609,
222
+ 590
223
+ ],
224
+ "page_idx": 0
225
+ },
226
+ {
227
+ "type": "image",
228
+ "img_path": "images/19c4b7c0ea21550e959d09c7198b809af50d1dd66bdaefb7d60def33dd99ca94.jpg",
229
+ "image_caption": [
230
+ "Figure 1. We introduce a new class of on-policy RL algorithms that can scale to tens of thousands of parallel environments. In contrast to regular on-policy RL, such as PPO, which learns a single policy across environments leading to wasted environment capacity, our method learns diverse followers and combines data from them to learn a more optimal leader in a continuous online manner."
231
+ ],
232
+ "image_footnote": [],
233
+ "bbox": [
234
+ 647,
235
+ 540,
236
+ 728,
237
+ 595
238
+ ],
239
+ "page_idx": 0
240
+ },
241
+ {
242
+ "type": "image",
243
+ "img_path": "images/64a536c9ab7b1d699a643887cba392d5a6f7e11362f83afcd532591cc0e397f0.jpg",
244
+ "image_caption": [],
245
+ "image_footnote": [],
246
+ "bbox": [
247
+ 733,
248
+ 515,
249
+ 792,
250
+ 563
251
+ ],
252
+ "page_idx": 0
253
+ },
254
+ {
255
+ "type": "text",
256
+ "text": "the case of on-policy methods because they can only use data from current experience. Fortunately, in recent years, the ability to simulate a large number of environments in parallel has become exponentially larger due to GPU-driven physics engines, such as IsaacGym (Makoviychuk et al., 2021), PhysX, Mujoco-3.0, etc. This means that each RL update can easily scale to batches of size hundreds of thousands to millions, which are over two orders of magnitude higher than what most RL benchmarks typically have.",
257
+ "bbox": [
258
+ 495,
259
+ 715,
260
+ 885,
261
+ 853
262
+ ],
263
+ "page_idx": 0
264
+ },
265
+ {
266
+ "type": "text",
267
+ "text": "In this paper, we highlight an issue with typical on-policy RL methods, e.g. PPO, that they are not able to ingest the benefits with increasingly larger sample sizes for each up-",
268
+ "bbox": [
269
+ 496,
270
+ 859,
271
+ 885,
272
+ 906
273
+ ],
274
+ "page_idx": 0
275
+ },
276
+ {
277
+ "type": "header",
278
+ "text": "SAPG: Split and Aggregate Policy Gradients",
279
+ "bbox": [
280
+ 259,
281
+ 109,
282
+ 712,
283
+ 131
284
+ ],
285
+ "page_idx": 0
286
+ },
287
+ {
288
+ "type": "page_number",
289
+ "text": "1",
290
+ "bbox": [
291
+ 480,
292
+ 922,
293
+ 491,
294
+ 934
295
+ ],
296
+ "page_idx": 0
297
+ },
298
+ {
299
+ "type": "image",
300
+ "img_path": "images/34f4332d113579d372b25fac045a2de44fd8bf9a632c0377ea2aa5f1433bcdad.jpg",
301
+ "image_caption": [
302
+ "Figure 2. Performance vs batch size plot for PPO runs (blue curve) across two environments. The curve shows how PPO training runs can not take benefit of large batch size resulting from massively parallelized environments and their asymptotic performance saturates after a certain point. The dashed red line is the performance of our method, SAPG, with more details in the results section. It serves as evidence that higher performance is achievable with larger batch sizes."
303
+ ],
304
+ "image_footnote": [],
305
+ "bbox": [
306
+ 89,
307
+ 82,
308
+ 472,
309
+ 227
310
+ ],
311
+ "page_idx": 1
312
+ },
313
+ {
314
+ "type": "text",
315
+ "text": "date. In Figure 2, we show that PPO performance saturates after a certain batch size despite the ceiling being higher. This is due to the issue in data sampling mechanisms. In particular, at each timestep actions are sampled from a Gaussian with some mean and variance. This implies that most sampled actions are near the mean and with large number of environments, many environments are executing the same actions leading to duplicated data. This implies that the performance of PPO saturates at some point as we increase the number of environments.",
316
+ "bbox": [
317
+ 84,
318
+ 369,
319
+ 477,
320
+ 518
321
+ ],
322
+ "page_idx": 1
323
+ },
324
+ {
325
+ "type": "text",
326
+ "text": "We propose a simple fix to this problem. Instead of running a single PPO policy for all environments, we divide environments into blocks. Each block optimizes a separate policy, allowing for more data diversity than just i.i.d. sampling from the same Gaussian. Next, we do an off-policy update to combine data from all these policies to keep the update consistent with the objective of on-policy RL. This allows us to use the PPO's clipped surrogate objective, maintaining the stability benefits of PPO while latching onto high reward trajectories even though they are off-policy. A schematic of our approach, termed SAPG, is shown in Figure 1. We evaluate SAPG across a variety of environments and show significantly high asymptotic performance in environments where vanilla PPO even fails to get any positive success.",
327
+ "bbox": [
328
+ 84,
329
+ 527,
330
+ 475,
331
+ 739
332
+ ],
333
+ "page_idx": 1
334
+ },
335
+ {
336
+ "type": "text",
337
+ "text": "2. Related Work",
338
+ "text_level": 1,
339
+ "bbox": [
340
+ 84,
341
+ 758,
342
+ 227,
343
+ 773
344
+ ],
345
+ "page_idx": 1
346
+ },
347
+ {
348
+ "type": "text",
349
+ "text": "Policy gradients REINFORCE (Williams, 2004), one of the earliest policy gradient algorithms uses an estimator of the objective using simple Monte Carlo return values. Works such as (Konda & Tsitsiklis, 1999) and (Schulman et al., 2018) improve the stability of policy gradient algorithms by employing a baseline to decrease the variance of the estimator while not compromising on the bias. (Schulman et al., 2015; 2017) incorporate conservative policy updates",
350
+ "bbox": [
351
+ 84,
352
+ 784,
353
+ 475,
354
+ 906
355
+ ],
356
+ "page_idx": 1
357
+ },
358
+ {
359
+ "type": "text",
360
+ "text": "into policy gradients to increase the robustness.",
361
+ "bbox": [
362
+ 496,
363
+ 85,
364
+ 810,
365
+ 99
366
+ ],
367
+ "page_idx": 1
368
+ },
369
+ {
370
+ "type": "text",
371
+ "text": "Distributed reinforcement learning Reinforcement learning algorithms are highly sample inefficient, which calls for some form of parallelization to increase the training speed. When training in simulation, this speed-up can be achieved by distributing experience collection or different parts of training across multiple processes.(Nair et al., 2015; Mnih et al., 2016; Espeholt et al., 2018; Horgan et al., 2018) However, through the introduction of GPU-based simulators such as IsaacGym (Makoviychuk et al., 2021), the capacity of simulation has increased by two to three orders of magnitude. Due to this, instead of focusing on how to parallelize parts of the algorithm, the focus has shifted to finding ways to efficiently utilize the large amount of simulation data. Previous works such as (Chen et al., 2021; Fu et al., 2022; Rudin et al., 2022; Handa et al., 2022; Agarwal et al., 2022) use data from GPU-based simulation to learn policies in complex manipulation and locomotion settings. However, most of these works still use reinforcement learning algorithms to learn a single policy, while augmenting training with techniques like teacher-student-based training and game-based curriculum. We find that using the increased simulation capacity to naively increase the batch size is not the best way to utilize massively parallel simulation.",
372
+ "bbox": [
373
+ 495,
374
+ 121,
375
+ 888,
376
+ 469
377
+ ],
378
+ "page_idx": 1
379
+ },
380
+ {
381
+ "type": "text",
382
+ "text": "(Petrenko et al., 2023) develop a population-based training framework that divides the large number of environments between multiple policies and using hyperparameter mutation to find a set of hyperparameters that performs well. However, even this does not utilize all the data completely as each policy learns independently. We propose a way to ensure most of the data from the environments contributes to learning by using all collected transitions for each update.",
383
+ "bbox": [
384
+ 495,
385
+ 476,
386
+ 888,
387
+ 599
388
+ ],
389
+ "page_idx": 1
390
+ },
391
+ {
392
+ "type": "text",
393
+ "text": "Off-policy Policy Gradients Unlike on-policy algorithms, off-policy algorithms can reuse all collected data or data collected by any policy for their update. Most off-policy algorithms (Mnih et al., 2013; Lillicrap et al., 2019; Haarnoja et al., 2018) try to learn a value function which is then implicitly/explicitly used to learn a policy. (Li et al., 2023) developed a variant of Deep Deterministic Policy Gradient (DDPG) called PQL which splits data collection and learning into multiple processes and shows impressive performance on many benchmark tasks. We use PQL as one of our baselines to compare our method to off-policy RL in complex tasks. Although off-policy algorithms are much more data-efficient, they usually get lower asymptotic performance than on-policy policy gradients. This has inspired works to develop techniques to use off-policy data in on-policy methods. (Hastings, 1970) has been one of the major techniques used to realize this. Previous works (Degris et al., 2012; Wang et al., 2016; Espeholt et al., 2018; Fakoor et al., 2020) develop techniques to use off-policy data in on-policy",
394
+ "bbox": [
395
+ 495,
396
+ 618,
397
+ 888,
398
+ 906
399
+ ],
400
+ "page_idx": 1
401
+ },
402
+ {
403
+ "type": "header",
404
+ "text": "SAPG: Split and Aggregate Policy Gradients",
405
+ "bbox": [
406
+ 343,
407
+ 56,
408
+ 630,
409
+ 70
410
+ ],
411
+ "page_idx": 1
412
+ },
413
+ {
414
+ "type": "page_number",
415
+ "text": "2",
416
+ "bbox": [
417
+ 480,
418
+ 922,
419
+ 491,
420
+ 934
421
+ ],
422
+ "page_idx": 1
423
+ },
424
+ {
425
+ "type": "text",
426
+ "text": "algorithms using importance sampling-based updates along with features such as bias correction.",
427
+ "bbox": [
428
+ 84,
429
+ 85,
430
+ 473,
431
+ 116
432
+ ],
433
+ "page_idx": 2
434
+ },
435
+ {
436
+ "type": "text",
437
+ "text": "3. Preliminaries",
438
+ "text_level": 1,
439
+ "bbox": [
440
+ 86,
441
+ 133,
442
+ 225,
443
+ 150
444
+ ],
445
+ "page_idx": 2
446
+ },
447
+ {
448
+ "type": "text",
449
+ "text": "In this paper, we propose a modification to on-policy RL to achieve higher performance in the presence of large batch sizes. We build upon PPO, although our proposed ideas are generally applicable to any on-policy RL method.",
450
+ "bbox": [
451
+ 84,
452
+ 160,
453
+ 473,
454
+ 220
455
+ ],
456
+ "page_idx": 2
457
+ },
458
+ {
459
+ "type": "text",
460
+ "text": "On-policy RL Let $(S, \\mathcal{A}, \\mathcal{P}, r, \\rho, \\gamma)$ be an MDP where $S$ is the set of states, $\\mathcal{A}$ the set of actions, $\\mathcal{P}$ are transition probabilities, $r$ the reward function, $\\rho$ the initial distribution of states and $\\gamma$ the discount factor. The objective in reinforcement learning is to find a policy $\\pi(a|s)$ which maximises the long term discounted reward $\\mathcal{J}(\\pi) = \\mathbb{E}_{s_0 \\sim \\rho, a_t \\sim \\pi(\\cdot|s_t)}\\left[\\sum_{t=0}^{T-1} \\gamma^t r(s_t, a_t)\\right]$ .",
461
+ "bbox": [
462
+ 84,
463
+ 236,
464
+ 475,
465
+ 352
466
+ ],
467
+ "page_idx": 2
468
+ },
469
+ {
470
+ "type": "text",
471
+ "text": "Policy-gradient algorithms (Williams, 2004; Konda & Tsitsiklis, 1999; Schulman et al., 2015; Mnih et al., 2016) optimize the policy using gradient descent with Monte Carlo estimates of the gradient",
472
+ "bbox": [
473
+ 84,
474
+ 356,
475
+ 475,
476
+ 417
477
+ ],
478
+ "page_idx": 2
479
+ },
480
+ {
481
+ "type": "equation",
482
+ "text": "\n$$\n\\nabla_ {\\theta} J (\\pi_ {\\theta}) = \\underset {s \\sim \\rho_ {d}, a \\sim \\pi (\\cdot | s)} {\\mathbb {E}} \\left[ \\nabla_ {\\theta} \\log (\\pi_ {\\theta} (a)) \\hat {A} ^ {\\pi_ {\\theta}} (s, a) \\right] \\tag {1}\n$$\n",
483
+ "text_format": "latex",
484
+ "bbox": [
485
+ 96,
486
+ 426,
487
+ 473,
488
+ 457
489
+ ],
490
+ "page_idx": 2
491
+ },
492
+ {
493
+ "type": "text",
494
+ "text": "where $\\hat{A}^{\\pi_{\\theta}}(s,a)$ is an advantage function that estimates the contribution of the transition to the gradient. A common choice is $\\hat{A}^{\\pi_{\\theta}}(s,a) = \\hat{Q}^{\\pi_{\\theta}}(s,a) - \\hat{V}^{\\pi_{\\theta}}(s)$ , where $\\hat{Q}^{\\pi_{\\theta}}(s,a)$ , $\\hat{V}^{\\pi_{\\theta}}(s)$ are estimated $Q$ and value functions. This form of update is termed as an actor-critic update (Konda & Tsitsiklis, 1999). Since we want the gradient of the error with respect to the current policy, only data from the current policy (on-policy) data can be utilized.",
495
+ "bbox": [
496
+ 84,
497
+ 474,
498
+ 475,
499
+ 599
500
+ ],
501
+ "page_idx": 2
502
+ },
503
+ {
504
+ "type": "text",
505
+ "text": "PPO Actor critic updates can be quite unstable because gradient estimates are high variance and the loss landscape is complex. An update step that is too large can destroy policy performance. Proximal Policy Optimization (PPO) modifies Eq. 1 to restrict updates to remain within an approximate \"trust region\" where there is guaranteed improvement (Schulman et al., 2015; Kakade & Langford, 2002).",
506
+ "bbox": [
507
+ 84,
508
+ 613,
509
+ 475,
510
+ 720
511
+ ],
512
+ "page_idx": 2
513
+ },
514
+ {
515
+ "type": "equation",
516
+ "text": "\n$$\n\\begin{array}{l} L _ {o n} \\left(\\pi_ {\\theta}\\right) = \\underset {\\pi_ {o l d}} {\\mathbb {E}} \\left[ \\min \\left(r _ {t} \\left(\\pi_ {\\theta}\\right), \\right. \\right. \\tag {2} \\\\ \\operatorname {c l i p} \\left(r _ {t} (\\pi_ {\\theta}), 1 - \\epsilon , 1 + \\epsilon)\\right) A _ {t} ^ {\\pi_ {\\text {o l d}}} ] \\\\ \\end{array}\n$$\n",
517
+ "text_format": "latex",
518
+ "bbox": [
519
+ 138,
520
+ 748,
521
+ 473,
522
+ 792
523
+ ],
524
+ "page_idx": 2
525
+ },
526
+ {
527
+ "type": "text",
528
+ "text": "Here, $r_t(\\pi_\\theta) = \\frac{\\pi_\\theta(a_t|s_t)}{\\pi_{old}(a_t|s_t)}$ , $\\epsilon$ is a clipping hyperparameter and $\\pi_{old}$ is the policy collecting the on-policy data. The clipping operation ensures that the updated $\\pi$ stays close to $\\pi_{old}$ . Empirically, given large numbers of samples, PPO achieves high performance, is stable and robust to hyperparameters. However, it was developed for relatively small",
529
+ "bbox": [
530
+ 84,
531
+ 811,
532
+ 475,
533
+ 906
534
+ ],
535
+ "page_idx": 2
536
+ },
537
+ {
538
+ "type": "text",
539
+ "text": "batch sizes ( $\\approx 100$ parallel envs). We find that in the large-scale setting ( $>10k$ envs), it is suboptimal because many parallel envs are sampling nearly identical on-policy data.",
540
+ "bbox": [
541
+ 496,
542
+ 84,
543
+ 887,
544
+ 131
545
+ ],
546
+ "page_idx": 2
547
+ },
548
+ {
549
+ "type": "text",
550
+ "text": "4. Split and Aggregate Policy Gradients",
551
+ "text_level": 1,
552
+ "bbox": [
553
+ 496,
554
+ 148,
555
+ 831,
556
+ 167
557
+ ],
558
+ "page_idx": 2
559
+ },
560
+ {
561
+ "type": "text",
562
+ "text": "Policy gradient methods are highly sensitive to the variance in the estimate of gradient. Since CPU-based simulators typically run only 100s of environments in parallel, conventional wisdom is to simply sample on-policy data from a Gaussian policy in all the environments since as the number of datapoints increases, the Monte Carlo estimate becomes more accurate. However, this intuition no longer holds in the extremely large-scale data setting where we have hundreds of thousands of environments on GPU-accelerated simulators like IsaacGym. IID sampling from a Gaussian policy will lead to most actions lying near the mean, and most environments will execute similar actions, leading to wasted data (fig. 2).",
563
+ "bbox": [
564
+ 495,
565
+ 175,
566
+ 887,
567
+ 372
568
+ ],
569
+ "page_idx": 2
570
+ },
571
+ {
572
+ "type": "text",
573
+ "text": "We propose to efficiently use large numbers of $N$ environments using a divide-and-conquer setup. Our algorithm trains a variety of $M$ policies $\\pi_1, \\ldots, \\pi_M$ instead of having just one policy. However, simply training multiple policies by dividing environments between them is also inefficient. This is equivalent to training an algorithm with different seeds and choosing the best seed. One approach is to add hyperparameter mutation (Petrenko et al., 2023) to the policies and choosing the hyperparameters that perform the best among all of them. However, even in this case, all of the data from the \"worse\" policies goes to waste, and the only information gained is that some combinations of hyperparameters are bad, even though the policies themselves may have discovered high reward trajectories. We need to somehow aggregate data from multiple policies into a single update. We propose to do this via off-policy updates.",
574
+ "bbox": [
575
+ 495,
576
+ 378,
577
+ 888,
578
+ 622
579
+ ],
580
+ "page_idx": 2
581
+ },
582
+ {
583
+ "type": "text",
584
+ "text": "4.1. Aggregating data using off-policy updates",
585
+ "text_level": 1,
586
+ "bbox": [
587
+ 496,
588
+ 638,
589
+ 821,
590
+ 652
591
+ ],
592
+ "page_idx": 2
593
+ },
594
+ {
595
+ "type": "text",
596
+ "text": "One of the major drawbacks of on-policy RL is its inability to use data from past versions of the policy. One solution is to use importance sampling (Degris et al., 2012; Meng et al., 2023) to weight updates using data from different policies. In practice, this is not used since given limited compute it is beneficial to sample on-policy experience that is more directly relevant. However, this is no longer true in the large batch setting where enough on-policy data is available. In this case, it becomes advantageous to have multiple policies $\\pi_1, \\ldots, \\pi_M$ and use them to sample diverse data, even if it is off-policy. In particular, to update policy $\\pi_i$ using data from policy $\\pi_j$ , $j \\in \\mathcal{X}$ we use (Meng et al., 2023)",
597
+ "bbox": [
598
+ 495,
599
+ 660,
600
+ 887,
601
+ 843
602
+ ],
603
+ "page_idx": 2
604
+ },
605
+ {
606
+ "type": "equation",
607
+ "text": "\n$$\nL _ {o f f} \\left(\\pi_ {i}; \\mathcal {X}\\right) = \\frac {1}{| \\mathcal {X} |} \\sum_ {j \\in \\mathcal {X}} \\underset {(s, a) \\sim \\pi_ {j}} {\\mathbb {E}} \\left[ \\min \\left(r _ {\\pi_ {i}} (s, a), \\right. \\right. \\tag {3}\n$$\n",
608
+ "text_format": "latex",
609
+ "bbox": [
610
+ 514,
611
+ 851,
612
+ 885,
613
+ 888
614
+ ],
615
+ "page_idx": 2
616
+ },
617
+ {
618
+ "type": "equation",
619
+ "text": "\n$$\n\\operatorname {c l i p} \\left(r _ {\\pi_ {i}} (s, a), \\mu (1 - \\epsilon), \\mu (1 + \\epsilon))\\right) A ^ {\\pi_ {i, o l d}} (s, a) ]\n$$\n",
620
+ "text_format": "latex",
621
+ "bbox": [
622
+ 522,
623
+ 891,
624
+ 849,
625
+ 909
626
+ ],
627
+ "page_idx": 2
628
+ },
629
+ {
630
+ "type": "header",
631
+ "text": "SAPG: Split and Aggregate Policy Gradients",
632
+ "bbox": [
633
+ 343,
634
+ 56,
635
+ 630,
636
+ 71
637
+ ],
638
+ "page_idx": 2
639
+ },
640
+ {
641
+ "type": "page_number",
642
+ "text": "3",
643
+ "bbox": [
644
+ 480,
645
+ 922,
646
+ 491,
647
+ 934
648
+ ],
649
+ "page_idx": 2
650
+ },
651
+ {
652
+ "type": "image",
653
+ "img_path": "images/5cebd23bf812b26cb226ed2855d560c362c1ceb2932f1dec0fb6191d47f2007f.jpg",
654
+ "image_caption": [
655
+ "Figure 3. We illustrate one particular variant of SAPG which performs well. There is one leader and $M - 1$ followers ( $M = 3$ in figure). Each policy has the same backbone with shared parameters $B_{\\theta}$ but is conditioned on local learned parameters $\\phi_i$ . Each policy gets a block of $\\frac{N}{M}$ environments to run. The leader is updated with its on-policy data as well as importance-sampled off-policy data from the followers. Each of the followers only uses their own data for on-policy updates."
656
+ ],
657
+ "image_footnote": [],
658
+ "bbox": [
659
+ 86,
660
+ 80,
661
+ 890,
662
+ 314
663
+ ],
664
+ "page_idx": 3
665
+ },
666
+ {
667
+ "type": "text",
668
+ "text": "where $r_{\\pi_i}(s,a) = \\frac{\\pi_i(s,a)}{\\pi_j(s,a)}$ and $\\mu$ is an off-policy correction term $\\mu = \\frac{\\pi_{i,old}(s,a)}{\\pi_j(s,a)}$ . Note that when $i = j$ , then $\\pi_j = \\pi_{i,old}$ and this reduces to the on-policy update as expected. This is then scaled and combined with the on-policy term (eq. 2)",
669
+ "bbox": [
670
+ 84,
671
+ 398,
672
+ 475,
673
+ 470
674
+ ],
675
+ "page_idx": 3
676
+ },
677
+ {
678
+ "type": "equation",
679
+ "text": "\n$$\nL \\left(\\pi_ {i}\\right) = L _ {o n} \\left(\\pi_ {i}\\right) + \\lambda \\cdot L _ {o f f} \\left(\\pi_ {i}; \\mathcal {X}\\right) \\tag {4}\n$$\n",
680
+ "text_format": "latex",
681
+ "bbox": [
682
+ 158,
683
+ 483,
684
+ 475,
685
+ 501
686
+ ],
687
+ "page_idx": 3
688
+ },
689
+ {
690
+ "type": "text",
691
+ "text": "The update target for the critic is calculated using $n$ -step returns (here $n = 3$ ).",
692
+ "bbox": [
693
+ 84,
694
+ 513,
695
+ 473,
696
+ 545
697
+ ],
698
+ "page_idx": 3
699
+ },
700
+ {
701
+ "type": "equation",
702
+ "text": "\n$$\nV _ {o n, \\pi_ {j}} ^ {\\text {t a r g e t}} (s _ {t}) = \\sum_ {k = t} ^ {t + 2} \\gamma^ {k - t} r _ {k} + \\gamma^ {3} V _ {\\pi_ {j}, o l d} (s _ {t + 3}) \\tag {5}\n$$\n",
703
+ "text_format": "latex",
704
+ "bbox": [
705
+ 129,
706
+ 558,
707
+ 475,
708
+ 599
709
+ ],
710
+ "page_idx": 3
711
+ },
712
+ {
713
+ "type": "text",
714
+ "text": "However, this is not possible for off-policy data. Instead, we assume that an off-policy transition can be used to approximate a 1-step return. The target equations are as follows",
715
+ "bbox": [
716
+ 84,
717
+ 613,
718
+ 475,
719
+ 659
720
+ ],
721
+ "page_idx": 3
722
+ },
723
+ {
724
+ "type": "equation",
725
+ "text": "\n$$\nV _ {o f f, \\pi_ {j}} ^ {\\text {t a r g e t}} \\left(s _ {t} ^ {\\prime}\\right) = r _ {t} + \\gamma V _ {\\pi_ {j}, o l d} \\left(s _ {t + 1} ^ {\\prime}\\right) \\tag {6}\n$$\n",
726
+ "text_format": "latex",
727
+ "bbox": [
728
+ 163,
729
+ 675,
730
+ 473,
731
+ 696
732
+ ],
733
+ "page_idx": 3
734
+ },
735
+ {
736
+ "type": "text",
737
+ "text": "The critic loss is then",
738
+ "bbox": [
739
+ 84,
740
+ 704,
741
+ 230,
742
+ 718
743
+ ],
744
+ "page_idx": 3
745
+ },
746
+ {
747
+ "type": "equation",
748
+ "text": "\n$$\nL _ {o n} ^ {\\text {c r i t i c}} \\left(\\pi_ {i}\\right) = \\underset {(s, a) \\sim \\pi_ {i}} {\\mathbb {E}} \\left[ \\left(V _ {\\pi_ {i}} (s) - V _ {o n, \\pi_ {i}} ^ {\\text {t a r g e t}} (s)\\right) ^ {2} \\right] \\tag {7}\n$$\n",
749
+ "text_format": "latex",
750
+ "bbox": [
751
+ 109,
752
+ 732,
753
+ 473,
754
+ 760
755
+ ],
756
+ "page_idx": 3
757
+ },
758
+ {
759
+ "type": "equation",
760
+ "text": "\n$$\nL _ {o f f} ^ {\\text {c r i t i c}} \\left(\\pi_ {i}; \\mathcal {X}\\right) = \\frac {1}{| \\mathcal {X} |} \\sum_ {j \\in \\mathcal {X}} \\underset {(s, a) \\sim \\pi_ {j}} {\\mathbb {E}} \\left[ \\left(V _ {\\pi_ {i}} (s) - V _ {o f f, \\pi_ {i}} ^ {\\text {t a r g e t}} (s)\\right) ^ {2} \\right] \\tag {8}\n$$\n",
761
+ "text_format": "latex",
762
+ "bbox": [
763
+ 84,
764
+ 779,
765
+ 483,
766
+ 829
767
+ ],
768
+ "page_idx": 3
769
+ },
770
+ {
771
+ "type": "equation",
772
+ "text": "\n$$\nL ^ {\\text {c r i t i c}} \\left(\\pi_ {i}\\right) = L _ {\\text {o n}} ^ {\\text {c r i t i c}} \\left(\\pi_ {i}\\right) + \\lambda \\cdot L _ {\\text {o f f}} ^ {\\text {c r i t i c}} \\left(\\pi_ {i}\\right) \\tag {9}\n$$\n",
773
+ "text_format": "latex",
774
+ "bbox": [
775
+ 138,
776
+ 830,
777
+ 473,
778
+ 849
779
+ ],
780
+ "page_idx": 3
781
+ },
782
+ {
783
+ "type": "text",
784
+ "text": "Given this update scheme, we must now choose a suitable $\\mathcal{X} \\subseteq \\{1, \\ldots, M\\}$ and the set of $i$ s to update, along with the correct ratio $\\lambda$ . We explore several variants below.",
785
+ "bbox": [
786
+ 84,
787
+ 859,
788
+ 475,
789
+ 905
790
+ ],
791
+ "page_idx": 3
792
+ },
793
+ {
794
+ "type": "text",
795
+ "text": "4.2. Symmetric aggregation",
796
+ "text_level": 1,
797
+ "bbox": [
798
+ 496,
799
+ 400,
800
+ 694,
801
+ 416
802
+ ],
803
+ "page_idx": 3
804
+ },
805
+ {
806
+ "type": "text",
807
+ "text": "A simple choice is to update all $i' s$ with the data from all policies. In this case, we choose to update each policy $i \\in \\{1, 2, \\dots, M\\}$ and for each $i$ use off-policy data from all other policies $\\mathcal{X} = \\{1, 2, i - 1, i + 1, \\dots, M\\}$ . Since gradients from off-policy data are typically noisier than gradients from on-policy data, we choose $\\lambda = 1$ , but subsample the off-policy data such that we use equal amounts of on-policy and off-policy data.",
808
+ "bbox": [
809
+ 496,
810
+ 422,
811
+ 887,
812
+ 546
813
+ ],
814
+ "page_idx": 3
815
+ },
816
+ {
817
+ "type": "text",
818
+ "text": "4.3. Leader-follower aggregation",
819
+ "text_level": 1,
820
+ "bbox": [
821
+ 496,
822
+ 561,
823
+ 730,
824
+ 575
825
+ ],
826
+ "page_idx": 3
827
+ },
828
+ {
829
+ "type": "text",
830
+ "text": "While the above choice prevents data wastage, since all the policies are updated with the same data, it can lead to policies converging in behavior, reducing data diversity and defeating the purpose of having separate policies. To resolve this, we break symmetry by designating a \"leader\" policy $i = 1$ which gets data from all other policies $\\mathcal{X} = \\{2,3,\\dots,M\\}$ while the rest are \"followers\" and only use their own on-policy data for updates $\\mathcal{X} = \\phi$ . As before, we choose $\\lambda = 1$ , but subsample the off-policy data for the leader such that we use equal amounts of on-policy and off-policy data in a mini-batch update.",
831
+ "bbox": [
832
+ 495,
833
+ 584,
834
+ 888,
835
+ 752
836
+ ],
837
+ "page_idx": 3
838
+ },
839
+ {
840
+ "type": "text",
841
+ "text": "4.4. Encouraging diversity via latent conditioning",
842
+ "text_level": 1,
843
+ "bbox": [
844
+ 496,
845
+ 767,
846
+ 846,
847
+ 782
848
+ ],
849
+ "page_idx": 3
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "What is the right parameterization for this set of policies? One simple choice is to have a disjoint set of parameters for each with no sharing at all. However, this implies that each follower policy has no knowledge of any other policy whatsoever and may get stuck in a bad local optimum. We mitigate this by having a shared backbone $B_{\\theta}$ for each policy conditioned on hanging parameters $\\phi_j$ local to each",
854
+ "bbox": [
855
+ 495,
856
+ 790,
857
+ 888,
858
+ 898
859
+ ],
860
+ "page_idx": 3
861
+ },
862
+ {
863
+ "type": "header",
864
+ "text": "SAPG: Split and Aggregate Policy Gradients",
865
+ "bbox": [
866
+ 343,
867
+ 56,
868
+ 630,
869
+ 70
870
+ ],
871
+ "page_idx": 3
872
+ },
873
+ {
874
+ "type": "page_number",
875
+ "text": "4",
876
+ "bbox": [
877
+ 480,
878
+ 922,
879
+ 491,
880
+ 934
881
+ ],
882
+ "page_idx": 3
883
+ },
884
+ {
885
+ "type": "image",
886
+ "img_path": "images/e4d34a3bf6dd21e14a99efee58a1e5d8f2fc32bc3bbb5e00cd6c0c6baafb16a3.jpg",
887
+ "image_caption": [
888
+ "Figure 4. Two data aggregation schemes we consider in this paper. (Left) one policy is a leader and uses data from each of the followers (Right) a symmetric scheme where each policy uses data from all others. In each case, the policy also uses its own on-policy data."
889
+ ],
890
+ "image_footnote": [],
891
+ "bbox": [
892
+ 89,
893
+ 80,
894
+ 472,
895
+ 215
896
+ ],
897
+ "page_idx": 4
898
+ },
899
+ {
900
+ "type": "text",
901
+ "text": "policy. Similarly, the critic consists of a shared backbone $C_{\\psi}$ conditioned on parameters $\\phi_j$ . The parameters $\\psi, \\theta$ are shared across the leader and all followers and updated with gradients from each objective, while the parameters $\\phi_j$ are only updated with the objective for that particular policy. We choose $\\phi_j \\in \\mathbb{R}^{32}$ for complex environments while $\\phi_j \\in \\mathbb{R}^{16}$ for the relatively simpler ones.",
902
+ "bbox": [
903
+ 84,
904
+ 296,
905
+ 475,
906
+ 402
907
+ ],
908
+ "page_idx": 4
909
+ },
910
+ {
911
+ "type": "text",
912
+ "text": "4.5. Enforcing diversity through entropy regularization",
913
+ "text_level": 1,
914
+ "bbox": [
915
+ 84,
916
+ 419,
917
+ 473,
918
+ 434
919
+ ],
920
+ "page_idx": 4
921
+ },
922
+ {
923
+ "type": "text",
924
+ "text": "To further encourage diversity between different policies, in addition to the PPO update loss $L_{on}$ we add an entropy loss to each of the followers with different coefficients. In particular, the entropy loss is $\\mathcal{H}(\\pi(a|s))$ . The overall loss for the policy $i$ (or the $(i-1)$ th) follower is $L(\\pi_i) = L_{on}(\\pi_i) + \\sigma(i-1) \\cdot \\mathcal{H}(\\pi(a|s))$ . The leader doesn't have any entropy loss. Different scales of coefficients produce policies with different explore-exploit tradeoffs. Followers with large entropy losses tend to explore more actions even if they are suboptimal, while those with small coefficients stay close to optimal trajectories and refine them. This leads to a large data coverage with a good mix of optimal as well as diverse trajectories. We treat $\\sigma$ as a hyperparameter.",
925
+ "bbox": [
926
+ 84,
927
+ 441,
928
+ 475,
929
+ 638
930
+ ],
931
+ "page_idx": 4
932
+ },
933
+ {
934
+ "type": "text",
935
+ "text": "4.6. Algorithm: SAPG",
936
+ "text_level": 1,
937
+ "bbox": [
938
+ 84,
939
+ 655,
940
+ 245,
941
+ 670
942
+ ],
943
+ "page_idx": 4
944
+ },
945
+ {
946
+ "type": "text",
947
+ "text": "We roll out $M$ different policies and collect data $\\mathcal{D}_1, \\ldots, \\mathcal{D}_M$ for each. Follower policies $2, \\ldots, M$ are updated using the usual PPO objective with minibatch gradient descent on their respective datasets. However, we augment the dataset of the leader $\\mathcal{D}_1$ with data from $\\mathcal{D}_2, \\ldots, \\mathcal{D}_M$ , weighed by the importance weight $\\mu$ . The leader is then updated by minibatch gradient descent as well.",
948
+ "bbox": [
949
+ 84,
950
+ 678,
951
+ 475,
952
+ 784
953
+ ],
954
+ "page_idx": 4
955
+ },
956
+ {
957
+ "type": "text",
958
+ "text": "5. Experimental Setup",
959
+ "text_level": 1,
960
+ "bbox": [
961
+ 84,
962
+ 804,
963
+ 277,
964
+ 821
965
+ ],
966
+ "page_idx": 4
967
+ },
968
+ {
969
+ "type": "text",
970
+ "text": "We conduct experiments on 5 manipulation tasks (3 hard and 2 easy) and compare them against SOTA methods for the large-scale parallelized setting. We use a GPU-accelerated simulator, IsaacGym (Makoviychuk et al., 2021) which allows simulating tens of thousands of environments in par",
971
+ "bbox": [
972
+ 84,
973
+ 829,
974
+ 475,
975
+ 905
976
+ ],
977
+ "page_idx": 4
978
+ },
979
+ {
980
+ "type": "text",
981
+ "text": "Algorithm 1 SAPG",
982
+ "text_level": 1,
983
+ "bbox": [
984
+ 498,
985
+ 84,
986
+ 633,
987
+ 99
988
+ ],
989
+ "page_idx": 4
990
+ },
991
+ {
992
+ "type": "code",
993
+ "sub_type": "algorithm",
994
+ "code_caption": [],
995
+ "code_body": "Initialize shared parameters $\\theta, \\psi$ \nFor $i \\in \\{1, \\dots, M\\}$ initialize parameters $\\phi_i$ \nInitialize $N$ environments $E_1, \\dots, E_N$ . \nInitialize data buffers for each policy $\\mathcal{D}_1, \\dots, \\mathcal{D}_M$ . \nfor $i = 1, 2, \\dots, \\mathbf{do}$ \nfor $j = 1, 2, \\dots, M$ do \n $\\mathcal{D}_j \\gets \\text{COLLECTDATA}(E_{j\\frac{N}{M}:(j+1)\\frac{N}{M}}, \\theta, \\psi_j)$ \nend for \n $L \\gets 0$ \nSample $|\\mathcal{D}_1|$ transitions from $\\cup_{j=2}^M \\mathcal{D}_i$ to get $\\mathcal{D}_1'$ . \n $L \\gets L + \\text{OFFPOLICYLOSS}(\\mathcal{D}_1')$ $L \\gets L + \\text{ONPOLICYLOSS}(\\mathcal{D}_1)$ \nfor $j = 2, \\dots, M$ do \n $L \\gets L + \\text{ONPOLICYLOSS}(\\mathcal{D}_j)$ \nend for \nUpdate $\\theta \\gets \\theta - \\eta \\nabla_\\theta L$ \nUpdate $\\psi \\gets \\psi - \\eta \\nabla_\\psi L$ \nend for=0",
996
+ "bbox": [
997
+ 511,
998
+ 103,
999
+ 851,
1000
+ 375
1001
+ ],
1002
+ "page_idx": 4
1003
+ },
1004
+ {
1005
+ "type": "text",
1006
+ "text": "allele on a single GPU. In our experiments, we focus on the large-scale setting and simulate 24576 parallel environments unless otherwise specified. Note that this is two orders of magnitude larger than the number of environments PPO was developed on (Schulman et al., 2017), and we indeed find that vanilla PPO does not scale to this setting.",
1007
+ "bbox": [
1008
+ 496,
1009
+ 404,
1010
+ 885,
1011
+ 494
1012
+ ],
1013
+ "page_idx": 4
1014
+ },
1015
+ {
1016
+ "type": "text",
1017
+ "text": "For testing, we choose a suite of manipulation environments that are challenging and require large-scale data to learn effective policies (Petrenko et al., 2023). In particular, these consist of dexterous hands mounted on arms leading to high numbers of degrees of freedom (up to 23). This is challenging because sample complexity scales exponentially with degrees of freedom. They are under-actuated and involve manipulating free objects in certain ways while under the influence of gravity. This leads to complex, non-linear interactions between the agent and the environment such as contacts between robot and object, object and table, and robot and table. Overall, this implies that to learn effective policies an agent must collect a large amount of relevant experience and also use it efficiently for learning.",
1018
+ "bbox": [
1019
+ 495,
1020
+ 502,
1021
+ 887,
1022
+ 714
1023
+ ],
1024
+ "page_idx": 4
1025
+ },
1026
+ {
1027
+ "type": "text",
1028
+ "text": "5.1. Tasks",
1029
+ "text_level": 1,
1030
+ "bbox": [
1031
+ 496,
1032
+ 729,
1033
+ 570,
1034
+ 743
1035
+ ],
1036
+ "page_idx": 4
1037
+ },
1038
+ {
1039
+ "type": "text",
1040
+ "text": "We consider a total of 5 tasks grouped into two parts: Three hard tasks and two easy tasks. Hard and easy is defined by the success reward achieved by off-policy (in particular, PQL) methods in these environments. In easy environments, even Q-learning-based off-policy methods can obtain nonzero performance but not in hard tasks. See appendix sec. A.",
1041
+ "bbox": [
1042
+ 495,
1043
+ 753,
1044
+ 887,
1045
+ 844
1046
+ ],
1047
+ "page_idx": 4
1048
+ },
1049
+ {
1050
+ "type": "text",
1051
+ "text": "Hard Difficulty Tasks All three hard tasks are based on the Allegro-Kuka environments(Petrenko et al., 2023). These consist of an Allegro Hand (16 DoF) mounted on",
1052
+ "bbox": [
1053
+ 496,
1054
+ 859,
1055
+ 887,
1056
+ 905
1057
+ ],
1058
+ "page_idx": 4
1059
+ },
1060
+ {
1061
+ "type": "header",
1062
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1063
+ "bbox": [
1064
+ 343,
1065
+ 56,
1066
+ 630,
1067
+ 70
1068
+ ],
1069
+ "page_idx": 4
1070
+ },
1071
+ {
1072
+ "type": "page_number",
1073
+ "text": "5",
1074
+ "bbox": [
1075
+ 480,
1076
+ 922,
1077
+ 491,
1078
+ 934
1079
+ ],
1080
+ "page_idx": 4
1081
+ },
1082
+ {
1083
+ "type": "text",
1084
+ "text": "a Kuka arm (7 dof). The performance of the agent in the above three tasks is measured by the successes metric which is defined as the number of successes in a single episode. Three tasks include:",
1085
+ "bbox": [
1086
+ 84,
1087
+ 84,
1088
+ 475,
1089
+ 145
1090
+ ],
1091
+ "page_idx": 5
1092
+ },
1093
+ {
1094
+ "type": "list",
1095
+ "sub_type": "text",
1096
+ "list_items": [
1097
+ "- Regrasping: The object must be lifted from the table and held near a goal position $\\mathbf{g}_t \\in \\mathbb{R}^3$ for $K = 30$ steps. This is called a \"success\". The target position and object position are reset to a random location after every success.",
1098
+ "- Throw: The object must be lifted from the table and thrown into a bucket at $\\mathbf{g}_t \\in \\mathbb{R}^3$ placed out of reach of the arm. The bucket and the object position are reset randomly after every successful attempt.",
1099
+ "- Reorientation: Pick up the object and reorient it to a particular target pose $\\mathbf{g}_{\\mathbf{t}} \\in \\mathbb{R}^{7}$ (position + orientation). The target pose is reset once the agent succeeds. This means that the agents needs to reorient the object in different poses in succession, which may sometimes entail placing the objects on the table and lifting it up in a different way."
1100
+ ],
1101
+ "bbox": [
1102
+ 84,
1103
+ 151,
1104
+ 473,
1105
+ 362
1106
+ ],
1107
+ "page_idx": 5
1108
+ },
1109
+ {
1110
+ "type": "text",
1111
+ "text": "Easy Difficulty Tasks: In addition, we test on the following dexterous hand tasks. As before, the observation space consists of the joint angles and velocities $\\mathbf{q}_t$ , $\\dot{\\mathbf{q}}_t$ , object pose $\\mathbf{x}_t$ and velocities $\\mathbf{v}_t, \\omega_t$ .",
1112
+ "bbox": [
1113
+ 84,
1114
+ 383,
1115
+ 473,
1116
+ 445
1117
+ ],
1118
+ "page_idx": 5
1119
+ },
1120
+ {
1121
+ "type": "list",
1122
+ "sub_type": "text",
1123
+ "list_items": [
1124
+ "- Shadow Hand: We test in-hand reorientation task of a cube using the 24-DoF Shadow Hand.",
1125
+ "- Allegro Hand: This is the same as the previous in-hand reorientation task but with the 16-DoF Allegro Hand."
1126
+ ],
1127
+ "bbox": [
1128
+ 84,
1129
+ 450,
1130
+ 472,
1131
+ 511
1132
+ ],
1133
+ "page_idx": 5
1134
+ },
1135
+ {
1136
+ "type": "text",
1137
+ "text": "5.2. Baselines",
1138
+ "text_level": 1,
1139
+ "bbox": [
1140
+ 84,
1141
+ 527,
1142
+ 184,
1143
+ 542
1144
+ ],
1145
+ "page_idx": 5
1146
+ },
1147
+ {
1148
+ "type": "text",
1149
+ "text": "We test against state-of-the-art RL methods designed for the GPU-accelerated large-scale setting we consider in this paper. We compare against both on-policy (Petrenko et al., 2023) and off-policy (Li et al., 2023) variants as well as vanilla PPO (Schulman et al., 2017).",
1150
+ "bbox": [
1151
+ 84,
1152
+ 551,
1153
+ 473,
1154
+ 628
1155
+ ],
1156
+ "page_idx": 5
1157
+ },
1158
+ {
1159
+ "type": "list",
1160
+ "sub_type": "text",
1161
+ "list_items": [
1162
+ "- PPO (Proximal Policy Optimization) (Schulman et al., 2017): In our setting, we just increase the data throughput for PPO by increasing the batch size proportionately to the number of environments. In particular, we see over two orders of magnitude increase in the number of environments (from 128 to 24576).",
1163
+ "- **Parallel Q-Learning** (Li et al., 2023) A parallelized version of DDPG with different mixed exploration i.e. varying exploration noise across environments to further aid exploration. We use this baseline to compare if off-policy methods can outperform on-policy methods when the data collection capacity is high.",
1164
+ "- DexPBT (Petrenko et al., 2023) A framework that combines population-based training with PPO. $N$ Environments are divided into $M$ groups, each containing $\\frac{N}{M}$ environments. $M$ separate policies are trained using PPO in each group of environments with different hyperparameters. At regular intervals, the worst-performing policies"
1165
+ ],
1166
+ "bbox": [
1167
+ 84,
1168
+ 633,
1169
+ 473,
1170
+ 905
1171
+ ],
1172
+ "page_idx": 5
1173
+ },
1174
+ {
1175
+ "type": "text",
1176
+ "text": "are replaced with the weights of best-performing policies and their hyperparameters are mutated randomly.",
1177
+ "bbox": [
1178
+ 509,
1179
+ 84,
1180
+ 883,
1181
+ 114
1182
+ ],
1183
+ "page_idx": 5
1184
+ },
1185
+ {
1186
+ "type": "text",
1187
+ "text": "Due to the complexity of these tasks, experiments take about 48-60 hours on a single GPU, collecting $\\approx 2\\mathrm{e}10$ transitions. Since we run experiments on different machines, the wall clock time is not directly comparable and we compare runs against the number of samples collected. We run 5 seeds for each experiment and report the mean and standard error in the plots. In each plot, the solid line is $y(t) = \\frac{1}{n}\\sum_{i}y_{i}(t)$ while the width of the shaded region is determined by standard error $\\frac{2}{\\sqrt{n}}\\sum_{i}(y(t) - y_{i}(t))^{2}$ .",
1188
+ "bbox": [
1189
+ 496,
1190
+ 119,
1191
+ 887,
1192
+ 261
1193
+ ],
1194
+ "page_idx": 5
1195
+ },
1196
+ {
1197
+ "type": "text",
1198
+ "text": "For each task, we use $M = 6$ policies for our method and DexPBT in a total of $N = 24576$ environments for each method. We use the dimension of learned parameter $\\phi_j \\in \\mathbb{R}^{32}$ for the AllegroKuka tasks while we use $\\phi_j \\in \\mathbb{R}^{16}$ for the ShadowHand and AllegroHand tasks since they are relatively simpler. We use a recurrent policy for the AllegroKuka tasks and an MLP policy for the Shadow Hand and Allegro Hand tasks and use PPO to train them. We collect 16 steps of experience per instance of the environment before every PPO update step. For SAPG, we tune the entropy coefficient $\\sigma$ by choosing the best from a small set $\\{0, 0.003, 0.005\\}$ for each environment. We find that $\\sigma = 0$ works best for all ShadowHand, AllegroHand, Regrasping, and Throw while $\\sigma = 0.005$ works better for Reorientation.",
1199
+ "bbox": [
1200
+ 496,
1201
+ 266,
1202
+ 888,
1203
+ 477
1204
+ ],
1205
+ "page_idx": 5
1206
+ },
1207
+ {
1208
+ "type": "text",
1209
+ "text": "6. Results and Analysis",
1210
+ "text_level": 1,
1211
+ "bbox": [
1212
+ 496,
1213
+ 512,
1214
+ 694,
1215
+ 529
1216
+ ],
1217
+ "page_idx": 5
1218
+ },
1219
+ {
1220
+ "type": "text",
1221
+ "text": "In the large-scale data setting, we are primarily concerned with optimality while sample-efficiency and wall-clock time are secondary concerns. This is because data is readily available—one only needs to spin up more GPUs, what is really important is how well our agent performs in the downstream tasks. Indeed, this aligns with how practitioners use RL algorithms in practice (Agarwal et al., 2022; Cheng et al., 2023; OpenAI et al., 2018), where agents are trained with lots of domain randomization in large simulations and the primary concern is how well the agent can adapt and learn in these environments since this directly translates to real-world performance.",
1222
+ "bbox": [
1223
+ 495,
1224
+ 537,
1225
+ 885,
1226
+ 719
1227
+ ],
1228
+ "page_idx": 5
1229
+ },
1230
+ {
1231
+ "type": "text",
1232
+ "text": "6.1. AllegroKuka tasks",
1233
+ "text_level": 1,
1234
+ "bbox": [
1235
+ 496,
1236
+ 736,
1237
+ 661,
1238
+ 750
1239
+ ],
1240
+ "page_idx": 5
1241
+ },
1242
+ {
1243
+ "type": "text",
1244
+ "text": "The AllegroKuka tasks (Throw, Regrasping, and Reorientation) are hard due to large degrees of freedom. The environment also offers the possibility of many emergent strategies such as using the table to reorient the cube, or using gravity to reorient the cube. Therefore, a large amount of data is required to attain good performance on these tasks. Following Petrenko et al. (2023) we use the number of successes as a performance metric on these tasks. Note that the DexPBT baseline directly optimizes for success by mutating the re",
1245
+ "bbox": [
1246
+ 495,
1247
+ 758,
1248
+ 887,
1249
+ 896
1250
+ ],
1251
+ "page_idx": 5
1252
+ },
1253
+ {
1254
+ "type": "header",
1255
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1256
+ "bbox": [
1257
+ 343,
1258
+ 56,
1259
+ 630,
1260
+ 71
1261
+ ],
1262
+ "page_idx": 5
1263
+ },
1264
+ {
1265
+ "type": "page_number",
1266
+ "text": "6",
1267
+ "bbox": [
1268
+ 480,
1269
+ 922,
1270
+ 491,
1271
+ 934
1272
+ ],
1273
+ "page_idx": 5
1274
+ },
1275
+ {
1276
+ "type": "image",
1277
+ "img_path": "images/b110e4d6084b60ee3f9b087413b3ffe5a44191decc4e437450835ccf4e4d409c.jpg",
1278
+ "image_caption": [],
1279
+ "image_footnote": [],
1280
+ "bbox": [
1281
+ 89,
1282
+ 82,
1283
+ 344,
1284
+ 210
1285
+ ],
1286
+ "page_idx": 6
1287
+ },
1288
+ {
1289
+ "type": "image",
1290
+ "img_path": "images/a93706e05f5ef8d25209a1a2fcacf302e049eaf2827c609e0934fa2d774d5fad.jpg",
1291
+ "image_caption": [],
1292
+ "image_footnote": [],
1293
+ "bbox": [
1294
+ 359,
1295
+ 82,
1296
+ 612,
1297
+ 210
1298
+ ],
1299
+ "page_idx": 6
1300
+ },
1301
+ {
1302
+ "type": "image",
1303
+ "img_path": "images/5d04acfb2bc908cbaa02a131bfcf3d8e9e31a46b130acc054e7ddce5813110a3.jpg",
1304
+ "image_caption": [],
1305
+ "image_footnote": [],
1306
+ "bbox": [
1307
+ 629,
1308
+ 82,
1309
+ 883,
1310
+ 210
1311
+ ],
1312
+ "page_idx": 6
1313
+ },
1314
+ {
1315
+ "type": "image",
1316
+ "img_path": "images/7396656c6183050ec8e763e1eabfc474cba92c045134e81321790cb95783a839.jpg",
1317
+ "image_caption": [],
1318
+ "image_footnote": [],
1319
+ "bbox": [
1320
+ 205,
1321
+ 212,
1322
+ 473,
1323
+ 339
1324
+ ],
1325
+ "page_idx": 6
1326
+ },
1327
+ {
1328
+ "type": "image",
1329
+ "img_path": "images/ff17e4a10a71b3ef6e9aea8bf9dda69aeb568dcb6b610fbb64114582653190b9.jpg",
1330
+ "image_caption": [],
1331
+ "image_footnote": [],
1332
+ "bbox": [
1333
+ 478,
1334
+ 212,
1335
+ 748,
1336
+ 339
1337
+ ],
1338
+ "page_idx": 6
1339
+ },
1340
+ {
1341
+ "type": "image",
1342
+ "img_path": "images/5a4b040336a30f4995220d2a3d55da24573d54a09bd67cbf9125807894a37ef6.jpg",
1343
+ "image_caption": [
1344
+ "Figure 5. Performance curves of SAPG with respect to PPO, PBT and PQL baselines. On AllegroKuka tasks, PPO and PQL barely make progress and SAPG beats PBT. On Shadow Hand and Allegro Kuka Reorientation, SAPG performs best with an entropy coefficient of 0.005 while the coefficient is 0 for other environments. On ShadowHand and AllegroHand, while PQL is initially more sample efficient, SAPG is more performant in the longer run. AllegroKuka environments use successes as a performance metric while AllegroHand and ShadowHand use episode rewards."
1345
+ ],
1346
+ "image_footnote": [],
1347
+ "bbox": [
1348
+ 315,
1349
+ 348,
1350
+ 656,
1351
+ 369
1352
+ ],
1353
+ "page_idx": 6
1354
+ },
1355
+ {
1356
+ "type": "table",
1357
+ "img_path": "images/7b692dd47eb1ab5d1dc1fb1c8d519925315657e4bb66e193164c48bd9fe73081.jpg",
1358
+ "table_caption": [],
1359
+ "table_footnote": [],
1360
+ "table_body": "<table><tr><td>ALGORITHM</td><td>ALLEGROHAND</td><td>SHADOWHAND</td><td>REGRASPING</td><td>THROW</td><td>REORIENTATION</td></tr><tr><td>PPO (SCHULMAN ET AL., 2017)</td><td>1.01e4±6.31e2</td><td>1.07e4±4.90e2</td><td>1.25 ± 1.15</td><td>16.8 ± 0.48</td><td>2.85 ± 0.05</td></tr><tr><td>PBT (PETRENKO ET AL., 2023)</td><td>7.28e3±1.24e3</td><td>1.01e4±1.80e2</td><td>31.9 ± 2.26</td><td>19.2 ± 1.07</td><td>23.2 ± 4.86</td></tr><tr><td>PQL (LI ET AL., 2023)</td><td>1.01e4±5.28e2</td><td>1.28e4±1.25e2</td><td>2.73 ± 0.02</td><td>2.62 ± 0.08</td><td>1.66 ± 0.11</td></tr><tr><td>SAPG (OURS, COEF=0)</td><td>1.23e4 ± 3.29e2</td><td>1.17e4±2.64e2</td><td>35.7 ± 1.46</td><td>23.7 ± 0.74</td><td>33.2 ± 4.20</td></tr><tr><td>SAPG (OURS, COEF=0.005)</td><td>9.14e3±8.38e2</td><td>1.28e4 ± 2.80e2</td><td>33.4 ± 2.25</td><td>18.7 ± 0.43</td><td>38.6 ± 0.63</td></tr></table>",
1361
+ "bbox": [
1362
+ 86,
1363
+ 467,
1364
+ 888,
1365
+ 569
1366
+ ],
1367
+ "page_idx": 6
1368
+ },
1369
+ {
1370
+ "type": "text",
1371
+ "text": "Table 1. Performance after 2e10 samples for different methods with standard error. This is measured by successes for the AllegroKuka tasks and by episode rewards for in-hand reorientation tasks. Across environments, we find that our method performs better than baselines.",
1372
+ "bbox": [
1373
+ 83,
1374
+ 577,
1375
+ 888,
1376
+ 606
1377
+ ],
1378
+ "page_idx": 6
1379
+ },
1380
+ {
1381
+ "type": "text",
1382
+ "text": "ward scales to achieve higher success rate, whereas our method can only optimize a fixed reward function. Despite this, we see that SAPG achieves a $12 - 66\\%$ higher success rate than DexPBT on regrasping, throw and reorientation. SAPG performs $66\\%$ better than PBT on the challenging reorientation task. Note that vanilla PPO and PQL are unable to learn any useful behaviors on these hard tasks.",
1383
+ "bbox": [
1384
+ 84,
1385
+ 630,
1386
+ 475,
1387
+ 737
1388
+ ],
1389
+ "page_idx": 6
1390
+ },
1391
+ {
1392
+ "type": "text",
1393
+ "text": "6.2. In-hand reorientation",
1394
+ "text_level": 1,
1395
+ "bbox": [
1396
+ 84,
1397
+ 752,
1398
+ 272,
1399
+ 767
1400
+ ],
1401
+ "page_idx": 6
1402
+ },
1403
+ {
1404
+ "type": "text",
1405
+ "text": "The AllegroHand and ShadowHand reorientation tasks from Li et al. (2023) are comparatively easier since they have lower degrees of freedom and the object doesn't move around much and remains inside the hand. On these tasks, we observe that PQL and PPO are able to make significant progress. In particular, we find that PQL is very sample-efficient because it is off-policy and utilizes past data for updates. However, we find that SAPG achieves higher asymp-",
1406
+ "bbox": [
1407
+ 84,
1408
+ 776,
1409
+ 478,
1410
+ 898
1411
+ ],
1412
+ "page_idx": 6
1413
+ },
1414
+ {
1415
+ "type": "text",
1416
+ "text": "totic performance. This is because on-policy methods are better at latching onto high reward trajectories and do not have to wait several iterations for the Bellman backup to propagate back to initial states. As discussed previously, in large-scale settings in simulation, we are primarily concerned with asymptotic performance since we want to maximize the downstream performance of our agents (within a reasonable training time budget). We see that on Allegro-Hand, SAPG beats PQL by a $21\\%$ margin, while on the ShadowHand task it achieves comparable performance. On these tasks, both PBT and PPO generally perform worse. This is because PPO is not able to efficiently leverage the large batch size. PBT loses the benefit of its hyperparameter mutation because the environment is simpler and the default hyperparameters work well, so it roughly reduces to simple PPO in $\\frac{N}{M}$ environments.",
1417
+ "bbox": [
1418
+ 495,
1419
+ 630,
1420
+ 888,
1421
+ 875
1422
+ ],
1423
+ "page_idx": 6
1424
+ },
1425
+ {
1426
+ "type": "header",
1427
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1428
+ "bbox": [
1429
+ 343,
1430
+ 56,
1431
+ 630,
1432
+ 70
1433
+ ],
1434
+ "page_idx": 6
1435
+ },
1436
+ {
1437
+ "type": "page_number",
1438
+ "text": "7",
1439
+ "bbox": [
1440
+ 480,
1441
+ 922,
1442
+ 491,
1443
+ 934
1444
+ ],
1445
+ "page_idx": 6
1446
+ },
1447
+ {
1448
+ "type": "image",
1449
+ "img_path": "images/6e39b5e0eb010fd1b0201a1f955d84ed4e368989cec7099716bc49090143553d.jpg",
1450
+ "image_caption": [],
1451
+ "image_footnote": [],
1452
+ "bbox": [
1453
+ 89,
1454
+ 80,
1455
+ 344,
1456
+ 200
1457
+ ],
1458
+ "page_idx": 7
1459
+ },
1460
+ {
1461
+ "type": "image",
1462
+ "img_path": "images/c9d389f8f0d49cafe453c651a5516e01268f3239eb012e4ed4d6a05b0afbb420.jpg",
1463
+ "image_caption": [],
1464
+ "image_footnote": [],
1465
+ "bbox": [
1466
+ 359,
1467
+ 80,
1468
+ 612,
1469
+ 200
1470
+ ],
1471
+ "page_idx": 7
1472
+ },
1473
+ {
1474
+ "type": "image",
1475
+ "img_path": "images/fa1a2ce92a11e5e2174a25ddf5a60d1f58ef88e6f5cc6332f4440dea8d567a79.jpg",
1476
+ "image_caption": [],
1477
+ "image_footnote": [],
1478
+ "bbox": [
1479
+ 629,
1480
+ 80,
1481
+ 883,
1482
+ 200
1483
+ ],
1484
+ "page_idx": 7
1485
+ },
1486
+ {
1487
+ "type": "image",
1488
+ "img_path": "images/d4688adf993c9b53f1852d99a4ec1fefd636863d17c32263d1aa7b1d2dd07e24.jpg",
1489
+ "image_caption": [],
1490
+ "image_footnote": [],
1491
+ "bbox": [
1492
+ 205,
1493
+ 203,
1494
+ 475,
1495
+ 320
1496
+ ],
1497
+ "page_idx": 7
1498
+ },
1499
+ {
1500
+ "type": "image",
1501
+ "img_path": "images/2c19761b7b6ece09d677ee035a290c983204c1a22dcd6093d07a54f95ad937e5.jpg",
1502
+ "image_caption": [],
1503
+ "image_footnote": [],
1504
+ "bbox": [
1505
+ 478,
1506
+ 203,
1507
+ 748,
1508
+ 320
1509
+ ],
1510
+ "page_idx": 7
1511
+ },
1512
+ {
1513
+ "type": "image",
1514
+ "img_path": "images/a032e10112c66fd38bf6ecb179638f5c7b41e44c0c0d7ae627ae51e68147a8af.jpg",
1515
+ "image_caption": [
1516
+ "Figure 6. Performance curves for ablations of our method. The variants of our method with a symmetric aggregation scheme or without an off-policy combination perform significantly worse. Entropy regularization affects performance across environments, giving a benefit in reorientation. Using a high off-policy ratio without subsampling data leads to worse performance on ShadowHand and AllegroHand."
1517
+ ],
1518
+ "image_footnote": [],
1519
+ "bbox": [
1520
+ 150,
1521
+ 338,
1522
+ 823,
1523
+ 369
1524
+ ],
1525
+ "page_idx": 7
1526
+ },
1527
+ {
1528
+ "type": "text",
1529
+ "text": "6.3. Ablations",
1530
+ "text_level": 1,
1531
+ "bbox": [
1532
+ 84,
1533
+ 453,
1534
+ 187,
1535
+ 467
1536
+ ],
1537
+ "page_idx": 7
1538
+ },
1539
+ {
1540
+ "type": "text",
1541
+ "text": "The core idea behind SAPG is to combine data from different policies instead of optimizing a single policy with an extremely large batch. In this section, we will analyze our specific design choices for how we combine data (choice of $i$ and $\\mathcal{X}$ and $\\lambda$ ) and for how we enforce diversity among the data collected by the policies. In particular, we have the following variants",
1542
+ "bbox": [
1543
+ 84,
1544
+ 476,
1545
+ 475,
1546
+ 583
1547
+ ],
1548
+ "page_idx": 7
1549
+ },
1550
+ {
1551
+ "type": "list",
1552
+ "sub_type": "text",
1553
+ "list_items": [
1554
+ "- SAPG (with entropy coef) As discussed in sec. 5.2, here we add an entropy loss to the followers to encourage data diversity. We explore different choices for the scaling coefficient of this loss $\\sigma \\in \\{0, 0.005, 0.003\\}$ .",
1555
+ "- SAPG (high off-policy ratio) In SAPG, when updating the leader, we subsample the off-policy data from the followers such that the off-policy dataset size matches the on-policy data. This is done because off-policy data is typically noisier and we do not want to drown out the gradient from on-policy data. In SAPG with a high off-policy ratio, we remove the subsampling step and instead see the impact of computing the gradient on the entire combined off-policy + on-policy dataset.",
1556
+ "- Ours (symmetric) In SAPG, we choose $i = 1$ to be the \"leader\" and the rest are \"followers\". Only the leader receives off-policy data while the followers use the standard on-policy loss. A natural alternative is where there are no privileged policies and each policy is updated with off-policy data from all others as discussed in sec. 4.2."
1557
+ ],
1558
+ "bbox": [
1559
+ 86,
1560
+ 590,
1561
+ 473,
1562
+ 878
1563
+ ],
1564
+ "page_idx": 7
1565
+ },
1566
+ {
1567
+ "type": "text",
1568
+ "text": "We observe that SAPG outperforms or achieves comparable",
1569
+ "bbox": [
1570
+ 84,
1571
+ 890,
1572
+ 473,
1573
+ 906
1574
+ ],
1575
+ "page_idx": 7
1576
+ },
1577
+ {
1578
+ "type": "text",
1579
+ "text": "performance to the entropy-regularized variant except in the Reorientation environment where the variant with coefficient $5\\mathrm{e} - 3$ performs up to $16.5\\%$ better. Reorientation is the hardest task out of the three AllegroKuka tasks and has a lot of scope for learning emergent strategies such as using the table to move the object around, etc. Explicit exploration might be useful in discovering these behaviors.",
1580
+ "bbox": [
1581
+ 496,
1582
+ 453,
1583
+ 887,
1584
+ 559
1585
+ ],
1586
+ "page_idx": 7
1587
+ },
1588
+ {
1589
+ "type": "text",
1590
+ "text": "The variant of ours which uses all the off-policy data is significantly worse on the AllegroHand and ShadowHand tasks and marginally worse on Regrasping and Throw environments. It is more sample efficient than SAPG on Reorientation but achieves lower asymptotic performance. This could be because in the simple environments, additional data has marginal utility. In the harder AllegroKuka environments, it is beneficial to use all the data initially since it may contain optimal trajectories that would otherwise be missed. However, once an appreciable level of performance is achieved, it becomes better to subsample to prevent the noise in the off-policy update from drowning out the on-policy gradient.",
1591
+ "bbox": [
1592
+ 495,
1593
+ 566,
1594
+ 888,
1595
+ 748
1596
+ ],
1597
+ "page_idx": 7
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "Finally, the symmetric variant of our method performs significantly worse across the board. This is possibly because using all the data to update each policy leads to them converging in behavior. If all the policies start executing the same actions, the benefit of data diversity is lost and SAPG reduces to vanilla PPO. Of course, there is a rich space of possible algorithms depending on particular choices of how data is aggregated and diversity is encouraged of which we have explored a small fraction.",
1602
+ "bbox": [
1603
+ 495,
1604
+ 753,
1605
+ 888,
1606
+ 890
1607
+ ],
1608
+ "page_idx": 7
1609
+ },
1610
+ {
1611
+ "type": "header",
1612
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1613
+ "bbox": [
1614
+ 343,
1615
+ 56,
1616
+ 630,
1617
+ 70
1618
+ ],
1619
+ "page_idx": 7
1620
+ },
1621
+ {
1622
+ "type": "page_number",
1623
+ "text": "8",
1624
+ "bbox": [
1625
+ 480,
1626
+ 922,
1627
+ 491,
1628
+ 934
1629
+ ],
1630
+ "page_idx": 7
1631
+ },
1632
+ {
1633
+ "type": "image",
1634
+ "img_path": "images/44d5cd2a14ee3438a12c3ceb44b65825151a221ba2502e0a09bf49c25b912d4b.jpg",
1635
+ "image_caption": [
1636
+ "Figure 7. Curves comparing reconstruction error for states visited during training using top- $k$ PCA components for SAPG (Ours), PPO and a randomly initialized policy"
1637
+ ],
1638
+ "image_footnote": [],
1639
+ "bbox": [
1640
+ 86,
1641
+ 80,
1642
+ 357,
1643
+ 209
1644
+ ],
1645
+ "page_idx": 8
1646
+ },
1647
+ {
1648
+ "type": "image",
1649
+ "img_path": "images/0f0fc5fa547292da56b7c1553c1aed4795143071d720d046440659b107ea0f55.jpg",
1650
+ "image_caption": [],
1651
+ "image_footnote": [],
1652
+ "bbox": [
1653
+ 359,
1654
+ 80,
1655
+ 620,
1656
+ 209
1657
+ ],
1658
+ "page_idx": 8
1659
+ },
1660
+ {
1661
+ "type": "image",
1662
+ "img_path": "images/92b97ae7daf52583c41eb4bd92190dd2c295a3947f9e67decefae5ed3cc7a30d.jpg",
1663
+ "image_caption": [],
1664
+ "image_footnote": [],
1665
+ "bbox": [
1666
+ 346,
1667
+ 212,
1668
+ 627,
1669
+ 226
1670
+ ],
1671
+ "page_idx": 8
1672
+ },
1673
+ {
1674
+ "type": "image",
1675
+ "img_path": "images/7595579e353973eaf78f6f22bed8b8564f7adb2a9401a3b66f9b7e0c736546db.jpg",
1676
+ "image_caption": [],
1677
+ "image_footnote": [],
1678
+ "bbox": [
1679
+ 622,
1680
+ 80,
1681
+ 883,
1682
+ 209
1683
+ ],
1684
+ "page_idx": 8
1685
+ },
1686
+ {
1687
+ "type": "image",
1688
+ "img_path": "images/15f89e060f335b8cfe09f1c70e1ec93de25f4c834a8b2a2ccfd2edc80e191487.jpg",
1689
+ "image_caption": [
1690
+ "Figure 8. Curves comparing reconstruction error for states visited during training using MLPs with varying hidden layer dimensions for SAPG (Ours), PPO and a randomly initialized policy"
1691
+ ],
1692
+ "image_footnote": [],
1693
+ "bbox": [
1694
+ 86,
1695
+ 282,
1696
+ 352,
1697
+ 410
1698
+ ],
1699
+ "page_idx": 8
1700
+ },
1701
+ {
1702
+ "type": "image",
1703
+ "img_path": "images/b36d73734883fd8cdab6afd6525dde2d04fc50f6c4b395223bc27e3628e6737e.jpg",
1704
+ "image_caption": [],
1705
+ "image_footnote": [],
1706
+ "bbox": [
1707
+ 352,
1708
+ 282,
1709
+ 620,
1710
+ 428
1711
+ ],
1712
+ "page_idx": 8
1713
+ },
1714
+ {
1715
+ "type": "image",
1716
+ "img_path": "images/e5d96e8f4f749e4e5f5332c08696b5a40ad539cbb772c6cb5ef73c4c60d7ddae.jpg",
1717
+ "image_caption": [],
1718
+ "image_footnote": [],
1719
+ "bbox": [
1720
+ 620,
1721
+ 282,
1722
+ 883,
1723
+ 410
1724
+ ],
1725
+ "page_idx": 8
1726
+ },
1727
+ {
1728
+ "type": "text",
1729
+ "text": "6.4. Diversity in exploration",
1730
+ "text_level": 1,
1731
+ "bbox": [
1732
+ 84,
1733
+ 496,
1734
+ 284,
1735
+ 512
1736
+ ],
1737
+ "page_idx": 8
1738
+ },
1739
+ {
1740
+ "type": "text",
1741
+ "text": "To analyze why our method outperforms the baseline method, we conduct experiments comparing the diversity of states visited by each algorithm during training. We devise two metrics to measure the diversity of the state space and find that our method beats PPO in both metrics.",
1742
+ "bbox": [
1743
+ 84,
1744
+ 520,
1745
+ 473,
1746
+ 595
1747
+ ],
1748
+ "page_idx": 8
1749
+ },
1750
+ {
1751
+ "type": "list",
1752
+ "sub_type": "text",
1753
+ "list_items": [
1754
+ "- PCA - We compute the reconstruction error of a batch of states using k most significant components of PCA and plot this error as a function of k. In general, a set that has variation along fewer dimensions of space can be compressed with fewer principal vectors and will have lower reconstruction error. This metric therefore measures the extent to which the policy explores different dimensions of state space. Figure-7 contains the plots for this metric. We find that the rate of decrease in reconstruction error with an increase in components is the slowest for our method.",
1755
+ "- MLP - We train feedforward networks with small hidden layers on the task of input reconstruction on batches of environment states visited by our algorithm and PPO during training. The idea behind this is that if a batch of states has a more diverse data distribution then it should be harder to reconstruct the distribution using small hidden layers because high diversity implies that the distribution is less compressible. Thus,"
1756
+ ],
1757
+ "bbox": [
1758
+ 102,
1759
+ 613,
1760
+ 475,
1761
+ 906
1762
+ ],
1763
+ "page_idx": 8
1764
+ },
1765
+ {
1766
+ "type": "text",
1767
+ "text": "high training error on a batch of states is a strong indicator of diversity in the batch. As can be observed from the plots in Figure-8, we find that training error is consistently higher for our method compared to PPO across different hidden layer sizes.",
1768
+ "bbox": [
1769
+ 527,
1770
+ 496,
1771
+ 887,
1772
+ 571
1773
+ ],
1774
+ "page_idx": 8
1775
+ },
1776
+ {
1777
+ "type": "text",
1778
+ "text": "7. Conclusion",
1779
+ "text_level": 1,
1780
+ "bbox": [
1781
+ 496,
1782
+ 592,
1783
+ 617,
1784
+ 608
1785
+ ],
1786
+ "page_idx": 8
1787
+ },
1788
+ {
1789
+ "type": "text",
1790
+ "text": "In this work, we present a method to scale reinforcement learning to utilize large simulation capacity. We show how current algorithms obtain diminishing returns if we perform naive scaling by batch size and do not use the increased volume of data efficiently. Our method achieves state-of-the-art performance on hard simulation benchmarks.",
1791
+ "bbox": [
1792
+ 495,
1793
+ 618,
1794
+ 885,
1795
+ 709
1796
+ ],
1797
+ "page_idx": 8
1798
+ },
1799
+ {
1800
+ "type": "text",
1801
+ "text": "Impact Statement",
1802
+ "text_level": 1,
1803
+ "bbox": [
1804
+ 496,
1805
+ 728,
1806
+ 653,
1807
+ 744
1808
+ ],
1809
+ "page_idx": 8
1810
+ },
1811
+ {
1812
+ "type": "text",
1813
+ "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 specifically highlighted here.",
1814
+ "bbox": [
1815
+ 495,
1816
+ 753,
1817
+ 885,
1818
+ 815
1819
+ ],
1820
+ "page_idx": 8
1821
+ },
1822
+ {
1823
+ "type": "text",
1824
+ "text": "Acknowledgements",
1825
+ "text_level": 1,
1826
+ "bbox": [
1827
+ 496,
1828
+ 834,
1829
+ 665,
1830
+ 851
1831
+ ],
1832
+ "page_idx": 8
1833
+ },
1834
+ {
1835
+ "type": "text",
1836
+ "text": "We thank Alex Li and Russell Mendonca for fruitful discussions regarding the method and insightful feedback. We would also like to thank Mihir Prabhudesai and Kevin",
1837
+ "bbox": [
1838
+ 495,
1839
+ 859,
1840
+ 885,
1841
+ 904
1842
+ ],
1843
+ "page_idx": 8
1844
+ },
1845
+ {
1846
+ "type": "header",
1847
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1848
+ "bbox": [
1849
+ 343,
1850
+ 56,
1851
+ 630,
1852
+ 70
1853
+ ],
1854
+ "page_idx": 8
1855
+ },
1856
+ {
1857
+ "type": "page_number",
1858
+ "text": "9",
1859
+ "bbox": [
1860
+ 480,
1861
+ 922,
1862
+ 491,
1863
+ 934
1864
+ ],
1865
+ "page_idx": 8
1866
+ },
1867
+ {
1868
+ "type": "text",
1869
+ "text": "Gmelin for proofreading an earlier draft. This project was supported in part by ONR N00014-22-1-2096 and NSF NRI IIS-2024594.",
1870
+ "bbox": [
1871
+ 84,
1872
+ 84,
1873
+ 478,
1874
+ 128
1875
+ ],
1876
+ "page_idx": 9
1877
+ },
1878
+ {
1879
+ "type": "text",
1880
+ "text": "References",
1881
+ "text_level": 1,
1882
+ "bbox": [
1883
+ 86,
1884
+ 148,
1885
+ 183,
1886
+ 165
1887
+ ],
1888
+ "page_idx": 9
1889
+ },
1890
+ {
1891
+ "type": "list",
1892
+ "sub_type": "ref_text",
1893
+ "list_items": [
1894
+ "Agarwal, A., Kumar, A., Malik, J., and Pathak, D. Legged locomotion in challenging terrains using ego-centric vision. In Conference on Robot Learning, 2022. URL https://api_semanticscholar.org/CorpusID:252733339.",
1895
+ "Chen, T., Xu, J., and Agrawal, P. A system for general in-hand object re-orientation, 2021.",
1896
+ "Cheng, X., Shi, K., Agarwal, A., and Pathak, D. Extreme parkour with legged robots. ArXiv, abs/2309.14341, 2023. URL https://api-semanticscholar.org/CorpusID:262826068.",
1897
+ "Clevert, D.-A., Unterthiner, T., and Hochreiter, S. Fast and accurate deep network learning by exponential linear units (elus), 2016.",
1898
+ "Degris, T., White, M., and Sutton, R. S. Off-policy actor-critic. CoRR, abs/1205.4839, 2012. URL http:// arxiv.org/abs/1205.4839.",
1899
+ "Espeholt, L., Soyer, H., Munos, R., Simonyan, K., Mnih, V., Ward, T., Doron, Y., Firoiu, V., Harley, T., Dunning, I., Legg, S., and Kavukcuoglu, K. IMPALA: scalable distributed deep-rl with importance weighted actor-learner architectures. CoRR, abs/1802.01561, 2018. URL http://arxiv.org/abs/1802.01561.",
1900
+ "Fakoor, R., Chaudhari, P., and Smola, A. J. P3o: Policy-on policy-off policy optimization. In Adams, R. P. and Gogate, V. (eds.), Proceedings of The 35th Uncertainty in Artificial Intelligence Conference, volume 115 of Proceedings of Machine Learning Research, pp. 1017-1027. PMLR, 22-25 Jul 2020. URL https://proceedings.mlr.press/v115/fakoor20a.html.",
1901
+ "Fu, Z., Cheng, X., and Pathak, D. Deep whole-body control: Learning a unified policy for manipulation and locomotion. ArXiv, abs/2210.10044, 2022. URL https://api.sementicscholar.org/CorpusID:252968218.",
1902
+ "Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. ArXiv, abs/1801.01290, 2018. URL https://api_semanticscholar.org/CorpusID:28202810."
1903
+ ],
1904
+ "bbox": [
1905
+ 86,
1906
+ 172,
1907
+ 478,
1908
+ 905
1909
+ ],
1910
+ "page_idx": 9
1911
+ },
1912
+ {
1913
+ "type": "list",
1914
+ "sub_type": "ref_text",
1915
+ "list_items": [
1916
+ "Handa, A., Allshire, A., Makoviychuk, V., Petrenko, A., Singh, R., Liu, J., Makoviichuk, D., Wyk, K. V., Zhurkevich, A., Sundaralingam, B., Narang, Y. S., Lafleche, J.-F., Fox, D., and State, G. Dextreme: Transfer of agile in-hand manipulation from simulation to reality. 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 5977-5984, 2022. URL https://apisemantic scholar.org/CorpusID:253107794.",
1917
+ "Hastings, W. K. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1): 97-109, 04 1970. ISSN 0006-3444.",
1918
+ "Horgan, D., Quan, J., Budden, D., Barth-Maron, G., Hessel, M., van Hasselt, H., and Silver, D. Distributed prioritized experience replay. CoRR, abs/1803.00933, 2018. URL http://arxiv.org/abs/1803.00933.",
1919
+ "Kakade, S. and Langford, J. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, pp. 267-274, 2002.",
1920
+ "Konda, V. and Tsitsiklis, J. Actor-critic algorithms. In Solla, S., Leen, T., and Müller, K. (eds.), Advances in Neural Information Processing Systems, volume 12. MIT Press, 1999. URL https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf.",
1921
+ "Li, Z., Chen, T., Hong, Z.-W., Ajay, A., and Agrawal, P. Parallel $q$ -learning: Scaling off-policy reinforcement learning under massively parallel simulation, 2023.",
1922
+ "Lillicrap, T. P., Hunt, J. J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., and Wierstra, D. Continuous control with deep reinforcement learning, 2019.",
1923
+ "Makoviychuk, V., Wawrzyniak, L., Guo, Y., Lu, M., Storey, K., Macklin, M., Hoeller, D., Rudin, N., Allshire, A., Handa, A., et al. Isaac gym: High performancegpu-based physics simulation for robot learning. arXiv preprint arXiv:2108.10470, 2021.",
1924
+ "Meng, W., Zheng, Q., Pan, G., and Yin, Y. Off-policy proximal policy optimization. Proceedings of the AAAI Conference on Artificial Intelligence, 37(8): 9162-9170, June 2023. ISSN 2159-5399. doi: 10.1609/ aaai.v37i8.26099. URL http://dx.doi.org/10. 1609/aaai.v37i8.26099.",
1925
+ "Miki, T., Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., and Hutter, M. Learning robust perceptive locomotion for quadrupedal robots in the wild. Science Robotics, 7 (62):eabk2822, 2022."
1926
+ ],
1927
+ "bbox": [
1928
+ 500,
1929
+ 84,
1930
+ 897,
1931
+ 905
1932
+ ],
1933
+ "page_idx": 9
1934
+ },
1935
+ {
1936
+ "type": "header",
1937
+ "text": "SAPG: Split and Aggregate Policy Gradients",
1938
+ "bbox": [
1939
+ 343,
1940
+ 56,
1941
+ 630,
1942
+ 71
1943
+ ],
1944
+ "page_idx": 9
1945
+ },
1946
+ {
1947
+ "type": "page_number",
1948
+ "text": "10",
1949
+ "bbox": [
1950
+ 477,
1951
+ 922,
1952
+ 495,
1953
+ 934
1954
+ ],
1955
+ "page_idx": 9
1956
+ },
1957
+ {
1958
+ "type": "list",
1959
+ "sub_type": "ref_text",
1960
+ "list_items": [
1961
+ "Mnih, V., Kavukcuoglu, K., Silver, D., Graves, A., Antonoglou, I., Wierstra, D., and Riedmiller, M. A. Playing atari with deep reinforcement learning. ArXiv, abs/1312.5602, 2013. URL https://api.sementicscholar.org/CorpusID:15238391.",
1962
+ "Mnih, V., Badia, A. P., Mirza, M., Graves, A., Lillicrap, T. P., Harley, T., Silver, D., and Kavukcuoglu, K. Asynchronous methods for deep reinforcement learning. CoRR, abs/1602.01783, 2016. URL http://arxiv.org/abs/1602.01783.",
1963
+ "Nair, A., Srinivasan, P., Blackwell, S., Alcicek, C., Fearon, R., Maria, A. D., Panneershelvam, V., Suleyman, M., Beattie, C., Petersen, S., Legg, S., Mnih, V., Kavukcuoglu, K., and Silver, D. Massively parallel methods for deep reinforcement learning. CoRR, abs/1507.04296, 2015. URL http://arxiv.org/abs/1507.04296.",
1964
+ "OpenAI, Andrychowicz, M., Baker, B., Chociej, M., Józefowicz, R., McGrew, B., Pachocki, J., Petron, A., Plappert, M., Powell, G., Ray, A., Schneider, J., Sidor, S., Tobin, J., Welinder, P., Weng, L., and Zaremba, W. Learning dexterous in-hand manipulation. CoRR, abs/1808.00177, 2018. URL http://arxiv.org/abs/1808.00177.",
1965
+ "Petrenko, A., Allshire, A., State, G., Handa, A., and Makoviychuk, V. Dexpbt: Scaling up dexterous manipulation for hand-arm systems with population based training. In Bekris, K. E., Hauser, K., Herbert, S. L., and Yu, J. (eds.), Robotics: Science and Systems XIX, Daegu, Republic of Korea, July 10-14, 2023, 2023. doi: 10.15607/RSS.2023.XIX.037. URL https://doi.org/10.15607/RSS.2023.XIX.037.",
1966
+ "Rudin, N., Hoeller, D., Reist, P., and Hutter, M. Learning to walk in minutes using massively parallel deep reinforcement learning, 2022.",
1967
+ "Schulman, J., Levine, S., Abbeel, P., Jordan, M., and Moritz, P. Trust region policy optimization. In Bach, F. and Blei, D. (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1889-1897, Lille, France, 07-09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/schulman15.html.",
1968
+ "Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. Proximal policy optimization algorithms. ArXiv, abs/1707.06347, 2017. URL https://api.sementicscholar.org/CorpusID:28695052.",
1969
+ "Schulman, J., Moritz, P., Levine, S., Jordan, M., and Abbeel, P. High-dimensional continuous control using generalized advantage estimation, 2018."
1970
+ ],
1971
+ "bbox": [
1972
+ 86,
1973
+ 84,
1974
+ 478,
1975
+ 906
1976
+ ],
1977
+ "page_idx": 10
1978
+ },
1979
+ {
1980
+ "type": "list",
1981
+ "sub_type": "ref_text",
1982
+ "list_items": [
1983
+ "Sutton, R. S., McAllester, D., Singh, S., and Mansour, Y. Policy gradient methods for reinforcement learning with function approximation. In Solla, S., Leen, T., and Müller, K. (eds.), Advances in Neural Information Processing Systems, volume 12. MIT Press, 1999. URL https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf.",
1984
+ "Vinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M., Dudzik, A., Chung, J., Choi, D. H., Powell, R., Ewalds, T., Georgiev, P., Oh, J., Horgan, D., Kroiss, M., Danihelka, I., Huang, A., Sifre, L., Cai, T., Agapiou, J. P., Jaderberg, M., Vezhnevets, A. S., Leblond, R., Pohlen, T., Dalibard, V., Budden, D., Sulsky, Y., Molloy, J., Paine, T. L., Gulcehre, C., Wang, Z., Pfaff, T., Wu, Y., Ring, R., Yogatama, D., Wünsch, D., McKinney, K., Smith, O., Schaul, T., Lillicrap, T. P., Kavukcuoglu, K., Hassabis, D., Apps, C., and Silver, D. Grandmaster level in starcraft ii using multiagent reinforcement learning. Nature, 575:350 - 354, 2019. URL https://apisemanticscholar.org/CorpusID:204972004.",
1985
+ "Wang, Z., Bapat, V., Heess, N., Mnih, V., Munos, R., Kavukcuoglu, K., and de Freitas, N. Sample efficient actor-critic with experience replay. CoRR, abs/1611.01224, 2016. URL http://arxiv.org/abs/1611.01224.",
1986
+ "Watkins, C. and Dayan, P. Q-learning. Machine Learning, 8:279-292, 1992. URL https://api-semanticscholar.org/CorpusID: 208910339.",
1987
+ "Williams, R. J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8:229-256, 2004. URL https://apisemantic scholar.org/CorpusID:19115634."
1988
+ ],
1989
+ "bbox": [
1990
+ 498,
1991
+ 84,
1992
+ 897,
1993
+ 654
1994
+ ],
1995
+ "page_idx": 10
1996
+ },
1997
+ {
1998
+ "type": "header",
1999
+ "text": "SAPG: Split and Aggregate Policy Gradients",
2000
+ "bbox": [
2001
+ 343,
2002
+ 56,
2003
+ 630,
2004
+ 71
2005
+ ],
2006
+ "page_idx": 10
2007
+ },
2008
+ {
2009
+ "type": "page_number",
2010
+ "text": "11",
2011
+ "bbox": [
2012
+ 477,
2013
+ 922,
2014
+ 495,
2015
+ 935
2016
+ ],
2017
+ "page_idx": 10
2018
+ },
2019
+ {
2020
+ "type": "text",
2021
+ "text": "A. Task and Environment Details",
2022
+ "text_level": 1,
2023
+ "bbox": [
2024
+ 84,
2025
+ 83,
2026
+ 369,
2027
+ 99
2028
+ ],
2029
+ "page_idx": 11
2030
+ },
2031
+ {
2032
+ "type": "text",
2033
+ "text": "Hard Difficulty Tasks All three hard tasks are based on the Allegro-Kuka environments(Petrenko et al., 2023). These consist of an Allegro Hand (16 dof) mounted on a Kuka arm (7 dof). In each case, the robot must manipulate a cuboidal kept on a fixed table. The observation space is $\\mathbf{o}_t = [\\mathbf{q},\\dot{\\mathbf{q}},\\mathbf{x}_t,\\mathbf{v}_t,\\omega_t,\\mathbf{g}_t,\\mathbf{z}_t]$ , where $\\mathbf{q}$ , $\\dot{\\mathbf{q}}\\in \\mathbb{R}^{23}$ are the joint angles and velocities respectively of each joint of the robot, $\\mathbf{x}_t\\in \\mathbb{R}^7$ is the pose of the object, $\\mathbf{v}_t$ is its linear velocity and $\\omega_{t}$ is its angular velocity, $\\mathbf{g}_t$ is a task-dependent goal observation and $\\mathbf{z}_t$ is auxiliary information pertinent to solving the task such as if the object has been lifted. These tasks consist of a complex environment but a simple reward function allowing opportunities for emergent strategies to be learnt such as in-hand reorientation under the influence of gravity, reorientation against the table, different types of throws and grasps and so on. The performance of the agent in the above three tasks is measured by the successes metric which is defined as the number of successes in a single episode. Three tasks include:",
2034
+ "bbox": [
2035
+ 84,
2036
+ 109,
2037
+ 888,
2038
+ 247
2039
+ ],
2040
+ "page_idx": 11
2041
+ },
2042
+ {
2043
+ "type": "list",
2044
+ "sub_type": "text",
2045
+ "list_items": [
2046
+ "- Regrasping - The object must be lifted from the table and held near a goal position $\\mathbf{g}_t \\in \\mathbb{R}^3$ for $K = 30$ steps. This is called a \"success\". The target position and object position are reset to a random location after every success. The success tolerance $\\delta$ defines the maximum error between object pose and goal pose for a success $\\| \\mathbf{g}_t - (\\mathbf{x}_t)_{0:3} \\| \\leq \\delta$ . This tolerance is decreased in a curriculum from $7.5\\mathrm{cm}$ to $1\\mathrm{cm}$ , decremented by $10\\%$ each time the average number of successes in an episode crosses 3. The reward function is a weighted combination of rewards encouraging the hand to reach the object $r_{reach}$ , a bonus $r_{lift}$ , rewards encouraging the hand to move to goal location after lifting $r_{target}$ and a success bonus $r_{success}$ .",
2047
+ "- Throw - The object must be lifted from the table and thrown into a bucket at $\\mathbf{g}_t \\in \\mathbb{R}^3$ placed out of reach of the arm. The bucket and the object position are reset randomly after every successful attempt. The reward function is similar to regrasping with the difference being that the target is now a bucket instead of a point.",
2048
+ "- Reorientation - This task involves picking up the object and reorienting it to a particular target pose $\\mathbf{g}_{\\mathbf{t}} \\in \\mathbb{R}^{7}$ (position + orientation). Similar to the regrasping task, there is a success tolerance $\\delta$ which is varied in a curriculum. The target pose is reset once the agent succeeds. This means the agents needs to the object in different poses in succession, which may sometimes entail placing the obxfject on the table and lifting it up in a different way. Here too, the reward function is similar to regrasping, with the goal now being a pose in $\\mathbb{R}^{7}$ instead of $\\mathbb{R}^{3}$"
2049
+ ],
2050
+ "bbox": [
2051
+ 102,
2052
+ 273,
2053
+ 887,
2054
+ 550
2055
+ ],
2056
+ "page_idx": 11
2057
+ },
2058
+ {
2059
+ "type": "text",
2060
+ "text": "Easy Difficulty Tasks: In addition, we test on the following dexterous hand tasks. As before, the observation space consists of the joint angles and velocities $\\mathbf{q}_t$ , $\\dot{\\mathbf{q}}_t$ , object pose $\\mathbf{x}_t$ and velocities $\\mathbf{v}_t$ , $\\omega_t$ . Following previous works (Li et al., 2023), we use the net episode reward as a performance metric for the ShadowHand and AllegroHand tasks.",
2061
+ "bbox": [
2062
+ 84,
2063
+ 575,
2064
+ 888,
2065
+ 623
2066
+ ],
2067
+ "page_idx": 11
2068
+ },
2069
+ {
2070
+ "type": "list",
2071
+ "sub_type": "text",
2072
+ "list_items": [
2073
+ "- Shadow Hand: We test on in-hand reorientation task of a cube using the 24-DoF Shadow Hand((OpenAI et al., 2018)). The task is to attain a specified goal orientation (specified as a quaternion) for the cube $\\mathbf{g}_t \\in \\mathbb{R}^4$ . The reward is a combination of the orientation error and a success bonus.",
2074
+ "- Allegro Hand: This is the same as the previous in-hand reorientation task but with the 16-DoF Allegro Hand instead."
2075
+ ],
2076
+ "bbox": [
2077
+ 102,
2078
+ 648,
2079
+ 887,
2080
+ 734
2081
+ ],
2082
+ "page_idx": 11
2083
+ },
2084
+ {
2085
+ "type": "text",
2086
+ "text": "B. Training hyperparameters",
2087
+ "text_level": 1,
2088
+ "bbox": [
2089
+ 84,
2090
+ 763,
2091
+ 334,
2092
+ 780
2093
+ ],
2094
+ "page_idx": 11
2095
+ },
2096
+ {
2097
+ "type": "text",
2098
+ "text": "We use two different sets of default hyperparameters for PPO in AllegroKuka and Shadow Hand tasks which are described below.",
2099
+ "bbox": [
2100
+ 84,
2101
+ 789,
2102
+ 887,
2103
+ 821
2104
+ ],
2105
+ "page_idx": 11
2106
+ },
2107
+ {
2108
+ "type": "text",
2109
+ "text": "B.1. AllegroKuka tasks",
2110
+ "text_level": 1,
2111
+ "bbox": [
2112
+ 84,
2113
+ 835,
2114
+ 253,
2115
+ 852
2116
+ ],
2117
+ "page_idx": 11
2118
+ },
2119
+ {
2120
+ "type": "text",
2121
+ "text": "We use a Gaussian policy where the mean network is an LSTM with 1 layer containing 768 hidden units. The observation is also passed through an MLP of with hidden layer dimensions $768 \\times 512 \\times 256$ and an ELU activation (Clevert et al., 2016) before being input to the LSTM. The sigma for the Gaussian is a fixed learnable vector independent of input observation.",
2122
+ "bbox": [
2123
+ 84,
2124
+ 859,
2125
+ 888,
2126
+ 906
2127
+ ],
2128
+ "page_idx": 11
2129
+ },
2130
+ {
2131
+ "type": "header",
2132
+ "text": "SAPG: Split and Aggregate Policy Gradients",
2133
+ "bbox": [
2134
+ 343,
2135
+ 56,
2136
+ 630,
2137
+ 70
2138
+ ],
2139
+ "page_idx": 11
2140
+ },
2141
+ {
2142
+ "type": "page_number",
2143
+ "text": "12",
2144
+ "bbox": [
2145
+ 477,
2146
+ 922,
2147
+ 496,
2148
+ 934
2149
+ ],
2150
+ "page_idx": 11
2151
+ },
2152
+ {
2153
+ "type": "table",
2154
+ "img_path": "images/4dd033370cac637801134e27f8ba01839a253a14c3e2bf2a0800ca7717d5ac39.jpg",
2155
+ "table_caption": [],
2156
+ "table_footnote": [],
2157
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>1e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.1</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>16</td></tr><tr><td>LSTM Sequence length</td><td>16</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>2</td></tr></table>",
2158
+ "bbox": [
2159
+ 331,
2160
+ 80,
2161
+ 640,
2162
+ 297
2163
+ ],
2164
+ "page_idx": 12
2165
+ },
2166
+ {
2167
+ "type": "text",
2168
+ "text": "B.2. Shadow Hand",
2169
+ "text_level": 1,
2170
+ "bbox": [
2171
+ 84,
2172
+ 409,
2173
+ 220,
2174
+ 422
2175
+ ],
2176
+ "page_idx": 12
2177
+ },
2178
+ {
2179
+ "type": "text",
2180
+ "text": "We use a Gaussian policy where the mean network is an MLP with hidden layers dimensions $512 \\times 512 \\times 256 \\times 128$ and an ELU activation (Clevert et al., 2016)",
2181
+ "bbox": [
2182
+ 84,
2183
+ 431,
2184
+ 887,
2185
+ 463
2186
+ ],
2187
+ "page_idx": 12
2188
+ },
2189
+ {
2190
+ "type": "table",
2191
+ "img_path": "images/0de4cd76fadc813b08d869c1c6005b5148f8903c19784709d17b24de9528f9c6.jpg",
2192
+ "table_caption": [
2193
+ "Table 2. Training hyperparameters for AllegroKuka tasks"
2194
+ ],
2195
+ "table_footnote": [],
2196
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>5e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.1</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>8</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>5</td></tr></table>",
2197
+ "bbox": [
2198
+ 331,
2199
+ 539,
2200
+ 640,
2201
+ 739
2202
+ ],
2203
+ "page_idx": 12
2204
+ },
2205
+ {
2206
+ "type": "text",
2207
+ "text": "Table 3. Training hyperparameters for Shadow Hand",
2208
+ "bbox": [
2209
+ 328,
2210
+ 750,
2211
+ 643,
2212
+ 763
2213
+ ],
2214
+ "page_idx": 12
2215
+ },
2216
+ {
2217
+ "type": "text",
2218
+ "text": "B.3. Allegro Hand",
2219
+ "text_level": 1,
2220
+ "bbox": [
2221
+ 86,
2222
+ 851,
2223
+ 217,
2224
+ 867
2225
+ ],
2226
+ "page_idx": 12
2227
+ },
2228
+ {
2229
+ "type": "text",
2230
+ "text": "We use a Gaussian policy where the mean network is an MLP with hidden layers dimensions $512 \\times 256 \\times 128$ and an ELU activation.",
2231
+ "bbox": [
2232
+ 84,
2233
+ 875,
2234
+ 885,
2235
+ 905
2236
+ ],
2237
+ "page_idx": 12
2238
+ },
2239
+ {
2240
+ "type": "header",
2241
+ "text": "SAPG: Split and Aggregate Policy Gradients",
2242
+ "bbox": [
2243
+ 343,
2244
+ 56,
2245
+ 630,
2246
+ 70
2247
+ ],
2248
+ "page_idx": 12
2249
+ },
2250
+ {
2251
+ "type": "page_number",
2252
+ "text": "13",
2253
+ "bbox": [
2254
+ 477,
2255
+ 922,
2256
+ 495,
2257
+ 934
2258
+ ],
2259
+ "page_idx": 12
2260
+ },
2261
+ {
2262
+ "type": "table",
2263
+ "img_path": "images/b4c8ce744d55dd40d3fff53edbebf52a0a61f7624646286bbfed7e1aadd57d3c.jpg",
2264
+ "table_caption": [],
2265
+ "table_footnote": [],
2266
+ "table_body": "<table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>5e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.2</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>8</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>5</td></tr></table>",
2267
+ "bbox": [
2268
+ 331,
2269
+ 80,
2270
+ 640,
2271
+ 281
2272
+ ],
2273
+ "page_idx": 13
2274
+ },
2275
+ {
2276
+ "type": "text",
2277
+ "text": "Table 4. Training hyperparameters for Shadow Hand",
2278
+ "bbox": [
2279
+ 330,
2280
+ 292,
2281
+ 643,
2282
+ 306
2283
+ ],
2284
+ "page_idx": 13
2285
+ },
2286
+ {
2287
+ "type": "text",
2288
+ "text": "Note: In case of experiments with entropy based exploration, each block of environments has it's own learnable vector sigma which enable policies for different blocks to have different entropies.",
2289
+ "bbox": [
2290
+ 84,
2291
+ 330,
2292
+ 888,
2293
+ 363
2294
+ ],
2295
+ "page_idx": 13
2296
+ },
2297
+ {
2298
+ "type": "header",
2299
+ "text": "SAPG: Split and Aggregate Policy Gradients",
2300
+ "bbox": [
2301
+ 343,
2302
+ 56,
2303
+ 630,
2304
+ 70
2305
+ ],
2306
+ "page_idx": 13
2307
+ },
2308
+ {
2309
+ "type": "page_number",
2310
+ "text": "14",
2311
+ "bbox": [
2312
+ 477,
2313
+ 922,
2314
+ 495,
2315
+ 934
2316
+ ],
2317
+ "page_idx": 13
2318
+ }
2319
+ ]
2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SAPG_ Split and Aggregate Policy Gradients/4fa30819-7447-48d0-8765-36d29b32a97a_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:20bddc7b71c6d973a32828bfb51dc1a44ff6a269d8f9675526b349c36f4eb1e3
3
+ size 7627967
2024/SAPG_ Split and Aggregate Policy Gradients/full.md ADDED
@@ -0,0 +1,415 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Jayesh Singla $^{*1}$ Ananye Agarwal $^{*1}$ Deepak Pathak
2
+
3
+ # Abstract
4
+
5
+ Despite extreme sample inefficiency, on-policy reinforcement learning, aka policy gradients, has become a fundamental tool in decision-making problems. With the recent advances in GPU-driven simulation, the ability to collect large amounts of data for RL training has scaled exponentially. However, we show that current RL methods, e.g. PPO, fail to ingest the benefit of parallelized environments beyond a certain point and their performance saturates. To address this, we propose a new on-policy RL algorithm that can effectively leverage large-scale environments by splitting them into chunks and fusing them back together via importance sampling. Our algorithm, termed SAPG, shows significantly higher performance across a variety of challenging environments where vanilla PPO and other strong baselines fail to achieve high performance. Webpage at https://sapg-rl.github.io.
6
+
7
+ # 1. Introduction
8
+
9
+ Broadly, there are two main categories in reinforcement learning (RL): off-policy RL, e.g., Q-learning (Watkins & Dayan, 1992), and on-policy RL, e.g., policy gradients (Sutton et al., 1999). On-policy methods are relatively more sample inefficient than off-policy but often tend to converge to higher asymptotic performance. Due to this reason, on-policy RL methods, especially PPO (Schulman et al., 2017), are usually the preferred RL paradigm for almost all sim2real robotic applications (Miki et al., 2022; Agarwal et al., 2022; Chen et al., 2021) to games such as StarCraft (Vinyals et al., 2019), where one could simulate years of real-world experience in minutes to hours.
10
+
11
+ RL is fundamentally a trial-n-error-based framework and hence is sample inefficient in nature. Due to this, one needs to have large batch sizes for each policy update, especially in
12
+
13
+ *Equal contribution ${}^{1}$ Carnegie Mellon University. Correspondence to: Ananye Agarwal <ananyea@andrew.cmu.edu>, Jayesh Singla <jsingla@andrew.cmu.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
+ Parallel Envs
18
+
19
+ Regular On-policy RL
20
+
21
+ ![](images/b57ad28d340bcb4d9003d31ec900d0a8c56cf5f12ab623d1656445fad84763c8.jpg)
22
+
23
+ ![](images/a95bad4e4903265d5dfd4d38a4f3694e23f3456f23baafc7dae98fa1496aaced.jpg)
24
+ Single learner
25
+
26
+ ![](images/7bdccc2bf40309b57b04dc070e543acaabddc184408a8bb8934a289483a18a04.jpg)
27
+ Split and Aggregate Policy Gradients (SAPG)
28
+ Followers
29
+
30
+ ![](images/7be2c58e97eebe98e168b3f183cc585081e62c28723ebbc286d97bc308399fc6.jpg)
31
+
32
+ ![](images/4d5770707ed126b7774190ec35eaa3db8431e137a46c4305a0ba20d222021aa4.jpg)
33
+
34
+ ![](images/935b6e2dff5c7c4228c93c8ac9e562bc5cb8e0572afeeb316f1702da697546c2.jpg)
35
+ Leader
36
+
37
+ ![](images/d00bbe95c49532e92effe3080c1147d49be5e4484b461e5096f16554c788a5fd.jpg)
38
+
39
+ ![](images/cc078c1ed5fa5958dad4b0a76b834bbf3c23987a3826e78c95eff515fb6075a6.jpg)
40
+
41
+ ![](images/19c4b7c0ea21550e959d09c7198b809af50d1dd66bdaefb7d60def33dd99ca94.jpg)
42
+ Figure 1. We introduce a new class of on-policy RL algorithms that can scale to tens of thousands of parallel environments. In contrast to regular on-policy RL, such as PPO, which learns a single policy across environments leading to wasted environment capacity, our method learns diverse followers and combines data from them to learn a more optimal leader in a continuous online manner.
43
+
44
+ ![](images/64a536c9ab7b1d699a643887cba392d5a6f7e11362f83afcd532591cc0e397f0.jpg)
45
+
46
+ the case of on-policy methods because they can only use data from current experience. Fortunately, in recent years, the ability to simulate a large number of environments in parallel has become exponentially larger due to GPU-driven physics engines, such as IsaacGym (Makoviychuk et al., 2021), PhysX, Mujoco-3.0, etc. This means that each RL update can easily scale to batches of size hundreds of thousands to millions, which are over two orders of magnitude higher than what most RL benchmarks typically have.
47
+
48
+ In this paper, we highlight an issue with typical on-policy RL methods, e.g. PPO, that they are not able to ingest the benefits with increasingly larger sample sizes for each up-
49
+
50
+ ![](images/34f4332d113579d372b25fac045a2de44fd8bf9a632c0377ea2aa5f1433bcdad.jpg)
51
+ Figure 2. Performance vs batch size plot for PPO runs (blue curve) across two environments. The curve shows how PPO training runs can not take benefit of large batch size resulting from massively parallelized environments and their asymptotic performance saturates after a certain point. The dashed red line is the performance of our method, SAPG, with more details in the results section. It serves as evidence that higher performance is achievable with larger batch sizes.
52
+
53
+ date. In Figure 2, we show that PPO performance saturates after a certain batch size despite the ceiling being higher. This is due to the issue in data sampling mechanisms. In particular, at each timestep actions are sampled from a Gaussian with some mean and variance. This implies that most sampled actions are near the mean and with large number of environments, many environments are executing the same actions leading to duplicated data. This implies that the performance of PPO saturates at some point as we increase the number of environments.
54
+
55
+ We propose a simple fix to this problem. Instead of running a single PPO policy for all environments, we divide environments into blocks. Each block optimizes a separate policy, allowing for more data diversity than just i.i.d. sampling from the same Gaussian. Next, we do an off-policy update to combine data from all these policies to keep the update consistent with the objective of on-policy RL. This allows us to use the PPO's clipped surrogate objective, maintaining the stability benefits of PPO while latching onto high reward trajectories even though they are off-policy. A schematic of our approach, termed SAPG, is shown in Figure 1. We evaluate SAPG across a variety of environments and show significantly high asymptotic performance in environments where vanilla PPO even fails to get any positive success.
56
+
57
+ # 2. Related Work
58
+
59
+ Policy gradients REINFORCE (Williams, 2004), one of the earliest policy gradient algorithms uses an estimator of the objective using simple Monte Carlo return values. Works such as (Konda & Tsitsiklis, 1999) and (Schulman et al., 2018) improve the stability of policy gradient algorithms by employing a baseline to decrease the variance of the estimator while not compromising on the bias. (Schulman et al., 2015; 2017) incorporate conservative policy updates
60
+
61
+ into policy gradients to increase the robustness.
62
+
63
+ Distributed reinforcement learning Reinforcement learning algorithms are highly sample inefficient, which calls for some form of parallelization to increase the training speed. When training in simulation, this speed-up can be achieved by distributing experience collection or different parts of training across multiple processes.(Nair et al., 2015; Mnih et al., 2016; Espeholt et al., 2018; Horgan et al., 2018) However, through the introduction of GPU-based simulators such as IsaacGym (Makoviychuk et al., 2021), the capacity of simulation has increased by two to three orders of magnitude. Due to this, instead of focusing on how to parallelize parts of the algorithm, the focus has shifted to finding ways to efficiently utilize the large amount of simulation data. Previous works such as (Chen et al., 2021; Fu et al., 2022; Rudin et al., 2022; Handa et al., 2022; Agarwal et al., 2022) use data from GPU-based simulation to learn policies in complex manipulation and locomotion settings. However, most of these works still use reinforcement learning algorithms to learn a single policy, while augmenting training with techniques like teacher-student-based training and game-based curriculum. We find that using the increased simulation capacity to naively increase the batch size is not the best way to utilize massively parallel simulation.
64
+
65
+ (Petrenko et al., 2023) develop a population-based training framework that divides the large number of environments between multiple policies and using hyperparameter mutation to find a set of hyperparameters that performs well. However, even this does not utilize all the data completely as each policy learns independently. We propose a way to ensure most of the data from the environments contributes to learning by using all collected transitions for each update.
66
+
67
+ Off-policy Policy Gradients Unlike on-policy algorithms, off-policy algorithms can reuse all collected data or data collected by any policy for their update. Most off-policy algorithms (Mnih et al., 2013; Lillicrap et al., 2019; Haarnoja et al., 2018) try to learn a value function which is then implicitly/explicitly used to learn a policy. (Li et al., 2023) developed a variant of Deep Deterministic Policy Gradient (DDPG) called PQL which splits data collection and learning into multiple processes and shows impressive performance on many benchmark tasks. We use PQL as one of our baselines to compare our method to off-policy RL in complex tasks. Although off-policy algorithms are much more data-efficient, they usually get lower asymptotic performance than on-policy policy gradients. This has inspired works to develop techniques to use off-policy data in on-policy methods. (Hastings, 1970) has been one of the major techniques used to realize this. Previous works (Degris et al., 2012; Wang et al., 2016; Espeholt et al., 2018; Fakoor et al., 2020) develop techniques to use off-policy data in on-policy
68
+
69
+ algorithms using importance sampling-based updates along with features such as bias correction.
70
+
71
+ # 3. Preliminaries
72
+
73
+ In this paper, we propose a modification to on-policy RL to achieve higher performance in the presence of large batch sizes. We build upon PPO, although our proposed ideas are generally applicable to any on-policy RL method.
74
+
75
+ On-policy RL Let $(S, \mathcal{A}, \mathcal{P}, r, \rho, \gamma)$ be an MDP where $S$ is the set of states, $\mathcal{A}$ the set of actions, $\mathcal{P}$ are transition probabilities, $r$ the reward function, $\rho$ the initial distribution of states and $\gamma$ the discount factor. The objective in reinforcement learning is to find a policy $\pi(a|s)$ which maximises the long term discounted reward $\mathcal{J}(\pi) = \mathbb{E}_{s_0 \sim \rho, a_t \sim \pi(\cdot|s_t)}\left[\sum_{t=0}^{T-1} \gamma^t r(s_t, a_t)\right]$ .
76
+
77
+ Policy-gradient algorithms (Williams, 2004; Konda & Tsitsiklis, 1999; Schulman et al., 2015; Mnih et al., 2016) optimize the policy using gradient descent with Monte Carlo estimates of the gradient
78
+
79
+ $$
80
+ \nabla_ {\theta} J (\pi_ {\theta}) = \underset {s \sim \rho_ {d}, a \sim \pi (\cdot | s)} {\mathbb {E}} \left[ \nabla_ {\theta} \log (\pi_ {\theta} (a)) \hat {A} ^ {\pi_ {\theta}} (s, a) \right] \tag {1}
81
+ $$
82
+
83
+ where $\hat{A}^{\pi_{\theta}}(s,a)$ is an advantage function that estimates the contribution of the transition to the gradient. A common choice is $\hat{A}^{\pi_{\theta}}(s,a) = \hat{Q}^{\pi_{\theta}}(s,a) - \hat{V}^{\pi_{\theta}}(s)$ , where $\hat{Q}^{\pi_{\theta}}(s,a)$ , $\hat{V}^{\pi_{\theta}}(s)$ are estimated $Q$ and value functions. This form of update is termed as an actor-critic update (Konda & Tsitsiklis, 1999). Since we want the gradient of the error with respect to the current policy, only data from the current policy (on-policy) data can be utilized.
84
+
85
+ PPO Actor critic updates can be quite unstable because gradient estimates are high variance and the loss landscape is complex. An update step that is too large can destroy policy performance. Proximal Policy Optimization (PPO) modifies Eq. 1 to restrict updates to remain within an approximate "trust region" where there is guaranteed improvement (Schulman et al., 2015; Kakade & Langford, 2002).
86
+
87
+ $$
88
+ \begin{array}{l} L _ {o n} \left(\pi_ {\theta}\right) = \underset {\pi_ {o l d}} {\mathbb {E}} \left[ \min \left(r _ {t} \left(\pi_ {\theta}\right), \right. \right. \tag {2} \\ \operatorname {c l i p} \left(r _ {t} (\pi_ {\theta}), 1 - \epsilon , 1 + \epsilon)\right) A _ {t} ^ {\pi_ {\text {o l d}}} ] \\ \end{array}
89
+ $$
90
+
91
+ Here, $r_t(\pi_\theta) = \frac{\pi_\theta(a_t|s_t)}{\pi_{old}(a_t|s_t)}$ , $\epsilon$ is a clipping hyperparameter and $\pi_{old}$ is the policy collecting the on-policy data. The clipping operation ensures that the updated $\pi$ stays close to $\pi_{old}$ . Empirically, given large numbers of samples, PPO achieves high performance, is stable and robust to hyperparameters. However, it was developed for relatively small
92
+
93
+ batch sizes ( $\approx 100$ parallel envs). We find that in the large-scale setting ( $>10k$ envs), it is suboptimal because many parallel envs are sampling nearly identical on-policy data.
94
+
95
+ # 4. Split and Aggregate Policy Gradients
96
+
97
+ Policy gradient methods are highly sensitive to the variance in the estimate of gradient. Since CPU-based simulators typically run only 100s of environments in parallel, conventional wisdom is to simply sample on-policy data from a Gaussian policy in all the environments since as the number of datapoints increases, the Monte Carlo estimate becomes more accurate. However, this intuition no longer holds in the extremely large-scale data setting where we have hundreds of thousands of environments on GPU-accelerated simulators like IsaacGym. IID sampling from a Gaussian policy will lead to most actions lying near the mean, and most environments will execute similar actions, leading to wasted data (fig. 2).
98
+
99
+ We propose to efficiently use large numbers of $N$ environments using a divide-and-conquer setup. Our algorithm trains a variety of $M$ policies $\pi_1, \ldots, \pi_M$ instead of having just one policy. However, simply training multiple policies by dividing environments between them is also inefficient. This is equivalent to training an algorithm with different seeds and choosing the best seed. One approach is to add hyperparameter mutation (Petrenko et al., 2023) to the policies and choosing the hyperparameters that perform the best among all of them. However, even in this case, all of the data from the "worse" policies goes to waste, and the only information gained is that some combinations of hyperparameters are bad, even though the policies themselves may have discovered high reward trajectories. We need to somehow aggregate data from multiple policies into a single update. We propose to do this via off-policy updates.
100
+
101
+ # 4.1. Aggregating data using off-policy updates
102
+
103
+ One of the major drawbacks of on-policy RL is its inability to use data from past versions of the policy. One solution is to use importance sampling (Degris et al., 2012; Meng et al., 2023) to weight updates using data from different policies. In practice, this is not used since given limited compute it is beneficial to sample on-policy experience that is more directly relevant. However, this is no longer true in the large batch setting where enough on-policy data is available. In this case, it becomes advantageous to have multiple policies $\pi_1, \ldots, \pi_M$ and use them to sample diverse data, even if it is off-policy. In particular, to update policy $\pi_i$ using data from policy $\pi_j$ , $j \in \mathcal{X}$ we use (Meng et al., 2023)
104
+
105
+ $$
106
+ L _ {o f f} \left(\pi_ {i}; \mathcal {X}\right) = \frac {1}{| \mathcal {X} |} \sum_ {j \in \mathcal {X}} \underset {(s, a) \sim \pi_ {j}} {\mathbb {E}} \left[ \min \left(r _ {\pi_ {i}} (s, a), \right. \right. \tag {3}
107
+ $$
108
+
109
+ $$
110
+ \operatorname {c l i p} \left(r _ {\pi_ {i}} (s, a), \mu (1 - \epsilon), \mu (1 + \epsilon))\right) A ^ {\pi_ {i, o l d}} (s, a) ]
111
+ $$
112
+
113
+ ![](images/5cebd23bf812b26cb226ed2855d560c362c1ceb2932f1dec0fb6191d47f2007f.jpg)
114
+ Figure 3. We illustrate one particular variant of SAPG which performs well. There is one leader and $M - 1$ followers ( $M = 3$ in figure). Each policy has the same backbone with shared parameters $B_{\theta}$ but is conditioned on local learned parameters $\phi_i$ . Each policy gets a block of $\frac{N}{M}$ environments to run. The leader is updated with its on-policy data as well as importance-sampled off-policy data from the followers. Each of the followers only uses their own data for on-policy updates.
115
+
116
+ where $r_{\pi_i}(s,a) = \frac{\pi_i(s,a)}{\pi_j(s,a)}$ and $\mu$ is an off-policy correction term $\mu = \frac{\pi_{i,old}(s,a)}{\pi_j(s,a)}$ . Note that when $i = j$ , then $\pi_j = \pi_{i,old}$ and this reduces to the on-policy update as expected. This is then scaled and combined with the on-policy term (eq. 2)
117
+
118
+ $$
119
+ L \left(\pi_ {i}\right) = L _ {o n} \left(\pi_ {i}\right) + \lambda \cdot L _ {o f f} \left(\pi_ {i}; \mathcal {X}\right) \tag {4}
120
+ $$
121
+
122
+ The update target for the critic is calculated using $n$ -step returns (here $n = 3$ ).
123
+
124
+ $$
125
+ V _ {o n, \pi_ {j}} ^ {\text {t a r g e t}} (s _ {t}) = \sum_ {k = t} ^ {t + 2} \gamma^ {k - t} r _ {k} + \gamma^ {3} V _ {\pi_ {j}, o l d} (s _ {t + 3}) \tag {5}
126
+ $$
127
+
128
+ However, this is not possible for off-policy data. Instead, we assume that an off-policy transition can be used to approximate a 1-step return. The target equations are as follows
129
+
130
+ $$
131
+ V _ {o f f, \pi_ {j}} ^ {\text {t a r g e t}} \left(s _ {t} ^ {\prime}\right) = r _ {t} + \gamma V _ {\pi_ {j}, o l d} \left(s _ {t + 1} ^ {\prime}\right) \tag {6}
132
+ $$
133
+
134
+ The critic loss is then
135
+
136
+ $$
137
+ L _ {o n} ^ {\text {c r i t i c}} \left(\pi_ {i}\right) = \underset {(s, a) \sim \pi_ {i}} {\mathbb {E}} \left[ \left(V _ {\pi_ {i}} (s) - V _ {o n, \pi_ {i}} ^ {\text {t a r g e t}} (s)\right) ^ {2} \right] \tag {7}
138
+ $$
139
+
140
+ $$
141
+ L _ {o f f} ^ {\text {c r i t i c}} \left(\pi_ {i}; \mathcal {X}\right) = \frac {1}{| \mathcal {X} |} \sum_ {j \in \mathcal {X}} \underset {(s, a) \sim \pi_ {j}} {\mathbb {E}} \left[ \left(V _ {\pi_ {i}} (s) - V _ {o f f, \pi_ {i}} ^ {\text {t a r g e t}} (s)\right) ^ {2} \right] \tag {8}
142
+ $$
143
+
144
+ $$
145
+ L ^ {\text {c r i t i c}} \left(\pi_ {i}\right) = L _ {\text {o n}} ^ {\text {c r i t i c}} \left(\pi_ {i}\right) + \lambda \cdot L _ {\text {o f f}} ^ {\text {c r i t i c}} \left(\pi_ {i}\right) \tag {9}
146
+ $$
147
+
148
+ Given this update scheme, we must now choose a suitable $\mathcal{X} \subseteq \{1, \ldots, M\}$ and the set of $i$ s to update, along with the correct ratio $\lambda$ . We explore several variants below.
149
+
150
+ # 4.2. Symmetric aggregation
151
+
152
+ A simple choice is to update all $i' s$ with the data from all policies. In this case, we choose to update each policy $i \in \{1, 2, \dots, M\}$ and for each $i$ use off-policy data from all other policies $\mathcal{X} = \{1, 2, i - 1, i + 1, \dots, M\}$ . Since gradients from off-policy data are typically noisier than gradients from on-policy data, we choose $\lambda = 1$ , but subsample the off-policy data such that we use equal amounts of on-policy and off-policy data.
153
+
154
+ # 4.3. Leader-follower aggregation
155
+
156
+ While the above choice prevents data wastage, since all the policies are updated with the same data, it can lead to policies converging in behavior, reducing data diversity and defeating the purpose of having separate policies. To resolve this, we break symmetry by designating a "leader" policy $i = 1$ which gets data from all other policies $\mathcal{X} = \{2,3,\dots,M\}$ while the rest are "followers" and only use their own on-policy data for updates $\mathcal{X} = \phi$ . As before, we choose $\lambda = 1$ , but subsample the off-policy data for the leader such that we use equal amounts of on-policy and off-policy data in a mini-batch update.
157
+
158
+ # 4.4. Encouraging diversity via latent conditioning
159
+
160
+ What is the right parameterization for this set of policies? One simple choice is to have a disjoint set of parameters for each with no sharing at all. However, this implies that each follower policy has no knowledge of any other policy whatsoever and may get stuck in a bad local optimum. We mitigate this by having a shared backbone $B_{\theta}$ for each policy conditioned on hanging parameters $\phi_j$ local to each
161
+
162
+ ![](images/e4d34a3bf6dd21e14a99efee58a1e5d8f2fc32bc3bbb5e00cd6c0c6baafb16a3.jpg)
163
+ Figure 4. Two data aggregation schemes we consider in this paper. (Left) one policy is a leader and uses data from each of the followers (Right) a symmetric scheme where each policy uses data from all others. In each case, the policy also uses its own on-policy data.
164
+
165
+ policy. Similarly, the critic consists of a shared backbone $C_{\psi}$ conditioned on parameters $\phi_j$ . The parameters $\psi, \theta$ are shared across the leader and all followers and updated with gradients from each objective, while the parameters $\phi_j$ are only updated with the objective for that particular policy. We choose $\phi_j \in \mathbb{R}^{32}$ for complex environments while $\phi_j \in \mathbb{R}^{16}$ for the relatively simpler ones.
166
+
167
+ # 4.5. Enforcing diversity through entropy regularization
168
+
169
+ To further encourage diversity between different policies, in addition to the PPO update loss $L_{on}$ we add an entropy loss to each of the followers with different coefficients. In particular, the entropy loss is $\mathcal{H}(\pi(a|s))$ . The overall loss for the policy $i$ (or the $(i-1)$ th) follower is $L(\pi_i) = L_{on}(\pi_i) + \sigma(i-1) \cdot \mathcal{H}(\pi(a|s))$ . The leader doesn't have any entropy loss. Different scales of coefficients produce policies with different explore-exploit tradeoffs. Followers with large entropy losses tend to explore more actions even if they are suboptimal, while those with small coefficients stay close to optimal trajectories and refine them. This leads to a large data coverage with a good mix of optimal as well as diverse trajectories. We treat $\sigma$ as a hyperparameter.
170
+
171
+ # 4.6. Algorithm: SAPG
172
+
173
+ We roll out $M$ different policies and collect data $\mathcal{D}_1, \ldots, \mathcal{D}_M$ for each. Follower policies $2, \ldots, M$ are updated using the usual PPO objective with minibatch gradient descent on their respective datasets. However, we augment the dataset of the leader $\mathcal{D}_1$ with data from $\mathcal{D}_2, \ldots, \mathcal{D}_M$ , weighed by the importance weight $\mu$ . The leader is then updated by minibatch gradient descent as well.
174
+
175
+ # 5. Experimental Setup
176
+
177
+ We conduct experiments on 5 manipulation tasks (3 hard and 2 easy) and compare them against SOTA methods for the large-scale parallelized setting. We use a GPU-accelerated simulator, IsaacGym (Makoviychuk et al., 2021) which allows simulating tens of thousands of environments in par
178
+
179
+ # Algorithm 1 SAPG
180
+
181
+ Initialize shared parameters $\theta, \psi$
182
+ For $i \in \{1, \dots, M\}$ initialize parameters $\phi_i$
183
+ Initialize $N$ environments $E_1, \dots, E_N$ .
184
+ Initialize data buffers for each policy $\mathcal{D}_1, \dots, \mathcal{D}_M$ .
185
+ for $i = 1, 2, \dots, \mathbf{do}$
186
+ for $j = 1, 2, \dots, M$ do
187
+ $\mathcal{D}_j \gets \text{COLLECTDATA}(E_{j\frac{N}{M}:(j+1)\frac{N}{M}}, \theta, \psi_j)$
188
+ end for
189
+ $L \gets 0$
190
+ Sample $|\mathcal{D}_1|$ transitions from $\cup_{j=2}^M \mathcal{D}_i$ to get $\mathcal{D}_1'$ .
191
+ $L \gets L + \text{OFFPOLICYLOSS}(\mathcal{D}_1')$ $L \gets L + \text{ONPOLICYLOSS}(\mathcal{D}_1)$
192
+ for $j = 2, \dots, M$ do
193
+ $L \gets L + \text{ONPOLICYLOSS}(\mathcal{D}_j)$
194
+ end for
195
+ Update $\theta \gets \theta - \eta \nabla_\theta L$
196
+ Update $\psi \gets \psi - \eta \nabla_\psi L$
197
+ end for=0
198
+
199
+ allele on a single GPU. In our experiments, we focus on the large-scale setting and simulate 24576 parallel environments unless otherwise specified. Note that this is two orders of magnitude larger than the number of environments PPO was developed on (Schulman et al., 2017), and we indeed find that vanilla PPO does not scale to this setting.
200
+
201
+ For testing, we choose a suite of manipulation environments that are challenging and require large-scale data to learn effective policies (Petrenko et al., 2023). In particular, these consist of dexterous hands mounted on arms leading to high numbers of degrees of freedom (up to 23). This is challenging because sample complexity scales exponentially with degrees of freedom. They are under-actuated and involve manipulating free objects in certain ways while under the influence of gravity. This leads to complex, non-linear interactions between the agent and the environment such as contacts between robot and object, object and table, and robot and table. Overall, this implies that to learn effective policies an agent must collect a large amount of relevant experience and also use it efficiently for learning.
202
+
203
+ # 5.1. Tasks
204
+
205
+ We consider a total of 5 tasks grouped into two parts: Three hard tasks and two easy tasks. Hard and easy is defined by the success reward achieved by off-policy (in particular, PQL) methods in these environments. In easy environments, even Q-learning-based off-policy methods can obtain nonzero performance but not in hard tasks. See appendix sec. A.
206
+
207
+ Hard Difficulty Tasks All three hard tasks are based on the Allegro-Kuka environments(Petrenko et al., 2023). These consist of an Allegro Hand (16 DoF) mounted on
208
+
209
+ a Kuka arm (7 dof). The performance of the agent in the above three tasks is measured by the successes metric which is defined as the number of successes in a single episode. Three tasks include:
210
+
211
+ - Regrasping: The object must be lifted from the table and held near a goal position $\mathbf{g}_t \in \mathbb{R}^3$ for $K = 30$ steps. This is called a "success". The target position and object position are reset to a random location after every success.
212
+ - Throw: The object must be lifted from the table and thrown into a bucket at $\mathbf{g}_t \in \mathbb{R}^3$ placed out of reach of the arm. The bucket and the object position are reset randomly after every successful attempt.
213
+ - Reorientation: Pick up the object and reorient it to a particular target pose $\mathbf{g}_{\mathbf{t}} \in \mathbb{R}^{7}$ (position + orientation). The target pose is reset once the agent succeeds. This means that the agents needs to reorient the object in different poses in succession, which may sometimes entail placing the objects on the table and lifting it up in a different way.
214
+
215
+ Easy Difficulty Tasks: In addition, we test on the following dexterous hand tasks. As before, the observation space consists of the joint angles and velocities $\mathbf{q}_t$ , $\dot{\mathbf{q}}_t$ , object pose $\mathbf{x}_t$ and velocities $\mathbf{v}_t, \omega_t$ .
216
+
217
+ - Shadow Hand: We test in-hand reorientation task of a cube using the 24-DoF Shadow Hand.
218
+ - Allegro Hand: This is the same as the previous in-hand reorientation task but with the 16-DoF Allegro Hand.
219
+
220
+ # 5.2. Baselines
221
+
222
+ We test against state-of-the-art RL methods designed for the GPU-accelerated large-scale setting we consider in this paper. We compare against both on-policy (Petrenko et al., 2023) and off-policy (Li et al., 2023) variants as well as vanilla PPO (Schulman et al., 2017).
223
+
224
+ - PPO (Proximal Policy Optimization) (Schulman et al., 2017): In our setting, we just increase the data throughput for PPO by increasing the batch size proportionately to the number of environments. In particular, we see over two orders of magnitude increase in the number of environments (from 128 to 24576).
225
+ - **Parallel Q-Learning** (Li et al., 2023) A parallelized version of DDPG with different mixed exploration i.e. varying exploration noise across environments to further aid exploration. We use this baseline to compare if off-policy methods can outperform on-policy methods when the data collection capacity is high.
226
+ - DexPBT (Petrenko et al., 2023) A framework that combines population-based training with PPO. $N$ Environments are divided into $M$ groups, each containing $\frac{N}{M}$ environments. $M$ separate policies are trained using PPO in each group of environments with different hyperparameters. At regular intervals, the worst-performing policies
227
+
228
+ are replaced with the weights of best-performing policies and their hyperparameters are mutated randomly.
229
+
230
+ Due to the complexity of these tasks, experiments take about 48-60 hours on a single GPU, collecting $\approx 2\mathrm{e}10$ transitions. Since we run experiments on different machines, the wall clock time is not directly comparable and we compare runs against the number of samples collected. We run 5 seeds for each experiment and report the mean and standard error in the plots. In each plot, the solid line is $y(t) = \frac{1}{n}\sum_{i}y_{i}(t)$ while the width of the shaded region is determined by standard error $\frac{2}{\sqrt{n}}\sum_{i}(y(t) - y_{i}(t))^{2}$ .
231
+
232
+ For each task, we use $M = 6$ policies for our method and DexPBT in a total of $N = 24576$ environments for each method. We use the dimension of learned parameter $\phi_j \in \mathbb{R}^{32}$ for the AllegroKuka tasks while we use $\phi_j \in \mathbb{R}^{16}$ for the ShadowHand and AllegroHand tasks since they are relatively simpler. We use a recurrent policy for the AllegroKuka tasks and an MLP policy for the Shadow Hand and Allegro Hand tasks and use PPO to train them. We collect 16 steps of experience per instance of the environment before every PPO update step. For SAPG, we tune the entropy coefficient $\sigma$ by choosing the best from a small set $\{0, 0.003, 0.005\}$ for each environment. We find that $\sigma = 0$ works best for all ShadowHand, AllegroHand, Regrasping, and Throw while $\sigma = 0.005$ works better for Reorientation.
233
+
234
+ # 6. Results and Analysis
235
+
236
+ In the large-scale data setting, we are primarily concerned with optimality while sample-efficiency and wall-clock time are secondary concerns. This is because data is readily available—one only needs to spin up more GPUs, what is really important is how well our agent performs in the downstream tasks. Indeed, this aligns with how practitioners use RL algorithms in practice (Agarwal et al., 2022; Cheng et al., 2023; OpenAI et al., 2018), where agents are trained with lots of domain randomization in large simulations and the primary concern is how well the agent can adapt and learn in these environments since this directly translates to real-world performance.
237
+
238
+ # 6.1. AllegroKuka tasks
239
+
240
+ The AllegroKuka tasks (Throw, Regrasping, and Reorientation) are hard due to large degrees of freedom. The environment also offers the possibility of many emergent strategies such as using the table to reorient the cube, or using gravity to reorient the cube. Therefore, a large amount of data is required to attain good performance on these tasks. Following Petrenko et al. (2023) we use the number of successes as a performance metric on these tasks. Note that the DexPBT baseline directly optimizes for success by mutating the re
241
+
242
+ ![](images/b110e4d6084b60ee3f9b087413b3ffe5a44191decc4e437450835ccf4e4d409c.jpg)
243
+
244
+ ![](images/a93706e05f5ef8d25209a1a2fcacf302e049eaf2827c609e0934fa2d774d5fad.jpg)
245
+
246
+ ![](images/5d04acfb2bc908cbaa02a131bfcf3d8e9e31a46b130acc054e7ddce5813110a3.jpg)
247
+
248
+ ![](images/7396656c6183050ec8e763e1eabfc474cba92c045134e81321790cb95783a839.jpg)
249
+
250
+ ![](images/ff17e4a10a71b3ef6e9aea8bf9dda69aeb568dcb6b610fbb64114582653190b9.jpg)
251
+
252
+ ![](images/5a4b040336a30f4995220d2a3d55da24573d54a09bd67cbf9125807894a37ef6.jpg)
253
+ Figure 5. Performance curves of SAPG with respect to PPO, PBT and PQL baselines. On AllegroKuka tasks, PPO and PQL barely make progress and SAPG beats PBT. On Shadow Hand and Allegro Kuka Reorientation, SAPG performs best with an entropy coefficient of 0.005 while the coefficient is 0 for other environments. On ShadowHand and AllegroHand, while PQL is initially more sample efficient, SAPG is more performant in the longer run. AllegroKuka environments use successes as a performance metric while AllegroHand and ShadowHand use episode rewards.
254
+
255
+ <table><tr><td>ALGORITHM</td><td>ALLEGROHAND</td><td>SHADOWHAND</td><td>REGRASPING</td><td>THROW</td><td>REORIENTATION</td></tr><tr><td>PPO (SCHULMAN ET AL., 2017)</td><td>1.01e4±6.31e2</td><td>1.07e4±4.90e2</td><td>1.25 ± 1.15</td><td>16.8 ± 0.48</td><td>2.85 ± 0.05</td></tr><tr><td>PBT (PETRENKO ET AL., 2023)</td><td>7.28e3±1.24e3</td><td>1.01e4±1.80e2</td><td>31.9 ± 2.26</td><td>19.2 ± 1.07</td><td>23.2 ± 4.86</td></tr><tr><td>PQL (LI ET AL., 2023)</td><td>1.01e4±5.28e2</td><td>1.28e4±1.25e2</td><td>2.73 ± 0.02</td><td>2.62 ± 0.08</td><td>1.66 ± 0.11</td></tr><tr><td>SAPG (OURS, COEF=0)</td><td>1.23e4 ± 3.29e2</td><td>1.17e4±2.64e2</td><td>35.7 ± 1.46</td><td>23.7 ± 0.74</td><td>33.2 ± 4.20</td></tr><tr><td>SAPG (OURS, COEF=0.005)</td><td>9.14e3±8.38e2</td><td>1.28e4 ± 2.80e2</td><td>33.4 ± 2.25</td><td>18.7 ± 0.43</td><td>38.6 ± 0.63</td></tr></table>
256
+
257
+ Table 1. Performance after 2e10 samples for different methods with standard error. This is measured by successes for the AllegroKuka tasks and by episode rewards for in-hand reorientation tasks. Across environments, we find that our method performs better than baselines.
258
+
259
+ ward scales to achieve higher success rate, whereas our method can only optimize a fixed reward function. Despite this, we see that SAPG achieves a $12 - 66\%$ higher success rate than DexPBT on regrasping, throw and reorientation. SAPG performs $66\%$ better than PBT on the challenging reorientation task. Note that vanilla PPO and PQL are unable to learn any useful behaviors on these hard tasks.
260
+
261
+ # 6.2. In-hand reorientation
262
+
263
+ The AllegroHand and ShadowHand reorientation tasks from Li et al. (2023) are comparatively easier since they have lower degrees of freedom and the object doesn't move around much and remains inside the hand. On these tasks, we observe that PQL and PPO are able to make significant progress. In particular, we find that PQL is very sample-efficient because it is off-policy and utilizes past data for updates. However, we find that SAPG achieves higher asymp-
264
+
265
+ totic performance. This is because on-policy methods are better at latching onto high reward trajectories and do not have to wait several iterations for the Bellman backup to propagate back to initial states. As discussed previously, in large-scale settings in simulation, we are primarily concerned with asymptotic performance since we want to maximize the downstream performance of our agents (within a reasonable training time budget). We see that on Allegro-Hand, SAPG beats PQL by a $21\%$ margin, while on the ShadowHand task it achieves comparable performance. On these tasks, both PBT and PPO generally perform worse. This is because PPO is not able to efficiently leverage the large batch size. PBT loses the benefit of its hyperparameter mutation because the environment is simpler and the default hyperparameters work well, so it roughly reduces to simple PPO in $\frac{N}{M}$ environments.
266
+
267
+ ![](images/6e39b5e0eb010fd1b0201a1f955d84ed4e368989cec7099716bc49090143553d.jpg)
268
+
269
+ ![](images/c9d389f8f0d49cafe453c651a5516e01268f3239eb012e4ed4d6a05b0afbb420.jpg)
270
+
271
+ ![](images/fa1a2ce92a11e5e2174a25ddf5a60d1f58ef88e6f5cc6332f4440dea8d567a79.jpg)
272
+
273
+ ![](images/d4688adf993c9b53f1852d99a4ec1fefd636863d17c32263d1aa7b1d2dd07e24.jpg)
274
+
275
+ ![](images/2c19761b7b6ece09d677ee035a290c983204c1a22dcd6093d07a54f95ad937e5.jpg)
276
+
277
+ ![](images/a032e10112c66fd38bf6ecb179638f5c7b41e44c0c0d7ae627ae51e68147a8af.jpg)
278
+ Figure 6. Performance curves for ablations of our method. The variants of our method with a symmetric aggregation scheme or without an off-policy combination perform significantly worse. Entropy regularization affects performance across environments, giving a benefit in reorientation. Using a high off-policy ratio without subsampling data leads to worse performance on ShadowHand and AllegroHand.
279
+
280
+ # 6.3. Ablations
281
+
282
+ The core idea behind SAPG is to combine data from different policies instead of optimizing a single policy with an extremely large batch. In this section, we will analyze our specific design choices for how we combine data (choice of $i$ and $\mathcal{X}$ and $\lambda$ ) and for how we enforce diversity among the data collected by the policies. In particular, we have the following variants
283
+
284
+ - SAPG (with entropy coef) As discussed in sec. 5.2, here we add an entropy loss to the followers to encourage data diversity. We explore different choices for the scaling coefficient of this loss $\sigma \in \{0, 0.005, 0.003\}$ .
285
+ - SAPG (high off-policy ratio) In SAPG, when updating the leader, we subsample the off-policy data from the followers such that the off-policy dataset size matches the on-policy data. This is done because off-policy data is typically noisier and we do not want to drown out the gradient from on-policy data. In SAPG with a high off-policy ratio, we remove the subsampling step and instead see the impact of computing the gradient on the entire combined off-policy + on-policy dataset.
286
+ - Ours (symmetric) In SAPG, we choose $i = 1$ to be the "leader" and the rest are "followers". Only the leader receives off-policy data while the followers use the standard on-policy loss. A natural alternative is where there are no privileged policies and each policy is updated with off-policy data from all others as discussed in sec. 4.2.
287
+
288
+ We observe that SAPG outperforms or achieves comparable
289
+
290
+ performance to the entropy-regularized variant except in the Reorientation environment where the variant with coefficient $5\mathrm{e} - 3$ performs up to $16.5\%$ better. Reorientation is the hardest task out of the three AllegroKuka tasks and has a lot of scope for learning emergent strategies such as using the table to move the object around, etc. Explicit exploration might be useful in discovering these behaviors.
291
+
292
+ The variant of ours which uses all the off-policy data is significantly worse on the AllegroHand and ShadowHand tasks and marginally worse on Regrasping and Throw environments. It is more sample efficient than SAPG on Reorientation but achieves lower asymptotic performance. This could be because in the simple environments, additional data has marginal utility. In the harder AllegroKuka environments, it is beneficial to use all the data initially since it may contain optimal trajectories that would otherwise be missed. However, once an appreciable level of performance is achieved, it becomes better to subsample to prevent the noise in the off-policy update from drowning out the on-policy gradient.
293
+
294
+ Finally, the symmetric variant of our method performs significantly worse across the board. This is possibly because using all the data to update each policy leads to them converging in behavior. If all the policies start executing the same actions, the benefit of data diversity is lost and SAPG reduces to vanilla PPO. Of course, there is a rich space of possible algorithms depending on particular choices of how data is aggregated and diversity is encouraged of which we have explored a small fraction.
295
+
296
+ ![](images/44d5cd2a14ee3438a12c3ceb44b65825151a221ba2502e0a09bf49c25b912d4b.jpg)
297
+ Figure 7. Curves comparing reconstruction error for states visited during training using top- $k$ PCA components for SAPG (Ours), PPO and a randomly initialized policy
298
+
299
+ ![](images/0f0fc5fa547292da56b7c1553c1aed4795143071d720d046440659b107ea0f55.jpg)
300
+
301
+ ![](images/92b97ae7daf52583c41eb4bd92190dd2c295a3947f9e67decefae5ed3cc7a30d.jpg)
302
+
303
+ ![](images/7595579e353973eaf78f6f22bed8b8564f7adb2a9401a3b66f9b7e0c736546db.jpg)
304
+
305
+ ![](images/15f89e060f335b8cfe09f1c70e1ec93de25f4c834a8b2a2ccfd2edc80e191487.jpg)
306
+ Figure 8. Curves comparing reconstruction error for states visited during training using MLPs with varying hidden layer dimensions for SAPG (Ours), PPO and a randomly initialized policy
307
+
308
+ ![](images/b36d73734883fd8cdab6afd6525dde2d04fc50f6c4b395223bc27e3628e6737e.jpg)
309
+
310
+ ![](images/e5d96e8f4f749e4e5f5332c08696b5a40ad539cbb772c6cb5ef73c4c60d7ddae.jpg)
311
+
312
+ # 6.4. Diversity in exploration
313
+
314
+ To analyze why our method outperforms the baseline method, we conduct experiments comparing the diversity of states visited by each algorithm during training. We devise two metrics to measure the diversity of the state space and find that our method beats PPO in both metrics.
315
+
316
+ - PCA - We compute the reconstruction error of a batch of states using k most significant components of PCA and plot this error as a function of k. In general, a set that has variation along fewer dimensions of space can be compressed with fewer principal vectors and will have lower reconstruction error. This metric therefore measures the extent to which the policy explores different dimensions of state space. Figure-7 contains the plots for this metric. We find that the rate of decrease in reconstruction error with an increase in components is the slowest for our method.
317
+ - MLP - We train feedforward networks with small hidden layers on the task of input reconstruction on batches of environment states visited by our algorithm and PPO during training. The idea behind this is that if a batch of states has a more diverse data distribution then it should be harder to reconstruct the distribution using small hidden layers because high diversity implies that the distribution is less compressible. Thus,
318
+
319
+ high training error on a batch of states is a strong indicator of diversity in the batch. As can be observed from the plots in Figure-8, we find that training error is consistently higher for our method compared to PPO across different hidden layer sizes.
320
+
321
+ # 7. Conclusion
322
+
323
+ In this work, we present a method to scale reinforcement learning to utilize large simulation capacity. We show how current algorithms obtain diminishing returns if we perform naive scaling by batch size and do not use the increased volume of data efficiently. Our method achieves state-of-the-art performance on hard simulation benchmarks.
324
+
325
+ # Impact Statement
326
+
327
+ 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 specifically highlighted here.
328
+
329
+ # Acknowledgements
330
+
331
+ We thank Alex Li and Russell Mendonca for fruitful discussions regarding the method and insightful feedback. We would also like to thank Mihir Prabhudesai and Kevin
332
+
333
+ Gmelin for proofreading an earlier draft. This project was supported in part by ONR N00014-22-1-2096 and NSF NRI IIS-2024594.
334
+
335
+ # References
336
+
337
+ Agarwal, A., Kumar, A., Malik, J., and Pathak, D. Legged locomotion in challenging terrains using ego-centric vision. In Conference on Robot Learning, 2022. URL https://api_semanticscholar.org/CorpusID:252733339.
338
+ Chen, T., Xu, J., and Agrawal, P. A system for general in-hand object re-orientation, 2021.
339
+ Cheng, X., Shi, K., Agarwal, A., and Pathak, D. Extreme parkour with legged robots. ArXiv, abs/2309.14341, 2023. URL https://api-semanticscholar.org/CorpusID:262826068.
340
+ Clevert, D.-A., Unterthiner, T., and Hochreiter, S. Fast and accurate deep network learning by exponential linear units (elus), 2016.
341
+ Degris, T., White, M., and Sutton, R. S. Off-policy actor-critic. CoRR, abs/1205.4839, 2012. URL http:// arxiv.org/abs/1205.4839.
342
+ Espeholt, L., Soyer, H., Munos, R., Simonyan, K., Mnih, V., Ward, T., Doron, Y., Firoiu, V., Harley, T., Dunning, I., Legg, S., and Kavukcuoglu, K. IMPALA: scalable distributed deep-rl with importance weighted actor-learner architectures. CoRR, abs/1802.01561, 2018. URL http://arxiv.org/abs/1802.01561.
343
+ Fakoor, R., Chaudhari, P., and Smola, A. J. P3o: Policy-on policy-off policy optimization. In Adams, R. P. and Gogate, V. (eds.), Proceedings of The 35th Uncertainty in Artificial Intelligence Conference, volume 115 of Proceedings of Machine Learning Research, pp. 1017-1027. PMLR, 22-25 Jul 2020. URL https://proceedings.mlr.press/v115/fakoor20a.html.
344
+ Fu, Z., Cheng, X., and Pathak, D. Deep whole-body control: Learning a unified policy for manipulation and locomotion. ArXiv, abs/2210.10044, 2022. URL https://api.sementicscholar.org/CorpusID:252968218.
345
+ Haarnoja, T., Zhou, A., Abbeel, P., and Levine, S. Soft actor-critic: Off-policy maximum entropy deep reinforcement learning with a stochastic actor. ArXiv, abs/1801.01290, 2018. URL https://api_semanticscholar.org/CorpusID:28202810.
346
+
347
+ Handa, A., Allshire, A., Makoviychuk, V., Petrenko, A., Singh, R., Liu, J., Makoviichuk, D., Wyk, K. V., Zhurkevich, A., Sundaralingam, B., Narang, Y. S., Lafleche, J.-F., Fox, D., and State, G. Dextreme: Transfer of agile in-hand manipulation from simulation to reality. 2023 IEEE International Conference on Robotics and Automation (ICRA), pp. 5977-5984, 2022. URL https://apisemantic scholar.org/CorpusID:253107794.
348
+ Hastings, W. K. Monte Carlo sampling methods using Markov chains and their applications. Biometrika, 57(1): 97-109, 04 1970. ISSN 0006-3444.
349
+ Horgan, D., Quan, J., Budden, D., Barth-Maron, G., Hessel, M., van Hasselt, H., and Silver, D. Distributed prioritized experience replay. CoRR, abs/1803.00933, 2018. URL http://arxiv.org/abs/1803.00933.
350
+ Kakade, S. and Langford, J. Approximately optimal approximate reinforcement learning. In Proceedings of the Nineteenth International Conference on Machine Learning, pp. 267-274, 2002.
351
+ Konda, V. and Tsitsiklis, J. Actor-critic algorithms. In Solla, S., Leen, T., and Müller, K. (eds.), Advances in Neural Information Processing Systems, volume 12. MIT Press, 1999. URL https://proceedings.neurips.cc/paper_files/paper/1999/file/6449f44a102fde848669bdd9eb6b76fa-Paper.pdf.
352
+ Li, Z., Chen, T., Hong, Z.-W., Ajay, A., and Agrawal, P. Parallel $q$ -learning: Scaling off-policy reinforcement learning under massively parallel simulation, 2023.
353
+ Lillicrap, T. P., Hunt, J. J., Pritzel, A., Heess, N., Erez, T., Tassa, Y., Silver, D., and Wierstra, D. Continuous control with deep reinforcement learning, 2019.
354
+ Makoviychuk, V., Wawrzyniak, L., Guo, Y., Lu, M., Storey, K., Macklin, M., Hoeller, D., Rudin, N., Allshire, A., Handa, A., et al. Isaac gym: High performancegpu-based physics simulation for robot learning. arXiv preprint arXiv:2108.10470, 2021.
355
+ Meng, W., Zheng, Q., Pan, G., and Yin, Y. Off-policy proximal policy optimization. Proceedings of the AAAI Conference on Artificial Intelligence, 37(8): 9162-9170, June 2023. ISSN 2159-5399. doi: 10.1609/ aaai.v37i8.26099. URL http://dx.doi.org/10. 1609/aaai.v37i8.26099.
356
+ Miki, T., Lee, J., Hwangbo, J., Wellhausen, L., Koltun, V., and Hutter, M. Learning robust perceptive locomotion for quadrupedal robots in the wild. Science Robotics, 7 (62):eabk2822, 2022.
357
+
358
+ Mnih, V., Kavukcuoglu, K., Silver, D., Graves, A., Antonoglou, I., Wierstra, D., and Riedmiller, M. A. Playing atari with deep reinforcement learning. ArXiv, abs/1312.5602, 2013. URL https://api.sementicscholar.org/CorpusID:15238391.
359
+ Mnih, V., Badia, A. P., Mirza, M., Graves, A., Lillicrap, T. P., Harley, T., Silver, D., and Kavukcuoglu, K. Asynchronous methods for deep reinforcement learning. CoRR, abs/1602.01783, 2016. URL http://arxiv.org/abs/1602.01783.
360
+ Nair, A., Srinivasan, P., Blackwell, S., Alcicek, C., Fearon, R., Maria, A. D., Panneershelvam, V., Suleyman, M., Beattie, C., Petersen, S., Legg, S., Mnih, V., Kavukcuoglu, K., and Silver, D. Massively parallel methods for deep reinforcement learning. CoRR, abs/1507.04296, 2015. URL http://arxiv.org/abs/1507.04296.
361
+ OpenAI, Andrychowicz, M., Baker, B., Chociej, M., Józefowicz, R., McGrew, B., Pachocki, J., Petron, A., Plappert, M., Powell, G., Ray, A., Schneider, J., Sidor, S., Tobin, J., Welinder, P., Weng, L., and Zaremba, W. Learning dexterous in-hand manipulation. CoRR, abs/1808.00177, 2018. URL http://arxiv.org/abs/1808.00177.
362
+ Petrenko, A., Allshire, A., State, G., Handa, A., and Makoviychuk, V. Dexpbt: Scaling up dexterous manipulation for hand-arm systems with population based training. In Bekris, K. E., Hauser, K., Herbert, S. L., and Yu, J. (eds.), Robotics: Science and Systems XIX, Daegu, Republic of Korea, July 10-14, 2023, 2023. doi: 10.15607/RSS.2023.XIX.037. URL https://doi.org/10.15607/RSS.2023.XIX.037.
363
+ Rudin, N., Hoeller, D., Reist, P., and Hutter, M. Learning to walk in minutes using massively parallel deep reinforcement learning, 2022.
364
+ Schulman, J., Levine, S., Abbeel, P., Jordan, M., and Moritz, P. Trust region policy optimization. In Bach, F. and Blei, D. (eds.), Proceedings of the 32nd International Conference on Machine Learning, volume 37 of Proceedings of Machine Learning Research, pp. 1889-1897, Lille, France, 07-09 Jul 2015. PMLR. URL https://proceedings.mlr.press/v37/schulman15.html.
365
+ Schulman, J., Wolski, F., Dhariwal, P., Radford, A., and Klimov, O. Proximal policy optimization algorithms. ArXiv, abs/1707.06347, 2017. URL https://api.sementicscholar.org/CorpusID:28695052.
366
+ Schulman, J., Moritz, P., Levine, S., Jordan, M., and Abbeel, P. High-dimensional continuous control using generalized advantage estimation, 2018.
367
+
368
+ Sutton, R. S., McAllester, D., Singh, S., and Mansour, Y. Policy gradient methods for reinforcement learning with function approximation. In Solla, S., Leen, T., and Müller, K. (eds.), Advances in Neural Information Processing Systems, volume 12. MIT Press, 1999. URL https://proceedings.neurips.cc/paper_files/paper/1999/file/464d828b85b0bed98e80ade0a5c43b0f-Paper.pdf.
369
+ Vinyals, O., Babuschkin, I., Czarnecki, W. M., Mathieu, M., Dudzik, A., Chung, J., Choi, D. H., Powell, R., Ewalds, T., Georgiev, P., Oh, J., Horgan, D., Kroiss, M., Danihelka, I., Huang, A., Sifre, L., Cai, T., Agapiou, J. P., Jaderberg, M., Vezhnevets, A. S., Leblond, R., Pohlen, T., Dalibard, V., Budden, D., Sulsky, Y., Molloy, J., Paine, T. L., Gulcehre, C., Wang, Z., Pfaff, T., Wu, Y., Ring, R., Yogatama, D., Wünsch, D., McKinney, K., Smith, O., Schaul, T., Lillicrap, T. P., Kavukcuoglu, K., Hassabis, D., Apps, C., and Silver, D. Grandmaster level in starcraft ii using multiagent reinforcement learning. Nature, 575:350 - 354, 2019. URL https://apisemanticscholar.org/CorpusID:204972004.
370
+ Wang, Z., Bapat, V., Heess, N., Mnih, V., Munos, R., Kavukcuoglu, K., and de Freitas, N. Sample efficient actor-critic with experience replay. CoRR, abs/1611.01224, 2016. URL http://arxiv.org/abs/1611.01224.
371
+ Watkins, C. and Dayan, P. Q-learning. Machine Learning, 8:279-292, 1992. URL https://api-semanticscholar.org/CorpusID: 208910339.
372
+ Williams, R. J. Simple statistical gradient-following algorithms for connectionist reinforcement learning. Machine Learning, 8:229-256, 2004. URL https://apisemantic scholar.org/CorpusID:19115634.
373
+
374
+ # A. Task and Environment Details
375
+
376
+ Hard Difficulty Tasks All three hard tasks are based on the Allegro-Kuka environments(Petrenko et al., 2023). These consist of an Allegro Hand (16 dof) mounted on a Kuka arm (7 dof). In each case, the robot must manipulate a cuboidal kept on a fixed table. The observation space is $\mathbf{o}_t = [\mathbf{q},\dot{\mathbf{q}},\mathbf{x}_t,\mathbf{v}_t,\omega_t,\mathbf{g}_t,\mathbf{z}_t]$ , where $\mathbf{q}$ , $\dot{\mathbf{q}}\in \mathbb{R}^{23}$ are the joint angles and velocities respectively of each joint of the robot, $\mathbf{x}_t\in \mathbb{R}^7$ is the pose of the object, $\mathbf{v}_t$ is its linear velocity and $\omega_{t}$ is its angular velocity, $\mathbf{g}_t$ is a task-dependent goal observation and $\mathbf{z}_t$ is auxiliary information pertinent to solving the task such as if the object has been lifted. These tasks consist of a complex environment but a simple reward function allowing opportunities for emergent strategies to be learnt such as in-hand reorientation under the influence of gravity, reorientation against the table, different types of throws and grasps and so on. The performance of the agent in the above three tasks is measured by the successes metric which is defined as the number of successes in a single episode. Three tasks include:
377
+
378
+ - Regrasping - The object must be lifted from the table and held near a goal position $\mathbf{g}_t \in \mathbb{R}^3$ for $K = 30$ steps. This is called a "success". The target position and object position are reset to a random location after every success. The success tolerance $\delta$ defines the maximum error between object pose and goal pose for a success $\| \mathbf{g}_t - (\mathbf{x}_t)_{0:3} \| \leq \delta$ . This tolerance is decreased in a curriculum from $7.5\mathrm{cm}$ to $1\mathrm{cm}$ , decremented by $10\%$ each time the average number of successes in an episode crosses 3. The reward function is a weighted combination of rewards encouraging the hand to reach the object $r_{reach}$ , a bonus $r_{lift}$ , rewards encouraging the hand to move to goal location after lifting $r_{target}$ and a success bonus $r_{success}$ .
379
+ - Throw - The object must be lifted from the table and thrown into a bucket at $\mathbf{g}_t \in \mathbb{R}^3$ placed out of reach of the arm. The bucket and the object position are reset randomly after every successful attempt. The reward function is similar to regrasping with the difference being that the target is now a bucket instead of a point.
380
+ - Reorientation - This task involves picking up the object and reorienting it to a particular target pose $\mathbf{g}_{\mathbf{t}} \in \mathbb{R}^{7}$ (position + orientation). Similar to the regrasping task, there is a success tolerance $\delta$ which is varied in a curriculum. The target pose is reset once the agent succeeds. This means the agents needs to the object in different poses in succession, which may sometimes entail placing the obxfject on the table and lifting it up in a different way. Here too, the reward function is similar to regrasping, with the goal now being a pose in $\mathbb{R}^{7}$ instead of $\mathbb{R}^{3}$
381
+
382
+ Easy Difficulty Tasks: In addition, we test on the following dexterous hand tasks. As before, the observation space consists of the joint angles and velocities $\mathbf{q}_t$ , $\dot{\mathbf{q}}_t$ , object pose $\mathbf{x}_t$ and velocities $\mathbf{v}_t$ , $\omega_t$ . Following previous works (Li et al., 2023), we use the net episode reward as a performance metric for the ShadowHand and AllegroHand tasks.
383
+
384
+ - Shadow Hand: We test on in-hand reorientation task of a cube using the 24-DoF Shadow Hand((OpenAI et al., 2018)). The task is to attain a specified goal orientation (specified as a quaternion) for the cube $\mathbf{g}_t \in \mathbb{R}^4$ . The reward is a combination of the orientation error and a success bonus.
385
+ - Allegro Hand: This is the same as the previous in-hand reorientation task but with the 16-DoF Allegro Hand instead.
386
+
387
+ # B. Training hyperparameters
388
+
389
+ We use two different sets of default hyperparameters for PPO in AllegroKuka and Shadow Hand tasks which are described below.
390
+
391
+ # B.1. AllegroKuka tasks
392
+
393
+ We use a Gaussian policy where the mean network is an LSTM with 1 layer containing 768 hidden units. The observation is also passed through an MLP of with hidden layer dimensions $768 \times 512 \times 256$ and an ELU activation (Clevert et al., 2016) before being input to the LSTM. The sigma for the Gaussian is a fixed learnable vector independent of input observation.
394
+
395
+ <table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>1e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.1</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>16</td></tr><tr><td>LSTM Sequence length</td><td>16</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>2</td></tr></table>
396
+
397
+ # B.2. Shadow Hand
398
+
399
+ We use a Gaussian policy where the mean network is an MLP with hidden layers dimensions $512 \times 512 \times 256 \times 128$ and an ELU activation (Clevert et al., 2016)
400
+
401
+ Table 2. Training hyperparameters for AllegroKuka tasks
402
+
403
+ <table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>5e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.1</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>8</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>5</td></tr></table>
404
+
405
+ Table 3. Training hyperparameters for Shadow Hand
406
+
407
+ # B.3. Allegro Hand
408
+
409
+ We use a Gaussian policy where the mean network is an MLP with hidden layers dimensions $512 \times 256 \times 128$ and an ELU activation.
410
+
411
+ <table><tr><td>Hyperparameter</td><td>Value</td></tr><tr><td>Discount factor, γ</td><td>0.99</td></tr><tr><td>τ</td><td>0.95</td></tr><tr><td>Learning rate</td><td>5e-4</td></tr><tr><td>KL threshold for LR update</td><td>0.016</td></tr><tr><td>Grad norm</td><td>1.0</td></tr><tr><td>Entropy coefficient</td><td>0</td></tr><tr><td>Clipping factor ε</td><td>0.2</td></tr><tr><td>Mini-batch size</td><td>num_envs · 4</td></tr><tr><td>Critic coefficient λ&#x27;</td><td>4.0</td></tr><tr><td>Horizon length</td><td>8</td></tr><tr><td>Bounds loss coefficient</td><td>0.0001</td></tr><tr><td>Mini epochs</td><td>5</td></tr></table>
412
+
413
+ Table 4. Training hyperparameters for Shadow Hand
414
+
415
+ Note: In case of experiments with entropy based exploration, each block of environments has it's own learnable vector sigma which enable policies for different blocks to have different entropies.
2024/SAPG_ Split and Aggregate Policy Gradients/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:4dec5210b9b74d817c64a43f2627719fb78d923c86424ddd03e42bad6cca03b0
3
+ size 653897
2024/SAPG_ Split and Aggregate Policy Gradients/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SCoRe_ Submodular Combinatorial Representation Learning/69e94097-94c3-4af0-a534-92b563fbf142_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:f752a9941d4f831ed6a6cacaa5253ccaced32504edbc70fbb01989b04249d633
3
+ size 5130341
2024/SCoRe_ Submodular Combinatorial Representation Learning/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/SCoRe_ Submodular Combinatorial Representation Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:d5fd4d1a227fe94bc649c26f0621a5d496f3155d570bc856cd8234e09d0d11b4
3
+ size 1295385
2024/SCoRe_ Submodular Combinatorial Representation Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_content_list.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_model.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/4e68a89c-1bbd-4553-ae65-84a612be03d8_origin.pdf ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:a885c816b0d9451dbc262bbb5f2fd302d0870f0366c7eaa764bec292c6264eb9
3
+ size 845114
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/full.md ADDED
The diff for this file is too large to render. See raw diff
 
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/images.zip ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:b2d572a0601a3280ea9bbe9d752be8b5502812638c6dd1576d478f76128cb692
3
+ size 2823829
2024/SF-DQN_ Provable Knowledge Transfer using Successor Feature for Deep Reinforcement Learning/layout.json ADDED
The diff for this file is too large to render. See raw diff
 
2024/SFC_ Achieve Accurate Fast Convolution under Low-precision Arithmetic/cba16951-aab6-48d6-be6b-65b02d2acff0_content_list.json ADDED
@@ -0,0 +1,2077 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [
2
+ {
3
+ "type": "text",
4
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
5
+ "text_level": 1,
6
+ "bbox": [
7
+ 112,
8
+ 109,
9
+ 859,
10
+ 132
11
+ ],
12
+ "page_idx": 0
13
+ },
14
+ {
15
+ "type": "text",
16
+ "text": "Liulu He<sup>1</sup> Yufei Zhao<sup>1</sup> Rui Gao<sup>1</sup> Yuan Du<sup>12</sup> Li Du<sup>12</sup>",
17
+ "bbox": [
18
+ 281,
19
+ 176,
20
+ 689,
21
+ 191
22
+ ],
23
+ "page_idx": 0
24
+ },
25
+ {
26
+ "type": "text",
27
+ "text": "Abstract",
28
+ "text_level": 1,
29
+ "bbox": [
30
+ 241,
31
+ 217,
32
+ 320,
33
+ 233
34
+ ],
35
+ "page_idx": 0
36
+ },
37
+ {
38
+ "type": "text",
39
+ "text": "Fast convolution algorithms, including Winograd and FFT, can efficiently accelerate convolution operations in deep models. However, these algorithms depend on high-precision arithmetic to maintain inference accuracy, which conflicts with the model quantization. To resolve this conflict and further improve the efficiency of quantized convolution, we proposes SFC, a new algebra transform for fast convolution by extending the Discrete Fourier Transform (DFT) with symbolic computing, in which only additions are required to perform the transformation at specific transform points, avoiding the calculation of irrational number and reducing the requirement for precision. Additionally, we enhance convolution efficiency by introducing correction terms to convert invalid circular convolution outputs of the Fourier method into effective ones. The numerical error analysis is presented for the first time in this type of work and proves that our algorithms can provide a $3.68 \\times$ multiplication reduction for $3 \\times 3$ convolution, while the Winograd algorithm only achieves a $2.25 \\times$ reduction with similarly low numerical errors. Experiments carried out on benchmarks and FPGA show that our new algorithms can further improve the computation efficiency of quantized models while maintaining accuracy, surpassing both the quantization-alone method and existing works on fast convolution quantization.",
40
+ "bbox": [
41
+ 117,
42
+ 241,
43
+ 444,
44
+ 680
45
+ ],
46
+ "page_idx": 0
47
+ },
48
+ {
49
+ "type": "text",
50
+ "text": "1. Introduction",
51
+ "text_level": 1,
52
+ "bbox": [
53
+ 86,
54
+ 709,
55
+ 217,
56
+ 724
57
+ ],
58
+ "page_idx": 0
59
+ },
60
+ {
61
+ "type": "text",
62
+ "text": "Convolution operations are a crucial component of many deep learning models. Due to their intensive computation requirements, optimizing convolution calculations is key to",
63
+ "bbox": [
64
+ 84,
65
+ 734,
66
+ 473,
67
+ 781
68
+ ],
69
+ "page_idx": 0
70
+ },
71
+ {
72
+ "type": "text",
73
+ "text": "$^{1}$ School of Electronic Science and Engineering, Nanjing University, Nanjing 210023, China $^{2}$ Interdisciplinary Research Center for Future Intelligent Chips (Chip-X), Nanjing University, Suzhou 215163, China. Correspondence to: Yuan Du <yuandu@nju.edu.cn>, Li Du <ldu@nju.edu.cn>.",
74
+ "bbox": [
75
+ 84,
76
+ 789,
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": "improving model deployment efficiency. Fast Convolution Algorithms and Quantization are two distinct approaches to mitigate the computational burden. Fast convolution algorithms can reduce the arithmetic complexity by multiplying inputs and kernel weights in the transformation domain. A $3 \\times 3$ convolution performed with Winograd $\\mathrm{F}(2 \\times 2, 3 \\times 3)$ algorithm consumes just $\\frac{1}{2.25}$ multiplications compared to direct computing. Whereas, model quantization reduces the cost of a single arithmetic operation and data transmission by converting high-precision floating numbers to low-precision integers. An int8 multiply-and-accumulate operation consumes only $\\frac{1}{16}$ of the energy compared to a fp32 operation.",
96
+ "bbox": [
97
+ 495,
98
+ 218,
99
+ 887,
100
+ 416
101
+ ],
102
+ "page_idx": 0
103
+ },
104
+ {
105
+ "type": "text",
106
+ "text": "However, when attempting to combine existing fast convolution algorithms and model quantization to further improve computational efficiency, the model accuracy could be severely degraded. This is due to the significant increase in numerical error when the two methods are used together. For example, Winograd, a well-known fast convolution algorithm for small filter sizes (Lavin & Gray, 2016), has ill-conditioned transformation matrices (with high condition numbers), necessitating the use of high-precision arithmetic to avoid numerical issues (Barabasz et al., 2020). Another renowned fast algorithm for convolution is the Fast Fourier transform (FFT). While its transformation is well-conditioned, its irrational coefficients can introduce significant rounding errors, particularly under low-precision representation. Number Theoretic Transform (NTT) can achieve precise computation for integer convolution, but it involves module operations and the transformations for inputs and filters would extend the bit-width to be equivalent to that of the outputs.",
107
+ "bbox": [
108
+ 495,
109
+ 422,
110
+ 888,
111
+ 709
112
+ ],
113
+ "page_idx": 0
114
+ },
115
+ {
116
+ "type": "text",
117
+ "text": "At present, two research approaches have been developed to tackle the aforementioned problem. One approach involves customizing the quantization method specifically optimized for fast convolution algorithms (Li et al., 2021; Chikin & Kryzhanovskiy, 2022; Andri et al., 2022; Tianqi et al., 2023). However, this approach struggles to maintain satisfactory accuracy under int8 quantization for faster algorithms such as Winograd F(4×4, 3×3). The other approach is to explore new fast algorithms that are better fit for quantization (Liu & Mattina, 2020; Alam et al., 2022). Nevertheless, these emerging algorithms encounter challenges in achieving low arithmetic complexity. These facts show",
118
+ "bbox": [
119
+ 495,
120
+ 717,
121
+ 888,
122
+ 898
123
+ ],
124
+ "page_idx": 0
125
+ },
126
+ {
127
+ "type": "page_number",
128
+ "text": "1",
129
+ "bbox": [
130
+ 480,
131
+ 922,
132
+ 491,
133
+ 934
134
+ ],
135
+ "page_idx": 0
136
+ },
137
+ {
138
+ "type": "text",
139
+ "text": "that simultaneously achieving low arithmetic complexity and low-precision quantization while maintaining model accuracy is a persistent challenge, which, to our knowledge, no existing work has overcome.",
140
+ "bbox": [
141
+ 84,
142
+ 84,
143
+ 473,
144
+ 145
145
+ ],
146
+ "page_idx": 1
147
+ },
148
+ {
149
+ "type": "text",
150
+ "text": "This paper aims to develop a new efficient fast convolution algorithm with high numerical accuracy, which is compatible with model quantization techniques. We note that all the complex coefficients in the Fourier Transform have constant modulus 1, so the quantization error can be reduced by bypassing the direct calculation on these coefficients. To achieve this, we introduce symbolic computing to avoid the involvement of irrational numbers, where the transformation process contains only additions. This advance adapts the Fourier transform to low-precision arithmetic. We also discovered that conventional Fourier convolution does not fully utilize its circular convolution outputs, which significantly affects its efficiency, so we add correction terms to convert these neglected outputs into valid results. Moreover, we investigate the error generation mechanism of convolution algorithms and compare the numerical errors of direct convolution, Winograd, and our algorithms. The key contributions can be summarized as follows:",
151
+ "bbox": [
152
+ 86,
153
+ 152,
154
+ 475,
155
+ 422
156
+ ],
157
+ "page_idx": 1
158
+ },
159
+ {
160
+ "type": "list",
161
+ "sub_type": "text",
162
+ "list_items": [
163
+ "1. We formulate an efficient and quantization-friendly fast convolution algorithm extended from Fourier Convolution. We employ symbolic computing to perform Discret Fourier Transformation by just additions, and introduce correction terms to fully utilize its circular convolution outputs and further enhance its efficiency.",
164
+ "2. We analyse the numerical error of direct convolution and other fast convolution algorithms. Our method can achieve $3.68 \\times$ arithmetic reduction while the Winogard algorithm only achieves $2.25 \\times$ at equivalent numerical accuracy. Through error analysis and observation of the energy distribution in the frequency domain, we also present a frequency-wise quantization strategy to improve model accuracy at low-bitwidth.",
165
+ "3. Experiments on the ImageNet dataset validate that our method can achieve less than $0.2\\%$ accuracy degradation with int8 post-training quantization. In the same model accuracy, our method achieves up to $2.5\\times$ bitoperations reduction compared to Winograd convolution or direct convolution under quantization. FPGA implementation shows that our algorithms can significantly improve model inference throughput combined with low-precision arithmetic."
166
+ ],
167
+ "bbox": [
168
+ 98,
169
+ 441,
170
+ 475,
171
+ 814
172
+ ],
173
+ "page_idx": 1
174
+ },
175
+ {
176
+ "type": "text",
177
+ "text": "2. Related Work",
178
+ "text_level": 1,
179
+ "bbox": [
180
+ 84,
181
+ 834,
182
+ 227,
183
+ 849
184
+ ],
185
+ "page_idx": 1
186
+ },
187
+ {
188
+ "type": "text",
189
+ "text": "Fast Convolution Algorithms. The FFT was the first utilized algorithm (Mathieu et al., 2014) to fast the training of convolutions. Subsequently, for small convolutions,",
190
+ "bbox": [
191
+ 84,
192
+ 859,
193
+ 475,
194
+ 905
195
+ ],
196
+ "page_idx": 1
197
+ },
198
+ {
199
+ "type": "text",
200
+ "text": "the Winograd minimum filtering algorithm (Lavin & Gray, 2016) was found to outperform the Fourier-based method due to its real field arithmetic operations, whereas the Fourier method requires more inefficient arithmetic in complex field. Additionally, the NTT has also been proposed to accelerate convolutions (Hong et al., 2022). However, when combining quantization and fast convolution algorithms, the challenge of potential model accuracy degradation arises. The Winograd algorithm is susceptible to numerical instability due to the ill-conditioned Vandermonde matrix in the transformation (Vincent et al., 2017; Barabasz et al., 2020). Fourier-based methods demand a high-precision format to accurately represent irrational numbers. NTT methods can offer accurate integer computing, but involve a large number of modulo operations and high-bitwidth intermediate data representations, reducing computation efficiency.",
201
+ "bbox": [
202
+ 495,
203
+ 84,
204
+ 887,
205
+ 325
206
+ ],
207
+ "page_idx": 1
208
+ },
209
+ {
210
+ "type": "text",
211
+ "text": "Quantization for Fastconv. Some approaches aim to optimize the quantization method to regain model accuracy. For example, LoWino (Li et al., 2021) presents a posttraining quantization (PTQ) method for Winograd, optimizing the scaling factor by minimizing the KL distance between the quantized and original vectors. Another PTQ work (Chikin & Kryzhanovskiy, 2022) introduces a balancing operation between the filter and input channels to enhance bit-width utilization and improve the quality of quantization for Winograd. Additionally, a full quantization method with optimizing the transformation matrix in Winograd has been proposed (Tianqi et al., 2023), which successfully restores model accuracy when employing the Winograd $\\mathrm{F}(4\\times 4,3\\times 3)$ algorithm with int8 quantization. Nevertheless, the methods above tend to struggle to achieve satisfactory accuracy recovery under sub-int8 quantization.",
212
+ "bbox": [
213
+ 495,
214
+ 334,
215
+ 888,
216
+ 575
217
+ ],
218
+ "page_idx": 1
219
+ },
220
+ {
221
+ "type": "text",
222
+ "text": "Numerical Accuracy for Fastconv. Another approaches focus on improving the intrinsic properties of the fast algorithm itself. As Winograd algorithms can be defined by root points, a bilinear approach that strikes a balance between computational complexity and numerical accuracy has been proposed (Barabasz & Gregg, 2019). Additionally, two existing works (Barabasz et al., 2020; Alam et al., 2022) aimed to discover more effective polynomial root points to improve numerical accuracy. The Winograd algorithms have also been extended to the Residue Number System (RNS) (Liu & Mattina, 2020), decomposing single high-precision intermediate multiplications into multiple low-precision arithmetics (e.g., 8-bit). However, these all come at the cost of increased computational complexity.",
223
+ "bbox": [
224
+ 495,
225
+ 583,
226
+ 888,
227
+ 794
228
+ ],
229
+ "page_idx": 1
230
+ },
231
+ {
232
+ "type": "text",
233
+ "text": "3. Preliminaries",
234
+ "text_level": 1,
235
+ "bbox": [
236
+ 496,
237
+ 814,
238
+ 635,
239
+ 829
240
+ ],
241
+ "page_idx": 1
242
+ },
243
+ {
244
+ "type": "text",
245
+ "text": "Algorithms Construction. Fast convolution algorithms, including Winograd, Fourier Transform, and Number Theoretic Transform all employ a three-stage computing process: transformations of filters and inputs, element-wise multi",
246
+ "bbox": [
247
+ 495,
248
+ 839,
249
+ 888,
250
+ 900
251
+ ],
252
+ "page_idx": 1
253
+ },
254
+ {
255
+ "type": "header",
256
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
257
+ "bbox": [
258
+ 251,
259
+ 56,
260
+ 720,
261
+ 70
262
+ ],
263
+ "page_idx": 1
264
+ },
265
+ {
266
+ "type": "page_number",
267
+ "text": "2",
268
+ "bbox": [
269
+ 480,
270
+ 922,
271
+ 491,
272
+ 934
273
+ ],
274
+ "page_idx": 1
275
+ },
276
+ {
277
+ "type": "text",
278
+ "text": "plication, and a transformation for generating outputs. The generalized form for fast 2D convolution is as follows:",
279
+ "bbox": [
280
+ 84,
281
+ 85,
282
+ 473,
283
+ 116
284
+ ],
285
+ "page_idx": 2
286
+ },
287
+ {
288
+ "type": "equation",
289
+ "text": "\n$$\ny = A ^ {T} \\left[ \\left[ G f G ^ {T} \\right] \\odot \\left[ B ^ {T} x B \\right] \\right] A \\tag {1}\n$$\n",
290
+ "text_format": "latex",
291
+ "bbox": [
292
+ 174,
293
+ 128,
294
+ 475,
295
+ 147
296
+ ],
297
+ "page_idx": 2
298
+ },
299
+ {
300
+ "type": "text",
301
+ "text": "where $\\odot$ denotes element-wise multiplication, and $B$ , $G$ , and $A$ represent the linear transformations of the input, filter, and multiplication result.",
302
+ "bbox": [
303
+ 84,
304
+ 159,
305
+ 475,
306
+ 205
307
+ ],
308
+ "page_idx": 2
309
+ },
310
+ {
311
+ "type": "text",
312
+ "text": "For one specific algorithm (whether Winograd, FFT or NTT), the $G$ , $B$ and $A$ are all derive from a Vandermonde matrix $V$ , which consist of a set of root points $s_0..s_{N-1}$ :",
313
+ "bbox": [
314
+ 84,
315
+ 212,
316
+ 475,
317
+ 258
318
+ ],
319
+ "page_idx": 2
320
+ },
321
+ {
322
+ "type": "equation",
323
+ "text": "\n$$\nV = \\left[ \\begin{array}{c c c c c} 1 & s _ {0} ^ {1} & s _ {0} ^ {2} & \\dots & s _ {0} ^ {N - 1} \\\\ 1 & s _ {1} ^ {1} & s _ {1} ^ {2} & \\dots & s _ {1} ^ {N - 1} \\\\ \\ddots & \\ddots & \\ddots & \\dots & \\ddots \\\\ 1 & s _ {N - 1} ^ {1} & s _ {N - 1} ^ {2} & \\dots & s _ {N - 1} ^ {N - 1} \\end{array} \\right] \\tag {2}\n$$\n",
324
+ "text_format": "latex",
325
+ "bbox": [
326
+ 148,
327
+ 270,
328
+ 475,
329
+ 339
330
+ ],
331
+ "page_idx": 2
332
+ },
333
+ {
334
+ "type": "text",
335
+ "text": "A $N \\times N$ matrix $V$ and its inverse $V^{-1}$ can construct a fast convolution algorithm for $R \\times R$ filter accommodating $N \\times N$ inputs with $M \\times M$ outputs, or $M \\times M$ inputs with $N \\times N$ outputs, where $N = M + R - 1$ .",
336
+ "bbox": [
337
+ 84,
338
+ 351,
339
+ 473,
340
+ 411
341
+ ],
342
+ "page_idx": 2
343
+ },
344
+ {
345
+ "type": "text",
346
+ "text": "Difference. The fundamental difference among various algorithms lies in the number field of $V$ and the chosen $S_{n}$ . In the Winograd algorithm (also known as Toom-Cook algorithm), the $S_{n}$ are $N$ interpolation points selected in the real number field $\\mathbb{R}$ . Similarly, all arithmetic operations are performed in the $\\mathbb{R}$ . As a comparison, all arithmetic in Fourier convolution is defined in the complex field $\\mathbb{C}$ . And the matrix $V$ is the discrete Fourier transform matrix, where $S_{n} = e^{-j\\frac{2\\pi*n}{N}}$ . The number theoretic transformation is similar in structure to the Fourier transform, but it operates in a finite field denoted as $\\mathbb{F}_{p}$ .",
347
+ "bbox": [
348
+ 84,
349
+ 419,
350
+ 475,
351
+ 585
352
+ ],
353
+ "page_idx": 2
354
+ },
355
+ {
356
+ "type": "text",
357
+ "text": "Arithmetic Complexity Reduction. Assuming these transformations are lightweight compared to element-wise multiply and can be amortized due to channel reuse, the fast algorithms consume $N^2 = (M + R - 1)^2$ multiplications to generate $M^2$ outputs, where the arithmetic complexity reduction is $\\frac{M^2R^2}{(M + R - 1)^2}$ . However, convolution operations in CNNs are generally defined in $\\mathbb{R}$ , so employing fast algorithms defined in $\\mathbb{C}$ or $\\mathbb{F}_p$ (such as FFT and NTT) would lead to waste in the calculation. Hence, Winograd, defined in $\\mathbb{R}$ , is the most popular algorithm for model acceleration.",
358
+ "bbox": [
359
+ 84,
360
+ 593,
361
+ 475,
362
+ 748
363
+ ],
364
+ "page_idx": 2
365
+ },
366
+ {
367
+ "type": "text",
368
+ "text": "Precision Requirement. For Winograd, the extremum of a row in $V$ is $[1, S_n^{N-1}]$ . So the required arithmetic precision grows exponentially with $N$ . Thus only the Winograd algorithm with small $N$ is practical. In comparison, the FFT method performs a significant numerical advantage when dealing with large filters due to its numerically stable $V$ matrix. However, performing accurate Fourier transforms necessitates high-precision arithmetic. NTT method provide a bit-correct result for integral convolution. However, when using NTT to perform a calculation with $N$ -bit inputs and",
369
+ "bbox": [
370
+ 84,
371
+ 753,
372
+ 475,
373
+ 906
374
+ ],
375
+ "page_idx": 2
376
+ },
377
+ {
378
+ "type": "text",
379
+ "text": "$2N$ -bit outputs, the transformed inputs must have a datawidth of at least $2N$ -bit, which increases the datawidth of $\\odot$",
380
+ "bbox": [
381
+ 496,
382
+ 84,
383
+ 887,
384
+ 128
385
+ ],
386
+ "page_idx": 2
387
+ },
388
+ {
389
+ "type": "text",
390
+ "text": "In summary, no matter which type of algorithm is chosen, achieving both robust computation and significant arithmetic reduction under low-precision operations remains a challenge.",
391
+ "bbox": [
392
+ 496,
393
+ 137,
394
+ 887,
395
+ 198
396
+ ],
397
+ "page_idx": 2
398
+ },
399
+ {
400
+ "type": "text",
401
+ "text": "4. Symbolic Fourier Convolution Algorithm",
402
+ "text_level": 1,
403
+ "bbox": [
404
+ 496,
405
+ 217,
406
+ 867,
407
+ 234
408
+ ],
409
+ "page_idx": 2
410
+ },
411
+ {
412
+ "type": "text",
413
+ "text": "It is worth noting that the Fourier transform has better numerical stability, as all its root points are distributed on a circle of radius 1 in the complex plane. When dealing with larger $N$ , it is more accurate than Winograd. However, Fourier transform has two serious drawbacks. First, its irrational coefficients are not friendly for low-precision format and would give more computation burden for transformation calculation.",
414
+ "bbox": [
415
+ 495,
416
+ 243,
417
+ 887,
418
+ 363
419
+ ],
420
+ "page_idx": 2
421
+ },
422
+ {
423
+ "type": "text",
424
+ "text": "In addition, the FFT is not as efficient as Winograd. There are two reasons for this. Firstly the FFT is computed using complex numbers and even after utilizing the Hamiltonian symmetry with real sequences and the fast complex multiplication, each complex multiplication still requires 1.5 real multiplications. Secondly, the direct calculation result of the FFT is a circular convolution, so padding the sequence with zeros to achieve a linear convolution is required, which would wasted computation.",
425
+ "bbox": [
426
+ 495,
427
+ 371,
428
+ 887,
429
+ 507
430
+ ],
431
+ "page_idx": 2
432
+ },
433
+ {
434
+ "type": "text",
435
+ "text": "We propose two key improvement strategies to address these drawbacks:",
436
+ "bbox": [
437
+ 496,
438
+ 515,
439
+ 885,
440
+ 544
441
+ ],
442
+ "page_idx": 2
443
+ },
444
+ {
445
+ "type": "list",
446
+ "sub_type": "text",
447
+ "list_items": [
448
+ "1. We employ symbolic computation rather than numerical computation to implement the discrete Fourier transform (DFT). By selecting an appropriate number of DFT points, we can avoid or minimize the irrational values involved in computing. All complex points can be represented by first order integer coefficient polynomials under both 4 and 6 DFT points.",
449
+ "2. We introduce correction terms to fully exploit the cyclic convolution output generated by the Fourier method to enhance computing utilization, and the smaller number of transformation points we chose also helps to reduce the proportion of complex arithmetic."
450
+ ],
451
+ "bbox": [
452
+ 509,
453
+ 558,
454
+ 887,
455
+ 748
456
+ ],
457
+ "page_idx": 2
458
+ },
459
+ {
460
+ "type": "text",
461
+ "text": "4.1. Symbolic Computing for DFT",
462
+ "text_level": 1,
463
+ "bbox": [
464
+ 496,
465
+ 761,
466
+ 741,
467
+ 777
468
+ ],
469
+ "page_idx": 2
470
+ },
471
+ {
472
+ "type": "text",
473
+ "text": "Generally, the coefficients of the N-point DFT are derived from:",
474
+ "bbox": [
475
+ 496,
476
+ 785,
477
+ 885,
478
+ 813
479
+ ],
480
+ "page_idx": 2
481
+ },
482
+ {
483
+ "type": "equation",
484
+ "text": "\n$$\ne ^ {\\frac {2 \\pi n}{N} j} = \\cos (\\frac {2 \\pi n}{N}) + j \\sin (\\frac {2 \\pi n}{N}), n = 0, 1,.., N - 1\n$$\n",
485
+ "text_format": "latex",
486
+ "bbox": [
487
+ 511,
488
+ 816,
489
+ 869,
490
+ 847
491
+ ],
492
+ "page_idx": 2
493
+ },
494
+ {
495
+ "type": "text",
496
+ "text": "when $\\frac{n}{N} \\notin \\{0, \\frac{1}{4}, \\frac{1}{2}, \\frac{3}{4}\\}$ , irrational values will be introduced. To eliminate the rounding errors that arise from these irrational values, we employ symbolic computation rather than",
497
+ "bbox": [
498
+ 495,
499
+ 859,
500
+ 887,
501
+ 906
502
+ ],
503
+ "page_idx": 2
504
+ },
505
+ {
506
+ "type": "header",
507
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
508
+ "bbox": [
509
+ 251,
510
+ 56,
511
+ 718,
512
+ 70
513
+ ],
514
+ "page_idx": 2
515
+ },
516
+ {
517
+ "type": "page_number",
518
+ "text": "3",
519
+ "bbox": [
520
+ 480,
521
+ 922,
522
+ 491,
523
+ 934
524
+ ],
525
+ "page_idx": 2
526
+ },
527
+ {
528
+ "type": "text",
529
+ "text": "numerical calculation. This approach represents irrational values in polynomials with integer coefficients.",
530
+ "bbox": [
531
+ 84,
532
+ 85,
533
+ 473,
534
+ 116
535
+ ],
536
+ "page_idx": 3
537
+ },
538
+ {
539
+ "type": "text",
540
+ "text": "To illustrate, we consider the 3-point DFT. For a real input sequence $x = (x_0, x_1, x_2)^T$ , its transform processing can be represented as:",
541
+ "bbox": [
542
+ 84,
543
+ 122,
544
+ 473,
545
+ 167
546
+ ],
547
+ "page_idx": 3
548
+ },
549
+ {
550
+ "type": "equation",
551
+ "text": "\n$$\n\\left[ \\begin{array}{l} X _ {0} \\\\ X _ {1} \\\\ X _ {2} \\end{array} \\right] = \\left[ \\begin{array}{c c c} 1 & 1 & 1 \\\\ 1 & s & s ^ {2} \\\\ 1 & s ^ {2} & s \\end{array} \\right] \\left[ \\begin{array}{l} x _ {0} \\\\ x _ {1} \\\\ x _ {2} \\end{array} \\right], s = e ^ {\\frac {2 \\pi}{3} j} \\tag {3}\n$$\n",
552
+ "text_format": "latex",
553
+ "bbox": [
554
+ 145,
555
+ 175,
556
+ 475,
557
+ 224
558
+ ],
559
+ "page_idx": 3
560
+ },
561
+ {
562
+ "type": "image",
563
+ "img_path": "images/65bb346deec562161c6184ad7c62c75dc9cd9e86854c37ede51c0b5477aac6c6.jpg",
564
+ "image_caption": [
565
+ "Figure 1. The geometric symmetry in DFT-3, DFT-4 and DFT-6."
566
+ ],
567
+ "image_footnote": [],
568
+ "bbox": [
569
+ 86,
570
+ 248,
571
+ 212,
572
+ 348
573
+ ],
574
+ "page_idx": 3
575
+ },
576
+ {
577
+ "type": "image",
578
+ "img_path": "images/bec506738be52c3e3adee0414e11b9490f48350d3a69abc3cd7768770890cfa2.jpg",
579
+ "image_caption": [],
580
+ "image_footnote": [],
581
+ "bbox": [
582
+ 223,
583
+ 248,
584
+ 352,
585
+ 348
586
+ ],
587
+ "page_idx": 3
588
+ },
589
+ {
590
+ "type": "image",
591
+ "img_path": "images/1fd83256e50f46dd4afc5766c117217059b67e844725e3b7891454b65ae28ba5.jpg",
592
+ "image_caption": [],
593
+ "image_footnote": [],
594
+ "bbox": [
595
+ 359,
596
+ 250,
597
+ 486,
598
+ 348
599
+ ],
600
+ "page_idx": 3
601
+ },
602
+ {
603
+ "type": "text",
604
+ "text": "We do not substitute the numerical value of $s$ into the calculation. Instead, we represent and compute subsequent variables using the polynomial form of $s$ . This allows us to express the DFT outputs $X_{n}$ as $X_{n} = X_{n,0} + X_{n,1} \\cdot s + X_{n,2} \\cdot s^{2}$ .",
605
+ "bbox": [
606
+ 84,
607
+ 409,
608
+ 475,
609
+ 484
610
+ ],
611
+ "page_idx": 3
612
+ },
613
+ {
614
+ "type": "text",
615
+ "text": "By exploiting the geometric symmetry among $1, s, s^2$ , the $s^2$ can be expressed as $s^2 = -(s^0 + s^1)$ , as Figure 1. Further, the Hamiltonian symmetry of the real signal Fourier transform can reduce the number of components by almost half. Thus we can rearrange Equation 3 as following:",
616
+ "bbox": [
617
+ 84,
618
+ 492,
619
+ 475,
620
+ 568
621
+ ],
622
+ "page_idx": 3
623
+ },
624
+ {
625
+ "type": "equation",
626
+ "text": "\n$$\n\\left[ \\begin{array}{l} X _ {0} \\\\ X _ {1} \\\\ X _ {2} \\end{array} \\right] = \\left[ \\begin{array}{l l l} 1 & 0 & 0 \\\\ 0 & 1 & s \\\\ 0 & 1 & s ^ {2} \\end{array} \\right] \\left[ \\begin{array}{l l l} 1 & 1 & 1 \\\\ 1 & 0 & - 1 \\\\ 0 & 1 & - 1 \\end{array} \\right] \\left[ \\begin{array}{l} x _ {0} \\\\ x _ {1} \\\\ x _ {2} \\end{array} \\right] \\tag {4}\n$$\n",
627
+ "text_format": "latex",
628
+ "bbox": [
629
+ 137,
630
+ 585,
631
+ 473,
632
+ 635
633
+ ],
634
+ "page_idx": 3
635
+ },
636
+ {
637
+ "type": "text",
638
+ "text": "In the above formula, $s = e^{\\frac{2\\pi}{3} j}$ is not need to be explicitly included in the calculation but serves as a notation from the outset. Similar to complex number, the production of $a_0 + a_1s$ and $b_0 + b_1s$ can be calculated as:",
639
+ "bbox": [
640
+ 84,
641
+ 648,
642
+ 475,
643
+ 710
644
+ ],
645
+ "page_idx": 3
646
+ },
647
+ {
648
+ "type": "equation",
649
+ "text": "\n$$\n\\begin{array}{l} (a _ {0} + a _ {1} s) (b _ {0} + b _ {1} s) = c _ {0} + c _ {1} s, \\quad \\left[ \\begin{array}{c} c _ {0} \\\\ c _ {1} \\end{array} \\right] = \\\\ \\left[ \\begin{array}{c c c} 1 & - 1 & 0 \\\\ 1 & 0 & 1 \\end{array} \\right] (\\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ - 1 & 1 \\end{array} \\right] \\left[ \\begin{array}{l} a _ {0} \\\\ a _ {1} \\end{array} \\right] \\odot \\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ 1 & - 1 \\end{array} \\right] \\left[ \\begin{array}{l} b _ {0} \\\\ b _ {1} \\end{array} \\right]) \\tag {5} \\\\ \\end{array}\n$$\n",
650
+ "text_format": "latex",
651
+ "bbox": [
652
+ 109,
653
+ 738,
654
+ 473,
655
+ 823
656
+ ],
657
+ "page_idx": 3
658
+ },
659
+ {
660
+ "type": "text",
661
+ "text": "Through enumeration, we can identify that 6 and 4 are suitable choices for DFT points in small-size convolution applications.",
662
+ "bbox": [
663
+ 84,
664
+ 837,
665
+ 473,
666
+ 883
667
+ ],
668
+ "page_idx": 3
669
+ },
670
+ {
671
+ "type": "text",
672
+ "text": "1) DFT-6",
673
+ "bbox": [
674
+ 89,
675
+ 890,
676
+ 156,
677
+ 904
678
+ ],
679
+ "page_idx": 3
680
+ },
681
+ {
682
+ "type": "text",
683
+ "text": "Considering DFT-6, its transformation coefficients consist of six values: $1, e^{j\\frac{\\pi}{3}}, e^{j\\frac{2\\pi}{3}}, -1, e^{j\\frac{4\\pi}{3}}, e^{j\\frac{5\\pi}{3}}$ . Defining $s = e^{\\frac{\\pi}{3} j}$ , thus $s^2 = s - 1$ , which allows all coefficients to be expressed as first-order polynomials of $s$ : $1, s, s - 1, -1, -s, 1 - s$ . When two first-degree polynomials are multiplied, any quadratic term can be reduced to a first-degree term using the rule $s^2 = s - 1$ . Therefore, the DFT-6 transform processing under symbolic computation is as follows:",
684
+ "bbox": [
685
+ 496,
686
+ 84,
687
+ 887,
688
+ 219
689
+ ],
690
+ "page_idx": 3
691
+ },
692
+ {
693
+ "type": "equation",
694
+ "text": "\n$$\n\\begin{array}{l} D F T 6 (x) = S _ {6} F _ {6} x = \\left[ \\begin{array}{c c c c c c} 1 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 1 & s & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 1 & s & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 1 \\\\ 0 & 1 & - s ^ {2} & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 1 & - s ^ {2} & 0 \\end{array} \\right]. \\\\ \\left[ \\begin{array}{c c c c c c} 1 & 1 & 1 & 1 & 1 & 1 \\\\ 1 & 1 & 0 & - 1 & - 1 & 0 \\\\ 0 & - 1 & - 1 & 0 & 1 & 1 \\\\ 1 & 0 & - 1 & 1 & 0 & - 1 \\\\ 0 & - 1 & 1 & 0 & - 1 & 1 \\\\ 1 & - 1 & 1 & - 1 & 1 & - 1 \\end{array} \\right] \\cdot \\left[ \\begin{array}{c} x _ {0} \\\\ x _ {1} \\\\ x _ {2} \\\\ x _ {3} \\\\ x _ {4} \\\\ x _ {5} \\end{array} \\right] \\tag {6} \\\\ \\end{array}\n$$\n",
695
+ "text_format": "latex",
696
+ "bbox": [
697
+ 511,
698
+ 222,
699
+ 885,
700
+ 424
701
+ ],
702
+ "page_idx": 3
703
+ },
704
+ {
705
+ "type": "text",
706
+ "text": "Here, $S_{6}$ represents the format transition from symbolic to numerical computing without any arithmetic, and $F_{6}$ signifies the Fourier transform under symbolic computing. We refer to the intermediate matrix as SFT-6 (Symbolic Fourier Transform-6), as its coefficients consist solely of 1, -1, and 0. The inverse transform iDFT6 can be rearranged in a similar way. $F_{6}$ has its fast algorithm by decomposing it into DFT-3 and DFT-2. Therefore, only 14 addition operations are needed to perform SFT-6 (subtraction can be considered as addition of complement). The inverse transformation matrix $iF_{6}$ can be derived in a similar way:",
707
+ "bbox": [
708
+ 496,
709
+ 431,
710
+ 887,
711
+ 598
712
+ ],
713
+ "page_idx": 3
714
+ },
715
+ {
716
+ "type": "equation",
717
+ "text": "\n$$\ni F _ {6} = \\frac {1}{6} \\left[ \\begin{array}{r r r r r r} 1 & 1 & 1 & 1 & 1 & 1 \\\\ 1 & - 1 & - 2 & - 1 & 1 & 2 \\\\ - 1 & - 2 & - 1 & 1 & 2 & 1 \\\\ - 1 & - 1 & 2 & - 1 & - 1 & 2 \\\\ - 2 & 1 & 1 & - 2 & 1 & 1 \\\\ - 1 & 1 & - 1 & 1 & - 1 & 1 \\end{array} \\right] \\tag {7}\n$$\n",
718
+ "text_format": "latex",
719
+ "bbox": [
720
+ 550,
721
+ 602,
722
+ 885,
723
+ 696
724
+ ],
725
+ "page_idx": 3
726
+ },
727
+ {
728
+ "type": "text",
729
+ "text": "Note that $\\frac{1}{6}$ can be fused into floating model without having to compute that division operation during inference stage.",
730
+ "bbox": [
731
+ 496,
732
+ 702,
733
+ 885,
734
+ 733
735
+ ],
736
+ "page_idx": 3
737
+ },
738
+ {
739
+ "type": "text",
740
+ "text": "In the element-wise multiplication steps, multiplications are performed in polynomial form. Multiplying two 1st-order polynomials requires 4 real number multiplications. We can utilize a short fast convolution algorithm to reduce it to 3:",
741
+ "bbox": [
742
+ 496,
743
+ 739,
744
+ 885,
745
+ 801
746
+ ],
747
+ "page_idx": 3
748
+ },
749
+ {
750
+ "type": "equation",
751
+ "text": "\n$$\n\\begin{array}{l} (a _ {0} + a _ {1} s) (w _ {0} + w _ {1} s) = o _ {0} + o _ {1} s, \\quad \\left[ \\begin{array}{c} o _ {0} \\\\ o _ {1} \\end{array} \\right] = \\\\ \\left[ \\begin{array}{c c c} 1 & - 1 & 0 \\\\ - 1 & 0 & 1 \\end{array} \\right] (\\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ 1 & 1 \\end{array} \\right] \\left[ \\begin{array}{l} a _ {0} \\\\ a _ {1} \\end{array} \\right] \\odot \\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ 1 & 1 \\end{array} \\right] \\left[ \\begin{array}{l} w _ {0} \\\\ w _ {1} \\end{array} \\right]) \\tag {8} \\\\ \\end{array}\n$$\n",
752
+ "text_format": "latex",
753
+ "bbox": [
754
+ 517,
755
+ 825,
756
+ 885,
757
+ 909
758
+ ],
759
+ "page_idx": 3
760
+ },
761
+ {
762
+ "type": "header",
763
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
764
+ "bbox": [
765
+ 251,
766
+ 56,
767
+ 718,
768
+ 70
769
+ ],
770
+ "page_idx": 3
771
+ },
772
+ {
773
+ "type": "page_number",
774
+ "text": "4",
775
+ "bbox": [
776
+ 480,
777
+ 922,
778
+ 491,
779
+ 934
780
+ ],
781
+ "page_idx": 3
782
+ },
783
+ {
784
+ "type": "text",
785
+ "text": "2) DFT-4",
786
+ "bbox": [
787
+ 89,
788
+ 85,
789
+ 156,
790
+ 99
791
+ ],
792
+ "page_idx": 4
793
+ },
794
+ {
795
+ "type": "text",
796
+ "text": "Similarly, the DFT-4 can be constructed in the same manner.",
797
+ "bbox": [
798
+ 84,
799
+ 107,
800
+ 475,
801
+ 122
802
+ ],
803
+ "page_idx": 4
804
+ },
805
+ {
806
+ "type": "equation",
807
+ "text": "\n$$\n\\begin{array}{l} D F T 4 (x) = S _ {4} F _ {4} x = \\left[ \\begin{array}{c c c c} 1 & 0 & 0 & 0 \\\\ 0 & 1 & j & 0 \\\\ 0 & 0 & 0 & 1 \\\\ 0 & 1 & - j & 0 \\end{array} \\right]. (9) \\\\ \\left[ \\begin{array}{r r r r} 1 & 1 & 1 & 1 \\\\ 1 & 0 & - 1 & 0 \\\\ 0 & - 1 & 0 & 1 \\\\ 1 & - 1 & 1 & - 1 \\end{array} \\right] \\left[ \\begin{array}{l} x _ {0} \\\\ x _ {1} \\\\ x _ {2} \\\\ x _ {3} \\end{array} \\right] (9) \\\\ \\end{array}\n$$\n",
808
+ "text_format": "latex",
809
+ "bbox": [
810
+ 129,
811
+ 130,
812
+ 473,
813
+ 261
814
+ ],
815
+ "page_idx": 4
816
+ },
817
+ {
818
+ "type": "text",
819
+ "text": "The multiplication on the DFT-4 convolution can be performed as:",
820
+ "bbox": [
821
+ 84,
822
+ 276,
823
+ 475,
824
+ 306
825
+ ],
826
+ "page_idx": 4
827
+ },
828
+ {
829
+ "type": "equation",
830
+ "text": "\n$$\n\\begin{array}{l} (a _ {0} + a _ {1} s) (w _ {0} + w _ {1} s) = o _ {0} + o _ {1} s, \\quad \\left[ \\begin{array}{c} o _ {0} \\\\ o _ {1} \\end{array} \\right] = \\\\ \\left[ \\begin{array}{c c c} 1 & - 1 & 0 \\\\ - 1 & - 1 & 1 \\end{array} \\right] \\left(\\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ 1 & 1 \\end{array} \\right] \\left[ \\begin{array}{l} a _ {0} \\\\ a _ {1} \\end{array} \\right] \\odot \\left[ \\begin{array}{l l} 1 & 0 \\\\ 0 & 1 \\\\ 1 & 1 \\end{array} \\right] \\left[ \\begin{array}{l} w _ {0} \\\\ w _ {1} \\end{array} \\right]\\right) \\tag {10} \\\\ \\end{array}\n$$\n",
831
+ "text_format": "latex",
832
+ "bbox": [
833
+ 102,
834
+ 311,
835
+ 473,
836
+ 396
837
+ ],
838
+ "page_idx": 4
839
+ },
840
+ {
841
+ "type": "text",
842
+ "text": "If we want to compute $A((Gf) \\odot (Bx))$ directly in the real number field, akin to the Winograd algorithm, without involving polynomial multiplication, we can integrate Eq. 8 or Eq. 10 into the SFT matrix Eq. 6 or Eq. 9. In the 1D case, this does not impact efficiency. However, in the 2D case, it introduces slight redundant components and marginally reduces the acceleration ratio. We list these algorithms with polynomial multiplication integrated in the appendix.",
843
+ "bbox": [
844
+ 84,
845
+ 412,
846
+ 475,
847
+ 534
848
+ ],
849
+ "page_idx": 4
850
+ },
851
+ {
852
+ "type": "text",
853
+ "text": "4.2. Achieving Efficient Linear Convolution",
854
+ "text_level": 1,
855
+ "bbox": [
856
+ 84,
857
+ 550,
858
+ 392,
859
+ 564
860
+ ],
861
+ "page_idx": 4
862
+ },
863
+ {
864
+ "type": "text",
865
+ "text": "The conventional Fourier Transform method inherently generates cyclic convolution. As a consequence, only $(N - R + 1)^2$ components are valid for the intended $N^2$ linear convolution. However, it's noteworthy that the invalid results are not entirely useless. They actually contain partial sums that can be effectively utilized. By intelligently applying correction terms to these partial sums, it is possible to convert them into valid outputs. This approach significantly enhances the efficiency of the convolution process.",
866
+ "bbox": [
867
+ 84,
868
+ 573,
869
+ 475,
870
+ 710
871
+ ],
872
+ "page_idx": 4
873
+ },
874
+ {
875
+ "type": "text",
876
+ "text": "Figure 2 illustrates an example of Fourier-based cyclic convolution for $N = 6$ and $R = 3$ . The first term $o_1^c$ is equal to $a_6w_1 + a_1w_2 + a_2w_1$ , but the desired output is $o_1 = a_0w_1 + a_1w_2 + a_2w_1$ . To align $o_1$ with $o_1^c$ , a corrective term is introduced to obtain the desired output: $o_1 = o_1^c + (a_0 - a_6)w_1$ . This adjustment allows us to obtain an additional correct result by adding just one MAC operation, thus utilizing the Fourier convolution output more efficiently compared to discarding erroneous terms.",
877
+ "bbox": [
878
+ 84,
879
+ 715,
880
+ 475,
881
+ 853
882
+ ],
883
+ "page_idx": 4
884
+ },
885
+ {
886
+ "type": "text",
887
+ "text": "To unambiguously represent a particular algorithm, we employ the notation SFC- $N(M,R)$ , where $N$ represents the length of the SFT transformation, $M$ represents the feature",
888
+ "bbox": [
889
+ 84,
890
+ 859,
891
+ 475,
892
+ 906
893
+ ],
894
+ "page_idx": 4
895
+ },
896
+ {
897
+ "type": "text",
898
+ "text": "tile size, and $R$ represents the kernel size. For example, the SFC-6(6×6, 3×3) algorithm is constructed based on a 6-point Fourier transform, employing a 3×3 kernel size and a 6×6 feature tile size.",
899
+ "bbox": [
900
+ 496,
901
+ 84,
902
+ 885,
903
+ 143
904
+ ],
905
+ "page_idx": 4
906
+ },
907
+ {
908
+ "type": "text",
909
+ "text": "By introducing correction terms, we can also adjust input tile size $M$ independently. For example, as the images in the ImageNet dataset are in size $224 \\times 224$ , the feature map size in the model has a common factor of 7. Utilizing the SFC-6(7×7, 3×3) algorithm to infer models trained on Imagenet would have higher tiling efficiency without the need for zero padding. The transformation matrix integrated polynomial multiplication of the SFC-6(7×7, 3×3) is as follows:",
910
+ "bbox": [
911
+ 496,
912
+ 152,
913
+ 885,
914
+ 273
915
+ ],
916
+ "page_idx": 4
917
+ },
918
+ {
919
+ "type": "equation",
920
+ "text": "\n$$\n\\begin{array}{l} B ^ {T} = \\left[ \\begin{array}{c c c c c c c c c} 0 & 1 & 1 & 1 & 1 & 1 & 1 & 0 & 0 \\\\ 0 & 1 & 1 & 0 & - 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 0 & - 1 & - 1 & 0 & 1 & 1 & 0 & 0 \\\\ 0 & 1 & 0 & - 1 & - 1 & 0 & 1 & 0 & 0 \\\\ 0 & 1 & 0 & - 1 & 1 & 0 & - 1 & 0 & 0 \\\\ 0 & 0 & - 1 & 1 & 0 & - 1 & 1 & 0 & 0 \\\\ 0 & 1 & - 1 & 0 & 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 1 & - 1 & 1 & - 1 & 1 & - 1 & 0 & 0 \\\\ 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 \\end{array} \\right], \\\\ A = \\frac {1}{6} \\left[ \\begin{array}{c c c c c c c} 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ 2 & 1 & - 1 & - 2 & - 1 & 1 & 2 \\\\ - 1 & 1 & 1 & 1 & - 1 & - 2 & - 1 \\\\ - 1 & - 2 & - 1 & 1 & 2 & 1 & - 1 \\\\ 1 & - 2 & 1 & 1 & - 2 & 1 & 1 \\\\ 1 & 1 & - 2 & 1 & 1 & - 2 & 1 \\\\ - 2 & 1 & 2 & - 2 & 1 & 1 & - 2 \\\\ - 1 & 1 & - 1 & 1 & - 1 & 1 & - 1 \\\\ 6 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 6 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\end{array} \\right], \\tag {11} \\\\ G = \\left[ \\begin{array}{c c c} 1 & 1 & 1 \\\\ 0 & 1 & 1 \\\\ - 1 & - 1 & 0 \\\\ - 1 & 0 & 1 \\\\ - 1 & 0 & 1 \\\\ 1 & - 1 & 0 \\\\ 0 & - 1 & 1 \\\\ 1 & - 1 & 1 \\\\ 1 & 0 & 0 \\\\ 0 & 0 & 1 \\\\ 0 & 1 & 0 \\\\ 0 & 0 & 1 \\end{array} \\right] \\\\ \\end{array}\n$$\n",
921
+ "text_format": "latex",
922
+ "bbox": [
923
+ 519,
924
+ 280,
925
+ 885,
926
+ 612
927
+ ],
928
+ "page_idx": 4
929
+ },
930
+ {
931
+ "type": "text",
932
+ "text": "The SFC- $6(6 \\times 6, 3 \\times 3)$ algorithm can reduce $73\\%$ multiplications for $3 \\times 3$ convolutions. And multiplications can be optimized by $81\\%$ and $79\\%$ for $5 \\times 5$ and $7 \\times 7$ convolutions, respectively. A selection of achievable Symbolic Fourier Convolution algorithms is listed in Table 1. For comparison, we also list their efficiencies and the numerical errors obtained from simulation and theoretical analyses (Detailed in Section 5). In Table 1, we can see that for $3 \\times 3$ convolution the SFC- $6(6 \\times 6, 3 \\times 3)$ algorithm is $1.64 \\times$ faster than the Winograd $(2 \\times 2, 3 \\times 3)$ algorithm, while maintaining nearly the same numerical error.",
933
+ "bbox": [
934
+ 495,
935
+ 626,
936
+ 885,
937
+ 791
938
+ ],
939
+ "page_idx": 4
940
+ },
941
+ {
942
+ "type": "text",
943
+ "text": "Further, for larger kernel size, the Winograd algorithm is no longer able to construct linear transformations with sufficiently low numerical errors, no matter how the root points are chosen. Although there exists work by splitting the core, making it possible to compute large size convolutions with the Winograd $(2 \\times 2, 3 \\times 3)$ algorithm with low numerical error (Huang et al., 2020), it is not possible to achieve a lower",
944
+ "bbox": [
945
+ 495,
946
+ 799,
947
+ 885,
948
+ 905
949
+ ],
950
+ "page_idx": 4
951
+ },
952
+ {
953
+ "type": "header",
954
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
955
+ "bbox": [
956
+ 251,
957
+ 56,
958
+ 718,
959
+ 70
960
+ ],
961
+ "page_idx": 4
962
+ },
963
+ {
964
+ "type": "page_number",
965
+ "text": "5",
966
+ "bbox": [
967
+ 480,
968
+ 922,
969
+ 491,
970
+ 934
971
+ ],
972
+ "page_idx": 4
973
+ },
974
+ {
975
+ "type": "image",
976
+ "img_path": "images/598ba02ddbf4fa9d8137c2e4fa6a60ca3ff6f15c41d9ed1f5839ca36d8956a77.jpg",
977
+ "image_caption": [
978
+ "Figure 2. Converting invalid cyclic convolution to linear convolution, which is a process that can also be used to adjust the input tile sizes."
979
+ ],
980
+ "image_footnote": [],
981
+ "bbox": [
982
+ 161,
983
+ 85,
984
+ 803,
985
+ 330
986
+ ],
987
+ "page_idx": 5
988
+ },
989
+ {
990
+ "type": "text",
991
+ "text": "arithmetic complexity than Winograd $(2 \\times 2, 3 \\times 3)$ . Whereas our algorithm provides higher speedups and keeps the high numerical stability.",
992
+ "bbox": [
993
+ 84,
994
+ 387,
995
+ 473,
996
+ 434
997
+ ],
998
+ "page_idx": 5
999
+ },
1000
+ {
1001
+ "type": "table",
1002
+ "img_path": "images/a9b98f893973faacbd49d609fc7ced426faead155330f5a700844bae384bf7ce.jpg",
1003
+ "table_caption": [
1004
+ "Table 1. Comparison of different fast convolution algorithms. Mean square error was measured on randomly generated data, and $\\kappa (A^T)$ was calculated using the singular value of $A^T$ ."
1005
+ ],
1006
+ "table_footnote": [],
1007
+ "table_body": "<table><tr><td>Algorithm</td><td>Mean Square Error</td><td>κ(AT)</td><td>Arithmetic Complexity</td></tr><tr><td>direct convolution</td><td>1.0</td><td>1.0</td><td>100%</td></tr><tr><td>Wino(2×2, 3×3)</td><td>2.2</td><td>2.4</td><td>44.4%</td></tr><tr><td>Wino(3×3, 3×3)</td><td>6.4</td><td>14.5</td><td>30.4%</td></tr><tr><td>Wino(4×4, 3×3)</td><td>10.5</td><td>20.1</td><td>25%</td></tr><tr><td>SFC-4(4×4, 3×3)</td><td>2.4</td><td>2.7</td><td>31.94%</td></tr><tr><td>SFC-6(6×6, 3×3)</td><td>2.4</td><td>3.3</td><td>27.16%</td></tr><tr><td>SFC-6(7×7, 3×3)</td><td>2.6</td><td>3.4</td><td>29.93%</td></tr><tr><td>Wino(2×2, 5×5)</td><td>10.5</td><td>20.1</td><td>36%</td></tr><tr><td>SFC-6(6×6, 5×5)</td><td>3.6</td><td>3.5</td><td>20.44%</td></tr><tr><td>Wino(2×2, 7×7)</td><td>28.1</td><td>31.0</td><td>32.6%</td></tr><tr><td>SFC-6(4×4, 7×7)</td><td>3.6</td><td>3.5</td><td>21.99%</td></tr></table>",
1008
+ "bbox": [
1009
+ 86,
1010
+ 510,
1011
+ 473,
1012
+ 689
1013
+ ],
1014
+ "page_idx": 5
1015
+ },
1016
+ {
1017
+ "type": "text",
1018
+ "text": "5. Error Analysis and Frequency-wise Quantization",
1019
+ "text_level": 1,
1020
+ "bbox": [
1021
+ 84,
1022
+ 733,
1023
+ 408,
1024
+ 767
1025
+ ],
1026
+ "page_idx": 5
1027
+ },
1028
+ {
1029
+ "type": "text",
1030
+ "text": "This section would analyze the numerical error of fast convolution algorithms, which can be used to guide the development of quantization methods and serve as a benchmark for assessing the numerical stability across various fast algorithms.",
1031
+ "bbox": [
1032
+ 84,
1033
+ 777,
1034
+ 475,
1035
+ 853
1036
+ ],
1037
+ "page_idx": 5
1038
+ },
1039
+ {
1040
+ "type": "text",
1041
+ "text": "To cover the direct convolution into the same error analysis model, we can consider it as a fast convolution with $R = 3$ , $M = 1$ . For derivation convenience, we use the overlapped",
1042
+ "bbox": [
1043
+ 84,
1044
+ 859,
1045
+ 475,
1046
+ 906
1047
+ ],
1048
+ "page_idx": 5
1049
+ },
1050
+ {
1051
+ "type": "text",
1052
+ "text": "output form, in which $A$ is a reversible square matrix.",
1053
+ "bbox": [
1054
+ 496,
1055
+ 388,
1056
+ 852,
1057
+ 402
1058
+ ],
1059
+ "page_idx": 5
1060
+ },
1061
+ {
1062
+ "type": "equation",
1063
+ "text": "\n$$\n\\left[ \\begin{array}{l} y _ {0} \\\\ y _ {1} \\\\ y _ {2} \\end{array} \\right] ^ {T} = \\left[ \\begin{array}{c c c} 1 & & \\\\ & 1 & \\\\ & & 1 \\end{array} \\right] \\cdot \\left(\\left[ \\begin{array}{c c c} 1 & & \\\\ & 1 & \\\\ & & 1 \\end{array} \\right] \\cdot \\left[ \\begin{array}{l} f _ {0} \\\\ f _ {1} \\\\ f _ {2} \\end{array} \\right]\\right) \\odot (\\left[ 1 \\right] \\cdot \\left[ x _ {0} \\right])) \\tag {12}\n$$\n",
1064
+ "text_format": "latex",
1065
+ "bbox": [
1066
+ 500,
1067
+ 414,
1068
+ 885,
1069
+ 477
1070
+ ],
1071
+ "page_idx": 5
1072
+ },
1073
+ {
1074
+ "type": "text",
1075
+ "text": "We denote the quantized element-wise multiply as $\\odot_{Q}$ through which the operands are quantized and multiplied. $\\delta y$ represents the calculation error of the output $y$ . The error forward propagation process can be described as:",
1076
+ "bbox": [
1077
+ 496,
1078
+ 484,
1079
+ 888,
1080
+ 546
1081
+ ],
1082
+ "page_idx": 5
1083
+ },
1084
+ {
1085
+ "type": "equation",
1086
+ "text": "\n$$\ny + \\delta y = A ^ {T} \\cdot \\left(\\left(G \\cdot f\\right) \\odot_ {Q} \\left(B ^ {T} \\cdot x\\right)\\right) \\tag {13}\n$$\n",
1087
+ "text_format": "latex",
1088
+ "bbox": [
1089
+ 563,
1090
+ 556,
1091
+ 885,
1092
+ 575
1093
+ ],
1094
+ "page_idx": 5
1095
+ },
1096
+ {
1097
+ "type": "text",
1098
+ "text": "We assume these transformations to be accurate, and the quantized operator $\\odot$ introduces rounding errors. These errors would be subsequently magnified by the matrix multiplying $A^T$ .",
1099
+ "bbox": [
1100
+ 495,
1101
+ 587,
1102
+ 887,
1103
+ 648
1104
+ ],
1105
+ "page_idx": 5
1106
+ },
1107
+ {
1108
+ "type": "text",
1109
+ "text": "Set $s + \\delta s = (G \\cdot f) \\odot_{Q} (B^{T} \\cdot x)$ , by substituting $y = A^{T} \\cdot s$ into the Equation 13, we can obtain:",
1110
+ "bbox": [
1111
+ 496,
1112
+ 652,
1113
+ 885,
1114
+ 686
1115
+ ],
1116
+ "page_idx": 5
1117
+ },
1118
+ {
1119
+ "type": "equation",
1120
+ "text": "\n$$\n\\delta y = \\left(A ^ {T}\\right) ^ {- 1} \\cdot \\delta s \\tag {14}\n$$\n",
1121
+ "text_format": "latex",
1122
+ "bbox": [
1123
+ 627,
1124
+ 696,
1125
+ 885,
1126
+ 715
1127
+ ],
1128
+ "page_idx": 5
1129
+ },
1130
+ {
1131
+ "type": "text",
1132
+ "text": "Applying the properties of the paradigm $||\\ast ||$ yields:",
1133
+ "bbox": [
1134
+ 496,
1135
+ 733,
1136
+ 849,
1137
+ 750
1138
+ ],
1139
+ "page_idx": 5
1140
+ },
1141
+ {
1142
+ "type": "equation",
1143
+ "text": "\n$$\n\\left| \\left| \\delta y \\right| \\right| < = \\left| \\left| \\left(A ^ {T}\\right) \\right| \\right| \\cdot \\left| \\left| \\delta s \\right| \\right| \\tag {15}\n$$\n",
1144
+ "text_format": "latex",
1145
+ "bbox": [
1146
+ 604,
1147
+ 760,
1148
+ 885,
1149
+ 779
1150
+ ],
1151
+ "page_idx": 5
1152
+ },
1153
+ {
1154
+ "type": "text",
1155
+ "text": "Similar, bringing in $||s|| < = ||(A^T)^{-1}||\\cdot ||y||$ we have:",
1156
+ "bbox": [
1157
+ 496,
1158
+ 789,
1159
+ 870,
1160
+ 806
1161
+ ],
1162
+ "page_idx": 5
1163
+ },
1164
+ {
1165
+ "type": "equation",
1166
+ "text": "\n$$\n\\frac {| | \\delta y | |}{| | y | |} < = | | \\left(A ^ {T}\\right) ^ {- 1} | | \\cdot | | \\left(A ^ {T}\\right) | | \\cdot \\frac {| | \\delta s | |}{| | s | |} \\tag {16}\n$$\n",
1167
+ "text_format": "latex",
1168
+ "bbox": [
1169
+ 560,
1170
+ 816,
1171
+ 885,
1172
+ 851
1173
+ ],
1174
+ "page_idx": 5
1175
+ },
1176
+ {
1177
+ "type": "text",
1178
+ "text": "Here we can perform an analysis of Eq.16. The first term $||(A^T)^{-1}||\\cdot ||(A^T)||$ is the condition number of matrix $A^T$ , denoted as $\\kappa (A^T)$ . This term indicates the amplification",
1179
+ "bbox": [
1180
+ 496,
1181
+ 859,
1182
+ 887,
1183
+ 906
1184
+ ],
1185
+ "page_idx": 5
1186
+ },
1187
+ {
1188
+ "type": "header",
1189
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1190
+ "bbox": [
1191
+ 251,
1192
+ 56,
1193
+ 718,
1194
+ 70
1195
+ ],
1196
+ "page_idx": 5
1197
+ },
1198
+ {
1199
+ "type": "page_number",
1200
+ "text": "6",
1201
+ "bbox": [
1202
+ 480,
1203
+ 922,
1204
+ 491,
1205
+ 934
1206
+ ],
1207
+ "page_idx": 5
1208
+ },
1209
+ {
1210
+ "type": "text",
1211
+ "text": "factor applied to the error $\\delta s$ . The condition number of the standard orthogonal matrix is constant 1, like $A$ in direct convolution (Eq.1) and vanilla Fourier convolution, which would not amplify $\\delta s$ anymore. While the $\\kappa(A^T)$ for Winograd convolution can reach up to 31.0, as listed in Table 1. However, in our method, the $\\kappa(A^T)$ takes the values of 2.7, 3.3, and 3.5 for SFC4(4,3), SFC6(6,3), and SFC6(4,7), respectively, which is much less than that of Winograd.",
1212
+ "bbox": [
1213
+ 84,
1214
+ 84,
1215
+ 475,
1216
+ 205
1217
+ ],
1218
+ "page_idx": 6
1219
+ },
1220
+ {
1221
+ "type": "text",
1222
+ "text": "The final term $\\frac{||\\delta s||}{||s||}$ in Eq.16 is the error caused by the quantized operator $\\odot_{Q}$ , which depends on the data width, quantization method, and data distribution. For floating numbers, the error is fairly stationary as every operand has its own exponent code (scaling factor). We conduct numerical experiments under single precision (fp16) in Table 1, and it is found that the numerical error is highly correlated to the $\\kappa(A^T)$ , in accordance with our analysis.",
1223
+ "bbox": [
1224
+ 84,
1225
+ 212,
1226
+ 473,
1227
+ 335
1228
+ ],
1229
+ "page_idx": 6
1230
+ },
1231
+ {
1232
+ "type": "image",
1233
+ "img_path": "images/debc9acc810a6d4d5c5504ba33ee699654413ad51f79d63bbb7f80c761e9e4e3.jpg",
1234
+ "image_caption": [
1235
+ "Figure 3. The energy distribution in the frequency domain of the 9-th layer in Resnet18. Energy is concentrated in the low frequencies."
1236
+ ],
1237
+ "image_footnote": [],
1238
+ "bbox": [
1239
+ 96,
1240
+ 369,
1241
+ 480,
1242
+ 488
1243
+ ],
1244
+ "page_idx": 6
1245
+ },
1246
+ {
1247
+ "type": "text",
1248
+ "text": "For model quantization, numbers in a group share the same scaling factor to achieve integer representation. The granularity of the scaling factor group should fit with the data distribution to achieve low quantization error. Some work has found that in Winograd convolution, scaling factor grouping based on the transformation domain coordinates can recover model accuracy effectively. Here we give a brief theoretical explanation. Assume that the input $x$ has a fixed energy $||x|| = 1$ , the maximum possible value in the transformation domain is $(1,1,1,8,8,1)$ for $\\mathrm{F}(4,3)$ algorithm, which would be quadratic in 2D convolution. Grouping one tensor to one scaling factor would cause a waste of 3/6 bit in 1D/2D. For Fourier convolution, each frequency would have the same maximum value. However, due to the frequency properties of the model inputs (image or audio), there will be a tendency for the energy to converge towards lower frequencies, as Figure 3 shows. Thus grouping scaling factors by frequency can also reduce the error of Fourier convolution, but not as necessary as Winograd. This is because the aforementioned tendency is only significant in the first few layers, and the magnitude variance is not as large as",
1249
+ "bbox": [
1250
+ 84,
1251
+ 588,
1252
+ 475,
1253
+ 905
1254
+ ],
1255
+ "page_idx": 6
1256
+ },
1257
+ {
1258
+ "type": "text",
1259
+ "text": "Winograd.",
1260
+ "bbox": [
1261
+ 496,
1262
+ 84,
1263
+ 570,
1264
+ 99
1265
+ ],
1266
+ "page_idx": 6
1267
+ },
1268
+ {
1269
+ "type": "equation",
1270
+ "text": "\n$$\ny = \\sum_ {C _ {i n}} \\left( \\right.s _ {T x} \\left\\lceil B ^ {T} x B / s _ {T x} \\left. \\right\\rfloor_ {i n t N _ {T x}} \\odot s _ {T f} \\left\\lceil G f G ^ {T} / s _ {T f} \\left. \\right\\rfloor_ {i n t N _ {T f}}\\left. \\right) \\tag {17}\n$$\n",
1271
+ "text_format": "latex",
1272
+ "bbox": [
1273
+ 496,
1274
+ 111,
1275
+ 888,
1276
+ 154
1277
+ ],
1278
+ "page_idx": 6
1279
+ },
1280
+ {
1281
+ "type": "text",
1282
+ "text": "The scaling factor $s_{Tx}$ is of size $[T \\times T]$ , where $T$ is the size of the transform domain. For the scaling factor $s_{Tf}$ of weights, considering that per-channel quantization can achieve better results in direct convolutions, we suggest combining per-frequency quantization and per-channel quantization whose $s_{Tf}$ is of size $[OC \\times T \\times T]$ to achieve higher accuracy.",
1283
+ "bbox": [
1284
+ 495,
1285
+ 162,
1286
+ 885,
1287
+ 268
1288
+ ],
1289
+ "page_idx": 6
1290
+ },
1291
+ {
1292
+ "type": "text",
1293
+ "text": "6. Experimental Evaluation",
1294
+ "text_level": 1,
1295
+ "bbox": [
1296
+ 496,
1297
+ 287,
1298
+ 732,
1299
+ 305
1300
+ ],
1301
+ "page_idx": 6
1302
+ },
1303
+ {
1304
+ "type": "text",
1305
+ "text": "We conducted experiments on image classification tasks to demonstrate the effectiveness of our algorithms. To comprehensively evaluate the computation cost of models accelerated by fast convolution algorithm and quantization, it is critical to consider both the reduction in arithmetic complexity afforded by fast convolution and the reduction in arithmetic data width introduced by quantization. Consequently, we adopt bit-operations (BOPs) as a metric of computation cost, diverging from the traditional floating-operations (FLOPs). In this metric, an n-bit addition operation requires n BOPs, whereas an n-bit multiplication costs $\\mathrm{n}(\\mathrm{n} - 1)$ BOPs. This is because an n-bit multiplication can be decomposed into n-1 instances of n-bit additions. The transformation cost of fast algorithms is also taken into account.",
1306
+ "bbox": [
1307
+ 495,
1308
+ 314,
1309
+ 887,
1310
+ 525
1311
+ ],
1312
+ "page_idx": 6
1313
+ },
1314
+ {
1315
+ "type": "text",
1316
+ "text": "6.1. Post-training Quantization on Image Classification Benchmarks",
1317
+ "text_level": 1,
1318
+ "bbox": [
1319
+ 496,
1320
+ 542,
1321
+ 883,
1322
+ 570
1323
+ ],
1324
+ "page_idx": 6
1325
+ },
1326
+ {
1327
+ "type": "text",
1328
+ "text": "Experiments were conducted on the ImageNet dataset, which contains 1.4 million images of size $224 \\times 224 \\times 3$ , distributed across 1,000 classes. We randomly selected 500 images from training set to create the calibration set for PTQ fine-tuning. Model accuracy was evaluated on the validation set. We utilized pre-trained fp32 models from TorchVision as our benchmarks. All batch normalization layers were fused into the preceding convolution layers prior to quantization.",
1329
+ "bbox": [
1330
+ 495,
1331
+ 580,
1332
+ 885,
1333
+ 715
1334
+ ],
1335
+ "page_idx": 6
1336
+ },
1337
+ {
1338
+ "type": "text",
1339
+ "text": "We conducted quantization on the following algorithms: 1) Direct convolution, 2) The well-known Winograd $\\mathrm{F}(4\\times 4$ $3\\times 3)$ algorithms, which have been extensively researched for their quantization methods in recent years, and 3) our proposed SFC algorithms, including 1D and 2D format. For all these methods, all $3\\times 3$ convolution layers with a stride of 1 were replaced by the corresponding algorithm. Direct convolution and our SFC algorithms were quantized using AdaQuant (Hubara et al., 2020), while the Winograd algorithm was processed with Scaling Gradient Backward (Jain et al., 2020), due to observed convergence differences with AdaQuant in the Winograd $\\mathrm{F}(4\\times 4,3\\times 3)$ . All the data",
1340
+ "bbox": [
1341
+ 495,
1342
+ 724,
1343
+ 885,
1344
+ 904
1345
+ ],
1346
+ "page_idx": 6
1347
+ },
1348
+ {
1349
+ "type": "header",
1350
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1351
+ "bbox": [
1352
+ 251,
1353
+ 56,
1354
+ 718,
1355
+ 70
1356
+ ],
1357
+ "page_idx": 6
1358
+ },
1359
+ {
1360
+ "type": "page_number",
1361
+ "text": "7",
1362
+ "bbox": [
1363
+ 480,
1364
+ 922,
1365
+ 491,
1366
+ 934
1367
+ ],
1368
+ "page_idx": 6
1369
+ },
1370
+ {
1371
+ "type": "text",
1372
+ "text": "in the spatial domain are quantized to int8, and the data in the transformation domain are quantized from int8 to int4. As mentioned in Section 5, storing spatial domain data in external storage is unnecessary; instead, data can be stored in the transform domain to avoid errors caused by multiple quantization operators.",
1373
+ "bbox": [
1374
+ 84,
1375
+ 84,
1376
+ 475,
1377
+ 175
1378
+ ],
1379
+ "page_idx": 7
1380
+ },
1381
+ {
1382
+ "type": "image",
1383
+ "img_path": "images/c4b92c374e34b3f7ed633998ad564c3ac67c7d763a587309da47cd3f6ae1add8.jpg",
1384
+ "image_caption": [
1385
+ "Figure 4. Model Accuracy vs. Computation Cost. We done posttraining quantization for Resnet18 onImagenet dataset from int8 to int4."
1386
+ ],
1387
+ "image_footnote": [],
1388
+ "bbox": [
1389
+ 84,
1390
+ 188,
1391
+ 482,
1392
+ 398
1393
+ ],
1394
+ "page_idx": 7
1395
+ },
1396
+ {
1397
+ "type": "table",
1398
+ "img_path": "images/30403a76c119553cfac587bf9fccf05a31d537d75bcc1eb7899a3c4a50ba70f3.jpg",
1399
+ "table_caption": [
1400
+ "Table 2. Post-training quantization experiments on ImageNet."
1401
+ ],
1402
+ "table_footnote": [],
1403
+ "table_body": "<table><tr><td>Resnet18</td><td></td><td>Bits</td><td>Top-1</td><td>Δ</td></tr><tr><td>Channel Balancing</td><td>Wino(4×4, 3×3)</td><td>8</td><td>67.54</td><td>-2.22</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>8</td><td>68.16</td><td>-1.60</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>6</td><td>64.34</td><td>-5.42</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>8</td><td>69.59</td><td>-0.17</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>6</td><td>68.80</td><td>-0.96</td></tr><tr><td>Resnet34</td><td></td><td>Bits</td><td>Top-1</td><td>Δ</td></tr><tr><td>Channel Balancing</td><td>Wino(4×4, 3×3)</td><td>8</td><td>71.86</td><td>-1.44</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>8</td><td>71.75</td><td>-1.55</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>6</td><td>68.80</td><td>-4.50</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>8</td><td>73.14</td><td>-0.16</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>6</td><td>72.40</td><td>-0.90</td></tr><tr><td>Resnet50</td><td></td><td>Bits</td><td>Top-1</td><td>Δ</td></tr><tr><td>Channel Balancing</td><td>Wino(4×4, 3×3)</td><td>8</td><td>75.84</td><td>-0.29</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>8</td><td>75.74</td><td>-0.40</td></tr><tr><td>Full Quant.</td><td>Wino(4×4, 3×3)</td><td>6</td><td>74.75</td><td>-1.39</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>8</td><td>76.02</td><td>-0.12</td></tr><tr><td>Ours</td><td>SFC6(7×7, 3×3)</td><td>6</td><td>75.54</td><td>-0.60</td></tr></table>",
1404
+ "bbox": [
1405
+ 86,
1406
+ 529,
1407
+ 486,
1408
+ 763
1409
+ ],
1410
+ "page_idx": 7
1411
+ },
1412
+ {
1413
+ "type": "text",
1414
+ "text": "Since it is not feasible to align a specific category of data, such as ensuring uniform computational costs across a column to compare accuracy in the table, we have illustrated the accuracy curves in relation to computation cost (BOPs) in Figure 4 for a visual comparison of different algorithms. To ensure a fair and comprehensive comparison, we have included the state-of-the-art Winograd-quantization work in the figure, including Channel Balancing (Chikin &",
1415
+ "bbox": [
1416
+ 84,
1417
+ 784,
1418
+ 475,
1419
+ 905
1420
+ ],
1421
+ "page_idx": 7
1422
+ },
1423
+ {
1424
+ "type": "text",
1425
+ "text": "Kryzhanovskiy, 2022) and Full Quantization (Tianqi et al., 2023). A subset of the detailed data is presented in Table 2. As depicted in Figure 4, the SFC-6(7×7, 3×3) algorithm demonstrates a computation cost reduction of $1.6 \\times$ to $2.5 \\times$ compared to both the Winograd F(4×4, 3×3) and direct convolution algorithms, while maintaining equivalent model accuracy. The experiments confirm that the SFC algorithms achieve a reduction in arithmetic complexity comparable to Winograd, with model accuracy similar to that of direct convolution (quantization-alone).",
1426
+ "bbox": [
1427
+ 495,
1428
+ 84,
1429
+ 887,
1430
+ 236
1431
+ ],
1432
+ "page_idx": 7
1433
+ },
1434
+ {
1435
+ "type": "image",
1436
+ "img_path": "images/a4370c3cad25b0d46594e2bf502ff1cb797dc7d9ac687220b24d176fb6dac61c.jpg",
1437
+ "image_caption": [
1438
+ "Figure 5. The MSE for different algorithms under int8 PTQ. Lower numerical error results to better PTQ results."
1439
+ ],
1440
+ "image_footnote": [],
1441
+ "bbox": [
1442
+ 532,
1443
+ 246,
1444
+ 848,
1445
+ 411
1446
+ ],
1447
+ "page_idx": 7
1448
+ },
1449
+ {
1450
+ "type": "text",
1451
+ "text": "We also plot the mean squared error (MSE) between accelerated layers to fp32 layers for different methods under int8 quantization. The experimental results, presented in Figure 5, match perfectly with the numerical error analysis conducted in Section 5 and Table 1.",
1452
+ "bbox": [
1453
+ 495,
1454
+ 472,
1455
+ 887,
1456
+ 547
1457
+ ],
1458
+ "page_idx": 7
1459
+ },
1460
+ {
1461
+ "type": "text",
1462
+ "text": "6.2. FPGA Simulation",
1463
+ "text_level": 1,
1464
+ "bbox": [
1465
+ 496,
1466
+ 564,
1467
+ 656,
1468
+ 579
1469
+ ],
1470
+ "page_idx": 7
1471
+ },
1472
+ {
1473
+ "type": "text",
1474
+ "text": "We develop RTL code for the convolution accelerator based on the SFC-6(7×7,3×3) algorithm. The resource consumption and timing report are synthesized using Xilinx Vivado tools. The parallelism of our design is configured at $[4\\times 4\\times 7\\times 7]$ , indicating that one convolution operator with 4 input channels, 4 output channels, and $7\\times 7$ feature map are processed simultaneously. The VGG-16 model is taken as an example, whose convolution layers all have $3\\times 3$ filters with stride=1, making it well-suited for fast convolution. All components in our datapath are quantized to int8, and all computing stages in fast convolution are designed to operate in a full pipeline architecture. The DSP48 hardcore is a crucial resource on FPGA, as it can efficiently deploy multiply operations. One DSP48 unit can implement two int8 multipliers or one int16 multipliers, which means that our implementation consumes only 1056 DSPs (calculated as $4\\times 4\\times 132\\times 0.5$ ). In comparison, Winograd-based or NTT-based accelerators (Liang et al., 2020; Prasetiyo et al., 2023) require more DSPs for high precision multipliers, and accelerators for direct convolution (Huang et al., 2022) need more DSPs due to a higher complexity of multiplications. The re",
1475
+ "bbox": [
1476
+ 495,
1477
+ 588,
1478
+ 888,
1479
+ 905
1480
+ ],
1481
+ "page_idx": 7
1482
+ },
1483
+ {
1484
+ "type": "header",
1485
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1486
+ "bbox": [
1487
+ 251,
1488
+ 56,
1489
+ 720,
1490
+ 70
1491
+ ],
1492
+ "page_idx": 7
1493
+ },
1494
+ {
1495
+ "type": "page_number",
1496
+ "text": "8",
1497
+ "bbox": [
1498
+ 480,
1499
+ 922,
1500
+ 491,
1501
+ 934
1502
+ ],
1503
+ "page_idx": 7
1504
+ },
1505
+ {
1506
+ "type": "text",
1507
+ "text": "sult highlights the efficiency of integrating fast convolution with model quantization.",
1508
+ "bbox": [
1509
+ 84,
1510
+ 84,
1511
+ 473,
1512
+ 116
1513
+ ],
1514
+ "page_idx": 8
1515
+ },
1516
+ {
1517
+ "type": "table",
1518
+ "img_path": "images/488c2c17519e27ce2e8977cd5decebaf050bb057dc82e2d3939d74e8e54ffedf.jpg",
1519
+ "table_caption": [
1520
+ "Table 3. FPGA synthesis results."
1521
+ ],
1522
+ "table_footnote": [],
1523
+ "table_body": "<table><tr><td>Works</td><td>Liang et al., 2020</td><td>Prasetyo et al., 2023</td><td>Huang et al., 2022</td><td>Ours</td></tr><tr><td>Algorithm Platform</td><td>Winograd zcu102</td><td>NTT xc7vx980t</td><td>direct conv alveo U50</td><td>SFC xczu19eg</td></tr><tr><td>Precision</td><td>16bit</td><td>8bit/21bit</td><td>8bit</td><td>8bit</td></tr><tr><td>LUTs</td><td>-</td><td>601.7K</td><td>335K</td><td>221K</td></tr><tr><td>DSPs</td><td>2304</td><td>4100</td><td>3395</td><td>1056</td></tr><tr><td>Clock</td><td>200M</td><td>200M</td><td>200M</td><td>200M</td></tr><tr><td>Throughput (GOPs)</td><td>2601</td><td>2859.5</td><td>1000</td><td>2129</td></tr><tr><td>GOPs/DSPs /Clock</td><td>5.64</td><td>3.48</td><td>1.96</td><td>10.08</td></tr></table>",
1524
+ "bbox": [
1525
+ 86,
1526
+ 167,
1527
+ 496,
1528
+ 347
1529
+ ],
1530
+ "page_idx": 8
1531
+ },
1532
+ {
1533
+ "type": "text",
1534
+ "text": "6.3. Ablation Study on Quantization Granularity",
1535
+ "text_level": 1,
1536
+ "bbox": [
1537
+ 84,
1538
+ 383,
1539
+ 429,
1540
+ 398
1541
+ ],
1542
+ "page_idx": 8
1543
+ },
1544
+ {
1545
+ "type": "text",
1546
+ "text": "In Section 5, we theoretically predict that frequency-wise quantization will produce less error than tensor-wise quantization. Here, we provide an ablation experiment on Resnet-18 by enumerating combinations of different quantization granularity in Table 4 and Table 5. The results underscore that the Winograd algorithm exhibits more sensitivity to quantization granularity, requiring the finest granularity even with int8 quantization. In contrast, the SFC maintains acceptable accuracy under int8 quantization without specialized quantization. However, at lower bitwidths, it is still necessary to employ frequency-wise quantization for activation tensors.",
1547
+ "bbox": [
1548
+ 84,
1549
+ 406,
1550
+ 475,
1551
+ 588
1552
+ ],
1553
+ "page_idx": 8
1554
+ },
1555
+ {
1556
+ "type": "table",
1557
+ "img_path": "images/abb93eb49e1b43d87dbc1a14380b7f4fd1c5eb5f3b204870041585a8ffed5f37.jpg",
1558
+ "table_caption": [
1559
+ "Table 4. Ablation study for Resnet18 on int8 quantization."
1560
+ ],
1561
+ "table_footnote": [],
1562
+ "table_body": "<table><tr><td>Algorithm</td><td>Activation Granularity</td><td>Filter Granularity</td><td>Accuracy</td></tr><tr><td rowspan=\"4\">SFC-6(7×7, 3×3)</td><td>Tensor</td><td>Channel</td><td>69.18</td></tr><tr><td>Freq.</td><td>Channel</td><td>69.54</td></tr><tr><td>Freq.</td><td>Freq.</td><td>69.55</td></tr><tr><td>Freq.</td><td>Channel+Freq.</td><td>69.58</td></tr><tr><td rowspan=\"2\">Wino(4×4, 3×3)</td><td>Tensor</td><td>Channel</td><td>57.40</td></tr><tr><td>Freq.</td><td>Channel+Freq.</td><td>67.62</td></tr></table>",
1563
+ "bbox": [
1564
+ 86,
1565
+ 643,
1566
+ 482,
1567
+ 758
1568
+ ],
1569
+ "page_idx": 8
1570
+ },
1571
+ {
1572
+ "type": "table",
1573
+ "img_path": "images/460733df66bd177ff33db05544d81171d35d3af8ba2d5ffacbbf49481618561c.jpg",
1574
+ "table_caption": [
1575
+ "Table 5. Ablation study for Resnet-18 with SFC(7x7, 3x3)."
1576
+ ],
1577
+ "table_footnote": [],
1578
+ "table_body": "<table><tr><td>Quant. Granularity</td><td>int8</td><td>int6</td><td>int4</td></tr><tr><td>A: Tensor, W:Channel</td><td>69.18</td><td>65.42</td><td>17.81</td></tr><tr><td>A: Freq., W:Channel</td><td>69.54</td><td>68.34</td><td>31.10</td></tr><tr><td>A: Freq., W:Freq.+Channel</td><td>69.58</td><td>68.83</td><td>55.82</td></tr></table>",
1579
+ "bbox": [
1580
+ 109,
1581
+ 825,
1582
+ 452,
1583
+ 883
1584
+ ],
1585
+ "page_idx": 8
1586
+ },
1587
+ {
1588
+ "type": "text",
1589
+ "text": "7. Conclusion",
1590
+ "text_level": 1,
1591
+ "bbox": [
1592
+ 496,
1593
+ 83,
1594
+ 617,
1595
+ 99
1596
+ ],
1597
+ "page_idx": 8
1598
+ },
1599
+ {
1600
+ "type": "text",
1601
+ "text": "We propose a novel fast convolution algorithm extended from the Fourier transform, which solves the accuracy problem of the conventional fast convolution algorithm applied to quantized models. According to experiment results, our algorithms outperform state-of-the-art fast convolution quantization works on both model accuracy and computation cost reduction. Our algorithms share exactly the same computational flow as the Winograd algorithm, which means that they can be deployed on general-purpose processors (CPUs, GPUs) and hardware accelerator design conveniently by following the existing works.",
1602
+ "bbox": [
1603
+ 496,
1604
+ 109,
1605
+ 887,
1606
+ 276
1607
+ ],
1608
+ "page_idx": 8
1609
+ },
1610
+ {
1611
+ "type": "text",
1612
+ "text": "Acknowledgements",
1613
+ "text_level": 1,
1614
+ "bbox": [
1615
+ 496,
1616
+ 294,
1617
+ 665,
1618
+ 311
1619
+ ],
1620
+ "page_idx": 8
1621
+ },
1622
+ {
1623
+ "type": "text",
1624
+ "text": "This work was supported in part by the National Key Research and Development Program of China under Grant 2022YFB4400900in part by the Natural Science Foundation of China under Grants 62211530492 and 62371223.",
1625
+ "bbox": [
1626
+ 496,
1627
+ 320,
1628
+ 888,
1629
+ 380
1630
+ ],
1631
+ "page_idx": 8
1632
+ },
1633
+ {
1634
+ "type": "text",
1635
+ "text": "Impact Statement",
1636
+ "text_level": 1,
1637
+ "bbox": [
1638
+ 496,
1639
+ 400,
1640
+ 653,
1641
+ 417
1642
+ ],
1643
+ "page_idx": 8
1644
+ },
1645
+ {
1646
+ "type": "text",
1647
+ "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 which we feel must be specifically highlighted here.",
1648
+ "bbox": [
1649
+ 496,
1650
+ 426,
1651
+ 885,
1652
+ 487
1653
+ ],
1654
+ "page_idx": 8
1655
+ },
1656
+ {
1657
+ "type": "text",
1658
+ "text": "References",
1659
+ "text_level": 1,
1660
+ "bbox": [
1661
+ 496,
1662
+ 506,
1663
+ 594,
1664
+ 522
1665
+ ],
1666
+ "page_idx": 8
1667
+ },
1668
+ {
1669
+ "type": "list",
1670
+ "sub_type": "ref_text",
1671
+ "list_items": [
1672
+ "Alam, S. A., Anderson, A., Barabasz, B., and Gregg, D. Winograd convolution for deep neural networks: Efficient point selection. ACM Transactions on Embedded Computing Systems, 21(6):1-28, 2022.",
1673
+ "Andri, R., Bussolino, B., Cipolletta, A., Cavigelli, L., and Wang, Z. Going further with winograd convolutions: Tap-wise quantization for efficient inference on 4x4 tiles. In 2022 55th IEEE/ACM International Symposium on Microarchitecture (MICRO), pp. 582-598. IEEE, 2022.",
1674
+ "Barabasz, B. and Gregg, D. Winograd convolution for dnns: Beyond linear polynomials. In International Conference of the Italian Association for Artificial Intelligence, pp. 307-320. Springer, 2019.",
1675
+ "Barabasz, B., Anderson, A., Soodhalter, K. M., and Gregg, D. Error analysis and improving the accuracy of winograd convolution for deep neural networks. ACM Transactions on Mathematical Software (TOMS), 46(4):1-33, 2020.",
1676
+ "Chikin, V. and Kryzhanovskiy, V. Channel balancing for accurate quantization of winograd convolutions. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, pp. 12507-12516, 2022."
1677
+ ],
1678
+ "bbox": [
1679
+ 496,
1680
+ 530,
1681
+ 888,
1682
+ 905
1683
+ ],
1684
+ "page_idx": 8
1685
+ },
1686
+ {
1687
+ "type": "header",
1688
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1689
+ "bbox": [
1690
+ 251,
1691
+ 56,
1692
+ 720,
1693
+ 70
1694
+ ],
1695
+ "page_idx": 8
1696
+ },
1697
+ {
1698
+ "type": "page_number",
1699
+ "text": "9",
1700
+ "bbox": [
1701
+ 480,
1702
+ 922,
1703
+ 491,
1704
+ 934
1705
+ ],
1706
+ "page_idx": 8
1707
+ },
1708
+ {
1709
+ "type": "list",
1710
+ "sub_type": "ref_text",
1711
+ "list_items": [
1712
+ "Hong, S., Arthanto, Y. F., Kim, J.-Y., et al. Accelerating deep convolutional neural networks using number theoretic transform. IEEE Transactions on Circuits and Systems I: Regular Papers, 70(1):315-326, 2022.",
1713
+ "Huang, D., Zhang, X., Zhang, R., Zhi, T., He, D., Guo, J., Liu, C., Guo, Q., Du, Z., Liu, S., et al. Dwm: A decomposable winograd method for convolution acceleration. In Proceedings of the AAAI Conference on Artificial Intelligence, volume 34, pp. 4174-4181, 2020.",
1714
+ "Huang, W., Wu, H., Chen, Q., Luo, C., Zeng, S., Li, T., and Huang, Y. FPGA-based high-throughput cnn hardware accelerator with high computing resource utilization ratio. IEEE Transactions on Neural Networks and Learning Systems, 33(8):4069-4083, 2022. doi: 10.1109/TNNLS.2021.3055814.",
1715
+ "Hubara, I., Nahshan, Y., Hanani, Y., Banner, R., and Soudry, D. Improving post training neural quantization: Layerwise calibration and integer programming. arXiv.org, 2020.",
1716
+ "Jain, S., Gural, A., Wu, M., and Dick, C. Trained quantization thresholds for accurate and efficient fixed-point inference of deep neural networks. Proceedings of Machine Learning and Systems, 2:112-128, 2020.",
1717
+ "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.",
1718
+ "Lavin, A. and Gray, S. Fast algorithms for convolutional neural networks. In Proceedings of the IEEE conference on computer vision and pattern recognition, pp. 4013-4021, 2016.",
1719
+ "Li, G., Jia, Z., Feng, X., and Wang, Y. Lowino: Towards efficient low-precision winograd convolutions on modern cpus. In Proceedings of the 50th International Conference on Parallel Processing, pp. 1-11, 2021.",
1720
+ "Liang, Y., Lu, L., Xiao, Q., and Yan, S. Evaluating fast algorithms for convolutional neural networks on fpgas. IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, 39(4):857-870, 2020. doi: 10.1109/tcad.2019.2897701.",
1721
+ "Liu, Z.-G. and Mattina, M. Efficient residue number system based winograd convolution. In European Conference on Computer Vision, pp. 53-68. Springer, 2020.",
1722
+ "Mathieu, M., Henaff, M., and LeCun, Y. Fast training of convolutional networks through ffts: international conference on learning representations (iclr2014), cbls, april 2014. In 2nd International Conference on Learning Representations, ICLR 2014, 2014."
1723
+ ],
1724
+ "bbox": [
1725
+ 86,
1726
+ 84,
1727
+ 475,
1728
+ 905
1729
+ ],
1730
+ "page_idx": 9
1731
+ },
1732
+ {
1733
+ "type": "list",
1734
+ "sub_type": "ref_text",
1735
+ "list_items": [
1736
+ "Prasetyo, Hong, S., Arthanto, Y. F., and Kim, J.-Y. Accelerating deep convolutional neural networks using number theoretic transform. IEEE Transactions on Circuits and Systems I: Regular Papers, 70(1):315-326, 2023. doi: 10.1109/tcsi.2022.3214528.",
1737
+ "Tianqi, C., Xu, W., Chen, W., Wang, P., and Cheng, J. Towards efficient and accurate winograd convolution via full quantization. In Thirty-seventh Conference on Neural Information Processing Systems, 2023.",
1738
+ "Vincent, K., Stephano, K., Frumkin, M., Ginsburg, B., and Demouth, J. On improving the numerical stability of winograd convolutions. 2017."
1739
+ ],
1740
+ "bbox": [
1741
+ 500,
1742
+ 84,
1743
+ 887,
1744
+ 286
1745
+ ],
1746
+ "page_idx": 9
1747
+ },
1748
+ {
1749
+ "type": "header",
1750
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1751
+ "bbox": [
1752
+ 251,
1753
+ 56,
1754
+ 720,
1755
+ 71
1756
+ ],
1757
+ "page_idx": 9
1758
+ },
1759
+ {
1760
+ "type": "page_number",
1761
+ "text": "10",
1762
+ "bbox": [
1763
+ 477,
1764
+ 922,
1765
+ 495,
1766
+ 934
1767
+ ],
1768
+ "page_idx": 9
1769
+ },
1770
+ {
1771
+ "type": "text",
1772
+ "text": "A. Typical Symbolic Fourier Convolution Algorithms",
1773
+ "text_level": 1,
1774
+ "bbox": [
1775
+ 84,
1776
+ 83,
1777
+ 535,
1778
+ 101
1779
+ ],
1780
+ "page_idx": 10
1781
+ },
1782
+ {
1783
+ "type": "text",
1784
+ "text": "For SFC-4 $(4\\times 4,3\\times 3)$ algorithm, the matrices (with polynomial multiplication integrated) are:",
1785
+ "bbox": [
1786
+ 84,
1787
+ 109,
1788
+ 723,
1789
+ 126
1790
+ ],
1791
+ "page_idx": 10
1792
+ },
1793
+ {
1794
+ "type": "equation",
1795
+ "text": "\n$$\nB ^ {T} = \\left( \\begin{array}{c c c c c c} 0 & 1 & 1 & 1 & 1 & 0 \\\\ 0 & - 1 & 1 & - 1 & 1 & 0 \\\\ 0 & 1 & - 1 & - 1 & 1 & 0 \\\\ 0 & 0 & - 1 & 0 & 1 & 0 \\\\ 0 & 1 & 0 & - 1 & 0 & 0 \\\\ 1 & 0 & 0 & 0 & - 1 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 1 \\end{array} \\right),\n$$\n",
1796
+ "text_format": "latex",
1797
+ "bbox": [
1798
+ 403,
1799
+ 191,
1800
+ 671,
1801
+ 305
1802
+ ],
1803
+ "page_idx": 10
1804
+ },
1805
+ {
1806
+ "type": "equation",
1807
+ "text": "\n$$\nG = \\left( \\begin{array}{c c c} 1 & 1 & 1 \\\\ 1 & - 1 & 1 \\\\ 1 & - 1 & - 1 \\\\ 1 & 0 & - 1 \\\\ 0 & - 1 & 0 \\\\ 1 & 0 & 0 \\\\ 0 & 0 & 1 \\end{array} \\right), A = \\frac {1}{4} \\left( \\begin{array}{c c c c} 1 & 1 & 1 & 1 \\\\ 1 & - 1 & 1 & - 1 \\\\ 0 & 2 & 0 & - 2 \\\\ 2 & - 2 & - 2 & 2 \\\\ - 2 & - 2 & 2 & 2 \\\\ 4 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 4 \\end{array} \\right)\n$$\n",
1808
+ "text_format": "latex",
1809
+ "bbox": [
1810
+ 300,
1811
+ 301,
1812
+ 666,
1813
+ 412
1814
+ ],
1815
+ "page_idx": 10
1816
+ },
1817
+ {
1818
+ "type": "text",
1819
+ "text": "(18)",
1820
+ "bbox": [
1821
+ 854,
1822
+ 294,
1823
+ 885,
1824
+ 306
1825
+ ],
1826
+ "page_idx": 10
1827
+ },
1828
+ {
1829
+ "type": "text",
1830
+ "text": "It costs 49 multiplications to generate 16 outputs. And only 46 multiplications are consumed when Hermitian symmetry is fully considered.",
1831
+ "bbox": [
1832
+ 84,
1833
+ 478,
1834
+ 888,
1835
+ 508
1836
+ ],
1837
+ "page_idx": 10
1838
+ },
1839
+ {
1840
+ "type": "text",
1841
+ "text": "The SFC-6(6 × 6, 3 × 3) algorithm costs 100/88 multiplications to generate 36 outputs. The matrices are:",
1842
+ "bbox": [
1843
+ 84,
1844
+ 516,
1845
+ 782,
1846
+ 532
1847
+ ],
1848
+ "page_idx": 10
1849
+ },
1850
+ {
1851
+ "type": "equation",
1852
+ "text": "\n$$\nB ^ {T} = \\left[ \\begin{array}{c c c c c c c c} 0 & 1 & 1 & 1 & 1 & 1 & 1 & 0 \\\\ 0 & 1 & 1 & 0 & - 1 & - 1 & 0 & 0 \\\\ 0 & 0 & - 1 & - 1 & 0 & 1 & 1 & 0 \\\\ 0 & 1 & 0 & - 1 & - 1 & 0 & 1 & 0 \\\\ 0 & 1 & 0 & - 1 & 1 & 0 & - 1 & 0 \\\\ 0 & 0 & - 1 & 1 & 0 & - 1 & 1 & 0 \\\\ 0 & 1 & - 1 & 0 & 1 & - 1 & 0 & 0 \\\\ 0 & 1 & - 1 & 1 & 1 & - 1 & 1 & 0 \\\\ 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 \\end{array} \\right],\n$$\n",
1853
+ "text_format": "latex",
1854
+ "bbox": [
1855
+ 367,
1856
+ 598,
1857
+ 699,
1858
+ 757
1859
+ ],
1860
+ "page_idx": 10
1861
+ },
1862
+ {
1863
+ "type": "equation",
1864
+ "text": "\n$$\nG = \\left[ \\begin{array}{l l l} 1 & 1 & 1 \\\\ 0 & 1 & 1 \\\\ - 1 & - 1 & 0 \\\\ - 1 & 0 & 1 \\\\ - 1 & 0 & 1 \\\\ 1 & - 1 & 0 \\\\ 0 & - 1 & 1 \\\\ 1 & - 1 & 1 \\\\ 1 & 0 & 0 \\\\ 0 & 0 & 1 \\end{array} \\right], A = \\frac {1}{6} \\left[ \\begin{array}{l l l l l l} 1 & 1 & 1 & 1 & 1 & 1 \\\\ 2 & 1 & - 1 & - 2 & - 1 & 1 \\\\ - 1 & 1 & 2 & 1 & - 1 & - 2 \\\\ - 1 & - 2 & - 1 & 1 & 2 & 1 \\\\ 1 & - 2 & 1 & 1 & - 2 & 1 \\\\ 1 & 1 & - 2 & 1 & 1 & - 2 \\\\ - 2 & 1 & 1 & - 2 & 1 & 1 \\\\ - 1 & 1 & - 1 & 1 & - 1 & 1 \\\\ 6 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 6 \\end{array} \\right]\n$$\n",
1865
+ "text_format": "latex",
1866
+ "bbox": [
1867
+ 271,
1868
+ 753,
1869
+ 697,
1870
+ 910
1871
+ ],
1872
+ "page_idx": 10
1873
+ },
1874
+ {
1875
+ "type": "text",
1876
+ "text": "(19)",
1877
+ "bbox": [
1878
+ 854,
1879
+ 747,
1880
+ 885,
1881
+ 760
1882
+ ],
1883
+ "page_idx": 10
1884
+ },
1885
+ {
1886
+ "type": "header",
1887
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1888
+ "bbox": [
1889
+ 250,
1890
+ 56,
1891
+ 722,
1892
+ 71
1893
+ ],
1894
+ "page_idx": 10
1895
+ },
1896
+ {
1897
+ "type": "page_number",
1898
+ "text": "11",
1899
+ "bbox": [
1900
+ 477,
1901
+ 922,
1902
+ 495,
1903
+ 935
1904
+ ],
1905
+ "page_idx": 10
1906
+ },
1907
+ {
1908
+ "type": "text",
1909
+ "text": "The SFC-6(7 × 7, 3 × 3) algorithm costs 144/132 multiplications to generate 49 outputs. Its transformation matrices are:",
1910
+ "bbox": [
1911
+ 84,
1912
+ 85,
1913
+ 877,
1914
+ 99
1915
+ ],
1916
+ "page_idx": 11
1917
+ },
1918
+ {
1919
+ "type": "equation",
1920
+ "text": "\n$$\nB ^ {T} = \\left[ \\begin{array}{c c c c c c c c c} 0 & 1 & 1 & 1 & 1 & 1 & 1 & 0 & 0 \\\\ 0 & 1 & 1 & 0 & - 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 0 & - 1 & - 1 & 0 & 1 & 1 & 0 & 0 \\\\ 0 & 1 & 0 & - 1 & - 1 & 0 & 1 & 0 & 0 \\\\ 0 & 1 & 0 & - 1 & 1 & 0 & - 1 & 0 & 0 \\\\ 0 & 0 & - 1 & 1 & 0 & - 1 & 1 & 0 & 0 \\\\ 0 & 1 & - 1 & 0 & 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 1 & - 1 & 1 & - 1 & 1 & - 1 & 0 & 0 \\\\ 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 \\end{array} \\right],\n$$\n",
1921
+ "text_format": "latex",
1922
+ "bbox": [
1923
+ 367,
1924
+ 111,
1925
+ 707,
1926
+ 265
1927
+ ],
1928
+ "page_idx": 11
1929
+ },
1930
+ {
1931
+ "type": "equation",
1932
+ "text": "\n$$\nG = \\left[ \\begin{array}{c c c} 1 & 1 & 1 \\\\ 0 & 1 & 1 \\\\ - 1 & - 1 & 0 \\\\ - 1 & 0 & 1 \\\\ - 1 & 0 & 1 \\\\ 1 & - 1 & 0 \\\\ 0 & - 1 & 1 \\\\ 1 & - 1 & 1 \\\\ 1 & 0 & 0 \\\\ 0 & 0 & 1 \\\\ 0 & 1 & 0 \\\\ 0 & 0 & 1 \\end{array} \\right], A = \\frac {1}{6} \\left[ \\begin{array}{c c c c c c c} 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ 2 & 1 & - 1 & - 2 & - 1 & 1 & 2 \\\\ - 1 & 1 & 2 & 1 & - 1 & - 2 & - 1 \\\\ - 1 & - 2 & - 1 & 1 & 2 & 1 & - 1 \\\\ 1 & - 2 & 1 & 1 & - 2 & 1 & 1 \\\\ 1 & 1 & - 2 & 1 & 1 & - 2 & 1 \\\\ - 2 & 1 & 1 & - 2 & 1 & 1 & - 2 \\\\ - 1 & 1 & - 1 & 1 & - 1 & 1 & - 1 \\\\ 6 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 6 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\end{array} \\right]\n$$\n",
1933
+ "text_format": "latex",
1934
+ "bbox": [
1935
+ 263,
1936
+ 262,
1937
+ 704,
1938
+ 421
1939
+ ],
1940
+ "page_idx": 11
1941
+ },
1942
+ {
1943
+ "type": "text",
1944
+ "text": "The SFC-6(6 × 6, 5 × 5) algorithm costs 196/184 multiplications to generate 36 outputs. Its transformation matrices are:",
1945
+ "bbox": [
1946
+ 84,
1947
+ 438,
1948
+ 877,
1949
+ 454
1950
+ ],
1951
+ "page_idx": 11
1952
+ },
1953
+ {
1954
+ "type": "equation",
1955
+ "text": "\n$$\nB ^ {T} = \\left[ \\begin{array}{c c c c c c c c c c} 0 & 0 & 1 & 1 & 1 & 1 & 1 & 1 & 0 & 0 \\\\ 0 & 0 & 1 & 1 & 0 & - 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & - 1 & - 1 & 0 & 1 & 1 & 0 & 0 \\\\ 0 & 0 & 1 & 0 & - 1 & - 1 & 0 & 1 & 0 & 0 \\\\ 0 & 0 & 1 & 0 & - 1 & 1 & 0 & - 1 & 0 & 0 \\\\ 0 & 0 & 0 & - 1 & 1 & 0 & - 1 & 1 & 0 & 0 \\\\ 0 & 0 & 1 & - 1 & 0 & 1 & - 1 & 0 & 0 & 0 \\\\ 0 & 0 & 1 & - 1 & 1 & - 1 & 1 & - 1 & 0 & 0 \\\\ 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 & 0 & 0 \\\\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 & 0 \\\\ 0 & 1 & 0 & 0 & 0 & 0 & 0 & - 1 & 0 & 0 \\\\ 0 & 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 & 0 \\\\ 0 & 0 & 0 & - 1 & 0 & 0 & 0 & 0 & 0 & 1 \\end{array} \\right],\n$$\n",
1956
+ "text_format": "latex",
1957
+ "bbox": [
1958
+ 385,
1959
+ 464,
1960
+ 750,
1961
+ 640
1962
+ ],
1963
+ "page_idx": 11
1964
+ },
1965
+ {
1966
+ "type": "equation",
1967
+ "text": "\n$$\nG = \\left[ \\begin{array}{c c c c c} 1 & 1 & 1 & 1 & 1 \\\\ - 1 & - 1 & 0 & 1 & 1 \\\\ 1 & 0 & - 1 & - 1 & 0 \\\\ 0 & - 1 & - 1 & 0 & 1 \\\\ 0 & 1 & - 1 & 0 & 1 \\\\ - 1 & 0 & 1 & - 1 & 0 \\\\ - 1 & 1 & 0 & - 1 & 1 \\\\ 1 & - 1 & 1 & - 1 & 1 \\\\ 1 & 0 & 0 & 0 & 0 \\\\ 1 & 0 & 0 & 0 & 0 \\\\ 0 & 1 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 1 & 0 \\\\ 0 & 0 & 0 & 0 & 1 \\\\ 0 & 0 & 0 & 0 & 1 \\end{array} \\right], A = \\frac {1}{6} \\left[ \\begin{array}{c c c c c c c} 1 & 1 & 1 & 1 & 1 & 1 & 1 \\\\ 1 & - 1 & - 2 & - 1 & 1 & 2 & - 1 \\\\ 1 & 2 & 1 & - 1 & - 2 & - 1 & 2 \\\\ - 2 & - 1 & 1 & 2 & 1 & - 1 & - 1 \\\\ - 2 & 1 & 1 & - 2 & 1 & 1 & 1 \\\\ 1 & - 2 & 1 & 1 & - 2 & 1 & - 2 \\\\ 1 & 1 & - 2 & 1 & 1 & - 2 & 1 \\\\ 1 & - 1 & 1 & - 1 & 1 & - 1 & - 1 \\\\ 6 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ 6 & 0 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 6 & 0 & 0 & 0 & 0 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 6 & 0 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\\\ 0 & 0 & 0 & 0 & 0 & 0 & 6 \\end{array} \\right]\n$$\n",
1968
+ "text_format": "latex",
1969
+ "bbox": [
1970
+ 220,
1971
+ 641,
1972
+ 748,
1973
+ 824
1974
+ ],
1975
+ "page_idx": 11
1976
+ },
1977
+ {
1978
+ "type": "header",
1979
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
1980
+ "bbox": [
1981
+ 251,
1982
+ 56,
1983
+ 718,
1984
+ 70
1985
+ ],
1986
+ "page_idx": 11
1987
+ },
1988
+ {
1989
+ "type": "page_number",
1990
+ "text": "12",
1991
+ "bbox": [
1992
+ 477,
1993
+ 922,
1994
+ 495,
1995
+ 934
1996
+ ],
1997
+ "page_idx": 11
1998
+ },
1999
+ {
2000
+ "type": "text",
2001
+ "text": "B. Applying the SFC Algorithm to Large-size Convolution Kernels",
2002
+ "text_level": 1,
2003
+ "bbox": [
2004
+ 88,
2005
+ 82,
2006
+ 642,
2007
+ 99
2008
+ ],
2009
+ "page_idx": 12
2010
+ },
2011
+ {
2012
+ "type": "text",
2013
+ "text": "Large-kernel convolutional neural networks have recently received extensive research attention in recent years, and the kernel sizes ranging from $7 \\times 7$ to $51 \\times 51$ . The vanilla Fast Fourier Transform (FFT) is an option available. Since large-size convolutions commonly use depth-wise convolutions, this makes the multiplication complexity of the algorithm $n^2 \\log n$ , i.e., the computational complexity of the FFT itself will become dominant.",
2014
+ "bbox": [
2015
+ 88,
2016
+ 109,
2017
+ 885,
2018
+ 167
2019
+ ],
2020
+ "page_idx": 12
2021
+ },
2022
+ {
2023
+ "type": "text",
2024
+ "text": "As a comparison, our algorithm is accomplished using only addition in the transform stage, so applying our algorithm to large-size convolutional kernels is promising. However, our algorithm itself is not applicable to scaling large numbers of transformation points, which can lead to the appearance of higher-order terms further increasing the real multiplication times. We therefore consider an iterative convolution approach to the operation.",
2025
+ "bbox": [
2026
+ 88,
2027
+ 176,
2028
+ 885,
2029
+ 237
2030
+ ],
2031
+ "page_idx": 12
2032
+ },
2033
+ {
2034
+ "type": "text",
2035
+ "text": "Considering a convolution with a $29 \\times 29$ kernel size and a $26 \\times 26$ feature map size, we will describe the computational process of iterative convolution. We split the feature map into $5 \\times 5$ tiles with $6 \\times 6$ size, while spline the kernel into $6 \\times 6$ tiles with $5 \\times 5$ size. Convolution operation will be performed between each feature map tile and each kernel tile, so we use SFC $(6 \\times 6, 5 \\times 5)$ to speed it up. Note that at this time the partial convolution results of the each tiles are still summed up in the same pattern as the convolution window sliding, which allows us to use the SFC $(5 \\times 5, 6 \\times 6)$ algorithm to speed up the process as the feature map has been split into $5 \\times 5$ tiles, and the kernel has been split into $6 \\times 6$ tiles in the first iteration. The number of multiplications required by above two iterations is the product of the multiplications in the two SFC algorithms, i.e., $132 \\times 132 = 17,424$ multiplications. Our approach reduces the number of multiplications to just $3\\%$ of what is required by direct convolution.",
2036
+ "bbox": [
2037
+ 88,
2038
+ 244,
2039
+ 885,
2040
+ 378
2041
+ ],
2042
+ "page_idx": 12
2043
+ },
2044
+ {
2045
+ "type": "text",
2046
+ "text": "We can increase the number of iterations to computing convolution with more larger sizes. Since the SFC algorithm uses only addition for the transformation, it has an easier, efficient and flexible deployment compared to the FFT method. However, when the convolution size is large enough to require 3 or more iterations, the FFT method will appear to be more advantageous in terms of theoretical computational efficiency.",
2047
+ "bbox": [
2048
+ 88,
2049
+ 387,
2050
+ 885,
2051
+ 448
2052
+ ],
2053
+ "page_idx": 12
2054
+ },
2055
+ {
2056
+ "type": "header",
2057
+ "text": "SFC: Achieve Accurate Fast Convolution under Low-precision Arithmetic",
2058
+ "bbox": [
2059
+ 253,
2060
+ 56,
2061
+ 718,
2062
+ 70
2063
+ ],
2064
+ "page_idx": 12
2065
+ },
2066
+ {
2067
+ "type": "page_number",
2068
+ "text": "13",
2069
+ "bbox": [
2070
+ 478,
2071
+ 922,
2072
+ 493,
2073
+ 934
2074
+ ],
2075
+ "page_idx": 12
2076
+ }
2077
+ ]