Introduction
Modern machine learning models are typically optimized using large amounts of data that are assumed to be representative of the predictive tasks the model will face in the future. However, many practical datasets violate this assumption; observations are often selected non-randomly. If this selection is not accounted for during training, bias can propagate into a model’s predictions [42 ] . When predictions inform high-stakes decisions, such as treatment decisions, organ allocation, and financial decision making, these biases can have adverse consequences.
Truncation is a common form of selection bias in which the training data is filtered according to a known (or unknown) mechanism [40 , 4 ] . Truncation can take many forms, and we focus on outcome-dependent truncation , in which the data is filtered based on the value of the label. Many different reasons can cause truncation to occur, including constrained data collection, study design, or legal restrictions. For example, a medical study starting today can only enroll patients who are still alive; patients who died beforehand are never observed. More generally, datasets collected based on a selection criterion can overrepresent individuals whose outcomes make them more likely to be selected and observed in training data. Unlike censoring, where an observation remains in the dataset but its outcome is only partially observed (e.g. , due to loss of follow-up), truncation removes the observation entirely. Naively fitting a predictive model to the observed samples can yield a model that performs well on the selected samples, but is biased for the underlying population.
Survival analysis is an especially important setting in which truncation and censoring arise together. A survival model predicts a distribution over time until an event occurs for a patient, such as death, disease progression, or graft failure. Survival analysis is particularly relevant in transplantation, where post-transplant outcomes are observed only for patients who are selected to receive an organ, and selection depends in part on characteristics predictive of transplant benefit and survival [32 , 15 , 19 , 49 ] . Patients predicted to have poor post-transplant outcomes may be less likely to receive a transplant. Conversely, patients predicted to live the longest following a transplant may be healthy enough to remain on the waitlist while more urgent candidates are prioritized, making them less likely to be transplanted. Example 1 illustrates how a selection mechanism can bias a predictive model.
Example 1 (Bias from left truncation). Consider a hypothetical study of graft survival following heart transplantation. Suppose a large historical registry contains transplant outcomes that can be used to estimate the baseline graft survival distribution. A new follow-up study begins three years later to collect additional donor and recipient covariates from patients in this registry. The data for this new study is left truncated: only patients who survive until enrollment can enter the study, while patients who die within the first three years are entirely absent.
We fit a Cox regression model to predict graft survival based on two newly collected covariates. Because graft survival itself determines whether a patient appears in the sample, fitting a standard Cox model produces biased coefficients, as shown in Figure 1 . Accounting for the truncation in the likelihood instead recovers the true coefficients. This bias can have important downstream consequences: in our example, the naively trained model substantially overestimates graft survival for some patients. This occurs even without censoring and under simple one-sided left truncation.
Figure 1. Illustrative example of learning a Cox model with truncated samples. When the likelihood accounts for truncation, SGD converges to the true regression coefficients, whereas the standard Cox likelihood converges to biased parameters (left). The resulting parameter bias can translate into substantial errors in predicted graft survival for individual patients (right).
There is a long literature in statistical estimation of survival models from truncated data, including left, right, and double truncation, biased sampling, and censoring [35 , 36 , 39 ] . These methods provide consistent estimators, but largely focus on statistical identifiability and asymptotic properties rather than the global optimization problem. In practice, learning such a model can be computationally challenging, relying on methods such as expectation maximization (EM) [Rennert and Xie, 2018, 2022], which can become costly in high-dimensional settings. In parallel to this body of work, machine learning researchers have developed computationally efficient methods for learning regression models and exponential families from truncated samples [9 , 17 , 25 ] . As datasets increasingly grow in size and dimension, efficient methods for learning survival models under truncation is an important intersection of these two literatures. We provide a broader discussion of these two literatures in Section A.
Our contributions We study whether Cox regression can be learned efficiently from outcome-dependent truncated and right-censored data. We consider a general truncation mechanism in which an observation is retained probabilistically if it falls in one of multiple intervals. This captures standard left, right, and interval truncation as special cases, while also permitting disconnected multiple intervals, which may arise from merging multiple data collection processes.
Our main positive result shows that, despite nonconvexity, the population negative log-likelihood has a unique stationary point at the true parameter and its gradient always has a component pointing away from it when the baseline hazard is known (Theorem 7). This implies convergence of projected stochastic gradient descent (SGD) to the true parameter under standard conditions (Corollary 8). The analysis relies on a connection between Cox regression and weighted truncated exponential distributions that remains valid under right censoring.
We then show that these guarantees need not extend to an unknown baseline. In the worst case, the model can become non-identifiable (Example 3). We further show that even when the model is correctly specified, identifiable, and there is no censoring, jointly estimating the regression coefficient and baseline can create a suboptimal local minimum (Theorem 9). We also show that after optimizing over a class of baseline hazards for each regression coefficient, the resulting profiled population loss can be flat and suboptimal over an entire interval of incorrect parameters (Theorem 10).
This characterization highlights when, and when not, Cox regression is efficiently learnable under truncation. A known or accurately estimated baseline hazard can arise naturally from external data. For example, a large disease registry may provide reliable population-level survival information while a smaller study collects richer biomarkers or clinical covariates [47 , 16 , 37 ] . In such settings, the registry can supply the baseline survival distribution while the smaller, potentially truncated cohort is used to estimate covariate effects. Finally, we illustrate that our theoretical guarantees translate into practical gains on semi-synthetic experiments with four clinical datasets. Optimizing the truncated Cox likelihood consistently reduces prediction error compared to optimizing the standard likelihood as truncation levels increase. We also show that our results extend practically to neural network survival models, which can be trained efficiently with gradient-based methods under truncation. Compared with a commonly used EM approach, our first-order methods are substantially faster. On an enlarged dataset with hundreds of thousands of observations and thousands of covariates, they reduce training time by roughly 100× while maintaining or improving predictive accuracy.
Preliminaries
We begin by recalling the basic Cox proportional hazards model without truncation. Let n n n be the number of independent samples. For each sample i = 1 , … , n i = 1, \ldots, n i = 1 , … , n , let T i ∗ T_i^* T i ∗ denote the true event time, C i ∈ [ 0 , ∞ ] C_i \in[0,\infty] C i ∈ [ 0 , ∞ ] the censoring time, and x i ∈ R d \mathbf{x}_i \in\mathbb{R}^d x i ∈ R d the covariate vector. We observe ( x i , T i , δ i ) (\mathbf{x}_i, T_i, \delta_i) ( x i , T i , δ i ) , where T i = min ( T i ∗ , C i ) T_i = \min(T_i^*, C_i) T i = min ( T i ∗ , C i ) and δ i = 1 { T i ∗ ≤ C i } \delta_i = \mathbb{1}\{T_i^* \le C_i\} δ i = 1 { T i ∗ ≤ C i } . Let θ ∈ R d \boldsymbol{\theta} \in\mathbb{R}^d θ ∈ R d be the underlying regression parameter. All likelihoods are conditional on the observed covariates.
We assume a known baseline hazard, h 0 ( t ) > 0 h_0(t) > 0 h 0 ( t ) > 0 . The hazard for sample i i i is given by h i ( t ) = h 0 ( t ) e x i T θ h_i(t) = h_0(t)e^{\mathbf{x}_i^\mathsf{T}\boldsymbol{\theta}} h i ( t ) = h 0 ( t ) e x i T θ . We denote the cumulative baseline hazard by H 0 ( t ) = ∫ 0 t h 0 ( u ) d u H_0(t) = \int_0^t h_0(u)\,du H 0 ( t ) = ∫ 0 t h 0 ( u ) d u . We assume h 0 h_0 h 0 is locally integrable, H 0 ( t ) < ∞ H_0(t) < \infty H 0 ( t ) < ∞ for every finite t t t , and H 0 ( t ) → ∞ H_0(t) \to\infty H 0 ( t ) → ∞ as t → ∞ t \to\infty t → ∞ . The survival function for sample i i i is given by S i ( t ) = exp ( − ∫ 0 t h i ( u ) d u ) = exp ( − e x i T θ H 0 ( t ) ) S_i(t) = \exp\left(-\int_0^t h_i(u)\,du\right) = \exp\left(-e^{\mathbf{x}_i^\mathsf{T}\boldsymbol{\theta}}H_0(t)\right) S i ( t ) = exp ( − ∫ 0 t h i ( u ) d u ) = exp ( − e x i T θ H 0 ( t ) ) . A standard assumption in survival analysis is that the censoring time is conditionally independent of the event time.
Assumption 1 (Conditionally independent censoring). Conditional on x i \mathbf{x}_i x i , the censoring time C i C_i C i is independent of T i ∗ T_i^* T i ∗ , and its conditional distribution does not depend on θ \boldsymbol{\theta} θ .
We now consider a more complex setting involving both right censoring and interval truncation .
Definition 1 (Interval truncation with right censoring). Let T i ∗ T_i^* T i ∗ denote the true event time for sample i i i . Consider K K K pairwise disjoint intervals ( t 0 , k , t 1 , k ) (t_{0,k}, t_{1,k}) ( t 0 , k , t 1 , k ) , where 0 ≤ t 0 , k < t 1 , k ≤ ∞ 0 \le t_{0,k} < t_{1,k} \le\infty 0 ≤ t 0 , k < t 1 , k ≤ ∞ , and known probabilities q k ∈ [ 0 , 1 ] q_k \in[0,1] q k ∈ [ 0 , 1 ] , not all zero. Conditional on T i ∗ = t T_i^* = t T i ∗ = t , sample i i i is included with probability
ρ ( t ) = ∑ k = 1 K q k 1 { t ∈ ( t 0 , k , t 1 , k ) } . \rho(t) = \sum_{k=1}^{K} q_k \mathbb{1}\{t \in(t_{0,k},t_{1,k})\}. ρ ( t ) = k = 1 ∑ K q k 1 { t ∈ ( t 0 , k , t 1 , k )} . The inclusion indicator is conditionally independent of C i C_i C i given ( T i ∗ , x i ) (T_i^*, \mathbf{x}_i) ( T i ∗ , x i ) .
For a fixed individual i i i , we condition on x i \mathbf{x}_i x i throughout. Distributions and expectations for sampled individuals are additionally conditional on sample inclusion, and we suppress this conditioning in the notation. The hazard and survival functions, and the probabilities defining π i ( t ∣ θ ) \pi_i(t \mid\boldsymbol{\theta}) π i ( t ∣ θ ) , refer to the population before conditioning on inclusion.
Define π i ( t ∣ θ ) = ∑ k = 1 K q k P ( T i ∗ > t , t 0 , k < T i ∗ < t 1 , k ) \pi_i(t \mid\boldsymbol{\theta}) = \sum_{k=1}^{K} q_k \mathbb{P}(T_i^* > t, t_{0,k} < T_i^* < t_{1,k}) π i ( t ∣ θ ) = ∑ k = 1 K q k P ( T i ∗ > t , t 0 , k < T i ∗ < t 1 , k ) as the probability that sample i i i is included and its event time exceeds t t t . We can equivalently write π i ( t ∣ θ ) = ∑ k : t ≤ t 0 , k q k [ S i ( t 0 , k ) − S i ( t 1 , k ) ] + ∑ k ∣ t 0 , k < t < t 1 , k q k [ S i ( t ) − S i ( t 1 , k ) ] \pi_i(t \mid\boldsymbol{\theta}) = \sum_{k:t\le t_{0,k}} q_k [S_i(t_{0,k}) - S_i(t_{1,k})] + \sum_{k|t_{0,k}<t<t_{1,k}} q_k [S_i(t) - S_i(t_{1,k})] π i ( t ∣ θ ) = ∑ k : t ≤ t 0 , k q k [ S i ( t 0 , k ) − S i ( t 1 , k )] + ∑ k ∣ t 0 , k < t < t 1 , k q k [ S i ( t ) − S i ( t 1 , k )] . The first summation includes intervals after t t t , and the second includes the interval containing t t t . The probability of inclusion is
π i ( θ ) = π i ( 0 ∣ θ ) = ∑ k = 1 K q k [ S i ( t 0 , k ) − S i ( t 1 , k ) ] . \pi_i(\boldsymbol{\theta}) = \pi_i(0 \mid\boldsymbol{\theta}) = \sum_{k=1}^{K} q_k [S_i(t_{0,k}) - S_i(t_{1,k})]. π i ( θ ) = π i ( 0 ∣ θ ) = k = 1 ∑ K q k [ S i ( t 0 , k ) − S i ( t 1 , k )] .
The likelihood under interval truncation, up to factors independent of θ \theta θ , is
L ( θ ) ∝ ∏ i = 1 n [ h i ( T i ) S i ( T i ) ] δ i [ π i ( T i ∣ θ ) ] 1 − δ i π i ( θ ) . \mathcal{L}(\theta) \propto\prod_{i=1}^{n} \frac{\left[h_i(T_i)S_i(T_i)\right]^{\delta_i}\left[\pi_i(T_i \mid\theta)\right]^{1-\delta_i}}{\pi_i(\theta)}. L ( θ ) ∝ i = 1 ∏ n π i ( θ ) [ h i ( T i ) S i ( T i ) ] δ i [ π i ( T i ∣ θ ) ] 1 − δ i .
Let ℓ i ( θ ) \ell_i(\theta) ℓ i ( θ ) denote the log-likelihood contribution of observation i i i , and define its negative log-likelihood by f i ( θ ) : = − ℓ i ( θ ) f_i(\theta) := -\ell_i(\theta) f i ( θ ) := − ℓ i ( θ ) . The population log-likelihood and population negative log-likelihood are respectively
ℓ ˉ ( θ ) : = E [ ℓ i ( θ ) ] , and F ( θ ) : = E [ f i ( θ ) ] = − ℓ ˉ ( θ ) . \bar{\ell}(\theta) := \mathbb{E}\left[\ell_i(\theta)\right], \quad\text{and} \quad F(\theta) := \mathbb{E}\left[f_i(\theta)\right] = -\bar{\ell}(\theta). ℓ ˉ ( θ ) := E [ ℓ i ( θ ) ] , and F ( θ ) := E [ f i ( θ ) ] = − ℓ ˉ ( θ ) .
We provide the derivation of both the standard Cox likelihood and the likelihood under interval truncation in Section B.
For the population results below, we assume that P θ ∗ ( δ = 1 ∣ x ) > 0 \mathbb{P}_{\theta^*}(\delta= 1 \mid\mathbf{x}) > 0 P θ ∗ ( δ = 1 ∣ x ) > 0 for almost every covariate value x \mathbf{x} x in the sampled population. This condition will be needed to identify the true population parameter and rules out the case where every sample is censored for a particular covariate.
We also make the following two standard assumptions for our population results.
Assumption 2 (Non-degeneracy). Under the sampled population, E [ ∥ x ∥ 2 2 ] < ∞ \mathbb{E}[\|\mathbf{x}\|_2^2] < \infty E [ ∥ x ∥ 2 2 ] < ∞ and $\mathbb{E}[\mathbf{x}\mathbf{x}^{\mathsf{T}}] \succ 0.
Assumption 3 (Regularity). The population loss is continuously differentiable, its gradient may be computed by differentiating under expectation, ∇ F ( θ ) = E [ ∇ f i ( θ ) ] \nabla F(\theta) = \mathbb{E}[\nabla f_i(\theta)] ∇ F ( θ ) = E [ ∇ f i ( θ )] , and all expectations appearing in the analysis are finite.
Main results
In this section, we give the main result and proof overview. Unless stated otherwise, all probabilities and expectations are taken with respect to the distribution with the true parameters and conditioned on x i x_i x i when covariates are fixed. The hazard, survival, and inclusion probabilities are defined with respect to the population before conditioning on sample inclusion.
A natural route to efficient optimization would be to show that the truncated population log-likelihood remains concave. However, under interval truncation, this is false even in the simplest one-dimensional setting without censoring.
Example 2 (Loss of concavity under interval truncation). Consider a one-dimensional Cox model with covariate x = 1 x = 1 x = 1 , baseline hazard h 0 ( t ) = 1 h_0(t) = 1 h 0 ( t ) = 1 , no censoring, and truncation to ( 0 , 1 ) (0,1) ( 0 , 1 ) . The sampled log-likelihood of an event at time T T T is
ℓ ( θ ; T ) = θ − T e θ − log ( 1 − e − e θ ) . \ell(\theta; T) = \theta- T e^\theta- \log\left(1 - e^{-e^\theta}\right). ℓ ( θ ; T ) = θ − T e θ − log ( 1 − e − e θ ) . Let the true parameter be θ ∗ = log 3 \theta^* = \log3 θ ∗ = log 3 . Conditional on inclusion, T T T is exponentially distributed with rate 3, truncated to ( 0 , 1 ) (0,1) ( 0 , 1 ) , and therefore E [ T ] = 1 3 − 1 e 3 − 1 \mathbb{E}[T] = \frac{1}{3} - \frac{1}{e^3-1} E [ T ] = 3 1 − e 3 − 1 1 . The population log-likelihood is
ℓ ˉ ( θ ) = E [ ℓ ( θ ; T ) ] = θ − E [ T ] e θ − log ( 1 − e − e θ ) . \bar{\ell}(\theta) = \mathbb{E}[\ell(\theta; T)] = \theta- \mathbb{E}[T]e^\theta- \log\left(1 - e^{-e^\theta}\right). ℓ ˉ ( θ ) = E [ ℓ ( θ ; T )] = θ − E [ T ] e θ − log ( 1 − e − e θ ) . Its second derivative at θ = 0 \theta= 0 θ = 0 is
ℓ ˉ ′ ′ ( 0 ) = − E [ T ] + 1 ( e − 1 ) 2 ≈ − 0.281 + 0.339 > 0. \bar{\ell}''(0) = -\mathbb{E}[T] + \frac{1}{(e-1)^2} \approx-0.281 + 0.339 > 0. ℓ ˉ ′′ ( 0 ) = − E [ T ] + ( e − 1 ) 2 1 ≈ − 0.281 + 0.339 > 0. Therefore, the population log-likelihood is locally convex at θ = 0 \theta= 0 θ = 0 and therefore is not globally concave.
From this example, it is clear to see that our result cannot follow from concavity alone, and we visually show the population likelihood from Example 2 in Figure 2 . Instead, we show that the likelihood has a nice property: at every incorrect parameter value, the gradient points in the direction of the true parameter value. This property is sufficient to rule out spurious stationary points and to guarantee convergence of projected SGD.
Figure 2. Population log-likelihood from Example 2.
Proof overview Our analysis proceeds in three main steps. First, we establish several properties of weighted truncated exponential distributions that will ultimately be applied to our truncated Cox model. Lemma 1 characterizes their mean, Lemma 2 shows that increasing the exponential rate decreases the expectation of any nondecreasing function, and Lemma 3 shows how right censoring can be represented by a nondecreasing transformation that preserves the mean. Second, we connect these results to the Cox model by showing that after transforming the event time by the cumulative baseline hazard H 0 H_0 H 0 , the resulting distribution is a weighted truncated exponential distribution (Lemma 4). Lemma 5 then expresses the gradient of the negative log-likelihood for a single observation in terms of the corresponding means. Combining these ingredients, Theorem 6 proves that, for fixed covariates, the population gradient always has the sign that causes gradient descent to move toward the true linear predictor. Finally, Theorem 7 leverages this property to show that the true regression parameter is the unique stationary point of the multivariate population loss and Corollary 8 uses this property to prove that projected SGD converges to the true optimum.
Weighted truncated exponentials
We first establish useful properties of weighted truncated exponential distributions , which we will ultimately apply to the Cox model. These properties describe the mean of the sampled distribution, how expectations change with the exponential rate, and how to account for right censoring.
Fix K K K pairwise disjoint intervals [ A k , B k ] [A_k, B_k] [ A k , B k ] , where 0 ≤ A k < B k ≤ ∞ 0 \le A_k < B_k \le\infty 0 ≤ A k < B k ≤ ∞ , and fixed probabilities q k ∈ [ 0 , 1 ] q_k \in[0, 1] q k ∈ [ 0 , 1 ] , not all zero. The weighted truncated exponential distribution with rate λ > 0 \lambda> 0 λ > 0 conditional on retention, denoted TruncExp ( λ , { ( [ A k , B k ] , q k ) } k = 1 K ) \operatorname{TruncExp}\left(\lambda,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) TruncExp ( λ , {([ A k , B k ] , q k ) } k = 1 K ) , is obtained by retaining an exponential random variable with probability q k q_k q k when it lies in the interval ( A k , B k ) (A_k, B_k) ( A k , B k ) , and with probability zero otherwise. When every q k = 1 q_k = 1 q k = 1 , this is simply an exponential distribution conditioned to lie in the union of the intervals. When B k = ∞ B_k = \infty B k = ∞ , the expressions e − λ B k e^{-\lambda B_k} e − λ B k and B k e − λ B k B_k e^{-\lambda B_k} B k e − λ B k are equal to zero.
The mean of an ordinary exponential distribution is 1 / λ 1/\lambda 1/ λ . Our first lemma expresses the mean of the weighted truncated exponential distribution (after selection) as this quantity plus a correction determined by the intervals [ A k , B k ] [A_k, B_k] [ A k , B k ] and probabilities q k q_k q k .
Lemma 1. Let U ∼ TruncExp ( λ , { ( [ A k , B k ] , q k ) } k = 1 K ) U \sim\operatorname{TruncExp}\left(\lambda,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) U ∼ TruncExp ( λ , {([ A k , B k ] , q k ) } k = 1 K ) be a random variable following a weighted truncated exponential distribution with rate λ > 0 \lambda> 0 λ > 0 . Its expected value, denoted by μ ( λ ) \mu(\lambda) μ ( λ ) , satisfies
μ ( λ ) = ∑ k = 1 K q k ( A k e − λ A k − B k e − λ B k ) ∑ k = 1 K q k ( e − λ A k − e − λ B k ) + 1 λ . \mu(\lambda)=\frac{\sum_{k=1}^{K}q_k\left(A_ke^{-\lambda A_k}-B_ke^{-\lambda B_k}\right)}{\sum_{k=1}^{K}q_k\left(e^{-\lambda A_k}-e^{-\lambda B_k}\right)}+\frac{1}{\lambda}. μ ( λ ) = ∑ k = 1 K q k ( e − λ A k − e − λ B k ) ∑ k = 1 K q k ( A k e − λ A k − B k e − λ B k ) + λ 1 .
The formula for the mean allows us to evaluate expectations, but understanding the direction of the likelihood gradient requires comparing the expectation across different rates. One observation is that if we fix the intervals and weights, increasing λ \lambda λ puts more weight on smaller values. The next lemma shows that this ordering persists despite the gaps between intervals and their different sampling probabilities: the expectation of any fixed nondecreasing function cannot increase with the rate. The comparison is strict whenever the function is not constant. This strictness will be important for ruling out stationary points.
Lemma 2. Let 0 < λ 1 < λ 2 0 < \lambda_1 < \lambda_2 0 < λ 1 < λ 2 and U j ∼ TruncExp ( λ j , { ( [ A k , B k ] , q k ) } k = 1 K ) U_j \sim\operatorname{TruncExp}\left(\lambda_j,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) U j ∼ TruncExp ( λ j , {([ A k , B k ] , q k ) } k = 1 K ) for j = 1 , 2 j=1,2 j = 1 , 2 . Let φ : [ 0 , ∞ ) → R \varphi:[0,\infty)\to\mathbb{R} φ : [ 0 , ∞ ) → R be a nondecreasing function such that E [ ∣ φ ( U j ) ∣ ] < ∞ \mathbb{E}[|\varphi(U_j)|] < \infty E [ ∣ φ ( U j ) ∣ ] < ∞ for j = 1 , 2 j=1,2 j = 1 , 2 . Then
E [ φ ( U 1 ) ] ≥ E [ φ ( U 2 ) ] . \mathbb{E}[\varphi(U_1)] \ge\mathbb{E}[\varphi(U_2)]. E [ φ ( U 1 )] ≥ E [ φ ( U 2 )] . The inequality is strict whenever φ ( U 1 ) \varphi(U_1) φ ( U 1 ) is not almost surely constant.
We next account for right censoring. For a fixed censoring threshold c c c , a value u ≤ c u \le c u ≤ c is observed exactly, whereas a value u > c u > c u > c is known only to exceed c c c . From this information, we cannot directly use the value of U U U in every observation.
For a given rate λ \lambda λ , we represent this partial information by retaining each exact value and replacing a censored value with the conditional tail mean μ c ( λ ) = E [ U ∣ U > c ] \mu_c(\lambda)=\mathbb{E}[U\mid U>c] μ c ( λ ) = E [ U ∣ U > c ] . Above the censoring threshold, the resulting function m λ , c m_{\lambda,c} m λ , c depends only on c c c and the rate, not on the unobserved value of U U U . The next lemma establishes two properties of this representation. First, it is nondecreasing in the underlying value, so we can eventually apply Lemma 2. Second, its expectation equals μ ( λ ) \mu(\lambda) μ ( λ ) . If exact observations have positive probability, the function is also nonconstant, providing the strictness needed later.
Lemma 3. Let U ∼ TruncExp ( λ , { ( [ A k , B k ] , q k ) } k = 1 K ) U \sim\operatorname{TruncExp}\left(\lambda,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) U ∼ TruncExp ( λ , {([ A k , B k ] , q k ) } k = 1 K ) with expected value μ ( λ ) \mu(\lambda) μ ( λ ) . For a fixed censoring threshold c ≥ 0 c \ge0 c ≥ 0 with P ( U > c ) > 0 \mathbb{P}(U>c)>0 P ( U > c ) > 0 , define
μ c ( λ ) : = E [ U ∣ U > c ] and m λ , c ( u ) = { u , u ≤ c , μ c ( λ ) , u > c . \mu_c(\lambda):=\mathbb{E}[U\mid U>c]\quad\text{and}\quad m_{\lambda,c}(u)=
\begin{cases}
u, & u\le c,\\
\mu_c(\lambda), & u>c.
\end{cases} μ c ( λ ) := E [ U ∣ U > c ] and m λ , c ( u ) = { u , μ c ( λ ) , u ≤ c , u > c . Then m λ , c m_{\lambda,c} m λ , c is nondecreasing and satisfies
E [ m λ , c ( U ) ] = μ ( λ ) . \mathbb{E}[m_{\lambda,c}(U)]=\mu(\lambda). E [ m λ , c ( U )] = μ ( λ ) . If P ( U ≤ c ) > 0 \mathbb{P}(U\le c)>0 P ( U ≤ c ) > 0 , then m λ , c m_{\lambda,c} m λ , c is nonconstant on the set S = ⋃ k ∣ q k > 0 ( A k , B k ) S=\bigcup_{k\mid q_k>0}(A_k,B_k) S = ⋃ k ∣ q k > 0 ( A k , B k ) .
If P ( U > c ) = 0 \mathbb{P}(U>c)=0 P ( U > c ) = 0 , every sampled value is uncensored. In this case, the same conclusions hold by defining m λ , c ( u ) = u m_{\lambda,c}(u)=u m λ , c ( u ) = u . This convention also covers the case where c = ∞ c=\infty c = ∞ .
The expectation identity extends directly to a random censoring threshold C C C independent of U U U . Conditional on any fixed threshold, the distribution of U U U is unchanged, so Lemma 3 gives
E [ m λ , C ( U ) ] = E [ E [ m λ , C ( U ) ∣ C ] ] = μ ( λ ) . \mathbb{E}[m_{\lambda,C}(U)]=\mathbb{E}\left[\mathbb{E}[m_{\lambda,C}(U)\mid C]\right]=\mu(\lambda). E [ m λ , C ( U )] = E [ E [ m λ , C ( U ) ∣ C ] ] = μ ( λ ) .
Averaging over independent censoring preserves the mean identity.
The lemmas in this section provide the comparison needed in the population likelihood analysis. We will construct m λ , c m_{\lambda,c} m λ , c using a rate λ \lambda λ and compare its expectation under the candidate and true distributions. Under the candidate distribution, its expectation is exactly μ ( λ ) \mu(\lambda) μ ( λ ) and under the true distribution, Lemma 2 determines whether the expectation is larger or smaller. The function m λ , c m_{\lambda,c} m λ , c is held fixed. Only the distribution used to take its expectation changes. We next connect this argument to the Cox model by transforming it into a weighted truncated exponential.
Connecting to Cox regression
We now connect the weighted truncated exponential distributions from the previous subsection to the Cox model. The key observation is that transforming an event time by the cumulative baseline hazard removes the baseline hazard from the density. Without truncation, this is the familiar fact that H 0 ( T i ∗ ) H_0(T_i^*) H 0 ( T i ∗ ) is exponentially distributed with rate e x i T θ e^{\mathbf{x}_i^{\mathsf{T}}\theta} e x i T θ . Under interval-weighted truncation, the same transformation maps each sampling interval ( t 0 , k , t 1 , k ) (t_{0,k},t_{1,k}) ( t 0 , k , t 1 , k ) to ( H 0 ( t 0 , k ) , H 0 ( t 1 , k ) ) (H_0(t_{0,k}),H_0(t_{1,k})) ( H 0 ( t 0 , k ) , H 0 ( t 1 , k )) while preserving its inclusion probability q k q_k q k . The resulting distribution is a weighted truncated exponential.
Lemma 4. Fix the covariates x i \mathbf{x}_i x i and suppose T i ∗ T_i^* T i ∗ follows the Cox model with parameter θ \theta θ and known baseline hazard h 0 ( t ) h_0(t) h 0 ( t ) . Then, conditional on sample inclusion, H 0 ( T i ∗ ) H_0(T_i^*) H 0 ( T i ∗ ) is distributed as
TruncExp ( e x i T θ , { ( [ H 0 ( t 0 , k ) , H 0 ( t 1 , k ) ] , q k ) } k = 1 K ) . \operatorname{TruncExp}\left(e^{\mathbf{x}_i^{\mathsf{T}}\theta},\left\{\left([H_0(t_{0,k}),H_0(t_{1,k})],q_k\right)\right\}_{k=1}^{K}\right). TruncExp ( e x i T θ , { ( [ H 0 ( t 0 , k ) , H 0 ( t 1 , k )] , q k ) } k = 1 K ) .
An important consequence of Lemma 4 is that the transformed intervals and retention probabilities do not depend on θ \theta θ . This means that if we fix x i \mathbf{x}_i x i , changing θ \theta θ only changes the exponential rate e x i T θ e^{\mathbf{x}_i^{\mathsf{T}}\theta} e x i T θ . This allows us to compare the true and candidate event-time distributions using Lemma 2. This is the main link between the results in § 3.1 and the population likelihood analysis to follow.
Population likelihood landscape
We next derive the gradient of the truncated Cox likelihood. The gradient takes a simple form after transforming event times by the cumulative baseline hazard. For an uncensored observation, the contribution depends on the transformed event time H 0 ( T i ) H_0(T_i) H 0 ( T i ) . For a censored observation, the exact event time is unknown, so the contribution instead depends on the conditional mean given that the event occurs after the censoring time. We define the mean transformed event time among included individuals by μ i ( θ ) : = E [ H 0 ( T i ∗ ) ∣ x i ] \mu_i(\theta) := \mathbb{E}[H_0(T_i^*) \mid\mathbf{x}_i] μ i ( θ ) := E [ H 0 ( T i ∗ ) ∣ x i ] , and the corresponding conditional tail mean by μ i ( t ∣ θ ) : = E [ H 0 ( T i ∗ ) ∣ x i , T i ∗ > t ] \mu_i(t \mid\theta) := \mathbb{E}[H_0(T_i^*) \mid\mathbf{x}_i,T_i^*>t] μ i ( t ∣ θ ) := E [ H 0 ( T i ∗ ) ∣ x i , T i ∗ > t ] .
Lemma 5 (Single-observation likelihood gradient). Let ℓ i ( θ ) \ell_i(\theta) ℓ i ( θ ) denote the log-likelihood contribution of observation ( T i , δ i ) (T_i,\delta_i) ( T i , δ i ) , and let f i ( θ ) = − ℓ i ( θ ) f_i(\theta)=-\ell_i(\theta) f i ( θ ) = − ℓ i ( θ ) . Then the gradient ∇ θ f i ( θ ) \nabla_\theta f_i(\theta) ∇ θ f i ( θ ) can be expressed as
e x i T θ [ δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) − μ i ( θ ) ] x i . e^{\mathbf{x}_i^{\mathsf{T}}\theta}\left[\delta_i H_0(T_i)+(1-\delta_i)\mu_i(T_i\mid\theta)-\mu_i(\theta)\right]\mathbf{x}_i. e x i T θ [ δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) − μ i ( θ ) ] x i .
In both the observed and censored case, the mean μ i ( θ ) \mu_i(\theta) μ i ( θ ) appears. This will allow us to use the monotonicity properties from Lemma 2 to determine the direction of the population gradient.
Finally, we leverage Lemma 5 to prove that, for a fixed covariate vector, the population negative log-likelihood has a single unique stationary point that is its minimizer.
Theorem 6 (Unique stationary point of the population landscape in one dimension). Fix a covariate vector x \boldsymbol{x} x and let ( T , δ ) (T,\delta) ( T , δ ) be the observed time and event indicator. Let z ∗ = x T θ ∗ z^*=\boldsymbol{x}^{\mathsf{T}}\boldsymbol{\theta}^* z ∗ = x T θ ∗ be the true data-generating parameter. The one-dimensional population negative log-likelihood
F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] , F_{\boldsymbol{x}}(z)=\mathbb{E}_{\boldsymbol{\theta}^*}[-\ell(z;T,\delta)\mid\boldsymbol{x}], F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] , has z ∗ z^* z ∗ as its unique global minimizer and unique stationary point. Moreover,
( z − z ∗ ) F x ′ ( z ) > 0 for every z ≠ z ∗ . (z-z^*)F_{\boldsymbol{x}}'(z)>0\text{ for every }z\ne z^*. ( z − z ∗ ) F x ′ ( z ) > 0 for every z = z ∗ .
The next result simply lifts this one-dimensional result to the full distribution of training samples.
Theorem 7 (Unique stationary point of the population loss). Let θ ∗ \boldsymbol{\theta}^* θ ∗ be the true data-generating parameter. The population negative log-likelihood F ( θ ) F(\boldsymbol{\theta}) F ( θ ) satisfies
⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ > 0 for every θ ≠ θ ∗ . \langle\nabla_{\boldsymbol{\theta}}F(\boldsymbol{\theta}),\boldsymbol{\theta}-\boldsymbol{\theta}^*\rangle>0\text{ for every }\boldsymbol{\theta}\ne\boldsymbol{\theta}^*. ⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ > 0 for every θ = θ ∗ . Moreover, ∇ θ F ( θ ∗ ) = 0 \nabla_{\boldsymbol{\theta}}F(\boldsymbol{\theta}^*)=0 ∇ θ F ( θ ∗ ) = 0 . Consequently, θ ∗ \boldsymbol{\theta}^* θ ∗ is the unique stationary point of F F F .
Convergence of SGD
Theorem 7 is sufficient to prove convergence of minibatch projected SGD (Algorithm 1).
Algorithm 1 Minibatch projected SGD for truncated Cox regression
Require: Projection set $\Theta$, $\boldsymbol{\theta}^{(0)}\in\Theta$, batch size $b$, and step sizes $\eta_i$
1: for $i=0,\ldots,N-1$ do
2: Draw independent $\{(\boldsymbol{x}_{i,j},T_{i,j},\delta_{i,j})\}_{j=1}^{b}$
3: for $j=1,\ldots,b$ do
4: Compute $\lambda_{i,j}\gets e^{\boldsymbol{x}_{i,j}^{\mathsf{T}}\boldsymbol{\theta}^{(i)}}$ and $\mu_{i,j}(\boldsymbol{\theta}^{(i)})$
5: if $\delta_{i,j}=1$ then
6: $u_{i,j}\gets H_0(T_{i,j})$
7: else
8: $u_{i,j}\gets\mu_{i,j}(T_{i,j}\mid\boldsymbol{\theta}^{(i)})$
9: $\Delta\boldsymbol{\theta}^{(i)}=\frac{1}{b}\sum_{j=1}^{b}\lambda_{i,j}[u_{i,j}-\mu_{i,j}(\boldsymbol{\theta}^{(i)})]\boldsymbol{x}_{i,j}$
10: $\boldsymbol{\theta}^{(i+1)}\gets\Pi_{\Theta}(\boldsymbol{\theta}^{(i)}-\eta_i\Delta\boldsymbol{\theta}^{(i)})$
11: return $\boldsymbol{\theta}^{(N)}$
Corollary 8 (Finite-time convergence of minibatch projected SGD). Let Θ ⊂ R d \Theta\subset\mathbb{R}^d Θ ⊂ R d be compact and convex with θ ∗ ∈ Θ \boldsymbol{\theta}^*\in\Theta θ ∗ ∈ Θ , and let Π Θ \Pi_{\Theta} Π Θ denote Euclidean projection onto Θ \Theta Θ . Suppose that ∇ F \nabla F ∇ F is differentiable at θ ∗ \boldsymbol{\theta}^* θ ∗ , with ∇ 2 F ( θ ∗ ) = E θ ∗ [ ∇ 2 f i ( θ ∗ ) ] \nabla^2F(\boldsymbol{\theta}^*)=\mathbb{E}_{\boldsymbol{\theta}^*}[\nabla^2f_i(\boldsymbol{\theta}^*)] ∇ 2 F ( θ ∗ ) = E θ ∗ [ ∇ 2 f i ( θ ∗ )] finite. Assume also that, for some finite constant B B B , E [ ∥ ∇ θ f i ( θ ) ∥ 2 2 ] ≤ B 2 \mathbb{E}[\|\nabla_{\boldsymbol{\theta}}f_i(\boldsymbol{\theta})\|_2^2]\le B^2 E [ ∥ ∇ θ f i ( θ ) ∥ 2 2 ] ≤ B 2 for all θ ∈ Θ \boldsymbol{\theta}\in\Theta θ ∈ Θ . There exist constants 0 < κ ≤ L < ∞ 0<\kappa\le L<\infty 0 < κ ≤ L < ∞ , depending only on the population model and Θ \Theta Θ , for which the following guarantee holds. Let θ ( t ) \boldsymbol{\theta}^{(t)} θ ( t ) denote the iterates of Algorithm 1 with minibatch size b b b , a fixed initialization θ ( 0 ) ∈ Θ \boldsymbol{\theta}^{(0)}\in\Theta θ ( 0 ) ∈ Θ , and step sizes η i = 2 / [ κ ( i + t 0 ) ] \eta_i=2/[\kappa(i+t_0)] η i = 2/ [ κ ( i + t 0 )] , where t 0 ≥ max { 3 , 2 L 2 / κ 2 } t_0\ge\max\{3,2L^2/\kappa^2\} t 0 ≥ max { 3 , 2 L 2 / κ 2 } . Then, for every t = 1 , … , N t=1,\ldots,N t = 1 , … , N ,
E [ ∥ θ ( t ) − θ ∗ ∥ 2 2 ] ≤ t 0 2 ∥ θ ( 0 ) − θ ∗ ∥ 2 2 t 2 + 4 B 2 κ 2 b t . \mathbb{E}\left[\left\|\boldsymbol{\theta}^{(t)}-\boldsymbol{\theta}^*\right\|_2^2\right]\le\frac{t_0^2\left\|\boldsymbol{\theta}^{(0)}-\boldsymbol{\theta}^*\right\|_2^2}{t^2}+\frac{4B^2}{\kappa^2bt}. E [ θ ( t ) − θ ∗ 2 2 ] ≤ t 2 t 0 2 θ ( 0 ) − θ ∗ 2 2 + κ 2 b t 4 B 2 .
Impossibility results for unknown baselines
In this section, we show that the population optimization guarantees established previously do not always hold when the baseline is unknown. Beyond optimization guarantees, an unknown baseline can introduce an even more drastic difficulty: non-identifiability [12 ] .
Example 3 (Non-identifiability of the baseline under truncation). Consider a truncated Cox model with θ = 0 \theta= 0 θ = 0 , no censoring, and truncation to the interval ( 0 , 1 ) (0,1) ( 0 , 1 ) . For any a ∈ ( 0 , 1 ) a \in(0,1) a ∈ ( 0 , 1 ) , define the baseline hazard on [ 0 , 1 ] [0,1] [ 0 , 1 ] by h 0 , a ( t ) : = a 1 − a t h_{0,a}(t) := \frac{a}{1-at} h 0 , a ( t ) := 1 − a t a . The survival function and event-time density on [ 0 , 1 ] [0,1] [ 0 , 1 ] are S a ( t ) = 1 − a t S_a(t) = 1-at S a ( t ) = 1 − a t and p a ( t ) = h 0 , a ( t ) S a ( t ) = a p_a(t) = h_{0,a}(t)S_a(t) = a p a ( t ) = h 0 , a ( t ) S a ( t ) = a . We obtain Pr ( 0 < T ∗ < 1 ) = a \Pr(0 < T^* < 1) = a Pr ( 0 < T ∗ < 1 ) = a , and the sampled density is p ( t ∣ 0 < T ∗ < 1 ) = p a ( t ) Pr ( 0 < T ∗ < 1 ) = 1 p(t \mid0 < T^* < 1) = \frac{p_a(t)}{\Pr(0<T^*<1)} = 1 p ( t ∣ 0 < T ∗ < 1 ) = P r ( 0 < T ∗ < 1 ) p a ( t ) = 1 for every 0 < t < 1 0 < t < 1 0 < t < 1 . Therefore, every a ∈ ( 0 , 1 ) a \in(0,1) a ∈ ( 0 , 1 ) produces exactly the same sampled distribution, namely the uniform distribution on ( 0 , 1 ) (0,1) ( 0 , 1 ) , even though the baseline hazards h 0 , a h_{0,a} h 0 , a are different. Each h 0 , a h_{0,a} h 0 , a can be extended smoothly and strictly positively beyond t = 1 t = 1 t = 1 so that its cumulative hazard diverges at infinity, without changing the sampled distribution. We conclude that the baseline hazard, and the full model, are not identifiable from the truncated data.
However, even when the model is identifiable, we show that other issues arise from an unknown baseline. When the baseline hazard is known, changing the regression coefficients has a monotone effect on the event-time distribution. However, when the baseline is also estimated, an incorrect regression coefficient can be offset by a change in the baseline, and this monotone structure can disappear. We give two counterexamples illustrating different consequences of this interaction. Both have no censoring and an identifiable regression coefficient. First, we show that even when the baseline is restricted to a smooth one-parameter family, the joint population loss can have a suboptimal local minimum.
Theorem 9 (A suboptimal local minimum). There exists a correctly specified truncated Cox model with a smooth, strictly positive baseline family and an identifiable joint parameter β = ( θ , γ ) \beta= (\theta,\gamma) β = ( θ , γ ) where γ \gamma γ is the parameter of the baseline family such that, under truncation to a single interval and without censoring, F F F has the true parameter β ∗ \beta^* β ∗ as its unique global minimizer, but also has a point β ′ \beta' β ′ in the interior of the parameter space with θ ′ ≠ θ ∗ \theta' \ne\theta^* θ ′ = θ ∗ satisfying
∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0 , but F ( β ′ ) > F ( β ∗ ) . \nabla F(\beta') = 0 \text{ and } \nabla^2 F(\beta') \succ0, \text{ but } F(\beta') > F(\beta^*). ∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0 , but F ( β ′ ) > F ( β ∗ ) .
In the second example, we allow the baseline to be the best-fitting function from a broad class for each candidate regression coefficient. We show that the resulting profiled population loss can be constant and strictly suboptimal over an entire interval of incorrect regression coefficients. Neither joint estimation nor profiling over an unknown baseline preserves the favorable population geometry from the known baseline setting.
Theorem 10 (A suboptimal flat region after optimizing the baseline). Let H \mathcal{H} H be the class of smooth, strictly positive baseline hazards whose cumulative hazards diverge at infinity. There exists a correctly specified truncated Cox model whose true regression coefficient θ ∗ > 0 \theta^* > 0 θ ∗ > 0 is identifiable, but whose profiled population negative log-likelihood
F ^ ( θ ) : = inf h 0 ∈ H F ( θ , h 0 ) \widehat{F}(\theta) := \inf_{h_0 \in\mathcal{H}} F(\theta,h_0) F ( θ ) := h 0 ∈ H inf F ( θ , h 0 ) is constant on ( − ∞ , 0 ] (-\infty,0] ( − ∞ , 0 ] and satisfies F ^ ( θ ) > F ^ ( θ ∗ ) \widehat{F}(\theta) > \widehat{F}(\theta^*) F ( θ ) > F ( θ ∗ ) for every θ ≤ 0 \theta\le0 θ ≤ 0 . Consequently, every θ < 0 \theta< 0 θ < 0 is a suboptimal stationary point of F ^ \widehat{F} F and for every θ < 0 \theta< 0 θ < 0 , the infimum defining F ^ ( θ ) \widehat{F}(\theta) F ( θ ) is not attained by any baseline in H \mathcal{H} H .
Experiments
We demonstrate that optimizing the truncated likelihood can be done with SGD in practical, semi-synthetic settings. We construct cohorts from four survival datasets: the United Network for Organ Sharing (UNOS) registry for heart transplant graft survival which we refer to as HEARTS, SUPPORT for survival of hospitalized patients [6 ] , METABRIC for breast cancer survival [8 ] , and FLCHAIN for mortality prediction from laboratory measurements [11 ] . For each dataset, we fit a survival model that defines the data-generating process, generate synthetic event times from this model, independently impose censoring at the same rate as in the original dataset, and then apply a known outcome-dependent truncation mechanism. We compare models trained on the resulting selected samples across increasing levels of truncation.
We first evaluate both standard Cox regression and the truncated Cox model from § 2 optimized with projected SGD, as well as neural variants in which the linear risk score is replaced by a feed-forward neural network trained with Adam. This neural architecture is also known as DeepSurv [21 ] . Although our theoretical guarantees apply only to the linear Cox model, we also optimize the corresponding truncated likelihood for the neural network to test whether the same correction to the likelihood is useful empirically. We split each dataset into training and test sets and evaluate the mean squared error (MSE) between learned and ground-truth risk scores on the untruncated test set. We consider both a linear Cox data-generating model (Figure 3 ) and a neural network data-generating model (Figure 4 ). Full details of the data generation, truncation, censoring, and neural architecture are provided in Section D.
(a) HEARTS.
(b) SUPPORT.
(c) METABRIC.
(d) FLCHAIN.
Figure 3. Results of learning standard and truncated Cox regression and neural networks with first-order optimizers across datasets when the data-generating model is a Cox model. Shaded regions show standard deviation.
Figure 4. Results of learning standard and truncated Cox regression and neural networks with first-order optimizers across datasets when the data-generating model is a neural network.
Across all four datasets, explicitly accounting for truncation substantially improves the accuracy as truncation becomes more severe. When truncation is ignored, the MSE increases rapidly with the amount of truncation. When the data-generating model is linear, truncated Cox regression closely recovers the true risk scores, while the neural model achieves similar performance. When the data-generating model is neural, the
truncated neural network performs best.
These experiments complement our theoretical results by showing that the truncated Cox objective is practically optimizable by standard gradient-based methods. While our guarantees are specific to Cox regression, the same correction is effective for neural networks.
We also show the computational efficiency of first-order optimization compared to EM. We implement a known-baseline variation of the truncated EM algorithm from Rennert and Xie [ [36 ] and compare its training time and MSE with projected SGD and Adam in Table 1 . We include details of the EM algorithm in Section E. While our theoretical results only strictly apply to projected SGD, we show that, in practice, a common first order optimizer also converges quickly, namely Adam. On the three smaller datasets, METABRIC, SUPPORT, and FLCHAIN, all methods converge within 2 seconds and achieve comparable MSE. The difference becomes pronounced on HEARTS, which contains substantially more observations and covariates. EM requires over 30 seconds to converge on average, compared with an average of 5.15 seconds for projected SGD and 2.05 seconds for Adam. EM is an order of magnitude slower than projected SGD and Adam. It also achieves worse MSE. To further push the scalability, we artificially enlarge the HEARTS dataset by generating Gaussian features and run our approaches on a semi-synthetic dataset with N = 750,000 N = 750{,}000 N = 750 , 000 samples each with 2,000 covariates. We refer to this dataset as HEARTS-Large (see Section D.5 for more details), and show the results in Table 2 . A breakdown per truncation level is included in Table 4 . All algorithms achieve comparable MSE. However, Adam and projected SGD achieve this MSE around 100 × 100 \times 100 × faster, converging in 20-30 seconds compared to roughly 45 minutes for EM. These results highlight that direct first-order optimization scales significantly better than EM as the size and dimensionality of the dataset increases.
Table 1. Computational efficiency of three optimizers for the same truncated Cox regression MLE across datasets with 10 independent runs per truncation level. Time is the mean wall-clock time to convergence (s) and MSE is the mean test risk-score error.
Table 2. Average optimizer efficiency on HEARTS-Large across truncation levels.
Table 4. Optimizer comparison on HEARTS-Large.
Conclusions
We analyzed survival analysis under outcome-dependent truncation and right censoring. We characterized when the parameters of Cox regression can be learned efficiently. When the baseline hazard is known, projected SGD converges efficiently to the true parameter values. We established negative results when the baseline hazard is unknown showing that a favorable optimization landscape does not always exist.
Semi-synthetic experiments on four datasets demonstrated that first-order methods can effectively optimize truncated Cox likelihoods, reducing prediction error relative to models that ignore selection. The same correction also improved neural networks empirically. We also showed orders of magnitude speedups relative to EM. As survival models increasingly inform high-stakes decision making in medicine, efficiently learning a survival model under truncation is an important capability to scale models to higher dimensions.
Acknowledgments
Tuomas Sandholm and his PhD students Ioannis Anagnostides and Itai Zilberstein are supported by NIH award A240108S001, the Vannevar Bush Faculty Fellowship ONR N00014-23-1-2876, and National Science Foundation grant RI-2312342. Itai Zilberstein is also supported by the NSF Graduate Research Fellowship Program under grants DGE2140739 & DGE2631988. Arman Kilic is supported by NIH RO1 grant 5R01HL162882-03 which contributed to the funding for completion of this project. Arman Kilic is a speaker and consultant for Abiomed, Abbott, 3ive, and LivaNova, and founder and owner of QImetrix. All additional authors have no financial relationships to disclose. Any opinions, findings, and conclusions or recommendations expressed in this material are those of the author(s) and do not necessarily reflect the views of the funding agencies.
Additional related work
Our work sits at the intersection of two prevalent areas of research: efficient learning under truncation and survival analysis.
Learning from truncated samples has been studied in regression settings without censoring [17 , 9 ] . These prior works proved that the parameters of standard regression methods, such as probit and logistic regression, can be optimized efficiently with first-order methods [17 ] . More recent work gives computationally and statistically efficient algorithms for learning exponential families from truncated samples under general truncation sets [25 ] . This work is closely related to our setting. When transforming event times by the cumulative baseline hazard, an uncensored event time follows an exponential distribution. Our setting differs in two challenging ways. The truncated Cox likelihood is generally not convex in the regression coefficients because the exponential rate is nonlinear in the parameters. We also consider right censoring, where censored observations reveal only a lower bound on the event time rather than a sample from the truncated exponential distribution. We show that, despite these challenges, the population likelihood has a unique stationary point and gradient descent moves toward the true parameter value. A separate line of work studies the harder setting in which the truncation mechanism itself is unknown [28 , 23 ] .
In the context of survival analysis, there is a large body of work on predicting time-to-event under the typical i.i.d. assumption and right censoring [18 , 20 , 44 ] including neural architectures [24 , 31 , 21 , 48 ] . Despite these modern predictors, Cox regression [7 ] remains one of the most widely used models. The predictions from a survival model are often used to inform decision making in high-stakes settings. One of the most prominent applications is organ allocation [Papalexopoulos et al., 2024, OPTN, 2025, Dickerson and Sandholm, 2015, Zilberstein et al., 2026c,b,d, Anagnostides et al., 2026, Berrevoets et al., 2020].
Truncation in survival analysis has a long history, including classical methods for left-truncated and right-censored data [40 ] , length-biased sampling [43 , 34 ] , and more general biased sampling schemes [22 ] (Yu et al. 2016). More recent work focuses on Cox regression for doubly truncated data using inverse-probability weighting, pseudo-likelihood, and conditional likelihood [30 , 35 , 39 , 36 , 38 , 5 ] (Li et al. 2020). These approaches establish consistency and asymptotic properties, but do not characterize the global optimization landscape. Some likelihood-based approaches instead rely on iterative procedures such as EM with only local convergence guarantees. Another related line of work estimates causal treatment effects under selection bias, including truncation [46 , 1 ] .
Classical impossibility results in survival analysis establish nonidentifiability under partial observation, most notably for competing risks [41 ] . In contrast to these results, we show that even when the model is identifiable and correctly specified, learning an unknown baseline can produce a population likelihood with suboptimal local minima.
From a broader context, our work contributes to the study of why gradient-based methods succeed in nonconvex optimization, including results on avoiding strict saddle points [26 , 27 ] (Ge et al. 2015) and establishing that all local minima are globally optimal in structured problems [Ge et al., 2016]. In our paper, we establish a favorable population landscape for truncated and right-censored Cox regression with a known baseline hazard: despite nonconvexity, we show that the true parameter is the unique stationary point.
Further background on Cox regression
We derive the maximum likelihood estimator for the Cox model. For independent observations, the contribution to the likelihood from sample i i i is
( h i ( T i ) ) δ i S i ( T i ) = ( h 0 ( T i ) e x i T θ ) δ i exp ( − e x i T θ H 0 ( T i ) ) . \left(h_i(T_i)\right)^{\delta_i}S_i(T_i)=\left(h_0(T_i)e^{x_i^{\mathsf{T}}\theta}\right)^{\delta_i}\exp\left(-e^{x_i^{\mathsf{T}}\theta}H_0(T_i)\right). ( h i ( T i ) ) δ i S i ( T i ) = ( h 0 ( T i ) e x i T θ ) δ i exp ( − e x i T θ H 0 ( T i ) ) .
As a result, the full likelihood reads
L ( θ ) = ∏ i = 1 n ( h 0 ( T i ) e x i T θ ) δ i exp ( − e x i T θ H 0 ( T i ) ) = ( ∏ i = 1 n h 0 ( T i ) δ i ) exp ( ∑ i = 1 n δ i x i T θ − ∑ i = 1 n e x i T θ H 0 ( T i ) ) . \begin{aligned}
\mathcal{L}(\theta)&=\prod_{i=1}^{n}\left(h_0(T_i)e^{x_i^{\mathsf{T}}\theta}\right)^{\delta_i}\exp\left(-e^{x_i^{\mathsf{T}}\theta}H_0(T_i)\right)\\
&=\left(\prod_{i=1}^{n}h_0(T_i)^{\delta_i}\right)\exp\left(\sum_{i=1}^{n}\delta_i x_i^{\mathsf{T}}\theta-\sum_{i=1}^{n}e^{x_i^{\mathsf{T}}\theta}H_0(T_i)\right).
\end{aligned} L ( θ ) = i = 1 ∏ n ( h 0 ( T i ) e x i T θ ) δ i exp ( − e x i T θ H 0 ( T i ) ) = ( i = 1 ∏ n h 0 ( T i ) δ i ) exp ( i = 1 ∑ n δ i x i T θ − i = 1 ∑ n e x i T θ H 0 ( T i ) ) .
When the baseline hazard h 0 ( ⋅ ) h_0(\cdot) h 0 ( ⋅ ) is known, the first term in the right-hand side, ∏ i = 1 n h 0 ( T i ) δ i \prod_{i=1}^{n}h_0(T_i)^{\delta_i} ∏ i = 1 n h 0 ( T i ) δ i , is independent of θ \theta θ . As a result, the log-likelihood—up to an additive constant—reads
ℓ ( θ ) = ∑ i = 1 n δ i x i T θ − ∑ i = 1 n e x i T θ H 0 ( T i ) . (1) \ell(\theta)=\sum_{i=1}^{n}\delta_i x_i^{\mathsf{T}}\theta-\sum_{i=1}^{n}e^{x_i^{\mathsf{T}}\theta}H_0(T_i). \tag*{(1)} ℓ ( θ ) = i = 1 ∑ n δ i x i T θ − i = 1 ∑ n e x i T θ H 0 ( T i ) . (1)
We now observe that the log-likelihood is concave, making it amenable to standard optimization algorithms. Indeed, the gradient with respect to θ \theta θ is
U ( θ ) = ∇ θ ℓ ( θ ) = ∑ i = 1 n δ i x i − ∑ i = 1 n H 0 ( T i ) e x i T θ x i = ∑ i = 1 n ( δ i − H 0 ( T i ) e x i T θ ) x i . \begin{aligned}
U(\theta)=\nabla_\theta\ell(\theta)&=\sum_{i=1}^{n}\delta_i x_i-\sum_{i=1}^{n}H_0(T_i)e^{x_i^{\mathsf{T}}\theta}x_i\\
&=\sum_{i=1}^{n}\left(\delta_i-H_0(T_i)e^{x_i^{\mathsf{T}}\theta}\right)x_i.
\end{aligned} U ( θ ) = ∇ θ ℓ ( θ ) = i = 1 ∑ n δ i x i − i = 1 ∑ n H 0 ( T i ) e x i T θ x i = i = 1 ∑ n ( δ i − H 0 ( T i ) e x i T θ ) x i .
so the Hessian can be expressed as
∇ θ 2 ℓ ( θ ) = − ∑ i = 1 n H 0 ( T i ) e x i T θ x i x i T . \nabla_\theta^2\ell(\theta)=-\sum_{i=1}^{n}H_0(T_i)e^{x_i^{\mathsf{T}}\theta}x_i x_i^{\mathsf{T}}. ∇ θ 2 ℓ ( θ ) = − i = 1 ∑ n H 0 ( T i ) e x i T θ x i x i T .
The Hessian is negative semidefinite, so the log-likelihood is concave.
We now derive the likelihood function when we have interval truncation. Recall that π i ( θ ) \pi_i(\theta) π i ( θ ) denotes the probability that sample i i i is included, while π i ( t ∣ θ ) \pi_i(t\mid\theta) π i ( t ∣ θ ) denotes the joint probability that it is included and that T i ∗ > t T_i^*>t T i ∗ > t .
For sample i i i with observed data ( T i , δ i ) (T_i,\delta_i) ( T i , δ i ) , we divide into two cases to capture the contribution to the likelihood. First, if δ i = 1 \delta_i=1 δ i = 1 , then T i ∗ = T i T_i^*=T_i T i ∗ = T i , and the contribution to the likelihood is
L i ( θ ) ∝ h i ( T i ) S i ( T i ) π i ( θ ) . \mathcal{L}_i(\theta)\propto\frac{h_i(T_i)S_i(T_i)}{\pi_i(\theta)}. L i ( θ ) ∝ π i ( θ ) h i ( T i ) S i ( T i ) .
where we omit the factor ρ ( T i ) \rho(T_i) ρ ( T i ) , which is independent of θ \theta θ . Similarly, if δ i = 0 \delta_i=0 δ i = 0 , then T i ∗ > T i T_i^*>T_i T i ∗ > T i , and the contribution is
L i ( θ ) ∝ π i ( T i ∣ θ ) π i ( θ ) . \mathcal{L}_i(\theta)\propto\frac{\pi_i(T_i\mid\theta)}{\pi_i(\theta)}. L i ( θ ) ∝ π i ( θ ) π i ( T i ∣ θ ) .
The full likelihood, up to factors independent of θ \theta θ , is
L ( θ ) ∝ ∏ i = 1 n [ h i ( T i ) S i ( T i ) ] δ i [ π i ( T i ∣ θ ) ] 1 − δ i π i ( θ ) . \mathcal{L}(\theta)\propto\prod_{i=1}^{n}\frac{\left[h_i(T_i)S_i(T_i)\right]^{\delta_i}\left[\pi_i(T_i\mid\theta)\right]^{1-\delta_i}}{\pi_i(\theta)}. L ( θ ) ∝ i = 1 ∏ n π i ( θ ) [ h i ( T i ) S i ( T i ) ] δ i [ π i ( T i ∣ θ ) ] 1 − δ i .
Omitted proofs
Lemma 1. Let U ∼ TruncExp ( λ , { ( [ A k , B k ] , q k ) } k = 1 K ) U \sim\operatorname{TruncExp}\left(\lambda,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) U ∼ TruncExp ( λ , {([ A k , B k ] , q k ) } k = 1 K ) be a random variable following a weighted truncated exponential distribution with rate λ > 0 \lambda> 0 λ > 0 . Its expected value, denoted by μ ( λ ) \mu(\lambda) μ ( λ ) , satisfies
μ ( λ ) = ∑ k = 1 K q k ( A k e − λ A k − B k e − λ B k ) ∑ k = 1 K q k ( e − λ A k − e − λ B k ) + 1 λ . \mu(\lambda)=\frac{\sum_{k=1}^{K}q_k\left(A_ke^{-\lambda A_k}-B_ke^{-\lambda B_k}\right)}{\sum_{k=1}^{K}q_k\left(e^{-\lambda A_k}-e^{-\lambda B_k}\right)}+\frac{1}{\lambda}. μ ( λ ) = ∑ k = 1 K q k ( e − λ A k − e − λ B k ) ∑ k = 1 K q k ( A k e − λ A k − B k e − λ B k ) + λ 1 .
Proof. Let p λ p_\lambda p λ denote the density of the weighted truncated exponential distribution with rate λ \lambda λ ,
p λ ( u ) = λ e − λ u ∑ k = 1 K q k 1 { A k < u < B k } ∑ k = 1 K q k ( e − λ A k − e − λ B k ) . p_\lambda(u)=\frac{\lambda e^{-\lambda u}\sum_{k=1}^{K}q_k\mathbf{1}\{A_k<u<B_k\}}{\sum_{k=1}^{K}q_k\left(e^{-\lambda A_k}-e^{-\lambda B_k}\right)}. p λ ( u ) = ∑ k = 1 K q k ( e − λ A k − e − λ B k ) λ e − λ u ∑ k = 1 K q k 1 { A k < u < B k } .
Taking the expectation, we get
μ ( λ ) = ∑ k = 1 K q k ∫ A k B k λ u e − λ u d u ∑ k = 1 K q k ( e − λ A k − e − λ B k ) . \mu(\lambda)=\frac{\sum_{k=1}^{K}q_k\int_{A_k}^{B_k}\lambda u e^{-\lambda u}\,\mathrm{d}u}{\sum_{k=1}^{K}q_k\left(e^{-\lambda A_k}-e^{-\lambda B_k}\right)}. μ ( λ ) = ∑ k = 1 K q k ( e − λ A k − e − λ B k ) ∑ k = 1 K q k ∫ A k B k λ u e − λ u d u .
For each interval, we have
∫ A k B k λ u e − λ u d u = [ − u e − λ u ] A k B k + [ − 1 λ e − λ u ] A k B k = A k e − λ A k − B k e − λ B k + 1 λ ( e − λ A k − e − λ B k ) . \begin{aligned}
\int_{A_k}^{B_k}\lambda u e^{-\lambda u}\,\mathrm{d}u
=\left[-ue^{-\lambda u}\right]_{A_k}^{B_k}+\left[-\frac{1}{\lambda}e^{-\lambda u}\right]_{A_k}^{B_k} \\
&=A_ke^{-\lambda A_k}-B_ke^{-\lambda B_k}+\frac{1}{\lambda}\left(e^{-\lambda A_k}-e^{-\lambda B_k}\right).
\end{aligned} ∫ A k B k λ u e − λ u d u = [ − u e − λ u ] A k B k + [ − λ 1 e − λ u ] A k B k = A k e − λ A k − B k e − λ B k + λ 1 ( e − λ A k − e − λ B k ) .
The claim follows by substituting the above into the expectation.
Lemma 2. Let 0 < λ 1 < λ 2 0<\lambda_1<\lambda_2 0 < λ 1 < λ 2 and U j ∼ TruncExp ( λ j , { ( [ A k , B k ] , q k ) } k = 1 K ) U_j\sim\operatorname{TruncExp}\left(\lambda_j,\{([A_k,B_k],q_k)\}_{k=1}^{K}\right) U j ∼ TruncExp ( λ j , {([ A k , B k ] , q k ) } k = 1 K ) for j = 1 , 2 j=1,2 j = 1 , 2 . Let φ : [ 0 , ∞ ) → R \varphi:[0,\infty)\to\mathbb{R} φ : [ 0 , ∞ ) → R be a nondecreasing function such that E [ ∣ φ ( U j ) ∣ ] < ∞ \mathbb{E}[|\varphi(U_j)|]<\infty E [ ∣ φ ( U j ) ∣ ] < ∞ for j = 1 , 2 j=1,2 j = 1 , 2 . Then
E [ φ ( U 1 ) ] ≥ E [ φ ( U 2 ) ] . \mathbb{E}[\varphi(U_1)]\ge\mathbb{E}[\varphi(U_2)]. E [ φ ( U 1 )] ≥ E [ φ ( U 2 )] . The inequality is strict whenever φ ( U 1 ) \varphi(U_1) φ ( U 1 ) is not almost surely constant.
Proof. Let p λ 1 p_{\lambda_1} p λ 1 and p λ 2 p_{\lambda_2} p λ 2 denote the respective densities, and define
ω ( u ) = e − ( λ 2 − λ 1 ) u . \omega(u)=e^{-(\lambda_2-\lambda_1)u}. ω ( u ) = e − ( λ 2 − λ 1 ) u .
The intervals and retention probabilities are the same for both distributions, therefore the densities satisfy
p λ 2 ( u ) = ω ( u ) p λ 1 ( u ) E [ ω ( U 1 ) ] . p_{\lambda_2}(u)=\frac{\omega(u)p_{\lambda_1}(u)}{\mathbb{E}[\omega(U_1)]}. p λ 2 ( u ) = E [ ω ( U 1 )] ω ( u ) p λ 1 ( u ) .
Consequently,
E λ 2 [ φ ( U 2 ) ] − E λ 1 [ φ ( U 1 ) ] = E λ 1 [ φ ( U 1 ) ω ( U 1 ) ] E λ 1 [ ω ( U 1 ) ] − E λ 1 [ φ ( U 1 ) ] = Cov ( φ ( U 1 ) , ω ( U 1 ) ) E λ 1 [ ω ( U 1 ) ] . \begin{aligned}
\mathbb{E}_{\lambda_2}[\varphi(U_2)]-\mathbb{E}_{\lambda_1}[\varphi(U_1)]
=\frac{\mathbb{E}_{\lambda_1}[\varphi(U_1)\omega(U_1)]}{\mathbb{E}_{\lambda_1}[\omega(U_1)]}-\mathbb{E}_{\lambda_1}[\varphi(U_1)] \\
&=\frac{\operatorname{Cov}(\varphi(U_1),\omega(U_1))}{\mathbb{E}_{\lambda_1}[\omega(U_1)]}.
\end{aligned} E λ 2 [ φ ( U 2 )] − E λ 1 [ φ ( U 1 )] = E λ 1 [ ω ( U 1 )] E λ 1 [ φ ( U 1 ) ω ( U 1 )] − E λ 1 [ φ ( U 1 )] = E λ 1 [ ω ( U 1 )] Cov ( φ ( U 1 ) , ω ( U 1 )) .
Let U 1 ′ U'_1 U 1 ′ be an independent copy of U 1 U_1 U 1 . Then
2 Cov λ 1 ( φ ( U 1 ) , ω ( U 1 ) ) = E λ 1 [ ( φ ( U 1 ) − φ ( U 1 ′ ) ) ( ω ( U 1 ) − ω ( U 1 ′ ) ) ] . 2\operatorname{Cov}_{\lambda_1}(\varphi(U_1),\omega(U_1))=\mathbb{E}_{\lambda_1}\left[(\varphi(U_1)-\varphi(U'_1))(\omega(U_1)-\omega(U'_1))\right]. 2 Cov λ 1 ( φ ( U 1 ) , ω ( U 1 )) = E λ 1 [ ( φ ( U 1 ) − φ ( U 1 ′ )) ( ω ( U 1 ) − ω ( U 1 ′ )) ] .
Because φ \varphi φ is nondecreasing and ω \omega ω is strictly decreasing, the integrand is nonpositive, meaning the covariance is nonpositive. This proves the first claim.
To prove the second claim, if φ ( U 1 ) \varphi(U_1) φ ( U 1 ) is not almost surely constant, then
P ( φ ( U 1 ) ≠ φ ( U 1 ′ ) ) > 0. \mathbb{P}(\varphi(U_1)\ne\varphi(U'_1))>0. P ( φ ( U 1 ) = φ ( U 1 ′ )) > 0.
In this case, the integrand is strictly negative because ω \omega ω is strictly decreasing, implying the covariance is strictly negative, giving
E λ 1 [ φ ( U 1 ) ] > E λ 2 [ φ ( U 2 ) ] . \mathbb{E}_{\lambda_1}[\varphi(U_1)]>\mathbb{E}_{\lambda_2}[\varphi(U_2)]. E λ 1 [ φ ( U 1 )] > E λ 2 [ φ ( U 2 )] .
Lemma 3. Let U ∼ TruncExp ( λ , { ( [ A k , B k ] , q k ) } k = 1 K ) U\sim\operatorname{TruncExp}(\lambda,\{([A_k,B_k],q_k)\}_{k=1}^{K}) U ∼ TruncExp ( λ , {([ A k , B k ] , q k ) } k = 1 K ) with expected value μ ( λ ) \mu(\lambda) μ ( λ ) . For a fixed censoring threshold c ≥ 0 c\ge0 c ≥ 0 with P ( U > c ) > 0 \mathbb{P}(U>c)>0 P ( U > c ) > 0 , define
μ c ( λ ) : = E [ U ∣ U > c ] and m λ , c ( u ) = { u , u ≤ c , μ c ( λ ) , u > c . \mu_c(\lambda):=\mathbb{E}[U\mid U>c]\quad\text{and}\quad m_{\lambda,c}(u)=
\begin{cases}
u, & u\le c,\\
\mu_c(\lambda), & u>c.
\end{cases} μ c ( λ ) := E [ U ∣ U > c ] and m λ , c ( u ) = { u , μ c ( λ ) , u ≤ c , u > c . Then m λ , c m_{\lambda,c} m λ , c is nondecreasing and satisfies
E [ m λ , c ( U ) ] = μ ( λ ) . \mathbb{E}[m_{\lambda,c}(U)]=\mu(\lambda). E [ m λ , c ( U )] = μ ( λ ) . If P ( U ≤ c ) > 0 \mathbb{P}(U\le c)>0 P ( U ≤ c ) > 0 , then m λ , c m_{\lambda,c} m λ , c is nonconstant on the set S = ⋃ k ∣ q k > 0 ( A k , B k ) S=\bigcup_{k\mid q_k>0}(A_k,B_k) S = ⋃ k ∣ q k > 0 ( A k , B k ) .
Proof. Since μ c ( λ ) = E [ U ∣ U > c ] > c \mu_c(\lambda)=\mathbb{E}[U\mid U>c]>c μ c ( λ ) = E [ U ∣ U > c ] > c , m λ , c m_{\lambda,c} m λ , c increases on [ 0 , c ] [0,c] [ 0 , c ] , jumps upward immediately after c c c , and is constant on the interval ( c , ∞ ) (c,\infty) ( c , ∞ ) . This proves it is nondecreasing.
We prove the second statement by expanding the conditional mean,
E [ m λ , c ( U ) ] = E [ U 1 { U ≤ c } ] + μ c ( λ ) P ( U > c ) = E [ U 1 { U ≤ c } ] + E [ U ∣ U > c ] P ( U > c ) = E [ U 1 { U ≤ c } ] + E [ U 1 { U > c } ] = E [ U ] = μ ( λ ) . \begin{aligned}
\mathbb{E}[m_{\lambda,c}(U)]&=\mathbb{E}[U\mathbf{1}\{U\le c\}]+\mu_c(\lambda)\mathbb{P}(U>c)\\
&=\mathbb{E}[U\mathbf{1}\{U\le c\}]+\mathbb{E}[U\mid U>c]\mathbb{P}(U>c)\\
&=\mathbb{E}[U\mathbf{1}\{U\le c\}]+\mathbb{E}[U\mathbf{1}\{U>c\}]\\
&=\mathbb{E}[U]=\mu(\lambda).
\end{aligned} E [ m λ , c ( U )] = E [ U 1 { U ≤ c }] + μ c ( λ ) P ( U > c ) = E [ U 1 { U ≤ c }] + E [ U ∣ U > c ] P ( U > c ) = E [ U 1 { U ≤ c }] + E [ U 1 { U > c }] = E [ U ] = μ ( λ ) . Finally, suppose that P ( U ≤ c ) > 0 \mathbb{P}(U\le c)>0 P ( U ≤ c ) > 0 . Since U U U has a density supported on the positive-weight intervals, there is some k k k with q k > 0 q_k>0 q k > 0 and A k < c A_k<c A k < c . Therefore, we can choose a , b ∈ ( A k , B k ) a,b\in(A_k,B_k) a , b ∈ ( A k , B k ) with a < b < c a<b<c a < b < c . On these points,
m λ , c ( a ) = a < b = m λ , c ( b ) , m_{\lambda,c}(a)=a<b=m_{\lambda,c}(b), m λ , c ( a ) = a < b = m λ , c ( b ) , so m λ , c m_{\lambda,c} m λ , c is nonconstant on S S S .
Lemma 4. Fix the covariates x i x_i x i and suppose T i ∗ T_i^* T i ∗ follows the Cox model with parameter θ \theta θ and known baseline hazard h 0 ( t ) h_0(t) h 0 ( t ) . Then, conditional on sample inclusion, H 0 ( T i ∗ ) H_0(T_i^*) H 0 ( T i ∗ ) is distributed as
TruncExp ( e x i T θ , { ( [ H 0 ( t 0 , k ) , H 0 ( t 1 , k ) ] , q k ) } k = 1 K ) . \operatorname{TruncExp}\left(e^{x_i^\mathsf{T}\theta},\{([H_0(t_{0,k}),H_0(t_{1,k})],q_k)\}_{k=1}^{K}\right). TruncExp ( e x i T θ , {([ H 0 ( t 0 , k ) , H 0 ( t 1 , k )] , q k ) } k = 1 K ) .
Proof. The density of T i ∗ T_i^* T i ∗ is
p T i ∗ ( t ) = ρ ( t ) h i ( t ; θ ) S i ( t ; θ ) π i ( θ ) = ρ ( t ) h 0 ( t ) e x i T θ exp ( − e x i T θ H 0 ( t ) ) π i ( θ ) . p_{T_i^*}(t)=\frac{\rho(t)h_i(t;\theta)S_i(t;\theta)}{\pi_i(\theta)}=\frac{\rho(t)h_0(t)e^{x_i^\mathsf{T}\theta}\exp\left(-e^{x_i^\mathsf{T}\theta}H_0(t)\right)}{\pi_i(\theta)}. p T i ∗ ( t ) = π i ( θ ) ρ ( t ) h i ( t ; θ ) S i ( t ; θ ) = π i ( θ ) ρ ( t ) h 0 ( t ) e x i T θ exp ( − e x i T θ H 0 ( t ) ) .
We perform a change of variable, defining u = H 0 ( t ) u=H_0(t) u = H 0 ( t ) . This gives d u = h 0 ( t ) d t \mathrm{d}u=h_0(t)\mathrm{d}t d u = h 0 ( t ) d t . Since H 0 H_0 H 0 is strictly increasing,
t 0 , k < t < t 1 , k ⟺ H 0 ( t 0 , k ) < u < H 0 ( t 1 , k ) . t_{0,k}<t<t_{1,k}\Longleftrightarrow H_0(t_{0,k})<u<H_0(t_{1,k}). t 0 , k < t < t 1 , k ⟺ H 0 ( t 0 , k ) < u < H 0 ( t 1 , k ) .
Therefore, we can write the density of H 0 ( T i ∗ ) H_0(T_i^*) H 0 ( T i ∗ ) for u ≥ 0 u\ge0 u ≥ 0 as
p H 0 ( T i ∗ ) ( u ) = e x i T θ exp ( − e x i T θ u ) ∑ k = 1 K q k 1 { H 0 ( t 0 , k ) < u < H 0 ( t 1 , k ) } π i ( θ ) . p_{H_0(T_i^*)}(u)=\frac{e^{x_i^\mathsf{T}\theta}\exp\left(-e^{x_i^\mathsf{T}\theta}u\right)\sum_{k=1}^{K}q_k\mathbf{1}\{H_0(t_{0,k})<u<H_0(t_{1,k})\}}{\pi_i(\theta)}. p H 0 ( T i ∗ ) ( u ) = π i ( θ ) e x i T θ exp ( − e x i T θ u ) ∑ k = 1 K q k 1 { H 0 ( t 0 , k ) < u < H 0 ( t 1 , k )} .
We complete the proof by expanding and substituting the denominator,
π i ( θ ) = ∑ k = 1 K q k [ S i ( t 0 , k ; θ ) − S i ( t 1 , k ; θ ) ] = ∑ k = 1 K q k [ exp ( − e x i T θ H 0 ( t 0 , k ) ) − exp ( − e x i T θ H 0 ( t 1 , k ) ) ] . \begin{aligned}
\pi_i(\theta)&=\sum_{k=1}^{K}q_k\left[S_i(t_{0,k};\theta)-S_i(t_{1,k};\theta)\right]\\
&=\sum_{k=1}^{K}q_k\left[\exp\left(-e^{x_i^\mathsf{T}\theta}H_0(t_{0,k})\right)-\exp\left(-e^{x_i^\mathsf{T}\theta}H_0(t_{1,k})\right)\right].
\end{aligned} π i ( θ ) = k = 1 ∑ K q k [ S i ( t 0 , k ; θ ) − S i ( t 1 , k ; θ ) ] = k = 1 ∑ K q k [ exp ( − e x i T θ H 0 ( t 0 , k ) ) − exp ( − e x i T θ H 0 ( t 1 , k ) ) ] .
The resulting density defines a truncated exponential with parameters λ = e x i T θ \lambda=e^{x_i^\mathsf{T}\theta} λ = e x i T θ and ( [ A k , B k ] , q k ) = ( [ H 0 ( t 0 , k ) , H 0 ( t 1 , k ) ] , q k ) ([A_k,B_k],q_k)=([H_0(t_{0,k}),H_0(t_{1,k})],q_k) ([ A k , B k ] , q k ) = ([ H 0 ( t 0 , k ) , H 0 ( t 1 , k )] , q k ) for k ∈ { 1 , … , K } k\in\{1,\ldots,K\} k ∈ { 1 , … , K } .
Lemma 5 (Single-observation likelihood gradient). Let ℓ i ( θ ) \ell_i(\theta) ℓ i ( θ ) denote the log-likelihood contribution of observation ( T i , δ i ) (T_i,\delta_i) ( T i , δ i ) , and let f i ( θ ) = − ℓ i ( θ ) f_i(\theta)=-\ell_i(\theta) f i ( θ ) = − ℓ i ( θ ) . Then the gradient ∇ θ f i ( θ ) \nabla_\theta f_i(\theta) ∇ θ f i ( θ ) can be expressed as
e x i T θ [ δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) − μ i ( θ ) ] x i . e^{x_i^\mathsf{T}\theta}\left[\delta_iH_0(T_i)+(1-\delta_i)\mu_i(T_i\mid\theta)-\mu_i(\theta)\right]x_i. e x i T θ [ δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) − μ i ( θ ) ] x i .
Proof. Dropping terms independent of θ \theta θ , the single-observation negative log-likelihood is
f i ( θ ) = δ i [ − x i T θ + e x i T θ H 0 ( T i ) ] − ( 1 − δ i ) log π i ( T i ∣ θ ) + log π i ( θ ) . f_i(\theta)=\delta_i\left[-x_i^\mathsf{T}\theta+e^{x_i^\mathsf{T}\theta}H_0(T_i)\right]-(1-\delta_i)\log\pi_i(T_i\mid\theta)+\log\pi_i(\theta). f i ( θ ) = δ i [ − x i T θ + e x i T θ H 0 ( T i ) ] − ( 1 − δ i ) log π i ( T i ∣ θ ) + log π i ( θ ) .
We first differentiate π i ( t ∣ θ ) \pi_i(t\mid\theta) π i ( t ∣ θ ) . For every fixed t t t with π i ( t ∣ θ ) > 0 \pi_i(t\mid\theta)>0 π i ( t ∣ θ ) > 0 ,
π i ( t ∣ θ ) = ∫ t ∞ ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s . \pi_i(t\mid\theta)=\int_t^\infty\rho(s)h_i(s;\theta)S_i(s;\theta)\,\mathrm{d}s. π i ( t ∣ θ ) = ∫ t ∞ ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s .
The underlying density satisfies
∇ θ [ h i ( s ; θ ) S i ( s ; θ ) ] = [ 1 − e x i T θ H 0 ( s ) ] h i ( s ; θ ) S i ( s ; θ ) x i . \nabla_\theta\left[h_i(s;\theta)S_i(s;\theta)\right]=\left[1-e^{x_i^\mathsf{T}\theta}H_0(s)\right]h_i(s;\theta)S_i(s;\theta)x_i. ∇ θ [ h i ( s ; θ ) S i ( s ; θ ) ] = [ 1 − e x i T θ H 0 ( s ) ] h i ( s ; θ ) S i ( s ; θ ) x i .
Since ρ \rho ρ does not depend on θ \theta θ , it follows that
∇ θ π i ( t ∣ θ ) = [ π i ( t ∣ θ ) − e x i T θ ∫ t ∞ H 0 ( s ) ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s ] x i = π i ( t ∣ θ ) [ 1 − e x i T θ μ i ( t ∣ θ ) ] x i . \begin{aligned}
\nabla_\theta\pi_i(t\mid\theta)&=\left[\pi_i(t\mid\theta)-e^{x_i^\mathsf{T}\theta}\int_t^\infty H_0(s)\rho(s)h_i(s;\theta)S_i(s;\theta)\,\mathrm{d}s\right]x_i\\
&=\pi_i(t\mid\theta)\left[1-e^{x_i^\mathsf{T}\theta}\mu_i(t\mid\theta)\right]x_i.
\end{aligned} ∇ θ π i ( t ∣ θ ) = [ π i ( t ∣ θ ) − e x i T θ ∫ t ∞ H 0 ( s ) ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s ] x i = π i ( t ∣ θ ) [ 1 − e x i T θ μ i ( t ∣ θ ) ] x i .
where we used
μ i ( t ∣ θ ) = ∫ t ∞ H 0 ( s ) ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s π i ( t ∣ θ ) . \mu_i(t \mid\theta) = \frac{\int_t^\infty H_0(s)\rho(s)h_i(s;\theta)S_i(s;\theta)\,ds}{\pi_i(t \mid\theta)}. μ i ( t ∣ θ ) = π i ( t ∣ θ ) ∫ t ∞ H 0 ( s ) ρ ( s ) h i ( s ; θ ) S i ( s ; θ ) d s .
Dividing by π i ( t ∣ θ ) \pi_i(t \mid\theta) π i ( t ∣ θ ) gives
∇ θ log π i ( t ∣ θ ) = [ 1 − e x i ⊤ θ μ i ( t ∣ θ ) ] x i . \nabla_\theta\log\pi_i(t \mid\theta) = \left[1-e^{x_i^\top\theta}\mu_i(t \mid\theta)\right]x_i. ∇ θ log π i ( t ∣ θ ) = [ 1 − e x i ⊤ θ μ i ( t ∣ θ ) ] x i .
We complete the proof by substituting the logarithmic derivative into the expression for f i f_i f i .
Theorem 6 (Unique stationary point of the population landscape in one dimension). Fix a covariate vector x x x and let ( T , δ ) (T,\delta) ( T , δ ) be the observed time and event indicator. Let z ∗ = x ⊤ θ ∗ z^* = x^\top\theta^* z ∗ = x ⊤ θ ∗ be the true data-generating parameter. The one-dimensional population negative log-likelihood
F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] , F_x(z) = \mathbb{E}_{\theta^*}[-\ell(z;T,\delta)\mid x], F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] , has z ∗ z^* z ∗ as its unique global minimizer and unique stationary point. Moreover,
( z − z ∗ ) F x ′ ( z ) > 0 for every z ≠ z ∗ . (z-z^*)F_x'(z)>0 \text{ for every } z\ne z^*. ( z − z ∗ ) F x ′ ( z ) > 0 for every z = z ∗ .
Proof. Write λ = e z \lambda=e^z λ = e z and λ ∗ = e z ∗ \lambda^*=e^{z^*} λ ∗ = e z ∗ . By Lemma 4, U : = H 0 ( T ∗ ) U:=H_0(T^*) U := H 0 ( T ∗ ) follows a weighted truncated exponential distribution with rate λ ∗ \lambda^* λ ∗ . We write E λ \mathbb{E}_\lambda E λ for expectation over the joint distribution of U U U and C C C , where U U U follows the weighted truncated exponential distribution with rate λ \lambda λ and C C C follows the fixed censoring distribution, independently of U U U . E λ ∗ \mathbb{E}_{\lambda^*} E λ ∗ and E λ \mathbb{E}_\lambda E λ differ only in the distribution of U U U . Let μ ( λ ) = E λ [ U ] \mu(\lambda)=\mathbb{E}_\lambda[U] μ ( λ ) = E λ [ U ] .
For a censoring threshold c c c , define m λ , c m_{\lambda,c} m λ , c to be the function from Lemma 3. By Lemma 5, taking the expectation of one observation’s gradient gives
F x ′ ( z ) = λ ( E λ ∗ [ m λ , H 0 ( C ) ( U ) ] − μ ( λ ) ) . F_x'(z)=\lambda\left(\mathbb{E}_{\lambda^*}\left[m_{\lambda,H_0(C)}(U)\right]-\mu(\lambda)\right). F x ′ ( z ) = λ ( E λ ∗ [ m λ , H 0 ( C ) ( U ) ] − μ ( λ ) ) .
Since C C C is independent of U U U and its distribution does not depend on λ \lambda λ , applying Lemma 3 gives
μ ( λ ) = E λ [ m λ , H 0 ( C ) ( U ) ] . \mu(\lambda)=\mathbb{E}_{\lambda}\left[m_{\lambda,H_0(C)}(U)\right]. μ ( λ ) = E λ [ m λ , H 0 ( C ) ( U ) ] .
Dividing F x ′ ( z ) F_x'(z) F x ′ ( z ) by λ \lambda λ and substituting μ ( λ ) \mu(\lambda) μ ( λ ) gives,
F x ′ ( z ) λ = E λ ∗ [ m λ , H 0 ( C ) ( U ) ] − E λ [ m λ , H 0 ( C ) ( U ) ] . (2) \frac{F_x'(z)}{\lambda}=\mathbb{E}_{\lambda^*}\left[m_{\lambda,H_0(C)}(U)\right]-\mathbb{E}_{\lambda}\left[m_{\lambda,H_0(C)}(U)\right]. \tag*{(2)} λ F x ′ ( z ) = E λ ∗ [ m λ , H 0 ( C ) ( U ) ] − E λ [ m λ , H 0 ( C ) ( U ) ] . (2)
Now we consider three cases comparing λ \lambda λ to λ ∗ \lambda^* λ ∗ . Suppose first that λ > λ ∗ \lambda>\lambda^* λ > λ ∗ . For every fixed censoring time c c c , Lemma 3 tells us that the function m λ , H 0 ( c ) m_{\lambda,H_0(c)} m λ , H 0 ( c ) is nondecreasing. Holding this function fixed, Lemma 2 gives
E λ ∗ [ m λ , H 0 ( c ) ( U ) ] ≥ E λ [ m λ , H 0 ( c ) ( U ) ] . \mathbb{E}_{\lambda^*}\left[m_{\lambda,H_0(c)}(U)\right]\ge\mathbb{E}_{\lambda}\left[m_{\lambda,H_0(c)}(U)\right]. E λ ∗ [ m λ , H 0 ( c ) ( U ) ] ≥ E λ [ m λ , H 0 ( c ) ( U ) ] .
Since we assume P ( δ = 1 ) > 0 \mathbb{P}(\delta=1)>0 P ( δ = 1 ) > 0 ,
E C [ P λ ∗ ( U ≤ H 0 ( C ) ) ] > 0. \mathbb{E}_C\left[\mathbb{P}_{\lambda^*}(U\le H_0(C))\right]>0. E C [ P λ ∗ ( U ≤ H 0 ( C )) ] > 0.
Therefore, with positive probability, the censoring time falls into a set where m λ , H 0 ( c ) m_{\lambda,H_0(c)} m λ , H 0 ( c ) is nonconstant. On this set, the inequality above is strict, giving
F x ′ ( z ) > 0 whenever λ > λ ∗ . F_x'(z)>0 \text{ whenever } \lambda>\lambda^*. F x ′ ( z ) > 0 whenever λ > λ ∗ .
If λ < λ ∗ \lambda< \lambda^* λ < λ ∗ , the same argument with the two rates reversed gives F x ′ ( z ) < 0 F'_x(z) < 0 F x ′ ( z ) < 0 . Finally, when λ = λ ∗ \lambda= \lambda^* λ = λ ∗ , the two expectations in (2) coincide, so F x ′ ( z ∗ ) = 0 F'_x(z^*) = 0 F x ′ ( z ∗ ) = 0 .
Since λ = e z \lambda= e^z λ = e z is strictly increasing,
( z − z ∗ ) F x ′ ( z ) > 0 for every z ≠ z ∗ . (z-z^*)F'_x(z)>0 \text{ for every } z\ne z^*. ( z − z ∗ ) F x ′ ( z ) > 0 for every z = z ∗ .
Therefore, z ∗ z^* z ∗ is the unique stationary point. Since F x F_x F x is strictly decreasing to the left of z ∗ z^* z ∗ and strictly increasing to its right, z ∗ z^* z ∗ is also the unique global minimizer.
Theorem 7 (Unique stationary point of the population loss). Let θ ∗ \theta^* θ ∗ be the true data-generating parameter. Then the population negative log-likelihood F ( θ ) F(\theta) F ( θ ) satisfies
⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ > 0 for every θ ≠ θ ∗ . \langle\nabla_\theta F(\theta),\theta-\theta^*\rangle>0 \text{ for every } \theta\ne\theta^*. ⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ > 0 for every θ = θ ∗ . Moreover, ∇ θ F ( θ ∗ ) = 0 \nabla_\theta F(\theta^*)=0 ∇ θ F ( θ ∗ ) = 0 . Consequently, θ ∗ \theta^* θ ∗ is the unique stationary point of F F F .
Proof. For a given covariate vector x \mathbf{x} x , let z = x T θ z=\mathbf{x}^{\mathsf{T}}\theta z = x T θ and z ∗ = x T θ ∗ z^*=\mathbf{x}^{\mathsf{T}}\theta^* z ∗ = x T θ ∗ . Since the likelihood depends on θ \theta θ only through z z z , we write
F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] , F_x(z)=\mathbb{E}_{\theta^*}[-\ell(z;T,\delta)\mid\mathbf{x}], F x ( z ) = E θ ∗ [ − ℓ ( z ; T , δ ) ∣ x ] ,
where the expectation is under the true distribution. By Theorem 6,
( z − z ∗ ) F x ′ ( z ) ≥ 0 , (3) (z-z^*)F'_x(z)\ge0, \tag*{(3)} ( z − z ∗ ) F x ′ ( z ) ≥ 0 , (3)
with strict inequality whenever z ≠ z ∗ z\ne z^* z = z ∗ , and F x ′ ( z ∗ ) = 0 F'_x(z^*)=0 F x ′ ( z ∗ ) = 0 .
To analyze the joint population gradient, we use the chain rule and differentiate under the expectation to obtain
∇ θ F ( θ ) = E x [ F x ′ ( x T θ ) x ] . \nabla_\theta F(\theta)=\mathbb{E}_{\mathbf{x}}\left[F'_x(\mathbf{x}^{\mathsf{T}}\theta)\mathbf{x}\right]. ∇ θ F ( θ ) = E x [ F x ′ ( x T θ ) x ] .
Taking the inner product with θ − θ ∗ \theta-\theta^* θ − θ ∗ gives
⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ = E [ F x ′ ( z ) x T ( θ − θ ∗ ) ] = E [ F x ′ ( z ) ( z − z ∗ ) ] . \begin{aligned}
\langle\nabla_\theta F(\theta),\theta-\theta^*\rangle
&=\mathbb{E}\left[F'_x(z)\mathbf{x}^{\mathsf{T}}(\theta-\theta^*)\right]\\
&=\mathbb{E}\left[F'_x(z)(z-z^*)\right].
\end{aligned} ⟨ ∇ θ F ( θ ) , θ − θ ∗ ⟩ = E [ F x ′ ( z ) x T ( θ − θ ∗ ) ] = E [ F x ′ ( z ) ( z − z ∗ ) ] .
By (3) , the integrand is nonnegative. Since E [ x x T ] ≻ 0 \mathbb{E}[\mathbf{x}\mathbf{x}^{\mathsf{T}}]\succ0 E [ x x T ] ≻ 0 , for any θ ≠ θ ∗ \theta\ne\theta^* θ = θ ∗ , the event z ≠ z ∗ z\ne z^* z = z ∗ has strictly positive probability. Therefore,
⟨ ∇ θ F ( θ ) , ( θ − θ ∗ ) ⟩ > 0 for all θ ≠ θ ∗ . \langle\nabla_\theta F(\theta),(\theta-\theta^*)\rangle>0 \text{ for all } \theta\ne\theta^*. ⟨ ∇ θ F ( θ ) , ( θ − θ ∗ )⟩ > 0 for all θ = θ ∗ .
Hence, no incorrect parameter is stationary. At the true parameter, F x ′ ( z ∗ ) = 0 F'_x(z^*)=0 F x ′ ( z ∗ ) = 0 for almost every x \mathbf{x} x , and therefore ∇ θ F ( θ ∗ ) = 0 \nabla_\theta F(\theta^*)=0 ∇ θ F ( θ ∗ ) = 0 . So, θ ∗ \theta^* θ ∗ is the unique stationary point. □
Corollary 8 (Finite-time convergence of minibatch projected SGD). Let Θ ⊂ R d \Theta\subset\mathbb{R}^d Θ ⊂ R d be compact and convex with θ ∗ ∈ Θ \theta^*\in\Theta θ ∗ ∈ Θ , and let Π Θ \Pi_\Theta Π Θ denote Euclidean projection onto Θ \Theta Θ . Suppose that ∇ F \nabla F ∇ F is differentiable at θ ∗ \theta^* θ ∗ , with ∇ 2 F ( θ ∗ ) = E θ ∗ [ ∇ 2 f i ( θ ∗ ) ] \nabla^2F(\theta^*)=\mathbb{E}_{\theta^*}[\nabla^2 f_i(\theta^*)] ∇ 2 F ( θ ∗ ) = E θ ∗ [ ∇ 2 f i ( θ ∗ )] finite. Assume also that, for some finite constant B B B , E [ ∥ ∇ θ f i ( θ ) ∥ 2 2 ] ≤ B 2 \mathbb{E}[\lVert\nabla_\theta f_i(\theta)\rVert_2^2]\le B^2 E [∥ ∇ θ f i ( θ ) ∥ 2 2 ] ≤ B 2 for all θ ∈ Θ \theta\in\Theta θ ∈ Θ . There exist constants 0 < κ ≤ L < ∞ 0<\kappa\le L<\infty 0 < κ ≤ L < ∞ , depending only on the population model and Θ \Theta Θ , for which the following guarantee holds. Let θ ( t ) \theta^{(t)} θ ( t ) denote the iterates of Algorithm 1 with minibatch size b b b , a fixed initialization θ ( 0 ) ∈ Θ \theta^{(0)}\in\Theta θ ( 0 ) ∈ Θ , and step sizes η i = 2 / [ κ ( i + t 0 ) ] \eta_i=2/[\kappa(i+t_0)] η i = 2/ [ κ ( i + t 0 )] , where t 0 ≥ max { 3 , 2 L 2 / κ 2 } t_0\ge\max\{3,2L^2/\kappa^2\} t 0 ≥ max { 3 , 2 L 2 / κ 2 } . Then, for every t = 1 , … , N t=1,\ldots,N t = 1 , … , N ,
E [ ∥ θ ( t ) − θ ∗ ∥ 2 2 ] ≤ t 0 2 ∥ θ ( 0 ) − θ ∗ ∥ 2 2 t 2 + 4 B 2 κ 2 b t . \mathbb{E}\left[\left\lVert\theta^{(t)}-\theta^*\right\rVert_2^2\right]\le\frac{t_0^2\left\lVert\theta^{(0)}-\theta^*\right\rVert_2^2}{t^2}+\frac{4B^2}{\kappa^2bt}. E [ θ ( t ) − θ ∗ 2 2 ] ≤ t 2 t 0 2 θ ( 0 ) − θ ∗ 2 2 + κ 2 b t 4 B 2 .
Proof. We first obtain quantitative bounds on the population gradient. The derivative of a weighted truncated exponential mean with respect to its rate is the negative of its variance. Differentiating Lemma 5 at the truth and applying the law of total variance therefore gives
∇ 2 F ( θ ∗ ) = E θ ∗ [ e 2 x ⊤ θ ∗ Var θ ∗ ( E θ ∗ [ H 0 ( T ∗ ) ∣ x , T , δ ] ∣ x ) x x ⊤ ] . \nabla^2 F(\theta^*) = \mathbb{E}_{\theta^*}\left[e^{2\mathbf{x}^{\top}\theta^*}\operatorname{Var}_{\theta^*}\left(\mathbb{E}_{\theta^*}[H_0(T^*) \mid\mathbf{x},T,\delta] \mid\mathbf{x}\right)\mathbf{x}\mathbf{x}^{\top}\right]. ∇ 2 F ( θ ∗ ) = E θ ∗ [ e 2 x ⊤ θ ∗ Var θ ∗ ( E θ ∗ [ H 0 ( T ∗ ) ∣ x , T , δ ] ∣ x ) x x ⊤ ] .
where all expectations are under the true sampled distribution. For almost every x \mathbf{x} x , uncensored events have positive probability and reveal a nonconstant, continuously distributed transformed event time. The conditional variance is therefore positive. Covariate nondegeneracy then implies ∇ 2 F ( θ ∗ ) ≻ 0 \nabla^2F(\theta^*) \succ0 ∇ 2 F ( θ ∗ ) ≻ 0 .
Since ∇ F ( θ ∗ ) = 0 \nabla F(\theta^*) = 0 ∇ F ( θ ∗ ) = 0 , differentiability of the gradient at θ ∗ \theta^* θ ∗ gives constants 0 < κ ≤ L < ∞ 0 < \kappa\le L < \infty 0 < κ ≤ L < ∞ such that
⟨ ∇ F ( θ ) , θ − θ ∗ ⟩ ≥ κ ∥ θ − θ ∗ ∥ 2 2 and ∥ ∇ F ( θ ) ∥ 2 ≤ L ∥ θ − θ ∗ ∥ 2 \langle\nabla F(\theta),\theta-\theta^*\rangle\ge\kappa\lVert\theta-\theta^*\rVert_2^2 \quad\text{and}\quad\lVert\nabla F(\theta)\rVert_2 \le L\lVert\theta-\theta^*\rVert_2 ⟨ ∇ F ( θ ) , θ − θ ∗ ⟩ ≥ κ ∥ θ − θ ∗ ∥ 2 2 and ∥ ∇ F ( θ ) ∥ 2 ≤ L ∥ θ − θ ∗ ∥ 2
in a neighborhood of θ ∗ \theta^* θ ∗ . Outside a sufficiently small open ball around θ ∗ \theta^* θ ∗ , the ratios of the left-hand sides to ∥ θ − θ ∗ ∥ 2 2 \lVert\theta-\theta^*\rVert_2^2 ∥ θ − θ ∗ ∥ 2 2 and ∥ θ − θ ∗ ∥ 2 \lVert\theta-\theta^*\rVert_2 ∥ θ − θ ∗ ∥ 2 , respectively, are continuous on the remaining compact subset of Θ \Theta Θ . The first ratio is strictly positive by Theorem 7. Adjusting κ \kappa κ and L L L therefore extends both bounds to all of Θ \Theta Θ .
Let f i , j f_{i,j} f i , j denote the single-observation negative log-likelihood for ( x i , j , T i , j , δ i , j ) (x_{i,j},T_{i,j},\delta_{i,j}) ( x i , j , T i , j , δ i , j ) . Each minibatch is independent of the preceding iterates. Conditional on θ ( i ) \theta^{(i)} θ ( i ) , its gradients are therefore independent and unbiased, so
E [ ∥ 1 b ∑ j = 1 b ∇ f i , j ( θ ( i ) ) − ∇ F ( θ ( i ) ) ∥ 2 2 ∣ θ ( i ) ] ≤ B 2 b . \mathbb{E}\left[\left.\left\lVert\frac{1}{b}\sum_{j=1}^{b}\nabla f_{i,j}(\theta^{(i)})-\nabla F(\theta^{(i)})\right\rVert_2^2\right|\theta^{(i)}\right]\le\frac{B^2}{b}. E b 1 j = 1 ∑ b ∇ f i , j ( θ ( i ) ) − ∇ F ( θ ( i ) ) 2 2 θ ( i ) ≤ b B 2 .
Expanding the squared distance after projection and applying the preceding bounds gives
E [ ∥ θ ( i + 1 ) − θ ∗ ∥ 2 2 ∣ θ ( i ) ] ≤ ( 1 − 2 κ η i + L 2 η i 2 ) ∥ θ ( i ) − θ ∗ ∥ 2 2 + η i 2 B 2 b . \mathbb{E}\left[\left.\lVert\theta^{(i+1)}-\theta^*\rVert_2^2\right|\theta^{(i)}\right]\le(1-2\kappa\eta_i+L^2\eta_i^2)\lVert\theta^{(i)}-\theta^*\rVert_2^2+\frac{\eta_i^2B^2}{b}. E [ ∥ θ ( i + 1 ) − θ ∗ ∥ 2 2 θ ( i ) ] ≤ ( 1 − 2 κ η i + L 2 η i 2 ) ∥ θ ( i ) − θ ∗ ∥ 2 2 + b η i 2 B 2 .
The step-size choice ensures η i ≤ κ / L 2 \eta_i\le\kappa/L^2 η i ≤ κ / L 2 . Taking expectations thus yields
E [ ∥ θ ( i + 1 ) − θ ∗ ∥ 2 2 ] ≤ ( 1 − 2 i + t 0 ) E [ ∥ θ ( i ) − θ ∗ ∥ 2 2 ] + 4 B 2 κ 2 b ( i + t 0 ) 2 . \mathbb{E}\left[\lVert\theta^{(i+1)}-\theta^*\rVert_2^2\right]\le\left(1-\frac{2}{i+t_0}\right)\mathbb{E}\left[\lVert\theta^{(i)}-\theta^*\rVert_2^2\right]+\frac{4B^2}{\kappa^2b(i+t_0)^2}. E [ ∥ θ ( i + 1 ) − θ ∗ ∥ 2 2 ] ≤ ( 1 − i + t 0 2 ) E [ ∥ θ ( i ) − θ ∗ ∥ 2 2 ] + κ 2 b ( i + t 0 ) 2 4 B 2 .
Multiplying by ( i + t 0 ) ( i + t 0 − 1 ) (i+t_0)(i+t_0-1) ( i + t 0 ) ( i + t 0 − 1 ) , using ( i + t 0 − 1 ) / ( i + t 0 ) ≤ 1 (i+t_0-1)/(i+t_0)\le1 ( i + t 0 − 1 ) / ( i + t 0 ) ≤ 1 , and summing over i = 0 , … , t − 1 i=0,\ldots,t-1 i = 0 , … , t − 1 cancels consecutive terms and gives
( t + t 0 − 2 ) ( t + t 0 − 1 ) E [ ∥ θ ( t ) − θ ∗ ∥ 2 2 ] ≤ ( t 0 − 2 ) ( t 0 − 1 ) ∥ θ ( 0 ) − θ ∗ ∥ 2 2 + 4 B 2 t κ 2 b . (t+t_0-2)(t+t_0-1)\mathbb{E}\left[\lVert\theta^{(t)}-\theta^*\rVert_2^2\right]\le(t_0-2)(t_0-1)\lVert\theta^{(0)}-\theta^*\rVert_2^2+\frac{4B^2t}{\kappa^2b}. ( t + t 0 − 2 ) ( t + t 0 − 1 ) E [ ∥ θ ( t ) − θ ∗ ∥ 2 2 ] ≤ ( t 0 − 2 ) ( t 0 − 1 ) ∥ θ ( 0 ) − θ ∗ ∥ 2 2 + κ 2 b 4 B 2 t .
Since ( t + t 0 − 2 ) ( t + t 0 − 1 ) ≥ t 2 (t+t_0-2)(t+t_0-1)\ge t^2 ( t + t 0 − 2 ) ( t + t 0 − 1 ) ≥ t 2 and ( t 0 − 2 ) ( t 0 − 1 ) ≤ t 0 2 (t_0-2)(t_0-1)\le t_0^2 ( t 0 − 2 ) ( t 0 − 1 ) ≤ t 0 2 , the claimed bound follows. □
Theorem 9 (A suboptimal local minimum). There exists a correctly specified truncated Cox model with a smooth, strictly positive baseline family and an identifiable joint parameter β = ( θ , γ ) \beta=(\theta,\gamma) β = ( θ , γ ) where γ \gamma γ is the parameter of the baseline family such that, under truncation to a single interval and without censoring, F F F has the true parameter β ∗ \beta^* β ∗ as its unique global minimizer, but also has a point β ′ \beta' β ′ in the interior of the parameter space with θ ′ ≠ θ ∗ \theta'\ne\theta^* θ ′ = θ ∗ satisfying
∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0 , but F ( β ′ ) > F ( β ∗ ) . \nabla F(\beta')=0\quad\text{and}\quad\nabla^2F(\beta')\succ0,\quad\text{but}\quad F(\beta')>F(\beta^*). ∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0 , but F ( β ′ ) > F ( β ∗ ) .
Proof. We start by defining a Cox model with one regression coefficient θ \theta θ and one unknown baseline parameter γ \gamma γ . Let τ = 1 / 2 \tau= 1/2 τ = 1/2 , let the covariate x ∈ { 0 , 1 } x \in\{0,1\} x ∈ { 0 , 1 } have equal probability in the sampled population, and retain individuals exactly when 0 < T ∗ < τ 0 < T^* < \tau 0 < T ∗ < τ . Assume no censoring. Define the hazard as h ( t ∣ x ; β ) = e x θ g γ ( t ) h(t \mid x;\beta) = e^{x\theta}g_\gamma(t) h ( t ∣ x ; β ) = e x θ g γ ( t ) , where β = ( θ , γ ) ∈ ( 0 , ∞ ) × R \beta= (\theta,\gamma) \in(0,\infty) \times\mathbb{R} β = ( θ , γ ) ∈ ( 0 , ∞ ) × R . We will construct the baseline family g γ g_\gamma g γ using fixed constants λ ′ \lambda' λ ′ , a a a , M M M . These constants are knobs that we will tune to get the desired outcomes from our construction. The construction proceeds in three main steps: (1) choose λ ′ \lambda' λ ′ to eliminate the regression gradient; (2) choose a a a to eliminate the baseline-shape gradient; and (3) choose M M M to make the Hessian positive definite.
We construct the baseline family to satisfy g 1 ( t ) = 1 / ( 1 − t ) g_1(t) = 1/(1-t) g 1 ( t ) = 1/ ( 1 − t ) and g 0 ( t ) = 1 g_0(t) = 1 g 0 ( t ) = 1 on [ 0 , τ ] [0,\tau] [ 0 , τ ] . The true parameter β ∗ = ( log 3 , 1 ) \beta^* = (\log3,1) β ∗ = ( log 3 , 1 ) then generates the sampled densities
p 0 ∗ ( t ) = 2 and p 1 ∗ ( t ) = 24 7 ( 1 − t ) 2 for t ∈ ( 0 , τ ) . p_0^*(t)=2 \quad\text{and}\quad p_1^*(t)=\frac{24}{7}(1-t)^2\text{ for }t\in(0,\tau). p 0 ∗ ( t ) = 2 and p 1 ∗ ( t ) = 7 24 ( 1 − t ) 2 for t ∈ ( 0 , τ ) .
Denote E ∗ \mathbb{E}^* E ∗ as the expectation under p x ∗ p_x^* p x ∗ and let m x = E x ∗ [ T ] m_x=\mathbb{E}_x^*[T] m x = E x ∗ [ T ] . Direct integration gives m 0 = 1 / 4 m_0=1/4 m 0 = 1/4 , m 1 = 11 / 56 m_1=11/56 m 1 = 11/56 , E 0 ∗ [ T 2 ] = 1 / 12 \mathbb{E}_0^*[T^2]=1/12 E 0 ∗ [ T 2 ] = 1/12 , and E 1 ∗ [ T 2 ] = 2 / 35 \mathbb{E}_1^*[T^2]=2/35 E 1 ∗ [ T 2 ] = 2/35 .
At the incorrect parameter value γ = 0 \gamma=0 γ = 0 , the sampled distribution in group x x x is exponential with rate e x θ e^{x\theta} e x θ , truncated to ( 0 , τ ) (0,\tau) ( 0 , τ ) . Since θ \theta θ affects only group x = 1 x=1 x = 1 , we choose its rate to match that group’s true mean. Let λ ′ > 0 \lambda'>0 λ ′ > 0 be the unique solution of
μ ( λ ′ ) = 11 56 where μ ( λ ) : = 1 λ − 1 2 ( e λ / 2 − 1 ) . \mu(\lambda')=\frac{11}{56}\quad\text{where}\quad\mu(\lambda):=\frac{1}{\lambda}-\frac{1}{2(e^{\lambda/2}-1)}. μ ( λ ′ ) = 56 11 where μ ( λ ) := λ 1 − 2 ( e λ /2 − 1 ) 1 .
The function μ ( λ ) \mu(\lambda) μ ( λ ) computes the mean of an exponential distribution of rate λ \lambda λ truncated to ( 0 , τ ) (0,\tau) ( 0 , τ ) . This solution exists because μ \mu μ is continuous and strictly decreasing from 1 / 4 1/4 1/4 to zero. The bounds e > 8 / 3 e>8/3 e > 8/3 and e 3 / 2 < 9 / 2 e^{3/2}<9/2 e 3/2 < 9/2 give
μ ( 2 ) > 1 5 > 11 56 > 4 21 > μ ( 3 ) , \mu(2)>\frac{1}{5}>\frac{11}{56}>\frac{4}{21}>\mu(3), μ ( 2 ) > 5 1 > 56 11 > 21 4 > μ ( 3 ) ,
so 2 < λ ′ < 3 2<\lambda'<3 2 < λ ′ < 3 . For completeness, the upper bound follows from
e 3 / 2 ≤ ∑ j = 0 3 ( 3 / 2 ) j j ! + ( 3 / 2 ) 4 4 ! 1 1 − 3 / 10 = 2011 448 < 9 2 . e^{3/2}\leq\sum_{j=0}^{3}\frac{(3/2)^j}{j!}+\frac{(3/2)^4}{4!}\frac{1}{1-3/10}=\frac{2011}{448}<\frac{9}{2}. e 3/2 ≤ j = 0 ∑ 3 j ! ( 3/2 ) j + 4 ! ( 3/2 ) 4 1 − 3/10 1 = 448 2011 < 2 9 .
Define the false parameter β ′ = ( log λ ′ , 0 ) \beta'=(\log\lambda',0) β ′ = ( log λ ′ , 0 ) . In particular, θ ′ = log λ ′ < log 3 = θ ∗ \theta'=\log\lambda'<\log3=\theta^* θ ′ = log λ ′ < log 3 = θ ∗ . Mean matching will make the regression derivative vanish at β ′ \beta' β ′ . We next choose how the baseline varies so that the derivative of the population loss with respect to γ \gamma γ also vanishes there. Writing λ x ′ = ( λ ′ ) x \lambda'_x=(\lambda')^x λ x ′ = ( λ ′ ) x , define, for j = 1 , 2 j=1,2 j = 1 , 2 ,
A j : = 1 2 ∑ x = 0 1 [ − E x ∗ [ T j ] + λ x ′ j + 1 E x ∗ [ T j + 1 ] + ( λ x ′ τ ) j + 1 ( j + 1 ) ( e λ x ′ τ − 1 ) ] . A_j:=\frac{1}{2}\sum_{x=0}^{1}\left[-\mathbb{E}_x^*[T^j]+\frac{\lambda'_x}{j+1}\mathbb{E}_x^*[T^{j+1}]+\frac{(\lambda'_x\tau)^{j+1}}{(j+1)(e^{\lambda'_x\tau}-1)}\right]. A j := 2 1 x = 0 ∑ 1 [ − E x ∗ [ T j ] + j + 1 λ x ′ E x ∗ [ T j + 1 ] + ( j + 1 ) ( e λ x ′ τ − 1 ) ( λ x ′ τ ) j + 1 ] .
The constant A j A_j A j is the derivative of the population loss at s = 0 s=0 s = 0 when the constant baseline is replaced by exp ( s t j ) \exp(st^j) exp ( s t j ) on the retained interval, with the rates for x = 0 x=0 x = 0 and x = 1 x=1 x = 1 fixed at 1 1 1 and λ ′ \lambda' λ ′ .
Using the moments above and the identity λ ′ τ / ( e λ ′ τ − 1 ) = 1 − λ ′ m 1 \lambda'\tau/(e^{\lambda'\tau}-1)=1-\lambda'm_1 λ ′ τ / ( e λ ′ τ − 1 ) = 1 − λ ′ m 1 gives
A 1 = 1 2 [ − 5 24 + 1 8 ( e 1 / 2 − 1 ) + 3 56 − 23 λ ′ 1120 ] < 0. A_1=\frac{1}{2}\left[-\frac{5}{24}+\frac{1}{8(e^{1/2}-1)}+\frac{3}{56}-\frac{23\lambda'}{1120}\right]<0. A 1 = 2 1 [ − 24 5 + 8 ( e 1/2 − 1 ) 1 + 56 3 − 1120 23 λ ′ ] < 0.
Indeed, e 1 / 2 > 1 + 1 / 2 + 1 / 8 + 1 / 48 = 79 / 48 e^{1/2}>1+1/2+1/8+1/48=79/48 e 1/2 > 1 + 1/2 + 1/8 + 1/48 = 79/48 implies
− 5 24 + 1 8 ( e 1 / 2 − 1 ) < − 11 744 < − 1 80 . -\frac{5}{24}+\frac{1}{8(e^{1/2}-1)}<-\frac{11}{744}<-\frac{1}{80}. − 24 5 + 8 ( e 1/2 − 1 ) 1 < − 744 11 < − 80 1 .
while λ ′ > 2 \lambda' > 2 λ ′ > 2 gives 3 / 56 − 23 λ ′ / 1120 < 1 / 80 3/56 - 23\lambda'/1120 < 1/80 3/56 − 23 λ ′ /1120 < 1/80 . Define the constant a : = A 2 / A 1 a := A_2/A_1 a := A 2 / A 1 which will be used to cancel the derivative of the baseline-shape, while the sign A 1 < 0 A_1 < 0 A 1 < 0 will let us increase the curvature around β ′ \beta' β ′ .
To define the full Cox model, we will define g γ g_\gamma g γ . Fix a smooth function χ : [ 0 , ∞ ) → [ 0 , 1 ] \chi: [0,\infty) \to[0,1] χ : [ 0 , ∞ ) → [ 0 , 1 ] equal to one on [ 0 , τ ] [0,\tau] [ 0 , τ ] and zero on [ 3 / 4 , ∞ ) [3/4,\infty) [ 3/4 , ∞ ) . For a constant M ≥ 0 M \ge0 M ≥ 0 to be chosen below, define
g γ ( t ) : = exp { χ ( t ) [ − γ 3 log ( 1 − t ) + ( γ − γ 3 ) ( t 2 − a t ) + M 2 ( γ 3 − γ 2 ) t ] } for t ∈ [ 0 , 3 / 4 ) , g_\gamma(t) := \exp\left\{\chi(t)\left[-\gamma^3\log(1-t) + (\gamma-\gamma^3)(t^2-at) + \frac{M}{2}(\gamma^3-\gamma^2)t\right]\right\} \quad\text{for } t \in[0,3/4), g γ ( t ) := exp { χ ( t ) [ − γ 3 log ( 1 − t ) + ( γ − γ 3 ) ( t 2 − a t ) + 2 M ( γ 3 − γ 2 ) t ] } for t ∈ [ 0 , 3/4 ) ,
and set g γ ( t ) = 1 g_\gamma(t)=1 g γ ( t ) = 1 for t ≥ 3 / 4 t \ge3/4 t ≥ 3/4 . This family is smooth and strictly positive, satisfies the required identities at γ = 0 , 1 \gamma=0,1 γ = 0 , 1 , and has cumulative hazard G γ ( t ) : = ∫ 0 t g γ ( u ) d u G_\gamma(t) := \int_0^t g_\gamma(u)\,du G γ ( t ) := ∫ 0 t g γ ( u ) d u diverging as t → ∞ t\to\infty t → ∞ . The cutoff only ensures that the baseline is well-defined outside the retained interval; it does not affect the sampled distributions.
The sampled density and population negative log-likelihood of our Cox model are
p x ( t ; β ) = e x θ g γ ( t ) exp [ − e x θ G γ ( t ) ] 1 − exp [ − e x θ G γ ( τ ) ] for t ∈ ( 0 , τ ) , p_x(t;\beta) = \frac{e^{x\theta}g_\gamma(t)\exp[-e^{x\theta}G_\gamma(t)]}{1-\exp[-e^{x\theta}G_\gamma(\tau)]} \quad\text{for } t\in(0,\tau), p x ( t ; β ) = 1 − exp [ − e x θ G γ ( τ )] e x θ g γ ( t ) exp [ − e x θ G γ ( t )] for t ∈ ( 0 , τ ) ,
F M ( β ) : = − 1 2 ∑ x = 0 1 ∫ 0 τ p x ∗ ( t ) log p x ( t ; β ) d t . F_M(\beta) := -\frac{1}{2}\sum_{x=0}^{1}\int_0^\tau p_x^*(t)\log p_x(t;\beta)\,dt. F M ( β ) := − 2 1 x = 0 ∑ 1 ∫ 0 τ p x ∗ ( t ) log p x ( t ; β ) d t .
The subscript denotes the dependence on the constant M M M .
At β ′ \beta' β ′ , differentiation with respect to θ \theta θ gives
∂ θ F M ( β ′ ) = 1 2 λ ′ ( m 1 − μ ( λ ′ ) ) = 0. \partial_\theta F_M(\beta') = \frac{1}{2}\lambda'(m_1-\mu(\lambda'))=0. ∂ θ F M ( β ′ ) = 2 1 λ ′ ( m 1 − μ ( λ ′ )) = 0.
Therefore, matching the mean when x = 1 x=1 x = 1 makes the regression derivative vanish. On the retained interval, ∂ γ log g γ ( t ) ∣ γ = 0 = t 2 − a t \left.\partial_\gamma\log g_\gamma(t)\right|_{\gamma=0}=t^2-at ∂ γ log g γ ( t ) ∣ γ = 0 = t 2 − a t . Differentiating the negative log-density therefore gives
∂ γ F M ( β ′ ) = A 2 − a A 1 = 0. \partial_\gamma F_M(\beta')=A_2-aA_1=0. ∂ γ F M ( β ′ ) = A 2 − a A 1 = 0.
Hence β ′ \beta' β ′ is stationary for every M M M .
Stationarity alone does not rule out a saddle point. We now use M M M to make the loss increase in every direction around β ′ \beta' β ′ . Let D , w , b D,w,b D , w , b be the entries of the Hessian when M = 0 M=0 M = 0 ,
∇ 2 F 0 ( β ′ ) = ( D w w b ) . \nabla^2 F_0(\beta')=\begin{pmatrix}D&w\\w&b\end{pmatrix}. ∇ 2 F 0 ( β ′ ) = ( D w w b ) .
The regression entry satisfies
D = 1 2 ( λ ′ ) 2 Var λ ′ ( T ) > 0 , D=\frac{1}{2}(\lambda')^2\operatorname{Var}_{\lambda'}(T)>0, D = 2 1 ( λ ′ ) 2 Var λ ′ ( T ) > 0 ,
where the variance is under the exponential distribution of rate λ ′ \lambda' λ ′ truncated to ( 0 , τ ) (0,\tau) ( 0 , τ ) . This follows from μ ′ ( λ ) = − Var λ ( T ) \mu'(\lambda)=-\operatorname{Var}_{\lambda}(T) μ ′ ( λ ) = − Var λ ( T ) and the equality of the means.
Changing M M M leaves the value and first shape derivative of g γ g_\gamma g γ at γ = 0 \gamma=0 γ = 0 unchanged, so it changes neither stationarity nor the Hessian entries D , w D,w D , w . However,
∂ γ γ log g γ ( t ) ∣ γ = 0 = − M t , ∂ γ γ g γ ( t ) ∣ γ = 0 = ( t 2 − a t ) 2 − M t . \left.\partial_{\gamma\gamma}\log g_\gamma(t)\right|_{\gamma=0}=-Mt,\qquad\left.\partial_{\gamma\gamma}g_\gamma(t)\right|_{\gamma=0}=(t^2-at)^2-Mt. ∂ γ γ log g γ ( t ) ∣ γ = 0 = − M t , ∂ γ γ g γ ( t ) ∣ γ = 0 = ( t 2 − a t ) 2 − M t .
Relative to M = 0 M = 0 M = 0 , the second shape derivative of G γ ( t ) G_\gamma(t) G γ ( t ) consequently changes by − M t 2 / 2 -Mt^2/2 − M t 2 /2 . Substituting these changes into the loss yields
∂ γ γ F M ( β ′ ) − ∂ γ γ F 0 ( β ′ ) = M 2 ∑ x = 0 1 [ m x − λ x ′ 2 E x ∗ [ T 2 ] − λ x ′ τ 2 2 ( e λ x ′ τ − 1 ) ] = − M A 1 . \partial_{\gamma\gamma}F_M(\beta')-\partial_{\gamma\gamma}F_0(\beta')=\frac{M}{2}\sum_{x=0}^{1}\left[m_x-\frac{\lambda'_x}{2}\mathbb{E}_x^*[T^2]-\frac{\lambda'_x\tau^2}{2(e^{\lambda'_x\tau}-1)}\right]=-MA_1. ∂ γ γ F M ( β ′ ) − ∂ γ γ F 0 ( β ′ ) = 2 M x = 0 ∑ 1 [ m x − 2 λ x ′ E x ∗ [ T 2 ] − 2 ( e λ x ′ τ − 1 ) λ x ′ τ 2 ] = − M A 1 .
Therefore,
∇ 2 F M ( β ′ ) = ( D w w b − M A 1 ) . \nabla^2F_M(\beta')=\begin{pmatrix} D & w \\ w & b-MA_1 \end{pmatrix}. ∇ 2 F M ( β ′ ) = ( D w w b − M A 1 ) .
All entries are finite, since the sampled densities and their parameter derivatives are smooth and locally bounded on the bounded observation interval. Because A 1 < 0 A_1<0 A 1 < 0 , increasing M M M increases the baseline-direction curvature without changing the other Hessian entries. Fix
M : = 1 + max { 0 , w 2 / D − b } − A 1 . M:=1+\frac{\max\{0,w^2/D-b\}}{-A_1}. M := 1 + − A 1 max { 0 , w 2 / D − b } .
Then b − M A 1 > w 2 / D b-MA_1>w^2/D b − M A 1 > w 2 / D , so the Schur complement gives ∇ 2 F M ( β ′ ) ≻ 0 \nabla^2F_M(\beta')\succ0 ∇ 2 F M ( β ′ ) ≻ 0 . Writing F = F M F=F_M F = F M for this fixed choice, we have
∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0. \nabla F(\beta')=0\ \text{and}\ \nabla^2F(\beta')\succ0. ∇ F ( β ′ ) = 0 and ∇ 2 F ( β ′ ) ≻ 0.
So β ′ \beta' β ′ is a strict local minimum in the interior of the parameter space.
We next show that no two distinct parameter pairs generate the same sampled conditional distributions. This establishes identifiability and rules out an alternative representation of the true model. Suppose β = ( θ , γ ) \beta=(\theta,\gamma) β = ( θ , γ ) and β ~ = ( θ ~ , γ ~ ) \widetilde{\beta}=(\widetilde{\theta},\widetilde{\gamma}) β = ( θ , γ ) generate the same sampled densities for both covariate groups. Since
d d t log p 1 ( t ; β ) p 0 ( t ; β ) = − ( e θ − 1 ) g γ ( t ) , \frac{d}{dt}\log\frac{p_1(t;\beta)}{p_0(t;\beta)}=-(e^\theta-1)g_\gamma(t), d t d log p 0 ( t ; β ) p 1 ( t ; β ) = − ( e θ − 1 ) g γ ( t ) ,
equality of the densities implies
( e θ − 1 ) g γ ( t ) = ( e θ ~ − 1 ) g γ ~ ( t ) . (e^\theta-1)g_\gamma(t)=(e^{\widetilde{\theta}}-1)g_{\widetilde{\gamma}}(t). ( e θ − 1 ) g γ ( t ) = ( e θ − 1 ) g γ ( t ) .
Taking t ↓ 0 t\downarrow0 t ↓ 0 and using g γ ( 0 ) = 1 g_\gamma(0)=1 g γ ( 0 ) = 1 gives θ = θ ~ \theta=\widetilde{\theta} θ = θ . Since θ > 0 \theta>0 θ > 0 , the common multiplier is nonzero, so g γ = g γ ~ g_\gamma=g_{\widetilde{\gamma}} g γ = g γ on the retained interval. Moreover,
d 3 d t 3 log g γ ( t ) = 2 γ 3 ( 1 − t ) 3 . \frac{d^3}{dt^3}\log g_\gamma(t)=\frac{2\gamma^3}{(1-t)^3}. d t 3 d 3 log g γ ( t ) = ( 1 − t ) 3 2 γ 3 .
The polynomial terms used to control the gradient and curvature disappear after three derivatives. Equality of the baseline shapes therefore implies γ 3 = γ ~ 3 \gamma^3=\widetilde{\gamma}^3 γ 3 = γ 3 , hence γ = γ ~ \gamma=\widetilde{\gamma} γ = γ . We conclude that the joint model is identifiable.
Finally, the population loss satisfies
F ( β ) − F ( β ∗ ) = 1 2 ∑ x = 0 1 D K L ( p x ∗ ∥ p x ( ⋅ ; β ) ) ≥ 0 , F(\beta)-F(\beta^*)=\frac{1}{2}\sum_{x=0}^{1}D_{\mathrm{KL}}\bigl(p_x^*\mathbin\Vert p_x(\cdot;\beta)\bigr)\geq0, F ( β ) − F ( β ∗ ) = 2 1 x = 0 ∑ 1 D KL ( p x ∗ ∥ p x ( ⋅ ; β ) ) ≥ 0 ,
with equality only at β = β ∗ \beta=\beta^* β = β ∗ by identifiability. So β ∗ \beta^* β ∗ is the unique global minimizer. Since θ ′ < θ ∗ \theta'<\theta^* θ ′ < θ ∗ , the strict local minimum β ′ \beta' β ′ satisfies F ( β ′ ) > F ( β ∗ ) F(\beta')>F(\beta^*) F ( β ′ ) > F ( β ∗ ) , completing the proof.
Theorem 10 (A suboptimal flat region after optimizing the baseline). Let H \mathcal{H} H be the class of smooth, strictly positive baseline hazards whose cumulative hazards diverge at infinity. There exists a correctly specified truncated Cox model whose true regression coefficient θ ∗ > 0 \theta^* > 0 θ ∗ > 0 is identifiable, but whose profiled population negative log-likelihood
F ^ ( θ ) : = inf h 0 ∈ H F ( θ , h 0 ) \widehat{F}(\theta) := \inf_{h_0 \in\mathcal{H}} F(\theta,h_0) F ( θ ) := h 0 ∈ H inf F ( θ , h 0 ) is constant on ( − ∞ , 0 ] (-\infty,0] ( − ∞ , 0 ] and satisfies F ^ ( θ ) > F ^ ( θ ∗ ) \widehat{F}(\theta) > \widehat{F}(\theta^*) F ( θ ) > F ( θ ∗ ) for every θ ≤ 0 \theta\le0 θ ≤ 0 . Consequently, every θ < 0 \theta< 0 θ < 0 is a suboptimal stationary point of F ^ \widehat{F} F and for every θ < 0 \theta< 0 θ < 0 , the infimum defining F ^ ( θ ) \widehat{F}(\theta) F ( θ ) is not attained by any baseline in H \mathcal{H} H .
Proof. Consider a binary covariate x ∈ { 0 , 1 } x \in\{0,1\} x ∈ { 0 , 1 } , with both values occurring with probability 1 / 2 1/2 1/2 in the sampled population. We retain individuals exactly when 0 < T ∗ < 1 0 < T^* < 1 0 < T ∗ < 1 and assume no censoring. Let θ ∗ = log 2 \theta^* = \log2 θ ∗ = log 2 and h 0 ∗ ( t ) = 1 h_0^*(t) = 1 h 0 ∗ ( t ) = 1 . The true sampled densities are
p 0 ∗ ( t ) = e − t 1 − e − 1 and p 1 ∗ ( t ) = 2 e − 2 t 1 − e − 2 for 0 < t < 1. p_0^*(t) = \frac{e^{-t}}{1-e^{-1}} \quad\text{and}\quad p_1^*(t) = \frac{2e^{-2t}}{1-e^{-2}} \quad\text{for } 0 < t < 1. p 0 ∗ ( t ) = 1 − e − 1 e − t and p 1 ∗ ( t ) = 1 − e − 2 2 e − 2 t for 0 < t < 1.
For a candidate parameter ( θ , h 0 ) (\theta,h_0) ( θ , h 0 ) with h 0 ∈ H h_0 \in\mathcal{H} h 0 ∈ H , let H 0 ( t ) = ∫ 0 t h 0 ( s ) d s H_0(t) = \int_0^t h_0(s)\,\mathrm{d}s H 0 ( t ) = ∫ 0 t h 0 ( s ) d s . The corresponding sampled density for covariate x x x is
p x ( t ; θ , h 0 ) = e x θ h 0 ( t ) e − e x θ H 0 ( t ) 1 − e − e x θ H 0 ( 1 ) for 0 < t < 1. p_x(t;\theta,h_0) = \frac{e^{x\theta}h_0(t)e^{-e^{x\theta}H_0(t)}}{1-e^{-e^{x\theta}H_0(1)}} \quad\text{for } 0 < t < 1. p x ( t ; θ , h 0 ) = 1 − e − e x θ H 0 ( 1 ) e x θ h 0 ( t ) e − e x θ H 0 ( t ) for 0 < t < 1.
The population negative log-likelihood is
F ( θ , h 0 ) = − 1 2 ∑ x = 0 1 ∫ 0 1 p x ∗ ( t ) log p x ( t ; θ , h 0 ) d t . F(\theta,h_0) = -\frac{1}{2}\sum_{x=0}^{1}\int_0^1 p_x^*(t)\log p_x(t;\theta,h_0)\,\mathrm{d}t. F ( θ , h 0 ) = − 2 1 x = 0 ∑ 1 ∫ 0 1 p x ∗ ( t ) log p x ( t ; θ , h 0 ) d t .
Define the pooled true density and its loss by
p p o o l ( t ) : = p 0 ∗ ( t ) + p 1 ∗ ( t ) 2 and F p o o l : = − ∫ 0 1 p p o o l ( t ) log p p o o l ( t ) d t . p_{\mathrm{pool}}(t) := \frac{p_0^*(t)+p_1^*(t)}{2}\quad\text{and}\quad F_{\mathrm{pool}} := -\int_0^1 p_{\mathrm{pool}}(t)\log p_{\mathrm{pool}}(t)\,\mathrm{d}t. p pool ( t ) := 2 p 0 ∗ ( t ) + p 1 ∗ ( t ) and F pool := − ∫ 0 1 p pool ( t ) log p pool ( t ) d t .
Now, fix θ ≤ 0 < θ ∗ \theta\le0 < \theta^* θ ≤ 0 < θ ∗ . For every h 0 ∈ H h_0 \in\mathcal{H} h 0 ∈ H ,
d d t log p 1 ( t ; θ , h 0 ) p 0 ( t ; θ , h 0 ) = − ( e θ − 1 ) h 0 ( t ) ≥ 0 , \frac{\mathrm{d}}{\mathrm{d}t}\log\frac{p_1(t;\theta,h_0)}{p_0(t;\theta,h_0)} = -(e^\theta-1)h_0(t) \ge0, d t d log p 0 ( t ; θ , h 0 ) p 1 ( t ; θ , h 0 ) = − ( e θ − 1 ) h 0 ( t ) ≥ 0 ,
so the candidate likelihood ratio p 1 / p 0 p_1/p_0 p 1 / p 0 is nondecreasing. In contrast,
p 1 ∗ ( t ) p 0 ∗ ( t ) = 2 ( 1 − e − 1 ) 1 − e − 2 e − t \frac{p_1^*(t)}{p_0^*(t)} = \frac{2(1-e^{-1})}{1-e^{-2}}e^{-t} p 0 ∗ ( t ) p 1 ∗ ( t ) = 1 − e − 2 2 ( 1 − e − 1 ) e − t
is strictly decreasing. Therefore, when θ ≤ 0 \theta\le0 θ ≤ 0 , the candidate model does not have the same strictly decreasing ratio of the likelihoods that the true model has. We first show that every such candidate has population loss at least F p o o l F_{\mathrm{pool}} F pool . Define
η ( t ) : = p 1 ∗ ( t ) 2 p p o o l ( t ) . \eta(t) := \frac{p_1^*(t)}{2p_{\mathrm{pool}}(t)}. η ( t ) := 2 p pool ( t ) p 1 ∗ ( t ) .
Since p 1 ∗ / p 0 ∗ p_1^*/p_0^* p 1 ∗ / p 0 ∗ is strictly decreasing, η \eta η is strictly decreasing. In addition,
p 0 ∗ ( t ) = 2 p p o o l ( t ) ( 1 − η ( t ) ) and p 1 ∗ ( t ) = 2 p p o o l ( t ) η ( t ) . p_0^*(t) = 2p_{\mathrm{pool}}(t)(1-\eta(t)) \quad\text{and}\quad p_1^*(t) = 2p_{\mathrm{pool}}(t)\eta(t). p 0 ∗ ( t ) = 2 p pool ( t ) ( 1 − η ( t )) and p 1 ∗ ( t ) = 2 p pool ( t ) η ( t ) .
Using − log v ≥ 1 − v -\log v \ge1-v − log v ≥ 1 − v , we obtain
F ( θ , h 0 ) − F p o o l ≥ 1 2 ∑ x = 0 1 ∫ 0 1 p x ∗ ( t ) ( 1 − p x ( t ; θ , h 0 ) p p o o l ( t ) ) d t . F(\theta,h_0)-F_{\mathrm{pool}} \ge\frac{1}{2}\sum_{x=0}^{1}\int_0^1 p_x^*(t)\left(1-\frac{p_x(t;\theta,h_0)}{p_{\mathrm{pool}}(t)}\right)\,dt. F ( θ , h 0 ) − F pool ≥ 2 1 x = 0 ∑ 1 ∫ 0 1 p x ∗ ( t ) ( 1 − p pool ( t ) p x ( t ; θ , h 0 ) ) d t .
Substituting the expressions above for p 0 ∗ p_0^* p 0 ∗ and p 1 ∗ p_1^* p 1 ∗ gives
F ( θ , h 0 ) − F p o o l ≥ − ∫ 0 1 η ( t ) ( p 1 ( t ; θ , h 0 ) − p 0 ( t ; θ , h 0 ) ) d t . F(\theta,h_0)-F_{\mathrm{pool}} \ge-\int_0^1 \eta(t)\left(p_1(t;\theta,h_0)-p_0(t;\theta,h_0)\right)\,dt. F ( θ , h 0 ) − F pool ≥ − ∫ 0 1 η ( t ) ( p 1 ( t ; θ , h 0 ) − p 0 ( t ; θ , h 0 ) ) d t .
Since both candidate densities integrate to one, the right-hand side can be written as
− Cov T ∼ p 0 ( ⋅ ; θ , h 0 ) ( η ( T ) , p 1 ( T ; θ , h 0 ) p 0 ( T ; θ , h 0 ) ) . -\operatorname{Cov}_{T\sim p_0(\cdot;\theta,h_0)}\left(\eta(T),\frac{p_1(T;\theta,h_0)}{p_0(T;\theta,h_0)}\right). − Cov T ∼ p 0 ( ⋅ ; θ , h 0 ) ( η ( T ) , p 0 ( T ; θ , h 0 ) p 1 ( T ; θ , h 0 ) ) .
The covariance is nonpositive because η \eta η is decreasing while p 1 / p 0 p_1/p_0 p 1 / p 0 is nondecreasing, so these two functions are oppositely monotone under T ∼ p 0 ( ⋅ ; θ , h 0 ) T\sim p_0(\cdot;\theta,h_0) T ∼ p 0 ( ⋅ ; θ , h 0 ) . Hence
F ( θ , h 0 ) ≥ F p o o l . F(\theta,h_0)\ge F_{\mathrm{pool}}. F ( θ , h 0 ) ≥ F pool .
When θ < 0 \theta<0 θ < 0 , the ratio p 1 / p 0 p_1/p_0 p 1 / p 0 is strictly increasing because h 0 ( t ) > 0 h_0(t)>0 h 0 ( t ) > 0 , while η \eta η is strictly decreasing. Since p 0 ( ⋅ ; θ , h 0 ) p_0(\cdot;\theta,h_0) p 0 ( ⋅ ; θ , h 0 ) has positive density on ( 0 , 1 ) (0,1) ( 0 , 1 ) , the covariance is strictly negative and therefore
F ( θ , h 0 ) > F p o o l F(\theta,h_0)>F_{\mathrm{pool}} F ( θ , h 0 ) > F pool
for every h 0 ∈ H h_0\in\mathcal{H} h 0 ∈ H .
We next show that F p o o l F_{\mathrm{pool}} F pool can nevertheless be approached arbitrarily closely for every fixed θ ≤ 0 \theta\le0 θ ≤ 0 . Extend the formula for p p o o l p_{\mathrm{pool}} p pool smoothly to t ≥ 0 t\ge0 t ≥ 0 . Let χ : [ 0 , ∞ ) → [ 0 , 1 ] \chi:[0,\infty)\to[0,1] χ : [ 0 , ∞ ) → [ 0 , 1 ] be smooth, equal to one on [ 0 , 1 ] [0,1] [ 0 , 1 ] , and equal to zero on [ 2 , ∞ ) [2,\infty) [ 2 , ∞ ) . For ε > 0 \varepsilon>0 ε > 0 , define
h 0 , ε ( t ) : = ε χ ( t ) p p o o l ( t ) + 1 − χ ( t ) . h_{0,\varepsilon}(t):=\varepsilon\chi(t)p_{\mathrm{pool}}(t)+1-\chi(t). h 0 , ε ( t ) := ε χ ( t ) p pool ( t ) + 1 − χ ( t ) .
This baseline belongs to H \mathcal{H} H since it is smooth and strictly positive, and it equals one for t ≥ 2 t\ge2 t ≥ 2 , so its cumulative hazard diverges at infinity. On the retained interval, h 0 , ε ( t ) = ε p p o o l ( t ) h_{0,\varepsilon}(t)=\varepsilon p_{\mathrm{pool}}(t) h 0 , ε ( t ) = ε p pool ( t ) . Since ∫ 0 1 p p o o l ( t ) d t = 1 \int_0^1p_{\mathrm{pool}}(t)\,dt=1 ∫ 0 1 p pool ( t ) d t = 1 , the corresponding sampled density satisfies
p x , ε ( t ) p p o o l ( t ) = ε e x θ exp [ − ε e x θ ∫ 0 t p p o o l ( s ) d s ] 1 − e − ε e x θ . \frac{p_{x,\varepsilon}(t)}{p_{\mathrm{pool}}(t)}
=
\frac{\varepsilon e^{x\theta}\exp\left[-\varepsilon e^{x\theta}\int_0^t p_{\mathrm{pool}}(s)\,ds\right]}{1-e^{-\varepsilon e^{x\theta}}}. p pool ( t ) p x , ε ( t ) = 1 − e − ε e x θ ε e x θ exp [ − ε e x θ ∫ 0 t p pool ( s ) d s ] .
As ε ↓ 0 \varepsilon\downarrow0 ε ↓ 0 , the right-hand side converges uniformly to one on [ 0 , 1 ] [0,1] [ 0 , 1 ] . Therefore,
F ( θ , h 0 , ε ) ⟶ F p o o l . F(\theta,h_{0,\varepsilon})\longrightarrow F_{\mathrm{pool}}. F ( θ , h 0 , ε ) ⟶ F pool .
Combining this with the lower bound above yields
F ^ ( θ ) = F p o o l . \widehat{F}(\theta)=F_{\mathrm{pool}}. F ( θ ) = F pool .
for every θ ≤ 0 \theta\le0 θ ≤ 0 . So, the profiled loss is constant on ( − ∞ , 0 ] (-\infty, 0] ( − ∞ , 0 ] . Moreover, when θ < 0 \theta< 0 θ < 0 , the strict lower bound shows that no baseline h 0 ∈ H h_0 \in\mathcal{H} h 0 ∈ H attains this infimum.
It remains to verify that the true regression coefficient is identifiable. Suppose some ( θ , h 0 ) (\theta, h_0) ( θ , h 0 ) satisfies p x ( ⋅ ; θ , h 0 ) = p x ∗ p_x(\cdot;\theta,h_0)=p_x^* p x ( ⋅ ; θ , h 0 ) = p x ∗ for both x = 0 x=0 x = 0 and x = 1 x=1 x = 1 . Equality of the derivatives of the two log-density ratios gives
( e θ − 1 ) h 0 ( t ) = 1 for 0 < t < 1. (\mathrm{e}^{\theta}-1)h_0(t)=1 \text{ for } 0<t<1. ( e θ − 1 ) h 0 ( t ) = 1 for 0 < t < 1.
So h 0 h_0 h 0 is constant on the retained interval. For x = 0 x=0 x = 0 , the logarithmic derivative of the candidate density is − h 0 -h_0 − h 0 , while the logarithmic derivative of p 0 ∗ p_0^* p 0 ∗ is − 1 -1 − 1 . We conclude that h 0 ( t ) = 1 h_0(t)=1 h 0 ( t ) = 1 on ( 0 , 1 ) (0,1) ( 0 , 1 ) , and the preceding identity gives e θ − 1 = 1 \mathrm{e}^{\theta}-1=1 e θ − 1 = 1 . Hence θ = log 2 = θ ∗ \theta=\log2=\theta^* θ = log 2 = θ ∗ , so the true regression coefficient is identifiable.
Finally, because the true model belongs to the candidate class, for every h 0 ∈ H h_0\in\mathcal{H} h 0 ∈ H ,
F ( θ ∗ , h 0 ) − F ( θ ∗ , h 0 ∗ ) = 1 2 ∑ x = 0 1 D K L ( p x ∗ ∥ p x ( ⋅ ; θ ∗ , h 0 ) ) ≥ 0. F(\theta^*,h_0)-F(\theta^*,h_0^*)=\frac{1}{2}\sum_{x=0}^{1}D_{\mathrm{KL}}\left(p_x^*\middle\|p_x(\cdot;\theta^*,h_0)\right)\ge0. F ( θ ∗ , h 0 ) − F ( θ ∗ , h 0 ∗ ) = 2 1 x = 0 ∑ 1 D KL ( p x ∗ ∥ p x ( ⋅ ; θ ∗ , h 0 ) ) ≥ 0.
Hence
F ^ ( θ ∗ ) = F ( θ ∗ , h 0 ∗ ) . \widehat{F}(\theta^*)=F(\theta^*,h_0^*). F ( θ ∗ ) = F ( θ ∗ , h 0 ∗ ) .
Moreover,
F p o o l − F ^ ( θ ∗ ) = 1 2 ∑ x = 0 1 D K L ( p x ∗ ∥ p p o o l ) > 0 , F_{\mathrm{pool}}-\widehat{F}(\theta^*)=\frac{1}{2}\sum_{x=0}^{1}D_{\mathrm{KL}}\left(p_x^*\middle\|p_{\mathrm{pool}}\right)>0, F pool − F ( θ ∗ ) = 2 1 x = 0 ∑ 1 D KL ( p x ∗ ∥ p pool ) > 0 ,
because p 0 ∗ ≠ p 1 ∗ p_0^*\ne p_1^* p 0 ∗ = p 1 ∗ . Therefore, F ^ \widehat{F} F is constant and strictly suboptimal on ( − ∞ , 0 ] (-\infty,0] ( − ∞ , 0 ] . In particular, every θ < 0 \theta<0 θ < 0 is a suboptimal stationary point of the profiled population loss.
Further details on the experiments
We use four datasets for distinct clinical applications: HEARTS, SUPPORT, METABRIC, and FLCHAIN. HEARTS contains patient-donor matches for predicting post-transplant graft survival from the UNOS patient registry. SUPPORT contains data from hospitalized adults with the goal of predicting time to death. The dataset contains 8,873 patients and 14 clinical covariates. METABRIC contains 1,903 patients with breast cancer and 9 clinical and molecular covariates. FLCHAIN contains 7,871 individuals from a population-based study of serum free light chains and mortality. We use 8 of the 9 baseline covariates, excluding the cause-of-death variable. All experiments are conducted on an M4 Pro processor with 24GB unified memory. Other than the UNOS registry, the other datasets are publicly available in Python through standard libraries.
For each dataset, we randomly split patients into training, validation, and test sets containing 70%, 15%, and 15% of the cohort, respectively. All data preprocessing is fixed using the training split only. Continuous covariates are median-imputed when necessary and standardized to zero mean and unit variance. Missing categorical values are represented by a separate category, and categorical covariates are one-hot encoded. The preprocessing steps are applied without modification to the validation and test sets. We fix a random seed of 20260914.
Semi-synthetic data generation
The original observed survival times and censoring indicators from the datasets are used to fit the survival model that we ultimately use to construct the semi-synthetic data.
Table 3. Details of datasets used in the semi-synthetic experiments.
We fit both a standard Cox regression model trained using the standard Cox partial likelihood and the original event and censoring indicators and a neural network model (see Section D.4). We select the model using the validation split and then freeze its parameters. The fitted model is used only to define the semi-synthetic data-generating process and is not included among the methods evaluated in our experiments.
Before fitting the baseline hazard, we adjust the log-risk scores by their mean to address the arbitrary offset in the Cox risk score. Define
c = 1 ∣ t r a i n ∣ ∑ i ∈ t r a i n r ( x i ) , c = \frac{1}{|\mathrm{train}|} \sum_{i \in\mathrm{train}} r(x_i), c = ∣ train ∣ 1 i ∈ train ∑ r ( x i ) ,
where r r r is the regression or neural network component of the Cox model. Then compute the ground-truth risk function as
r ∗ ( x ) = r ( x ) − c . r^{*}(x) = r(x) - c. r ∗ ( x ) = r ( x ) − c .
Subtracting the mean fixes the otherwise arbitrary additive offset in the Cox risk score. We absorb the corresponding shift into the baseline hazard so that the resulting conditional survival distribution is unchanged.
We next estimate the cumulative baseline hazard from the original training data using the Breslow estimator and r ∗ ( x ) r^{*}(x) r ∗ ( x ) , denoted H 0 ∗ H^{*}_{0} H 0 ∗ . Since the Breslow estimator is a step function, we linearly interpolate between the discrete points to obtain a continuous, nondecreasing cumulative hazard. We extrapolate using a positive slope at the final point. This results in a continuous function H 0 ∗ H^{*}_{0} H 0 ∗ with a computable inverse and with H 0 ∗ ( t ) → ∞ H^{*}_{0}(t) \to\infty H 0 ∗ ( t ) → ∞ as t → ∞ t \to\infty t → ∞ . Both r ∗ r^{*} r ∗ and H 0 ∗ H^{*}_{0} H 0 ∗ are fixed and treated as the exact ground-truth model in all subsequent synthetic experiments.
For each patient x i x_i x i , we independently sample E i ∼ Exponential ( 1 ) E_i \sim\operatorname{Exponential}(1) E i ∼ Exponential ( 1 ) and generate the latent event time
T i ∗ = ( H 0 ∗ ) − 1 ( E i e − r ∗ ( x i ) ) . T_i^{*} = (H^{*}_{0})^{-1}\left(E_i e^{-r^{*}(x_i)}\right). T i ∗ = ( H 0 ∗ ) − 1 ( E i e − r ∗ ( x i ) ) .
The generated outcomes follow the proportional-hazards model defined by
h ∗ ( t ∣ x ) = h 0 ∗ ( t ) exp ( r ∗ ( x ) ) . h^{*}(t \mid x) = h^{*}_{0}(t) \exp(r^{*}(x)). h ∗ ( t ∣ x ) = h 0 ∗ ( t ) exp ( r ∗ ( x )) .
In these synthetic experiments, the true event time and conditional survival distribution are known for every patient. Truncation and right censoring are then imposed synthetically based on the generated event times. All models are evaluated on the full, untruncated synthetic test set. This allows us to measure how well each method recovers the underlying risk function and survival distribution rather than relying only on performance against censored observational outcomes.
Synthetic truncation and censoring
We impose synthetic right censoring and truncation based on the generated event time. The censoring mechanism is fixed separately for each dataset, while we parameterize the severity of truncation which we vary in the experiments.
For each dataset, let r r r denote the fraction of data points that are right-censored in the original data. We independently generate censoring times C i C_i C i for each patient i i i from an exponential distribution. We select the rate of this exponential so that the semi-synthetic training population has the same censoring rate r r r . We then observe
T i = min { T i ∗ , C i } and δ i = I { T i ∗ ≤ C i } . T_i = \min\{T_i^*, C_i\} \text{ and } \delta_i = \mathbb{I}\{T_i^* \le C_i\}. T i = min { T i ∗ , C i } and δ i = I { T i ∗ ≤ C i } .
The censoring distribution is calibrated once for each dataset, and then fixed across the rest of the experiments.
We implement a multi-interval weighted truncation mechanism with tunable strength. To obtain comparable truncation mechanisms across datasets with different time scales, we define the intervals using quartiles of the event-time distribution in the synthetic training data. Let c 1 , c 2 , c 3 c_1, c_2, c_3 c 1 , c 2 , c 3 denote the 25th, 50th, and 75th percentiles, and define
I 1 = ( 0 , c 1 ) , I 2 = ( c 1 , c 2 ) , I 3 = ( c 2 , c 3 ) , and I 4 = ( c 3 , ∞ ) . I_1 = (0,c_1), I_2 = (c_1,c_2), I_3 = (c_2,c_3), \text{ and } I_4 = (c_3,\infty). I 1 = ( 0 , c 1 ) , I 2 = ( c 1 , c 2 ) , I 3 = ( c 2 , c 3 ) , and I 4 = ( c 3 , ∞ ) .
Conditional on T i ∗ ∈ I k T_i^* \in I_k T i ∗ ∈ I k , patient i i i is retained independently with probability q k ( ζ ) = e − ζ a k q_k(\zeta) = e^{-\zeta a_k} q k ( ζ ) = e − ζ a k , where we define a a a for each interval as ( a 1 , a 2 , a 3 , a 4 ) = ( 1 2 , 3 2 , 1 , 2 ) (a_1,a_2,a_3,a_4) = \left(\frac{1}{2},\frac{3}{2},1,2\right) ( a 1 , a 2 , a 3 , a 4 ) = ( 2 1 , 2 3 , 1 , 2 ) .
The parameter ζ \zeta ζ controls the intensity of truncation. When ζ = 0 \zeta= 0 ζ = 0 , all observations are retained. Increasing ζ \zeta ζ decreases the probability of observing patients in every interval, but at different rates. The coefficients are deliberately nonmonotone in event time. In particular, the second quartile is downsampled more aggressively than the third. For each patient i i i , we retain them independently with probability q k ( ζ ) q_k(\zeta) q k ( ζ ) when T i ∗ ∈ I k T_i^* \in I_k T i ∗ ∈ I k .
We run the experiments with ζ ∈ { 0 , 0.25 , 0.5 , 1 , 1.5 , 2 } \zeta\in\{0, 0.25, 0.5, 1, 1.5, 2\} ζ ∈ { 0 , 0.25 , 0.5 , 1 , 1.5 , 2 } , corresponding to expected removed percents { 0 , 26 , 44 , 67 , 79 , 86 } % \{0, 26, 44, 67, 79, 86\}\% { 0 , 26 , 44 , 67 , 79 , 86 } % . We perform 10 independent runs per truncation level.
Projected SGD settings
We implement Algorithm 1 with the following hyperparameter settings: learning rate 10 − 3 10^{-3} 1 0 − 3 , weight decay 10 − 4 10^{-4} 1 0 − 4 , batch size 512, at most 500 epochs with early stopping patience 30. When the data-generating model is Cox regression, we use the projection set that is the Euclidean ball with radius 5. When the data-generating model is a neural network, we use the same projection set.
Neural network model
For each dataset we augment the Cox model with a neural risk function over the covariates. This model is commonly known as DeepSurv [21 ] . The hazard is h ( t ∣ x ) = h 0 ( t ) exp ( r ϕ ( x ) ) h(t \mid x) = h_0(t) \exp(r_\phi(x)) h ( t ∣ x ) = h 0 ( t ) exp ( r ϕ ( x )) where r ϕ : R d → R r_\phi: \mathbb{R}^d \to\mathbb{R} r ϕ : R d → R is a multilayer perceptron that outputs a scalar. We use two hidden layers of width 64, with ReLU activations and dropout probability 0.1, followed by a linear scalar output.
All neural network models are trained with Adam using learning rate 10 − 3 10^{-3} 1 0 − 3 , weight decay 10 − 4 10^{-4} 1 0 − 4 , and batch size 512, for at most 500 epochs with early stopping patience 30. They therefore differ only in whether the loss accounts for the truncation mechanism. Both the standard and truncated model are initialized with identical weights and differ only in the loss.
The standard neural network ignores the truncation mechanism and minimizes the ordinary negative log-likelihood. For patient i i i , let z i = r ϕ ( x i ) z_i = r_\phi(x_i) z i = r ϕ ( x i ) and S i ( t ; ϕ ) = exp ( − e z i H 0 ∗ ( t ) ) S_i(t;\phi) = \exp(-e^{z_i} H_0^*(t)) S i ( t ; ϕ ) = exp ( − e z i H 0 ∗ ( t )) . Up to terms independent of ϕ \phi ϕ , the standard loss is f i ( ϕ ) = − δ i z i + e z i H 0 ∗ ( T i ) f_i(\phi) = -\delta_i z_i + e^{z_i} H_0^*(T_i) f i ( ϕ ) = − δ i z i + e z i H 0 ∗ ( T i ) .
The truncated neural network instead conditions this likelihood on inclusion. For a single z i z_i z i , recall the probability of inclusion is π i ( ϕ ) = ∑ k = 1 K q k [ S i ( t 0 , k ; ϕ ) − S i ( t 1 , k ; ϕ ) ] \pi_i(\phi)=\sum_{k=1}^{K}q_k\left[S_i(t_{0,k};\phi)-S_i(t_{1,k};\phi)\right] π i ( ϕ ) = ∑ k = 1 K q k [ S i ( t 0 , k ; ϕ ) − S i ( t 1 , k ; ϕ ) ] . The truncated negative log-likelihood loss is then
f i trunc ( ϕ ) = δ i [ − z i + e z i H 0 ∗ ( T i ) ] − ( 1 − δ i ) log π i ( T i ; ϕ ) + log π i ( ϕ ) . f_i^{\operatorname{trunc}}(\phi)=\delta_i\left[-z_i+e^{z_i}H_0^*(T_i)\right]-(1-\delta_i)\log\pi_i(T_i;\phi)+\log\pi_i(\phi). f i trunc ( ϕ ) = δ i [ − z i + e z i H 0 ∗ ( T i ) ] − ( 1 − δ i ) log π i ( T i ; ϕ ) + log π i ( ϕ ) .
This truncated loss is exactly the likelihood of the original truncated Cox model with the linear predictor x i T θ x_i^{\mathsf{T}}\theta x i T θ replaced by the neural network r ϕ ( x i ) r_\phi(x_i) r ϕ ( x i ) .
Enlarging the HEARTS dataset
We augment the HEARTS dataset to construct a synthetic dataset with arbitrarily many samples and covariates. We start by fixing a data-generating linear Cox model as before (after dropping collinear features and applying whitening). Given a target population size N N N and dimension d d d , we set the number of synthetic features to be the difference between the actual HEARTS features and the target number d d d . We then draw indices s 1 , … , s N s_1,\ldots,s_N s 1 , … , s N uniformly with replacement from the real training samples, so each x s i x_{s_i} x s i is a sample from the original HEARTS dataset. We append Gaussian features by drawing z j ∼ N ( 0 , 1 ) z_j\sim\mathcal{N}(0,1) z j ∼ N ( 0 , 1 ) independently for each added covariate. We reuse the regression coefficients for the original features. For the synthetic features we draw a single fixed coefficient θ j ∼ N ( 0 , 1 ) \theta_j\sim\mathcal{N}(0,1) θ j ∼ N ( 0 , 1 ) . We scale the sampled coefficients to unit norm, then rescale it so that the synthetic features contribute half the variance of the risk score from the original features. We apply censoring and truncation exactly the same as before.
Known-Baseline Expectation Maximization
We compare our first-order optimization method against a known-baseline expectation maximization (EM) adaptation of the missing-data approach of Rennert and Xie [ [36 ] . To account for truncation, we use the missing-data approach in which each data point represents an expected number of individuals inversely proportional to its probability of inclusion. At each iteration, the E-step computes this expected number of represented individuals and their expected total transformed event time under the current parameter estimate. The M-step then maximizes the corresponding expected complete-data Cox log-likelihood.
For observation i i i , let λ i = e x i T θ \lambda_i=e^{x_i^{\mathsf{T}}\theta} λ i = e x i T θ and let π i ( θ ) \pi_i(\theta) π i ( θ ) denote its probability of inclusion. The E-step quantities are
N i = 1 π i ( θ ) N_i=\frac{1}{\pi_i(\theta)} N i = π i ( θ ) 1
and
A i = δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) + 1 λ i π i ( θ ) − μ i ( θ ) . A_i=\delta_iH_0(T_i)+(1-\delta_i)\mu_i(T_i\mid\theta)+\frac{1}{\lambda_i\pi_i(\theta)}-\mu_i(\theta). A i = δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ) + λ i π i ( θ ) 1 − μ i ( θ ) .
Holding these quantities fixed, the M-step maximizes
Q ( θ ) = ∑ i = 1 n [ N i x i T θ − A i e x i T θ ] . Q(\theta)=\sum_{i=1}^{n}\left[N_i x_i^{\mathsf{T}}\theta-A_i e^{x_i^{\mathsf{T}}\theta}\right]. Q ( θ ) = i = 1 ∑ n [ N i x i T θ − A i e x i T θ ] .
This objective is concave and is optimized using Newton’s method. The quantities π i \pi_i π i , μ i \mu_i μ i , and μ i ( T i ∣ θ ) \mu_i(T_i\mid\theta) μ i ( T i ∣ θ ) are computed in closed form using the same interval-weighted exponential formulas as our likelihood implementation.
We use the same stopping condition as the first-order methods and the same regularization as in projected SGD. The full procedure is given in Algorithm 2.
Algorithm 2 Known-baseline EM for truncated Cox regression
Require: Retained data { ( x i , T i , δ i ) } i = 1 n \{(x_i,T_i,\delta_i)\}_{i=1}^{n} {( x i , T i , δ i ) } i = 1 n , known H 0 H_0 H 0
Initialize θ ( 0 ) = 0 \theta^{(0)} = 0 θ ( 0 ) = 0
for m = 0 , 1 , … m = 0,1,\ldots m = 0 , 1 , … do
for i = 1 , … , n i = 1,\ldots,n i = 1 , … , n do
λ i ← e x i T θ ( m ) , π i ← π i ( θ ( m ) ) , N i ← 1 / π i \lambda_i \leftarrow e^{x_i^{\mathsf{T}}\theta^{(m)}},\ \pi_i \leftarrow\pi_i(\theta^{(m)}),\ N_i \leftarrow1/\pi_i λ i ← e x i T θ ( m ) , π i ← π i ( θ ( m ) ) , N i ← 1/ π i
A i ← δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ( m ) ) + 1 λ i π i − μ i ( θ ( m ) ) A_i \leftarrow\delta_i H_0(T_i) + (1-\delta_i)\mu_i(T_i\mid\theta^{(m)}) + \frac{1}{\lambda_i\pi_i} - \mu_i(\theta^{(m)}) A i ← δ i H 0 ( T i ) + ( 1 − δ i ) μ i ( T i ∣ θ ( m ) ) + λ i π i 1 − μ i ( θ ( m ) )
θ ( m + 1 ) ← arg max θ ∑ i [ N i x i T θ − A i e x i T θ ] \theta^{(m+1)} \leftarrow\arg\max_\theta\sum_i \left[N_i x_i^{\mathsf{T}}\theta- A_i e^{x_i^{\mathsf{T}}\theta}\right] θ ( m + 1 ) ← arg max θ ∑ i [ N i x i T θ − A i e x i T θ ]
if converged then
return θ ( m + 1 ) \theta^{(m+1)} θ ( m + 1 )
Omitted tables and figures