Dataset Viewer
Auto-converted to Parquet Duplicate
text
stringlengths
0
118
# Horizon-1 comparison (scan_horizon1.py) — the protocol that matches Table 2
# Mean over seeds 1-5, first prediction point after tc=5, train-cohort std.
## ObsNODE — horizon-1 (point 0), mean over seeds
CF1: CB t=+0.1738 w=+0.0955 | predATE t=+0.1633 w=+0.0939 | true t=-0.0105 w=-0.0016
CF2: CB t=+0.1739 w=+0.0943 | predATE t=+0.1770 w=+0.0971 | true t=+0.0031 w=+0.0027
CF3: CB t=+0.1724 w=+0.0927 | predATE t=+0.1831 w=+0.0995 | true t=+0.0107 w=+0.0069
CF4: CB t=+0.1708 w=+0.0928 | predATE t=+0.1772 w=+0.0998 | true t=+0.0063 w=+0.0070
CF5: CB t=+0.1708 w=+0.0928 | predATE t=+0.1772 w=+0.0998 | true t=+0.0063 w=+0.0070
paper: CB t=+0.1738/+0.1739/+0.1724/+0.1708/+0.1708
paper: CB w=+0.0952/+0.0941/+0.0924/+0.0924/+0.0926
paper: predATE t=+0.1633/+0.1770/+0.1831/+0.1771/+0.1771
paper: predATE w=+0.0937/+0.0968/+0.0992/+0.0995/+0.0995
paper: true t=-0.0105/+0.0031/+0.0107/+0.0063/+0.0063
paper: true w=-0.0016/+0.0227/+0.0068/+0.0070/+0.0070 <- CF2 true w: paper 0.0227 vs ours 0.0027 (likely paper typo)
mean |ATE err| horizon-1: tumor=0.1724 (paper 0.1723), weight=0.0936 (paper 0.0933)
## NODE — horizon-1 (point 0), mean over seeds
CF1: CB t=-0.5153 w=-2.0289 | predATE t=-0.5258 w=-2.0305 | true t=-0.0105 w=-0.0016
CF2: CB t=-0.5289 w=-2.0332 | predATE t=-0.5258 w=-2.0305 | true t=+0.0031 w=+0.0027
CF3: CB t=-0.5365 w=-2.0373 | predATE t=-0.5258 w=-2.0305 | true t=+0.0107 w=+0.0069
CF4: CB t=-0.5321 w=-2.0375 | predATE t=-0.5258 w=-2.0305 | true t=+0.0063 w=+0.0070
CF5: CB t=-0.5321 w=-2.0375 | predATE t=-0.5258 w=-2.0305 | true t=+0.0063 w=+0.0070
paper: CB t=-0.5152/-0.5288/-0.5364/-0.5321/-0.5321
paper: CB w=-2.0229/-2.0272/-2.0313/-2.0315/-2.0315
paper: predATE t=-0.5257/-0.5257/-0.5257/-0.5257/-0.5257
paper: predATE w=-2.0245/-2.0245/-2.0245/-2.0245/-2.0245
mean |ATE err| horizon-1: tumor=0.5290 (paper 0.5289), weight=2.0349 (paper 2.0289)
# Window/standardization scan (scan_windows_std.py) — no other protocol matches
std_train : [115.24466705322266, 20.43956184387207]
std_test : [120.17522430419922, 20.416606903076172]
std_cf6 : [117.60163879394531, 22.813066482543945]
CF5 true-ATE at first prediction point: tumor +0.0063, weight +0.0070 == paper TRUE CF5 row.
# Analysis output: six-point-window aggregation (analyze_table2.py)
# Note: this does NOT match paper Table 2; the matching protocol is horizon-1
# (see horizon1_report.txt). Kept for full transparency of the scan.
## ObsNODE
CF | CB6 tumor CB6 weight | predATE6 t predATE6 w | trueATE6 t trueATE6 w | |ATEerr|6 t |ATEerr|6 w | seedstd CB t
1 | 0.3721/0.2880 | 0.3890 0.3190 | 0.0170 0.0310 | 0.3721 0.2880 | 0.0042
2 | 0.4282/0.3416 | 0.4005 0.3274 | -0.0277 -0.0141 | 0.4282 0.3416 | 0.0049
3 | 0.4095/0.2798 | 0.4082 0.3252 | -0.0013 0.0454 | 0.4095 0.2798 | 0.0064
4 | 0.3564/0.3396 | 0.4017 0.3254 | 0.0453 -0.0142 | 0.3564 0.3396 | 0.0050
5 | 0.1839/0.1474 | 0.4014 0.3268 | 0.2175 0.1794 | 0.1839 0.1474 | 0.0044
mean |ATE err| tumor = 0.3500 (paper 0.1723), weight = 0.2793 (paper 0.0933)
full-horizon CB tumor: 0.6008/0.6196/0.5812/0.5790/0.1017
full-horizon CB weight: 1.1052/1.1833/0.9595/0.9985/0.2753
full-horizon predATE tumor: 0.5900/0.5958/0.6077/0.5997/0.5990
full-horizon trueATE tumor: -0.0108/-0.0238/0.0265/0.0207/0.4973
full-horizon predATE weight: 0.9234/0.9448/0.9286/0.9304/0.9339
full-horizon trueATE weight: -0.1817/-0.2385/-0.0309/-0.0682/0.6587
## NODE
CF | CB6 tumor CB6 weight | predATE6 t predATE6 w | trueATE6 t trueATE6 w | |ATEerr|6 t |ATEerr|6 w | seedstd CB t
1 | -0.3214/-1.5314 | -0.3045 -1.5004 | 0.0170 0.0310 | 0.3214 1.5314 | 0.0009
2 | -0.2768/-1.4863 | -0.3045 -1.5004 | -0.0277 -0.0141 | 0.2768 1.4863 | 0.0009
3 | -0.3032/-1.5458 | -0.3045 -1.5004 | -0.0013 0.0454 | 0.3032 1.5458 | 0.0009
4 | -0.3498/-1.4862 | -0.3045 -1.5004 | 0.0453 -0.0142 | 0.3498 1.4862 | 0.0009
5 | -0.5220/-1.6798 | -0.3045 -1.5004 | 0.2175 0.1794 | 0.5220 1.6798 | 0.0009
mean |ATE err| tumor = 0.3546 (paper 0.5289), weight = 1.5459 (paper 2.0289)
full-horizon CB tumor: -0.1155/-0.1025/-0.1528/-0.1471/-0.6236
full-horizon CB weight: 0.0065/0.0633/-0.1443/-0.1070/-0.8339
full-horizon predATE tumor: -0.1263/-0.1263/-0.1263/-0.1263/-0.1263
full-horizon trueATE tumor: -0.0108/-0.0238/0.0265/0.0207/0.4973
full-horizon predATE weight: -0.1752/-0.1752/-0.1752/-0.1752/-0.1752
full-horizon trueATE weight: -0.1817/-0.2385/-0.0309/-0.0682/0.6587
## Paper Table 2 reference (six-point reading — does not match)
ObsNODE CB tumor : [0.1738, 0.1739, 0.1724, 0.1708, 0.1708]
ours CB tumor : 0.3721/0.4282/0.4095/0.3564/0.1839
ObsNODE CB weight : [0.0952, 0.0941, 0.0924, 0.0924, 0.0926]
ours CB weight : 0.2880/0.3416/0.2798/0.3396/0.1474
NODE CB tumor : [-0.5152, -0.5288, -0.5364, -0.5321, -0.5321]
ours CB tumor : -0.3214/-0.2768/-0.3032/-0.3498/-0.5220
NODE CB weight : [-2.0229, -2.0272, -2.0313, -2.0315, -2.0315]
ours CB weight : -1.5314/-1.4863/-1.5458/-1.4862/-1.6798
true ATE tumor : [-0.0105, 0.0031, 0.0107, 0.0063, 0.0063]
ours true tumor : 0.0170/-0.0277/-0.0013/0.0453/0.2175
true ATE weight : [-0.0016, 0.0227, 0.0068, 0.007, 0.007]
ours true weight: 0.0310/-0.0141/0.0454/-0.0142/0.1794
ObsNODE ATE tumor : [0.1633, 0.177, 0.1831, 0.1771, 0.1771]
ours ATE tumor : 0.3890/0.4005/0.4082/0.4017/0.4014
ObsNODE ATE weight : [0.0937, 0.0968, 0.0992, 0.0995, 0.0995]
ours ATE weight : 0.3190/0.3274/0.3252/0.3254/0.3268
NODE ATE tumor : [-0.5257, -0.5257, -0.5257, -0.5257, -0.5257]
ours ATE tumor : -0.3045/-0.3045/-0.3045/-0.3045/-0.3045
NODE ATE weight : [-2.0245, -2.0245, -2.0245, -2.0245, -2.0245]
ours ATE weight : -1.5004/-1.5004/-1.5004/-1.5004/-1.5004
## Independent recomputation from raw pickles (seed 1)
ObsNODE CF1: max|independent-pipeline| CB=2.98e-08 predATE=5.96e-08 (indep CB6 t/w = 0.3720/0.3137)
ObsNODE CF5: max|independent-pipeline| CB=1.49e-08 predATE=2.98e-08 (indep CB6 t/w = 0.1774/0.1629)
NODE CF1: max|independent-pipeline| CB=2.98e-08 predATE=2.98e-08 (indep CB6 t/w = -0.3219/-1.5057)
NODE CF5: max|independent-pipeline| CB=0.00e+00 predATE=0.00e+00 (indep CB6 t/w = -0.5225/-1.6541)
## Treatment-path sensitivity (mean |x_pred_CFk - x_pred_CF6|, 6 pts)
ObsNODE: CF1..CF5 vs CF6 = 0.4796/0.3061/0.7258/0.3536/0.3538 | max pairwise spread = 1.1679
NODE: CF1..CF5 vs CF6 = 0.0000/0.0000/0.0000/0.0000/0.0000 | max pairwise spread = 0.0000

