IDEAS home Printed from https://ideas.repec.org/a/gam/jmathe/v12y2024i21p3390-d1509830.html
   My bibliography  Save this article

Improving Systematic Generalization of Linear Transformer Using Normalization Layers and Orthogonality Loss Function

Author

Listed:
  • Taewon Park

    (Department of Artificial Intelligence, Kyungpook National University, Daegu 41566, Republic of Korea)

  • Hyun-Chul Kim

    (Department of Artificial Intelligence, Kyungpook National University, Daegu 41566, Republic of Korea)

Abstract

A Linear Transformer linearizes the attention mechanism of the vanilla Transformer architecture, significantly improving efficiency and achieving linear theoretical complexity with respect to sequence length. However, few studies have explored the capabilities of the Linear Transformer beyond its efficiency. In this work, we investigate the systematic generalization capability of the Linear Transformer, a crucial property for strong generalization to unseen data. Through preliminary experiments, we identify two major issues contributing to its unstable systematic generalization performance: (i) unconstrained norms of Queries and Keys , and (ii) high correlation among Values across the sequence. To address these issues, we propose two simple yet effective methods: normalization layers for Queries and Keys , and an orthogonality loss function applied to Values during training. In experiments, we demonstrate that applying these methods to the Linear Transformer significantly improves its stability and systematic generalization performance across several well-known tasks. Furthermore, our proposed methods outperform the vanilla Transformer on specific systematic generalization tasks, such as the sort-of-CLEVR and SCAN tasks.

Suggested Citation

  • Taewon Park & Hyun-Chul Kim, 2024. "Improving Systematic Generalization of Linear Transformer Using Normalization Layers and Orthogonality Loss Function," Mathematics, MDPI, vol. 12(21), pages 1-17, October.
  • Handle: RePEc:gam:jmathe:v:12:y:2024:i:21:p:3390-:d:1509830
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/12/21/3390/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/12/21/3390/
    Download Restriction: no
    ---><---

    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:gam:jmathe:v:12:y:2024:i:21:p:3390-:d:1509830. 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: MDPI Indexing Manager (email available below). General contact details of provider: https://www.mdpi.com .

    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.