Papers › MD tree: a model-diagnostic tree grown on loss landscape

MD tree: a model-diagnostic tree grown on loss landscape

24 Jun 2024arXiv:2406.16988archive 2025-07-28

Yefan Zhou, Jianlong Chen, Qinxue Cao, Konstantin Schürholt, Yaoqing Yang

This paper considers "model diagnosis", which we formulate as a classification problem. Given a pre-trained neural network (NN), the goal is to predict the source of failure from a set of failure modes (such as a wrong hyperparameter, inadequate model size, and insufficient data) without knowing the training configuration of the pre-trained NN. The conventional diagnosis approach uses training and validation errors to determine whether the model is underfitting or overfitting. However, we show that rich information about NN performance is encoded in the optimization loss landscape, which provides more actionable insights than validation-based measurements. Therefore, we propose a diagnosis method called MD tree based on loss landscape metrics and experimentally demonstrate its advantage over classical validation-based approaches. We verify the effectiveness of MD tree in multiple practical scenarios: (1) use several models trained on one dataset to diagnose a model trained on another dataset, essentially a few-shot dataset transfer problem; (2) use small models (or models trained with small data) to diagnose big models (or models trained with big data), essentially a scale transfer problem. In a dataset transfer task, MD tree achieves an accuracy of 87.7%, outperforming validation-based approaches by 14.88%. Our code is available at https://github.com/YefanZhou/ModelDiagnosis.

PaperPDFCodeCode Syntology ran

In Syntology 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.16988")

Code

Syntology Ran 15 of 17 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 9 ran · fixture could not drive it; 6 ran with no contract checked.

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

yefanzhou/modeldiagnosis officialmentioned in paperMIT 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

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

9ran · fixture could not drive it
6ran
2unverified

Licence: 0 of the 17 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 YefanZhou/ModelDiagnosis. “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.

assign_data_batch_label YefanZhou/ModelDiagnosis/utils/hyper_failure_utils.py official repository ran MIT (permissive) · 92299c1945663652 · report
assign_temp_value YefanZhou/ModelDiagnosis/utils/hyper_failure_utils.py official repository ran MIT (permissive) · 6c071983849eb76c · report
assign_width_batch_label YefanZhou/ModelDiagnosis/utils/hyper_failure_utils.py official repository ran MIT (permissive) · 8400f8f798b63074 · report
baseline_diagnoise YefanZhou/ModelDiagnosis/one_step/one_step_hpo_utils.py official repository ran MIT (permissive) · 0cf3649fb980c8ee · report
get_metric_file YefanZhou/ModelDiagnosis/utils/data.py official repository ran MIT (permissive) · 372c749783ab6674 · report
get_metric_val YefanZhou/ModelDiagnosis/utils/data.py official repository ran fingerprinted MIT (permissive) · f923e268a40605e4 · report
objective_data yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it MIT (permissive) · e8741f72ae5726ea · report
objective_temp yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it MIT (permissive) · 18e31b2fb6dd638a · report
objective_temp_cka yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it MIT (permissive) · 821904534ab3b21b · report
objective_width yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it MIT (permissive) · 516ef9a96aecdc93 · report
predictor_data_temp yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · c87846c634884e4c · report
predictor_temp yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 32e14b47fa143ba0 · report
predictor_temp_w_cka yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 94e52e9951bfd64f · report
predictor_width_temp yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · c494fe11b676fc77 · report
sample_train_set yefanzhou/modeldiagnosis/method/md_tree.py official repository ran · fixture could not drive it MIT (permissive) · 64408f31933c8ad0 · report
evaluate_mdtree yefanzhou/modeldiagnosis/method/md_tree.py official repository unverified MIT (permissive) · f78fc3e8ac9740fa · report
preprocess YefanZhou/ModelDiagnosis/utils/data.py official repository unverified MIT (permissive) · 977e8ff87e42d094 · report

Tasks

Diagnostic

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

SET

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