The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
Error code: DatasetGenerationCastError
Exception: DatasetGenerationCastError
Message: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'model', 'final_rel_gap'}) and 6 missing columns ({'rep_err', 'lam_max', 'gram_err', 'lam_min', 'filter_rel_err', 'edge_frac'}).
This happened while the csv dataset builder was generating data using
hf://datasets/pilot4532/spectral-sparsification-fig2-repro/data/armA/fig2_final_data.csv (at revision feed94002f8903c6f235b53592d11a906f7a5a9b), ['hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig1_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig2_final_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig2_traj_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armB/my_final.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armB/my_traj.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback: Traceback (most recent call last):
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
writer.write_table(table)
~~~~~~~~~~~~~~~~~~^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
self._write_table(pa_table, writer_batch_size=writer_batch_size)
~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
pa_table = table_cast(pa_table, self._schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
return cast_table_to_schema(table, schema)
File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
raise CastError(
...<3 lines>...
)
datasets.table.CastError: Couldn't cast
family: string
target_eps: double
repeat: int64
q: int64
eps_emp: double
model: string
final_rel_gap: double
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 1072
to
{'family': Value('string'), 'target_eps': Value('float64'), 'repeat': Value('int64'), 'q': Value('int64'), 'eps_emp': Value('float64'), 'lam_min': Value('float64'), 'lam_max': Value('float64'), 'filter_rel_err': Value('float64'), 'rep_err': Value('float64'), 'gram_err': Value('float64'), 'edge_frac': Value('float64')}
because column names don't match
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
~~~~~~~~~~~~~~~~~~~~~~~~~^
builder, max_dataset_size_bytes=max_dataset_size_bytes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
for job_id, done, content in self._prepare_split_single(
~~~~~~~~~~~~~~~~~~~~~~~~~~^
gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
):
^
File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
...<4 lines>...
)
datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
All the data files must have the same columns, but at some point there are 2 new columns ({'model', 'final_rel_gap'}) and 6 missing columns ({'rep_err', 'lam_max', 'gram_err', 'lam_min', 'filter_rel_err', 'edge_frac'}).
This happened while the csv dataset builder was generating data using
hf://datasets/pilot4532/spectral-sparsification-fig2-repro/data/armA/fig2_final_data.csv (at revision feed94002f8903c6f235b53592d11a906f7a5a9b), ['hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig1_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig2_final_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armA/fig2_traj_data.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armB/my_final.csv', 'hf://datasets/pilot4532/spectral-sparsification-fig2-repro@feed94002f8903c6f235b53592d11a906f7a5a9b/data/armB/my_traj.csv']
Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
family string | target_eps float64 | repeat int64 | q int64 | eps_emp float64 | lam_min float64 | lam_max float64 | filter_rel_err float64 | rep_err float64 | gram_err float64 | edge_frac float64 |
|---|---|---|---|---|---|---|---|---|---|---|
SBM | 0.18 | 0 | 11,877 | 0.404584 | 0.62526 | 1.404584 | 0.112791 | 0.036916 | 0.049005 | 0.922785 |
SBM | 0.18 | 1 | 11,877 | 0.420695 | 0.593277 | 1.420695 | 0.115012 | 0.039199 | 0.052423 | 0.918768 |
SBM | 0.18 | 2 | 11,877 | 0.428227 | 0.62909 | 1.428227 | 0.106213 | 0.037937 | 0.050565 | 0.921669 |
SBM | 0.18 | 3 | 11,877 | 0.430927 | 0.630266 | 1.430927 | 0.104303 | 0.040496 | 0.054922 | 0.921 |
SBM | 0.18 | 4 | 11,877 | 0.460294 | 0.648807 | 1.460294 | 0.095565 | 0.037007 | 0.049832 | 0.923901 |
SBM | 0.26 | 0 | 14,766 | 0.342711 | 0.698491 | 1.342711 | 0.08473 | 0.035084 | 0.047629 | 0.960277 |
SBM | 0.26 | 1 | 14,766 | 0.494529 | 0.684302 | 1.494529 | 0.10719 | 0.032937 | 0.043788 | 0.961393 |
SBM | 0.26 | 2 | 14,766 | 0.451762 | 0.671902 | 1.451762 | 0.098607 | 0.035769 | 0.048585 | 0.959384 |
SBM | 0.26 | 3 | 14,766 | 0.388756 | 0.687554 | 1.388756 | 0.080332 | 0.032512 | 0.042643 | 0.956483 |
SBM | 0.26 | 4 | 14,766 | 0.362966 | 0.687616 | 1.362966 | 0.086141 | 0.033969 | 0.045379 | 0.95626 |
SBM | 0.36 | 0 | 14,189 | 0.395211 | 0.664681 | 1.395211 | 0.098241 | 0.036621 | 0.050082 | 0.957152 |
SBM | 0.36 | 1 | 14,189 | 0.322605 | 0.688114 | 1.322605 | 0.084242 | 0.034622 | 0.046369 | 0.959161 |
SBM | 0.36 | 2 | 14,189 | 0.543886 | 0.701942 | 1.543886 | 0.121438 | 0.036079 | 0.047925 | 0.955813 |
SBM | 0.36 | 3 | 14,189 | 0.383856 | 0.698853 | 1.383856 | 0.088063 | 0.035507 | 0.047648 | 0.952466 |
SBM | 0.36 | 4 | 14,189 | 0.4459 | 0.67292 | 1.4459 | 0.092689 | 0.036175 | 0.049745 | 0.950457 |
SBM | 0.48 | 0 | 10,144 | 0.413574 | 0.586426 | 1.398087 | 0.125538 | 0.043302 | 0.058154 | 0.883508 |
SBM | 0.48 | 1 | 10,144 | 0.43193 | 0.645542 | 1.43193 | 0.101994 | 0.042728 | 0.058644 | 0.882169 |
SBM | 0.48 | 2 | 10,144 | 0.466366 | 0.533634 | 1.414676 | 0.119686 | 0.041488 | 0.056253 | 0.891988 |
SBM | 0.48 | 3 | 10,144 | 0.423781 | 0.576219 | 1.405847 | 0.121996 | 0.04349 | 0.059655 | 0.888418 |
SBM | 0.48 | 4 | 10,144 | 0.413005 | 0.664326 | 1.413005 | 0.093759 | 0.041797 | 0.056344 | 0.896452 |
SBM | 0.6 | 0 | 6,677 | 0.515108 | 0.574519 | 1.515108 | 0.130534 | 0.051066 | 0.069227 | 0.76166 |
SBM | 0.6 | 1 | 6,677 | 0.623368 | 0.550644 | 1.623368 | 0.135787 | 0.048821 | 0.064768 | 0.767239 |
SBM | 0.6 | 2 | 6,677 | 0.570487 | 0.564368 | 1.570487 | 0.124253 | 0.051651 | 0.068637 | 0.760321 |
SBM | 0.6 | 3 | 6,677 | 0.53223 | 0.59115 | 1.53223 | 0.11535 | 0.049905 | 0.066958 | 0.769025 |
SBM | 0.6 | 4 | 6,677 | 0.575195 | 0.548723 | 1.575195 | 0.130073 | 0.050719 | 0.068494 | 0.773265 |
SBM | 0.72 | 0 | 4,943 | 0.63161 | 0.512318 | 1.63161 | 0.141036 | 0.055588 | 0.073578 | 0.671056 |
SBM | 0.72 | 1 | 4,943 | 0.640899 | 0.452298 | 1.640899 | 0.151096 | 0.057579 | 0.075825 | 0.657889 |
SBM | 0.72 | 2 | 4,943 | 0.88742 | 0.351424 | 1.88742 | 0.15884 | 0.058855 | 0.078806 | 0.661683 |
SBM | 0.72 | 3 | 4,943 | 0.651657 | 0.420046 | 1.651657 | 0.160232 | 0.061619 | 0.086525 | 0.654095 |
SBM | 0.72 | 4 | 4,943 | 0.722542 | 0.407192 | 1.722542 | 0.176621 | 0.057901 | 0.077037 | 0.668154 |
Geometric | 0.18 | 0 | 13,033 | 0.349366 | 0.650634 | 1.337838 | 0.097053 | 0.015517 | 0.016311 | 0.859382 |
Geometric | 0.18 | 1 | 13,033 | 0.379146 | 0.639631 | 1.379146 | 0.08898 | 0.015783 | 0.015942 | 0.865653 |
Geometric | 0.18 | 2 | 13,033 | 0.411007 | 0.673675 | 1.411007 | 0.089114 | 0.016436 | 0.017233 | 0.868004 |
Geometric | 0.18 | 3 | 13,033 | 0.366918 | 0.638996 | 1.366918 | 0.081072 | 0.015317 | 0.015725 | 0.862831 |
Geometric | 0.18 | 4 | 13,033 | 0.391548 | 0.648682 | 1.391548 | 0.089167 | 0.016226 | 0.016975 | 0.859069 |
Geometric | 0.26 | 0 | 12,455 | 0.405944 | 0.679513 | 1.405944 | 0.085519 | 0.015729 | 0.016071 | 0.84982 |
Geometric | 0.26 | 1 | 12,455 | 0.409587 | 0.68609 | 1.409587 | 0.089594 | 0.016348 | 0.016698 | 0.856561 |
Geometric | 0.26 | 2 | 12,455 | 0.394204 | 0.650852 | 1.394204 | 0.089409 | 0.015704 | 0.016614 | 0.85076 |
Geometric | 0.26 | 3 | 12,455 | 0.380602 | 0.622897 | 1.380602 | 0.082019 | 0.015438 | 0.016226 | 0.847939 |
Geometric | 0.26 | 4 | 12,455 | 0.444436 | 0.625315 | 1.444436 | 0.093715 | 0.015933 | 0.016364 | 0.852641 |
Geometric | 0.36 | 0 | 13,611 | 0.362939 | 0.67066 | 1.362939 | 0.090551 | 0.014574 | 0.01495 | 0.869259 |
Geometric | 0.36 | 1 | 13,611 | 0.41073 | 0.671652 | 1.41073 | 0.090583 | 0.016064 | 0.01674 | 0.863615 |
Geometric | 0.36 | 2 | 13,611 | 0.367082 | 0.646407 | 1.367082 | 0.09379 | 0.014495 | 0.015062 | 0.87161 |
Geometric | 0.36 | 3 | 13,611 | 0.38266 | 0.661993 | 1.38266 | 0.091506 | 0.0153 | 0.015982 | 0.879762 |
Geometric | 0.36 | 4 | 13,611 | 0.419415 | 0.677094 | 1.419415 | 0.084455 | 0.015209 | 0.015789 | 0.878351 |
Geometric | 0.48 | 0 | 7,832 | 0.545384 | 0.594141 | 1.545384 | 0.121617 | 0.02081 | 0.022009 | 0.701364 |
Geometric | 0.48 | 1 | 7,832 | 0.528291 | 0.54573 | 1.528291 | 0.106163 | 0.019488 | 0.019885 | 0.702148 |
Geometric | 0.48 | 2 | 7,832 | 0.573009 | 0.630802 | 1.573009 | 0.105285 | 0.019546 | 0.021028 | 0.703088 |
Geometric | 0.48 | 3 | 7,832 | 0.570773 | 0.584181 | 1.570773 | 0.135012 | 0.02012 | 0.020462 | 0.694937 |
Geometric | 0.48 | 4 | 7,832 | 0.560353 | 0.558766 | 1.560353 | 0.107619 | 0.019252 | 0.01975 | 0.704186 |
Geometric | 0.6 | 0 | 5,521 | 0.741418 | 0.521973 | 1.741418 | 0.143029 | 0.023952 | 0.024265 | 0.573601 |
Geometric | 0.6 | 1 | 5,521 | 0.701443 | 0.523598 | 1.701443 | 0.138947 | 0.024272 | 0.024835 | 0.579871 |
Geometric | 0.6 | 2 | 5,521 | 0.902099 | 0.463414 | 1.902099 | 0.157751 | 0.023855 | 0.025037 | 0.570779 |
Geometric | 0.6 | 3 | 5,521 | 0.8257 | 0.553058 | 1.8257 | 0.154277 | 0.023608 | 0.024782 | 0.570622 |
Geometric | 0.6 | 4 | 5,521 | 0.614804 | 0.43853 | 1.614804 | 0.129289 | 0.023453 | 0.023769 | 0.57799 |
Geometric | 0.72 | 0 | 5,521 | 0.635296 | 0.434936 | 1.635296 | 0.115369 | 0.022092 | 0.022261 | 0.573758 |
Geometric | 0.72 | 1 | 5,521 | 0.612356 | 0.517061 | 1.612356 | 0.12002 | 0.023828 | 0.025296 | 0.579871 |
Geometric | 0.72 | 2 | 5,521 | 0.682392 | 0.487716 | 1.682392 | 0.123101 | 0.024481 | 0.025257 | 0.56733 |
Geometric | 0.72 | 3 | 5,521 | 0.603994 | 0.549518 | 1.603994 | 0.117301 | 0.022918 | 0.0238 | 0.576266 |
Geometric | 0.72 | 4 | 5,521 | 0.703117 | 0.490333 | 1.703117 | 0.136301 | 0.024399 | 0.024379 | 0.577677 |
SBM | 0.18 | 0 | 14,766 | 0.385334 | null | null | null | null | null | null |
SBM | 0.18 | 0 | 14,766 | 0.385334 | null | null | null | null | null | null |
SBM | 0.18 | 1 | 14,766 | 0.365164 | null | null | null | null | null | null |
SBM | 0.18 | 1 | 14,766 | 0.365164 | null | null | null | null | null | null |
SBM | 0.18 | 2 | 14,766 | 0.351489 | null | null | null | null | null | null |
SBM | 0.18 | 2 | 14,766 | 0.351489 | null | null | null | null | null | null |
SBM | 0.18 | 3 | 14,766 | 0.394324 | null | null | null | null | null | null |
SBM | 0.18 | 3 | 14,766 | 0.394324 | null | null | null | null | null | null |
SBM | 0.18 | 4 | 14,766 | 0.350436 | null | null | null | null | null | null |
SBM | 0.18 | 4 | 14,766 | 0.350436 | null | null | null | null | null | null |
SBM | 0.26 | 0 | 14,766 | 0.365823 | null | null | null | null | null | null |
SBM | 0.26 | 0 | 14,766 | 0.365823 | null | null | null | null | null | null |
SBM | 0.26 | 1 | 14,766 | 0.441438 | null | null | null | null | null | null |
SBM | 0.26 | 1 | 14,766 | 0.441438 | null | null | null | null | null | null |
SBM | 0.26 | 2 | 14,766 | 0.405346 | null | null | null | null | null | null |
SBM | 0.26 | 2 | 14,766 | 0.405346 | null | null | null | null | null | null |
SBM | 0.26 | 3 | 14,766 | 0.456252 | null | null | null | null | null | null |
SBM | 0.26 | 3 | 14,766 | 0.456252 | null | null | null | null | null | null |
SBM | 0.26 | 4 | 14,766 | 0.377067 | null | null | null | null | null | null |
SBM | 0.26 | 4 | 14,766 | 0.377067 | null | null | null | null | null | null |
SBM | 0.36 | 0 | 14,189 | 0.375931 | null | null | null | null | null | null |
SBM | 0.36 | 0 | 14,189 | 0.375931 | null | null | null | null | null | null |
SBM | 0.36 | 1 | 14,189 | 0.429146 | null | null | null | null | null | null |
SBM | 0.36 | 1 | 14,189 | 0.429146 | null | null | null | null | null | null |
SBM | 0.36 | 2 | 14,189 | 0.342233 | null | null | null | null | null | null |
SBM | 0.36 | 2 | 14,189 | 0.342233 | null | null | null | null | null | null |
SBM | 0.36 | 3 | 14,189 | 0.388815 | null | null | null | null | null | null |
SBM | 0.36 | 3 | 14,189 | 0.388815 | null | null | null | null | null | null |
SBM | 0.36 | 4 | 14,189 | 0.341713 | null | null | null | null | null | null |
SBM | 0.36 | 4 | 14,189 | 0.341713 | null | null | null | null | null | null |
SBM | 0.48 | 0 | 9,566 | 0.534371 | null | null | null | null | null | null |
SBM | 0.48 | 0 | 9,566 | 0.534371 | null | null | null | null | null | null |
SBM | 0.48 | 1 | 9,566 | 0.528129 | null | null | null | null | null | null |
SBM | 0.48 | 1 | 9,566 | 0.528129 | null | null | null | null | null | null |
SBM | 0.48 | 2 | 9,566 | 0.45217 | null | null | null | null | null | null |
SBM | 0.48 | 2 | 9,566 | 0.45217 | null | null | null | null | null | null |
SBM | 0.48 | 3 | 9,566 | 0.427707 | null | null | null | null | null | null |
SBM | 0.48 | 3 | 9,566 | 0.427707 | null | null | null | null | null | null |
SBM | 0.48 | 4 | 9,566 | 0.424985 | null | null | null | null | null | null |
SBM | 0.48 | 4 | 9,566 | 0.424985 | null | null | null | null | null | null |
- Verdict: REPRODUCED — exact reproduction, independently verified
- Results: what the paper reports vs what we measured
- What was run
- Headline numbers (identical in both arms)
- Independent verification checks (all pass)
- Deviations and scoping notes
- Runs that failed
- Agent trace
- Repository layout
- How to re-run: one command
- Environment
Reproduction: Figure 2 of "Spectral Graph Sparsification Preserves Representation Geometry in Graph Neural Networks"
Paper: arXiv 2605.01136v2 (NeurIPS 2026)
Author code: chimeraki/Spectral-Sparsification-Preserves-Representation-Geometry @ commit 06032f75ce27a69efe48d44fb87df185a781a9a5
Claim under test (Figure 2): matched dense/sparsified training runs exhibit small finite-time parameter gaps that accumulate smoothly and increase with measured graph distortion, as qualitative support for the conditional finite-time stability analysis (Theorem 4 / Proposition 1).
Verdict: REPRODUCED — exact reproduction, independently verified
The claim holds as stated, including its own qualifier: the distortion–gap relationship is a strong, statistically significant positive association, monotone on average but not strictly monotone in every target pair — exactly the "approximately increasing / qualitative" wording the paper uses. Absolute gaps are small (relative gaps 0.1–1.1%).
Because the authors' pipeline is fully deterministic (master_seed=0, all randomness from explicit seeded generators), the original model, teacher target, and seeds were recovered exactly: Arm A (authors' unmodified synthetic_final.py) reproduces Figure 2 bit-for-bit, and Arm B (an independent from-scratch reimplementation) matches it to ≤ 4·10⁻¹⁷. This is an exact Figure 2 reproduction, not merely an independent implementation.
Results: what the paper reports vs what we measured
The paper gives no numeric gap values for Figure 2 — the text states the gaps are small in absolute terms and "increase approximately linearly with ε_emp", and explicitly scopes the figure as qualitative. Side by side:
| Paper's claim (Figure 2 / §3.3) | Our measurement (both arms, identical) |
|---|---|
| "absolute parameter gaps remain small" | final relative gaps 0.001–0.010; absolute Frobenius gaps 0.003–0.037; max anywhere 0.0112 |
| finite-time gaps accumulate smoothly | gap exactly 0 at t=0, mean trajectory increases at every one of 100 epochs, final = max |
| "approximately increasing with realized ε" | pooled Spearman 0.69–0.79 (perm p ≤ 2·10⁻⁴), positive slopes in all 4 family×model combos; one non-monotone target pair per combo |
| qualitative support for Thm 4 / Prop 1 | gaps track the filter error ‖p(L)−p(L̃)‖₂ (Theorem 4's actual driving term) even more tightly: Spearman 0.74–0.86 |
Full per-target numbers in the table below and in data/armA/fig2_final_data.csv, data/armB/my_final.csv.
What was run
| Arm | What | Result |
|---|---|---|
| A | Authors' unmodified synthetic_final.py at the pinned commit (identity-verified: 872 lines, key lines matched) |
Completed in 48 s, exit 0, no deviations |
| B | verify_fig2.py — independent reimplementation of the training loops, gradients (derived from scratch, finite-difference checked), ε_emp (two independent methods), the parameter-gap metrics recomputed from raw weight matrices, trajectory readback, and trend statistics. Shared experimental inputs (graphs, features, ER edge probabilities, budget grid) imported from the authors' module and verified bitwise. |
Completed in 71 s, all checks pass |
Setup (verbatim from paper §3.1 / App. B.2–B.3 and code): SBM (n=320, 4×80, p_in=0.20, p_out=0.05, w∈U[0.8,1.2], d=32) and geometric 30-NN graph (n=320, d=20); Spielman–Srivastava ER sparsification with exact effective resistances; shared dense-graph spectral scale; filter p(L̄)=I−0.6L̄+0.15L̄²; one-layer linear (d×16) and two-layer ReLU (d→32→16) models; matched init Ws=W.copy(); shared fixed teacher Y (seed master_seed+4242); full-batch GD, 100 epochs, lr 0.01/0.003, weight decay 1e-3, per-matrix gradient clipping at Frobenius norm 5.0; 6 ε targets × 5 sparsifier draws per family; ε_emp measured via generalized eigenvalues on span(1)⊥.
Headline numbers (identical in both arms)
Final relative parameter gap per ε target (mean over 5 draws), vs realized ε_emp:
| Family × model | realized ε means | final gap means | Spearman ρ (n=30 pooled) | perm p | linear slope | Kendall τ (n=6 means) | strictly monotone |
|---|---|---|---|---|---|---|---|
| SBM, one-layer | .369 .376 .409 .474 .682 .709 | .0048 .0048 .0048 .0061 .0099 .0080 | 0.786 | <1e-4 | 0.0120 | 0.60 | No (drop at top pair) |
| SBM, two-layer | same | .0027 .0032 .0033 .0037 .0055 .0040 | 0.697 | 2e-4 | 0.0050 | 0.87 | No (drop at top pair) |
| Geometric, one-layer | .391 .394 .424 .480 .799 .873 | .0024 .0022 .0025 .0028 .0045 .0047 | 0.784 | <1e-4 | 0.0043 | 0.87 | No (flat at low end) |
| Geometric, two-layer | same | .0012 .0010 .0013 .0013 .0019 .0027 | 0.686 | <1e-4 | 0.0022 | 0.87 | No (flat at low end) |
Claim components:
- "Small gaps": confirmed. Final relative gaps 0.001–0.010 across all 120 runs (max over all trajectories and epochs: 0.0112); absolute gaps ‖W−Ws‖_F (one-layer) and √Σ‖Wᵢ−Wᵢs‖²_F (two-layer) in [0.0032, 0.0373].
- "Smoothly accumulating": confirmed exactly. Gap is exactly 0 at t=0 (matched init), and the mean trajectory increases at every one of the 100 epochs (increase fraction 1.000 in all 4 combos); the final gap equals the trajectory maximum.
- "Increases with measured distortion": confirmed as association, not strict monotonicity. Pooled Spearman 0.69–0.79 with permutation p ≤ 2·10⁻⁴ in all 4 combos; positive slopes throughout. Per-target means are non-monotone in each combo at one pair — either flat between the two lowest, indistinguishable-ε targets (Geometric: ε .391 vs .394), or dropping between the two highest (SBM: ε .682→.709, gap .0099→.0080, where draw variance is largest).
- Mechanism check (beyond the paper): final gaps correlate even more strongly with the filter error ‖p(L)−p(L̃)‖₂/‖p(L)‖₂ (range 0.078–0.203) than with ε itself: Spearman 0.74–0.86 (perm p ≈ 5·10⁻⁴). This is the actual driving term of Theorem 4's recurrence, so the observed trend is consistent with the proposed mechanism, not just the ε proxy.
Independent verification checks (all pass)
| Check | Result |
|---|---|
| ER sampler draw, mine vs authors' (bitwise) | max diff 0.0 (both families) |
| Budget selection (c, q) per ε target | identical in all 12 selections; ε_emp diff 0.0 |
| Trajectory readback W_{t+1} = W_t − lr·clip(G_t), every step, both models | max diff 0.0 |
| ε_emp, generalized-eigh vs Cholesky-whitening (independent paths) | max diff 6.4·10⁻¹⁵ |
| Gradients vs central finite differences (8 checks, epochs 0 and 50) | max rel err 1.1·10⁻⁶ |
| Cross-arm: my rel-gap trajectories vs authors' CSV (24,240 rows) | max diff 3.9·10⁻¹⁷ |
| Cross-arm: final gaps, all 120 rows | max diff 3.8·10⁻¹⁷ |
| Gap denominators (near-zero behavior) | ‖W‖_F-type denominators in [1.656, 4.627] across all epochs — never near zero; the +10⁻¹² guard in the metric never activates |
Metric definitions as implemented and independently recomputed from raw weight matrices: one-layer ‖W−Ws‖_F/(‖W‖_F+10⁻¹²); two-layer √(Σᵢ‖Wᵢ−Wᵢs‖²_F / (Σᵢ‖Wᵢ‖²_F+10⁻¹²)) — the concatenated-parameter relative Frobenius difference, not an embedding/Gram error. Raw per-epoch weight trajectories for all 120 runs are in data/armB/raw_weight_trajectories.npz.
Deviations and scoping notes
- Hardware only: HF cpu-basic (2 vCPU, Python 3.12.16, numpy 2.5.5, scipy 1.18.1). Arm A took 48 s here vs the authors' reported 20–40 min for the full suite on an i7-10750H laptop — no scientific deviation, the code is unmodified.
- Realized ε ≠ nominal targets: the c-grid search cannot reach low distortion; realized ε_emp spans [0.342, 1.047], not the nominal [0.18, 0.72]. The Figure 2 x-axis is realized ε, so this is internal to the paper's design, but the trend is established over a compressed range.
- 4 of 120 draws have ε_emp ≥ 1 (all Geometric, top target), driven by λ_max ≈ 2 (over-weighted spectral directions). λ_min stays ≥ 0.384, so every sparsified graph remains a valid PSD Laplacian, but ε ≥ 1 sits outside the small-distortion regime the theory assumes.
- Plain ReLU, not clipped ReLU: the code uses
np.maximum(U, 0). The "clipping" in paper and code is gradient clipping (Frobenius norm 5.0, a value absent from the paper). Plain ReLU violates Theorem 4's assumption (A6) σ ∈ C¹ with bounded Lipschitz σ′ — the experiment is therefore, as the paper itself states, qualitative support for the smooth theory, not a verification of its assumptions. The one-layer model is purely linear (σ = identity). - "MSE" convention: the code's gradient omits the factor 2, i.e. the implicit objective is ‖F−Y‖²_F/(2n) + (wd/2)‖W‖²_F. Finite-difference checks use this objective; both arms share it.
- Figure 1 outputs were produced by Arm A (the script runs both) but not re-analyzed; this claim concerns Figure 2 only.
Runs that failed
None. Arm A and Arm B both completed successfully on their first execution (logs above), and the one-command validation rerun completed with exit 0. One sandbox instance was terminated during dependency setup and replaced (it lacked the credential needed to publish artifacts); no experiment code ran in it, so no experiment log exists for it.
Agent trace
The complete AI-agent session log for this reproduction is d0323313.jsonl (397 KB, JSON Lines) at the root of this repo — the full transcript of the ML Assistant session that produced everything above: the paper and code survey, both experiment arms, the verification analysis, and every Hub write. It also embeds the sandbox/job records (handles, flavors, timestamps) for the compute used.
Repository layout
d0323313.jsonl # AI-agent session trace (JSON Lines; see "Agent trace")
run_all.py # ONE-COMMAND entry point: env check -> fetch+verify pinned script -> Arm A -> Arm B -> summary
requirements.txt # exact pinned software versions
code/synthetic_final.py # authors' script, pinned commit 06032f7 (unmodified, identity-verified)
code/verify_fig2.py # independent verification harness (Arm B; path-portable revision)
logs/armA.log, logs/armB.log # full run logs (original runs)
logs/rerun_one_command/ # full logs of the one-command validation rerun via run_all.py
logs/versions.txt # environment
data/armA/fig2_traj_data.csv # authors' per-epoch relative gaps (12,120 rows)
data/armA/fig2_final_data.csv # authors' final gaps + realized eps_emp (120 rows)
data/armA/figure2_paper_ready.png/.pdf # reproduced figure
data/armA/fig1_data.csv, figure1_* # Figure 1 outputs (produced by the same run; not analyzed here)
data/armB/my_traj.csv # my per-epoch relative + absolute gaps + denominator norms
data/armB/my_final.csv # my final gaps, eps_emp (2 methods), lambda_min/max, filter errors
data/armB/raw_weight_trajectories.npz # raw per-epoch W / Ws matrices, all 120 runs (readback evidence)
data/armB/verify_report.json # all checks, trend statistics, versions
How to re-run: one command
run_all.py is the single entry point for the whole experiment: it checks the environment, downloads the authors' script at the pinned commit (verifying its identity: 872 lines + key marker lines), runs Arm A, runs Arm B, and prints a verification summary and verdict.
pip install -r requirements.txt
python run_all.py # ~2 min on 2 vCPU; writes logs/, synthetic outputs, verify_out/
Validated end to end in a fresh container — logs/rerun_one_command/ holds the complete logs of that run, whose verification report is bit-identical to the original run's apart from wall-clock time. (The published code/verify_fig2.py is the path-portable revision of the executed script; the only change is deriving paths from the script's location instead of a hardcoded /work.)
Environment
Exact software used (full record in logs/versions.txt):
- Base image
python:3.12— CPython 3.12.16, on Hugging Facecpu-basic(2 vCPU, 16 GB RAM) - numpy 2.5.5, scipy 1.18.1, pandas 3.1.2, matplotlib 3.11.2 — pinned in
requirements.txt(huggingface_hub 2.5.0was used only to upload artifacts, not needed to re-run)
- Downloads last month
- 56