斯坦福论文揭示LLM少样本学习机制:非教学而是标签查找
New Stanford paper finds that showing a small AI language model more examples ca…
这篇论文从电路层面揭示了In-Context Learning的本质是标签查找而非模式习得,对理解LLM底层机制极具价值,Agent开发者必读。
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.
新的斯坦福论文发现,向小型 AI 语言模型展示更多示例并不能教会它一个它尚未注意到的模式,例如单词的第三个字母。
finds that LLMs learn from few-shot examples by looking up stored labels, and only switch that lookup on when labels repeat.
发现大型语言模型(LLMs)通过查找存储的标签来从少样本示例中学习,并且仅在标签重复时才启用该查找机制。
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%.
早期信号仅在某个标签重复时开启此查找机制。当每个类别有 1 个示例时,模型的准确率约为 20%;当有 6 个示例时,准确率达到 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.
给模型提供十几句带有虚构标签(如 foo 和 bar)的句子,它就能学会映射关系而无需更新权重。早期的研究发现了其中的一部分,但并未阐明它们如何协同工作。
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.
他们追踪了 Qwen3-4B、SmolLM3-3B 和 Llama-3.2-3B 中的完整路径。每个标签令牌存储其所属句子的类别,大约 90 个后续层将新句子与这些存储的类别进行匹配。
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
– arxiv.org/abs/2611.05344
Title: "A Circuit for In-Context Learning"
标题:"上下文学习电路"
更进一步:量化金融体系
看懂新闻只是起点——沿量化金融路径,把它变成能交付的工程能力