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

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

[NeurIPS page](https://neurips.cc/virtual/2026/poster/151115) · [Open on the map](../papers.html#p151115)

Category: [Efficient LLM Inference & Training](../pcat/14.md) › [Efficient Sequence Modeling](../pgroup/450.md) · Type: new method · Keywords: continued fraction architecture, language model pre-training, parameter-efficient feed-forward, training stability, gated neural network

Areas: [Model Architectures & Sequence Modeling](../areas/architectures.md) › Language Model Architectures › Mixture Architectures

## Summary
The paper introduces a non-expanding gated continued fraction architecture to replace feedforward layers in language models, simplifying training and improving throughput.

## Explained to a 5-year-old
Computers can learn to talk by looking at lots of words. They have a part that mixes information from one word to the next. This part can be made small to save memory, but sometimes it is hard to train. The new idea adds a little gate that helps keep the size the same and uses a different math trick. Because of this, the training becomes more stable and faster.

## Explained to a 5-year-old, longer
Computers can learn to talk by looking at lots of words. They have a part that mixes information from one word to the next. This part can be made small to save memory, but sometimes it is hard to train. The new idea adds a little gate that helps keep the size the same and uses a different math trick. This math trick uses logs and exponentials, which are like counting up and down. Because of this, the training becomes more stable and faster. The new design can be used in many popular models like GPT-2, Llama-3, Mamba-2 and tiny versions of Llama-MoE. It works as well as the old design or even better. It also uses less computer power, which is good for the environment. The changes make it easier for developers to add this efficient part to their models without extra steps. Overall, the paper shows a simpler way to make language models that are both powerful and economical.

## For a technical reader
The paper proposes a modification to the standard feed-forward layers in large language models by replacing them with a gated continued-fraction block that does not increase the hidden dimension. This block reformulates the division operation using logarithms and exponentials, which stabilizes training and eliminates the need for incremental training schedules. Experiments on GPT-2, Llama-3, Mamba-2 and a nano MoE variant show performance at least as good as prior continued-fraction designs while delivering higher throughput. The changes are straightforward to integrate into existing model codebases, requiring only a few lines of custom operations. As a result, practitioners can now adopt a more parameter-efficient and stable architecture for language model pre-training.

## Problem
Existing continued-fraction inspired neural architectures for language modeling are parameter efficient but suffer from instability in deeper models and require incremental training to stabilize. Additionally, integrating them into standard pre-training pipelines can be complex.

## Method
The approach replaces standard feedforward layers with a gated continued-fraction component that does not expand channel dimensions, and re-implements the division non-linearity using logarithms and exponentials to stabilize training. This allows the architecture to be integrated directly into existing models without incremental training.

## Results
The approach matches or exceeds prior continued-fraction architectures in performance while delivering higher throughput, and enables stable training of deeper models without incremental training steps.

## Contributions
It introduces a non-expanding gated continued-fraction component for feedforward layers and a log-exponential reformulation of divisions that simplifies integration and stabilizes training. These changes allow the architecture to be used directly in mainstream language model pre-training pipelines.

## Practical relevance
This simplifies adoption of efficient continued-fraction architectures for large-scale language model training, enabling practitioners to use them without complex training tricks.

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. [Suggest a correction](../feedback/?on=p/151115)
