NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Optimal Size-Performance Tradeoffs: Weighing PoS Tagger Models

Magnus Jacobsen, Mikkel H. Sørensen, Leon DerczynskiarXiv 2021

Introduction

In modern Natural Language Processing (NLP), the prevailing trend is "bigger is better." State-of-the-art models like GPT-3 utilize hundreds of billions of parameters, achieving remarkable accuracy but requiring immense computational resources. This poses a significant challenge for deployment on edge devices—such as smartphones, wearables, or hearing aids—where memory and storage are strictly limited.

This research addresses the critical gap between raw performance and practical deployment costs. By benchmarking ten Part-of-Speech (PoS) taggers across eight diverse languages, the authors establish a framework for evaluating the "cost" of accuracy in bytes, identifying the optimal models for resource-constrained environments.

Methodology: Defining Model "Size" and the Skyline

Evaluating a model's footprint is more complex than it appears. The study utilizes three distinct metrics to capture a holistic view of spatial complexity: memory usage (RAM during inference), uncompressed model size (raw parameters on disk), and compressed model size (after lossless .xz compression).

To identify the best tradeoffs, the researchers employed Skyline Analysis (also known as Pareto optimality). A model resides on the "skyline" if no other model is simultaneously smaller and more accurate. Models not on this frontier are considered "dominated" by more efficient alternatives.

Token accuracy vs. memory footprint across eight languages, illustrating the Pareto frontier (skyline).

Cross-Lingual Performance

The study spans eight languages from different families—Afro-Asiatic (Arabic), Sino-Tibetan (Chinese), Indo-European (Danish, English, Hindi, Russian, Spanish), and Turkic (Turkish)—using the Universal Dependencies (UD) 2.6 datasets. This diversity reveals how linguistic structure impacts model efficiency.

Radar chart comparing model accuracy across diverse language families.

Key Insights

  • The "Framework Tax": The choice of deep learning library significantly impacts efficiency. For instance, the BiLSTM (Plank) model, built on the DyNet framework, proved much more memory-efficient than similar architectures implemented in TensorFlow or PyTorch.
  • Embeddings as Bottlenecks: In deep learning models, the majority of the footprint stems from pre-trained word embeddings rather than the neural layers themselves. Flair’s high accuracy, for example, is heavily tied to its massive 300-dimensional embeddings.
  • The Chinese Exception: Chinese proved challenging for most models due to its logographic nature. Interestingly, the attention-based BERT-BPEmb (using subword tokenization) outperformed the character-based Flair, suggesting subword tokenization handles Chinese character complexity more effectively than character-level LSTMs.

Results: Accuracy vs. Efficiency

The benchmarking reveals two distinct leaders in the PoS tagging landscape:

  • Accuracy King: Flair achieved the highest average token accuracy (96.44%) across most languages, though at a significant memory cost.
  • Efficiency King: SVMTool, a classical Support Vector Machine approach, consistently appeared on the skyline. It offers "good enough" accuracy (often >94%) while requiring nearly 100x less memory than Flair (~58 KB vs. ~5.5 MB).

Among neural options, BiLSTM (Plank) emerged as the most efficient "entry-level" deep learning tagger, frequently sitting on the memory-usage skyline. Conversely, the Stanford Tagger presented a unique profile: it is extremely small on disk due to hard-coded features but consumes disproportionately high RAM during inference.

Conclusion

While deep learning models continue to push the boundaries of accuracy, classical models like SVMTool remain highly relevant for edge computing. This study demonstrates that by shifting focus from pure accuracy to Pareto-optimal tradeoffs, developers can select architectures that provide the best performance for their specific hardware constraints. Future work will likely integrate temporal complexity (inference speed) and advanced compression techniques like pruning and quantization into the skyline analysis.

Summary updated

BibTeX
@misc{jacobsen2021optimal,
  author = {Magnus Jacobsen and Mikkel H. Sørensen and Leon Derczynski},
  title = {{Optimal Size-Performance Tradeoffs: Weighing PoS Tagger Models}},
  year = {2021},
  eprint = {2104.07951},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2104.07951},
}
Figure