Reproduce “Layerwise Importance Analysis of Feed-Forward Networks in Transformer-based Language Models” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Wataru Ikeda, Kazuki Yano, Ryosuke Takahashi, Jaesung Lee, Keigo Shibata, Jun Suzuki
Research from Tohoku University, RIKEN, and NII LLMC demonstrates that concentrating Feed-Forward Networks (FFNs) in approximately 70% of the consecutive middle layers during pretraining consistently improves language model performance compared to a uniform FFN distribution. This approach reveals a non-uniform layerwise importance of FFNs, particularly showing their redundancy in initial and final layers across models from 285M to 1.2B parameters.
Key insights
- Severely limiting the number of FFN-active layers (10-30% ratio) consistently degrades model capabilities across tasks, highlighting the necessity of a certain FFN density.
- FFNs in the middle portions of the network consistently exert above-average importance on model performance, while those in the very first and final layers show below-average importance.
- The distribution of FFN importance systematically shifts as model depth increases, with optimal placement moving towards earlier layers in very deep networks (e.g., 40-layer models).
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.