Towards Building Efficient Sentence BERT Models using Layer Pruning

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Shelke, Anushka, Savant, Riya, Joshi, Raviraj
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929509672943616
author Shelke, Anushka
Savant, Riya
Joshi, Raviraj
author_facet Shelke, Anushka
Savant, Riya
Joshi, Raviraj
contents 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. These results highlight layer pruning as a practical approach for reducing computational demand while preserving high-quality embeddings, making SBERT models more accessible for languages with limited technological resources.
format Preprint
id arxiv_https___arxiv_org_abs_2409_14168
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Towards Building Efficient Sentence BERT Models using Layer Pruning
Shelke, Anushka
Savant, Riya
Joshi, Raviraj
Computation and Language
Machine Learning
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. These results highlight layer pruning as a practical approach for reducing computational demand while preserving high-quality embeddings, making SBERT models more accessible for languages with limited technological resources.
title Towards Building Efficient Sentence BERT Models using Layer Pruning
topic Computation and Language
Machine Learning
url https://arxiv.org/abs/2409.14168