TRANSMISSION // 2611.26835v1

A continued-fraction alternative for language-model layers

Source published

Researchers propose a compact replacement for language-model feedforward layers. Tests report parameter savings and competitive results; throughput varies by comparison and setup.

AI-generated conceptual illustration for A continued-fraction alternative for language-model layers
AI-generated conceptual illustration; not documentary evidence.

Feedforward layers account for many parameters in language models. A new design inspired by continued fractions aims to replace them without expanding an intermediate representation. Tests across several model types report promising results, but the evidence comes from specific configurations, and larger mixture-of-experts models remain untested.

Language models do more than attend to words: each block also contains a feedforward layer that transforms the model’s internal representation. These layers can account for a large share of a model’s parameters. This paper asks whether a component inspired by continued fractions can replace them while maintaining language-model performance and improving efficiency.

The IBM Research authors call their design CoFrGeNet-FNG. It combines a gated projection with continued-fraction computations: the partial denominators in each ladder are affine functions of the input. Unlike conventional feedforward layers, which typically expand an intermediate representation before projecting it back, this design does not expand that representation. The authors propose it as a replacement for feedforward layers in dense language models, state-space models and mixture-of-experts models.

The module preserves the input and output dimensions, including the dimensions of the surrounding residual stream. The authors describe it as a drop-in replacement, but using it still requires implementation changes; the same dimensions do not mean that integration requires no engineering.

A proposed way to handle division

Continued-fraction computations involve division, which can make optimization unstable, especially in deeper versions of these networks. Earlier work addressed this by gradually introducing more depth during training, a procedure the authors say adds complexity to standard pre-training workflows.

The authors propose expressing the division-based nonlinearity using logarithms and exponentials. They argue that this can improve gradient behavior and make deeper models easier to train. In GPT-2 XL experiments, they compared the reformulation with incremental-depth training and with training that used neither approach. They report that the reformulated version, trained without incremental steps, achieved benchmark results similar to the incremental approach; training without the reformulation performed worse in this comparison. This is evidence from one reported setup, not proof of stability across models or training recipes.

Results across model families

The researchers tested variants of GPT-2 XL, Llama 3, Mamba-2 and a small Llama mixture-of-experts model. Evaluations included language-modeling measures such as perplexity, GLUE tasks for GPT-2 variants, and benchmarks covering question answering, reasoning and text understanding. The model families used different training data and hardware, so their results are best read within each setup rather than as a single controlled comparison across all models.

Against the earlier continued-fraction design, CoFrGeNet-FNG performed similarly on GPT-2 XL and improved on it across many—but not all—reported Llama 3 and Mamba-2 task results. Comparisons with the original models were mixed: some results were close, while others favored one version over another. For the small mixture-of-experts model, the paper reports better results on most listed tasks while using fewer parameters. That finding applies to this experiment, not necessarily to larger or differently trained expert models.

The paper reports higher throughput than the original models in its tested configurations. But CoFrGeNet-FNG was not faster than the earlier continued-fraction design in every reported comparison: the authors say it had higher throughput in most cases, despite sometimes using slightly more parameters. They attribute the speed results partly to processing the input through one ladder ensemble rather than two. Throughput depends on implementation and hardware, so these measurements do not establish a general speed advantage.

Parameter savings also vary with the model and comparison baseline. The Llama and Mamba examples decrease from 3.2 billion parameters to 2.1 billion; the GPT-2 XL variant decreases from 1.5 billion to 985 million. The paper reports still larger savings for its small mixture-of-experts example, whose size falls from 403 million to 204 million. These results describe the tested models, not a fixed saving for all architectures. The authors also tested post-training 4-bit quantization on a Llama variant. They characterize the benchmark changes as minimal, although some tasks show drops; this is not broad evidence about other models or quantization methods.

What the evidence does—and doesn’t—show

The authors say they have not tested the approach on larger mixture-of-experts models, partly because of compute constraints. Their implementation also lacks a specialized memory-efficient kernel that they suggest could improve speed. The experiments cover selected models, datasets and training procedures, rather than every model size or deployment environment.

The source is labeled a preprint, so its results should be understood as claims reported by the authors, not established consensus. The experiments measure benchmark performance and computational metrics; they do not demonstrate improved safety, a specific reduction in real-world energy use, or protection against errors. The contribution is a tested alternative for feedforward components and a proposed way to implement their division-based nonlinearity, with conclusions limited to the configurations studied.

Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.