paper-with-me

홈 › Papers

Context-Aware Token Selection and Packing for Enhanced Vision Transformer

2024-10-31 · Tianyi Zhang, Baoxin Li, Jae-sun Seo, Yu Cao

In recent years, the long-range attention mechanism of vision transformers has driven significant performance breakthroughs across various computer vision tasks. However, the traditional self-attention mechanism, which processes both informative and non-informative tokens, suffers from inefficiency and inaccuracies. While sparse attention mechanisms have been introduced to mitigate these issues by pruning tokens involved in attention, they often lack context-awareness and intelligence. These mechanisms frequently apply a uniform token selection strategy across different inputs for batch training or optimize efficiency only for the inference stage. To overcome these challenges, we propose a novel algorithm: Select and Pack Attention (SPA). SPA dynamically selects informative tokens using a low-cost gating layer supervised by selection labels and packs these tokens into new batches, enabling a variable number of tokens to be used in parallelized GPU batch training and inference. Extensive experiments across diverse datasets and computer vision tasks demonstrate that SPA delivers superior performance and efficiency, including a 0.6 mAP improvement in object detection and a 16.4% reduction in computational costs.

📄 PDF Abstract BibTeX arXiv:2410.23608

Code (0)

등록된 구현이 없습니다.

Tasks

GPUobject-detectionObject Detection

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
Pruning 설명 없음

Similar Papers 제목 키워드 기반

Refining Packing and Shuffling Strategies for Enhanced Performance in Generative Language Models

2024-08-19 · Yanbing Chen, Ruilin Wang, Zihao Yang, Lavender Yao Jiang 외

Packing and shuffling tokens is a common practice in training auto-regressive language models (LMs) to prevent overfitting and improve efficiency. Typically documents are concatenated to chunks of maximum sequence length…

Optimal Skill Selection for LLM Agents with Provable Bicriteria Guarantees

2026-08-20 · Yu Chen, Ruishuo Chen, Xun Wang, Zhuoran Li 외 arxiv

Loading reusable skill documents into a bounded context window is now the primary way large language model (LLM) agents acquire task-specific capabilities, which makes skill selection a first-order determinant of task pe…

Hard Rules, Soft Preferences: Bridging Reasoning, Learning, and Optimization for Personalized Packing Checklist Generation

2026-07-17 · Himel Dev, Madhusudan Basak, Tanmoy Sen, Paromita Shome 외 arxiv

Packing for air travel is recurring and error-prone: the checklist must be personal and context-aware, yet feasible under safety rules, item dependencies, and luggage limits. Existing packing assistants are template-driv…

What Survives Into Context: A Diagnostic for Budget-Constrained Multi-Hop RAG and When Submodular Evidence Packing Improves It

2026-07-01 · Ananto Nayan Bala arxiv

Retrieval-augmented generation (RAG) under a fixed reader-context budget forces a selection problem: of the evidence retrieved, only a fraction can be shown to the reader. We argue that document recall -- the standard re…

CAST: Corpus-Aware Self-similarity Enhanced Topic modelling

2024-10-19 · Yanan Ma, Chenghao Xiao, Chenhan Yuan, Sabine N van der Veer 외

Topic modelling is a pivotal unsupervised machine learning technique for extracting valuable insights from large document collections. Existing neural topic modelling methods often encode contextual information of docume…

Contrastive LearningDiversityWord Embeddings