Memory Efficient Training via Tensor Contractions

This direction is merged into another direction: tensor train decomposition (low-rank tensor decomposition). Its last version stays readable and citable here.

Version 1 of 112 papers18 conceptsfrozen 2026-10-04

Modern deep learning is often bottlenecked not by raw compute, but by memory. In standard architectures like Convolutional Neural Networks (CNNs) or Transformers, the memory footprint scales aggressively with input resolution and model depth because the system must store massive intermediate feature maps (activations) to calculate gradients during backpropagation.

A growing body of research suggests a hardware-aware alternative: replacing dense weight matrices with Tensor Networks. By representing layers as a series of small, interconnected tensor cores, researchers can compute outputs and gradients through sequential contractions, effectively bypassing the need to materialize large intermediate representations.

Eliminating the Activation Bottleneck

The primary innovation in this direction is the shift from storing feature maps to performing direct tensor contractions. In traditional models, the forward pass creates a "memory debt" that must be held until the backward pass is complete. For high-resolution 3D medical imaging or long-sequence NLP, this debt often exceeds the VRAM of even high-end GPUs.

Raghavendra Selvan and Erik B. Dam demonstrate this shift with LoTeNet (Locally orderless tensor networks for classifying two- and three-dimensional medical images). By utilizing hierarchical tensor networks, they achieve a constant memory footprint regardless of network depth. Because the model relies on sequential contractions rather than storing feature maps for every layer, it can process volumetric data using less than 1/10th the memory of a standard CNN.

Hardware-Aware Contraction Flows

To realize these memory gains on actual hardware, the order of operations—the "contraction flow"—is critical. Naive implementations of tensor decomposition can actually increase memory usage if they inadvertently materialize large temporary tensors.

Scaling to Edge and NLP

The benefits of this approach extend beyond just saving memory; they enable training in environments where it was previously impossible. Ziyue Liu and Zheng Zhang developed TT-PINN (TT-PINN: A Tensor-Compressed Neural PDE Solver for Edge Computing), which allows Physics-Informed Neural Networks to be trained directly on resource-constrained edge devices by contracting input data directly with small tensor cores.

Similarly, in NLP, the Vector-Vector-Matrix Architecture (VVMA) proposed by Matthew Khoury and Yichen Shen uses tensor broadcasting to apply diagonal scaling (Vector-Vector-Matrix Architecture: A Novel Hardware-Aware Framework for Low-Latency Inference in NLP Applications). This avoids materializing full-sized weight representations, slashing inference latency by minimizing expensive memory loads on hardware accelerators.

Papers in this version

History & citationVersion 1 · 2026-10-04

Merged into another direction · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_memory_efficient_training_via_tensor_con_c984daa6,
  title = {Memory Efficient Training via Tensor Contractions},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-efficient-training-via-tensor-contractions/rdr_c984daa6ca864159a81a3446fe74849c},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-23},
}

This exact version (version 1, frozen text):

@misc{lacuna_memory_efficient_training_via_tensor_con_c984daa6_v1,
  title = {Memory Efficient Training via Tensor Contractions},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/memory-efficient-training-via-tensor-contractions/rdr_c984daa6ca864159a81a3446fe74849c/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-23},
}