{"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/contextual-reliability-when-different","title":"Contextual Reliability: When Different Features Matter in Different Contexts","arxiv_id":"2307.10026","date":"2023-07-19","proceeding":null,"authors":["Gaurav Ghosal","Amrith Setlur","Daniel S. Brown","Anca D. Dragan","aditi raghunathan"],"abstract":"Deep neural networks often fail catastrophically by relying on spurious correlations. Most prior work assumes a clear dichotomy into spurious and reliable features; however, this is often unrealistic. For example, most of the time we do not want an autonomous car to simply copy the speed of surrounding cars -- we don't want our car to run a red light if a neighboring car does so. However, we cannot simply enforce invariance to next-lane speed, since it could provide valuable information about an unobservable pedestrian at a crosswalk. Thus, universally ignoring features that are sometimes (but not always) reliable can lead to non-robust performance. We formalize a new setting called contextual reliability which accounts for the fact that the \"right\" features to use may vary depending on the context. We propose and analyze a two-stage framework called Explicit Non-spurious feature Prediction (ENP) which first identifies the relevant features to use for a given context, then trains a model to rely exclusively on these features. Our work theoretically and empirically demonstrates the advantages of ENP over existing methods and provides new benchmarks for contextual reliability.","url_abs":"https://arxiv.org/abs/2307.10026v1","url_pdf":"https://arxiv.org/pdf/2307.10026v1.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":[],"tasks":[],"methods":[{"method_slug":"speed","method_name":"SPEED"},{"method_slug":"fail","method_name":"fail"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2307.10026","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2307.10026"}},"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":"deterministic:regex_extraction","url":"https://github.com/pimdh/causal-confusion","reach":null},{"provenance":"deterministic:regex_extraction","url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","reach":{"status":"ok","spdx":"NOASSERTION"}}],"summary":{"ran":5,"unverified":6},"by_repo_kind":{"found_in_text":{"samples":11,"ran":5,"repositories":2}},"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":11,"samples":[{"code_sha256_prefix":"20acd4e58bf3c87d","entry":"UniformMaskPolicy","repo":"pimdh/causal-confusion","repo_kind":"found_in_text","path":"ccil/utils/models.py","file_url":"https://github.com/pimdh/causal-confusion/blob/HEAD/ccil/utils/models.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"20acd4e58bf3c87d"}},{"code_sha256_prefix":"1e6d81c7d6f15e79","entry":"angle_to_range","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/model/data.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/model/data.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1e6d81c7d6f15e79"}},{"code_sha256_prefix":"5ccd503e365049e8","entry":"create_dataset","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/prerender/utils/prerender_utils.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/prerender/utils/prerender_utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"5ccd503e365049e8"}},{"code_sha256_prefix":"a81c2407889565b6","entry":"get_config","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/prerender/utils/utils.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/prerender/utils/utils.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"a81c2407889565b6"}},{"code_sha256_prefix":"cb989bd72ed61b1a","entry":"pytorch_neg_multi_log_likelihood_batch","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/model/losses.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/model/losses.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"cb989bd72ed61b1a"}},{"code_sha256_prefix":"27c1af051ac8007e","entry":"filter_valid","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/prerender/utils/utils.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/prerender/utils/utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"27c1af051ac8007e"}},{"code_sha256_prefix":"8ed840793c643b51","entry":"get_dataloader","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/model/data.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/model/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"8ed840793c643b51"}},{"code_sha256_prefix":"76422a754a517337","entry":"get_visualizer","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/prerender/utils/prerender_utils.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/prerender/utils/prerender_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"76422a754a517337"}},{"code_sha256_prefix":"3bf56a98d22c075a","entry":"get_visualizers","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/prerender/utils/prerender_utils.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/prerender/utils/prerender_utils.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"3bf56a98d22c075a"}},{"code_sha256_prefix":"1dc4b174ae04a6ca","entry":"nll_with_covariances","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/model/losses.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/model/losses.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"1dc4b174ae04a6ca"}},{"code_sha256_prefix":"629e970eae5bce6a","entry":"normalize","repo":"stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus","repo_kind":"found_in_text","path":"code/model/data.py","file_url":"https://github.com/stepankonev/waymo-motion-prediction-challenge-2022-multipath-plus-plus/blob/HEAD/code/model/data.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NOASSERTION","inline_ok":false,"mcp_get_code":{"code_sha256":"629e970eae5bce6a"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}