Skip to main content
QUICK REVIEW

[논문 리뷰] Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs

Abhay Sheshadri, Aidan Ewart|arXiv (Cornell University)|2024. 07. 22.
Adversarial Robustness in Machine LearningComputer Science인용 수 3
한 줄 요약

이 논문은 특정 잠재 활성화를 훼손하여 피인성 훈련 중에 바람직하지 않은 출력을 유도함으로써 지속적인 해로운 행동에 대한 LLM의 강건성을 향상시키는 타겟팅된 잠재 적대적 훈련(LAT)을 소개한다. 이 방법은 계산 자원의 최소한의 희생으로 재정의, 백도어 제거 및 지식 무화에 대한 방어력을 크게 향상시키며, R2D2 및 DPO와 같은 강력한 기준선을 여러 설정에서 능가한다.

ABSTRACT

Large language models (LLMs) can often be made to behave in undesirable ways that they are explicitly fine-tuned not to. For example, the LLM red-teaming literature has produced a wide variety of 'jailbreaking' techniques to elicit harmful text from models that were fine-tuned to be harmless. Recent work on red-teaming, model editing, and interpretability suggests that this challenge stems from how (adversarial) fine-tuning largely serves to suppress rather than remove undesirable capabilities from LLMs. Prior work has introduced latent adversarial training (LAT) as a way to improve robustness to broad classes of failures. These prior works have considered untargeted latent space attacks where the adversary perturbs latent activations to maximize loss on examples of desirable behavior. Untargeted LAT can provide a generic type of robustness but does not leverage information about specific failure modes. Here, we experiment with targeted LAT where the adversary seeks to minimize loss on a specific competing task. We find that it can augment a wide variety of state-of-the-art methods. First, we use targeted LAT to improve robustness to jailbreaks, outperforming a strong R2D2 baseline with orders of magnitude less compute. Second, we use it to more effectively remove backdoors with no knowledge of the trigger. Finally, we use it to more effectively unlearn knowledge for specific undesirable tasks in a way that is also more robust to re-learning. Overall, our results suggest that targeted LAT can be an effective tool for defending against harmful behaviors from LLMs.

연구 동기 및 목표

  • 표준 훈련 및 적대적 훈련으로도 저항하는 지속적인 해로운 행동 문제를 해결하기 위해.
  • 표준 작업 성능을 희생시키지 않고 재정의, 백도어 및 원하지 않는 지식에 대한 강건성을 향상시키기 위해.
  • 해로운 행동을 담당하는 신경 회로를 더 효과적으로 제거하기 위해 특정 잠재 표현을 타겟팅하는 방법을 개발하기 위해.
  • 타겟팅된 LAT가 기존 최첨단 정렬 및 안전 기법과 조합되어 향상될 수 있음을 보여주기 위해.
  • 이전에 무화된 지식을 다시 학습할 위험을 줄여 장기적인 강건성을 향상시키기 위해.

제안 방법

  • 이 방법은 피인성 훈련 중 특정 실패 모드(예: 해로운 응답, 백도어 트리거)를 유도하기 위해 특정 잠재 공간의 흐름을 훼손한다.
  • 훼손은 LLM의 트랜스포머 레이어의 잔차 스트림에 적용되며, 바람직하지 않은 행동과 관련된 잠재 표현을 타겟팅한다.
  • 이러한 적대적 잠재 훼손 조건 하에서 모델을 타겟 작업의 손실 최소화를 위해 훈련함으로써 특정 실패 모드에 대한 강건성을 강화한다.
  • 이 접근법은 거부 훈련, DPO, WHP, 기울기 상승 및 RMU 무화와 같은 기존 방법과 호환되며 이를 향상시킨다.
  • 효율적인 훈련을 위해 저차원 적응(LoRA)을 사용하며, 최적의 성능을 얻기 위해 RMU 활성화 매칭 레이어 바로 앞의 레이어에 공격을 적용한다.
  • 이 방법은 세 가지 작업에서 평가된다: 재정의 저항력, 트리거 접근 권한 없이 백도어 제거, 특정 지식의 무화.
Figure 1: Targeted Latent Adversarial Training (LAT) in LLMs: We perturb the latent activations in an LLM’s residual stream to elicit specific failure modes from the model. Then, we fine-tune LLMs on the target task under these perturbations. We use this approach to improve robustness to jailbreaks
Figure 1: Targeted Latent Adversarial Training (LAT) in LLMs: We perturb the latent activations in an LLM’s residual stream to elicit specific failure modes from the model. Then, we fine-tune LLMs on the target task under these perturbations. We use this approach to improve robustness to jailbreaks

실험 결과

연구 질문

  • RQ1타겟팅된 LAT는 R2D2와 유사한 기존 방법보다 훨씬 적은 계산 자원으로 재정의 저항력을 더 효과적으로 향상시킬 수 있는가?
  • RQ2트리거가 알려져 있지 않고 트리거 패턴이 명시적으로 제공되지 않은 상황에서 타겟팅된 LAT는 효과적인 백도어 제거를 가능하게 하는가?
  • RQ3타겟팅된 LAT는 지식 무화 방법의 강건성을 향상시켜 이전에 무화된 지식을 다시 학습할 가능성을 줄일 수 있는가?
  • RQ4비타겟팅 LAT 및 표준 적대적 훈련과 비교해 타겟팅된 LAT는 지속적인 해로운 행동을 완화하는 데 성능과 효율성 면에서 어떻게 다른가?
  • RQ5타겟팅된 LAT는 안전성을 향상시키는 동안 표준 비적대적 작업에서의 모델 성능을 유지하는가?

주요 결과

  • 타겟팅된 LAT는 R2D2 기준선보다 계산 자원을 수 개의 주기 이상 덜 사용하면서도 재정의 저항력에서 뛰어난 샘플 효율성을 보이며 승리한다.
  • 이 방법은 트리거가 알려져 있거나 약간의 설명만 있을 때조차도 백도어를 성공적으로 제거하여 이전 연구에서 지적된 '잠복 에이전트' 문제를 해결한다.
  • 타겟팅된 LAT는 WHP, 기울기 상승 및 RMU와 같은 지식 무화 방법의 강건성을 향상시켜 이전에 무화된 지식을 다시 학습할 필요가 있는 샘플 수를 크게 줄인다.
  • 이 방법은 표준 비적대적 작업에서 강력한 성능을 유지하며, 일반적인 모델 능력과의 상충관계가 없음을 시사한다.
  • RMU 활성화 매칭 레이어 바로 앞의 레이어에 잠재 훼손을 적용할 때 가장 큰 향상이 이루어지며, 이는 최적의 레이어 선택이 핵심임을 시사한다.
  • 이 방법은 여러 기존 정렬 기법과 호환되며 이를 향상시켜 안전성 및 정렬 작업 전반에 걸쳐 넓은 적용 가능성을 입증한다.
Latent Adversarial Training Improves Robustness to Persistent Harmful Behaviors in LLMs

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.