potentialpaper

Task identification features causally drive execution features in in-context learning

Anonymous authors

ICLR 2027

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

Abstract. Language models learn patterns from demonstrations in context, but how information at the demonstrations comes to drive the output has not been established. An identification feature for a pattern forms where the pattern is demonstrated (we call these “label tokens”) and drives an execution feature at subsequent locations where the model must continue the pattern (“cue tokens”). We establish two results: 1) an identification and an execution feature together mediate this effect on behavior, and 2) a single affine map shared across patterns relates each identification feature to its execution feature. In simple patterns generated by input-output tasks in GPT-J and Qwen2.5-7B, where the execution feature is the task's function vector, steering the identification feature raises cue-token alignment with the execution feature more than with a generic one, ablating it lowers that alignment, and ablating the execution feature removes the accuracy gained from identification steering. A single affine map fitted on training tasks predicts held-out tasks' execution features from their identification features (R2R^2 of 0.60 and 0.53, versus below zero for a mean predictor). The same pathway appears in a naturalistic setting, in-context learning of coding conventions, with no explicit labels, features at evidence and cue tokens steer and ablate generated style, and identification steering moves the cue-token state toward the execution feature, although the linear map is weaker.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
18 Sep 2026ICLR 2027 (under review)submittedICLR 2027Under reviewreviews ↓[1]PDF[1]
Missing a version?

ICLR 2027

Under review · 3 reviews · OpenReview

Updated 25 Nov 2026, 10:40 UTC.

Reviewer rQHUOpenReview ↗
Rating
1/4
Confidence
4/4
Soundness
1/3
Presentation
2/3
Informativeness
1/3
Read review
Summary

The paper argues that an identification feature at demonstration label tokens causally drives an execution feature, the FV, at the cue token in GPT-J and Qwen2.5-7B, and that a shared ridge map predicts held-out FVs from identification features (R2R^2 of 0.60 and 0.53). A coding-convention extension repeats the interventions. The paper doesn't point to code.

Strengths
  • The controls are careful. Every intervention has an other-task control, all fitting uses training tasks only, and Appendix D reports results that cut against the story (between-task alignment–accuracy correlations of −0.36-0.36 and −0.24-0.24).

  • The 53-family paired-document coding suite tests the account outside Q:/A: prompts, with steering in both directions (Table 5).

Weaknesses
  • The central result is largely known. Kharlapenko et al. (2025) showed that task-detection features on demonstration output tokens causally drive task-execution features at the token before completion, on similar tasks, yet the paper cites them only in passing. The shared map, the remaining novelty, isn't specific to identification features. Raw label-token states predict held-out FVs as well as uAu_A at nearly every layer from 6 to 27, and at roughly 0.35–0.4 already at layer 0 (Figure 16, right), while a scaled partial isometry nearly matches ridge (0.588 vs. 0.641 in GPT-J). In code, dfidd^{\text{id}}_f is the difference at tokens that literally differ, ablated from the embedding output onward (Appendix E), which is closer to editing the input than to isolating a feature.

  • The mediation test isn't task-specific. Without any steering, zero-ablating vAv_A at the cue drops real six-shot accuracy to 1.3% and 5.6%, and zeroing only the shared FV direction gives 13.8% and 34.1% (Table 2), so removing "essentially all" of the steering gain shows the cue needs this subspace for any answer, not that the gain flows through it. The other-task control already removes 39% and 51%. The specific test, mean-ablating the task-unique component, which leaves 57.9% on real Qwen prompts, is never combined with steering.

  • Critical and highly overlapping works from the literature aren't cited/discussed (e.g., [1]). The work [1] should be included in the experiments as well as it improves over (and usually outperforms) FVs.

  • The models considered in the empirical analysis are not sufficient (only two models given), largely outdated (Qwen2.5 used, e.g., why not Qwen3?), and don't target a variety of model scales (only 6B and 7B).


[1] Saglam et al., "Learning Task Representations from In-Context Learning," ACL Findings 2025.

Questions for the authors
  1. Under label steering, how much of the gain does mean ablation of the task-unique FV component remove, relative to its other-task control?
  2. How well do non-label representations (query-token states, output-word embeddings) predict held-out vAv_A under the same protocol, and does identification ablation still work when restricted to the band BB rather than layers 0–27?
  3. Why didn't the author consider more and recent models?
Ethics concerns

None

Reviewer bGzCOpenReview ↗
Rating
2/4
Confidence
2/4
Soundness
2/3
Presentation
3/3
Informativeness
2/3
Read review
Summary

