The shift is toward leaner models, and IBM just handed developers a new lever. IBM Research open-sourced CoFrNets on December 4, a PyTorch library of neural-network layers built on continued fractions that can replace standard feed-forward or attention blocks in language models while cutting parameter counts by 30 to 50 percent.
The Math Behind the Ladder
Continued fractions nest divisions inside divisions, forming a ladder-like structure that can approximate complicated functions with relatively few parameters. The idea has circulated in mathematics for centuries, but neural networks struggled to use it. Division operations run slowly on modern GPUs, and denominators near zero can explode activations, destabilizing training. Those two bottlenecks kept continued-fraction networks stuck in the lab.
How CoFrNets Clear the Bottlenecks
IBM’s team rewrote the ladder using continuant polynomials. A ladder of any depth now requires at most one division; the rest becomes matrix additions and multiplications — operations GPUs handle natively. A logarithm-exponential rewrite of that remaining division stabilizes deep ladders without the incremental, layer-by-layer training earlier versions needed. A later spectral-condition reparameterization removes the epsilon tuning that previously guarded against divide-by-zero, smoothing the optimization landscape.
The Numbers: Dense vs. Mixture-of-Experts
The NeurIPS 2026 paper evaluates CoFrNets on GPT-2, Llama-3, Mamba-2, and a nano Llama-MoE. Dense models shed about 33 percent of their parameters. Mixture-of-experts models — the architecture behind many frontier systems — drop roughly 50 percent. IBM reports competitive or better quality and higher throughput compared with earlier continued-fraction designs. A companion Spec-CoFrGeNet preprint shows the same 30–50 percent range holding in a Diffusion Transformer for image generation, a task earlier CoFrNets could not train.
What Developers Get Today
The repository ships a cofrnet package under Apache License 2.0 (the nanoGPT example stays MIT). The CoFrNet module drops in as a feed-forward replacement; examples cover univariate functions, tabular classification, and language modeling. Developers can swap every MLP or attention layer, or only selected ones, to build hybrid architectures. IBM says the next step is integrating CoFrNets into larger open and closed models to verify the savings scale.
Watch This Space
The trend underneath is clear: parameter efficiency is becoming a first-class design goal. Stanford’s AI100 panel says raw scaling is running out of road, and teams like Spain’s Multiverse Computing are already compressing models for edge hardware. CoFrNets land in that current — open, testable, and ready for the community to stress-test. The NeurIPS presentation next week will show whether the math holds at scale.
Sources
- IBM open-sources CoFrNets, a way to build AI models with fewer parameters
- IBM is open sourcing CoFrNets
- IBM Open-Sources CoFrNets for Parameter-Efficient AI Models
- IBM CoFrNets open source: paper’s model results | NeoTeo
- IBM releases CoFrNets code to test leaner language-model architectures
- IBM Open-Sources CoFrNets for Efficient Neural Network Training
Photo: Treesmittenex (CC BY-SA 4.0)





