# Poster 28050

- Kind: Poster
- Talk page and recording: https://iclr.cc/virtual/2025/poster/28050

> Transcript of the talk's recording (session_asr), made by speech recognition or taken from the host's captions. It may contain errors. The words are the speakers'; listen to the recording on the talk's page before quoting it.

We are considering about RRM safety. We don't want the RRM to help with some harmful answer when it is triggered by the user with a harmful question. To achieve this, go service provider for example the OpenAI will need to conduct safety alignment on the RRMs. However, service provider once more they open up a fine-tuning service which basically allow the user to upload customized data and the service provider will fine-tune the safety alignment model using the provided fine-tuned data.
This vital link service poses human safety concern for the service provider because the user data are not always helpful and sometimes can be harmful. So the more the vital link data would have a safety alignment compromise.
To formally characterize the attack scenario, we introduce the threat model here. Basically, we assume there are a percentage of human harmful data missing in the user data, and a service provider can control the alignment and filtering process to conduct defense, and the service provider maintain a safety alignment data set and harmful data sets for defense. So the harmful data set has the distribution of the harmful data.
And the goal of the defense is to help service providers to mitigate this risk.
Before we propose our solution, we first present some experimental results. We are concerned on three metrics, harmful score, harmful training loss and harmful testing loss, which respectively measure the percentage of models answered that are harmful, the loss over the harmful data used for frightening and the loss over unseen harmful data. We measure these statistics after frightening the model on pure harmful data. From the first speaker, we show that the harmful score is increasing very fast with more frightening steps.
training step which means the model start to exhibit harmful behavior. From the second figure we show that the harmful training loss is decreasing very fast with more fine-tuning steps. This seems to indicate that the model is learning fast on harmful data. From the last figure we show that the harmful training loss is decreasing in the same term with the harmful training loss which means that the harmful knowledge can be generalized to other unseen data.
To figure out what leads to the above phenomena, let's look at the very fundamental of the rule. Our conjecture is that when the stochastic gradient is taken over a harmful sample, the model's harmful training loss will be reduced and the model learns the knowledge from the harmful sample, and therefore resulting in the model's harmful behavior. Let's call this unwanted gradient update as harmful perturbation.
Next, we try to design a solution to mitigate the harmful perturbation. Our idea is that maybe we can produce an aligned model that is low-burst with such harmful perturbation. Specifically, even though the models take the harmful perturbation, the aligned model cannot learn any harmful knowledge. We pull the curve of the ideal model in the figure. As long as the harmful training loss of the aligned model cannot be sufficiently reduced, even though it takes sufficient tightening steps on harmful data.
Our goal is to produce such a model with the ideal case.
So how to produce such a align model? We can change the way how we align the model. Specifically, we modify the training objective in the alignment process, we introduce a regularization term in the web spot, which measure the gap between the align model and the model after one step of harmful perturbation. The figure on the right show how the gap is measured and intuitively if the gap is minimized, then basically the harmful training loss curve will become smoother and potentially help us to reach the ideal case.
case. So given the optimization, we need to find a way to solve it. So the first equation shows the update rule of the problem and however we notice that there is a second order term exists in the update rule. So basically very computational expensive. So therefore we want to straightforward in the final update rule.
Next, we want to showcase a few results of boosted method. As shown by adopting booster, we are able to keep a low level of harmful score and we see that the harmful training loss is reducing very slowly and it can generalize rather unseen harmful question as well. The next result show that booster perform well with different base models.
And of note, there are actually 13 papers on the topics of humble fighting and attack defense that appear in ICLR 2025. So please consider to check them out if you're interested. Thank you very much. This is all for my talk.
