Published March 8, 2026 | Version v1

MemGuard: Predicting the Post-Optimal Training Regime in Large Language Models

Description

This work analyzes training dynamics in large language models and identifies a critical training step tc, after which continued optimization degrades generalization.

We analyze multiple publicly available LLM training runs (including Zephyr-7B, Mistral-7B and related models) and observe three empirical laws:

• Post-optimal degradation scales with the overshoot ratio

drift ∝ log(last_step / tc)

• The optimal step tc follows scaling consistent with model size

tc ~ N log N

• Dataset informational complexity K(D) correlates with tc

Based on these observations we introduce MemGuard, a lightweight monitoring algorithm detecting the onset of the post-optimal regime during training.

Empirical analysis suggests that stopping training near this transition can reduce unnecessary compute while preserving model performance.

This repository contains the paper and figures illustrating the phenomenon.

Intellectual Property Notice:

This work has been deposited as a prior disclosure through an INPI Enveloppe Soleau (France), dated 08 March 2026.

Files

fig1_drift_overshoot.png

Files (502.3 kB)

Name Size
md5:d9d22aaeed5cdafd4c986dae26e4b9b6
124.5 kB Preview Download
md5:8cdb9835d90e4d55055517879db3b8d4
125.8 kB Preview Download
md5:65217816c4a6493d4736c68d6ec95819
252.0 kB Download