Why Numerical Stability Matters in TMDD
Target-mediated drug disposition (TMDD) models can combine rapid association and dissociation with much slower target turnover, drug elimination, or dosing intervals. A numerical solver must resolve the rapid changes without taking steps so large that it misses them. At the same time, it must continue to integrate accurately across the slower parts of the profile. This combination can make the system stiff: stable and accurate computation may require many small steps from an explicit solver, even when the quantities of scientific interest change slowly.
This is not merely a computational inconvenience. Parameter estimation repeatedly solves the differential equations at trial parameter values. If the solver misses a fast transient, accumulates substantial integration error, or fails unpredictably, the resulting predictions—and therefore the likelihood being optimized—can be inaccurate or irregular. A fitted parameter can then reflect numerical behavior rather than the data.
For illustration, consider a concentration-based TMDD model with free drug \(D\), free target \(R\), and drug–target complex \(C\), all measured in nM. Assume the pools share a compartment and effective volume, input \(u(t)\) is expressed as a concentration per hour, and the rate constants and synthesis rate are constant between dosing events. A basic full model is
Here \(k_{\mathrm{on}}\) has units nM\(^{-1}\)h\(^{-1}\); \(k_{\mathrm{off}}, k_{\mathrm{el}}, k_{\mathrm{deg}}\), and \(k_{\mathrm{int}}\) have units h\(^{-1}\); and \(k_{\mathrm{syn}}\) has units nM/h. Binding removes free drug and free target while adding complex. Dissociation reverses that transfer; complex internalization removes complex. This model assumes nonnegative initial concentrations and rates, and it treats the stated processes as the mechanisms represented by these equations. More elaborate compartment structures may require additional states and equations.
Where the Fast Time Scale Comes From
A useful local explanation comes from considering binding and dissociation over a short interval, while treating the slower processes as negligible. If total drug and total target are approximately conserved during that interval, then \(D=D_{\mathrm{tot}}-C\) and \(R=R_{\mathrm{tot}}-C\). The complex obeys
At a local state with free concentrations \(D\) and \(R\), the derivative of the right-hand side with respect to \(C\) is \(-k_{\mathrm{on}}(D+R)-k_{\mathrm{off}}\). Thus a small displacement from the local binding balance decays at approximately this rate. When internalization also acts on the fast interval, a useful local approximation includes its removal rate:
This is a time-scale guide, not a complete eigenvalue analysis of the full model. The full Jacobian also includes turnover, elimination, input, and coupling to other states. Stiffness becomes plausible when the fast decay time is far shorter than important slow time scales, such as \(1/k_{\mathrm{deg}}\) or \(1/k_{\mathrm{el}}\). The separation can change over time because \(D\) and \(R\) change.
Worked Example: Estimating the Binding Time Scale
Suppose a hypothetical local TMDD state has \(D=1.0\) nM, \(R=0.10\) nM, \(k_{\mathrm{on}}=1000\) nM\(^{-1}\)h\(^{-1}\), \(k_{\mathrm{off}}=10\) h\(^{-1}\), and \(k_{\mathrm{int}}=1.0\) h\(^{-1}\). Let the target turnover rate be \(k_{\mathrm{deg}}=0.05\) h\(^{-1}\). Estimate the fast and turnover time scales.
Using the local approximation,
Therefore,
The target turnover time is \(1/k_{\mathrm{deg}}=1/0.05=20\) h. The ratio of the turnover time to the estimated binding time is about \(20/0.0009001=2.22\times10^4\). This large separation makes stiffness plausible in this local state. It does not prove that every solver will fail: stability also depends on the equations, solver, and requested accuracy.
Solver Tolerances and State Scales
Adaptive ODE solvers estimate local numerical error and adjust step size. A common scale for the allowed local error in state \(y_i\) is
where \(\mathrm{rtol}\) is a dimensionless relative tolerance and \(\mathrm{atol}_i\) is an absolute tolerance for state \(i\), expressed in that state’s units. This is a practical error-control scale, not a guarantee that the global error in a predicted concentration is below the same threshold. The solver’s error estimate, method, and behavior across steps all matter.
A single absolute tolerance can be inappropriate when states have different typical magnitudes. If a target concentration is \(10^{-3}\) nM while drug concentrations are around \(1\) nM, an absolute tolerance adequate for drug may be too loose for target. Conversely, demanding extremely small absolute errors for every state can waste computation or expose round-off limitations. Set tolerances with the state units, expected magnitudes, and the precision needed for the model predictions in mind. Rescaling states or using state-specific absolute tolerances can help.
Relative tolerance alone is also insufficient near zero: when \(y_i\) is close to zero, \(\mathrm{rtol}|y_i|\) is close to zero, so the absolute tolerance controls the error scale. This matters for concentrations that become very small, especially if predictions or likelihoods depend on their accurate values.
Worked Example: Choosing State-Specific Error Scales
Suppose a hypothetical calculation uses free drug \(D=1.0\) nM and free target \(R=0.0020\) nM at a particular time. Choose \(\mathrm{rtol}=10^{-6}\), \(\mathrm{atol}_D=10^{-8}\) nM, and \(\mathrm{atol}_R=10^{-9}\) nM. Calculate the local error scales for the two states.
For free drug,
For free target,
The separate absolute tolerances let the solver control the much smaller target on a scale appropriate to that state. These values are illustrative, not universal recommendations. They should be challenged by repeating the calculation with tighter tolerances and checking whether predictions and fitted quantities remain materially unchanged.
Estimation Strategies That Preserve the Likelihood
For observations \(y_j\) with model predictions \(f_j(\theta)\), a likelihood calculation depends on the predictions at parameter vector \(\theta\). For example, under independent Gaussian errors with known standard deviations \(\sigma_j\), the part of \(-2\log L\) that depends on the predictions is
A small change in a prediction can matter if it is large relative to its observation error. Solver accuracy therefore needs to be judged in relation to the likelihood’s sensitivity, not just by whether plotted curves look similar. A solver failure at a trial parameter value is not a valid prediction. It should be handled explicitly by the estimation procedure, rather than silently omitting the affected observations or substituting an arbitrary likelihood contribution.
Worked Example: Checking the Effect of Numerical Error on Likelihood
Consider two hypothetical concentration observations, \(y_1=0.80\) nM and \(y_2=0.40\) nM, with known standard deviations \(\sigma_1=0.05\) nM and \(\sigma_2=0.04\) nM. Suppose a loose solver setting gives predictions \(f_1=0.76\) nM and \(f_2=0.44\) nM. Calculate the prediction-dependent contribution to \(-2\log L\).
The standardized residuals are \((0.80-0.76)/0.05=0.80\) and \((0.40-0.44)/0.04=-1.00\). Thus,
Now suppose a tighter solver setting gives predictions \(0.79\) nM and \(0.405\) nM. The standardized residuals are \(0.01/0.05=0.20\) and \(-0.005/0.04=-0.125\), giving
The difference is \(1.64-0.055625=1.584375\) in this likelihood contribution. The example does not claim that either setting will produce these predictions in a particular application; it shows why a solver comparison must examine likelihood-relevant differences. If tightening tolerances changes predictions or the objective materially, the looser calculation is not yet demonstrated to be adequate.
A practical estimation workflow uses a solver designed for stiff systems when the model exhibits fast and slow dynamics. Implicit methods such as backward differentiation formulas or Radau methods are standard choices; explicit methods can be effective when the system is not stiff or when the relevant interval is short, but may require prohibitively small steps in stiff regions. Supplying a Jacobian or its sparsity pattern, when supported and correctly specified, can improve efficiency for larger systems.
Parameter scaling matters as well. TMDD parameters can differ greatly in magnitude and units. Optimizers often behave better when positive parameters are represented on a log scale, such as optimizing \(\log k_{\mathrm{on}}\) rather than \(k_{\mathrm{on}}\), and when the parameterization avoids implausible or numerically problematic regions. This does not remove the need for scientifically appropriate bounds, initial values, or identifiability assessment. It helps the optimizer navigate scale; it cannot create information absent from the data.
Use positive rates and concentrations where required by the model, and choose parameter scales and initial values that are numerically manageable.
For a stiff system, try an implicit stiff solver and state-specific absolute tolerances that reflect the units and magnitudes of the states.
Repeat predictions and estimation with tighter tolerances or another suitable stiff method. Compare predictions, likelihood values, and parameter estimates on the scientific scale.
Record failed integrations, investigate the states and parameters where they occur, and do not treat missing or invalid predictions as valid likelihood values.
Diagnostics, Alternatives, and Limitations
Warning signs include repeated solver step-size reductions, excessive step counts, failed steps, non-finite predictions, negative concentrations when the model should remain nonnegative, and large changes in predictions or estimates after modest tolerance tightening. These signs call for diagnosis rather than automatic changes to the scientific model. Check units and rate scales, input discontinuities such as dosing events, initial conditions, state scaling, and whether a solver is appropriate for stiffness. A very small tolerance is not by itself proof of accuracy: it may increase cost without fixing an incorrectly coded equation or an unsuitable parameterization.
The main numerical alternative to an implicit stiff solver is an explicit solver. Explicit methods are often simpler and can be fast for nonstiff systems, but stability restrictions may force tiny steps in the presence of fast binding. A second alternative is to use a reduced TMDD model or a rapid-binding approximation. That changes the model’s mathematical assumptions and may change its predictions; it is not simply a faster solver setting. Use such a reduction only when its assumptions are justified for the scientific question and data. The full-versus-reduced model choice is distinct from the numerical task of accurately solving whichever equations are chosen.
Numerical checks also have limits. Agreement between two solvers does not prove the model is correct, and stable optimization does not establish that parameters are identifiable or biologically interpretable. Conversely, an optimizer’s failure can arise from poor scaling or integration failures rather than from a scientifically implausible model. Numerical reliability is one necessary part of a defensible fit, alongside model assumptions, data information, and appropriate evaluation of fit.
Check Your Understanding
Answer each question, then compare your reasoning with the brief solutions below.
- If the local fast binding rate is approximately \(500\) h\(^{-1}\), what is the associated time scale in seconds? How should it be compared with target turnover?
- Why can a relative tolerance alone be inadequate when a state approaches zero?
- A solver failure occurs at one optimizer trial value. Why is it invalid to calculate the likelihood using only the observations for which predictions succeeded?
- When is a reduced TMDD model an alternative to a stiff solver, and why are the two choices not equivalent?
Solutions. (1) The time scale is \(1/500=0.002\) h, or \(0.002\times3600=7.2\) s. Compare it with relevant slower time scales, such as \(1/k_{\mathrm{deg}}\); a large separation makes stiffness plausible but does not establish it by itself. (2) As the state approaches zero, \(\mathrm{rtol}|y_i|\) also approaches zero, so the absolute tolerance controls the error scale. (3) Omitting observations changes the likelihood being evaluated and can make parameter values with failed integrations appear artificially favorable. A failed solve must be handled as a computational failure, not as a valid partial likelihood. (4) A reduced model is appropriate only if its approximation assumptions suit the scientific setting; it changes the equations and potentially their predictions. A stiff solver instead aims to solve the selected equations accurately despite separated time scales.