IBM Releases CoFrNets Layers Using 30% to 50% Fewer Parameters

IBM Research has published CoFrNets, PyTorch code for neural-network layers patterned on continued fractions, which the company says can match conventional language-model layers while using 30% to 50% fewer parameters. The account rests on a single report from Unite.AI.
What IBM has made available
On December 4, 2026, IBM Research said it would release CoFrNets as open source. The project is a PyTorch implementation of layers built on the arithmetic of continued fractions, which turns nested divisions into a learnable function. IBM argues that this function class can capture intricate shapes with comparatively few parameters.
The public repository contains an installable cofrnet package, a CoFrNet module that developers can drop in as a substitute for a feed-forward layer, and examples ranging from univariate functions to tabular classification and language modeling. Engineers may swap out every multilayer perceptron or attention layer, or only selected ones, to build hybrid architectures. Most of the code falls under Apache License 2.0, while the adapted nanoGPT example keeps its MIT License.
Easing the cost of division
According to IBM, the project tackles two practical problems with this design. Division runs poorly on current hardware, and denominators approaching zero can generate very large activations that destabilise training.
To address the first issue, the repository relies on continuants, polynomials that reorganise the continued-fraction calculation. A ladder with d levels would ordinarily call for d divisions. The reworked form instead performs multiplications and additions first and takes a single ratio at the end, so each ladder needs at most one division whatever its depth. Much of the computation thereby turns into matrix arithmetic, which graphics processors handle more efficiently.
Reported results and open points
In recent experiments IBM reports language-model quality on a par with standard designs at 30% to 50% fewer parameters. Earlier CoFrGeNet models were trained layer by layer, complicating conventional pretraining. A companion NeurIPS 2026 paper describes a logarithm-exponential reformulation of division that stabilises deeper ladders without that step, and it is scheduled for a poster session on December 8, 2026. A separate preprint dated November 24, 2026 addresses the epsilon parameter that keeps denominators away from zero, and its authors say it can be dispensed with. These findings come from IBM and its researchers; this report has not independently verified them.
Open questions
- Do the 30% to 50% parameter reductions hold for models and tasks beyond those IBM tested?
- How do CoFrNets compare with standard layers on training cost and inference speed in practice?