Saved in:
Bibliographic Details
Main Authors: Davidson, Guy, Gureckis, Todd M., Lake, Brenden M., Williams, Adina
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2505.12075
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911295730614272
author Davidson, Guy
Gureckis, Todd M.
Lake, Brenden M.
Williams, Adina
author_facet Davidson, Guy
Gureckis, Todd M.
Lake, Brenden M.
Williams, Adina
contents Demonstrations and instructions are two primary approaches for prompting language models to perform in-context learning (ICL) tasks. Do identical tasks elicited in different ways result in similar representations of the task? An improved understanding of task representation mechanisms would offer interpretability insights and may aid in steering models. We study this through \textit{function vectors} (FVs), recently proposed as a mechanism to extract few-shot ICL task representations. We generalize FVs to alternative task presentations, focusing on short textual instruction prompts, and successfully extract instruction function vectors that promote zero-shot task accuracy. We find evidence that demonstration- and instruction-based function vectors leverage different model components, and offer several controls to dissociate their contributions to task performance. Our results suggest that different task promptings forms do not induce a common task representation through FVs but elicit different, partly overlapping mechanisms. Our findings offer principled support to the practice of combining instructions and task demonstrations, imply challenges in universally monitoring task inference across presentation forms, and encourage further examinations of LLM task inference mechanisms.
format Preprint
id arxiv_https___arxiv_org_abs_2505_12075
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Do different prompting methods yield a common task representation in language models?
Davidson, Guy
Gureckis, Todd M.
Lake, Brenden M.
Williams, Adina
Computation and Language
Machine Learning
Demonstrations and instructions are two primary approaches for prompting language models to perform in-context learning (ICL) tasks. Do identical tasks elicited in different ways result in similar representations of the task? An improved understanding of task representation mechanisms would offer interpretability insights and may aid in steering models. We study this through \textit{function vectors} (FVs), recently proposed as a mechanism to extract few-shot ICL task representations. We generalize FVs to alternative task presentations, focusing on short textual instruction prompts, and successfully extract instruction function vectors that promote zero-shot task accuracy. We find evidence that demonstration- and instruction-based function vectors leverage different model components, and offer several controls to dissociate their contributions to task performance. Our results suggest that different task promptings forms do not induce a common task representation through FVs but elicit different, partly overlapping mechanisms. Our findings offer principled support to the practice of combining instructions and task demonstrations, imply challenges in universally monitoring task inference across presentation forms, and encourage further examinations of LLM task inference mechanisms.
title Do different prompting methods yield a common task representation in language models?
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2505.12075