atlas

Research map / Architectures and efficiency / RNNs and normalization

TrAct: Making First-layer Pre-Activations Trainable

NeurIPS 2024 · Architectures and efficiency › RNNs and normalization · approach: Representation geometry and collapse · 0 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes TrAct, which trains first-layer vision weights so their pre-activation updates match gradient descent on the embeddings, via a closed-form corrected weight update that speeds up training 1.25x-4x at small overhead.

Problem

In vision models, first-layer weight updates are proportional to input pixel values, so low-contrast or very bright/dark images affect first-layer learning unequally, unlike embedding layers in language models.

Approach

Perform a gradient step on first-layer pre-activations, then solve a regularized least-squares problem for the weight update, giving a closed form dW = -eta * grad_z x^T (xx^T/b + lambda I)^-1, implemented as a custom first-layer gradient without changing forward values or architecture.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Apply TrAct to the first layer36 CNN architectures · CIFAR-100, 200 epochs, averageTop-1 accuracy: 75.90% -> 76.39%Helped
Apply TrAct to the first layer36 CNN architectures · CIFAR-100, 200 epochs, averageTop-5 accuracy: 93.19% -> 93.42%Helped
Apply TrAct to the first layerResNet-50 · ImageNet validation, 60 versus 90 epochsTop-1 accuracy: -0.02%No clear effect
Apply TrAct to the first layerResNet-50 · ImageNet validation, 60 versus 90 epochsTop-5 accuracy: +0.04%Helped
Apply TrAct during pre-training and fine-tuningViT-S · CIFAR-10, CIFAR-100, Flowers-102, and Stanford Cars transferAccuracy: 98.94% -> 99.02%; 90.70% -> 90.85%; 94.39% -> 95.58%; 90.44% -> 91.07%Helped
Normalize each input patch to mean 0 and standard deviation 1 instead of using TrAct (ablation)ViT · CIFAR-10, up to 400 epochsAccuracyHelped
Use patch normalization or DualPatchNorm instead of TrAct (ablation)ViT · CIFAR-10, 800 epochsAccuracyHurt
Use DualPatchNorm instead of TrAct (ablation)ViT · CIFAR-10, 200 epochsAccuracyNo clear effect
Remove dataset standardization (ablation)ViT · CIFAR-10, 200 epochs, input ranges [0,1] and [0,255]AccuracyMixed
Train the first layer with SGD while training the rest of the model with Adam (ablation)ViT with TrAct · CIFAR-10AccuracyHelped
Use λ=0.05 rather than the other tested λ values (ablation)TrAct on ResNet-18 · CIFAR-10, most tested training lengthsTest accuracyHelped
Use smaller λ values rather than larger λ values (ablation)TrAct · Short versus long trainingAccuracyMixed

Surprising findings

Limitations

Experimental setup

Datasets: CIFAR-10 CIFAR-100 ImageNet-1k PASCAL VOC2007 Flowers-102 Stanford Cars

Benchmarks: CIFAR-10 CIFAR-100 ImageNet-1k PASCAL VOC2007 Flowers-102 Stanford Cars

Metrics: top-1 accuracy top-5 accuracy mean average precision training runtime

Baselines: vanilla SGD training vanilla Adam training patch-wise normalization DualPatchNorm DeiT III

Builds on: DeiT III Dual PatchNorm ISAAC K-FAC

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy