| 算法1 AMSGrad | 算法2MAXGrad |
| 输入: , , , , | 输入: , , , , |
| 初始化: , , | 初始化: , , |
| 1: for to T do | 1: for to T do |
| 2: | 2: |
| 3: | 3: |
| 4: 5: and | 4: and |
| 6: | 5: |
| 7: end for | 6: end for |