Dong Gyun Kang, Megha Thukral, Kwangsoo Kim
The study investigates whether the choice of activation function in attention heads acts as an intrinsic prior in Transformers. It introduces MoFA, a method that fixes the proportion of softmax and sigmoid activation heads before training. The fixed ratio has minimal impact in-distribution but strongly influences performance under distribution shift, with sigmoid-favoring ratios excelling on technical text and softmax-favoring ones on informal text.
Understanding how architectural choices act as inductive biases helps design more robust models for real-world deployment, where distribution shifts are common. This work provides empirical evidence that activation function choice shapes model behavior under uncertainty, guiding future model design and analysis.
Thank you to arXiv for use of its open access interoperability. arxiv.org. aibrief.ai is not affiliated with or endorsed by arXiv.