Abstract
It is important to develop mathematically tractable models than can interpret knowledge extracted from the data and provide reasonable predictions. In this paper, we present a Linear Distillation Learning, a simple remedy to improve the performance of linear neural networks. Our approach is based on using a linear function for each class in a dataset, which is trained to simulate the output of a teacher linear network for each class separately. We tested our model on MNIST and Omniglot datasets in the Few-Shot learning manner. It showed better results than other interpretable models such as classical Logistic Regression.
Introduction
In the current landscape of machine learning, dominated by massive "black box" models like transformers, there is a persistent trade-off between accuracy and interpretability. This challenge is particularly acute in Few-Shot Learning (FSL), where models must generalize from minimal data. While deep neural networks (DNNs) excel at accuracy, their decision-making processes remain opaque. Conversely, linear models like Logistic Regression offer high interpretability but often lack the expressive power required for complex visual tasks.
This paper introduces Linear Distillation Learning (LDL), a framework designed to enhance the performance of simple linear networks without compromising their inherent mathematical transparency. By leveraging knowledge distillation, we enable linear models to achieve competitive results in low-data regimes.
Methods
The LDL framework is built upon three core pillars:
- Linear Neural Networks (LNNs): These networks lack non-linear activation functions, ensuring the entire operation is a series of matrix multiplications. This makes the model mathematically tractable and easy to analyze.
- Class-Dependent Predictors: Instead of a single monolithic model, LDL employs a dedicated linear predictor for each class.
- Bidirectional Distillation: This process involves two distinct distillation paths:
- One-to-Many Distillation (O2MD): A "teacher" network maps inputs to a representation space. Each class-specific student predictor is then trained to minimize the Mean Squared Error (MSE) between its output and the teacher's output for that specific class.
- Many-to-One Random Distillation (M2ORD): To ensure the teacher network effectively separates classes in the output space, it is trained against a set of randomly initialized, orthogonal linear functions.
Classification is performed through novelty detection: an input is assigned to the class whose specific predictor's output most closely matches the teacher's output. To maintain class distinction from the start, we utilize Orthonormal Initialization via Singular Value Decomposition (SVD).
Key Results
We evaluated LDL on the MNIST and Omniglot benchmarks, focusing on "shot" sizes from 1 to 300 samples per class.
The Bidirectional Distillation (BD) variant demonstrated significant improvements in low-data scenarios. In 1-shot MNIST tasks, BD achieved 43.6% accuracy, substantially higher than the 31.6% achieved by standard Logistic Regression. Notably, in 10-shot scenarios, the O2MD variant reached 80.1% accuracy, outperforming a standard non-linear Multi-Layer Perceptron (MLP) which scored 74.9%.
Beyond raw accuracy, LDL models exhibited fast convergence, typically reaching peak performance within 10 epochs. Furthermore, visual interpretability tools like LIME confirmed that the model focuses on the structural features of the digits, providing a clear rationale for its classifications.
Discussion and Future Work
While LDL offers a promising path toward transparent AI, several challenges remain. The model exhibits sensitivity to hyperparameters such as learning rate and optimizer choice. Additionally, as training data increases beyond the few-shot regime, the "linear ceiling" becomes apparent, and the performance gap relative to deep non-linear models widens.
Future research will focus on integrating meta-learning techniques to allow for knowledge transfer across different tasks, rather than treating each task in isolation. By proving that linear models can be effectively "coached" through distillation, this work provides a foundation for high-performance, interpretable machine learning.
Summary updated