Abstract
Selecting the optimal pre-trained language model (LM) for specific NLP tasks often requires exhaustive fine-tuning, a process that is computationally expensive and environmentally taxing. This paper introduces DEPPROBE, a lightweight method that utilizes linear probing to rank candidate LMs for dependency parsing tasks without the need for full fine-tuning. By evaluating 46 LM-language pairs across nine diverse treebanks, the authors demonstrate that DEPPROBE can identify the best-performing model with up to 89% accuracy while using orders of magnitude less compute. Our analysis reveals that while linear probes are highly effective for model selection, certain architectural designs, such as decoupled embeddings, can mask a model's true potential during the probing phase.
1. Introduction
In the current NLP landscape, practitioners are faced with an overwhelming variety of pre-trained language models, ranging from massive multilingual giants like XLM-R to specialized, language-specific variants. For structured prediction tasks such as dependency parsing—which involves identifying grammatical relationships like subject-verb or modifier-head—choosing the right model is critical.
Traditionally, the only reliable way to select a model was to perform full fine-tuning on several candidates and compare their performance. This "train-and-test" approach is increasingly infeasible for many researchers due to the high costs of computation and time. While the Computer Vision community has developed efficient ways to rank image encoders, NLP has lacked a robust equivalent for structured tasks. This paper addresses this gap by proposing a "try before you buy" strategy using lightweight probes.
2. Methodology: The DEPPROBE Framework
The researchers leverage Dependency Probing, a technique where the underlying language model remains "frozen" (its weights are not updated). Instead of training the entire model, a simple linear probe is trained on top of the model's internal representations.
DEPPROBE consists of two primary components:
- Structural Subspace (Matrix $B$): This component maps the model's internal embeddings into a geometric space where the physical distance between word vectors reflects their distance within a syntax tree.
- Relational Subspace (Matrix $L$): This component identifies the specific type of grammatical relationship (e.g., determiner, modifier, or object).
By combining these subspaces, DEPPROBE can reconstruct a complete grammatical tree. The efficiency of this approach is significant: the probe contains only 51k to 190k trainable parameters, a fraction of the 583M parameters found in models like RemBERT.
3. Experimental Setup
The authors evaluated DEPPROBE across 46 different LM-language pairs. To ensure linguistic diversity, they utilized nine treebanks from the Universal Dependencies (UD) v2.9 collection, covering various writing systems and morphological complexities:
- Arabic (PADT), English (EWT), Finnish (TDT), Ancient Greek (PROIEL), Hebrew (HTB), Korean (GSD), Russian (GSD), Swedish (Talbanken), and Chinese (GSD).
4. Key Results and Discussion
4.1 Predictive Accuracy and Efficiency
DEPPROBE demonstrated high predictive power, correctly identifying the best LM choice 79% of the time across all 46 setups. When excluding specific architectural outliers, this accuracy rose to 89%. Furthermore, the Pearson correlation between the probe's score and final fine-tuned performance was a robust 0.78.
In terms of efficiency, DEPPROBE offers a massive speedup. A probe can be trained in approximately 15 minutes, whereas the "gold standard" full parser (BAP) requires roughly an hour per model. For practitioners testing dozens of candidates, these savings are transformative.
4.2 The RemBERT Outlier
A significant finding involved RemBERT, a model utilizing "decoupled embeddings." DEPPROBE consistently ranked RemBERT poorly, yet RemBERT often emerged as the top performer after full fine-tuning. The authors suggest that RemBERT’s architecture does not store syntactic information in a simple linear way "out-of-the-box." Instead, it provides a superior initialization that allows the model to learn syntax rapidly once the fine-tuning process begins. This suggests that while linear probes are excellent for most models, they may struggle with architectures that hide their potential in non-linear representations.
4.3 Layer-wise Syntax Distribution
Consistent with previous literature, the study confirmed that syntactic information is most concentrated in the middle layers of these models. For instance, in a 32-layer model like RemBERT, the most useful syntactic features were typically found around layer 17.
5. Conclusion and Future Work
DEPPROBE provides a practical, low-cost tool for model selection in dependency parsing. By spending 15 minutes on a probe, researchers can avoid days of wasteful fine-tuning on sub-optimal models.
Future research will focus on expanding this ranking method to other structured tasks and investigating more sophisticated (yet still efficient) probes that can better account for decoupled embeddings and other modern architectural trends. For now, DEPPROBE stands as a powerful diagnostic for navigating the crowded landscape of modern language models.
Summary updated