paper-with-me

Papers

Optimal Gradient Checkpointing for Sparse and Recurrent Architectures using Off-Chip Memory

2024-12-16 · Wadjih Bencheikh, Jan Finkbeiner, Emre Neftci

Recurrent neural networks (RNNs) are valued for their computational efficiency and reduced memory requirements on tasks involving long sequence lengths but require high memory-processor bandwidth to train. Checkpointing techniques can reduce the memory requirements by only storing a subset of intermediate states, the checkpoints, but are still rarely used due to the computational overhead of the additional recomputation phase. This work addresses these challenges by introducing memory-efficient gradient checkpointing strategies tailored for the general class of sparse RNNs and Spiking Neural Networks (SNNs). SNNs are energy efficient alternatives to RNNs thanks to their local, event-driven operation and potential neuromorphic implementation. We use the Intelligence Processing Unit (IPU) as an exemplary platform for architectures with distributed local memory. We exploit its suitability for sparse and irregular workloads to scale SNN training on long sequence lengths. We find that Double Checkpointing emerges as the most effective method, optimizing the use of local memory resources while minimizing recomputation overhead. This approach reduces dependency on slower large-scale memory access, enabling training on sequences over 10 times longer or 4 times larger networks than previously feasible, with only marginal time overhead. The presented techniques demonstrate significant potential to enhance scalability and efficiency in training sparse and recurrent networks across diverse hardware platforms, and highlights the benefits of sparse activations for scalable recurrent neural network training.

📄 PDF Abstract BibTeX arXiv:2412.11810

Code (0)

등록된 구현이 없습니다.

Tasks

Computational Efficiency

Methods 이 논문이 사용한 방법론

SNN Spiking Neural Networks (SNNs) are a class of artificial neural networks inspired by the structure and functioning of the brain's neural networks. Unlike traditional…
Gradient Checkpointing Gradient Checkpointing is a method used for reducing the memory footprint when training deep neural networks, at the cost of having a small increase in computation time.

Similar Papers 제목 키워드 기반

Efficient, Accurate and Stable Gradients for Neural ODEs

2024-10-15 · Sam McCallum, James Foster

Training Neural ODEs requires backpropagating through an ODE solve. The state-of-the-art backpropagation method is recursive checkpointing that balances recomputation with memory cost. Here, we introduce a class of algeb…

Universal Checkpointing: Efficient and Flexible Checkpointing for Large Scale Distributed Training

2024-06-27 · Xinyu Lian, Sam Ade Jacobs, Lev Kurilenko, Masahiro Tanaka 외

Existing checkpointing approaches seem ill-suited for distributed training even though hardware limitations make model parallelism, i.e., sharding model state across multiple accelerators, a requirement for model scaling…

Learning Long Term Dependencies via Fourier Recurrent Units

2018-03-17 · ICML 2018 7 · Jiong Zhang, Yibo Lin, Zhao Song, Inderjit S. Dhillon

It is a known fact that training recurrent neural networks for tasks that have long term dependencies is challenging. One of the main reasons is the vanishing or exploding gradient problem, which prevents gradient inform…

TierCheck: Tiered Checkpointing for Fault Tolerance in Large Language Model Training

2026-05-18 · Shujie Han, Feng Jiang, Patrick P. C. Lee, Xiao Zhang 외 arxiv

Large Language Model (LLM) training is frequently interrupted by a heterogeneous spectrum of failures, from common GPU crashes to catastrophic cluster-wide outages. Existing checkpointing systems rely on monolithic, sing…

Dynamic Tensor Rematerialization

2020-06-17 · ICLR 2021 1 · Marisa Kirisame, Steven Lyubomirsky, Altan Haan, Jennifer Brennan 외

Checkpointing enables the training of deep learning models under restricted memory budgets by freeing intermediate activations from memory and recomputing them on demand. Current checkpointing techniques statically plan …