Provably Safe Model Updates

Leo Elmecker-Plakolm, Pierre Fasterling, Philip Sosnin, Calvin Tsay, Matthew WickerarXiv 2025 · DOI

Abstract

Machine learning models require frequent updates to adapt to new data or regulations, yet these updates often compromise existing performance or safety alignment—a phenomenon known as catastrophic forgetting or alignment drift. This paper proposes a novel framework for computing a Locally Invariant Domain (LID). By identifying a "safe zone" in the parameter space using interval arithmetic and primal-dual optimization, the method provides mathematical guarantees that model updates will preserve original specifications without requiring access to previous training data.

Introduction: The Challenge of Model Evolution

In production environments, machine learning models are dynamic entities. They must be updated to handle distribution shifts, patch security vulnerabilities, or comply with new legal standards. However, standard fine-tuning or stochastic gradient descent (SGD) lacks formal safeguards. An update intended to improve a model's performance on a new task can inadvertently cause it to "forget" critical previous knowledge or, in the case of Large Language Models (LLMs), bypass safety guardrails that prevent the generation of toxic content.

Sequential learning without safety guarantees often leads to significant shifts in decision boundaries for previously learned classes, potentially causing catastrophic forgetting.

Existing techniques like Elastic Weight Consolidation (EWC) or replay buffers provide heuristic improvements but offer no a priori proofs of safety. Re-validating a model after every update is often computationally prohibitive or impossible if the original training data is restricted due to privacy concerns.

Methodology: Locally Invariant Domains (LID)

The core contribution of this work is the formalization of the Maximal Locally Invariant Domain (LID). Instead of seeking a single optimal point for model weights, the authors identify a connected region (an orthotope) in the parameter space where every point is certified to satisfy a specific performance threshold (e.g., maintaining accuracy above a certain floor).

Formalizing the "Safe Zone"

To find this domain, the authors employ Interval Bound Propagation (IBP). This technique wraps the model's functions in interval arithmetic, allowing for the calculation of worst-case outputs for any parameter update within a defined range. This transforms a complex verification problem into a tractable optimization task.

The LID framework preserves decision boundaries for earlier tasks while accommodating new ones, providing formal guarantees of performance maintenance.

Optimization and Projection

The search for the largest possible safe zone is framed as a primal-dual optimization problem. The "Primal" objective maximizes the volume of the LID, while the "Dual" objective ensures safety constraints are never violated. Once a LID is established, any proposed update from a new learning task is projected back into this safe domain if it attempts to exit, ensuring the model remains within its certified bounds.

Experimental Evaluation

The authors validated the LID framework across several benchmarks:

  • Continual Learning: On Split-MNIST and Split-CIFAR10, the method matched the performance of state-of-the-art heuristics while providing formal performance floors.
  • LLM Safety Alignment: Using hate-speech classification datasets, the method successfully preserved the macro-accuracy and safety alignment of foundation models during fine-tuning.
  • Multilingual Adaptation: The framework maintained sentiment analysis performance across languages (English to German, Italian, French) using the XLM-T dataset.

Key results indicate that computing the LID is highly efficient, costing approximately four times a standard forward pass. Furthermore, the method enables certification without data: once a LID is computed for an initial task, subsequent updates can be certified without ever revisiting the original training set.

Discussion and Future Work

While the LID framework provides robust guarantees, it is currently limited by the inherent conservatism of Interval Bound Propagation. The "safe zones" identified are guaranteed to be safe but may be smaller than the true maximal domain, potentially restricting the model's learning capacity for complex new tasks. Additionally, as models increase in depth, interval bounds tend to loosen. Future research will explore tighter symbolic relaxations to scale these guarantees to massive transformer architectures. Nevertheless, the LID approach represents a significant step toward deploying AI systems that can evolve safely and predictably in real-world environments.

Summary updated

BibTeX
@misc{elmeckerplakolm2025provably,
  author = {Leo Elmecker-Plakolm and Pierre Fasterling and Philip Sosnin and Calvin Tsay and Matthew Wicker},
  title = {{Provably Safe Model Updates}},
  year = {2025},
  eprint = {2512.01899},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.01899},
}
Figure