Large-Deviation Safety Buffer
Implementation & benchmark of arXiv:2607.17732 — Decision-Centric Large Deviations for Data-Driven Capital Buffers in Ruin Models
Source paper: Decision-Centric Large Deviations for Data-Driven Capital Buffers in Ruin Models arXiv:2607.17732 ⓘ · analyzed Aug 30, 2026
AI-generated research hypothesis, automatically tested. Not peer-reviewed.
Idea description
Construct a data-dependent threshold for future cumulative safety violations using the paper's decision-centric large-deviation profile instead of a plug-in estimate. For binary violation increments, the threshold explicitly accounts for both uncertainty in the historical violation rate and the probability that the future process produces an unusually large maximum.
Formulas
Mathematical statement
Use a Bernoulli model with unknown violation probability p in (0,1/2), historical count S from n samples, and empirical rate q=S/n. The binary KL divergence is d(q\|p)=q\log(q/p)+(1-q)\log((1-q)/(1-p)). For the associated random walk, the adjustment coefficient is \gamma(p)=\log((1-p)/p), and Lundberg's inequality gives P_p\{M>x\}\leq e^{-\gamma(p)x} for the all-time future maximum M. The paper defines the cost of obtaining a law with adjustment coefficient at most y as H_q(y)=\inf_{p:\gamma(p)\leq y}d(q\|p); in the Bernoulli stable region, p_y=1/(1+e^y) and H_q(y)=d(q\|p_y) for 0<y<\gamma(q), otherwise H_q(y)=0 when y\geq\gamma(q). The critical decision profile is f^*(c,q)=\sup_{y>0}(c-H_q(y))_+/y, where c=\log(1/\delta)/n and (z)_+=\max(z,0). Set the future buffer to C_n=n f^*(c,q), or to a numerically computed lower-semicontinuous majorant of this profile. The supremum searches over every possible future decay exponent y: H_q(y) is the statistical cost of an atypical historical estimate, while the numerator c-H_q(y) is the residual exponent that must be supplied by the buffer.
Implementation notes
Integrate this at the decision layer of an online RL or model-monitoring system, rather than inside the neural network's forward pass. Define a binary violation at each future step, such as reward below a safety floor, constraint breach, abstention failure, or prediction error above a tolerance. Maintain a fixed historical window of n binary outcomes, compute the violation count S and q=S/n, choose a target joint failure probability delta, and set c=log(1/delta)/n. Numerically evaluate the profile on a grid y_j in (epsilon, gamma(q)-epsilon] and include a small-y region; compute p_y=1/(1+exp(y_j)), d_j=q*log(q/p_y)+(1-q)*log((1-q)/(1-p_y)), r_j=max(c-d_j,0)/y_j, and f=max_j r_j. Use stable log-domain operations and clip q to [epsilon, 1/2-epsilon]. Set the cumulative future buffer to C=n*f and trigger intervention, policy fallback, early stopping, or abstention when the future random-walk maximum exceeds C. Pseudocode: observe violations; update S and q; compute c; loop over y values; calculate p_y, d_j, and r_j; set C=n*max(r_j); monitor cumulative signed risk and intervene at C. The paper supplies the profile and Lundberg mechanism; q is estimated directly from data and the y grid is a numerical approximation. First test on a small CartPole constraint task or a synthetic Bernoulli random walk with an RL policy. Compare against the plug-in buffer C_plugin=log(1/delta)/gamma(q), a Hoeffding upper-confidence buffer, and a fixed conservative threshold. Use independent historical and future trials with n in {32,64,128,256}. Success means empirical probability of any future breach is at or below the target delta while producing fewer unnecessary interventions than confidence-bound baselines.
Verification
This idea has not been verified yet.
Verification happens in two stages: Stage 1 — a mechanism check on a toy system confirms the claimed mathematical phenomenon reproduces; Stage 2 — a benchmark implements the idea on a real (small) neural network task and compares it against a tuned baseline over 8 paired seeds with a permutation test.
Artifacts
Artifacts unavailable.