News
IBM Open-Sources CoFrNets for Efficient Neural Network Training
IBM has open-sourced CoFrNets, a continued fraction-inspired neural network architecture, enabling efficient training and broader AI applications.
IBM Research has announced the open-sourcing of CoFrNets (Continued Fraction Networks), a lightweight neural network architecture inspired by continued fractions. The repository, which includes the latest innovations, is now available under the Apache License 2.0 and features tools for experimenting with CoFrNets across various applications. This development aligns with IBM's commitment to advancing open-source AI technologies.
Continued Fraction-Inspired Architecture
CoFrNets leverage the mathematical structure of continued fractions, which use a ladder-like arrangement of division operations to approximate complex functions efficiently. This design enables CoFrNets to represent intricate function shapes with fewer parameters compared to traditional architectures. IBM reports that CoFrNets can replace feed-forward networks (FFNs) or even attention layers in large language models (LLMs), achieving competitive or superior performance with 30% to 50% fewer parameters.
Overcoming Training Challenges
Despite their advantages, CoFrNets initially faced challenges in scaling due to the inefficiency of division operations on modern hardware and instability caused by small denominators. IBM addressed these issues by reducing the number of division operations to one per layer, with the remaining computations relying on matrix additions and multiplications. This optimization improved compatibility with GPUs and enabled the efficient training of multi-billion parameter LLMs.
Further refinements included rewriting division operations using logarithms and exponentials, stabilizing training and inference for deep networks. IBM also introduced a gated, non-expanding CoFrNet architecture, which eliminates the need for incremental layer-by-layer training and simplifies optimization by removing the dependency on a tunable parameter (ε) that prevents divide-by-zero errors.
Applications and Future Directions
The CoFrNets repository provides examples for univariate functions, tabular datasets, and integration into LLMs like nanoGPT and GPT-2. IBM has also demonstrated the architecture's potential in generative modeling, including training diffusion models for image generation, which was previously unattainable with CoFrNets.
Looking ahead, IBM envisions CoFrNets being applied to scientific domains such as physics, where their ability to model boundary conditions could prove valuable. The architecture may also inspire new optimization methods, including gradient-free approaches, and could be explored within quantum or optical computing frameworks. IBM encourages the community to contribute to the repository by extending its capabilities or addressing any issues.