The paper studies how task information at demonstration labels affects execution at the final query cue. In GPT-J and Qwen2.5, it extracts task-specific label-site directions and uses function vectors as execution features. Steering and ablation change both task accuracy and downstream execution alignment; combining identification steering with execution ablation removes nearly all of the steering gain. A shared affine map predicts held-out tasks' function vectors from identification features. Experiments on coding conventions find related steering and ablation effects, with weaker cross-family linear prediction.

Strengths

The strongest evidence comes from combining steering, ablation, and downstream readouts: changing label-site features changes both task completion and cue-token alignment, with substantially smaller effects from unrelated-task controls. This goes beyond showing that task information is merely decodable. Replication in GPT-J and Qwen, together with the coding-style experiments, makes the observed dependence worth studying beyond a single model or prompt format.

Weaknesses
  1. The mechanistic novelty is narrower than the framing suggests. Zheng et al. already causally patch early label-site task vectors and describe their aggregation into later query representations; Wang et al. trace demonstration contributions to query FVs through QK/Value interventions. The distinctive additions are the paired-feature dependency test, shared affine fit, and coding extension. Clarify what additional mechanism these establish beyond the existing contextualization–aggregation account.

  2. The mediation test zero-ablates the full FV across layers 9–27. Appendix C shows that zeroing its shared component alone damages ordinary ICL; task-specific mean ablation is weaker in Qwen and is not tested with identification steering. Erasing the steering gain may therefore partly reflect disabling general execution. Repeat the combined test by restoring only the task-specific projection to its unsteered value at a downstream layer, preserving the shared component.

  3. The shared map is evaluated only through reconstruction error, including Appendix D's per-prompt analysis. An R² of 0.53–0.60 does not establish that predicted vectors retain the task-specific information that drives execution. Inject predicted held-out FVs using training-selected settings and compare accuracy with true FVs and the training-mean baseline. This would test whether the map captures functional execution information rather than only correlated activation structure.

Questions for the authors

See Critical Weaknesses.

Reviewer jgRmOpenReview ↗
Rating
2/4
Confidence
2/4
Soundness
2/3
Presentation
3/3
Informativeness
2/3(+1)
Read review
Summary

This paper investigates how information within in-context demonstrations influences a language model’s subsequent task execution. For simple input–output tasks, identification features in-context are constructed from label-token activation means after removing a shared component, while execution features are function vectors extracted from selected attention heads. The paper has several ablations and mechanistic interventions to show these are causally related within models and have a meaningful impact on naturalistic downstream tasks.

Strengths

Consistent evidence supports the author's hypothesis of a task-specific causal relationship between demonstration representations and downstream execution beyond simple linear readouts. The mean and zero ablations are particularly nicely done and informative on this point.

The ecologically valid examples in the coding experiments also point towards a meaningful realization of this hypothesis.

Weaknesses

The combined intervention establishes a downstream requirement for task execution, but does not isolate mediation of the identification-steering effect to the execution feature. The central experiment in Figure 5 shows that the behavioral improvement from identification steering disappears when the full function-vector direction is repeatedly zero-ablated at the cue token - so the improvement depends on this. However, it remains unclear whether the execution feature transmits the steering-induced task information or whether its ablation disables some other downstream process required to express the improvement. We'd need an intervention on the steering-induce task as well to establish that its disruption is the causal mechanism behind the downstream performance shift.

Questions for the authors

I think a little more framing around the novelty would be helpful: the residual directions, shared predictive relationship, etc... many of the topics here have been addressed in other works in various parts or forms. This work is still quite novel in how it all comes together, but that should be contextualized better.

  • Dmitrii Kharlapenko, Stepan Shabalin, Arthur Conmy, Neel Nanda Proceedings of the 42nd International Conference on Machine Learning, PMLR 267:29819-29851, 2025.
  • Roee Hendel, Mor Geva, and Amir Globerson. 2023. In-Context Learning Creates Task Vectors. In Findings of the Association for Computational Linguistics: EMNLP 2023, pages 9318–9333, Singapore. Association for Computational Linguistics.
  • Lean Wang, Lei Li, Damai Dai, Deli Chen, Hao Zhou, Fandong Meng, Jie Zhou, and Xu Sun. 2023. Label Words are Anchors: An Information Flow Perspective for Understanding In-Context Learning. In Proceedings of the 2023 Conference on Empirical Methods in Natural Language Processing, pages 9840–9855, Singapore. Association for Computational Linguistics.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…

This paper is under review