Jamal Boussouf

Dr. Jamal Boussouf


Research Focus & Metrics

Academic Career Length

4Years (2023-Present)

(Calculated once Scilit publication data is synced: current year − year of first publication + 1)

Representative Publications

View All Publications
2 November 2023 in EDPACS
Verified
Journal Article
Closed access
MFMohamed Fartitchou
Mohamed Fartitchou
Jamal BoussoufJamal Boussouf
Jamal Boussouf
KMKhalid El Makkaoui
Khalid El Makkaoui
Yassine MalehYassine Maleh
Yassine Maleh
ZAZakaria El Allali
Zakaria El Allali

31 August 2026 in Preprints.org
Verified
Preprint
Open access
PDF file
Jamal BoussoufJamal Boussouf
Jamal Boussouf
ISMAIL LAMAAKALISMAIL LAMAAKAL
ISMAIL LAMAAKAL
IOIbrahim Ouahbi
Ibrahim Ouahbi
KMKhalid El Makkaoui
Khalid El Makkaoui
MZMounia Zaydi
Mounia Zaydi
BZBelhassen Zouari
Belhassen Zouari
Backdoor attacks pose a serious threat to small language models (SLMs) because compromised models can behave normally on benign inputs while producing attacker-specified outputs when a hidden trigger is activated. Existing defenses commonly require model retraining, operate only before deployment, rely on input-level signals, or incur excessive inference overhead. This paper presents AEGIS (Activation Evaluation and Guardrail for Inference Security), a non-invasive runtime framework for detecting backdoor-induced anomalies in transformer representations. AEGIS dynamically monitors equidistant internal layers, mean-pools and concatenates their hidden states, and compresses the resulting high-dimensional representation into a 64-dimensional latent space. A hybrid compression mechanism uses zero-shot principal component analysis for predominantly linear text representations and a lightweight autoencoder for nonlinear or multimodal representations. Detection is then performed entirely on the GPU using cosine distance from a centroid calibrated on clean data, without modifying or retraining the protected model. We evaluate AEGIS across Mistral-7B, Qwen2.5-7B, a 4-bit QLoRA-backdoored Qwen2.5-1.5B model, and a BadNets-backdoored Vision Transformer, covering simulated latent and PEFT-style attacks, genuine fine-tuned backdoors, FP16 inference, and 4-bit NF4 quantization. Across seven experimental scenarios, AEGIS achieves AUROC values between 0.95 and 1.00, true-positive rates between 86% and 100%, and detection latency between 0.47 and 2.40 ms. It obtains AUROC = 1.00 and 100% true-positive rate against the genuinely fine-tuned QLoRA backdoor, while achieving AUROC=0.997 against the fine-tuned visual BadNets attack. Under 4-bit quantization, it retains AUROC=0.95 with 1.50 ms latency and a 4.52 GB memory footprint. These results demonstrate that GPU-native latent-space monitoring can provide effective, retraining-free backdoor detection for real-time transformer inference.

2 October 2026 in Technologies
Verified
Journal Article
Open access
PDF file
Jamal BoussoufJamal Boussouf
Jamal Boussouf
ISMAIL LAMAAKALISMAIL LAMAAKAL
ISMAIL LAMAAKAL
IOIbrahim Ouahbi
Ibrahim Ouahbi
KMKhalid El Makkaoui
Khalid El Makkaoui
MZMounia Zaydi
Mounia Zaydi
BZBelhassen Zouari
Belhassen Zouari
Backdoor attacks pose a serious threat to small language models (SLMs) because compromised models can behave normally on benign inputs while producing attacker-specified outputs when a hidden trigger is activated. Existing defenses commonly require model retraining, operate only before deployment, rely on input-level signals, or incur excessive inference overhead. This paper presents AEGIS (Activation Evaluation and Guardrail for Inference Security), a non-invasive runtime framework for detecting backdoor-induced anomalies in transformer representations. AEGIS dynamically monitors equidistant internal layers, mean-pools and concatenates their hidden states, and compresses the resulting high-dimensional representation into a 64-dimensional latent space. A hybrid compression mechanism uses zero-shot principal component analysis for predominantly linear text representations and a lightweight autoencoder for nonlinear or multimodal representations. Detection is then performed entirely on the GPU using cosine distance from a centroid calibrated on clean data, without modifying or retraining the protected model. We evaluate AEGIS across Mistral-7B, Qwen2.5-7B, a 4-bit QLoRA-backdoored Qwen2.5-1.5B model, and a BadNets-backdoored Vision Transformer, covering simulated latent and PEFT-style attacks, genuine fine-tuned backdoors, FP16 inference, and 4-bit NF4 quantization. Across the main optimized shield-overhead experiments, AEGIS achieves AUROC values between 0.95 and 1.00, true-positive rates between 86% and 100%, and prefill-stage detection latency between 0.47 and 2.40 ms. In the dedicated T4 deployment stress tests, which measure the full guardrail overhead under edge and real QLoRA settings, latency ranges from 5.20 to 7.77 ms with combined model-plus-guardrail memory between 2.59 and 4.02 GB. AEGIS obtains AUROC = 1.00 and 100% true-positive rate against the genuinely fine-tuned QLoRA backdoor, while achieving AUROC = 0.997 against the fine-tuned visual BadNets attack. Under 4-bit quantization, it retains an AUROC = 0.95 with a 4.02 GB memory footprint. These results show that a compact GPU-native implementation of activation-space monitoring can provide effective, retraining-free backdoor detection for real-time transformer inference.