Integrating Knowledge and Reasoning in Image Understanding
Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence. Survey track. Pages 6252-6259.
https://doi.org/10.24963/ijcai.2019/873
Keywords
- Machine Learning: Interpretability
- Computer Vision: Language and Vision
- Knowledge Representation and Reasoning: Common-Sense Reasoning
Abstract
Deep learning based data-driven approaches have been successfully applied in various image understanding
applications ranging from object recognition, semantic segmentation to visual question answering.
However, the lack of knowledge integration as well as higher-level reasoning capabilities with the methods still pose a hindrance. In this work, we present a brief survey of a few representative
reasoning mechanisms, knowledge integration methods and their corresponding image understanding applications developed by various groups of researchers, approaching the problem from a variety of angles. Furthermore, we discuss upon key efforts on integrating external knowledge with neural networks. Taking cues from these efforts, we conclude by discussing potential pathways to improve reasoning capabilities.
- [Aditya et al., 2017] Somak Aditya, Yezhou Yang, Chitta Baral, Yiannis Aloimonos, and Cornelia Fermüller. Image understanding using vision and reasoning through scene description graph. Computer Vision and Image Under- standing, pages 33-45, 2017.
- [Aditya et al., 2018a] Somak Aditya, Yezhou Yang, and Chitta Baral. Explicit Reasoning over End-to-End Neural Architectures for Visual Question Answering. In AAAI, pages 629-637, 2018.
- [Aditya et al., 2018b] Somak Aditya, Yezhou Yang, Chitta Baral, and Yiannis Aloimonos. Combining knowledge and reasoning through probabilistic soft logic for image puz- zle solving. In UAI 2018, pages 238-248. Association For Uncertainty in Artificial Intelligence (AUAI), 2018.
- [Aditya et al., 2019] Somak Aditya, Rudra Saha, Yezhou Yang, and Chitta Baral. Spatial knowledge distillation to aid visual reasoning. IEEE Winter Conference on Applica- tions of Computer Vision (WACV), pages 227-235, 2019.
- [Baader et al., 2003] Franz Baader, Diego Calvanese, Deb- orah McGuinness, Peter Patel-Schneider, and Daniele Nardi. The description logic handbook: Theory, imple- mentation and applications. Cambridge university press, 2003.
- [Bach et al., 2017] Stephen H Bach, Matthias Broecheler, Bert Huang, and Lise Getoor. Hinge-loss markov ran- dom fields and probabilistic soft logic. Journal of Machine Learning Research, 18:1-67, 2017.
- [Cadene et al., 2019] Remi Cadene, Hedi Ben-Younes, Nicolas Thome, and Matthieu Cord. Murel: Multimodal Relational Reasoning for Visual Question Answering. In IEEE Conference on Computer Vision and Pattern Recognition CVPR, 2019.
- [Dasiopoulou et al., 2009] Stamatia Dasiopoulou, Ioannis Kompatsiaris, and Michael G Strintzis. Applying fuzzy dls in the extraction of image semantics. In Journal on Data Semantics XIV, pages 105-132. Springer, 2009.
- [Davis and Marcus, 2015] Ernest Davis and Gary Marcus. Commonsense reasoning and commonsense knowledge in artificial intelligence. Commun. ACM, 58(9):92-103, Au- gust 2015.
- [de Boer et al., 2015] Maaike de Boer, Laura Daniele, Paul Brandt, and Maya Sappelli. Applying semantic reasoning in image retrieval. Proc. ALLDATA, 2015.
- [De Raedt et al., 2007] Luc De Raedt, Angelika Kimmig, and Hannu Toivonen. Problog: A probabilistic prolog and its application in link discovery. In Proceedings of the 20th International Joint Conference on Artifical Intel- ligence, IJCAI'07, pages 2468-2473, San Francisco, CA, USA, 2007. IJCAI
- [Gupta et al., 2009] Abhinav Gupta, Aniruddha Kembhavi, and Larry S Davis. Observing human-object interactions: Using spatial and functional compatibility for recognition. IEEE Transactions on Pattern Analysis and Machine In- telligence, 31(10):1775-1789, 2009.
- [Havasi et al., 2007] Catherine Havasi, Robert Speer, and Ja- son Alonso. Conceptnet 3: a flexible, multilingual seman- tic network for common sense knowledge. In Recent ad- vances in natural language processing, pages 27-29. Cite- seer, 2007.
- [Hinton et al., 2015] Geoffrey Hinton, Oriol Vinyals, and Jeff Dean. Distilling the knowledge in a neural network. stat, 1050:9, 2015.
- [Hudson and Manning, 2019] Drew A Hudson and Christo- pher D Manning. Gqa: A new dataset for real-world visual reasoning and compositional question answering. Conference on Computer Vision and Pattern Recognition (CVPR), 2019.
- [Johnson et al., 2015] Justin Johnson, Ranjay Krishna, Michael Stark, Jia Li, Michael Bernstein, and Li Fei-Fei. Image retrieval using scene graphs. In IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 3668-3678, June 2015.
- [Johnson et al., 2017] Justin Johnson, Bharath Hariharan, Laurens van der Maaten, Li Fei-Fei, C Lawrence Zitnick, and Ross Girshick. Clevr: A diagnostic dataset for com- positional language and elementary visual reasoning. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2901-2910, 2017.
- [Krishna et al., 2017] Ranjay Krishna, Yuke Zhu, Oliver Groth, Justin Johnson, Kenji Hata, Joshua Kravitz, Stephanie Chen, Yannis Kalantidis, Li-Jia Li, David A. Shamma, Michael S. Bernstein, and Li Fei-Fei. Visual genome: Connecting language and vision using crowd- sourced dense image annotations. Int. J. Comput. Vision, 123(1):32-73, May 2017.
- [Le et al., 2013] Dieu-Thu Le, Jasper Uijlings, and Raffaella Bernardi. Exploiting language models for visual recogni- tion. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 769-779, 2013.
- [Lee et al., 2017] Joohyung Lee, Samidh Talsania, and Yi Wang. Computing lp mln using asp and mln solvers. Theory and Practice of Logic Programming, 17(5-6):942- 960, 2017.
- [Lenat, 1995] Douglas B. Lenat. Cyc: A large-scale in- vestment in knowledge infrastructure. Commun. ACM, 38(11):33-38, November 1995.
- [London et al., 2013] Ben London, Sameh Khamis, Stephen Bach, Bert Huang, Lise Getoor, and Larry Davis. Col- lective activity detection using hinge-loss markov random fields. In Proceedings of the IEEE CVPR Workshops, pages 566-571, 2013.
- [Manhaeve et al., 2018] Robin Manhaeve, Sebastijan Du- mancic, Angelika Kimmig, Thomas Demeester, and Luc De Raedt. Deepproblog: Neural probabilistic logic pro- gramming. In Advances in Neural Information Processing Systems, pages 3753-3763, 2018.
- [Marino et al., 2017] Kenneth Marino, Ruslan Salakhutdi- nov, and Abhinav Gupta. The more you know: Using knowledge graphs for image classification. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, pages 2673-2681, 2017.
- [Miller, 1995] George A. Miller. Wordnet: A lexical database for english. Commun. ACM, 38(11):39-41, November 1995.
- [Randell et al., 1992] David A. Randell, Zhan Cui, and An- thony G. Cohn. A spatial logic based on regions and con- nection. In Proceedings 3rd International Conference ON Knowledge Representation And Reasoning, 1992.
- [Richardson and Domingos, 2006] Matthew Richardson and Pedro Domingos. Markov logic networks. Machine learn- ing, 62(1-2):107-136, 2006.
- [Rocktäschel and Riedel, 2017] Tim Rocktäschel and Sebas- tian Riedel. End-to-end differentiable proving. In Ad- vances in Neural Information Processing Systems, pages 3788-3800, 2017.
- [Sanket Shah and Talukdar, 2019] Naganand Yadati San- ket Shah, Anand Mishra and Partha Pratim Talukdar. Kvqa: Knowledge-aware visual question answering. In AAAI, 2019.
- [Santoro et al., 2017] Adam Santoro, David Raposo, David G Barrett, Mateusz Malinowski, Razvan Pascanu, Peter Battaglia, and Timothy Lillicrap. A simple neural network module for relational reasoning. In NIPS, pages 4967-4976, 2017.
- [Serafini and Garcez, 2016] Luciano Serafini and Ar- tur d'Avila Garcez. Logic tensor networks: Deep learning and logical reasoning from data and knowledge. arXiv preprint arXiv:1606.04422, 2016.
- [Suchan and Bhatt, 2016] Jakob Suchan and Mehul Bhatt. The geometry of a scene: On deep semantics for visual perception driven cognitive film, studies. In 2016 IEEE Winter Conference on Applications of Computer Vision (WACV), pages 1-9. IEEE, 2016.
- [Suchanek et al., 2007] Fabian M. Suchanek, Gjergji Kas- neci, and Gerhard Weikum. Yago: A core of semantic knowledge. In Proceedings of the 16th International Con- ference on World Wide Web, WWW '07, pages 697-706, New York, NY, USA, 2007. ACM.
- [Summers-Stay et al., 2012] Douglas Summers-Stay, Ching L Teo, Yezhou Yang, Cornelia Fermüller, and Yiannis Aloimonos. Using a minimal action grammar for activity understanding in the real world. In 2012 IEEE/RSJ International Conference on Intelligent Robots and Systems, pages 4104-4111. IEEE, 2012.
- [Wang et al., 2017] Peng Wang, Qi Wu, Chunhua Shen, An- thony Dick, and Anton van den Hengel. Fvqa: fact-based visual question answering. IEEE TPAMI, 2017.
- [Wu et al., 2016] Qi Wu, Peng Wang, Chunhua Shen, An- thony Dick, and Anton van den Hengel. Ask me anything: Free-form visual question answering based on knowledge from external sources. In IEEE Conference on Computer Vision and Pattern Recognition CVPR, pages 4622-4630, 2016.
- [Wu et al., 2017] Qi Wu, Damien Teney, Peng Wang, Chun- hua Shen, Anthony Dick, and Anton van den Hengel. Visual question answering: A survey of methods and datasets. Computer Vision and Image Understanding, 163:21-40, 2017.
- [Wulfmeier et al., 2016] Markus Wulfmeier, Dushyant Rao, and Ingmar Posner. Incorporating human domain knowl- edge into large scale cost function learning. arXiv preprint arXiv:1612.04318, 2016.
- [Yu et al., 2017] Ruichi Yu, Ang Li, Vlad I. Morariu, and Larry S. Davis. Visual Relationship Detection with Inter- nal and External Linguistic Knowledge Distillation. ICCV, 2017.
- [Zheng et al., 2015] Bo Zheng, Yibiao Zhao, Joey Yu, Kat- sushi Ikeuchi, and Song-Chun Zhu. Scene understanding by reasoning stability and safety. International Journal of Computer Vision, 112(2):221-238, 2015.
- [Zhou et al., 2018] Bolei Zhou, Alex Andonian, Aude Oliva, and Antonio Torralba. Temporal relational reasoning in videos. In ECCV, September 2018.
- [Zhu et al., 2014] Yuke Zhu, Alireza Fathi, and Li Fei-Fei. Reasoning about object affordances in a knowledge base representation. In ECCV (2), pages 408-424. Springer, 2014.
References were extracted automatically from the PDF and may contain errors.
Full text extracted automatically from the PDF; figures, tables and equations may differ. The PDF is the version of record.
1 Introduction
From the early years of computer vision research, many researchers realized that prior knowledge could help in different tasks ranging from low-level to high-level image understanding. For example, knowledge about the shape of an object can act as a strong prior in segmentation tasks [Zheng et al., 2015], or knowledge about the most probable action given a subject and the object can aid in action recognition tasks [Gupta et al., 2009; Summers-Stay et al., 2012]. In this recent era of data-driven techniques, most of this knowledge is hoped to be learned from training data. While this is a promising approach, annotated data can be scarce in certain situations, and many domains have a vast amount of knowledge curated in form of text (structured or unstructured) that can be utilized in such cases. Utilization of background knowledge in data-scarce situations is one of the reasons that necessitate the development of approaches that can utilize such knowledge (from structured or unstructured text) and reason on that knowledge. Additionally, the lack of reasoning and inference capabilities (such as counterfactual, causal queries) of deep learning systems recently started to resurface in various forums [Hudson and Manning, 2019] 1 . Motivated by these challenges, our goal in this paper is to present a survey of recent works (including a few of our works) in image understanding where knowledge and reasoning plays an important role. While discussing these interesting applications, we introduce corresponding reasoning mechanisms, knowledge sources, and argue the rationale behind their choice. Lastly, we discuss different mechanisms that integrate external knowledge sources directly with deep neural networks.
1 Michael Jordan's views to IEEE Spectrum (bit.ly/2GNejBx).

