Saved in:
Bibliographic Details
Main Authors: Tang, Xinyu, Lv, Zhihao, Cheng, Xiaoxue, Li, Junyi, Zhao, Wayne Xin, Wen, Zujie, Zhang, Zhiqiang, Zhou, Jun
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.13236
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916849170513920
author Tang, Xinyu
Lv, Zhihao
Cheng, Xiaoxue
Li, Junyi
Zhao, Wayne Xin
Wen, Zujie
Zhang, Zhiqiang
Zhou, Jun
author_facet Tang, Xinyu
Lv, Zhihao
Cheng, Xiaoxue
Li, Junyi
Zhao, Wayne Xin
Wen, Zujie
Zhang, Zhiqiang
Zhou, Jun
contents Large language models (LLMs) have shown impressive abilities in leveraging pretrained knowledge through prompting, but they often struggle with unseen tasks, particularly in data-scarce scenarios. While cross-task in-context learning offers a direct solution for transferring knowledge across tasks, it still faces critical challenges in terms of robustness, scalability, and efficiency. In this paper, we investigate whether cross-task transfer can be achieved via latent space steering without parameter updates or input expansion. Through an analysis of activation patterns in the latent space of LLMs, we observe that the enhanced activations induced by in-context examples have consistent patterns across different tasks. Inspired by these findings, we propose CAST, a novel Cross-task Activation Steering Transfer framework that enables effective transfer by manipulating the model's internal activation states. Our approach first selects influential and diverse samples from high-resource tasks, then utilizes their contrastive representation-enhanced activations to adapt LLMs to low-resource tasks. Extensive experiments across both cross-domain and cross-lingual transfer settings show that our method outperforms competitive baselines and demonstrates superior scalability and lower computational costs.
format Preprint
id arxiv_https___arxiv_org_abs_2507_13236
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Enhancing Cross-task Transfer of Large Language Models via Activation Steering
Tang, Xinyu
Lv, Zhihao
Cheng, Xiaoxue
Li, Junyi
Zhao, Wayne Xin
Wen, Zujie
Zhang, Zhiqiang
Zhou, Jun
Computation and Language
Large language models (LLMs) have shown impressive abilities in leveraging pretrained knowledge through prompting, but they often struggle with unseen tasks, particularly in data-scarce scenarios. While cross-task in-context learning offers a direct solution for transferring knowledge across tasks, it still faces critical challenges in terms of robustness, scalability, and efficiency. In this paper, we investigate whether cross-task transfer can be achieved via latent space steering without parameter updates or input expansion. Through an analysis of activation patterns in the latent space of LLMs, we observe that the enhanced activations induced by in-context examples have consistent patterns across different tasks. Inspired by these findings, we propose CAST, a novel Cross-task Activation Steering Transfer framework that enables effective transfer by manipulating the model's internal activation states. Our approach first selects influential and diverse samples from high-resource tasks, then utilizes their contrastive representation-enhanced activations to adapt LLMs to low-resource tasks. Extensive experiments across both cross-domain and cross-lingual transfer settings show that our method outperforms competitive baselines and demonstrates superior scalability and lower computational costs.
title Enhancing Cross-task Transfer of Large Language Models via Activation Steering
topic Computation and Language
url https://arxiv.org/abs/2507.13236