mlsanityData to 7 Oct 2026

HAT-CL: A Hard-Attention-to-the-Task PyTorch Library for Continual Learning

arXiv 2307.09653 ↗First posted 18 Jul 2023cs.LG cs.AIcited by 1

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 5 of its 9 references that are in the map. First posted on arXiv 18 Jul 2023.

Builds on

5 of 9 references.

References · 5

  1. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  2. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  3. 2018Overcoming catastrophic forgetting with hard attention to the taskcited by 672
  4. 2023Continual Pre-training of Language Modelscited by 194
  5. 2022Continual Learning Based on OOD Detection and Task Maskingcited by 21

Built on by

Cited by year

Citing papers per year: 2024: 1.

1 paper.