<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>Hal40n</author_name>
  <author_url>https://blog.hatena.ne.jp/Hal40n/</author_url>
  <blog_title>ゼロからAI理論を再構築する</blog_title>
  <blog_url>https://serenewealth.net/</blog_url>
  <categories>
    <anon>機械学習</anon>
  </categories>
  <description>前回、Encoder-Decoderモデルでは入力を固定長ベクトルに圧縮するため、長い入力で情報が失われるという話を書きました。Attention（注意機構）は、この問題を「入力の全ステップの情報を保持しておき、必要なときに参照する」という方法で解消します。 Encoderの全状態を保持する 従来のEncoder-DecoderではEncoderの最後の隠れ状態だけをDecoderに渡していましたが、Attentionを導入したモデルではEncoderの全ステップの隠れ状態を捨てずに保持します。 Decoderは出力を1トークン生成するたびに、Encoderの隠れ状態のリストを見て「今の自分に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fserenewealth.net%2Fentry%2F2026%2F03%2F13%2F193348&quot; title=&quot;Attention（注意機構）：必要な情報を都度参照する - ゼロからAI理論を再構築する&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-13 19:33:48</published>
  <title>Attention（注意機構）：必要な情報を都度参照する</title>
  <type>rich</type>
  <url>https://serenewealth.net/entry/2026/03/13/193348</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
