What approximation is used in hyperparameter training for classification?
- User
What approximation is used in hyperparameter training for classification?
Assistant
Based on the repository code, the DOBE (Dynamic Online Basis Expansion) classification models use the Laplace approximation for hyperparameter training, specifically when calculating the marginal negative log likelihood (MNLL) during the pretraining phase.
This can be seen in the
DOBE_Classificationclass inmodels_classification.py, where themnllmethod implements Algorithm 5.1 from Rasmussen & Williams (2006) "Gaussian Processes for Machine Learning". The method uses:-
A [Redacted Person] approximation to handle the non-conjugate likelihood of the classification model
-
Key steps in the approximation include:
- Computing the posterior mode using [Redacted Person]'s method
- Using a Taylor expansion around the mode
- Calculating the [Redacted Person] at the mode
-
The code specifically mentions this is not highly optimized, with the comment:
python# WARNING: This code is not particularly well-optimized, and both efficiency and accuracy # could likely be improved if classification is of particular interest (see, e.g., # Section 3.4 of the DOEBE paper)Additionally, when sampling hyperparameters during the
pretrain_and_samplemethod, two types of approximations can be used:- "laplace" - Samples from the Laplace approximation of the marginal likelihood
- "gaussian" - Uses random perturbations of the trained hyperparameters
The Laplace approximation is used by default for most model types except RBF models, which use Gaussian perturbations by default, as seen in the experiment code.
-
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.