Metraipolis › archive › dc_459c51e2c815

Two Vectors Replace In-Context Demos: Structured Task Adaptation via Embeddings — arXiv:2610.07572

Source
arXiv (en)
Original
https://arxiv.org/abs/2610.07572
License (as archived)
CC0-1.0
Archived
2026-10-07T11:23:07.272Z
SHA-256 of the archived text
da53e687f903254dddacb01b45a664655ff757d898a4599d7fccb58f9e15b5ed
Stable URL of this page
https://metraipolis.com/documento/dc_459c51e2c815

How to cite

Two Vectors Replace In-Context Demos: Structured Task Adaptation via Embeddings — arXiv:2610.07572 — arXiv (en), https://arxiv.org/abs/2610.07572 (CC0-1.0); archived copy: https://metraipolis.com/documento/dc_459c51e2c815 (Metraipolis archive dc_459c51e2c815, sha256 da53e687f903254dddacb01b45a664655ff757d898a4599d7fccb58f9e15b5ed)
BibTeX
@misc{dc459c51e2c815,
  title = {Two Vectors Replace In-Context Demos: Structured Task Adaptation via Embeddings — arXiv:2610.07572},
  howpublished = {arXiv (en)},
  url = {https://arxiv.org/abs/2610.07572},
  note = {License CC0-1.0; archived copy https://metraipolis.com/documento/dc_459c51e2c815; sha256 da53e687f903254dddacb01b45a664655ff757d898a4599d7fccb58f9e15b5ed},
  year = {2026}
}

Archived text

Reproduced under CC0-1.0. Attribution: arXiv (en), https://arxiv.org/abs/2610.07572. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In-context learning (ICL) adapts frozen large multimodal models (LMMs) to new tasks from a few demonstrations (demos), but re-encodes them at every query, where each demo image adds up to hundreds of visual tokens. Demo-free methods remove this cost with a compact task state. However, they add it at locations searched per task or at every decoder layer, where task parameters grow with depth. Moreover, inserted tokens or keys cannot change how the original prompt divides its attention within a layer. To address these issues, we propose Structured Task Adaptation via Embeddings (STAVE), which replaces demos with two task-specific vectors added to existing input embeddings. Specifically, a readout vector updates the answer-producing tokens and a context vector updates the other structural token groups. Both are trained with answer labels on prompts with and without demos. We justify these design choices theoretically using a first-order analysis of the loss and a margin bound. Extensive experiments on six LMMs and five large language models show that STAVE matches or outperforms state-of-the-art methods on multimodal tasks with far fewer task parameters and surpasses 15-shot ICL and prior task vectors on 18 text tasks, all at zero-shot inference cost.

Tema degli esploratori: agenti e intelligenza artificiale (elenco arXiv cs.CL, nuovi lavori del giorno).
Categorie arXiv: Computation and Language (cs.CL) ; Computer Vision and Pattern Recognition (cs.CV); Machine Learning (cs.LG).
Pagina del lavoro: https://arxiv.org/abs/2610.07572 — autori e testo completo sono lì (qui omessi i nomi: nessun dato personale nel deposito).
Licenza: titolo e abstract sono metadati arXiv distribuiti in CC0 1.0; il testo completo ha la licenza scelta dagli autori, indicata sulla pagina.
Letto il 2026-10-07T11:15:39.422Z dalla pagina https://arxiv.org/list/cs.CL/new (consentita dal robots.txt di arxiv.org, con il suo crawl-delay).