Hostname: page-component-74656f9884-8r8nv Total loading time: 0 Render date: 2026-11-06T23:41:27.270Z Has data issue: false hasContentIssue false

Neural embeddings: accurate and readable inferences based on semantic kernels

Published online by Cambridge University Press:  31 July 2019

Danilo Croce*
Affiliation:
Department of Enterprise Engineering, University of Roma, Tor Vergata, Rome, Italy
Daniele Rossini
Affiliation:
Department of Enterprise Engineering, University of Roma, Tor Vergata, Rome, Italy
Roberto Basili
Affiliation:
Department of Enterprise Engineering, University of Roma, Tor Vergata, Rome, Italy
*
*Corresponding author. Email: croce@info.uniroma2.it
Rights & Permissions [Opens in a new window]

Abstract

Sentence embeddings are the suitable input vectors for the neural learning of a number of inferences about content and meaning. Similarity estimation, classification, emotional characterization of sentences as well as pragmatic tasks, such as question answering or dialogue, have largely demonstrated the effectiveness of vector embeddings to model semantics. Unfortunately, most of the above decisions are epistemologically opaque as for the limited interpretability of the acquired neural models based on the involved embeddings. We think that any effective approach to meaning representation should be at least epistemologically coherent. In this paper, we concentrate on the readability of neural models, as a core property of any embedding technique consistent and effective in representing sentence meaning. In this perspective, this paper discusses a novel embedding technique (the Nyström methodology) that corresponds to the reconstruction of a sentence in a kernel space, inspired by rich semantic similarity metrics (a semantic kernel) rather than by a language model. In addition to being based on a kernel that captures grammatical and lexical semantic information, the proposed embedding can be used as the input vector of an effective neural learning architecture, called Kernel-based deep architectures (KDA). Finally, it also characterizes by design the KDA explanatory capability, as the proposed embedding is derived from examples that are both human readable and labeled. This property is obtained by the integration of KDAs with an explanation methodology, called layer-wise relevance propagation (LRP), already proposed in image processing. The Nyström embeddings support here the automatic compilation of argumentations in favor or against a KDA inference, in form of an explanation: each decision can in fact be linked through LRP back to the real examples, that is, the landmarks linguistically related to the input instance. The KDA network output is explained via the analogy with the activated landmarks. Quantitative evaluation of the explanations shows that richer explanations based on semantic and syntagmatic structures characterize convincing arguments, as they effectively help the user in assessing whether or not to trust the machine decisions in different tasks, for example, Question Classification or Semantic Role Labeling. This confirms the epistemological benefit that Nyström embeddings may bring, as linguistically rich and meaningful representations for a variety of inference tasks.

Information

Type
Article
Copyright
© Cambridge University Press 2019 
Figure 0

Figure 1: Dependency parse tree of “What is the width of a football field?”.

Figure 1

Figure 2: Grammatical Relation Centered Tree (GRCT) of “What is the width of a football field?”.

Figure 2

Figure 3: Lexical only centered tree (LOCT) of “ What is the width of a football field?”.

Figure 3

Figure 4: Compositional grammatical relation centered tree (CGRCT) of the sentence “ What instrument does Hendrix play?”.

Figure 4

Figure 5: Kernel-based deep architecture.

Figure 5

Figure 6: QC task—accuracy measure curves w.r.t. the number of landmarks.

Figure 6

Table 1: Results in terms of accuracy and saving in the QC task. In brackets, accuracy scores of the linear classifier SVMlin

Figure 7

Figure 7: QC task—accuracy curves w.r.t. the number of landmarks.

Figure 8

Figure 8: A dependency graph associated with “ Carry the book to my nightstand”.

Figure 9

Figure 9: GRCT of the command “Carry the book to my nightstand”.

Figure 10

Table 2. Posterior probabilities w.r.t. quality categories

Figure 11

Table 3. Weights for the Cohen’s kappa kw statistics

Figure 12

Table 4. Information gains for the three explanatory models applied to the SRL-AC and QC datasets. kw is the weighted Cohen’s kappa kw