Add ScaleKernel to get_covar_module_with_dim_scaled_prior #2619
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Since version 0.12.0, dim_scaled_lognormal_prior[Hvarfner2024vanilla] has become the default. However, as ScaleKernel is not applied in
get_covar_module_with_dim_scaled_prior()
, performance may deteriorate in some cases.(The selection of the prior distribution depends on the task, but adjusting the scale seems beneficial and unproblematic across tasks.)
An example is shown below.


Run the task of finding the minimum of Styblinski-Tang (D=40) three times and compare the average performance.
Have you read the Contributing Guidelines on pull requests?
I have read it.
Test Plan
Since this is a performance-related change, testing will involve a performance comparison on benchmark functions (such as Styblinski-Tang).
Related PRs
(If this PR adds or changes functionality, please take some time to update the docs at https://github.com/pytorch/botorch, and link to your PR here.)