- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
Harmful fine-tuning is problematic for fine-tuning providers. Inspired by Taylor optimization, the paper proposes that harmful fine-tuning may be alleviated by making harmful gradients having higher cosine similarities with safety gradients. Tcell is such a method that uses meta-optimization to directly optimize for a similar objective. The result model is indeed less prone to short malicious fine-tunings.
Strengths and weaknesses
Strength
- The proposed method is intuitive and outperforms various baselines. Experiments and ablations were throughout. In particular I appreciate Table 13.
Weakness
- As noted by the authors themselves, the method is relatively computational expensive, and it does not work under an open-weight setting since it may be circumvented by large learning rates, for example.
- Minor: the demonstration in 3.3 is not super convincing as the loss function simply amounts to taking normalized gradient steps on harmful and harmless datasets together, i.e. data mixing with gradients clipped.
Questions
- How much degradation was done after the proposed alignment stage? Could you give some simple measurements of capability change before and after that stage?
- Intuitively how does Tcell work? Does it work by making the harmful learning slower or making the harmful learning learn something spurious? Would appreciate a training loss curve comparison in the former case.
Limitations
yes
Paper formatting concerns
no
Final justification
The slightly improved version elevated my concern on efficiency and it seems to be a somewhat surgical edit doable in the final version.
We thank the reviewer for the positive feedback. Below we address your concern:
Tcell indeed requires more computation due to its design. To address the reviewer's concern about overhead, we further design a computation-efficient solution named AcceleratedTcell (shortened as AccTcell).
In order to be computation-efficient, we avoid calculating the gradient of the "gradient alignment regularizer" in each step. Instead, we reuse the gradient of the regularizer from its cached version, and update the cache every τ steps.
Specifically, the update rule of the AccTcell will be gt=∇f(w)+gcache and the cache gradient $g_{cache}= \tilde{\lambda} \left ( \nabla f\left ( \widehat{ w}_t \right ) \cdot I - \nabla f\left ( \tilde{ w}_t\right ) \cdot I \right ) $ is evaluated every τ steps. The evaluation result is shown as follows.
Surprisingly, the result shows that AccTcell can even outperform original Tcell when 1<τ<40. Specifically, AccTcell (τ=20) achieves a harmful score of 0.80 (which is 10.2 lower than Tcell and 36.6 lower than SFT), and more importantly, it only incurs 0.25x more computation time compared to SFT. This is a sharp contrast to Tcell, which requires 2.7x more computation compared to SFT.
We hope that the astounding performance of AccTcell can address your concern about extra system overhead. We also appreciate the reviewer feedback, which inspires us to develop this new algorithm.
Although the open-weight scenario might be a potential extension scenario of Tcell, we first wish to clarify that our paper aims to address harmful fine-tuning in a fine-tuning-as-a-service scenario, in which the fine-tuning learning rate can be reasonably restricted by the service provider (i.e., defender).
However, we acknowledge that, Tcell, similar to other SOTA alignment-stage defenses, indeed breaks when using a higher fine-tuning learning rate, and this hinders its extension to an open-weight setting. The long-term goals of the authors are indeed to design a defense solution that can resist harmful fine-tuning attacks at a very high learning rate, but in reality, it is very challenging to achieve.
During the rebuttal against your W1, we accidentally found that the original Tcell performance could be improved via slightly changing its optimization update rule. This new algorithm, named Accelerated-Tcell (Acc-Tcell) achieves an even lower harmful score (compared to Tcell) in a relatively high learning rate regime (lr=1.5e-6). Please check the following Table.
We believe that the full potential of Tcell has not been fully exploited, and with further refinement on its update rule and data configuration, we might potentially be able to achieve a better performance against high learning rate attacks, ultimately making it applicable in the challenging open-weight model scenario.
Indeed, gMixer in Section 3.3 is designed by taking a normalized gradient step on harmful and harmless datasets together. This can ensure that the gradient similarity is maximized, and we mainly use this result to casually motivate the readers to think why we need to maximize gradient similarity (i.e., align the gradient). Indeed, the motivation study alone may not be super convincing to justify the need for gradient alignment at the alignment stage, and therefore we also use the theoretical interpretation in Section 5.3 for further justification of the benefit of gradient alignment. We hope this clarification can alleviate the reviewer's concern.
In the following table, we show the measurements of harmful score and model general capability (measured with GSM8K and AlpacaEval) change before and after safety alignment. As shown, both Tcell and SFT alignment slightly degrade the model's general capability (as shown in the degradation of GSM8K accuracy and AlpacaEval).
Tcell makes the harmful fine-tuning slower. We show the training loss over harmful data (harmful loss) below. As shown in the table, Tcell model reduces the harmful loss at a slower rate compared to SFT without defense.