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

Costs to Consider in Adopting NLP for Your Business

Made Nindyatama Nityasya, Haryo Akbarianto Wibowo, Radityo Eko Prasojo, Alham Fikri AjiarXiv 2020

TL;DR

While Transformer-based models like BERT are the current gold standard for NLP, their high operational costs—in terms of hardware, latency, and storage—can be prohibitive for many businesses. This paper demonstrates that for common industrial tasks in under-resourced languages like Indonesian, classical machine learning models often deliver competitive performance at a fraction of the resource cost.

What Problem Does This Paper Address?

In the race for state-of-the-art (SOTA) accuracy, the research community has largely pivoted toward massive, deep transformer-based models. However, for companies operating in emerging markets, the "SOTA trap" is real. Adopting these models requires expensive GPU clusters, specialized human expertise, and significant amounts of labeled data—all of which are scarce for under-resourced languages like Indonesian.

The authors address the practical dilemma: Is the marginal gain in accuracy from a Transformer worth the massive increase in production and utilization costs? They provide a comprehensive benchmark comparing classical ML, standard neural networks, and Transformers across dimensions that actually matter to a business: F1-score, training time, model size, and inference latency.

Methods

The researchers compared three tiers of algorithms:

  1. Classical ML: Logistic Regression (LR) and Support Vector Machines (SVM) for classification; Conditional Random Fields (CRF) for sequence labeling.
  2. Neural Networks: Convolutional Neural Networks (CNN) and a custom Bidirectional LSTM (Bi-LSTM) that stacks character-level and word-level information to better handle the nuances of the Indonesian language.

    Fig. 2: Character-Word level BI-LSTM. ’Aku Budi’ means ’I am Budi’.
  3. Transformers: Multilingual BERT (mBERT) and a localized "lite" model (IndoNLU, based on the ALBERT architecture).

The study is unique because it doesn't just look at accuracy; it benchmarks performance on both CPUs and GPUs, measuring how long it takes to load a model and how fast it can process a prediction.

Datasets

The authors utilized eight different Indonesian datasets representing real-world industrial use cases, ranging from chatbot intent classification to e-commerce product attribute extraction.

Table 1: Data statistics. Train: total training data. Dev: total validation data. Test: total testing data. N: total data. c: total label. d: average data per class for classification. l: average sentence length. V : vocab size. ts: average sentence length for 100 sample prediction data.

These datasets include informal language, colloquialisms, and imbalanced labels, providing a much more realistic stress test than standard academic benchmarks.

Key Insights and Ideas

  • The "Good Enough" Threshold: While the ALBERT-based IndoNLU model generally achieved the highest F1-scores, classical approaches were often only ~0.03 points behind. For many business applications, a 3% accuracy boost does not justify a 100x increase in training time.
  • Small Data, Big Problems for Transformers: On the Prod dataset (which has many labels but few training instances), the classical CRF actually outperformed the Transformer. This suggests that for niche industrial tasks with limited data, "old school" methods are still superior.
  • The PaaS Reality Check: In a Platform-as-a-Service (PaaS) environment, users often want to retrain models frequently as they add small batches of data. The long training cycles of Transformers make this iteration loop infeasible without massive infrastructure investment.
  • Storage and Memory Bloat: A single customized BERT model can exceed 2GB in size. For a company hosting hundreds of client-specific models, the storage and memory costs for versioning and deployment become a significant bottleneck.

Key Results

The quantitative gap between "classic" and "SOTA" is eye-opening:

  • Training Speed: Classical models train in seconds on a standard CPU. Transformers take hundreds of times longer and essentially require a GPU to be viable.
  • Inference Latency: Prediction on a CPU is roughly 10x faster for classical models compared to Transformers running on a GPU.
  • Model Size: As shown in the researchers' findings, classical models are often under 25MB, whereas Transformers are orders of magnitude larger, complicating "cold start" load times in production environments.
Table 2: F1-score and training time comparison

Limitations and Future Work

The authors acknowledge that as training data increases, the performance gap between Transformers and classical models tends to widen. However, they also encountered significant hurdles with Transformers, such as mBERT suffering from CUDA Out-of-Memory (OOM) errors on larger datasets.

Future work should focus on making Transformers more accessible through better knowledge distillation (creating smaller "student" models from large "teachers") and more efficient transfer learning. For now, the authors' advice to early adopters in emerging markets is clear: Start simple. Use classical methods to establish a baseline before committing to the high overhead of deep learning.

Summary updated

BibTeX
@misc{nityasya2020costs,
  author = {Made Nindyatama Nityasya and Haryo Akbarianto Wibowo and Radityo Eko Prasojo and Alham Fikri Aji},
  title = {{Costs to Consider in Adopting NLP for Your Business}},
  year = {2020},
  eprint = {2012.08958},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2012.08958},
}
Figure