Piecewise Exponential Additive Models
- Piecewise Exponential Additive Models (PAMs) are hazard-based survival models that partition follow-up time into intervals and model the log-hazard with both linear and smooth additive predictors.
- They transform continuous-time survival analysis into a Poisson regression problem via the piecewise exponential data (PED) formulation, enabling flexible and efficient estimation.
- The framework integrates linear effects, smooth nonlinear influences, time-dependent covariates, and random effects, making it suitable for diverse survival analysis applications.
Searching arXiv for recent and foundational papers on Piecewise Exponential Additive Models and closely related extensions. Piecewise Exponential Additive Models (PAMs) are a class of hazard-based survival models that combine a piecewise exponential representation of event times with the structured flexibility of generalized additive modeling. Their defining construction is to partition follow-up time into intervals, assume the hazard is constant within each interval, and model the log-hazard through an additive predictor that may contain a smooth baseline hazard, linear covariate effects, smooth nonlinear effects, time-varying effects, random effects, and effects of time-dependent covariates (Bender et al., 2018). In practice, this formulation converts continuous-time survival analysis into a Poisson regression problem on interval-split data, while retaining continuous-time semantics and allowing estimation with generalized additive mixed-model machinery such as mgcv (Bender et al., 2018, Kopper et al., 2022). The term “PAM” is occasionally used in unrelated literatures for piecewise affine maps, but in survival analysis it refers to piecewise exponential additive models or, with random effects emphasized, piecewise exponential additive mixed models (PAMMs) (Kurganskyy et al., 2015, Bender et al., 2018).
1. Definition and core model structure
PAMs model the hazard rather than the survival function directly. A general formulation used in the survival literature writes the hazard as
where is an additive predictor and may index causes or transitions in competing-risks and multi-state settings (Kopper et al., 2022). The survival function is then recovered through
so hazard estimation determines survival and cumulative hazard quantities (Kopper et al., 2022).
The “piecewise exponential” component arises by partitioning follow-up time into intervals
and assuming the hazard is constant within each interval (Kopper et al., 2022, Kopper et al., 2020, Bender et al., 2018). In this construction, the interval-specific hazard for subject is often written
with indexing the interval-specific time point used for baseline and time-varying effects (Kopper et al., 2022).
What makes PAMs additive is the decomposition of the log-hazard into interpretable components. A canonical specification is
where is the log-baseline hazard, 0 are linear effects, and 1 are smooth univariate nonlinear effects (Kopper et al., 2022, Kopper et al., 2020). In the broader PAMM formulation, the hazard may be written as
2
or equivalently
3
thereby allowing time-varying effects of time-constant covariates, effects of time-dependent covariates, cumulative effects, and frailty terms 4 (Bender et al., 2018).
This model class is semi-parametric rather than fully nonparametric. The hazard is approximated by piecewise exponential pieces, but the predictor is smooth and penalized, typically through spline bases. A standard basis representation is
5
with basis functions such as B-splines and coefficients controlled by quadratic penalties to regulate roughness (Kopper et al., 2022).
2. Poisson representation and estimation machinery
The central computational device of PAMs is the transformation of survival data into piecewise exponential data (PED). For each subject, one row is created for every interval during which the subject is at risk (Kopper et al., 2022, Kopper et al., 2020, Bender et al., 2018). The interval-specific event indicator is denoted 6, and the time contributed in the interval is denoted 7 or 8 (Kopper et al., 2022, Wiegrebe et al., 24 Sep 2025). In the formulation used by pammtools, the offset is
9
and the event indicator is
0
The resulting working model is
1
or equivalently
2
in the notation used in the DeepPAMM and DeepPAM papers (Bender et al., 2018, Kopper et al., 2022, Kopper et al., 2020).
Under this representation, the subject-specific log-likelihood contribution becomes
3
which is the standard PAM/PEM conversion of survival likelihood into a Poisson regression problem on interval-split data (Kopper et al., 2022, Kopper et al., 2020). The negative log-likelihood is then augmented by smoothing penalties,
4
or, in closely related notation,
5
where 6 controls smoothness (Kopper et al., 2022, Kopper et al., 2020).
This Poisson formulation is fundamental to the practical identity of PAMs. It explains why they are routinely estimated as generalized additive mixed models and why the methodology transfers directly from additive regression to time-to-event data (Bender et al., 2018). In mgcv, a typical implementation is
4
or bam() for large data (Bender et al., 2018). The term s(tend) estimates the log-baseline hazard, parametric terms represent linear covariate effects, and smooth interaction constructions such as s(..., by=...), ti(...), or te(...) express time-varying and interaction effects (Bender et al., 2018).
A recurring technical point in the literature is that the Poisson representation is a working likelihood because interval indicators are not truly independent (Bender et al., 2018). Nonetheless, it is the standard approximation underlying piecewise exponential models and is operationally central for penalization, mixed-model estimation, and scalable implementation.
3. Additive effects, smooths, random effects, and cumulative exposure structures
PAMs are distinguished from simpler piecewise exponential proportional hazards models by the breadth of effects that can enter the additive predictor. The smooth baseline hazard 7 is one such component, but the framework extends to a wider structured-additive vocabulary (Bender et al., 2018, Kopper et al., 2022).
Time-constant covariates may enter linearly or smoothly. The pammtools exposition lists common representations such as linear time-constant effects x, smooth time-constant effects s(x), linear time-varying effects x + x:t, smoothly time-varying linear effects s(t, by = x), and full smooth interaction surfaces te(x, t) (Bender et al., 2018). For selected covariates, the smooth terms 8 are expressed through basis expansions and roughness penalties, with basis dimension chosen “relatively large to avoid underfitting” and overfitting controlled by penalties on neighboring spline coefficients (Kopper et al., 2022).
Random effects, or frailties, yield the “mixed model” extension emphasized in PAMMs. In the survival-analysis formulation of pammtools, this appears as a group-specific term 9 in the log-hazard (Bender et al., 2018). In the DeepPAMM paper, random effects are described as linear effects for each cluster with a normal prior, and the paper explicitly notes that a normal random effect is mathematically equivalent to a ridge penalty (Kopper et al., 2022). This equivalence links mixed-model estimation, Gaussian frailty interpretation, and penalized optimization.
Time-dependent covariates can enter either concurrently or cumulatively. For concurrent effects, the PED transformation can merge longitudinal covariate histories with the split survival data, carrying the last observed covariate value forward until the next measurement time (Bender et al., 2018). The more general cumulative-effect formulation is
0
meaning that the current hazard depends on the whole exposure history of a time-dependent covariate (Bender et al., 2018). The paper identifies special cases including weighted cumulative exposure,
1
and distributed lag nonlinear models,
2
This is one of the most distinctive extensions of PAMMs relative to conventional proportional hazards regression, because it allows the hazard at time 3 to aggregate multiple past exposure contributions with nonlinear lag structures (Bender et al., 2018).
Interpretation follows the structure of the additive predictor. The smooth baseline hazard is the log-baseline hazard, though the pammtools paper stresses that in the PED/PAMM setting it should be interpreted as a step function because the underlying hazard is piece-wise constant within intervals (Bender et al., 2018). Time-varying effects of time-constant covariates are interpreted as time-specific log-hazard ratios or as surfaces over covariate value and time. For cumulative-effect terms, the literature distinguishes the partial effect surface 4 from the cumulative effect obtained by integration over exposure times (Bender et al., 2018).
4. Relationship to piecewise exponential models and proportional hazards formulations
PAMs are best understood as an extension of classical piecewise exponential models (PEMs). In a PEM, follow-up is divided into intervals and the hazard is approximated by a step function constant within each interval (Bender et al., 2018). The PAM construction keeps this interval-wise exponential representation but replaces a purely parametric linear predictor with a flexible additive one estimated through penalized smooths and mixed-model techniques (Bender et al., 2018, Kopper et al., 2022).
This relationship matters because some papers concern only the piecewise exponential component and not the additive-model component. The paper "Proportional asymptotics of piecewise exponential proportional hazards models" studies a proportional hazards model with a piecewise-constant baseline hazard,
5
with interval indicators
6
and a single linear predictor 7 under ridge penalization (Massa, 31 Jan 2025). The paper explicitly states that it is not about PAMs in the modern additive-model sense, but rather about a piecewise exponential proportional hazards model with a piecewise-constant baseline hazard, a single linear predictor, and ridge penalization on regression and baseline-hazard parameters (Massa, 31 Jan 2025). This distinction is important because the piecewise exponential construction alone does not imply additive covariate effects, smooth GAM terms, or mixed-model structure.
A similar distinction arises in neural-network generalizations. The paper "Neural Network-Based Piecewise Survival Models" partitions time into a grid
8
and proposes four models: piecewise constant density, piecewise linear density, piecewise constant hazard, and piecewise linear hazard (Holmer et al., 2024). The piecewise constant hazard model,
9
is described as the direct neural-network version of a piecewise exponential model (Holmer et al., 2024). Yet the paper does not introduce explicit additive predictor formulas in the generalized additive-model sense, so its relationship to PAMs is structural rather than formal. It shares interval-wise hazard modeling and continuous-time semantics, but replaces spline-based additive predictors with a neural network that outputs interval-specific parameters (Holmer et al., 2024).
A common misconception is therefore to treat all piecewise hazard models as PAMs. The literature does not support that equivalence. Classical PEMs, ridge-penalized piecewise exponential proportional hazards models, neural piecewise hazard models, and GAM-based PAMs all exploit the same interval partitioning idea, but PAMs specifically refer to the additive-model survival framework in which the log-hazard contains structured linear, smooth, and mixed effects (Bender et al., 2018, Kopper et al., 2022, Massa, 31 Jan 2025).
5. Software ecosystem and workflow
The practical development of PAMs is closely associated with the pammtools package, introduced specifically to facilitate data transformation, estimation support, simulation, visualization, and interpretation for piece-wise exponential additive mixed models (Bender et al., 2018). The package does not perform model fitting itself; instead, it prepares data and post-processes results so that estimation can be carried out in mgcv (Bender et al., 2018).
Its central transformation function is as_ped, which converts standard time-to-event data into PED format (Bender et al., 2018). For ordinary right-censored data, as_ped(Surv(time, status) ~ ., cut = ...) splits follow-up into intervals, creates tstart and tend, adds an interval indicator, constructs ped_status, and computes the offset as the log interval length or remaining time (Bender et al., 2018). For time-dependent covariates, the function can merge survival data with longitudinal measurement histories by using concurrent(), employing the union of event times and measurement times as split points and carrying forward the last observed covariate value (Bender et al., 2018). For cumulative effects, as_ped accepts cumulative(), together with arguments such as tz_var, ll_fun, and optionally latency(), and outputs the matrix-valued covariates needed for estimation in mgcv (Bender et al., 2018).
The package also provides tools for simulation and effect visualization. Functions highlighted in the paper include sim_pexp() and add_tdc() for data generation; get_laglead(), gg_laglead(), gg_partial(), gg_slice(), and gg_cumu_eff() for inspection of lag-lead windows and effect surfaces; and post-processing helpers such as tidy_fixed(), tidy_smooth(), get_cumu_coef(), add_hazard(), add_cumu_hazard(), and add_surv_prob() (Bender et al., 2018).
A notable practical recommendation concerns interval choice. The pammtools paper recommends using the unique observed event times as cut points, and states that this is the default in pammtools (Bender et al., 2018). The motivation is that this gives more resolution where the hazard changes and improves approximation, although fewer intervals may be required for computational reasons in large data settings (Bender et al., 2018). This suggests a trade-off between approximation fidelity and computational burden rather than a single universally optimal partitioning strategy.
The estimation syntax remains standard GAM/GAMM practice. Smooths, tensor products, and by-variable interactions are specified through the familiar mgcv interface (Bender et al., 2018). This is one reason PAMs occupy an important methodological niche: they provide a bridge between continuous-time survival analysis and the mature ecosystem of additive-model software.
6. Extensions: deep learning, joint models, multi-state processes, and high-dimensional settings
A major recent line of work embeds PAMs within neural architectures. "Semi-Structured Deep Piecewise Exponential Models" proposes DeepPAM, which starts from the general hazard
0
and augments the additive predictor with deep components for unstructured data (Kopper et al., 2020). One extension is
1
where 2 is the structured PAM part and 3 is a neural encoder (Kopper et al., 2020). A more flexible version allows interaction between structured and learned features,
4
thus enabling non-proportional hazards and richer interaction structures (Kopper et al., 2020).
The related DeepPAMM framework generalizes the same idea and explicitly positions PAMMs as the statistical core of a flexible deep survival model (Kopper et al., 2022). It writes the hazard as
5
or, interval-wise,
6
where 7 preserves the structured additive terms and the latent features 8 come from the deep component (Kopper et al., 2022). The paper emphasizes that interpretability is retained for the structured part because of the additive form (Kopper et al., 2022). It also extends naturally to non-proportional hazards and competing risks through
9
and cause-specific hazards
0
for 1 causes (Kopper et al., 2022).
PAM-based survival components have also been used in Bayesian joint models. "Spatial Joint Models through Bayesian Structured Piece-wise Additive Joint Modelling for Longitudinal and Time-to-Event Data" rewrites the time-to-event submodel as a piece-wise exponential additive mixed model within a Bayesian shared-parameter joint model (Rappl et al., 2023). The survival component becomes
2
with nonlinear smooths, spatial effects, and random effects represented through structured additive priors (Rappl et al., 2023). The paper reports that the resulting Structured Piecewise Additive Joint Model is about twice as fast as the benchmark model and remains stable in imbalanced settings with few events (Rappl et al., 2023).
The framework has also been extended to multi-state disease histories. "Multi-state Models For Modeling Disease Histories Based On Longitudinal Data" develops transition-specific PAMs for dependent left-truncation, multiple time scales, index event bias, and interval-censoring (Wiegrebe et al., 24 Sep 2025). In the single stratified time scale (SSTS) setting, the transition-specific baseline hazard is
3
while in the multiple time scales (MTS) setting the baseline hazard can depend on several time scales through a sum of smooth transition-specific functions (Wiegrebe et al., 24 Sep 2025). The paper reports that PAMs can handle dependent left-truncation and multiple time scales, that SSTS PAMs are more robust than MTS PAMs under misspecification, and that PAMs recover baseline and fixed effects well in most settings except for baseline hazards in interval-censored data (Wiegrebe et al., 24 Sep 2025).
By contrast, the 2025 high-dimensional asymptotic theory paper does not analyze PAMs with additive covariate effects, but it provides theory for ridge-penalized piecewise exponential proportional hazards models when 4 and covariates are Gaussian (Massa, 31 Jan 2025). The authors prove that the optimal ridge-penalized log-likelihood converges in probability to a deterministic saddle-point problem and characterize the estimator and prediction error under proportional asymptotics (Massa, 31 Jan 2025). This is directly relevant to the piecewise exponential component and to regularization in high dimensions, but not to smooth additive covariate modeling itself.
7. Applications, empirical behavior, and interpretive scope
Empirically, PAMs and PAM-derived models are used in settings where continuous-time semantics, flexible baseline hazards, and structured covariate effects are needed simultaneously. The pammtools paper demonstrates this with tumor data, primary biliary cholangitis data, and simulated weighted cumulative exposure and distributed lag nonlinear models (Bender et al., 2018). The tumor-data example shows that PAMM estimates for time-constant effects are very close to Cox PH estimates, while more elaborate specifications reveal non-proportional hazards and cumulative hazard differences not directly encoded in standard Cox models (Bender et al., 2018).
DeepPAMM extends this empirical scope to settings with high-dimensional, multimodal, or unstructured inputs. Across public datasets such as tumor, gbsg2, metabric, breast, mgus2, and icu, it is described as consistently among the top-performing methods in terms of integrated Brier score while remaining applicable to right-censored data, competing risks, high-dimensional data, and mixed effects (Kopper et al., 2022). In the London fire brigade response-time case study, the structured part of the hazard is written as
5
combining a cyclic spline for time of day, a bivariate tensor-product spline for spatial coordinates, and ward-specific random effects (Kopper et al., 2022). The paper reports that the structured effects are interpretable and aligned with prior work, while the deep component gives only slight predictive improvement in that application (Kopper et al., 2022).
The neural piecewise-survival literature further suggests that interval-wise hazard parameterization can yield favorable accuracy–computation trade-offs. On a simulated Weibull dataset, "Neural Network-Based Piecewise Survival Models" reports test losses of 6 for Constant Hazard and 7 for Linear Hazard, compared with 8 for an energy-based model, while training times for the piecewise models were roughly 9–0 seconds versus 1 seconds for the energy-based model (Holmer et al., 2024). This is not evidence about PAMs in the strict GAM sense, but it suggests that the piecewise continuous-time representation remains competitive when combined with modern function approximators.
The recent multi-state CKD application illustrates the scope of PAMs in longitudinal disease-history analysis. In UK Biobank data with 2 subjects and 3 non-censoring transitions, transition-specific hazards were estimated for Healthy, Mild CKD, Severe CKD, ESKD, and Death (Wiegrebe et al., 24 Sep 2025). The paper reports that CKD progression risk was highest for individuals with early CKD onset and further increased over age, and that the genetic variant rs77924615 in the UMOD locus was associated with CKD onset hazards but not convincingly with further CKD progression after adjustment (Wiegrebe et al., 24 Sep 2025). This illustrates a broader property of PAMs: because the hazard is decomposed additively, one can separate onset effects, progression effects, time-scale effects, and history-dependent effects within a single coherent survival framework.
A final interpretive point concerns the scope of “interpretability.” In classical PAMs, interpretability derives from the additive decomposition of the log-hazard into smooth and linear terms whose shapes can be visualized and whose cumulative implications can be computed (Bender et al., 2018, Kopper et al., 2022). In deep extensions such as DeepPAM and DeepPAMM, the structured part remains interpretable, but the learned latent features are not directly interpretable in the same way (Kopper et al., 2020, Kopper et al., 2022). This is less a contradiction than a layered architecture: the additive PAM predictor continues to serve as the interpretable statistical backbone, while the deep component absorbs complex residual structure.
Taken together, the literature presents PAMs as a versatile survival-modeling framework centered on a piecewise exponential hazard, a PED-to-Poisson reduction, and a richly structured additive predictor (Bender et al., 2018, Kopper et al., 2022). Their modern development proceeds in two directions at once: toward broader data modalities and more complex event structures, and toward sharper theoretical understanding of the piecewise exponential foundation under regularization and high dimensionality (Kopper et al., 2020, Kopper et al., 2022, Rappl et al., 2023, Massa, 31 Jan 2025, Wiegrebe et al., 24 Sep 2025).