<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">% set table width
\newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
\newcolumntype{C}[1]{&gt;{\PreserveBackslash\centering}p{#1}}
% used for heatmap
\newcommand*{\MinNumber}{0}%
\newcommand*{\MaxNumber}{1}%
\newcommand{\ApplyGradient}[1]{%
	\pgfmathsetmacro{\PercentColor}{100.0*(#1-\MinNumber)/(\MaxNumber-\MinNumber)}
	\hspace{-0.33em}\colorbox{white!\PercentColor!myblack}{}
}
\newcolumntype{Q}{&gt;{\collectcell\ApplyGradient}c&lt;{\endcollectcell}}

	\begin{center}
		\renewcommand{\arraystretch}{0}
		\setlength{\tabcolsep}{5mm}
		\setlength{\fboxsep}{2.2mm} % box size
		\begin{tabular}{C{.20\textwidth}C{.20\textwidth}C{.20\textwidth}C{.20\textwidth}}
			\setlength{\tabcolsep}{0pt}
			\subfigure [\footnotesize{自注意力}] {
				\begin{tabular}{ccC{1em}}
					\setlength{\tabcolsep}{0pt}
					~
					&amp;
					\begin{tikzpicture}
					\begin{scope}			
					\node [inner sep=1.5pt] (w1) at (0,0) {\small{$1$} };
					
					\foreach \x/\y/\z in {2/1/$2$, 3/2/$3$, 4/3/$4$, 5/4/$5$, 6/5/$6$}
					{
						\node [inner sep=1.5pt,anchor=south west] (w\x) at ([xshift=1.15em]w\y.south west) {\small{\z} };
					}
					\end{scope}
					\end{tikzpicture}
					\\
					\renewcommand\arraystretch{1}
					\begin{tabular}{c}
						\setlength{\tabcolsep}{0pt}
						\small{$1\ \ $} \\
						\small{$2\ $} \\
						\small{$3\ $} \\
						\small{$4\ $} \\
						\small{$5\ $} \\
						\small{$6\ $} \\
					\end{tabular}
					&amp;
					%\setlength{\tabcolsep}{0pt}
					\begin{tabular}{*{6}{Q}}
						0.0000 &amp; 0.5429 &amp; 0.5138 &amp; 0.4650 &amp; 0.5005 &amp; 0.5531 \\

                        0.5429 &amp; 0.0000 &amp; 0.0606 &amp; 0.0630 &amp; 0.0703 &amp; 0.0332 \\

                        0.5138 &amp; 0.0606 &amp; 0.0000 &amp; 0.0671 &amp; 0.0472 &amp; 0.0296 \\

                        0.4650 &amp; 0.0630 &amp; 0.0671 &amp; 0.0000 &amp; 0.0176 &amp; 0.0552 \\

                        0.5005 &amp; 0.0703 &amp; 0.0472 &amp; 0.0176 &amp; 0.0000 &amp; 0.0389 \\

                        0.5531 &amp; 0.0332 &amp; 0.0296 &amp; 0.0552 &amp; 0.0389 &amp; 0.0000 \\
					\end{tabular}
&amp;
				\end{tabular}
			}
			&amp;
			
			\subfigure [\footnotesize{编码-解码注意力}] {
				\setlength{\tabcolsep}{0pt}
				\begin{tabular}{ccC{1em}}
					\setlength{\tabcolsep}{0pt}
					~
					&amp;
					\begin{tikzpicture}
					\begin{scope}
						
					\node [inner sep=1.5pt] (w1) at (0,0) {\small{$1$} };
					\foreach \x/\y/\z in {2/1/$2$, 3/2/$3$, 4/3/$4$, 5/4/$5$, 6/5/$6$}
					{
						\node [inner sep=1.5pt,anchor=south west] (w\x) at ([xshift=1.15em]w\y.south west) {\small{\z} };
					}
					\end{scope}

					\end{tikzpicture}
					\\
					\renewcommand\arraystretch{1}
					\begin{tabular}{c}
						\setlength{\tabcolsep}{0pt}
						\small{$1\ \ $} \\
						\small{$2\ $} \\
						\small{$3\ $} \\
						\small{$4\ $} \\
						\small{$5\ $} \\
						\small{$6\ $} \\
					\end{tabular}
					&amp;
					%\setlength{\tabcolsep}{0pt}
					\begin{tabular}{*{6}{Q}}
                        0.0000 &amp; 0.0175 &amp; 0.2239 &amp; 0.3933 &amp; 0.7986 &amp; 0.3603 \\

                        0.0175 &amp; 0.0000 &amp; 0.1442 &amp; 0.3029 &amp; 0.7295 &amp; 0.3324 \\

                        0.2239 &amp; 0.1442 &amp; 0.0000 &amp; 0.0971 &amp; 0.6270 &amp; 0.4163 \\

                        0.3933 &amp; 0.3029 &amp; 0.0971 &amp; 0.0000 &amp; 0.2385 &amp; 0.2022 \\

                        0.7986 &amp; 0.7295 &amp; 0.6270 &amp; 0.2385 &amp; 0.0000 &amp; 0.0658 \\

                        0.3603 &amp; 0.3324 &amp; 0.4163 &amp; 0.2022 &amp; 0.0658 &amp; 0.0000 \\
					\end{tabular}
&amp;
				\end{tabular}
			}
		\end{tabular}
	\end{center}
</pre></body></html>