Adapting the transformer attention mechanism for efficient and effective information retrieval
الملخص
Transformer-based language models have become the dominant architecture in natural language processing because they are effective across a wide range of tasks. However, an architecture that works for many tasks is not necessarily the best architecture for a specific task. In this dissertation, we investigate how we can adapt the attention mechanism inside a transformer layer to improve the effectiveness and efficiency of transformer-based language models for the specific task of informational retrieval. We introduce three attention adaptations. The first improves the efficiency of bi-encoders by pooling neighboring vectors inside the attention mechanism. The second improves the efficiency of cross-encoders by deactivating the attention between various sub-sequences, such as between query and document tokens. The third improves the effectiveness of cross-encoders by allowing multiple documents to attend to one another via an additional interaction token. Our analyses show that our attention adaptations lead to substantial effectiveness and efficiency improvements. In addition, we introduce two resources that simplify fine-tuning and evaluating bi-encoders and cross-encoders. The first is LightningIR, a framework that unifies the implementation of various model variants, and the second is Rank-DistiLLM, a set of high-quality distillation datasets for fine-tuning. We demonstrate that our resources can produce state-of-the-art bi-encoders and cross-encoders with minimal manual effort. We conclude that our attention adaptations demonstrate the potential of task-specific attention modifications, but the space of possible adaptations is not yet exhausted. We hope that our work inspires future research on task-specific adaptations for transformer-based models for information retrieval and other tasks.
الكلمات المفتاحية
غير متوفر
التخصصات
رسائل وأطاريح مشابهة
- Attention Mechanisms in Transformers: A Comparative Survey and Structural Enhancements to Linear Attention Nizar Bennani · 2025
- Counter-Rotating Aperture Resolution: A Formal Stream-Processing Model for SHA-256 Recurrence, Root-Cover Coupling, and Transformer Language Attention Dean Kulik · 2026
- Efficient fine-tuning of Transformer Models Under Hardware Constraints : An Empirical Study of LoRA and Knowledge Distillation Sai Mounika Karasu · Dalarna University Library · 2026
- Hybrid Deep Learning Model: LLM-Enhanced Linear Self-Attention Transformer-CNN for Stock Price Prediction Yilong Chen · Auckland University of Technology · 2025
- Transformer Block Coupling and Self-Attention Flows for Token Evolution Anton Pavlovych Sugolov · University of Toronto · 2025
- Sparse Attention Mechanisms in Vision Transformers: from Spatiotemporal Transformers to Instance-Dependent Attention Patterns Brendan William Duke · University of Toronto · 2023
