# Silent broadcasting: why a falling loss can break your model

**Series:** ACADEMY · PYTORCH FUNDAMENTALS · 02  
**Runtime verified:** PYTORCH 2.15.0+CPU (exit 0)  
**Duration:** 00:52

## Key Takeaways
- Silent broadcasting stretches a `(4,)` prediction vector against a `(4, 1)` target column into a `(4, 4)` cross-pairs matrix with 12 wrong pairs.
- Verified on live PyTorch `2.15.0+cpu`: matched MSE is `0.0000`, while silent broadcast MSE jumps to `2.5000`.
- Across 200 SGD training steps, reported loss falls from `2.5000` to `1.2526` while true MSE climbs from `0.0000` to `1.1466` (slope flattens to `w=0.04`).
- **DAI Practitioner Habit:** Always run `assert preds.shape == targets.shape` and `targets.squeeze(-1)` before every loss call.

## Key Terms
- **tensor:** A numbered grid paired with metadata: its shape, number type, memory strides, and device.
- **broadcasting:** Automatic stretching of size-1 axes so mismatched tensor shapes combine without raising an error.

## Chapters
- **00:00 — Hook — The Falling Loss Trap:** A PyTorch training script can print a smooth falling error score while quietly destroying your model.
- **00:22 — Mental Model — 16 Cross-Pairs & 200-Step Drift:** So how does one extra bracket turn four exact matches into an error score of two point five?
- **00:42 — Fix — DAI Practitioner Shape Guard:** Always assert matching shapes and squeeze extra axes before every loss call. We verified this live in PyTorch and saved the script for you.
