미니 배치 경사 하강법

🏷️ 정보 딥러닝

미니 배치 경사 하강법

미니 배치 경사 하강법(Mini-batch Gradient Descent)은 전체 훈련 데이터를 작은 미니 배치(mini-batch)로 나누어, 배치마다 그래디언트를 계산하고 가중치를 업데이트하는 방법이다. 배치 경사 하강법과 확률적 경사 하강법(SGD)의 절충안이다.

핵심

수식

\[\theta \leftarrow \theta - \alpha \cdot \frac{1}{|B|}\sum_{i \in B} \nabla_\theta \mathcal{L}(\theta; x^{(i)}, y^{(i)})\]