With the rapid development and widespread adoption of large language models, numerous challenges have emerged, especially as model sizes continue to grow and computational demands increase. Model distillation technology, as an effective solution, transfers knowledge from large, complex models (teacher models) to smaller, more efficient models (student models), significantly reducing computational resource requirements while maintaining model performance. As a result, it has attracted considerable attention.
The core concept of model distillation is to transfer the knowledge of large models to smaller models, preserving the reasoning capabilities and accuracy of the large models while substantially reducing storage and inference costs. Smaller models require fewer resources and are easier to deploy across various hardware platforms, greatly expanding the breadth and depth of practical applications. In addition, for deep reasoning tasks, the required chains of thought are difficult to achieve through manual annotation. Combining model distillation with fine-tuning maximizes the use of existing large model resources, enhances the reasoning capabilities of smaller models, compensates for their shortcomings in handling complex tasks, and provides efficient and reliable reasoning services. Distillation can specifically refer to both data distillation and model distillation.
Data distillation | Model distillation | |
|---|---|---|
Definition | A high-quality data acquisition technique that uses data generated by a high-performance model to train another model. | A model compression technique that uses a high-performance teacher model to train a smaller student model, enabling the student model to perform inference with capabilities close to those of the teacher model. |
Problems addressed | Synthetic data | Reducing model size |
Workflow | First, a large model is used to generate high-quality textual data, and then this data is used to train a smaller model. For example, text generated by a large language model can be used as training data to train a small model for a specific task, such as text classification or question answering models. | The teacher model is first trained on a large-scale dataset, then generates soft labels (Soft Labels). These soft labels contain information about relationships between classes. The student model optimizes its parameters by learning these soft labels, and possibly hard labels. For example, in natural language processing tasks, the teacher model outputs the probability distribution for each text sample belonging to different classes, which helps the student model better understand the semantic features and class boundaries of the text, improving classification accuracy. |
Common technical approaches | ||
Advantages | Data distillation can significantly reduce reliance on manually labeled data. | Model distillation can significantly reduce the number of parameters and computational complexity of a model while maintaining performance, making the model more suitable for deployment in resource-constrained environments. |
Application scenarios | Capability alignment, data flywheel, domain models, business models | Reducing computational requirements, deployment in specific resource-constrained environments |
Common cases | Obtaining high-quality data through DeepSeek-R1 for general model training | Deploying high-performance models on mobile devices and embedded systems |
Data distillation is a batch task aimed at continuously improving model performance based on business needs. Typically, relevant data are merged according to the data recipe to form a high-quality dataset (distilled data + related data), which is used for fine-tuning the model.
Stage | Data volume | Token consumption | Remarks |
|---|---|---|---|
QA data records | GB scale per day | None | Related to business volume |
Dataset storage | GB per day | None | Related to business volume |
Data distillation | MB per operation (thousands or tens of thousands of data entries) | Ten million to one hundred million per operation | Related to large model requests |
QA data collection
In both online inference and batch inference scenarios, to address the need for inference log collection—especially the challenges posed by large data volumes—an effective architectural solution has been designed. This architecture is intended to provide practical solutions for relevant applications, helping to address the challenges of log collection under massive data conditions, thereby ensuring smooth business operations and effective data utilization.
QA data exploration
In big data application scenarios, after completing log collection, business users typically perform filtering and exploration based on the log data itself, and use this to construct a preprocessing dataset. This solution is designed to effectively address the challenges of log exploration in big data scenarios. Through rigorous data filtering and analysis processes, it builds a high-quality preprocessing dataset, laying a solid foundation for subsequent work and supporting the overall process of model distillation.
Models such as DeepSeek-R1 are notable for their outstanding inference capabilities. This document uses DeepSeek as an example. For other commercial and open-source large models, please observe the usage restrictions.
Through this series of data distillation processes, users can leverage more powerful general-purpose large models or domain-specific models for distillation, thereby obtaining high-quality data resources and providing strong support for solving related problems in different application scenarios.
The LAS data processing operator platform enables model developers to build and reuse data operations, configure corresponding data processing workflows, and evaluate the impact of LLMs' data pipelines on training under different data recipe conditions.
LAS provides efficient, flexible, and powerful data processing workflow services. With a carefully designed architecture, LAS can organically combine and connect built-in operators, custom operators, and third-party operators to construct data processing workflows for different application scenarios, meeting diverse data processing needs.
In the field of data processing, operators play a key role in implementing fundamental data processing logic. By carefully combining various operators, optimizing the order and execution modes of operators, data processing efficiency and effectiveness can be significantly improved. For data distillation scenarios, the platform's built-in operators are mainly divided into the following two categories:
Data preprocessing operators
Type | Description |
|---|---|
Document information extraction | Extract text from unstructured documents |
Transformation | Read unstructured data and convert it to a unified format |
Text correction | Remove duplicate content from HTML, LaTeX, and code |
Language identification | Identify the main language type in the document |
Prompt enhancement | Create highly complex instructions by tuning large models with existing instructions |
Fuzzy deduplication | Identify and remove duplicate or similar content based on document context |
Document segmentation | Split a document into multiple sub-documents |
Personal information removal | Detect and replace personal information in the document |
User-defined transformation | Insert user-defined mapping functions in a simple way |
User-defined filtering | Insert user-defined filtering functions in a simple way |
Prompt enhancement | Create highly complex instructions by tuning large models with existing instructions |
…… | …… |
Example of a data preprocessing pipeline
Data postprocessing operators
LAS provides over 100 built-in data processing operators. For details, please refer to the attachment.
Type | Description |
|---|---|
Global deduplication | Precisely match identical content and deduplicate |
Rouge score deduplication | Remove similar data by calculating approximate scores |
Duplicate removal | Detect and reduce redundant context |
User-defined transformation | Insert user-defined mapping functions in a simple way |
User-defined filtering | Insert user-defined filtering functions in a simple way |
Prompt enhancement | Create highly complex instructions by tuning large models with existing instructions |
…… | …… |
Example of a data postprocessing pipeline
LAS leverages Volcano Engine Data Lake Storage and deeply integrates lake format technology to build the dataset management module.
Basic features :
Data labeling :
Version management :
Mount the dataset on platforms with computing resources such as LAS development machines, ModelArk, or machine learning platforms. Depending on the specific task objectives and data characteristics, the dataset can be used for model pre-training, fine-tuning, reinforcement learning, and other training schemes.
To address the complex data storage requirements during deep learning model distillation, Volcano Engine provides comprehensive and detailed strategies.
From supporting multiple storage media to refined management of data version lineage, the solution ensures efficient storage and management when handling diverse datasets and large-scale inference data, providing a solid data foundation for model training.
The data processing operator platform encompasses a variety of data processing operator types, ranging from document information extraction and format conversion to various deduplication operations, as well as user-defined transformation and filtering features, greatly enhancing the flexibility and efficiency of data processing. The platform can meet strict data quality requirements in different scenarios, supporting the generation of high-quality distilled data.
The dataset management module provides powerful features, including flexible dataset creation methods that do not add extra storage burden; comprehensive data label management for convenient data retrieval and classification; and robust version management and lineage tracing features to ensure data traceability and standardized management.
High-quality data can be obtained through inference data distillation. Datasets can be easily deployed on platforms with computing resources, supporting multiple training schemes. This effectively improves the efficiency and quality of model training and accelerates model optimization and deployment.
With built-in operators, it builds a more technically robust, more stable, and feature-rich service for invoking open and closed source large language models, providing high-quality service solutions for various application scenarios. While ensuring effectiveness is not compromised, it reduces related costs.
Intelligent customer service
In intelligent customer service systems, large language models need to process a large volume of user inquiry data. With this solution, complex and diverse conversational data can be efficiently stored and processed. Through model distillation technology, the knowledge of large models is distilled into small, efficient models, improving the response speed and accuracy of intelligent customer service while reducing deployment costs.
Online education
After adopting this large model data distillation solution, inference logs are used to comprehensively collect and understand students' learning behavior data. The data processing operator platform is used to clean and transform the data, the dataset management module classifies and manages versions of the data, and high-quality data is obtained through inference data distillation for model training. The knowledge of large and complex models is transferred to small and efficient models, which are deployed in intelligent education systems. This improves the system's response speed and the accuracy of teaching assistance, resulting in significant improvements in students' learning outcomes.
Financial risk control
Data in the financial sector is characterized by diversity and real-time characteristics. The data processing and management capabilities in this solution can clean, transform, and analyze massive amounts of financial data. Efficient risk prediction models are trained through model distillation, helping financial institutions promptly identify potential risks and make informed decisions.
Industrial inspection
A large amount of equipment operation data is generated in industrial production environments, and traditional methods struggle to effectively process and analyze this data to achieve accurate fault prediction. Key equipment operation data is collected through inference logs, the data processing operator platform is used to explore and process the data, the dataset management module effectively manages data at different stages, and models capable of more accurate fault prediction are trained through inference data distillation and model training.