IBM Open-Sources CoFrNets Architecture for Leaner AI Training
The Apache License 2.0 release includes examples for tabular data, nanoGPT and GPT-2, along with diffusion-model experiments.

IBM Research has open-sourced CoFrNets, a neural network architecture inspired by continued fractions, with the design aimed at reducing model size and supporting large language model training.
IBM released the repository under the Apache License 2.0 on Dec. 4. It includes tools and examples covering univariate functions, tabular datasets and integrations with nanoGPT and GPT-2.
CoFrNets use a ladder-like sequence of division operations to approximate complex functions. IBM says the architecture can represent intricate function shapes with 30% to 50% fewer parameters than traditional designs and can replace feed-forward networks or attention layers in large language models.
The architecture initially faced scaling challenges because division operations can be inefficient on modern hardware, while small denominators can destabilize training. IBM says the design was adjusted to use one division operation per layer, with the remaining calculations based on matrix additions and multiplications.
The company also rewrote division operations using logarithms and exponentials to improve training and inference stability in deep networks. IBM says the changes support efficient training of multi-billion-parameter large language models and improve compatibility with graphics processing units.
The repository also includes a gated, non-expanding CoFrNet architecture. IBM says the version removes the need for incremental layer-by-layer training and eliminates dependence on epsilon, a tunable parameter used to prevent division-by-zero errors.
IBM demonstrated the architecture’s potential in generative modeling, including diffusion-model training for image generation. The company said CoFrNets may also inspire new optimization methods and could be explored in quantum or optical computing.
IBM expects the architecture to be explored in scientific applications such as physics, where its ability to model boundary conditions may be useful. The company is inviting developers to extend the repository and address issues.