{"id":2319,"date":"2025-06-11T12:16:05","date_gmt":"2025-06-11T06:46:05","guid":{"rendered":"https:\/\/texpertssolutions.com\/notes\/?p=2319"},"modified":"2026-10-21T11:47:35","modified_gmt":"2026-10-21T06:17:35","slug":"what-is-self-attention","status":"publish","type":"post","link":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/","title":{"rendered":"What Is Self-Attention in Deep Learning? Explained with Examples"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\ud83e\udd14 What is Self-Attention?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Self-Attention<\/strong> is a mechanism that allows a model to <strong>look at other parts of the same input<\/strong> when understanding a specific part.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udc40 Basically:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">Each word (or patch, in images) decides <strong>how much to pay attention<\/strong> to every other word in the same input \u2014 including itself!<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udcd6 Think of it like this:<br>When understanding the meaning of the word &#8220;<strong>bank<\/strong>&#8220;, the model looks at <strong>surrounding words<\/strong> to decide:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Is it \ud83c\udfe6 (money) or \ud83c\udfde\ufe0f (riverbank)?<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\udde0 Simple Example:<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Input sentence:<\/strong><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u201cThe cat sat on the mat.\u201d<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\">Let\u2019s focus on &#8220;<strong>cat<\/strong>&#8221; \ud83d\udc31<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">With <strong>self-attention<\/strong>, the model asks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u201cWhat do I need to know about the other words in the sentence to better understand \u2018cat\u2019?\u201d<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">It might give <strong>attention scores<\/strong> like:<\/p>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Word<\/th><th>Attention Score (to &#8220;cat&#8221;)<\/th><\/tr><\/thead><tbody><tr><td>The<\/td><td>0.1<\/td><\/tr><tr><td>cat<\/td><td>0.4 \u2705 (itself)<\/td><\/tr><tr><td>sat<\/td><td>0.3 \ud83e\ude91<\/td><\/tr><tr><td>on<\/td><td>0.05<\/td><\/tr><tr><td>the<\/td><td>0.05<\/td><\/tr><tr><td>mat<\/td><td>0.1 \ud83e\uddfa<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">So, &#8220;cat&#8221; mostly pays attention to itself and &#8220;sat&#8221; (because they\u2019re closely related). This helps the model <strong>understand relationships<\/strong> better \ud83e\udde9<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd0d Why Is It Called <em>Self<\/em>-Attention?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Because the model is <strong>attending to itself<\/strong> \u2014 each word (or input token) <strong>looks at all other tokens in the same sequence<\/strong>, including itself \ud83d\udd01<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">It\u2019s like each word is thinking:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\">\u201cHey, what do the rest of us mean together?\u201d \ud83e\udde0\ud83d\udcad<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83e\uddea Where Is Self-Attention Used?<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">\u2705 Transformers (BERT, GPT, etc.) \ud83e\udd16<br>\u2705 Vision Transformers (ViT) \ud83d\uddbc\ufe0f<br>\u2705 Text translation \ud83c\udf0d<br>\u2705 Chatbots &amp; summarization \u270d\ufe0f<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\u2699\ufe0f How It Works (Quick Look)<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Each word is turned into <strong>three vectors<\/strong>:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Query (Q)<\/strong> \u2753<\/li>\n\n\n\n<li><strong>Key (K)<\/strong> \ud83d\udddd\ufe0f<\/li>\n\n\n\n<li><strong>Value (V)<\/strong> \ud83d\udce6<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">The model computes attention like this:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>Attention(Q, K, V) = softmax(Q \u00d7 K\u1d40 \/ \u221ad) \u00d7 V\n<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\ud83d\udcca This math helps decide how much <strong>focus<\/strong> (weight) to give each word in the sentence.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udff0 Summary Table<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Feature<\/th><th>Self-Attention \ud83d\udd01<\/th><\/tr><\/thead><tbody><tr><td>\ud83e\udde0 Focuses on<\/td><td>All other tokens in the same input<\/td><\/tr><tr><td>\ud83d\udc41\ufe0f Learns<\/td><td>Word relationships &amp; context<\/td><\/tr><tr><td>\ud83d\udccd Used in<\/td><td>Transformers (text &amp; vision)<\/td><\/tr><tr><td>\ud83d\udca1 Helps with<\/td><td>Meaning, context, dependencies<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 TL;DR:<\/h3>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p class=\"wp-block-paragraph\"><strong>Self-Attention<\/strong> lets each word or token in a sequence <strong>pay attention<\/strong> to all others \u2014 to understand context, relationships, and meaning better. \ud83e\udde0\u2728<\/p>\n<\/blockquote>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\ud83e\udd14 What is Self-Attention? Self-Attention is a mechanism that allows a model to look at other parts of the same input when understanding a specific part. \ud83d\udc40 Basically: Each word (or patch, in images) decides how much to pay attention to every other word in the same input \u2014 including itself! \ud83d\udcd6 Think of it&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2348,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[641],"tags":[],"class_list":["post-2319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-ai-machine-learning"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.3 - aioseo.com -->\n\t<meta name=\"description\" content=\"\ud83e\udd14 What is Self-Attention? Self-Attention is a mechanism that allows a model to look at other parts of the same input when understanding a specific part. \ud83d\udc40 Basically: Each word (or patch, in images) decides how much to pay attention to every other word in the same input \u2014 including itself! \ud83d\udcd6 Think of it\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Team ClassWork\"\/>\n\t<meta name=\"google-site-verification\" content=\"8E2CwmBfygQjWJcbOYdmmbNcCgBNAWjtD-yz1QQysCw\" \/>\n\t<meta name=\"keywords\" content=\"ai ml\" \/>\n\t<link rel=\"canonical\" href=\"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/\" \/>\n\t\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.3\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#article\",\"name\":\"What Is Self-Attention in Deep Learning? Explained with Examples | ClassWork\",\"headline\":\"What Is Self-Attention in Deep Learning? Explained with Examples\",\"author\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/author\\\/texnotesadmin\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#person\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/texpertssolutions.com\\\/notes\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/5.png?fit=1280%2C720&ssl=1\",\"width\":1280,\"height\":720},\"datePublished\":\"2025-06-11T12:16:05+05:30\",\"dateModified\":\"2026-10-21T11:47:35+05:30\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#webpage\"},\"articleSection\":\"AI ML\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/category\\\/ai-machine-learning\\\/#listItem\",\"name\":\"AI ML\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/category\\\/ai-machine-learning\\\/#listItem\",\"position\":2,\"name\":\"AI ML\",\"item\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/category\\\/ai-machine-learning\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#listItem\",\"name\":\"What Is Self-Attention in Deep Learning? Explained with Examples\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#listItem\",\"position\":3,\"name\":\"What Is Self-Attention in Deep Learning? Explained with Examples\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/category\\\/ai-machine-learning\\\/#listItem\",\"name\":\"AI ML\"}}]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#person\",\"name\":\"Team ClassWork\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#personImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/facc1dbe260d7045db141528871a1d1294c47bb8883f2c37e197d7da9b59ae7b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Team ClassWork\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/author\\\/texnotesadmin\\\/#author\",\"url\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/author\\\/texnotesadmin\\\/\",\"name\":\"Team ClassWork\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/facc1dbe260d7045db141528871a1d1294c47bb8883f2c37e197d7da9b59ae7b?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Team ClassWork\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#webpage\",\"url\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/\",\"name\":\"What Is Self-Attention in Deep Learning? Explained with Examples | ClassWork\",\"description\":\"\\ud83e\\udd14 What is Self-Attention? Self-Attention is a mechanism that allows a model to look at other parts of the same input when understanding a specific part. \\ud83d\\udc40 Basically: Each word (or patch, in images) decides how much to pay attention to every other word in the same input \\u2014 including itself! \\ud83d\\udcd6 Think of it\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/author\\\/texnotesadmin\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/author\\\/texnotesadmin\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/i0.wp.com\\\/texpertssolutions.com\\\/notes\\\/wp-content\\\/uploads\\\/2025\\\/06\\\/5.png?fit=1280%2C720&ssl=1\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#mainImage\",\"width\":1280,\"height\":720},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/2025\\\/06\\\/11\\\/what-is-self-attention\\\/#mainImage\"},\"datePublished\":\"2025-06-11T12:16:05+05:30\",\"dateModified\":\"2026-10-21T11:47:35+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#website\",\"url\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/\",\"name\":\"ClassWork\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/texpertssolutions.com\\\/notes\\\/#person\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"What Is Self-Attention in Deep Learning? Explained with Examples | ClassWork","description":"\ud83e\udd14 What is Self-Attention? Self-Attention is a mechanism that allows a model to look at other parts of the same input when understanding a specific part. \ud83d\udc40 Basically: Each word (or patch, in images) decides how much to pay attention to every other word in the same input \u2014 including itself! \ud83d\udcd6 Think of it","canonical_url":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/","robots":"max-image-preview:large","keywords":"ai ml","webmasterTools":{"google-site-verification":"8E2CwmBfygQjWJcbOYdmmbNcCgBNAWjtD-yz1QQysCw","miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#article","name":"What Is Self-Attention in Deep Learning? Explained with Examples | ClassWork","headline":"What Is Self-Attention in Deep Learning? Explained with Examples","author":{"@id":"https:\/\/texpertssolutions.com\/notes\/author\/texnotesadmin\/#author"},"publisher":{"@id":"https:\/\/texpertssolutions.com\/notes\/#person"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/texpertssolutions.com\/notes\/wp-content\/uploads\/2025\/06\/5.png?fit=1280%2C720&ssl=1","width":1280,"height":720},"datePublished":"2025-06-11T12:16:05+05:30","dateModified":"2026-10-21T11:47:35+05:30","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#webpage"},"isPartOf":{"@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#webpage"},"articleSection":"AI ML"},{"@type":"BreadcrumbList","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/#listItem","position":1,"name":"Home","item":"https:\/\/texpertssolutions.com\/notes\/","nextItem":{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/category\/ai-machine-learning\/#listItem","name":"AI ML"}},{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/category\/ai-machine-learning\/#listItem","position":2,"name":"AI ML","item":"https:\/\/texpertssolutions.com\/notes\/category\/ai-machine-learning\/","nextItem":{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#listItem","name":"What Is Self-Attention in Deep Learning? Explained with Examples"},"previousItem":{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#listItem","position":3,"name":"What Is Self-Attention in Deep Learning? Explained with Examples","previousItem":{"@type":"ListItem","@id":"https:\/\/texpertssolutions.com\/notes\/category\/ai-machine-learning\/#listItem","name":"AI ML"}}]},{"@type":"Person","@id":"https:\/\/texpertssolutions.com\/notes\/#person","name":"Team ClassWork","image":{"@type":"ImageObject","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#personImage","url":"https:\/\/secure.gravatar.com\/avatar\/facc1dbe260d7045db141528871a1d1294c47bb8883f2c37e197d7da9b59ae7b?s=96&d=mm&r=g","width":96,"height":96,"caption":"Team ClassWork"}},{"@type":"Person","@id":"https:\/\/texpertssolutions.com\/notes\/author\/texnotesadmin\/#author","url":"https:\/\/texpertssolutions.com\/notes\/author\/texnotesadmin\/","name":"Team ClassWork","image":{"@type":"ImageObject","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/facc1dbe260d7045db141528871a1d1294c47bb8883f2c37e197d7da9b59ae7b?s=96&d=mm&r=g","width":96,"height":96,"caption":"Team ClassWork"}},{"@type":"WebPage","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#webpage","url":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/","name":"What Is Self-Attention in Deep Learning? Explained with Examples | ClassWork","description":"\ud83e\udd14 What is Self-Attention? Self-Attention is a mechanism that allows a model to look at other parts of the same input when understanding a specific part. \ud83d\udc40 Basically: Each word (or patch, in images) decides how much to pay attention to every other word in the same input \u2014 including itself! \ud83d\udcd6 Think of it","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/texpertssolutions.com\/notes\/#website"},"breadcrumb":{"@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#breadcrumblist"},"author":{"@id":"https:\/\/texpertssolutions.com\/notes\/author\/texnotesadmin\/#author"},"creator":{"@id":"https:\/\/texpertssolutions.com\/notes\/author\/texnotesadmin\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/i0.wp.com\/texpertssolutions.com\/notes\/wp-content\/uploads\/2025\/06\/5.png?fit=1280%2C720&ssl=1","@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#mainImage","width":1280,"height":720},"primaryImageOfPage":{"@id":"https:\/\/texpertssolutions.com\/notes\/2025\/06\/11\/what-is-self-attention\/#mainImage"},"datePublished":"2025-06-11T12:16:05+05:30","dateModified":"2026-10-21T11:47:35+05:30"},{"@type":"WebSite","@id":"https:\/\/texpertssolutions.com\/notes\/#website","url":"https:\/\/texpertssolutions.com\/notes\/","name":"ClassWork","inLanguage":"en-US","publisher":{"@id":"https:\/\/texpertssolutions.com\/notes\/#person"}}]}},"aioseo_meta_data":{"post_id":"2319","title":null,"description":null,"keywords":null,"keyphrases":{"focus":[],"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":"default","schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2025-06-11 06:37:41","updated":"2026-10-21 08:36:57","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"seo_analyzer_scan_date":null},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/texpertssolutions.com\/notes\/wp-content\/uploads\/2025\/06\/5.png?fit=1280%2C720&ssl=1","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/posts\/2319","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":4,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"predecessor-version":[{"id":2974,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/posts\/2319\/revisions\/2974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/media\/2348"}],"wp:attachment":[{"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/texpertssolutions.com\/notes\/wp-json\/wp\/v2\/tags?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}