Non-Expanding Gated Continued Fraction Architecture for Feedforward Layers in Language Models
Amit Dhurandhar, Vijil Chenthamarakshan, Karthikeyan Natesan Ramamurthy, Dennis Wei, Rahul Nair
NeurIPS 2026
TL;DR. We propose a novel continued fraction architecture to replace FFNs in different language model architectures as well as a simple trick for stable training by reimplementing the division non-linearity in these architectures..
Abstract. Recent work has shown that continued fraction inspired neural architectures (CoFrGeNets) can be highly parameter efficient yet performant for language modeling. In this work, we revisit continued fraction-based channel mixing with the goal of improving its performance and simplifying integration into standard pre-training protocols for language models. We achieve this by two simple yet critical contributions: i) we propose a novel non-expanding gated continued fraction inspired architectural component to replace feedforward layers in established language model architectures that may use vanilla multilayer perceptrons or gated linear units or (vanilla/gated) experts in mixture-of-experts (MoE) type architectures. ii) We propose a way to re-implement divisions -- the non-linearity in these architectures -- in terms of logarithms and exponentials. By experimenting on different language modeling architectures such as GPT-2, Llama-3, Mamba-2 and (nano) Llama-MoE we find that our proposed architecture performs similarly or significantly better than the continued fraction architecture proposed in prior work along with having higher throughput. In addition, our re-implementation of divisions makes training of deeper CoFrGeNets stable without the need for incremental training which was proposed in prior work as a means to stabilize training, but added notable complexity to existing large language model training implementations. Code is available at \url{http://github.com/IBM/CoFrNets}.
Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.
Claim this paperedit · history
NeurIPS 2026
Accept (poster) · 3 reviews · OpenReview
Updated 25 Nov 2026, 03:47 UTC.
- Decision
- Accept (poster)
Read decision
Meta-review
This paper proposes a non-expanding gated continued fraction module as a parameter-efficient replacement for feedforward layers, together with a log/exp reformulation of division that stabilizes training. Reviewers find the direction meaningful and the evaluation broad across architecture families.
The main concerns for the rebuttal are: the contribution appears incremental over prior continued fraction work and its significance should be better articulated; scaling behavior is untested and iso-FLOP or larger-scale comparisons are needed; implementation and pretraining details are insufficient for reproduction and fair comparison; and inference efficiency, including latency and precision considerations, is not evaluated. Reviewers also note that presentation and figure clarity need improvement, and that ablations isolating the source of the gains would strengthen the paper.
Final justification
I have read the authors' rebuttal and the ensuing discussion: the new 8.6B MoE, Granite 4.1 expansion-factor, and Chinchilla-style scaling experiments, together with the added implementation details, inference latencies, and NF4 quantization results, substantively address the concerns in my initial meta-review. Reviewers Lkou and Zuen confirmed their concerns were resolved and raised their scores to 5; Reviewer o2pP did not respond post-rebuttal, but their concerns overlap with those addressed on the record. I recommend Accept (poster), with the promised revisions (updated figure with pseudocode, full implementation details, and the new scaling, inference, and quantization results) incorporated in the camera-ready.
Read meta-review
Meta-review
This paper proposes a non-expanding gated continued fraction module as a parameter-efficient replacement for feedforward layers, together with a log/exp reformulation of division that stabilizes training. Reviewers find the direction meaningful and the evaluation broad across architecture families.
The main concerns for the rebuttal are: the contribution appears incremental over prior continued fraction work and its significance should be better articulated; scaling behavior is untested and iso-FLOP or larger-scale comparisons are needed; implementation and pretraining details are insufficient for reproduction and fair comparison; and inference efficiency, including latency and precision considerations, is not evaluated. Reviewers also note that presentation and figure clarity need improvement, and that ablations isolating the source of the gains would strengthen the paper.
Final justification
I have read the authors' rebuttal and the ensuing discussion: the new 8.6B MoE, Granite 4.1 expansion-factor, and Chinchilla-style scaling experiments, together with the added implementation details, inference latencies, and NF4 quantization results, substantively address the concerns in my initial meta-review. Reviewers Lkou and Zuen confirmed their concerns were resolved and raised their scores to 5; Reviewer o2pP did not respond post-rebuttal, but their concerns overlap with those addressed on the record. I recommend Accept (poster), with the promised revisions (updated figure with pseudocode, full implementation details, and the new scaling, inference, and quantization results) incorporated in the camera-ready.
- Rating
- 4/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 2/4
- Significance
- 3/4
- Originality
- 2/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
This paper proposes a non-expanding gated continued-fraction architecture as a replacement for feed-forward layers in language models. The proposed module first applies a non-expanded gated transformation to the input and then passes the result through an ensemble of continued-fraction ladders, aiming to reduce the parameter cost of FFN layers while preserving language-modeling performance. The paper also proposes a log/exp-based implementation of the continued-fraction division operation to stabilize training without the incremental training schedule used in prior CoFrGeNet work. The authors evaluate the approach across GPT-2, Llama-style, Mamba-2, and Llama-MoE architectures, reporting that the proposed replacement achieves substantially smaller models with similar or sometimes better performance, as well as improved training throughput and reduced FLOPs/token.
Strengths and weaknesses
Strengths
- The paper targets an important problem. FFN layers account for a large fraction of parameters in modern language models, so a drop-in FFN replacement that substantially reduces parameters while maintaining performance would be valuable.
- The empirical claim is potentially strong. The results suggest that replacing FFNs with the proposed continued-fraction module can produce models that are roughly (2/3) the size for dense models and around (1/2) the size for the MoE setting, while remaining competitive with the original architectures. If this behavior generalizes, it would be an important result for efficient pretraining.
- The evaluation covers multiple architecture families. The paper does not only evaluate on a single Transformer variant, but also tests GPT-2, Llama-style models, Mamba-2, and a Llama-MoE setting. This makes the proposed replacement look more broadly applicable than a narrowly tuned architectural trick.
- The pretraining experiments are nontrivial. The authors appear to spend substantial compute on actual pretraining experiments rather than only small-scale proxies. This is important for an architecture paper, since many FFN alternatives look promising at small scale but fail under realistic pretraining.
Weaknesses
- The novelty is somewhat limited. The paper builds directly on prior CoFrGeNet work, which already proposed continued-fraction architectures as parameter-efficient FFN replacements. The main new components are the non-expanding gated variant and the log/exp implementation of division. These are useful modifications, but the conceptual leap over prior continued-fraction FFN replacements seems relatively modest. The paper would be stronger if it more clearly distinguished what is fundamentally new from what is inherited from previous CoFrGeNet designs.
- Important technical details are missing or under-specified. For a pretraining architecture paper, the method and experimental setup need to be very precise. The paper does not provide enough detail about the exact continued-fraction hyperparameters used for each model, such as ladder depth, number of ladders, projection dimensions, and how these choices were selected. The parameter-count formulas are also not sufficiently clear for different FFN types, especially vanilla MLPs, gated FFNs, Mamba channel mixers, and MoE experts. This makes it hard to fully understand or reproduce the reported parameter savings.
- The pretraining setup is not described in enough detail. The authors report large pretraining runs, but several important details are missing or only briefly stated, including exact token counts per model, global batch size, sequence length, tokenizer, warmup schedule, optimizer betas, gradient clipping, data mixture proportions, and checkpoint selection. Since the core claim depends on pretraining behavior, these details are important.
- The inference-efficiency story is incomplete. The paper reports training throughput, training time, and FLOPs/token, which are useful. However, it does not report autoregressive inference latency, prefill/decode throughput, peak memory, or batch/sequence-length sweeps. Since the architecture is proposed as a practical FFN replacement for language models, inference efficiency is an important missing component. This is especially relevant because continued-fraction ladders involve a less standard computation pattern than ordinary dense FFNs, and the authors themselves note that a more memory-efficient implementation may require dedicated kernels.
- The writing and presentation quality are poor. The paper is difficult to follow in several places. The main architecture figure is not very clear, the appendix is thin, and some explanations are informal.
- The paper does not sufficiently explain what makes the architecture work. The results look promising, but the mechanism behind the gains is not fully isolated. It is unclear how much of the improvement comes from non-expansion, gating, the continued-fraction ladders, the number/depth of ladders, or the log/exp division replacement. More targeted ablations would make the contribution easier to interpret.
Questions
Please see Weaknesses.
Limitations
Yes
Formatting concerns
N/A
2 comments
Responded to your main concerns
Dear Reviewer,
Thank you for your review and support of our work. We have provided detailed responses to your concerns below. We would be happy to alleviate any follow up questions you might have before the author-reviewer discussion phase ends on August 3rd.
Thank you,
Authors
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 3/4
- Clarity
- 3/4
- Significance
- 3/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
The paper investigates continued-fraction-inspired neural architectures as parameter-efficient replacements for the heavy FFN modules in language models. Based on CoFrGeNet, it proposes a non-expanding gated continued-fraction module and reformulates the division operation using log and exp to improve accuracy numerical stability. The proposed reformulation also avoids the incremental training procedure required in prior work. Experiments suggest that the proposed module can reduce parameter count and improve or maintain performance across several language modeling and downstream benchmarks, while also providing competitive training throughput.
Strengths and weaknesses
Significance and Originality
-
The paper investigate an important component of modern language models: the parameter-heavy FFN module, which often accounts for a large fraction of model parameters. Exploring more parameter-efficient replacements for these modules is a meaningful direction.
-
The method is built on continued-fraction networks and makes them more practical for usage, which seems to be a relatively underexplored direction.
-
To make the method more convincing, it would be helpful to conduct scaling-law studies, which could help readers better assess its scaling potential compared with Transformer architectures.
Quality and Clarity
-
The proposed modifications over prior CoFrGeNet architectures are reasonable. In particular, the non-expanding gated design borrows a GLU/SwiGLU-like gating pattern while avoiding the usual hidden-dimension expansion. In addition, the paper reformulates the continued-fraction division using sign, log/exp, and denominator clipping, which is a useful attempt to improve stability and remove the need for the incremental training procedure used in prior CoFrGeNet work.
-
However, I did not find many implementation details of the proposed architecture itself, such as the number of layers and embedding dimensions, analogous to the definitions of other models shown in Table 1. Since the authors adopt different model hyperparameters for different models, and these choices can significantly affect accuracy, it would be helpful to list the implementation details of their own models for a more thorough understanding and fairer comparison.
-
The efficiency claim is not fully established. Although the paper reports training throughput, inference efficiency is also very important. Standard FFN/GLU blocks are dominated by highly optimized GEMMs, while the proposed continued-fraction module introduces more complex nonlinear operations. Therefore, it would be clearer to report inference efficiency under the same parameter budgets, including both prefill latency with large batch sizes and decoding latency with small batch sizes.
Questions
Please see above.
Limitations
The paper discusses its limitations.
Final justification
Almost all my concerns are addressed. I'm happy to increase my score to 5.
Formatting concerns
The format looks good to me.
4 comments
Rebuttal
Thank you for your constructive review. Below are our responses.
Scaling behavior?
Despite the quick turnaround required for the rebuttal we were able to conduct the following additional experiments which we hope alleviate some of the (model) scaling behavior questions.
We pretrained a Llama-MoE (8.6B) with 4 experts 1 activated (i.e. 3.2B parameters activated) on the Docling data mix using 128 H100s and evaluated the 250B token checkpoint. The remaining training setup was the same as that for the MoE reported in the paper with the embedding dimension, expansion factor and number of layers same as Llama 3.2B. For comparison we also pre-trained a CoFrGeNet-FNG (5B) with exactly the same settings used to train the 8.6B MoE. Non-expansion leads to a drop to 5B size from 8.6B. Here are the results on the benchmarks.
| Model | openqa | piqa | arc | wino | hswag | lambada | boolq | sciq |
|---|---|---|---|---|---|---|---|---|
| Llama-MoE (8.6B) | 2.12 | 0.670 | 0.594 | 0.555 | 0.335 | 0.380 | 0.654 | 0.833 |
| CoFrGeNet-FNG (5B) | 2.25 | 0.685 | 0.617 | 0.548 | 0.368 | 0.372 | 0.637 | 0.857 |
As can be seen CoFrGeNet-FNG is better than the Llama-MoE in majority of the cases and competitive in others even though it has a much smaller size as was the case for the smaller MoE in the paper. This indicates that our approach scales well.
To showcase a scaling curve we pretrained variants of CoFrGeNet at different expansion factors leading to models of different size. Moreover, to further show generality of our approach across architectures we report experiments on a Granite 4.1 dense architecture which is recent and was not reported in the paper. We pretrain a 2B size model on web and math datasets (web-nemotron-cc, megamath-web, finemath-3plus) part of the Nematron repository (by NVIDIA) for 125B tokens. For CoFrGeNet we create four variants of increasing size to observe scaling behavior: CoFrGeNet-FNG has no expansion similar to the paper. CoFrGeNet-F2G, CoFrGeNet-F2.4G and CoFrGeNet-FG have expansion factors of 2, 2.4 and 3.2, where 3.2 is the expansion factor in Granite 4.1 (2B). The training of each variant was done using Adam with 3K warmup steps and 27K cosine decay steps with weight decay of , , , batch size , peak learning rate using fsdp on 64 H100s. Model details are in the Table below.
Rows = metrics, columns = models. Bold values indicate results of CoFrGeNets that are no worse than Granite. All benchmark values are accuracies except the PPL row which is perplexity where a lower value is better. The last two rows are derived metrics where Avg. Acc. averages the accuracies across the benchmarks and Int. density (i.e. Intelligence density) is Avg. Acc. per billion parameters.
| Metric | Granite 4.1 | CoFrGeNet-FNG | CoFrGeNet-F2G | CoFrGeNet-F2.4G | CoFrGeNet-FG |
|---|---|---|---|---|---|
| params | 2.14B | 1.10B | 1.57B | 1.76B | 2.14B |
| savings % | 0 | 50 | 27 | 17 | 0 |
| embedding size | 2560 | 2560 | 2560 | 2560 | 2560 |
| intermediate size | 8192 | 2560 | 5120 | 6144 | 8192 |
| layers | 24 | 24 | 24 | 24 | 24 |
| wikitext_0s (PPL) | 16.21 | 18.59 | 17.17 | 16.79 | 16.19 |
| arc_challenge_0s | 0.4198 | 0.3771 | 0.3933 | 0.4087 | 0.4113 |
| arc_challenge_25s | 0.4317 | 0.3959 | 0.4138 | 0.4189 | 0.4352 |
| arc_easy_0s | 0.6932 | 0.6414 | 0.6902 | 0.6923 | 0.7008 |
| arc_easy_25s | 0.7437 | 0.7092 | 0.7231 | 0.7269 | 0.7479 |
| boolq_0s | 0.5774 | 0.6021 | 0.6382 | 0.6251 | 0.6122 |
| boolq_10s | 0.5994 | 0.4639 | 0.5991 | 0.6434 | 0.6135 |
| coqa_0s | 0.5919 | 0.5361 | 0.5541 | 0.5567 | 0.565 |
| hellaswag_0s | 0.5945 | 0.5327 | 0.5681 | 0.5814 | 0.5947 |
| hellaswag_10s | 0.6055 | 0.5434 | 0.5792 | 0.5915 | 0.6043 |
| lambada_openai_0s | 0.4873 | 0.4502 | 0.4749 | 0.4855 | 0.49 |
| openbookqa_0s | 0.352 | 0.354 | 0.368 | 0.35 | 0.374 |
| piqa_0s | 0.7486 | 0.7312 | 0.7329 | 0.7454 | 0.7465 |
| piqa_25s | 0.7497 | 0.7432 | 0.7437 | 0.753 | 0.7514 |
| sciq_0s | 0.908 | 0.867 | 0.904 | 0.911 | 0.9 |
| sciq_5s | 0.959 | 0.942 | 0.954 | 0.96 | 0.96 |
| winogrande_0s | 0.5691 | 0.558 | 0.562 | 0.5872 | 0.5841 |
| winogrande_5s | 0.5793 | 0.5556 | 0.577 | 0.5777 | 0.5793 |
| gsm8k_cot_5s | 0.1865 | 0.1221 | 0.1486 | 0.1827 | 0.2002 |
| gsm8k_cot_8s | 0.2085 | 0.1274 | 0.163 | 0.1888 | 0.1926 |
| Avg. Acc. | 0.5792 | 0.5396 | 0.5677 | 0.5782 | 0.5822 |
| Int. density | 0.2701 | 0.4877 | 0.3597 | 0.3272 | 0.2715 |
As can be seen above all our variants are competitive— even those with 50% and 27% savings. But perhaps most interestingly at iso-parameters our variant CoFrGeNet-FG outperforms Granite in most of the cases (% cases). Both of the above results show favorable scaling behavior for our models. We will train on more tokens both the 8.6B Llama MoE and the 2B Granite for the final version.
implementation details
For a fair comparision we replace only the FFN blocks with our (non-expanding gated) CoFrGeNet architecture in the corresponding models. All other hyperparameters and architecture details are kept the same. Hence, the CoFrGeNet-FNG variants for the models in Table 1 have the same number of layers as well as embedding dimension. All models are trained with an annealing schedule with weight decay of , , and peak learning rate using Adam optimizer.
We would also like to note that we plan to release code in the months leading up to NeurIPS. This we believe will strongly facilitate the community trying our architecture consistent with the intent behind your suggestions.
inference time
We compare the original models with the corresponding CoFrGeNet-FNG variant (line below the original model). The times are per token for a batch size of 16 averaged over 10 batches using a single H100 gpu are reported below.
| Model | Dataset | Inf. time () |
|---|---|---|
| GPT2-xl | OWT | |
| CoFrGeNet-FNG | OWT | |
| GPT2-xl | GW | |
| CoFrGeNet-FNG | GW | |
| Llama3 | Docling | |
| CoFrGeNet-FNG | Docling | |
| Mamba-2 | Docling | |
| CoFrGeNet-FNG | Docling | |
| Llama-MoE | Docling | |
| CoFrGeNet-FNG | Docling |
With a vLLM implementation in the future we believe these times should improve even further.
Responded to your main concerns
Dear Reviewer,
Thank you for your review and support of our work. We have provided detailed responses to your concerns below. We would be happy to alleviate any follow up questions you might have before the author-reviewer discussion phase ends on August 3rd.
Thank you,
Authors
Respond
Thank you for your rebuttal.
For the scaling-law study, I'd like to clarify I was pointing to ChinChilla paper. Its findings and curves were investigated and compared in many architecture papers such as Mamba, StructuredFFN, BLT, Griffin, to show the good scaling behavior of the new model.
The setting is to use several increasing sizes, e.g., 130M, 350M, 730M, 1.3B..., with training token size set to 20x of the parameter size. Then by plotting the training flops and PPL (loss) in the log space, we can identify whether the scaling curve is healthy compared to transformers.
This series of experiments is not costly and can be done quickly to show the scaling potential, compared to Transformer.
Chinchilla like scaling study
Thank you for your clarification! We trained Granite 4.1 a dense transformer and corresponding CoFrGeNet-FG models (i.e. models with same expansion factor of 3.2 as Granite so that the number of parameters is similar) on the Nematron datasets described in our original response to you. We trained models of (roughly) size 268M, 535M, 1.07B and 2.14B where each model had the same number of layers (i.e. 24) but the embedding dimensions were 712, 1120, 1712 and 2560 respectively. The number of tokens each model was trained on was (roughly) 20 times its size. The other training and model details such as learning rate, weight decay, number of GPUs etc. were the same as that described in our original response to you. Here are the results. We report perplexity and training flops over all tokens (in Exa-FLOPS (EF) which is FLOPS) as per your ask.
| params | 268M | 535M | 1.07B | 2.14B |
|---|---|---|---|---|
| embedding size | 712 | 1120 | 1712 | 2560 |
| intermediate size | 2278 | 3584 | 5478 | 8192 |
| training tokens | 5.2B | 10.6B | 21.5 B | 42 B |
| (Granite) wikitext_0s (PPL) | 33.98 | 23.88 | 19.13 | 17.10 |
| (CoFrGeNet-FG) wikitext_0s (PPL) | 32.33 | 23.65 | 18.92 | 16.79 |
| (Granite) FLOPS (EF) | 80.1 | 340.5 | 1410.2 | 5782.8 |
| (CoFrGeNet-FG) FLOPS (EF) | 80.6 | 340.7 | 1410.8 | 5783.2 |
As can be seen above the perplexities are better for our model across different parameter and data scales even though the FLOPS are similar.
- Rating
- 5/6
- Confidence
- 4/5
- Quality
- 2/4
- Clarity
- 3/4
- Significance
- 2/4
- Originality
- 3/4
- Contribution type
- general
- Ethical concerns
- NO or VERY MINOR ethics concerns only
Read review
Summary
In this paper, authors propose an architecture followed up CoFrGeNet which was a recent ICML accepted paper. The goal is similar to the previous paper, replacing discrete FFNs with continued fraction module. In this follow up paper, authors added a new sub change to this non-expanding gated continued fraction module. If my understanding is correct, the main change of this paper is that different from previous division, authors are computing the division of the previous proposed fraction form differently, namely with exp and logs.
I am debating between this is more like an engineering-level practice or change to make the model training more stably and this is significant enough as a standalone paper. Results are positive trending aside from those. I am also concerned with the lack of scaling behavior study and large/deep/wide enough models to demonstrate the change is not false positive.
Strengths and weaknesses
Strength:
-
simple change but make the training stable and results better
-
saves params
Weakness:
- Figure one is a little bit too similar to the original CoFrGeNet, and the left side is unnecessary. I would replace that with a standard GPT-2 architectecture with MoE and then explain clearly how those changes were placed, and whether those will impact residual streams or not. The major issue of reading this figure is that a lot of details were not clearly documented, and for pretraining, every detail matter. I recommend,
-
a. use pseudo code to explain what are inputs, outputs with a standard architecture, so that people can replicate and try in their architectures with good amount of details and context, and particularly, residuals and existing LLM architectures with MoEs. I can guess what are placed but not 100% sure.
-
b. avoid plagiarism(this includes self plagiarism), please polish the figure or cite the figure of the original CoFrGeNet and make a footnote
- Scaling behavior is unknown
I am not 100% convinced whether the method is only converging faster or exhibits better scaling behavior. I recommend adding iso-flops figures to prove this point. Particularly the paper argues the stability but there were not signal or real large models, like up to 6b activation params. As compute is getting less expensive, whether with this method, we can spend params somewhere else instead of in FFNs to make the model show a better scaling trend
Questions
see weakness
Addition question might be related to limitations:
If we want to deploy this model using low-precision quantization of real large-scale training setup, do the log and exp cause any precision issues and thus the degrade of performance?
Limitations
see weakness
Final justification
Experiments and explanations enhanced the paper.
Formatting concerns
NA except for figure 1
3 comments
Rebuttal
Thank you for your constructive review. Below are our responses.
Figure 1 is not clear…details about what are inputs/outputs etc.
The architecture in Figure 1 is a drop in replacement for FFNs in the different model architectures depicted in the figure. In our implementations we create a different class for CoFrGeNet that has the same api as the FFN class, that is, same parameters are passed and the same size output tensor (equal to embedding size) is returned. The depth and width parameters for CoFrGeNet could be additionally passed or just set in the CoFrGeNet class itself. Hence, no changes are made to the residual stream or other aspects of the original architecture. The input in the figure is thus simply the output of the attention or SSM layer where the residual stream is added and the representation normalized in the particular block. In other words, nothing else in the model architectures changes and the input and output tensors are both size embedding dimension. We will update Figure 1 to reflect these points and also add a pseudocode as the final version allows an extra page.
We would also like to note that we plan to release code in the months leading up to NeurIPS. This we believe will strongly facilitate the community trying our architecture consistent with the intent behind your suggestions.
Scaling behavior?
Despite the quick turnaround required for the rebuttal we were able to conduct the following additional experiments which we hope alleviate some of the (model) scaling behavior questions.
We pretrained a Llama-MoE (8.6B) with 4 experts 1 activated (i.e. 3.2B parameters activated) on the Docling data mix using 128 H100s and evaluated the 250B token checkpoint. The remaining training setup was the same as that for the MoE reported in the paper with the embedding dimension, expansion factor and number of layers same as Llama 3.2B. For comparison we also pre-trained a CoFrGeNet-FNG (5B) with exactly the same settings used to train the 8.6B MoE. Non-expansion leads to a drop to 5B size from 8.6B. Here are the results on the benchmarks.
| Model | openqa | piqa | arc | wino | hswag | lambada | boolq | sciq |
|---|---|---|---|---|---|---|---|---|
| Llama-MoE (8.6B) | 2.12 | 0.670 | 0.594 | 0.555 | 0.335 | 0.380 | 0.654 | 0.833 |
| CoFrGeNet-FNG (5B) | 2.25 | 0.685 | 0.617 | 0.548 | 0.368 | 0.372 | 0.637 | 0.857 |
As can be seen CoFrGeNet-FNG is better than the Llama-MoE in majority of the cases and competitive in others even though it has a much smaller size as was the case for the smaller MoE in the paper. This indicates that our approach scales well.
To showcase a scaling curve we pretrained variants of CoFrGeNet at different expansion factors leading to models of different size. Moreover, to further show generality of our approach across architectures we report experiments on a Granite 4.1 dense architecture which is recent and was not reported in the paper. We pretrain a 2B size model on web and math datasets (web-nemotron-cc, megamath-web, finemath-3plus) part of the Nematron repository (by NVIDIA) for 125B tokens. For CoFrGeNet we create four variants of increasing size to observe scaling behavior: CoFrGeNet-FNG has no expansion similar to the paper. CoFrGeNet-F2G, CoFrGeNet-F2.4G and CoFrGeNet-FG have expansion factors of 2, 2.4 and 3.2, where 3.2 is the expansion factor in Granite 4.1 (2B). The training of each variant was done using Adam with 3K warmup steps and 27K cosine decay steps with weight decay of , , , batch size , peak learning rate using fsdp on 64 H100s. Model details are in the Table below.
Rows = metrics, columns = models. Bold values indicate results of CoFrGeNets that are no worse than Granite. All benchmark values are accuracies except the PPL row which is perplexity where a lower value is better. The last two rows are derived metrics where Avg. Acc. averages the accuracies across the benchmarks and Int. density (i.e. Intelligence density) is Avg. Acc. per billion parameters.
| Metric | Granite 4.1 | CoFrGeNet-FNG | CoFrGeNet-F2G | CoFrGeNet-F2.4G | CoFrGeNet-FG |
|---|---|---|---|---|---|
| params | 2.14B | 1.10B | 1.57B | 1.76B | 2.14B |
| savings % | 0 | 50 | 27 | 17 | 0 |
| embedding size | 2560 | 2560 | 2560 | 2560 | 2560 |
| intermediate size | 8192 | 2560 | 5120 | 6144 | 8192 |
| layers | 24 | 24 | 24 | 24 | 24 |
| wikitext_0s (PPL) | 16.21 | 18.59 | 17.17 | 16.79 | 16.19 |
| arc_challenge_0s | 0.4198 | 0.3771 | 0.3933 | 0.4087 | 0.4113 |
| arc_challenge_25s | 0.4317 | 0.3959 | 0.4138 | 0.4189 | 0.4352 |
| arc_easy_0s | 0.6932 | 0.6414 | 0.6902 | 0.6923 | 0.7008 |
| arc_easy_25s | 0.7437 | 0.7092 | 0.7231 | 0.7269 | 0.7479 |
| boolq_0s | 0.5774 | 0.6021 | 0.6382 | 0.6251 | 0.6122 |
| boolq_10s | 0.5994 | 0.4639 | 0.5991 | 0.6434 | 0.6135 |
| coqa_0s | 0.5919 | 0.5361 | 0.5541 | 0.5567 | 0.565 |
| hellaswag_0s | 0.5945 | 0.5327 | 0.5681 | 0.5814 | 0.5947 |
| hellaswag_10s | 0.6055 | 0.5434 | 0.5792 | 0.5915 | 0.6043 |
| lambada_openai_0s | 0.4873 | 0.4502 | 0.4749 | 0.4855 | 0.49 |
| openbookqa_0s | 0.352 | 0.354 | 0.368 | 0.35 | 0.374 |
| piqa_0s | 0.7486 | 0.7312 | 0.7329 | 0.7454 | 0.7465 |
| piqa_25s | 0.7497 | 0.7432 | 0.7437 | 0.753 | 0.7514 |
| sciq_0s | 0.908 | 0.867 | 0.904 | 0.911 | 0.9 |
| sciq_5s | 0.959 | 0.942 | 0.954 | 0.96 | 0.96 |
| winogrande_0s | 0.5691 | 0.558 | 0.562 | 0.5872 | 0.5841 |
| winogrande_5s | 0.5793 | 0.5556 | 0.577 | 0.5777 | 0.5793 |
| gsm8k_cot_5s | 0.1865 | 0.1221 | 0.1486 | 0.1827 | 0.2002 |
| gsm8k_cot_8s | 0.2085 | 0.1274 | 0.163 | 0.1888 | 0.1926 |
| Avg. Acc. | 0.5792 | 0.5396 | 0.5677 | 0.5782 | 0.5822 |
| Int. density | 0.2701 | 0.4877 | 0.3597 | 0.3272 | 0.2715 |
As can be seen above all our variants are competitive— even those with 50% and 27% savings. But perhaps most interestingly at iso-parameters our variant CoFrGeNet-FG outperforms Granite in most of the cases (% cases). Both of the above results show favorable scaling behavior for our models. We will train on more tokens both the 8.6B Llama MoE and the 2B Granite for the final version.
Thank you for the suggestion on reporting iso-flop plots, which we unfortunately can’t provide in the rebuttal as files can’t be uploaded (also computationally expensive), but will try do so in the final version. Also thank you for the very interesting idea of using the parameters saved in the FFNs somewhere else to get even better scaling laws. This can be an exciting future direction in taking this architecture further as there are multiple possibilities besides just matching the expansion factor which we reported above.
Will low precision quantization cause any issues with log/exp reformulation?
Typically, PTQ strategies (viz. bitsand bytes) quantize the linear projection matrices. Since, the log/exp applies to the non-linear part of CoFrNet, that is to the part of the ladders where division happens, we do not anticipate a collapse as it won’t be quantized. The linear part is added to the log/exp part to produce a CoFrNet ladder output. Moreover, the pre-training we have done uses bf16 throughout (not fp32), which we haven’t seen any issues with.
To further confirm the above claim we quantized our CoFrGeNet-FNG variant of Llama 3.2B to NF4 using bitsandbytes (https://huggingface.co/docs/bitsandbytes/en/index) a popular PTQ library and tested it on a few benchmarks.
4 bit quantized results (NF4) of CoFrGeNet-FNG variant of Llama 3.2B are presented below. The last column represents assessment of the quantized model - the assessment of the original model (i.e. the difference between the two).
| Dataset | Metric | NF4 |
|---|---|---|
| wikitext_0s | PPL | |
| arc_easy_0s | Acc | |
| hellaswag_0s | Acc |
As can be seen the difference is minimal even at such low precision indicating that our architecture is robust to quantization. Also the peak memory usage reduced by %.
Novelty/Significance
Our contributions are threefold: i) We propose a non-expanding gated continued fraction architecture which uses a single ensemble of CoFrNet ladders. Note the architecture proposed in the ICML paper is depicted in Figure 3 in the appendix, which has no gating and uses two ensembles rather than one and where the outputs of these ensembles are elementwise multiplied. Thus, our proposal is quite different. ii) We reformulate divisions in terms of logarithms and exponentials, which leads to precluding the need for incremental training and iii) we integrate our architecture into Mamba and MoEs beyond just dense Transformers, thus extending its scope and utility significantly.
While the individual ideas may appear conceptually straightforward, we believe they are important because they enable both improved performance and consistently higher throughput compared to prior work. In our view, ideas that are elegant in their simplicity yet are consistently effective often have the greatest practical impact and in some sense are harder to discover. For instance, it is non-obvious to guess that reformulating divisions (in terms of log/exp) would compensate for something as significant as how a model is trained (i.e. absolve the need for incremental training). We appreciate your recognition of the value of this aspect of our work and are grateful for your thoughtful assessment.
Responded to your main concerns
Dear Reviewer,
Thank you for your review and support of our work. We have provided detailed responses to your concerns below. We would be happy to alleviate any follow up questions you might have before the author-reviewer discussion phase ends on August 3rd.
Thank you,
Authors
reply
Thank authors for response and raised my score to reflect
Comments on the paper
1 comment
Reminder to reviewers
Dear Reviewers,
The author-reviewer discussion period is ending soon. If you haven't replied yet, please take a look at the authors' rebuttal and let us know whether it changed your view of the paper.
Thanks very much for your time.
Best, AC
From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.
Loading the discussion…
Rebuttal
Thank you for your constructive review. Below are our responses.
As mentioned in the experimental section of the paper we tried depths and widths of 1, 2, 5 and 8. Even a depth/width of 1 or 2 was good enough to get the results reported in the paper. The outputs of the ladders are projected back to embedding dimension so there is no specific design choice there as the output should be compatible with the model layers upstream.
We replace all variants of FFNs (i.e. vanilla or gated) with the same non-expanding gated CoFrNet architecture. Hence, the number of parameters for our architecture remains the same scale Lp(d+1)+2p2, where L is number of ladders, p is embedding dimension and d is ladder depth. The original models if using vanilla FFNs have about 2αp2 parameters, while the gated versions have 3αp2, where α is the expansion factor.
For GPT2-xl and our variants for it we use the same settings as provided in the public nanogpt repository, where the final checkpoint is evaluated. For the other models which are trained on the Docling data mix the number of tokens is 2T, the batch size is 16, sequence length is 4096, uses the HFs Fast tokenizer, with 2K warmup steps and rest cosine decay, β1=0.9, β2=0.95, with gradient clipping and the final checkpoint is selected. The datasets with the corresponding mixture proportions in the Docling data mix are as follows:
Datasets = dclm3plus, dclm2, cosmopedia_v2, fineweb_math_corpus, finemath-4plus, infiwebmath-4plus, finemath-3plus, infiwebmath-3plus, starcoder, stack-edu, fineweb-2-edu
Weights = 0.5, 0.24, 0.06, 0.01, 0.015, 0.01, 0.015, 0.005, 0.01, 0.17, 0.01
We will update the paper with these details.
We compare the original models with the corresponding CoFrGeNet-FNG variant (line below the original model). The times are per token for a batch size of 16 averaged over 10 batches using a single H100 gpu are reported below.
With a vLLM implementation in the future we believe these times should improve even further.
The architecture in Figure 1 is a drop in replacement for FFNs in the different model architectures depicted in the figure. In our implementations we create a different class for CoFrGeNet that has the same api as the FFN class, that is, same parameters are passed and the same size output tensor (equal to embedding size) is returned. The depth and width parameters for CoFrNet could be additionally passed or just set in the CoFrNet class itself. Hence, no changes are made to the residual stream or other aspects of the original architecture. The input x1,…,xp in the figure is thus simply the output of the attention or SSM layer where the residual stream is added and the representation normalized in the particular block. In other words, nothing else in the model architectures changes and the input and output tensors are both size embedding dimension. We will update Figure 1 to reflect these points. Further, we will also add a pseudo-code to clarify the architecture.
We would also like to note that we plan to release code in the months leading up to NeurIPS. This we believe will strongly facilitate the community trying our architecture consistent with the intent behind your suggestions.
The gating in conjunction with the continued fraction ladders produces the improvement. The non-expansion is a benefit of this combination (as parameters are saved), where increasing the expansion factor leads to further improved results as seen in the experiments on Granite 4.1 reported below. The results in Tables 2-6 in the paper already isolate the important contributors to performance as they show that gating helps since, CoFrGeNet-FNG is better than CoFrGeNet-F. They also show that having continued fraction ladders is important since, CoFrGeNet-FNG is better than the corresponding model NG variants (viz. Llama-NG, Mamba-2-NG, etc.).
Our pretrained variants of CoFrGeNet at different expansion factors showcase that non-expansion is a benefit of our continued fraction architecture and that doing expansion only further improves performance. Moreover, to further show generality of our approach across architectures we report experiments on a Granite 4.1 dense architecture which is recent and was not reported in the paper. We pretrain a 2B size model on web and math datasets (web-nemotron-cc, megamath-web, finemath-3plus) part of the Nematron repository (by NVIDIA) for 125B tokens. For CoFrGeNet we create four variants of increasing size to observe expansion behavior: CoFrGeNet-FNG has no expansion similar to the paper. CoFrGeNet-F2G, CoFrGeNet-F2.4G and CoFrGeNet-FG have expansion factors of 2, 2.4 and 3.2, where 3.2 is the expansion factor in Granite 4.1 (2B). The training of each variant was done using Adam with 3K warmup steps and 27K cosine decay steps with weight decay of 0.1, β1=0.9, β2=0.95, batch size 16, peak learning rate 3e−4 using fsdp on 64 H100s. Model details are in the Table below.
Rows = metrics, columns = models. Bold values indicate results of CoFrGeNets that are no worse than Granite. All benchmark values are accuracies except the PPL row which is perplexity where a lower value is better. The last two rows are derived metrics where Avg. Acc. averages the accuracies across the benchmarks and Int. density (i.e. Intelligence density) is Avg. Acc. per billion parameters.
As can be seen above all our variants are competitive— even those with 50% and 27% savings. But perhaps most interestingly at iso-parameters our variant CoFrGeNet-FG outperforms Granite in most of the cases (>70% cases).
Our contributions are threefold: i) We propose a non-expanding gated continued fraction architecture which uses a single ensemble of CoFrNet ladders. Note the architecture proposed in the ICML paper is depicted in Figure 3 in the appendix, which has no gating and uses two ensembles rather than one and where the outputs of these ensembles are elementwise multiplied. Thus, our proposal is quite different. ii) We reformulate divisions in terms of logarithms and exponentials, which leads to precluding the need for incremental training and iii) we integrate our architecture into Mamba and MoEs beyond just dense Transformers, thus extending its scope and utility significantly.
While the individual ideas may appear conceptually straightforward, we believe they are important because they enable both improved performance and consistently higher throughput compared to prior work. In our view, ideas that are elegant in their simplicity yet are consistently effective often have the greatest practical impact and in some sense are harder to discover. For instance, it is non-obvious to guess that reformulating divisions (in terms of log/exp) would compensate for something as significant as how a model is trained (i.e. absolve the need for incremental training). We appreciate your recognition of the value of this aspect of our work and are grateful for your thoughtful assessment.