HAT-CL:面向持续学习的硬注意力任务机制PyTorch库
HAT-CL: A Hard-Attention-to-the-Task PyTorch Library for Continual Learning
AI总结:
本文提出HAT-CL,一个用户友好的PyTorch库,重新设计HAT机制,自动化梯度操作,简化模块转换,集成TIMM,并引入新型掩码技术,以缓解持续学习中的灾难性遗忘。
摘要:
灾难性遗忘是神经网络在学习新任务时丢失先前获得知识的现象,对持续学习构成了重大挑战。硬注意力任务机制(HAT)在缓解该问题方面展现出潜力,但其实际实现因可用性和兼容性问题以及对现有网络复用支持不足而变得复杂。本文中,我们介绍HAT-CL,一个用户友好、兼容PyTorch的HAT机制重新设计。HAT-CL不仅自动化梯度操作,还简化了将PyTorch模块转换为HAT模块的过程。它通过提供一套全面的模块来实现这一点,这些模块可以无缝集成到现有架构中。此外,HAT-CL提供了即用型HAT网络,与TIMM库平滑集成。除了HAT的重新设计和重新实现外,我们还引入了针对HAT的新型掩码操作技术,这些技术在各项实验中持续显示出改进。我们的工作为HAT机制的更广泛应用铺平了道路,为跨多样模型和应用的持续学习开辟了新的可能性。
英文摘要:
Catastrophic forgetting, the phenomenon in which a neural network loses previously obtained knowledge during the learning of new tasks, poses a significant challenge in continual learning. The Hard-Attention-to-the-Task (HAT) mechanism has shown potential in mitigating this problem, but its practical implementation has been complicated by issues of usability and compatibility, and a lack of support for existing network reuse. In this paper, we introduce HAT-CL, a user-friendly, PyTorch-compatible redesign of the HAT mechanism. HAT-CL not only automates gradient manipulation but also streamlines the transformation of PyTorch modules into HAT modules. It achieves this by providing a comprehensive suite of modules that can be seamlessly integrated into existing architectures. Additionally, HAT-CL offers ready-to-use HAT networks that are smoothly integrated with the TIMM library. Beyond the redesign and reimplementation of HAT, we also introduce novel mask manipulation techniques for HAT, which have consistently shown improvements across various experiments. Our work paves the way for a broader application of the HAT mechanism, opening up new possibilities in continual learning across diverse models and applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。