arXiv:2609.31250cs.LGSep 2026

Manuscript Offprint

arXiv:2609.31250

Deterministic Regime Switching and Feasibility Inversion in Dynamic Tensor Rematerialization

Mahesh Reddy Pagadala

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

An Empirical Study on the Reference DTR Simulator

Mahesh Reddy Pagadala · Aston University · Preprint, September 2026

mahesh15116@gmail.com · Code and data: github.com/lonewolf15116/dtr-regime-switching

Abstract. We report fine-grained, deterministic instability in Dynamic Tensor Rematerialization (DTR), an online eviction policy for memory-constrained DNN training, measured on the reference DTR simulator (simrd) using public execution traces. On an LSTM trace, memory budgets differing by 0.10% of unconstrained peak memory select fast and slow execution regimes whose overheads differ by as much as 7.3×; the slow regime is driven by broadly repeated re-eviction of the same storages (evictions per storage rise from 1.33 to 8.27 while the set of distinct evicted storages is essentially unchanged: 5,233 vs 5,236, with the two sets overlapping at Jaccard 0.999). On a ResNet-32 trace, a fine budget sweep reveals a deterministic feasibility inversion: the run is feasible at ratio 0.101, infeasible (OOM) across 0.102-0.106, and feasible again from 0.107. We trace the immediate cause of the OOM to a fully pinned recursive rematerialization frontier that exceeds the budget after every evictable tensor has been evicted. Ablations using the DTR authors' own variants implicate the joint size-staleness scoring term in the observed LSTM instability. We argue these are at least two distinct budget-sensitive pathologies rather than one mechanism, and we separate what is demonstrated from what remains hypothesised. All results concern the reference simulator; reproduction in a production runtime is future work. Code, instrumentation, and raw results accompany this preprint.

1 Introduction

Training large neural networks requires caching intermediate activations from the forward pass for reuse in the backward pass. On memory-constrained hardware these activations may not fit at once, and tensor rematerialization - evicting some activations and recomputing them on demand - has become a standard remedy [3, 7]. Static methods such as Checkmate [4] solve an integer program over the full graph before training; dynamic methods such as DTR [6] decide evictions online using a local score, supporting dynamic graphs without ahead-of-time analysis.

DTR scores each resident tensor by compute cost, size, and staleness, evicting the lowest-scoring candidate when memory is exhausted; in the configuration studied here the score is compute(t) / (size(t) × staleness(t)). DTR's paper [6] proves an Ω(N/B)\Omega(N/B) lower bound and reports strong empirical performance on a 0.05-step budget grid. It also already notes that DTR can suffer deep recursive rematerialization and, in its hardware prototype, out-of-memory conditions and hangs. We therefore do not claim to be first to observe that DTR can thrash or OOM. Our contribution is a fine-grained, deterministic characterisation of how these behaviours appear as a function of the memory budget, with an allocation-level mechanism for one and an ablation localising another.

To our knowledge (search scope: the DTR, Checkmate, Coop, MegTaiChi and T-Control lines and their immediate citations), the following combination has not previously been reported:

  • Deterministic fine-grained overhead regime switching on LSTM: budgets separated by 0.001 in ratio select ∼1.38×\sim1.38\times versus ∼8.78−10.10×\sim8.78-10.10\times overhead, identical across three repeats.

  • Deterministic non-monotone feasibility on ResNet-32: feasible, then a contiguous OOM band, then feasible again as the budget increases.

• An allocation-level mechanism for the ResNet OOM: a fully pinned recursive rematerialization frontier that exceeds the budget once the evictable pool is empty.

  • Slow-regime structure on LSTM as broad re-eviction of nearly the entire working set, rather than a few pathological tensors dominating.

• Ablation evidence implicating the joint size-staleness term in the tested LSTM instability.