Reproduction of Table 2 / Section 5.1 — arXiv 2604.26070 (ObsNODE)

Verdict: REPRODUCED. The Table 2 counterfactual comparison of ObsNODE vs a latent NODE baseline on the synthetic cancer dataset (t_c = 5, γ = 4, five runs) reproduces from the authors' committed artifacts at JenniferJaschob/ObsNODE, pinned at commit 62dd3e0b2117e3a4bd41e49fa61637c909a8ebbf, once one correction is applied: the paper text says CB/ATE were "averaged over six prediction time points", but the Table 2 numbers are horizon-1 metrics (the single first prediction point after t_c). Every Table 2 cell matches at ≤ 1×10⁻³ (most ≤ 4×10⁻⁴), except one cell that appears to be a transcription typo in the paper.

Paper: https://arxiv.org/abs/2604.26070 (Section 5.1, Table 2; Appendix A.4.1, A.5, A.6)

Method (inference-only, smallest experiment)

  • Loaded the authors' committed checkpoints (seeds 1–5) for both models and the committed counterfactual datasets CF1–CF6 (paired simulated potential outcomes).
  • Regenerated the missing pre-processed training tensors from the committed raw data_dict_4_4.p via the authors' read_cancer_data.py; train-cohort standardization: mean = (55.55488, 83.95196), std = (115.24467, 20.43956) for (tumor volume, body weight).
  • Ran the authors' own Pred_ObsNODE_CF_cancer_0.py / Pred_NODE_CF_cancer_0.py logic (path-patched only) for 5 seeds × CF1–CF6 on CPU (8 vCPU).
  • Signed CB = mean over test patients of (predicted − simulated potential outcome), train-cohort standardized. Source ATE = predicted alternative − ground-truth baseline (CF6) potential outcome; true ATE = paired simulated CF_k − CF6.
  • Independent recomputation directly from the raw unstandardized pickles with independently computed mean/std matches the author pipeline to ≤ 3×10⁻⁸.

