The Tyranny of Tuning Parameters
The Tyranny of Tuning Parameters
We all know about the curse of dimensionality. The curse creates serious practical and theoretical difficulties in many aspects of statistics. But there is another pernicious problem that gets less attention. I call it: The Tyranny of Tuning Parameters.
Many (perhaps most) data analysis methods involve one or more tuning parameters. Examples are: the in -means clustering, the regularization parameter in the lasso the bandwidth in density estimation, the number of neighbors in -nearest neighbors, the number of eigenvectors in PCA, and so on.
For some of these problems we have good data-driven methods to choose the parameters. But for others we don’t. For example, the optimal choice of tuning parameter for the lasso requires knowledge that we would never have in practice.
1. Regression: A Success
An example of a success is cross-validation in regression. Here is one version. Suppose the data are . Split the data points into a training set of size and a test set of size . From the training set we create regression estimators where is a tuning parameter and is a finite set of values for . For example, could be the bandwidth for kernel regression, or the regularization parameter for the lasso.
If is a new observation, the mean prediction error is
Minimizing the prediction error is the same as minimizing the risk:
where is the true regression function.
Estimate the risk using the test set:
Choose to minimize and let . To avoid technical complications, assume all the random variables and estimators are bounded by . We then have the following theorem (Theorem 7.1, Gy\”{o}rfi, Kohler, Krzy'{z}ak and Walk, 2002):
Let be the oracle, that is, minimizes over . Let be the size of . For any ,
where
and
In words: if you use cross-validation to use the tuning parameter , you lose at most a factor of size which is pretty small.
(Note: I focused on sample splitting but of course there are lots of other versions of cross-validation: leave-one-out, 10 fold etc.)
This is an example of a successful data-driven method for choosing the tuning parameter. But there are caveats. The result refers only to prediction error. There are other properties we might want; I’ll save that for a future post.
2. Density Estimation: A Failure
Now consider density estimation. Let where has density and . The usual kernel density estimator is
where is a kernel and is a bandwidth.
We want to choose where has element. To choose one usual focuses on minimizing the loss
which is equivalent to minimizing
The latter can be estimated using test data by
If we choose to minimize this estimated risk, then the resulting estimator satisfies the following: (see Wegkamp, 1999): for any ,
for a constant and is the oracle (the true minimizer).
This is a nice result. Like the regression result above, it gives us assurance that cross-validation (data-splitting) chooses a good tuning parameter.
But, I don’t think cross-validation really does solve the bandwidth selection problem in density estimation. The reason is that I don’t think loss is the right loss function.
Look at these three densities:
In this case, so, in the sense, is just as good an approximation to as is. And yet, is in many respects a lousy approximation. The problem is that is insensitive to shape information.
Another example is shown in the following plot:
The top left plot is the true distribution which is a mixture of a bimodal density with a point mass at 0. Of course, this distribution is singular; it does not really have a density. The top right shows the density estimator with a small bandwidth, the bottom left shows the density estimator with a medium bandwidth and the bottom right shows the density estimator with a large bandwidth. I would call the estimator in the bottom left plot a success; it shows the structure of the data nicely. Yet, cross-validation leads to the choice . The problem isn’t cross-validation. The problem here is to find a suitable loss function and then find a way to estimate the loss.
Despite years of research, I don’t think we have a good way to choose the bandwidth in a sample problem like density estimation.
3. Scale Space
Steve Marron takes a different point of view (Chaudhuri and Marron, 2002). Borrowing ideas from computer vision, he and his co-authors have argued that we should not choose a bandwidth. Instead, we should look at all the estimates . This is called the scale-space view. The idea is that different bandwidths provide different information.
I have much sympathy for this viewpoint. And it is similar to Christian Hennig’s views on clustering.
Nevertheless, I think in many cases it is useful to have a data-driven default value and I don’t think we have one yet.
4. Conclusion
There are many other examples where we don’t convincing methods for choosing tuning parameters. In many journal and conference papers, the tuning parameters have been chosen in a very ad-hoc way to make the proposed method look successful.
In my humble opinion, we need to put more effort into finding data-driven methods for choosing these annoying tuning parameters.
5. References
Gy\”{o}rfi, Kohler, Krzy'{z}ak and Walk. (2002). A Distribution-free Theory of Nonparametric Regression.
Chaudhuri, P. and Marron, J.S. (2000). Scale space view of curve estimation. The Annals of Statistics, 28, 408-428.
Wegkamp, M.H. (1999). Quasi-universal bandwidth selection for kernel density estimators. Canadian Journal of Statistics, 27, 409-420.
— Larry Wasserman

