cd /news/artificial-intelligence/ibm-is-open-sourcing-cofrnets · home › topics › artificial-intelligence › article
[ARTICLE · art-181942] src=research.ibm.com ↗ pub= topic=artificial-intelligence verified=true sentiment=↑ positive

IBM is open sourcing CoFrNets

IBM has open sourced CoFrNets (Continued Fraction Networks), a lightweight continued-fraction-inspired neural architecture, in a GitHub repository accompanying work that will appear at NeurIPS 2026 next week. IBM reports that a logarithm-exponential rewrite of the division operations stabilizes training and inference of deep CoFrNet ladders without the layer-by-layer incremental training previously required, and that a gated non-expanding CoFrNet replacing multilayer perceptrons in LLMs performs competitively or better with 30-50% fewer parameters. The release lets researchers test base, log-exp and reparametrized variants, including swapping CoFrNets into the FFN or attention layers of nanogpt and gpt2.

key takeaway

Replacing an LLM's multilayer perceptrons with a gated non-expanding CoFrNet matches or beats baseline performance with 30-50% fewer parameters, and rewriting divisions as logarithms and exponentials removes the need for layer-by-layer incremental training of deep ladders.

by read5 min views5 publishedDec 4, 2026
IBM is open sourcing CoFrNets
Image: Research (auto-discovered)

Researchers can now explore continued fraction networks, with applications in generative modeling and beyond.

We are excited to open source CoFrNets (Continued Fraction Networks), a lightweight continued fraction-inspired architecture, through our repository with innovations described below. The repository includes our recent work, which will appear at NeurIPS 2026 next week.<sup>1</sup> The repository allows one to play with and test different variants of CoFrNets in various settings showcasing their flexibility and strength in approximating complicated functions. For instance, one could try the base version with divisions on univariate functions.<sup>2</sup> Or the logarithm-exponential rewrite on real tabular datasets.<sup>1</sup> Or our latest and in many cases best reparametrized version in nanogpt or gpt2 where the FFN (or even attention layers) are replaced by CoFrNets.<sup>3</sup> Beyond this, we encourage you to use the repository for your own application. We also welcome contributions that further extend its capabilities or fix issues that may arise.

Training with speed, stability and parsimony #

CoFrNets are neural networks inspired by the form of continued fractions, which have a ladder-like structure consisting of multiple division operations. One of their main advantages is that they can frugally represent functions with complicated shapes.<sup>4</sup> However, a significant practical hurdle for training and inference is scaling. The division non-linearity scales inefficiently on modern hardware, while small denominators can lead to huge activations, resulting in instability. Together, these factors can spell doom, especially when training deep ladders on large datasets.

Earlier this year we showed that irrespective of the depth of the CoFrNet ladder, we now need to perform only one division, with all other operations being matrix additions or multiplications — highly favorable conditions for modern hardware like GPUs.<sup>2</sup> This idea worked so well that we were able to train multi-billion parameter LLMs efficiently. Nonetheless, for stable training of deep ladders we had to incrementally train them layer by layer, thus altering standard pre-training recipes. We now show that we can forgo the added complexity of incremental training by rewriting divisions in terms of logarithms and exponentials.<sup>1</sup> This simple rewrite stabilizes training and inference of deep ladders. We also propose a gated non-expanding CoFrNet architecture to replace multilayer perceptrons in LLMs where with 30-50% fewer parameters we now perform competitively or even better. However, all the approaches mentioned until now require tuning an є parameter which prevents divide-by-zero.1<sup>, 2</sup><sup>, 4</sup> This makes the optimization non-smooth and hence can affect the final performance of the trained model. Our latest work circumvents this issue in a principled manner, drawing inspiration from physics, and reparametrizes the networks based on a spectral condition.<sup>3</sup> Our reparametrizations also make training more efficient: We no longer must sweep є values. We are now able to successfully train diffusion models for image generation, something that was not possible before.

Why does this matter? #

IBM is one of the world’s leaders in open sourcing cutting edge technology. We believe our repository is consistent with this outlook. 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. So far, we have only seen the benefits of CoFrNets increasing with scale. In fact, when we used CoFrNets with mixture-of-experts (MoE) type of architectures, a critical architectural component of frontier models, we have seen even larger gains in performance.

We thus decided now is the right time to open source this technology, so that the community can play with it and expand upon it. We hope that our contribution will positively impact the fast-growing landscape of open models.

What’s next #

Looking ahead, we are excited about the possibility of creating novel optimization procedures for these models. It is well known in the research and practitioner community, and our own experience shows that optimization is the key to training novel architectures. While the community has invested a lot of effort into scaling, improving optimization approaches will help us utilize the full capacity of the models, resulting in better performance — even with smaller models. One promising direction here is the exploration of gradient-free methods and other heuristics. CoFrNets can also be used to model scientific data in domains such as physics, and they can be potentially good surrogates for systems expressed as partial differential equations. The existence of poles in continued fractions may be a benefit there to model the boundary conditions. One could also experiment with other computing frameworks such as Quantum computing or Optical computing. New classical algorithms could arise from such explorations, besides having implementations that work in those frameworks. They could provide a fresh new perspective on the theory and practice of CoFrNets. From an engineering standpoint, it would be fruitful to integrate these models into both open and proprietary LLMs and see if their parsimony holds, where we witness improved performance for a reduced parameter count.

References #

Amit Dhurandhar, Vijil Chenthamarakshan, Karthikeyan Natesan Ramamurthy, Dennis Wei, & Rahul Nair. Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models. NeurIPS 2026.↩↩<sup>2</sup>↩<sup>3</sup>↩<sup>4</sup> 2. Amit Dhurandhar, Vijil Chenthamarakshan, Dennis Wei, Tejaswini Pedapati, Karthikeyan Natesan Ramamurthy, & Rahul Nair. CoFrGeNet: Continued Fraction Architectures for Language Generation. ICML 2026.↩↩<sup>2</sup>↩<sup>3</sup> 3. Soumyadeep Pal, Amit Dhurandhar, Vijil Chenthamarakshan, Dennis Wei, & Karthikeyan Natesan Ramamurthy. Spec-CoFrGeNet: Reparametrizing Continued Fraction Networks for Stable and Accurate Training. Arxiv 2026.↩↩<sup>2</sup> 4. Isha Puri, Amit Dhurandhar, Tejaswini Pedapati, Kartikeyan Shanmugam, Dennis Wei, & Kush R. Varshney. CoFrNets: Interpretable Neural Architecture Inspired by Continued Fractions. NeurIPS 2021.↩↩<sup>2</sup>

── more in #artificial-intelligence 4 stories · sorted by recency
── more on @ibm 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/ibm-is-open-sourcing…] indexed:0 read:5min 2026-12-04 · —