CCTimeBoost: Learning Time-Varying Relative Risk with Case-Control Boosted Trees

Rahul GoswamiNeurIPS 2026

TL;DR

Predicting when an event will happen—whether a patient relapsing or a user churning—gets tricky when risk factors change their minds over time (like a treatment whose benefit fades after six months). While deep learning handles shifting dynamics well, gradient-boosted trees remain the undisputed champions of tabular data—yet standard boosted survival trees assume risk ratios stay frozen in time. CCTimeBoost bridges this gap, teaching standard boosted trees to learn dynamic, continuous-time risks using a clever case-control sampling trick, achieving state-of-the-art risk ranking without sacrificing interpretability.

What Problem Does This Paper Address?

In survival analysis (time-to-event modeling), we deal with "right-censored" data: if a clinical study ends before a patient relapses, we know they survived at least until day $X$, though we don't know what happened afterward.

For decades, the gold standard here has been the Cox Proportional Hazards (PH) model. It separates baseline risk over time from an individual’s personal features. However, the "proportional hazards" assumption is a massive catch: it assumes that if Biomarker A doubles your risk on day 1, it also doubles your risk in year 5. In reality, surgeries carry high immediate risks that plummet later, and drug effects fade or even reverse.

Existing machine learning solutions force an awkward trade-off:

  • Boosted Cox trees (like XGBoostPH) are fast, reliable, and dominate on tabular data, but still lock each person into a single, static risk score over time.
  • Neural survival models (like CoxTime) easily model time-varying risks, but are notoriously finicky to tune, scale, and explain on tabular datasets.
Table 1: Positioning of CCTimeBoost relative to common survival-model families. ✓indicates that the property is directly supported, △indicates partial or indirect support, and × indicates that the property is not a primary feature of the model class. “Continuous time” indicates that the model is naturally formulated over event times rather than only over a fixed discrete time grid.

CCTimeBoost asks: Can we get dynamic, continuous-time risk modeling inside standard, off-the-shelf gradient-boosted trees?

Methods

CCTimeBoost adapts the continuous-time case-control framework pioneered in neural networks (specifically CoxTime) and re-engineers it for regression tree ensembles. It works in three intuitive steps:

Figure 1: Overview of CCTimeBoost. For each event at ti, the case and controls sampled from Ri \ {i} form Si. Boosted trees use time-augmented covariates to learn log-risk scores gθ(ti, Xj) through a group-softmax loss. The fitted model produces time-varying log-risk trajectories gθ(t, x). Survival curves ˆ︁S(t | x) are obtained by accumulating subject-specific hazard increments over event times using a full-risk-set Breslow baseline.
  1. Time-Augmented Features: Instead of just feeding static patient features $x$ into the trees, CCTimeBoost appends a simple time embedding—specifically $t$ and $\log(1+t)$—directly to the input vector. Now, decision trees can naturally split on time and discover nonlinear interactions between features and follow-up duration.
  2. Sampled Case-Control Group-Softmax: Training on everyone still at risk at every single event time is computationally brutal. Instead, whenever an event occurs at time $t_i$ (the "case"), CCTimeBoost randomly samples a small handful of "controls" who were still event-free at $t_i$. It then frames a mini classification game using a group-softmax cross-entropy loss: assign the highest risk score to the true event among this group at time $t_i$. Using a diagonal Hessian approximation, this plugs cleanly into standard engines like XGBoost or CatBoost.
  3. Full-Risk-Set Calibration: Because case-control training only learns relative risk rankings, the model finishes with a single pass over the full, unsampled dataset using a Breslow-type baseline hazard estimator, converting raw tree scores into calibrated survival probability curves.

Because the model is just an ensemble of trees taking $(x, t)$ as input, the author also introduces time-resolved explanations—evaluating SHAP values across a grid of time points to watch feature importance rise and fall over time.

Datasets

No new datasets are introduced, though the author constructs three synthetic piecewise-exponential simulation scenarios (testing fading effects, crossing survival curves, and rule-based temporal thresholds) to verify that the model recovers ground-truth dynamics.

