What changed

IBM has open-sourced CoFrNets, a novel neural network architecture inspired by continued fractions, through its repository. The open-source release includes recent work that will appear at NeurIPS 2026. Researchers can now experiment with different variants of CoFrNets in various settings, showcasing their flexibility and strength in approximating complex functions. Examples include testing the base version with divisions on univariate functions, the logarithm-exponential rewrite on real tabular datasets, and a reparametrized version in nanogpt or gpt2 where the FFN or attention layers are replaced by CoFrNets.

What this means in practice

CoFrNets are neural networks inspired by continued fractions, which have a ladder-like structure with multiple division operations. One of their main advantages is their ability to frugally represent functions with complex shapes. However, training and inference can be hindered by scaling issues, as division non-linearities scale inefficiently on modern hardware and small denominators can lead to unstable activations. IBM's research shows that regardless of the depth of the CoFrNet ladder, only one division is needed, with the rest being matrix operations, which is favorable for GPUs. This approach enabled the efficient training of multi-billion parameter LLMs. IBM also introduced a gated non-expanding CoFrNet architecture that can replace multilayer perceptrons in LLMs with 30-50% fewer parameters, performing competitively or better. However, tuning an ε parameter to prevent divide-by-zero issues remains a challenge, which IBM's latest work addresses through reparametrization inspired by physics.

Limitations and availability

The repository allows researchers to test and extend CoFrNets, but all approaches mentioned require tuning an ε parameter to prevent divide-by-zero issues. IBM's latest work circumvents this by reparametrizing the networks based on a spectral condition, making training more efficient. The open-source release is available through IBM's repository, and the community is encouraged to contribute to its development. IBM highlights that CoFrNets have shown performance gains when used with mixture-of-experts (MoE) architectures, a critical component of frontier models. The open-source release aims to enable the community to refine and expand upon this technology.

Source facts for IBM Open Sources CoFrNets for Generative Modeling: The division non-linearity scales inefficiently on modern hardware, while small denominators can lead to huge activations, resulting in instability. It provides the community with tools to try, refine, and extend a promising and novel function class for all kinds of model fitting. Generative modeling is currently the toast of the town, but many promising ideas fail when scaled.
Original AINewsTrend explainer based on the cited source. This graphic summarizes source statements; it is not an independent benchmark.

Sources and further reading

  1. ibm: IBM is open sourcing CoFrNets