跳到正文
实时
IBM Research Blog·· 2 小时前58

IBM 开源 CoFrNets 模型架构

IBM is open sourcing CoFrNets

要点速览

IBM 开源 CoFrNets(连续分数网络),一种轻量级、受连续分数启发的架构,其仓库包含将在 NeurIPS 2026 会议上发表的近期工作,支持在多种环境下测试不同变体,展示其在逼近复杂函数的灵活性和强大能力。该架构通过将除一次除法外的所有操作重写为对数和指数,消除了对零除法的 є 参数依赖,稳定了深层网络的训练和推理,并使训练更高效。

正文

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.1 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.2 Or the logarithm-exponential rewrite on real tabular datasets.1 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.3 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.4 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.2 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.1 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, 2, 4 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.3 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.

来源: IBM Research Blog · research.ibm.com