{"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/accuracy-on-the-line-on-the-strong","title":"Accuracy on the Line: On the Strong Correlation Between Out-of-Distribution and In-Distribution Generalization","arxiv_id":"2107.04649","date":"2021-07-09","proceeding":null,"authors":["John Miller","Rohan Taori","aditi raghunathan","Shiori Sagawa","Pang Wei Koh","Vaishaal Shankar","Percy Liang","Yair Carmon","Ludwig Schmidt"],"abstract":"For machine learning systems to be reliable, we must understand their performance in unseen, out-of-distribution environments. In this paper, we empirically show that out-of-distribution performance is strongly correlated with in-distribution performance for a wide range of models and distribution shifts. Specifically, we demonstrate strong correlations between in-distribution and out-of-distribution performance on variants of CIFAR-10 & ImageNet, a synthetic pose estimation task derived from YCB objects, satellite imagery classification in FMoW-WILDS, and wildlife classification in iWildCam-WILDS. The strong correlations hold across model architectures, hyperparameters, training set size, and training duration, and are more precise than what is expected from existing domain adaptation theory. To complete the picture, we also investigate cases where the correlation is weaker, for instance some synthetic distribution shifts from CIFAR-10-C and the tissue classification dataset Camelyon17-WILDS. Finally, we provide a candidate theory based on a Gaussian data model that shows how changes in the data covariance arising from distribution shift can affect the observed correlations.","url_abs":"https://arxiv.org/abs/2107.04649v2","url_pdf":"https://arxiv.org/pdf/2107.04649v2.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":"accuracy-on-the-line-on-the-strong","repo_url":"https://github.com/modestyachts/imagenet-testbed","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"classification-1","task_name":"Classification"},{"task_slug":"domain-adaptation","task_name":"Domain Adaptation"},{"task_slug":"pose-estimation","task_name":"Pose Estimation"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2107.04649","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2107.04649"}},"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/modestyachts/imagenet-testbed","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":4},"by_repo_kind":{"listed":{"samples":4,"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":"95d9af1616268a7f","entry":"show_in_plot","repo":"modestyachts/imagenet-testbed","repo_kind":"listed","path":"plotting/paper_appendix_imagenet_r.py","file_url":"https://github.com/modestyachts/imagenet-testbed/blob/HEAD/plotting/paper_appendix_imagenet_r.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"95d9af1616268a7f"}},{"code_sha256_prefix":"c051afd9c2eac889","entry":"show_in_plot","repo":"modestyachts/imagenet-testbed","repo_kind":"listed","path":"plotting/paper_appendix_imagenet_sketch.py","file_url":"https://github.com/modestyachts/imagenet-testbed/blob/HEAD/plotting/paper_appendix_imagenet_sketch.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"c051afd9c2eac889"}},{"code_sha256_prefix":"2c4bd8cf77e6cd4d","entry":"validate_val_on_vid_robust_classes","repo":"modestyachts/imagenet-testbed","repo_kind":"listed","path":"src/eval_settings/imagenet_vid_robust.py","file_url":"https://github.com/modestyachts/imagenet-testbed/blob/HEAD/src/eval_settings/imagenet_vid_robust.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2c4bd8cf77e6cd4d"}},{"code_sha256_prefix":"ecc4d8d031596b55","entry":"validate_vid_robust","repo":"modestyachts/imagenet-testbed","repo_kind":"listed","path":"src/eval_settings/imagenet_vid_robust.py","file_url":"https://github.com/modestyachts/imagenet-testbed/blob/HEAD/src/eval_settings/imagenet_vid_robust.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"ecc4d8d031596b55"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}