Knowledge distillation establishes a learning paradigm that leverages both data supervision and teacher guidance. However, determining the optimal balance between learning from data and learning from the teacher is challenging, as some samples may be noisy while others are subject to teacher uncertainty. This motivates the need for adaptively balancing data and teacher supervision. We propose Beta-weighted Knowledge Distillation (Beta-KD), an uncertainty-aware distillation framework that adaptively modulates how much the student relies on teacher guidance. Specifically, we formulate teacher--student learning from a unified Bayesian perspective and interpret teacher supervision as a Gibbs prior over student activations. This yields a closed-form, uncertainty-aware weighting mechanism and supports arbitrary distillation objectives and their combinations. Extensive experiments on multimodal VQA benchmarks demonstrate that distilling student Vision-Language Models from a large teacher VLM consistently improves performance. The results show that Beta-KD outperforms existing knowledge distillation methods. The code is available at https://github.com/Jingchensun/beta-kd.
Figures & tables
Figure 1: Overview of the proposed Beta-KD framework. (a) Conventional KD is hard to balance the learning from data and the learning from teacher signals. (b) Our method introduces an uncertainty-aware weighting framework by recognizing teacher supervision as a Gibbs prior, which naturally induces the prediction of the weights β1 and β2 through an amortized optimization network. The predicted uncertainty weights dynamically modulate the learning strength between teacher and student alignment, enabling adaptive balancing without manual hyperparameter tuning.
Figure 2: Language modeling chain with teacher guidance. Given input x , the student network produces activations fs or zs , which are mapped to probabilities qs via softmax and then sampled to generate output y . Dashed arrows indicate teacher supervision injected at (1) the feature/logit level ( ft or zt ) or (2) the probability level ( ptτ ).
Figure 3: Visualization of four representative knowledge distillation losses in the probability simplex.
Method
Acc Mean ± Std
Method
Acc Mean ± Std
Cross Entropy (CE)
48.4 ± 1.4
Adaptive KL [ 54 ]
44.1 ± 2.4
FKL [ 22 ]
45.7 ± 1.6
CTKD [ 32 ]
37.8 ± 2.8
RKL [ 18 ]
42.8 ± 3.2
TAID [ 44 ]
47.0 ± 0.9
Skew FKL [ 57 ]
45.7 ± 3.4
MSE-Logits
4.9 ± 10.5
Skew RKL [ 57 ]
45.7 ± 2.7
MSE-Probs
28.2 ± 10.6
Table 1: Comparison of different energy-based models for student–teacher knowledge transfer. All losses except CE are distillation losses. MSE-Logits and Cosine-Logits denote losses applied at the pre-softmax logit level, while MSE-Probs and Cosine-Probs are applied at the post-softmax probability level. Results on the ScienceQA dataset (averaged over three runs) show that Cosine-Probs achieves the best performance.
Method
VQA-Acc
IMG-Acc
Method
VQA-Acc
IMG-Acc
Method
VQA-Acc
IMG-Acc
CE + FKL
48.2
54.7
CE + JS
48.5
54.8
CE + CTKD
48.6
55.0
w/ Manual
48.6
54.9
w/ Manual
49.4
56.3
w/ Manual
49.1
55.1
w/ Beta-KD (Task)
49.3 ( +0.7 )
55.3 ( +0.4 )
w/ Beta-KD (Task)
50.5 ( +1.1 )
58.1 ( +1.7 )
w/ Beta-KD (Task)
49.9 ( +0.8 )
55.3 ( +0.3 )
w/ Beta-KD (Instance)
51.8 ( +3.2 )
61.1 ( +6.2 )
w/ Beta-KD (Instance)
53.3 ( +3.9 )
66.9 ( +10.6 )
w/ Beta-KD (Instance)
53.8 ( +4.6 )
65.1 ( +10.0 )
CE + RKL
46.2
50.7
CE + TVD
49.1
53.1
CE + MSE-Probs
47.1
52.1
Table 2: Experimental results of two-loss balancing on the ScienceQA dataset. Each baseline combines Cross-Entropy (CE) with a KL-based distillation loss. Manual uses fixed weights between CE and KL based on their initial scales. Beta-KD (Task) models task-level uncertainty shared across all samples, while Beta-KD (Instance) models instance-level uncertainty adaptive to each input. VQA-Acc denotes the overall question–answering accuracy across all questions, whereas IMG-Acc measures the accuracy on the subset of questions whose explicitly include image inputs. Both strategies consistently enhance knowledge distillation performance across different loss functions.
Figure 4: Training trajectories and dynamic weight evolution for FKL+CE and RKL+CE objectives. The upper row shows the total training loss over steps, and the lower row illustrates the adaptive evolution of task and instance-level uncertainty weights β . The adaptive adjustment of the weighting parameter β during training ensure a faster overall loss convergence and enhances optimization stability .
Figure 5: Visualization of teacher–student logit distributions at different training stages. Step10 and Step190 denote early and late training checkpoints. Compare with the training steps, both Beta-KD (Task) and Beta-KD (Instance) reduce the logit matching distance compared to the baseline , with the instance-level variant achieving the closest alignment.
Method
VQA-Acc
IMG-Acc
Method
VQA-Acc
IMG-Acc
Method
VQA-Acc
IMG-Acc
CE + FKL + FD
45.5
47.9
CE + JS + FD
48.4
53.2
CE + MSE-Logits + FD
46.4
51.1
w/ Manual
47.7
53.3
w/ Manual
48.9
53.7
w/ Manual
47.4
52.6
w/ Beta-KD (Task)
50.2 ( +2.5 )
59.1 ( +5.8 )
w/ Beta-KD (Task)
49.7 ( +0.8 )
54.6 ( +0.9 )
w/ Beta-KD (Task)
48.6 ( +1.2 )
54.5 ( +1.9 )
w/ Beta-KD (Instance)
52.9 ( +5.2 )
61.9 ( +8.6 )
w/ Beta-KD (Instance)
52.7 ( +3.8 )
62.3 ( +8.6 )
w/ Beta-KD (Instance)
51.3 ( +3.9 )
60.9 ( +8.3 )
CE + RKL + FD
50.3
56.5
CE + TVD + FD
49.7
55.1
CE + MSE-Probs + FD
48.2
54.0
Table 3: Experimental results of three-loss balancing on the ScienceQA dataset. Each baseline combines Cross-Entropy (CE), a KL-based distillation loss, and a feature-level distillation (FD) objective. Manual uses fixed weights among CE, KL, and FD based on their initial scales. Beta-KD (Task) models task-level uncertainty shared across all samples, while Beta-KD (Instance) models instance-level uncertainty adaptive to each input.
Method
LLM
#Samples
MME P
MME A
GQA
VQA T
POPE
MMB dev
SQA I
Avg.
LLaVA-1.5 [ 36 ]
Vicuna-7B
1.2M
1510.7
75.5
62.0
58.2
85.9
64.3
66.8
68.8
ShareGPT4V [ 7 ]
Vicuna-7B
1.9M
1567.4
78.4
63.3
60.4
85.7
68.8
68.4
70.8
MobileVLM V2 7B [ 11 ]
Vicuna-7B
3.6M
1559.0
78.0
62.6
62.3
86.6
69.2
74.7
72.2
MoE-LLaVA-2B [ 10 ]
Qwen-1.5-1.8B
2.2M
1292.0
64.6
61.5
48.0
87.0
59.7
63.1
64.0
MoE-LLaVA-1.6B [ 33 ]
StableLM-1.6B
2.2M
1300.0
65.0
60.4
47.8
84.3
59.4
62.6
63.3
Table 4: Experimental results of the proposed uncertainty weighting framework on multiple benchmarks. MMEA is obtained by dividing MMEP by 20 to align its scale with other benchmarks. The overall average (Avg.) is computed across six datasets: MMEP , GQA, VQAT , POPE, MMBdev , and SQAI . Align-KD ’s result is our reproduced result, while Cosine KD means replaces the FKL loss in Align-KD with our proposed probability-space Cosine Distance Matching . Our uncertainty-aware Beta-KD framework further improves both variants, achieving new state-of-the-art performance.
Figure 6: Visualization of Student Entropy
Model Size
Method
TextVQA
ScienceQA
Acc.
Gain
Acc.
Gain
0.5B Model (Qwen2.5-0.5B)
LLaVA-KD
KD
52.0
–
60.6
–
w/ Beta-KD(Task)
Task-level
53.1
( +1.1 )
61.9
( +1.3 )
w/ Beta-KD(Instance)
Instance-level
54.9
( +2.9 )
64.4
( +3.8 )
Table 5: Performance comparison on LLAVA-Qwen Structure on TextVQA and ScienceQA . We report VQA accuracy (%).