Manuscript Offprint

arXiv:2609.05782

Distilling Vision-Language Models for On-Device Fire Understanding

Mohammad Kazzazi, Zixuan Liu, Siavash Khajavi

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.

1 Introduction

Traditional fire detection systems in industrial settings rely primarily on smoke detectors or thermal cameras that trigger alarms upon detecting smoke or abnormally high temperatures (Fonollosa, Solórzano, and Marco 2018; Khajavi et al. 2023). As these sensors respond to low-level physical signals rather than the surrounding context, they suffer from high false-positive rates (Liu, Yuan, and Huang 2023): benign scenarios, such as open flames during cooking or deliberately controlled high-temperature processes in a factory, can raise the same alarms as a genuinely hazardous fire (Mensch, Veley, and Cleary 2024). Every false alarm requires human verification and may trigger costly interventions, wasting resources and eroding trust in the system (Tannous 2021; Chager and Smith 2014). Recent advances in multi-modal models, particularly vision-language models (VLMs) (Liu et al. 2023; Bai et al. 2025; Team et al. 2024; Liu, Jiang, and Khajavi 2025), offer a path beyond signal-level detection. Given image frames from a camera, a VLM can reason about the scene as a whole, for example, distinguishing a controlled flame from an uncontrolled one, and assess whether an observed fire poses a genuine safety risk. Prior studies show that such semantic reasoning substantially reduces false positives compared to traditional systems (Gragnaniello et al. 2025; Kim et al. 2025), pointing the way toward a more intelligent generation of fire detection systems.

Deploying VLMs for fire detection, however, is hindered by a fundamental conflict between model scale and deployment constraints. Modern VLMs with billions of parameters cannot run on the embedded hardware of fire detection sensors and must instead be hosted on cloud services, requiring every captured frame to be uploaded for analysis. This introduces two problems. The first is latency. Fire propagates rapidly, and a practical system must identify a hazardous fire at the very onset of ignition for mitigation to be effective (Çetin et al. 2013). Conventional smoke detectors take on the order of a minute to trigger an alarm (Bukowski et al. 2003). To alert before a smoke detector, a VLM-based system must therefore complete its entire detection-inference cycle within seconds. Cloud inference, however, adds round-trip communication delay, and any network failure can render the system unavailable at exactly the moment it is needed. The second, and more fundamental, is privacy. Fire sensors must be installed precisely in the spaces with the strongest privacy expectations, such as private apartments, public restrooms, or facilities where transmitting images off-site is prohibited by regulation (Regulation 2016; Kansal, Wong, and Kankanhalli 2025), making continuous image upload to a cloud service unacceptable. Fire detection thus demands the semantic reasoning of large modern VLMs, yet requires fully on-device inference to guarantee low latency and privacy, requirements that current systems cannot satisfy at once.

In this paper, we investigate how a domain-specialized VLM can be compressed sufficiently for real-world embedded deployment without sacrificing the safety-critical behavior, i.e., reduced false-alarm rate, required for fire detection. To this end, we develop a teacher-student knowledge distillation framework for on-device fire understanding. We first fine-tune state-of-the-art VLMs from the Qwen (Yang et al. 2025), Llama (Grattafori et al. 2024), and Gemma (Team et al. 2024) families as teacher models to acquire contextual understanding of fire scenes, and then distill their fire-domain knowledge into lightweight student models spanning

∗^{*}These authors contributed equally.

†^{\dagger}Corresponding author.

multiple parameter scales. We evaluate the resulting models on DetectiumFire (Liu, H Khajavi, and Jiang 2026), measuring not only their ability for fire understanding, but also their behavior on non-fire scenes that determine false-alarm performance. Our results show that compact students can retain most of their teachers' capability, while increasing student size provides surprisingly limited accuracy gains. We then deploy the distilled students on our commercial Detectium fire detection sensor and jointly evaluate their fire-understanding accuracy, safety-relevant detection errors, inference latency, and memory consumption under fully on-device inference. This deployment study reveals that model deployment involves more than an accuracy-efficiency trade-off: different architectural and deployment choices can systematically shift the model toward different failure modes. Across the tested model families and scales, Qwen2.5-0.5B provides the strongest overall deployment trade-off.

In summary, our contributions are as follows: 1. We develop a teacher-student distillation framework that compresses domain-specialized VLMs into lightweight models suitable for fully on-device fire understanding while largely preserving their semantic reasoning capability. 2. We systematically study the effect of distillation across model families and scales, showing that compact students retain most teacher performance while revealing important failure modes under different distillation objective. 3. We deploy the distilled students on our commercial Detectium fire detection sensor and characterize the practical trade-off among reasoning accuracy, safety-relevant detection errors, latency, and memory usage. Although our experiments focus on fire detection, the resulting insights on domain-specific distillation, failure-mode evaluation, and deployment-time study are broadly applicable to other safety-critical VLM applications requiring resource-constrained on-device inference.

