A scalable solution for rule-based part-of-speech tagging on novel hardware accelerators

E Sadredini, D Guo, C Bo, R Rahimi… - Proceedings of the 24th …, 2018 - dl.acm.org
Proceedings of the 24th ACM SIGKDD international conference on knowledge …, 2018dl.acm.org
Part-of-speech (POS) tagging is the foundation of many natural language processing
applications. Rule-based POS tagging is a wellknown solution, which assigns tags to the
words using a set of predefined rules. Many researchers favor statistical-based approaches
over rule-based methods for better empirical accuracy. However, until now, the
computational cost of rule-based POS tagging has made it difficult to study whether more
complex rules or larger rulesets could lead to accuracy competitive with statistical …
Part-of-speech (POS) tagging is the foundation of many natural language processing applications. Rule-based POS tagging is a wellknown solution, which assigns tags to the words using a set of predefined rules. Many researchers favor statistical-based approaches over rule-based methods for better empirical accuracy. However, until now, the computational cost of rule-based POS tagging has made it difficult to study whether more complex rules or larger rulesets could lead to accuracy competitive with statistical approaches. In this paper, we leverage two hardware accelerators, the Automata Processor (AP) and Field Programmable Gate Arrays (FPGA), to accelerate rule-based POS tagging by converting rules to regular expressions and exploiting the highly-parallel regular-expressionmatching ability of these accelerators. We study the relationship between rule set size and accuracy, and observe that adding more rules only poses minimal overhead on the AP and FPGA. This allows a substantial increase in the number and complexity of rules, leading to accuracy improvement. Our experiments on Treebank and Brown corpora achieve up to 2,600X and 1,914X speedups on the AP and on the FPGA respectively over rule-based methods on the CPU in the rule-matching stage, up to 58× speedup over the Perceptron POS tagger on the CPU in total testing time, and up to 253× speedup over the LSTM tagger on the GPU in total testing time, while showing a competitive accuracy compared to neural-network and statistical solutions.
ACM Digital Library