Squid: Long Context as a New Modality for Energy-Efficient On-Device Language Models
Not on the map. Why?
Abstract (arXiv)
This paper presents Dolphin, a novel decoder-decoder architecture for energy-efficient processing of long contexts in language models. Our approach addresses the significant energy consumption and latency challenges inherent in on-device models. Dolphin employs a compact 0.5B parameter decoder to distill extensive contextual information into a memory embedding, substantially reducing the input length for the primary 7B parameter decoder model. Inspired by vision-language models, we repurpose the image embedding projector to encode long textual contexts, effectively treating extended context as a distinct modality. This innovative method enables processing of substantially longer contexts without the typical computational overhead associated with extended input sequences. Empirical evaluations demonstrate a 10-fold improvement in energy efficiency and a 5-fold reduction in latency compared to conventional full-length context processing methods without losing quality of the response. Our work contributes to the development of more sustainable and scalable language models for on-device applications, addressing the critical need for energy-efficient and responsive AI technologies in resource-constrained environments while maintaining the accuracy to understand long contexts. This research has implications for the broader field of natural language processing, particularly in the domain of efficient model design for resource-limited settings. By enabling more sophisticated AI capabilities on edge devices, Dolphin paves the way for advanced language processing in a wide range of applications where computational resources are at a premium. The Dolphin model is publicly available at https://huggingface.co/NexaAIDev/Dolphin.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 42 of its 44 references that are in the map. First posted on arXiv 28 Aug 2024.
Builds on
42 of 44 references.
References · 42
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021LoRA: Low-Rank Adaptation of Large Language Modelscited by 14,084
- 2020Retrieval-Augmented Generation for Knowledge-Intensive NLP Taskscited by 9,160
- 2023Visual Instruction Tuningcited by 7,792
- 2023BLIP-2: Bootstrapping Language-Image Pre-training with Frozen Image Encoders and Large Language Modelscited by 6,069
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2023Improved Baselines with Visual Instruction Tuningcited by 4,362
- 2020Longformer: The Long-Document Transformercited by 3,362
- 2023Qwen Technical Reportcited by 3,273
- 2020The Pile: An 800GB Dataset of Diverse Text for Language Modelingcited by 2,346
- 2021HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Unitscited by 2,301
- 2023Efficient Streaming Language Models with Attention Sinkscited by 2,115
30 more
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2020Rethinking Attention with Performerscited by 1,584
- 2019Generating Long Sequences with Sparse Transformerscited by 1,523
- 2023REPLUG: Retrieval-Augmented Black-Box Language Modelscited by 786
- 2019Compressive Transformers for Long-Range Sequence Modellingcited by 699
- 2023VILA: On Pre-training for Visual Language Modelscited by 686
- 2019Passage Re-ranking with BERTcited by 629
- 2019MediaPipe: A Framework for Building Perception Pipelinescited by 572
- 2023LongLLMLingua: Accelerating and Enhancing LLMs in Long Context Scenarios via Prompt Compressioncited by 443
- 2023Learning to Compress Prompts with Gist Tokenscited by 379
- 2023Adapting Language Models to Compress Contextscited by 350
- 2021How Much Can CLIP Benefit Vision-and-Language Tasks?cited by 321
- 2023RECOMP: Improving Retrieval-Augmented LMs with Compression and Selective Augmentationcited by 253
- 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 210
- 2021Multi-Scale Vision Longformer: A New Vision Transformer for High-Resolution Image Encodingcited by 207
- 2023ULIP-2: Towards Scalable Multimodal Pre-training for 3D Understandingcited by 199
- 2022Recurrent Memory Transformercited by 197
- 2023In-context Autoencoder for Context Compression in a Large Language Modelcited by 190
- 2023Compressing Context to Enhance Inference Efficiency of Large Language Modelscited by 185
- 2023RankZephyr: Effective and Robust Zero-Shot Listwise Reranking is a Breeze!cited by 151
- 2023Unlimiformer: Long-Range Transformers with Unlimited Length Inputcited by 127
- 2024LongRAG: Enhancing Retrieval-Augmented Generation with Long-context LLMscited by 104
- 2023Scaling Transformer to 1M tokens and beyond with RMTcited by 97
- 2024Long-Context Language Modeling with Parallel Context Encodingcited by 84
- 2023RankVicuna: Zero-Shot Listwise Document Reranking with Open-Source Large Language Modelscited by 69
- 2024Octopus v2: On-device language model for super agentcited by 45
- 2022Linear Complexity Randomized Self-attention Mechanismcited by 31
- 2022Walle: An End-to-End, General-Purpose, and Large-Scale Production System for Device-Cloud Collaborative Machine Learningcited by 23
- 2024Prompt-SAW: Leveraging Relation-Aware Graphs for Textual Prompt Compressioncited by 18
- 2024LLoCO: Learning Long Contexts Offlinecited by 16
Built on by
Citing papers per year: 2024: 3; 2025: 3.
6 papers.
- 2025AutoNeural: Co-Designing Vision-Language Models for NPU Inferencecited by 17
- 2024OmniVLM: A Token-Compressed, Sub-Billion-Parameter Vision-Language Model for Efficient On-Device Inferencecited by 8
- 2024CAMPHOR: Collaborative Agents for Multi-input Planning and High-Order Reasoning On Devicecited by 6
- 2025Scaling LLM Pre-training with Vocabulary Curriculumcited by 3
- 2024EMMA: Empowering Multi-modal Mamba with Structural and Hierarchical Alignmentcited by 2
- 2025Intelligent IoT Attack Detection Design via ODLLM with Feature Ranking-based Knowledge Basecited by 0
- 2025AutoNeural: Co-Designing Vision-Language Models for NPU Inference2 Dec 2025
- 2025Intelligent IoT Attack Detection Design via ODLLM with Feature Ranking-based Knowledge Base27 Mar 2025
- 2025Scaling LLM Pre-training with Vocabulary Curriculum25 Feb 2025
- 2024OmniVLM: A Token-Compressed, Sub-Billion-Parameter Vision-Language Model for Efficient On-Device Inference16 Dec 2024
- 2024CAMPHOR: Collaborative Agents for Multi-input Planning and High-Order Reasoning On Device12 Oct 2024
- 2024EMMA: Empowering Multi-modal Mamba with Structural and Hierarchical Alignment8 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2025Long-VITA: Scaling Large Multi-modal Models to 1 Million Tokens with Leading Short-Context Accuracy
- 2026Memory Decoder at Scale: A Pretrained, Parametric Long-Term Memory
- 2024A Little Goes a Long Way: Efficient Long Context Training and Inference with Partial Contexts
- 2026Elastic Threshold Attention: Learned Contextual Sparsity for Long-Context Decoding
- 2025Compress, Gather, and Recompute: REFORMing Long-Context Processing in Transformers
- 2026ARKV: Adaptive and Resource-Efficient KV Cache Management under Limited Memory Budget for Long-Context Inference in LLMs
- 2025OWL: Overcoming Window Length-Dependence in Speculative Decoding for Long-Context Inputs
- 2024MagicDec: Breaking the Latency-Throughput Tradeoff for Long Context Generation with Speculative Decoding