← All work

Research & evaluation / Data & ML · 2025

When does a better model actually perform better?

A replication study of a published neural architecture, and an investigation into what changes when its configuration does.

  • PyTorch
  • Replication
  • Statistical testing
  • Python

Context

Graduate research project · Georgia Tech · with Felipe Oliveira

My contribution

Preprocessing, GRU baseline, embeddings, tuning experiments, statistical evaluation, and co-authorship.

The takeaway

In our synthetic-data experiments, the model’s advantage emerged after tuning; it was not evident under the initial configuration.

Experiment 01 / Model comparison

Model performance

Replication and tuned configurations.

The added architecture did not show a statistically significant PR-AUC advantage in our initial configuration.

30 trials · synthetic patient data · mean ± SD
Both configurations use 2 epochs; the original study used 6. Bars show standard deviations, not confidence intervals. The axis is expanded for comparison.
View all results & source
Reported aggregates from Tables I and II
ConfigurationModelPR-AUC ± SDROC-AUC ± SD
ReplicationCONTENT0.6391 ± 0.00250.7970 ± 0.0014
ReplicationGRU baseline0.6401 ± 0.00170.7979 ± 0.0013
After tuningCONTENT0.6464 ± 0.00220.8026 ± 0.0014
After tuningGRU baseline0.6391 ± 0.00250.7970 ± 0.0014

Read the report, pp. 3–4 ↗. The report’s statistical claim concerns PR-AUC; this figure makes no separate significance claim for ROC-AUC.

The question

Does adding long-term patient context to a sequential neural model improve hospital-readmission prediction—and can that advantage be reproduced?

Felipe Oliveira and I revisited the CONTENT architecture from Xiao et al. (2018). The task was to translate an older Theano implementation into PyTorch, compare it with a GRU baseline, and examine how much the conclusions depended on training choices.

My contribution

I implemented preprocessing and evaluation functionality, the GRU baseline, and support for that baseline throughout the experiment pipeline. I trained Word2Vec embeddings, tested architectural variations, conducted tuning experiments using Felipe’s grid-search implementation, ran the tuned 30-trial experiments, and performed statistical comparisons. I also wrote substantial sections of our report.

Felipe implemented CONTENT, the training loop, the grid-search module, and the initial 30-trial runs, alongside other infrastructure and writing contributions. The paper contains our full contribution statements.

Experimental design

We used the original authors’ publicly available synthetic dataset: 3,000 patients, split into 2,000 training, 500 validation, and 500 test patients. The real clinical dataset was unavailable. CONTENT combines a sequential GRU with a topic-based representation of patient history; the GRU baseline isolates the value of that added context.

We prioritized precision–recall AUC and reported ROC-AUC alongside it. After observing rising validation loss beyond the second epoch, we used two training epochs and 30 trials per configuration. The original paper used six epochs and ten trials, so this is a replication with documented changes, not an identical rerun.

What the evidence showed

Under the initial hyperparameters, mean PR-AUC was 0.6391 for CONTENT and 0.6401 for GRU. Our analysis found no statistically significant CONTENT advantage. After validation-based tuning, the reported means were 0.6464 and 0.6391 respectively; the report’s comparison gives p < 0.0001.

The absolute improvement is modest. The useful finding is that the architecture’s measured advantage depends on configuration. Trying alternative layers and activations did not automatically improve results.

Limits and interpretation

These results concern synthetic data and our implementation. Framework differences, unavailable original embeddings, dataset-version uncertainty, and incomplete baseline specifications limit direct comparisons with the published study. Repeated training runs measure variation in this setup; they do not establish generalization to new hospitals or clinical usefulness.

The interactive figure reproduces the aggregate values in Tables I and II of our report. Error bars show standard deviations across trials, not confidence intervals. Statistical conclusions come from the report’s tests, not visual inspection of overlapping bars.

Why this work matters

A research result becomes more useful when its conditions are explicit. This project combined implementation, controlled comparison, and careful interpretation to identify when a reported advantage appears—and where the evidence stops.

Keep exploring

A counterfactual for Chile