TokenSeek: 通过实例感知的令牌丢弃实现内存高效的微调
TokenSeek: Memory Efficient Fine Tuning via Instance-Aware Token Ditching
AI总结:
TokenSeek通过实例感知的令牌丢弃技术,在保持性能的同时显著降低微调的内存消耗。
摘要:
微调被视为适应大型语言模型(LLMs)到下游任务的公认方法,但继承自LLMs的高训练内存消耗使得这一过程效率低下。在现有的内存高效方法中,与激活相关的优化已被证明特别有效,因为激活始终主导整体内存消耗。尽管先前的研究提供了各种激活优化策略,但其数据无关性最终导致微调无效且不稳定。在本文中,我们提出TokenSeek,通过实例感知的令牌寻找和丢弃,为各种基于Transformer的模型提供通用插件解决方案,实现了显著的微调内存节省(例如,在Llama3.2 1B上仅需14.8%的内存),在性能上与甚至优于现有方法。此外,我们的可解释性令牌寻找过程揭示了其有效性的根本原因,为未来关于令牌效率的研究提供了有价值的见解。
英文摘要:
Fine tuning has been regarded as a de facto approach for adapting large language models (LLMs) to downstream tasks, but the high training memory consumption inherited from LLMs makes this process inefficient. Among existing memory efficient approaches, activation-related optimization has proven particularly effective, as activations consistently dominate overall memory consumption. Although prior arts offer various activation optimization strategies, their data-agnostic nature ultimately results in ineffective and unstable fine tuning. In this paper, we propose TokenSeek, a universal plugin solution for various transformer-based models through instance-aware token seeking and ditching, achieving significant fine-tuning memory savings (e.g., requiring only 14.8% of the memory on Llama3.2 1B) with on-par or even better performance. Furthermore, our interpretable token seeking process reveals the underlying reasons for its effectiveness, offering valuable insights for future research on token efficiency. Homepage: https://runjia.tech/iclr_tokenseek/
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。