<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Attention on Yang</title><link>/tags/attention/</link><description>Recent content in Attention on Yang</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Sun, 26 Jul 2026 11:02:00 +0800</lastBuildDate><atom:link href="/tags/attention/index.xml" rel="self" type="application/rss+xml"/><item><title>Transformer 中的自注意力机制</title><link>/research/transformer-self-attention/</link><pubDate>Sun, 26 Jul 2026 11:02:00 +0800</pubDate><guid>/research/transformer-self-attention/</guid><description>&lt;h2 id="qkv-是什么"&gt;&lt;a href="#qkv-%e6%98%af%e4%bb%80%e4%b9%88" class="header-anchor"&gt;&lt;/a&gt;Q、K、V 是什么？
&lt;/h2&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Q（Query，查询）&lt;/strong&gt;：当前位置想寻找什么信息。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;K（Key，键）&lt;/strong&gt;：每个位置能够提供什么信息。&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;V（Value，值）&lt;/strong&gt;：每个位置实际携带的信息。&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;输入序列表示为：&lt;/p&gt;</description></item></channel></rss>