When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization

arXiv:2610.14369 · cs.LG, cs.DC · Submitted 2026-10-09 · Read on arXiv

Listen

Radio episode about this paper

Transcript

Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.

Tom: Today's paper: "When More Memory Fails".

Jane: The gist: Dynamic Tensor Rematerialization (DTR) exhibits non-monotone feasibility holes in its reference simulator, meaning memory budgets that succeed for both smaller and larger budgets can fail for DTR <ref:2610.14369#pg6>.

Tom: First, who's behind it and why it matters.

Paper summary: Tom: To wrap up, the paper "When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization" highlights how DTR can encounter memory budget failures that aren't predictable just by increasing the budget size > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg1.

Jane: The authors found these exceptions feasibility holes using their reference simulator, simrd, and they showed they are reproducible with unmodified code > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg2. It’s important to remember that the study is limited because it's simulation only; simrd doesn't model things like allocator fragmentation or alignment on real hardware > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg8.

Lu: The paper asks a big question about whether these feasibility holes transfer to real hardware and if we can find a policy that guarantees monotone feasibility at an acceptable cost > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg1. It leaves the door open for real-world testing.

Meng: For us on the shipping side, it means we need to be cautious about relying solely on increasing memory budgets without understanding these hidden failure modes in our DTR algorithms > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg6.

Lalam: The finding that simple score changes don't fix the holes, and that a variant called TwoPhase actually has more failing samples, gives us a clear direction on what to look out for when designing our next memory management layer > When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization #pg7.

Conclusion: Tom: So, we're looking at this paper about Dynamic Tensor Rematerialization, DTR, and these feasibility holes in its simulator. It basically shows that if you just crank up the memory budget to a really big number, it doesn't guarantee success for DTR.

Jane: That's right. The title is "When More Memory Fails: Hidden Feasibility Holes in Dynamic Tensor Rematerialization." It sounds like the system thinks it can handle any amount of memory, but it hits a wall unexpectedly.

Lu: The authors found these holes by testing their reference simulator, simrd. They showed that there are specific memory budgets where the DTR process just runs out of space for one tensor even when both a smaller and a larger budget would have worked fine.

Meng: From an engineering standpoint, that's worrying. It means we can’t just blindly increase our allocation limits assuming everything will work smoothly under the hood. There are these hidden failure modes in the way it manages its working memory.

Lalam: I see what they did here is trace a specific failure down to individual allocations and show how an intervention—like stopping one particular tensor from being offered as an eviction candidate—can prevent a crash even under that same budget. It’s not just about the total number; it’s about the sequence of events.

Tom: Exactly, Lalam. And they tested different ways to adjust the scoring function, but those changes didn't fix anything; they actually added more failing budgets on some traces.

Jane: So what does this mean for us who are actually building these things? It suggests that relying on a fixed memory budget isn't enough; we need a smarter way to handle when things get tight during the training process.

Lu: The big question they leave is whether these holes show up when you move from the simulation to actual hardware, and if we can design a policy that guarantees success at an acceptable cost. That's where the real research needs to go.

Meng: I'm focused on what breaks in production, so I'm watching that part closely. If this behavior transfers to real hardware, it’s a significant risk for our deployment pipeline.

Lalam: And that opens up the next big thing: figuring out if we can build a memory management layer that is truly robust and predictable across different scales of training.

Mahesh Reddy Pagadala

Aston University

cs.LG, cs.DC

Submitted: 2026-10-09

Updated: 2026-10-09

Comments: 8 pages, 2 figures. Simulator study. Code and execution records: https://github.com/lonewolf15116/dtr-stability

Code: https://github.com/lonewolf15116/dtr-regime-switching

License: http://creativecommons.org/licenses/by/4.0/

Importance score: 89/100

The gist: The gist: Dynamic Tensor Rematerialization (DTR) exhibits non-monotone feasibility holes in its reference simulator, meaning memory budgets that succeed for both smaller and larger budgets can fail

