The original word2vec trains its representations similarly to autoencoding.
rather than training against the input word itself, word2vec trains words against their adjacent words in the input corpus, either using the word to predict its context or using the context to predict the word.