Add Batch 5a485f60-3fc2-4f8e-8d61-d6b3b5ce1b29 data
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +64 -0
- 2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_content_list.json +0 -0
- 2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_model.json +0 -0
- 2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_origin.pdf +3 -0
- 2024/Prospective Side Information for Latent MDPs/full.md +0 -0
- 2024/Prospective Side Information for Latent MDPs/images.zip +3 -0
- 2024/Prospective Side Information for Latent MDPs/layout.json +0 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_content_list.json +0 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_model.json +0 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_origin.pdf +3 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/full.md +0 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/images.zip +3 -0
- 2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/layout.json +0 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_content_list.json +0 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_model.json +0 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_origin.pdf +3 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/full.md +0 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/images.zip +3 -0
- 2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/layout.json +0 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_content_list.json +0 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_model.json +0 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_origin.pdf +3 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/full.md +601 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/images.zip +3 -0
- 2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/layout.json +0 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_content_list.json +0 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_model.json +0 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_origin.pdf +3 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/full.md +0 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/images.zip +3 -0
- 2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/layout.json +0 -0
- 2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_content_list.json +0 -0
- 2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_model.json +0 -0
- 2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_origin.pdf +3 -0
- 2024/Prototypical Transformer As Unified Motion Learners/full.md +632 -0
- 2024/Prototypical Transformer As Unified Motion Learners/images.zip +3 -0
- 2024/Prototypical Transformer As Unified Motion Learners/layout.json +0 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_content_list.json +0 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_model.json +0 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_origin.pdf +3 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/full.md +0 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/images.zip +3 -0
- 2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/layout.json +0 -0
- 2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_content_list.json +0 -0
- 2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_model.json +0 -0
- 2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_origin.pdf +3 -0
- 2024/Provable Contrastive Continual Learning/full.md +767 -0
- 2024/Provable Contrastive Continual Learning/images.zip +3 -0
- 2024/Provable Contrastive Continual Learning/layout.json +0 -0
- 2024/Provable Interactive Learning with Hindsight Instruction Feedback/4a66be74-f6ec-402f-86ac-0e20e2f26af8_content_list.json +0 -0
.gitattributes
CHANGED
|
@@ -5290,3 +5290,67 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 5290 |
2024/Prompting[[:space:]]a[[:space:]]Pretrained[[:space:]]Transformer[[:space:]]Can[[:space:]]Be[[:space:]]a[[:space:]]Universal[[:space:]]Approximator/fcbf1295-e114-44de-a421-d1f202803686_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5291 |
2024/Prompting[[:space:]]is[[:space:]]a[[:space:]]Double-Edged[[:space:]]Sword_[[:space:]]Improving[[:space:]]Worst-Group[[:space:]]Robustness[[:space:]]of[[:space:]]Foundation[[:space:]]Models/ca1b573c-f891-41d1-b1ec-460cfa82d92e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5292 |
2024/Prompting4Debugging_[[:space:]]Red-Teaming[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]by[[:space:]]Finding[[:space:]]Problematic[[:space:]]Prompts/e50bc8db-6b84-444b-8686-248c0888b5be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5290 |
2024/Prompting[[:space:]]a[[:space:]]Pretrained[[:space:]]Transformer[[:space:]]Can[[:space:]]Be[[:space:]]a[[:space:]]Universal[[:space:]]Approximator/fcbf1295-e114-44de-a421-d1f202803686_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5291 |
2024/Prompting[[:space:]]is[[:space:]]a[[:space:]]Double-Edged[[:space:]]Sword_[[:space:]]Improving[[:space:]]Worst-Group[[:space:]]Robustness[[:space:]]of[[:space:]]Foundation[[:space:]]Models/ca1b573c-f891-41d1-b1ec-460cfa82d92e_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5292 |
2024/Prompting4Debugging_[[:space:]]Red-Teaming[[:space:]]Text-to-Image[[:space:]]Diffusion[[:space:]]Models[[:space:]]by[[:space:]]Finding[[:space:]]Problematic[[:space:]]Prompts/e50bc8db-6b84-444b-8686-248c0888b5be_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5293 |
+
2024/Prospective[[:space:]]Side[[:space:]]Information[[:space:]]for[[:space:]]Latent[[:space:]]MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5294 |
+
2024/Prospector[[:space:]]Heads_[[:space:]]Generalized[[:space:]]Feature[[:space:]]Attribution[[:space:]]for[[:space:]]Large[[:space:]]Models[[:space:]]&[[:space:]]Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5295 |
+
2024/Protein[[:space:]]Conformation[[:space:]]Generation[[:space:]]via[[:space:]]Force-Guided[[:space:]]SE(3)[[:space:]]Diffusion[[:space:]]Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5296 |
+
2024/Proteus_[[:space:]]Exploring[[:space:]]Protein[[:space:]]Structure[[:space:]]Generation[[:space:]]for[[:space:]]Enhanced[[:space:]]Designability[[:space:]]and[[:space:]]Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5297 |
+
2024/ProtoGate_[[:space:]]Prototype-based[[:space:]]Neural[[:space:]]Networks[[:space:]]with[[:space:]]Global-to-local[[:space:]]Feature[[:space:]]Selection[[:space:]]for[[:space:]]Tabular[[:space:]]Biomedical[[:space:]]Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5298 |
+
2024/Prototypical[[:space:]]Transformer[[:space:]]As[[:space:]]Unified[[:space:]]Motion[[:space:]]Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5299 |
+
2024/Provable[[:space:]]Benefits[[:space:]]of[[:space:]]Local[[:space:]]Steps[[:space:]]in[[:space:]]Heterogeneous[[:space:]]Federated[[:space:]]Learning[[:space:]]for[[:space:]]Neural[[:space:]]Networks_[[:space:]]A[[:space:]]Feature[[:space:]]Learning[[:space:]]Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5300 |
+
2024/Provable[[:space:]]Contrastive[[:space:]]Continual[[:space:]]Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5301 |
+
2024/Provable[[:space:]]Interactive[[:space:]]Learning[[:space:]]with[[:space:]]Hindsight[[:space:]]Instruction[[:space:]]Feedback/4a66be74-f6ec-402f-86ac-0e20e2f26af8_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5302 |
+
2024/Provable[[:space:]]Multi-Task[[:space:]]Representation[[:space:]]Learning[[:space:]]by[[:space:]]Two-Layer[[:space:]]ReLU[[:space:]]Neural[[:space:]]Networks/3b686de4-8feb-45f3-a73d-2a55d5bdbb15_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5303 |
+
2024/Provable[[:space:]]Privacy[[:space:]]with[[:space:]]Non-Private[[:space:]]Pre-Processing/f474f0dd-599a-4bab-9add-9b0b7d8a29c1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5304 |
+
2024/Provable[[:space:]]Representation[[:space:]]with[[:space:]]Efficient[[:space:]]Planning[[:space:]]for[[:space:]]Partially[[:space:]]Observable[[:space:]]Reinforcement[[:space:]]Learning/a995d4af-43a0-4c35-b54c-83e386a4db2f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5305 |
+
2024/Provable[[:space:]]Risk-Sensitive[[:space:]]Distributional[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]General[[:space:]]Function[[:space:]]Approximation/086130ed-335e-4d8e-991a-4ef623fe3379_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5306 |
+
2024/Provably[[:space:]]Better[[:space:]]Explanations[[:space:]]with[[:space:]]Optimized[[:space:]]Aggregation[[:space:]]of[[:space:]]Feature[[:space:]]Attributions/75ae25fd-7c51-4f7b-856f-93f8b6370796_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5307 |
+
2024/Provably[[:space:]]Efficient[[:space:]]Exploration[[:space:]]in[[:space:]]Quantum[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Logarithmic[[:space:]]Worst-Case[[:space:]]Regret/6182cfed-1026-41e7-9711-37e863c874d3_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5308 |
+
2024/Provably[[:space:]]Efficient[[:space:]]Long-Horizon[[:space:]]Exploration[[:space:]]in[[:space:]]Monte[[:space:]]Carlo[[:space:]]Tree[[:space:]]Search[[:space:]]through[[:space:]]State[[:space:]]Occupancy[[:space:]]Regularization/d776060e-836a-4cd2-84c0-852324356369_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5309 |
+
2024/Provably[[:space:]]Efficient[[:space:]]Partially[[:space:]]Observable[[:space:]]Risk-sensitive[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Hindsight[[:space:]]Observation/b4fce4f2-6882-44d9-8f4f-8d16031cefc5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5310 |
+
2024/Provably[[:space:]]Efficient[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]for[[:space:]]Adversarial[[:space:]]Restless[[:space:]]Multi-Armed[[:space:]]Bandits[[:space:]]with[[:space:]]Unknown[[:space:]]Transitions[[:space:]]and[[:space:]]Bandit[[:space:]]Feedback/d3f9821b-4dca-4cca-823b-6b625af52202_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5311 |
+
2024/Provably[[:space:]]Neural[[:space:]]Active[[:space:]]Learning[[:space:]]Succeeds[[:space:]]via[[:space:]]Prioritizing[[:space:]]Perplexing[[:space:]]Samples/b3171b24-6143-4d1a-a734-b9b0672b6dc1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5312 |
+
2024/Provably[[:space:]]Robust[[:space:]]DPO_[[:space:]]Aligning[[:space:]]Language[[:space:]]Models[[:space:]]with[[:space:]]Noisy[[:space:]]Feedback/100557a4-d344-4cca-8931-ef2978d0e4e7_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5313 |
+
2024/Provably[[:space:]]Scalable[[:space:]]Black-Box[[:space:]]Variational[[:space:]]Inference[[:space:]]with[[:space:]]Structured[[:space:]]Variational[[:space:]]Families/058b137d-98d6-46e1-9884-62457ad7857a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5314 |
+
2024/PruNeRF_[[:space:]]Segment-Centric[[:space:]]Dataset[[:space:]]Pruning[[:space:]]via[[:space:]]3D[[:space:]]Spatial[[:space:]]Consistency/890684b8-9fce-45b4-8ba4-568010ef52cb_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5315 |
+
2024/Pruned[[:space:]]Pivot_[[:space:]]Correlation[[:space:]]Clustering[[:space:]]Algorithm[[:space:]]for[[:space:]]Dynamic,[[:space:]]Parallel,[[:space:]]and[[:space:]]Local[[:space:]]Computation[[:space:]]Models/1cebb673-26a6-469b-b96b-3ab0bafa03d5_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5316 |
+
2024/Pruner-Zero_[[:space:]]Evolving[[:space:]]Symbolic[[:space:]]Pruning[[:space:]]Metric[[:space:]]From[[:space:]]Scratch[[:space:]]for[[:space:]]Large[[:space:]]Language[[:space:]]Models/cd0ef2b1-cf34-490f-84e2-0438d141d857_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5317 |
+
2024/Pseudo-Calibration_[[:space:]]Improving[[:space:]]Predictive[[:space:]]Uncertainty[[:space:]]Estimation[[:space:]]in[[:space:]]Unsupervised[[:space:]]Domain[[:space:]]Adaptation/5827e36d-e1bf-4098-894c-9bebf3cfabbe_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5318 |
+
2024/Purify[[:space:]]Unlearnable[[:space:]]Examples[[:space:]]via[[:space:]]Rate-Constrained[[:space:]]Variational[[:space:]]Autoencoders/860d59c3-6c59-4963-ba25-3a668f8edb1f_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5319 |
+
2024/Purifying[[:space:]]Quantization-conditioned[[:space:]]Backdoors[[:space:]]via[[:space:]]Layer-wise[[:space:]]Activation[[:space:]]Correction[[:space:]]with[[:space:]]Distribution[[:space:]]Approximation/f92a6d52-8c5b-411a-916d-eefca4315e4a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5320 |
+
2024/Pursuing[[:space:]]Overall[[:space:]]Welfare[[:space:]]in[[:space:]]Federated[[:space:]]Learning[[:space:]]through[[:space:]]Sequential[[:space:]]Decision[[:space:]]Making/8c3fc695-fde9-49a6-b12e-91d7da72b059_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5321 |
+
2024/Q-Align_[[:space:]]Teaching[[:space:]]LMMs[[:space:]]for[[:space:]]Visual[[:space:]]Scoring[[:space:]]via[[:space:]]Discrete[[:space:]]Text-Defined[[:space:]]Levels/ee5aab6d-4188-496d-b119-7360e0a2b7fe_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5322 |
+
2024/Q-Probe_[[:space:]]A[[:space:]]Lightweight[[:space:]]Approach[[:space:]]to[[:space:]]Reward[[:space:]]Maximization[[:space:]]for[[:space:]]Language[[:space:]]Models/102e600b-24cb-4306-8682-ad1815fe32ff_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5323 |
+
2024/Q-Star[[:space:]]Meets[[:space:]]Scalable[[:space:]]Posterior[[:space:]]Sampling_[[:space:]]Bridging[[:space:]]Theory[[:space:]]and[[:space:]]Practice[[:space:]]via[[:space:]]HyperAgent/57780c8a-4cc2-49e3-8717-3c5cad06bb99_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5324 |
+
2024/Q-value[[:space:]]Regularized[[:space:]]Transformer[[:space:]]for[[:space:]]Offline[[:space:]]Reinforcement[[:space:]]Learning/43df4e80-2a67-4535-82d3-58172ddd0725_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5325 |
+
2024/QBMK_[[:space:]]Quantum-based[[:space:]]Matching[[:space:]]Kernels[[:space:]]for[[:space:]]Un-attributed[[:space:]]Graphs/dfecab04-17ae-4523-b509-a96a9b4b3c86_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5326 |
+
2024/QORA_[[:space:]]Zero-Shot[[:space:]]Transfer[[:space:]]via[[:space:]]Interpretable[[:space:]]Object-Relational[[:space:]]Model[[:space:]]Learning/6dc56733-f60e-45e8-8127-66cb5d9b2f97_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5327 |
+
2024/QUEST_[[:space:]]Query-Aware[[:space:]]Sparsity[[:space:]]for[[:space:]]Efficient[[:space:]]Long-Context[[:space:]]LLM[[:space:]]Inference/32038ea7-f0b2-4ffa-8e54-741a3326e77a_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5328 |
+
2024/QuIP$\#$_[[:space:]]Even[[:space:]]Better[[:space:]]LLM[[:space:]]Quantization[[:space:]]with[[:space:]]Hadamard[[:space:]]Incoherence[[:space:]]and[[:space:]]Lattice[[:space:]]Codebooks/ab446e24-814d-4ec8-9c2a-90c4bd8c3874_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5329 |
+
2024/QuRating_[[:space:]]Selecting[[:space:]]High-Quality[[:space:]]Data[[:space:]]for[[:space:]]Training[[:space:]]Language[[:space:]]Models/fac63740-1df4-4f7d-81af-ff09e4153b86_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5330 |
+
2024/Quality[[:space:]]Diversity[[:space:]]through[[:space:]]Human[[:space:]]Feedback_[[:space:]]Towards[[:space:]]Open-Ended[[:space:]]Diversity-Driven[[:space:]]Optimization/bf0e8426-b4d4-44e5-86cb-7c7143d3c500_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5331 |
+
2024/Quality-Diversity[[:space:]]Actor-Critic_[[:space:]]Learning[[:space:]]High-Performing[[:space:]]and[[:space:]]Diverse[[:space:]]Behaviors[[:space:]]via[[:space:]]Value[[:space:]]and[[:space:]]Successor[[:space:]]Features[[:space:]]Critics/c2fd55f8-bd41-4a68-9121-8cbb23424cab_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5332 |
+
2024/Quality-Diversity[[:space:]]with[[:space:]]Limited[[:space:]]Resources/a8e218ba-1f4f-4512-9ba8-fb3e5d24e24b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5333 |
+
2024/Quality-Weighted[[:space:]]Vendi[[:space:]]Scores[[:space:]]And[[:space:]]Their[[:space:]]Application[[:space:]]To[[:space:]]Diverse[[:space:]]Experimental[[:space:]]Design/13c78f2f-924d-42c8-8f71-fab6766ef0da_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5334 |
+
2024/Quantum[[:space:]]Algorithm[[:space:]]for[[:space:]]Online[[:space:]]Exp-concave[[:space:]]Optimization/cae19a67-7118-429f-9964-a44843fa3883_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5335 |
+
2024/Quantum[[:space:]]Algorithms[[:space:]]and[[:space:]]Lower[[:space:]]Bounds[[:space:]]for[[:space:]]Finite-Sum[[:space:]]Optimization/21d2447a-46f0-439e-bb14-8d33deee7b35_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5336 |
+
2024/Quantum[[:space:]]Implicit[[:space:]]Neural[[:space:]]Representations/c462358b-307f-41f0-ac37-e772bcdb3185_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5337 |
+
2024/Quantum[[:space:]]Positional[[:space:]]Encodings[[:space:]]for[[:space:]]Graph[[:space:]]Neural[[:space:]]Networks/4a0b449e-b099-4a4f-9c07-bfeed6439be9_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5338 |
+
2024/Quantum[[:space:]]Theory[[:space:]]and[[:space:]]Application[[:space:]]of[[:space:]]Contextual[[:space:]]Optimal[[:space:]]Transport/fc370fed-be02-4118-9957-f7bc5b633705_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5339 |
+
2024/Quasi-Monte[[:space:]]Carlo[[:space:]]Features[[:space:]]for[[:space:]]Kernel[[:space:]]Approximation/5e57523b-b66a-4cb2-8f4c-7bcd82eaccf1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5340 |
+
2024/R2E_[[:space:]]Turning[[:space:]]any[[:space:]]Github[[:space:]]Repository[[:space:]]into[[:space:]]a[[:space:]]Programming[[:space:]]Agent[[:space:]]Environment/dc03734b-2eb4-447b-b52e-94791e404a1c_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5341 |
+
2024/RAUCA_[[:space:]]A[[:space:]]Novel[[:space:]]Physical[[:space:]]Adversarial[[:space:]]Attack[[:space:]]on[[:space:]]Vehicle[[:space:]]Detectors[[:space:]]via[[:space:]]Robust[[:space:]]and[[:space:]]Accurate[[:space:]]Camouflage[[:space:]]Generation/e3a17275-f2a3-459a-8efe-79c92804f631_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5342 |
+
2024/REMEDI_[[:space:]]Corrective[[:space:]]Transformations[[:space:]]for[[:space:]]Improved[[:space:]]Neural[[:space:]]Entropy[[:space:]]Estimation/a43c7d6d-42ce-43f4-9f69-bbed90ba6507_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5343 |
+
2024/REST_[[:space:]]Efficient[[:space:]]and[[:space:]]Accelerated[[:space:]]EEG[[:space:]]Seizure[[:space:]]Analysis[[:space:]]through[[:space:]]Residual[[:space:]]State[[:space:]]Updates/b30ad5a1-400a-4812-89e0-56c36f23ced4_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5344 |
+
2024/RICE_[[:space:]]Breaking[[:space:]]Through[[:space:]]the[[:space:]]Training[[:space:]]Bottlenecks[[:space:]]of[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Explanation/216496ac-fad3-41e5-bc28-6d68147d478b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5345 |
+
2024/RIME_[[:space:]]Robust[[:space:]]Preference-based[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]with[[:space:]]Noisy[[:space:]]Preferences/ea456c7c-441b-46d0-b731-65fc801024b1_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5346 |
+
2024/RL-CFR_[[:space:]]Improving[[:space:]]Action[[:space:]]Abstraction[[:space:]]for[[:space:]]Imperfect[[:space:]]Information[[:space:]]Extensive-Form[[:space:]]Games[[:space:]]with[[:space:]]Reinforcement[[:space:]]Learning/6c2c260e-3adf-4758-abbb-dd36b3ae9c80_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5347 |
+
2024/RL-VLM-F_[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]from[[:space:]]Vision[[:space:]]Language[[:space:]]Foundation[[:space:]]Model[[:space:]]Feedback/d7551d5e-bb2a-42a3-8334-585a9bf9a525_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5348 |
+
2024/RLAIF[[:space:]]vs.[[:space:]]RLHF_[[:space:]]Scaling[[:space:]]Reinforcement[[:space:]]Learning[[:space:]]from[[:space:]]Human[[:space:]]Feedback[[:space:]]with[[:space:]]AI[[:space:]]Feedback/7bbac820-2701-4932-bd4f-f7e989399552_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5349 |
+
2024/RLVF_[[:space:]]Learning[[:space:]]from[[:space:]]Verbal[[:space:]]Feedback[[:space:]]without[[:space:]]Overgeneralization/7e54b451-2a86-4e31-967f-368a613ad4fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5350 |
+
2024/RMIB_[[:space:]]Representation[[:space:]]Matching[[:space:]]Information[[:space:]]Bottleneck[[:space:]]for[[:space:]]Matching[[:space:]]Text[[:space:]]Representations/d58dae48-d468-4e01-8e8c-93ff48541f03_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5351 |
+
2024/RNAFlow_[[:space:]]RNA[[:space:]]Structure[[:space:]]&[[:space:]]Sequence[[:space:]]Design[[:space:]]via[[:space:]]Inverse[[:space:]]Folding-Based[[:space:]]Flow[[:space:]]Matching/4343f000-0819-4b5b-a1f3-5fec3d012d16_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5352 |
+
2024/RODEO_[[:space:]]Robust[[:space:]]Outlier[[:space:]]Detection[[:space:]]via[[:space:]]Exposing[[:space:]]Adaptive[[:space:]]Out-of-Distribution[[:space:]]Samples/81017775-20bd-42d9-b592-9a16ac14e79b_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5353 |
+
2024/RVI-SAC_[[:space:]]Average[[:space:]]Reward[[:space:]]Off-Policy[[:space:]]Deep[[:space:]]Reinforcement[[:space:]]Learning/65ea87b4-0993-420e-ba70-9887bfa5598d_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5354 |
+
2024/Random[[:space:]]Exploration[[:space:]]in[[:space:]]Bayesian[[:space:]]Optimization_[[:space:]]Order-Optimal[[:space:]]Regret[[:space:]]and[[:space:]]Computational[[:space:]]Efficiency/1d0855ac-06af-42dc-9ad4-8f21e84d6f61_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5355 |
+
2024/Random[[:space:]]Latent[[:space:]]Exploration[[:space:]]for[[:space:]]Deep[[:space:]]Reinforcement[[:space:]]Learning/21380f8c-77bb-4f14-85d5-1ab0ac1c61fd_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
| 5356 |
+
2024/Random[[:space:]]Masking[[:space:]]Finds[[:space:]]Winning[[:space:]]Tickets[[:space:]]for[[:space:]]Parameter[[:space:]]Efficient[[:space:]]Fine-tuning/de43551c-0675-48cc-8fe9-8984e96c8805_origin.pdf filter=lfs diff=lfs merge=lfs -text
|
2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospective Side Information for Latent MDPs/4ec833eb-5410-414c-afcd-ac2cdde6eebf_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b5fb61ff56c757ba1691619757c9558c03c583493bc86c644659bcab69c23481
|
| 3 |
+
size 611816
|
2024/Prospective Side Information for Latent MDPs/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospective Side Information for Latent MDPs/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a256563e210da2a8a22f90b3cf4fc96f56dbf08f1dfa51b2cdff848b6657944b
|
| 3 |
+
size 2240164
|
2024/Prospective Side Information for Latent MDPs/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/c1bbfb10-68e2-4c48-b176-5945ca28d9f6_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:867cd6b20d11be6f23bac92ab022118a0242ee61c5be1045642fbe2b1d9064ae
|
| 3 |
+
size 8310156
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5858d3fa25458ca1f17a4b1009ad90dcf7e617f64dc0cfb9cd4961f14f5a27a8
|
| 3 |
+
size 1087211
|
2024/Prospector Heads_ Generalized Feature Attribution for Large Models & Data/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/f4842301-0c76-4b23-bc73-ff32eb57ec15_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3eb05d5a597a60b57903fcf1011b30ecaef82e73c2bf373d09974cbc7f2077a9
|
| 3 |
+
size 6746313
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:aaa5e333739614e829f3a3328f0de81b3d5d73036cd820f1dc3babd8487ba904
|
| 3 |
+
size 1643057
|
2024/Protein Conformation Generation via Force-Guided SE(3) Diffusion Models/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/8f4b0292-c33b-42bc-9363-6c0a8f9c2105_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9ffeb7d1f1fc57437747d325b73607cf91acff01cd8e7bbe5c1e16e09fcfc42a
|
| 3 |
+
size 8598081
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/full.md
ADDED
|
@@ -0,0 +1,601 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Proteus: Exploring Protein Structure Generation for Enhanced Designability and Efficiency
|
| 2 |
+
|
| 3 |
+
Chentong Wang $^{1,2}$ Yannan Qu $^{2}$ Zhangzhi Peng $^{3}$ Yukai Wang $^{2}$ Hongli Zhu $^{2}$ Dachuan Chen $^{2}$ Longxing Cao $^{2}$
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
Diffusion-based generative models have been successfully employed to create proteins with novel structures and functions. However, the construction of such models typically depends on large, pre-trained structure prediction networks, like RFdiffusion. In contrast, alternative models that are trained from scratch, such as FrameDiff, still fall short in performance. In this context, we introduce Proteus, an innovative deep diffusion network that incorporates graph-based triangle methods and a multi-track interaction network, eliminating the dependency on structure prediction pre-training with superior efficiency. We have validated our model's performance on de novo protein backbone generation through comprehensive in silico evaluations and experimental characterizations, which demonstrate a remarkable success rate. These promising results underscore Proteus's ability to generate highly designable protein backbones efficiently. This capability, achieved without reliance on pre-training techniques, has the potential to significantly advance the field of protein design. Codes are available at https://github.com/Wangchentong/Proteus.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
The biological function of a protein is often directly determined by its tertiary structure, which underscores the importance of designing novel protein backbones. De novo protein design methods are dedicated to creating proteins with the desired structure and function. Recent advancements in
|
| 12 |
+
|
| 13 |
+
$^{1}$ Zhejiang University, Hangzhou, Zhejiang, China $^{2}$ School of Life Sciences, Westlake University, Hangzhou, Zhejiang, China $^{3}$ Duke University, Durham, North Carolina, USA. Correspondence to: Longxing Cao <caolongxing@westlake.edu.cn>.
|
| 14 |
+
|
| 15 |
+
Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
|
| 16 |
+
|
| 17 |
+
protein structure prediction methods, such as AlphaFold2 (Jumper et al., 2021) and RosettaFold (Baek et al., 2021), have enabled the 'hallucination' approach (Anishchenko et al., 2021; Wang et al., 2022) to directly generate protein sequences using backpropagation on the structure prediction networks. Further leveraging the generative capabilities of the diffusion model (Ho et al., 2020), RFdiffusion (Watson et al., 2023) has demonstrated superior performance across a wide range of protein design challenges. These applications include designing protein binders, scaffolding motifs, and creating symmetric oligomers. Despite RFdiffusion's impressive performance, its dependency on pretraining with RosettaFold2 (Baek et al., 2023) poses a challenge for dissecting and refining the model's architecture to improve performance for structure generation tasks.
|
| 18 |
+
|
| 19 |
+
To tackle the challenge of generating designable protein backbones without reliance on pretraining, researchers have developed a range of diffusion strategies and model architectures. One such approach is FoldingDiff (Wu et al., 2022), which employs diffusion in the protein backbone torsion space with a bidirectional transformer. This network iteratively denoises a sequence of torsion angles to generate protein-like backbones. However, the majority of generated structures are predicted to be non-designable. In contrast, two concurrent studies have shown more promise by directly applying diffusion on residue coordinates (Lin & AlQuraishi, 2023) or tangent space of coordinate and rotation (Yim et al., 2023). Additionally, previous research (Anand & Achim, 2022; Lee et al., 2023; Trippe et al., 2022) has explored multiple network architectures, including U-Net (Ronneberger et al., 2015), Equivariant Graph Neural Networks (EGNNs) (Satorras et al., 2022), Invariant Point Attention(IPA) (Jumper et al., 2021), which have achieved success in diverse fields such as Computer Vision or dynamic system modeling.
|
| 20 |
+
|
| 21 |
+
Although these initiatives have moderately improved the designability of protein structure diffusion models without dependency on pretraining, there is still a notable performance gap compared to RFdiffusion, which results in considerable limitations for these models, making them less effective or difficult to apply in practical protein design
|
| 22 |
+
|
| 23 |
+

|
| 24 |
+
Figure 1: Benchmarking Proteus against other backbone diffusion models on designability, efficiency, and diversity. All metrics are averaged from 200 backbones of each length 100, 200, 300, 400, 600, and 800. For each backbone length, 8 sequences are designed by ProteinMPNN, except for Chroma, which uses ChromaDesign to achieve the best performance reported in its original paper. (A) Radar plot illustrating model evaluation across three dimensions. (B) Self-consistency RMSD between the generated backbone and the best prediction of ESMfold. (C) Sampling time of backbone generation, evaluated on A40. Genie fails to generate backbones larger than 600 residues due to running out of memory.
|
| 25 |
+
|
| 26 |
+

|
| 27 |
+
|
| 28 |
+

|
| 29 |
+
|
| 30 |
+
tasks. RFdiffusion, with its cutting-edge capabilities, sets a higher standard in the field and highlights the need for further advancements in model development.
|
| 31 |
+
|
| 32 |
+
To bridge the performance gap between models that do and do not require pretraining, we have developed Proteus. Proteus achieves backbone designability on par with RFdiffusion by integrating a graph-based triangle technique and a multi-track interaction network, significantly bolstered by data augmentation. Moreover, our model sets a new efficiency standard, owing to two principal advancements: a reduction in the required sampling steps due to the enhanced representational capacity of the model, and the employment of local graph modeling to decrease computational complexity. These innovations allow Proteus to achieve protein generation speeds comparable to those of Chroma (Ingraham et al., 2022).
|
| 33 |
+
|
| 34 |
+
In summary, our model achieves several optimization objectives critical to protein design. It functions independently of pretraining, delivers high designability of protein structures, and maintains rapid generation speeds. The introduction of Proteus represents a noteworthy progression in protein design methodology, offering a solution that balances efficiency with the complexity of protein structure generation.
|
| 35 |
+
|
| 36 |
+
# 2. Preliminaries
|
| 37 |
+
|
| 38 |
+
Protein backbone representation Following the approach of AlphaFold2 (Jumper et al., 2021), the backbone of each residue is parameterized as a series of rigid transformations, also known as frames. These frames, denoted by $\mathrm{T} = (R,t)$ are defined within the special Euclidean group $SE(3)$ and represent orientation-preserving transformations of the idealized backbone atom coordinates $[N_n,C_{\alpha_n},C_n]$ . Specifically, $R\in SO(3)$ is a rotation matrix derived from the
|
| 39 |
+
|
| 40 |
+
backbone atoms N, CA, and C through the Gram-Schmidt process, and $t \in \mathbb{R}^3$ represents the coordinates of atom $C_{\alpha}$ .
|
| 41 |
+
|
| 42 |
+
Diffusion modeling on protein backbone Multiple methodologies are available for protein backbone diffusion, including diffusion on inter-residue geometry or backbone torsion angles. In this paper, we detail our employed approach: SE(3) diffusion. This method treats each residue independently and computes the associated probability estimation on SO(3) for the score matching calculation, as originally proposed by Yim et al..
|
| 43 |
+
|
| 44 |
+
Briefly, the protein backbone's forward diffusion process is driven by Brownian motion on SO(3) and $\mathbb{R}^3$ individually as shown in Equation (1)
|
| 45 |
+
|
| 46 |
+
$$
|
| 47 |
+
d \mathbf {T} ^ {(t)} = \left[ \mathbf {0}, - \frac {1}{2} \mathbf {X} ^ {(t)} \right] d t + \left[ d \mathbf {B} _ {\mathbf {S O} (3)} ^ {(t)}, d \mathbf {B} _ {\mathbb {R} ^ {3}} ^ {(t)} \right] \tag {1}
|
| 48 |
+
$$
|
| 49 |
+
|
| 50 |
+
By defining probability estimation on $\mathbb{R}^3$ forward diffusion, $p_{t|0}(x^{(t)}|x^{(0)}) = \mathcal{N}(x^{(t)};e^{-t / 2}x^{(0)},(1 - e^{-t})Id_3)$ , the corresponding conditional score can be computed explicitly
|
| 51 |
+
|
| 52 |
+
$$
|
| 53 |
+
\nabla \log p _ {t | 0} (x ^ {(t)} | x ^ {(0)}) = (1 - e ^ {- t}) ^ {- 1} \left(e ^ {- t / 2} x ^ {(0)} - x ^ {(t)}\right).
|
| 54 |
+
$$
|
| 55 |
+
|
| 56 |
+
For the proper estimation of probability on SO(3), Brownian motion on SO(3) is defined as $p_{t|0}(r^{(t)}|r^{(0)}) = f\left(\omega \left(r^{(0)^T}r^{(t)}\right), t\right)$ , where $\omega(r)$ is the rotation angle in radians for any $r \in SO(3)$ . The final probability estimation can be described as
|
| 57 |
+
|
| 58 |
+
$$
|
| 59 |
+
f (\omega , t) = \sum_ {\ell \in \mathbb {N}} (2 \ell + 1) \mathrm {e} ^ {- \ell (\ell + 1) t / 2} \frac {\sin ((\ell + 1 / 2) \omega)}{\sin (\omega / 2)} \tag {2}
|
| 60 |
+
$$
|
| 61 |
+
|
| 62 |
+

|
| 63 |
+
|
| 64 |
+

|
| 65 |
+
|
| 66 |
+

|
| 67 |
+
Figure 2: Model illustration (A) The Protein backbone diffusion model is trained to recover noised structures and generate new structures by reversing the forward process. (B) The overall architecture of Proteus. (C) The detailed model architecture of graph triangle block.
|
| 68 |
+
|
| 69 |
+
With the probability estimation, the corresponding conditional score can be computed as
|
| 70 |
+
|
| 71 |
+
$$
|
| 72 |
+
\nabla \log p _ {t _ {0}} \left(r ^ {(t)} | r ^ {(0)}\right) = \frac {r ^ {(t)}}{\omega (t)} \log \left(r ^ {(0, t)}\right) \frac {\partial \omega f (\omega (t) , t)}{f (\omega (t) , t)},
|
| 73 |
+
$$
|
| 74 |
+
|
| 75 |
+
With a well-trained denoising score matching(DSM) network on tangent space of $\mathbb{R}^3$ and SO(3), a protein backbone can be sampled from noise with n steps by Euler-Maruyama discretization (Bortoli et al., 2022).
|
| 76 |
+
|
| 77 |
+
In summary, the objective of the network is to predict a denoised protein backbone at timestep 0, given noisy backbones from any timesteps. Within this framework, probability estimation can be calculated, enabling the application of the stochastic differential equation (SDE) to sample a denoised protein backbone. We recommend that readers check Yim et al.'s work for a profound understanding of SE(3) diffusion.
|
| 78 |
+
|
| 79 |
+
Deep learning network architectures for protein structure modeling The model architectures of AlphaFold2 (Jumper et al., 2021) and Rosettafold (Baek et al., 2021) have significantly advanced the development of protein backbone generation models. To elucidate the inspiration for our work, we provide a detailed account of these networks. AlphaFold2 utilizes the Evoformer module to process multiple sequence alignment (MSA) and structure template in-
|
| 80 |
+
|
| 81 |
+
formation into sequence and edge representations. Then, the Structure module iteratively refines these latent representations into the final protein structure, beginning from an initial 'black hole' configuration. The iterative nature of the Structure module, where a structure is input and refined through cycles, makes it a suitable backbone generation network for protein backbone diffusion (Anand & Achim, 2022; Yim et al., 2023; Lin & AlQuraishi, 2023). Similarly, the SE(3)-transformer (Fuchs et al., 2020) adopted by RosettaFold shares the iterative refinement capability. In addition to the iterative update mechanism, AlphaFold2's heightened prediction precision is largely attributed to its triangle attention layer. This transformer-like architecture updates the edge representation of residue pairs by integrating the information of the third edge. However, due to its $\mathrm{O}(N^3)$ computational complexity, most current protein backbone diffusion models adopt a standard message passing layer or Unet (Ronneberger et al., 2015) for updating the edge representations. An exception is RFdiffusion (Watson et al., 2023), which employs axial attention (Ho et al., 2019) on residue pairs, thereby enhancing its representational capacity for the protein backbone denoising task.
|
| 82 |
+
|
| 83 |
+
# 3. Methods
|
| 84 |
+
|
| 85 |
+
Algorithm 1 Proteus Model Inference
|
| 86 |
+
0: function SAMPLE( $N_{res},N_{step} = 100,N_{layer} = 4,t_{min} = 0.005,$ noise_scale $= 0.1$
|
| 87 |
+
)
|
| 88 |
+
0: $t = 1.0,\delta t = (1 - t_{min}) / N_{step}$
|
| 89 |
+
0: for $i\in [1,\dots ,N_{res}]$ do
|
| 90 |
+
0: $\vec{x}_i^{(t)}\sim \mathcal{N}(0,Id_3),r_i^{(t)}\sim \mathcal{N}(0,Id)$
|
| 91 |
+
0: $T_{i}^{(t)} = (\vec{x}_{i}^{(t)},r_{i}^{(t)})$ $T_{i}^{prev} = (\vec{0},I)$
|
| 92 |
+
0: end for
|
| 93 |
+
0: # denoising iterations:
|
| 94 |
+
0: for $n\in [N_{step},\ldots ,1]$ do
|
| 95 |
+
0: $s^{(t)},z^{(t)} =$ InputEmbedder(t)
|
| 96 |
+
0: $s^{(t)},z^{(t)} + =$ ConditionEmbedder(Tprev)
|
| 97 |
+
0: $\hat{T}^{(0)} = T^{(t)}$
|
| 98 |
+
0: for $l\in [1,\dots ,N_{layer}]$ do
|
| 99 |
+
0: $s^{(t)} =$ IPATransformer(s(t),z(t), $\hat{T}^{(0)})$
|
| 100 |
+
0: $\hat{T}^{(0)} =$ BackboneUpdate(s(t))
|
| 101 |
+
0: $z^{(t)} =$ TriangleGraph(s(t),z(t), $\hat{T}^{(0)})$
|
| 102 |
+
0: end for
|
| 103 |
+
0: $T^{prev} = \hat{T}^{(0)}$
|
| 104 |
+
0: $t = t - \delta t$
|
| 105 |
+
0: $T^{(t)} = \mathrm{SDE}_{(SE3)}(\hat{T}^{(0)},T^{(t)},t,\delta t,\text{noise\_level})$
|
| 106 |
+
0: end for
|
| 107 |
+
0: end function $= 0$
|
| 108 |
+
|
| 109 |
+
# 3.1. Model Architecture
|
| 110 |
+
|
| 111 |
+
Overview In this section, we present the architecture of Proteus. Proteus iteratively updates the structural frames of proteins through a sequence of $L$ layers of folding blocks. As shown in Figure 2B, each layer of the folding block receives input from three distinct tracks: node representation, edge representation, and structural frames. A folding block is composed of three components: an IPA-Transformer block, a backbone update layer, and a graph triangle block. Each component is tailored to model and refine one of input tracks while being aware of the representations from other tracks.
|
| 112 |
+
|
| 113 |
+
The IPA-Transformer block integrates an Invariant Point Attention (IPA) mechanism with a traditional transformer. The IPA conducts standard attention operations, incorporating a bias derived from the spatial distance between inter-residue atoms and edge representation. The Backbone Update, inspired by AlphaFold2's methodology, utilizes a linear layer to predict translation and rotation updates for the frames of each residue, informed by the updated sequence representation.
|
| 114 |
+
|
| 115 |
+
The graph triangle block is tasked to update the edge representation. It employs a graph-based attention mechanism that operates on edge representation, modulated by a sequence representation-gated structural bias. The entire network consists of $L$ layers of folding blocks, and no weights
|
| 116 |
+
|
| 117 |
+
are shared among them. The sequence representation is initialized using the diffusion timestep and the edge representation is initialized using a relative sequential distance map introduced in AlphaFold2. When self-conditioning data is available, additional features, including the Ca distance map and relative rotational features from preceding predictions, are incorporated, with more elaborate explanations provided in Table 5. Our primary emphasis is on elucidating the graph triangle block, which is the source of significant enhancements in designability and efficiency.
|
| 118 |
+
|
| 119 |
+
Graph triangle block The graph triangle block in our model is engineered to update the edge representation in the backbone diffusion process. Drawing inspiration from AlphaFold2's network, we have innovatively adapted the concept of triangle attention and the multiplication method, which are central to AlphaFold2's Evoformer module. Triangle attention is crucial for generating valid protein structures by enforcing the triangle inequality for the pair distance distribution when updating edge representations. This module significantly contributes to AlphaFold2's exceptional accuracy but presents computational challenges due to its $O(N^3)$ computational complexity and substantial memory demands. Processing a 384-residue protein, a single layer of Evoformer can require upwards of 20GB memory during training, making it necessary to employ techniques of gradient checkpoint, especially considering the network comprises 48 Evoformer blocks. In terms of diffusion modeling, generating a 384 residue protein with 50 steps using AlphaFold2 can take a minimum of 10 minutes on a V100 GPU. Another challenge encountered with the application of the naive triangle attention technique to protein backbone diffusion models is the lack of awareness of the current structure. The Evoformer is tailored to convert Multiple Sequence Alignment (MSA) data into individual and edge representations, yet it lacks provision for structural information as an input to inform these update processes.
|
| 120 |
+
|
| 121 |
+
To address the aforementioned two major limitations when applying the triangle technique to protein backbone diffusion, we have devised the graph triangle block. This block computes triangle attention for edge representation with an optimized $O(NK^2)$ complexity. Utilizing the noisy input structure, we identify the k nearest neighbor residues for each residue and subsequently gather the $N*K$ edges from the comprehensive $N^2$ edge representation. Attention logits are then calculated among each residue's $K$ edges. To incorporate 3D spatial information, we calculate the inter-atom distances of the third edge and derive their Radial Basis Function (RBF) features as structural bias, rather than directly utilizing the representation of the third edge. Furthermore, the structure bias is gated by a feedforward network that leverages the sequence representations from both the starting and ending residues, thus ensuring seamless integration of inputs across all three tracks. Before trian
|
| 122 |
+
|
| 123 |
+
Table 1: Performance comparison of models on the unconditional monomer generation task. Designability is assessed by the self-consistency TM-score between generated and refolded backbones. Efficiency is quantified by number of seconds required to generate a sample, while diversity is measured by the ratio of designable clusters to the total number of generated backbones. Results are averaged across backbone lengths of 100, 200, 300, 400, and 600, as detailed in Figure 1. The top-performing metrics are highlighted in bold, with the second-best results underlined.
|
| 124 |
+
|
| 125 |
+
<table><tr><td>Method</td><td>Nparams</td><td>Designability (↑)</td><td>Sampling time (s) (↓)</td><td>Diversity (↑)</td><td>Timesteps (↓)</td></tr><tr><td>Proteus</td><td>19.8M</td><td>0.921</td><td>18.20</td><td>0.235</td><td>100</td></tr><tr><td>RFDiffusion</td><td>59.8M</td><td>0.705</td><td>120.24</td><td>0.328</td><td>50</td></tr><tr><td>GENIE(SwissProt)</td><td>4.1M</td><td>0.349</td><td>188.07</td><td>0.163</td><td>1000</td></tr><tr><td>FrameDiff</td><td>17.4M</td><td>0.405</td><td>40.47</td><td>0.136</td><td>500</td></tr><tr><td>Chroma</td><td>18.5M</td><td>0.174</td><td>18.31</td><td>0.038</td><td>500</td></tr></table>
|
| 126 |
+
|
| 127 |
+
gle attention is performed for $N * K$ edge representations, we first apply a triangle multiplicative update, as used in Evoformer, to update the entire $N * N$ edge representations.
|
| 128 |
+
|
| 129 |
+
Employing this technique confers three distinct benefits over the axial attention layer used in RFdiffusion and the simpler message-passing layer utilized in FrameDiff and Genie. Firstly, the integration of triangle attention for edge representation updates markedly augments the model's proficiency in modeling the protein backbone diffusion process. This advancement enables the model to achieve superior results with significantly fewer steps, yielding a threefold speedup and significantly outperforms the baseline model. Secondly, this approach significantly curtails memory requirements, allowing for training on much larger proteins without the necessity to crop the input. We can handle proteins up to 1024 residues in length during training on A40 GPU, compared to the 384 residues-limit for AlphaFold2 and RFdiffusion. This capability enhances the model's efficacy in generating larger protein structures. Lastly, by incorporating inputs from all three tracks to update edge representation and protein structure, the protein structure is refined in a holistic manner. The architecture is more compact and best suited for structure-to-structure tasks, such as protein structure generation and predicting the protein's apo-to-holo conformational transition (Hou et al., 2023).
|
| 130 |
+
|
| 131 |
+
Employing this technique confers three distinct benefits over the axial attention layer used in RFdiffusion and the simpler message-passing layer utilized in FrameDiff and Genie. Firstly, integrating triangle attention for edge representation updates significantly enhances the model's proficiency in modeling the protein backbone diffusion process. This advancement enables the model to achieve superior results with significantly fewer steps, yielding a threefold speedup and markedly outperforming the baseline model. Secondly, this approach substantially reduces memory requirements, allowing for training on much larger proteins without the necessity of cropping the input. We can handle proteins up to 1024 residues in length during training on A40 GPU, compared to the 384-residue limit for AlphaFold2 and RFdiffusion. This capability markedly augments the model's
|
| 132 |
+
|
| 133 |
+
efficacy in generating larger protein structures. Lastly, by incorporating inputs from all three tracks to update the edge representation and protein structure, the protein structure is refined in a holistic manner. The architecture is more compact and is ideally suited for structure-to-structure tasks such as protein structure generation. It also holds the potential to generalize to the protein's apo-to-holo conformational transitions (Hou et al., 2023).
|
| 134 |
+
|
| 135 |
+
# 3.2. Training
|
| 136 |
+
|
| 137 |
+
Dataset We curated a dataset from the Protein Data Bank (PDB) (Berman et al., 2000) with a cutoff date of August 1, 2023. Instead of the conventional practice of training diffusion models solely on monomeric structures, we also included oligomeric structures and extracted their individual chains as training data. To avoid redundancy, we mapped protein sequences to UniProt IDs and selected the highest resolution structure for chains that shared the same UniProt ID and exhibited at least 80 percent sequence overlap. Subsequently, we filtered out the remaining protein chains with length cutoffs between 60 and 512. Additionally, we limited the inclusion of proteins that contained a maximum of 50 percent loop regions as assigned by the DSSP program (Kabsch & Sander, 1983). This curation process yielded a training set of 50,773 single-chain proteins. Our results indicate that augmenting the dataset with additional single-chain data derived from oligomeric structures significantly enhances model performance, compared with training solely on monomers. Supporting evidence of this enhancement is presented in Table 4.
|
| 138 |
+
|
| 139 |
+
Training losses We have adopted the training loss used in FrameDiff, which can be divided into two main components: denoising translation and rotation score-matching losses, and the auxiliary losses involving the pair-wise distance matrix and coordinate loss on backbone atoms, as depicted in Equation 3. The positions of oxygen atoms are calculated based on the coordinates of other backbone atoms.
|
| 140 |
+
|
| 141 |
+
$$
|
| 142 |
+
\mathcal {L} = \underbrace {\mathcal {L} _ {\text {t r a n s}} + 0 . 5 \mathcal {L} _ {\text {r o t}}} _ {\text {d s m l o s s}} + \underbrace {0 . 2 5 \mathcal {L} _ {\text {c o o r d}} ^ {t < 0 . 2 5} + 0 . 2 5 \mathcal {L} _ {\text {d m}} ^ {t < 0 . 2 5}} _ {\text {a u x i l i a r y l o s s}} \tag {3}
|
| 143 |
+
$$
|
| 144 |
+
|
| 145 |
+
Here, $\mathcal{L}$ trans computes the L2 loss between predicted translations and native translations, while $\mathcal{L}$ rot calculates the L2 loss on rotation scores weighted by $\lambda_t^r = 1 / \mathbb{E}[\left|\nabla \log p_{t|0}\left(R_n^{(t)}\mid R^{(0)}\right)\right|\mathrm{SO}(3)]$ , following the approach in (Song et al., 2020). $\mathcal{L}$ coord represents the coordinate loss between predicted backbones and native backbones. Lastly, $\mathcal{L}_{\mathrm{dm}}$ computes the pair-wise distance loss between predicted atom positions and native positions. We apply auxiliary losses when $t < 0.25$ . Empirically, we have observed that including auxiliary losses at a small timestep can aid convergence and enhance the model's performance, which aligns with the findings of FrameDiff.
|
| 146 |
+
|
| 147 |
+
# 3.3. Sampling
|
| 148 |
+
|
| 149 |
+
The sampling procedure is detailed in Algorithm 1. We initiate the process by sampling the initial frames for rotation and translation separately. For the initial translation, we employ a Gaussian distribution on $\mathbb{R}^3$ . As for the rotation component, we first sample the coefficients of orthonormal basis vectors of the Lie algebra $\mathfrak{so}(3)$ and translate them into the rotation matrix. Once initialized, Proteus takes the input noisy structure and generates a prediction structure at the timestep 0. Then, we iteratively apply the Euler-Maruyama discretization (Bortoli et al., 2022) as the SDE solver for $N_{\mathrm{steps}}$ to generate the denoised structure.
|
| 150 |
+
|
| 151 |
+
# 4. Experiments
|
| 152 |
+
|
| 153 |
+
We rigorously evaluated Proteus performance through both in-silico validation and in vitro experimental approaches. In Section 4.1, we show Proteus' performance in the task of unconditional monomer generation. For a comprehensive assessment, we benchmark Proteus against a suite of leading protein backbone diffusion models, including Chroma (Ingraham et al., 2022), RFdiffusion (Watson et al., 2023), FrameDiff (Yim et al., 2023), and Genie (Lin & AlQuraishi, 2023). Furthermore, we extended our evaluation to the generation of protein complexes, where we compare Proteus's efficacy in generating oligomers of dimer, trimer, and tetramer against Chroma.
|
| 154 |
+
|
| 155 |
+
Section 4.2 is dedicated to the in vitro experimental validation of Proteus. We synthesized the DNA oligos for 16 designed proteins generated by Proteus, expressed and characterized their biochemical properties, particularly folding and stability. The objective of these experiments is to substantiate the model's practical utility and its effectiveness in real-world biological applications.
|
| 156 |
+
|
| 157 |
+
# 4.1. in-silico protein generation and evaluation
|
| 158 |
+
|
| 159 |
+
Monomer backbone generation and evaluation To comprehensively evaluate the performance of a protein backbone diffusion model, it is essential to consider three primary fac
|
| 160 |
+
|
| 161 |
+
tors: designability, efficiency, and diversity. These aspects are critical to the overall assessment and are detailed in Table 1
|
| 162 |
+
|
| 163 |
+
Designability aims to measure the quality of the generated backbones, by designing sequences for the generated backbones and refolding them to compute the errors between the generated and folded structures. Designability is the foremost factor, indicating the likelihood of identifying a protein sequence to fold into the designated structure. This is the cornerstone metric for gauging the performance of a diffusion model, as it directly correlates to the model's capacity to generate viable proteins that could conceivably exist in nature.
|
| 164 |
+
|
| 165 |
+
In our implementation, we use ProteinMPNN (Dauparas et al., 2022) at sampling temperature 0.1 to generate 8 sequences for the designed backbone. Specifically, for Chroma derived backbones, we employ its dedicated inverse folding model, ChromaDesign (Ingraham et al., 2022) at temperature 0.1 and diffusion augmentation 0.5. This substitution is made following the observation that ChromaDesign yields a higher success rate for Chroma's backbones, as documented in its paper. First, the inverse folding model generates multiple sequences corresponding to the sampled backbone, which are subsequently fed into ESMFold (Lin et al., 2023) to fold the structure. The designability of the backbone is represented by the highest TM-score (scTM, evaluating the similarity between two structures, where higher values are better) in all the predicted structures. Additionally, we also compute the self-consistency $C_{\alpha}$ -RMSD, where the threshold of $< 2\AA$ is the criterion for successful design. Any generated protein exceeding this $C_{\alpha}$ -RMSD threshold is deemed non-functional and likely to be unsuccessful in experimental validation.
|
| 166 |
+
|
| 167 |
+
Efficiency is the next critical factor. It is a key determinant in the success of design models, especially when computational resources are limited. A more efficient model can generate more samples in a limited time which increases the likelihood of generating potent candidates. Given the limitations on computation resources, efficiency becomes a pivotal criterion, on par with designability.
|
| 168 |
+
|
| 169 |
+
Efficiency is estimated as the time taken to generate a protein backbone on a standard NVIDIA Ampere Tesla A40 GPU with 48 GB of GPU memory. Additionally, we propose a Time-for-Success Design (TSD) metric, which computes the time consumed to generate a designable backbone. This metric underscores the crucial balance between the time required to generate successful designs and the efficiency of the model, making it highly relevant for real-world applications where both speed and effectiveness are critical.
|
| 170 |
+
|
| 171 |
+
Diversity is the third essential consideration, gauging the structural variance among the generated protein backbones
|
| 172 |
+
|
| 173 |
+

|
| 174 |
+
Figure 3: Complexes generation benchmark. scRMSD is derived from 200 backbone samples for each type of oligomer, with the length of each chain fixed at 200 amino acid residues.
|
| 175 |
+
|
| 176 |
+
Diversity is evaluated by calculating the ratio of diverse designable structure clusters to the total number of generated backbones. Specifically, we cluster the generated backbones using MaxCluster (Herbert & Sternberg, 2008) with a TM-score cutoff of 0.6. Notably, we only consider backbones that are designable, defined as those with a $C_{\alpha}$ -RMSD of less than $2\AA$ . This criterion is important because sub-optimal models often produce unrealistic structures that cannot be folded by any sequence and are highly non-physical. Including such backbones in the assessment would skew the metric towards models generating random, sub-optimal structures rather than models that genuinely capture the realistic distribution.
|
| 177 |
+
|
| 178 |
+
Table 2: Comparison of the Time-for-Success Design (TSD) Metric. This metric evaluates the time required to generate a designable backbone (scRMSD $< 2\AA$ ) on an A40. Asterisks (*) indicate models that failed to predict any designable backbones within 200 samples. The best results are bolded.
|
| 179 |
+
|
| 180 |
+
<table><tr><td rowspan="2">Protein length</td><td colspan="6">TSD (s)</td></tr><tr><td>100</td><td>200</td><td>300</td><td>400</td><td>600</td><td>800</td></tr><tr><td>Proteus</td><td>7.02</td><td>9.11</td><td>13.47</td><td>23.09</td><td>50.62</td><td>196.11</td></tr><tr><td>RFDiffusion</td><td>24.84</td><td>43.97</td><td>97.14</td><td>262.64</td><td>1494.28</td><td>30500.00</td></tr><tr><td>GENIE (SwissProt)</td><td>72.66</td><td>127.55</td><td>482.97</td><td>21169.0</td><td>*</td><td>*</td></tr><tr><td>FrameDiff</td><td>23.12</td><td>45.12</td><td>62.11</td><td>216.88</td><td>1851.11</td><td>*</td></tr><tr><td>Chroma</td><td>24.88</td><td>56.66</td><td>352.00</td><td>4020.00</td><td>*</td><td>*</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Complexes backbone generation and evaluation In Figure 3, we assess the capability of Proteus in generating protein complexes by drawing comparisons with Chroma under a set of monomer design evaluation metrics. We compute scRMSD across different oligomer configurations, including dimers (two chains), trimers (three chains), and tetramers (four chains), with each chain consisting of 200 amino acids. Notably, despite the model initially being trained on single protein chains, we observe its adaptive generation capacity to oligomers. This is achieved by adding a large positional
|
| 183 |
+
|
| 184 |
+
index as a chain breaker (Watson et al., 2023), a technique elaborated in Appendix A.1. Additionally, Figure 6 offers visual representations of the oligomeric structures produced by this method.
|
| 185 |
+
|
| 186 |
+
Results Proteus was benchmarked against the leading-edge protein backbone diffusion models, including RFDiffusion, Genie, FrameDiff, and Chroma. We generated 200 backbones across a spectrum of protein lengths, specifically [100, 200, 300, 400, 600], and computed the mean score for every category, as delineated in Table 1. Figure 1B shows the scRMSD distribution for each length category. Proteus matches the performance of RFDiffusion for shorter sequence lengths(100-300 residues) and significantly excels in generating sequences longer than 300 amino acids. We attribute the enhanced capability to the novel architecture of Proteus, which employs graph-level triangle techniques. Furthermore, the enhanced performance of Proteus in oligomeric structure generation, surpassing that of Chroma, provides evidence of its robust out-of-distribution generative capabilities.
|
| 187 |
+
|
| 188 |
+
Table 3: Proteus sample parameter benchmark
|
| 189 |
+
|
| 190 |
+
<table><tr><td>noise level ζ</td><td>0.1</td><td>0.5</td><td>1.0</td><td>0.1</td><td>0.1</td><td>0.1</td></tr><tr><td>Nstep</td><td>100</td><td>100</td><td>100</td><td>50</td><td>200</td><td>500</td></tr><tr><td>< 2Å scRMSD (↓)</td><td>92.0%</td><td>87.8%</td><td>37.3%</td><td>89.8%</td><td>91.0%</td><td>92.2%</td></tr><tr><td>DIVERSITY (↑)</td><td>0.23</td><td>0.27</td><td>0.16</td><td>0.26</td><td>0.22</td><td>0.22</td></tr></table>
|
| 191 |
+
|
| 192 |
+
Remarkably, while upholding high designability, Proteus also matches Chroma in computational efficiency. Table 3 illustrates that Proteus, through enhanced network representation capabilities, requires merely 100 sampling steps without compromising its designability. This is in contrast to the 1,000 steps necessary for Genie, and 500 steps for FrameDiff and Chroma. Figure 1 showcases the computation time associated with varying protein lengths. Proteus exhibits faster performance compared to Chroma in generating proteins with lengths shorter than 400 amino acids. However, Chroma shows greater time efficiency on proteins exceeding 400 amino acids. Proteus, with superior designability and efficient graph-level processing, distinctively surpasses other models in the realm of success efficiency, as evidenced by the benchmark results in Table 2.
|
| 193 |
+
|
| 194 |
+
Table 4: Ablation Study
|
| 195 |
+
|
| 196 |
+
<table><tr><td rowspan="2">2*Dataset</td><td>Monomer</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td>Oligomer</td><td></td><td>✓</td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td rowspan="2">2*Self-Condition</td><td>Cα distance matrix</td><td>✓</td><td>✓</td><td></td><td></td><td></td></tr><tr><td>Structure featurizer</td><td></td><td></td><td>✓</td><td>✓</td><td>✓</td></tr><tr><td rowspan="3">-3*Model</td><td>Graph triangle attention</td><td></td><td></td><td></td><td>✓</td><td>✓</td></tr><tr><td>Structure bias</td><td></td><td></td><td></td><td></td><td>✓</td></tr><tr><td>Triangle multiplication</td><td></td><td></td><td></td><td>✓</td><td>✓</td></tr><tr><td>1*Results</td><td>Success rate</td><td>36.9%</td><td>59.2%</td><td>63.2%</td><td>87.5%</td><td>92.1%</td></tr></table>
|
| 197 |
+
|
| 198 |
+
Ablation In our comprehensive ablation analysis, as delineated in Table 4, the enhancements are attributed to
|
| 199 |
+
|
| 200 |
+
three main aspects: dataset augmentation, self-condition enhancement, and model architecture. Previous protein backbone diffusion methods offered a range of training datasets: FoldingDiff utilized 30,395 protein chains from the CATH database (Sillitoe et al., 2014) with a cropping length of 128. Genie adopted the AlphaFold-Swissprot database (Varadi et al., 2021), containing 195,214 protein chains with a pLDDT cutoff of 80 and a length cutoff of 256. FrameDiff (Yim et al., 2023) compiled a dataset from PDB entries of only monomers, capped at 512 amino acids, resulting in a collection of 20,312 chains. In contrast to the above approaches, we expanded the dataset by adding oligomeric structures, which were subsequently split into single chains, resulting in a dataset of 50,773 chains that significantly bolstered designability. The ablation study further reveals the benefits of incorporating pairwise rotational info as a self-conditioning feature, analogous to the template featurization introduced by AlphaFold2, enabling the model to capture the structure self-consistency from previous denoising steps more accurately.
|
| 201 |
+
|
| 202 |
+
While these incremental modifications substantially elevated the model's performance, it was the introduction of the local triangle graph technique that allowed Proteus to match the performance of RFDiffusion. This innovative network, which applies an attention mechanism at the graph level with the integration of structure bias, not only preserves a fast sampling speed on par with Chroma but also significantly improves designability. This indicates that structure-level information can enrich edge representation, a novel insight not yet explored by AlphaFold2.
|
| 203 |
+
|
| 204 |
+
# 4.2. Experimental validation
|
| 205 |
+
|
| 206 |
+
DNA oligonucleotides encoding 16 designs generated by Proteus were synthesized, and the proteins were recombinantly expressed in Escherichia coli. This set comprises 12 proteins of 300 amino acids and 4 proteins of 500 amino acids. All proteins were well expressed in E. coli. Size exclusion chromatography (SEC) analysis revealed monodisperse peaks for 9 of the 300 amino acid designs and 3 of the 500 amino acid designs, which corresponded to the expected molecular weight. Furthermore, circular dichroism (CD) spectroscopy confirmed the well-folded structure of these designs, and the secondary structure features are consistent with the design models. Notably, these proteins exhibited remarkable thermostability, remaining well-folded at temperatures up to $95^{\circ}\mathrm{C}$ . Experimental results are comprehensively detailed in Figure 4.
|
| 207 |
+
|
| 208 |
+
# 5. Related work
|
| 209 |
+
|
| 210 |
+
Structure diffusion models on proteins Motivated by the significant achievements of diffusion models (Ho et al., 2020; Song et al., 2020; Bortoli et al., 2022) protein dif
|
| 211 |
+
|
| 212 |
+
fusion models have been developed to generate proteins in either sequence or structural space, with certain methods adeptly bridging both spaces (Anand & Achim, 2022). Anand & Achim pioneered a model that co-diffuses backbone, sequence, and sidechain information utilizing the Structure Module of AlphaFold2. Subsequently, numerous methods have been introduced, focusing on the diffusion of inter-residue geometry (Lee et al., 2023) and backbone dihedral angle (Wu et al., 2022). The leading edge protein diffusion models predominantly engage with diffusion in either SE3 or R3 space in an end-to-end fashion (Yim et al., 2023; Lin & AlQuraishi, 2023). These methods have been further expanded to function motif scaffolding (Trippe et al., 2022; Yim et al., 2024). Chroma achieved a higher efficiency by utilizing an efficient graph neural network. RFdiffusion (Watson et al., 2023) has attained state-of-the-art designability through finetuning the Rosettafold2 structure prediction network (Baek et al., 2023). In contrast to RFdiffusion's
|
| 213 |
+
|
| 214 |
+

|
| 215 |
+
|
| 216 |
+

|
| 217 |
+
Figure 4: Experimental characterization of the generated proteins indicates they are well-folded monomers and thermostable. (A) Size exclusion chromatography profiles of the recombinantly expressed proteins on a Supderdex 75 Increase column. (B) Examples of designed proteins that are expressed as monomers. Designs (grey) overlaid with AF2 predictions (colors) are shown on the left, alongside circular dichroism (CD) spectra at $25^{\circ}\mathrm{C}$ , $95^{\circ}\mathrm{C}$ and $25^{\circ}\mathrm{C} (*)$ after cooling down from $95^{\circ}\mathrm{C}$ on the right.
|
| 218 |
+
|
| 219 |
+
approach, our work achieves a comparable designability and much higher efficiency without the necessity of pretraining, making a significant departure from existing methodologies
|
| 220 |
+
|
| 221 |
+
Other diffusion models on proteins Many other studies have pivoted to the diffusion of protein sequences, or the synergistic integration of sequence data into structure diffusion models. EvoDiff (Alamdari et al., 2023), for example, utilizes evolutionary-scale protein sequence data to generate protein sequences. Although EvoDiff can generate quite diverse protein sequences, the structure prediction metrics indicate limited designability for the generated backbones. Chu et al. innovatively incorporates protein sequence features into the protein backbone diffusion process. The model utilizes a timestep-dependent Protein-MPNN model to design sequences on the noisy structures. However, this appears to diminish the model's performance. This runs counter to the intuitive notion that the integration of sequence data should enhance structural quality. We notice another possible formulation of structure-sequence co-generation by language model inspired by SaProt (Su et al., 2023). For the specific task of antibody diffusion, considerable efforts (Luo et al., 2022; Kong et al., 2023; Peng et al., 2023) have been made to simultaneously generate the sequence and structure of complementarity-determining regions (CDR), highlighting the community interest in antibody design and the potential of sequence-structure co-diffusion.
|
| 222 |
+
|
| 223 |
+
Protein-ligand complexes prediction In previous works, the prediction of protein-ligand complexes is treated as a regression problem, focusing on the rigid body docking of ligands to holo proteins (Stark et al., 2022; Lu et al., 2022). Capitalizing on the generative power of diffusion models, Diffdock significantly improved the docking accuracy (Corso et al., 2022). Protein-ligand co-folding models (Qiao et al., 2023; Lu et al., 2024) offer more precise predictions when the holo-state protein structures are not known - a formidable and crucial challenge in drug discovery. Furthermore, RFdiffusion All Atom (Krishna et al., 2023) are trained to design novel small molecule binders, expanding the frontier of computational approaches in molecular design.
|
| 224 |
+
|
| 225 |
+
# 6. Discussion
|
| 226 |
+
|
| 227 |
+
In this paper, we introduce a new model architecture for protein backbone diffusion, and demonstrate its enhanced designability and efficiency without the necessity of pretraining. Our model advances the field by integrating the triangle attention technique into residue edge representation update and building multi-track interaction networks to enhance its representation capability. Our model shows improved performance in generating longer monomers (with 400 or more amino acids) compared to RFdiffusion. The successful
|
| 228 |
+
|
| 229 |
+
generation of oligomeric structures further reveals Proteus' generalizability.
|
| 230 |
+
|
| 231 |
+
Looking forward, we envision several research trajectories where Proteus could exert a transformative influence. Proteins in their natural state often manifest as multi-chain entities, orchestrating their functions in a coordinated fashion. Given Proteus's exemplary performance in crafting larger proteins and multi-chain architectures with both high fidelity and efficiency, it is ideally suited for direct application in the generation of protein oligomeric structures and complex protein machinery. This capability will broaden the current scope of designable protein space, enabling the creation of innovative protein nanomachines.
|
| 232 |
+
|
| 233 |
+
A further domain of interest is the area of protein-ligand co-folding. Contemporary breakthroughs, exemplified by tools like Rosettafold All Atom (Krishna et al., 2023) and AlphaFold3 (Abramson et al., 2024), have eclipsed the previously established benchmarks set by Diffdock in the realm of modeling protein-small molecule interactions. The integration of Proteus-inspired methodologies into the diffusion dynamics of ligand-protein interplay holds the promise of refining protein-ligand co-folding techniques, paving the way for the development of methods with enhanced accuracy.
|
| 234 |
+
|
| 235 |
+
# Acknowledgements
|
| 236 |
+
|
| 237 |
+
The authors thank Pranam D. Chatterjee, Fajie Yuan, Jin Su, Jiaxuan Wang, all reviewers, the area chair for helpful discussions, Minchao Fang for his help with code development, and the Westlake University HPC Center for computing support.
|
| 238 |
+
|
| 239 |
+
This work was supported by the Science and Technology Innovation 2030 Major Project (2021ZD0150100), the National Key RD Program of China (2021YFC2301401, 2022YFA1303700), the National Natural Science Foundation of China (32370989), and the Westlake Education Foundation.
|
| 240 |
+
|
| 241 |
+
# Impact Statement
|
| 242 |
+
|
| 243 |
+
This paper presents work whose goal is to advance the field of protein design. There are many potential societal consequences of our work, none which we feel must be specifically highlighted here.
|
| 244 |
+
|
| 245 |
+
# References
|
| 246 |
+
|
| 247 |
+
Abramson, J., Adler, J., Dunger, J., Evans, R., Green, T. Pritzel, A., Ronneberger, O., Willmore, L., Ballard, A. J., Bambrick, J., Bodenstein, S. W., Evans, D. A., Hung, C.-C., O'Neill, M., Reiman, D., Tunyasuvunakool, K., Wu, Z., Žemgulytè, A., Arvaniti, E., Beattie, C., Bertolli,
|
| 248 |
+
|
| 249 |
+
O., Bridgland, A., Cherepanov, A., Congreve, M., Cowen-Rivers, A. I., Cowie, A., Figurnov, M., Fuchs, F. B., Gladman, H., Jain, R., Khan, Y. A., Low, C. M. R., Perlin, K., Potapenko, A., Savy, P., Singh, S., Stecula, A., Thillaisundaram, A., Tong, C., Yakneen, S., Zhong, E. D., Zielinski, M., Zidek, A., Bapat, V., Kohli, P., Jaderberg, M., Hassabis, D., and Jumper, J. M. Accurate structure prediction of biomolecular interactions with alphafold 3. Nature, 5 2024. doi: 10.1038/s41586-024-07487-w. URL https://doi.org/10.1038/s41586-024-07487-w.
|
| 250 |
+
Alamdari, S., Thakkar, N., van den Berg, R., Lu, A. X., Fusi, N., Amini, A. P., and Yang, K. K. Protein generation with evolutionary diffusion: sequence is all you need. bioRxiv, 2023. doi: 10.1101/2023.09.11.556673.
|
| 251 |
+
Anand, N. and Achim, T. Protein structure and sequence generation with equivariant denoising diffusion probabilistic models. ArXiv, abs/2205.15019, 2022. URL https://api_semanticscholar.org/CorpusID:249192041.
|
| 252 |
+
Anishchenko, I., Pellock, S. J., Chidyausiku, T. M., Ramelot, T. A., Ovchinnikov, S., Hao, J., Bafna, K., Norn, C., Kang, A., Bera, A. K., DiMaio, F., Carter, L., Chow, C. M., Montelione, G. T., and Baker, D. De novo protein design by deep network hallucination. Nature, 600(7889):547-552, 2021. ISSN 1476-4687. doi: 10.1038/s41586-021-04184-w. URL https://doi.org/10.1038/s41586-021-04184-w.
|
| 253 |
+
Ba, J. L., Kiros, J. R., and Hinton, G. E. Layer normalization, 2016.
|
| 254 |
+
Baek, M., DiMaio, F., Anishchenko, I., Dauparas, J., Ovchinnikov, S., Lee, G. R., Wang, J., Cong, Q., Kinch, L. N., Schaeffer, R. D., Milln, C., Park, H., Adams, C., Glassman, C. R., DeGiovanni, A., Pereira, J. H., Rodrigues, A. V., van Dijk, A. A., Ebrecht, A. C., Opperman, D. J., Sagmeister, T., Buhlheller, C., Pavkov-Keller, T., Rathinaswamy, M. K., Dalwadi, U., Yip, C. K., Burke, J. E., Garcia, K. C., Grishin, N. V., Adams, P. D., Read, R. J., and Baker, D. Accurate prediction of protein structures and interactions using a three-track neural network. Science, 373(6557):871-876, 2021. doi: 10.1126/science.abj8754. URL https://www.science.org/doi/abs/10.1126/science.abj8754.
|
| 255 |
+
Baek, M., Anishchenko, I., Humphreys, I. R., Cong, Q., Baker, D., and DiMaio, F. Efficient and accurate prediction of protein structure using rosettafold2. bioRxiv, 2023. doi: 10.1101/2023.05.24.542179. URL https://www.biorxiv.org/content/ early/2023/05/25/2023.05.24.542179.
|
| 256 |
+
Berman, H. M., Westbrook, J., Feng, Z., Gilliland, G., Bhat, T. N., Weissig, H., Shindyalov, I. N., and Bourne, P. E.
|
| 257 |
+
|
| 258 |
+
The Protein Data Bank. Nucleic Acids Research, 28(1): 235-242, 01 2000. doi: 10.1093/nar/28.1.235. URL https://doi.org/10.1093/nar/28.1.235.
|
| 259 |
+
Bortoli, V. D., Mathieu, E., Hutchinson, M., Thornton, J., Teh, Y. W., and Doucet, A. Riemannian score-based generative modelling, 2022.
|
| 260 |
+
Chu, A. E., Cheng, L., Nesr, G. E., Xu, M., and Huang, P.-S. An all-atom protein generative model. bioRxiv, 2023. doi: 10.1101/2023.05.24.542194. URL https://www.biorxiv.org/content/ early/2023/05/25/2023.05.24.542194.
|
| 261 |
+
Corso, G., Stärk, H., Jing, B., Barzilay, R., and Jaakkola, T. Diffdock: Diffusion steps, twists, and turns for molecular docking. ArXiv, abs/2210.01776, 2022. URL https://api.sementicscholar.org/CorpusID:252693198.
|
| 262 |
+
Dauparas, J., Anishchenko, I., Bennett, N., Bai, H., Ragotte, R. J., Milles, L. F., Wicky, B. I. M., Courbet, A., de Haas, R. J., Bethel, N., Leung, P. J. Y., Huddy, T. F., Pellock, S., Tischer, D., Chan, F., Koepnick, B., Nguyen, H., Kang, A., Sankaran, B., Bera, A. K., King, N. P., and Baker, D. Robust deep learningased protein sequence design using proteinmpnn. Science, 378(6615):49-56, 2022. doi: 10.1126/science.add2187. URL https://www.science.org/doi/abs/10.1126/science.add2187.
|
| 263 |
+
Fuchs, F. B., Worrall, D. E., Fischer, V., and Welling, M. Se(3)-transformers: 3d roto-translation equivariant attention networks, 2020.
|
| 264 |
+
Herbert, A. and Sternberg, M. MaxCluster: a tool for protein structure comparison and clustering, 2008.
|
| 265 |
+
Ho, J., Kalchbrenner, N., Weissenborn, D., and Salimans, T. Axial attention in multidimensional transformers, 2019.
|
| 266 |
+
Ho, J., Jain, A., and Abbeel, P. Denoising diffusion probabilistic models. ArXiv, abs/2006.11239, 2020. URL https://api(semanticscholar.org/CorpusID:219955663.
|
| 267 |
+
Hou, M.-H., Jin, S.-R., Cui, X.-Y., Peng, C.-X., Zhao, K.-L., Song, L., and Zhang, G.-J. Protein multiple conformations prediction using multi-objective evolution algorithm. bioRxiv, 2023. doi: 10.1101/2023.04.21.537776.
|
| 268 |
+
Ingraham, J., Baranov, M., Costello, Z., Frappier, V., Ismail, A., Tie, S., Wang, W., Xue, V., Obermeyer, F., Beam, A., and Grigoryan, G. Illuminating protein space with a programmable generative model. Nature, 623:1070 - 1078, 2022. URL https://api.sementicscholar.org/CorpusID:254222077.
|
| 269 |
+
|
| 270 |
+
Jumper, J., Evans, R., Pritzel, A., Green, T., Figurnov, M., Ronneberger, O., Tunyasuvunakool, K., Bates, R., Zidek, A., Potapenko, A., Bridgland, A., Meyer, C., Kohl, S. A., Ballard, A. J., Cowie, A., Romero-Paredes, B., Nikolov, S., Jain, R., Adler, J., Back, T., Petersen, S., Reiman, D., Clancy, E., Zielinski, M., Steinegger, M., Pacholska, M., Berghammer, T., Bodenstein, S., Silver, D., Vinyals, O., Senior, A. W., Kavukcuoglu, K., Kohli, P., and Hassabis, D. Highly accurate protein structure prediction with AlphaFold. Nature, 596(7873):583-589, 2021. doi: 10.1038/s41586-021-03819-2.
|
| 271 |
+
Kabsch, W. and Sander, C. Dictionary of protein secondary structure: Pattern recognition of hydrogen-bonded and geometrical features. Biopolymers, 22(12):2577-2637, 1983. doi: https://doi.org/10.1002/bip.360221211. URL https://onlinelibrary.wiley.com/doi/ abs/10.1002/bip.360221211.
|
| 272 |
+
Kingma, D. P. and Ba, J. Adam: A method for stochastic optimization, 2017.
|
| 273 |
+
Kong, X., Huang, W., and Liu, Y. Conditional antibody design as 3d equivariant graph translation, 2023.
|
| 274 |
+
Krishna, R., Wang, J., Ahern, W., Sturmfels, P., Venkatesh, P., Kalvet, I., Lee, G. R., Morey-Burrows, F. S., Anishchenko, I., Humphreys, I. R., McHugh, R., Vafeados, D., Li, X., Sutherland, G. A., Hitchcock, A., Hunter, C. N., Baek, M., DiMaio, F., and Baker, D. Generalized biomolecular modeling and design with rosettafold all-atom. bioRxiv, 2023. doi: 10.1101/2023.10.09.561603. URL https://www.biorxiv.org/content/ early/2023/10/09/2023.10.09.561603.
|
| 275 |
+
Lee, J. S., Kim, J., and Kim, P. M. Score-based generative modeling for de novo protein design. Nature Computational Science, 3:382 - 392, 2023. URL https://api.sementicscholar.org/CorpusID:250645859.
|
| 276 |
+
Lin, Y. and AlQuraishi, M. Generating novel, designable, and diverse protein structures by equivariantly diffusing oriented residue clouds, 2023.
|
| 277 |
+
Lin, Z., Akin, H., Rao, R., Hie, B., Zhu, Z., Lu, W., Smetanin, N., Verkuil, R., Kabeli, O., Shmueli, Y., dos Santos Costa, A., Fazel-Zarandi, M., Sercu, T., Candido, S., and Rives, A. Evolutionary-scale prediction of atomic-level protein structure with a language model. Science, 379(6637):1123-1130, 2023. doi: 10.1126/science.ade2574. URL https://www.science.org/doi/abs/10.1126/science.ade2574.
|
| 278 |
+
Lu, W., Wu, Q., Zhang, J., Rao, J., Li, C., and Zheng, S. Tankbind: Trigonometry-aware neural networks for drug-protein binding structure prediction.
|
| 279 |
+
|
| 280 |
+
bioRxiv, 2022. doi: 10.1101/2022.06.06.495043. URL https://www.biorxiv.org/content/ early/2022/06/06/2022.06.06.495043.
|
| 281 |
+
Lu, W., Zhang, J., Huang, W., Zhang, Z., Jia, X., Wang, Z., Shi, L., Li, C., Wolynes, P. G., and Zheng, S. Dynamicbind: Predicting ligand-specific protein-ligand complex structure with a deep equivariant generative model. Nature Communications, 15(1):1071, 2 2024. doi: 10.1038/s41467-024-45461-2. URL https://doi.org/10.1038/s41467-024-45461-2.
|
| 282 |
+
Luo, S., Su, Y., Peng, X., Wang, S., Peng, J., and Ma, J. Antigen-specific antibody design and optimization with diffusion-based generative models. bioRxiv, 2022. doi: 10.1101/2022.07.10.499510. URL https://www.biorxiv.org/content/ early/2022/07/25/2022.07.10.499510.
|
| 283 |
+
Peng, Z., Han, C., Wang, X., Li, D., and Yuan, F. Generative diffusion models for antibody design, docking, and optimization. bioRxiv, 2023. URL https://api(semanticscholar.org/CorpusID:263225383.
|
| 284 |
+
Qiao, Z., Nie, W., Vahdat, A., au2, T. F. M. I., and Anandkumar, A. State-specific protein-ligand complex structure prediction with a multi-scale deep generative model, 2023.
|
| 285 |
+
Ronneberger, O., Fischer, P., and Brox, T. U-net: Convolutional networks for biomedical image segmentation, 2015.
|
| 286 |
+
Satorras, V. G., Hoogeboom, E., and Welling, M. E(n) equivariant graph neural networks, 2022.
|
| 287 |
+
Sillitoe, I., Lewis, T. E., Cuff, A., Das, S., Ashford, P., Dawson, N. L., Furnham, N., Laskowski, R. A., Lee, D., Lees, J. G., Lehtinen, S., Studer, R. A., Thornton, J., and Orengo, C. A. CATH: comprehensive structural and functional annotations for genome sequences. *Nucleic Acids Research*, 43(D1):D376–D381, 10 2014. ISSN 0305-1048. doi: 10.1093/nar/gku947. URL https://doi.org/10.1093/nar/gku947.
|
| 288 |
+
Song, Y., Sohl-Dickstein, J. N., Kingma, D. P., Kumar, A., Ermon, S., and Poole, B. Score-based generative modeling through stochastic differential equations. ArXiv, abs/2011.13456, 2020. URL https://api-semanticscholar.org/CorpusID:227209335.
|
| 289 |
+
Stärk, H., Ganea, O.-E., Pattanaik, L., Barzilay, R., and Jaakkola, T. Equibind: Geometric deep learning for drug binding structure prediction, 2022.
|
| 290 |
+
|
| 291 |
+
Su, J., Han, C., Zhou, Y., Shan, J., Zhou, X., and Yuan, F. Saprot: Protein language modeling with structure-aware vocabulary. bioRxiv, 2023. doi: 10.1101/2023.10.01.560349. URL https://www.biorxiv.org/content/ early/2023/10/02/2023.10.01.560349.
|
| 292 |
+
Trippe, B. L., Yim, J., Tischer, D. K., Broderick, T., Baker, D., Barzilay, R., and Jaakkola, T. Diffusion probabilistic modeling of protein backbones in 3d for the motif-scaffolding problem. ArXiv, abs/2206.04119, 2022. URL https://api.sementicscholar.org/CorpusID:249538415.
|
| 293 |
+
Varadi, M., Anyango, S., Deshpande, M., Nair, S., Natassia, C., Yordanova, G., Yuan, D., Stroe, O., Wood, G., Laydon, A., dek, A., Green, T., Tunyasuvunakool, K., Petersen, S., Jumper, J., Clancy, E., Green, R., Vora, A., Lutfi, M., Figurnov, M., Cowie, A., Hobbs, N., Kohli, P., Kleywegt, G., Birney, E., Hassabis, D., and Velankar, S. AlphaFold Protein Structure Database: massively expanding the structural coverage of protein-sequence space with high-accuracy models. Nucleic Acids Research, 50(D1):D439-D444, 11 2021. ISSN 0305-1048. doi: 10.1093/nar/gkab1061. URL https://doi.org/10.1093/nar/gkab1061.
|
| 294 |
+
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need, 2023.
|
| 295 |
+
Wang, J., Lisanza, S., Juergens, D., Tischer, D., Watson, J. L., Castro, K. M., Ragotte, R., Saragovi, A., Milles, L. F., Baek, M., Anishchenko, I., Yang, W., Hicks, D. R., Expsit, M., Schlichthaerle, T., Chun, J.-H., Dauparas, J., Bennett, N., Wicky, B. I. M., Muenks, A., DiMaio, F., Correia, B., Ovchinnikov, S., and Baker, D. Scaffolding protein functional sites using deep learning. Science, 377(6604):387-394, 2022. doi: 10.1126/science.abn2100. URL https://www.science.org/doi/abs/10.1126/science.abn2100.
|
| 296 |
+
Watson, J. L., Juergens, D., Bennett, N. R., Trippe, B. L., Yim, J., Eisenach, H. E., Ahern, W., Borst, A. J., Ragotte, R. J., Milles, L. F., Wicky, B. I. M., Hanikel, N., Pellock, S. J., Courbet, A., Sheffler, W., Wang, J., Venkatesh, P., Sappington, I., Torres, S. V., Lauko, A., Bortoli, V. D., Mathieu, E., Ovchinnikov, S., Barzilay, R., Jaakkola, T., DiMaio, F., Baek, M., and Baker, D. De novo design of protein structure and function with rfdiffusion. Nature, 620:1089 - 1100, 2023. URL https://api.sementicscholar.org/CorpusID:266694644.
|
| 297 |
+
Wu, K. E., Yang, K. K., van den Berg, R., Zou, J. Y., Lu, A. X., and Amini, A. P. Protein structure generation via folding diffusion, 2022.
|
| 298 |
+
|
| 299 |
+
Yim, J., Trippe, B. L., Bortoli, V. D., Mathieu, E., Doucet, A., Barzilay, R., and Jaakkola, T. Se(3) diffusion model with application to protein backbone generation, 2023.
|
| 300 |
+
Yim, J., Campbell, A., Mathieu, E., Foong, A. Y. K., Gastegger, M., Jimenez-Luna, J., Lewis, S., Satorras, V. G., Veeling, B. S., Noé, F., Barzilay, R., and Jaakkola, T. S. Improved motif-scaffolding with se(3) flow matching, 2024.
|
| 301 |
+
|
| 302 |
+
# A. Additional method details
|
| 303 |
+
|
| 304 |
+
Here, we describe the implementation details of Proteus as a further explanation of Section 3. To briefly revisit the fundamentals, the $\ell$ -th layer's node representations are denoted as $\mathbf{s}_{\ell} = [\mathbf{s}_{\ell}^{1}, \ldots, \mathbf{s}_{\ell}^{N}] \in \mathbb{R}^{N \times D_{s}}$ , edge representations are captured by $\mathbf{z}_{\ell} = [\mathbf{z}_{\ell}^{1,1}, \ldots, \mathbf{z}_{\ell}^{N,N}] \in \mathbb{R}^{N \times N \times D_{z}}$ . The spatial configuration of each residue in the $\ell$ -th layer is encapsulated by $T_{\ell} \in \mathrm{SE}(3)^{N}$ .
|
| 305 |
+
|
| 306 |
+
# A.1. Proteus model details
|
| 307 |
+
|
| 308 |
+
Table 5: Input feature of Proteus
|
| 309 |
+
|
| 310 |
+
<table><tr><td>Input Feature (shape)</td><td>Description</td></tr><tr><td>aa (N_res, 21)</td><td>The amino acid type of input residues, include all 20 standard types with 1 unknown type</td></tr><tr><td>timestep (N_res, 32)</td><td>The timestep embedding from 0 to 1 by sinusoidal positional encoding.</td></tr><tr><td>rigid_frame (N_res, 7)</td><td>Input noisy structure, 3 dim of translation and 4 dim of rotation represented by a quaternion.</td></tr><tr><td>rel_pos (N_res, N_res, 65)</td><td>Relative position index embedding in [-32,32.]</td></tr><tr><td>torsion_angle Prev(N_res, 14)</td><td>Self-condition input structure's residue torsion angle of prev prediction represented by sin and cos formulation, 4 chi angles will be masked out in the network.</td></tr><tr><td>distogram Prev(N_res, N_res, 39)</td><td>Self-condition input structure's pair distance histogram of pseudo Cβ, bin_min=3.25Å, bin_max=50.75Å.</td></tr><tr><td>unit_vector Prev(N_res, N_res, 3)</td><td>Self-condition input structure's unit vector of each residue's Cα coordinate in another residue's local frame.</td></tr></table>
|
| 311 |
+
|
| 312 |
+
Feature initialization Node feature is initialized from timestep and amino acid type (currently, all residues amino acid type is set to alanine for unconditional generation). The edge feature is initialized from the two corresponding node features with additional relative sequence position encoding. The Multi-Layer Perceptrons (MLP) used to embed initial features consists of 3 Linear layers with biases, 2 ReLU activation layers between Linear layers, and a LayerNorm (Ba et al., 2016) at the end. The timestep embedding embedding $\phi(\cdot)$ follows Ho et al. by using sinusoidal embeddings (Vaswani et al., 2023). The relative sequence position encoding $relpos(\cdot)$ follows algorithm 4 in supplementary of Alphafold2 (Jumper et al., 2021).
|
| 313 |
+
|
| 314 |
+
$$
|
| 315 |
+
\mathbf {s} _ {0} ^ {i} = \operatorname {C o n c a t} ([ \phi (t), \text {o n e h o t} (\mathrm {a a}, 2 1) ])
|
| 316 |
+
$$
|
| 317 |
+
|
| 318 |
+
$$
|
| 319 |
+
\mathbf {z} _ {0} ^ {i, j} = \operatorname {C o n c a t} \left(\left[ s _ {0} ^ {n}, s _ {0} ^ {j}, \operatorname {r e l p o s} (i - j) \right]\right)
|
| 320 |
+
$$
|
| 321 |
+
|
| 322 |
+
$$
|
| 323 |
+
\mathbf {s} _ {0} ^ {i} = \operatorname {M L P} \left(s _ {0} ^ {i}\right)
|
| 324 |
+
$$
|
| 325 |
+
|
| 326 |
+
$$
|
| 327 |
+
\mathbf {z} _ {0} ^ {i, j} = \operatorname {M L P} \left(z _ {0} ^ {i, j}\right)
|
| 328 |
+
$$
|
| 329 |
+
|
| 330 |
+
For the positional encoding, the relative position tokens of residue i and residue j within the same protein chain are always between -32, -31,..., 31, 32. For oligomer generation, we add an extra position index 200 on the residues of the next chain, so the relative position tokens of residue i and residue j of different chains always have a position index -32 or 32, indicating a chain break.
|
| 331 |
+
|
| 332 |
+
Self-condition featurization Encoding of predicted structure from the previous step has been proved to improve prediction self-consistency and backbone designability (Watson et al., 2023). In $50\%$ time of training and all inference time, the ConditionEmbedder mentioned in Algorithm 1 is used to encode the prediction of the previous step as node embedding $\mathbf{t}_s$
|
| 333 |
+
|
| 334 |
+
and edge embedding $\mathbf{t}_z$ , and the self condition feature is encoded to $s_0$ and $z_0$ after feature initialization.
|
| 335 |
+
|
| 336 |
+
$$
|
| 337 |
+
\mathbf {t} _ {s} = \operatorname {M L P} (\operatorname {C o n c a t} ([ \text {t o r s i o n} \text {a n g l e} \text {p r e v}, \text {o n e h o t} (\mathrm {a a}, 2 1) ]))
|
| 338 |
+
$$
|
| 339 |
+
|
| 340 |
+
$$
|
| 341 |
+
\mathbf {t} _ {z} = \operatorname {M L P} (\operatorname {C o n c a t} ([ \text {d i s t o g r a m} _ {-} \text {p r e v}, \text {u n i t} _ {-} \text {v e c t o r} _ {-} \text {p r e v} ]))
|
| 342 |
+
$$
|
| 343 |
+
|
| 344 |
+
$$
|
| 345 |
+
\mathbf {t} _ {z} + = \text {D r o p o u t R o w w i s e} (\text {T r i a n g l e M u l t i p l i c a t i o n O u t g o i n g} (t _ {z}))
|
| 346 |
+
$$
|
| 347 |
+
|
| 348 |
+
$$
|
| 349 |
+
\mathbf {t} _ {z} + = \text {D r o p o u t R o w w i s e} (\text {T r i a n g l e M u l t i p l i c a t i o n I n c o m i n g} (t _ {z}))
|
| 350 |
+
$$
|
| 351 |
+
|
| 352 |
+
$$
|
| 353 |
+
\mathbf {t} _ {z} + = \text {P a i r T r a n s i t i o n s} \left(t _ {z}\right)
|
| 354 |
+
$$
|
| 355 |
+
|
| 356 |
+
$$
|
| 357 |
+
\mathbf {z} _ {0} + = \text {P o i n t w i s e A t t e n t i o n} \left(t _ {z}, z _ {0}\right)
|
| 358 |
+
$$
|
| 359 |
+
|
| 360 |
+
$$
|
| 361 |
+
\mathbf {s} _ {0} + = \text {C o l u m n w i s e A t t e n t i o n} \left(t _ {s}, s _ {0}\right)
|
| 362 |
+
$$
|
| 363 |
+
|
| 364 |
+
We have developed a self-conditioning featurization module, taking inspiration from AlphaFold2's TemplatePairStack (Algorithm 16). The self-conditioned feature is divided into node features $t_{s}$ , which include predicted backbone dihedral angles and amino acid types, and edge features $t_{z}$ , which comprise $C\beta$ pair distance and SE(3)-invariant pairwise directional vectors.
|
| 365 |
+
|
| 366 |
+
The node feature is encoded by an MLP and incorporated into $s_0$ via ColumnwiseAttention. This architecture is similar to AlphaFold2's MSAColumnAttention (Algorithm 8) but without gating. The edge feature is similarly encoded by an MLP and then processed through two triangle multiplication layers(AlphaFold2 Algorithm 11) with a dropout rate of 0.25 and a PairTransition layer (AlphaFold2 Algorithm 15). It is ultimately integrated into $z_0$ through PointwiseAttention(Alphafold2 algorithm 17). Notably, we have reduced the number of blocks to one block and omitted the triangle attention layer present in AlphaFold2's TemplatePairStack to enhance efficiency.
|
| 367 |
+
|
| 368 |
+
IPA-Transformer block The IPA-Transformer block is used to update node information, and we will describe its details here. An IPA-Transformer block incorporates an Invariant Point Attention (IPA) as presented in AlphaFold2 (Jumper et al., 2021) without any alterations, along with a standard Transformer layer (Vaswani et al., 2023). IPA was first introduced by Anand & Achim as the central model architecture of the protein structure diffusion model. The Transformer is appended to IPA to enhance the representation ability proposed by Framediff (Yim et al., 2023).
|
| 369 |
+
|
| 370 |
+
The node update equations are as follows:
|
| 371 |
+
|
| 372 |
+
$$
|
| 373 |
+
s _ {\ell} = \text {L a y e r N o r m} \left(\operatorname {I P A} \left(s _ {\ell}, z _ {\ell}, T _ {\ell}\right) + s _ {\ell}\right)
|
| 374 |
+
$$
|
| 375 |
+
|
| 376 |
+
$$
|
| 377 |
+
s _ {\text {i n}} = \operatorname {c o n c a t} \left(s _ {\ell}, \operatorname {L i n e a r} \left(s _ {0}\right)\right)
|
| 378 |
+
$$
|
| 379 |
+
|
| 380 |
+
$$
|
| 381 |
+
s _ {\ell} = \operatorname {L i n e a r} \left(\operatorname {T r a n s f o r m e r} \left(s _ {\mathrm {i n}}\right)\right) + s _ {\ell}
|
| 382 |
+
$$
|
| 383 |
+
|
| 384 |
+
$$
|
| 385 |
+
s _ {\ell + 1} = \operatorname {M L P} (s _ {\ell})
|
| 386 |
+
$$
|
| 387 |
+
|
| 388 |
+
Backbone update Our frame updates follow the BackboneUpdate algorithm in AF2(Algorithm 23). We write the algorithm here with our notation,
|
| 389 |
+
|
| 390 |
+
$$
|
| 391 |
+
b _ {i}, c _ {i}, d _ {i}, \vec {x} _ {i} ^ {\text {u p d a t e}} = \operatorname {L i n e a r} \left(s _ {\ell + 1}\right)
|
| 392 |
+
$$
|
| 393 |
+
|
| 394 |
+
$$
|
| 395 |
+
(a _ {i}, b _ {i}, c _ {i}, d _ {i}) = (1, b _ {i}, c _ {i}, d _ {i}) / \sqrt {1 + b _ {i} ^ {2} + c _ {i} ^ {2} + d _ {i} ^ {2}}
|
| 396 |
+
$$
|
| 397 |
+
|
| 398 |
+
$$
|
| 399 |
+
R _ {i} ^ {\mathrm {u p d a t e}} = \left( \begin{array}{c c c} a _ {i} ^ {2} + b _ {i} ^ {2} - c _ {i} ^ {2} - d _ {i} ^ {2} & 2 b _ {i} c _ {i} - 2 a _ {i} d _ {i} & 2 b _ {i} d _ {i} + 2 a _ {i} c _ {i} \\ 2 b _ {i} c _ {i} + 2 a _ {i} d _ {i} & a _ {i} ^ {2} - b _ {i} ^ {2} + c _ {i} ^ {2} - d _ {i} ^ {2} & 2 c _ {i} d _ {i} - 2 a _ {i} b _ {i} \\ 2 b _ {i} d _ {i} - 2 a _ {i} c _ {i} & 2 c _ {i} d _ {i} + 2 a _ {i} b _ {i} & a _ {i} ^ {2} - b _ {i} ^ {2} - c _ {i} ^ {2} + d _ {i} ^ {2} \end{array} \right)
|
| 400 |
+
$$
|
| 401 |
+
|
| 402 |
+
$$
|
| 403 |
+
\mathbf {T} _ {i} ^ {\text {u p d a t e}} = \left(R _ {i} ^ {\text {u p d a t e}}, \vec {x} _ {i} ^ {\text {u p d a t e}}\right)
|
| 404 |
+
$$
|
| 405 |
+
|
| 406 |
+
$$
|
| 407 |
+
\mathbf {T} _ {\ell + 1} = \mathbf {T} _ {\ell} \cdot \mathbf {T} _ {i} ^ {\mathrm {u p d a t e}}
|
| 408 |
+
$$
|
| 409 |
+
|
| 410 |
+
As shown in the equation, an unnormalized quaternion consists of $b_{i}, c_{i}, d_{i} \in \mathbb{R}^{3}$ and a translation vector $\vec{x}_{i}^{\mathrm{update}}$ is predicted from $s_{\ell + 1}$ . We iterative update each residue's frame by applying the translation $\vec{x}_{i}^{\mathrm{update}}$ and rotation matrix $R_{i}^{\mathrm{update}}$ to $\mathbf{T}_{\ell}$ .
|
| 411 |
+
|
| 412 |
+
Graph triangle block The graph triangle block is designed for the update of edge information. we further explain the implementation details of the graph triangle block mentioned in Section 3.1 and Figure 2. We develop the StructureBiased-GraphTriangleAttention layer(Algorithm 2,Algorithm 3) as the core network for local attention calculation with two triangle multiplication layers(AlphaFold2 Algorithm 11) for global update of edge feature.
|
| 413 |
+
|
| 414 |
+
$$
|
| 415 |
+
z _ {i j} = \text {T r i a n g l e M u l t i p l i c a t i o n O u t g o i n g} \left(z _ {i j}\right)
|
| 416 |
+
$$
|
| 417 |
+
|
| 418 |
+
$$
|
| 419 |
+
z _ {i j} = \text {T r i a n g l e M u l t i p l i c a t i o n I n c o m i n g} \left(z _ {i j}\right)
|
| 420 |
+
$$
|
| 421 |
+
|
| 422 |
+
$$
|
| 423 |
+
z _ {i k} = \text {S t r u c t u r e B i a s e d G r a p h T r i a n g l e A t t e n t i o n S t a r t i n g N o d e} \left(z _ {i j}, s _ {i}, \bar {x} _ {i} ^ {\mathrm {c a}}\right) \tag {2}
|
| 424 |
+
$$
|
| 425 |
+
|
| 426 |
+
$$
|
| 427 |
+
z _ {i j} \leftarrow \operatorname {S c a t t e r U p d a t e} \left(z _ {i k}\right)
|
| 428 |
+
$$
|
| 429 |
+
|
| 430 |
+
$$
|
| 431 |
+
\vec {z} _ {i k} = \text {S t r u c t u r e B i a s e d G r a p h T r i a n g l e A t t e n t i o n E n d i n g N o d e} \left(z _ {i j}, s _ {i}, \vec {x} _ {i} ^ {\mathrm {c a}}\right) \tag {3}
|
| 432 |
+
$$
|
| 433 |
+
|
| 434 |
+
$$
|
| 435 |
+
z _ {i j} \leftarrow \operatorname {S c a t t e r U p d a t e} \left(z _ {i k}\right)
|
| 436 |
+
$$
|
| 437 |
+
|
| 438 |
+
Algorithm 2 Structure biased graph triangle attention around starting node
|
| 439 |
+
0: def StructureBiasedGraphTriangleAttentionStartingNode (\{zij\}, \{si\}, $\{\vec{x}_i^{ca}\}$ , $c_s = 256$ , $c_z = 128$ , $c = 128$ , $N_{\mathrm{head}} = 4$ , $K_{\mathrm{neighbour}} = 32$ , $c\_s_{gate} = 16$ , $c_{\mathrm{RBF}} = 64$ ):
|
| 440 |
+
0: # Compute residue's ca distance
|
| 441 |
+
0: $D_{ij} = \left\| \vec{x}_i^{ca} - \vec{x}_j^{ca} \right\|^2$
|
| 442 |
+
0: # Define the neighborhood residues based on $C_\alpha$ distance
|
| 443 |
+
0: Neighbors = topK(Dij, Kneighbor)
|
| 444 |
+
0: # Collate edges for the $K$ closest residues to residue i
|
| 445 |
+
0: $z_{ik} = \text{Collate}(z_{ij}, \text{Neighbors}_i)$
|
| 446 |
+
0: # Input projections
|
| 447 |
+
0: $z_{ik} \gets \text{LayerNorm}(z_{ik})$
|
| 448 |
+
0: $q_{ik}^h, k_{ik}^h, v_{ik}^h = \text{LinearNoBias}(z_{ik}) \forall h \in \{1, \dots, N_{\mathrm{head}}\}, q_{ik}^h, k_{ik}^h, v_{ik}^h \in \mathbb{R}^c, k \in \text{Neighbors}_i$
|
| 449 |
+
0: # Compute structure bias from inter ca distance
|
| 450 |
+
0: $b_{ij}^h = RBF(D_{ij}, c_{\mathrm{RBF}})$
|
| 451 |
+
0: $b_{ij}^h = \text{LinearNoBias}(b_{ij}) b_{ij}^h \in \mathbb{R}^c$
|
| 452 |
+
0: # Compute gating of bias from starting and ending node
|
| 453 |
+
0: $g_{ij}^h = \sigma(\text{Linear}(s_i \otimes s_j) g_{ij}^h \in \mathbb{R}^c$
|
| 454 |
+
0: $b_{ij}^h = g_{ij}^h \circ b_{ij}^h$
|
| 455 |
+
0: # Compute gating of attention
|
| 456 |
+
0: $g_{ik}^h = \text{sigmoid(Linear}(z_{ik}))$
|
| 457 |
+
0: # Attention
|
| 458 |
+
0: $a_{ikq}^h = \text{softmax}_q\left(\frac{1}{\sqrt{c}} q_{ik}^h \top k_{iq}^h + b_{kq}^h\right) k, q \in \text{Neighbors}_i$
|
| 459 |
+
0: $o_{ik}^h = g_{ik}^h \odot \sum_q a_{ikq}^h v_{iq}^h$
|
| 460 |
+
0: # Output projection
|
| 461 |
+
0: $z_{ik} = \text{Linear(Concat}(o_{ik}^h)) z_{ik} \in \mathbb{R}^{c_z}$
|
| 462 |
+
0: return $\{z_{ik}\}$
|
| 463 |
+
0: =0
|
| 464 |
+
|
| 465 |
+
In the graph triangle block, the neighbor $k$ residues of each residue are selected based on the inter $C_{\alpha}$ distance of current $T_{\ell}$ , which means the attention graph is dynamically constructed in the network. By leveraging the characteristics of the diffusion model and dynamic refinement of the graph, triangle graph attention can avoid inaccurate graph construction in the early step, where the input structure is very noisy. At the same time, the efficiency of graph triangle attention calculation is maintained. When calculating the attention between $k_{ik}$ and $q_{iq}$ , the structure bias is computed from 64 bins of radial basis function (RBF) equally spaced from $0\AA$ to $32\AA$ for distances between Ca for $k$ and $q$ residue.
|
| 466 |
+
|
| 467 |
+
Score prediction and reverse sampling schedule We describe how the density score of rotation and translation of frames is calculated and how the SDE structure denoiser is applied to the sampling from noise mentioned in Figure 2 and Algorithm 1.
|
| 468 |
+
|
| 469 |
+
At each timestep between 0 and 1, after $L$ layers we take the final frame $T_{\ell}$ as the predicted clean structure of $t = 0$
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
T _ {\ell} = \hat {T} ^ {(0)} = (\hat {x} ^ {(0)}, \hat {r} ^ {(0)})
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
With the prediction $\hat{x}^{(0)},\hat{r}^{(0)}$ and the input frames $T^{(t)} = (x^{(t)},r^{(t)})$ of current timestep, $\mathbb{R}^3$ and SO(3) score of residue n
|
| 476 |
+
|
| 477 |
+
is computed by
|
| 478 |
+
|
| 479 |
+
$$
|
| 480 |
+
s _ {\theta} ^ {x} (t, T ^ {(t)}) _ {n} = \nabla \log p _ {t | 0} (x _ {n} ^ {(t)} | \hat {x} _ {n} ^ {(0)}) = (1 - e ^ {- t}) ^ {- 1} \left(e ^ {- t / 2} \hat {x} _ {n} ^ {(0)} - x _ {n} ^ {(t)}\right)
|
| 481 |
+
$$
|
| 482 |
+
|
| 483 |
+
$$
|
| 484 |
+
s _ {\theta} ^ {r} (t, T ^ {(t)}) _ {n} = \nabla \log p _ {t _ {0}} \left(r _ {n} ^ {(t)} | \hat {r} _ {n} ^ {(0)}\right) = \frac {r _ {n} ^ {(t)}}{\omega (t)} \log \left(r _ {n} ^ {(0, t)}\right) \frac {\partial \omega f (\omega (t) , t)}{f (\omega (t) , t)}
|
| 485 |
+
$$
|
| 486 |
+
|
| 487 |
+
To define the formulation of the reverse process, we first set up the forward scheduling of by
|
| 488 |
+
|
| 489 |
+
$$
|
| 490 |
+
\mathrm {d} X ^ {(t)} = f _ {x} (t) X ^ {(t)} \mathrm {d} t + g _ {x} (t) \mathrm {d} B _ {\mathbb {R} ^ {3}} ^ {(t)}
|
| 491 |
+
$$
|
| 492 |
+
|
| 493 |
+
This equation describes the forward process of translation, where $f_{x}(t) = -\frac{1}{2}\beta(s)$ is drift coefficient and $g_{x}(t) = \sqrt{\beta(t)}$ is diffusion coefficient. We choose linear schedule with introduced by Song et al. and Ho et al. $\beta_{\mathrm{min}} = 0.1$ , $\beta_{\mathrm{max}} = 20$ as the SDE scheduler of translation.
|
| 494 |
+
|
| 495 |
+
$$
|
| 496 |
+
\beta (s) = \beta_ {\min } + t \left(\beta_ {\max } - \beta_ {\min }\right)
|
| 497 |
+
$$
|
| 498 |
+
|
| 499 |
+
By defining this linear schedule, with $G_{x}(s) = \int_{0}^{s}g_{x}(t)^{2}dt = t\cdot \beta_{\min} + \frac{1}{2} t^{2}(\beta_{\max} - \beta_{\min})$ , the distribution of translation at timestep $t$ can be written as
|
| 500 |
+
|
| 501 |
+
$$
|
| 502 |
+
p _ {t | 0} \left(X ^ {(t)} \mid X ^ {(0)}\right) = \mathcal {N} \left(X ^ {(t)}; e ^ {- G _ {x} (t)} X ^ {(0)}, 1 - e ^ {- G _ {x} (t)} \mathbf {I d} _ {3}\right).
|
| 503 |
+
$$
|
| 504 |
+
|
| 505 |
+
The forward diffusion process of rotation can be written similarly but without the drift coefficient term since it is in SO(3) space
|
| 506 |
+
|
| 507 |
+
$$
|
| 508 |
+
\mathrm {d} R ^ {(t)} = g _ {r} (t) \mathrm {d} B _ {S O (3)} ^ {(t)}
|
| 509 |
+
$$
|
| 510 |
+
|
| 511 |
+
By introduce a time scaling factor $\sigma_r^2(s) = \int_0^s g_r(t)^2 dt$ and $g_r(t) = \sqrt{\frac{d}{dt}}\sigma^2(t)$ , the probability distribution of rotation can be described as
|
| 512 |
+
|
| 513 |
+
$$
|
| 514 |
+
p _ {t | 0} (R ^ {(t)} | R ^ {(0)}) = \mathrm {I G S O} _ {3} (R ^ {(t)}; R ^ {(0)}, \sigma_ {r} ^ {2} (t) ^ {2})
|
| 515 |
+
$$
|
| 516 |
+
|
| 517 |
+
where
|
| 518 |
+
|
| 519 |
+
$$
|
| 520 |
+
\mathrm {I G S O} _ {3} (r ^ {(t)}; r ^ {(0)}, t) = f \left(\omega \left(r ^ {(0) T} r ^ {(t)}\right), t\right)
|
| 521 |
+
$$
|
| 522 |
+
|
| 523 |
+
$$
|
| 524 |
+
f (\omega , t) = \sum_ {\ell \in \mathbb {N}} (2 \ell + 1) e ^ {- \ell (\ell + 1) t / 2} \frac {\sin ((\ell + 1 / 2) \omega)}{\sin (\omega / 2)}
|
| 525 |
+
$$
|
| 526 |
+
|
| 527 |
+
$\omega(r)$ is the rotation angle in radians for any $r \in \mathrm{SO}(3)$ . By defining $\sigma_r(t) = \log (t \cdot \exp \{\sigma_{\mathrm{max}}\} + (1 - t) \exp \{\sigma_{\mathrm{min}}\})$ , we are able to control the rotation diffusion schedule through $g_r(t)$ with $\sigma_{\mathrm{min}}$ and $\sigma_{\mathrm{min}}$ . We take the same setting $\sigma_{\mathrm{min}}^2 = 0.01$ and $\sigma_{\mathrm{max}}^2 = 2.25$ as described in FrameDiff.
|
| 528 |
+
|
| 529 |
+
With the forward process defined above, the SDE sampling procedure of translation and rotation can be described as
|
| 530 |
+
|
| 531 |
+
$$
|
| 532 |
+
x ^ {(t)} = \left[ g _ {x} (t) ^ {2} s _ {\theta} ^ {x} (t, T ^ {(t)}) - f _ {x} (t) x ^ {(t)} \right] \mathrm {d} t + g _ {x} (t) \mathrm {B} _ {\mathbb {R} ^ {3}} ^ {(t)}
|
| 533 |
+
$$
|
| 534 |
+
|
| 535 |
+
$$
|
| 536 |
+
r ^ {(t)} = g _ {r} (t) ^ {2} s _ {\theta} ^ {r} (t, T ^ {(t)}) \mathrm {d} t + g _ {r} (t) \mathrm {B} _ {\mathrm {S O} (3)} ^ {(t)}
|
| 537 |
+
$$
|
| 538 |
+
|
| 539 |
+
Noise scaling To improve the backbone designability while keeping the diversity, we sample various noise levels in Table 3, noise level is applied to the Brownian motion of $\mathbb{R}^3$ and SO(3) as
|
| 540 |
+
|
| 541 |
+
$$
|
| 542 |
+
x ^ {(t)} = [ g _ {x} (t) ^ {2} s _ {\theta} ^ {x} (t, T ^ {(t)}) - f _ {x} (t) x ^ {(t)} ] \mathrm {d} t + \xi (g _ {x} (t) \mathrm {B} _ {\mathbb {R} ^ {3}} ^ {(t)})
|
| 543 |
+
$$
|
| 544 |
+
|
| 545 |
+
$$
|
| 546 |
+
r ^ {(t)} = g _ {r} (t) ^ {2} s _ {\theta} ^ {r} (t, T ^ {(t)}) \mathrm {d} t + \xi (g _ {r} (t) \mathrm {B} _ {\mathrm {S O} (3)} ^ {(t)})
|
| 547 |
+
$$
|
| 548 |
+
|
| 549 |
+
where noise level is noted as $\xi \in [0,1]$ in the Table 3 and equation above.
|
| 550 |
+
|
| 551 |
+
Algorithm 3 Structure biased graph triangle attention around ending node
|
| 552 |
+
0: def StructureBiasedGraphTriangleAttentionEndingNode (\{zij\}, \{si\}, $\{\vec{x}_i^{\mathrm{ca}}\}$ , $c_{s} = 256, c_{z} = 128, c = 128, N_{\mathrm{head}} = 4$ , $K_{\mathrm{neighbour}} = 32, c_{-s_{\mathrm{gate}}} = 16, c_{\mathrm{RBF}} = 64$ ):
|
| 553 |
+
0: # Compute residue's ca distance
|
| 554 |
+
0: $D_{ij} = \left\| \vec{x}_i^{\mathrm{ca}} - \vec{x}_j^{\mathrm{ca}} \right\|^2$
|
| 555 |
+
0: # Define the neighborhood residues based on $C_{\alpha}$ distance
|
| 556 |
+
0: Neighbors = topK(Dij, Kneighbor)
|
| 557 |
+
0: # Collate edges for the $K$ closest residues to residue i
|
| 558 |
+
0: $z_{ik} = \text{Collate}(z_{ij}, \text{Neighbors})$
|
| 559 |
+
0: # Input projections
|
| 560 |
+
0: $z_{ik} \gets \text{LayerNorm}(z_{ik})$
|
| 561 |
+
0: $q_{ik}^{h}, k_{ik}^{h}, v_{ik}^{h} = \text{LinearNoBias}(z_{ik}) \forall h \in \{1, \dots, N_{\mathrm{head}}\}, q_{ik}^{h}, k_{ik}^{h}, v_{ik}^{h} \in \mathbb{R}^{c}, k \in \text{Neighbors}_{i}$
|
| 562 |
+
0: # Compute structure bias from inter ca distance
|
| 563 |
+
0: $b_{ij}^{h} = RBF(D_{ij}, c_{\mathrm{RBF}})$
|
| 564 |
+
0: $b_{ij}^{h} = \text{LinearNoBias}(b_{ij}) b_{ij}^{h} \in \mathbb{R}^{c}$
|
| 565 |
+
0: # Compute gating of bias from starting and ending node
|
| 566 |
+
0: $g_{ij}^{h} = \sigma(\text{Linear}(s_i \otimes s_j) g_{ij}^{h} \in \mathbb{R}^{c}$
|
| 567 |
+
0: $b_{ij}^{h} = g_{ij}^{h} \circ b_{ij}^{h}$
|
| 568 |
+
0: # Compute gating of attention
|
| 569 |
+
0: $g_{ik}^{h} = \text{sigmoid(Linear}(z_{ik}))$
|
| 570 |
+
0: # Attention
|
| 571 |
+
0: $a_{ikq}^{h} = \text{softmax}_q\left(\frac{1}{\sqrt{c}} q_{ik}^{h} \top k_{qk}^{h} + b_{qi}^{h}\right) k, q \in \text{Neighbors}_{i}$
|
| 572 |
+
0: $o_{ik}^{h} = g_{ik}^{h} \odot \sum_q a_{ikq}^{h} v_{qk}^{h}$
|
| 573 |
+
0: # Output projection
|
| 574 |
+
0: $z_{ik} = \text{Linear(Concat}(o_{ik}^{h})) z_{ik} \in \mathbb{R}^{c_z}$
|
| 575 |
+
0: return $\{z_{ik}\}$
|
| 576 |
+
0: =0
|
| 577 |
+
|
| 578 |
+
Table 6: Model Training Parameters
|
| 579 |
+
|
| 580 |
+
<table><tr><td colspan="2">Model Parameters</td></tr><tr><td>Dimension of sequence track Cs</td><td>256</td></tr><tr><td>Dimension of edge track Cz</td><td>128</td></tr><tr><td>K nearest neighbour</td><td>32</td></tr><tr><td>Heads of graph triangle attention</td><td>4</td></tr><tr><td>Hidden dimension of triangle attention head</td><td>128</td></tr><tr><td>Dimension of structure bias feature</td><td>64</td></tr><tr><td>Dimension of sequence track gate</td><td>16</td></tr><tr><td colspan="2">Training Setting</td></tr><tr><td>Max protein length Nres</td><td>512</td></tr><tr><td>Max batch size</td><td>16</td></tr><tr><td>Max squared residues</td><td>3 × 10^4</td></tr><tr><td>Training steps</td><td>2 × 10^6</td></tr><tr><td>Training time</td><td>≈ 20 days</td></tr><tr><td>Device</td><td>2× A40</td></tr><tr><td>Optimizer</td><td>Adam(β1=0.9, β2=0.999) (Kingma & Ba, 2017)</td></tr><tr><td>Learning rate</td><td>0.0001</td></tr></table>
|
| 581 |
+
|
| 582 |
+
# B. In vitro experiment protocol
|
| 583 |
+
|
| 584 |
+
Protein purification and expression Synthetic genes encoding designed protein were purchased from Universe Gene Technology. These sequences were cloned into the pET28a vector, included N-terminal or C-terminal histidine tags and an HRV 3C protease cleavage site. These plasmids were transformed into BL21 (DE3) E. coli competent cells. All transformants were cultured into $50~\mathrm{ml}$ of LB medium with $50~\mathrm{mg / ml}$ kanamycin. Protein expression was induced with 1 mM isopropyl 1-thio--d-galactopyranoside at $37^{\circ}\mathrm{C}$ overnight or at $20^{\circ}\mathrm{C}$ overnight after initial growth for 6 to $8\mathrm{h}$ at $37^{\circ}\mathrm{C}$ . The cells were harvested by centrifugation and lysed by sonication after resuspension of the cells in lysis buffer (25 mM Tris pH 7.0, 150 mM NaCl). The cell lysate was cleared by centrifugation $(12,000\times \mathrm{rpm})$ . The supernatant was purified by 1 ml Ni2+ immobilized metal affinity chromatography with Ni-NTA Superflow resin (Qiagen). Resins with bound cell lysate were washed five times with $5\mathrm{mL}$ of washing buffer (comprising lysis buffer and $30~\mathrm{mM}$ imidazole) and eluted with $6\mathrm{mL}$ of elution buffer (comprising lysis buffer and $300~\mathrm{mM}$ imidazole). Both eluates were analyzed using $15\%$ SDS-PAGE gel to assess purity. The histidine tags were cleaved using histidine-tagged HRV 3C protease during dialysis against lysis buffer overnight. A second IMAC purification was performed for HRV 3C cleaved samples to capture uncleaved protein and HRV 3C protease. Designs were finally purified using Superdex 200 Increase 10/300GL (GE Healthcare) with lysis buffer.
|
| 585 |
+
|
| 586 |
+
Circular dichroism experiments Circular dichroism spectra were recorded on a Chirascan V100 circular dichroism spectrometer (Applied Photophysics) using protein concentrations ranging from 0.6 to $0.9\mathrm{mg / ml}$ . Thermal melt analyses were conducted over a temperature range of $25^{\circ}\mathrm{C}$ to $95^{\circ}\mathrm{C}$ , measuring CD at $222\mathrm{nm}$ . Wavelength scans (190 to $260\mathrm{nm}$ ) were recorded at both $25^{\circ}\mathrm{C}$ and $95^{\circ}\mathrm{C}$ . All reported measurements were obtained within the linear range of the instrument.
|
| 587 |
+
|
| 588 |
+
For crystallization, the plasmids were transformed into BL21 (DE3) E. coli competent cells. The transformants were cultured in $10\mathrm{ml}$ of LB medium with $50~\mathrm{mg / ml}$ kanamycin at $37^{\circ}C$ overnight. The cultures were transferred to 1L of LB medium with $50~\mathrm{mg / ml}$ kanamycin and incubated at $37^{\circ}C.$ Protein expression was induced with $1\mathrm{mM}$ IPTG at $37^{\circ}C$ overnight. Protein purification steps were carried out as described above.
|
| 589 |
+
|
| 590 |
+
Crystallization, data collection, and structure determination The crystals were grown using the hanging drop method at room temperature $(18^{\circ}\mathrm{C})$ . The drops consisted of $1\mathrm{L}$ of $40\mathrm{mg / ml}$ protein and $1\mathrm{L}$ of precipitant solution $(100\mathrm{mM}$ Tris pH 8.5, $200\mathrm{mMNaCl}$ and 30For diffraction, the crystals were transferred into a solution containing $20\%$ glycerol as a cryoprotectant. Subsequently, the crystals were loaded onto the X-ray diffractometer (Rigaku, XtaLAB Synergy Customer). The diffraction data was collected at $100\mathrm{K}$ and processed with the reduction program CrysAlisPro. The structures were solved by molecular replacement using Phaser in PHENIX8. The structures were manually refined with Coot9 and PHENIX10.
|
| 591 |
+
|
| 592 |
+

|
| 593 |
+
Figure 5: The alignment of experimentally solved crystal structure and diffusion model of 300aa_3, crystal backbone(grey) is overlaid with diffusion backbonecolors) with a global $C_\alpha$ -RMSD 0.91 Å. The setting of data collection and structure determination is provided in Table 7
|
| 594 |
+
|
| 595 |
+
Table 7: Data collection and refinement statistics.
|
| 596 |
+
|
| 597 |
+
<table><tr><td>Parameter</td><td>Value</td></tr><tr><td>Name</td><td>300aa_3</td></tr><tr><td>Wavelength</td><td>1.541</td></tr><tr><td>Resolution range</td><td>29.13 - 1.8 (1.864 - 1.8)</td></tr><tr><td>Space group</td><td>P 1 21 1</td></tr><tr><td>Unit cell</td><td>46.4585 76.1478 83.3196 90 91.9037 90</td></tr><tr><td>Total reflections</td><td>247022 (15772)</td></tr><tr><td>Unique reflections</td><td>53811 (4931)</td></tr><tr><td>Multiplicity</td><td>4.6 (2.9)</td></tr><tr><td>Completeness (%)</td><td>97.87 (91.26)</td></tr><tr><td>Mean I/sigma(I)</td><td>24.16 (3.29)</td></tr><tr><td>Wilson B-factor</td><td>16.89</td></tr><tr><td>R-merge</td><td>0.06467 (0.49)</td></tr><tr><td>R-meas</td><td>0.07301 (0.5975)</td></tr><tr><td>R-pim</td><td>0.03309 (0.338)</td></tr><tr><td>CC1/2</td><td>0.975 (0.488)</td></tr><tr><td>CC*</td><td>0.994 (0.81)</td></tr><tr><td>Reflections used in refinement</td><td>52709 (4928)</td></tr><tr><td>Reflections used for R-free</td><td>1368 (129)</td></tr><tr><td>R-work</td><td>0.1827 (0.2144)</td></tr><tr><td>R-free</td><td>0.2163 (0.2486)</td></tr><tr><td>CC(work)</td><td>0.961 (0.892)</td></tr><tr><td>CC(free)</td><td>0.936 (0.880)</td></tr><tr><td>Number of non-hydrogen atoms</td><td>5174</td></tr><tr><td></td><td>macromolecules: 4418</td></tr><tr><td></td><td>ligands: 0</td></tr><tr><td></td><td>solvent: 756</td></tr><tr><td>Protein residues</td><td>600</td></tr><tr><td>RMS(bonds)</td><td>0.007</td></tr><tr><td>RMS(angles)</td><td>0.90</td></tr><tr><td>Ramachandran favored (%)</td><td>99.33</td></tr><tr><td>Ramachandran allowed (%)</td><td>0.50</td></tr><tr><td>Ramachandran outliers (%)</td><td>0.17</td></tr><tr><td>Rotamer outliers (%)</td><td>0.64</td></tr><tr><td>Clashscore</td><td>7.73</td></tr><tr><td>Average B-factor</td><td>23.04</td></tr><tr><td></td><td>macromolecules: 21.76</td></tr><tr><td></td><td>solvent: 30.55</td></tr></table>
|
| 598 |
+
|
| 599 |
+

|
| 600 |
+
Oligomer Type
|
| 601 |
+
Figure 6: Visualization of oligomer samples across dimer, trimer, and tetramer. Each chain is fixed at 200 residues with different colors, as shown in the figure.
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5d87f6e37e6ae720af088d0b22b92240b277b3a41a97c1c55e71853891749a3a
|
| 3 |
+
size 1068208
|
2024/Proteus_ Exploring Protein Structure Generation for Enhanced Designability and Efficiency/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/b7523aea-9ef6-44d9-931e-c69b0574cf24_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:925cb4221dd61985c44f0539bbb2f0f9773c19aa2f81bab1d400dfef5c55351c
|
| 3 |
+
size 2726598
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bb780bd99d2708067c6d0dcd9f60f8cd4a3442d35235d7ea3f69f060ec77c4e5
|
| 3 |
+
size 2020422
|
2024/ProtoGate_ Prototype-based Neural Networks with Global-to-local Feature Selection for Tabular Biomedical Data/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Prototypical Transformer As Unified Motion Learners/5d23a4fb-bba2-498c-9689-e21c53fc53b6_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:32e82aa4386c8e25b9feb164f92c42d7a05c4832be2a466b662d13836de64763
|
| 3 |
+
size 3993439
|
2024/Prototypical Transformer As Unified Motion Learners/full.md
ADDED
|
@@ -0,0 +1,632 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Prototypical Transformer as Unified Motion Learners
|
| 2 |
+
|
| 3 |
+
Cheng Han $^{*12}$ Yawen Lu $^{*3}$ Guohao Sun $^{2}$ James C. Liang $^{2}$ Zhiwen Cao $^{3}$ Qifan Wang $^{4}$ Qiang Guan $^{5}$ Sohail A. Dianat $^{2}$ Raghuveer M. Rao $^{6}$ Tong Geng $^{7}$ Zhiqiang Tao $^{2}$ Dongfang Liu $^{2}$
|
| 4 |
+
|
| 5 |
+
# Abstract
|
| 6 |
+
|
| 7 |
+
In this work, we introduce the Prototypical Transformer (ProtoFormer), a general and unified framework that approaches various motion tasks from a prototype perspective. ProtoFormer seamlessly integrates prototype learning with Transformer by thoughtfully considering motion dynamics, introducing two innovative designs. First, Cross-Attention Prototyping discovers prototypes based on signature motion patterns, providing transparency in understanding motion scenes. Second, Latent Synchronization guides feature representation learning via prototypes, effectively mitigating the problem of motion uncertainty. Empirical results demonstrate that our approach achieves competitive performance on popular motion tasks such as optical flow and scene depth. Furthermore, it exhibits generality across various downstream tasks, including object tracking and video stabilization. Our code is available here.
|
| 8 |
+
|
| 9 |
+
# 1. Introduction
|
| 10 |
+
|
| 11 |
+
"All is flux, nothing is stationary."
|
| 12 |
+
|
| 13 |
+
-Heraclitus (Plato, 402 BC)
|
| 14 |
+
|
| 15 |
+
The aphorism attributed to Heraclitus underscores the foundation of physics in the natural world. The quest to understand motion holds the potential to unveil the intricate secrets of intelligence (Hawkins & Blakeslee, 2004), shedding light on the systematic construction of artificial entities. However, the proliferation of excessively granular motion tasks has catalyzed a fervor for specialized models in the realm of deep learning, standing in stark contrast to the enduring scientific tradition — a generic solution to elegantly
|
| 16 |
+
|
| 17 |
+
*Equal contribution 1University of Missouri - Kansas City 2Rochester Institute of Technology 3Purdue University 4META AI 5Kent State University 6DEVCOM Army Research Laboratory 7University of Rochester. Correspondence to: Zhiqiang Tao <zxtics@rit.edu>, Dongfang Liu <dongfang.liu@rit.edu>.
|
| 18 |
+
|
| 19 |
+
Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
|
| 20 |
+
|
| 21 |
+

|
| 22 |
+
Figure 1: ProtoFormer as a unified framework considers motion as different levels of dynamics granularity (e.g., instance-driven flow, pixel-anchored depth, etc). are prototypes.
|
| 23 |
+
|
| 24 |
+

|
| 25 |
+
|
| 26 |
+
describe physical phenomena in the universe. The following question naturally arises: ① Can we discover a unified model that serves as a comprehensive motion learner?
|
| 27 |
+
|
| 28 |
+
Motion learning tasks essentially encompass pixel-level dynamics and correspondence (e.g., optical flow and depth scene estimation). A prevalent challenge in these tasks is the presence of photometric and geometric inconsistencies (e.g., shadow and occlusion), which introduce significant uncertainty during the matching process (Xiong et al., 2021; Zhao et al., 2020). Consequently, the accuracy of pixel-wise feature matching is compromised, detrimentally impacting the learning of the underlying motion representation. To address this challenge, a promising solution lies in prototype learning (Smith & Minda, 2002; Jiang et al., 2012), where motion measurements are categorized into discrete exemplars. In each exemplar, a prototype function as a central archetype, capturing the essential attributes of its associated motion patterns observed in the data. The clustering of similar patterns around prototypes can effectively minimize the impact of noise and outlier pixels in feature matching, thereby significantly mitigating the issue of uncertainty. In this context, we can approach question ① by exploring: ② How can we design a model that incorporates the principles of prototype learning in motion tasks?
|
| 29 |
+
|
| 30 |
+
Recently, the Transformer architecture has attained ubiquitous adoption, enjoying unambiguous acclaim in both the domains of vision and language (Zhu et al., 2021; Yang et al., 2023; Kim et al., 2021). Its accomplishments are underpinned by the attention mechanism, endowing models with the capability to selectively attend to salient entities within input data. The capacity to generate context-aware feature representations represents a substantial enhancement of the model's effectiveness, enabling it to apply as a general solution to diverse vision tasks. Inspired by its encouraging
|
| 31 |
+
|
| 32 |
+
success, our inquiry naturally delves into a more specific dimension: ③ How to incorporate the prototype learning capacity into the architecture of Transformer?
|
| 33 |
+
|
| 34 |
+
To this demand, we employ Prototypical TransFormer (ProtoFormer) as a unified solution on various motion tasks. Specifically, ProtoFormer incorporates prototype learning with Transformer. The method begins by tokenizing images features into patches, where the features are initialized into distinct prototypes. These prototypes are then recursively updated via Cross-Attention Prototyping (§3.2.1) to capture representative motion characteristics via clustering. After assignments and updates, Latent Synchronization (§3.2.2) builds up prototype-feature association, aiming at denoising and mitigating motion ambiguity. The refined features are later fed into the decoder for task-specific predictions.
|
| 35 |
+
|
| 36 |
+
Taking the innovations together, ProtoFormer exhibits several compelling attributes. ① Architectural elegance: Leveraging a prototype-guided Transformer architecture, ProtoFormer can handle heterogeneous motion tasks at different levels of dynamics granularity within the unified fashion (see Fig. 1). ② Predictive robustness: Prototype learning can inherently diminish the noisy outliers through its density criterion (§2). Anchored by the recursively refined prototypes, feature learning can be further guided towards more robust representations (§3.2.2). Consequently, it offers a viable solution to the challenge of motion ambiguity (see Fig. 3 and Fig. 4). ③ Systemic explainability: The density-based nature from recursive prototyping offers intuitive visual demonstration of motion prototypes (see Fig. 5 and Fig. S1 in Appendix), enabling direct interpretation of various dynamic patterns sketched by the system.
|
| 37 |
+
|
| 38 |
+
We conduct a set of comprehensive experiments to evaluate the effectiveness of our approach. In §4.1, ProtoFormer presents compelling results on optical flow. For example, our approach distinctly outperforms CRAFT, achieving 0.48 and 0.69 on the clean and final pass of Sintel, respectively. In §4.2, we further show the superior performance on depth scene estimation (e.g., $18.6\%$ improvement in Sintel compared to AdaBins). Also, visual evidence in §4.3 demonstrates the systemic explainability, which displays direct prototype-pixel correlations. Results on various downstream tasks including object tracking (§S5) and video stabilization (§S6) are detailed in the Appendix. We hope our research could provide foundational insights into related fields.
|
| 39 |
+
|
| 40 |
+
# 2. Related Work
|
| 41 |
+
|
| 42 |
+
Motion Task. Motion tasks involve intricate processes, encompassing the identification, modeling, and prediction of motion patterns in objects and scenes. These tasks are foundational to diverse computer vision applications, including vehicle and pedestrian motion detection (Shen et al., 2023; Khalifa et al., 2020; Marathe et al., 2021; Liang et al.,
|
| 43 |
+
|
| 44 |
+
2022b; Xu et al., 2022a; Cui et al., 2024), abnormal activity detection (Li et al., 2021b; Tudor Ionescu et al., 2017; Zhou et al., 2019), and video compression (Gao et al., 2022; Hu et al., 2021; Lu et al., 2019). In the domain of motion tasks, optical flow (Ranjan & Black, 2017; Sun et al., 2018; Teed & Deng, 2020; Huang et al., 2022; Shi et al., 2023; Lu et al., 2024) and depth estimation (Bhat et al., 2021; Patil et al., 2022), stand out as particularly representative, significantly influencing downstream tasks like object tracking and video stabilization. Current endeavors predominantly focus on task-specific solutions, resulting in duplicated research efforts and suboptimal hardware utilization. In contrast, ProtoFormer stands as a distinctive exploration, aiming to integrate motion tasks under a unified paradigm. This endeavor conceptually differentiates us from existing arts in the field.
|
| 45 |
+
|
| 46 |
+
Prototype Learning. Traditionally, prototype learning in machine learning establishes a metric space where features are distinguished by computing their distances/densities to prototypical representations (Lee et al., 2023). Early methods include classical approaches like support vector machines (Cortes & Vapnik, 1995), random forest (Breiman, 2001), logistic regression (Hastie et al., 2009), etc. With the advent of deep neural networks (DNNs), prototype-based deep learning models find broad applications in few-shot learning (Dong & Xing, 2018; Wang et al., 2019; Liu et al., 2020b; Yang et al., 2020; Li et al., 2021a; Wang et al., 2022), zero-shot learning (Jetley et al., 2015; Xu et al., 2020), text classification (Farhangi et al., 2022), and explainable classifiers (Wang et al., 2023; Zhou et al., 2022; Qin et al., 2023). In the context, we argue: movements within the same object or proximate regions exhibit noteworthy similarities, forming a collective of prototypes. Integrating prototype learning into the model design facilitates the natural encapsulation of diverse dynamic characteristics, enhancing the model's ability to comprehend motion in various contexts.
|
| 47 |
+
|
| 48 |
+
Moreover, human vision deploys a sophisticated prototyping ability, skillfully focusing on relevant parts of the visual tableau while filtering out extraneous elements (Simon & Newell, 1971; Rudin et al., 2022; Giese & Poggio, 2003). This feat is realized through Region-of-Interest (RoI) clustering (Meyer et al., 2004; Mantini et al., 2012), disassembling discrete pixel entities into salient conceptual groupings. This hierarchical process synthesizes elementary visual elements, like lines, forms, and hues, into complex abstractions representing objects, vistas, and individuals (Kepes, 1995). In an effort to mimic the human visual system, we conceptualize prototype learning from a clustering perspective, iteratively updating and exploring representative prototypes to capture nuanced motion characteristics.
|
| 49 |
+
|
| 50 |
+
Transformer Architecture. The transformative impact of Transformers in natural language processing (NLP) (Brown
|
| 51 |
+
|
| 52 |
+

|
| 53 |
+
Figure 2: (a) Overall pipeline of ProtoFormer (§3.2). Movement of a small part of an object within an image is being considered as a rigid motion. In our approach, we use prototypes to understand or predict this kind of motion pattern. (b) In each layer of the Cross-Attention Prototyping (see §3.2.1), there are $N$ sequential iterations encompassing the assignment of feature-prototypes (i.e., $E$ -step) and the subsequent updating of these prototypes (i.e., $M$ -step) via Eq. 5. (c) Concurrently, the Latent Synchronization process (see §3.2.2) associates the feature representations via the freshly updated motion prototypes, (see Eq. 7). For (b) and (c), we apply optical flow for illustration, which demonstrates straightforward systemic explainability. More visualization results are shown in §4.3.
|
| 54 |
+
|
| 55 |
+

|
| 56 |
+
|
| 57 |
+

|
| 58 |
+
|
| 59 |
+
et al., 2020; Devlin et al., 2018; Liu et al., 2020a; Raffel et al., 2020; Vaswani et al., 2017) has spurred their extensive application in vision-related tasks, including image classification (Dosovitskiy et al., 2021; Liu et al., 2022; 2021; Wang et al., 2023), and image segmentation (Strudel et al., 2021; Wang et al., 2021a;d; Zheng et al., 2021). Transformers excel in visual applications, outperforming convolutional neural networks (CNNs) (Han et al., 2023a; 2024). This superiority arises from their ability to capture extensive token dependencies in a global context, a limitation of concurrent CNN-based methods that focus on local interactions within convolutional layers (Han et al., 2022; Khan et al., 2022; Lin et al., 2022; Han et al., 2023a; Cai et al., 2022). The unique attention design in Transformers enables the understanding of global spatial relationships, making them ideal for motion-related tasks where extensive spatial interconnections are pivotal. By amalgamating the attention mechanism with prototype learning, we aim to harness Transformers' representational prowess to unravel intricate patterns in motion tasks, offering a unified, Transformer-based solution.
|
| 60 |
+
|
| 61 |
+
# 3. Methodology
|
| 62 |
+
|
| 63 |
+
By going through existing literature ( $\S 2$ ), the integration of prototype learning with the Transformer architecture presents a promising avenue to various motion tasks. In this section, we first revisit Transformer architecture and reformulate its attention mechanism as prototype learning ( $\S 3.1$ ). Based on this insight, we introduce ProtoFormer ( $\S 3.2$ ), including two pivotal contributions: Cross-Attention Prototyping ( $\S 3.2.1$ ) and Latent Synchronization ( $\S 3.2.2$ ), answering question $③$ . We elaborate our method below.
|
| 64 |
+
|
| 65 |
+
# 3.1. Preliminary
|
| 66 |
+
|
| 67 |
+
In our study, we re-conceptualize the Transformer's attention mechanism through the lens of classical clustering; while the traditional attention map is obtained by computing the similarity between all query-key pairs (Zhou et al., 2021a; Han et al., 2023b), our approach introduces a density-based cross-attention estimation, specifically designed to accommodate motion characteristics by aggregating local rigid motion patterns into distinct prototype clusters.
|
| 68 |
+
|
| 69 |
+
Classic clustering, a widely embraced paradigm, entails segregating $m$ observations into $k$ distinct groups. It ensures that each observation is aligned with only one cluster that it most closely associates with, based on the highest likelihood or minimal distance (e.g., proximity to the mean). Formally, clustering can be optimized iteratively between two phases:
|
| 70 |
+
|
| 71 |
+
- Assignment Phase allocates each observation to the cluster where it exhibits the maximal probability of belonging or the least spatial separation.
|
| 72 |
+
- Centroid Recalculation Phase recalculates the centroids of the clusters to reflect the new configuration of the observations within each cluster.
|
| 73 |
+
|
| 74 |
+
These two phases persist until a point of convergence is reached, indicated either by a cessation in the modification of assignments or by changes that fall beneath a predetermined threshold, thus implying cluster stabilization.
|
| 75 |
+
|
| 76 |
+
From a mathematical perspective, assume $\theta$ as the centroids (Wang et al., 2023) of the clusters, with $x\in \mathcal{X}$ representing an individual observation:
|
| 77 |
+
|
| 78 |
+
$$
|
| 79 |
+
\theta^ {(n + 1)} = \underset {\theta} {\arg \max } \mathbb {E} \left(p _ {x \sim \chi} \left(x \mid \theta^ {(n)}\right)\right). \tag {1}
|
| 80 |
+
$$
|
| 81 |
+
|
| 82 |
+
Here, $\theta^{(n)}$ denotes the $n$ -th iteration deduced centroid; $p(\cdot)$ represents the posterior probability of the data assignments.
|
| 83 |
+
|
| 84 |
+
# 3.2. ProtoFormer
|
| 85 |
+
|
| 86 |
+
The primary objective for ProtoFormer is to optimize the expected likelihood function in the context of clustering within a unified motion solution as:
|
| 87 |
+
|
| 88 |
+
$$
|
| 89 |
+
\hat {\theta} _ {k} = \sum_ {j = 1} ^ {K} p \left(\mathcal {X} \mid \theta_ {j}\right) \cdot P \left(\theta_ {k}, \theta_ {j}\right), \tag {2}
|
| 90 |
+
$$
|
| 91 |
+
|
| 92 |
+
where $\theta$ symbolizes the centroid representations. We recognize the centroid $\theta$ as Prototype, which is our optimization target. $K$ represents the total cluster count. The probability $p(\mathcal{X}|\theta_k)\in (0,1)$ are the mixing coefficients for each cluster $k\in \mathcal{K}$ , adhering to the constraint $\sum_{k}p(x|\theta_{k}) = 1$ . The projected prototype representation $P(\cdot)$ describes the learnable dense vector from a shared parametric family from $k$ -th prototype. This function aggregates across all clusters $\mathcal{K}$ , with each projected prototype $P(\theta_k,\theta_j)$ denoting the new projected representations on its respective cluster. $\hat{\theta}_k$ demonstrates the updated prototype considering the prototype representation of $\theta$ , and the posterior probability $p(\mathcal{X}|\theta_k)$ (i.e., the conditional likelihood of grouping the data $\mathcal{X}$ given prototype parameterization $\theta_k$ ).
|
| 93 |
+
|
| 94 |
+
# 3.2.1. CROSS-ATTENTION PROTOTYPING VIA EM CLUSTERING
|
| 95 |
+
|
| 96 |
+
To realize prototyping as a unified motion solution on Transformer, we reformulate the conventional Transformer's self-attention (Vaswani et al., 2017) into our novel prototypical cross-attention, optimized via Expectation-Maximization (EM) clustering. The designed optimization provides a density-based estimation to compute the maximum likelihood for $p_k$ and $\theta_k$ , utilizing posterior probabilities.
|
| 97 |
+
|
| 98 |
+
$E$ -Step: For each observation $x_{i} \in \mathcal{X}$ , $E$ -Step computes the $n$ -th iteration posterior probabilities $p_{k}(x_{i})$ , indicating its affiliation to center $\theta_{k}$ with the logit vector $s_{x_i,k}$ iteratively as:
|
| 99 |
+
|
| 100 |
+
$$
|
| 101 |
+
p _ {k} ^ {(n)} \left(x _ {i}\right) = \frac {s _ {x _ {i} , k} ^ {(n)} \cdot P \left(x _ {i} , \theta_ {k} ^ {(n)}\right)}{\sum_ {j = 1} ^ {K} s _ {x _ {i} , j} ^ {(n)} \cdot P \left(x _ {i} , \theta_ {j} ^ {(n)}\right)}. \tag {3}
|
| 102 |
+
$$
|
| 103 |
+
|
| 104 |
+
$s_{x_i,k}^{(n)},\theta_k^{(n)}$ are the parameters estimated at the $n$ -th iteration.
|
| 105 |
+
|
| 106 |
+
M-Step: Each cluster $\theta_{k}$ obtains its maximum likelihood estimations $p_k^{(n)}$ and $\theta_{k}^{(n)}$ from projected sub-sample representations $P^{\prime}$ , updated as:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\theta_ {k} ^ {(n + 1)} = \frac {1}{N} \sum_ {i = 1} ^ {N} \sum_ {j = 1} ^ {K} p _ {k} ^ {(n)} \left(x _ {i}\right) \cdot P ^ {\prime} \left(\theta_ {k} ^ {(n)}, \theta_ {j} ^ {(n)}\right). \tag {4}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
In practice, given feature embeddings $\pmb{I} \in \mathbb{R}^{HW \times D}$ and set initial cluster centers $\pmb{P}^{(0)}$ as $K$ prototypes, we encapsu
|
| 113 |
+
|
| 114 |
+
late the discussed $EM$ clustering process within a Cross-Attention Prototyping layer (see Fig. 2(b)) with $N$ iterations:
|
| 115 |
+
|
| 116 |
+
$$
|
| 117 |
+
E \text {- s t e p :} \quad \hat {\boldsymbol {M}} ^ {(n)} = \operatorname {s o f t m a x} _ {K} \left(\boldsymbol {Q} ^ {P ^ {(n)}} \left(\boldsymbol {K} ^ {I}\right) ^ {\top}\right), \tag {5}
|
| 118 |
+
$$
|
| 119 |
+
|
| 120 |
+
M-step: $\pmb{P}^{(n + 1)} = \hat{\pmb{M}}^{(n)}\pmb{V}^I\in \mathbb{R}^{K\times D}$
|
| 121 |
+
|
| 122 |
+
where $n\in \{1,\dots ,N\}$ . $\hat{M}\in [0,1]^{K\times HW}$ is the "soft" pixel-prototype assignment matrix, representing probability maps of prototypes. $Q^{P}\in \mathbb{R}^{K\times D}$ is the query vector projected from the prototype representation $P$ and $\pmb {V}^I,K^I\in \mathbb{R}^{HW\times D}$ are the value and key vectors projected from the image features $\pmb{I}$ , respectively. Our proposed layer can thus update the prototyping membership $\hat{M}$ (i.e., $E$ step) and the prototypes $P$ (i.e., $M$ -step) iteratively. The key characteristic of this approach is its assurance of an incremental convergence in the likelihood function with each iteration (see Eq. 4). In essence, the $E$ -step evaluates the current membership of the data representations based on existing prototypes, while the $M$ -step refines the prototypes to align with pixels, ensuring a steady progression towards optimal clustering. By performing cross-attention prototyping on the source and target images separately, it addresses the complexities associated with motion uncertainty and photometric inconsistency. We also modify the default softmax operator from $HW$ to $K$ , mimicking the $EM$ clustering.
|
| 123 |
+
|
| 124 |
+
The proposed layer enjoys several compelling features:
|
| 125 |
+
|
| 126 |
+
- Convergence: EM clustering monotonically improves the marginal likelihood and is empirically validated to converge towards a local optimum (Vattani, 2009; Ikatun et al., 2023; Balakrishnan et al., 2017), given a sufficient number of iterations (Proof is provided in Appendix §S4).
|
| 127 |
+
|
| 128 |
+
Proposition 1. Suppose that the EM operator is contractive with parameter $\kappa \in (0,1)$ on the ball $\mathcal{B}_2(r;\theta)$ , and the initial vector $\theta^{(0)}$ belongs to $\mathcal{B}_2(r;\theta)$ . For a given iteration $N$ , when the sample size $m$ is large enough to ensure $\epsilon_{M}\left(\frac{m}{N},\frac{\delta}{N}\right)\leq (1 - \kappa)r$ . Then the EM iterates $\left\{\theta^{(n)}\right\}_{n = 0}^{N}$ based on $\frac{m}{N}$ samples per round satisfy the bound that:
|
| 129 |
+
|
| 130 |
+
$$
|
| 131 |
+
\left| \left| \theta^ {(n)} - \hat {\theta} \right| \right| _ {2} \leq \kappa^ {n} \left| \left| \theta^ {(0)} - \hat {\theta} \right| \right| _ {2} + \frac {1}{1 - \kappa} \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right). \tag {6}
|
| 132 |
+
$$
|
| 133 |
+
|
| 134 |
+
In this context, our proposed Cross-Attention Prototyping leverages the strengths of recursive clustering, iterated over $N$ steps. This approach significantly enhances the likelihood of converging to an optimal configuration for motion partitioning (see §4.3).
|
| 135 |
+
|
| 136 |
+
- Transparency: Prototyping emerges as an indispensable mechanism for contextual understanding from motion scenes, recognizing and grouping similar patterns and movements. It clusters pixels as prototypes that display homogeneity in characteristics such as flow or depth. By aggregating entities that exhibit shared attributes, the prototypes are able to describe the intrinsic dynamics. Furthermore, prototyping provides a foundational schema for
|
| 137 |
+
|
| 138 |
+
motion comprehension, wherein each prototype embodies a microcosm of the objects within the scene, encapsulating unique elements and their interrelations.
|
| 139 |
+
|
| 140 |
+
- Efficiency: Cross-Attention Prototyping operates with a time complexity of $\mathcal{O}(NKHWD)$ , showing a significant improvement over the self-attention mechanism with $\mathcal{O}(H^2 W^2 D)$ (see §4.3). The foundation lies in the relationship that $NK \ll HW$ (e.g., 60 vs 25920 in the first stage with image of $960 \times 432$ resolution). This difference becomes especially pronounced in pyramid architectures (Wang et al., 2021c; Liu et al., 2021; Liang et al., 2023; 2024), where the total number of $NK$ tends to be substantially smaller than $HW$ , particularly in the early stages of the network. In each iteration, only the query matrix $Q$ requires an update; the key $K$ and value $V$ matrices are computed just once. This selective updating significantly reduces the computational load particularly beneficial in handling large-scale data in high-dimensional feature spaces.
|
| 141 |
+
|
| 142 |
+
# 3.2.2.PROTOTYPE-Feature CORRESPONDING BY LATENT SYNCHRONIZATION
|
| 143 |
+
|
| 144 |
+
We further refine the feature representations, synchronizing the projection of $K$ prototypes into a $H \times W$ feature representation. This approach aligns the prototype representations with motion features (see Fig. 2(c)).
|
| 145 |
+
|
| 146 |
+
The main technique lies in the Feed-Forward Network (FFN) that incorporates with a masked cross-attention mechanism:
|
| 147 |
+
|
| 148 |
+
$$
|
| 149 |
+
\hat {I} = \operatorname {F F N} \left(\text {C r o s s - A t t e n t i o n} \left(Q ^ {I}, K ^ {P}, V ^ {P}, \mathcal {M} _ {P}\right)\right), \tag {7}
|
| 150 |
+
$$
|
| 151 |
+
|
| 152 |
+
where $\mathcal{M}_P$ stands for the feature assignment mask maps based on the similarity of corresponding prototypes $P$ . $\hat{I}$ represents the refined feature, $Q^I$ denotes the query projection derived from the input image feature, $K^P$ and $V^P$ represent the key and value projections sourced from the learning prototypes, respectively. Latent Synchronization primarily aims at augmenting the feature learning for prototype-feature association, reducing motion ambiguity. It facilitates the extraction and encapsulation of each feature representation's latent distribution within its own prototype.
|
| 153 |
+
|
| 154 |
+
Latent Synchronization enjoys appealing characteristics:
|
| 155 |
+
|
| 156 |
+
- Blended Paradigm: Latent Synchronization blends unsupervised prototype mining (§3.2.1) and supervised feature representation learning (§3.2.2) in a synergy - local significant motion patterns are automatically explored to facilitate density-based prototyping; the supervisory signal from task-specific heads directly optimizes the representation, which in turn boosts meaningful prototyping.
|
| 157 |
+
- Prototype-Anchored Learning: Density-based prototype learning computes reliable probabilities in prototype assignment recursively (Eq. 5). Anchored by the updated
|
| 158 |
+
|
| 159 |
+
prototypes, the feature is further guided towards more robust representations via prototype-feature association (Eq. 7). Consequently, the motion patterns are more likely to center around areas of high data density, which in turn boosts robustness towards motion ambiguity.
|
| 160 |
+
|
| 161 |
+
# 3.3. Implementation Details
|
| 162 |
+
|
| 163 |
+
ProtoFormer is built upon Twins architecture (Chu et al., 2021). Detailed training and testing configurations are provided in §S1. The key components (see Fig. 2) are:
|
| 164 |
+
|
| 165 |
+
- Feature Encoder contains two stages with window sizes of 4 and 8, respectively, which convert input images into features. We follow the common practice (Chu et al., 2021) and utilize two blocks within each stage. In addition, we reformulate the vanilla self-attention into our cross-attention prototyping layers (§3.2.1) to recursively update the initialized prototypes. Once these prototypes have been updated, the latent synchronization layer (§3.2.2) augments the feature learning via prototype-feature association, reducing motion ambiguity.
|
| 166 |
+
- Task Decoder is designed for task-specific motion predictions. We follow the design (Huang et al., 2022; Zhou et al., 2021b) for flow and depth.
|
| 167 |
+
- Cross-Attention Prototyping reformulates the vanilla self-attention layers by the $EM$ cross-attention clustering process for prototyping learning (§3.2.1). Within each Cross-Attention Prototyping layer, twenty prototypes and three iterations are conducted as default (§4.3).
|
| 168 |
+
- Latent Synchronization updates the feature map in accordance with the prototypes present in the latent feature space (§3.2.2) by applying Feed-Forward Networks and incorporating a masked cross-attention mechanism.
|
| 169 |
+
|
| 170 |
+
# 4. Experiments
|
| 171 |
+
|
| 172 |
+
We comprehensively examine the performance and unity of our proposed ProtoFormer on two representative motion tasks, including optical flow (see §4.1) and scene depth (see §4.2). In our pursuit of a unified solution for motion-related tasks, we not only underscore the merit of such integration but also exhibit superior performance, and to further enhance the paradigmatic generalization, we broaden its application to object tracking ( $\S$ S5) and video stabilization ( $\S$ S6) in Appendix, reaching competitive performance.
|
| 173 |
+
|
| 174 |
+
# 4.1. Experiments on Optical Flow
|
| 175 |
+
|
| 176 |
+
Datasets. Following the previous works (Huang et al., 2022; Dong et al., 2023), we first train the proposed method on FlyingChair (Dosovitskiy et al., 2015) and FlyingThings (Mayer et al., 2016), and then fine-tune it on a large combination of datasets $(\mathrm{C} + \mathrm{T} + \mathrm{S} + \mathrm{K} + \mathrm{H})$ to allow evaluation on the Sintel and KITTI-2015 benchmarks.
|
| 177 |
+
|
| 178 |
+
Metrics. To facilitate a fair comparison, we adopt the commonly used metric, the average end-point-error (F1-epe),
|
| 179 |
+
|
| 180 |
+
<table><tr><td rowspan="2">Training</td><td rowspan="2">Method</td><td colspan="2">Sintel (train)</td><td colspan="2">KITTI-15 (train)</td><td colspan="2">Sintel (test)</td><td>KITTI-15 (test)</td></tr><tr><td>Clean ↓</td><td>Final ↓</td><td>F1-epe ↓</td><td>F1-all ↓</td><td>Clean ↓</td><td>Final ↓</td><td>F1-all ↓</td></tr><tr><td rowspan="2">A</td><td>Perceiver IO (Jaegle et al., 2022)</td><td>1.81</td><td>2.42</td><td>4.98</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td>RAFT-A (Sun et al., 2021)</td><td>1.95</td><td>2.57</td><td>4.23</td><td>-</td><td>-</td><td>-</td><td>-</td></tr><tr><td rowspan="13">C+T</td><td>RAFT (Teed & Deng, 2020)</td><td>1.43</td><td>2.71</td><td>5.04</td><td>17.4</td><td>-</td><td>-</td><td>-</td></tr><tr><td>Separable Flow (Zhang et al., 2021)</td><td>1.30</td><td>2.59</td><td>4.60</td><td>15.9</td><td>-</td><td>-</td><td>-</td></tr><tr><td>GMA (Jiang et al., 2021)</td><td>1.30</td><td>2.74</td><td>4.69</td><td>17.1</td><td>-</td><td>-</td><td>-</td></tr><tr><td>AGFlow (Luo et al., 2022b)</td><td>1.31</td><td>2.69</td><td>4.82</td><td>17.0</td><td>-</td><td>-</td><td>-</td></tr><tr><td>KPA-Flow (Luo et al., 2022a)</td><td>1.28</td><td>2.68</td><td>4.46</td><td>15.9</td><td>-</td><td>-</td><td>-</td></tr><tr><td>DIP (Zheng et al., 2022)</td><td>1.30</td><td>2.82</td><td>4.29</td><td>13.7</td><td>-</td><td>-</td><td>-</td></tr><tr><td>GMFlowNet (Zhao et al., 2022)</td><td>1.14</td><td>2.71</td><td>4.24</td><td>15.4</td><td>-</td><td>-</td><td>-</td></tr><tr><td>GMFlow (Xu et al., 2022b)</td><td>1.08</td><td>2.48</td><td>7.77</td><td>23.4</td><td>-</td><td>-</td><td>-</td></tr><tr><td>CRAFT (Sui et al., 2022)</td><td>1.27</td><td>2.79</td><td>4.88</td><td>17.5</td><td>-</td><td>-</td><td>-</td></tr><tr><td>FlowFormer (Huang et al., 2022)</td><td>1.01</td><td>2.40</td><td>4.09</td><td>14.7</td><td>-</td><td>-</td><td>-</td></tr><tr><td>SKFlow (Zhai et al., 2022)</td><td>1.22</td><td>2.46</td><td>4.27</td><td>15.5</td><td>-</td><td>-</td><td>-</td></tr><tr><td>MatchFlow (Dong et al., 2023)</td><td>1.14</td><td>2.71</td><td>4.19</td><td>13.6</td><td>-</td><td>-</td><td>-</td></tr><tr><td>ProtoFormer (Ours)</td><td>1.04</td><td>2.43</td><td>4.08</td><td>14.6</td><td>-</td><td>-</td><td>-</td></tr><tr><td rowspan="14">C+T+S+K+H</td><td>RAFT (Teed & Deng, 2020)</td><td>0.76</td><td>1.22</td><td>0.63</td><td>1.5</td><td>1.61</td><td>2.86</td><td>5.10</td></tr><tr><td>RAFT-A (Sun et al., 2021)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>2.01</td><td>3.14</td><td>4.78</td></tr><tr><td>Separable Flow (Zhang et al., 2021)</td><td>0.69</td><td>1.10</td><td>0.69</td><td>1.60</td><td>1.50</td><td>2.67</td><td>4.64</td></tr><tr><td>GMA (Jiang et al., 2021)</td><td>0.62</td><td>1.06</td><td>0.57</td><td>1.2</td><td>1.39</td><td>2.47</td><td>5.15</td></tr><tr><td>AGFlow (Luo et al., 2022b)</td><td>0.65</td><td>1.07</td><td>0.58</td><td>1.2</td><td>1.43</td><td>2.47</td><td>4.89</td></tr><tr><td>KPA-Flow (Luo et al., 2022a)</td><td>0.60</td><td>1.02</td><td>0.52</td><td>1.1</td><td>1.35</td><td>2.36</td><td>4.60</td></tr><tr><td>DIP (Zheng et al., 2022)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>1.44</td><td>2.83</td><td>4.21</td></tr><tr><td>GMFlowNet (Zhao et al., 2022)</td><td>0.59</td><td>0.91</td><td>0.64</td><td>1.51</td><td>1.39</td><td>2.65</td><td>4.79</td></tr><tr><td>GMFlow (Xu et al., 2022b)</td><td>-</td><td>-</td><td>-</td><td>-</td><td>1.74</td><td>2.90</td><td>9.32</td></tr><tr><td>CRAFT (Sui et al., 2022)</td><td>0.60</td><td>1.06</td><td>0.58</td><td>1.34</td><td>1.45</td><td>2.42</td><td>4.79</td></tr><tr><td>Flowformer (Huang et al., 2022)</td><td>0.48</td><td>0.74</td><td>0.53</td><td>1.11</td><td>1.20</td><td>2.12</td><td>4.68</td></tr><tr><td>SKFlow (Zhai et al., 2022)</td><td>0.52</td><td>0.78</td><td>0.51</td><td>0.94</td><td>1.28</td><td>2.23</td><td>4.87</td></tr><tr><td>MatchFlow (Dong et al., 2023)</td><td>0.51</td><td>0.81</td><td>0.59</td><td>1.3</td><td>1.33</td><td>2.64</td><td>4.72</td></tr><tr><td>ProtoFormer (Ours)</td><td>0.48</td><td>0.69</td><td>0.50</td><td>1.09</td><td>1.06</td><td>2.07</td><td>4.35</td></tr></table>
|
| 181 |
+
|
| 182 |
+
Table 1: Quantitative results on standard Sintel and KITTI flow benchmarks. 'A' denotes the Autoflow dataset; $\mathrm{C} + \mathrm{T}$ denotes training on the FlyingChairs and FlyingThings datasets only; $\mathrm{C} + \mathrm{T} + \mathrm{S} + \mathrm{K} + \mathrm{H}$ fine-tunes on a combination of Sintel, KITTI, and HD1K training sets. Error metrics are lower is better with "↓", and accuracy metrics are higher is better with "↑". Same for Table 2.
|
| 183 |
+
|
| 184 |
+
measuring the average $l_{2}$ distance between the prediction and ground truth, and the percentage of outliers over all pixels (F1-all), which describes the error exceeding 3 pixels or $5\%$ w.r.t. the ground truth, for optical flow estimation.
|
| 185 |
+
|
| 186 |
+
Quantitative Results. Table 1 reports the evaluation results of our model on the Sintel and KITTI datasets. The results under the $\mathrm{C + T}$ setting reflect the generalization capability of our ProtoFormer, where it achieves 1.04 and 2.43 on the clean and final pass of Sintel, improving the recently popular CRAFT (Sui et al., 2022) by 0.23 and 0.36. After training under the mixed setting of $\mathrm{C + T + S + K + H}$ , the proposed prototype-based model achieves 1.06 and 2.07 on the clean and final pass of Sintel and 4.35 F1-epe on KITTI.
|
| 187 |
+
|
| 188 |
+
Qualitative Results. Fig. 3 shows the qualitative results on the Sintel flow dataset. As seen, ProtoFormer shows more global and finer details on both object and motion boundaries, without being affected by the shadows and textureless surfaces. In the first and fourth examples, our model recovers full shape and fine details remarkably well, e.g., on bamboo and weapons. This is in stark contrast to other methods, which struggle with producing clear predictions, primarily due to challenges posed by occlusions and variations in illumination. In the second and third examples, we show the significantly consistent estimation of the occluded and textureless regions, e.g., the backpack and birds in the sky. The highlighted regions with red boxes prove the
|
| 189 |
+
|
| 190 |
+
efficacy of ProtoFormer in object clustering and avoiding motion ambiguity. More results are shown in Fig. S2.
|
| 191 |
+
|
| 192 |
+
# 4.2. Experiments on Scene Depth
|
| 193 |
+
|
| 194 |
+
Datasets. Similar to optical flow, we evaluate ProtoFormer on both real and synthetic datasets, using KITTI (Geiger et al., 2013) and MPI Sintel (Butler et al., 2012a) for evaluation. As an autonomous driving dataset consisting of 61 outdoor scenes of various modalities, we use the KITTI Eigen depth split, which contains a standard depth estimation split proposed by Eigen et al. (Eigen et al., 2014) consisting of 32 scenes for training and 29 scenes for testing. The MPI Sintel is a long synthetic stereo sequence with a large motion and depth range and contains a total of 35 rendered sequences. Metrics. We follow the standard metrics of absolute relative error (Abs Rel), root mean square error (RMSE), and the percentage of inlier pixels with $\delta_1 < \tau$ ( $\tau = 1.25$ ).
|
| 195 |
+
|
| 196 |
+
Quantitative Results. Table 2 shows the test results on Sintel and KITTI. Our model achieved the best performance on most of the error and accuracy metrics, proving its powerful feature representation and generalization ability to different scenarios. Compared with recent directly supervised depth estimation methods (Eigen et al., 2014; Fu et al., 2018; Bhat et al., 2021), ProtoFormer demonstrates significantly superior capability, benefited from the incorporation of prototypical learning and cross-attention architecture. Even
|
| 197 |
+
|
| 198 |
+

|
| 199 |
+
Figure 3: Qualitative results on the Sintel. The red boxes highlight the regions compared. Matchflow (Dong et al., 2023) appears blurry and ambiguous on textureless and occluded objects, while Flowformer (Huang et al., 2022) fails to recover complete and detailed information. Ours can estimate clear and complete flow motion, which is closer to ground truth.
|
| 200 |
+
|
| 201 |
+
without using additional constraints and priors such as surface normal and piecewise planarity in (Yin et al., 2019; Patil et al., 2022), our model improves the performance of concurrent P3Depth in error by a large margin on KITTI. Furthermore, our approach demonstrates superior performance compared to methods that implement self-supervised consistency and strategies (Godard et al., 2017; Zhang et al., 2023). This underscores the efficacy of our model, which exhibits exceptional adaptability and learning capacity for fine-tuning across more general motion-related tasks.
|
| 202 |
+
|
| 203 |
+
<table><tr><td rowspan="2">Method</td><td colspan="3">Sintel</td><td colspan="3">KITTI</td></tr><tr><td>Abs Rel ↓</td><td>RMSE ↓</td><td>Sq Rel ↓</td><td>Abs Rel ↓</td><td>RMSE ↓</td><td>δ1 ↑</td></tr><tr><td>Eigen et al.</td><td>0.797</td><td>0.834</td><td>0.703</td><td>0.203</td><td>6.307</td><td>0.702</td></tr><tr><td>Godard et al.</td><td>-</td><td>-</td><td>-</td><td>0.114</td><td>4.935</td><td>0.861</td></tr><tr><td>Fu et al.</td><td>-</td><td>-</td><td>-</td><td>0.072</td><td>2.727</td><td>0.932</td></tr><tr><td>Yin et al.</td><td>0.746</td><td>0.611</td><td>0.652</td><td>0.072</td><td>3.258</td><td>0.938</td></tr><tr><td>AdaBins</td><td>0.730</td><td>0.572</td><td>0.647</td><td>0.067</td><td>2.960</td><td>0.949</td></tr><tr><td>P3Depth</td><td>0.653</td><td>0.396</td><td>0.571</td><td>0.071</td><td>2.842</td><td>0.953</td></tr><tr><td>Ours</td><td>0.594</td><td>0.486</td><td>0.538</td><td>0.062</td><td>2.716</td><td>0.949</td></tr></table>
|
| 204 |
+
|
| 205 |
+
Table 2: Quantitative results on Sintel and KITTI depth datasets. With both test data unseen by the model, we can achieve leading performance over state-of-the-art methods (Eigen et al., 2014; Godard et al., 2017; Fu et al., 2018; Yin et al., 2019; Bhat et al., 2021; Patil et al., 2022).
|
| 206 |
+
|
| 207 |
+
Qualitative Results. Fig. 4 shows the qualitative depth comparison on the KITTI Eigen depth datasets. Our ProtoFormer demonstrates superior capability in delineating object surface contours, particularly in scenarios involving dynamic entities such as pedestrians and vehicles, as well as in capturing the finer details of objects like traffic signs and light poles. For example, for the moving pedestrians and vehicles in Sample 1 and Sample 3, ProtoFormer estimates a more consistent and complete depth on object surfaces and provides a clearer boundary than P3Depth (Patil et al., 2022)
|
| 208 |
+
|
| 209 |
+
and AdaBins (Bhat et al., 2021). For the plant stand and traffic poles in Sample 2, Sample 3 and Sample 4, our methods separates other methods evidently from the noisy and complex scene backgrounds. These demonstrated the superiority of incorporating prototype learning into depth training to perceive geometric consistent and mitigate motion ambiguity. More visual evidences are provided in Fig. S3.
|
| 210 |
+
|
| 211 |
+
# 4.3. Diagnostic Experiments
|
| 212 |
+
|
| 213 |
+
This section ablates ProtoFormer's key components and configurations. More ablations are included in Appendix §S3.
|
| 214 |
+
|
| 215 |
+
Key Components Analysis. We study the major components of ProtoFormer: Cross-Attention Prototyping (§3.2.1) and Latent Synchronization (§3.2.2). A Base model is designed without considering prototype updating and prototype-feature assignment. Shown in Table 3a, Base reaches 0.55 and 0.81 in average EPE. After adding Cross-Attention Prototyping, substantial improvements are observed (i.e., $0.55 \to 0.51$ in clean pass), suggesting the efficacy of prototyping updating even without explicit prototype-feature assignment. Incorporating Latent Synchronization into Base can observe a noticeable performance gain (i.e., $0.81 \to 0.77$ in final pass). Finally, the integration of the two techniques culminates in peak performance.
|
| 216 |
+
|
| 217 |
+
Cross-Attention Prototyping. We then study the efficacy of Cross-Attention Prototyping by comparing to different updating methods, including cosine similarity, conventional cross-attention (Vaswani et al., 2017), Criss cross-attention (Huang et al., 2019) and $K$ -Means (Yu et al., 2022). From the efficient and effective perspectives, Cross-Attention Prototyping outperforms competitive methods (see Table 3b). We further study the iteration step $N$ in Table 3c,
|
| 218 |
+
|
| 219 |
+

|
| 220 |
+
Figure 4: Qualitative depth comparison results on the KITTI. The red boxes indicate the highlighted regions. P3Depth (Patil et al., 2022) and AdaBins (Bhat et al., 2021) have limited receptive fields and do not consider conceptual object-level groupings, thus producing discontinuous and ambiguous predictions. While ours can estimate consistent and sharp depths, which is closer to ground truth.
|
| 221 |
+
|
| 222 |
+
Table 3: A set of ablative studies on optical flow (see §4.3). The best performances are marked in bold.
|
| 223 |
+
|
| 224 |
+
<table><tr><td>Algorithm Component</td><td>#Params</td><td>Sintel clean</td><td>Sintel final</td></tr><tr><td>Base</td><td>9.63M</td><td>0.55</td><td>0.81</td></tr><tr><td>+ Cross-Attention Prototyping</td><td>11.57M</td><td>0.51</td><td>0.74</td></tr><tr><td>+ Latent Synchronization</td><td>10.26M</td><td>0.53</td><td>0.77</td></tr><tr><td>ProtoFormer (All included)</td><td>11.90M</td><td>0.48</td><td>0.69</td></tr></table>
|
| 225 |
+
|
| 226 |
+
(a) Key Component Analysis
|
| 227 |
+
|
| 228 |
+
<table><tr><td>#Iterations (N)</td><td>#Params</td><td>Sintel clean</td><td>Sintel final</td></tr><tr><td>1</td><td rowspan="4">11.90M</td><td>0.52</td><td>0.75</td></tr><tr><td>2</td><td>0.49</td><td>0.71</td></tr><tr><td>3</td><td>0.48</td><td>0.69</td></tr><tr><td>4</td><td>0.48</td><td>0.68</td></tr></table>
|
| 229 |
+
|
| 230 |
+
(c) Number of Iterations
|
| 231 |
+
|
| 232 |
+
<table><tr><td>#Prototypes (K)</td><td>#Params</td><td>Sintel clean</td><td>Sintel final</td></tr><tr><td>10</td><td>8.95M</td><td>0.53</td><td>0.78</td></tr><tr><td>50</td><td>9.78M</td><td>0.51</td><td>0.73</td></tr><tr><td>100</td><td>11.90M</td><td>0.48</td><td>0.69</td></tr><tr><td>200</td><td>14.21M</td><td>0.49</td><td>0.71</td></tr></table>
|
| 233 |
+
|
| 234 |
+
(d) Number of Prototypes
|
| 235 |
+
|
| 236 |
+
<table><tr><td>Variant Prototype Updating Strategy</td><td>#Params</td><td>Sintel clean</td><td>Sintel final</td></tr><tr><td>Cosine Similarity</td><td>10.28M</td><td>0.51</td><td>0.75</td></tr><tr><td>Vanilla Cross-Attention (Vaswani et al., 2017)</td><td>14.88M</td><td>0.50</td><td>0.73</td></tr><tr><td>Criss Cross-Attention (Huang et al., 2019)</td><td>14.56M</td><td>0.50</td><td>0.72</td></tr><tr><td>K-Means (Yu et al., 2022)</td><td>11.81M</td><td>0.49</td><td>0.71</td></tr><tr><td>Cross-Attention Prototyping (Eq. 5)</td><td>11.90M</td><td>0.48</td><td>0.69</td></tr></table>
|
| 237 |
+
|
| 238 |
+
(b) Cross-Attention Prototyping
|
| 239 |
+
|
| 240 |
+
<table><tr><td>Latent Synchronization</td><td>#Params</td><td>Sintel clean</td><td>Sintel final</td></tr><tr><td>None</td><td>11.27M</td><td>0.51</td><td>0.74</td></tr><tr><td>Vanilla FC Layer</td><td>11.64M</td><td>0.50</td><td>0.73</td></tr><tr><td>FC w/ Similarity (Ma et al., 2023)</td><td>11.76M</td><td>0.49</td><td>0.71</td></tr><tr><td>Ours (Eq. 7)</td><td>11.90M</td><td>0.48</td><td>0.69</td></tr></table>
|
| 241 |
+
|
| 242 |
+
(e) Latent Synchronization
|
| 243 |
+
|
| 244 |
+
suggesting that the error progressively decreases from 0.52 to 0.48 when increasing $N$ from 1 to 4, and saturates at 4. Considering the computation time, we set $N = 3$ to strike the balance between performance and computational cost. The number of prototypes $K$ plays a pivotal role in defining the central grouping points for motion features. We therefore investigate the variant of $K$ in Table 3d.
|
| 245 |
+
|
| 246 |
+
Latent Synchronization. Next, we study our Latent Synchronization in Table 3e. With a standard setting without any prototype-feature corresponding (i.e., None), the model reports 0.74 in final pass. After applying a vanilla fully-connected layer to update the feature, the error decreases to 0.73. Though inspiring, our proposed Latent Synchronization with carefully anchored prototypes yields advanced performance across all ablative methods (i.e., 0.69).
|
| 247 |
+
|
| 248 |
+
Systemic Explainability. Finally, we investigate the prototype-feature corresponding map on optical flow in Fig. 5. The systemic explainability hinges on the Prototypes, which emerge through the integration of probability density estimation within our cross-attention prototyping layer. The recursively optimized prototypes encapsulate the most characteristic features of the motion patterns within their respective density centers. Through the visualization of
|
| 249 |
+
|
| 250 |
+

|
| 251 |
+
Figure 5: Visualization of proto-feature mapping, which demonstrates distinct prototypes with similar representations.
|
| 252 |
+
|
| 253 |
+
feature correspondence estimation derived from the updated prototypes, we enhance the interpretability of the network and transparency of the model's decision-making process.
|
| 254 |
+
|
| 255 |
+
# 5. Conclusion
|
| 256 |
+
|
| 257 |
+
We propose Prototypical TransFormer (ProtoFormer), a unified solution for motion tasks. The motivation of integrating Transformer and prototype learning leads us to innovate conventional self-attention, and propose Cross-Attention Prototyping. Our Latent Synchronization further refines the feature representations via prototype-feature association. Comprehensive empirical results show that ProtoFormer enjoys elegant architectural design, superior performance and systemic explainability. As a whole, we conclude that the findings from this work impart essential understandings and necessitate further exploration within this realm.
|
| 258 |
+
|
| 259 |
+
# Impact Statement
|
| 260 |
+
|
| 261 |
+
Ethical Aspects. We provide asset licenses and consents for the datasets we applied in our paper in supplementary material. All the datasets are publicly available for academic usage. Since our work does not involve data augmentation or the creation of new datasets, ethical concerns or biases within our proposed ProtoFormer are significantly minimized. We should also highlight that the introduction of prototypical learning offers a significant advantages in addressing photometric inconsistency, which in turn reduces the possible biases during training when lighting condition is restricted.
|
| 262 |
+
|
| 263 |
+
Future Societal Consequences. ProtoFormer introduces a universal understanding for motion tasks via prototypical learning, possessing strong performance gains over several state-of-the-art baselines. On positive side, our approach is valuable in various real-world applications (e.g., autonomous driving (Cheng et al., 2023c; Prakash et al., 2021; Cheng et al., 2023b; Shao et al., 2023; Cheng et al., 2022; 2023a), robotics navigation (Dev et al., 1997; Lookingbill et al., 2007; Song et al., 2022)), benefited from its transparency and efficiency. Regarding potential negative social impacts, it is noteworthy that our ProtoFormer, akin to other discriminative classifiers, encounters challenges in addressing out-of-distribution/open-set problems (Liang et al., 2022a). Its utility in open-world scenarios should be further examined.
|
| 264 |
+
|
| 265 |
+
# Acknowledgement
|
| 266 |
+
|
| 267 |
+
We thank Prof. Majid Rabbani for detailed feedback on drafts of the paper. This research was supported by the National Science Foundation under Grant No. 2242243 and the DEVCOM Army Research Laboratory under Contract W911QX-21-D-0001. The views and conclusions contained herein are those of the authors and should not be interpreted as necessarily representing the official policies or endorsements, either expressed or implied, of the U.S. DEVCOM Army Research Laboratory (ARL), U.S. Naval Research Laboratory (NRL) or the U.S. Government.
|
| 268 |
+
|
| 269 |
+
# References
|
| 270 |
+
|
| 271 |
+
Balakrishnan, S., Wainwright, M. J., and Yu, B. Statistical guarantees for the em algorithm: From population to sample-based analysis. Annals of Statistics, 2017.
|
| 272 |
+
Bertinetto, L., Valmadre, J., Henriques, J. F., Vedaldi, A., and Torr, P. H. Fully-convolutional siamese networks for object tracking. In ECCV, 2016.
|
| 273 |
+
Bhat, G., Danelljan, M., Van Gool, L., and Timofte, R. Know your surroundings: Exploiting scene information for object tracking. In ECCV, 2020.
|
| 274 |
+
|
| 275 |
+
Bhat, S. F., Alhashim, I., and Wonka, P. Adabins: Depth estimation using adaptive bins. In CVPR, 2021.
|
| 276 |
+
Breiman, L. Random forests. Machine learning, 45:5-32, 2001.
|
| 277 |
+
Brown, T., Mann, B., Ryder, N., Subbiah, M., Kaplan, J. D., Dhariwal, P., Neelakantan, A., Shyam, P., Sastry, G., Askell, A., et al. Language models are few-shot learners. In NeurIPS, 2020.
|
| 278 |
+
Butler, D. J., Wulff, J., Stanley, G. B., and Black, M. J. A naturalistic open source movie for optical flow evaluation. In ECCV, 2012a.
|
| 279 |
+
Butler, D. J., Wulff, J., Stanley, G. B., and Black, M. J. A naturalistic open source movie for optical flow evaluation. In ECCV, 2012b.
|
| 280 |
+
Cabon, Y., Murray, N., and Humenberger, M. Virtual kitti 2. arXiv preprint arXiv:2001.10773, 2020.
|
| 281 |
+
Cai, Y., Lin, J., Hu, X., Wang, H., Yuan, X., Zhang, Y., Timofte, R., and Van Gool, L. Coarse-to-fine sparse transformer for hyperspectral image reconstruction. In ECCV, 2022.
|
| 282 |
+
Chen, X., Yan, B., Zhu, J., Wang, D., Yang, X., and Lu, H. Transformer tracking. In CVPR, 2021.
|
| 283 |
+
Chen, X., Peng, H., Wang, D., Lu, H., and Hu, H. Seqtrack: Sequence to sequence learning for visual object tracking. In CVPR, 2023.
|
| 284 |
+
Cheng, Z., Liang, J., Choi, H., Tao, G., Cao, Z., Liu, D., and Zhang, X. Physical attack on monocular depth estimation with optimal adversarial patches. In ECCV, 2022.
|
| 285 |
+
Cheng, Z., Choi, H., Feng, S., Liang, J. C., Tao, G., Liu, D., Zuzak, M., and Zhang, X. Fusion is not enough: Single modal attack on fusion models for 3d object detection. In ICLR, 2023a.
|
| 286 |
+
Cheng, Z., Choi, H., Liang, J., Feng, S., Tao, G., Liu, D., Zuzak, M., and Zhang, X. Fusion is not enough: single-modal attacks to compromise fusion models in autonomous driving. arXiv preprint arXiv:2304.14614, 2023b.
|
| 287 |
+
Cheng, Z., Liang, J., Tao, G., Liu, D., and Zhang, X. Adversarial training of self-supervised monocular depth estimation against physical-world attacks. arXiv preprint arXiv:2301.13487, 2023c.
|
| 288 |
+
Chu, X., Tian, Z., Wang, Y., Zhang, B., Ren, H., Wei, X., Xia, H., and Shen, C. Twins: Revisiting spatial attention design in vision transformers. *NeurIPS*, 2021.
|
| 289 |
+
|
| 290 |
+
Cortes, C. and Vapnik, V. Support-vector networks. Machine learning, 20:273-297, 1995.
|
| 291 |
+
Cui, Y., Han, C., and Liu, D. Collaborative multi-task learning for multi-object tracking and segmentation. Journal on Autonomous Transportation Systems, 1(2):1-23, 2024.
|
| 292 |
+
Danelljan, M., Bhat, G., Shahbaz Khan, F., and Felsberg, M. Eco: Efficient convolution operators for tracking. In CVPR, 2017.
|
| 293 |
+
Dev, A., Krose, B., and Groen, F. Navigation of a mobile robot on the temporal development of the optic flow. In IROS, 1997.
|
| 294 |
+
Devlin, J., Chang, M.-W., Lee, K., and Toutanova, K. Bert: Pre-training of deep bidirectional transformers for language understanding. In *NAACL-HLT*, 2018.
|
| 295 |
+
Dong, N. and Xing, E. P. Few-shot semantic segmentation with prototype learning. In BMVC, 2018.
|
| 296 |
+
Dong, Q., Cao, C., and Fu, Y. Rethinking optical flow from geometric matching consistent perspective. In CVPR, 2023.
|
| 297 |
+
Dosovitskiy, A., Fischer, P., Ilg, E., Hausser, P., Hazirbas, C., Golkov, V., Van Der Smagt, P., Cremers, D., and Brox, T. Flownet: Learning optical flow with convolutional networks. In ICCV, 2015.
|
| 298 |
+
Dosovitskiy, A., Beyer, L., Kolesnikov, A., Weissenborn, D., Zhai, X., Unterthiner, T., Dehghani, M., Minderer, M., Heigold, G., Gelly, S., et al. An image is worth 16x16 words: Transformers for image recognition at scale. ICLR, 2021.
|
| 299 |
+
Eigen, D., Puhrsch, C., and Fergus, R. Depth map prediction from a single image using a multi-scale deep network. NeurIPS, 2014.
|
| 300 |
+
Fan, H., Lin, L., Yang, F., Chu, P., Deng, G., Yu, S., Bai, H., Xu, Y., Liao, C., and Ling, H. Lasot: A high-quality benchmark for large-scale single object tracking. In CVPR, 2019.
|
| 301 |
+
Farhangi, A., Sui, N., Hua, N., Bai, H., Huang, A., and Guo, Z. Protoformer: Embedding prototypes for transformers. In Pacific-Asia Conference on Knowledge Discovery and Data Mining, pp. 447-458. Springer, 2022.
|
| 302 |
+
Fu, H., Gong, M., Wang, C., Batmanghelich, K., and Tao, D. Deep ordinal regression network for monocular depth estimation. In CVPR, 2018.
|
| 303 |
+
Gao, H., Cui, J., Ye, M., Li, S., Zhao, Y., and Zhu, X. Structure-preserving motion estimation for learned video compression. In ACMMM, 2022.
|
| 304 |
+
|
| 305 |
+
Geiger, A., Lenz, P., Stiller, C., and Urtasun, R. Vision meets robotics: The kitti dataset. The International Journal of Robotics Research, 2013.
|
| 306 |
+
Giese, M. A. and Poggio, T. Neural mechanisms for the recognition of biological movements. Nature Reviews Neuroscience, 2003.
|
| 307 |
+
Godard, C., Mac Aodha, O., and Brostow, G. J. Unsupervised monocular depth estimation with left-right consistency. In CVPR, 2017.
|
| 308 |
+
Han, C., Wang, Q., Cui, Y., Cao, Z., Wang, W., Qi, S., and Liu, D. E^2vpt: An effective and efficient approach for visual prompt tuning. In ICCV, 2023a.
|
| 309 |
+
Han, C., Wang, Q., Cui, Y., Wang, W., Huang, L., Qi, S., and Liu, D. Facing the elephant in the room: Visual prompt tuning or full finetuning? In ICLR, 2024.
|
| 310 |
+
Han, D., Pan, X., Han, Y., Song, S., and Huang, G. Flatten transformer: Vision transformer using focused linear attention. In ICCV, 2023b.
|
| 311 |
+
Han, K., Wang, Y., Chen, H., Chen, X., Guo, J., Liu, Z., Tang, Y., Xiao, A., Xu, C., Xu, Y., et al. A survey on vision transformer. IEEE TPAMI, 2022.
|
| 312 |
+
Hastie, T., Tibshirani, R., Friedman, J. H., and Friedman, J. H. The elements of statistical learning: data mining, inference, and prediction, volume 2. Springer, 2009.
|
| 313 |
+
Hawkins, J. and Blakeslee, S. On intelligence. Macmillan, 2004.
|
| 314 |
+
Hu, Z., Lu, G., and Xu, D. Fvc: A new framework towards deep video compression in feature space. In CVPR, 2021.
|
| 315 |
+
Huang, Z., Wang, X., Huang, L., Huang, C., Wei, Y., and Liu, W. Ccnet: Criss-cross attention for semantic segmentation. In ICCV, 2019.
|
| 316 |
+
Huang, Z., Shi, X., Zhang, C., Wang, Q., Cheung, K. C., Qin, H., Dai, J., and Li, H. Flowformer: A transformer architecture for optical flow. In ECCV, 2022.
|
| 317 |
+
Ikotun, A. M., Ezugwu, A. E., Abualigah, L., Abuhaija, B., and Heming, J. K-means clustering algorithms: A comprehensive review, variants analysis, and advances in the era of big data. Information Sciences, 2023.
|
| 318 |
+
Jaegle, A., Borgeaud, S., Alayrac, J.-B., Doersch, C., Ionescu, C., Ding, D., Koppula, S., Zoran, D., Brock, A., Shelhamer, E., et al. Perceiver io: A general architecture for structured inputs & outputs. *ICLR*, 2022.
|
| 319 |
+
Jetley, S., Romera-Paredes, B., Jayasumana, S., and Torr, P. Prototypical priors: From improving classification to zero-shot learning. arXiv preprint arXiv:1512.01192, 2015.
|
| 320 |
+
|
| 321 |
+
Jiang, S., Campbell, D., Lu, Y., Li, H., and Hartley, R. Learning to estimate hidden motions with global motion aggregation. In ICCV, 2021.
|
| 322 |
+
Jiang, Z., Lin, Z., and Davis, L. Recognizing human actions by learning and matching shape-motion prototype trees. IEEE TPAMI, 2012.
|
| 323 |
+
Kepes, G. Language of vision. Courier Corporation, 1995.
|
| 324 |
+
Khalifa, A. B., Alouani, I., Mahjoub, M. A., and Amara, N. E. B. Pedestrian detection using a moving camera: A novel framework for foreground detection. Cognitive Systems Research, 2020.
|
| 325 |
+
Khan, S., Naseer, M., Hayat, M., Zamir, S. W., Khan, F. S., and Shah, M. Transformers in vision: A survey. ACM Computing Surveys, 54(10s):1-41, 2022.
|
| 326 |
+
Kim, W., Son, B., and Kim, I. Vilt: Vision-and-language transformer without convolution or region supervision. In ICML, 2021.
|
| 327 |
+
Kondermann, D., Nair, R., Honauer, K., Krispin, K., Andrusis, J., Brock, A., Gussefeld, B., Rahimimoghaddam, M., Hofmann, S., Brenner, C., et al. The hci benchmark suite: Stereo and flow ground truth with uncertainties for urban autonomous driving. In CVPR Workshops, 2016.
|
| 328 |
+
Lee, M., Cho, S., Lee, S., Park, C., and Lee, S. Unsupervised video object segmentation via prototype memory network. In WACV, 2023.
|
| 329 |
+
Li, G., Jampani, V., Sevilla-Lara, L., Sun, D., Kim, J., and Kim, J. Adaptive prototype learning and allocation for few-shot segmentation. In CVPR, 2021a.
|
| 330 |
+
Li, J., Huang, Q., Du, Y., Zhen, X., Chen, S., and Shao, L. Variational abnormal behavior detection with motion consistency. IEEE TIP, 2021b.
|
| 331 |
+
Liang, C., Wang, W., Miao, J., and Yang, Y. Gmmseg: Gaussian mixture based generative semantic segmentation models. NeurIPS, 2022a.
|
| 332 |
+
Liang, J., Wang, Y., Chen, Y., Yang, B., and Liu, D. A triangulation-based visual localization for field robots. IEEE/CAA Journal of Automatica Sinica, 9(6):1083-1086, 2022b.
|
| 333 |
+
Liang, J., Zhou, T., and Liu, D. Clustseg: Clustering for universal segmentation. In ICML, 2023.
|
| 334 |
+
Liang, J., Cui, Y., Wang, Q., Geng, T., Wang, W., and Liu, D. Clusterfomer: Clustering as a universal visual learner. NeurIPS, 2024.
|
| 335 |
+
Lin, T., Wang, Y., Liu, X., and Qiu, X. A survey of transformers. AI Open, 2022.
|
| 336 |
+
|
| 337 |
+
Liu, Y., Ott, M., Goyal, N., Du, J., Joshi, M., Chen, D., Levy, O., Lewis, M., Zettlemoyer, L., and Stoyanov, V. Roberta: A robustly optimized bert pretraining approach. In ICLR, 2020a.
|
| 338 |
+
Liu, Y., Zhang, X., Zhang, S., and He, X. Part-aware prototype network for few-shot semantic segmentation. In ECCV, 2020b.
|
| 339 |
+
Liu, Z., Lin, Y., Cao, Y., Hu, H., Wei, Y., Zhang, Z., Lin, S., and Guo, B. Swin transformer: Hierarchical vision transformer using shifted windows. In ICCV, 2021.
|
| 340 |
+
Liu, Z., Hu, H., Lin, Y., Yao, Z., Xie, Z., Wei, Y., Ning, J., Cao, Y., Zhang, Z., Dong, L., et al. Swin transformer v2: Scaling up capacity and resolution. In CVPR, 2022.
|
| 341 |
+
Lookingbill, A., Rogers, J., Lieb, D., Curry, J., and Thrun, S. Reverse optical flow for self-supervised adaptive autonomous robot navigation. IJCV, 74:287-302, 2007.
|
| 342 |
+
Loshchilov, I. and Hutter, F. Decoupled weight decay regularization. *ICLR*, 2019.
|
| 343 |
+
Lu, G., Ouyang, W., Xu, D., Zhang, X., Cai, C., and Gao, Z. Dvc: An end-to-end deep video compression framework. In CVPR, 2019.
|
| 344 |
+
Lu, Y., Wang, Q., Ma, S., Geng, T., Chen, Y. V., Chen, H., and Liu, D. Transflow: Transformer as flow learner. In CVPR, 2023.
|
| 345 |
+
Lu, Y., Liu, D., Wang, Q., Han, C., Cui, Y., Cao, Z., Zhang, X., Chen, Y. V., and Fan, H. Promotion: Prototypes as motion learners. In CVPR, 2024.
|
| 346 |
+
Luo, A., Yang, F., Li, X., and Liu, S. Learning optical flow with kernel patch attention. In CVPR, 2022a.
|
| 347 |
+
Luo, A., Yang, F., Luo, K., Li, X., Fan, H., and Liu, S. Learning optical flow with adaptive graph reasoning. In AAAI, 2022b.
|
| 348 |
+
Ma, F., Shou, M. Z., Zhu, L., Fan, H., Xu, Y., Yang, Y., and Yan, Z. Unified transformer tracker for object tracking. In CVPR, 2022.
|
| 349 |
+
Ma, X., Zhou, Y., Wang, H., Qin, C., Sun, B., Liu, C., and Fu, Y. Image as a set of points. In ICLR 2023. URL https://openreview.net/forum?id=awnvqZja69.
|
| 350 |
+
Mantini, D., Corbetta, M., Romani, G. L., Orban, G. A., and Vanduffel, W. Data-driven analysis of analogous brain networks in monkeys and humans during natural vision. Neuroimage, 2012.
|
| 351 |
+
|
| 352 |
+
Marathe, A., Walambe, R., and Kotecha, K. Evaluating the performance of ensemble methods and voting strategies for dense 2d pedestrian detection in the wild. In ICCV, 2021.
|
| 353 |
+
Mayer, N., Ilg, E., Hausser, P., Fischer, P., Cremers, D., Dosovitskiy, A., and Brox, T. A large dataset to train convolutional networks for disparity, optical flow, and scene flow estimation. In CVPR, 2016.
|
| 354 |
+
Meyer, G. E., Neto, J. C., Jones, D. D., and Hindman, T. W. Intensified fuzzy clusters for classifying plant, soil, and residue regions of interest from color images. Computers and Electronics in Agriculture, 2004.
|
| 355 |
+
Muller, M., Bibi, A., Giancola, S., Alsubaihi, S., and Ghanem, B. Trackingnet: A large-scale dataset and benchmark for object tracking in the wild. In ECCV, 2018.
|
| 356 |
+
Nam, H. and Han, B. Learning multi-domain convolutional neural networks for visual tracking. In CVPR, 2016.
|
| 357 |
+
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. NeurIPS, 2019.
|
| 358 |
+
Patil, V., Sakaridis, C., Liniger, A., and Van Gool, L. P3depth: Monocular depth estimation with a piecewise planarity prior. In CVPR, 2022.
|
| 359 |
+
Plato. Cratylus. Plato, 402 BC.
|
| 360 |
+
Prakash, A., Chitta, K., and Geiger, A. Multi-modal fusion transformer for end-to-end autonomous driving. In CVPR, 2021.
|
| 361 |
+
Qin, Z., Han, C., Wang, Q., Nie, X., Yin, Y., and Xiankai, L. Unified 3d segmenter as prototypical classifiers. NeurIPS, 2023.
|
| 362 |
+
Raffel, C., Shazeer, N., Roberts, A., Lee, K., Narang, S., Matena, M., Zhou, Y., Li, W., and Liu, P. J. Exploring the limits of transfer learning with a unified text-to-text transformer. The Journal of Machine Learning Research, 2020.
|
| 363 |
+
Ranjan, A. and Black, M. J. Optical flow estimation using a spatial pyramid network. In CVPR, 2017.
|
| 364 |
+
Rudin, C., Chen, C., Chen, Z., Huang, H., Semenova, L., and Zhong, C. Interpretable machine learning: Fundamental principles and 10 grand challenges. Statistic Surveys, 16:1-85, 2022.
|
| 365 |
+
Shao, H., Wang, L., Chen, R., Li, H., and Liu, Y. Safety-enhanced autonomous driving using interpretable sensor fusion transformer. In Conference on Robot Learning, 2023.
|
| 366 |
+
|
| 367 |
+
Shen, S., Kerofsky, L., and Yogamani, S. Optical flow for autonomous driving: Applications, challenges and improvements. arXiv preprint arXiv:2301.04422, 2023.
|
| 368 |
+
Shi, X., Huang, Z., Li, D., Zhang, M., Cheung, K. C., See, S., Qin, H., Dai, J., and Li, H. Flowformer++: Masked cost volume autoencoding for pretraining optical flow estimation. In CVPR, 2023.
|
| 369 |
+
Simon, H. A. and Newell, A. Human problem solving: The state of the theory in 1970. American psychologist, 26(2): 145, 1971.
|
| 370 |
+
Smith, J. D. and Minda, J. P. Distinguishing prototype-based and exemplar-based processes in dot-pattern category learning. Journal of Experimental Psychology: Learning, Memory, and Cognition, 2002.
|
| 371 |
+
Song, Y., Wen, J., Liu, D., and Yu, C. Deep robotic grasping prediction with hierarchical rgb-d fusion. IJCAS, 20(1): 243-254, 2022.
|
| 372 |
+
Strudel, R., Garcia, R., Laptev, I., and Schmid, C. Segmenter: Transformer for semantic segmentation. In ICCV, 2021.
|
| 373 |
+
Sui, X., Li, S., Geng, X., Wu, Y., Xu, X., Liu, Y., Goh, R., and Zhu, H. Craft: Cross-attentional flow transformer for robust optical flow. In CVPR, 2022.
|
| 374 |
+
Sun, D., Yang, X., Liu, M.-Y., and Kautz, J. Pwc-net: Cnns for optical flow using pyramid, warping, and cost volume In CVPR, 2018.
|
| 375 |
+
Sun, D., Vlasic, D., Herrmann, C., Jampani, V., Krainin, M., Chang, H., Zabih, R., Freeman, W. T., and Liu, C. Autoflow: Learning a better training set for optical flow In CVPR, 2021.
|
| 376 |
+
Teed, Z. and Deng, J. Raft: Recurrent all-pairs field transforms for optical flow. In ECCV, 2020.
|
| 377 |
+
Tudor Ionescu, R., Smeureanu, S., Alexe, B., and Popescu, M. Unmasking the abnormal events in video. In ICCV, 2017.
|
| 378 |
+
Vaswani, A., Shazeer, N., Parmar, N., Uszkoreit, J., Jones, L., Gomez, A. N., Kaiser, L., and Polosukhin, I. Attention is all you need. In NeurIPS, 2017.
|
| 379 |
+
Vattani, A. K-means requires exponentially many iterations even in the plane. In Annual Symposium on Computational Geometry, 2009.
|
| 380 |
+
Wang, H., Zhu, Y., Adam, H., Yuille, A., and Chen, L.-C. Max-deeplab: End-to-end panoptic segmentation with mask transformers. In CVPR, 2021a.
|
| 381 |
+
|
| 382 |
+
Wang, K., Liew, J. H., Zou, Y., Zhou, D., and Feng, J. Panet: Few-shot image semantic segmentation with prototype alignment. In ICCV, 2019.
|
| 383 |
+
Wang, M., Yang, G.-Y., Lin, J.-K., Zhang, S.-H., Shamir, A., Lu, S.-P., and Hu, S.-M. Deep online video stabilization with multi-grid warping transformation learning. IEEE TIP, 2018.
|
| 384 |
+
Wang, N., Zhou, W., Wang, J., and Li, H. Transformer meets tracker: Exploiting temporal context for robust visual tracking. In CVPR, 2021b.
|
| 385 |
+
Wang, W., Xie, E., Li, X., Fan, D.-P., Song, K., Liang, D., Lu, T., Luo, P., and Shao, L. Pyramid vision transformer: A versatile backbone for dense prediction without convolutions. In ICCV, 2021c.
|
| 386 |
+
Wang, W., Liang, J., and Liu, D. Learning equivariant segmentation with instance-unique querying. NeurIPS, 2022.
|
| 387 |
+
Wang, W., Han, C., Zhou, T., and Liu, D. Visual recognition with deep nearest centroids. In ICLR, 2023.
|
| 388 |
+
Wang, Y., Xu, Z., Wang, X., Shen, C., Cheng, B., Shen, H., and Xia, H. End-to-end video instance segmentation with transformers. In CVPR, 2021d.
|
| 389 |
+
Wang, Z., Zhao, H., Li, Y.-L., Wang, S., Torr, P., and Bertinetto, L. Do different tracking tasks require different appearance models? NeurIPS, 2021e.
|
| 390 |
+
Xiong, M., Zhang, Z., Zhong, W., Ji, J., Liu, J., and Xiong, H. Self-supervised monocular depth and visual odometry learning with scale-consistent geometric constraints. In IJCAI, 2021.
|
| 391 |
+
Xu, H., Guo, M., Nedjah, N., Zhang, J., and Li, P. Vehicle and pedestrian detection algorithm based on lightweight yolov3-promote and semi-precision acceleration. IEEE Transactions on Intelligent Transportation Systems, 2022a.
|
| 392 |
+
Xu, H., Zhang, J., Cai, J., Rezatofighi, H., and Tao, D. Gmflow: Learning optical flow via global matching. In CVPR, 2022b.
|
| 393 |
+
Xu, W., Xian, Y., Wang, J., Schiele, B., and Akata, Z. Attribute prototype network for zero-shot learning. NeurIPS, 2020.
|
| 394 |
+
Yang, B., Liu, C., Li, B., Jiao, J., and Ye, Q. Prototype mixture models for few-shot semantic segmentation. In ECCV, 2020.
|
| 395 |
+
Yang, J., Liu, J., Xu, N., and Huang, J. Tvt: Transferable vision transformer for unsupervised domain adaptation. In WACV, 2023.
|
| 396 |
+
|
| 397 |
+
Yin, W., Liu, Y., Shen, C., and Yan, Y. Enforcing geometric constraints of virtual normal for depth prediction. In ICCV, 2019.
|
| 398 |
+
Yu, Q., Wang, H., Qiao, S., Collins, M., Zhu, Y., Adam, H., Yuille, A., and Chen, L.-C. k-means mask transformer. ECCV, 2022.
|
| 399 |
+
Zhai, M., Xiang, X., Lv, N., Ali, S. M., and Saddik, A. E. Skflow: Optical flow estimation using selective kernel networks. NeurIPS, 2022.
|
| 400 |
+
Zhang, F., Woodford, O. J., Prisacariu, V. A., and Torr, P. H. Separable flow: Learning motion cost volumes for optical flow estimation. In ICCV, 2021.
|
| 401 |
+
Zhang, N., Nex, F., Vosselman, G., and Kerle, N. Lite mono: A lightweight cnn and transformer architecture for self-supervised monocular depth estimation. In CVPR, 2023.
|
| 402 |
+
Zhang, Z., Peng, H., Fu, J., Li, B., and Hu, W. Ocean: Object-aware anchor-free tracking. In ECCV, 2020.
|
| 403 |
+
Zhao, M. and Ling, Q. Pwstablenet: Learning pixel-wise warping maps for video stabilization. IEEE TIP, 2020.
|
| 404 |
+
Zhao, S., Zhao, L., Zhang, Z., Zhou, E., and Metaxas, D. Global matching with overlapping attention for optical flow estimation. In CVPR, 2022.
|
| 405 |
+
Zhao, W., Liu, S., Shu, Y., and Liu, Y.-J. Towards better generalization: Joint depth-posed learning without posenet. In CVPR, 2020.
|
| 406 |
+
Zheng, S., Lu, J., Zhao, H., Zhu, X., Luo, Z., Wang, Y., Fu, Y., Feng, J., Xiang, T., Torr, P. H., et al. Rethinking semantic segmentation from a sequence-to-sequence perspective with transformers. In CVPR, 2021.
|
| 407 |
+
Zheng, Z., Nie, N., Ling, Z., Xiong, P., Liu, J., Wang, H., and Li, J. Dip: Deep inverse patchmatch for high-resolution optical flow. In CVPR, 2022.
|
| 408 |
+
Zhou, D., Kang, B., Jin, X., Yang, L., Lian, X., Jiang, Z., Hou, Q., and Feng, J. Deepvit: Towards deeper vision transformer. arXiv preprint arXiv:2103.11886, 2021a.
|
| 409 |
+
Zhou, J. T., Du, J., Zhu, H., Peng, X., Liu, Y., and Goh, R. S. M. Anomalynet: An anomaly detection network for video surveillance. IEEE Transactions on Information Forensics and Security, 2019.
|
| 410 |
+
Zhou, T., Wang, W., Konukoglu, E., and Van Gool, L. Rethinking semantic segmentation: A prototype view. In CVPR, 2022.
|
| 411 |
+
Zhou, Z., Fan, X., Shi, P., and Xin, Y. R-msfm: Recurrent multi-scale feature modulation for monocular depth estimating. In ICCV, 2021b.
|
| 412 |
+
|
| 413 |
+
Zhu, C., Ping, W., Xiao, C., Shoeybi, M., Goldstein, T., Anandkumar, A., and Catanzaro, B. Long-short transformer: Efficient transformers for language and vision. NeurIPS, 2021.
|
| 414 |
+
|
| 415 |
+
# SUMMARY OF THE APPENDIX
|
| 416 |
+
|
| 417 |
+
This supplementary contains additional experimental results and discussions of our ICML 2024 submission: Prototypical Transformer as Unified Motion Learners, organized as follows:
|
| 418 |
+
|
| 419 |
+
- §S1 provides detailed training configuration and testing configuration on optical flow and scene depth estimation.
|
| 420 |
+
- §S2 provides more qualitative results and comparisons for optical flow and scene depth estimation.
|
| 421 |
+
- §S3 offers comprehensive ablation studies on scene depth estimation.
|
| 422 |
+
- §S4 provides detailed Proof on the guarantees of $EM$ convergence.
|
| 423 |
+
- §S5 includes additional experiments on object tracking.
|
| 424 |
+
- §S6 includes additional experiments on video stabilization.
|
| 425 |
+
- §S7 discusses the Pseudo codes.
|
| 426 |
+
|
| 427 |
+
# S1. Training and Testing Configuration
|
| 428 |
+
|
| 429 |
+
Our training methodology for ProtoFormer was adapted from established optical flow training protocols (Jiang et al., 2021; Huang et al., 2022). Initially, the model underwent a pre-training phase on the FlyingChairs dataset (Dosovitskiy et al., 2015), followed by an additional 120,000 iterations on the FlyingThings dataset (Mayer et al., 2016), a procedure we denote as “C+T.” Subsequently, the model underwent fine-tuning on a combined dataset encompassing FlyingThings (Mayer et al., 2016), Sintel (Butler et al., 2012b), KITTI-2015 (Geiger et al., 2013), and HD1K (Kondermann et al., 2016), referred to as “C+T+S+K+H”. To optimize performance specifically for the KITTI-2015 benchmark (Geiger et al., 2013), we conducted a further fine-tuning phase on the KITTI-2015 dataset for 50,000 iterations. The training employed AdamW (Loshchilov & Hutter, 2019) optimizer and a one-cycle learning rate scheduler, with the peak learning rate set at $2.5 \times 10^{-4}$ for the FlyingChairs dataset and $1.25 \times 10^{-4}$ for the other datasets. Recognizing the sensitivity of transformer positional encodings to variations in image size, we adopted an image processing approach akin to that used in Perceiver IO (Jaegle et al., 2022). This involved cropping image pairs for flow estimation and subsequently tiling them to reconstruct complete flows. For depth prediction, we adhere to the architecture and configurations analogous to those employed for optical flow, as delineated in the respective headers. We initially adopt the VKITTI (Cabon et al., 2020) as a pretraining, and subsequently canonical Eigen split (Eigen et al., 2014)
|
| 430 |
+
|
| 431 |
+
and MPI Sintel dataset (Butler et al., 2012b) to refine the model through fine-tuning, noted for its distinct edges and diverse motion intensities. No additional data augmentation was used for the testing of all tasks.
|
| 432 |
+
|
| 433 |
+
Loss Function. For optical flow, A sequence loss is utilized for the training, which is defined over the sequence of flow predictions. For depth prediction, square root of the scale invariant logarithmic loss (SILog) is utilized for the training.
|
| 434 |
+
|
| 435 |
+
<table><tr><td rowspan="2">Method</td><td colspan="2">LaSOT</td><td colspan="2">TrackingNet</td></tr><tr><td>Success ↑</td><td>Precision ↑</td><td>Success ↑</td><td>Precision ↑</td></tr><tr><td>SiamFC (Bertinetto et al., 2016)</td><td>33.6</td><td>33.9</td><td>57.1</td><td>66.3</td></tr><tr><td>MDNet (Nam & Han, 2016)</td><td>39.7</td><td>37.3</td><td>60.6</td><td>56.6</td></tr><tr><td>ECO (Danelljan et al., 2017)</td><td>32.4</td><td>30.1</td><td>55.4</td><td>49.2</td></tr><tr><td>KYS (Bhat et al., 2020)</td><td>55.4</td><td>55.8</td><td>74.0</td><td>68.8</td></tr><tr><td>Ocean (Zhang et al., 2020)</td><td>52.6</td><td>52.6</td><td>70.3</td><td>68.8</td></tr><tr><td>TrDiMP (Wang et al., 2021b)</td><td>63.9</td><td>61.4</td><td>78.4</td><td>73.1</td></tr><tr><td>TransT (Chen et al., 2021)</td><td>64.9</td><td>69.0</td><td>81.4</td><td>80.3</td></tr><tr><td>UniTrack (Wang et al., 2021e)</td><td>35.1</td><td>32.6</td><td>59.1</td><td>51.2</td></tr><tr><td>UTT (Ma et al., 2022)</td><td>64.6</td><td>67.2</td><td>79.7</td><td>77.0</td></tr><tr><td>UTT + Ours</td><td>64.8</td><td>67.4</td><td>80.0</td><td>77.2</td></tr></table>
|
| 436 |
+
|
| 437 |
+
Table S1: Quantitative results on LaSOT and TrackingNet datasets. We are able to achieve competitive performance over state-of-the-art methods.
|
| 438 |
+
|
| 439 |
+
# S2. More Qualitative Results
|
| 440 |
+
|
| 441 |
+
We show more qualitative results on the main tasks, optical flow and scene depth, in Fig. S2 and Fig. S3.
|
| 442 |
+
|
| 443 |
+
# S3. Ablation Studies on Scene Depth Estimation
|
| 444 |
+
|
| 445 |
+
In §4.3, we ablate comprehensively under the optical flow setting. In this section, we further report ablation studies on scene depth estimation for completeness.
|
| 446 |
+
|
| 447 |
+
Key Components Analysis. We study the two major components of ProtoFormer: Cross-Attention Prototyping (§3.2.1) and Latent Synchronization (§3.2.2). Same to our paper, the Base model is designed without considering prototype updating and prototype-feature assignment. In Table S2a, Base reaches 0.074 in Abs Rel and 2.835 in RMSE. Adding Cross-Attention Prototyping gets substantial improvements (i.e., $0.074 \rightarrow 0.067$ in Abs Rel). Considering Latent Synchronization brings a performance gain (i.e., $0.074 \rightarrow 0.071$ ). Finally, the integration of these two techniques reaches peak performance as ProtoFormer, which is consistent to the tendency in our paper.
|
| 448 |
+
|
| 449 |
+
Cross-Attention Prototyping. We also study the efficacy of Cross-Attention Prototyping design by comparing to different updating methods. For efficient and effective perspectives, our Cross-Attention Prototyping outperforms competitive methods (see Table S2b). We further study the iteration step $N$ in Table S2c, suggesting that when increasing $N$ from 1 to 4, the error progressively decreases from 0.070 to 0.061, and almost saturates at 4. Considering the computa
|
| 450 |
+
|
| 451 |
+

|
| 452 |
+
Figure S1: Visualization of proto-feature mapping in depth. The map shows distinct prototypes with similar representations, indicating straightforward explainability.
|
| 453 |
+
|
| 454 |
+

|
| 455 |
+
|
| 456 |
+

|
| 457 |
+
|
| 458 |
+

|
| 459 |
+
|
| 460 |
+
Table S2: Ablative studies on scene depth (see §S3).
|
| 461 |
+
|
| 462 |
+
<table><tr><td>Algorithm Component</td><td>#Params</td><td>Abs Rel</td><td>RMSE</td></tr><tr><td>Base</td><td>9.63M</td><td>0.074</td><td>2.835</td></tr><tr><td>+ Cross-Attention Prototyping</td><td>11.57M</td><td>0.067</td><td>2.742</td></tr><tr><td>+ Latent Synchronization</td><td>10.26M</td><td>0.071</td><td>2.819</td></tr><tr><td>ProtoFormer (All included)</td><td>11.90M</td><td>0.062</td><td>2.716</td></tr></table>
|
| 463 |
+
|
| 464 |
+
(a) Key Component Analysis
|
| 465 |
+
|
| 466 |
+
<table><tr><td>Variant Prototype Updating Strategy</td><td>#Params</td><td>Abs Rel</td><td>RMSE</td></tr><tr><td>Cosine Similarity</td><td>10.28M</td><td>0.066</td><td>2.775</td></tr><tr><td>Vanilla Cross-Attention (Vaswani et al., 2017)</td><td>14.88M</td><td>0.066</td><td>2.767</td></tr><tr><td>Criss Cross-Attention (Huang et al., 2019)</td><td>14.56M</td><td>0.065</td><td>2.750</td></tr><tr><td>K-Means (Yu et al., 2022)</td><td>11.81M</td><td>0.063</td><td>2.743</td></tr><tr><td>Cross-Attention Prototyping</td><td>11.90M</td><td>0.062</td><td>2.716</td></tr></table>
|
| 467 |
+
|
| 468 |
+
(b) Cross-Attention Prototyping
|
| 469 |
+
|
| 470 |
+
<table><tr><td>#Iterations (N)</td><td>#Params</td><td>Abs Rel</td><td>RMSE</td></tr><tr><td>1</td><td rowspan="4">11.90M</td><td>0.070</td><td>2.801</td></tr><tr><td>2</td><td>0.065</td><td>2.737</td></tr><tr><td>3</td><td>0.062</td><td>2.716</td></tr><tr><td>4</td><td>0.061</td><td>2.713</td></tr></table>
|
| 471 |
+
|
| 472 |
+
(c) Number of Iterations
|
| 473 |
+
|
| 474 |
+
<table><tr><td>#Prototypes (K)</td><td>#Params</td><td>Abs Rel</td><td>RMSE</td></tr><tr><td>10</td><td>8.95M</td><td>0.070</td><td>2.775</td></tr><tr><td>50</td><td>9.78M</td><td>0.067</td><td>2.734</td></tr><tr><td>100</td><td>11.90M</td><td>0.062</td><td>2.716</td></tr><tr><td>200</td><td>14.21M</td><td>0.064</td><td>2.720</td></tr></table>
|
| 475 |
+
|
| 476 |
+
(d) Number of Prototypes
|
| 477 |
+
|
| 478 |
+
<table><tr><td>Latent Synchronization</td><td>#Params</td><td>Abs Rel</td><td>RMSE</td></tr><tr><td>None</td><td>11.27M</td><td>0.067</td><td>2.732</td></tr><tr><td>Vanilla FC Layer</td><td>11.64M</td><td>0.064</td><td>2.724</td></tr><tr><td>FC w/ Similarity (Ma et al., 2023)</td><td>11.76M</td><td>0.063</td><td>2.718</td></tr><tr><td>Ours</td><td>11.90M</td><td>0.062</td><td>2.716</td></tr></table>
|
| 479 |
+
|
| 480 |
+
(e) Latent Synchronization
|
| 481 |
+
|
| 482 |
+
tion time in iterations, we set $N = 3$ to strike the optimal balance between performance and computation. Consistent to our paper, we investigate the variant of $K$ (i.e., number of prototypes) in Table S2d. We select the preferred setting at $K = 100$ .
|
| 483 |
+
|
| 484 |
+
Latent Synchronization. We further study our Latent Synchronization in Table S2e. With a standard setting without any feature-prototype corresponding, the model achieves 0.067 in Abs Rel. Applying a vanilla fully-connected layer increases the performance to 0.064. Though inspiring, our proposed Latent Synchronization with carefully anchored prototypes yields advanced performance across all ablative methods (i.e., 0.062).
|
| 485 |
+
|
| 486 |
+
# S4. Proof on the Guarantees of EM Convergence
|
| 487 |
+
|
| 488 |
+
We first introduce the regularity condition, including a Euclidean ball of radius $r$ around the fixed point $\hat{\theta}$ , set as:
|
| 489 |
+
|
| 490 |
+
$$
|
| 491 |
+
\mathcal {B} _ {2} (r; \theta) := \left\{\theta \in \Omega \mid | | \theta - \hat {\theta} | | _ {2} \leq r \right\}. \tag {8}
|
| 492 |
+
$$
|
| 493 |
+
|
| 494 |
+
For simplicity, we define $\hat{\theta} = \arg \max_{\theta} U(\cdot |\theta)$ while we have introduced our unified motion solution in Eq. 2.
|
| 495 |
+
|
| 496 |
+
For First-order Stability (FOS), the functions $U(\cdot |\theta)$ satisfy condition $\mathrm{FOS}(\gamma)$ over $\mathcal{B}_2(r;\theta)$ if:
|
| 497 |
+
|
| 498 |
+
$$
|
| 499 |
+
\left| \left| \nabla U (M (\cdot | \hat {\theta})) - \nabla U (M (\cdot | \theta)) \right| \right| _ {2} \leq \gamma \left| \left| \theta - \hat {\theta} \right| \right| _ {2}, \tag {9}
|
| 500 |
+
$$
|
| 501 |
+
|
| 502 |
+
for all $\theta \in \mathcal{B}_2(r;\hat{\theta})$ . With radius $\gamma = 0$ , the condition of
|
| 503 |
+
|
| 504 |
+
Eq. 9 is always held at the fixed point $\hat{\theta}$ . Extend further, by allowing for an always positive $\gamma$ , given fixed point $\hat{\theta}$ , Eq. 9 would always hold in a local neighborhood $\mathcal{B}_2(r; \hat{\theta})$ .
|
| 505 |
+
|
| 506 |
+
Under these conditions, we further guarantee the $EM$ operator to be locally contraction.
|
| 507 |
+
|
| 508 |
+
Theorem 1. For $\gamma >0$ , and having $0\leq \gamma \leq \lambda$ , suppose the function $U(\cdot |\hat{\theta})$ is $\lambda$ -strongly concave and $\mathrm{FOS}(\gamma)$ holds for $\mathcal{B}_2(r;\hat{\theta})$ , we have the $EM$ operator $M$ is contractive over $\mathcal{B}_2(r;\hat{\theta})$ as:
|
| 509 |
+
|
| 510 |
+
$$
|
| 511 |
+
\left| \left| M (\theta) - \hat {\theta} \right| \right| _ {2} \leq \frac {\gamma}{\lambda} \left| \left| \theta - \hat {\theta} \right| \right| _ {2} \tag {10}
|
| 512 |
+
$$
|
| 513 |
+
|
| 514 |
+
for all $\theta \in \mathcal{B}_2(r;\hat{\theta})$ . Intuitively, we can conduct that for any initial point $\theta^{(0)}\in \mathcal{B}_2(r;\hat{\theta})$ , $\left\{\theta^{(n)}\right\}_{n = 0}^{\infty}$ exhibits linear convergence. Formally, we have:
|
| 515 |
+
|
| 516 |
+
$$
|
| 517 |
+
\left| \left| \theta^ {(n)} - \hat {\theta} \right| \right| _ {2} \leq \left(\frac {\gamma}{\lambda}\right) ^ {n} \left| \left| \theta^ {0} - \hat {\theta} \right| \right| _ {2}, \tag {11}
|
| 518 |
+
$$
|
| 519 |
+
|
| 520 |
+
for all $n \in \{1, 2, \dots, N\}$ . Here we define $n$ in a finite set for intuitive reference below.
|
| 521 |
+
|
| 522 |
+
Acknowledging the preliminary conditions in Theorem 1, we further present the proof for Proposition 1 below.
|
| 523 |
+
|
| 524 |
+
Proof. For any iteration $n \in \{1, 2, \dots, N\}$ , we have:
|
| 525 |
+
|
| 526 |
+
$$
|
| 527 |
+
\left| \left| M _ {m / N} \left(\theta^ {(n)}\right) - M \left(\theta^ {(n)}\right) \right| \right| _ {2} \leq \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right), \tag {12}
|
| 528 |
+
$$
|
| 529 |
+
|
| 530 |
+
with probability at least $1 - \frac{\delta}{N}$ . Consequently, by a union bound over $N$ , Eq. 12 holds uniformly with probability at
|
| 531 |
+
|
| 532 |
+

|
| 533 |
+
Figure S2: More qualitative comparison on the KITTI test set. The red boxes highlight the regions compared. Our method estimates more consistent and detailed flows.
|
| 534 |
+
|
| 535 |
+

|
| 536 |
+
Figure S3: More qualitative comparison on the Sintel test set. The red boxes highlight the regions compared. Our method contributes to clearer depths without being affected by shadows or occlusions.
|
| 537 |
+
|
| 538 |
+

|
| 539 |
+
Figure S4: Qualitative results on object tracking on LaSOT dataset. With our enhanced method, the original ambiguous tracking due to illuminant changes and heavy occlusion becomes more accurate.
|
| 540 |
+
|
| 541 |
+

|
| 542 |
+
Figure S5: Qualitative results on video stabilization. With our method enhanced, the original unstable video frames become much smoother and clearer.
|
| 543 |
+
|
| 544 |
+
least $1 - \delta$ . It suffices to show that
|
| 545 |
+
|
| 546 |
+
$$
|
| 547 |
+
\left| \left| \theta^ {(n + 1)} - \hat {\theta} \right| \right| _ {2} \leq \kappa \left| \left| \theta^ {(n)} - \hat {\theta} \right| \right| _ {2} + \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right), \tag {13}
|
| 548 |
+
$$
|
| 549 |
+
|
| 550 |
+
for each iteration $n \in \{1, 2, \dots, N\}$ . When Eq. 13 holds, we can iteratively show that:
|
| 551 |
+
|
| 552 |
+
$$
|
| 553 |
+
\begin{array}{l} | | \theta^ {(n)} - \hat {\theta} | | _ {2} \leq \kappa | | \theta^ {(n - 1)} - \hat {\theta} | | _ {2} + \epsilon_ {M} (\frac {m}{N}, \frac {\delta}{N}) \\ \leq \kappa \left\{\kappa | | \theta^ {(n - 2)} - \hat {\theta} | | _ {2} + \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right) \right\} + \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right) \\ \leq \kappa^ {(n)} | | \theta^ {(0)} - \hat {\theta} | | _ {2} + \left\{\sum_ {n = 0} ^ {n - 1} \kappa^ {n} \right\} \epsilon_ {M} (\frac {m}{N}, \frac {\delta}{N}) \\ \leq \kappa^ {n} | | \theta^ {(0)} - \hat {\theta} | | _ {2} + \frac {1}{1 - \kappa} \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right). \tag {14} \\ \end{array}
|
| 554 |
+
$$
|
| 555 |
+
|
| 556 |
+
The final step follows by summing the geometric series.
|
| 557 |
+
|
| 558 |
+
Thus, we need to prove Eq. 13 via induction on the iteration number. Start with $n = 1$ , we have:
|
| 559 |
+
|
| 560 |
+
$$
|
| 561 |
+
\begin{array}{l} | | \theta^ {(1)} - \hat {\theta} | | _ {2} = | | M _ {m / N} (\theta^ {(0)}) - M (\theta^ {(n)}) | | _ {2} \\ (\mathbf {I}) \leq | | M (\theta^ {(0)}) - \hat {\theta} | | _ {2} + | | M _ {m / N} (\theta^ {(0)}) - M (\theta^ {(0)}) | | _ {2} \\ (\mathbf {I I}) \leq \kappa | | M \left(\theta^ {(0)}\right) - \hat {\theta} | | _ {2} + \epsilon_ {M} \left(\frac {m}{N}, \frac {\delta}{N}\right), \tag {15} \\ \end{array}
|
| 562 |
+
$$
|
| 563 |
+
|
| 564 |
+
where step (I) follows by the triangle inequality, step (II) follows from Eq. 13, and the contractivity of the operator applied to $\theta^{(0)}\in \mathcal{B}_2(r;\hat{\theta})$ . In the induction from $n\to n + 1$ suppose that $\| \theta^{(n)} - \hat{\theta}\| _2\leq r$ , and the bound holds (i.e., Eq. 13) for iteration $n$ . The same augment then implies that the bound from Eq. 13 also holds for iteration $n + 1$ , and that $\| \theta^{(n + 1)} - \hat{\theta}\| _2\leq r$ , thus completing the proof.
|
| 565 |
+
|
| 566 |
+
<table><tr><td>Method</td><td>Distortion Value ↑</td><td>Stability Score ↑</td></tr><tr><td>StabNet (Wang et al., 2018)</td><td>0.83</td><td>0.75</td></tr><tr><td>StabNet + Ours</td><td>0.85 (0.02 ↑)</td><td>0.80 (0.05 ↑)</td></tr><tr><td>PWStableNet (Zhao & Ling, 2020)</td><td>0.79</td><td>0.80</td></tr><tr><td>PWStableNet + Ours</td><td>0.82 (0.03 ↑)</td><td>0.83 (0.03 ↑)</td></tr></table>
|
| 567 |
+
|
| 568 |
+
Table S3: Quantitative results on DeepStab dataset. We are able to achieve competitive performance over current methods.
|
| 569 |
+
|
| 570 |
+
# S5. Experiments on Object Tracking
|
| 571 |
+
|
| 572 |
+
To further support our proposed ProtoFormer as a general solution to various tasks, we extend our design to object tracking following (Ma et al., 2022). Intuitively, we follow (Ma et al., 2022) and integrate the encoder and decoder into one object transformer where we replace the self-attention into our proposed cross-attention prototyping.
|
| 573 |
+
|
| 574 |
+
We evaluate our method on the testing splits of LaSOT (Fan et al., 2019) and TrackingNet (Muller et al., 2018) following common practices (Ma et al., 2022; Chen et al., 2023).
|
| 575 |
+
|
| 576 |
+
Specifically, LaSOT (Fan et al., 2019) includes 1,400 sequences: 1, 120 for training and 280 for testing, respectively. TrackingNet (Muller et al., 2018) contains $30K$ sequences with 511 sequences for testing. Success and Precision metrics are applied for performance evaluation. We follow the same training schedule as (Ma et al., 2022) for fairness. As seen in Table S1, our approach achieves competitive results to current methods (e.g., $0.2\%$ and $0.2\%$ higher than UTT on Success and Precision on LaSOT dataset, respectively). Qualitative results are shown in Fig S4.
|
| 577 |
+
|
| 578 |
+
Algorithm 1 Pseudo-code of Cross-attention Prototyping in a PyTorch-like style.
|
| 579 |
+
```
|
| 580 |
+
feats: output feature embeddings from regular projection, shape: (batch_size, channels, height, width)
|
| 581 |
+
P_0: initial cluster centers by adaptive pooling from the features, shape: (batch_size, num_clusters, dimension)
|
| 582 |
+
P: cluster centers, shape: (batch_size, num_clusters, dimension)
|
| 583 |
+
N: iteration number for recursive prototyping layer
|
| 584 |
+
```
|
| 585 |
+
# One-step cross-attention prototyping in Eq.5
|
| 586 |
+
def one_prototyping_layer(Q, K, V):
|
| 587 |
+
# E-step
|
| 588 |
+
output = torch/matmul(Q, K.transpose(-2, -1))
|
| 589 |
+
M = torch(nnfunctional softmax(output, dim = -2))
|
| 590 |
+
# M-step
|
| 591 |
+
P = torch/matmul(M, V)
|
| 592 |
+
return P
|
| 593 |
+
# Iteratively cross-attention prototyping layer
|
| 594 |
+
def CrossAttentionPrototyping(feats, P_0, N):
|
| 595 |
+
Q = nn.Linear(P_0)
|
| 596 |
+
K = nn.Linear(feats)
|
| 597 |
+
V = nn.Linear(feats)
|
| 598 |
+
P = P_0 + one_prototyping_layer(Q, K, V)
|
| 599 |
+
for _ in range(N-1):
|
| 600 |
+
Q = nn.Linear(P)
|
| 601 |
+
P = P + one_prototyping_layer(Q, K, V)
|
| 602 |
+
return P
|
| 603 |
+
|
| 604 |
+
# S6. Experiments on Video Stabilization
|
| 605 |
+
|
| 606 |
+
We further evaluate our method on video-based downstream task - video stabilization, following common training configurations from (Wang et al., 2018; Zhao & Ling, 2020; Lu et al., 2023). Specifically, DeepStab (Wang et al., 2018) contains 61 pairs of synchronized videos with diverse camera movements. Distortion Value and Stability Score are applied for performance evaluation. In Table S3, we report the results comparing to competitive methods (i.e., StabNet (Wang et al., 2018), PWStableNet (Zhao & Ling, 2020)). Specifically, we follow TransFlow (Lu et al., 2023), aggregating the learned features from TransFlow's encoder
|
| 607 |
+
|
| 608 |
+
Algorithm 2 Pseudo-code of Latent Synchronization in a PyTorch-like style.
|
| 609 |
+
```python
|
| 610 |
+
```
|
| 611 |
+
feats: output feature embeddings from regular projection, shape: (batch_size, channels, height, width)
|
| 612 |
+
P: prototypes, shape: (batch_size, num_prototypes, dimension)
|
| 613 |
+
```
|
| 614 |
+
```
|
| 615 |
+
# Latent synchronization in Eq.6
|
| 616 |
+
def latent_synchronization(feats, P):
|
| 617 |
+
max_value, max_index = similarity(feats, P).
|
| 618 |
+
max(dim = 1, keepdim = True)
|
| 619 |
+
mask = torch.zeros_like(similarity(feats, P))
|
| 620 |
+
maskscatter_(1, max_index, 1.)
|
| 621 |
+
Q = nn.Linear(feats)
|
| 622 |
+
K = nn.Linear(P)
|
| 623 |
+
V = nn.Linear(P)
|
| 624 |
+
feats += FFN(attention_layer(Q, K, V, attn_mask = mask))
|
| 625 |
+
return feats
|
| 626 |
+
```
|
| 627 |
+
|
| 628 |
+
(i.e., replacing the origin attention with our proposed cross-attention prototyping and latent synchronization) and the original encoder together for the later regressor. Significant performance boost can be observed in both Distortion Value and Stability Score. Qualitative results are shown in Fig S5.
|
| 629 |
+
|
| 630 |
+
# S7. Pseudo-codes
|
| 631 |
+
|
| 632 |
+
ProtoFormer is implemented in Pytorch (Paszke et al., 2019). Experiments are conducted on eight NVIDIA A100-40GB GPUs. We provide the pseudo codes of our proposed ProtoFormer Cross-Attention Prototyping in Algorithm 1 and Latent Synchronization in Algorithm 2.
|
2024/Prototypical Transformer As Unified Motion Learners/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d4d4a33af4bcd10dab1db1f8da830af3557adc46c6f18865e07151c9ef978797
|
| 3 |
+
size 1641179
|
2024/Prototypical Transformer As Unified Motion Learners/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/b86bcb03-320b-451b-9713-eeafe8f7760a_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e2a75cff61237063d0e2f63513715c7d826e597fe1182362bd32fe66aefcba29
|
| 3 |
+
size 953150
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/full.md
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:4337de7d270bc84ac6f695b727175faf4aa6fb7fd9efe1063aeffc3fcf78d2c5
|
| 3 |
+
size 3338736
|
2024/Provable Benefits of Local Steps in Heterogeneous Federated Learning for Neural Networks_ A Feature Learning Perspective/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_model.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Contrastive Continual Learning/d8f18dfb-9faf-4c24-8250-521950dfb027_origin.pdf
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d287522ea53aacc738cb9b6be397a53853d8db9a7321c3d8587e5dc939a16e1b
|
| 3 |
+
size 662136
|
2024/Provable Contrastive Continual Learning/full.md
ADDED
|
@@ -0,0 +1,767 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
Yichen Wen $^{*12}$ Zhiquan Tan $^{*3}$ Kaipeng Zheng $^{1}$ Chuanlong Xie $^{2}$ Weiran Huang $^{†14}$
|
| 2 |
+
|
| 3 |
+
# Abstract
|
| 4 |
+
|
| 5 |
+
Continual learning requires learning incremental tasks with dynamic data distributions. So far, it has been observed that employing a combination of contrastive loss and distillation loss for training in continual learning yields strong performance. To the best of our knowledge, however, this contrastive continual learning framework lacks convincing theoretical explanations. In this work, we fill this gap by establishing theoretical performance guarantees, which reveal how the performance of the model is bounded by training losses of previous tasks in the contrastive continual learning framework. Our theoretical explanations further support the idea that pre-training can benefit continual learning. Inspired by our theoretical analysis of these guarantees, we propose a novel contrastive continual learning algorithm called CILA, which uses adaptive distillation coefficients for different tasks. These distillation coefficients are easily computed by the ratio between average distillation losses and average contrastive losses from previous tasks. Our method shows great improvement on standard benchmarks and achieves new state-of-the-art performance.
|
| 6 |
+
|
| 7 |
+
# 1. Introduction
|
| 8 |
+
|
| 9 |
+
Incrementally learning a sequence of tasks with dynamic data distributions is a typical setting for continual learning. We call the learned neural networks "continual learners". The main challenge for continual learners is to obtain a suitable trade-off between learning plasticity and memory stability. Specifically, excessive focus on learning plasticity of new tasks often leads to greatly reduced performance
|
| 10 |
+
|
| 11 |
+
*Equal contribution $^{1}$ MIFA Lab, Qing Yuan Research Institute, SEIEE, Shanghai Jiao Tong University $^{2}$ Beijing Normal University $^{3}$ Department of Mathematical Sciences, Tsinghua University $^{4}$ Shanghai AI Laboratory. †Correspondence to: Weiran Huang <weiran.huang@outlook.com>. This work was conducted during the period when the first two authors were visiting MIFA Lab.
|
| 12 |
+
|
| 13 |
+
Proceedings of the $41^{st}$ International Conference on Machine Learning, Vienna, Austria. PMLR 235, 2024. Copyright 2024 by the author(s).
|
| 14 |
+
|
| 15 |
+
on old tasks (McClelland et al., 1995), which is known as catastrophic forgetting.
|
| 16 |
+
|
| 17 |
+
To address the challenge, the literature on continual learning has proposed various approaches. Representation-based approaches take advantage of representations. As one of these approaches, self-supervised learning with contrastive loss has demonstrated notable efficacy in obtaining robust representations against catastrophic forgetting in continual learning (Gallardo et al., 2021; Fini et al., 2022). For these methods based on contrastive loss, the training of representations is often decoupled with the training of the classifier, unlike methods based on cross-entropy. Specifically, contrastively trained representations suffer less catastrophic forgetting than ones trained by cross-entropy loss (Cha et al., 2021). Replay-based approaches use buffers to restore a part of previous data, and train networks using data from a combination of the current task and the buffer (Lopez-Paz & Ranzato, 2017). Naturally, these methods are combined with knowledge distillation strategies to prevent the degradation of information in the network over time (Rebuffi et al., 2017). Regularization-based approaches introduce regularization terms to the target loss for continual learning to reach a balance between learning new tasks and preserving information from old tasks (Kirkpatrick et al., 2017). Two main sub-directions within regularization-based approaches include weight regularization (Ritter et al., 2018) and function regularization (Li & Hoiem, 2016).
|
| 18 |
+
|
| 19 |
+
To achieve effective continual learning, a natural idea is to combine the three approaches above, and this idea leads to a new framework called contrastive continual learning (Cha et al., 2021), as illustrated in Figure 1. This framework focuses on using contrastively learned representations to learn new tasks and utilizing knowledge distillation to preserve information from past tasks, with the help of memory buffer and function regularization. The target loss of this framework contains a contrastive loss and a distillation loss with a distillation coefficient $\lambda$ . The training data will be selected from the combination of the current data and buffered data. Empirically, this framework has been observed to be efficient, showing promising performance in continual learning (Cha et al., 2021). Despite the growing attention directed towards this framework, limited theoretical works have been proposed to explain its superior performance.
|
| 20 |
+
|
| 21 |
+
In this paper, we try to address the theoretical problem of why this framework is efficient. Therefore, we consider the losses provided in (Cha et al., 2021). We have found a clear relationship between the contrastive losses of two consecutive models in continual learning. Inspired by this, we propose theoretical performance guarantees that reveal how the population test loss, i.e., the total performance of the final model on all seen tasks, is bounded by the series of training losses for the contrastive continual learning framework. Based on our theory, we propose a new and efficient contrastive continual learning algorithm called CILA, which uses distillation coefficients adapted to different tasks. Moreover, CILA consistently outperforms all baselines in different scenarios, datasets, and buffer sizes, e.g., about $1.77\%$ improvement compared with the previous state-of-the-art method $\mathrm{Co}^2\mathrm{L}$ (Cha et al., 2021) on Seq-CIFAR-10 with a buffer of 500 samples for Class-IL scenario.
|
| 22 |
+
|
| 23 |
+
Overall, our contributions are listed as follows. (1) We provide theoretical performance guarantees for the contrastive continual learning scheme. We identify that the overall performance of the final learned model on all seen tasks can be bounded by a function of the series of training losses with the distillation coefficient; (2) We propose an efficient algorithm CILA, which uses adaptive distillation coefficient $\lambda_{t}$ (replace $\lambda$ with $\lambda_{t}$ in Figure 1) for each task $t$ ; (3) We conduct extensive experiments to validate the efficacy of our algorithm, and the results strongly support our theory. Our method can inspire future works in contrastive continual learning.
|
| 24 |
+
|
| 25 |
+
# 2. Related Work
|
| 26 |
+
|
| 27 |
+
Continual learning. Continual learning is also referred to as incremental learning, which learns incremental tasks effectively (Wang et al., 2023). The literature in this field mainly focuses on several streams including weight and function regularization (Jung et al., 2020), memory replay (Prabhu et al., 2020), sparse representations (Javed & White, 2019), parameter isolation (Gurbuz & Dovrolis, 2022), and dynamic architecture (Ramesh & Chaudhari, 2021).
|
| 28 |
+
|
| 29 |
+
As one of these effective continual learning methods, replay-based methods have demonstrated superior performance in terms of both learning plasticity and memory stability (Riemer et al., 2019). Replay-based continual learning methods are developed from the idea of Experience Replay (Buzzega et al., 2020), which typically stores past training samples in a fixed-size buffer. Currently, these replay-based methods are divided into two main streams, including experience replay and generative replay. Experience replay-based methods focus on the construction of memory buffer (Riemer et al., 2019; Tiwari et al., 2022) and storage efficiency (Caccia et al., 2019; Bang et al., 2021). Generative replay-based methods concentrate on generative
|
| 30 |
+
|
| 31 |
+
adversarial networks (GANs) to generate fine-grained data (Cong et al., 2020; Ayub & Wagner, 2021).
|
| 32 |
+
|
| 33 |
+
Representation-based methods for continual learning are also observed to be competitive. Recent works in continual learning take advantage of self-supervised learning to obtain robust representations, showing great performance on downstream tasks (Pham et al., 2021). Large-scale pre-training also contributes to improving transferable and robust representations for downstream continual learning (Gallardo et al., 2021; Ramasesh et al., 2022).
|
| 34 |
+
|
| 35 |
+
Regularization-based methods mainly focus on weight and function regularization. Weight regularization methods add penalties to the loss function, typically the penalty is a quadratic one (Kirkpatrick et al., 2017; Liu et al., 2018), and function regularization methods implement knowledge distillation on the intermediate or final output of the prediction function (Li & Hoiem, 2017; Lee et al., 2019). For function regularization methods, the teacher model is the frozen past model, and the student model is the current model. Besides, there are some theory works analyzing regularization-based methods. Evron et al. (2022) study the minimum norm estimator in CL under an over-parameterized and noise-free setup. Li et al. (2023) give a fixed design analysis of continual ridge regression for two-task linear regression. Zhao et al. (2024) consider a family of generalized $\ell_2$ -regularization estimators and give some optimality analysis.
|
| 36 |
+
|
| 37 |
+
Contrastive learning. Contrastive learning aims to learn representations that attract different views of the same image while repelling views from different images (Tian et al., 2020). Contrastive methods have been widely used in self-supervised learning and pre-training, showing superior performance on downstream tasks. The contrastive loss was first proposed in (Bromley et al., 1993) and then more formally defined in (Chopra et al., 2005) and (Hadsell et al., 2006). Later some theoretical analyses on the contrastive learning framework were provided in (Arora et al., 2019; Huang et al., 2023; Tan et al., 2023b;c;a; Zhang et al., 2023). There are various target losses in contrastive learning, for example, InfoNCE loss (van den Oord et al., 2019) is a widely adopted and efficient one. Notably, methods in this field have reached or even outperformed supervised learning methods (Khosla et al., 2020) for image classification. Representative approaches include SimCLR (Chen et al., 2020a), MoCo v1&v2 (He et al., 2020; Chen et al., 2020b). In this work, we employ the contrastive loss provided in (Khosla et al., 2020) for the contrastive continual learning framework to show some theoretical insights.
|
| 38 |
+
|
| 39 |
+
Knowledge distillation. In various scenarios of continual learning, knowledge distillation is used to preserve information from the old model to the current model, contributing to mitigate catastrophic forgetting. Typically, knowl
|
| 40 |
+
|
| 41 |
+

|
| 42 |
+
Figure 1. An illustration of contrastive continual learning framework. At the end of the previous task, we restore the previous model and values of losses. For the current task, augmentations are applied to both the buffered and the current data. Then the augmented data is passed through the current model and the previous frozen model to obtain representations. The target loss of contrastive continual learning is a weighted sum of contrastive loss and distillation loss with a distillation coefficient $\lambda$ .
|
| 43 |
+
|
| 44 |
+
edge distillation learns a small student model from a large teacher model with limited resources (Gou et al., 2021). Various kinds of knowledge can be transferred by knowledge distillation, including response-based knowledge which is the neural response of the last output layer of the teacher model (Hinton et al., 2015), feature-based knowledge like feature maps (Zagoruyko & Komodakis, 2016) and relation-based knowledge referring to relationships between different layers or between different samples (Passalis et al., 2020). Learning schemes of knowledge distillation include three streams, they are online distillation, offline distillation, and self-distillation. Among them, self-distillation considers the same structure between the teacher model and the student model (Zhang & Sabuncu, 2020; Mobahi et al., 2020).
|
| 45 |
+
|
| 46 |
+
# 3. Problem Setup
|
| 47 |
+
|
| 48 |
+
We are given a sequence of $T$ supervised tasks, with each task presented sequentially, one after the other. For each task $t$ , the training samples are assumed to be drawn from an unknown data distribution $\mathcal{D}_t$ . The model can be updated after seeing each task. The goal of continual learning is to train a model $f$ that performs well over all seen tasks.
|
| 49 |
+
|
| 50 |
+
Supervised contrastive loss (Khosla et al., 2020) has shown its superiority over the cross-entropy loss in the standard supervised classification, and it is then introduced into the continual learning by $\mathrm{Co}^2\mathrm{L}$ (Cha et al., 2021). Specifically, contrastive continual learning updates the model at each time step $t$ according to two losses, the contrastive loss and the distillation loss, which measure the learning plasticity and memory stability, respectively.
|
| 51 |
+
|
| 52 |
+
Contrastive loss. For each task $t$ , we use $\mu_t$ to denote the class distribution of task $\mathcal{D}_t$ , and $\mathcal{D}_c$ to denote the data distribution associated with each class $c$ . In this paper, we consider a contrastive loss involving two similar samples $x, x^+$
|
| 53 |
+
|
| 54 |
+
i.i.d. drawn from the same class distribution $\mathcal{D}_c$ . Meanwhile, there are several negative samples randomly picked from the whole data distribution $\mathcal{D}_t$ . For simplicity, we only consider the case of one negative sample here, the case of multiple negative samples can be found in Appendix D and E. Therefore, the contrastive loss can be formulated as
|
| 55 |
+
|
| 56 |
+
$$
|
| 57 |
+
L_{\mathrm{con}}(f;\mathcal{D}_{t}) = \underset { \begin{array}{c}c^{+}\sim \mu_{t}\\ c^{-}\sim \mu_{t} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}} \ell \big[f(x)^{\top}(f(x^{+}) - f(x^{-}))\big],
|
| 58 |
+
$$
|
| 59 |
+
|
| 60 |
+
where function $\ell(v)$ is defined as $\log(1 + \exp(-v))$ and embeddings are conventionally normalized, i.e., $\|f\| = 1$ .
|
| 61 |
+
|
| 62 |
+
Distillation loss. Continual learning focuses on retaining previously acquired information while simultaneously learning new knowledge. In the specific context of contrastive continual learning, the model achieves knowledge preservation by keeping the model's ability to differentiate between similar and dissimilar (negative) samples. To do so, we first compute the similarity probability distribution as $p(f;x,x^{+},x^{-}) = \mathrm{softmax}(f(x)^{\top}f(x^{+}),f(x)^{\top}f(x^{-}))$ , and then regulate the cross-entropy between the past similarity probability distribution and the current one (e.g., IRD loss in (Cha et al., 2021)). Specifically, for task $t$ , we denote the distribution of all seen data by $\mathcal{D}_{1:t - 1}\coloneqq \sum_{j = 1}^{t - 1}k_{tj}\mathcal{D}_j$ where we allow different tasks have different weights $k_{tj} > 0$ with $\sum_{j = 1}^{t - 1}k_{tj} = 1$ . Therefore, the distillation loss considered in this paper can be formulated as
|
| 63 |
+
|
| 64 |
+
$$
|
| 65 |
+
\begin{array}{l} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right) = \\ \begin{array}{c} \mathbb {E} _ {c ^ {+} \sim \mu_ {1: t - 1}} \mathbb {E} _ {x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}}} \left[ - \boldsymbol {p} (f _ {t - 1}; x, x ^ {+}, x ^ {-}) \cdot \log \boldsymbol {p} (f _ {t}; x, x ^ {+}, x ^ {-}) \right], \\ c ^ {-} \sim \mu_ {1: t - 1} x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} \\ \end{array}
|
| 66 |
+
$$
|
| 67 |
+
|
| 68 |
+
where $\mu_{1:t-1}$ represents the class distribution of $\mathcal{D}_{1:t-1}$ .
|
| 69 |
+
|
| 70 |
+
The total training loss of $f_{t}$ on task $t \geq 2$ is
|
| 71 |
+
|
| 72 |
+
$$
|
| 73 |
+
\begin{array}{l} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda \cdot L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right), \\ \end{array}
|
| 74 |
+
$$
|
| 75 |
+
|
| 76 |
+
where $\lambda$ is a hyper-parameter for balancing the two loss terms. For the first task $t = 1$ , the training loss does not have the distillation term, i.e., $L_{\mathrm{train}}(f_1;\mathcal{D}_1) = L_{\mathrm{con}}(f_1;\mathcal{D}_1)$ .
|
| 77 |
+
|
| 78 |
+
To evaluate the contrastive continual learning model, we use the total performance (test loss) of the final model $f_{T}$ on all seen tasks, which can be formulated as
|
| 79 |
+
|
| 80 |
+
$$
|
| 81 |
+
L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) := \sum_ {t = 1} ^ {T} L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {t}\right).
|
| 82 |
+
$$
|
| 83 |
+
|
| 84 |
+
# 4. Theoretical Analysis
|
| 85 |
+
|
| 86 |
+
Contrastive continual learning has demonstrated strong performance in practice. The focus of this paper is to examine its performance guarantees theoretically. In particular, our study aims to investigate the relationship between the test loss $L_{\mathrm{test}}(f_T; \mathcal{D}_1, \ldots, \mathcal{D}_T)$ and the series of training losses $L_{\mathrm{train}}(f_1; \mathcal{D}_1)$ , $L_{\mathrm{train}}(f_2; f_1, \mathcal{D}_2, \mathcal{D}_1)$ , ..., $L_{\mathrm{train}}(f_T; f_{T-1}, \mathcal{D}_T, \mathcal{D}_{1:T-1})$ .
|
| 87 |
+
|
| 88 |
+
According to the definition, despite the distillation loss terms, the training losses involve $\{L_{\mathrm{con}}(f_t;\mathcal{D}_t)\}_{t = 1}^T$ while the test loss consists of $\{L_{\mathrm{con}}(f_T;\mathcal{D}_t)\}_{t = 1}^T$ . To bridge the test loss and the training losses, we first provide the relationship between the contrastive losses of two consecutive models $f_{t}$ and $f_{t - 1}$ in the following lemma.
|
| 89 |
+
|
| 90 |
+
Lemma 1. When $t \geq 2$ , for any data distribution $\mathcal{D}$ , the contrastive losses of current model $f_{t}$ and previous model $f_{t-1}$ can be connected via the distillation loss, i.e.,
|
| 91 |
+
|
| 92 |
+
$$
|
| 93 |
+
\begin{array}{l} L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \leq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta , \\ L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta^ {\prime}, \\ \end{array}
|
| 94 |
+
$$
|
| 95 |
+
|
| 96 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\beta = 2 - \alpha + \alpha \log \frac{\alpha}{2}$ , and $\beta' = -\alpha \log (1 + e^2) - \alpha$ .
|
| 97 |
+
|
| 98 |
+
The above lemma can be directly proved using the formulae for contrastive loss and distillation loss. A detailed proof is provided in the appendix due to the space limitation.
|
| 99 |
+
|
| 100 |
+
According to Lemma 1, when considering $\mathcal{D} = \mathcal{D}_t$ ( $t \leq T$ ), a connection between $L_{\mathrm{con}}(f_T; \mathcal{D}_t)$ and $L_{\mathrm{con}}(f_{T-1}; \mathcal{D}_t)$ can be established. Similarly, a link between $L_{\mathrm{con}}(f_{T-1}; \mathcal{D}_t)$ and $L_{\mathrm{con}}(f_{T-2}; \mathcal{D}_t)$ can be drawn, and so on. This approach allows us to build a bridge between $L_{\mathrm{con}}(f_T; \mathcal{D}_t)$ and $L_{\mathrm{con}}(f_t; \mathcal{D}_t)$ for any given $t$ , which are the components of test loss and training losses, respectively. Thus, with Lemma 1, we can now derive the relationship between the test loss $L_{\mathrm{test}}(f_T; \mathcal{D}_1, \ldots, \mathcal{D}_T)$ and the series
|
| 101 |
+
|
| 102 |
+
of training losses $L_{\mathrm{train}}(f_1; \mathcal{D}_1)$ , $L_{\mathrm{train}}(f_2; f_1, \mathcal{D}_2, \mathcal{D}_1)$ , ..., $L_{\mathrm{train}}(f_T; f_{T-1}, \mathcal{D}_T, \mathcal{D}_{1:T-1})$ . Our results are presented in the following main theorem.
|
| 103 |
+
|
| 104 |
+
Theorem 1. For the contrastive continual learning involving $T \geq 2$ tasks, the test loss of the final model $f_{T}$ can be bounded via a linear combination of the training losses associated with each task. More specifically, the following two bounds are applicable.
|
| 105 |
+
|
| 106 |
+
(1) Upper bound:
|
| 107 |
+
|
| 108 |
+
$$
|
| 109 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \leq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta , \\ \end{array}
|
| 110 |
+
$$
|
| 111 |
+
|
| 112 |
+
(2) Lower bound:
|
| 113 |
+
|
| 114 |
+
$$
|
| 115 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \geq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta^ {\prime}, \\ \end{array}
|
| 116 |
+
$$
|
| 117 |
+
|
| 118 |
+
where
|
| 119 |
+
|
| 120 |
+
$$
|
| 121 |
+
\left\{ \begin{array}{l} \alpha = \frac {2 e ^ {2}}{1 + e ^ {2}}, \\ \gamma_ {t} (\lambda) = \min \left(\{\frac {1}{t} \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \gamma_ {t} ^ {\prime} (\lambda) = \max \left(\{1 \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \eta = (2 - \alpha + \alpha \log \frac {\alpha}{2}) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}} \\ \qquad + \sum_ {t = 2} ^ {T} \alpha^ {T - t} (1 - \frac {1}{\gamma_ {t} (\lambda)}) \min _ {f} L _ {\mathrm {c o n}} (f; \mathcal {D} _ {t}), \\ \eta^ {\prime} = - (\alpha \log (1 + e ^ {2}) + \alpha) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}}. \end{array} \right.
|
| 122 |
+
$$
|
| 123 |
+
|
| 124 |
+
The proof for the theorem can be found in the appendix. It can be concluded from Theorem 1 that, the performance of the final model $f_{T}$ on all $T$ tasks, namely $L_{\mathrm{test}}(f_T;\mathcal{D}_1,\ldots ,\mathcal{D}_T)$ , can be well bounded by training losses on all seen tasks, suggesting that minimizing $L_{\mathrm{train}}(f_t;f_{t - 1},\mathcal{D}_t,\mathcal{D}_{1:t - 1})$ during each task $t$ can help to improve the performance of the final model on all seen tasks. Note that there is also a lower bound of $L_{\mathrm{test}}(f_T;\mathcal{D}_1,\dots ,\mathcal{D}_T)$ , which means that minimizing the training loss during each task $t$ is necessary. In particular, given that the training loss is a weighted sum of contrastive loss and distillation loss, these bounds also emphasize the necessity of both contrastive loss and distillation loss in effectively learning a contrastive continual learning model.
|
| 125 |
+
|
| 126 |
+
Taking inspiration from Theorem 1, we can infer that pretraining can benefit continual learning. The coefficients of training losses associated with each task become fixed if $\lambda$ exceeds a certain value. For example, the denominators of the coefficients of training losses, i.e., $\{\gamma_t(\lambda)\}_{t=2}^T$ for the upper bound become constant values if $\lambda$ is large. Note that the component $\alpha > 1$ , then the weight $\alpha^{T - t} / \gamma_t(\lambda)$ for
|
| 127 |
+
|
| 128 |
+
the training loss of task $t$ decreases greatly as $t$ increases, reducing the importance of task $t$ in the bounds. Therefore, we have the following corollary, which shows that improved training performance of initial tasks contributes more to improving the later models' performance guarantees than that of later tasks. This aligns with the idea that pre-training can benefit continual learning, as observed in previous literature (Wang et al., 2022; Hu et al., 2022).
|
| 129 |
+
|
| 130 |
+
After choosing a suitable distillation coefficient $\lambda$ , training performances of initial tasks in contrastive continual learning contribute more to improving the overall performance of the final model on all tasks compared with that of the latter ones, explaining that a well pre-trained network can benefit continual learning.
|
| 131 |
+
|
| 132 |
+
We conclude from the statement above that small changes in the training performance on the first task may lead to great changes in the overall performance of the final model. For example, the weight of $L_{\mathrm{train}}(f_1; \mathcal{D}_1)$ in the upper bound increases greatly when adding more tasks, and a large value of $L_{\mathrm{train}}(f_1; \mathcal{D}_1)$ implies a potential great increase of the upper bound. Therefore, well-trained initial models with small training losses in continual learning can be beneficial.
|
| 133 |
+
|
| 134 |
+
# 5. Further Discussion on the Distillation Coefficient $\lambda$
|
| 135 |
+
|
| 136 |
+
# 5.1. Analysis on the distillation coefficient
|
| 137 |
+
|
| 138 |
+
Inspired by additional analysis on Theorem 1, we find that the suitable distillation coefficient $\lambda$ is correlated with the weights $\{\{k_{tj}\}_{j=1}^{t-1}\}_{t=1}^T$ that depends on the data distributions. Specifically, we would like to choose the suitable value of $\lambda$ as the turning point of the upper bound to get better theoretical guarantees. We define the turning point as the minimum value of $\lambda$ at which the upper bound no longer decreases. Once the distillation coefficient $\lambda$ exceeds the value of this turning point, the upper bound becomes a fixed value that is no longer influenced by $\lambda$ , as illustrated in Figure 2. In the following part of this section, we will present several examples and calculate the corresponding turning point values. This may help us better understand the choice of distillation coefficient ( $\lambda = 1$ ) employed in the experiments of $\mathrm{Co}^2\mathrm{L}$ (Cha et al., 2021).
|
| 139 |
+
|
| 140 |
+
We begin by clarifying that in the contrastive continual learning framework, choosing a fixed distillation coefficient as one for all tasks is favorable for achieving a balance between learning new tasks and preserving old knowledge. Specifically, with well-constructed weights $\{k_{tj}\}_{j=1}^{t-1}$ for task $t$ , the suggested $\lambda$ value for learning tends to stay close to one, thereby contributing to a tighter upper bound. To illustrate this point, we provide an example below.
|
| 141 |
+
|
| 142 |
+
Example 1. Assume that there are five tasks, each task with data distribution $\mathcal{D}_t$ , $t \in \{1, \ldots, 5\}$ , and we have
|
| 143 |
+
|
| 144 |
+

|
| 145 |
+
Figure 2. An illustration of Example 2. The suggesting $\lambda$ for $\rho = 0.95$ or $\rho = 1.05$ stays close to one.
|
| 146 |
+
|
| 147 |
+
corresponding models $\{f_t\}_{t=1}^5$ . We make the assumption that these models obtain the same value of training loss, i.e.,
|
| 148 |
+
|
| 149 |
+
$$
|
| 150 |
+
L _ {\text {t r a i n}} \left(f _ {5}; f _ {4}, \mathcal {D} _ {5}, \mathcal {D} _ {1: 4}\right) = \dots = L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right).
|
| 151 |
+
$$
|
| 152 |
+
|
| 153 |
+
Weights of tasks are given as follows, i.e., for $t \geq 2$
|
| 154 |
+
|
| 155 |
+
$$
|
| 156 |
+
k _ {t j} = \left\{ \begin{array}{l l} \frac {2}{t}, & j = 1, \\ \frac {1}{t}, & \text {e l s e}. \end{array} \right.
|
| 157 |
+
$$
|
| 158 |
+
|
| 159 |
+
These weights can be considered well-constructed, as they are uniform across different tasks, except for the weight of the first task which has a larger value than the others. Indeed, this strategy emphasizes the importance of the first task which is typically regarded as a base task.
|
| 160 |
+
|
| 161 |
+
Then according to our Theorem 1, the value of appropriate $\lambda$ is suggested to be close to one to get a tighter upper bound on the overall performance for the final model.
|
| 162 |
+
|
| 163 |
+
Note that in Example 1, we have assumed that the values of total training losses of different tasks remain the same, which may not align with realistic settings. To provide a more realistic illustration, we construct another example with adaptive ratios between the training losses of different tasks. Specifically, we allow the value of the training loss of each task to either increase or decrease with the same ratio $\rho$ close to one. The weights construction strategy is correlated to $\rho$ to maintain an alignment with the changing training loss. Constructed in this way, the following example illustrates how the appropriate value of $\lambda$ remains close to one even when $\rho$ fluctuates around one, and further achieves a tighter upper bound. This observation inspires us to consider adjusting the value of $\lambda$ around one.
|
| 164 |
+
|
| 165 |
+
Example 2. Assume that there are five tasks, each task with data distribution $\mathcal{D}_t$ , $t \in \{1, \ldots, 5\}$ , and we have corresponding models $\{f_t\}_{t=1}^5$ . We assume that the value of the training loss of each task has a fixed ratio $\rho \approx 1$ , i.e.,
|
| 166 |
+
|
| 167 |
+
$$
|
| 168 |
+
L _ {\text {t r a i n}} \left(f _ {5}; f _ {4}, \mathcal {D} _ {5}, \mathcal {D} _ {1: 4}\right) = \dots = \rho^ {4} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right).
|
| 169 |
+
$$
|
| 170 |
+
|
| 171 |
+
Weights of different tasks are given by a biased strategy related to $\rho$ , i.e., for $t \geq 2$
|
| 172 |
+
|
| 173 |
+
$$
|
| 174 |
+
k _ {t j} = \left\{ \begin{array}{l l} 1 - \frac {t - 2}{\rho t}, & j = 1, \\ \frac {1}{\rho t}, & \text {e l s e .} \end{array} \right.
|
| 175 |
+
$$
|
| 176 |
+
|
| 177 |
+
Then according to Theorem 1, the value of appropriate $\lambda$ is suggested to get close to one as $\rho$ changes slightly around one, ensuring a tight upper bound on the overall performance of the final model. As illustrated in Figure 2, setting $\rho = 0.95$ or $\rho = 1.05$ implies that suggesting $\lambda$ value remains close to one. The settings in Example 2 are more realistic and can closely resemble the $\mathrm{Co}^2\mathrm{L}$ configuration (Cha et al., 2021). Thus this example can further support the rationale for choosing $\lambda = 1$ in $\mathrm{Co}^2\mathrm{L}$ .
|
| 178 |
+
|
| 179 |
+
However, in an extreme case of the weights construction, an undesirable result may occur with a value of $\lambda$ greater than one. This insight suggests that data distribution may play a crucial role in selecting a suitable $\lambda$ since the weights $\{k_{tj}\}_{j=1}^{t-1}$ are strongly correlated with the data distribution of task $t$ . As illustrated in the following example, when there exists a weight significantly smaller than the other weights, the value of appropriate $\lambda$ would deviate from one. In such a case, persistently using $\lambda = 1$ may not achieve the best theoretical guarantees.
|
| 180 |
+
|
| 181 |
+
Example 3. Take the same assumption from Example 1, excluding the weights construction strategy. Weights of tasks are given as follows, i.e., for $t \geq 3$ ,
|
| 182 |
+
|
| 183 |
+
$$
|
| 184 |
+
k _ {t j} = \left\{ \begin{array}{l l} \frac {2 . 9}{t}, & j = 1, \\ \frac {0 . 1}{t}, & j = 2, \\ \frac {1}{t}, & \text {e l s e}. \end{array} \right.
|
| 185 |
+
$$
|
| 186 |
+
|
| 187 |
+
For the second task, we set $k_{21} = 1$ .
|
| 188 |
+
|
| 189 |
+
Then according to our Theorem 1, the suggesting value of appropriate $\lambda$ is close to ten in Example 3. If we choose $\lambda = 1$ , the upper bound may get large and fail to provide the best guarantees. The failure of Example 3 is attributed to a change in the weights construction strategy, highlighting a substantial relationship between the suitable value of distillation coefficient $\lambda$ and data distributions.
|
| 190 |
+
|
| 191 |
+
# 5.2. Adaptive selection of distillation coefficients
|
| 192 |
+
|
| 193 |
+
Inspired by our theoretical analysis, we are curious whether it is possible to provide better theoretical guarantees by dynamically adjusting distillation coefficients. Interestingly, the analysis of Theorem 1 can be adapted to the case of adaptive distillation coefficient $\lambda_{t}$ , simply by replacing $\lambda$ with $\lambda_{t}$ for the coefficient of training loss of task $t$ in the bounds. Then we can conclude from Theorem 1 for the new case that, increasing $\lambda_{t}$ for each task $t$ with a threshold strategy can provide better guarantees.
|
| 194 |
+
|
| 195 |
+
Note that our target is to get a set of distillation coefficients $\{\lambda_t\}_{t=2}^T$ that tighten the upper bound in Theorem 1. Therefore, we want to adaptively select $\lambda_t$ for task $t$ to achieve this goal. We now propose our theoretical explanations for the adaptive selection of distillation coefficients. First, we give some related definitions. Suppose there are $T$ tasks for continual learning setting. For each task $t \geq 2$ , we denote $\lambda_t$ as the task-specific distillation coefficient, and define
|
| 196 |
+
|
| 197 |
+
$$
|
| 198 |
+
U _ {t} = \sum_ {j = 2} ^ {t} \frac {\alpha^ {t - j}}{\gamma_ {j} (\lambda_ {t})} L _ {\text {t r a i n}} \left(f _ {j}; f _ {j - 1}, \mathcal {D} _ {j}, \mathcal {D} _ {1: j - 1}\right).
|
| 199 |
+
$$
|
| 200 |
+
|
| 201 |
+
Motivated by Theorem 1 and explanations above, at the end of task $t$ , if the calculated $U_{t}$ has a relatively large value, then a slight increase in $\lambda_{t + 1}$ around one can be beneficial for improving the upper bound. Inspired by this, we will maintain an extra set of task-specific threshold values $\{u_t\}_{t = 2}^T$ where $u_{t} > 0$ , and a set of update momentums $\{\Delta_t\}_{t = 1}^T$ where $\Delta_t \geq 0$ . After training task $t$ , if $U_{t} > u_{t}$ we let $\lambda_{t + 1} = \lambda_t + \Delta_t$ , else, $\lambda_{t + 1} = \lambda_t$ . Then the total training loss of each task $t$ for model $f_{t}$ can be rewritten as
|
| 202 |
+
|
| 203 |
+
$$
|
| 204 |
+
\begin{array}{l} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda_ {t} \cdot L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right). \\ \end{array}
|
| 205 |
+
$$
|
| 206 |
+
|
| 207 |
+
The following theorem provides a theoretical explanation for the benefits of the adaptive $\lambda_{t}$ selection protocol above.
|
| 208 |
+
|
| 209 |
+
Theorem 2. Assume that the training loss of each task is larger than zero. For each task $t \geq 2$ , there exists a task-specific constant $u_t > 0$ . If we have
|
| 210 |
+
|
| 211 |
+
$$
|
| 212 |
+
U _ {t} = \sum_ {j = 2} ^ {t} \frac {\alpha^ {t - j}}{\gamma_ {j} (\lambda_ {t})} L _ {t r a i n} (f _ {j}; f _ {j - 1}, \mathcal {D} _ {j}, \mathcal {D} _ {1: j - 1}) > u _ {t},
|
| 213 |
+
$$
|
| 214 |
+
|
| 215 |
+
where $\alpha, \{\gamma_j(\lambda_t)\}_{j=2}^t$ are defined in Theorem 1, then we increase $\lambda_t$ by $\Delta_t$ , i.e., $\lambda_{t+1} = \lambda_t + \Delta_t$ , else, $\lambda_{t+1} = \lambda_t$ . By choosing $\lambda_t$ in this way, we get tighter upper bounds.
|
| 216 |
+
|
| 217 |
+
It can be concluded from Theorem 2 that, increasing $\lambda_{t}$ by a threshold strategy about the performance of the current model can help make the upper bound tighter. Moreover, Theorem 2 can also provide theoretical support for the choosing strategy of $\lambda$ in previous examples.
|
| 218 |
+
|
| 219 |
+
# 5.3. Contrastive Incremental Learning with Adaptive distillation (CILA)
|
| 220 |
+
|
| 221 |
+
Note that we lack access to the construction of weights during the real training phase. Consequently, computing $U_{t}$ is not available for task $t$ , and estimating $\{k_{tj}\}_{j=1}^{t-1}$ may be also inaccessible due to the high computing load and low estimating accuracy. However, according to our explanations above, it is suggested that the adaptive $\lambda_{t}$ for each task $t$
|
| 222 |
+
|
| 223 |
+
stays around one with a relatively larger value. Hence, we can find an easy-to-get and adaptive metric to replace $\lambda_{t}$ . Before we introduce the chosen metric, we first give some related definitions. We first define the empirical contrastive loss (Khosla et al., 2020). For each task $t$ , we denote $D_{t}$ as the given batch of $N$ training samples $\{(x_{t,i},c_{t,i})\}_{i = 1}^{N}$ and the augmented batch is $\{(\tilde{x}_{t,i},\tilde{c}_{t,i})\}_{i = 1}^{2N}$ which is generated by making two randomly augmented versions of $x_{t,i}$ as $\tilde{x}_{t,2i - 1}$ and $\tilde{x}_{t,2i}$ with $\tilde{c}_{t,2i - 1} = \tilde{c}_{t,2i} = c_{t,i}$ . The augmented samples are mapped to a $d$ -dimensional Euclidean sphere by a model $f_{t}$ . Denote $\boldsymbol {z}_{t,i} = f_t(\tilde{\boldsymbol{x}}_{t,i})$ , then the empirical contrastive loss can be formulated as
|
| 224 |
+
|
| 225 |
+
$$
|
| 226 |
+
\begin{array}{l} \hat {L} _ {\text {c o n}} \left(f _ {t}; D _ {t}\right) \\ = \sum_ {i = 1} ^ {2 N} \frac {- 1}{| p _ {t , i} |} \sum_ {j \in p _ {t, i}} \log \left(\frac {\exp (z _ {t , i} ^ {\top} z _ {t , j} / \tau)}{\sum_ {k \neq i} \exp (z _ {t , i} ^ {\top} z _ {t , k} / \tau)}\right), \\ \end{array}
|
| 227 |
+
$$
|
| 228 |
+
|
| 229 |
+
where $p_{t,i} = \{j\in \{1,\dots ,2N\} |j\neq i,c_{t,j} = c_{t,i}\}$ and $\tau >0$ is the temperature hyperparameter. Then we define the empirical distillation loss (Cha et al., 2021). We first define a similarity vector
|
| 230 |
+
|
| 231 |
+
$$
|
| 232 |
+
\begin{array}{l} \boldsymbol {p} (f _ {t}, \tau ; \tilde {\boldsymbol {x}} _ {i}) = \operatorname {s o f t m a x} (\boldsymbol {z} _ {t, i} ^ {\top} \boldsymbol {z} _ {t, 1} / \tau , \dots , \boldsymbol {z} _ {t, i} ^ {\top} \boldsymbol {z} _ {t, i - 1} / \tau , \\ \boldsymbol {z} _ {t, i} ^ {\top} \boldsymbol {z} _ {t, i + 1} / \tau , \dots \boldsymbol {z} _ {t, i} ^ {\top} \boldsymbol {z} _ {t, 2 N} / \tau). \\ \end{array}
|
| 233 |
+
$$
|
| 234 |
+
|
| 235 |
+
Then the empirical distillation loss is formulated as
|
| 236 |
+
|
| 237 |
+
$$
|
| 238 |
+
\begin{array}{l} \hat {L} _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, D _ {t}\right) \\ = \sum_ {i = 1} ^ {2 N} - \boldsymbol {p} \left(f _ {t - 1}, \tau^ {*}; \tilde {x} _ {t, i}\right) \cdot \log \boldsymbol {p} \left(f _ {t}, \tau ; \tilde {x} _ {t, i}\right). \\ \end{array}
|
| 239 |
+
$$
|
| 240 |
+
|
| 241 |
+
Here, both $\tau^{*}$ and $\tau$ will remain fixed for all tasks. Actually, when constructing the experiment, we found that the ratio
|
| 242 |
+
|
| 243 |
+
$$
|
| 244 |
+
\sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {d i s}} \left(f _ {j}; f _ {j - 1}, D _ {j}\right) / \sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {c o n}} \left(f _ {j}; D _ {j}\right),
|
| 245 |
+
$$
|
| 246 |
+
|
| 247 |
+
is stable and stays close to one as task index $t \geq 3$ varies. This ratio is easy to get during the training procedure and is aligned with the idea that the distillation coefficient is suggested to stay close to one and varies according to the data distribution which depends on the task index. Therefore, inspired by Example 2 and 3, an applicable method is to use
|
| 248 |
+
|
| 249 |
+
$$
|
| 250 |
+
\lambda_ {t} = \max (1, \kappa \sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {d i s}} (f _ {j}; f _ {j - 1}, D _ {j}) / \sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {c o n}} (f _ {j}; D _ {j})),
|
| 251 |
+
$$
|
| 252 |
+
|
| 253 |
+
for task $t \geq 3$ , where $\kappa$ is a balancing distillation coefficient, and for the second task, we use $\lambda_2 = 1$ . More details can be found in Algorithm 1. In the following section, we will conduct several experiments.
|
| 254 |
+
|
| 255 |
+
# Algorithm 1 CILA: Contrastive Incremental Learning with Adaptive distillation
|
| 256 |
+
|
| 257 |
+
Input: Buffer size $B$ , a sequence of training sets $\{D_t\}_{t=1}^T$ , base distillation coefficient $\lambda_0$ , balancing distillation coefficient $\kappa$ .
|
| 258 |
+
|
| 259 |
+
1: Initialize model $f_{0}$ and set buffer $\mathcal{M}\gets \phi$
|
| 260 |
+
2: for task $t = 1, \dots, T$ do
|
| 261 |
+
3: Construct dataset $D \gets D_t \cup \mathcal{M}$ ;
|
| 262 |
+
4: Initialize model $f_{t} \gets f_{t-1}$ ;
|
| 263 |
+
5: Compute $L$ by $L\gets \tilde{L}_{\mathrm{con}}(f_t;D)$
|
| 264 |
+
6: if $t > 1$ then
|
| 265 |
+
7: Adaptively update $\lambda_{t}$ by
|
| 266 |
+
|
| 267 |
+
$$
|
| 268 |
+
\lambda_ {t} \leftarrow \max (\lambda_ {0}, \kappa \cdot \frac {\sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {d i s}} (f _ {j} ; f _ {j - 1} , D _ {j})}{\sum_ {j = 2} ^ {t - 1} \hat {L} _ {\mathrm {c o n}} (f _ {j} ; D _ {j})});
|
| 269 |
+
$$
|
| 270 |
+
|
| 271 |
+
8: Update $L$ by
|
| 272 |
+
|
| 273 |
+
$$
|
| 274 |
+
L \leftarrow L + \lambda_ {t} \cdot \hat {L} _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, D\right);
|
| 275 |
+
$$
|
| 276 |
+
|
| 277 |
+
9: end if
|
| 278 |
+
|
| 279 |
+
10: Update $f_{t}$ by SGD;
|
| 280 |
+
11: Collect buffer samples until $|\mathcal{M}| = B$
|
| 281 |
+
12: end for
|
| 282 |
+
|
| 283 |
+
# 6. Experiment
|
| 284 |
+
|
| 285 |
+
Learning settings and datasets. We conducted experiments on three basic continual learning scenarios, Class-IL, Task-IL, and Domain-IL (van de Ven & Tolias, 2019). Each scenario was evaluated using different datasets. Specifically, for Class-IL and Task-IL, we utilized Seq-CIFAR-10 and Seq-Tiny/ImageNet datasets. Seq-CIFAR-10 is a modified version of the CIFAR-10 (Krizhevsky, 2009) dataset, where it is divided into 5 distinct subsets, each comprising two classes. Similarly, Seq-Tiny/ImageNet is an adapted version of the Tiny/ImageNet (Le & Yang, 2015) dataset, where the 200 classes are split into 10 separate sets, each containing 20 classes. The order of splits in Seq-CIFAR-10 and Seq-Tiny/ImageNet remains consistent across multiple runs.
|
| 286 |
+
|
| 287 |
+
For Domain-IL, we employed R-MINST, which is a variant of the MNIST (Lecun et al., 1998) dataset. In R-MINST, the original images are randomly rotated by an angle between 0 and $\pi$ . R-MINST consists of 20 tasks, with each task corresponding to a randomly selected rotation angle. During the training process, samples from different tasks with the same digital class are treated as distinct classes.
|
| 288 |
+
|
| 289 |
+
In summary, our experiments covered Class-IL, Task-IL, and Domain-IL scenarios, utilizing Seq-CIFAR-10, Seq-Tiny-ImageNet, and R-MINST datasets, respectively.
|
| 290 |
+
|
| 291 |
+
Baselines. We compare our contrastive continual learning algorithm with replay-based continual learning baselines, including ER (Riemer et al., 2019), GEM (Lopez-Paz & Ranzato, 2017), A-GEM (Chaudhry et al., 2018), iCaRL (Rebuffi et al., 2017), FDR (Benjamin et al., 2019), GSS (Aljundi et al., 2019), HAL (Chaudhry et al., 2019), DER
|
| 292 |
+
|
| 293 |
+
Table 1. Classification accuracies for Seq-CIFAR-10, Seq-Tiny-ImageNet, and R-MNIST on replay-based baselines and our algorithm. All results are averaged over ten independent trials. The best performance is marked as bold.
|
| 294 |
+
|
| 295 |
+
<table><tr><td>Dataset</td><td colspan="4">Seq-CIFAR-10</td><td colspan="4">Seq-Tiny/ImageNet</td><td colspan="2">R-MNIST</td></tr><tr><td>Scenario</td><td colspan="2">Class-IL</td><td colspan="2">Task-IL</td><td colspan="2">Class-IL</td><td colspan="2">Task-IL</td><td colspan="2">Domain-IL</td></tr><tr><td>Buffer</td><td>200</td><td>500</td><td>200</td><td>500</td><td>200</td><td>500</td><td>200</td><td>500</td><td>200</td><td>500</td></tr><tr><td>ER</td><td>44.79±1.86</td><td>57.74±0.27</td><td>91.19±0.94</td><td>93.61±0.27</td><td>8.49±0.16</td><td>9.99±0.29</td><td>38.17±2.00</td><td>48.64±0.46</td><td>93.53±1.15</td><td>94.89±0.95</td></tr><tr><td>GEM</td><td>25.54±0.76</td><td>26.20±1.26</td><td>90.44±0.94</td><td>92.16±0.64</td><td>-</td><td>-</td><td>-</td><td>-</td><td>89.86±1.23</td><td>92.55±0.85</td></tr><tr><td>A-GEM</td><td>20.04±0.34</td><td>22.67±0.57</td><td>83.88±1.49</td><td>89.48±1.45</td><td>8.07±0.08</td><td>8.06±0.04</td><td>22.77±0.03</td><td>25.33±0.49</td><td>89.03±2.76</td><td>89.04±7.01</td></tr><tr><td>iCaRL</td><td>49.02±3.20</td><td>47.55±3.95</td><td>88.99±2.13</td><td>88.22±2.62</td><td>7.53±0.79</td><td>9.38±1.53</td><td>28.19±1.47</td><td>31.55±3.27</td><td>-</td><td>-</td></tr><tr><td>FDR</td><td>30.91±2.74</td><td>28.71±3.23</td><td>91.01±0.68</td><td>93.29±0.59</td><td>8.70±0.19</td><td>10.54±0.21</td><td>40.36±0.68</td><td>49.88±0.71</td><td>93.71±1.51</td><td>95.48±0.68</td></tr><tr><td>GSS</td><td>39.07±5.59</td><td>49.73±4.78</td><td>88.80±2.89</td><td>91.02±1.57</td><td>-</td><td>-</td><td>-</td><td>-</td><td>87.10±7.23</td><td>89.38±3.12</td></tr><tr><td>HAL</td><td>32.36±2.70</td><td>41.79±4.46</td><td>82.51±3.20</td><td>84.54±2.36</td><td>-</td><td>-</td><td>-</td><td>-</td><td>89.40±2.50</td><td>92.35±0.81</td></tr><tr><td>DER</td><td>61.93±1.79</td><td>70.51±1.67</td><td>91.40±0.92</td><td>93.40±0.39</td><td>11.87±0.78</td><td>17.75±1.14</td><td>40.22±0.67</td><td>51.78±0.88</td><td>96.43±0.59</td><td>97.57±1.47</td></tr><tr><td>DER++</td><td>64.88±1.17</td><td>72.70±1.36</td><td>91.92±0.60</td><td>93.88±0.50</td><td>10.96±1.17</td><td>19.38±1.41</td><td>40.87±1.16</td><td>51.91±0.68</td><td>95.98±1.06</td><td>97.54±0.43</td></tr><tr><td>Co2L</td><td>65.57±1.37</td><td>74.26±0.77</td><td>93.43±0.78</td><td>95.90±0.26</td><td>13.88±0.40</td><td>20.12±0.42</td><td>42.37±0.74</td><td>53.04±0.69</td><td>97.90±1.92</td><td>98.65±0.31</td></tr><tr><td>CILA (Ours)</td><td>67.06±1.59</td><td>76.03±0.79</td><td>94.29±0.24</td><td>96.40±0.21</td><td>14.55±0.39</td><td>20.64±0.59</td><td>44.15±0.70</td><td>54.13±0.72</td><td>98.36±0.45</td><td>98.76±0.22</td></tr></table>
|
| 296 |
+
|
| 297 |
+
(Buzzega et al., 2020), DER++ (Buzzega et al., 2020), and $\mathrm{Co}^2\mathrm{L}$ (Cha et al., 2021).
|
| 298 |
+
|
| 299 |
+
Details of training. Following the configuration of previous studies, we trained ResNet-18 on the Seq-CIFAR-10 and Tiny-ImageNet datasets. We implemented a simple network with convolution layers for the R-MNIST dataset. In our training process, we employed buffers of sizes 200 and 500. The base distillation coefficient $\lambda_0$ is set as one following the default configuration of $\mathrm{Co}^2\mathrm{L}$ (Cha et al., 2021).
|
| 300 |
+
|
| 301 |
+
Evaluation. Like $\mathrm{Co}^{2}\mathrm{L}$ , CILA follows the idea of "first pre-training, then linear probing". Thus, unlike the joint representation-classifier training approaches, an additional classifier needs to be trained on top of the frozen representations. To ensure a fair comparison, the classifier is trained using only the samples from the last task and buffered samples, leveraging the representations learned by CILA. To mitigate the challenges posed by class imbalance, we employ a class-balanced sampling strategy during the training of a linear classifier. The strategy involves the following steps. We first uniformly select a class from the available set of classes. This ensures that each class has an equal chance of being chosen. Once a class is selected, we further uniformly sample an instance from that specific class. This guarantees that all instances within the chosen class are equal to be selected.
|
| 302 |
+
|
| 303 |
+
For all experiments, a linear classifier is trained for a fixed number of epochs and we adopt 100 epochs to align with prior work. After training, the classification test accuracy is reported based on the predictions made by this classifier.
|
| 304 |
+
|
| 305 |
+
Main results. In Table 1, our method outperforms all baselines in different scenarios, datasets, and buffer sizes, especially compared with $\mathrm{Co}^2\mathrm{L}$ . This result verifies the su
|
| 306 |
+
|
| 307 |
+
Table 2. Accuracies on Seq-CIFAR-10 with 200 buffer samples.
|
| 308 |
+
|
| 309 |
+
<table><tr><td>Adaptive Method</td><td>Class-IL</td><td>Task-IL</td></tr><tr><td>Co2L</td><td>65.57</td><td>93.43</td></tr><tr><td>Pure-adapted</td><td>66.52</td><td>94.27</td></tr><tr><td>Min-adapted</td><td>66.36</td><td>94.21</td></tr><tr><td>Max-adapted</td><td>67.06</td><td>94.29</td></tr></table>
|
| 310 |
+
|
| 311 |
+
periority of our adaptive method and supports our theories strongly. Our algorithm successfully reaches a balance between learning plasticity and memory stability in continual learning. Under appropriate adaptation of the distillation coefficients, we also mitigate the catastrophic forgetting problem. Besides, the power of adaptation also impacts the performance of the learned continual learner, we will talk about it in the following ablation study.
|
| 312 |
+
|
| 313 |
+
# 7. Ablation Studies
|
| 314 |
+
|
| 315 |
+
We conduct ablation experiments to verify the effectiveness of adaptive distillation coefficients. We consider two setups, Class-IL and Task-IL, and perform experiments on Seq-CIFAR-10 with three variants of adapted $\lambda_{t}$ for each task $t$ . Variants include
|
| 316 |
+
|
| 317 |
+
(1) pure-adapted
|
| 318 |
+
|
| 319 |
+
$$
|
| 320 |
+
\lambda_ {t, \text {p u r e}} = \kappa \sum_ {j = 2} ^ {t - 1} \hat {L} _ {\text {d i s}} \left(f _ {j}, f _ {j - 1}; D _ {j}\right) / \sum_ {j = 2} ^ {t - 1} \hat {L} _ {\text {c o n}} \left(f _ {j}; D _ {j}\right),
|
| 321 |
+
$$
|
| 322 |
+
|
| 323 |
+
(2) min-adapted
|
| 324 |
+
|
| 325 |
+
$$
|
| 326 |
+
\lambda_ {t, \min } = \min (1, \lambda_ {t, \text {p u r e}}),
|
| 327 |
+
$$
|
| 328 |
+
|
| 329 |
+
and (3) max-adapted
|
| 330 |
+
|
| 331 |
+
$$
|
| 332 |
+
\lambda_ {t, \max } = \max (1, \lambda_ {t, p u r e}),
|
| 333 |
+
$$
|
| 334 |
+
|
| 335 |
+
where $\kappa$ is a balancing distillation coefficient. For our ablation experiments, we train the linear classifier on top of the representations with 200 buffer samples.
|
| 336 |
+
|
| 337 |
+
As shown in Table 2, methods with adaptive distillation coefficients show superior performance compared with the method with a fixed distillation coefficient with about $1\%$ improvement on both settings. As the adaptive $\lambda_{t}$ increases with moderate limitations, the performance of the model boosts with an obvious improvement on Class-IL. This verifies our assumption based on the theoretical results that continual learners with larger adaptive distillation coefficients show greater performance.
|
| 338 |
+
|
| 339 |
+
# 8. Conclusion
|
| 340 |
+
|
| 341 |
+
Contrastive learning has demonstrated remarkable performance in the field of continual learning, although there remains a lack of theoretical explanations. In this study, we aim to fill this gap by introducing theoretical performance guarantees for the final model in contrastive continual learning. Drawing inspirations from a detailed theoretical analysis, we propose the utilization of adaptive distillation coefficients for the distillation training loss in contrastive continual learning. Through comprehensive experiments conducted in diverse settings for continual learning, our approach surpasses baseline methods in terms of performance. We anticipate that our work can establish a robust foundation for continual learning from a representation perspective, and potentially spark further theoretical insights into the realm of contrastive continual learning.
|
| 342 |
+
|
| 343 |
+
# Acknowledgment
|
| 344 |
+
|
| 345 |
+
Weiran Huang is supported by 2023 CCF-Baidu Open Fund and Microsoft Research Asia. Chuanlong Xie is supported by the National Nature Science Foundation of China (No.12201048).
|
| 346 |
+
|
| 347 |
+
We would also like to express our sincere gratitude to the reviewers of ICML 2024 for their insightful and constructive feedback. Their valuable comments have greatly contributed to improving the quality of our work.
|
| 348 |
+
|
| 349 |
+
# Impact Statement
|
| 350 |
+
|
| 351 |
+
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.
|
| 352 |
+
|
| 353 |
+
# References
|
| 354 |
+
|
| 355 |
+
Aljundi, R., Lin, M., Goujaud, B., and Bengio, Y. Gradient based sample selection for online continual learning. In NeurIPS, 2019.
|
| 356 |
+
Arora, S., Khandeparkar, H., Khodak, M., Plevrakis, O., and Saunshi, N. A theoretical analysis of contrastive unsupervised representation learning. arXiv:1902.09229, 2019.
|
| 357 |
+
Ayub, A. and Wagner, A. R. Eec: Learning to encode and regenerate images for continual learning. In ICLR, 2021.
|
| 358 |
+
Bang, J., Kim, H., Yoo, Y., Ha, J.-W., and Choi, J. Rainbow memory: Continual learning with a memory of diverse samples. In CVPR, 2021.
|
| 359 |
+
Benjamin, A. S., Rolnick, D., and Kording, K. Measuring and regularizing networks in function space, 2019.
|
| 360 |
+
Bromley, J., Guyon, I., LeCun, Y., Säckinger, E., and Shah, R. Signature verification using a" siamese" time delay neural network. In NeurIPS, 1993.
|
| 361 |
+
Buzzega, P., Boschini, M., Porrello, A., Abati, D., and Calderara, S. Dark experience for general continual learning: a strong, simple baseline. In NeurIPS, 2020.
|
| 362 |
+
Caccia, L., Belilovsky, E., Caccia, M., and Pineau, J. Online learned continual compression with adaptive quantization modules. In ICML, 2019.
|
| 363 |
+
Cha, H., Lee, J., and Shin, J. Co2l: Contrastive continual learning. In ICCV, 2021.
|
| 364 |
+
Chaudhry, A., Marc'Aurelio, R., Rohrbach, M., and Elhoseiny, M. Efficient lifelong learning with a-gem. In ICLR, 2018.
|
| 365 |
+
Chaudhry, A., Gordo, A., Dokania, P. K., Torr, P. H. S., and Lopez-Paz, D. Using hindsight to anchor past knowledge in continual learning. In AAAI, 2019.
|
| 366 |
+
Chen, T., Kornblith, S., Norouzi, M., and Hinton, G. A simple framework for contrastive learning of visual representations. In ICML, 2020a.
|
| 367 |
+
Chen, X., Fan, H., Girshick, R., and He, K. Improved baselines with momentum contrastive learning. arXiv:2003.04297, 2020b.
|
| 368 |
+
Chopra, S., Hadsell, R., and LeCun, Y. Learning a similarity metric discriminatively, with application to face verification. In CVPR, 2005.
|
| 369 |
+
Cong, Y., Zhao, M., Li, J., Wang, S., and Carin, L. Gan memory with no forgetting. In NeurIPS, 2020.
|
| 370 |
+
|
| 371 |
+
Evron, I., Moroshko, E., Ward, R., Srebro, N., and Soudry, D. How catastrophic can catastrophic forgetting be in linear regression? In Conference on Learning Theory, pp. 4028-4079. PMLR, 2022.
|
| 372 |
+
Fini, E., da Costa, V. G. T., Alameda-Pineda, X., Ricci, E., Alahari, K., and Mairal, J. Self-supervised models are continual learners. In CVPR, 2022.
|
| 373 |
+
Gallardo, J., Hayes, T. L., and Kanan, C. Self-supervised training enhances online continual learning. In BMVC, 2021.
|
| 374 |
+
Gou, J., Yu, B., Maybank, S. J., and Tao, D. Knowledge distillation: A survey. *IJCV*, 2021.
|
| 375 |
+
Gurbuz, M. B. and Dovrolis, C. Nispa: Neuro-inspired stability-plasticity adaptation for continual learning in sparse networks. In ICML, 2022.
|
| 376 |
+
Hadsell, R., Chopra, S., and LeCun, Y. Dimensionality reduction by learning an invariant mapping. In CVPR, 2006.
|
| 377 |
+
He, K., Fan, H., Wu, Y., Xie, S., and Girshick, R. Momentum contrast for unsupervised visual representation learning. In CVPR, 2020.
|
| 378 |
+
Hinton, G., Vinyals, O., and Dean, J. Distilling the knowledge in a neural network. arXiv:1503.02531, 2015.
|
| 379 |
+
Hu, D., Yan, S., Lu, Q., HONG, L., Hu, H., Zhang, Y., Li, Z., Wang, X., and Feng, J. How well does self-supervised pre-training perform with streaming data? In ICLR, 2022.
|
| 380 |
+
Huang, W., Yi, M., Zhao, X., and Jiang, Z. Towards the generalization of contrastive self-supervised learning. In The Eleventh International Conference on Learning Representations, 2023.
|
| 381 |
+
Javed, K. and White, M. Meta-learning representations for continual learning. In NeurIPS, 2019.
|
| 382 |
+
Jung, S., Ahn, H., Cha, S., and Moon, T. Continual learning with node-importance based adaptive group sparse regularization. In NeurIPS, 2020.
|
| 383 |
+
Khosla, P., Teterwak, P., Wang, C., Sarna, A., Tian, Y., Isola, P., Maschinot, A., Liu, C., and Krishnan, D. Supervised contrastive learning. In NeurIPS, 2020.
|
| 384 |
+
Kirkpatrick, J., Pascanu, R., Rabinowitz, N., Veness, J., Desjardins, G., Rusu, A. A., Milan, K., Quan, J., Ramalho, T., Grabska-Barwinska, A., Hassabis, D., Clopath, C., Kumaran, D., and Hadsell, R. Overcoming catastrophic forgetting in neural networks. Proceedings of the National Academy of Sciences, 2017.
|
| 385 |
+
|
| 386 |
+
Krizhevsky, A. Learning multiple layers of features from tiny images. https://www.cs.toronto.edu/~kriz/index.html, 2009.
|
| 387 |
+
Le, Y. and Yang, X. S. Tiny imagenet visual recognition challenge. https://tiny-imagenet. herokuapp.com, 2015.
|
| 388 |
+
Lecun, Y., Bottou, L., Bengio, Y., and Haffner, P. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 1998.
|
| 389 |
+
Lee, K., Lee, K., Shin, J., and Lee, H. Overcoming catastrophic forgetting with unlabeled data in the wild. In ICCV, 2019.
|
| 390 |
+
Li, H., Wu, J., and Braverman, V. Fixed design analysis of regularization-based continual learning. In Conference on Lifelong Learning Agents, pp. 513-533. PMLR, 2023.
|
| 391 |
+
Li, Z. and Hoiem, D. Learning without forgetting. TPAMI, 2016.
|
| 392 |
+
Li, Z. and Hoiem, D. Learning without forgetting. In TPAMI, 2017.
|
| 393 |
+
Liu, X., Masana, M., Herranz, L., de Weijer, J. V., Lopez, A. M., and Bagdanov, A. D. Rotate your networks: Better weight consolidation and less catastrophic forgetting. arXiv:1802.02950, 2018.
|
| 394 |
+
Lopez-Paz, D. and Ranzato, M. Gradient episodic memory for continual learning. In NeurIPS, 2017.
|
| 395 |
+
McClelland, J. L., McNaughton, B. L., and O'Reilly, R. C. Why there are complementary learning systems in the hippocampus and neocortex: insights from the successes and failures of connectionist models of learning and memory. Psychological review, 1995.
|
| 396 |
+
Mobahi, H., Farajtabar, M., and Bartlett, P. L. Self-distillation amplifies regularization in hilbert space. In NeurIPS, 2020.
|
| 397 |
+
Passalis, N., Tzelepi, M., and Tefas, A. Heterogeneous knowledge distillation using information flow modeling. In CVPR, 2020.
|
| 398 |
+
Pham, Q., Liu, C., and Hoi, S. Dualnet: Continual learning, fast and slow. In NeurIPS, 2021.
|
| 399 |
+
Prabhu, A., Torr, P. H. S., and Dokania, P. K. Gdumb: A simple approach that questions our progress in continual learning. In ECCV, 2020.
|
| 400 |
+
Ramasesh, V. V., Lewkowycz, A., and Dyer, E. Effect of scale on catastrophic forgetting in neural networks. In ICLR, 2022.
|
| 401 |
+
|
| 402 |
+
Ramesh, R. and Chaudhari, P. Model zoo: A growing brain that learns continually. In ICLR, 2021.
|
| 403 |
+
Rebuffi, S.-A., Kolesnikov, A., Sperl, G., and Lampert, C. H. icarl: Incremental classifier and representation learning. In CVPR, 2017.
|
| 404 |
+
Riemer, M., Cases, I., Ajemian, R., Liu, M., Rish, I., Tu, Y., and Tesauro, G. Learning to learn without forgetting by maximizing transfer and minimizing interference. In *ICLR*, 2019.
|
| 405 |
+
Ritter, H., Botev, A., and Barber, D. Online structured laplace approximations for overcoming catastrophic forgetting. In NeurIPS, 2018.
|
| 406 |
+
Tan, Z., Yang, J., Huang, W., Yuan, Y., and Zhang, Y. Information flow in self-supervised learning. arXiv preprint arXiv:2309.17281, 2023a.
|
| 407 |
+
Tan, Z., Zhang, Y., Yang, J., and Yuan, Y. Contrastive learning is spectral clustering on similarity graph. arXiv preprint arXiv:2303.15103, 2023b.
|
| 408 |
+
Tan, Z., Zheng, K., and Huang, W. O'tmatch: Improving semi-supervised learning with optimal transport. arXiv preprint arXiv:2310.17455, 2023c.
|
| 409 |
+
Tian, Y., Krishnan, D., and Isola, P. Contrastive multiview coding. In ECCV, 2020.
|
| 410 |
+
Tiwari, R., Killamsetty, K., Iyer, R., and Shenoy, P. Gcr: Gradient coreset based replay buffer selection for continual learning. In CVPR, 2022.
|
| 411 |
+
van de Ven, G. M. and Tolias, A. S. Three scenarios for continual learning. arXiv:1904.07734, 2019.
|
| 412 |
+
van den Oord, A., Li, Y., and Vinyals, O. Representation learning with contrastive predictive coding. arXiv:1807.03748, 2019.
|
| 413 |
+
Wang, L., Zhang, X., Su, H., and Zhu, J. A comprehensive survey of continual learning: Theory, method and application. arXiv:2302.00487, 2023.
|
| 414 |
+
Wang, Z., Shen, L., Fang, L., Suo, Q., Zhan, D., Duan, T., and Gao, M. Meta-learning with less forgetting on large-scale non-stationary task distributions. In ECCV, 2022.
|
| 415 |
+
Zagoruyko, S. and Komodakis, N. Paying more attention to attention: Improving the performance of convolutional neural networks via attention transfer. In ICLR, 2016.
|
| 416 |
+
Zhang, Y., Tan, Z., Yang, J., Huang, W., and Yuan, Y. Matrix information theory for self-supervised learning. arXiv preprint arXiv:2305.17326, 2023.
|
| 417 |
+
|
| 418 |
+
Zhang, Z. and Sabuncu, M. R. Self-distillation as instancespecific label smoothing. In NeurIPS, 2020.
|
| 419 |
+
Zhao, X., Wang, H., Huang, W., and Lin, W. A statistical theory of regularization-based continual learning. In International conference on machine learning. PMLR, 2024.
|
| 420 |
+
|
| 421 |
+
# Appendix
|
| 422 |
+
|
| 423 |
+
# A. Proof of Lemma 1
|
| 424 |
+
|
| 425 |
+
We recall Lemma 1.
|
| 426 |
+
|
| 427 |
+
Lemma 1. When $t \geq 2$ , for any data distribution $\mathcal{D}$ , the contrastive losses of current model $f_{t}$ and previous model $f_{t-1}$ can be connected via the distillation loss, i.e.,
|
| 428 |
+
|
| 429 |
+
$$
|
| 430 |
+
L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \leq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta ,
|
| 431 |
+
$$
|
| 432 |
+
|
| 433 |
+
$$
|
| 434 |
+
L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta^ {\prime},
|
| 435 |
+
$$
|
| 436 |
+
|
| 437 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\beta = 2 - \alpha + \alpha \log \frac{\alpha}{2}$ , and $\beta' = -\alpha \log (1 + e^2) - \alpha$ .
|
| 438 |
+
|
| 439 |
+
Proof. For model $f$ , denote the data pair $\pmb{x} = (x, x^{+}, x^{-})$ to simplify the proof, we first define $v(f; \pmb{x}) = f(x)^{\top}(f(x^{+}) - f(x^{-}))$ , and
|
| 440 |
+
|
| 441 |
+
$$
|
| 442 |
+
q (f; \boldsymbol {x}) = \frac {\exp (v (f ; \boldsymbol {x}))}{1 + \exp (v (f ; \boldsymbol {x}))}.
|
| 443 |
+
$$
|
| 444 |
+
|
| 445 |
+
For models $f_{t}$ and $f_{t-1}$ , the function $\ell(v) = \log(1 + \exp(-v))$ , and $\pmb{p}(f; \pmb{x}) = \mathrm{softmax}(f(x)^{\top}f(x^{+}), f(x)^{\top}f(x^{-}))$ , we have the following equation
|
| 446 |
+
|
| 447 |
+
$$
|
| 448 |
+
\begin{array}{l} - \boldsymbol {p} (f _ {t - 1}; \boldsymbol {x}) \cdot \log \boldsymbol {p} (f _ {t}; \boldsymbol {x}) \\ = - q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(q \left(f _ {t}; \boldsymbol {x}\right)\right) - \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \log \left(1 - q \left(f _ {t}; \boldsymbol {x}\right)\right) \\ = q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(1 + \exp \left(- v \left(f _ {t}; \boldsymbol {x}\right)\right)\right) + \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \log \left(1 + \exp \left(v \left(f _ {t}; \boldsymbol {x}\right)\right)\right) \\ = q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(1 + \exp \left(- v \left(f _ {t}; \boldsymbol {x}\right)\right)\right) + \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \log \left(1 + \exp \left(- v \left(f _ {t}; \boldsymbol {x}\right)\right)\right) + \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \log \left(\exp \left(v \left(f _ {t}; \boldsymbol {x}\right)\right)\right) \\ = \ell (v (f _ {t}; \boldsymbol {x})) + (1 - q (f _ {t - 1}; \boldsymbol {x})) v (f _ {t}; \boldsymbol {x}). \\ \end{array}
|
| 449 |
+
$$
|
| 450 |
+
|
| 451 |
+
Then for any data distribution $\mathcal{D}$ , we have
|
| 452 |
+
|
| 453 |
+
$$
|
| 454 |
+
\begin{array}{l} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) \\ = \underset { \begin{array}{c} c ^ {+} \sim \mu x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ c ^ {-} \sim \mu x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} } {\mathbb {E}} \underset { \begin{array}{c} c ^ {+} \sim \mu x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ c ^ {-} \sim \mu x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} } {\mathbb {E}} - \boldsymbol {p} (f _ {t - 1}; \boldsymbol {x}) \cdot \log \boldsymbol {p} (f _ {t}; \boldsymbol {x}) \\ = \underset { \begin{array}{c} c ^ {+} \sim \mu x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ c ^ {-} \sim \mu x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} } {\mathbb {E}} \underset { \begin{array}{c} c ^ {+} \sim \mu x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ c ^ {-} \sim \mu x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} } {\mathbb {E}} \ell (v (f _ {t}; \boldsymbol {x})) + \underset { \begin{array}{c} c ^ {+} \sim \mu x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ c ^ {-} \sim \mu x ^ {-} \sim \mathcal {D} _ {c ^ {-}} \end{array} } {\mathbb {E}} (1 - q (f _ {t - 1}; \boldsymbol {x})) v (f _ {t}; \boldsymbol {x}) \\ = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu x,x^{+}\sim \mathcal{D}_{c^{+}}\\ c^{-}\sim \mu x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}} \underset { \begin{array}{c}(1 - q(f_{t - 1};\boldsymbol {x}))v(f_{t};\boldsymbol {x}). \end{array} }{\mathbb{E}}. \\ \end{array}
|
| 455 |
+
$$
|
| 456 |
+
|
| 457 |
+
Note that $f_{t}, f_{t-1}$ are normalized, i.e., $-2 \leq v(f_{t-1}; \boldsymbol{x}) \leq 2$ , and $-2 \leq v(f_{t}; \boldsymbol{x}) \leq 2$ . We first prove the upper bound. By using the following inequality
|
| 458 |
+
|
| 459 |
+
$$
|
| 460 |
+
\alpha \log (1 + e ^ {- h}) + \beta - \frac {2}{1 + e ^ {h}} \geq 0,
|
| 461 |
+
$$
|
| 462 |
+
|
| 463 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\beta = 2 - \alpha + \alpha \log \frac{\alpha}{2}$ , $-2 \leq h \leq 2$ , and using $v(f_{t-1}; \boldsymbol{x})$ to replace $h$ , we have
|
| 464 |
+
|
| 465 |
+
$$
|
| 466 |
+
\begin{array}{l} (1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)) v \left(f _ {t}; \boldsymbol {x}\right) \geq - 2 \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \\ = - \frac {2}{1 + \exp (v \left(f _ {t - 1} ; \boldsymbol {x}\right))} \\ \geq - \alpha \log (1 + \exp (- v (f _ {t - 1}; \boldsymbol {x}))) - \beta \\ = - \alpha \ell \left(v \left(f _ {t - 1}; \boldsymbol {x}\right)\right) - \beta . \\ \end{array}
|
| 467 |
+
$$
|
| 468 |
+
|
| 469 |
+
Using the result above, we have
|
| 470 |
+
|
| 471 |
+
$$
|
| 472 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}) = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu \\ c^{-}\sim \mu \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}(1 - q(f_{t - 1};\boldsymbol {x}))v(f_{t};\boldsymbol {x}) \\ \geq L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu x,x^{+}\sim \mathcal{D}_{c^{+}}\\ c^{-}\sim \mu x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}\underset { \begin{array}{c} \\ \end{array} }{\mathbb{E}}[-\alpha \ell (v(f_{t - 1};\boldsymbol {x})) - \beta ] \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) - \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) - \beta . \\ \end{array}
|
| 473 |
+
$$
|
| 474 |
+
|
| 475 |
+
which means
|
| 476 |
+
|
| 477 |
+
$$
|
| 478 |
+
L _ {\mathrm {c o n}} \left(f _ {t}; \mathcal {D}\right) \leq \alpha L _ {\mathrm {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta .
|
| 479 |
+
$$
|
| 480 |
+
|
| 481 |
+
This finishes the upper bound part. Then let us consider the lower bound. We use the inequality
|
| 482 |
+
|
| 483 |
+
$$
|
| 484 |
+
\alpha \log (1 + e ^ {- h}) + \beta^ {\prime} + \frac {2}{1 + e ^ {h}} \leq 0,
|
| 485 |
+
$$
|
| 486 |
+
|
| 487 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\beta' = -\alpha \log (1 + e^2) - \alpha$ , $-2 \leq h \leq 2$ , and using $v(f_{t-1}; \boldsymbol{x})$ to replace $h$ , then we have
|
| 488 |
+
|
| 489 |
+
$$
|
| 490 |
+
\begin{array}{l} (1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)) v \left(f _ {t}; \boldsymbol {x}\right) \leq 2 \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \\ = \frac {2}{1 + \exp (v \left(f _ {t - 1} ; \boldsymbol {x}\right))} \\ \leq - \alpha \log (1 + \exp (- v (f _ {t - 1}; \boldsymbol {x})) - \beta^ {\prime} \\ = - \alpha \ell \left(v \left(f _ {t - 1}; \boldsymbol {x}\right)\right) - \beta^ {\prime}. \\ \end{array}
|
| 491 |
+
$$
|
| 492 |
+
|
| 493 |
+
Using the result above, we have
|
| 494 |
+
|
| 495 |
+
$$
|
| 496 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}) = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu x,x^{+}\sim \mathcal{D}_{c^{+}}\\ c^{-}\sim \mu x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}(1 - q(f_{t - 1};\boldsymbol {x}))v(f_{t};\boldsymbol {x}) \\ \end{array} }{\mathbb{E}} \\ \leq L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu \\ c^{-}\sim \mu \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}[-\alpha \ell (v(f_{t - 1};\boldsymbol {x})) - \beta^{\prime}] \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) - \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) - \beta^ {\prime}. \\ \end{array}
|
| 497 |
+
$$
|
| 498 |
+
|
| 499 |
+
It can be translated into
|
| 500 |
+
|
| 501 |
+
$$
|
| 502 |
+
L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta^ {\prime}.
|
| 503 |
+
$$
|
| 504 |
+
|
| 505 |
+
The proof has finished.
|
| 506 |
+
|
| 507 |
+
# B. Proof of Theorem 1
|
| 508 |
+
|
| 509 |
+
We recall Theorem 1.
|
| 510 |
+
|
| 511 |
+
Theorem 1. For the contrastive continual learning involving $T \geq 2$ tasks, the test loss of the final model $f_{T}$ can be bounded via a linear combination of the training losses associated with each task. More specifically, the following two bounds are applicable.
|
| 512 |
+
|
| 513 |
+
(1) Upper bound:
|
| 514 |
+
|
| 515 |
+
$$
|
| 516 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \leq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta , \\ \end{array}
|
| 517 |
+
$$
|
| 518 |
+
|
| 519 |
+
(2) Lower bound:
|
| 520 |
+
|
| 521 |
+
$$
|
| 522 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \geq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta^ {\prime}, \\ \end{array}
|
| 523 |
+
$$
|
| 524 |
+
|
| 525 |
+
where
|
| 526 |
+
|
| 527 |
+
$$
|
| 528 |
+
\left\{ \begin{array}{l} \alpha = \frac {2 e ^ {2}}{1 + e ^ {2}}, \\ \gamma_ {t} (\lambda) = \min \left(\{\frac {1}{t} \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \gamma_ {t} ^ {\prime} (\lambda) = \max \left(\{1 \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \eta = (2 - \alpha + \alpha \log \frac {\alpha}{2}) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}} \\ \qquad + \sum_ {t = 2} ^ {T} \alpha^ {T - t} (1 - \frac {1}{\gamma_ {t} (\lambda)}) \min _ {f} L _ {\mathrm {c o n}} (f; \mathcal {D} _ {t}), \\ \eta^ {\prime} = - (\alpha \log (1 + e ^ {2}) + \alpha) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}}. \end{array} \right.
|
| 529 |
+
$$
|
| 530 |
+
|
| 531 |
+
Proof. We first proof the upper bound. For models $f_{t}$ and $f_{t-1}$ , we have
|
| 532 |
+
|
| 533 |
+
$$
|
| 534 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}_{1:t - 1}) = \underset { \begin{array}{c}c^{+}\sim \mu_{1:t - 1}\\ c^{-}\sim \mu_{1:t - 1} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}\left[-\boldsymbol {p}(f_{t - 1};\boldsymbol {x})\cdot \log \boldsymbol {p}(f_{t};\boldsymbol {x})\right] \\ = \sum_{j = 1}^{t - 1}k_{t j}\underset { \begin{array}{c}c^{+}\sim \mu_{j}\\ c^{-}\sim \mu_{j} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}[-\boldsymbol {p}(f_{t - 1};\boldsymbol {x})\cdot \log \boldsymbol {p}(f_{t};\boldsymbol {x})] \\ = \sum_ {j = 1} ^ {t - 1} k _ {t j} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right). \\ \end{array}
|
| 535 |
+
$$
|
| 536 |
+
|
| 537 |
+
Then we can write the training loss as
|
| 538 |
+
|
| 539 |
+
$$
|
| 540 |
+
\begin{array}{l} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right) \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda \sum_ {j = 1} ^ {t - 1} k _ {t j} L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right). \\ \end{array}
|
| 541 |
+
$$
|
| 542 |
+
|
| 543 |
+
for task $t \geq 2$ , and $L_{\mathrm{train}}(f_1; \mathcal{D}_1) = L_{\mathrm{con}}(f_1; \mathcal{D}_1)$ . According to the proof of Lemma 1, for models $f_t$ and $f_{t-1}$ , data distribution $\mathcal{D}_j$ ( $j \leq t$ ), we have
|
| 544 |
+
|
| 545 |
+
$$
|
| 546 |
+
L _ {\text {c o n}} \left(f _ {t}, \mathcal {D} _ {j}\right) \leq \alpha L _ {\text {c o n}} \left(f _ {t - 1}, \mathcal {D} _ {j}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right) + \beta .
|
| 547 |
+
$$
|
| 548 |
+
|
| 549 |
+
Denote $\gamma_t(\lambda) = \min \left(\{\frac{1}{t}\} \cup \{\lambda k_{tj}\}_{j=1}^{t-1}\right)$ for task $t \geq 2$ . Then we have
|
| 550 |
+
|
| 551 |
+
$$
|
| 552 |
+
\begin{array}{l} L _ {\text {t e s t}} (f _ {T}; \mathcal {D} _ {1: T}) \\ = L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T}, \mathcal {D} _ {t}\right) \\ \leq L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} \left[ L _ {\text {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \alpha L _ {\text {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta \right] \\ \leq \left(\frac {1}{\gamma_ {T} (\lambda)} - \frac {1}{\gamma_ {T} (\lambda)} + 1\right) L _ {\mathrm {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \frac {\lambda}{\gamma_ {T} (\lambda)} \sum_ {t = 1} ^ {T - 1} k _ {T t} L _ {\mathrm {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \sum_ {t = 1} ^ {T - 1} \left[ \alpha L _ {\mathrm {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta \right] \\ \leq \frac {1}{\gamma_ {T} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \left(1 - \frac {1}{\gamma_ {T} (\lambda)}\right) \min _ {f} L _ {\text {c o n}} \left(f; \mathcal {D} _ {T}\right) \\ + (T - 1) \beta + \alpha L _ {\text {t e s t}} \left(f _ {T - 1}; \mathcal {D} _ {1: T - 1}\right) \\ \end{array}
|
| 553 |
+
$$
|
| 554 |
+
|
| 555 |
+
:
|
| 556 |
+
|
| 557 |
+
$$
|
| 558 |
+
\leq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta .
|
| 559 |
+
$$
|
| 560 |
+
|
| 561 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\eta = (2 - \alpha + \alpha \log \frac{\alpha}{2})\frac{T - 1 - T\alpha + (\alpha)^T}{(1 - \alpha)^2} + \sum_{t=2}^{T}\alpha^{T-t}(1 - \frac{1}{\gamma_t(\lambda)})\min_f L_{\mathrm{con}}(f; \mathcal{D}_t)$ .
|
| 562 |
+
|
| 563 |
+
Let us prove the lower bound. According to the proof of Lemma 1, for models $f_{t}$ and $f_{t-1}$ , and data distribution $\mathcal{D}_j (j \leq t)$ , we have
|
| 564 |
+
|
| 565 |
+
$$
|
| 566 |
+
L _ {\text {c o n}} \left(f _ {t}, \mathcal {D} _ {j}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}, \mathcal {D} _ {j}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right) + \beta^ {\prime}.
|
| 567 |
+
$$
|
| 568 |
+
|
| 569 |
+
Denote $\gamma_t'(\lambda) = \max \left(\{1\} \cup \{\lambda k_{tj}\}_{j=1}^{t-1}\right)$ for task $t \geq 2$ . The proof is similar to that of the upper bound.
|
| 570 |
+
|
| 571 |
+
$$
|
| 572 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1: T}\right) \\ = L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T}, \mathcal {D} _ {t}\right) \\ \geq L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} \left[ L _ {\text {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \alpha L _ {\text {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta^ {\prime} \right] \\ \geq \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} \left[ L _ {\mathrm {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \lambda \sum_ {t = 1} ^ {T - 1} k _ {T t} L _ {\mathrm {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) \right] + \sum_ {t = 1} ^ {T - 1} \left[ \alpha L _ {\mathrm {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta^ {\prime} \right] \\ = \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \alpha \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + (T - 1) \beta^ {\prime} \\ = \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \alpha L _ {\text {t e s t}} \left(f _ {T - 1}; \mathcal {D} _ {1: T - 1}\right) + (T - 1) \beta^ {\prime} \\ \geq \alpha^ {T - 1} L _ {\text {t r a i n}} (f _ {1}; \mathcal {D} _ {1}) + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} (f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}) + \eta^ {\prime}. \\ \end{array}
|
| 573 |
+
$$
|
| 574 |
+
|
| 575 |
+
where $\alpha = \frac{2e^2}{1 + e^2}$ , $\eta' = -\left(\alpha \log (1 + e^2) + \alpha\right)\frac{T - 1 - T\alpha + (\alpha)^T}{(1 - \alpha)^2}$ .
|
| 576 |
+
|
| 577 |
+
# C. Proof of Theorem 2
|
| 578 |
+
|
| 579 |
+
We recall Theorem 2.
|
| 580 |
+
|
| 581 |
+
Theorem 2. Assume that the training loss of each task is larger than zero. For each task $t \geq 2$ , there exists a task-specific constant $u_t > 0$ . If we have
|
| 582 |
+
|
| 583 |
+
$$
|
| 584 |
+
U _ {t} = \sum_ {j = 2} ^ {t} \frac {\alpha^ {t - j}}{\gamma_ {j} (\lambda_ {t})} L _ {t r a i n} (f _ {j}; f _ {j - 1}, \mathcal {D} _ {j}, \mathcal {D} _ {1: j - 1}) > u _ {t},
|
| 585 |
+
$$
|
| 586 |
+
|
| 587 |
+
where $\alpha, \{\gamma_j(\lambda_t)\}_{j=2}^t$ are defined in Theorem 1, then we increase $\lambda_t$ by $\Delta_t$ , i.e., $\lambda_{t+1} = \lambda_t + \Delta_t$ , else, $\lambda_{t+1} = \lambda_t$ . By choosing $\lambda_t$ in this way, we get tighter upper bounds.
|
| 588 |
+
|
| 589 |
+
Proof. Note that $U_{t} > 0$ , thus $u_{t}$ exists. If $\lambda_{t}$ increases by $\Delta \geq 0$ , then $\lambda_{t + 1} \geq \lambda_{t}$ and $\gamma_{j}(\lambda_{t + 1}) \geq \gamma_{j}(\lambda_{t})$ . We have
|
| 590 |
+
|
| 591 |
+
$$
|
| 592 |
+
U _ {t + 1} ^ {\prime} = \sum_ {j = 2} ^ {t + 1} \frac {\alpha^ {t + 1 - j}}{\gamma_ {j} (\lambda_ {t + 1})} L _ {\text {t r a i n}} (f _ {j}; f _ {j - 1}, \mathcal {D} _ {j}) \leq U _ {t + 1} = \sum_ {j = 2} ^ {t + 1} \frac {\alpha^ {t + 1 - j}}{\gamma_ {j} (\lambda_ {t})} L _ {\text {t r a i n}} (f _ {j}; f _ {j - 1}, \mathcal {D} _ {j}).
|
| 593 |
+
$$
|
| 594 |
+
|
| 595 |
+
Thus the upper bound becomes tighter.
|
| 596 |
+
|
| 597 |
+
# D. The Case of Multiple Negative Examples for Lemma 1
|
| 598 |
+
|
| 599 |
+
Following our definitions in the paper, the contrastive loss for the case of $k(k \geq 1)$ negative samples can be formulated as
|
| 600 |
+
|
| 601 |
+
$$
|
| 602 |
+
L _ {\mathrm {c o n}} (f; \mathcal {D} _ {t}) = \underset { \begin{array}{c} c ^ {+} \sim \mu_ {t} \\ c _ {i} ^ {-} \sim \mu_ {t} \end{array} } {\mathbb {E}} \underset { \begin{array}{c} x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ x _ {i} ^ {-} \sim \mathcal {D} _ {c _ {i} ^ {-}} \end{array} } {\mathbb {E}} \ell \left[ \left\{f (x) ^ {\top} (f (x ^ {+}) - f (x _ {i} ^ {-})) \right\} \right],
|
| 603 |
+
$$
|
| 604 |
+
|
| 605 |
+
where function $\ell(\pmb{v})$ is defined as $\ell(\pmb{v}) = \log(1 + \sum_{i=1}^{k} \exp(-v_i))$ for $\pmb{v} \in \mathbb{R}^k$ and embeddings are conventionally normalized, i.e., $\|f\| = 1$ . The distillation loss for the case of $k$ negative samples can be formulated as
|
| 606 |
+
|
| 607 |
+
$$
|
| 608 |
+
\begin{array}{l} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right) = \\ \underset {c ^ {+} \sim \mu_ {1: t - 1}} {\mathbb {E}} \underset {x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}}} {\mathbb {E}} \left[ - \boldsymbol {p} \left(f _ {t - 1}; x, x ^ {+}, x _ {1} ^ {-}, \dots , x _ {k} ^ {-}\right) \cdot \log \boldsymbol {p} \left(f _ {t}; x, x ^ {+}, x _ {1} ^ {-}, \dots , x _ {k} ^ {-}\right) \right], \\ c _ {i} ^ {-} \sim \mu_ {1: t - 1} x _ {i} ^ {-} \sim \mathcal {D} _ {c _ {i} ^ {-}} \\ \end{array}
|
| 609 |
+
$$
|
| 610 |
+
|
| 611 |
+
where $\mu_{1:t-1}$ represents the class distribution of $\mathcal{D}_{1:t-1}$ and
|
| 612 |
+
|
| 613 |
+
$$
|
| 614 |
+
\boldsymbol {p} (f; x, x ^ {+}, x _ {1} ^ {-}, \dots , x _ {k} ^ {-}) = \operatorname {s o f t m a x} (f (x) ^ {\top} f (x ^ {+}), f (x) ^ {\top} f (x _ {1} ^ {-}), \dots , f (x) ^ {\top} f (x _ {k} ^ {-})).
|
| 615 |
+
$$
|
| 616 |
+
|
| 617 |
+
Then we provide the extended version of Lemma 1 and its proof.
|
| 618 |
+
|
| 619 |
+
Lemma 2. When $t \geq 2$ and the number of negative samples $k \geq 1$ , for any data distribution $\mathcal{D}$ , the contrastive losses of current model $f_{t}$ and previous model $f_{t-1}$ can be connected via the distillation loss, i.e.,
|
| 620 |
+
|
| 621 |
+
$$
|
| 622 |
+
\begin{array}{l} L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \leq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta , \\ L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta^ {\prime}, \\ \end{array}
|
| 623 |
+
$$
|
| 624 |
+
|
| 625 |
+
where $\alpha = \frac{2e^2}{k + e^2}$ , $\beta = 2 - \alpha + \alpha \log \frac{\alpha}{2}$ , and $\beta' = -\alpha \log (1 + ke^2) - \frac{2ke^2}{1 + ke^2}$ .
|
| 626 |
+
|
| 627 |
+
Proof. For model $f$ , denote the data pair $\boldsymbol{x} = (x, x^{+}, x_{1}^{-}, \ldots, x_{k}^{-})$ to simplify the proof, we first define $v_{i}(f; \boldsymbol{x}) = f(x)^{\top}(f(x^{+}) - f(x_{i}^{-}))$ , and
|
| 628 |
+
|
| 629 |
+
$$
|
| 630 |
+
\begin{array}{l} q _ {i} (f; \boldsymbol {x}) = \frac {\exp (- v _ {i} (f ; \boldsymbol {x}))}{1 + \sum_ {i = 1} ^ {k} \exp (- v _ {i} (f ; \boldsymbol {x}))}, \\ q (f; \boldsymbol {x}) = \frac {1}{1 + \sum_ {i = 1} ^ {k} \exp (- v _ {i} (f ; \boldsymbol {x}))}, \\ \end{array}
|
| 631 |
+
$$
|
| 632 |
+
|
| 633 |
+
where $q(f; \boldsymbol{x}) + \sum_{i=1}^{k} q_i(f; \boldsymbol{x}) = 1$ . For models $f_t$ and $f_{t-1}$ , the function $\ell(\boldsymbol{v}) = \log(1 + \sum_{i=1}^{k} \exp(-v_i))$ for $\boldsymbol{v} \in \mathbb{R}^k$ , and
|
| 634 |
+
|
| 635 |
+
$$
|
| 636 |
+
\pmb {p} (f; \pmb {x}) = \mathrm {s o f t m a x} (f (x) ^ {\top} f (x ^ {+}), f (x) ^ {\top} f (x _ {1} ^ {-}), \ldots , f (x) ^ {\top} f (x _ {k} ^ {-})),
|
| 637 |
+
$$
|
| 638 |
+
|
| 639 |
+
we have the following equation
|
| 640 |
+
|
| 641 |
+
$$
|
| 642 |
+
\begin{array}{l} - \boldsymbol {p} (f _ {t - 1}; \boldsymbol {x}) \cdot \log \boldsymbol {p} (f _ {t}; \boldsymbol {x}) \\ = - q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(q \left(f _ {t}; \boldsymbol {x}\right)\right) - \sum_ {i = 1} ^ {k} q _ {i} \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(q _ {i} \left(f _ {t}; \boldsymbol {x}\right)\right) \\ = q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t}; \boldsymbol {x}\right)\right)\right) - \sum_ {i = 1} ^ {k} q _ {i} \left(f _ {t - 1}; \boldsymbol {x}\right) \left[ - v _ {i} \left(f _ {t}; \boldsymbol {x}\right) - \log \left(1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t}; \boldsymbol {x}\right)\right)\right) \right] \\ = q \left(f _ {t - 1}; \boldsymbol {x}\right) \log \left(1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t}; \boldsymbol {x}\right)\right)\right) + \sum_ {i = 1} ^ {k} q _ {i} \left(f _ {t - 1}; \boldsymbol {x}\right) \left[ v _ {i} \left(f _ {t}; \boldsymbol {x}\right) + \log \left(1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t}; \boldsymbol {x}\right)\right)\right) \right] \\ = \log (1 + \sum_ {i = 1} ^ {k} \exp (- v _ {i} (f _ {t}; \boldsymbol {x}))) + \sum_ {i = 1} ^ {k} q _ {i} (f _ {t - 1}; \boldsymbol {x}) v _ {i} (f _ {t}; \boldsymbol {x}) \\ = \ell (\boldsymbol {v} (f _ {t}; \boldsymbol {x})) + \sum_ {i = 1} ^ {k} q _ {i} (f _ {t - 1}; \boldsymbol {x}) v _ {i} (f _ {t}; \boldsymbol {x}). \\ \end{array}
|
| 643 |
+
$$
|
| 644 |
+
|
| 645 |
+
Then for any data distribution $\mathcal{D}$ , we have
|
| 646 |
+
|
| 647 |
+
$$
|
| 648 |
+
\begin{array}{l} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) \\ = \underset { \begin{array}{c} c ^ {+} \sim \mu \\ c _ {i} ^ {-} \sim \mu \end{array} } {\mathbb {E}} \underset { \begin{array}{c} x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ x _ {i} ^ {-} \sim \mathcal {D} _ {c _ {i} ^ {-}} \end{array} } {\mathbb {E}} - \boldsymbol {p} (f _ {t - 1}; \boldsymbol {x}) \cdot \log \boldsymbol {p} (f _ {t}; \boldsymbol {x}) \\ = \underset { \begin{array}{c} c ^ {+} \sim \mu \\ c _ {i} ^ {-} \sim \mu \end{array} } {\mathbb {E}} \underset { \begin{array}{c} x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ x _ {i} ^ {-} \sim \mathcal {D} _ {c _ {i} ^ {-}} \end{array} } {\mathbb {E}} \ell (\boldsymbol {v} (f _ {t}; \boldsymbol {x})) + \underset { \begin{array}{c} c ^ {+} \sim \mu \\ c _ {i} ^ {-} \sim \mu \end{array} } {\mathbb {E}} \underset { \begin{array}{c} x, x ^ {+} \sim \mathcal {D} _ {c ^ {+}} \\ x _ {i} ^ {-} \sim \mathcal {D} _ {c _ {\bar {i}} ^ {-}} \end{array} } {\mathbb {E}} \sum_ {i = 1} ^ {k} q _ {i} (f _ {t - 1}; \boldsymbol {x}) v _ {i} (f _ {t}; \boldsymbol {x}) \\ = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu \\ c_{i}^{-}\sim \mu \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}\sum_{i = 1}^{k}q_{i}(f_{t - 1};\boldsymbol {x})v_{i}(f_{t};\boldsymbol {x}). \\ \end{array}
|
| 649 |
+
$$
|
| 650 |
+
|
| 651 |
+
Note that $f_{t}, f_{t-1}$ are normalized, i.e., $-2 \leq v_{i}(f_{t-1}; \boldsymbol{x}) \leq 2$ , and $-2 \leq v_{i}(f_{t}; \boldsymbol{x}) \leq 2$ . We first prove the upper bound. By using the following inequality
|
| 652 |
+
|
| 653 |
+
$$
|
| 654 |
+
\alpha \log h + \beta \geq 2 (1 - \frac {1}{h}),
|
| 655 |
+
$$
|
| 656 |
+
|
| 657 |
+
where $\alpha = \frac{2e^2}{k + e^2}$ , $\beta = 2 - \alpha + \alpha \log \frac{\alpha}{2}$ , $1 + ke^{-2} \leq h \leq 1 + ke^2$ , and using $1 + \sum_{i=1}^{k} \exp(-v_i(f_{t-1}; \boldsymbol{x}))$ to replace $h$ in the inequality above, we have
|
| 658 |
+
|
| 659 |
+
$$
|
| 660 |
+
\begin{array}{l} \sum_ {i = 1} ^ {k} q _ {i} \left(f _ {t - 1}; \boldsymbol {x}\right) v _ {i} \left(f _ {t}; \boldsymbol {x}\right) \geq - 2 \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \\ = - 2 \left(1 - \frac {1}{1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t - 1} ; \boldsymbol {x}\right)\right)}\right) \\ \geq - \alpha \log (1 + \sum_ {i = 1} ^ {k} \exp (- v _ {i} (f _ {t - 1}; \boldsymbol {x}))) - \beta \\ = - \alpha \ell (\boldsymbol {v} (f _ {t - 1}; \boldsymbol {x})) - \beta . \\ \end{array}
|
| 661 |
+
$$
|
| 662 |
+
|
| 663 |
+
Using the results above, we have
|
| 664 |
+
|
| 665 |
+
$$
|
| 666 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}) = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu \\ c_{i}^{-}\sim \mu \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}\sum_{i = 1}^{k}q_{i}(f_{t - 1};\boldsymbol {x})v_{i}(f_{t};\boldsymbol {x}) \\ \geq L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu x,x^{+}\sim \mathcal{D}_{c^{+}}\\ c_{i}^{-}\sim \mu x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}[-\alpha \ell (\boldsymbol {v}(f_{t - 1};\boldsymbol {x})) - \beta ] \end{array} }{\mathbb{E}} \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) - \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) - \beta . \\ \end{array}
|
| 667 |
+
$$
|
| 668 |
+
|
| 669 |
+
which means
|
| 670 |
+
|
| 671 |
+
$$
|
| 672 |
+
L _ {\mathrm {c o n}} \left(f _ {t}; \mathcal {D}\right) \leq \alpha L _ {\mathrm {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta .
|
| 673 |
+
$$
|
| 674 |
+
|
| 675 |
+
This finishes the upper bound part. Then let us consider the lower bound. We use the inequality
|
| 676 |
+
|
| 677 |
+
$$
|
| 678 |
+
- \alpha \log h - \beta^ {\prime} \geq 2 \left(1 - \frac {1}{h}\right),
|
| 679 |
+
$$
|
| 680 |
+
|
| 681 |
+
where $\alpha = \frac{2e^2}{k + e^2}$ , $\beta' = -\alpha \log (1 + ke^2) - \frac{2ke^2}{1 + ke^2}$ , $1 + ke^{-2} \leq h \leq 1 + ke^2$ , and using $1 + \sum_{i=1}^{k} \exp(-v_i(f_{t-1}; \boldsymbol{x}))$ to replace $h$ , then we have
|
| 682 |
+
|
| 683 |
+
$$
|
| 684 |
+
\begin{array}{l} \sum_ {i = 1} ^ {k} q _ {i} \left(f _ {t - 1}; \boldsymbol {x}\right) v _ {i} \left(f _ {t}; \boldsymbol {x}\right) \leq 2 \left(1 - q \left(f _ {t - 1}; \boldsymbol {x}\right)\right) \\ = 2 \left(1 - \frac {1}{1 + \sum_ {i = 1} ^ {k} \exp \left(- v _ {i} \left(f _ {t - 1} ; \boldsymbol {x}\right)\right)}\right) \\ \leq - \alpha \log (1 + \sum_ {i = 1} ^ {k} \exp (- v _ {i} (f _ {t - 1}; \boldsymbol {x})) - \beta^ {\prime} \\ = - \alpha \ell (\pmb {v} (f _ {t - 1}; \pmb {x})) - \beta^ {\prime}. \\ \end{array}
|
| 685 |
+
$$
|
| 686 |
+
|
| 687 |
+
Using the results above, we have
|
| 688 |
+
|
| 689 |
+
$$
|
| 690 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}) = L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu \\ c_{i}^{-}\sim \mu \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}\sum_{i = 1}^{k}q_{i}(f_{t - 1};\boldsymbol {x})v_{i}(f_{t};\boldsymbol {x}) \\ \leq L_{\mathrm{con}}(f_{t};\mathcal{D}) + \underset { \begin{array}{c}c^{+}\sim \mu x,x^{+}\sim \mathcal{D}_{c^{+}}\\ c_{i}^{-}\sim \mu x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}\underset { \begin{array}{c} - \mu \\ x_{i}^{-}\sim \mathcal{D}_{c_{i}^{-}} \end{array} }{\mathbb{E}}[-\alpha \ell (\boldsymbol {v}(f_{t - 1};\boldsymbol {x})) - \beta^{\prime}] \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) - \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) - \beta^ {\prime}. \\ \end{array}
|
| 691 |
+
$$
|
| 692 |
+
|
| 693 |
+
It can be translated into
|
| 694 |
+
|
| 695 |
+
$$
|
| 696 |
+
L _ {\text {c o n}} \left(f _ {t}; \mathcal {D}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}; \mathcal {D}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D}\right) + \beta^ {\prime}.
|
| 697 |
+
$$
|
| 698 |
+
|
| 699 |
+
The proof has finished.
|
| 700 |
+
|
| 701 |
+
# E. The Case of Multiple Negative Examples for Theorem 1
|
| 702 |
+
|
| 703 |
+
We provide the extended version of Theorem 1 and its proof.
|
| 704 |
+
|
| 705 |
+
Theorem 3. For the contrastive continual learning involving $T \geq 2$ tasks where each task involves $k$ negative samples, the test loss of the final model $f_{T}$ can be bounded via a linear combination of the training losses associated with each task. More specifically, the following two bounds are applicable.
|
| 706 |
+
|
| 707 |
+
(1) Upper bound:
|
| 708 |
+
|
| 709 |
+
$$
|
| 710 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \leq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta , \\ \end{array}
|
| 711 |
+
$$
|
| 712 |
+
|
| 713 |
+
(2) Lower bound:
|
| 714 |
+
|
| 715 |
+
$$
|
| 716 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1}, \dots , \mathcal {D} _ {T}\right) \geq \alpha^ {T - 1} L _ {\text {t r a i n}} \left(f _ {1}; \mathcal {D} _ {1}\right) \\ + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) + \eta^ {\prime}, \\ \end{array}
|
| 717 |
+
$$
|
| 718 |
+
|
| 719 |
+
where
|
| 720 |
+
|
| 721 |
+
$$
|
| 722 |
+
\left\{ \begin{array}{l} \alpha = \frac {2 e ^ {2}}{k + e ^ {2}}, \\ \gamma_ {t} (\lambda) = \min \left(\{\frac {1}{t} \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \gamma_ {t} ^ {\prime} (\lambda) = \max \left(\{1 \} \cup \{\lambda k _ {t j} \} _ {j = 1} ^ {t - 1}\right), \\ \eta = (2 - \alpha + \alpha \log \frac {\alpha}{2}) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}} \\ \hskip 1 4. 2 2 6 3 7 8 p t + \sum_ {t = 2} ^ {T} \alpha^ {T - t} (1 - \frac {1}{\gamma_ {t} (\lambda)}) \min _ {f} L _ {\mathrm {c o n}} (f; \mathcal {D} _ {t}), \\ \eta^ {\prime} = - (\alpha \log (1 + k e ^ {2}) + \frac {2 k e ^ {2}}{1 + k e ^ {2}}) \frac {T - 1 - T \alpha + (\alpha) ^ {T}}{(1 - \alpha) ^ {2}}. \end{array} \right.
|
| 723 |
+
$$
|
| 724 |
+
|
| 725 |
+
Proof. We first proof the upper bound. For models $f_{t}$ and $f_{t-1}$ , we have
|
| 726 |
+
|
| 727 |
+
$$
|
| 728 |
+
\begin{array}{l} L_{\mathrm{dis}}(f_{t};f_{t - 1},\mathcal{D}_{1:t - 1}) = \underset { \begin{array}{c}c^{+}\sim \mu_{1:t - 1}\\ c^{-}\sim \mu_{1:t - 1} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}[-\boldsymbol {p}(f_{t - 1};\boldsymbol {x})\cdot \log \boldsymbol {p}(f_{t};\boldsymbol {x})] \\ = \sum_{j = 1}^{t - 1}k_{t j}\underset { \begin{array}{c}c^{+}\sim \mu_{j}\\ c^{-}\sim \mu_{j} \end{array} }{\mathbb{E}}\underset { \begin{array}{c}x,x^{+}\sim \mathcal{D}_{c^{+}}\\ x^{-}\sim \mathcal{D}_{c^{-}} \end{array} }{\mathbb{E}}\left[-\boldsymbol {p}(f_{t - 1};\boldsymbol {x})\cdot \log \boldsymbol {p}(f_{t};\boldsymbol {x})\right] \\ = \sum_ {j = 1} ^ {t - 1} k _ {t j} L _ {\mathrm {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right). \\ \end{array}
|
| 729 |
+
$$
|
| 730 |
+
|
| 731 |
+
Then we can write the training loss as
|
| 732 |
+
|
| 733 |
+
$$
|
| 734 |
+
\begin{array}{l} L _ {\text {t r a i n}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}\right) = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {1: t - 1}\right) \\ = L _ {\text {c o n}} \left(f _ {t}; \mathcal {D} _ {t}\right) + \lambda \sum_ {j = 1} ^ {t - 1} k _ {t j} L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right). \\ \end{array}
|
| 735 |
+
$$
|
| 736 |
+
|
| 737 |
+
for task $t \geq 2$ , and $L_{\mathrm{train}}(f_1; \mathcal{D}_1) = L_{\mathrm{con}}(f_1; \mathcal{D}_1)$ . According to the proof of Lemma 1, for models $f_t$ and $f_{t-1}$ , data distribution $\mathcal{D}_j$ ( $j \leq t$ ), we have
|
| 738 |
+
|
| 739 |
+
$$
|
| 740 |
+
L _ {\text {c o n}} \left(f _ {t}, \mathcal {D} _ {j}\right) \leq \alpha L _ {\text {c o n}} \left(f _ {t - 1}, \mathcal {D} _ {j}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right) + \beta .
|
| 741 |
+
$$
|
| 742 |
+
|
| 743 |
+
Denote $\gamma_t(\lambda) = \min \left(\left\{\frac{1}{t}\right\} \cup \left\{\lambda k_{tj}\right\}_{j=1}^{t-1}\right)$ for task $t \geq 2$ . According to the equations above, we have
|
| 744 |
+
|
| 745 |
+
$$
|
| 746 |
+
\begin{array}{l} L _ {\text {t e s t}} (f _ {T}; \mathcal {D} _ {1: T}) \\ = L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T}, \mathcal {D} _ {t}\right) \\ \leq L _ {\mathrm {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} \left[ L _ {\mathrm {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \alpha L _ {\mathrm {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta \right] \\ \leq \left(\frac {1}{\gamma_ {T} (\lambda)} - \frac {1}{\gamma_ {T} (\lambda)} + 1\right) L _ {\mathrm {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \frac {\lambda}{\gamma_ {T} (\lambda)} \sum_ {t = 1} ^ {T - 1} k _ {T t} L _ {\mathrm {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \sum_ {t = 1} ^ {T - 1} \left[ \alpha L _ {\mathrm {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta \right] \\ \leq \frac {1}{\gamma_ {T} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \left(1 - \frac {1}{\gamma_ {T} (\lambda)}\right) \min _ {f} L _ {\text {c o n}} \left(f; \mathcal {D} _ {T}\right) \\ + (T - 1) \beta + \alpha L _ {\text {t e s t}} \left(f _ {T - 1}; \mathcal {D} _ {1: T - 1}\right) \\ \end{array}
|
| 747 |
+
$$
|
| 748 |
+
|
| 749 |
+
$$
|
| 750 |
+
\begin{array}{l} \begin{array}{c} \bullet \\ \bullet \\ \bullet \\ \bullet \end{array} \\ \leq \alpha^ {T - 1} L _ {\text {t r a i n}} (f _ {1}; \mathcal {D} _ {1}) + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} (\lambda)} L _ {\text {t r a i n}} (f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}) + \eta . \\ \end{array}
|
| 751 |
+
$$
|
| 752 |
+
|
| 753 |
+
where $\alpha = \frac{2e^2}{k + e^2}$ , $\eta = (2 - \alpha + \alpha \log \frac{\alpha}{2})\frac{T - 1 - T\alpha + (\alpha)^T}{(1 - \alpha)^2} + \sum_{t=2}^{T}\alpha^{T - t}(1 - \frac{1}{\gamma_t(\lambda)})\min_f L_{\mathrm{con}}(f; \mathcal{D}_t)$ .
|
| 754 |
+
|
| 755 |
+
Let us prove the lower bound. According to the proof of Lemma 1, for models $f_{t}$ and $f_{t-1}$ , and data distribution $\mathcal{D}_j (j \leq t)$ , we have
|
| 756 |
+
|
| 757 |
+
$$
|
| 758 |
+
L _ {\text {c o n}} \left(f _ {t}, \mathcal {D} _ {j}\right) \geq \alpha L _ {\text {c o n}} \left(f _ {t - 1}, \mathcal {D} _ {j}\right) + L _ {\text {d i s}} \left(f _ {t}; f _ {t - 1}, \mathcal {D} _ {j}\right) + \beta^ {\prime}.
|
| 759 |
+
$$
|
| 760 |
+
|
| 761 |
+
Denote $\gamma_t'(\lambda) = \max \left(\{1\} \cup \{\lambda k_{tj}\}_{j=1}^{t-1}\right)$ for task $t \geq 2$ . The proof is similar to that of the upper bound. Similarly, we have
|
| 762 |
+
|
| 763 |
+
$$
|
| 764 |
+
\begin{array}{l} L _ {\text {t e s t}} \left(f _ {T}; \mathcal {D} _ {1: T}\right) \\ = L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T}, \mathcal {D} _ {t}\right) \\ \geq L _ {\text {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \sum_ {t = 1} ^ {T - 1} \left[ L _ {\text {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) + \alpha L _ {\text {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta^ {\prime} \right] \\ \geq \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} \left[ L _ {\mathrm {c o n}} \left(f _ {T}; \mathcal {D} _ {T}\right) + \lambda \sum_ {t = 1} ^ {T - 1} k _ {T t} L _ {\mathrm {d i s}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {t}\right) \right] + \sum_ {t = 1} ^ {T - 1} \left[ \alpha L _ {\mathrm {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + \beta^ {\prime} \right] \\ = \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \alpha \sum_ {t = 1} ^ {T - 1} L _ {\text {c o n}} \left(f _ {T - 1}; \mathcal {D} _ {t}\right) + (T - 1) \beta^ {\prime} \\ = \frac {1}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} \left(f _ {T}; f _ {T - 1}, \mathcal {D} _ {T}, \mathcal {D} _ {1: T - 1}\right) + \alpha L _ {\text {t e s t}} \left(f _ {T - 1}; \mathcal {D} _ {1: T - 1}\right) + (T - 1) \beta^ {\prime} \\ \geq \alpha^ {T - 1} L _ {\text {t r a i n}} (f _ {1}; \mathcal {D} _ {1}) + \sum_ {t = 2} ^ {T} \frac {\alpha^ {T - t}}{\gamma_ {t} ^ {\prime} (\lambda)} L _ {\text {t r a i n}} (f _ {t}; f _ {t - 1}, \mathcal {D} _ {t}, \mathcal {D} _ {1: t - 1}) + \eta^ {\prime}. \\ \end{array}
|
| 765 |
+
$$
|
| 766 |
+
|
| 767 |
+
where $\alpha = \frac{2e^2}{k + e^2}$ , $\eta' = -\left(\alpha \log (1 + ke^2) + \frac{2ke^2}{1 + ke^2}\right)\frac{T - 1 - T\alpha + (\alpha)^T}{(1 - \alpha)^2}$ .
|
2024/Provable Contrastive Continual Learning/images.zip
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:591a41bee28b9eabbab6b4125872b481c1d68cb2ea056e83b84152e080477f7b
|
| 3 |
+
size 1183302
|
2024/Provable Contrastive Continual Learning/layout.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
2024/Provable Interactive Learning with Hindsight Instruction Feedback/4a66be74-f6ec-402f-86ac-0e20e2f26af8_content_list.json
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|