Key concepts

Dynamic Tensor Rematerialization (DTR)
A method used to train neural networks by discarding tensors during training and recomputing them only when needed. It makes online decisions about which tensors to evict based on a calculated score involving compute, size, and staleness.
Feasibility Hole
A specific type of failure where DTR runs out of memory at a certain budget level, but slightly smaller and slightly larger budgets allow the training to complete. It represents a local failure inside an otherwise feasible region.
Monotonicity
The expectation that increasing a resource budget will always lead to better or equal performance. This paper shows that DTR's cost-based eviction policy violates this property, meaning feasibility is not guaranteed by budget size alone.

Summary

The gist: Dynamic Tensor Rematerialization (DTR) exhibits non-monotone feasibility holes in its reference simulator, meaning memory budgets that succeed for both smaller and larger budgets can fail for DTR <ref:2610.14369#pg6>.

How it works

Dynamic Tensor Rematerialization (DTR) trains neural networks under a memory budget by evicting tensors and recomputing them on demand <ref:2610.14369#pg2>. This process involves an online choice where when an allocation does not fit the budget, it evicts the resident tensor with the lowest score defined by hDTR(t) = c(e∗(t))m(t)·s(t) <ref:2610.14369#pg2>. This score incorporates compute, size, and staleness <ref:2610.14369#pg6>.

The study investigates whether the expectation that a budget large enough to complete training stays sufficient when increased fails for DTR <ref:2610.14369#pg2>. The researchers call these exceptions feasibility holes, which are defined as memory budgets at which an eviction policy runs out of memory although both a smaller and a larger budget complete <ref:2610.14369#pg6>.

Reproducible counterexamples to monotone feasibility for DTR in simrd

The authors provide reproducible counterexamples demonstrating these holes within the simulator, simrd <ref:2610.14369#pg3>. Specifically, they show holes on two of six confirmatory traces and on the development trace, each confirmed by repeats and by unmodified simrd <ref:2610.14369#pg5>.

The coarse grid evaluation, which sweeps the budget on a coarse grid, fails to reveal these issues because the 0.01-step grid on the confirmatory traces shows no DTR hole, although its unresolved timeouts prevent it from establishing monotonicity <ref:2610.14369#pg5>. Finer sampling, using Stages C and B, successfully reveals sample-supported failure regions on three confirmatory traces <ref:2610.14369#pg5>.

A step-by-step account of one failure, down to individual allocations, with an intervention that prevents it under the same budget

The paper details a specific failure on InceptionV4 where a larger budget avoids one eviction at an operator where the smaller budget was 173,479 bytes short <ref:2610.14369#pg6>. This extra data forces a later eviction of a tensor needed three operators afterwards, and rebuilding that tensor triggers a recomputation cascade that cannot fit <ref:2610.14369#pg6>.

The researchers trace the failure to individual allocations, showing how the smaller budget fails at operator 2,270 because the required tensor was evicted earlier <ref:2610.14369#pg6>. An intervention—preventing storage 3131 from being offered as an eviction candidate—prevents Out of Memory (OOM) in this execution under the same budget, supporting its causal involvement <ref:2610.14369#pg6>.

Changing the score does not remove the holes

The authors test two simple score changes to see if they eliminate these feasibility holes across traces <ref:2610.14369#pg7>. These changes do not remove holes across traces; both add failing budgets on some traces <ref:2610.14369#pg6>.

When testing a variant called TwoPhase, it is found that it has more failing samples than DTR on InceptionV4 (53 vs 16), U-Net (11 vs 8) and Unrolled GAN (7 vs 2) <ref:2610.14369#pg7>. This variant fails to meet the criteria for generalization, as it meets H1 and H2 on no trace <ref:2610.14369#pg7>.

Limitations

