Innovation & Tech

IBM Open-Sources CoFrNets, AI Layers That Cut Parameters Up to 50%

IBM open-sourced CoFrNets on December 4, 2026: PyTorch layers inspired by continued fractions that match GPT-2 and Llama 3 quality with 30-50% fewer parameters.

By Nathan Brooks

4 min read

IBM Open-Sources CoFrNets, AI Layers That Cut Parameters Up to 50%
AI-generated

What's News

  • IBM Research open-sourced CoFrNets on December 4, 2026, under Apache License 2.0
  • IBM reports competitive or better language-model quality with 30% to 50% fewer parameters
  • The NeurIPS 2026 paper posts on December 8, 2026, covering GPT-2, Llama 3, Mamba-2 and nano Llama-MoE
  • Requires Python 3.10+ and PyTorch 2.0+; examples range from CPU tabular tasks to a 124-million-parameter GPT-2 run
  • Diffusion Transformer test matched feed-forward quality with about 30% fewer parameters

IBM Research open-sourced CoFrNets on December 4, 2026, releasing a PyTorch package that the company says matched or beat standard language-model quality with 30% to 50% fewer parameters in recent experiments. The code is free to download today, and it can replace feed-forward or attention layers in existing models.

The release matters because parameter count drives the cost of training and running large models. If the claim holds across architectures, a model that would have shipped at, say, 3 billion parameters could do similar work at roughly 1.5 to 2 billion — roughly cutting the memory and compute bill for the same output quality.

What exactly is in the repository?

The public repo ships three things: an installable cofrnet package, a CoFrNet module designed as a drop-in replacement for a feed-forward layer, and worked examples covering univariate functions, tabular classification and language modeling. Developers can swap out every multilayer perceptron or attention layer, or only selected ones, to build hybrid models. Most of the code carries Apache License 2.0; the adapted nanoGPT example stays under its original MIT License.

Requirements are modest by modern standards: Python 3.10 or newer and PyTorch 2.0 or newer. The introductory examples — fitting univariate functions and training a tabular classifier — run on a CPU. The language-model examples scale from a small character-level Shakespeare model up to a 124-million-parameter GPT-2 run on OpenWebText that needs GPUs.

How do continued fractions become GPU-friendly?

CoFrNets are neural-network layers inspired by continued fractions — expressions that nest divisions within divisions. IBM says this function class can represent complicated shapes with relatively few parameters, which is the whole efficiency argument.

The design had two practical problems. Divisions don't map efficiently onto modern hardware, and denominators close to zero can produce huge activations that destabilize training. IBM solved the first with continuants: polynomials that rewrite the continued-fraction calculation so a ladder with d levels, which naively needs d divisions, instead uses multiplications and additions with at most one division per ladder regardless of depth. Most of the computation becomes matrix arithmetic, which suits GPUs.

Stability required separate fixes. Earlier CoFrGeNet models needed incremental, layer-by-layer training that complicated standard pretraining. A NeurIPS 2026 paper describes a logarithm-exponential rewrite of division that stabilizes deeper ladders without that procedure.

A separate Spec-CoFrGeNet preprint, submitted on November 24, 2026, tackles the epsilon parameter previously used to prevent division by zero. The authors say their spectral reparameterization of the partial denominators removes the need to sweep epsilon values and eliminates incremental training entirely.

What results did IBM report?

The NeurIPS experiments cover GPT-2, Llama 3, Mamba-2 and nano Llama-MoE. The authors report that the non-expanding gated architecture performs similarly or significantly better than the earlier continued-fraction design, with higher throughput. The paper appears in a poster session on December 8, 2026.

The Spec-CoFrGeNet comparisons extend to GPT-2 XL, nano Llama-MoE and Granite. The authors report performance comparable to the original feed-forward-based architectures and, in most cases, better than the incremental-training baseline. That preprint also claims the first image-generation result for continued-fraction networks: on a Diffusion Transformer, the approach matched the feed-forward model with about 30% fewer parameters and significantly outperformed the incremental method.

The scale of the underlying research is real. An earlier CoFrGeNet study ran GPT-2 XL and Llama 3 models with 1.5 billion and 3.2 billion parameters respectively, and reported competitive and sometimes superior downstream performance with shorter pretraining.

What are the current limits?

The repository documents one deliberate gap: some gradient tests are skipped because the Gershgorin reparameterizations do not support learned partial numerators. IBM says it saw larger gains in mixture-of-experts architectures, but integration into additional open and proprietary LLMs remains future engineering work. Gradient-free optimization, scientific-data modeling, PDE surrogates and optical or quantum implementations are listed as research directions, not finished capabilities.

For practitioners, the open release settles the practical question: does parameter efficiency survive contact with your own models and training setup? You can now test that yourself, on Apache-licensed code, before betting a production roadmap on it.

Source: unite.ai

Share this article:

More from Nathan Brooks

Nathan Brooks

Show full bio

News editor covering regulation, policy and their impact on entrepreneurship, startups and venture funding at Business Bearings.

3,308 articles

Related articles

« Previous article