← Lab /Security & privacy

LoRA-tuned 1.1B LLM reaches 68% threat classification accuracy on SMB log entries

Fine-tuning TinyLlama with LoRA yields 68% classification accuracy and 58% severity accuracy on held-out SOC logs

Security & privacy arXiv 29 Apr 2026 Method Prototype evidence

Published as “OpenSOC-AI: Democratizing Security Operations with Parameter Efficient LLM Log Analysis”

Why it matters

The approach makes AI-augmented threat detection feasible for resource-constrained SMBs by delivering usable accuracy with a cheap, locally-run model.

Summary

Fine-tuning a 1.1 B-parameter TinyLlama model with LoRA on just 450 security-log examples raises threat classification accuracy from 0% to 68% and severity accuracy from 28% to 58%, yielding an F1 of 0.68. The evidence comes from a small evaluation set (≈50 logs) and shows strong gains for a locally-deployable, low-cost system, though performance on fine-grained sub-types and MITRE ID extraction remains limited.

What they found 2

  1. Fine-tuned model reaches 68% threat classification accuracy, 71% precision, 66% recall, and 0.68 F1.

    “After fine-tuning, the model reaches 68% threat classification accuracy, 71% precision, 66% recall, and an F1 score of 0.68.”

  2. Severity accuracy improves from 28% to 58% after fine-tuning.

    “Severity accuracy improved from 28% to 58%.”

Caveats 3

  • The most common error modes were predicting the correct threat category but the wrong subtype (for example, “SQL Injection” when the ground truth was “SQL Injection Union-Based”), and confusion between semantically similar classes such as Path Traversal and Directory Traversal.
  • MITRE ID evaluation is excluded from primary metrics due to limitations in the extraction pipeline. The regex pattern used failed to reliably match technique identifiers across the variation in model output formats, producing unreliable scores for both models.
  • These patterns suggest the model has learned the high level threat taxonomy well but struggles to discriminate fine grained subtypes from 450 training examples, a limitation that should improve with a larger training set.

What’s new here 4

  • Applies LoRA and 4-bit quantization to a 1.1 B-parameter model for on-premise SOC log analysis, avoiding costly API usage.
  • Achieves high threat classification accuracy with only 450 domain-specific training examples.
  • Provides a fully open-source stack: dataset, training scripts, adapter weights, and a web UI.
  • Demonstrates that commodity hardware (single T4 GPU) can run the system with acceptable latency for SMBs.