{"id":61664,"date":"2026-01-18T10:41:48","date_gmt":"2026-01-18T02:41:48","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/61664.html"},"modified":"2026-01-18T10:41:48","modified_gmt":"2026-01-18T02:41:48","slug":"%e8%87%aa%e6%b3%a8%e6%84%8f%e5%8a%9b%e6%9c%ba%e5%88%b6self-attention%e4%b8%8enlp%ef%bc%88%e4%b8%ba%e4%ba%86%e5%a4%8d%e8%af%95%e8%ae%b0%e5%bd%95%e4%b8%80%e4%b8%8b%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/61664.html","title":{"rendered":"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09"},"content":{"rendered":"<p>\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff0c;\u5b83\u662f\u73b0\u4ee3\u6df1\u5ea6\u5b66\u4e60&#xff0c;\u5c24\u5176\u662fTransformer\u6a21\u578b&#xff08;\u5982BERT\u3001GPT&#xff09;\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002<\/p>\n<h2>\u7b2c\u4e00\u90e8\u5206&#xff1a;\u6838\u5fc3\u601d\u60f3\u2014\u2014\u5b83\u4e0d\u662f\u201c\u6ce8\u610f\u529b\u201d&#xff0c;\u662f\u201c\u5173\u8054\u529b\u201d<\/h2>\n<p>\u666e\u901a\u6ce8\u610f\u529b&#xff1a;\u50cf\u624b\u7535\u7b52&#xff0c;\u4f60\u4e3b\u52a8\u628a\u5149&#xff08;\u6ce8\u610f\u529b&#xff09;\u6253\u5230\u67d0\u4e2a\u5730\u65b9\u3002\u6bd4\u5982\u201c\u6ce8\u610f\u542c\u90a3\u4e2a\u4eba\u7684\u53d1\u8a00\u201d\u3002<\/p>\n<p>\u81ea\u6ce8\u610f\u529b&#xff1a;\u50cf\u4e00\u5f20\u667a\u80fd\u5173\u7cfb\u7f51\u3002\u4f60\u540c\u65f6\u5206\u6790\u4f1a\u8bae\u5ba4\u91cc\u6bcf\u4e2a\u4eba\u4e0e\u5176\u4ed6\u4eba\u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u7136\u540e\u66f4\u65b0\u4f60\u5bf9\u6bcf\u4e2a\u4eba\u7684\u7406\u89e3\u3002<\/p>\n<p>\u6838\u5fc3\u76ee\u6807&#xff1a;\u4e3a\u623f\u95f4\u91cc\u7684\u6bcf\u4e2a\u4eba&#xff0c;\u91cd\u65b0\u8ba1\u7b97\u4e00\u4e2a\u201c\u5347\u7ea7\u7248\u7684\u8eab\u4efd\u724c\u201d\u3002\u8fd9\u4e2a\u65b0\u8eab\u4efd\u724c&#xff0c;\u878d\u5408\u4e86\u4ed6\u4e0e\u623f\u95f4\u91cc\u6240\u6709\u4eba\u7684\u5173\u7cfb\u4fe1\u606f\u3002<\/p>\n<h2>\u7b2c\u4e8c\u90e8\u5206&#xff1a;\u7528\u4e00\u573a\u201c\u76f8\u4eb2\u5927\u4f1a\u201d\u6765\u6a21\u62df\u6574\u4e2a\u8fc7\u7a0b<\/h2>\n<p>\u5047\u8bbe\u8f93\u5165\u662f\u4e00\u53e5\u8bdd&#xff1a;\u201c\u82f9\u679c\u5f88\u597d\u5403&#xff0c;\u6211\u4e70\u4e86\u4e09\u65a4\u3002\u201d<\/p>\n<p>\u6211\u4eec\u628a\u6bcf\u4e2a\u8bcd&#xff08;\u52a0\u4e0a\u4e00\u4e2a\u5f00\u59cb\u6807\u8bb0[CLS]&#xff09;\u60f3\u8c61\u6210\u76f8\u4eb2\u5927\u4f1a\u4e0a\u7684\u4e00\u4e2a\u5609\u5bbe&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u5609\u5bbe\u540d\u5355&#xff1a; [CLS]&#xff0c; \u82f9\u679c&#xff0c; \u5f88&#xff0c; \u597d\u5403&#xff0c; \u6211&#xff0c; \u4e70\u4e86&#xff0c; \u4e09\u65a4<\/p>\n<\/li>\n<\/ul>\n<p>\u6bcf\u4e2a\u5609\u5bbe\u521a\u5165\u573a\u65f6&#xff0c;\u53ea\u5e26\u7740\u81ea\u5df1\u7684\u57fa\u672c\u8d44\u6599\u5361&#xff08;\u8fd9\u5c31\u662f\u201c\u8bcd\u5411\u91cf\u201d&#xff0c;\u6bd4\u5982[0.2&#xff0c; -0.5&#xff0c; 1.1&#xff0c; &#8230;]&#xff09;\u3002<\/p>\n<p>\u73b0\u5728&#xff0c;\u5927\u4f1a\u8981\u542f\u52a8\u201c\u81ea\u6ce8\u610f\u529b\u201d\u73af\u8282&#xff0c;\u8ba9\u6bcf\u4e2a\u5609\u5bbe\u91cd\u65b0\u8ba4\u8bc6\u81ea\u5df1\u3002<\/p>\n<h3>\u7b2c\u4e00\u6b65&#xff1a;\u6bcf\u4e2a\u4eba\u90fd\u51c6\u5907\u4e09\u5f20\u65b0\u540d\u7247&#xff08;Q K V&#xff09;<\/h3>\n<p>\u5927\u4f1a\u7ec4\u7ec7\u8005&#xff08;\u6a21\u578b&#xff09;\u53d1\u7ed9\u6bcf\u4e2a\u4eba\u4e09\u4e2a\u53ef\u5b9a\u5236\u7684\u5370\u7ae0&#xff08;\u4e09\u4e2a\u53ef\u5b66\u4e60\u7684\u6743\u91cd\u77e9\u9635&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u67e5\u8be2\u5370\u7ae0\u200b &#xff1a;\u76d6\u51fa \u201c\u6211\u60f3\u627e\u4ec0\u4e48\u6837\u7684\u4eba\u201d\u200b \u7684\u540d\u7247\u3002&#xff08;Query&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u952e\u5370\u7ae0\u200b &#xff1a;\u76d6\u51fa \u201c\u6211\u81ea\u5df1\u7684\u7279\u8d28\u6807\u7b7e\u201d\u200b \u7684\u540d\u7247\u3002&#xff08;Key&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u503c\u5370\u7ae0\u200b &#xff1a;\u76d6\u51fa \u201c\u6211\u7684\u5b8c\u6574\u8be6\u7ec6\u8d44\u6599\u201d\u200b \u7684\u540d\u7247\u3002&#xff08;Value&#xff09;<\/p>\n<\/li>\n<ul>\n<li>\n<p>\u82f9\u679c\u7528\u8fd9\u4e09\u4e2a\u5370\u7ae0&#xff0c;\u628a\u81ea\u5df1\u7684\u57fa\u672c\u8d44\u6599\u5361\u52a0\u5de5\u6210\u4e86\u4e09\u5f20\u65b0\u540d\u7247&#xff1a;Q\u82f9\u679c&#xff0c; K\u82f9\u679c&#xff0c; V\u82f9\u679c\u3002<\/p>\n<\/li>\n<li>\n<p>\u540c\u6837&#xff0c;\u597d\u5403\u3001\u6211\u7b49\u5176\u4ed6\u5609\u5bbe\u4e5f\u5404\u81ea\u505a\u51fa\u4e86\u81ea\u5df1\u7684\u4e09\u5f20\u540d\u7247\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u7b2c\u4e8c\u6b65&#xff1a;\u4e92\u76f8\u5339\u914d&#xff08;\u8ba1\u7b97\u5173\u7cfb\u5206&#xff09;<\/h3>\n<p>\u73b0\u5728&#xff0c;\u5927\u4f1a\u8fdb\u5165\u6838\u5fc3\u73af\u8282\u3002\u6211\u4eec\u4ee5 \u201c\u82f9\u679c\u201d\u200b \u8fd9\u4f4d\u5609\u5bbe\u4e3a\u4e3b\u89d2&#xff0c;\u770b\u770b\u4ed6\u5982\u4f55\u66f4\u65b0\u81ea\u5df1\u3002<\/p>\n<li>\n<p>\u82f9\u679c\u62ff\u51fa\u81ea\u5df1\u7684 \u201c\u67e5\u8be2\u201d\u540d\u7247&#xff08;Q\u82f9\u679c&#xff09;&#xff0c;\u4e0a\u9762\u5199\u7740\u4ed6\u7684\u9700\u6c42&#xff1a;\u201c\u6211\u60f3\u627e\u548c\u5473\u9053\u3001\u98df\u7269\u3001\u6570\u91cf\u76f8\u5173\u7684\u4eba\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ed6\u628a\u8fd9\u5f20\u201c\u67e5\u8be2\u201d\u540d\u7247&#xff0c;\u4f9d\u6b21\u53bb\u548c\u5168\u573a\u6bcf\u4e00\u4e2a\u4eba&#xff08;\u5305\u62ec\u4ed6\u81ea\u5df1&#xff09;\u7684 \u201c\u952e\u201d\u540d\u7247&#xff08;Kxxx&#xff09;\u200b \u8fdb\u884c\u6bd4\u5bf9\u3002<\/p>\n<ul>\n<li>\n<p>\u6bd4\u5bf9\u597d\u5403\u7684\u201c\u952e\u201d\u540d\u7247&#xff1a;\u4e0a\u9762\u53ef\u80fd\u5199\u7740\u201c\u7279\u8d28&#xff1a;\u5473\u9053\u3001\u8bc4\u4ef7\u3001\u6b63\u9762\u201d\u3002\u54c7&#xff0c;\u5339\u914d\u5ea6\u5f88\u9ad8&#xff01;\u56e0\u4e3a\u90fd\u6d89\u53ca\u201c\u5473\u9053\u201d\u3002\u5173\u7cfb\u5206&#xff1a;&#043;8\u5206&#xff08;\u5f88\u9ad8&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bd4\u5bf9\u4e09\u65a4\u7684\u201c\u952e\u201d\u540d\u7247&#xff1a;\u4e0a\u9762\u5199\u7740\u201c\u7279\u8d28&#xff1a;\u6570\u91cf\u3001\u5355\u4f4d\u201d\u3002\u6709\u8054\u7cfb&#xff01;\u5173\u7cfb\u5206&#xff1a;&#043;5\u5206\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bd4\u5bf9\u6211\u7684\u201c\u952e\u201d\u540d\u7247&#xff1a;\u4e0a\u9762\u5199\u7740\u201c\u7279\u8d28&#xff1a;\u4eba\u79f0\u3001\u4e3b\u4f53\u201d\u3002\u597d\u50cf\u4e0d\u592a\u76f8\u5173\u3002\u5173\u7cfb\u5206&#xff1a;&#043;1\u5206&#xff08;\u5f88\u4f4e&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bd4\u5bf9[CLS]\u7684\u201c\u952e\u201d\u540d\u7247&#xff1a;&#xff08;\u8fd9\u662f\u4e00\u4e2a\u7279\u6b8a\u5609\u5bbe&#xff0c;\u4ee3\u8868\u6574\u4e2a\u53e5\u5b50\u7684\u6982\u62ec&#xff09;\u3002\u5173\u7cfb\u5206&#xff1a;&#043;3\u5206\u3002<\/p>\n<\/li>\n<li>\n<p>&#8230; \u4ee5\u6b64\u7c7b\u63a8&#xff0c;\u548c\u5168\u573a\u6240\u6709\u4eba\u90fd\u6bd4\u4e00\u904d\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024145-696c4869ab9b5.png\" \/><\/p>\n<h3>\u7b2c\u4e09\u6b65&#xff1a;\u5f52\u4e00\u5316\u4e0e\u805a\u7126&#xff08;Softmax&#xff09;<\/h3>\n<p>\u73b0\u5728&#xff0c;\u201c\u82f9\u679c\u201d\u624b\u91cc\u6709\u4e00\u5f20\u6253\u5206\u8868&#xff0c;\u8bb0\u5f55\u4e86\u4ed6\u548c\u5168\u573a\u6bcf\u4e2a\u4eba\u7684\u5173\u7cfb\u5206&#xff08;8&#xff0c; 5&#xff0c; 1&#xff0c; 3&#xff0c; &#8230;&#xff09;\u3002<\/p>\n<p>\u4f46\u662f\u8fd9\u4e9b\u5206\u6570\u5927\u5c0f\u4e0d\u4e00&#xff0c;\u6ca1\u6cd5\u7528\u3002\u6240\u4ee5\u4ed6\u8981\u505a\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\n<p>\u7f29\u653e&#xff1a;\u628a\u6240\u6709\u7684\u5206\u6570\u90fd\u9664\u4ee5\u4e00\u4e2a\u56fa\u5b9a\u503c&#xff08;\u4e3a\u4e86\u8ba1\u7b97\u7a33\u5b9a&#xff0c;\u6682\u65f6\u4e0d\u7528\u6df1\u7a76&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5f52\u4e00\u5316&#xff08;Softmax&#xff09;&#xff1a;\u628a\u5206\u6570\u8f6c\u6362\u6210\u767e\u5206\u6bd4\u6743\u91cd&#xff0c;\u5e76\u4e14\u8ba9\u6240\u6709\u6743\u91cd\u52a0\u8d77\u6765\u7b49\u4e8e100%\u3002<\/p>\n<ul>\n<li>\n<p>\u548c\u597d\u5403\u7684\u5173\u7cfb\u5206&#xff0c;\u53ef\u80fd\u53d8\u6210\u4e86 60%\u200b \u7684\u6743\u91cd\u3002<\/p>\n<\/li>\n<li>\n<p>\u548c\u4e09\u65a4\u7684\u5173\u7cfb&#xff0c;\u53d8\u6210\u4e86 25%\u200b \u7684\u6743\u91cd\u3002<\/p>\n<\/li>\n<li>\n<p>\u548c\u6211\u7684\u5173\u7cfb&#xff0c;\u53d8\u6210\u4e86 2%\u200b \u7684\u6743\u91cd\u3002<\/p>\n<\/li>\n<li>\n<p>&#8230; \u5176\u4ed6\u4ee5\u6b64\u7c7b\u63a8\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<p>\u8fd9\u610f\u5473\u7740&#xff0c;\u5728\u66f4\u65b0\u201c\u82f9\u679c\u201d\u7684\u8ba4\u77e5\u65f6&#xff0c;\u4ed6\u4f1a\u752860%\u7684\u7cbe\u529b\u53bb\u53c2\u8003\u201c\u597d\u5403\u201d\u7684\u4fe1\u606f&#xff0c;\u752825%\u7684\u7cbe\u529b\u53c2\u8003\u201c\u4e09\u65a4\u201d\u7684\u4fe1\u606f\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024146-696c486a2150d.jpg\" \/><\/p>\n<h3>\u7b2c\u56db\u6b65&#xff1a;\u5408\u6210\u65b0\u8eab\u4efd&#xff08;\u52a0\u6743\u6c42\u548c&#xff09;<\/h3>\n<p>\u73b0\u5728&#xff0c;\u201c\u82f9\u679c\u201d\u62ff\u7740\u8fd9\u4efd\u6ce8\u610f\u529b\u6743\u91cd\u8868&#xff08;60%&#xff0c; 25%&#xff0c; 2%&#8230;&#xff09;&#xff0c;\u5f00\u59cb\u6536\u96c6\u4fe1\u606f\u3002<\/p>\n<p>\u4ed6\u8d70\u5230\u6bcf\u4e2a\u4eba\u9762\u524d&#xff0c;\u4e0d\u662f\u770b\u5bf9\u65b9\u7684\u201c\u952e\u201d\u540d\u7247\u4e86&#xff0c;\u800c\u662f\u7d22\u8981\u5bf9\u65b9\u7684\u201c\u503c\u201d\u540d\u7247&#xff08;Value&#xff09;&#xff0c;\u8fd9\u624d\u662f\u6bcf\u4e2a\u4eba\u7684\u8be6\u7ec6\u8d44\u6599\u3002<\/p>\n<ul>\n<li>\n<p>\u4ece\u597d\u5403\u90a3\u91cc&#xff0c;\u62ff\u5230\u4e86\u5173\u4e8e\u201c\u7f8e\u5473\u3001\u751c\u3001\u53ef\u53e3\u201d\u7684\u8be6\u7ec6\u8d44\u6599&#xff08;V\u597d\u5403&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ece\u4e09\u65a4\u90a3\u91cc&#xff0c;\u62ff\u5230\u4e86\u5173\u4e8e\u201c\u91cd\u91cf\u3001\u591a\u3001\u5177\u4f53\u201d\u7684\u8be6\u7ec6\u8d44\u6599&#xff08;V\u4e09\u65a4&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ece\u5176\u4ed6\u4eba\u90a3\u91cc&#xff0c;\u4e5f\u62ff\u5230\u4e86\u4e00\u4e9b\u8d44\u6599\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u6700\u540e&#xff0c;\u4ed6\u8fdb\u884c\u5408\u6210&#xff1a;<\/p>\n<p>\u65b0\u201c\u82f9\u679c\u201d\u8eab\u4efd &#061; 60% \u00d7 V\u597d\u5403&#043; 25% \u00d7 V\u4e09\u65a4&#043; 2% \u00d7 V\u6211&#043; &#8230;&#xff08;\u5176\u4ed6\u4eba\u7684\u5fae\u5c0f\u8d21\u732e&#xff09;<\/p>\n<p>\u8fd9\u4e2a\u5168\u65b0\u7684\u201c\u82f9\u679c\u201d\u8eab\u4efd&#xff0c;\u4e0d\u518d\u4ec5\u4ec5\u662f\u201c\u4e00\u79cd\u6c34\u679c\u201d\u7684\u51b0\u51b7\u6982\u5ff5&#xff0c;\u800c\u662f\u4e00\u4e2a\u878d\u5408\u4e86\u4e0a\u4e0b\u6587\u7684\u9c9c\u6d3b\u6982\u5ff5&#xff1a;\u201c\u4e00\u79cd\u88ab\u8bc4\u4ef7\u4e3a\u7f8e\u5473\u3001\u4e14\u88ab\u8d2d\u4e70\u4e86\u7279\u5b9a\u6570\u91cf\u7684\u53ef\u98df\u7528\u82f9\u679c\u201d\u3002\u5b83\u6210\u529f\u5730\u533a\u522b\u4e8e\u201c\u82f9\u679c\u516c\u53f8\u201d\u7684\u90a3\u4e2a\u201c\u82f9\u679c\u201d\u3002<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024146-696c486af1635.png\" \/><\/p>\n<h2>\u7b2c\u4e09\u90e8\u5206&#xff1a;\u5347\u7ea7\u7248\u2014\u2014\u591a\u5934\u6ce8\u610f\u529b&#xff08;\u591a\u89d2\u5ea6\u4e13\u5bb6\u56e2&#xff09;<\/h2>\n<p>\u4f60\u53ef\u80fd\u4f1a\u8bf4&#xff1a;\u4e00\u4e2a\u4eba\u505a\u5224\u65ad\u53ef\u80fd\u7247\u9762\u3002\u6ca1\u9519&#xff01;\u6240\u4ee5\u73b0\u5b9e\u4e2d&#xff0c;\u5927\u4f1a\u4f1a\u7ed9\u6bcf\u4e2a\u5609\u5bbe\u914d\u5907\u4e00\u4e2a\u4e13\u5bb6\u56e2&#xff0c;\u6bd4\u5982&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8bed\u6cd5\u4e13\u5bb6&#xff1a;\u4e13\u95e8\u770b\u4e3b\u8c13\u5bbe\u5173\u7cfb\u3002&#xff08;\u201c\u82f9\u679c\u201d\u662f\u201c\u597d\u5403\u201d\u7684\u4e3b\u8bed\u5417&#xff1f;&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u8bed\u4e49\u4e13\u5bb6&#xff1a;\u4e13\u95e8\u770b\u542b\u4e49\u5173\u8054\u3002&#xff08;\u201c\u82f9\u679c\u201d\u548c\u201c\u597d\u5403\u201d\u662f\u4fee\u9970\u5173\u7cfb\u3002&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u6307\u4ee3\u4e13\u5bb6&#xff1a;\u4e13\u95e8\u770b\u8c01\u4e70\u4e86\u8c01\u3002&#xff08;\u201c\u6211\u201d\u4e70\u4e86\u201c\u82f9\u679c\u201d\u3002&#xff09;<\/p>\n<\/li>\n<\/ul>\n<p>\u8fd9\u5c31\u662f\u201c\u591a\u5934\u6ce8\u610f\u529b\u201d&#xff01;\u200b \u4e0a\u9762\u7684\u6574\u4e2a\u8fc7\u7a0b&#xff0c;\u53ea\u662f\u4e00\u4e2a\u5934&#xff08;\u4e00\u4e2a\u4e13\u5bb6&#xff09;\u7684\u505a\u6cd5\u3002<\/p>\n<p>\u5728\u5b9e\u9645\u6a21\u578b\u4e2d&#xff08;\u4f8b\u59828\u4e2a\u5934&#xff09;&#xff1a;<\/p>\n<li>\n<p>\u540c\u65f6\u542f\u52a88\u4e2a\u72ec\u7acb\u7684\u201c\u76f8\u4eb2\u5927\u4f1a\u201d&#xff08;\u53738\u4e2a\u5e76\u884c\u7684\u81ea\u6ce8\u610f\u529b\u8ba1\u7b97&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bcf\u4e2a\u5927\u4f1a&#xff08;\u6bcf\u4e2a\u5934&#xff09;\u4e13\u6ce8\u4e8e\u5b66\u4e60\u4e00\u79cd\u7c7b\u578b\u7684\u5173\u7cfb&#xff08;\u5982\u8bed\u6cd5\u3001\u8bed\u4e49\u3001\u6307\u4ee3\u7b49&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6700\u540e&#xff0c;\u628a8\u4e2a\u4e13\u5bb6\u5206\u522b\u7ed9\u201c\u82f9\u679c\u201d\u66f4\u65b0\u76848\u4e2a\u65b0\u8eab\u4efd&#xff0c;\u62fc\u63a5\u5728\u4e00\u8d77&#xff0c;\u5f62\u6210\u4e00\u4e2a\u4fe1\u606f\u91cf\u6781\u5927\u3001\u89c6\u89d2\u6781\u5176\u4e30\u5bcc\u7684 \u201c\u7ec8\u6781\u5347\u7ea7\u7248\u8eab\u4efd\u724c\u201d\u3002<\/p>\n<\/li>\n<h2>\u7b2c\u56db\u90e8\u5206&#xff1a;\u4e3a\u4ec0\u4e48\u5b83\u8fd9\u4e48\u5389\u5bb3&#xff1f;<\/h2>\n<ul>\n<li>\n<p>\u4e00\u6b65\u5230\u4f4d&#xff0c;\u770b\u6e05\u5168\u5c40&#xff1a;\u4e0d\u50cf\u8bfb\u53e5\u5b50\u8981\u4e00\u4e2a\u5b57\u4e00\u4e2a\u5b57\u8bfb&#xff08;\u50cfRNN&#xff09;&#xff0c;\u81ea\u6ce8\u610f\u529b\u8ba9\u6bcf\u4e2a\u8bcd\u77ac\u95f4\u548c\u5168\u53e5\u6240\u6709\u8bcd\u201c\u4ea4\u6362\u773c\u795e\u201d&#xff0c;\u7acb\u523b\u5efa\u7acb\u5168\u5c40\u7406\u89e3\u3002<\/p>\n<\/li>\n<li>\n<p>\u5e76\u884c\u9ad8\u6548&#xff1a;\u56e0\u4e3a\u6bcf\u4e2a\u5609\u5bbe\u66f4\u65b0\u81ea\u5df1\u7684\u8fc7\u7a0b\u662f\u72ec\u7acb\u7684&#xff0c;\u6240\u4ee5\u53ef\u4ee5\u540c\u65f6\u8fdb\u884c&#xff0c;\u8ba1\u7b97\u901f\u5ea6\u98de\u5feb\u3002<\/p>\n<\/li>\n<li>\n<p>\u5173\u7cfb\u53ef\u89c6\u5316&#xff1a;\u6211\u4eec\u53ef\u4ee5\u753b\u51fa\u90a3\u4e2a\u201c\u5173\u7cfb\u6743\u91cd\u8868\u201d&#xff08;\u6ce8\u610f\u529b\u70ed\u56fe&#xff09;&#xff0c;\u770b\u5230\u6a21\u578b\u5728\u7406\u89e3\u201c\u82f9\u679c\u201d\u65f6&#xff0c;\u5230\u5e95\u6709\u591a\u5173\u6ce8\u201c\u597d\u5403\u201d\u548c\u201c\u4e09\u65a4\u201d&#xff0c;\u8fd9\u5e26\u6765\u4e86\u53ef\u89e3\u91ca\u6027\u3002<\/p>\n<\/li>\n<li>\n<p>\u89e3\u51b3\u957f\u8ddd\u79bb\u4f9d\u8d56&#xff1a;\u5373\u4f7f\u53e5\u5b50\u5f88\u957f&#xff0c;\u201c\u82f9\u679c\u201d\u5728\u53e5\u9996&#xff0c;\u201c\u597d\u5403\u201d\u5728\u53e5\u5c3e&#xff0c;\u5b83\u4eec\u4e5f\u80fd\u76f4\u63a5\u5efa\u7acb\u5f3a\u8fde\u63a5&#xff0c;\u4e0d\u4f1a\u88ab\u4e2d\u95f4\u8bcd\u5e72\u6270\u3002<\/p>\n<\/li>\n<\/ul>\n<h2>RNN&#xff08;\u5faa\u73af\u795e\u7ecf\u7f51\u7edc&#xff09;<\/h2>\n<p>RNN\u662f\u4e00\u79cd\u62e5\u6709\u201c\u8bb0\u5fc6\u201d\u7684\u795e\u7ecf\u7f51\u7edc&#xff0c;\u4e13\u95e8\u8bbe\u8ba1\u7528\u6765\u5904\u7406\u5e8f\u5217\u6570\u636e\u3002\u5b83\u7684\u6838\u5fc3\u7279\u70b9\u662f&#xff1a;\u5f53\u524d\u65f6\u523b\u7684\u8f93\u51fa\u4e0d\u4ec5\u53d6\u51b3\u4e8e\u5f53\u524d\u7684\u8f93\u5165&#xff0c;\u8fd8\u53d6\u51b3\u4e8e\u7f51\u7edc\u8fc7\u53bb\u6240\u6709\u65f6\u523b\u7684\u201c\u72b6\u6001\u201d\u3002<\/p>\n<h4>\u4e3a\u4ec0\u4e48\u9700\u8981RNN&#xff1f;\u2014\u2014 \u5e8f\u5217\u6570\u636e\u7684\u6311\u6218<\/h4>\n<p>\u5f88\u591a\u6570\u636e\u662f\u6709\u987a\u5e8f\u7684\u3001\u524d\u540e\u5173\u8054\u7684&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u81ea\u7136\u8bed\u8a00&#xff1a;\u201c\u6211 \u5403 \u82f9\u679c\u201d&#xff0c; \u201c\u82f9\u679c \u5403 \u6211\u201d \u987a\u5e8f\u4e0d\u540c&#xff0c;\u610f\u601d\u5929\u5dee\u5730\u522b\u3002<\/p>\n<\/li>\n<li>\n<p>\u65f6\u95f4\u5e8f\u5217&#xff1a;\u80a1\u7968\u4ef7\u683c\u3001\u5929\u6c14\u6570\u636e\u3001\u8bed\u97f3\u4fe1\u53f7\u3002<\/p>\n<\/li>\n<li>\n<p>\u89c6\u9891\u6d41&#xff1a;\u8fde\u7eed\u7684\u56fe\u50cf\u5e27\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5bf9\u4e8e\u8fd9\u79cd\u6570\u636e&#xff0c;\u4f20\u7edf\u7684\u795e\u7ecf\u7f51\u7edc&#xff08;\u5982\u5168\u8fde\u63a5\u7f51\u7edc\u3001CNN&#xff09;\u5b58\u5728\u5de8\u5927\u7f3a\u9677&#xff1a;<\/p>\n<li>\n<p>\u65e0\u6cd5\u5904\u7406\u53ef\u53d8\u957f\u5ea6\u8f93\u5165&#xff1a;\u56fa\u5b9a\u5927\u5c0f\u7684\u7f51\u7edc\u96be\u4ee5\u5904\u7406\u4e0d\u540c\u957f\u5ea6\u7684\u53e5\u5b50\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e0\u89c6\u987a\u5e8f\u4fe1\u606f&#xff1a;\u5982\u679c\u628a\u4e00\u53e5\u8bdd\u7684\u5355\u8bcd\u6253\u4e71\u8f93\u5165&#xff0c;\u4f20\u7edf\u7f51\u7edc\u5f97\u5230\u7684\u7ed3\u679c\u53ef\u80fd\u4e00\u6837&#xff0c;\u56e0\u4e3a\u5b83\u6ca1\u6709\u201c\u987a\u5e8f\u201d\u7684\u6982\u5ff5\u3002<\/p>\n<\/li>\n<li>\n<p>\u65e0\u6cd5\u5171\u4eab\u5e8f\u5217\u4e2d\u7684\u6a21\u5f0f&#xff1a;\u5b66\u4e60\u5230\u201c\u5728\u2018\u6211\u2019\u540e\u9762\u51fa\u73b0\u2018\u5403\u2019\u662f\u5408\u7406\u7684\u201d\u8fd9\u4e2a\u89c4\u5f8b&#xff0c;\u65e0\u6cd5\u5e94\u7528\u5230\u53e5\u5b50\u7684\u5176\u4ed6\u4f4d\u7f6e\u3002<\/p>\n<\/li>\n<p>RNN\u5c31\u662f\u4e3a\u4e86\u89e3\u51b3\u8fd9\u4e9b\u95ee\u9898\u800c\u751f\u7684\u3002<\/p>\n<\/p>\n<h4>RNN\u7684\u5de5\u4f5c\u539f\u7406&#xff1a;\u4e00\u4e2a\u5e26\u201c\u8bb0\u5fc6\u5305\u201d\u7684\u52a0\u5de5\u7ad9<\/h4>\n<p>\u6211\u4eec\u7528\u4e00\u4e2a\u7b80\u5316\u6a21\u578b\u6765\u89e3\u91ca\u3002\u5047\u8bbe\u6211\u4eec\u8981\u5904\u7406\u4e00\u53e5\u8bdd&#xff1a;\u201c\u6211\u7231\u4eba\u5de5\u667a\u80fd\u201d\u3002<\/p>\n<p>\u5173\u952e\u6982\u5ff5&#xff1a;<\/p>\n<ul>\n<li>\n<p>Xt&#xff1a; \u65f6\u95f4\u6b65 t\u7684\u8f93\u5165&#xff08;\u4f8b\u5982&#xff0c;\u7b2ct\u4e2a\u8bcd\u7684\u8bcd\u5411\u91cf&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>ht&#xff1a; \u65f6\u95f4\u6b65 t\u7684\u9690\u85cf\u72b6\u6001&#xff08;\u5c31\u662f\u90a3\u4e2a\u201c\u8bb0\u5fc6\u5305\u201d\u6216\u201c\u5de5\u4f5c\u7b14\u8bb0\u201d&#xff09;\u3002\u5b83\u627f\u8f7d\u4e86\u5230\u5f53\u524d\u65f6\u523b\u4e3a\u6b62&#xff0c;\u7f51\u7edc\u6240\u201c\u8bb0\u4f4f\u201d\u7684\u6240\u6709\u5386\u53f2\u4fe1\u606f\u3002<\/p>\n<\/li>\n<li>\n<p>Yt&#xff1a; \u65f6\u95f4\u6b65 t\u7684\u8f93\u51fa&#xff08;\u4f8b\u5982&#xff0c;\u9884\u6d4b\u7684\u4e0b\u4e00\u4e2a\u8bcd&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u6838\u5fc3\u516c\u5f0f&#xff08;\u53ef\u4ee5\u76f4\u89c2\u7406\u89e3&#xff09;&#xff1a;\u65b0\u7684\u8bb0\u5fc6 (ht) &#061; \u6fc0\u6d3b\u51fd\u6570( [\u65e7\u7684\u8bb0\u5fc6(ht-1), \u65b0\u7684\u8f93\u5165(Xt)] * \u6743\u91cd &#043; \u504f\u7f6e )<\/p>\n<p style=\"text-align:center\"><img decoding=\"async\" alt=\"\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024147-696c486b4814a.jpg\" \/><\/p>\n<p>\u8fd9\u610f\u5473\u7740&#xff0c;\u5728\u6bcf\u4e2a\u65f6\u523b&#xff0c;RNN\u90fd\u4f1a\u505a\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\n<p>\u878d\u5408&#xff1a;\u5c06\u65b0\u7684\u8f93\u5165(Xt)\u200b \u548c\u4e0a\u4e00\u523b\u7684\u8bb0\u5fc6(ht-1)\u200b \u7ed3\u5408\u8d77\u6765\u3002<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0&#xff1a;\u4ea7\u751f\u4e00\u4e2a\u65b0\u7684\u8bb0\u5fc6(ht)&#xff0c;\u5e76&#xff08;\u53ef\u9009\u5730&#xff09;\u4ea7\u751f\u4e00\u4e2a\u8f93\u51fa(Yt)\u3002<\/p>\n<\/li>\n<h3>RNN\u7684\u81f4\u547d\u7f3a\u9677<\/h3>\n<h5>\u6838\u5fc3\u7f3a\u9677&#xff1a;\u957f\u671f\u4f9d\u8d56\u95ee\u9898&#xff08;\u201c\u9057\u5fd8\u75c7\u201d&#xff09;<\/h5>\n<p>RNN\u7684\u201c\u8bb0\u5fc6\u201d ht\u662f\u901a\u8fc7\u53cd\u590d\u8fed\u4ee3\u8ba1\u7b97\u5f97\u5230\u7684\u3002\u5728\u53cd\u5411\u4f20\u64ad\u8bad\u7ec3\u65f6&#xff0c;\u68af\u5ea6&#xff08;\u7528\u4e8e\u66f4\u65b0\u6743\u91cd\u7684\u4fe1\u53f7&#xff09;\u9700\u8981\u6cbf\u7740\u65f6\u95f4\u6b65\u4e00\u6b65\u6b65\u56de\u6eaf\u3002<\/p>\n<ul>\n<li>\n<p>\u68af\u5ea6\u6d88\u5931&#xff1a;\u5f53\u5e8f\u5217\u5f88\u957f\u65f6&#xff0c;\u68af\u5ea6\u4f1a\u50cf\u8fde\u4e58\u4e00\u4e2a\u5c0f\u4e8e1\u7684\u5c0f\u6570\u4e00\u6837&#xff0c;\u6307\u6570\u7ea7\u5730\u7f29\u5c0f\u5230\u8fd1\u4e4e\u4e3a0\u3002\u5bfc\u81f4\u7f51\u7edc\u65e0\u6cd5\u5b66\u4e60\u5230\u957f\u8ddd\u79bb\u7684\u4f9d\u8d56\u5173\u7cfb\u3002\u65e9\u671f\u7684\u8bb0\u5fc6&#xff08;h1&#xff09;\u5bf9\u540e\u671f&#xff08;h100&#xff09;\u7684\u5f71\u54cd\u5fae\u4e4e\u5176\u5fae\u3002<\/p>\n<\/li>\n<li>\n<p>\u68af\u5ea6\u7206\u70b8&#xff1a;\u76f8\u5bf9\u5c11\u89c1&#xff0c;\u68af\u5ea6\u6307\u6570\u7ea7\u589e\u5927&#xff0c;\u5bfc\u81f4\u8bad\u7ec3\u4e0d\u7a33\u5b9a\u3002<\/p>\n<\/li>\n<\/ul>\n<p>&#xff08;RNN\u4e0d\u5229\u4e8e\u957f\u5e8f\u5217&#xff09;<\/p>\n<\/p>\n<h2>LSTM&#xff08;\u957f\u77ed\u671f\u8bb0\u5fc6\u7f51\u7edc&#xff09;<\/h2>\n<h4>\u6545\u4e8b\u80cc\u666f&#xff1a;\u666e\u901aRNN\u7684\u201c\u5065\u5fd8\u75c7\u201d\u95ee\u9898<\/h4>\n<p>\u60f3\u8c61\u4e00\u4e2a\u666e\u901a\u5458\u5de5&#xff08;\u6807\u51c6RNN&#xff09;&#xff0c;\u4ed6\u53ea\u6709\u4e00\u5f20\u5de5\u4f5c\u7b14\u8bb0&#xff08;\u9690\u85cf\u72b6\u6001h&#xff09;\u3002\u6bcf\u5929&#xff0c;\u4ed6&#xff1a;<\/p>\n<li>\n<p>\u6536\u5230\u65b0\u4efb\u52a1&#xff08;\u8f93\u5165X&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u5728\u65e7\u7b14\u8bb0&#xff08;h-1&#xff09;\u200b \u4e0a\u76f4\u63a5\u4fee\u6539&#xff0c;\u52a0\u5165\u65b0\u4fe1\u606f&#xff0c;\u5f62\u6210\u65b0\u7b14\u8bb0&#xff08;h&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u6839\u636e\u65b0\u7b14\u8bb0\u6c47\u62a5\u5de5\u4f5c&#xff08;\u8f93\u51faY&#xff09;\u3002<\/p>\n<\/li>\n<p>\u95ee\u9898\u6765\u4e86&#xff1a;\u7b14\u8bb0\u5c31\u4e00\u5f20\u7eb8&#xff0c;\u6bcf\u5929\u6d82\u6d82\u6539\u6539\u3002\u4e00\u5468\u540e&#xff0c;\u4e0a\u5468\u4e00\u7684\u91cd\u8981\u4fe1\u606f\u5df2\u7ecf\u88ab\u8986\u76d6\u5f97\u6a21\u7cca\u4e0d\u6e05\u4e86\u3002\u8fd9\u5c31\u662fRNN\u7684\u201c\u68af\u5ea6\u6d88\u5931\u201d\u2014\u2014\u65e0\u6cd5\u8bb0\u4f4f\u957f\u671f\u7684\u3001\u91cd\u8981\u7684\u4fe1\u606f\u3002<\/p>\n<h3>LSTM\u7684\u89e3\u51b3\u65b9\u6848&#xff1a;\u4e00\u4e2a\u4e09\u6743\u5206\u7acb\u7684\u667a\u80fd\u5de5\u4f5c\u7cfb\u7edf<\/h3>\n<p>LSTM\u8bf4&#xff1a;\u4e0d\u884c&#xff0c;\u6211\u4eec\u9700\u8981\u4e00\u4e2a\u66f4\u79d1\u5b66\u7684\u7cfb\u7edf\u3002\u4e8e\u662f&#xff0c;\u5b83\u7ed9\u81ea\u5df1\u914d\u5907\u4e86\u4e09\u6837\u6cd5\u5b9d&#xff0c;\u6784\u6210\u4e86\u4e00\u4e2a\u667a\u80fd\u5de5\u4f5c\u6d41&#xff1a;<\/p>\n<li>\n<p>\u6838\u5fc3\u5de5\u4f5c\u7b14\u8bb0&#xff08;\u7ec6\u80de\u72b6\u6001C&#xff09;&#xff1a;\u50cf\u4e00\u5757\u53ef\u64e6\u5199\u7684\u767d\u677f&#xff0c;\u8d2f\u7a7f\u6574\u4e2a\u5de5\u4f5c\u5468\u671f\u3002\u5b83\u4e13\u95e8\u7528\u6765\u8bb0\u5f55\u9700\u8981\u957f\u671f\u8bb0\u5fc6\u7684\u6838\u5fc3\u8981\u70b9\u3002\u4fee\u6539\u5b83\u9700\u8981\u4e25\u683c\u7684\u6d41\u7a0b\u3002<\/p>\n<\/li>\n<li>\n<p>\u6bcf\u65e5\u8349\u7a3f\u7eb8&#xff08;\u9690\u85cf\u72b6\u6001h&#xff09;&#xff1a;\u6bcf\u5929\u5bf9\u5916\u6c47\u62a5\u7684\u6458\u8981\u3002\u5b83\u4ece\u6838\u5fc3\u7b14\u8bb0\u4e2d\u63d0\u53d6\u5f53\u5929\u76f8\u5173\u7684\u4fe1\u606f\u751f\u6210\u3002<\/p>\n<\/li>\n<li>\n<p>\u4e09\u4f4d\u667a\u80fd\u79d8\u4e66&#xff08;\u4e09\u9053\u95e8&#xff09;&#xff1a;\u51b3\u5b9a\u4fe1\u606f\u5982\u4f55\u6d41\u5165\u3001\u7559\u5b58\u548c\u6d41\u51fa\u8fd9\u4e2a\u7cfb\u7edf\u7684\u95e8\u63a7\u673a\u5236\u3002\u8fd9\u662fLSTM\u7684\u7075\u9b42\u3002<\/p>\n<\/li>\n<h5>\u4e09\u4f4d\u79d8\u4e66&#xff08;\u95e8&#xff09;\u5206\u522b\u662f&#xff1a;<\/h5>\n<ul>\n<li>\n<p>\u9057\u5fd8\u95e8&#xff1a;\u201c\u54ea\u4e9b\u65e7\u4fe1\u606f\u8be5\u6254\u6389\u4e86&#xff1f;\u201d<\/p>\n<ul>\n<li>\n<p>\u5b83\u67e5\u770b\u4e0a\u4e00\u4efd\u5bf9\u5916\u6458\u8981&#xff08;h-1&#xff09;\u200b \u548c\u65b0\u4efb\u52a1&#xff08;X&#xff09;&#xff0c;\u7136\u540e\u51b3\u5b9a\u5728\u6838\u5fc3\u7b14\u8bb0&#xff08;C-1&#xff09;\u200b \u4e0a\u64e6\u9664\u54ea\u4e9b\u8fc7\u65f6\u3001\u65e0\u7528\u7684\u4fe1\u606f\u3002\u8f93\u51fa\u4e00\u4e2a0\u52301\u4e4b\u95f4\u7684\u6570&#xff08;0\u8868\u793a\u201c\u5168\u5fd8\u201d&#xff0c;1\u8868\u793a\u201c\u5168\u7559\u201d&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8f93\u5165\u95e8&#xff1a;\u201c\u54ea\u4e9b\u65b0\u4fe1\u606f\u503c\u5f97\u8bb0\u5165\u6838\u5fc3\u7b14\u8bb0&#xff1f;\u201d<\/p>\n<ul>\n<li>\n<p>\u5b83\u6709\u4e24\u90e8\u5206\u5de5\u4f5c&#xff1a;<\/p>\n<li>\n<p>\u8f93\u5165\u95e8\u5c42&#xff1a;\u5224\u65ad\u65b0\u4efb\u52a1&#xff08;X&#xff09;\u200b \u7684\u54ea\u4e9b\u90e8\u5206\u91cd\u8981&#xff0c;\u503c\u5f97\u8bb0\u5f55\u3002<\/p>\n<\/li>\n<li>\n<p>\u5019\u9009\u503c\u5c42&#xff1a;\u751f\u6210\u4e00\u4efd\u5907\u9009\u66f4\u65b0\u5185\u5bb9&#xff0c;\u4e5f\u5c31\u662f\u65b0\u4fe1\u606f\u5e94\u8be5\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<\/li>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u8f93\u51fa\u95e8&#xff1a;\u201c\u4eca\u5929\u8be5\u5bf9\u5916\u6c47\u62a5\u4ec0\u4e48&#xff1f;\u201d<\/p>\n<ul>\n<li>\n<p>\u5b83\u51b3\u5b9a\u57fa\u4e8e\u66f4\u65b0\u540e\u7684\u6838\u5fc3\u7b14\u8bb0&#xff08;C&#xff09;&#xff0c;\u8981\u751f\u6210\u4e00\u4efd\u600e\u6837\u7684\u5bf9\u5916\u6458\u8981&#xff08;h&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h3>\u5de5\u4f5c\u6d41\u7a0b&#xff1a;\u4e00\u6b65\u4e00\u6b65\u770bLSTM\u5982\u4f55\u201c\u529e\u516c\u201d<\/h3>\n<p>\u5047\u8bbe\u6211\u4eec\u5728\u5904\u7406\u53e5\u5b50&#xff1a;\u201c\u6211 \u5728 \u6cd5\u56fd \u5b66\u4e60 \u4e86 \u5341\u5e74 \u6cd5\u8bed\u201d&#xff0c; \u76ee\u6807\u662f\u7406\u89e3\u6574\u4e2a\u53e5\u5b50\u3002\u73b0\u5728\u6211\u4eec\u770bLSTM\u5355\u5143\u5982\u4f55\u5904\u7406\u201c\u6cd5\u8bed\u201d\u8fd9\u4e2a\u8bcd\u3002<\/p>\n<p>\u5f53\u524d\u65f6\u523b\u8f93\u5165&#xff1a;Xt &#061; \u201c\u6cd5\u8bed\u201d<\/p>\n<p>\u4e0a\u4e00\u65f6\u523b\u7684&#xff1a;\u5bf9\u5916\u6458\u8981 h-1&#xff0c; \u6838\u5fc3\u7b14\u8bb0 C-1<\/p>\n<p>\u7b2c\u4e00\u6b65&#xff1a;\u9057\u5fd8\u95e8\u51b3\u5b9a\u201c\u64e6\u9664\u201d\u4ec0\u4e48<\/p>\n<ul>\n<li>\n<p>\u79d8\u4e66\u770b\u5230&#xff1a;\u4e4b\u524d\u7684\u6458\u8981&#xff08;h-1&#xff09;\u63d0\u5230\u4e86\u201c\u5728\u6cd5\u56fd\u201d\u3001\u201c\u5b66\u4e60\u5341\u5e74\u201d&#xff0c;\u65b0\u8bcd\u662f\u201c\u6cd5\u8bed\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u79d8\u4e66\u51b3\u7b56&#xff1a;\u6838\u5fc3\u7b14\u8bb0&#xff08;C-1&#xff09;\u91cc\u8bb0\u5f55\u7684\u201c\u6211\u201d\u3001\u201c\u5728\u201d\u8fd9\u4e9b\u4fe1\u606f\u867d\u7136\u5bf9\u7406\u89e3\u6574\u4e2a\u53e5\u5b50\u80cc\u666f\u6709\u7528&#xff0c;\u4f46\u548c\u5f53\u524d\u8981\u91cd\u70b9\u7406\u89e3\u201c\u6cd5\u8bed\u201d\u7684\u76f4\u63a5\u5173\u8054\u6027\u964d\u4f4e\u4e86\u3002\u4f46\u5b83\u7edd\u5bf9\u4e0d\u4f1a\u64e6\u9664\u201c\u6cd5\u56fd\u201d\u3001\u201c\u5b66\u4e60\u201d\u3001\u201c\u5341\u5e74\u201d&#xff0c;\u56e0\u4e3a\u8fd9\u4e9b\u662f\u7406\u89e3\u201c\u6cd5\u8bed\u201d\u7684\u5173\u952e\u957f\u671f\u80cc\u666f\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u679c&#xff1a;\u751f\u6210\u4e00\u4e2a\u9057\u5fd8\u5411\u91cf ft&#xff0c;\u51c6\u5907\u64e6\u9664\u4e00\u4e9b\u6b21\u8981\u7684\u957f\u671f\u4fe1\u606f\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u7b2c\u4e8c\u6b65&#xff1a;\u8f93\u5165\u95e8\u51b3\u5b9a\u201c\u5199\u5165\u201d\u4ec0\u4e48<\/p>\n<ul>\n<li>\n<p>\u8f93\u5165\u95e8\u5c42\u79d8\u4e66\u770b\u5230\u201c\u6cd5\u8bed\u201d\u8fd9\u4e2a\u8bcd&#xff0c;\u5224\u65ad\u5b83\u975e\u5e38\u91cd\u8981&#xff0c;\u5fc5\u987b\u5199\u5165\u6838\u5fc3\u7b14\u8bb0\u3002<\/p>\n<\/li>\n<li>\n<p>\u5019\u9009\u503c\u5c42\u79d8\u4e66\u751f\u6210\u201c\u6cd5\u8bed\u201d\u8fd9\u4e2a\u8bcd\u7684\u6838\u5fc3\u542b\u4e49\u8868\u793a&#xff0c;\u6bd4\u5982\u201c\u4e00\u79cd\u8bed\u8a00\u201d\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u679c&#xff1a;\u5f97\u5230\u8f93\u5165\u5411\u91cf it&#xff08;\u51b3\u5b9a\u5199\u591a\u5c11&#xff09;\u548c\u5019\u9009\u503c ~Ct&#xff08;\u51b3\u5b9a\u5199\u4ec0\u4e48&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u7b2c\u4e09\u6b65&#xff1a;\u66f4\u65b0\u6838\u5fc3\u7b14\u8bb0<\/p>\n<ul>\n<li>\n<p>\u8fd9\u662f\u6700\u5173\u952e\u7684\u4e00\u6b65&#xff01;\u65e7\u6838\u5fc3\u7b14\u8bb0C-1\u200b \u5728\u9057\u5fd8\u95e8\u7684\u63a7\u5236\u4e0b\u88ab\u6709\u9009\u62e9\u5730\u64e6\u9664\u3002<\/p>\n<\/li>\n<li>\n<p>\u65b0\u4fe1\u606f&#xff08;\u5019\u9009\u503c&#xff09;\u200b \u5728\u8f93\u5165\u95e8\u7684\u63a7\u5236\u4e0b\u88ab\u6709\u9009\u62e9\u5730\u52a0\u5165\u3002<\/p>\n<\/li>\n<li>\n<p>\u66f4\u65b0\u516c\u5f0f&#xff08;\u76f4\u89c2\u7248&#xff09;&#xff1a;\u65b0\u6838\u5fc3\u7b14\u8bb0 Ct &#061; \u9057\u5fd8\u95e8 * \u65e7\u7b14\u8bb0 &#043; \u8f93\u5165\u95e8 * \u65b0\u4fe1\u606f<\/p>\n<ul>\n<li>\n<p>\u5373&#xff1a;Ct &#061; ft * C-1 &#043; it * ~Ct<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u7ed3\u679c&#xff1a;\u73b0\u5728&#xff0c;\u6838\u5fc3\u7b14\u8bb0Ct\u4e0a\u6e05\u6670\u5730\u4fdd\u7559\u7740\u201c\u6cd5\u56fd\u201d\u3001\u201c\u5341\u5e74\u201d\u3001\u201c\u5b66\u4e60\u201d\u8fd9\u4e9b\u957f\u671f\u5173\u952e\u4fe1\u606f&#xff0c;\u5e76\u65b0\u52a0\u5165\u4e86\u201c\u6cd5\u8bed\u201d\u3002\u201c\u6211\u5728\u201d\u8fd9\u4e9b\u65e9\u671f\u4fe1\u606f\u53ef\u80fd\u88ab\u6de1\u5316\u4e86&#xff0c;\u4f46\u5173\u952e\u7684\u957f\u671f\u4e0a\u4e0b\u6587\u88ab\u5b8c\u7f8e\u4fdd\u7559\u4e86\u4e0b\u6765\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u7b2c\u56db\u6b65&#xff1a;\u8f93\u51fa\u95e8\u51b3\u5b9a\u201c\u6c47\u62a5\u201d\u4ec0\u4e48<\/p>\n<ul>\n<li>\n<p>\u79d8\u4e66\u57fa\u4e8e\u5168\u65b0\u7684\u6838\u5fc3\u7b14\u8bb0&#xff08;Ct&#xff09;\u200b \u548c\u5f53\u524d\u8f93\u5165&#xff08;Xt&#xff09;&#xff0c;\u51b3\u5b9a\u4eca\u5929\u8f93\u51fa\u4ec0\u4e48\u6837\u7684\u6458\u8981\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b83\u7528tanh\u51fd\u6570\u5c06\u6838\u5fc3\u7b14\u8bb0\u201c\u6fc0\u6d3b\u201d\u4e00\u4e0b&#xff0c;\u7136\u540e\u8fc7\u6ee4\u51fa\u4e0e\u5f53\u524d\u6700\u76f8\u5173\u7684\u90e8\u5206\u3002<\/p>\n<\/li>\n<li>\n<p>\u7ed3\u679c&#xff1a;\u751f\u6210\u6b64\u523b\u7684\u5bf9\u5916\u6458\u8981 ht\u3002\u8fd9\u4e2aht\u5305\u542b\u4e86\u7406\u89e3\u201c\u6cd5\u8bed\u201d\u4e00\u8bcd\u6240\u9700\u7684\u5168\u90e8\u7cbe\u534e\u4e0a\u4e0b\u6587&#xff1a;\u5728\u6cd5\u56fd\u3001\u5b66\u4e86\u5341\u5e74\u3001\u4e00\u79cd\u8bed\u8a00\u3002\u8fd9\u4e2aht\u4f1a\u4f20\u9012\u7ed9\u4e0b\u4e00\u4e2a\u5355\u5143&#xff0c;\u4e5f\u4f1a\u7528\u4e8e\u751f\u6210\u5f53\u524d\u65f6\u523b\u7684\u8f93\u51fa&#xff08;\u5982\u9884\u6d4b\u4e0b\u4e00\u4e2a\u8bcd&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e3a\u4ec0\u4e48LSTM\u80fd\u89e3\u51b3\u957f\u671f\u4f9d\u8d56&#xff1f;<\/h3>\n<li>\n<p>\u6838\u5fc3\u7b14\u8bb0\u7684\u201c\u9ad8\u901f\u516c\u8def\u201d&#xff1a;\u6838\u5fc3\u72b6\u6001C\u7684\u66f4\u65b0\u4e3b\u8981\u662f\u7ebf\u6027\u64cd\u4f5c&#xff08;\u52a0\u548c\u4e58&#xff09;\u3002\u8fd9\u4f7f\u5f97\u68af\u5ea6\u5728\u53cd\u5411\u4f20\u64ad\u65f6\u53ef\u4ee5\u5e73\u7f13\u5730\u6d41\u52a8&#xff0c;\u4e0d\u6613\u6d88\u5931\u3002\u4fe1\u606f&#xff08;\u5982\u201c\u6cd5\u56fd\u201d&#xff09;\u53ef\u4ee5\u8f7b\u677e\u5730\u5728\u8fd9\u6761\u9ad8\u901f\u516c\u8def\u4e0a\u201c\u884c\u9a76\u201d\u5f88\u957f\u7684\u8ddd\u79bb\u800c\u4e0d\u88ab\u635f\u8017\u3002<\/p>\n<\/li>\n<li>\n<p>\u95e8\u7684\u7cbe\u5999\u63a7\u5236&#xff1a;\u4e09\u9053\u95e8\u90fd\u662f\u53ef\u5b66\u4e60\u7684\u3002\u7f51\u7edc\u901a\u8fc7\u8bad\u7ec3\u5b66\u4f1a&#xff1a;\u5bf9\u4e8e\u957f\u671f\u91cd\u8981\u7684\u4fe1\u606f&#xff08;\u5982\u201c\u6cd5\u56fd\u201d&#xff09;&#xff0c;\u9057\u5fd8\u95e8\u59cb\u7ec8\u4fdd\u6301\u63a5\u8fd11&#xff08;\u5b8c\u5168\u4fdd\u7559&#xff09;&#xff0c;\u8f93\u5165\u95e8\u4e5f\u5c0f\u5fc3\u66f4\u65b0\u3002\u800c\u5bf9\u4e8e\u6b21\u8981\u7684\u8fc7\u6e21\u4fe1\u606f&#xff0c;\u9057\u5fd8\u95e8\u4f1a\u5c06\u5176\u6e05\u9664\u3002<\/p>\n<\/li>\n<p>\u6bd4\u55bb&#xff1a;\u5c31\u50cf\u4e00\u4e2a\u4f5c\u5bb6\u5728\u5199\u957f\u7bc7\u5c0f\u8bf4\u3002\u4ed6\u6709\u4e00\u4e2a\u4e3b\u7ebf\u5927\u7eb2&#xff08;\u7ec6\u80de\u72b6\u6001C&#xff09;&#xff0c;\u8bb0\u5f55\u7740\u6838\u5fc3\u60c5\u8282\u548c\u4eba\u7269\u8bbe\u5b9a\u3002\u4ed6\u8fd8\u6709\u6bcf\u65e5\u8349\u7a3f&#xff08;\u9690\u85cf\u72b6\u6001h&#xff09;\u3002\u6bcf\u5199\u65b0\u4e00\u7ae0&#xff0c;\u4ed6\u4f1a&#xff1a;<\/p>\n<ul>\n<li>\n<p>&#xff08;\u9057\u5fd8\u95e8&#xff09;\u51b3\u5b9a\u5927\u7eb2\u91cc\u54ea\u4e9b\u65e9\u671f\u652f\u7ebf\u60c5\u8282\u53ef\u4ee5\u6536\u5c3e\u4e86\u3002<\/p>\n<\/li>\n<li>\n<p>&#xff08;\u8f93\u5165\u95e8&#xff09;\u51b3\u5b9a\u65b0\u4e00\u7ae0\u7684\u91cd\u8981\u60c5\u8282&#xff0c;\u5e76\u5199\u5165\u5927\u7eb2\u3002<\/p>\n<\/li>\n<li>\n<p>&#xff08;\u8f93\u51fa\u95e8&#xff09;\u6839\u636e\u6700\u65b0\u5927\u7eb2&#xff0c;\u5199\u51fa\u5f53\u524d\u8fd9\u4e00\u7ae0\u7684\u8be6\u7ec6\u5185\u5bb9\u3002<\/p>\n<p>\u5927\u7eb2\u4fdd\u8bc1\u4e86\u6545\u4e8b\u7684\u6838\u5fc3\u6846\u67b6&#xff08;\u957f\u671f\u4f9d\u8d56&#xff09;\u4ece\u5934\u5230\u5c3e\u8fde\u8d2f\u4e00\u81f4\u3002<\/p>\n<\/li>\n<\/ul>\n<h3>\u4e00\u4e2aLSTM\u5355\u5143\u7684\u5185\u90e8\u7ed3\u6784\u53ef\u4ee5\u7b80\u5316\u5982\u4e0b&#xff1a;<\/h3>\n<p>\u8f93\u5165&#xff1a; [\u65e7\u7684\u6458\u8981h-1&#xff0c; \u65b0\u4efb\u52a1Xt]<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2193<br \/>\n\u00a0 \u00a0 \u00a0 |&#8212;-\u9057\u5fd8\u95e8&#8212;-| (\u51b3\u5b9a\u4ece\u65e7\u7b14\u8bb0C-1\u4e2d\u5fd8\u6389\u5565)<br \/>\n\u00a0 \u00a0 \u00a0 |&#8212;-\u8f93\u5165\u95e8&#8212;-| (\u51b3\u5b9a\u65b0\u4fe1\u606f~Ct\u54ea\u4e9b\u91cd\u8981)<br \/>\n\u00a0 \u00a0 \u00a0 |&#8212;-\u8f93\u51fa\u95e8&#8212;-| (\u51b3\u5b9a\u65b0\u6458\u8981ht\u8f93\u51fa\u5565)<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2193<br \/>\n\u65b0\u7b14\u8bb0 Ct &#061; \u9057\u5fd8\u95e8*\u65e7\u7b14\u8bb0C-1 &#043; \u8f93\u5165\u95e8*\u65b0\u4fe1\u606f~Ct<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2193<br \/>\n\u65b0\u6458\u8981 ht &#061; \u8f93\u51fa\u95e8 * tanh(Ct)<br \/>\n\u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u2193<br \/>\n\u8f93\u51fa&#xff1a; [\u65b0\u6458\u8981ht&#xff0c; \u65b0\u7b14\u8bb0Ct] (\u4f20\u7ed9\u4e0b\u4e00\u65f6\u523b)<\/p>\n<p>\u5173\u952e\u521b\u65b0\u70b9\u603b\u7ed3&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u7ec6\u80de\u72b6\u6001&#xff1a; \u4fe1\u606f\u4f20\u9012\u7684\u201c\u9ad8\u901f\u516c\u8def\u201d&#xff0c;\u4fdd\u969c\u957f\u7a0b\u68af\u5ea6\u6d41\u52a8\u3002<\/p>\n<\/li>\n<li>\n<p>\u95e8\u63a7\u673a\u5236&#xff1a; \u5bf9\u4fe1\u606f\u6d41\u8fdb\u884c\u9009\u62e9\u6027\u63a7\u5236&#xff08;\u8bfb\u3001\u5199\u3001\u64e6\u9664&#xff09;&#xff0c;\u5b9e\u73b0\u4e86\u5bf9\u8bb0\u5fc6\u7684\u7cbe\u7ec6\u5316\u7ba1\u7406\u3002<\/p>\n<\/li>\n<li>\n<p>\u52a0\u6cd5\u66f4\u65b0&#xff1a; \u6838\u5fc3\u72b6\u6001\u7684\u66f4\u65b0\u662f\u201c\u65e7&#043;\u65b0\u201d&#xff0c;\u800c\u975e\u8986\u76d6&#xff0c;\u4fdd\u7559\u4e86\u5386\u53f2\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>LSTM\u7684\u7b80\u5316\u7248&#xff1a;GRU<\/h4>\n<p>GRU&#xff08;\u95e8\u63a7\u5faa\u73af\u5355\u5143&#xff09;\u662fLSTM\u7684\u6d41\u884c\u53d8\u4f53&#xff0c;\u5b83\u5c06\u9057\u5fd8\u95e8\u548c\u8f93\u5165\u95e8\u5408\u5e76\u4e3a\u4e00\u4e2a\u66f4\u65b0\u95e8&#xff0c;\u540c\u65f6\u5c06\u7ec6\u80de\u72b6\u6001C\u548c\u9690\u85cf\u72b6\u6001h\u5408\u5e76\u3002\u7ed3\u6784\u66f4\u7b80\u5355&#xff0c;\u53c2\u6570\u66f4\u5c11&#xff0c;\u8bad\u7ec3\u66f4\u5feb&#xff0c;\u6548\u679c\u5728\u591a\u6570\u60c5\u51b5\u4e0b\u4e0eLSTM\u76f8\u5f53\u3002\u4f60\u53ef\u4ee5\u628a\u5b83\u7406\u89e3\u4e3aLSTM\u7684\u201c\u7cbe\u7b80\u9ad8\u6548\u7248\u201d\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff0c;\u5b83\u662f\u73b0\u4ee3\u6df1\u5ea6\u5b66\u4e60&#xff0c;\u5c24\u5176\u662fTransformer\u6a21\u578b&#xff08;\u5982BERT\u3001GPT&#xff09;\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002\u7b2c\u4e00\u90e8\u5206&#xff1a;\u6838\u5fc3\u601d\u60f3\u2014\u2014\u5b83\u4e0d\u662f\u201c\u6ce8\u610f\u529b\u201d&#xff0c;\u662f\u201c\u5173\u8054\u529b\u201d\u666e\u901a\u6ce8\u610f\u529b&#xff1a;\u50cf\u624b\u7535\u7b52&#xff0c;\u4f60\u4e3b\u52a8\u628a\u5149&#xff08;\u6ce8\u610f\u529b&#xff09;\u6253\u5230\u67d0\u4e2a\u5730\u65b9\u3002\u6bd4\u5982\u201c\u6ce8\u610f\u542c\u90a3\u4e2a\u4eba\u7684\u53d1\u8a00\u201d\u3002\u81ea\u6ce8\u610f\u529b&#xff1a;\u50cf\u4e00\u5f20\u667a\u80fd\u5173\u7cfb\u7f51\u3002\u4f60\u540c\u65f6\u5206\u6790\u4f1a\u8bae\u5ba4\u91cc\u6bcf\u4e2a\u4eba\u4e0e\u5176\u4ed6\u4eba\u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u7136\u540e\u66f4<\/p>\n","protected":false},"author":2,"featured_media":61660,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50,224],"topic":[],"class_list":["post-61664","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50","tag-224"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/61664.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff0c;\u5b83\u662f\u73b0\u4ee3\u6df1\u5ea6\u5b66\u4e60&#xff0c;\u5c24\u5176\u662fTransformer\u6a21\u578b&#xff08;\u5982BERT\u3001GPT&#xff09;\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002\u7b2c\u4e00\u90e8\u5206&#xff1a;\u6838\u5fc3\u601d\u60f3\u2014\u2014\u5b83\u4e0d\u662f\u201c\u6ce8\u610f\u529b\u201d&#xff0c;\u662f\u201c\u5173\u8054\u529b\u201d\u666e\u901a\u6ce8\u610f\u529b&#xff1a;\u50cf\u624b\u7535\u7b52&#xff0c;\u4f60\u4e3b\u52a8\u628a\u5149&#xff08;\u6ce8\u610f\u529b&#xff09;\u6253\u5230\u67d0\u4e2a\u5730\u65b9\u3002\u6bd4\u5982\u201c\u6ce8\u610f\u542c\u90a3\u4e2a\u4eba\u7684\u53d1\u8a00\u201d\u3002\u81ea\u6ce8\u610f\u529b&#xff1a;\u50cf\u4e00\u5f20\u667a\u80fd\u5173\u7cfb\u7f51\u3002\u4f60\u540c\u65f6\u5206\u6790\u4f1a\u8bae\u5ba4\u91cc\u6bcf\u4e2a\u4eba\u4e0e\u5176\u4ed6\u4eba\u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u7136\u540e\u66f4\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/61664.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-18T02:41:48+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024145-696c4869ab9b5.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61664.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/61664.html\",\"name\":\"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-18T02:41:48+00:00\",\"dateModified\":\"2026-01-18T02:41:48+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/61664.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/61664.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/61664.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/61664.html","og_locale":"zh_CN","og_type":"article","og_title":"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u81ea\u6ce8\u610f\u529b\u673a\u5236&#xff0c;\u5b83\u662f\u73b0\u4ee3\u6df1\u5ea6\u5b66\u4e60&#xff0c;\u5c24\u5176\u662fTransformer\u6a21\u578b&#xff08;\u5982BERT\u3001GPT&#xff09;\u7684\u6838\u5fc3\u7ec4\u4ef6\u3002\u7b2c\u4e00\u90e8\u5206&#xff1a;\u6838\u5fc3\u601d\u60f3\u2014\u2014\u5b83\u4e0d\u662f\u201c\u6ce8\u610f\u529b\u201d&#xff0c;\u662f\u201c\u5173\u8054\u529b\u201d\u666e\u901a\u6ce8\u610f\u529b&#xff1a;\u50cf\u624b\u7535\u7b52&#xff0c;\u4f60\u4e3b\u52a8\u628a\u5149&#xff08;\u6ce8\u610f\u529b&#xff09;\u6253\u5230\u67d0\u4e2a\u5730\u65b9\u3002\u6bd4\u5982\u201c\u6ce8\u610f\u542c\u90a3\u4e2a\u4eba\u7684\u53d1\u8a00\u201d\u3002\u81ea\u6ce8\u610f\u529b&#xff1a;\u50cf\u4e00\u5f20\u667a\u80fd\u5173\u7cfb\u7f51\u3002\u4f60\u540c\u65f6\u5206\u6790\u4f1a\u8bae\u5ba4\u91cc\u6bcf\u4e2a\u4eba\u4e0e\u5176\u4ed6\u4eba\u4e4b\u95f4\u7684\u5173\u7cfb&#xff0c;\u7136\u540e\u66f4","og_url":"https:\/\/www.wsisp.com\/helps\/61664.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-18T02:41:48+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260118024145-696c4869ab9b5.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/61664.html","url":"https:\/\/www.wsisp.com\/helps\/61664.html","name":"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-18T02:41:48+00:00","dateModified":"2026-01-18T02:41:48+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/61664.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/61664.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/61664.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u81ea\u6ce8\u610f\u529b\u673a\u5236self-attention\u4e0eNLP\uff08\u4e3a\u4e86\u590d\u8bd5\u8bb0\u5f55\u4e00\u4e0b\uff09"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61664","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=61664"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/61664\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/61660"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=61664"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=61664"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=61664"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=61664"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}