IBM open-sources CoFrNets layers that cut parameter counts by 30-50%
IBM Research has open-sourced a PyTorch implementation of CoFrNets, neural network layers inspired by continued fractions. The company says that in language model experiments, the layers delivered competitive or better results with 30% to 50% fewer parameters.
IBM Research announced on December 4, 2026 that it had open-sourced CoFrNets. CoFrNets is a PyTorch implementation of neural network layers inspired by continued fractions. The layers can replace the feed-forward or attention layers in a language model, either in all of them or in selected ones, to build hybrid models.
According to Unite.AI, IBM’s latest language model experiments achieved competitive or better performance with 30% to 50% fewer parameters than standard models. The earlier CoFrGeNet work tested GPT-2 XL (1.5 billion parameters) and Llama 3 (3.2 billion parameters). Spec-CoFrGeNet reportedly delivered similar performance to a feed-forward model on a Diffusion Transformer with about 30% fewer parameters.
The code is available in a public repository. Most of it is licensed under Apache 2.0, while the adapted nanoGPT example is licensed under MIT. Setup requires Python 3.10 and PyTorch 2.0 or later. The CoFrNet module in the cofrnet package can replace the feed-forward layer. The largest example, a 124 million-parameter GPT-2 experiment on OpenWebText, requires a GPU. Some gradient tests are skipped.
The related NeurIPS 2026 paper will be presented in a poster session on December 8, 2026.
Source
This article was compiled with AI assistance from the source above and translated from our Turkish edition.
How we make our stories Spotted an error? Let us know.