{"title":"Shifted Window Based Self-Attention via Swin Transformer for Zero-Shot Learning","authors":"Yasaswi Palagummi, Sareh Rowlands","volume":202,"journal":"International Journal of Computer and Information Engineering","pagesStart":524,"pagesEnd":532,"ISSN":"1307-6892","URL":"https:\/\/publications.waset.org\/pdf\/10013271","abstract":"<p>Generalised Zero-Shot Learning, often known as GZSL, is an advanced variant of zero-shot learning in which the samples in the unseen category may be either seen or unseen. GZSL methods typically have a bias towards the seen classes because they learn a model to perform recognition for both the seen and unseen classes using data samples from the seen classes. This frequently leads to the misclassification of data from the unseen classes into the seen classes, making the task of GZSL more challenging. In this work, we propose an approach leveraging the Shifted Window based Self-Attention in the Swin Transformer (Swin-GZSL) to work in the inductive GZSL problem setting. We run experiments on three popular benchmark datasets: CUB, SUN, and AWA2, which are specifically used for ZSL and its other variants. The results show that our model based on Swin Transformer has achieved state-of-the-art harmonic mean for two datasets - AWA2 and SUN and near-state-of-the-art for the other dataset - CUB. More importantly, this technique has a linear computational complexity, which reduces training time significantly. We have also observed less bias than most of the existing GZSL models.<\/p>","references":"[1]\tB. Goertzel, \u201cArtificial General Intelligence: Concept, State of the Art, and Future Prospects,\u201d Journal of Artificial General Intelligence, vol. 5, p. 1\u201348, 2014.\r\n[2]\tD. Huynh and E. Elhamifar, \u201cFine-Grained Generalised Zero-Shot Learning via Dense Attribute-Based Attention,\u201d in Proceedings of the IEEE\/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020.\r\n[3]\tE. Schonfeld, S. Ebrahimi, S. Sinha, T. Darrell and Z. Akata, \u201cGeneralised Zero- and Few-Shot Learning via Aligned Variational Autoencoders,\u201d CoRR, vol. abs\/1812.01784, 2018.\r\n[4]\tF. Alamri and A. Dutta, \u201cMulti-Head Self-Attention via Vision Transformer for Zero-Shot Learning,\u201d CoRR, vol. abs\/2108.00045, 2021.\r\n[5]\tL. Zhang, T. Xiang and S. Gong, \u201cLearning a Deep Embedding Model for Zero-Shot Learning,\u201d in 2017 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2017, Honolulu, HI, USA, July 21-26, 2017, 2017.\r\n[6]\tDinu et al., \u201cImproving zero-shot learning by mitigating the hubness problem\u201d, ICLRW, 2015.\r\n[7]\tRadovanovic et al., \u201cHubs in Space: Popular Nearest Neighbors in\u00b4 High-Dimensional Data\u201d, JMLR, 2010.\r\n[8]\tPaul et al., \u201cSemantically Aligned Bias Reducing Zero Shot Learning\u201d, CVPR, 2019.\r\n[9]\tZ. Akata, F. Perronnin, Z. Harchaoui and C. Schmid, \u201cLabel Embedding for Image Classification,\u201d IEEE Transactions on Pattern Analysis and Machine Intelligence, vol. 38, no. 7, p. 1425\u20131438, 2016.\r\n[10]\tZ. Akata, S. E. Reed, D. Walter, H. Lee and B. Schiele, \u201cEvaluation of output embeddings for fine-grained image classification,\u201d in IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2015, Boston, MA, USA, June 7-12, 2015, 2015.\r\n[11]\tY. Xian, Z. Akata, G. Sharma, Q. Nguyen, M. Hein and B. Schiele, \u201cLatent Embeddings for Zero-Shot Classification,\u201d in 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, 2016.\r\n[12]\tR. Socher, M. Ganjoo, C. D. Manning and A. Y. Ng, \u201cZero-Shot Learning Through Cross-Modal Transfer,\u201d in Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States, 2013.\r\n[13]\tF. Pourpanah, M. Abdar, Y. Luo, X. Zhou, R. Wang, C. P. Lim and X.-Z. Wang, \u201cA Review of Generalised Zero-Shot Learning Methods,\u201d CoRR, vol. abs\/2011.08641, 2020.\r\n[14]\tA. Frome, G. S. Corrado, J. Shlens, S. Bengio, J. Dean, M. Ranzato and T. Mikolov, \u201cDeViSE: A Deep Visual-Semantic Embedding Model,\u201d in Advances in Neural Information Processing Systems 26: 27th Annual Conference on Neural Information Processing Systems 2013. Proceedings of a meeting held December 5-8, 2013, Lake Tahoe, Nevada, United States, 2013.\r\n[15]\tM. Norouzi, T. Mikolov, S. Bengio, Y. Singer, J. Shlens, A. Frome, G. Corrado and J. Dean, \u201cZero-Shot Learning by Convex Combination of Semantic Embeddings,\u201d in 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.\r\n[16]\tG. Dinu and M. Baroni, \u201cImproving zero-shot learning by mitigating the hubness problem,\u201d in 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Workshop Track Proceedings, 2015.\r\n[17]\tY. Yu, Z. Ji, Y. Fu, J. Guo, Y. Pang and Z. Zhang, \u201cStacked Semantics-Guided Attention Model for Fine-Grained Zero-Shot Learning,\u201d in Advances in Neural Information Processing Systems 31: Annual Conference on Neural Information Processing Systems 2018, NeurIPS 2018, December 3-8, 2018, Montreal, Canada, 2018.\r\n[18]\tY. Liu, J. Guo, D. Cai and X. He, \u201cAttribute Attention for Semantic Disambiguation in Zero-Shot Learning,\u201d in 2019 IEEE\/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, 2019.\r\n[19]\tY. Liu, L. Zhou, X. Bai, Y. Huang, L. Gu, J. Zhou and T. Harada, \u201cGoal-Oriented Gaze Estimation for Zero-Shot Learning,\u201d CoRR, vol. abs\/2103.03433, 2021.\r\n[20]\tF. Alamri and A. Dutta, \u201cImplicit and Explicit Attention for Zero-Shot Learning,\u201d in Pattern Recognition - 43rd DAGM German Conference, DAGM GCPR 2021, Bonn, Germany, September 28 - October 1, 2021, Proceedings, 2021.\r\n[21]\tS. Chen, Z. Hong, Y. Liu, G.-S. Xie, B. Sun, H. Li, Q. Peng, K. Lu and X. You, \u201cTransZero: Attribute-guided Transformer for Zero-Shot Learning,\u201d CoRR, vol. abs\/2112.01683, 2021.\r\n[22]\tV. K. Verma, K. J. Liang, N. Mehta and L. Carin, \u201cMeta-Learned Attribute Self-Gating for Continual Generalised Zero-Shot Learning,\u201d CoRR, vol. abs\/2102.11856, 2021.\r\n[23]\tV. K. Verma, A. Mishra, A. Pandey, H. A. Murthy and P. Rai, \u201cTowards Zero-Shot Learning with Fewer Seen Class Examples,\u201d in IEEE Winter Conference on Applications of Computer Vision, WACV 2021, Waikoloa, HI, USA, January 3-8, 2021, 2021.\r\n[24]\tY. Yu, Z. Ji, J. Han and Z. Zhang, \u201cEpisode-Based Prototype Generating Network for Zero-Shot Learning,\u201d in 2020 IEEE\/CVF Conference on Computer Vision and Pattern Recognition, CVPR 2020, Seattle, WA, USA, June 13-19, 2020, 2020.\r\n[25]\tN. V. Nayak and S. H. Bach, \u201cZero-Shot Learning with Common Sense Knowledge Graphs,\u201d CoRR, vol. abs\/2006.10713, 2020.\r\n[26]\tF. Li, Z. Zhu, X. Zhang, J. Cheng and Y. Zhao, \u201cFrom Anchor Generation to Distribution Alignment: Learning a Discriminative Embedding Space for Zero-Shot Recognition,\u201d CoRR, vol. abs\/2002.03554, 2020.\r\n[27]\tG.-S. Xie, L. Liu, F. Zhu, F. Zhao, Z. Zhang, Y. Yao, J. Qin and L. Shao, \u201cRegion Graph Embedding Network for Zero-Shot Learning,\u201d in Computer Vision - ECCV 2020 - 16th European Conference, Glasgow, UK, August 23-28, 2020, Proceedings, Part IV, 2020.\r\n[28]\tY. Annadani and S. Biswas, \u201cPreserving Semantic Relations for ZeroShot Learning,\u201d in 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 1822, 2018, 2018.\r\n[29]\tY. Liu, Q. Gao, J. Li, J. Han and L. Shao, \u201cZero Shot Learning via Low-rank Embedded Semantic AutoEncoder,\u201d in Proceedings of the Twenty-Seventh International Joint Conference on Artificial Intelligence, IJCAI 2018, July 13-19, 2018, Stockholm, Sweden, 2018.\r\n[30]\tG. Liu, J. Guan, M. Zhang, J. Zhang, Z. Wang and Z. Lu, \u201cJoint Projection and Subspace Learning for Zero-Shot Recognition,\u201d in IEEE International Conference on Multimedia and Expo, ICME 2019, Shanghai, China, July 8-12, 2019, 2019.\r\n[31]\tZ. Ji, H. Wang, Y. Pang and L. Shao, \u201cDual triplet network for image zero-shot learning,\u201d Neurocomputing, vol. 373, p. 90\u201397, 2020.\r\n[32]\tZ. Liu, Y. Lin, Y. Cao, H. Hu, Y. Wei, Z. Zhang, S. Lin and B. Guo, \u201cSwin Transformer: Hierarchical Vision Transformer using Shifted Windows,\u201d in 2021 IEEE\/CVF International Conference on Computer Vision, ICCV 2021, Montreal, QC, Canada, October 10-17, 2021, 2021.\r\n[33]\tA. Dosovitskiy, L. Beyer, A. Kolesnikov, D. Weissenborn, X. Zhai, T. Unterthiner, M. Dehghani, M. Minderer, G. Heigold, S. Gelly, J. Uszkoreit and N. Houlsby, \u201cAn Image is Worth 16x16 Words: Transformers for Image Recognition at Scale,\u201d CoRR, vol. abs\/2010.11929, 2020.\r\n[34]\tA. Vaswani, N. Shazeer, N. Parmar, J. Uszkoreit, L. Jones, A. N. Gomez, L. Kaiser and I. Polosukhin, \u201cAttention Is All You Need,\u201d CoRR, vol. abs\/1706.03762, 2017.\r\n[35]\tZ. Zhang and V. Saligrama, \u201cZero-Shot Learning via Semantic Similarity Embedding,\u201d in 2015 IEEE International Conference on Computer Vision, ICCV 2015, Santiago, Chile, December 7-13, 2015, 2015.\r\n[36]\tS. Yang, K. Wang, L. Herranz and J. van de Weijer, \u201cOn Implicit Attribute Localization for Generalised Zero-Shot Learning,\u201d IEEE Signal Process. Lett., vol. 28, p. 872\u2013876, 2021.\r\n[37]\tW. Xu, Y. Xian, J. Wang, B. Schiele and Z. Akata, \u201cAttribute Prototype Network for Zero-Shot Learning,\u201d in Advances in Neural Information Processing Systems 33: Annual Conference on Neural Information Processing Systems 2020, NeurIPS 2020, December 612, 2020, virtual, 2020.\r\n[38]\tG.-S. Xie, L. Liu, X. Jin, F. Zhu, Z. Zhang, J. Qin, Y. Yao and L. Shao, \u201cAttentive Region Embedding Network for Zero-Shot Learning,\u201d in IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, 2019.\r\n[39]\tY. Xian, Z. Akata, G. Sharma, Q. Nguyen, M. Hein and B. Schiele, \u201cLatent Embeddings for Zero-Shot Classification,\u201d in 2016 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2016, Las Vegas, NV, USA, June 27-30, 2016, 2016.\r\n[40]\tY. Xian, S. Sharma, B. Schiele and Z. Akata, \u201cF-VAEGAN-D2: A Feature Generating Framework for Any-Shot Learning,\u201d in IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2019, Long Beach, CA, USA, June 16-20, 2019, 2019.\r\n[41]\tC. H. Lampert, H. Nickisch and S. Harmeling, \u201cLearning to detect unseen object classes by between-class attribute transfer,\u201d in 2009 IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR 2009), 20-25 June 2009, Miami, Florida, USA, 2009.\r\n[42]\tY. L. Cacheux, H. L. Borgne and M. Crucianu, \u201cModeling Inter and Intra-Class Relations in the Triplet Loss for Zero-Shot Learning,\u201d in 2019 IEEE\/CVF International Conference on Computer Vision, ICCV 2019, Seoul, Korea (South), October 27 - November 2, 2019, 2019.\r\n[43]\tY. Xian, T. Lorenz, B. Schiele and Z. Akata, \u201cFeature Generating Networks for Zero-Shot Learning,\u201d in 2018 IEEE Conference on Computer Vision and Pattern Recognition, CVPR 2018, Salt Lake City, UT, USA, June 18-22, 2018, 2018.\r\n[44]\tY. Zhu, J. Xie, Z. Tang, X. Peng and A. Elgammal, \u201cSemantic-Guided Multi-Attention Localization for Zero-Shot Learning,\u201d in Advances in Neural Information Processing Systems 32: Annual Conference on Neural Information Processing Systems 2019, NeurIPS 2019, December 8-14, 2019, Vancouver, BC, Canada, 2019.\r\n[45]\tM. Norouzi, T. Mikolov, S. Bengio, Y. Singer, J. Shlens, A. Frome, G. Corrado and J. Dean, \u201cZero-Shot Learning by Convex Combination of Semantic Embeddings,\u201d in 2nd International Conference on Learning Representations, ICLR 2014, Banff, AB, Canada, April 14-16, 2014, Conference Track Proceedings, 2014.\r\n[46]\tG. Patterson and J. Hays, \u201cSun attribute database: Discovering, annotating, and recognizing scene attributes,\u201d IEEE Conference on Computer Vision and Pattern Recognition, 2012.\r\n[47]\tP. Welinder, S. Branson, T. Mita, C. Wah, F. Schroff, S. Belongie, and P. Perona, \u201cCaltech-UCSD Birds 200,\u201d California Institute of Technology, Tech. Rep. CNS-TR-2010-001, 2010.\r\n[48]\tY. Xian, C. H. Lampert, B. Schiele, and Z. Akata, \u201cZeroshot learning\u2014a comprehensive evaluation of the good, the bad and the ugly,\u201d IEEE Transactions on Pattern Analysis and Machine Intelligence, 2017.","publisher":"World Academy of Science, Engineering and Technology","index":"Open Science Index 202, 2023"}