% Research group discussion of arXiv:2608.17981v3. Compile with pdfLaTeX.
\documentclass[aspectratio=169,11pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{lmodern}
\usepackage{amsmath,amssymb,graphicx,booktabs}

\definecolor{AcademicBlue}{RGB}{26,57,86}
\definecolor{AcademicTeal}{RGB}{0,105,112}
\setbeamercolor{structure}{fg=AcademicBlue}
\setbeamercolor{frametitle}{fg=AcademicBlue,bg=white}
\setbeamercolor{title}{fg=AcademicBlue}
\setbeamercolor{alerted text}{fg=AcademicTeal}
\setbeamercolor{block title}{fg=white,bg=AcademicBlue}
\setbeamercolor{block body}{fg=black,bg=AcademicBlue!5}
\setbeamertemplate{navigation symbols}{}
\setbeamertemplate{itemize items}[circle]
\setbeamertemplate{footline}{%
  \hfill\usebeamerfont{page number in head/foot}%
  \insertframenumber\,/\,\inserttotalframenumber\hspace{4mm}\vspace{3mm}}
\setbeamersize{text margin left=8mm,text margin right=8mm}
\setbeamerfont{frametitle}{size=\Large,series=\bfseries}
\setbeamerfont{title}{size=\LARGE,series=\bfseries}
\newcommand{\papersource}[1]{\par\smallskip{\scriptsize\color{gray}#1\par}}
\newcommand{\gain}[1]{{\color{AcademicTeal}\bfseries #1}}

\title{Recirculation}
\subtitle{Feedback across depth and token processing in a frozen Transformer}
\author{Paper by Michael C. Mozer, Shoaib Ahmed Siddiqui, Danny Sawyer, Sunny Sanyal, Rosanne Liu}
\date{Research group discussion \quad 23 October 2026\\\href{https://arxiv.org/abs/2608.17981v3}{arXiv:2608.17981v3}}

\begin{document}

\begin{frame}
  \titlepage
\end{frame}

\begin{frame}{The paper tests two distinct interventions}
  \begin{block}{Fixed Recirculation}
    Choose source layer, destination layer, and feedback strength; change the inference graph while keeping \emph{all} weights frozen.
  \end{block}
  \begin{block}{Adaptive Recirculation}
    Freeze the foundation model, but train a small MLP to predict token-specific mixing vectors.
  \end{block}
  \begin{itemize}
    \item Do not attribute the adaptive GSM8k gain to a training-free method.
  \end{itemize}
  \papersource{Paper, Abstract, Secs.~2 and 4.6, PDF pp.~1, 4--5, 15--16.}
\end{frame}

\begin{frame}{Motivation: deep layers resolve context too late}
  \begin{columns}[T,totalwidth=\textwidth]
    \begin{column}{.35\textwidth}
      \begin{itemize}
        \item In a fishing story, \emph{bank} means the river edge.
        \item Shallow layers may still mix river and financial senses.
        \item Prior targeted patching reuses the deep interpretation for a later ATM question.
      \end{itemize}
    \end{column}
    \begin{column}{.63\textwidth}
      \centering
      \includegraphics[width=\linewidth,height=.70\textheight,keepaspectratio]{figures/fig-02-bank-recirculation.pdf}
    \end{column}
  \end{columns}
  \papersource{Paper, Fig.~2(b), PDF p.~3. Cropped from the original vector figure. The cited targeted-patching result is prior work.}
\end{frame}

\begin{frame}{Recirculation gives a token a second pass}
  \begin{enumerate}
    \setlength{\itemsep}{2mm}
    \item First pass of token $t$: compute a deep source state at layer $s$.
    \item At the next processing step, feed a small amount back to a shallower layer $d<s$ of \emph{the same token}.
    \item Run that second pass alongside the first pass of token $t+1$.
    \item Later tokens can attend to the revised representation of token $t$.
  \end{enumerate}
  \begin{block}{Scope of experiments}
    Exactly one additional pass per token in the reported main experiments.
  \end{block}
  \papersource{Paper, Sec.~2 and Fig.~3(c), PDF pp.~4--5; Appendix A, PDF p.~25.}
\end{frame}

\begin{frame}{The unrolled architecture pipelines two stacks}
  \centering
  \includegraphics[width=.83\linewidth,height=.70\textheight,keepaspectratio]{figures/fig-03-architecture.pdf}
  \papersource{Paper, Fig.~3, PDF p.~5. (b) repeats layers within a token; (c) recirculates across processing steps.}
\end{frame}

\begin{frame}{Feedback is a small, norm-matched residual addition}
  \[
    z_{t+1,t,d}=\alpha f(z_{t,t,s}\mid d,t)+\beta z_{t,t,d},
    \qquad s>d.
  \]
  \[
    f(z\mid d,t)=\frac{\|z_{t,t,d}\|_2}{\|z\|_2}z.
  \]
  \begin{itemize}
    \item $z_{i,j,l}$: residual output at processing step $i$, token $j$, layer $l$.
    \item Fixed experiments usually set $\beta=1$; the update is \emph{not} a convex average.
    \item Norm matching keeps the deeper activation from overwhelming the shallower one.
  \end{itemize}
  \papersource{Paper, Eqs.~(1)--(2), Sec.~2, PDF p.~5.}
\end{frame}

\begin{frame}{A state can persist at the same layer across tokens}
  \centering
  \includegraphics[width=.96\linewidth,height=.62\textheight,keepaspectratio]{figures/fig-04-state-updating.pdf}
  \papersource{Paper, Fig.~4, PDF p.~5. (a) Looped depth pushes state upward; (b) recirculation provides a same-layer path. This is an architectural argument, not a learned-state theorem.}
\end{frame}

\begin{frame}{The computational tradeoff sits in prefill}
  \begin{itemize}
    \item \textbf{Generation:} the authors pipeline two stacks and argue that modern hardware can overlap them with little extra latency.
    \item \textbf{Prefill:} state updates depend on preceding tokens, so the full prompt must be processed sequentially.
    \item The paper reports no measured milliseconds, token/s, or extra-FLOP benchmark for this tradeoff.
  \end{itemize}
  \begin{block}{Practical implication}
    A long prompt could dominate end-to-end latency even if per-token generation remains fast.
  \end{block}
  \papersource{Paper, Secs.~2 and 5, PDF pp.~5, 16--18.}
\end{frame}

\begin{frame}{Evaluation uses separate tuning and scoring splits}
  \begin{itemize}
    \item Search $s,d,\alpha$ using 1024-token windows from arXiv, C4, and PG-19 training splits.
    \item Score held-out perplexity on ten corpora; also report LongPPL for important context tokens.
    \item Evaluate instruction following, contextualization, eight zero-shot short-answer tasks, GSM8k, and HumanEval.
    \item Gemma3 1B/4B/12B are central; four other families receive qualitative layer sweeps.
  \end{itemize}
  \papersource{Paper, Sec.~4 and Appendix B, PDF pp.~7--16, 26--28.}
\end{frame}

\begin{frame}{Useful source--destination pairs form a region}
  \centering
  \begin{tabular}{lccc}
    \toprule
    Gemma3 PT & Source $s$ & Destination $d$ & $\alpha$ \\
    \midrule
    1B & 10 & 4 & 0.07 \\
    4B & 15 & 8 & 0.09 \\
    12B & 22 & 13 & 0.08 \\
    \bottomrule
  \end{tabular}
  \vspace{3mm}
  \begin{itemize}
    \item Three tuning datasets yield similar beneficial regions, mostly in middle layers.
    \item The wrong pair can harm: the paper reports about \textbf{+15\% perplexity} at $s=33,d=14$.
    \item The optimal region changes with model size and instruction tuning.
  \end{itemize}
  \papersource{Paper, Fig.~6 and Sec.~4.1, PDF pp.~7--8; Appendix Table B.2, PDF p.~27.}
\end{frame}

\begin{frame}{Standard PT perplexity gains are consistent but small}
  \centering
  \begin{tabular}{lrrrr}
    \toprule
    Gemma3 4B & PT + BOS & LongPPL & IT & PT without BOS \\
    \midrule
    arXiv & 0.25\% & 0.72\% & 9.22\% & 11.26\% \\
    PG-19 & 0.20\% & 1.18\% & 10.76\% & 15.72\% \\
    BillSum & 0.09\% & 0.26\% & 18.09\% & 4.46\% \\
    \bottomrule
  \end{tabular}
  \vspace{3mm}
  \begin{itemize}
    \item Cells are \emph{relative perplexity reductions}; column conditions differ.
    \item Normal PT: all ten corpora improve by 0.09--0.62\%; token-level effect size $d<0.10$.
    \item Removing BOS deliberately raises baseline perplexity.
  \end{itemize}
  \papersource{Paper, Table 1 and Sec.~4.2, PDF pp.~8--9.}
\end{frame}

\begin{frame}{Temperature tuning explains part of the IT result}
  \begin{itemize}
    \item On PG-19 with 4B IT, temperature tuning alone reduces perplexity by up to \textbf{19.5\%}.
    \item Temperature plus recirculation reduces it by \textbf{20.2\%}: an incremental 0.7 points.
    \item With ordinary BOS-present PT input, the incremental gain after temperature tuning is about 0.18 points.
    \item With BOS omitted, the extra gain is about 12 points.
  \end{itemize}
  \begin{block}{Interpretation}
    Feedback does more than change output temperature, but calibration overlaps with its large IT perplexity effect.
  \end{block}
  \papersource{Paper, Sec.~4.4 and Appendix C, PDF pp.~10--11, 33--34.}
\end{frame}

\begin{frame}{Naive training-free looping behaves differently}
  \centering
  \includegraphics[width=.78\linewidth,height=.70\textheight,keepaspectratio]{figures/fig-08-looping-comparison-4b.pdf}
  \par\smallskip
  \small Blue indicates lower perplexity. The 1B and 12B panels show a similar broad contrast.
  \papersource{Paper, Fig.~8 and Sec.~4.4, PDF pp.~10--11. Gemma3 4B panels cropped from the original vector figure; top: recirculation, bottom: naive looping. This control does not assess trained looping.}
\end{frame}

\begin{frame}{Early and content-rich tokens help more}
  \begin{itemize}
    \item A single recirculated token mostly helps nearby predictions, with a longer residual tail.
    \item Recirculating early tokens has a more persistent effect across a 1024-token window.
    \item Verbs and plural nouns tend to contribute more than numerals and determiners in the arXiv/Gemma3 4B analysis.
  \end{itemize}
  \begin{block}{Why this matters}
    Uniformly applying feedback to every token may spend work where little useful state is propagated.
  \end{block}
  \papersource{Paper, Fig.~9 and Sec.~4.4, PDF pp.~11--12; Appendix C, PDF pp.~34--35.}
\end{frame}

\begin{frame}{Instruction following improves with fixed feedback}
  \centering
  \includegraphics[width=.92\linewidth,height=.60\textheight,keepaspectratio]{figures/fig-10-instruction.pdf}
  \papersource{Paper, Fig.~10 and Sec.~4.5, PDF p.~12. Preselected settings: 4B 64.9 to 74.3\%, 12B 86.6 to 89.4\%. Task-specific bars are tuned on this task and are upper bounds.}
\end{frame}

\begin{frame}{Contextualization gains vary by question type}
  \centering
  \includegraphics[width=.94\linewidth,height=.58\textheight,keepaspectratio]{figures/fig-11-contextualization.pdf}
  \papersource{Paper, Fig.~11, PDF p.~13; Appendix Table D.1, PDF p.~36. 12B factual/gender are near ceiling; with five distractors, polysemy error is 38.47 to 36.25\%.}
\end{frame}

\begin{frame}{Single-token benchmarks move only slightly}
  \centering
  \begin{tabular}{lrrr}
    \toprule
    Gemma3 4B PT, zero shot & Baseline & Fixed recirc. & Change (points) \\
    \midrule
    MMLU & 57.90 & 58.28 & +0.38 \\
    ARC Easy & 81.78 & 82.07 & +0.29 \\
    PiQA & 79.98 & 80.52 & +0.54 \\
    HellaSwag & 75.89 & 75.86 & $-$0.03 \\
    WinoGrande & 69.46 & 69.38 & $-$0.08 \\
    \bottomrule
  \end{tabular}
  \vspace{2mm}
  \begin{itemize}
    \item Six of eight tasks improve; eight-task mean is about \gain{+0.23 points}.
  \end{itemize}
  \papersource{Paper, Table 2 and Sec.~4.5, PDF p.~14. Layers/strength selected with MMLU development data.}
\end{frame}

\begin{frame}{The 21\% GSM8k claim belongs to the adaptive variant}
  \centering
  \includegraphics[width=.91\linewidth,height=.59\textheight,keepaspectratio]{figures/fig-12-gsm-humaneval.pdf}
  \papersource{Paper, Fig.~12, PDF p.~15. GSM8k pass@1: 29.3 to 35.5\% is +6.2 points, or +21\% relative accuracy. The adaptive variant trains a task-related MLP.}
\end{frame}

\begin{frame}{Adaptive feedback learns per-token, per-dimension weights}
  \[
    z'=\boldsymbol\alpha(s,d)\odot f(s)
       +\boldsymbol\beta(s,d)\odot d.
  \]
  \begin{itemize}
    \item A two-hidden-layer MLP consumes source and destination residual vectors.
    \item It predicts $\boldsymbol\alpha,\boldsymbol\beta\in[0,1]^{D}$ for each token.
    \item The foundation model is frozen; the MLP is trained with backpropagation through time.
    \item Language-model ablation uses 1B PT, 1024-token windows, 100 training steps, and many BOS-absent windows.
  \end{itemize}
  \papersource{Paper, Sec.~4.6, PDF pp.~15--16; Appendix D.5, PDF p.~38.}
\end{frame}

\begin{frame}{Adaptive vectors beat scalar mixing in the ablation}
  \centering
  \begin{tabular}{lr}
    \toprule
    1B PT variant & Mean relative PPL reduction, 9 corpora \\
    \midrule
    Fixed coefficients & 8.5\% \\
    Learned constant scalars & 8.4\% \\
    Learned conditional scalars & 11.7\% \\
    Learned constant vectors & 20.6\% \\
    \gain{Learned conditional vectors} & \gain{23.0\%} \\
    Full model fine-tuning & 21.6\% \\
    \bottomrule
  \end{tabular}
  \vspace{2mm}
  \begin{itemize}
    \item These runs include BOS-absent windows; compare within this ablation.
  \end{itemize}
  \papersource{Paper, Fig.~13 and Sec.~4.6, PDF pp.~15--16.}
\end{frame}

\begin{frame}{Adaptive task gains depend on the tuning set}
  \begin{itemize}
    \item Training the MLP on part of the \emph{MMLU test split} yields 59.83\% on the full test split; training examples overlap evaluation.
    \item Using the separate MMLU auxiliary train split yields 58.63\% (baseline 57.90\%).
    \item Training on ARC Easy / ARC Challenge instead reduces MMLU to 56.05 / 55.02\%.
    \item HumanEval pass@128: adaptive 87.8\% is below fixed recirculation's 89.0\%.
  \end{itemize}
  \papersource{Paper, Table 2, Fig.~12 and Sec.~4.6, PDF pp.~14--16.}
\end{frame}

\begin{frame}{Take-home messages}
  \begin{enumerate}
    \setlength{\itemsep}{3mm}
    \item Recirculation feeds a token's deep state into its later shallow pass and pipelines passes across tokens.
    \item Fixed feedback is training-free: consistent but small normal-PT PPL gains, with larger gains on some state-sensitive tasks.
    \item Adaptive feedback trains an MLP and brings larger gains under its training and evaluation conditions.
    \item Long-prompt prefill cost, task-dependent tuning, and evaluation overlap matter before deployment claims.
  \end{enumerate}
  \papersource{Paper, Secs.~2, 4--5; Tables 1--2 and Figs.~10--13.}
\end{frame}

\appendix

\begin{frame}{Backup: 1B and 12B do not improve every corpus}
  \begin{itemize}
    \item With BOS omitted, the appendix reports broad PPL improvements for 1B, 4B, and 12B PT.
    \item LAMBADA is an exception: relative PPL ``reduction'' is $-0.72\%$ for 1B and $-2.81\%$ for 12B.
    \item The selected source/destination and feedback strength differ by model and input condition.
  \end{itemize}
  \papersource{Paper, Appendix Tables B.2--B.3, PDF pp.~27--28.}
\end{frame}

\begin{frame}{Backup: why prefill remains serial}
  \begin{itemize}
    \item Token $t$ must produce its source representation before its second pass can update the representation available to later tokens.
    \item This dependence crosses token steps even when the full prompt is known.
    \item The paper proposes blockwise recirculation as future work, but does not evaluate the block-size/quality tradeoff.
  \end{itemize}
  \papersource{Paper, Secs.~2 and 5, PDF pp.~4--5, 17--18.}
\end{frame}

\end{document}
