🤖 AI Summary
This study investigates whether compact generative AI (GenAI) language models can match large language models (LLMs) in application behavior understanding—particularly malware detection. We systematically evaluate GenAI models of varying scales on code understanding, behavioral analysis, and classification tasks, using accuracy, precision, recall, and F1-score as metrics. Results show that while compact GenAI models achieve marginally lower overall accuracy than LLMs, they attain competitive performance on critical metrics—especially recall and F1-score—and exhibit substantially faster inference, lower memory footprint, and reduced deployment cost. The primary contribution is empirical evidence that compact GenAI models deliver high discriminative capability and computational efficiency under resource constraints, offering a lightweight, reliable, and deployable alternative for application behavior analysis. Rather than replacing LLMs, these models serve as complementary tools, extending practical applicability to edge and latency-sensitive environments.
📝 Abstract
Generative AI (GenAI) models, particularly large language models (LLMs), have transformed multiple domains, including natural language processing, software analysis, and code understanding. Their ability to analyze and generate code has enabled applications such as source code summarization, behavior analysis, and malware detection. In this study, we systematically evaluate the capabilities of both small and large GenAI language models in understanding application behavior, with a particular focus on malware detection as a representative task. While larger models generally achieve higher overall accuracy, our experiments show that small GenAI models maintain competitive precision and recall, offering substantial advantages in computational efficiency, faster inference, and deployment in resource-constrained environments. We provide a detailed comparison across metrics such as accuracy, precision, recall, and F1-score, highlighting each model's strengths, limitations, and operational feasibility. Our findings demonstrate that small GenAI models can effectively complement large ones, providing a practical balance between performance and resource efficiency in real-world application behavior analysis.