Task-Adaptive Tokenization: Enhancing Long-Form Text Generation Efficacy in Mental Health and Beyond
Siyang Liu, Naihao Deng, Sahand Sabour, Yilin Jia, Minlie Huang, Rada Mihalcea
Abstract
We propose task-adaptive tokenization 1 as a way to adapt the generation pipeline to the specifics of a downstream task and enhance long-form generation in mental health. Inspired by insights from cognitive science, our task-adaptive tokenizer samples variable segmentations from multiple outcomes, with sampling probabilities optimized based on taskspecific data. We introduce a strategy for building a specialized vocabulary and introduce a vocabulary merging protocol that allows for the integration of task-specific tokens into the pre-trained model's tokenization step. Through extensive experiments on psychological question-answering tasks in both Chinese and English, we find that our task-adaptive tokenization approach brings a significant improvement in generation performance while using up to 60% fewer tokens. Preliminary experiments point to promising results when using our tokenization approach with very large language models.
Ask Lune
Know this paper in minutes, not an afternoon.
Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.
5 top-tier papers have cited it since. Know what they found before your reviewers do.
Lune can draw on
the full paper · the top-tier papers that cite it · related work
Free to start. No credit card required.
Lineage
- Ted-Tok: Maintaining an Evolving Vocabulary for Lifelong Learning cites Enhancing Large Language Models through Adaptive Tokenizers
- zip2zip: Inference-Time Adaptive Tokenization via Online Compression cites LoRA: Low-Rank Adaptation of Large Language Models
Cited by top-tier papers5
- Enhancing Large Language Models through Adaptive TokenizersMengyu Zheng, Hanting Chen, Tianyu Guo, Chong Zhu et al.NeurIPS 2024 · 11 citations
- zip2zip: Inference-Time Adaptive Tokenization via Online CompressionSaibo Geng, Nathan Ranchin, Yunzhen Yao, Maxime Peyrard et al.NeurIPS 2025 · 5 citations
- Knowledge Planning in Large Language Models for Domain-Aligned Counseling SummarizationAseem Srivastava, Smriti Joshi, Tanmoy Chakraborty, Md. Shad AkhtarEMNLP 2024 · 3 citations
- Responsible Evaluation of AI for Mental HealthHiba Arnaout, Anmol Goel, H. Andrew Schwartz, Steffen Eberhardt et al.ACL 2026
- Ted-Tok: Maintaining an Evolving Vocabulary for Lifelong LearningJiameng Huang, Zhi Zhang, Zhenyu He, Jiacheng Sun et al.ACL 2026
Builds on19
- LoRA: Low-Rank Adaptation of Large Language ModelsEdward J. Hu, Yelong Shen, Phillip Wallis, Zeyuan Allen-Zhu et al.ICLR 2022 · 18,833 citations
- BERTScore: Evaluating Text Generation with BERTTianyi Zhang, Varsha Kishore, Felix Wu, Kilian Q. Weinberger et al.ICLR 2020 · 8,443 citations
- BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and ComprehensionMike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad et al.ACL 2020 · 1,224 citations
- TurboTransformers: an efficient GPU serving system for transformer modelsJiarui Fang, Yang Yu, Chengduo Zhao, Jie ZhouPPoPP 2021 · 117 citations
- PsyQA: A Chinese Dataset for Generating Long Counseling Text for Mental Health SupportHao Sun, Zhenru Lin, Chujie Zheng, Siyang Liu et al.ACL Findings 2021 · 69 citations
Related papers
- ALTo: Adaptive-Length Tokenizer for Autoregressive Mask GenerationLingfeng Wang, Hualing Lin, Senda Chen, Tao Wang et al.NeurIPS 2025 · 5 citations
- Learning Faster with Better Tokens: Parameter-Efficient Vocabulary Adaptation for Specialized Text SummarizationGunjan Balde, Soumyadeep Roy, Mainack Mondal, Niloy GangulyACL 2026
- Adaptive BPE Tokenization for Enhanced Vocabulary Adaptation in Finetuning Pretrained Language ModelsGunjan Balde, Soumyadeep Roy, Mainack Mondal, Niloy GangulyEMNLP Findings 2024 · 6 citations
- Accelerating Multilingual Language Model for Excessively Tokenized LanguagesJimin Hong, Gibbeum Lee, Jaewoong ChoACL Findings 2024 · 6 citations
- End-to-End Vision Tokenizer TuningWenxuan Wang, Fan Zhang, Yufeng Cui, Haiwen Diao et al.NeurIPS 2025 · 6 citations
