The Geometry of Prompting: Unveiling Distinct Mechanisms of Task Adaptation in Language Models

Artem Kirsanov, Chi-Ning Chou, Kyunghyun Cho, SueYeon Chung
2/11/2025
cs.CL

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

Decoder-only language models have the ability to dynamically switch between various computational tasks based on input prompts. Despite many successful applications of prompting, there is very limited understanding of the internal mechanism behind such flexibility.

Show full abstract

In this work, we investigate how different prompting methods affect the geometry of representations in these models. Employing a framework grounded in statistical physics, we reveal that various prompting techniques, while achieving similar performance, operate through distinct representational mechanisms for task adaptation. Our analysis highlights the critical role of input distribution samples and label semantics in few-shot in-context learning. We also demonstrate evidence of synergistic and interfering interactions between different tasks on the representational level. Our work contributes to the theoretical understanding of large language models and lays the groundwork for developing more effective, representation-aware prompting strategies.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{kirsanov2025geometry,
  title  = {The Geometry of Prompting: Unveiling Distinct Mechanisms of Task Adaptation in Language Models},
  author = {Artem Kirsanov and Chi-Ning Chou and Kyunghyun Cho and SueYeon Chung},
  year   = {2025},
  eprint = {2502.08009},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.08009v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2502.08009.svg)](https://codeofpaper.com/paper/2502.08009)

Discussion