paper-with-me

Papers

TrAct: Making First-layer Pre-Activations Trainable

2024-10-31 · Felix Petersen, Christian Borgelt, Stefano Ermon

We consider the training of the first layer of vision models and notice the clear relationship between pixel values and gradient update magnitudes: the gradients arriving at the weights of a first layer are by definition directly proportional to (normalized) input pixel values. Thus, an image with low contrast has a smaller impact on learning than an image with higher contrast, and a very bright or very dark image has a stronger impact on the weights than an image with moderate brightness. In this work, we propose performing gradient descent on the embeddings produced by the first layer of the model. However, switching to discrete inputs with an embedding layer is not a reasonable option for vision models. Thus, we propose the conceptual procedure of (i) a gradient descent step on first layer activations to construct an activation proposal, and (ii) finding the optimal weights of the first layer, i.e., those weights which minimize the squared distance to the activation proposal. We provide a closed form solution of the procedure and adjust it for robust stochastic training while computing everything efficiently. Empirically, we find that TrAct (Training Activations) speeds up training by factors between 1.25x and 4x while requiring only a small computational overhead. We demonstrate the utility of TrAct with different optimizers for a range of different vision models including convolutional and transformer architectures.

📄 PDF Abstract BibTeX arXiv:2410.23970

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Hi-fi functional priors by learning activations

2025-08-12 · Marcin Sendera, Amin Sorkhei, Tomasz Kuśmierczyk arxiv

Function-space priors in Bayesian Neural Networks (BNNs) provide a more intuitive approach to embedding beliefs directly into the model's output, thereby enhancing regularization, uncertainty quantification, and risk-awa…

High-Fidelity Transfer of Functional Priors for Wide Bayesian Neural Networks by Learning Activations

2024-10-21 · Marcin Sendera, Amin Sorkhei, Tomasz Kuśmierczyk

Function-space priors in Bayesian Neural Networks provide a more intuitive approach to embedding beliefs directly into the model's output, thereby enhancing regularization, uncertainty quantification, and risk-aware deci…

Decision MakingModel SelectionUncertainty Quantification

TinyTL: Reduce Activations, Not Trainable Parameters for Efficient On-Device Learning

2020-07-22 · NeurIPS 2020 12 · Han Cai, Chuang Gan, Ligeng Zhu, Song Han

On-device learning enables edge devices to continually adapt the AI models to new data, which requires a small memory footprint to fit the tight memory constraint of edge devices. Existing work solves this problem by red…

Transfer Learning

Co-occurrence of deep convolutional features for image search

2020-03-30 · J. I. Forcen, Miguel Pagola, Edurne Barrenechea, Humberto Bustince

Image search can be tackled using deep features from pre-trained Convolutional Neural Networks (CNN). The feature map from the last convolutional layer of a CNN encodes descriptive information from which a discriminative…

DescriptiveImage RetrievalRetrieval

Defending Against Universal Attacks Through Selective Feature Regeneration

2019-06-08 · CVPR 2020 6 · Tejas Borkar, Felix Heide, Lina Karam

Deep neural network (DNN) predictions have been shown to be vulnerable to carefully crafted adversarial perturbations. Specifically, image-agnostic (universal adversarial) perturbations added to any image can fool a targ…

Adversarial Defense