To understand what knowledge is meaningful in images, we can look at the different types of knowledge that relate to different levels of the semantic hierarchy induced by a natural image. Natural images are compositional. A natural image is composed of objects, and regions. Each object is composed of parts that could be objects themselves and regions can be composed of semantically meaningful sub-regions. This compositionality induces a natural hierarchy from pixels to objects (and higher level concepts). We show a diagram representing the information hierarchy induced by a natural image in Figure 1. Different types of knowledge might be relevant in the context of low-level information (objects and their parts) to higher-level semantics (abstract concepts, actions). Essentially, in this survey, we will study how knowledge and reasoning are applicable to these following levels of semantics: i) objects, regions and their attributes, ii) object-object or object-region interactions, relations and actions; iii) highlevel commonsense knowledge (about events, activities).
In this work, we revolve the stories around different image applications ranging from object classification to question answering. As each new reasoning engine and knowledge source is encountered, we introduce them in individual separately marked (▶) paragraphs. We provide brief critique as to why the chosen mechanisms were appropriate for the corresponding application. We discuss different ways to integrate knowledge in the deep learning era. The final section then summarizes the reasoning mechanisms. We conclude by shedding light on how the research in high-level reasoning and utilization of commonsense knowledge in Computer Vision can progress.
2 Use of Knowledge in Computer Vision
Here we describe applications that utilized relevant background knowledge beyond annotated data. Applications are categorized according to the levels of hierarchy in Fig. 1.
2.1 Knowledge about Objects, Regions, Actions Image Classification
Various groups of researchers demonstrated the use of knowledge bases (generic and application-specific) in object, scene and action recognition; or to reason about their properties.
▶ Markov Logic Network. MLN ([Richardson and Domingos, 2006]) is a popular framework that uses weighted First Order Logical formulas to encode an undirected grounded probabilistic graphical model. Unlike PSL, the MLN is targeted to use the full expressiveness of First Order Logic and induce uncertainty in reasoning by modeling it using a graphical model. Formally, an MLN L is a set of pairs 〈F, w〉, where F is a first order formula and w is either a real number or a symbol α denoting hard weight. Together with a finite set of constants C, a Markov Network ML,C is defined where: i) ML,C contains one binary node for each grounding of each predicate appearing in L; ii) ML,C contains one feature for each grounding of each formula Fi in L. The feature value is 1 if ground formula is true otherwise 0. The probability distribution over possible worlds is given by:
where ni(x) is the number of true groundings of the formula Fi in the world x. The MLN inference is equivalent to finding the maximum probable world according to the above formula. Weights are learnt using maximum likelihood methods.
Authors in [Zhu et al., 2014] successfully used Markov Logic Network (MLN) in the context of reasoning about object affordances in images. An example of affordance is fruit is edible. Authors collect such assertions from textual cues and image sources, and complete the knowledge base using weighted rules in MLN. Example of collected assertions are basketball is rollable and round, apple is rollable, edible and a fruit, pear is edible and a fruit etc. The weights of the grounded rules are learnt by maximizing the pseudolikelihood given the evidence collected from textual and image sources. Few such weighted rules are:
This knowledge base encoded in MLN is used to infer the affordance relationships given the detected objects (and their confidence scores) in an image. Besides performing well over pure SVM-based methods, authors also observe that the knowledge-based approach is more robust against removal of visual attributes.
Appropriateness. For modeling object affordances, the authors in [Zhu et al., 2014] faced the following challenges: i) uncertainty to account for noise and practical variability (if a pedal is dis-functional, it cannot be lifted); ii) expressive beyond IF-THEN horn-clauses, iii) relational knowledge. Encoding relational knowledge and modeling uncertainty warranted the use of a probabilistic logical mechanisms. As Probabilistic Soft Logic (PSL) can not express beyond horn clauses, and Problog solvers are comparatively slow - MLN was a logical choice for this application.
Authors in [Serafini and Garcez, 2016] proposes Logic Tensor Network (LTN) that combines logical symbolism and automatic learning capabilities of neural network. For objecttype classification and PartOf relation detection on PASCALPART-DATASET, LTNs with prior knowledge is shown to improve over Fast-RCNN. This work has started off many contributions in the area of neuro-symbolic reasoning such as DeepProbLog [Manhaeve et al., 2018], end-to-end neural networks using prolog [Rockt¨aschel and Riedel, 2017].
▶ Logic Tensor Network. In LTN, soft logic is used to represent each concept as a predicate, for example apple(x) represents apple. The first-order formula ∀x apple(x) ∧ red(x) → sweet(x) represents that all red apples are sweet. Here, the truth values of each ground predicates are between 0 to 1, and truth values of conjunctive or disjunctive formulas are computed using combinations functions such as Lukasiewicz's T-norm. To combine this idea of soft logic with end-to-end learning, each concept or predicate is represented by a neural network and objects are represented by points in a vector space. The neural network for "apple" takes a point in the feature space and outputs its confidence about the input being a member of the "apple" concept. The weights in the neural networks are optimized to abide by rules such as ∀x apple(x) ∧ red(x) → sweet(x). These symbolic rules are added as constraints in the final optimization function.
The authors in [Le et al., 2013] uses the commonsense knowledge encoded in ConceptNet to enhance the language model and apply this knowledge to two recognition scenarios: action recognition and object prediction. The authors also carried out a detailed study of how different language models (window-based model topic model, distributional memory) are compatible with the knowledge represented in images. For action recognition, authors detect the human, the object and scenes from static images, and then predict the most likely verb using the language model. They use object-scene, verb-scene and verbobject dependencies learnt from the language models to predict the final action in the scene. Examples of relations extracted from ConceptNet are: Oil-Located near-Car, Horse-Related to-Zebra. The conditional probabilities are computed using the frequency counts of these relations. To jointly predict the action i.e.
〈subject, verb, object〉 triplet the from object, the scene probability and the conditional probabilities from language model, an energy based model is used that jointly reasons on the image (observed variable), object, verb and the scene.
- ConceptNet. Some well-known large-scale commonsense knowledge bases about the natural domain are ConceptNet, ([Havasi et al., 2007]), WordNet ([Miller, 1995]), YAGO ([Suchanek et al., 2007]) and Cyc ([Lenat, 1995]). Among these, ConceptNet is a semi-curated multilingual Knowledge Graph, that encodes commonsense knowledge about the world and is built primarily to assist systems that attempts to understand natural language text. The nodes (called concepts) in the graph are words or short phrases written in natural language. The nodes are connected by edges which are labeled with meaningful relations, such as 〈reptile, IsA, animal〉, 〈reptile, HasProperty, coldblood〉. Each edge has an associated confidence score. Being semi-curated, ConceptNet has the advantage of having a large coverage yet less noise.
- Probabilistic Soft Logic. Similar to MLN, PSL ([Bach et al., 2017]) uses a set of weighted First Order Logical rules of the form wj : ∨i∈I + j yi ← ∧i∈I - j yi, where each yi and its negation is a literal. The set of grounded rules is used to declare a Markov Random Field, where the confidence scores of the literal is treated a continuous valued random variable. Specifically, a PSL rule-base is used declare Hinge-Loss MRF, which is defined as follows: Let y and x be two vectors of n and n′ random variables respectively, over D = [0, 1]n+n′ . Let ˜D ⊂ D, which satisfies a set of inequality constraints over the random variables. A Hinge-Loss MRF P is a probability density over D, defined as: if (y, x) /∈ ˜D, then P(y|x) = 0; if (y, x) ∈ ˜D, then: P(y|x) = 1 Z(w) exp(-fw(y, x)). Using PSL, the hinge-loss energy function fw(y) is defined as:
where max{1 - ∑i∈I + j V (yi) - ∑i∈I - j (1 - V (yi)), 0} is distance to satisfaction of a grounded rule Cj . MPE inference in HL-MRFs is equivalent to finding a feasible minimizer for the convex energy function, and in PSL it is equivalent to argminy∈[0,1]n fw(y). To learn the parameters w of an HLMRF from the training data, maximum likelihood estimation (and its alternatives) is used.
Actions and Activities
Authors in [London et al., 2013] uses PSL to detect collective activities (i.e. activity of a group of people) such as crossing, queuing, waiting and dancing in videos. This task is treated as a high-level vision task, whereby detection modules are employed to extract information from the frames of the videos and such information (class labels and confidence scores of predicates) is input to the joint PSL model for reasoning. To obtain frame-level and person-level activity beliefs, human figures are represented using HOG features and Action Context (AC) descriptors. Then an SVM is used to obtain activity beliefs using these AC descriptors. Next, a collection of PSL
rules is used to declare the ground HL-MRF to perform global reasoning about collective activities:
The intuitions behind the two rules are: Rule R1 corresponds to beliefs about local predictions using HOG features, and R2 expresses the belief that if many actors in the current frame are doing a particular action, then perhaps everyone is doing that action. To implement this, a FrameLbl predicate for each frame is computed by accumulating and normalizing the Local activity beliefs for all actors in the frame. Similarly, there are other rules that captures the intuition about these activities. Using PSL inference, final confidence scores are obtained for each collective activity, and authors observe that using PSL over baseline HOG features achieves significant increase (10%) in accuracy.
Appropriateness. To model group activities, the authors in [London et al., 2013] faced the following challenges: i) uncertainty to account for noise in real-world data and noisy predictions form machine learning models; ii) a fast scalable mechanism to predict activity classes. In the presence of large annotated data, deep learning models are the de facto standards for any kind of classification. However, smaller datasets and the requirement of interpretability warranted a logical reasoning language. Requirement of robustness to noise and scalability warranted the use of PSL, as its underlying optimization problem is convex and its found to be faster.
Infrequently Used Logical Languages. The reasoning mechanisms discussed in this survey are chosen based on the following considerations: i) plausible inference, ii) learning capability, iii) expressiveness, and iv) speed of inference [Davis and Marcus, 2015]. Several other logical languages have factored in useful aspects such as uncertainty, spatiotemporal reasoning etc. Qualitative Spatial Reasoning [Randell et al., 1992] languages and description logic [Baader et al., 2003] are noteworthy among them for image understanding. A popular representation formalism in QSR is Region Connection Calculus (RCC) introduced in [Randell et al., 1992]. The RCC-8 is a subset of the original RCC. It consists of the eight base relations: disconnected (DC), externally connected (EC), partial overlap (PO), equal (EQ), tangential proper-part (TPP), non-tangential proper-part (NTTP), tangential proper-part inverse (TPP-1 ), and non-tangential properpart inverse (NTPP-1 ). Extensions of RCC-8 is used to successfully reason about visuo-spatial dynamics, and (eyetracking based) visual perception of the moving image in cognitive film studies ([Suchan and Bhatt, 2016]). Description Logics ([Baader et al., 2003]) model relationships between entities in a particular domain. In DL, three kind of entities are considered, concepts, roles and individual names. Concepts represent classes (or sets) of individuals, roles represent binary relations between individuals and individual names represent individuals (instances of the class) in the domain. Fuzzy DLs extend the model theoretic semantics of classical DLs to fuzzy sets. In [Dasiopoulou et al., 2009], Fuzzy DL is used to reason and check consistency on object-level and scene-level classification systems.


