IBM Research announced CoFrNets as an open-source implementation on December 4, 2026. The project repository contains a PyTorch package for neural-network layers inspired by continued fractions. In the configurations studied in the NeurIPS paper, its authors report about 33% fewer parameters for dense models and about 50% fewer for mixture-of-experts (MoE) models. IBM Research

What IBM Research released

The repository describes CoFrNet as a drop-in replacement for a feed-forward layer, a component that processes information within a neural network. Its examples also replace MLP and, in some language-model experiments, attention components. The repository includes examples for univariate functions, tabular classification and language modeling.

How CoFrNets reformulates continued fractions

CoFrNets uses continuant polynomials to express a continued-fraction ladder through multiplications and additions followed by at most one division per ladder, according to the repository’s description. That is a change to how the calculation is formulated; the reported parameter-count results are a separate measure.

What the paper reports for dense and MoE models

The NeurIPS paper reports different parameter reductions for its evaluated model categories:

Evaluated model categoryReported parameter reductionScope
Dense configurationsAbout 33%Configurations evaluated in the paper
Mixture-of-experts (MoE) configurationsAbout 50%Configurations evaluated in the paper

The paper evaluates the architecture on GPT-2, Llama-3, Mamba-2 and nano Llama-MoE. Its authors also report higher throughput and performance similar to or better than earlier continued-fraction architectures in their evaluations. Parameter count measures a model’s learned values; the percentages above describe that count, not runtime or energy use.

A separate paper on Spec-CoFrGeNet reports parameter savings of about 30%–50% across its tested language and image-generation models, including about 30% in a Diffusion Transformer experiment. Those results belong to that paper’s evaluated systems, not to every model that uses CoFrNets. (Spec-CoFrGeNet paper)

What the repository includes and how it is licensed

The repository’s code is mostly under Apache License 2.0. The examples/nanogpt/ directory, adapted from nanoGPT, remains under the MIT License.