Saved in:
Bibliographic Details
Main Authors: Ni, Jiliang, Pu, Jiachen, Yang, Zhongyi, Zhou, Kun, Wang, Hui, Xiao, Xiaoliang, Wang, Dakui, Li, Xin, Luo, Jingfeng, Hu, Conggang
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.13471
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915282142887936
author Ni, Jiliang
Pu, Jiachen
Yang, Zhongyi
Zhou, Kun
Wang, Hui
Xiao, Xiaoliang
Wang, Dakui
Li, Xin
Luo, Jingfeng
Hu, Conggang
author_facet Ni, Jiliang
Pu, Jiachen
Yang, Zhongyi
Zhou, Kun
Wang, Hui
Xiao, Xiaoliang
Wang, Dakui
Li, Xin
Luo, Jingfeng
Hu, Conggang
contents Large Language Models (LLMs) have significantly advanced artificial intelligence by optimizing traditional Natural Language Processing (NLP) workflows, facilitating their integration into various systems. Many such NLP systems, including ours, directly incorporate LLMs. However, this approach either results in expensive costs or yields suboptimal performance after fine-tuning. In this paper, we introduce a three-stage cost-efficient end-to-end LLM deployment pipeline, comprising prototyping, knowledge transfer, and model compression, to effectively tackle the cost-performance dilemma in LLM-based frameworks. Its high cost-efficiency is manifested not only in simplifying system complexity and producing super-tiny online models with enhanced performance and reduced costs in the results, but also in addressing development cycle constraints, the lack of extensive high-quality data, and limited computational resources during the project development process. In the first stage, we construct an optimal performance prototype system by transforming complex tasks into a function call-based LLM-driven pipeline, which serves as a teacher model to generate high-quality data. In the second stage, we combine techniques like rejection sampling fine-tuning, reinforcement learning, and knowledge distillation to transfer knowledge to 0.5B student models, delivering effective performance at minimal cost. In the final stage, we further compress models to 0.4B via quantization and pruning, achieving ultra-low latency and cost. Extensive experimental results and the framework's modular design suggest cross-domain capabilities and potential applicability in other NLP areas.
format Preprint
id arxiv_https___arxiv_org_abs_2504_13471
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle From Large to Super-Tiny: End-to-End Optimization for Cost-Efficient LLMs
Ni, Jiliang
Pu, Jiachen
Yang, Zhongyi
Zhou, Kun
Wang, Hui
Xiao, Xiaoliang
Wang, Dakui
Li, Xin
Luo, Jingfeng
Hu, Conggang
Computation and Language
Large Language Models (LLMs) have significantly advanced artificial intelligence by optimizing traditional Natural Language Processing (NLP) workflows, facilitating their integration into various systems. Many such NLP systems, including ours, directly incorporate LLMs. However, this approach either results in expensive costs or yields suboptimal performance after fine-tuning. In this paper, we introduce a three-stage cost-efficient end-to-end LLM deployment pipeline, comprising prototyping, knowledge transfer, and model compression, to effectively tackle the cost-performance dilemma in LLM-based frameworks. Its high cost-efficiency is manifested not only in simplifying system complexity and producing super-tiny online models with enhanced performance and reduced costs in the results, but also in addressing development cycle constraints, the lack of extensive high-quality data, and limited computational resources during the project development process. In the first stage, we construct an optimal performance prototype system by transforming complex tasks into a function call-based LLM-driven pipeline, which serves as a teacher model to generate high-quality data. In the second stage, we combine techniques like rejection sampling fine-tuning, reinforcement learning, and knowledge distillation to transfer knowledge to 0.5B student models, delivering effective performance at minimal cost. In the final stage, we further compress models to 0.4B via quantization and pruning, achieving ultra-low latency and cost. Extensive experimental results and the framework's modular design suggest cross-domain capabilities and potential applicability in other NLP areas.
title From Large to Super-Tiny: End-to-End Optimization for Cost-Efficient LLMs
topic Computation and Language
url https://arxiv.org/abs/2504.13471