For real-world evaluation, CCTimeBoost is tested on eight established right-censored benchmarks:

  • Medical/Oncology: SUPPORT (hospital mortality), METABRIC & ROTTGBSG (breast cancer), FLCHAIN (mortality via serum light chains), NWTCO (pediatric cancer relapse), NACD (multi-site cancer), and NACD-COL (colorectal cancer).
  • Social Science: RECIDIVISM (time until criminal reincarceration).

Key Insights and Ideas

  • Sampling isn't just a heuristic hack: A standout theoretical insight is that the group-softmax loss over finite sampled controls isn't a sloppy approximation—it matches the exact conditional likelihood of a nested case-control study, and smoothly converges to the classic Cox partial likelihood if you sample everyone.
  • Trees love temporal thresholds: If a clinical risk factor only kicks in after year 3 for patients over age 60, axis-aligned decision trees can isolate that exact $(x, t)$ box effortlessly.
  • Dynamic SHAP: By tracking TreeSHAP values across $t$, you don't just ask "which features matter?"—you can ask "when do they matter?"

Key Results

Tested against 10 neural, classical, and tree baselines, CCTimeBoost shines in risk discrimination while holding its own in probability calibration:

  • State-of-the-Art Discrimination: Measured by time-dependent concordance (how well the model ranks who has an event first), CCTimeBoost achieves the #1 best score on 7 out of 8 datasets, earning a commanding average rank of 1.125 (compared to 3.625 for Random Survival Forests and 5.250 for neural CoxTime). On SUPPORT, it beats the next-best baseline by over a full concordance point (0.6513 vs. 0.6382).
Table 2: Time-dependent concordance across eight benchmark datasets. Higher values indicate better risk ranking over time. Entries report mean performance over repeated train–test splits; the best method for each dataset is shown in bold. The final column reports the average rank across datasets. Full mean ± standard deviation results are provided in Appendix B.4.
  • Competitive Calibration: On Integrated Brier Score (probabilistic accuracy over time, lower is better), CCTimeBoost still secures the best overall average rank (3.375) and wins outright on 4 of 8 datasets, statistically tying with Random Survival Forests (rank 3.500).
  • Recovering Ground Truth: In simulations, time-specific SHAP curves cleanly traced fading effects, hazard reversals, and sudden regime shifts right at the designed $t=3$ and $t=6$ boundaries.

Limitations and Future Work

  • Subtle late interactions can slip through: In the rule-based simulation, a complex three-way late-stage interaction received a surprisingly low time-interaction ranking score, showing post-hoc interaction metrics aren't infallible. Note also that absolute SHAP curves show shifts in magnitude, not whether an effect flipped from protective to harmful.
  • Scope: The framework currently handles single-event, right-censored data using a simple two-feature time representation. Extending CCTimeBoost to competing risks (e.g., dying of heart disease vs. cancer), recurrent events, richer temporal basis functions, and losses explicitly tailored for probability calibration are prime targets for future work.

Summary updated

Abstract

Many survival problems are inherently time-dependent: a biomarker may be predictive soon after diagnosis but irrelevant years later, or a treatment effect may diminish, reverse, or interact with follow-up duration. However, commonly used boosted Cox models assign each individual a time-independent relative-risk score. Neural non-proportional-hazards models can capture dynamic effects, but are often more challenging to tune, scale, and interpret than boosted trees. We present CCTimeBoost, a gradient-boosted tree framework for learning continuous-time, time-varying relative risk. The method augments covariates with time features, trains boosted trees on sampled risk sets using a group-softmax objective, and estimates a full-risk-set baseline hazard to generate survival curves. We show that this objective has a likelihood interpretation: for finite sampled risk sets, it matches a nested case-control likelihood, and in the full-risk-set limit, it converges to the Cox partial likelihood. Across eight right-censored survival benchmarks, CCTimeBoost delivers state-of-the-art discrimination performance relative to tree and neural baselines and is competitive in probabilistic prediction accuracy. In controlled simulations, it accurately recovers diminishing effects, crossing hazards, and rule-based temporal interactions. These results indicate that non-proportional survival modeling can be incorporated into standard boosted-tree methods.
BibTeX
@inproceedings{goswami2026cctimeboost,
  author = {Rahul Goswami},
  title = {{CCTimeBoost: Learning Time-Varying Relative Risk with Case-Control Boosted Trees}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=wSn3dZhijP},
}
Figure