{"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/phase-detection-with-neural-networks","title":"Phase Detection with Neural Networks: Interpreting the Black Box","arxiv_id":"2004.04711","date":"2020-04-09","proceeding":null,"authors":["Anna Dawid","Patrick Huembeli","Michał Tomza","Maciej Lewenstein","Alexandre Dauphin"],"abstract":"Neural networks (NNs) usually hinder any insight into the reasoning behind their predictions. We demonstrate how influence functions can unravel the black box of NN when trained to predict the phases of the one-dimensional extended spinless Fermi-Hubbard model at half-filling. Results provide strong evidence that the NN correctly learns an order parameter describing the quantum transition in this model. We demonstrate that influence functions allow to check that the network, trained to recognize known quantum phases, can predict new unknown ones within the data set. Moreover, we show they can guide physicists in understanding patterns responsible for the phase transition. This method requires no a priori knowledge on the order parameter, has no dependence on the NN's architecture or the underlying physical model, and is therefore applicable to a broad class of physical models or experimental data.","url_abs":"https://arxiv.org/abs/2004.04711v1","url_pdf":"https://arxiv.org/pdf/2004.04711v1.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"phase-detection-with-neural-networks","repo_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification","is_official":1,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2004.04711","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2004.04711"}},"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/Shmoo137/Interpretable-Phase-Classification","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":5},"by_repo_kind":{"official":{"samples":5,"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":"0d25ac6be72ff16f","entry":"find_heigenvalues","repo":"Shmoo137/Interpretable-Phase-Classification","repo_kind":"official","path":"Influence_Functions_LL-CDW/utility_general.py","file_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification/blob/HEAD/Influence_Functions_LL-CDW/utility_general.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":"0d25ac6be72ff16f"}},{"code_sha256_prefix":"01e5f1c726b7455e","entry":"find_hessian","repo":"Shmoo137/Interpretable-Phase-Classification","repo_kind":"official","path":"Influence_Functions_LL-CDW/utility_general.py","file_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification/blob/HEAD/Influence_Functions_LL-CDW/utility_general.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":"01e5f1c726b7455e"}},{"code_sha256_prefix":"23df69606a91eb60","entry":"flatten_grad","repo":"Shmoo137/Interpretable-Phase-Classification","repo_kind":"official","path":"Influence_Functions_LL-CDW/utility_general.py","file_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification/blob/HEAD/Influence_Functions_LL-CDW/utility_general.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":"23df69606a91eb60"}},{"code_sha256_prefix":"edb00edfac9e4c93","entry":"grad_z","repo":"Shmoo137/Interpretable-Phase-Classification","repo_kind":"official","path":"Influence_Functions_LL-CDW/influence_function.py","file_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification/blob/HEAD/Influence_Functions_LL-CDW/influence_function.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":"edb00edfac9e4c93"}},{"code_sha256_prefix":"b1bde0fb9a4b9a70","entry":"make_IF_fig2","repo":"Shmoo137/Interpretable-Phase-Classification","repo_kind":"official","path":"Influence_Functions_LL-CDW/utility_plots.py","file_url":"https://github.com/Shmoo137/Interpretable-Phase-Classification/blob/HEAD/Influence_Functions_LL-CDW/utility_plots.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":"b1bde0fb9a4b9a70"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}