{"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/failing-loudly-an-empirical-study-of-methods","title":"Failing Loudly: An Empirical Study of Methods for Detecting Dataset Shift","arxiv_id":"1810.11953","date":"2018-10-29","proceeding":"NeurIPS 2019 12","authors":["Stephan Rabanser","Stephan Günnemann","Zachary C. Lipton"],"abstract":"We might hope that when faced with unexpected inputs, well-designed software systems would fire off warnings. Machine learning (ML) systems, however, which depend strongly on properties of their inputs (e.g. the i.i.d. assumption), tend to fail silently. This paper explores the problem of building ML systems that fail loudly, investigating methods for detecting dataset shift, identifying exemplars that most typify the shift, and quantifying shift malignancy. We focus on several datasets and various perturbations to both covariates and label distributions with varying magnitudes and fractions of data affected. Interestingly, we show that across the dataset shifts that we explore, a two-sample-testing-based approach, using pre-trained classifiers for dimensionality reduction, performs best. Moreover, we demonstrate that domain-discriminating approaches tend to be helpful for characterizing shifts qualitatively and determining if they are harmful.","url_abs":"https://arxiv.org/abs/1810.11953v4","url_pdf":"https://arxiv.org/pdf/1810.11953v4.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":"failing-loudly-an-empirical-study-of-methods","repo_url":"https://github.com/steverab/failing-loudly","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"MIT"}},{"paper_slug":"failing-loudly-an-empirical-study-of-methods","repo_url":"https://github.com/bbwang1030/half-kfn","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"jax","reach":null}],"tasks":[{"task_slug":"dimensionality-reduction","task_name":"Dimensionality Reduction"},{"task_slug":"hypothesis-testing","task_name":"Two-sample testing"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/1810.11953","atlas_url":"https://app.syntology.ai/?focus=1810.11953","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1810.11953"}},"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/bbwang1030/half-kfn","reach":null},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/steverab/failing-loudly","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_honours":1,"ran_draft_wrong":1,"unverified":4},"by_repo_kind":{"official":{"samples":6,"ran":2,"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":"dc5beb6794ffee14","entry":"clamp","repo":"steverab/failing-loudly","repo_kind":"official","path":"generate_summary_tables.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/generate_summary_tables.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dc5beb6794ffee14"}},{"code_sha256_prefix":"8f9ed890ba3963a5","entry":"colorscale","repo":"steverab/failing-loudly","repo_kind":"official","path":"generate_summary_tables.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/generate_summary_tables.py","link_basis":"plan_row","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8f9ed890ba3963a5"}},{"code_sha256_prefix":"77208b415a7f6915","entry":"apply_shift","repo":"steverab/failing-loudly","repo_kind":"official","path":"shift_applicator.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/shift_applicator.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":"77208b415a7f6915"}},{"code_sha256_prefix":"d405be96c569e8a1","entry":"normalize_datapoints","repo":"steverab/failing-loudly","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/data_utils.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":"d405be96c569e8a1"}},{"code_sha256_prefix":"b5124fcc0cf4f8d7","entry":"random_shuffle","repo":"steverab/failing-loudly","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/data_utils.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":"b5124fcc0cf4f8d7"}},{"code_sha256_prefix":"ce348e64dea68e4c","entry":"random_shuffle_and_split","repo":"steverab/failing-loudly","repo_kind":"official","path":"data_utils.py","file_url":"https://github.com/steverab/failing-loudly/blob/HEAD/data_utils.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":"ce348e64dea68e4c"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}