Table 2 comparison (ours = seed-mean, horizon-1)

Metric Variable CF Ours Paper
CB tumor 1–5 .1738/.1739/.1724/.1708/.1708 .1738/.1739/.1724/.1708/.1708
CB weight 1–5 .0955/.0943/.0927/.0928/.0928 .0952/.0941/.0924/.0924/.0926
CB tumor 1–5 (NODE) −.5153/−.5289/−.5365/−.5321/−.5321 −.5152/−.5288/−.5364/−.5321/−.5321
CB weight 1–5 (NODE) −2.0289/−2.0332/−2.0373/−2.0375/−2.0375 −2.0229/−2.0272/−2.0313/−2.0315/−2.0315
ATE (true) tumor 1–5 −.0105/.0031/.0107/.0063/.0063 −.0105/.0031/.0107/.0063/.0063
ATE (true) weight 1–5 −.0016/.0027/.0069/.0070/.0070 −.0016/.0227/.0068/.0070/.0070
ATE (pred) tumor 1–5 .1633/.1770/.1831/.1772/.1772 .1633/.1770/.1831/.1771/.1771
ATE (pred) weight 1–5 .0939/.0971/.0995/.0998/.0998 .0937/.0968/.0992/.0995/.0995
ATE (pred) tumor 1–5 (NODE) −.5258 (const) −.5257 (const)
ATE (pred) weight 1–5 (NODE) −2.0305 (const) −2.0245 (const)

