- Rating
- 5
- Clarity
- 3
- Confidence
- 3
- Originality
- 3
- Quality
- 3
- Significance
- 3
Read review
Summary
This paper proposes Task Operators (TO), a training-free approach to compress in-context learning (ICL) into a compact, replayable form. By analytically decomposing each attention head’s ICL output into an exact per-head affine transformation of its context-masked counterpart, the authors extract per-site, per-head scaling and bias parameters and replay them at zero-shot inference via an equivalent update to the attention output projection. Experiments on four open LLMs across eight lexical, algorithmic, and reasoning tasks show TO substantially narrows the gap between zero-shot and ICL and outperforms prior task/activation-vector baselines; causal analyses suggest the captured knowledge is sparse and task-specific, and a batching strategy supports many-shot scaling without longer contexts.
Strengths and weaknesses
Strengths:
- The work derives a precise, per-head affine identity relating ICL and context-masked attention outputs and leverages this to reparameterize the output projection with head-wise scaling and additive biases.
- The replay mechanism is input-dependent through multiplicative scaling on the current zero-shot activations, going beyond fixed additive “task vectors.”
- The connection between ICL and an effective parameter update (W_O · D, plus a bias) is conceptually neat and mechanistically grounded.
- Offers a practically attractive ICL compression technique that reduces inference-time prompt overhead without training.
- Provides a mechanistic lens—an explicit, exact per-head affine decomposition—that helps align ICL behavior with parameter-space updates and circuit localization.
Weaknesses:
- Technical limitations or concerns: The “exact” affine identity is per sample; the method relies on averaging parameters across validation prompts to form fixed per-site operators, which is an approximation whose limits (e.g., distribution shift, heavier input-dependence) are not fully quantified. Applicability requires access to internal attention logits and value vectors; this limits use with closed APIs or restricted deployment environments. For large K, the w factors can collapse toward zero, destabilizing replay; the proposed batching/averaging workaround works empirically but signals a potential fragility. The replay only intervenes on attention outputs via W_O; potential ICL effects propagated through MLP blocks and other components are not explicitly modeled.
- Experimental gaps or methodological issues: Comparisons omit some recent, stronger implicit-ICL steering baselines that add input dependence in other spaces (e.g., attention-logit routing like ICR) because they are trained; however, including at least one trained adaptive baseline would better contextualize the cost–performance trade-offs. Efficiency claims are qualitative; there is no wall-clock or FLOP analysis contrasting TO replay to 8-shot ICL with KV caching, nor an accounting of the one-time extraction cost (K × m ICL runs) vs. per-query savings. Error bars or statistical significance are not reported; some large gains (and a few regressions) would benefit from uncertainty quantification.
- Clarity or presentation issues: Minor equation formatting artifacts and repeated lines in the decomposition section could be cleaned; symbol primes and superscripts occasionally create momentary confusion. The notion of “dynamic” intervention could be crisper: the per-site parameters are fixed at test time, and “dynamism” arises via scaling current activations rather than routing conditioned on each input.
- Missing related work or comparisons: While DyVec, Adaptive Task Vectors, LIVE/LTV are discussed as learned variants, recent attention-logit steering with a lightweight router (e.g., in-context routing) is not empirically compared; even a qualitative efficiency/performance contrast would help. Activation scaling and affine steering beyond conceptors (e.g., representation surgery/affine steering) could be more explicitly contrasted in the context of ICL compression.
Questions
- Could you quantify cross-sample stability of w and b (e.g., mean/variance, ICC) and relate this to performance as m increases? Are there tasks where parameters are notably unstable, and how does TO fare there?
- Besides batching, are there normalization or clipping strategies that mitigate w→0 degeneracy without sacrificing fidelity? For example, re-centering or temperature-scaling logits before decomposition?
- Generalization: How sensitive is TO to prompt-template variations and demonstration selection? Could you share cross-template robustness and between-seed variance on the main tasks?
- Baselines: Would you consider adding at least one trained, input-conditioned steering baseline (e.g., a lightweight attention-logit router) to contextualize performance vs training overhead?
Limitations
Yes.
Paper formatting concerns
None. The manuscript strictly adheres to the NeurIPS 2026 formatting and double-blind anonymity instructions.
Final justification
My main concerns are resolved in the rebuttal, and this paper is suitable for publication in NeurIPS.
Thank you for the detailed and constructive review. Below we provide point-by-point responses to each of your concerns.
We will clarify that the affine identity is exact per sample, while the averaged operator provides a fixed task-level approximation supported by the strong cross-sample stability observed in Appendix D.1 across lexical, algorithmic, and reasoning tasks. Moreover, Appendix G shows that operators extracted from GSM8K transfer effectively to MATH500, providing further evidence that the extracted operators capture reusable structure beyond a single distribution. We will add this clarification and discuss broader distribution shifts and heavier input-dependence in the revision.
We agree that TO requires access to internal attention scores and value vectors, a limitation shared by most activation-intervention baselines considered in the paper. We will state explicitly that TO is not applicable to closed APIs or deployment environments that do not expose these internal quantities.
Thanks for this insightful question. During our experiments, we explored a normalized TO (NTO) variant that is similar to the re-centering idea you suggest. Reusing the notations in the paper, instead of computing the raw w=Z′/(Z′+ZC) where the context mass ZC grows as K increases, we compute a normalized w as w~=Z′+(K0/K)ZCZ′, where K0 is a reference count. And the corresponding b~ is computed as b~=(1−w~)1−wb. The introduction of K0 enables a magnitude control of the w factor. The table below compares the batched TO against NTO (K0=8, matching TO at K=8) on two tasks (Llama-3.1-8B):
NTO improves over batched TO on Deduplicate, but not on Reverse, where it matches batched TO at small K and underperforms it as K grows. Since the normalization does not consistently outperform the much simpler batched averaging, we retain batched TO as our remedy for the w→0 degeneracy in our main paper. We will include the discussion of NTO in our revision.
Our derivation isolates the direct contribution of demonstration tokens through attention. The resulting attention-output interventions enter the residual stream and therefore affect downstream attention and MLP computations. However, TO does not explicitly model additional ICL-related transformations that may arise within MLP blocks. We will clarify this scope and identify direct modeling of these effects as future work.
Following your suggestion, we add two trained, input-conditioned steering baselines, ATV [1] and ICR [2]. The results show that ATV generally benefits from additional training examples, whereas ICR remains weak in this low-data regime. TO, despite using only eight demos and no parameter training, achieves the best accuracy in most settings. We will include the discussion of ATV and ICR and the results in our revision.
[1] Adaptive Task Vectors for Large Language Models. NeurIPS Workshop. 2025.
[2] Train Once, Reuse Everywhere: Generalizable Implicit ICL by Routing Attention. ICML. 2026.
Following your suggestion, we quantify per-query cost on 64 GSM8K questions with Llama-3.1-8B, where the demonstrations are long CoT exemplars. Assuming the output contains 128 tokens, the estimated per-query cost is shown in the table below. With KV caching (8-shot ICL + KV), the model saves the large computing cost during prefilling. However, it still needs to spend around 8x memory to store the KV caches.
With m=32 validation samples and K=8 demonstrations, the one-time extraction cost is around 32 x 29350 GFLOPs, which is compensated by the compute saved over full ICL after processing more than 36 test questions.
We reran the experiments with different seeds for demo/val sample selection, testing Qwen3-4B/8B on Deduplicate and GPQA. The table below shows that TO accuracy varies across demo selections, consistent with existing literature that demo selection is important for ICL [3,4]. However, the advantage of TO over baselines is consistent and significant. For example, on Deduplicate, a paired within-seed comparison shows TO exceeds FV (p≈0.01) and TV (p<0.01) on both models, validating the effectiveness of TO across seeds. We will add this analysis in our revision, highlighting the advantage of our method across seeds and the potential of further improving the performance with targeted demo selection.
[3] Active Example Selection for In-Context Learning. EMNLP. 2022.
[4] Revisiting Demonstration Selection Strategies in In-Context Learning. ACL. 2024.
Thank you for the constructive feedback! We will clean the equation artifacts and repeated lines, removing unnecessary symbol primes and superscripts. Also, we will clarify in the revision that the per-site parameters are fixed and the "dynamism" arises from the scaling of current activations as you suggest.
In Appendix D.1, we evaluate the cross-sample stability of w and b using m=32 extraction samples. Specifically, we report the coefficient of variation, CV(w)=std(w)/mean(w), for the scaling factor w, and the mean pairwise cosine similarity of the bias vectors b at each site. Across the evaluated settings, approximately 80% of sites have CV(w)<0.1, and approximately 90% have cos(b) more than 0.9. Following your suggestion, we additionally analyze how these stability measures and downstream TO accuracy vary with the extraction-set size m.
The table shows the results for operators extracted from Llama-3.1-8B on Deduplicate. The parameters are already highly stable at m=8, and the aggregate stability metrics remain nearly unchanged as m increases. In contrast, downstream accuracy improves substantially from m=8 to m=24 and then plateaus. This suggests that these aggregate stability statistics alone are not sufficient to predict replay accuracy. Even when most sites are stable, averaging over additional extraction samples may improve the estimates at a small subset of performance-critical sites.
Stability also varies across tasks and models. As reported in Appendix D.1, the extracted parameters are more stable on Reverse than on GSM8K and more stable for Llama-3.1-8B than for Qwen3-4B. We will clarify these task- and model-dependent differences in the revised manuscript.
Appendix F shows that TO consistently outperforms the compared baseline across different prompt templates, indicating that its gains are robust to prompt wording. For demonstration selection, as reported in our response to W2.3, TO shows a consistent advantage over baselines across seeds. We will include these results and clarify both forms of robustness in the revision.