FiRST: Finetuning Router-Selective Transformers for Input-Adaptive Latency Reduction
Not on the map. Why?
Abstract (arXiv)
Auto-regressive Large Language Models (LLMs) demonstrate remarkable performance across different domains such as vision and language processing. However, due to sequential processing through a stack of transformer layers, autoregressive decoding faces significant computation/latency challenges, particularly in resource-constrained environments like mobile and edge devices. Existing approaches in literature that aim to improve latency via skipping layers have two distinct flavors - 1) Early exit, and 2) Input-agnostic heuristics where tokens exit at pre-determined layers irrespective of input sequence. Both the above strategies have limitations - the former cannot be applied to handle KV Caching necessary for speed-ups in modern framework and the latter does not capture the variation in layer importance across tasks or more generally, across input sequences. To address both limitations, we propose FiRST, an algorithm that reduces inference latency by using layer-specific routers to select a subset of transformer layers adaptively for each input sequence - the prompt (during the prefill stage) decides which layers will be skipped during decoding. FiRST preserves compatibility with KV caching enabling faster inference while being quality-aware. FiRST is model-agnostic and can be easily enabled on any pre-trained LLM. Our approach reveals that input adaptivity is critical - indeed, different task-specific middle layers play a crucial role in evolving hidden representations depending on tasks. Extensive experiments show that FiRST significantly reduces latency while outperforming other layer selection strategies in quality metics. It retains competitive performance to base model (without layer skipping) and in some cases, even improves upon it. FiRST is thus a promising and efficient solution for LLM deployment in low-resource environments.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 40 of its 55 references that are in the map. First posted on arXiv 16 Oct 2024.
Builds on
40 of 55 references.
References · 40
- 2016SQuAD: 100,000+ Questions for Machine Comprehension of Textcited by 4,115
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2018A Call for Clarity in Reporting BLEU Scorescited by 1,790
- 2023AWQ: Activation-aware Weight Quantization for LLM Compression and Accelerationcited by 1,234
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2015Teaching Machines to Read and Comprehendcited by 1,039
- 2023LLM-Pruner: On the Structural Pruning of Large Language Modelscited by 643
- 2024Quest: Query-Aware Sparsity for Efficient Long-Context LLM Inferencecited by 487
- 2019Reducing Transformer Depth on Demand with Structured Dropoutcited by 434
- 2024SliceGPT: Compress Large Language Models by Deleting Rows and Columnscited by 378
28 more
- 2020DeeBERT: Dynamic Early Exiting for Accelerating BERT Inferencecited by 322
- 2023LLM-QAT: Data-Free Quantization Aware Training for Large Language Modelscited by 320
- 2024LayerSkip: Enabling Early Exit Inference and Self-Speculative Decodingcited by 302
- 2022Confident Adaptive Language Modelingcited by 297
- 2024Do Llamas Work in English? On the Latent Language of Multilingual Transformerscited by 275
- 2020BERT Loses Patience: Fast and Robust Inference with Early Exitcited by 267
- 2023A Survey on Model Compression for Large Language Modelscited by 263
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2020DynaBERT: Dynamic BERT with Adaptive Width and Depthcited by 246
- 2019Depth-Adaptive Transformercited by 227
- 2020FastBERT: a Self-distilling BERT with Adaptive Inference Timecited by 224
- 2023LoftQ: LoRA-Fine-Tuning-Aware Quantization for Large Language Modelscited by 195
- 2024Transformers are Multi-State RNNscited by 120
- 2023OWQ: Outlier-Aware Weight Quantization for Efficient Fine-Tuning and Inference of Large Language Modelscited by 113
- 2024SLEB: Streamlining LLMs through Redundancy Verification and Elimination of Transformer Blockscited by 96
- 2023SkipDecode: Autoregressive Skip Decoding with Batching and Caching for Efficient LLM Inferencecited by 89
- 2023Dynamic Sparse No Training: Training-Free Fine-tuning for Sparse LLMscited by 61
- 2020CascadeBERT: Accelerating Inference of Pre-trained Language Models via Calibrated Complete Models Cascadecited by 47
- 2023ParroT: Translating during Chat using Large Language Models tuned with Human Translation and Feedbackcited by 34
- 2022A Simple Hash-Based Early Exiting Approach For Language Understanding and Generationcited by 32
- 2020SparseRT: Accelerating Unstructured Sparsity on GPUs for Deep Learning Inferencecited by 30
- 2023Matrix Compression via Randomized Low Rank and Low Precision Factorizationcited by 25
- 2024FFN-SkipLLM: A Hidden Gem for Autoregressive Decoding with Adaptive Feed Forward Skippingcited by 23
- 2019SCAN: A Scalable Neural Networks Framework Towards Compact and Efficient Modelscited by 22
- 2024Accelerating Inference in Large Language Models with a Unified Layer Skipping Strategycited by 17
- 2023Instruction Position Matters in Sequence Generation with Large Language Modelscited by 10
- 2020Don't Read Too Much into It: Adaptive Computation for Open-Domain Question Answeringcited by 7
- 2020Efficient Sparse-Dense Matrix-Matrix Multiplication on GPUs Using the Customized Sparse Storage Formatcited by 5
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2025Large Language Model Partitioning for Low-Latency Inference at the Edge
- 2026LayerRoute: Adaptive Layer-Skipping with LoRA-Preserved Quality for Efficient LLM Inference
- 2026LoRA-Drop: Temporal LoRA Decoding for Efficient LLM Inference
- 2025Improving Model Representation and Reducing KV Cache via Skip Connections with First Value Heads
- 2024Layer-Condensed KV Cache for Efficient Inference of Large Language Models
- 2026Decode-Branch Transformers: Decoupling the Primary Prefill Path from Additional Decode Computation
- 2024Early Exit Is a Natural Capability in Transformer-based Models: An Empirical Study on Early Exit without Joint Optimization
- 2025LLMCache: Layer-Wise Caching Strategies for Accelerated Reuse in Transformer Inference