Introduction
Full Fine-Tuning (FFT) is widely considered the gold standard for adapting Large Language Models (LLMs) to specific tasks because it updates every parameter in the network. However, it is notoriously memory-intensive. The primary bottleneck is not just the model weights, but the intermediate activations that must be cached during the forward pass to calculate gradients during backpropagation. For massive models, especially Mixture-of-Experts (MoE) architectures, this "activation bottleneck" often makes FFT impossible on a single GPU.
RevFFN addresses this challenge by fundamentally redesigning the Transformer block to be "reversible," allowing activations to be reconstructed during the backward pass rather than stored in memory.
The RevFFN Architecture
The core innovation is the RevFFN Reversible Block. Drawing inspiration from reversible networks, the authors modify the standard Transformer architecture to ensure that the input of any layer can be mathematically derived from its output.
As shown in the architecture diagram, RevFFN splits the hidden state into two parallel streams ($X_1$ and $X_2$) updated in a coupled fashion. To maintain compatibility with pre-trained models where weights expect full-dimensional inputs, the authors introduced lightweight projection adapters ($P_\uparrow$ and $P_\downarrow$). These act as wrappers that up-project the split streams to the original dimension before they reach the pre-trained MoE or Attention layers, then down-project them back to the reversible stream size.
Training Strategy
To ensure stability when introducing reversibility to a pre-trained model, RevFFN employs a two-stage curriculum:
- Stage 1 (Warm-up): Only the new projection adapters are trained to align the reversible streams with the pre-trained weights.
- Stage 2 (Joint Fine-Tuning): The entire model (excluding MoE routers to maintain stability) is unfrozen for full-parameter tuning.
Experimental Results
The researchers evaluated RevFFN using the Qwen1.5-MoE-A2.7B model on the databricks-dolly-15k instruction-tuning dataset. Performance was measured across diverse benchmarks including MMLU (knowledge), GSM8K (math), and MT-Bench (conversation).
Memory and Throughput Efficiency
RevFFN achieved a 49% reduction in peak VRAM compared to standard Full Fine-Tuning (SFT) with activation checkpointing, requiring only 39.5 GB versus 65.4 GB. This reduction makes full-parameter tuning feasible on hardware where it was previously impossible.
Beyond memory savings, RevFFN proved to be more computationally efficient than other memory-saving techniques. It maintained a higher throughput (24.6 samples/sec) than other full-parameter methods like GaLore or LoMo, as the reversible design is more efficient than naive recomputation.
Task Performance
RevFFN outperformed all Parameter-Efficient Fine-Tuning (PEFT) baselines, such as LoRA and DoRA, across almost all benchmarks. For example, on MMLU, RevFFN scored 66.7%, beating LoRA (65.2%) and even standard SFT (66.1%). This demonstrates that RevFFN provides the benefits of full-parameter updates without the typical memory overhead.
Conclusion
RevFFN enables high-performance full-parameter fine-tuning of MoE models on limited hardware by eliminating the need to store intermediate activations. By combining a reversible scaffold with lightweight projection adapters, it preserves the integrity of pre-trained experts while offering a practical, efficient alternative to both PEFT and standard SFT.
Summary updated