Papers › Characterizing out-of-distribution generalization of neural networks: application to...

Characterizing out-of-distribution generalization of neural networks: application to the disordered Su-Schrieffer-Heeger model

14 Jun 2024arXiv:2406.10012links table onlyarchive 2025-07-28

Kacper Cybiński, Marcin Płodzień, Michał Tomza, Maciej Lewenstein, Alexandre Dauphin, Anna Dawid

The archive published only this paper's code-link row. Authors, date and abstract are from arXiv's metadata (CC0), read from the Kaggle arXiv metadata snapshot of 2026-09-12 where its title matched the archive's; the title is the archive's.

Machine learning (ML) is a promising tool for the detection of phases of matter. However, ML models are also known for their black-box construction, which hinders understanding of what they learn from the data and makes their application to novel data risky. Moreover, the central challenge of ML is to ensure its good generalization abilities, i.e., good performance on data outside the training set. Here, we show how the informed use of an interpretability method called class activation mapping (CAM), and the analysis of the latent representation of the data with the principal component analysis (PCA) can increase trust in predictions of a neural network (NN) trained to classify quantum phases. In particular, we show that we can ensure better out-of-distribution generalization in the complex classification problem by choosing such an NN that, in the simplified version of the problem, learns a known characteristic of the phase. We show this on an example of the topological Su-Schrieffer-Heeger (SSH) model with and without disorder, which turned out to be surprisingly challenging for NNs trained in a supervised way. This work is an example of how the systematic use of interpretability methods can improve the performance of NNs in scientific problems.

PaperPDFCodeCode Syntology ran

In Syntology View this paper on Syntology: its repositories, every harvested function with whether it ran, its licence and the call to fetch it.

Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2406.10012")

Code

Syntology Ran 4 of 13 code samples harvested from 1 repository linked to this paper; 9 have no recorded run. Of those that ran: 4 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

kcybinski/interpreting_nns_for_topological_phases_of_matter officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 4 ran; 0 honoured the contract we drafted; 9 have no recorded run. Read from Syntology's graph 2026-09-25; that is when this build read the record, not when the samples ran.

4ran
9unverified

Licence: 13 of the 13 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from kcybinski/interpreting_nns_for_topological_phases_of_matter. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

Thermometer kcybinski/interpreting_nns_for_topological_phases_of_matter/src/thermometer_encoding.py official repository ran fingerprinted no licence file found · pointer only · 5cc1278ad1a88e4f · report
compute_covariance kcybinski/interpreting_nns_for_topological_phases_of_matter/src/coral.py official repository ran fingerprinted no licence file found · pointer only · 8d382550d35731fb · report
coral kcybinski/interpreting_nns_for_topological_phases_of_matter/src/coral.py official repository ran fingerprinted no licence file found · pointer only · 8000cd8b01b06ba5 · report
get_preds_from_model kcybinski/interpreting_nns_for_topological_phases_of_matter/src/utils.py official repository ran no licence file found · pointer only · 01b90d0e11981a1e · report
calc_Dim kcybinski/interpreting_nns_for_topological_phases_of_matter/src/data_generation.py official repository unverified no licence file found · pointer only · bafa2aa6a204ba9f · report
calc_dim_tab kcybinski/interpreting_nns_for_topological_phases_of_matter/src/data_generation.py official repository unverified no licence file found · pointer only · 82c643b9633d049d · report
get_tensor_basis kcybinski/interpreting_nns_for_topological_phases_of_matter/src/data_generation.py official repository unverified no licence file found · pointer only · 91884918abc54a17 · report
one_hot kcybinski/interpreting_nns_for_topological_phases_of_matter/src/thermometer_encoding.py official repository unverified no licence file found · pointer only · 63052d81412770ae · report
one_hot_to_thermometer kcybinski/interpreting_nns_for_topological_phases_of_matter/src/thermometer_encoding.py official repository unverified no licence file found · pointer only · 518b0ded87c400a4 · report
prepare_dfs kcybinski/interpreting_nns_for_topological_phases_of_matter/src/utils.py official repository unverified no licence file found · pointer only · 822c059c5f109d5b · report
returnCAM kcybinski/interpreting_nns_for_topological_phases_of_matter/src/cam_utils.py official repository unverified no licence file found · pointer only · 34fd79e9c20497fd · report
test_model kcybinski/interpreting_nns_for_topological_phases_of_matter/src/utils.py official repository unverified no licence file found · pointer only · 1dcac578d4759333 · report
upsample_CAM kcybinski/interpreting_nns_for_topological_phases_of_matter/src/cam_utils.py official repository unverified no licence file found · pointer only · 14456da0d059f968 · report

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections