Can you spot a single mistake in a secret code?
Image: Public domain, via Wikimedia Commons
Can you spot a single mistake in a secret code?
Imagine sending a secret message where you want to make sure only one letter is wrong, even if someone tries to mess with it.
Think of adding a secret marker to your message that changes depending on whether you want an even or odd number of mistakes. This marker helps you quickly spot if there's just one tiny error.
Example
You send "1011101" with an even parity marker. If one bit flips to "1011111", the total 1s count changes from even to odd, signaling an error.
Remember this
The parity check bit ensures you can quickly detect a single error in your message.
Text adapted from Wikipedia, licensed under CC BY-SA 4.0.
Cyclic redundancy check
How do we know if a message is corrupted during transmission?
Adam has bias correction: divides by (1-β^t) in early steps
Why do we sometimes need to fix mistakes in computer decisions?
Shannon's source coding theorem: you can't compress below entropy
Can you squeeze endless text into fewer bits without losing anything?
Entropy (information theory)
Entropy of a fair coin is 1 bit
label smoothing does: replaces one-hot [0,0,1,0] with [0.025, 0.025, 0.925, 0.025]
How can a computer learn without being told exactly what to do?
ReLU and Leaky ReLU
Why do computers sometimes struggle with simple decisions?
Swipe through 100 ML concepts daily
Open Pocket Polymath