metric-shift commited on
Commit
465fbb3
·
verified ·
1 Parent(s): 564d03e

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +207 -0
README.md ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license:
3
+ - cc-by-4.0
4
+ - mit
5
+ - other
6
+ task_categories:
7
+ - tabular-regression
8
+ tags:
9
+ - metric-shift
10
+ - benchmark
11
+ - scientific-ml
12
+ - cross-domain
13
+ - cross-metric-prediction
14
+ size_categories:
15
+ - 100K<n<1M
16
+ configs:
17
+ - config_name: zinc250k
18
+ data_files:
19
+ - split: features
20
+ path: zinc250k/features.csv
21
+ - split: labels
22
+ path: zinc250k/labels.csv
23
+ - config_name: air_quality
24
+ data_files:
25
+ - split: features
26
+ path: air_quality/features.csv
27
+ - split: labels
28
+ path: air_quality/labels.csv
29
+ - config_name: jarvis_materials
30
+ data_files:
31
+ - split: features
32
+ path: jarvis_materials/features.csv
33
+ - split: labels
34
+ path: jarvis_materials/labels.csv
35
+ - config_name: protein_fitness_expanded
36
+ data_files:
37
+ - split: features
38
+ path: protein_fitness_expanded/features.csv
39
+ - split: labels
40
+ path: protein_fitness_expanded/labels.csv
41
+ - config_name: drug_admet
42
+ data_files:
43
+ - split: features
44
+ path: drug_admet/features.csv
45
+ - split: labels
46
+ path: drug_admet/labels.csv
47
+ - config_name: climate_stations
48
+ data_files:
49
+ - split: features
50
+ path: climate_stations/features.csv
51
+ - split: labels
52
+ path: climate_stations/labels.csv
53
+ ---
54
+
55
+ # Metric Shift Benchmark
56
+
57
+ A cross-domain benchmark for predicting expensive scientific measurements from
58
+ cheap surrogates, spanning **6 scientific fields** and **134 valid
59
+ (y1, y2) pairs** with a standardized evaluation protocol.
60
+
61
+ **Paper:** *Metric Shift: A Benchmark for Predicting Expensive Scientific
62
+ Measurements from Cheap Surrogates* (NeurIPS 2026 Evaluations & Datasets Track, under review)
63
+
64
+ ## Benchmark Overview
65
+
66
+ | Dataset | Domain | Samples | Feat. dim | Labels | Valid pairs | License |
67
+ |---------|--------|---------|-----------|--------|-------------|---------|
68
+ | `zinc250k` | Drug Chemistry | 249,455 | 14 | 3 | 6 | ZINC academic-use, f... |
69
+ | `air_quality` | Environmental Science | 382,168 | 7 | 6 | 28 | CC-BY-4.0 (UCI ML Re... |
70
+ | `jarvis_materials` | Materials Science | 10,800 | 14 | 6 | 30 | Public domain / NIST... |
71
+ | `protein_fitness_expanded` | Protein Biology | 61,704 | 22 | 24 | 38 | MIT (ProteinGym aggr... |
72
+ | `drug_admet` | Pharmacology | 1,523 | 14 | 4 | 12 | CC-BY-4.0 (Polaris H... |
73
+ | `climate_stations` | Climate Science | 28,488 | 5 | 5 | 20 | CC-BY-4.0, dual attr... |
74
+ | **Total** | --- | **734,138** | --- | --- | **134** | --- |
75
+
76
+ ## Problem: Metric Shift
77
+
78
+ Given a shared entity x (molecule, material, protein variant), a cheap source
79
+ metric y1, and an expensive target metric y2: can we use universally available
80
+ y1 to improve prediction of the sparsely labeled y2?
81
+
82
+ Key properties:
83
+ - y1 is **always available at test time** (cheap to measure for any new candidate)
84
+ - The input distribution p(x) is fixed; only the prediction target changes
85
+ - Unlike domain adaptation (shifts p(x)) or multi-task learning (co-predicts)
86
+
87
+ ## Evaluation Protocol
88
+
89
+ - **Split:** 60% train / 20% val / 20% test at `split_seed=42`
90
+ - **Labeled ratio:** 20% of train (main setting); 1% and 5% for ablation
91
+ - **Seeds:** 5 model seeds per pair
92
+ - **Metrics:** R-squared and Spearman rho
93
+ - **Significance:** Paired t-test across seeds + Benjamini-Hochberg FDR at q=0.05
94
+ - **Aggregation:** Macro-median (per-dataset median, then cross-dataset median)
95
+ - **StandardScaler:** fit on labeled train only
96
+
97
+ ## Usage
98
+
99
+ ```python
100
+ import pandas as pd
101
+
102
+ # Load one sub-dataset
103
+ features = pd.read_csv("zinc250k/features.csv")
104
+ labels = pd.read_csv("zinc250k/labels.csv")
105
+
106
+ # Each (source, target) column pair in labels defines a Metric Shift task
107
+ # See metadata.json for the list of valid pairs with Spearman correlations
108
+ ```
109
+
110
+ One-command reproduction of all tables and figures:
111
+ ```bash
112
+ pip install metric-shift-benchmark
113
+ python -m metric_shift.run_all
114
+ ```
115
+
116
+ ## Dataset Details
117
+
118
+ ### `zinc250k` — Drug Chemistry
119
+
120
+ 249,455 drug-like molecules, 14 RDKit descriptors, 3 labels (logP, QED, SAS), 6 pairs
121
+
122
+ - **Source:** ZINC database (Irwin & Shoichet 2005; Sterling & Irwin 2015)
123
+ - **License:** ZINC academic-use, free redistribution with attribution
124
+ - **Features (14d):** `MolWt, HeavyAtomCount, NumHeteroatoms, NumValenceElectrons, TPSA, MolMR, HBA, HBD, NumRotatableBonds, RingCount, NumAromaticRings, FractionCSP3, BalabanJ, BertzCT`
125
+ - **Labels (3col):** `logP, QED, SAS`
126
+
127
+ ### `air_quality` — Environmental Science
128
+
129
+ 382,168 hourly records, 7 meteo features, 6 pollutants, 28 pairs
130
+
131
+ - **Source:** Beijing Multi-Site Air-Quality Dataset (Zhang et al. 2017)
132
+ - **License:** CC-BY-4.0 (UCI ML Repository)
133
+ - **Features (7d):** `TEMP, PRES, DEWP, RAIN, WSPM, wd_sin, wd_cos`
134
+ - **Labels (6col):** `PM25, PM10, SO2, NO2, CO, O3`
135
+
136
+ ### `jarvis_materials` — Materials Science
137
+
138
+ 10,800 inorganic crystals, 14 composition descriptors, 6 labels, 30 pairs
139
+
140
+ - **Source:** JARVIS-DFT 3D (Choudhary et al. 2020)
141
+ - **License:** Public domain / NIST (17 USC §105)
142
+ - **Features (14d):** `mean_Z, std_Z, mean_X, std_X, mean_row, std_row, mean_group, std_group, mean_atomic_mass, std_atomic_mass, density, volume_per_atom, n_sites, packing_fraction`
143
+ - **Labels (6col):** `formation_energy_peratom, optb88vdw_bandgap, bulk_modulus_kv, shear_modulus_gv, n_seebeck, p_seebeck`
144
+
145
+ ### `protein_fitness_expanded` — Protein Biology
146
+
147
+ 61,704 variants, 22-d mutation features, 24 DMS assays, 38 within-protein pairs
148
+
149
+ - **Source:** ProteinGym substitution benchmark (Notin et al. 2023)
150
+ - **License:** MIT (ProteinGym aggregation)
151
+ - **Features (22d):** `protein_id, n_mutations, AA_A_diff, AA_C_diff, AA_D_diff, AA_E_diff, AA_F_diff, AA_G_diff, AA_H_diff, AA_I_diff, AA_K_diff, AA_L_diff, AA_M_diff, AA_N_diff, AA_P_diff, AA_Q_diff, AA_R_diff, AA_S_diff, AA_T_diff, AA_V_diff, AA_W_diff, AA_Y_diff`
152
+ - **Labels (24col):** `p53_null_etoposide, p53_null_nutlin, p53_wt_nutlin, blat_deng_2012, blat_firnberg_2014, blat_jacquier_2013, blat_stiffler_2015, pten_matreyek_2021, pten_mighell_2018, cp2c9_amorosi_abundance_2021, cp2c9_amorosi_activity_2021, hsp82_flynn_2019, hsp82_mishra_2016, spike_starr_bind_2020, spike_starr_expr_2020, a0a2z5u3z0_doud_2016, a0a2z5u3z0_wu_2014, rl401_mavor_2016, rl401_roscoe_2013, rl401_roscoe_2014, ccdb_adkar_2012, ccdb_tripathi_2016, vkor1_chiasson_abundance_2020, vkor1_chiasson_activity_2020`
153
+
154
+ ### `drug_admet` — Pharmacology
155
+
156
+ 1,523 compounds, 14 RDKit descriptors, 4 ADME endpoints, 12 pairs
157
+
158
+ - **Source:** Biogen ADME-Fang v1 (Fang et al. 2023)
159
+ - **License:** CC-BY-4.0 (Polaris Hub)
160
+ - **Features (14d):** `MolWt, HeavyAtomCount, NumHBD, NumHBA, TPSA, MolLogP, NumRotatableBonds, RingCount, NumAromaticRings, FractionCSP3, MolMR, BertzCT, BalabanJ, NumHeteroatoms`
161
+ - **Labels (4col):** `LOG_HLM_CLint, LOG_RLM_CLint, LOG_SOLUBILITY, LOG_MDR1-MDCK_ER`
162
+
163
+ ### `climate_stations` — Climate Science
164
+
165
+ 28,488 daily records, 5 context features, 5 climate variables, 20 pairs
166
+
167
+ - **Source:** Open-Meteo Historical Weather API / ERA5 reanalysis
168
+ - **License:** CC-BY-4.0, dual attribution to Open-Meteo and Copernicus C3S/ERA5
169
+ - **Features (5d):** `lat, lon, day_sin, day_cos, year_norm`
170
+ - **Labels (5col):** `temp_max, temp_min, precip, windspeed, solar_radiation`
171
+
172
+
173
+ ## Responsible AI
174
+
175
+ - **Personal / sensitive data:** None. All datasets contain scientific measurements
176
+ on molecules, materials, proteins, pollutants, or climate variables. No human
177
+ subjects, no personally identifiable information.
178
+ - **Intended use:** Benchmarking ML methods for the Metric Shift problem. Not
179
+ intended for direct clinical, regulatory, or safety-critical deployment.
180
+ - **Known limitations:** (1) All six datasets are re-curations of existing public
181
+ sources; our contribution is pair construction, validity filter, and protocol.
182
+ (2) Domain coverage spans chemistry, biology, materials, environment, and
183
+ climate --- not yet high-energy physics, astronomy, or social science.
184
+ (3) Feature spaces are intentionally low-dimensional (5--22d) to isolate the
185
+ contribution of y1; higher-dimensional encoders may change relative method
186
+ rankings.
187
+ - **Potential misuse:** drug_admet contains ADME measurements that could
188
+ theoretically inform adverse drug design; however, the 1,523-compound dataset
189
+ is far too small and coarse for such purposes, and all data is already public.
190
+
191
+ ## Maintenance
192
+
193
+ The authors commit to maintaining this repository for at least 2 years
194
+ post-publication, with semantic versioning (v1.0, v1.1, ...) and a CHANGELOG
195
+ for every split, filter, or protocol change.
196
+
197
+ ## Citation
198
+
199
+ ```bibtex
200
+ @inproceedings{metric_shift_2026,
201
+ title={Metric Shift: A Benchmark for Predicting Expensive Scientific Measurements from Cheap Surrogates},
202
+ author={Anonymous},
203
+ booktitle={NeurIPS 2026 Evaluations and Datasets Track},
204
+ year={2026},
205
+ note={Under review}
206
+ }
207
+ ```