2.2 High-level Common-sense Knowledge
Several researchers employed commonsense knowledge to enrich high-level understanding tasks such as visual question answering, zero-shot object detection, relationship detection. Answering questions beyond scene information, detecting objects in data-scarce or partial observable situation are natural candidates for employing reasoning with knowledge.
▶ Graph-Gated Neural Network (GGNN). Given a graph of N nodes, at each time-step GGNN produces some output for each node o1, o2, ...oN or global output oG. The propagation model is similar to an LSTM. For each node v in the graph, there is a corresponding hidden state h(t) v at every step t. At t = 0, they are initialized with initial state xv, for example for a graph of object-object interactions, it is initialized as one bit activation representing whether an object is present in an image. Next, the structure of the graph is used (encoded in adjacency matrix A) along with the gated update module to update hidden states. The following equations summarize the update for each timesteps:
where htv is the hidden state of node v at timestep t and xv is the initial specific annotation. After T timesteps, node-level outputs can be computed as: ov = g(hTv , xv).
Image Classification
Authors in [Marino et al., 2017] employed the structured prior knowledge of similar objects and their relationships to improve end-to-end object classification task. Authors utilize the notion that humans can understand a definition of an object written in text and leverage such understanding to identify objects in an image. The authors introduce Graph Search Neural Network to utilize a knowledge graph about objects to aid in (zero-shot) object detection. This network uses image features to efficiently annotate the graph, select a relevant subset of the input graph and predict outputs on nodes representing visual concepts. GSNN learns a propagation model which reasons about different types of relationships and concepts to produce outputs on the nodes which are then used for image classification. The knowledge graph is created from Visual Genome by considering object-object and object-attribute relationships.
For GSNN, the authors propose that rather than performing recurrent updates over entire graph like GGNN, only a few initial nodes are chosen and nodes are expanded if they are useful for the final output. For example, initial nodes are chosen based on the confidence from an object detector (using a threshold). Next, the neighbors are added to the active set. After each propagation step, for every node in our current graph, authors predict an importance score using the importance network: itv = gi(hv, xv). This importance network is also learnt. Based on the score, only top P scoring nonexpanded nodes are selected and added to the active set. The structure (nodes and edges) of the GSNN can be initialized according to ConceptNet or other knowledge graphs, thereby directly incorporating external knowledge. As GSNN can be trained in an end-to-end manner, this approach provides distinct advantages over sequential architectures. On Visual Genome multi-label classification, the authors achieve significant accuracy over a VGG-baseline using combined knowledge from visual genome and WordNet.
Appropriateness. Authors in [Marino et al., 2017] utilizes GSNN purely for knowledge integration purpose, i.e. to enhance an object classifier by using ontological knowledge about objects. An alternative would be use object classifier first and then use PSL or MLN to reason i.e. refine the final output - this method however cannot backpropagate the errors to the classifier.
Knowledge in Question-Answering
Authors in [Wang et al., 2017; Sanket Shah and Talukdar, 2019] observed that popular datasets do not emphasize on questions that require access to external knowledge.

