Abstract
Optimizing Cox regression and its neural network variants poses substantial computational challenges in large-scale studies. Stochastic gradient descent (SGD), known for its scalability in model optimization, has recently been adapted to optimize Cox models. Unlike its conventional application, which typically targets a sum of independent individual loss, SGD for Cox models updates parameters based on the partial likelihood of a subset of data. Despite its empirical success, the theoretical foundation for optimizing Cox partial likelihood with SGD is largely underexplored. In this work, we demonstrate that the SGD estimator targets an objective function that is batch-size-dependent. We establish that the SGD estimator for the Cox neural network (Cox-NN) is consistent and achieves the optimal minimax convergence rate up to a polylogarithmic factor. For Cox regression, we further prove the $\sqrt{n}$-consistency and asymptotic normality of the SGD estimator, with variance depending on the batch size. Furthermore, we quantify the impact of batch size on Cox-NN training and its effect on the SGD estimator's asymptotic efficiency in Cox regression. These findings are validated by extensive numerical experiments and provide guidance for selecting batch sizes in SGD applications. Finally, we demonstrate the effectiveness of SGD in a real-world application where GD is unfeasible due to the large scale of data.
Introduction
The Cox proportional hazards model is the gold standard for survival analysis, used extensively to predict the time until an event occurs, such as disease progression or mechanical failure. However, as datasets grow into the millions of observations, the model faces a significant scalability wall. Standard Cox models are trained by maximizing a partial likelihood. Unlike standard regression where each data point is independent, the Cox partial likelihood for a single individual depends on the entire "at-risk" set—every other individual in the dataset who has not yet experienced the event.
This global dependency makes standard Gradient Descent (GD) computationally expensive and memory-intensive. While practitioners have turned to mini-batch Stochastic Gradient Descent (SGD) to train deep learning variants (Cox-NN), a theoretical gap remained: because a mini-batch only captures a fraction of the at-risk set, it was unclear if the algorithm would converge to a statistically sound result. This paper provides the first rigorous statistical foundation for the mini-batch Maximum Partial Likelihood Estimator (mb-MPLE).
Theoretical Framework
The "At-Risk" Disconnect
In traditional deep learning tasks like image classification, the loss function for a single image is independent of other images in the batch. In survival analysis, the partial likelihood is inherently relational. The authors demonstrate that SGD for Cox models optimizes the average of mini-batch partial likelihoods, which is mathematically distinct from the full-sample partial likelihood. Despite this "dilution" of the at-risk set, the research proves that the resulting estimator remains consistent and finds the true underlying parameters.
Consistency and Convergence
The paper establishes several key theoretical milestones:
- Cox-NN Optimality: The mb-MPLE for Cox neural networks achieves the optimal minimax convergence rate (up to a polylogarithmic factor) under sparsity constraints.
- Asymptotic Normality: For linear Cox regression, the estimator is $\sqrt{n}$-consistent. The authors further propose a "Projected SGD" method to navigate the fact that the Cox objective is not globally strongly convex.
- Efficiency vs. Batch Size: A unique finding of this work is that for Cox models, increasing the batch size directly improves the statistical efficiency of the estimator. This differs from standard empirical risk minimization (like Mean Squared Error), where statistical efficiency is typically independent of batch size.
Practical Guidance: The Linear Scaling Rule
To simplify the transition to large-scale survival analysis, the authors provide theoretical justification for the Linear Scaling Rule. Adapted from computer vision heuristics, this rule suggests that when increasing the batch size ($s$), one should increase the learning rate ($\gamma$) proportionally to keep the ratio $\gamma/s$ constant. This allows researchers to scale their training to larger hardware (e.g., multi-GPU setups) without exhaustive hyperparameter re-tuning, maintaining consistent training dynamics.
Empirical Validation
Simulated Data
Extensive simulations verified the theoretical claims regarding local convexity and asymptotic normality. The experiments confirmed that as batch sizes increase, the variance of the SGD estimator approaches the information lower bound, validating the predicted relationship between batch size and statistical efficiency.
Real-World Application: AREDS Dataset
The effectiveness of the mb-MPLE was tested on the Age-Related Eye Disease Study (AREDS), a dataset comprising 7,865 eyes from 4,335 subjects. The goal was to predict the progression of Age-related Macular Degeneration (AMD) using fundus images and demographic data.
- Performance: Utilizing a ResNet50 architecture, the Cox-NN achieved a C-index of 0.85, indicating high predictive accuracy.
- Computational Feasibility: The study highlighted a critical hardware bottleneck. Training on the full AREDS dataset using standard GD would exceed the 48GB memory capacity of a high-end Nvidia L40s GPU. In contrast, mini-batch SGD required only ~3.5GB of memory for a batch size of 32, making the analysis feasible on standard hardware.
Conclusion and Future Work
This research bridges the gap between the empirical success of Deep Cox models and their theoretical justification. By proving that mini-batching preserves the statistical integrity of the Cox model, the authors provide a roadmap for large-scale survival analysis.
Future research may address the "optimization error" inherent in non-convex Cox-NN landscapes, as SGD may still encounter local minima. Additionally, while the current proofs rely on independent censoring assumptions, extending these findings to complex clinical trials with dependent censoring remains an open challenge. Finally, the authors suggest that these insights could extend to other ranking-based problems, such as Plackett-Luce models used in search engine ranking and contrastive learning.
Summary updated