All news

IBM open-sources CoFrNets, neural network layers built on continued fractions

Prepared by Sintelligent with the help of SI. Published in SI: . Updated: .

Developers are getting open-source code for an architecture that, according to IBM, preserves quality with 30–50% fewer parameters.

IBM Research has open-sourced CoFrNets (Continued Fraction Networks), a PyTorch implementation of layers based on continued fractions that replace feed-forward layers or even attention layers in language models. The continued fraction ladder now has a single division; the rest is matrix additions and multiplications, which suit GPUs. Rewriting the division through logarithms and exponentials improves stability, and spectral reparameterization eliminated the need to tune the ε parameter. According to IBM, the gated non-expanding version delivers comparable or better quality with 30–50% fewer parameters. For the first time, diffusion image-generation models were trained on this architecture, and IBM sees an even bigger gain in mixture-of-experts (MoE) configurations. The effect is claimed on small models up to GPT-2; the method has not yet been tested on large open and closed models. The work will be presented at NeurIPS 2026.