arXiv:2512.02056cs.CLcs.AI2025-12被引 1

通过可逆架构降低大模型训练内存消耗,支持更大批次处理。

Reversing Large Language Models for Efficient Training and Fine-Tuning

  • 利用可逆动态机制,无需存储中间激活值
  • 内存占用大幅下降,相同显存下可处理更大批量
  • 可将现有模型转为可逆结构,适合已有预训练模型

大型语言模型(LLMs)训练成本高、耗时长。通常采用微调方式,在预训练权重基础上完成特定任务。本文提出受对称与辛微分方程启发的可逆架构,通过时间可逆动力学在反向传播中重构隐藏状态,避免存储所有中间激活值。该特性显著降低内存占用,使相同显存条件下可处理更大批次,提升吞吐量。同时提出一种高效方法,将现有不可逆的LLM通过微调转化为可逆结构,便于利用已有预训练模型。实验表明,在多个数据集和基准上性能相当或更优,为从零训练和微调阶段的内存与计算成本降低提供可扩展、高效的路径。

原文摘要 · Abstract (English)

Large Language Models (LLMs) are known for their expensive and time-consuming training. Thus, oftentimes, LLMs are fine-tuned to address a specific task, given the pretrained weights of a pre-trained LLM considered a foundation model. In this work, we introduce memory-efficient, reversible architectures for LLMs, inspired by symmetric and symplectic differential equations, and investigate their theoretical properties. Different from standard, baseline architectures that store all intermediate activations, the proposed models use time-reversible dynamics to retrieve hidden states during backpropagation, relieving the need to store activations. This property allows for a drastic reduction in memory consumption, allowing for the processing of larger batch sizes for the same available memory, thereby offering improved throughput. In addition, we propose an efficient method for converting existing, non-reversible LLMs into reversible architectures through fine-tuning, rendering our approach practical for exploiting existing pre-trained models. Our results show comparable or improved performance on several datasets and benchmarks, on several LLMs, building a scalable and efficient path towards reducing the memory and computational costs associated with both training from scratch and fine-tuning of LLMs.

大模型可逆网络内存优化

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。