Towards Building Efficient Sentence BERT Models using Layer Pruning
Anushka Shelke, Riya Savant, Raviraj Joshi

TL;DR
This paper explores layer pruning in Sentence BERT models to create smaller, efficient models that maintain high embedding quality, outperforming similarly sized models trained from scratch.
Contribution
It demonstrates that layer pruning effectively reduces model size and complexity while preserving embedding performance, outperforming comparable scratch-trained models.
Findings
Pruned models perform competitively with full models.
Pruned models outperform similarly sized scratch-trained models.
Layer pruning reduces computational complexity significantly.
Abstract
This study examines the effectiveness of layer pruning in creating efficient Sentence BERT (SBERT) models. Our goal is to create smaller sentence embedding models that reduce complexity while maintaining strong embedding similarity. We assess BERT models like Muril and MahaBERT-v2 before and after pruning, comparing them with smaller, scratch-trained models like MahaBERT-Small and MahaBERT-Smaller. Through a two-phase SBERT fine-tuning process involving Natural Language Inference (NLI) and Semantic Textual Similarity (STS), we evaluate the impact of layer reduction on embedding quality. Our findings show that pruned models, despite fewer layers, perform competitively with fully layered versions. Moreover, pruned models consistently outperform similarly sized, scratch-trained models, establishing layer pruning as an effective strategy for creating smaller, efficient embedding models.…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsWeb Data Mining and Analysis · Service-Oriented Architecture and Web Services · Software System Performance and Reliability
MethodsRefunds@Expedia|||How do I get a full refund from Expedia? · Attention Is All You Need · Linear Layer · Softmax · Dropout · Attention Dropout · Dense Connections · Multi-Head Attention · Linear Warmup With Linear Decay · Weight Decay
