Problem & data
What we ask, what one row means, and how the data is prepared.
Question
How closely do cheap unlearning updates match full retraining when the preprocessing is also learned from the data, and what does a frozen preprocessor leak?
The gold standard is oracle retraining: delete the patients, then refit the whole pipeline and the model. Cheaper methods try to approximate it. The question is about unlearning fidelity, not about building the best readmission model.
- One row
- One inpatient encounter of a diabetic patient
- Target
- Readmitted within 30 days (11.2% positive)
- Prediction time
- At discharge: only pre-discharge counts and categories are used
- Deletion request
- Top q% of training encounters by utilization (3·inpatient visits + 0.1·lab procedures); default 3% = 599 encounters. Random cohorts serve as a control.
Data
UCI Diabetes 130-US Hospitals (1999–2008, Strack et al. 2014; CC BY 4.0), via OpenML id 4541. We use a fixed random sample of of the 101,766 encounters, from distinct patients. The data is public and de-identified, so the sample ships with this site.
Features: 8 counts (time_in_hospital, num_lab_procedures, num_procedures, num_medications,
prior-year number_outpatient/emergency/inpatient, number_diagnoses) and 4 categoricals (admission type, discharge disposition, medical specialty, A1C result).
Heavy right tails
Training set: median, 99th percentile and maximum of each count. The few extreme patients set the scaling.
Quality issues we handle
- Repeat patients. Some patients have several encounters, so we split by patient: patients appear in both train and test.
- Missing specialty. of encounters have no medical specialty; kept as its own level.
- Simulated missing counts. The released numeric columns are complete, so 12% of numeric cells are masked completely at random to exercise the imputer. This is a simulation; real missingness is rarely random.
- Imbalance. 11.2% positives, so we check the model with PR-AUC, not accuracy.
Preprocessing (fitted on training rows only)
- Numeric: mean imputation, then standardization
z = (x − μ)/σ. - Categorical: Empirical-Bayes target encoding
(Σy + 10·ȳ)/(n + 10), centred and scaled by 10. - Everything is stored as additive sufficient statistics (counts, sums, sums of squares), so removing rows means subtracting their statistics. That costs O(|Df|) and never touches the retained data.