10-605 / 10-805
Machine Learning from Large Datasets
Announcements
Outline
Outline
ALL-REDUCE
Recap
MAP
ALLREDUCE
Recap
Tree AllReduce is used for MapReduce clusters
AllReduce on TPU/GPU clusters
Outline
OPTIMIZING FID
Fusion in Decoder (FiD)
2021
Recap: Fusion in Decoder (FiD)
FLOP analysis: Encoder is 6x as expensive as decoder!
…but at inference time decoding is slowest. Why?
Recap: Performance analysis
Encoder / prefilling: batched MHA with batches of different positions in a sequence
Memory:
O(bnd) +
O(bhn2) +
O(d2)
…because
X,M,Q,K,V,O,Y
logits, weights
P’s
FLOPS: O(bnd2)
Claim: FLOPs/sec <= FLOPs/byte * bytes/sec
moving data from HBM to Matmul units is “slow”
This is nice and low!
Recap: Performance analysis
Decoding: extend KY cache K and V
construct the query q for x
compute new keys and values and
update key-value cache
attn-weighted sum of values
project back to dimension of x
More memory transfer
Less compute
This is not small if n is large … which it is for RAG/FiD
Recap: Fusion in Decoder (FiD)
FLOP analysis: Encoder is 6x as expensive as decoder!
…but at inference time decoding is slowest. Why?
What’s the fix?
Predicted by counting FLOPS for all the matmuls and assuming nt << ns and nt << d
Predicted by memory/FLOPs bottleneck
Recap: Fusion in Decoder Optimized (FiDO)
Encoder change: Decoder needs fewer KV cache entries
Encoder change: Decoder needs fewer KV cache entries
Decoder can afford to be bigger!
Recap: Fusion in Decoder Optimized (FiDO)
Recap: LUMEN: FiD with caching
The first N-K layers of the FiD encoder
The last K layers of the FiD encoder
FiD decoder
Passages are encoded with first N-K layers and stored off-line for every document
Recap: LUMEN: FiD with caching
Using 2/3 offline and 1/3 live is better than doing everything off-line
Outline
“FID” WITH DECODER-ONLY LLMS
Main ideas in FiD and extensions
Parallel Context Windows (PCW) - 2023
TurboRAG, Blockwise Sparse Attention - 2024
Dynamic Blockwise Sparse Attention - 2025
Analog for decoder-only LLMs
2023
Key idea: cross-attend within a context window, and cross-attend between task tokens and all context windows.
Very similar to FiD
Implemented with attention masks rather than parallel generation of keys and values
2023
Key idea: cross-attend within a context window, and cross-attend between task tokens and all context windows.
Very similar to FiD
Good results for NQ (vs conventional RAG system) and ICL (especially classification with many classes)
Implemented with attention masks rather than parallel generation of keys and values
2023
Key idea: cross-attend within a context window, and cross-attend between task tokens and all context windows.
2024
New idea:
A little like LUMEN
2025
Key idea: same as Block-Attention except
DBSA: Details
Baseline: many-shot learning
Dynamic example selection
DBSA: Results
Main ideas in FiD and extensions
Parallel Context Windows (PCW) - 2023
TurboRAG, Blockwise Sparse Attention - 2024
Dynamic Blockwise Sparse Attention - 2025
Analog for decoder-only LLMs
Work with Ingesting-Text-as-KV Cache continues…
Outline
SCALABLE EVALUATION
Recap: Leo’s talk
GenAI has changed how we evaluate ML
Who was the ICML general chair in 2008?
William Cohen
✅
GenAI has changed how we evaluate ML
???
GenAI has changed how we evaluate ML
Scalable Evaluation: AI Judges
NeurIPS 2024
“We provide the first empirical evidence of LLM judges exhibiting significant bias towards LLM-based rankers. Furthermore, we observe limitations in LLM judges’ ability to discern subtle system performance differences… “ - Balog et al
Scalable Evaluation: AI Judges
Nov 21, 2026
“Nuggets”
facts relevant to each answer
RAG system
RAG system
judge
✅
Scalable Evaluation: AI Judges
Arguments for:
“We provide the first empirical evidence of LLM judges exhibiting significant bias (statistically significant? but is it large?) towards LLM-based rankers…. we observe limitations in LLM judges’ ability to discern subtle system performance differences… “ - Balog et al
Argument against: ML/GenAI systems are interconnected
Outline
✅
Information In Networks Is Weird
Information In Networks Is Weird
private
public
Networks, Crowds, and Markets, 2010
Making decisions with other people’s choices as an input
P(Rational sequential decision-making leads to a cascade) >= 1/9
red
Making decisions with other people’s choices as an input
[Salganic, Dodds, Watts – Science 2006]
Making decisions with other people’s choices as an input
[Salganic, Dodds, Watts – Science 2006]
More social influence 🡺 More skewed distributions of success
weak signal
strong signal
Making decisions with other people’s choices as an input
[Salganic, Dodds, Watts – Science 2006]
More social influence 🡺 Less predictable which songs are successful
weak signal
strong signal
small preferences can lead to large changes in distribution
Scalable Evaluation: AI Judges
Arguments for:
Argument against: ML/GenAI systems are interconnected
No idea but large effects are definitely possible
Recap: Leo’s talk
LLMs rate, humans confirm
PPI: Statistically Unbiased AI Judges
Arguments for:
Outline
PREDICTION POWERED INFERENCE
PPI: Statistically Unbiased AI Judges
See also: double robust estimators, difference estimates, …
PPI: Statistically Unbiased AI Judges
100 simulated labels
10 similar simulated labelings
blue and red: 95% confidence interval
🡺 hill-climbing with small data is difficult
PPI: Statistically Unbiased AI Judges
same 100 simulated labels
5000 autorated labels: 2% FP and 18% FN
unequal FP and FN 🡺 autorater is biased
PPI combination of 10,000 biased autorater labels and 100 unbiased human labels. PPI lo and hi CI are solid lines, human labels alone are dotted
For PPI, true mean is in CI 95% of the time
PPI: Statistically Unbiased AI Judges
PPI combination of 10,000 biased autorater labels and 100 unbiased human labels. PPI lo and hi CI are solid lines, human labels alone are dotted
For PPI, true mean is in CI 95% of the time
Adding human labels until the human CI is the same width is the same as the PPI’s CI width.
PPI + 100 labels = 270 human labels
PI lets you scale impact of human labels by nearly 3x!
2024
Machinery we developed:
Tools to do Monte Carlo Integration over combinations of common posteriors for means and proportions
Used these to explore old and new methods for PPI…
Bayesian PPI
Difference estimate
(old)
Bayesian PPI version
PPI Visualization
g = μ1 + μ2
μ1 = 1⁄N Σj f(x̃j)
μ2 = 1⁄n Σi (yi − f(xi))
general rule: combine….
“covariates”: from unlabeled data
“rectifier”: from labeled data
2024
Machinery we developed:
Tools to do Monte Carlo Integration over combinations of common posteriors for means and proportions
Used these to explore old and new methods for PPI…
A practical problem with autoraters
ML models tend to hedge too much—put more weight in the middle of the distribution
mean y - f
mean y - f
A practical problem with autoraters
ML models tend to hedge too much—put more weight in the middle of the distribution
Solution: split the data by autorater score and use two difference estimates
mean y - f
mean y - f
Bayesian PPI for multiple “strata”
Stratified distance estimate: divide data intro ”strata” and do Bayesian PPI separately in each strata
=
Stratified sampling: separately sample disjoint “strata” of a population (e.g., college degrees vs no-college degrees) and combine estimates in each strata
Lowers variance if individual strata have low variance
need to learn a slightly more complex rectifier
Bayesian PPI: Results
SeaHorse: multilingual genAI labeling tasks
AQA: attributed question answering task
Background: Power Tuning for Difference Estimates
Difference estimate
(old)
Generalization (PPI++)
works for any λ, there is a good heuristic for setting it using cov of SN and Sn
λ=1 gives PPI
λ=0 gives classical statistic
PREDICTION POWERED INFERENCE:�RECENT WORK
NeurIPS 2024
Stratified PPI paper: Summary
uncertainty sampling
Stratified PPI Results
sample by wk
σk wk
simple active learning combined with the stratified rectifier
Multiple Prediction-Powered Inference
Charlie Cowen-Breen
Adam Fisch
Jacob Eisenstein
Alekh Agarwal
Amir Globerson
William Cohen
ICLR 2026
MultiPPI
MultiPPI
win-rate: Claude-2.1 and GPT-4-1106-Preview
(X1, X2, X3) = (human label, Gemini 2.5 Pro label, Gemini 2.5 Flash label)
expensive, cheaper, even cheaper
MultiPPI
whether a given math proof solution contains a process error
varying amounts of test-time compute for Gemini 2.5 Pro
ICLR 2027
matrix completion is the rectifier!
ICLR 2027
Recap: PPI - Unbiased AI Judges
Arguments for:
Argument against: ML/GenAI systems are interconnected
Recap: PPI - Unbiased AI Judges
Arguments for:
Remember: