Comment Re:Why did that need AI? (Score 1) 71
Oh, and I forgot to include the "why". TL/DR: it just works better.
To form a latent, the network fundamentally has to learn correlations, in order to be able to accurately compress and then decompress the information in its input space. Due to the limited size of the pinch, you simply can't store every possible data-space representation of a given input. The encoding down to these vectors must persist despite the sort of "real-world" variations that occur in the input space.
Within the latent space (latents are vectors), you can think of individual subconcepts as being directions with in the latent space. In the "king" / "queen" case, for example, adding "man" times some scalar shifts you forward and backwards along degrees of masculinity. In the case of a spectrum, these vectors represent various fundamental molecular properties of the material being scanned. By computing the cosine distance vs. known entries in the vector db and picking the most similar entries, you are in effect minimizing the distance between the molecular properties of the samples.
By contrast, you certainly CAN minimize distances in data space! The problem is that data space lacks correlations. Two things being physically similar in data space doesn't actually mean that much if the things that are different are extremely definitionally-critical aspects. By contrast, definitionally-critical aspects inherently become a key part of vector encoding. Trying to work in text space, for example, a distance algorithm might declare that "king" and "kingdom" are textually similar, but "queen" does not appear at all similar to it. But it's fundamentally similar in vector space.