Saved in:
Bibliographic Details
Main Authors: Neill, James O', Subramanian, Santhosh, Lin, Eric, Mugunthan, Vaikkunth
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2504.19333
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916712222294016
author Neill, James O'
Subramanian, Santhosh
Lin, Eric
Mugunthan, Vaikkunth
author_facet Neill, James O'
Subramanian, Santhosh
Lin, Eric
Mugunthan, Vaikkunth
contents The trend towards large language models (LLMs) for guardrailing against undesired behaviors is increasing and has shown promise for censoring user inputs. However, increased latency, memory consumption, hosting expenses and non-structured outputs can make their use prohibitive. In this work, we show that task-specific data generation can lead to fine-tuned classifiers that significantly outperform current state of the art (SoTA) while being orders of magnitude smaller. Secondly, we show that using a single model, \texttt{MultiTaskGuard}, that is pretrained on a large synthetically generated dataset with unique task instructions further improves generalization. Thirdly, our most performant models, \texttt{UniGuard}, are found using our proposed search-based model merging approach that finds an optimal set of parameters to combine single-policy models and multi-policy guardrail models. % On 7 public datasets and 4 guardrail benchmarks we created, our efficient guardrail classifiers improve over the best performing SoTA publicly available LLMs and 3$^{\text{rd}}$ party guardrail APIs in detecting unsafe and safe behaviors by an average F1 score improvement of \textbf{29.92} points over Aegis-LlamaGuard and \textbf{21.62} over \texttt{gpt-4o}, respectively. Lastly, our guardrail synthetic data generation process that uses custom task-specific guardrail poli
format Preprint
id arxiv_https___arxiv_org_abs_2504_19333
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Unified Multi-Task Learning & Model Fusion for Efficient Language Model Guardrailing
Neill, James O'
Subramanian, Santhosh
Lin, Eric
Mugunthan, Vaikkunth
Computation and Language
Artificial Intelligence
Machine Learning
The trend towards large language models (LLMs) for guardrailing against undesired behaviors is increasing and has shown promise for censoring user inputs. However, increased latency, memory consumption, hosting expenses and non-structured outputs can make their use prohibitive. In this work, we show that task-specific data generation can lead to fine-tuned classifiers that significantly outperform current state of the art (SoTA) while being orders of magnitude smaller. Secondly, we show that using a single model, \texttt{MultiTaskGuard}, that is pretrained on a large synthetically generated dataset with unique task instructions further improves generalization. Thirdly, our most performant models, \texttt{UniGuard}, are found using our proposed search-based model merging approach that finds an optimal set of parameters to combine single-policy models and multi-policy guardrail models. % On 7 public datasets and 4 guardrail benchmarks we created, our efficient guardrail classifiers improve over the best performing SoTA publicly available LLMs and 3$^{\text{rd}}$ party guardrail APIs in detecting unsafe and safe behaviors by an average F1 score improvement of \textbf{29.92} points over Aegis-LlamaGuard and \textbf{21.62} over \texttt{gpt-4o}, respectively. Lastly, our guardrail synthetic data generation process that uses custom task-specific guardrail poli
title Unified Multi-Task Learning & Model Fusion for Efficient Language Model Guardrailing
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2504.19333