Research

IBM Gives Away Continued-Fraction Neural Layers That Cut Parameters

IBM Research open-sourced CoFrNets on December 4, 2026 — PyTorch layers built on continued fractions that reportedly match standard transformers with 30-50% fewer parameters.

IBM Gives Away Continued-Fraction Neural Layers That Cut Parameters
AI-generated
By Elena Vasquez5 min read

Why it matters

  • IBM Research open-sourced CoFrNets on December 4, 2026, reporting competitive LLM performance with 30-50% fewer parameters.
  • The code is an installable PyTorch module that drop-in replaces feed-forward layers; most is Apache License 2.0.
  • A logarithm-exponential rewrite removes the layer-by-layer incremental training earlier CoFrGeNet models required.
  • NeurIPS 2026 experiments cover GPT-2, Llama 3, Mamba-2 and nano Llama-MoE; the paper posters on December 8, 2026.
  • The first image-generation demo, on a Diffusion Transformer, matched the feed-forward model with about 30% fewer parameters.

IBM Research says continued-fraction neural layers can match or beat standard feed-forward and attention layers while using 30% to 50% fewer parameters — and on December 4, 2026, it put the PyTorch code on GitHub for anyone to test.

The release, called CoFrNets, is a small package with outsized ambitions. It ships as an installable cofrnet module that works as a drop-in replacement for a feed-forward layer in an existing language model. Developers can swap every multilayer perceptron or attention layer, or only selected ones, producing hybrid architectures. Most of the code is Apache License 2.0; the adapted nanoGPT example stays under its original MIT License.

Why does this matter? Parameter efficiency is the quiet lever of the AI industry. Training and running large language models costs real money on real GPUs, so a layer design that holds quality with a third to half of the weights touches every downstream bill. IBM frames the open release as an invitation for outside researchers to test that claim.

What is a continued fraction doing in a neural network?

A continued fraction nests divisions within divisions — a mathematical ladder that can express complicated functions compactly. CoFrNets turn that ladder into a learnable network layer. IBM says the function class can represent complicated shapes with relatively few parameters, which is where the efficiency gains come from.

The design carried two practical problems, and IBM's writeup is candid about both. Divisions do not map efficiently onto modern accelerators, and denominators drifting near zero can produce enormous activations that blow up training.

The fix is a piece of classical algebra. The repository uses continuants — polynomials that rewrite the continued-fraction calculation. A ladder with d levels would naively need d divisions. The continuant form uses multiplications and additions, then takes a single ratio. At most one division remains, no matter how deep the ladder goes. Most of the computation becomes matrix arithmetic, which GPUs handle far better than division chains.

How did IBM stabilize deeper ladders?

Stability needed its own answer. Earlier models in this line, called CoFrGeNet, were trained incrementally — layer by layer, with complexity added in stages. That worked, but it complicated standard pretraining and ran against how the field actually trains transformers.

The NeurIPS 2026 paper on the approach describes a logarithm-exponential rewrite of division that stabilizes deeper ladders without any incremental procedure. The paper is scheduled for a poster session on December 8, 2026.

A companion preprint, Spec-CoFrGeNet, submitted on November 24, 2026, tackles the epsilon parameter the earlier design used to prevent division by zero. The authors note that choosing that lower bound made optimization non-smooth and could hurt final performance. Their spectral reparameterization of the partial denominators removes the need to sweep epsilon values, and it eliminates incremental training altogether.

What did the experiments show?

The NeurIPS experiments cover GPT-2, Llama 3, Mamba-2 and nano Llama-MoE. The authors report that a non-expanding gated architecture performs similarly to, or significantly better than, the earlier continued-fraction design — with higher throughput.

The Spec-CoFrGeNet preprint extends the comparisons to GPT-2 XL, nano Llama-MoE and IBM's Granite models. The authors report performance comparable to the original feed-forward-based architectures, and in most cases better than the incremental-training baseline.

The preprint also carries the first image-generation demonstration for continued-fraction networks. On a Diffusion Transformer, the approach matched the feed-forward model's performance with roughly 30% fewer parameters, and significantly outperformed the earlier incremental method.

An earlier CoFrGeNet study shows the scale of the language-model work behind this line. Its GPT-2 XL and Llama 3 experiments used models with 1.5 billion and 3.2 billion parameters, respectively. The authors reported competitive and sometimes superior downstream performance with shorter pretraining — though that work still relied on the incremental procedure the newer papers discard.

What does a developer actually get?

The code requires Python 3.10 or newer and PyTorch 2.0 or newer. The repository's examples span three difficulty levels:

  • Univariate function fitting and a tabular classifier, both of which train on a CPU.
  • A small character-level Shakespeare language model.
  • A 124-million-parameter GPT-2 experiment on OpenWebText, which requires GPUs.

One limitation is documented rather than hidden. Some gradient tests are skipped by design, because the Gershgorin reparameterizations in the release do not support learned partial numerators.

Where does the research go next?

IBM says it observed the largest performance gains in mixture-of-experts architectures. But it presents integration into additional open and proprietary LLMs as future engineering work — the open question is whether the parameter efficiency holds beyond the models tested so far.

The company also lists several directions as research, not shipped capability:

  • Gradient-free optimization.
  • Scientific-data modeling.
  • Surrogates for systems described by partial differential equations.
  • Possible optical or quantum computing implementations.

What should readers take from the release?

The open repository hands the trade-off to the community. IBM's own numbers — competitive quality with 30% to 50% fewer parameters in recent language-model experiments, plus a comparable image-generation result at about 30% fewer parameters — are promising but narrow in scope. The models tested top out at a few billion parameters, well below frontier scale.

The next signal to watch is whether independent teams replicate the efficiency on larger or more diverse training setups. IBM has framed further LLM integration as engineering work rather than a finished result, and the poster session on December 8, 2026 will put the method in front of the research community with the code already available to probe it.

Source: unite.ai

Share this article:

More from Elena Vasquez

Elena Vasquez

Show full bio

Market editor covering technology and product news in artificial intelligence and machine learning at AI In Context.

1,087 articles

Related articles

  1. Google's DeepCrossAttention Cuts Transformer Training Steps by Up to 5x
  2. Sparxity Closes Series A, Lifting Total Funding to $90 Million
  3. Google Open-Sources TorchTPU, a Native PyTorch Backend for Cloud TPUs
  4. Google's Decoupled DiLoCo Trains LLMs Across Data Centers 20x Faster
  5. KiteFishAI's NanoI1: A 155M-Parameter Bet on Private Enterprise AI

« Previous article