Exploration of Sentence Representations in Spanish BERT-like Models

Gonzalo Herrera, Aiala Rosá, Luis Chiruzzo


Abstract
Transformer-based language models, ubiquitous in NLP nowadays, generate internal representations (embeddings) of words and sentences. Yet, systematic comparisons of embedding strategies from various models remain limited. In this work, we evaluate Spanish embeddings from several BERT-like models (BETO, multilingual BERT, XLM-RoBERTa, ROUBERTa) to understand their syntactic and semantic capabilities across layers. We propose novel sentence-level analogy tests to probe generalization. Results show tasks like verb negation or word reordering perform best with embeddings from earlier layers, while nuanced semantic distinctions—such as agent or patient gender—are better captured by deeper layers. Our findings provide guidelines for embedding strategies and offer a foundation for further NLP research.
Anthology ID:
2026.lanlp-1.8
Volume:
Proceedings of LANLP: Bridging Ibero and Latin American NLP Communities
Month:
May
Year:
2026
Address:
Palma, Mallorca (Spain)
Editors:
German Rigau Claramunt, Pablo Gamallo, Rafael Muñoz Guillena, Luis Chiruzzo, Eugenio Martínez Cámara
Venues:
LANLP | WS
SIG:
Publisher:
ELRA Language Resources Association (ELRA)
Note:
Pages:
55–65
Language:
External URL:
https://lrec.elra.info/lrec2026-ws-lanlp-08
DOI:
10.63317/5moein87oxiw
Bibkey:
Cite (ACL):
Gonzalo Herrera, Aiala Rosá, and Luis Chiruzzo. 2026. Exploration of Sentence Representations in Spanish BERT-like Models. In Proceedings of LANLP: Bridging Ibero and Latin American NLP Communities, pages 55–65, Palma, Mallorca (Spain). ELRA Language Resources Association (ELRA).
Cite (Informal):
Exploration of Sentence Representations in Spanish BERT-like Models (Herrera et al., LANLP 2026)
Copy Citation: