NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural Network-Based Piecewise Survival Models

Olov Holmer, Erik Frisk, Mattias Krysander

TL;DR

This paper introduces a new family of four neural network-based survival models that offer increased flexibility by defining survival functions piecewise over time. These models achieve performance comparable to state-of-the-art methods while requiring significantly less computation, making them a practical advancement for survival analysis tasks.

What Problem Does This Paper Address?

Survival analysis is crucial for understanding the time until an event occurs, with applications ranging from medicine to predictive maintenance. A key challenge is modeling the complex relationships between covariates and event times, especially with censored data (where the event time isn't fully observed). While neural networks have shown promise, existing methods like Cox-based or discrete-time models have limitations. Cox models rely on restrictive assumptions, and discrete-time models inherently struggle with continuous data. Piecewise exponential models (PEMs) offer an improvement by defining hazard rates piecewise, but this paper aims to further enhance flexibility by allowing both the hazard and density functions to be defined piecewise, either constantly or linearly, on a time partition.

Methods

The authors propose a family of four neural network-based survival models:

  • Piecewise Constant Density (PCD): The density function is a step-wise constant function across time segments.
  • Piecewise Linear Density (PLD): The density function is a continuous piecewise linear function.
  • Piecewise Constant Hazard (PCH): The hazard rate is a step-wise constant function across time segments.
  • Piecewise Linear Hazard (PLH): The hazard rate is a continuous piecewise linear function.

These models are parameterized using neural networks. The core idea is to discretize the time axis into segments and define the density or hazard function within each segment. The survival function is then derived by integrating these functions. A key aspect is ensuring the resulting survival function is "proper" (starts at 1, is non-increasing, and goes to 0). The models are trained using maximum likelihood estimation, with the log-likelihood serving as the loss function.

Datasets

The models were evaluated on a simulated dataset drawn from a two-parameter Weibull distribution. This dataset was generated with varying shape and scale parameters for each individual, and covariates were constructed from these parameters. The dataset was split into training (1000 individuals), validation (300 individuals), and testing (300 individuals) sets.

Key Insights and Ideas

  • Increased Flexibility: By allowing both density and hazard functions to be defined piecewise (and linearly), these models offer greater flexibility than existing discrete-time or piecewise exponential models.
  • Hazard vs. Density Parameterization: The paper suggests that parameterizing the hazard function (PCH and PLH) generally leads to better performance than parameterizing the density function (PCD and PLD). This is attributed to the fact that the true distribution's hazard is often monotonically increasing, which is easier for a neural network to learn than the more complex shape of a density function.
  • Linearity Matters: Piecewise linear models (PLD and PLH) consistently outperform their piecewise constant counterparts, indicating that modeling smooth transitions in density or hazard is beneficial, especially when the underlying true distribution is smooth.
  • Computational Efficiency: A significant advantage is that these models achieve performance comparable to more complex "energy-based" models but require a fraction of the computation time.

Key Results

  • The piecewise linear models (PLD and PLH) demonstrated better performance than the piecewise constant models (PCD and PCH) on the simulated dataset.
  • Hazard-based parameterizations (PCH and PLH) generally yielded better results than density-based ones.
  • The best-performing piecewise models (specifically, the PLH model) achieved performance comparable to the state-of-the-art energy-based model from [6].
  • Crucially, the proposed models required only a fraction of the training time compared to the energy-based model. For instance, the training times for the models ranged from approximately 0.6 to 0.7 seconds, while the energy-based model took around 2.16 seconds.

Limitations and Future Work

  • Grid Choice: The performance of the piecewise models is dependent on the choice of the discretization grid (i.e., the time points $T_i$). The paper notes that this choice can be important and refers to [9] for different strategies, but it's a parameter that needs careful consideration.
  • Simulated Data: The evaluation was performed on a simulated dataset. While this allows for controlled experiments, future work should validate these models on real-world datasets to assess their performance in practice.
  • Interpretability: While the models are more flexible, the piecewise nature, especially with hazard parameterization, can sometimes lead to less intuitive survival and density functions compared to smoother, globally defined models. The paper acknowledges that the linear hazard formulation, while performing well, might not be as easy to interpret as the ground truth.

Future work could involve exploring more sophisticated methods for selecting the time partitioning, applying these models to diverse real-world survival analysis problems, and potentially investigating hybrid approaches that combine the strengths of piecewise and global modeling.

Summary updated

BibTeX
@inproceedings{holmer2024neural,
  author = {Olov Holmer and Erik Frisk and Mattias Krysander},
  title = {{Neural Network-Based Piecewise Survival Models}},
  booktitle = {KTH},
  year = {2024},
  doi = {10.48550/arxiv.2403.18664},
}
Figure