paper-with-me

홈 › Papers

Lowering PyTorch's Memory Consumption for Selective Differentiation

2024-04-15 · Samarth Bhatia, Felix Dangel

Memory is a limiting resource for many deep learning tasks. Beside the neural network weights, one main memory consumer is the computation graph built up by automatic differentiation (AD) for backpropagation. We observe that PyTorch's current AD implementation neglects information about parameter differentiability when storing the computation graph. This information is useful though to reduce memory whenever gradients are requested for a parameter subset, as is the case in many modern fine-tuning tasks. Specifically, inputs to layers that act linearly in their parameters (dense, convolution, or normalization layers) can be discarded whenever the parameters are marked as non-differentiable. We provide a drop-in, differentiability-agnostic implementation of such layers and demonstrate its ability to reduce memory without affecting run time.

📄 PDF Abstract BibTeX arXiv:2404.12406

Code (1)

plutonium-239/memsave_torch 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Kernel Operations on the GPU, with Autodiff, without Memory Overflows

2020-03-27 · Benjamin Charlier, Jean Feydy, Joan Alexis Glaunès, François-David Collin 외

The KeOps library provides a fast and memory-efficient GPU support for tensors whose entries are given by a mathematical formula, such as kernel and distance matrices. KeOps alleviates the major bottleneck of tensor-cent…

GPU

Fractional-order Jacobian Matrix Differentiation and Its Application in Artificial Neural Networks

2025-06-09 · Xiaojun Zhou, Chunna Zhao, Yaqun Huang, Chengli Zhou 외

Fractional-order differentiation has many characteristics different from integer-order differentiation. These characteristics can be applied to the optimization algorithms of artificial neural networks to obtain better r…

GPU

TorchNTK: A Library for Calculation of Neural Tangent Kernels of PyTorch Models

2022-05-24 · Andrew Engel, Zhichao Wang, Anand D. Sarwate, Sutanay Choudhury 외

We introduce torchNTK, a python library to calculate the empirical neural tangent kernel (NTK) of neural network models in the PyTorch framework. We provide an efficient method to calculate the NTK of multilayer perceptr…

MP-DPD: Low-Complexity Mixed-Precision Neural Networks for Energy-Efficient Digital Predistortion of Wideband Power Amplifiers

2024-04-18 · Yizhuo Wu, Ang Li, Mohammadreza Beikmirza, Gagan Deep Singh 외

Digital Pre-Distortion (DPD) enhances signal quality in wideband RF power amplifiers (PAs). As signal bandwidths expand in modern radio systems, DPD's energy consumption increasingly impacts overall system efficiency. De…

FlashPDE: A Drop-In Fused Triton Operator Library for Neural PDE Solvers

2026-07-20 · Peiyu Zang, Bosen Xie, Ruoxiang Xu, Yongqiang Cai arxiv

Physics-Informed Neural Networks (PINNs) solve PDEs by incorporating physical constraints into neural-network training, but large-scale problems are limited by automatic-differentiation memory overhead and inefficient ex…