Contrastive Instruction Tuning

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yan, Tianyi Lorena, Wang, Fei, Huang, James Y., Zhou, Wenxuan, Yin, Fan, Galstyan, Aram, Yin, Wenpeng, Chen, Muhao
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866909217966784512
author Yan, Tianyi Lorena
Wang, Fei
Huang, James Y.
Zhou, Wenxuan
Yin, Fan
Galstyan, Aram
Yin, Wenpeng
Chen, Muhao
author_facet Yan, Tianyi Lorena
Wang, Fei
Huang, James Y.
Zhou, Wenxuan
Yin, Fan
Galstyan, Aram
Yin, Wenpeng
Chen, Muhao
contents Instruction tuning has been used as a promising approach to improve the performance of large language models (LLMs) on unseen tasks. However, current LLMs exhibit limited robustness to unseen instructions, generating inconsistent outputs when the same instruction is phrased with slightly varied forms or language styles. This behavior indicates LLMs' lack of robustness to textual variations and generalizability to unseen instructions, potentially leading to trustworthiness issues. Accordingly, we propose Contrastive Instruction Tuning, which maximizes the similarity between the hidden representations of semantically equivalent instruction-instance pairs while minimizing the similarity between semantically different ones. To facilitate this approach, we augment the existing FLAN collection by paraphrasing task instructions. Experiments on the PromptBench benchmark show that CoIN consistently improves LLMs' robustness to unseen instructions with variations across character, word, sentence, and semantic levels by an average of +2.5% in accuracy. Code is available at https://github.com/luka-group/CoIN.
format Preprint
id arxiv_https___arxiv_org_abs_2402_11138
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Contrastive Instruction Tuning
Yan, Tianyi Lorena
Wang, Fei
Huang, James Y.
Zhou, Wenxuan
Yin, Fan
Galstyan, Aram
Yin, Wenpeng
Chen, Muhao
Computation and Language
Artificial Intelligence
Machine Learning
Instruction tuning has been used as a promising approach to improve the performance of large language models (LLMs) on unseen tasks. However, current LLMs exhibit limited robustness to unseen instructions, generating inconsistent outputs when the same instruction is phrased with slightly varied forms or language styles. This behavior indicates LLMs' lack of robustness to textual variations and generalizability to unseen instructions, potentially leading to trustworthiness issues. Accordingly, we propose Contrastive Instruction Tuning, which maximizes the similarity between the hidden representations of semantically equivalent instruction-instance pairs while minimizing the similarity between semantically different ones. To facilitate this approach, we augment the existing FLAN collection by paraphrasing task instructions. Experiments on the PromptBench benchmark show that CoIN consistently improves LLMs' robustness to unseen instructions with variations across character, word, sentence, and semantic levels by an average of +2.5% in accuracy. Code is available at https://github.com/luka-group/CoIN.
title Contrastive Instruction Tuning
topic Computation and Language
Artificial Intelligence
Machine Learning
url https://arxiv.org/abs/2402.11138