# Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models

DevFeed: [Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models](<https://devfeed.tech/articles/non-expanding-gated-continued-fraction-architecture-for-feedforward-layers-in-language-models-148634.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2611.26835>)

Author: Amit Dhurandhar, Vijil Chenthamarakshan, Karthikeyan Natesan Ramamurthy, Dennis Wei, Rahul Nair

Published: 2026-11-23T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Artificial Intelligence](<https://devfeed.tech/sources/arxiv-artificial-intelligence.md>)

Topics: [model architecture](<https://devfeed.tech/topics/model-architecture.md>), [LLM Techniques](<https://devfeed.tech/topics/llm-techniques.md>), [Neural Network](<https://devfeed.tech/topics/neural-network.md>), [mlp](<https://devfeed.tech/topics/mlp.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [Mixture of Experts (MoE)](<https://devfeed.tech/topics/mixture-of-experts-moe.md>), [Mamba](<https://devfeed.tech/topics/mamba.md>)

Tags: [architecture](<https://devfeed.tech/tags/architecture.md>), [cs-ai](<https://devfeed.tech/tags/cs-ai.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [language-models](<https://devfeed.tech/tags/language-models.md>), [layers](<https://devfeed.tech/tags/layers.md>), [mixture-of-experts-moe](<https://devfeed.tech/tags/mixture-of-experts-moe.md>), [training](<https://devfeed.tech/tags/training.md>)

## AI overview

The paper proposes a non-expanding gated continued fraction component to replace feedforward layers in language models, including MLP, gated linear, and MoE variants. It also reimplements division using logarithms and exponentials. Across GPT-2, Llama-3, Mamba-2, and (nano) Llama-MoE experiments, the authors report performance similar to or significantly better than an earlier continued fraction architecture, with higher throughput. They say the division reimplementation stabilizes training of deeper CoFrGeNets without the incremental training approach used in prior work. The supplied text gives no quantitative results or experimental details.

## Source excerpt

arXiv:2611.26835v1 Announce Type: cross Abstract: Recent 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. We achieve this by two simple yet critical contributions: i) we propose a novel non-expanding gated continued fraction inspired architectural component to replace feedforward layers in established language model architectures that may use vanilla multilayer perceptrons or gated linear units or (vanilla/gated) experts in mixture-of-experts (MoE) type architectures. ii) We propose a way to re-implement divisions -- the non-linearity in these architectures -- in terms of logarithms and exponentials. By experimenting on different language modeling architectures such as GPT-2, Llama-3, Mamba-2 and (nano) Llama-MoE we find that our proposed architecture performs similarly or significantly better than the continued fraction architecture proposed in prior work along with having higher throughput. In addition, our re-implementation of divisions makes training of deeper CoFrGeNets stable without the need for incremental training which was proposed in prior work as a means to stabilize training, but added notable complexity to existing large language model training implementations. Code is available at http://github.com/IBM/CoFrNets