IBM Open-Sources CoFrNets, a Layer Design That Cuts LLM Parameters by 30–50%
IBM open-sourced CoFrNets on December 4, claiming continued-fraction layers match or beat transformer baselines with 30–50% fewer parameters. The results are from its own tests on models up to 3.2B parameters.
By Daniel Okafor
3 min read
What's News
- IBM released CoFrNets under Apache 2.0 on December 4, with PyTorch code at github.com/IBM/CoFrNets.
- IBM claims 30–50% fewer parameters at similar or better performance, based on GPT-2 XL (1.5B) and Llama 3 (3.2B) tests.
- A NeurIPS 2026 paper covers the stabilized design, tested on GPT-2, Llama-3, Mamba-2 and nano Llama-MoE.
- The parameter-reduction claims are against prior continued-fraction baselines and have not been independently reproduced.
- The repository ships a pip-installable cofrnet package and three runnable notebooks, including nanoGPT language modeling.
IBM released CoFrNets on December 4 under the Apache 2.0 license, publishing 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. IBM says the design can match or beat baseline performance with 30–50% fewer parameters.
How do continued-fraction layers work?
Continued fractions nest divisions in a ladder-like structure. In a neural network, that structure can represent complicated functions compactly. The problem is hardware: divisions run slowly on GPUs, and small denominators can blow up activations, making deep ladders unstable.
IBM's repository bundles three successive fixes for that instability. Each fix targets a specific bottleneck, and together they made the layers practical.
One division instead of many. The CoFrGeNet work, accepted at ICML 2026, showed that an entire ladder can be evaluated with one division. Polynomial continuants handle 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.
Logarithms instead of division. A November paper, headed to 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). It reports similar or better performance and higher throughput than the earlier continued-fraction design — a comparison within the same family, not against every standard architecture.
No more epsilon tuning. 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 do the benchmarks show — and not show?
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, and 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." Superpower Daily highlighted that the November paper's superiority claims run 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 can researchers run today?
The repository includes a pip-installable cofrnet package and three example notebooks:
- Univariate function fitting, which 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.
Why does this land now?
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 — one the community can now investigate directly.
Source: epyhia.com
More from Daniel Okafor
Show full bio
Correspondent covering money, funding and market shifts around entrepreneurship, startups and venture funding at Business Bearings.
3,241 articles