Skip to main content
QUICK REVIEW

[Paper Review] On Incorporating Semantic Prior Knowlegde in Deep Learning Through Embedding-Space Constraints

Damien Teney, Ehsan Abbasnejad|arXiv (Cornell University)|Sep 25, 2019
Multimodal Machine Learning ApplicationsComputer Science33 references7 citations
TL;DR

This paper proposes a method to embed prior knowledge—such as semantic relations between questions—into deep learning models by enforcing strict constraints on the embedding space, rather than using soft regularizers. In visual question answering (VQA), this approach improves accuracy and robustness, especially when combined with limited labeled data, by preserving logical and equivalence relations between instances.

ABSTRACT

The knowledge that humans hold about a problem often extends far beyond a set of training data and output labels. While the success of deep learning mostly relies on supervised training, important properties cannot be inferred efficiently from end-to-end annotations alone, for example causal relations or domain-specific invariances. We present a general technique to supplement supervised training with prior knowledge expressed as relations between training instances. We illustrate the method on the task of visual question answering to exploit various auxiliary annotations, including relations of equivalence and of logical entailment between questions. Existing methods to use these annotations, including auxiliary losses and data augmentation, cannot guarantee the strict inclusion of these relations into the model since they require a careful balancing against the end-to-end objective. Our method uses these relations to shape the embedding space of the model, and treats them as strict constraints on its learned representations. In the context of VQA, this approach brings significant improvements in accuracy and robustness, in particular over the common practice of incorporating the constraints as a soft regularizer. We also show that incorporating this type of prior knowledge with our method brings consistent improvements, independently from the amount of supervised data used. It demonstrates the value of an additional training signal that is otherwise difficult to extract from end-to-end annotations alone.

Motivation & Objective

  • To address the limitation of supervised deep learning in capturing implicit, domain-specific knowledge such as causal relations or logical entailment.
  • To develop a technique that enforces prior knowledge as strict constraints in the embedding space, rather than relying on soft regularization.
  • To improve model generalization and robustness in visual question answering (VQA) by incorporating auxiliary annotations like question equivalence and entailment.
  • To demonstrate that prior knowledge can be effectively leveraged independently of the amount of supervised data.
  • To provide a general framework applicable beyond VQA for integrating semantic knowledge into deep learning.

Proposed method

  • The method formulates prior knowledge as relations (e.g., entailment, equivalence) between training instances and embeds them as geometric constraints in the representation space.
  • It enforces these relations by modifying the loss function to ensure that the relative distances or angles between embedded instances reflect the specified semantic relations.
  • The constraints are treated as hard requirements during optimization, ensuring that the model's representations strictly preserve the given relations.
  • The approach integrates these constraints into the training objective without requiring manual balancing against the main supervised loss.
  • The method is applied to VQA, where it uses auxiliary annotations such as question pairs with entailment or equivalence to shape the embedding space.
  • The model learns representations that are both accurate on the main task and faithful to the provided semantic relations.

Experimental results

Research questions

  • RQ1Can semantic prior knowledge be effectively encoded into deep learning models beyond standard supervision?
  • RQ2How does enforcing semantic relations as hard constraints in the embedding space affect model performance in VQA?
  • RQ3Does incorporating such constraints improve robustness and generalization, especially with limited labeled data?
  • RQ4How does this method compare to soft regularization or data augmentation in preserving semantic relations?
  • RQ5Can the method be applied generally across different types of prior knowledge and tasks?

Key findings

  • The method significantly improves VQA accuracy by enforcing semantic relations as hard constraints in the embedding space.
  • It enhances model robustness, particularly in out-of-distribution and adversarial settings, compared to soft regularizers.
  • The performance gain is consistent across different data regimes, showing strong benefits even with limited supervised data.
  • The approach outperforms existing methods that use auxiliary losses or data augmentation, which cannot guarantee strict adherence to semantic relations.
  • The embedding-space constraints effectively preserve logical entailment and equivalence between questions, leading to more reliable and interpretable representations.
  • The method demonstrates the value of explicit semantic prior knowledge as a complementary signal to end-to-end supervision.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.