Year: 2025
Type: dissertation
Abstract: We study how small, fine-tuned generative large language models (LLMs) can moderate free-text search queries for surveillance video systems. Four open models, Llama 3.2 1B, Llama 3.2 3B, Qwen 2.5 0.5B, and 1.5 B, are trained on six subtasks: safety judgement, problem detection, target detection, span detection, safety explanation, and rephrase. The training combines a public toxicity set with about 785 000 synthetic examples that cover EU AI Act problem classes. On a balanced synthetic test set, the generative models match or beat a RoBERTa-Base classifier in safety judgement and show significant gains in the harder problem- and target-detection subtasks; Llama 3.2 1 B lifts macro F1 from 0.56 to 0.72 on target detection. They also show improved performance on span detection and produce short reasons and rephrases, features the classifier cannot offer. On real-world, publicly available, albeit imbalanced data, the results were mixed but still favored the generative LLMs for the more nuanced tasks. Although the generative models need more memory and inference time, their high performance, richer output, and simple prompt interface make them a promising core for an open, transparent moderation pipeline in video search. Key open issues are speed, subtask consistency, and resistance to adversarial text.
Authors: Bakly, Ali, Than, Davy
Institution: Lund University
Language: English
Subfield: Artificial Intelligence
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7055735445
