Granite 4.2 8B ART Classify aLoRA
MITRE ATT&CK Technique Classification Adapter
2 min read
An adapter for the ibm-granite/granite-4.2-8b language model, trained to identify attack techniques from the MITRE ATT&CK knowledge base based on a list of recorded commands and actions. The model outputs the technique ID and name along with step-by-step reasoning (chain-of-thought). The release uses the aLoRA method (a LoRA variant with an increased rank for deeper weight adaptation) by author danielohayon and is compatible with the standard peft library. Unlike the base model, which barely handles this task, the adapter raises exact match accuracy from 3.4% to 44.2%. This solution will be useful for information security researchers and specialists studying LLM fine-tuning for cybersecurity tasks.
Key features
- Built on top of the 8-billion
ibm-granite/granite-4.2-8bmodel with adapter rankr=64andalpha=128. - Generates not only the MITRE ATT&CK technique label and name, but also a reasoning chain before the response.
- Trained with support for a context of up to 12,228 tokens, allowing long command logs to be fed in.
- Serializes as a standard
peftadapter and runs using standardtransformerstools.
What you can do
- Classify previously collected command traces and action logs for compliance with MITRE ATT&CK techniques.
- Compare the effectiveness of different fine-tuning methods (LoRA, aLoRA, and shadow-residual) on a unified cybersecurity benchmark.
- Use as a research prototype for labeling incidents with an explanation of the technique selection logic.
Example
from peft import PeftModel
from transformers import AutoModelForCausalLM, AutoTokenizer
base = AutoModelForCausalLM.from_pretrained("ibm-granite/granite-4.2-8b", dtype="bfloat16", device_map="auto")
tok = AutoTokenizer.from_pretrained("danielohayon/granite-4.2-8b-art-classify-alora")
model = PeftModel.from_pretrained(base, "danielohayon/granite-4.2-8b-art-classify-alora")
Read more
DetailsART MITRE classify benchmark (147 examples, 97 techniques, greedy decoding): accuracy with partial credit is 0.483 (base is 0.048, standard LoRA is 0.415), exact match is 0.442 (base is 0.034).
Training: 10 epochs, learning rate 4e-5, cosine schedule, NEFTune 5, effective batch size 24, bf16 precision.
Limitations: intended for cybersecurity research, not for use as a production threat detection system.










Comments