<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Momentum on Arshad Siddiqui</title><link>https://arshadhs.github.io/tags/momentum/</link><description>Recent content in Momentum on Arshad Siddiqui</description><generator>Hugo</generator><language>en-us</language><atom:link href="https://arshadhs.github.io/tags/momentum/index.xml" rel="self" type="application/rss+xml"/><item><title>Momentum Methods</title><link>https://arshadhs.github.io/docs/ai/deep-learning/102-momentum-methods/</link><pubDate>Mon, 01 Jan 0001 00:00:00 +0000</pubDate><guid>https://arshadhs.github.io/docs/ai/deep-learning/102-momentum-methods/</guid><description>&lt;h1 id="optimisation-momentum-methods">
 Optimisation: Momentum Methods
 
 &lt;a class="anchor" href="#optimisation-momentum-methods">#&lt;/a>
 
&lt;/h1>
&lt;p>Momentum improves gradient descent by adding a memory of previous update directions.
Instead of using only the current gradient, the optimiser accumulates velocity across iterations.&lt;/p>
&lt;blockquote class="book-hint info">
&lt;p>&lt;strong>Key takeaway:&lt;/strong>&lt;br>
Momentum helps the optimiser move faster in consistent directions and reduces zigzag movement in directions where gradients oscillate.&lt;/p>
&lt;/blockquote>
&lt;hr>


&lt;pre class="mermaid">
flowchart TD
 A[&amp;#34;Momentum-based Optimiser&amp;#34;] --&amp;gt; B[&amp;#34;SGD with Momentum&amp;#34;]

 B --&amp;gt; B1[&amp;#34;Adds velocity term&amp;#34;]
 B --&amp;gt; B2[&amp;#34;Accumulates past gradients&amp;#34;]
 B --&amp;gt; B3[&amp;#34;Reduces zig-zag movement&amp;#34;]
 B --&amp;gt; B4[&amp;#34;Speeds up movement in useful direction&amp;#34;]
 B --&amp;gt; B5[&amp;#34;Helps through shallow regions&amp;#34;]

 B1 --&amp;gt; C1[&amp;#34;Current update depends on previous update&amp;#34;]
 B2 --&amp;gt; C2[&amp;#34;Builds inertia&amp;#34;]
 B3 --&amp;gt; C3[&amp;#34;Smoother path to minimum&amp;#34;]

 style A fill:#C8E6C9,stroke:#43A047,stroke-width:2px
 style B fill:#E1F5FE,stroke:#4A90E2
 style B1 fill:#EDE7F6,stroke:#7E57C2
 style B2 fill:#FFF9C4,stroke:#FBC02D
 style B3 fill:#F8BBD0,stroke:#D81B60
 style B4 fill:#EDE7F6,stroke:#7E57C2
 style B5 fill:#FFF9C4,stroke:#FBC02D
&lt;/pre>

&lt;hr>
&lt;h2 id="physical-intuition-">
 Physical Intuition ☆
 
 &lt;a class="anchor" href="#physical-intuition-">#&lt;/a>
 
&lt;/h2>
&lt;p>Momentum is often explained using the analogy of a ball rolling down a hill.&lt;/p></description></item></channel></rss>