paper-with-me

홈 › Papers

Small transformer architectures for task switching

2025-08-06 · Claudius Gros arxiv

The rapid progress seen in terms of large-scale generative AI is largely based on the attention mechanism. It is conversely non-trivial to conceive small-scale applications for which attention-based architectures outperform traditional approaches, such as multi-layer perceptrons or recurrent networks. We examine this problem in the context of 'task switching'. In this framework models work on ongoing token sequences with the current task being determined by stochastically interspersed control tokens. We show that standard transformers cannot solve a basic task switching reference model based on finite domain arithmetics which contains subtasks dedicated to increment / addition / reverse copy / context (IARC). We show that transformers, long short-term memory recurrent networks (LSTM), and plain multi-layer perceptrons (MLPs) achieve similar, but only modest prediction accuracies. We enlarge our comparative study by including an extension of the standard transformer architecture to its non-translational invariant counterpart, the cisformer, and an alternative attention mechanism, extensive attention. A combination of the latter is found to be the only model able to achieve considerable performance levels, of around 95%. Our results indicate that the workings of attention can be understood better, and even improved, when comparing qualitatively different formulations in task-switching settings.

📄 PDF Abstract BibTeX arXiv:2508.04461

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Zero-Shot to Full-Resource: Cross-lingual Transfer Strategies for Aspect-Based Sentiment Analysis

2026-04-29 · Jakob Fehle, Nils Constantin Hellwig, Udo Kruschwitz, Christian Wolff arxiv

Aspect-based Sentiment Analysis (ABSA) extracts fine-grained opinions toward specific aspects within text but remains largely English-focused despite major advances in transformer-based and instruction-tuned models. This…

Cross-Lingual TransferMachine TranslationSentiment Analysis

Exploiting Low-Resource Code-Switching Data to Mandarin-English Speech Recognition Systems

2021-10-01 · ROCLING 2021 10 · Hou-An Lin, Chia-Ping Chen

In this paper, we investigate how to use limited code-switching data to implement a code-switching speech recognition system. We utilize the Transformer end-to-end model to develop our code switching speech recognition s…

Language ModelingLanguage ModellingMulti-Task Learningspeech-recognition+2

Quality and Cost Trade-offs in Passage Re-ranking Task

2021-11-18 · Pavel Podberezko, Vsevolod Mitskevich, Raman Makouski, Pavel Goncharov 외

Deep learning models named transformers achieved state-of-the-art results in a vast majority of NLP tasks at the cost of increased computational complexity and high memory consumption. Using the transformer model in real…

Information RetrievalOpen-Domain Question AnsweringPassage Re-RankingRe-Ranking+1

MeLo: Low-rank Adaptation is Better than Fine-tuning for Medical Image Diagnosis

2023-11-14 · Yitao Zhu, Zhenrong Shen, Zihao Zhao, Sheng Wang 외

The common practice in developing computer-aided diagnosis (CAD) models based on transformer architectures usually involves fine-tuning from ImageNet pre-trained weights. However, with recent advances in large-scale pre-…

Arabic Code-Switching Speech Recognition using Monolingual Data

2021-07-04 · Ahmed Ali, Shammur Chowdhury, Amir Hussein, Yasser Hifny

Code-switching in automatic speech recognition (ASR) is an important challenge due to globalization. Recent research in multilingual ASR shows potential improvement over monolingual systems. We study key issues related t…

Automatic Speech RecognitionAutomatic Speech Recognition (ASR)speech-recognitionSpeech Recognition