<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wikibase.ronzz.org/index.php?action=history&amp;feed=atom&amp;title=Softmax</id>
	<title>Softmax - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wikibase.ronzz.org/index.php?action=history&amp;feed=atom&amp;title=Softmax"/>
	<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Softmax&amp;action=history"/>
	<updated>2026-11-23T22:38:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.46.0</generator>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15956&amp;oldid=prev</id>
		<title>RonzzWikiCowriterAI: Category renamed to sentence case (via update-page on MediaWiki MCP Server)</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15956&amp;oldid=prev"/>
		<updated>2026-11-11T16:44:45Z</updated>

		<summary type="html">&lt;p&gt;Category renamed to sentence case (via update-page on MediaWiki MCP Server)&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 16:44, 11 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Normalisation &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Function&lt;/del&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Normalisation &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;function&lt;/ins&gt;]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Machine learning]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Category:Machine learning]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Vector softmax.png|thumbnail|400px|Application of &amp;#039;&amp;#039;&amp;#039;softmax&amp;#039;&amp;#039;&amp;#039; on a column vector.]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:Vector softmax.png|thumbnail|400px|Application of &amp;#039;&amp;#039;&amp;#039;softmax&amp;#039;&amp;#039;&amp;#039; on a column vector.]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>RonzzWikiCowriterAI</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15340&amp;oldid=prev</id>
		<title>Rongzhou: /* Temperature parameter */</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15340&amp;oldid=prev"/>
		<updated>2026-11-11T12:44:33Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Temperature parameter&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:44, 11 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Temperature parameter ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Temperature parameter ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:Softmax temperature.gif|thumbnail|400px|&#039;&#039;&#039;Temperature&#039;&#039;&#039; exaggerates/flattens the probability distribution.|left]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:LLM temperature.png|thumbnail|400px|left|In a &amp;#039;&amp;#039;&amp;#039;[[large language model (LLM)]]&amp;#039;&amp;#039;&amp;#039;, a higher temperature encourages the model to experiment more with less conventional sentence and passage structures, whereas a lower temperature encourages conservative, conventional construction.]]&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[File:LLM temperature.png|thumbnail|400px|left|In a &amp;#039;&amp;#039;&amp;#039;[[large language model (LLM)]]&amp;#039;&amp;#039;&amp;#039;, a higher temperature encourages the model to experiment more with less conventional sentence and passage structures, whereas a lower temperature encourages conservative, conventional construction.]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A temperature parameter $\tau&amp;gt;0$ controls the sharpness of the distribution:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A temperature parameter $\tau&amp;gt;0$ controls the sharpness of the distribution:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rongzhou</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15335&amp;oldid=prev</id>
		<title>Rongzhou: /* Temperature parameter */</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15335&amp;oldid=prev"/>
		<updated>2026-11-11T12:21:04Z</updated>

		<summary type="html">&lt;p&gt;&lt;span class=&quot;autocomment&quot;&gt;Temperature parameter&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw-interface=&quot;&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 12:21, 11 November 2026&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l32&quot;&gt;Line 32:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 32:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Temperature parameter ==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Temperature parameter ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:LLM temperature.png|thumbnail|400px|left|In a &#039;&#039;&#039;[[large language model (LLM)]]&#039;&#039;&#039;, a higher temperature encourages the model to experiment more with less conventional sentence and passage structures, whereas a lower temperature encourages conservative, conventional construction.]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A temperature parameter $\tau&amp;gt;0$ controls the sharpness of the distribution:&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A temperature parameter $\tau&amp;gt;0$ controls the sharpness of the distribution:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Rongzhou</name></author>
	</entry>
	<entry>
		<id>https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15323&amp;oldid=prev</id>
		<title>Rongzhou: Created page with &quot;Category:Normalisation Function Category:Machine learning Application of &#039;&#039;&#039;softmax&#039;&#039;&#039; on a column vector. &#039;&#039;&#039;Softmax&#039;&#039;&#039; is a normalisation function that maps a vector of real-valued logits to a categorical probability distribution.  == Definition ==  For $\vec z=(z_1,\dots,z_K)^{\top}\in\mathbb{R}^{K}$,  $$ \operatorname{softmax}(\vec z)_i = \frac{\exp(z_i)} {\sum_{j=1}^{K}\exp(z_j)}, \qquad i=1,\dots,K. $$...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wikibase.ronzz.org/index.php?title=Softmax&amp;diff=15323&amp;oldid=prev"/>
		<updated>2026-11-11T09:58:17Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&lt;a href=&quot;/wiki/Category:Normalisation_Function&quot; title=&quot;Category:Normalisation Function&quot;&gt;Category:Normalisation Function&lt;/a&gt; &lt;a href=&quot;/wiki/Category:Machine_learning&quot; title=&quot;Category:Machine learning&quot;&gt;Category:Machine learning&lt;/a&gt; &lt;a href=&quot;/wiki/File:Vector_softmax.png&quot; title=&quot;File:Vector softmax.png&quot;&gt;thumbnail|400px|Application of &amp;#039;&amp;#039;&amp;#039;softmax&amp;#039;&amp;#039;&amp;#039; on a column vector.&lt;/a&gt; &amp;#039;&amp;#039;&amp;#039;Softmax&amp;#039;&amp;#039;&amp;#039; is a &lt;a href=&quot;/index.php?title=Normalisation_function&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Normalisation function (page does not exist)&quot;&gt;normalisation function&lt;/a&gt; that maps a &lt;a href=&quot;/index.php?title=Vector&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Vector (page does not exist)&quot;&gt;vector&lt;/a&gt; of real-valued logits to a &lt;a href=&quot;/index.php?title=Categorical_probability_distribution&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;Categorical probability distribution (page does not exist)&quot;&gt;categorical probability distribution&lt;/a&gt;.  == Definition ==  For $\vec z=(z_1,\dots,z_K)^{\top}\in\mathbb{R}^{K}$,  $$ \operatorname{softmax}(\vec z)_i = \frac{\exp(z_i)} {\sum_{j=1}^{K}\exp(z_j)}, \qquad i=1,\dots,K. $$...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Normalisation Function]]&lt;br /&gt;
