paper-with-me

홈 › Papers

Language Models are Homer Simpson! Safety Re-Alignment of Fine-tuned Language Models through Task Arithmetic

2024-02-19 · Rishabh Bhardwaj, Do Duc Anh, Soujanya Poria

Aligned language models face a significant limitation as their fine-tuning often results in compromised safety. To tackle this, we propose a simple method RESTA that performs LLM safety realignment. RESTA stands for REstoring Safety through Task Arithmetic. At its core, it involves a simple arithmetic addition of a safety vector to the weights of the compromised model. We demonstrate the effectiveness of RESTA in both parameter-efficient and full fine-tuning, covering a wide range of downstream tasks, including instruction following in Chinese, English, and Hindi, as well as problem-solving capabilities in Code and Math. We also showcase the generalizability of RESTA on three existing safety evaluation benchmarks and a multilingual benchmark dataset proposed as a part of this work, consisting of 550 harmful questions covering 11 categories, each with 5 sub-categories of harm. Overall, RESTA decreases the harmfulness of the compromised model from 18.6% to 5.1% and from 9.2% to 1.5% in parameter-efficient and full fine-tuning, respectively, while maintaining most of the model's performance on the task. We release the source codes at: https://github.com/declare-lab/resta.

📄 PDF Abstract BibTeX arXiv:2402.11746

Code (3)

declare-lab/resta 공식 구현 pytorch
hiyouga/llama-factory 공식 구현 pytorch
declare-lab/red-instruct pytorch

Tasks

Instruction FollowingMathTask Arithmetic

Similar Papers 제목 키워드 기반

Orthogonal Model Merging

2026-02-05 · Sihan Yang, Kexuan Shi, Weiyang Liu arxiv

Merging finetuned Large Language Models (LLMs) has become increasingly important for integrating diverse capabilities into a single unified model. However, prevailing model merging methods rely on linear arithmetic in Eu…

SimpsonsVQA: Enhancing Inquiry-Based Learning with a Tailored Dataset

2024-10-30 · Ngoc Dung Huynh, Mohamed Reda Bouadjenek, Sunil Aryal, Imran Razzak 외

Visual Question Answering (VQA) has emerged as a promising area of research to develop AI-based systems for enabling interactive and immersive learning. Numerous VQA datasets have been introduced to facilitate various ta…

Question AnsweringVisual Question AnsweringVisual Question Answering (VQA)

Resolution of Simpson's paradox via the common cause principle

2024-03-01 · A. Hovhannisyan, A. E. Allahverdyan

Simpson's paradox is an obstacle to establishing a probabilistic association between two events $a_1$ and $a_2$, given the third (lurking) random variable $B$. We focus on scenarios when the random variables $A$ (which c…

valid

Homer: Understanding Long-form Videos with Hierarchical Memory and Agentic Reasoning

2026-07-01 · Yixin Ji, Fanghua Ye, Juntao Li, Bo Zhao 외 arxiv

Multimodal large language models excel on short clips but struggle on hour-long videos in an online setting, where frames are processed incrementally under limited memory. Existing online methods either retain compact vi…

ML-KFHE: Multi-label ensemble classification algorithm exploiting sensor fusion properties of the Kalman filter

2019-04-23 · Arjun Pakrashi, Brian Mac Namee

Despite the success of ensemble classification methods in multi-class classification problems, ensemble methods based on approaches other than bagging have not been widely explored for multi-label classification problems…

General ClassificationMulti-class ClassificationMulti-Label ClassificationMUlTI-LABEL-ClASSIFICATION+1