% One PISCES batch as tensors, drawn with the PlotNeuralNet layer styles (Box, Ball; MIT licence, % H. Iqbal). Depths are schematic but ordered: the faint block around the candidate slab is the full % B x k distance tensor that exact e-means computes; PISCES computes the thin slab, about k/8 wide. \providecommand{\midarrow}{\tikz \draw[-Stealth,line width=0.8mm,draw=pnavy!70] (-0.3,0) -- ++(0.3,0);} \begin{tikzpicture}[font=\sffamily] \tikzstyle{connection}=[ultra thick, every node/.style={sloped, allow upside down}, draw=pnavy!65, opacity=0.8] \tikzstyle{tcap}=[font=\sffamily\footnotesize, align=center, text width=2.6cm, anchor=north, text=pnavy] \tikzstyle{tcapb}=[tcap, font=\sffamily\footnotesize\bfseries] \def\Xc{rgb:blue,1;white,7}\def\Qc{rgb:blue,2;black,1;white,4}\def\Tc{rgb:green,3;blue,4;white,4} \def\Gc{rgb:black,1;white,9}\def\Sc{rgb:blue,1;green,1;white,6}\def\Oc{rgb:red,4;yellow,3;white,4} % batch and coarse cells \pic[shift={(0,0,0)}] at (0,0,0) {Box={name=X, xlabel={{"",}}, ylabel={$B$}, zlabel={$d$}, fill=\Xc, height=32, width=1.6, depth=12}}; \pic[shift={(2.6,0,0)}] at (X-east) {Box={name=Q, xlabel={{"",}}, ylabel={$\sqrt{k}$}, zlabel={$d$}, fill=\Qc, height=10, width=1.6, depth=12}}; \pic[shift={(1.8,0,0)}] at (Q-east) {Ball={name=probe, fill=\Tc, opacity=0.6, radius=2.4, logo=$\cap$}}; % exact distance tensor (ghost) and the PISCES candidate slab inside it \pic[shift={(2.2,0,0)}] at (probe-east) {Box={name=Dex, xlabel={{"",}}, ylabel={}, zlabel={}, fill=\Gc, opacity=0.22, height=32, width=1.6, depth=48}}; \pic[shift={(2.2,0,0)}] at (probe-east) {Box={name=D, xlabel={{"",}}, ylabel={$B$}, zlabel={}, fill=\Tc, opacity=0.75, height=32, width=1.6, depth=6}}; % labels \pic[shift={(3.4,0,0)}] at (D-east) {Box={name=L, xlabel={{"",}}, ylabel={$B$}, zlabel={}, fill=\Oc, height=32, width=0.5, depth=1}}; % fused statistics \pic[shift={(2.2,0,0)}] at (L-east) {Box={name=S, xlabel={{"",}}, ylabel={$k$}, zlabel={$d$}, fill=\Sc, height=22, width=1.4, depth=12}}; \pic[shift={(0.5,0,0)}] at (S-east) {Box={name=V, xlabel={{"",}}, zlabel={$d$}, fill=\Tc, height=22, width=1.4, depth=12}}; \pic[shift={(0.5,0,0)}] at (V-east) {Box={name=P, xlabel={{"",}}, zlabel={}, fill=\Tc, height=22, width=0.7, depth=1.2}}; \pic[shift={(2.0,0,0)}] at (P-east) {Ball={name=ema, fill=\Sc, opacity=0.6, radius=2.4, logo=$\alpha_t$}}; % model state and revival \pic[shift={(2.0,0,0)}] at (ema-east) {Box={name=C, xlabel={{"",}}, ylabel={$k$}, zlabel={$d$}, fill=\Xc, height=22, width=1.4, depth=12}}; \pic[shift={(0.5,0,0)}] at (C-east) {Box={name=U, xlabel={{"",}}, zlabel={$d$}, fill=\Tc, height=22, width=1.4, depth=12}}; \pic[shift={(2.1,0,0)}] at (U-east) {Ball={name=rev, fill=\Oc, opacity=0.65, radius=2.4, logo=$\pm$}}; % connections \draw[connection] (X-east) -- node{\midarrow} (Q-west); \draw[connection] (Q-east) -- node{\midarrow} (probe-west); \draw[connection] (probe-east) -- node{\midarrow} (D-west); \draw[connection] (D-east) -- node{\midarrow} (L-west); \draw[connection] (L-east) -- node{\midarrow} (S-west); \draw[connection] (P-east) -- node{\midarrow} (ema-west); \draw[connection] (ema-east) -- node{\midarrow} (C-west); \draw[connection] (U-east) -- node{\midarrow} (rev-west); \draw[connection, -{Stealth[length=4mm]}, rounded corners=8pt] (rev-north) -- ++(0,5.2) -| ([xshift=4pt]Q-north); \node[font=\sffamily\footnotesize, text=pnavy, fill=white, inner sep=2pt] at ($(rev-north)!0.5!(Q-north)+(0,5.2)$) {revival: children $c\pm\sqrt{2\lambda_1/\pi}\,u_1$ of the donor with the largest $\tfrac{2}{\pi}N\lambda_1$ join the next batch's centroids}; % captions \node[tcapb] at ($(X-south)+(0.4,-0.95)$) {mini-batch $X$\\[-1pt]\mdseries $65{,}536\times96$}; \node[tcapb] at ($(Q-south)+(-0.3,-0.95)$) {coarse cells\\[-1pt]\mdseries $\sqrt{k}=128$ centroids of centroids}; \node[tcapb] at ($(probe-south)+(0.35,-1.6)$) {probe\\[-1pt]\mdseries $\sqrt{k}/8=16$ cells}; \node[tcapb, text width=5.6cm] at ($(D-south)+(2.6,-1.35)$) {distances per row\\[-1pt]\mdseries teal: \PISCES, $\approx k/8=2{,}048$\\(8-bit scan, exact top-4 re-rank)\\grey: e-means, all $k=16{,}384$}; \node[tcapb] at ($(L-south)+(0.4,-0.6)$) {labels\\[-1pt]\mdseries nearest centroid}; \node[tcapb, text width=4.4cm] at ($(V-south)+(0,-1.0)$) {one fused pass\\[-1pt]\mdseries sums $s_j$, axis $\sum(e^{\top}u_j)e$,\\$n_j$ and $\sum(e^{\top}u_j)^2$}; \node[tcapb] at ($(ema-south)+(0,-0.45)$) {EMA\\[-1pt]\mdseries step $\alpha_t\times1.4$}; \node[tcapb, text width=3.4cm] at ($($(C-south)!0.5!(U-south)$)+(0,-1.0)$) {model state\\[-1pt]\mdseries centroids $C$, axes $u_j$, $\lambda_j$\\(each $k\times d$, $k=16{,}384$)}; \node[tcapb] at ($(rev-south)+(0,-0.45)$) {revival\\[-1pt]\mdseries every batch for 30\% of steps}; \end{tikzpicture}