LSTM's ability to retain information over arbitrarily long sequences stems from its unique internal architecture, which includes a 'cell state' acting as long-term memory, and three regulating 'gates'—input, output, and forget gates—that selectively control the flow of information into and out of the cell.