mlsanityData to 14 Oct 2026

From Token to Token Pair: Efficient Prompt Compression for Large Language Models in Clinical Prediction

arXiv 2605.11774 ↗First posted 12 May 2026cs.CL cs.LGcited by 2

On the map: Efficient LLM inference and serving → Prompt and context compression

Abstract (arXiv)

By processing electronic health records (EHRs) as natural language sequences, large language models (LLMs) have shown potential in clinical prediction tasks such as mortality prediction and phenotyping. However, longitudinal or highly frequent EHRs often yield excessively long token sequences that result in high computational costs and even reduced performance. Existing solutions either add modules for compression or remove less important tokens, which introduce additional inference latency or risk losing clinical information. To achieve lossless compression of token sequences without additional cost or loss of performance, we propose Medical Token-Pair Encoding (MedTPE), a layered method that extends standard tokenisation for EHR sequences. MedTPE merges frequently co-occurring medical token pairs into composite tokens, providing lossless compression while preserving the computational complexity through a dependency-aware replacement strategy. Only the embeddings of the newly introduced tokens of merely 0.5-1.0% of the LLM's parameters are fine-tuned via self-supervised learning. Experiments on real-world datasets for two clinical scenarios demonstrate that MedTPE reduces input token length by up to 31% and inference latency by 34-63%, while maintaining or even improving both predictive performance and output format compliance across multiple LLMs and four clinical prediction tasks. Furthermore, MedTPE demonstrates robustness across different input context lengths and generalisability to scientific and financial domains and different languages.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Prompt and context compression, one of 12 directions in Efficient LLM inference and serving. Builds on 34 of its 54 references that are in the map. First posted on arXiv 12 May 2026.

Builds on

34 of 54 references.

Closest ancestors · 3

Same direction, newest first

  1. 2025Lossless Token Sequence Compression via Meta-Tokens30 May
  2. 2024Prompt Compression with Context-Aware Sentence Encoding for Fast and Improved LLM Inference2 Sep
  3. 2024LLMLingua-2: Data Distillation for Efficient and Faithful Task-Agnostic Prompt Compression19 Mar

Other references · 31

  1. 2024The Llama 3 Herd of Modelscited by 14,715
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,886
  4. 2015Neural Machine Translation of Rare Words with Subword Unitscited by 2,918
  5. 2024Qwen2 Technical Reportcited by 2,120
  6. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
  7. 2018SentencePiece: A simple and language independent subword tokenizer and detokenizer for Neural Text Processingcited by 1,989
  8. 2023EHRSHOT: An EHR Benchmark for Few-Shot Evaluation of Foundation Modelscited by 105
  9. 2020Fast WordPiece Tokenizationcited by 87
  10. 2024BioMedLM: A 2.7B Parameter Language Model Trained On Biomedical Textcited by 86
  11. 2024Zero Shot Health Trajectory Prediction Using Transformercited by 77
  12. 2022ECTSum: A New Benchmark Dataset For Bullet Point Summarization of Long Earnings Call Transcriptscited by 59
19 more
  1. 2023MedAlign: A Clinician-Generated Dataset for Instruction Following with Electronic Medical Recordscited by 56
  2. 2025Optimizing Temperature for Language Models with Multi-Sample Inferencecited by 33
  3. 2024ClinicalBench: Can LLMs Beat Traditional ML Models in Clinical Prediction?cited by 32
  4. 2025Point-RFT: Improving Multimodal Reasoning with Visually Grounded Reinforcement Finetuningcited by 32
  5. 2024BPE Gets Picky: Efficient Vocabulary Refinement During Tokenizer Trainingcited by 31
  6. 2025AdaptiVocab: Enhancing LLM Efficiency in Focused Domains through Lightweight Vocabulary Adaptationcited by 15
  7. 2024Efficient Knowledge Infusion via KG-LLM Alignmentcited by 13
  8. 2023Measuring the Robustness of NLP Models to Domain Shiftscited by 11
  9. 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Modelscited by 11
  10. 2024LLMs-based Few-Shot Disease Predictions using EHR: A Novel Approach Combining Predictive Agent Reasoning and Critical Agent Instructioncited by 11
  11. 2024Adapters for Altering LLM Vocabularies: What Languages Benefit the Most?cited by 9
  12. 2024Information Extraction from Clinical Notes: Are We Ready to Switch to Large Language Models?cited by 9
  13. 2022Generalizing over Long Tail Concepts for Medical Term Normalizationcited by 8
  14. 2023Synthesize High-dimensional Longitudinal Electronic Health Records via Hierarchical Autoregressive Language Modelcited by 8
  15. 2024mhGPT: A Lightweight Generative Pre-Trained Transformer for Mental Health Text Analysiscited by 5
  16. 2025Cross-Representation Benchmarking in Time-Series Electronic Health Records for Clinical Outcome Predictioncited by 4
  17. 2026The Taxonomies, Training, and Applications of Event Stream Modelling for Electronic Health Recordscited by 3
  18. 2024Infusing clinical knowledge into tokenisers for language modelscited by 2
  19. 2025DynaGraph: Interpretable Multi-Label Prediction from EHRs via Dynamic Graph Learning and Contrastive Augmentationcited by 2

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Rethinking Tokenization for Clinical Time Series: When Less is More
  2. 2025Multimodal Medical Code Tokenizer
  3. 2026Representation Before Training: A Practical Benchmark for Generative Medical Event Model Tokenization
  4. 2026The Patient is not a Moving Document: A World Model Training Paradigm for Longitudinal EHR
  5. 2026Sparse Autoencoder Decomposition of Clinical Sequence Model Representations: Feature Complexity, Task Specialisation, and Mortality Prediction
  6. 2026Large Language Models as Unified Multimodal Learners for Clinical Prediction
  7. 2025MedEIR: A Specialized Medical Embedding Model for Enhanced Information Retrieval
  8. 2026Training a Large Language Model for Medical Coding Using Privacy-Preserving Synthetic Clinical Data