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

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

IBM Research

Published November 23, 2026 · on the feed November 30, 2026 · ▲ 6 · arXiv 2611.26835

Model architectureLLM training & RLEfficiency & inference Code arXiv ↗Hugging Face ↗

The 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

The Brief

2:26

A short podcast summary of the paper. Written and voiced by AI.

Transcript

Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models. By Amit Dhurandhar and four others, from IBM Research. Published on the twenty-third of November.

Recent work showed that neural architectures inspired by continued fractions, called CoFrGeNets, can be highly parameter efficient while still performing well at language modeling. That is an unusual source of inspiration for a neural network layer, and it had shown promise. This work revisits continued fraction-based channel mixing with two goals in mind: improving its performance, and making it simpler to fit into the standard pre-training protocols that language models already use.

The prior approach had a real cost on that second front. Training deeper CoFrGeNets stably relied on incremental training, which prior work proposed as a way to stabilize things, but which added notable complexity to existing large language model training implementations. An architecture that needs its own special training procedure is harder to adopt than one that slots into the procedure people already run.

The authors make two contributions, which they describe as simple yet critical. The first is a new architectural component: a non-expanding, gated, continued fraction inspired block that replaces the feedforward layers of established language model architectures. The second is a different way to compute the non-linearity these architectures depend on. In continued fraction networks, that non-linearity is division.

The new component is meant as a drop-in. It can stand where an architecture would otherwise use a vanilla multilayer perceptron, a gated linear unit, or the vanilla or gated experts of a mixture-of-experts design. For the second contribution, divisions are re-implemented in terms of logarithms and exponentials. That re-implementation is what lets deeper CoFrGeNets train stably without the incremental training that prior work needed, which removes the special procedure entirely.

Experiments span several language modeling architectures: GPT-2, Llama-3, Mamba-2, and a nano-scale Llama-MoE. That range covers standard transformers, a state-space model, and a mixture of experts. Across them, the proposed architecture performs similarly to, or significantly better than, the continued fraction architecture from prior work, and it has higher throughput as well.

Both changes point in the same direction: making a parameter-efficient idea easier to use. One swaps cleanly into the feedforward slot of common architectures, including mixture-of-experts. The other replaces how division is computed, and with that, removes a training workaround that had made the approach awkward to slot into existing pipelines.

More with an account

Listen to every day’s papers

Daily playlists, deep dives, quests for the papers, and quizzes on their key terms.

Join free
KipQuest: the day’s AI research, as podcasts and quests. All papers Android app Privacy Contact Episodes are written and voiced by AI from each paper. Summaries can contain mistakes: the paper is the source.