# IBM Open-Sources CoFrNets, a Continued-Fraction Layer Design That Cuts Parameters in Language Models

> Source: <https://epyhia.com/ibm-open-sources-cofrnets-a-continued-fraction-layer-design-that-cuts>
> Published: 2026-12-05 16:08:54+00:00

**Key takeaway:** IBM's gated, non-expanding CoFrNet variant replaces the transformer feed-forward block and reports 30–50% fewer parameters at comparable performance on GPT-2 XL (1.5B) and Llama 3 (3.2B), but the results are IBM's own and not independently reproduced.

# IBM Open-Sources CoFrNets, a Continued-Fraction Layer Design That Cuts Parameters in Language Models

IBM Research released CoFrNets under the Apache 2.0 license on December 4, publishing the PyTorch code and examples at github.com/IBM/CoFrNets. The architecture replaces standard feed-forward or attention layers in transformer models with layers derived from continued fractions, which IBM says can match or beat baseline performance with 30–50% fewer parameters.

## How the layers work

Continued fractions nest divisions in a ladder-like structure. In a neural network, that structure can represent complicated functions compactly, but divisions run slowly on GPUs and small denominators can blow up activations, making deep ladders unstable.

IBM's repository bundles three successive fixes. First, the CoFrGeNet work (ICML 2026) showed that an entire ladder can be evaluated with **one division**, using polynomial continuants for the remaining operations — matrix additions and multiplications that map well to modern hardware. That made multi-billion-parameter language models trainable, but deeper ladders still needed incremental, layer-by-layer training.

Second, a November paper (NeurIPS 2026) rewrites the division using logarithms and exponentials. IBM says this stabilizes deep ladders **without** the incremental workaround. The same paper tests GPT-2, Llama-3, Mamba-2 and a small mixture-of-experts model (nano Llama-MoE), reporting similar or better performance and higher throughput than the earlier continued-fraction design — a comparison **within the same family**, not against every standard architecture.

Third, a spectral-condition reparameterization (dubbed Gershgorin) removes the need to tune an ε parameter that prevents divide-by-zero. IBM says this made optimization smoother and, for the first time, allowed CoFrNets to train diffusion models for image generation.

## What the benchmarks show — and don't

The 30–50% parameter reduction comes from a gated, non-expanding CoFrNet variant that replaces the feed-forward network in transformer blocks. IBM's own experiments used GPT-2 XL (1.5 billion parameters) and Llama 3 (3.2 billion), trained on different datasets (OpenWebText plus GneissWeb for GPT-2; a nine-dataset Docling mix for Llama 3). The company also reports larger gains when CoFrNets are combined with mixture-of-experts routing, a staple of current frontier models.

Those results have not been independently reproduced. The Next Web noted that IBM "has yet to test them in large models," and Superpower Daily highlighted that the November paper's superiority claims are against prior continued-fraction baselines, not against all standard designs. WiseVoter added that the source does not detail the benchmarks or model sizes behind the 30–50% figure.

## What researchers can run today

The repository includes a pip-installable `cofrnet` package and three example notebooks:

- Univariate function fitting (runs on CPU in under a minute)
- Tabular classification on a UCI dataset
- Language modeling in nanoGPT, with configs for a tiny character-level Shakespeare model and GPT-2 (124M) on OpenWebText

The code also demonstrates replacing attention layers, not just feed-forward blocks. IBM says its next engineering step is to integrate CoFrNets into more open and proprietary LLMs to see whether the parameter savings hold at scale.

## Context

The release coincides with a broader industry push for efficiency. Stanford's AI100 panel has warned that scaling is running out of road, and companies such as Multiverse Computing are betting on compression over raw scale. IBM itself has been releasing small open models, including Granite Docling V2 earlier this week.

CoFrNets are a concrete, testable architectural contribution — open code, runnable examples, and papers headed to NeurIPS. Whether the parameter savings translate to frontier-scale models remains an open question that the community can now investigate directly.

## Sources

1. [IBM is open sourcing CoFrNets](https://research.ibm.com/blog/ibm-is-open-sourcing-cofrnets) (research.ibm.com)
2. [IBM open-sources CoFrNets, a way to build AI models with fewer parameters](https://thenextweb.com/news/ibm-cofrnets-open-source-continued-fraction-networks) (thenextweb.com)
3. [IBM releases CoFrNets code to test leaner language-model architectures](https://superpowerdaily.com/posts/ibm-releases-cofrnets-code-to-test-leaner-language-model-architectures) (superpowerdaily.com)
4. [IBM Open-Sources CoFrNets Neural Network Architecture](https://wisevoter.com/world/2026/12/04/ibm-open-sources-cofrnets-neural-network-architecture) (wisevoter.com)
5. [GitHub - IBM/CoFrNets: Continued Fraction Networks · GitHub](https://github.com/IBM/CoFrNets) (github.com)
