On Geodesic Distances and Contextual Embedding Compression for Text Classification
Not on the map. Why?
Abstract (arXiv)
In some memory-constrained settings like IoT devices and over-the-network data pipelines, it can be advantageous to have smaller contextual embeddings. We investigate the efficacy of projecting contextual embedding data (BERT) onto a manifold, and using nonlinear dimensionality reduction techniques to compress these embeddings. In particular, we propose a novel post-processing approach, applying a combination of Isomap and PCA. We find that the geodesic distance estimations, estimates of the shortest path on a Riemannian manifold, from Isomap's k-Nearest Neighbors graph bolstered the performance of the compressed embeddings to be comparable to the original BERT embeddings. On one dataset, we find that despite a 12-fold dimensionality reduction, the compressed embeddings performed within 0.1% of the original BERT embeddings on a downstream classification task. In addition, we find that this approach works particularly well on tasks reliant on syntactic data, when compared with linear dimensionality reduction. These results show promise for a novel geometric approach to achieve lower dimensional text embeddings from existing transformers and pave the way for data-specific and application-specific embedding compressions.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 14 of its 19 references that are in the map. First posted on arXiv 22 Apr 2021.
Builds on
14 of 19 references.
References · 14
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2014Adam: A Method for Stochastic Optimizationcited by 36,960
- 2015Distilling the Knowledge in a Neural Networkcited by 10,076
- 2018GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understandingcited by 4,854
- 2019DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lightercited by 4,243
- 2015Deep Compression: Compressing Deep Neural Networks with Pruning, Trained Quantization and Huffman Codingcited by 2,291
- 2018Neural Network Acceptability Judgmentscited by 952
- 2017All-but-the-Top: Simple and Effective Postprocessing for Word Representationscited by 205
- 2014Compressing Deep Convolutional Networks using Vector Quantizationcited by 189
- 2019Does BERT Make Any Sense? Interpretable Word Sense Disambiguation with Contextualized Embeddingscited by 55
- 2017Simple and Effective Dimensionality Reduction for Word Embeddingscited by 38
- 2019Specializing Word Embeddings (for Parsing) by Information Bottleneckcited by 27
2 more
- 2019On the Downstream Performance of Compressed Word Embeddingscited by 13
- 2015Compressing Word Embeddingscited by 3
Built on by
Citing papers per year: 2024: 2.
2 papers.