IBM proposes non-expanding gated continued-fraction feedforward layers
Original title: Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models
On GPT-2, Llama-3, Mamba-2 and Llama-MoE, it matches or beats prior CoFrGeNets with higher throughput and stabler deep training.
IBM researchers replace language-model feedforward layers with a non-expanding gated continued-fraction block that can stand in for MLPs, gated linear units, or mixture-of-experts experts. They reimplement the division nonlinearity with logarithms and exponentials so deeper CoFrGeNets train without incremental schedules. Experiments report similar or better results than earlier continued-fraction designs and higher throughput. Code is released at github.com/IBM/CoFrNets.
- The block targets vanilla MLPs, GLUs, and MoE experts.
- Divisions are rewritten using logarithms and exponentials.
- Deeper training no longer needs the prior incremental schedule.
- Tests include GPT-2, Llama-3, Mamba-2, and nano Llama-MoE.
- Organizations
- IBM
From the original article
1 min read at huggingface.coRecent work has shown that continued fraction inspired neural architectures (CoFrGeNets) can be highly parameter efficient yet performant for language modeling. In this work, we revisit continued fraction-based channel mixing with the goal of improving its performance and simplifying integration into standard pre-training protocols for language models.
By Amit Dhurandhar, Vijil Chenthamarakshan, Karthikeyan Natesan Ramamurthy · huggingface.co
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.