Guardado en:
Detalles Bibliográficos
Autores principales: Zhou, Fengwei, Song, Jiafei, Li, Wenjin Jason, Xue, Gengjian, Zhao, Zhikang, Lu, Yichao, Na, Bailin
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:https://arxiv.org/abs/2504.16786
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866916703898697728
author Zhou, Fengwei
Song, Jiafei
Li, Wenjin Jason
Xue, Gengjian
Zhao, Zhikang
Lu, Yichao
Na, Bailin
author_facet Zhou, Fengwei
Song, Jiafei
Li, Wenjin Jason
Xue, Gengjian
Zhao, Zhikang
Lu, Yichao
Na, Bailin
contents Recent advances in large language models have significantly improved their ability to process long-context input, but practical applications are challenged by increased inference time and resource consumption, particularly in resource-constrained environments. To address these challenges, we propose MOOSComp, a token-classification-based long-context compression method that enhances the performance of a BERT-based compressor by mitigating the over-smoothing problem and incorporating outlier scores. In the training phase, we add an inter-class cosine similarity loss term to penalize excessively similar token representations, thereby improving the token classification accuracy. During the compression phase, we introduce outlier scores to preserve rare but critical tokens that are prone to be discarded in task-agnostic compression. These scores are integrated with the classifier's output, making the compressor more generalizable to various tasks. Superior performance is achieved at various compression ratios on long-context understanding and reasoning benchmarks. Moreover, our method obtains a speedup of 3.3x at a 4x compression ratio on a resource-constrained mobile device.
format Preprint
id arxiv_https___arxiv_org_abs_2504_16786
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scores
Zhou, Fengwei
Song, Jiafei
Li, Wenjin Jason
Xue, Gengjian
Zhao, Zhikang
Lu, Yichao
Na, Bailin
Computation and Language
Machine Learning
Recent advances in large language models have significantly improved their ability to process long-context input, but practical applications are challenged by increased inference time and resource consumption, particularly in resource-constrained environments. To address these challenges, we propose MOOSComp, a token-classification-based long-context compression method that enhances the performance of a BERT-based compressor by mitigating the over-smoothing problem and incorporating outlier scores. In the training phase, we add an inter-class cosine similarity loss term to penalize excessively similar token representations, thereby improving the token classification accuracy. During the compression phase, we introduce outlier scores to preserve rare but critical tokens that are prone to be discarded in task-agnostic compression. These scores are integrated with the classifier's output, making the compressor more generalizable to various tasks. Superior performance is achieved at various compression ratios on long-context understanding and reasoning benchmarks. Moreover, our method obtains a speedup of 3.3x at a 4x compression ratio on a resource-constrained mobile device.
title MOOSComp: Improving Lightweight Long-Context Compressor via Mitigating Over-Smoothing and Incorporating Outlier Scores
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2504.16786