References (57)

  • Qwen3-VL Technical Report
  • W.; Peacock, R. D.; Averill, J. D.; Cleary, T. G.; Bryner, N. P.; and Reneke, P. A. 2003
  • Llava-kd: A framework of distilling multimodal large language models
  • E.; Dimitropoulos, K.; Gouverneur, B.; Grammalidis, N.; Güney, O.; Habiboglu, Y. H.; Töreyin, B. U.; and Verstockt, S. 2013
  • The causes of false fire alarms in buildings
  • Reproducible scaling laws for contrastive language-image learning
  • Early fire and smoke detection using deep learning: A comprehensive review of models, datasets, and challenges
  • Chemical sensor systems and associated algorithms for fire detection: A review
  • When Speed Meets Intelligence: Scalable Conversational NER in an Ever-evolving World
  • Video fire recognition using zero-shot vision-language models guided by a task-aware object detector
  • The Llama 3 Herd of Models
  • Distilling the Knowledge in a Neural Network
  • Scientific benchmarking of parallel computing systems: twelve ways to tell the masses when reporting performance results
  • LoRA: Low-Rank Adaptation of Large Language Models
  • Efficient multimodal large language models: A survey
  • Implications of privacy regulations on video surveillance systems
  • H.; Moshtaghi, M.; Yu, D.; Liu, Z.; Främling, K.; and Holmström, J. 2024 (opens arXiv in a new tab)
  • H.; Tetik, M.; Liu, Z.; Korhonen, P.; and Holmström, J. 2023
  • An integrated yolo and vlm system for fire detection in enclosed environments
  • Sequence-level knowledge distillation
  • Enhancing User Safety: Context-Aware Detection of Offensive Query-Ad Pairs in Multimodal Search Advertising
  • A fire alarm judgment method using multiple smoke alarms based on Bayesian estimation
  • Improved baselines with visual instruction tuning
  • Visual instruction tuning
  • Deep Learning based method for Fire Detection
  • Detectiumfire: A comprehensive multi-modal dataset bridging vision and language for fire understanding
  • Llava-sco: Teach vision language models to self-correct
  • Performance of New Smoke Alarms and Aerosol Measurements for a Range of Nuisance Cooking Sources in a Mock Kitchen
  • Smokebench: Evaluating multimodal large language models for wildfire smoke detection
  • Learning transferable visual models from natural language supervision
  • 679 of the European Parliament and of the Council of 27 April 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing Directive 95/46/EC (General Data Protection Regulation)
  • Advancing early wildfire detection: Integration of vision language models with unmanned aerial vehicle remote sensing for enhanced situational awareness
  • Llava-mod: Making llava tiny via moe-knowledge distillation
  • Gemma: Open Models Based on Gemini Research and Technology
  • A.; Gabriel, J.; Zhu, J.; Tuzel, O.; and Ranjan, A. 2023
  • A.; Pouransari, H.; Faghri, F.; Vemulapalli, R.; and Tuzel, O. 2024
  • Qwen3 Technical Report
  • Across multiple VLM families and model scales, our experiments show that compact students preserve most of their teachers' fire-understanding capability, while increasing student size provides only limited additional benefit
  • Other safety-critical and resource-constrained applications of VLMs face the same challenge of preserving domain-specific reasoning while satisfying strict deployment constraints
  • a vision encoder, a vision-language (VL) adaptor, and a large language model (LLM)
  • We consider two vision encoders in our experiments
  • Following LLaVA-MoD (Shu et al. 2025), we implement the adaptor as a two-layer MLP with a GELU activation
  • For the teacher models, we consider Qwen2.5-7B-Instruct, Qwen3-8B (Yang et al. 2025), Llama-3.1-8B-Instruct (Grattafiori et al. 2024), and Gemma-2-9B-IT (Team et al. 2024)
  • We retain single-turn English examples associated with COCO train2017 or Visual Genome images and group them according to instruction type
  • We use the official training split for fine-tuning and reserve the validation split for evaluation
  • Please provide all bounding box coordinates for regions with visible fire or flame
  • Carefully analyze the image for signs of fire or smoke
  • Assess whether this is a fire incident or a non-fire scene
  • Removing the cross-entropy term $\mathcal{L}_{CE}$ leaves burning-object, environment, and severity accuracy largely unchanged and, in many cases, even nominally improves performance
  • >Teacher</td><td rowspan=
  • You are able to understand
  • For Qwen3 and Llama-3.2, {system} denotes the system message specified in the text
  • We therefore report them primarily to characterize the deployment behavior of the lightweight vision encoder under the available runtime
  • Each inference request contains a single previously unseen image together with the prompt corresponding to the fire-understanding task
  • We therefore report their measurements for reference only
  • The results reveal more clearly how quantization changes the prediction behavior of the distilled students
  • Among the CLIP-based students, the four models with 1.5B parameters or fewer produce, on average, 2.7 additional false alarms after export, whereas the four models with 2B parameters or more produce 8.8 additional false alarms