TL;DR
Knowledge Distillation (KD) is a staple for compressing models in classification, but it struggles with regression tasks like stock volume prediction where "soft labels" don't exist. This paper introduces a framework that transforms regression into a probabilistic forecasting task, allowing a tiny student model to mimic a large Transformer's predicted distributions and pairwise sample correlations with 99.6% accuracy and 5x fewer parameters.
What Problem Does This Paper Address?
In the high-stakes world of High-Frequency Trading (HFT), latency is everything. While massive Deep Neural Networks (DNNs) like Transformers are excellent at predicting stock trading volumes, they are often too computationally expensive for real-time deployment.
Standard model compression usually relies on Knowledge Distillation, where a small "student" model learns from a large "teacher." In classification, the teacher provides "dark knowledge" through the relative probabilities of incorrect classes (e.g., a picture of a dog might have a 10% probability of being a cat, telling the student that dogs and cats share features).
However, in regression (predicting a single continuous number), there is no such structure. The teacher just outputs a scalar. This lack of informative supervision makes it difficult for small models to capture the complex patterns learned by their larger counterparts.
Methods
The authors propose a three-pronged approach to make distillation work for regression:
- Probabilistic Forecasting: Instead of predicting a single volume number ($y$), the models are trained to predict the parameters of a Gaussian distribution ($\mu$ and $\sigma$). This turns a simple scalar into a distribution, providing a richer signal for the student to follow.
- Distributional KD (DKD): The student is trained to minimize the Kullback-Leibler (KL) divergence between its predicted distribution and the teacher’s. This forces the student to match not just the predicted value, but also the teacher's "uncertainty."
- Correlation-Aware Distillation (CKD): To bridge the "capacity gap" between a large teacher and a tiny student, the authors introduce two auxiliary objectives based on how the teacher relates different samples to one another:
- Distance-wise Correlation: Uses Jeffreys Divergence to ensure the "distance" between two predicted distributions in the student matches the distance in the teacher.
- Angle-wise Correlation: A novel application of cosine similarity for Gaussian distributions in Hilbert space. This captures higher-order relationships between data points, helping the student understand the "shape" of the data manifold.
Datasets
The researchers evaluated their framework using the TPX500 dataset, which contains transaction data (open, close, high, low, and volume) for the 500 largest stocks on the Tokyo Exchange from January 2017 to June 2018. They tested two specific scenarios:
- Hourly: Intra-day trading volume prediction.
- Daily: Standard daily volume prediction.
Key Insights and Ideas
- Uncertainty as a Carrier of Knowledge: By predicting a distribution rather than a point estimate, the teacher can communicate its confidence level to the student. This acts as a proxy for the "dark knowledge" found in classification.
- Relational Learning: The "Aha!" moment here is that the student doesn't just need to know what the output for Sample A is; it needs to know how Sample A relates to Sample B. If the teacher thinks Sample A and B are very similar, the student should too.
- Higher-Order Signals: Angle-wise correlations (cosine similarity) proved more effective than simple distance metrics in many cases, suggesting that the "direction" of feature vectors in the distribution space is a potent supervision signal.
Key Results
The authors distilled a 6-layer Transformer (1.5M parameters) into a 1-layer Transformer (0.3M parameters).
- Efficiency: The student model achieved a 5x compression ratio.
- Accuracy: The student maintained 99.6% of the teacher's prediction accuracy (ACC) and significantly outperformed "teacher-free" models and vanilla KD methods.
- Low-Resource Performance: The framework was particularly dominant in "low-resource" scenarios. When trained on only 10% of the available data, the correlation-aware objectives provided a much steeper performance gain compared to standard methods.
- Calibration: The student model produced more "calibrated" predictions, meaning its predicted uncertainty ($\sigma$) more accurately reflected actual prediction errors.
Limitations and Future Work
- The Gaussian Assumption: The framework assumes that stock volume follows a Gaussian distribution. Financial data is notoriously "fat-tailed" (prone to extreme outliers), so exploring other distributions (like Student’s t-distribution) could be a logical next step.
- Task Generality: While highly effective for stock volumes, the authors have yet to test this on other regression tasks like weather forecasting or house price estimation.
- Distance Metric Exploration: The authors used Jeffreys Divergence for distance-wise correlation but noted that other metrics, like Wasserstein distance, might offer different benefits and are worth future study.
Summary updated