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

Redesigning Embedding Layers for Queries, Keys, and Values in Cross-Covariance Image Transformers

Author

Listed:
  • Jaesin Ahn

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

  • Jiuk Hong

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

  • Jeongwoo Ju

    (Captos Co., Ltd., Yangsan 50652, Republic of Korea)

  • Heechul Jung

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

Abstract

There are several attempts in vision transformers to reduce quadratic time complexity to linear time complexity according to increases in the number of tokens. Cross-covariance image transformers (XCiT) are also one of the techniques utilized to address the issue. However, despite these efforts, the increase in token dimensions still results in quadratic growth in time complexity, and the dimension is a key parameter for achieving superior generalization performance. In this paper, a novel method is proposed to improve the generalization performances of XCiT models without increasing token dimensions. We redesigned the embedding layers of queries, keys, and values, such as separate non-linear embedding (SNE), partially-shared non-linear embedding (P-SNE), and fully-shared non-linear embedding (F-SNE). Finally, a proposed structure with different model size settings achieved 71.4 % , 77.8 % , and 82.1 % on ImageNet-1k compared with 69.9 % , 77.1 % , and 82.0 % acquired by the original XCiT models, namely XCiT-N12, XCiT-T12, and XCiT-S12, respectively. Additionally, the proposed model achieved 94.8 % in transfer learning experiments, on average, for CIFAR-10, CIFAR-100, Stanford Cars, and STL-10, which is superior to the baseline model of XCiT-S12 ( 94.5 % ). In particular, the proposed models demonstrated considerable improvements on the out-of-distribution detection task compared to the original XCiT models.

Suggested Citation

  • Jaesin Ahn & Jiuk Hong & Jeongwoo Ju & Heechul Jung, 2023. "Redesigning Embedding Layers for Queries, Keys, and Values in Cross-Covariance Image Transformers," Mathematics, MDPI, vol. 11(8), pages 1-16, April.
  • Handle: RePEc:gam:jmathe:v:11:y:2023:i:8:p:1933-:d:1127798
    as

    Download full text from publisher

    File URL: https://www.mdpi.com/2227-7390/11/8/1933/pdf
    Download Restriction: no

    File URL: https://www.mdpi.com/2227-7390/11/8/1933/
    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:11:y:2023:i:8:p:1933-:d:1127798. 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.