Topological Invariance and Breakdown in Learning