[[Category:Machine learning]]&lt;br /&gt;
[[File:Vector softmax.png|thumbnail|400px|Application of &amp;#039;&amp;#039;&amp;#039;softmax&amp;#039;&amp;#039;&amp;#039; on a column vector.]]&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Softmax&amp;#039;&amp;#039;&amp;#039; is a [[normalisation function]] that maps a [[vector]] of real-valued logits to a [[categorical probability distribution]].&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
For $\vec z=(z_1,\dots,z_K)^{\top}\in\mathbb{R}^{K}$,&lt;br /&gt;
&lt;br /&gt;
$$&lt;br /&gt;
\operatorname{softmax}(\vec z)_i&lt;br /&gt;
=&lt;br /&gt;
\frac{\exp(z_i)}&lt;br /&gt;
{\sum_{j=1}^{K}\exp(z_j)},&lt;br /&gt;
\qquad i=1,\dots,K.&lt;br /&gt;
$$&lt;br /&gt;
&lt;br /&gt;
== Shift and numerical stability ==&lt;br /&gt;
&lt;br /&gt;
In practice, it is evaluated with a shift for [[numerical stability]]. Let $m=\max_{j=1,\dots,K}z_j$; then&lt;br /&gt;
&lt;br /&gt;
$$&lt;br /&gt;
\operatorname{softmax}(\vec z)_i&lt;br /&gt;
=&lt;br /&gt;
\frac{\exp(z_i-m)}&lt;br /&gt;
{\sum_{j=1}^{K}\exp(z_j-m)}.&lt;br /&gt;
$$&lt;br /&gt;
&lt;br /&gt;
&amp;lt;blockquote&amp;gt;&lt;br /&gt;
Mathematically, the shift $m$ represents dividing both the numerator and denominator by $e^m$ to simplify calculation. e.g., to calculate the softmax of $\vec z = (100,102,101)^\top$, one calculate instead softmax of $\vec z - \vec 1 \cdot m = (100-m,102-m,101-m)^\top$, where $m$ can be, for example, $102$.&lt;br /&gt;
&amp;lt;/blockquote&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Temperature parameter ==&lt;br /&gt;
&lt;br /&gt;
A temperature parameter $\tau&amp;gt;0$ controls the sharpness of the distribution:&lt;br /&gt;
&lt;br /&gt;
$$&lt;br /&gt;
\operatorname{softmax}(\vec z/\tau)_i&lt;br /&gt;
=&lt;br /&gt;
\frac{\exp(z_i/\tau)}&lt;br /&gt;
{\sum_{j=1}^{K}\exp(z_j/\tau)}.&lt;br /&gt;
$$&lt;br /&gt;
&lt;br /&gt;
As $\tau\to 0^{+}$, the distribution approaches an [[one-hot vector]]; as $\tau\to\infty$, it approaches the [[uniform distribution]].&lt;br /&gt;
&lt;br /&gt;
== Common form ==&lt;br /&gt;
&lt;br /&gt;
Including both the shift and the temperature parameter:&lt;br /&gt;
&lt;br /&gt;
$$&lt;br /&gt;
\operatorname{softmax}(\vec z/\tau)_i&lt;br /&gt;
=&lt;br /&gt;
\frac{\exp((z_i-m)/\tau)}&lt;br /&gt;
{\sum_{j=1}^{K}\exp((z_j-m)/\tau)}.&lt;br /&gt;
$$&lt;br /&gt;
where $m=\max_{j=1,\dots,K}z_j$ and $\tau \in (0,\infty)$.&lt;br /&gt;
&lt;br /&gt;
== Properties ==&lt;br /&gt;
&lt;br /&gt;
=== $\sum_{i=1,\dots,K} \operatorname{softmax}(\vec z/\tau)_i=1$ ===&lt;br /&gt;
&lt;br /&gt;
as required to constitute a [[categorical probability distribution]].&lt;/div&gt;</summary>
		<author><name>Rongzhou</name></author>
	</entry>
</feed>