The study is limited by several factors, including the fact that it is Simulation only because simrd models no allocator, fragmentation, alignment, streams or framework memory <ref:2610.14369#pg8>. Furthermore, the results are based on Traces which are single recorded configurations from the DTR prototype <ref:2610.14369#pg8>. The paper also notes that Sampling means holes are observed at samples, and Unresolved runs include 417 valid runs that timed out <ref:2610.14369#pg8>.

The study concludes by asking whether these feasibility holes transfer to real hardware and whether a policy can guarantee monotone feasibility at acceptable cost. The author acknowledges the extensive use of AI assistants in writing, running experiments, and analyzing data.

The gist is that DTR exhibits non-monotone feasibility holes in its reference simulator, meaning memory budgets that succeed for both smaller and larger budgets can fail for DTR <ref:2610.14369#pg6>.

When testing a variant called TwoPhase, it is found that it has more failing samples than DTR on InceptionV4 (53 vs 16), U-Net (11 vs 8) and Unrolled GAN (7 vs 2) <ref:2610.14369#pg7>.

Improvements for AI systems

  1. Identify exceptions feasibility holes in dynamic tensor rematerialization by monitoring budget behavior across different memory budgets, as memory budgets at which an eviction policy runs out of memory although both a smaller and a larger budget complete indicates a non-monotone feasibility region. This allows the system to proactively adjust its training strategy when operating near such boundaries to avoid catastrophic failure.

  2. Implement an intervention mechanism that prevents specific tensor evictions, such as never offering storage 3131 as an eviction candidate, when a budget is near a known failure point, thereby ensuring that critical tensors needed three operators after its eviction remain resident and avoiding the recomputation cascade that cannot fit.

  3. Develop adaptive scoring functions or scheduling policies that incorporate foresight or inclusion properties, addressing the finding that DTR’s cost-based score has no inclusion property, to ensure a policy can guarantee monotone feasibility at acceptable cost. This would prevent the system from entering regimes where overhead switches between regimes unpredictably.

  4. Integrate finer sampling protocols (like Stage C) into the training sweep to specifically target and characterize failure regions, as Finer sampling finds holes on InceptionV4 (three regions) and U-Net (two regions), in addition to one on the ResNet-32 development trace. This allows for precise identification of where feasibility is not a simple threshold.

  5. Enhance runtime instrumentation to track detailed memory metrics like pinned bytes (resident bytes outside the evictable pool) and maximum nesting depth, correlating them with specific tensor operations, as this signature helps distinguish between different failure modes, such as those exhibiting a deep cascade versus those that are not.

Abstract

Dynamic Tensor Rematerialization (DTR) trains neural networks under a memory budget by evicting tensors and recomputing them on demand. A natural expectation is that a budget large enough to complete training stays sufficient when it is increased. Using DTR's reference simulator, simrd, to replay the public DTR training traces, we show that this expectation fails. We call the exceptions feasibility holes: memory budgets at which an eviction policy runs out of memory although both a smaller and a larger budget complete, a form of non-monotone feasibility. Under a written sweep protocol with dated amendments, a 0.01-step budget grid shows no such hole for DTR on any of six confirmatory traces, although unresolved timeouts prevent it from establishing monotonicity. Finer sampling finds holes on InceptionV4 (three regions) and U-Net (two regions), in addition to one on the ResNet-32 development trace. Every hole is reproduced by three repeats and by unmodified simrd. For one InceptionV4 pair (0.2343 versus 0.235 of peak memory) we trace the failure to individual allocations. The larger budget avoids one eviction at an operator where the smaller budget was 173,479 bytes short. The extra data it carries forward forces a later eviction of a tensor needed three operators afterwards, and rebuilding that tensor triggers a recomputation cascade that cannot fit. Keeping that one tensor resident under the same budget prevents the failure. The two simple score changes we tested do not remove holes across traces; both add failing budgets on some traces. All results are from simulation, with no allocator model; behaviour on GPU hardware is untested.

Sources

Related papers