Learn, Freeze, and Transfer an Activation Function Across Architectures
Arun Prakash A
Abstract
Transfer learning typically reuses knowledge acquired by a source network through its learned weights. We investigate whether a learned activation function can also be transferred and remain useful in networks trained from scratch. We study this complementary form of transfer through a learn-freeze-transfer protocol, in which the activation is optimized jointly with a source network in a single training run, and is then frozen and reused in target networks trained from scratch. A pointwise activation with globally shared parameters is independent of layer dimensions and can therefore be incorporated into networks of different architectures trained from scratch. We instantiate this protocol with FAct, a five-parameter activation represented by a two-harmonic truncated Fourier series, initialized from a Fourier approximation of GELU and learned in a Vision Transformer (ViT) on ImageNet-1K. When reused in a ViT of the same architecture trained from scratch on ImageNet-1K, the frozen activation (Frozen FAct) improves top-1 accuracy by 1.46 percentage points over GELU. Across four smaller target architectures (standard ViT, Swin Transformer, linear-attention ViT, and MLP-Mixer) and four image-classification datasets, it achieves the highest mean accuracy among eleven activation functions in 15 of 16 settings under a common training configuration, with improvements of up to 1.71 percentage points over the best conventional activation. When the learning rate and weight decay are tuned separately for each activation under the same search budget, Frozen FAct still ranks first in 11 of the 16 settings, second in four, and fourth in one. These results provide empirical evidence that a learned activation function can retain its usefulness when transferred across vision architectures, independently of the weights with which it was learned.
Create a lesson
Related papers
Geometrically Constrained Learning II: Agnostic Proper Learning of Lipschitz Functions
Shared title terminology · Jane Lange, Cassandra Marcussen, Arsen Vasilyan
PLoQ: A Prompt-Specific Low-Rank Basis for 4-bit Quantization of LLM Activations
Shared title terminology · Faraz Tahmasebi, Michael Pellauer, Hyoukjun Kwon et al.
Ruby: State-of-the-Art Potency Prediction across Discovery Regimes Using Learned Structural Representations
Shared title terminology · Michael Atkin, Dominique Beaini, Jules Berman et al.
A Sparsity Analysis of Traffic Forecasting Architectures: How Much Missing Data is Too Much?
Shared title terminology · Mohamed Hamad, Bilal Mutahir, Mohamed Mabrok et al.
Active Feature Acquisition by Distilling an Oracle Teacher
Shared title terminology · Yang Meng, Zixin Ding, Robert L. Grossman et al.
The Window Lever: Longer Observation Windows Outweigh the Observed Effects of Data, Capacity, and Architecture in Customer Behavior Forecasting
Shared title terminology · Tara Sowrirajan, Yanqiao Wang