Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Stochastic gradient descent 1 point possible ( graded ) Even if we can fit a large data set in the memory of our computer, computing
Stochastic gradient descent
point possible graded
Even if we can fit a large data set in the memory of our computer, computing the gradient of requires iterating over every data point. This can be a considerably lengthy process, and must be repeated often for each step in the gradient descent process. Instead, we seek to reduce the number of data points that are required for computing the gradient. We will do this by taking a subsample of the data.
Notice that we can freely rescale the loss function by a multiplicative constant:
This looks a lot like a mean. Therefore, if we define our data set to be a population, then we can write the loss function as an expectation over this population:
We can then estimate the update step by using the gradient for only one data point,
The data point to use should be chosen randomly at each iteration step.
As long as we choose uniformly from the data set, we find that this estimator is unbiased:
This is known as stochastic gradient descent.
In order to ensure that we use all available data, we should choose the maximum number of iterations to be several times larger than the data set. There are also variations on this scheme where the data point used at each step is selected sequentially an array of data points. In that case, the update rule would be
A sequential stochastic gradient descent can be useful if selecting random data points on the fly is computationally expensive. This can occur for some storage mediums, such as hard drives, which have a slow random access time. By reading the data sequentially, we improve performance by ordering our read requests to the storage medium.
In the sequential variation of stochastic gradient descent, how should we initialize this array of data points to minimize the number of iterations required to converge ie increase the algorithmic performance of SGD itself
In the order that the data points were observed experimentally.
In random order.
The initialization strategy for the array of data points does not matter.
unanswered
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started