paper-with-me

Papers

On the Loss of Context-awareness in General Instruction Fine-tuning

2024-11-05 · Yihan Wang, Andrew Bai, Nanyun Peng, Cho-Jui Hsieh

Pre-trained Large Language Models (LLMs) require post-training methods such as supervised fine-tuning (SFT) on instruction-response pairs to enable instruction following. However, this process can potentially harm existing capabilities learned during pre-training. In this paper, we investigate the loss of context awareness after SFT, where context awareness is defined as the ability to extract and understand information from user-provided context and respond accordingly. We identify and demonstrate that the loss of context awareness, particularly in open-source models, occurs in instruction fine-tuned LLMs when the chat template is applied to input prompts. We identify that the performance decline is associated with a bias toward different roles learned during conversational instruction fine-tuning. We demonstrate this correlation by visualizing changes in attention allocation after the chat template is applied and manually steering the attention heads. The bias can be learned from training examples that align with the model's internal knowledge and rely less on the user-provided context to generate correct responses. Based on these observations, we propose a metric to identify context-dependent examples from general instruction fine-tuning datasets. We then apply conditional instruction fine-tuning with a context-dependency indicator, enabling the model to preserve context awareness after SFT. Empirical experiments on four context-dependent downstream tasks and three pre-trained LLMs of different sizes show that our method effectively mitigates the loss of context awareness without compromising general instruction-following capabilities.

📄 PDF Abstract BibTeX arXiv:2411.02688

Code (1)

YihanWang617/context_awareness 공식 구현 pytorch

Tasks

BenchmarkingInstruction Following

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음
ALIGN In the ALIGN method, visual and language representations are jointly trained from noisy image alt-text data. The image and text encoders are learned via contrastive loss…
SFT Shrink and Fine-Tune, or SFT, is a type of distillation that avoids explicit distillation by copying parameters to a student student model and then fine-tuning.…
Focus 설명 없음

Similar Papers 제목 키워드 기반

Span Modeling for Idiomaticity and Figurative Language Detection with Span Contrastive Loss

2026-03-24 · Blake Matheny, Phuong Minh Nguyen, Minh Le Nguyen arxiv

The category of figurative language contains many varieties, some of which are non-compositional in nature. This type of phrase or multi-word expression (MWE) includes idioms, which represent a single meaning that does n…

Learning to Localize Objects Improves Spatial Reasoning in Visual-LLMs

2024-04-11 · CVPR 2024 1 · Kanchana Ranasinghe, Satya Narayan Shukla, Omid Poursaeed, Michael S. Ryoo 외

Integration of Large Language Models (LLMs) into visual domain tasks, resulting in visual-LLMs (V-LLMs), has enabled exceptional performance in vision-language tasks, particularly for visual question answering (VQA). How…

DescriptiveHallucinationQuestion AnsweringSpatial Reasoning+4

Neurosymbolic AI for Enhancing Instructability in Generative AI

2024-07-26 · Amit Sheth, Vishal Pallagani, Kaushik Roy

Generative AI, especially via Large Language Models (LLMs), has transformed content creation across text, images, and music, showcasing capabilities in following instructions through prompting, largely facilitated by ins…

Attention Instruction: Amplifying Attention in the Middle via Prompting

2024-06-24 · Meiru Zhang, Zaiqiao Meng, Nigel Collier

The context window of large language models has been extended to 128k tokens or more. However, language models still suffer from position bias and have difficulty in accessing and using the middle part of the context due…

PositionQuestion AnsweringRAG

3D CAVLA: Leveraging Depth and 3D Context to Generalize Vision Language Action Models for Unseen Tasks

2025-05-09 · Vineet Bhat, Yu-Hsiang Lan, Prashanth Krishnamurthy, Ramesh Karri 외

Robotic manipulation in 3D requires learning an $N$ degree-of-freedom joint space trajectory of a robot manipulator. Robots must possess semantic and visual perception abilities to transform real-world mappings of their …

Vision-Language-Action