{"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/pac-bayes-compression-bounds-so-tight-that","title":"PAC-Bayes Compression Bounds So Tight That They Can Explain Generalization","arxiv_id":"2211.13609","date":"2022-11-24","proceeding":null,"authors":["Sanae Lotfi","Marc Finzi","Sanyam Kapoor","Andres Potapczynski","Micah Goldblum","Andrew Gordon Wilson"],"abstract":"While there has been progress in developing non-vacuous generalization bounds for deep neural networks, these bounds tend to be uninformative about why deep learning works. In this paper, we develop a compression approach based on quantizing neural network parameters in a linear subspace, profoundly improving on previous results to provide state-of-the-art generalization bounds on a variety of tasks, including transfer learning. We use these tight bounds to better understand the role of model size, equivariance, and the implicit biases of optimization, for generalization in deep learning. Notably, we find large models can be compressed to a much greater extent than previously known, encapsulating Occam's razor. We also argue for data-independent bounds in explaining generalization.","url_abs":"https://arxiv.org/abs/2211.13609v1","url_pdf":"https://arxiv.org/pdf/2211.13609v1.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":"pac-bayes-compression-bounds-so-tight-that","repo_url":"https://github.com/activatedgeek/tight-pac-bayes","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"deep-learning","task_name":"Deep Learning"},{"task_slug":"generalization-bounds","task_name":"Generalization Bounds"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2211.13609","atlas_url":"https://app.syntology.ai/?focus=2211.13609","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2211.13609"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+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/activatedgeek/tight-pac-bayes","reach":{"status":"ok","spdx":"Apache-2.0"}}],"summary":{"ran":6,"unverified":3},"by_repo_kind":{"official":{"samples":9,"ran":6,"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":"b3e17ae8d60c17de","entry":"assign_to_label","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/quantize_pruned_model.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/quantize_pruned_model.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b3e17ae8d60c17de"}},{"code_sha256_prefix":"934b4a803b8f9913","entry":"compute_message_len","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/quantize_pruned_model.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/quantize_pruned_model.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"934b4a803b8f9913"}},{"code_sha256_prefix":"cbbf30f4b3d42a8d","entry":"eval_acc","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/prune_model.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/prune_model.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"cbbf30f4b3d42a8d"}},{"code_sha256_prefix":"abb4bda0a172ab1a","entry":"eval_acc","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/train_quantize_aware.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/train_quantize_aware.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"abb4bda0a172ab1a"}},{"code_sha256_prefix":"12263fec32882a9e","entry":"pac_bayes_bound_opt","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"pactl/bounds/get_pac_bounds.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/pactl/bounds/get_pac_bounds.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"12263fec32882a9e"}},{"code_sha256_prefix":"d6ef7785afccf414","entry":"pretrained_model_surgery","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/transfer_learning/finetune_new.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/transfer_learning/finetune_new.py","link_basis":"harvester_set","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"d6ef7785afccf414"}},{"code_sha256_prefix":"0000f6f308b6afac","entry":"compute_convexity_bound","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"pactl/bounds/get_pac_bounds.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/pactl/bounds/get_pac_bounds.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":"0000f6f308b6afac"}},{"code_sha256_prefix":"313b817676596c9a","entry":"pac_bayes_bound","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"pactl/bounds/get_pac_bounds.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/pactl/bounds/get_pac_bounds.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":"313b817676596c9a"}},{"code_sha256_prefix":"f1231fb71bd07183","entry":"pretrained_model_surgery","repo":"activatedgeek/tight-pac-bayes","repo_kind":"official","path":"experiments/transfer_learning/finetune_id_expt.py","file_url":"https://github.com/activatedgeek/tight-pac-bayes/blob/HEAD/experiments/transfer_learning/finetune_id_expt.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":"f1231fb71bd07183"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}