{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/pre-training-helps-bayesian-optimization-too","title":"Pre-training helps Bayesian optimization too","arxiv_id":"2207.03084","date":"2022-07-07","proceeding":null,"authors":["Zi Wang","George E. Dahl","Kevin Swersky","Chansoo Lee","Zelda Mariet","Zachary Nado","Justin Gilmer","Jasper Snoek","Zoubin Ghahramani"],"abstract":"Bayesian optimization (BO) has become a popular strategy for global optimization of many expensive real-world functions. Contrary to a common belief that BO is suited to optimizing black-box functions, it actually requires domain knowledge on characteristics of those functions to deploy BO successfully. Such domain knowledge often manifests in Gaussian process priors that specify initial beliefs on functions. However, even with expert knowledge, it is not an easy task to select a prior. This is especially true for hyperparameter tuning problems on complex machine learning models, where landscapes of tuning objectives are often difficult to comprehend. We seek an alternative practice for setting these functional priors. In particular, we consider the scenario where we have data from similar functions that allow us to pre-train a tighter distribution a priori. To verify our approach in realistic model training setups, we collected a large multi-task hyperparameter tuning dataset by training tens of thousands of configurations of near-state-of-the-art models on popular image and text datasets, as well as a protein sequence dataset. Our results show that on average, our method is able to locate good hyperparameters at least 3 times more efficiently than the best competing methods.","url_abs":"https://arxiv.org/abs/2207.03084v1","url_pdf":"https://arxiv.org/pdf/2207.03084v1.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"pre-training-helps-bayesian-optimization-too","repo_url":"https://github.com/google-research/hyperbo","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"jax","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"bayesian-optimization","task_name":"Bayesian Optimization"},{"task_slug":"global-optimization","task_name":"global-optimization"}],"methods":[{"method_slug":"gaussian-process","method_name":"Gaussian Process"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2207.03084","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2207.03084"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/google-research/hyperbo","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"unverified":12},"by_repo_kind":{"official":{"samples":12,"ran":0,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted","community":"Not in the archive's code links for this paper; a community repository Syntology harvested"},"n_pointer_only_for_licence":0,"samples":[{"code_sha256_prefix":"96b3667fd2aaf84e","entry":"backtracking_linesearch","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/lbfgs.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/lbfgs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"96b3667fd2aaf84e"}},{"code_sha256_prefix":"725cd249591d5b64","entry":"bfgs","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/bfgs.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/bfgs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"725cd249591d5b64"}},{"code_sha256_prefix":"2d3ab739783d2452","entry":"expected_improvement_sub","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/bo_utils/acfun.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/bo_utils/acfun.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"2d3ab739783d2452"}},{"code_sha256_prefix":"020f1f64d8f9a8de","entry":"get_best_datapoint","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/bo_utils/bayesopt.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/bo_utils/bayesopt.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"020f1f64d8f9a8de"}},{"code_sha256_prefix":"b268783ba1900dfd","entry":"lbfgs","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/lbfgs.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/lbfgs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b268783ba1900dfd"}},{"code_sha256_prefix":"7352dd5a69ac440c","entry":"lbfgs_descent_dir_nocedal","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/lbfgs.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/lbfgs.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"7352dd5a69ac440c"}},{"code_sha256_prefix":"0612e549e9cc4d08","entry":"load_from_file","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/params_utils.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/params_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0612e549e9cc4d08"}},{"code_sha256_prefix":"c932d5b4b4bd1859","entry":"log_dataset","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/data_utils.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/data_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"c932d5b4b4bd1859"}},{"code_sha256_prefix":"ed6ff476d6215244","entry":"random_search","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/bo_utils/acfun.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/bo_utils/acfun.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ed6ff476d6215244"}},{"code_sha256_prefix":"fcb5788c1b680975","entry":"sample_dataframe","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/bo_utils/data.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/bo_utils/data.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"fcb5788c1b680975"}},{"code_sha256_prefix":"0a6dd267fa7a490c","entry":"solve_linear_system","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/linalg.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/linalg.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"0a6dd267fa7a490c"}},{"code_sha256_prefix":"4d555f42b48f0b81","entry":"to_list_or_float","repo":"google-research/hyperbo","repo_kind":"official","path":"hyperbo/basics/params_utils.py","file_url":"https://github.com/google-research/hyperbo/blob/HEAD/hyperbo/basics/params_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"4d555f42b48f0b81"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}