Distilling Vision-Language Models for On-Device Fire Understanding
Organizations: EPFL, Lausanne, Switzerland · Detectium, Espoo, Finland
Abstract
Vision-language models (VLMs) offer a promising alternative to conventional fire detection systems by reasoning about the semantic context of a scene and thus reducing false alarms, yet their large model size makes deployment on embedded fire sensors impractical. In this paper, we study how domain-specialized VLMs can be compressed for fully on-device deployment without losing the safety-critical behavior required for fire detection. We develop a teacher-student knowledge distillation framework in which large VLMs fine-tuned for fire understanding can be distilled into lightweight students. Experiments across multiple VLM families and model scales show that compact students preserve most of their teachers' fire-understanding capability. We further deploy the distilled models on our commercial Detectium fire detection sensor and jointly evaluate reasoning accuracy, latency, and memory usage. The results show that compression and deployment affect not only accuracy but also model failure modes, with Qwen2.5-0.5B providing the strongest overall deployment trade-off. Our findings provide broader guidance for deploying domain-specialized VLMs in resource-constrained, safety-critical settings.
Figures & tables
| Fire-scene reasoning | Detection | ||||
| Model | Vision encoder | Burning object | Environment | Severity | Fire/non-fire |
| Qwen2.5 family | |||||
| Qwen2.5-7B (Teacher) | CLIP ViT-L/336 | 80.77 | 86.34 | 88.86 | 99.79 |
| Qwen2.5-7B (Teacher) | MobileCLIP-S2 | 81.43 | 78.51 | 83.95 | 99.72 |
| Qwen2.5-0.5B | CLIP ViT-L/336 | 76.92 1.16 | 85.76 1.48 | 88.28 1.46 | 99.75 0.04 |
| Qwen2.5-1.5B | CLIP ViT-L/336 | 77.19 1.63 | 85.41 1.61 | 87.44 1.30 | 99.56 0.17 |
| Errors (counts) | Rates (%) | |||||
| Model | Objective | False alarms | Missed fires | Recall | Specificity | Accuracy |
| Qwen2.5 family | ||||||
| Qwen2.5-0.5B | only | 671.3 10.4 | 0 0.0 0.0 | 100.00 0.00 | 0 3.82 1.49 | 53.76 0.72 |
| 00 2.0 0 0.0 | 0 1.7 0.6 | 0 99.78 0.08 | 99.71 0.00 | 99.75 0.04 | ||
| Qwen2.5-1.5B | only | 549.7 28.0 | 0 0.0 0.0 | 100.00 0.00 | 21.25 4.01 | 62.14 1.93 |
| 00 4.7 0 2.1 | 0 1.7 0.6 | 0 99.78 0.08 | 99.33 0.30 | 99.56 0.17 | ||
| Fire-scene reasoning | Detection | ||||||||
| Burning object | Environment | Severity | Fire/non-fire | ||||||
| Model | Vision encoder | Acc. | Acc. | Acc. | Acc. | ||||
| Qwen2.5 family | |||||||||
| Qwen2.5-0.5B | CLIP ViT-L/336 | 75.95 0.85 | 85.10 0.43 | 88.37 2.48 | 99.52 0.12 | ||||
| Qwen2.5-1.5B | CLIP ViT-L/336 | 75.73 1.38 | 84.13 0.28 | 87.31 1.20 | 99.54 0.20 | ||||
| Qwen2.5-3B | CLIP ViT-L/336 | 76.88 0.41 | 86.34 1.04 | 88.82 0.55 | 97.87 0.62 | ||||
| Model | Vision | TTFT | E2E | RSS | Fits |
| (ms) | (ms) | (MB) | |||
| Qwen2.5 family | |||||
| Qwen2.5-0.5B | CLIP | 3818 | 4034 | 1880 | ✓ |
| Qwen2.5-1.5B | CLIP | 6862 | 7419 | 4210 | ✓ |
| Qwen2.5-3B | CLIP | 11598 | 12519 | 7341 | ✓ |
| Qwen2.5-3B | MobileCLIP | 1757 | 18976 | 8778 | |
Appendix figures & tables7 assets
Supplementary material from the paper’s appendix.
Appendix
| Subset | NO. | Source |
|---|---|---|
| Description-style | 12,000 | LLaVA mix665k |
| Localization | 2,409 | LLaVA mix665k |
| Simple VQA | 3,000 | LLaVA mix665k |
| Fire VQA | 13,077 | DetectiumFire train |
| Bbox + non-fire | 5,000 | DetectiumFire train |
| Configuration | Initialization | Fine-Tuning |
|---|---|---|
| LLM | ✗ | ✓ (LoRA) |
| VL Adaptor | ✓ | ✓ |
| ViT | ✗ | ✗ |
| LLM sequence length | 2048 | 1536 |
| Optimizer | AdamW | AdamW |
| Optimizer hyperparameter |
| Configuration | Initialization | Distillation |
|---|---|---|
| LLM | ✗ | ✓ (LoRA) |
| VL Adaptor | ✓ | ✓ |
| ViT | ✗ | ✗ |
| LLM sequence length | 2048 | 2048 |
| Optimizer | AdamW | AdamW |
| Optimizer hyperparameter |
| Fire-scene reasoning | Detection | |||||
| Model | Objective | Burning object | Environment | Severity | Fire/non-fire | |
| Qwen2.5 family | ||||||
| Qwen2.5-0.5B | only | 77.59 0.48 | 86.16 0.28 | 88.81 0.31 | 53.76 0.72 | |
| 76.92 1.16 | 85.76 1.48 | 88.28 1.46 | 99.75 0.04 | +45.99 | ||
| Qwen2.5-1.5B | only | 79.62 0.15 | 87.23 0.43 | 88.46 0.27 | 62.14 1.93 | |
| 77.19 1.63 | 85.41 1.61 | 87.44 1.30 | 99.56 0.17 | +37.42 | ||
| Errors (counts) | Rates (%) | |||||
|---|---|---|---|---|---|---|
| Teacher | Encoder | False alarms | Missed fires | Recall | Specificity | Accuracy |
| Qwen2.5-7B | CLIP | 2 | 1 | 99.87 | 99.71 | 99.79 |
| Qwen2.5-7B | MobileCLIP | 2 | 2 | 99.73 | 99.71 | 99.72 |
| Qwen3-8B | CLIP | 1 | 1 | 99.87 | 99.86 | 99.86 |
| Qwen3-8B | MobileCLIP | 2 | 2 | 99.73 | 99.71 | 99.72 |
| Llama-3.1-8B | CLIP | 1 | 1 | 99.87 | 99.86 | 99.86 |
| Family | Prompt template |
|---|---|
| Qwen2.5 | USER: <image>{prompt} ASSISTANT: |
| Qwen3 | <|im_start|>system {system}<|im_end|> <|im_start|>user <image> {prompt}<|im_end|> <|im_start|>assistant |
| Llama-3.2 | <|begin_of_text|><|start_header_id|>system<|end_header_id|> {system}<|eot_id|><|start_header_id|>user<|end_header_id|> <image> {prompt}<|eot_id|><|start_header_id|>assistant<|end_header_id|> |
| Gemma-2 | <start_of_turn>user <image> {prompt}<end_of_turn> <start_of_turn>model |
| Errors (counts) | Rates (%) | ||||||||
| False alarms | Missed fires | Recall | Specificity | ||||||
| Model | Vision encoder | Count | Count | Rate | Rate | ||||
| Qwen2.5 family | |||||||||
| Qwen2.5-0.5B | CLIP ViT-L/336 | 0 5.7 2.5 | 0 1.3 1.2 | 99.83 0.16 | 99.18 0.36 | ||||
| Qwen2.5-1.5B | CLIP ViT-L/336 | 0 5.0 1.7 | 0 1.7 1.2 | 99.77 0.16 | 99.28 0.24 | ||||
| Qwen2.5-3B | CLIP ViT-L/336 | 27.7 9.0 | 0 3.3 0.6 | 99.56 0.08 | 96.03 1.29 | ||||
VLM Distillation
Vision-language model distillation transfers multimodal capabilities to smaller, faster models for efficient deployment.
See all 127 papers