IDEAS home Printed from https://ideas.repec.org/a/etm/ijsrst/v11y2024i5id1524.html

Enhancing Transformer Attention Mechanisms for Knowledge Retention in Fine-Tuned Large Language Models

Author

Listed:
  • Navya Veginati

Abstract

Large language models based on transformers have shown outstanding performance in several natural language processing tasks. But, when such models are fine-tuned, catastrophic forgetting is likely to occur causing one to forget the knowledge that has been learned before. This paper suggests a better attention-based model to enhance the knowledge retention in fine-tuned transformer models. The method combines attention mechanisms that are aware of retention and knowledge distillation methods to retain important contextual information. The proposed model successfully balances knowledge preservation and new learning by proposing adaptive attention scaling and feature alignment strategies. Experimental evidence indicates that the models have highly improved accuracy, precision, recall, F1-score, and knowledge retention over existing models, including BERT, DistilBERT, and TinyBERT. The results indicate that the use of attention enhancement and learning through retention awareness is effective, offering an effective solution to knowledge decline in large language models.

Suggested Citation

  • Navya Veginati, 2024. "Enhancing Transformer Attention Mechanisms for Knowledge Retention in Fine-Tuned Large Language Models," International Journal of Scientific Research in Science and Technology, Technoscience Academy, vol. 11(5), pages 864-871, October.
  • Handle: RePEc:etm:ijsrst:v11:y2024:i5:id:1524
    DOI: 10.32628/IJSRST52310284
    as

    Download full text from publisher

    File URL: https://ijsrst.com/home/article/view/IJSRST52310284
    File Function: Abstract page
    Download Restriction: no

    File URL: https://ijsrst.com/home/article/download/IJSRST52310284/IJSRST52310284
    File Function: Full text
    Download Restriction: no

    File URL: https://libkey.io/10.32628/IJSRST52310284?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:etm:ijsrst:v11:y2024:i5:id:1524. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Pankaj Sharma (email available below). General contact details of provider: https://ijsrst.com/home .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.