Aligned Contrastive Predictive Coding
Jan Chorowski, Grzegorz Ciesielski, Jarosław Dzikowski, Adrian Łańcucki, Ricard Marxer, Mateusz Opala, Piotr Pusz, Paweł Rychlikowski, Michał Stypułkowski
TL;DR
ACPC addresses learning self-supervised speech representations with content-aligned timing by aligning a short horizon of predictions $K$ to a longer latent horizon $M$ using Dynamic Time Warping, instead of enforcing exact future timing as in CPC. The method uses a strided convolutional encoder, a two-layer LSTM context model, and a Transformer-based prediction head, with a GPU-CTC-based DTW approximation and a contrastive loss over $N$ negatives. Empirically, ACPC yields smoother, more phoneme-aligned latent representations, improves ABX error rates by a notable margin, and increases frame-wise linear phone classification accuracy, while also offering up to ~1.7x faster training due to fewer prediction heads. These results suggest ACPC as a step toward segmentation-aware, linguistically meaningful self-supervised speech representations that scale to large datasets and reduce reliance on exact temporal timing.
Abstract
We investigate the possibility of forcing a self-supervised model trained using a contrastive predictive loss to extract slowly varying latent representations. Rather than producing individual predictions for each of the future representations, the model emits a sequence of predictions shorter than that of the upcoming representations to which they will be aligned. In this way, the prediction network solves a simpler task of predicting the next symbols, but not their exact timing, while the encoding network is trained to produce piece-wise constant latent codes. We evaluate the model on a speech coding task and demonstrate that the proposed Aligned Contrastive Predictive Coding (ACPC) leads to higher linear phone prediction accuracy and lower ABX error rates, while being slightly faster to train due to the reduced number of prediction heads.