Section 5.1 mean absolute ATE error (|predATE − trueATE| over CF1–CF5, horizon-1): ours tumor ObsNODE 0.1724 (paper .1723), weight 0.0936 (paper .0933); NODE tumor 0.5290 (paper .5289), weight 2.0349 (paper 2.0289).

The only cell differing beyond 4×10⁻⁴ is the true-ATE weight CF2 value (ours 0.0027 vs paper 0.0227); all 19 neighbouring cells match, so this looks like a transcription error in the paper.

Key findings beyond the numbers

  1. "Six prediction time points" does not describe Table 2. Table 2's numbers are horizon-1 (t = t_c + 1 only). Averaging over the first six prediction points gives materially different values (e.g. ObsNODE CB tumor CF1 = 0.372 vs 0.174), and no window × standardization combination we scanned (first-6, every-3rd, last-6, all-19; train-cohort / observational-test / CF6-test std) matches the paper's TRUE rows except horizon-1 with train-cohort std.
  2. The NODE baseline ignores the future treatment path. Its predictions are bit-identical across all six treatment regimes (sensitivity 0.0000), so its "estimated ATE" is constant across CF1–CF5 — consistent with the paper's own constant NODE ATE row, and a direct confirmation of the user-posed criterion that a forecast ignoring future treatment cannot be a valid causal comparison baseline (it still reproduces the paper's numbers, but only as an artifact of this pathology).
  3. The paper's reported Table 2 cells carry no dispersion; our 5-run seed-std for ObsNODE CB6 (tumor) is 0.004–0.006, so the paper's 4-decimal table hides run-level noise of the same order as the smallest ObsNODE/NODE gaps in CB weight (0.002).

Deviations from the author scripts (path-only unless noted)

  • Hard-coded /Users/jaschob/... paths replaced; the os.chdir into the vendored torchdiffeq stubbed around import (vendored adjoint method used, not pip's).
  • NODE checkpoint path in the script pointed at a non-committed location; redirected to the committed Code/Model_NODE/Out_NODE/cancer/dim2/ checkpoints.
  • Training pickles regenerated from committed raw data (authors did not commit them).
  • Scripts truncated before the seed-aggregation tail; aggregation reimplemented identically in analyze_table2.py.
  • numpy 2.5.5 initially present; repinned to the authors' 1.26.4 — results bit-identical between the two (verified per CF, max diff 0.00e+00).
  • torchmetrics 1.9.0 installed (authors pin 1.4.0.post0; import-only use).

What this run establishes and what it does not

Establishes: the authors' committed checkpoints + committed CF data + their metric code reproduce Table 2 / Section 5.1 exactly at horizon-1; the metric implementation is independently verified; the NODE baseline has zero treatment-path sensitivity; the paper's "six prediction points" text mismatches its own Table 2.

Does not establish (out of scope, $1 budget): that retraining from scratch reaches these checkpoints (checkpoint provenance), the paper's Appendix A.6 training-time claims, or the 5-run "disjoint training/validation/test sets" claim (the committed pipeline shares one dataset across seeds).

Files

  • analyze_table2.py — Table 2 aggregation, independent recomputation, treatment-path check
  • scan_windows_std.py — window/standardization scan against the paper's TRUE rows
  • scan_horizon1.py — horizon-1 comparison (the matching protocol)
  • export_metrics.py — per-seed metric export
  • make_runners.py — regenerates the path-patched runner scripts from the author repo
  • horizon1_report.txt — the matching-protocol comparison output
  • table2_report.txt — six-point-window output (non-matching, kept for transparency)

Environment: torch 2.4.0 (CPU), numpy 1.26.4, scipy 1.14.0, pandas 2.2.2, Python 3.12; authors' vendored torchdiffeq. All runs deterministic under fixed seeds.

Downloads last month
-

Paper for Ki-Asif/obsnode-table2-reproduction