Natural Language Processing (NLP) has made a major leap in the past decade, both in theory and in practical integration into broadly deployed industry solutions. From interacting with virtual assistants to texting with a flight-booking chatbot to extracting insights from call center interactions to analyze customer satisfaction levels, NLP is everywhere today. In 2018, Deep learning (DL) for NLP finally hit its stride with neural nets outperforming traditional machine learning (ML) methods in a wide range of NLP tasks, and even surpassing human performance in the challenging areas of question answering and machine translation. The field seems poised to continue its advances in using and understanding natural language. However, there are a number of significant challenges when deploying NLP solutions in commercial environments that need to be addressed. Among the top challenges are improving focused learning from a small set of examples and scaling solutions across different domains. A few recent technology advances and practices hold great promise for improving scalability and robustness, and embody a shift in how business organizations consume computing resources and deploy NLP applications.
In 1997, Sepp Hochreiter and Jürgen Schmidhuber introduced the long short term memory (LSTM), a memory cell unit that efficiently stores information over extended time intervals via Recurrent Neural Networks (RNN). LSTMs have since become a key tool for capturing long-range dependencies for NLP tasks. Two decades later, the bi-directional LSTM DL version (BiLSTM) has driven many of the advances in NLP, powered by neural network (NN) computing resources, word-embedding representations and greater access to useful datasets. As Chris Manning, director of Stanford’s Artificial Intelligence Library, explains:“No matter what the [NLP] task, you throw a BiLSTM at it.” 
No matter what the [NLP] task, you throw a BiLSTM at it.
Many of the NLP use cases in the industry fall under the category of text analytics, targeting the extraction of symbolic information from unstructured text in order to infer useful insights. Practical applications of this technology include the extraction of concepts, events and topics from emails, online reviews, tweets, call center voice interactions, survey results, and other types of textual feedback, extracted for the purpose of analyzing customer opinions, needs or levels of satisfaction from products and services.
However, organizations are generating textual data at explosive rates and increasingly need to exploit their unstructured data to improve operational costs and competitiveness. The current DL paradigms cannot keep pace.
To expound: nowadays, data science teams build a DL model to solve specific NLP tasks. Data-hungry DL models must be fed with large amounts of annotated data, which is time consuming and costly to acquire since its annotation requires domain expertise. At the same time, business environments are dynamic and complex, making it impractical to collect and label enough data for each scenario in a given domain within a practical time frame. Although much progress has been made in DL for NLP, the current models are not able to cope with the challenges listed above, a major holdback to the deployment of DL-NLP in commercial environments.
Transfer learning refers to the use of a model that has been trained to solve one problem (such as classifying images from ImageNet) as the basis to solve some other somewhat similar problem.
Encouraging results were recently achieved using transfer learning for various NLP tasks. As defined by Jeremy Howard, founding researcher at fast.ai: “Transfer learning refers to the use of a model that has been trained to solve one problem (such as classifying images from ImageNet) as the basis to solve some other somewhat similar problem.” Effective NLP is highly dependent on the context of the language being analyzed. New NLP practices are addressing transfer learning by learning language structures from domains/tasks rich with labelled examples and applying the learned model with some adaptation to a different domain/task.
A new set of approaches have emerged with effective transfer learning methods: Embeddings from Language Model (ELMo), Universal Language Model Fine-tuning (ULMFit), Transformer and recently Bidirectional Encoder Representations from Transformers (BERT). These approaches are demonstrating that pre-trained models originally trained on a specific task such as a language model (LM) task can be used successfully for other NLP tasks, outperforming state-of-the-art performance as well as gaining high accuracy with smaller amounts of data when compared to training from scratch. For example, fast.ai has demonstrated that the ULMFit method “significantly outperforms the state-of-the-art on six text classification tasks, reducing the error by 18-24% on the majority of datasets. Furthermore, with only 100 labeled examples, it matches the performance of training from scratch on 100x more data.”
NLP transfer learning is most likely to replace the traditional approach of training using a large amount of labeled data (training from scratch) to fine-tune a pre-trained model with training using a small amount of in-domain labeled data. The NLP transfer learning approach includes the following steps:
In practice, NLP applications deployed in businesses will most likely focus on the fine-tuning and inference steps (Steps 2-3 of Figure 1), leveraging generic pre-trained models (Step 1). This development has a major impact on the way business organizations will consume computing resources, shifting the emphasis from training to the inference stage. The inference computing resource will have to handle loading of large models and accordingly an heavy feed-forward calculations, and therefore we anticipate significant changes in the design of inference computing architectures.
An advancement related to this trend features the development of software frameworks aiming to reduce model size and computational costs of specific tasks such as the work presented in Transformer to CNN.
The Intel AI lab is working on efficient transfer learning techniques for training with small amounts of training data and providing tools for non-DL/NLP experts to scale and adapt models to new domains. The models and tools are available in NLP Architect, an open and flexible library for the NLP research and development community.
Here are two examples that demonstrate the way NLP Architect leverages transfer learning to mitigate the challenges in commercial deployments:
We are witnessing a paradigm shift in the way data scientists are deploying NLP applications in business environments, such as the adaptation of large pre-trained models with relatively small amounts of data instead of the traditional approach of training from-scratch with large amounts of data per task and then performing inference. The implications of this shift are very promising for the deployment of NLP applications in commercial settings. For example, we see that the field of computer vision has gone through a set of accelerated adoptions with the rise of transfer learning (e.g. ImageNet), which enabled the productization of the technology. We expect a similar development in the field of NLP.
Representations for Language: From Word Embeddings to Sentence Meanings (slide 28): https://nlp.stanford.edu/manning/talks/Simons-Institute-Manning-2017.pdf.
According to Research and Markets, the text analytics market was valued at $3.95 Billion in 2018 and is projected to reach $10.38 Billion by 2023 with a CAGR of 17.3% during the forecast period of 2018–2023.
Intel technologies’ features and benefits depend on system configuration and may require enabled hardware, software or service activation. Performance varies depending on system configuration. No product or component can be absolutely secure. Check with your system manufacturer or retailer or learn more at intel.ai. Intel and the Intel logo are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other countries. *Other names and brands may be claimed as the property of others. © Intel Corporation