in minibatch sgd with multiple epochs (N), which of these is better? 1. present all data…
- User
in minibatch sgd with multiple epochs (N), which of these is better?
-
present all data in the whole dataset exactly once per example for each epoch, shuffling N times over the whole dataset
-
present N x n_examples random examples from the whole dataset
-
Assistant
Let me analyze these two approaches step by step:
- First approach (shuffle and present all data exactly once per epoch):
- Guarantees each example is seen exactly N times total
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.