[Paper Review] Knowledge Authoring and Question Answering via Controlled Natural Language
SLING is a neural frame semantic parsing framework that directly maps natural language text to semantic frame graphs using a transition-based parsing system with bidirectional LSTM encoding and a Transition-Based Recurrent Unit (TBRU) for end-to-end training. It achieves state-of-the-art performance on OntoNotes with a Slot F1 of 79.95% and enables high-speed inference via a JIT-compiled Myelin runtime, parsing at 2500 tokens per CPU second.
Knowledge acquisition from text is the process of automatically acquiring, organizing and structuring knowledge from text which can be used to perform question answering or complex reasoning. However, current state-of-the-art systems are limited by the fact that they are not able to construct the knowledge base with high quality as knowledge representation and reasoning (KRR) has a keen requirement for the accuracy of data. Controlled Natural Languages (CNLs) emerged as a technology to author knowledge using a restricted subset of English. However, they still fail to do so as sentences that express the same information may be represented by different forms. Current CNL systems have limited power to standardize sentences that express the same meaning into the same logical form. We solved this problem by building the Knowledge Authoring Logic Machine (KALM), which is a technology for domain experts who are not familiar with logic to author knowledge using CNL. The system performs semantic analysis of English sentences and achieves superior accuracy of standardizing sentences that express the same meaning to the same logical representation. Besides, we developed the query part of KALM to perform question answering, which also achieves very high accuracy in query understanding.
Motivation & Objective
- To develop a neural semantic parser that bypasses intermediate symbolic representations and directly outputs frame graphs from raw text tokens.
- To improve end-to-end performance in joint semantic parsing tasks such as named entity recognition, semantic role labeling, and coreference by training all components jointly.
- To enable efficient, low-latency inference for real-world applications through a JIT-compiled neural network runtime.
- To explore attention mechanisms focused on evolving frame structures rather than input tokens, improving contextual awareness during parsing.
Proposed method
- Uses a bidirectional LSTM to encode input text tokens into contextual vector representations.
- Employs a Transition-Based Recurrent Unit (TBRU) to generate a sequence of parsing actions that incrementally build frame graphs.
- Introduces a frame-aware attention mechanism that focuses on previously created frames rather than input tokens.
- Represents semantic frames as directed graphs with named slots and values, including frame references, enabling complex semantic structures.
- Utilizes a frame store data structure in C++ for compact, efficient storage and management of frame graphs.
- Employs a JIT compiler (Myelin) to compile the neural network into optimized x64 machine code, enabling high-speed inference.
Experimental results
Research questions
- RQ1Can a neural network parse raw text directly into semantic frame graphs without intermediate symbolic representations?
- RQ2How does frame-aware attention—focusing on evolving frame structures—improve parsing accuracy compared to input-token attention?
- RQ3To what extent can end-to-end training of a joint semantic parsing model improve performance on entity, type, role, and frame prediction tasks?
- RQ4Can a JIT-compiled neural network inference engine significantly outperform standard deep learning frameworks in speed and memory efficiency?
Key findings
- The SLING parser achieves a Slot F1 score of 79.95% on the OntoNotes test set, demonstrating strong performance in joint prediction of frames, roles, types, and labels.
- The model reaches a Span F1 and Frame F1 of approximately 93.8%, indicating high accuracy in identifying and linking semantic spans and frames.
- The Role F1 score is 69.65%, suggesting that frame-to-frame link prediction remains a challenge, likely due to limited modeling of inter-frame relations.
- The Myelin-compiled parser runs at 2500 tokens per CPU second, over ten times faster than the TensorFlow-based version, which runs at 200 tokens per second.
- The model generalizes well to unseen data, with minimal performance gap between dev and test sets, indicating robustness despite limited regularization.
- The LABEL F1 score shows signs of overfitting, peaking at 96.18 on dev before declining to 95.73 at the final checkpoint, suggesting the need for improved regularization or architectural changes.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.