The authors [Wang et al., 2017] proposed a new dataset named Fact-based VQA (or FVQA) where all questions require access to external (factual or commonsense) knowledge that is absent in the input image and the question. A popular example from their dataset is presented in Figure 2. The questions are generated using common-sense facts about visual knowledge which is extracted from ConceptNet, DBPedia, WebChild. In the proposed approach, structured predicates are predicted using LSTM from the question. For the question Which animal in the image is able to climb trees, the generated query example is {?X, ?Y } = Query("Img1", "CapableOf", "Object"). Then a set of object detector, scene detectors and attribute classifiers are used to extract objects, scenes and attributes from the image. This query is fired against the knowledge base of RDF triplets, and the answers are matched against the information extracted from the image.
Authors in [Wu et al., 2016] use knowledge in web-sources to answer visual questions. They propose to use fixed-length vector representations of external textual description paragraphs about objects present in the image in an end-to-end fashion. For example, for an image about a dog, a Multilabel CNN classifier is used to extract top 5 attributes, which are then used to form a SPARQL query against DBPedia to extract the definition paragraph about relevant objects. The Doc2vec representation of this paragraph is then used to initialize the hidden state at the initial time-step of the LSTM that ultimately processes the question-words in their end-toend question-answering architecture. The example of an image, question and relevant external knowledge is provided in the Fig. 2. On Toronto Coco-QA dataset, the authors achieve a sharp 11% increase in accuracy after using knowledge sources.
Visual RelationshipDetection. Knowledge distillation has been effective in integrating external knowledge (rules, additional supervision etc.) in natural language processing applications. Authors in [Yu et al., 2017] incorporate subjectobject correlations from ConceptNet using knowledge distillation. Authors use linguistic knowledge from ConceptNet to predict conditional probabilities (P(pred|subj, obj)) to detect visual relationships from image. [Aditya et al., 2019] uses knowledge distillation to integrate additional supervision about objects to answer questions.
Knowledge in Image Retrieval. Authors in [de Boer et al., 2015] observed the semantic gap between high-level natural language query and low-level sensor data (images), and proposed to bridge the gap using rules and knowledge graph such as ConceptNet. They proposed a semantic search engine, where the dependency graph of a query is enhanced using hand-written rules and ConceptNet to match scene elements. The enhanced graph is used rank and retrieve images.
3 Discussion: Knowledge Integration in the Deep Learning Era
In this era where differentiable neural modules are dominating the state-of-the-art, a natural question arises as to how to integrate external knowledge with deep neural networks. The machine learning community ([Wulfmeier et al., 2016]) have explored this in terms of constraining the search space of an optimization (or machine learning) algorithm. Four ways are adopted to use prior domain knowledge: 1) preparing training examples; 2) initiating the hypothesis or hypothesis space; 3) altering the search objective; and 4) augmenting search process. Along similar lines, we discuss four primary ways (shown in Fig. 2(c)) to integrate knowledge into deep neural networks: i) pre-process domain knowledge and augment training samples, ii) vectorize parts of knowledge base and input to intermediate layers, iii) inspire neural network architecture from an underlying knowledge graph, iv) post-process and reason with external knowledge. For each type, we provide a few recent works that have shown success along the line of increased accuracy or interpretability.
Pre-processing knowledge and using it as input to starting or intermediate layers is a popular intuitive way of integrating knowledge. For example, authors in [Wu et al., 2016] have vectorized relevant external textual documents and used the knowledge to answer knowledge-based visual questions. Similarly, other authors have used similar techniques in deep reinforcement learning. However, additional fact-based knowledge can be noisy and may bias the learning procedure. The knowledge distillation framework is effective for learning to balance between ground-truth annotations and external knowledge.
▶Relational Reasoning Layer. Authors in [Santoro et al., 2017] defined a relational reasoning layer that can be used as a module in an end-to-end deep neural network and trained using traditional gradient descent optimization methods. This module takes as input a set of objects, learns the relationship between each pair of objects, and infer a joint probability based on these relationships (with or without the context of a condition such as a question). Mathematically, the layer (without the appended condition vector) can be expressed as: RN(O) = fφ( ∑i,j gθ(oi, oj)), where O denote the list of input objects o1, . . . , on. In this work, the relation between a pair of objects (i.e. gθ) and the final function over this collection of relationships i.e. fφ are modeled using multilayer perceptrons and are learnt using gradient descent.
▶ Knowledge Distillation. is a generic framework ([Hinton et al., 2015]) where there are two networks, namely the teacher and the student network. There are two traditional settings, i) teacher with additional computing layers, ii) teacher with additional knowledge. In the first setting, the teacher network is a much deeper (and/or wider) network with more layers. The teacher is trained using ground-truth supervision where in the last layer softmax is applied with a higher temperature (ensuring smoothness of values, while keeping the relative order). The student network, is a smaller network that aims to compress the knowledge learnt by the teacher network by emulating the teacher's predictions. In the second setting popularized in natural language processing and computer vision, the teacher network is a similar-sized network which has access to external knowledge, so that it learns both from ground-truth supervision and the external knowledge. The student network, in turn, learns from ground-truth data and teacher's soft prediction vector. The student network's loss is weighted according to an imitation parameter that signifies howmuch the student can trust the teacher's predictions over groundtruth.
Often question-answering datasets (CLEVR [Johnson et al., 2017], Sort-of-Clver, Visual Genome [Krishna et al., 2017]) have additional annotations such as properties, labels and bounding box information of the objects, and the spatial relations among the objects. Authors in [Aditya et al., 2019] utilized this knowledge in a framework that also considers the non-availability of such information during inference time. As preprocessing, the authors use PSL engine to reason with the structured source of knowledge about objects and their spatial relations, and the question, and construct a pre-processed attention mask for training image-question pairs. For an image-question pair, this attention mask blocks out the objects (and regions) not referred to in the question. As reasoning mechanism, authors use the combination of knowledge distillation and relational reasoning [Santoro et al., 2017] which achieves a 13% increase in accuracy over the baseline. Relational Reasoning mechanism is also used for visual reasoning in [Santoro et al., 2017], VQA in [Cadene et al., 2019], temporal reasoning in [Zhou et al., 2018].
Appropriateness. Authors in [Aditya et al., 2019; Santoro et al., 2017] used relational reasoning for image question answering. They model relationships as functions between objects and use these functions together to answer questions about an image. Despite several efforts of creating scene graphs [Johnson et al., 2015; Aditya et al., 2017], defining a closed set of complete relationships between objects is nontrivial. Hence modeling the relationships as functions is equally acceptable practice. Modeling the reasoning as a function on these triplets is similar to that of PSL, MLN. But learning objects, relationships and the function together is why the relational reasoning layer is a popular choice. Though, semantics associated with this function (fφ) is hardly understood, which makes it a cautionary tale for outof-the-box reasoning alternative.
Reasoning with outputs from deep neural networks and utilizing structured knowledge predicates is another natural alternative. As most off-the-shelf reasoning engines suffer because of issues of scalability, and uncertaintly modeling; authors in [Aditya et al., 2018b; Aditya et al., 2018a] develop a PSL engine that achieves fast inference on weighted rules with open-ended structured predicates and applied it to solve image puzzles and visual question-answering. For both tasks, authors use ConceptNet and pre-learnt word2vec embeddings as knowledge sources. In the image puzzle solving, the task is to find a common meaningful concept among multiple images. Authors use an off-the-shelf image classifier algorithm to predict concepts (or objects) present in each image; followed by a set of simple propositional rules in PSL such as wij : si → tj, where si is a predicted class, tj is a target concept from ConceptNet vocabulary. The weight of the rule wij is computed by considering the (ConceptNet-based) similarity of the predicted class (si) and the target concept (tj), and the popularity of the predicted class in ConceptNet. Reasoning with the rules of this form, authors predict the most probable set of targets from a larger vocabulary given classpredictions (and their scores). Using a similar rule-base, authors then jointly predict the most probable common targets for all images, which provides the final ranking of concepts. Additionally for the VQA task in [Aditya et al., 2018a], authors first obtain textual information from images using dense captioning methods. Then they parse the question and the captions using a rule-based semantic parser to create semantic graphs; and use these two knowledge structures in the reasoning engine to answer the question. To understand open-ended relations, ConceptNet and word2vec is used. The solution is shown to increase accuracy over state-of-the-art for "what" and "which" questions. The reasoning engine can be used to predict structured predicates as evidence along-with the answer, aiding in increased interpretability of the system.
Another important contribution is to utilize the nodes and connections of publicly available knowledge-graphs (such as ConceptNet) to build a Neural Network. As explained before, authors in [Marino et al., 2017] have used this technique for a more robust image classification. Authors have improved upon GGNN to propose Graph-search Neural Network that lazily expands the nodes when they are encountered during training. However, the approach is only shown to works on sub-graphs of a large knowledge graph, and does not have explicit consideration for handling incompleteness in the graph.
4 Summary and FutureWorks
In this paper we have discussed several reasoning mechanisms such as PSL, MLN, LTN, relational reasoning layers and their use in various image understanding applications. Here we give a quick summary of our assessment of these reasoning mechanisms. Early researchers in AI realized the importance of knowledge representation and reasoning and also realized that classical logics (such as first-order logic) may not be suitable for reasoning in where one may have to retract an earlier conclusion, when presented with new knowledge. This led to the development of various non-monotonic logics such as Answer Set Programming (ASP). Recent extensions of it, such as P-log, Problog [De Raedt et al., 2007] and LP-MLN [Lee et al., 2017] allow expression of probabilistic uncertainty, weights and contradictory information to various degrees. There are also recent works that extend Inductive Logic Programming techniques to learn ASP rules and also to learn weights. However, like MLN, which can be thought of as extension of first order logic, ASP has high computational complexity, even when the set of ground atoms are finite. PSL, uses a restricted syntax for its rules (thus is less expressive than the others), does not have non-monotonic features, requires its ground atoms to have continuous truth values and uses characterizations of logical operations so that its space of interpretations with nonzero density forms a convex polytope. This makes inference in PSL a convex optimization problem in continuous space, increasing efficiency of inference. Many description logics are decidable fragments of first-order logic (FOL) with focus on reasoning concepts, roles and individuals, and their relationships. Relational reasoning layers (in the deep learning framework), on the other hand, lose expressiveness as it is hard to comprehend what rules are being learnt. An important need for building real-world AI applications, is to support counterfactual and causal queries. Reasoning mechanisms such as MLN and ProbLog can take cues from P-log (lite) to accommodate such reasoning.
For human beings, image understanding is a cognitive process that identifies concepts from previous encounters or knowledge. The process goes beyond data-driven pattern matching processes, and delves into the long-standing quest on integrating bottom-up signal processing with top-down knowledge retrieval and reasoning. In this work, we discussed various types of reasoning mechanisms used by researchers in computer vision to aid a variety of image understanding tasks, ranging from segmentation to QA. To conclude, we suggest the following further research pathways to address the observed limitations: i) speeding up of inference (in MLN, ProbLog, etc. and integrating rule-learning (such as in ILP) will accelerate adoption in vision, ii) scalable reasoning on large common-sense knowledge graphs; iii) probabilistic logical mechanisms supporting counterfactual, causal and arithmetic queries, enhancing possibilities for higher-level reasoning on real-world datasets.
Acknowledgements
The support of the National Science Foundation under the Robust Intelligence Program (1816039 and 1750082), research gifts from Verisk AI, and support from Adobe Research (for the first author) are gratefully acknowledged.
@inproceedings{ijcai2019p873,
title = {Integrating Knowledge and Reasoning in Image Understanding},
author = {Aditya, Somak and Yang, Yezhou and Baral, Chitta},
booktitle = {Proceedings of the Twenty-Eighth International Joint Conference on
Artificial Intelligence, {IJCAI-19}},
publisher = {International Joint Conferences on Artificial Intelligence Organization},
editor = {Sarit Kraus},
pages = {6252--6259},
year = {2019},
month = {8},
note = {Survey track},
doi = {10.24963/ijcai.2019/873},
url = {https://doi.org/10.24963/ijcai.2019/873},
}
TY - CPAPER TI - Integrating Knowledge and Reasoning in Image Understanding AU - Aditya, Somak AU - Yang, Yezhou AU - Baral, Chitta T2 - Proceedings of the Twenty-Eighth International Joint Conference on Artificial Intelligence, IJCAI-19 PB - International Joint Conferences on Artificial Intelligence Organization PY - 2019 SP - 6252 EP - 6259 DO - 10.24963/ijcai.2019/873 UR - https://doi.org/10.24963/ijcai.2019/873 ER -Copied
Machine-readable versions of this paper, for tools and AI agents: