Using Chapel for Natural Language Processing And Interaction
Brian Guarraci CTO @ Cricket Health
Using Chapel for Natural Language Processing And Interaction Brian - - PowerPoint PPT Presentation
Using Chapel for Natural Language Processing And Interaction Brian Guarraci CTO @ Cricket Health Motivation Augment chat bot Human-created rulesets with data ChatScript provides a powerful rule engine, but making Human-created rules is
Brian Guarraci CTO @ Cricket Health
making Human-created rules is unscalable and limited
can be plugged into ChatScript engine
Network Language Model (NNLM)
relation to training data and other words in the vocabulary
strategies to find a fast method for cross machine data sharing
locales
behavior yielding excessive cross-machine data transfers
as compute locales which train on data shards
updates the parameter locales after each training iteration
1 … P … N P+1
Parameter Locales Compute Locales
Δw w’
Locales are partitioned into param and compute roles
Δw w’ Δw w’ 1 … K
Data Shards
Multi-Locale version > 3x faster with similar accuracy (eventually).
Training Speed
Seconds
350 700 1050 1400
Iterations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Multi-Locale Single-Locale
Model Accuracy
Percent Correct
22.5 45 67.5 90
Iterations
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
Multi-Locale Single-Locale
Multi-locale configuration:
Subject-Object Index Object-Subject Index
Predicate Entry Predicate Hash Table 32-bit Subject ID 32-bit ObjectID
64-bit Index Entry
Locale Predicate Hash Partition
1 … N QN … Q1 Qtop
Predicate Partitions (locales) Partition Queries Top-level Query
In-memory partition holds results from partition queries.
AllegroGraph Benchmark
http://franz.com/agraph/allegrograph/agraph_benchmarks.lhtml