跳到正文
𝕏 Rohan Paul(x.com)·· 7 小時前品質評分61
重點導讀

導語:斯坦福研究指出,小型 AI 語言模型在少量範例中學習模式並非透過權重更新,而是利用標籤重複的查詢機制。

  • 機制:模型透過儲存標籤並在標籤重複時啟用查詢,從 1 個樣本每類僅 20% 正確率提升至 6 個樣本時 96%。

AI 伴隨問答

自備 Key 深度分析

針對這篇報導有疑問?可直接點選快捷問題或向 AI 追問背景脈絡與技術細節:

Rohan Paul
Rohan Paul@rohanpaul_ai
·7 小時前
𝕏

New Stanford paper finds that showing a small AI language model more examples cannot teach it a pattern it does not already notice, such as the third letter of a word.

finds that LLMs learn from few-shot examples by looking up stored labels, and only switch that lookup on when labels repeat.

An early signal opens this lookup only when some label repeats. With 1 example per class the model was right about 20% of the time, and with 6 it was right 96%.

Give a model a dozen sentences tagged with made-up labels like foo and bar, and it learns the mapping without weight updates. Earlier work found parts of this, but not how they fit together.

They traced the full path in Qwen3-4B, SmolLM3-3B and Llama-3.2-3B. Each label token stores the class of its sentence, and about 90 later heads match the new sentence against those stored classes.

For few-shot prompts, repeat every label several times and pick classes the model can already tell apart, since examples cannot teach a feature it lacks.

– arxiv. org/abs/2611.05344

Title: "A Circuit for In-Context Learning"

推文來源 · X (Twitter)在 X 參與討論

讀者討論

理性交流 · 即時討論