Module 10 Activity
Scenario
You are about to use an embedding for retrieval. Establish that it is useful and that it does not leak.
Task
- Encode a dataset once and fit two different downstream tasks on the cached vectors.
- Compare cosine and Euclidean on vectors of different lengths, then normalise and compare again.
- Train autoencoders at several bottleneck widths and find where reconstruction error collapses.
- Plant known clusters and verify the structure numerically rather than from a plot.
- Probe the embeddings for a sensitive attribute, and probe the raw content for comparison.
- Report downstream accuracy and leakage together.
Deliverable
An exploration report with downstream accuracy, raw-feature accuracy, attribute recoverability, and neighbour agreement.
Check your work
- Two vectors in the same direction have cosine 1.0 and non-zero Euclidean distance. Normalising
reconciles them.
- Reconstruction error collapses at the data's true dimensionality and barely improves above it.
- If an attribute is recoverable well above its base rate, it is influencing retrieval.
The expectation to state first
An untrained encoder is a random projection. It should not beat raw features. If it does, the evaluation is wrong.
