{"action":"opened","issue":{"url":"https://api.github.com/repos/guevara/read-it-later/issues/360","repository_url":"https://api.github.com/repos/guevara/read-it-later","labels_url":"https://api.github.com/repos/guevara/read-it-later/issues/360/labels{/name}","comments_url":"https://api.github.com/repos/guevara/read-it-later/issues/360/comments","events_url":"https://api.github.com/repos/guevara/read-it-later/issues/360/events","html_url":"https://github.com/guevara/read-it-later/issues/360","id":364966622,"node_id":"MDU6SXNzdWUzNjQ5NjY2MjI=","number":360,"title":"Relational inductive biases deep learning and graph networks","user":{"login":"guevara","id":228309,"node_id":"MDQ6VXNlcjIyODMwOQ==","avatar_url":"https://avatars1.githubusercontent.com/u/228309?v=4","gravatar_id":"","url":"https://api.github.com/users/guevara","html_url":"https://github.com/guevara","followers_url":"https://api.github.com/users/guevara/followers","following_url":"https://api.github.com/users/guevara/following{/other_user}","gists_url":"https://api.github.com/users/guevara/gists{/gist_id}","starred_url":"https://api.github.com/users/guevara/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guevara/subscriptions","organizations_url":"https://api.github.com/users/guevara/orgs","repos_url":"https://api.github.com/users/guevara/repos","events_url":"https://api.github.com/users/guevara/events{/privacy}","received_events_url":"https://api.github.com/users/guevara/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-28T16:53:39Z","updated_at":"2018-09-28T16:53:39Z","closed_at":null,"author_association":"OWNER","body":"Relational inductive biases, deep learning, and graph networks<br>\n<br>\nhttps://ift.tt/2MKK5Cf<br>\n<br>\nadriancolyer<br>\n<br>\n<div>\n<div>\n<p><a href=\"https://arxiv.org/abs/1806.01261\">Relational inductive biases, deep learning, and graph networks</a> Battaglia et al., <em>arXiv&rsquo;18</em></p>\n<p>Earlier this week we saw the argument that causal reasoning (where most of the interesting questions lie!) requires more than just associational machine learning. Structural causal models have at their core a graph of entities and relationships between them. Today we&rsquo;ll be looking at a position paper with a wide team of authors from DeepMind, Google Brain, MIT, and the University of Edinburgh, which also makes the case for <em>graph networks</em> as a foundational building block of the next generation of AI. In other words, bringing back and re-integrating some of the techniques from the AI toolbox that were prevalent when resources were more limited.</p>\n<blockquote>\n<p>We argue that combinatorial generalization must be a top priority for AI to achieve human-like abilities, and that structured representation and computations are key to realizing this objective&hellip; We explore how using <em>relational inductive biases</em> within deep learning architectures can facilitate learning about entities, relations, and the rules for composing them.</p>\n</blockquote>\n<h3>Relational reasoning and structured approaches</h3>\n<p>Human&rsquo;s represent complex systems as compositions of entities and their interactions. We use hierarchies to abstract away fine-grained differences, manage part-whole associations and other more general relationships, and can solve problems by composing familiar skills and routines.</p>\n<blockquote>\n<p>&hellip; the world is compositional, or at least, we understand it in compositional terms. When learning, we either fit new knowledge into our existing structured representations, or adjust the structure itself to better accommodate (and make use of ) the new and the old.</p>\n</blockquote>\n<p>Modern deep learning methods have done incredibly well following an end-to-end design philosophy that avoids explicit structure and &lsquo;hand-engineering&rsquo;. Such an approach seems to be finding its limits when it comes to challenges such as complex language and scene understanding, reasoning about structured data, transferring learning, and learning from small amounts of experience.</p>\n<p>Instead of choosing between nature (end-to-end) and nurture (hand-engineering), can we use them <em>jointly</em> just as nature does, to build wholes greater that the sum of their parts?</p>\n<p>A <em>structured representation</em> captures a composition of known building blocks, with <em>structured computations</em> operating over the elements and their composition as a whole. Relational reasoning operates over structure representations combining <em>entities</em> and <em>relations</em>, using <em>rules</em> for how they can be composed.</p>\n<blockquote>\n<p>Recently, a class of models has arisen at the intersection of deep learning and structured approaches, which focuses on approaches for reasoning about explicitly structured data, in particular graphs&hellip;. What these approaches all have in common is a capacity for performing computation over discrete entities and the relations between them. What sets them apart from classical approaches is how the representations and the structure of the entities and relations &mdash; and the corresponding computations &mdash; can be learned, relieving the burden of needing to specify them in advance.</p>\n</blockquote>\n<h3>Relational inductive biases and graphs</h3>\n<p>We need some way of guiding a learning algorithm towards good solutions. The fancy term for this is <em>inductive bias</em>, the bias part being how an algorithm prioritises one solution over another, independent of the observed data. A regularization term is a form of inductive bias for example.</p>\n<p>A <em>relational</em> inductive bias imposes constraints on relationships and interactions among entities in a learning process. Viewed through a relational lens, we can see relational inductive biases at work in several of the standard deep learning building blocks. We just need to uncover in each what are the entities, what are the relations, and what are the rules for composing them.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-table-1.jpeg?w=640\"></p>\n<p>As an example, in a fully connected layer the entities are the units in the network, the relations are all-to-all, and the rules are specified by the weights and biases. &ldquo;<em>The implicit relational inductive bias in a fully connected layer is thus very weak: all input units can interact to determine any output unit&rsquo;s value, independently across outputs.</em>&rdquo;</p>\n<p>Within the building blocks we also see aspects of <em>sharing</em> (e.g. using a local kernel function across all inputs in a convolutional layer) and <em>locality</em>.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-fig-1.jpeg?w=640\"></p>\n<blockquote>\n<p>While the standard deep learning toolkit contains methods with various forms of relational inductive biases, there is no &ldquo;default&rdquo; deep learning component which operates on arbitrary relational structure. We need models with explicit representations of entities and relations, and learning algorithms which find rules for computing their interactions, as well as ways of grounding them in data.</p>\n</blockquote>\n<p>A natural structure for this representation is a graph. Graphs support arbitrary (pairwise) relational structure, and computations over graphs afford a strong relational inductive bias. Many problems are easily modelled using a graph representation. For example:</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-fig-2.jpeg?w=640\"></p>\n<h3>Introducing graph networks</h3>\n<p>There is a rich body of work on <em>graph neural networks</em> (see e.g. <a href=\"https://arxiv.org/abs/1611.08097\">Bronstein et al. 2017</a>) for a recent survey. Gilmer et al. introduced the <em>message-passing neural network</em> (MPNN) which unifies various graph neural network and graph convolutional approaches. Wang et al. introduced <em>non-local neural networks</em> (NLNN) unifying various &lsquo;self-attention&rsquo; style methods. The <em>graph network</em> (GN) framework outlined in this paper generalises and extends graph neural networks, MPNNs, and NLNNs.</p>\n<blockquote>\n<p>The main unit of computation in the GN framework is the GN block, a &ldquo;graph-to-graph&rdquo; module which takes a graph as input, performs computations over the structure, and returns a graph as output&hellip; entities are represented by the graph&rsquo;s nodes, relations by the edges, and system-level properties by global attributes.</p>\n</blockquote>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-box-3.jpeg?w=640\"></p>\n<p>A graph is thus a three-tuple <img src=\"https://s0.wp.com/latex.php?latex=G+%3D+%28%5Cmathbf%7Bu%7D%2C+V%2C+E%29&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"G = (\\mathbf{u}, V, E)\" title=\"G = (\\mathbf{u}, V, E)\" class=\"latex\"> where <img src=\"https://s0.wp.com/latex.php?latex=%5Cmathbf%7Bu%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\mathbf{u}\" title=\"\\mathbf{u}\" class=\"latex\"> is a global attribute, V is a set of nodes (each represented by attributes), and E is a set of edges (also represented by attributes).</p>\n<p>GN blocks have three update functions <img src=\"https://s0.wp.com/latex.php?latex=%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\phi\" title=\"\\phi\" class=\"latex\"> and three aggregation functions <img src=\"https://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\rho\" title=\"\\rho\" class=\"latex\">.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-eqn-1.jpeg?w=520\"><br>\n<img src=\"https://s0.wp.com/latex.php?latex=%5Cphi%5E%7Be%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\phi^{e}\" title=\"\\phi^{e}\" class=\"latex\"> is mapped across all edges to compute per-edge updates, and then the <img src=\"https://s0.wp.com/latex.php?latex=%5Crho%5E%7Be+%5Cmapsto+v%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\rho^{e \\mapsto v}\" title=\"\\rho^{e \\mapsto v}\" class=\"latex\"> function reduces the edge states to a single value <img src=\"https://s0.wp.com/latex.php?latex=%5Cmathbf%7B%5Cbar%7Be%7D%27%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\mathbf{\\bar{e}'}\" title=\"\\mathbf{\\bar{e}'}\" class=\"latex\"> for each node.&nbsp;<img src=\"https://s0.wp.com/latex.php?latex=%5Cphi%5E%7Bv%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\phi^{v}\" title=\"\\phi^{v}\" class=\"latex\"> is then mapped across all nodes and <img src=\"https://s0.wp.com/latex.php?latex=%5Crho%5E%7Be+%5Cmapsto+u%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\rho^{e \\mapsto u}\" title=\"\\rho^{e \\mapsto u}\" class=\"latex\"> reduces the node states to a single value. Finally the global attributed is update using <img src=\"https://s0.wp.com/latex.php?latex=%5Cphi%5E%7Bu%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\phi^{u}\" title=\"\\phi^{u}\" class=\"latex\"> and <img src=\"https://s0.wp.com/latex.php?latex=%5Crho%5E%7Bv+%5Cmapsto+u%7D&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\rho^{v \\mapsto u}\" title=\"\\rho^{v \\mapsto u}\" class=\"latex\">. The <img src=\"https://s0.wp.com/latex.php?latex=%5Crho&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\rho\" title=\"\\rho\" class=\"latex\"> functions must be invariant to permutations of their inputs, and should take variable numbers of arguments (e.g., elementwise summation, mean, max etc.). Computations proceed from the edge, to the node, to the global level.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-box-3.jpeg?w=640\"></p>\n<p>The full update algorithm is given below.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-alg-1.jpeg?w=640\"></p>\n<p>Consider an example graph where nodes represent rubber balls and edges are springs connecting them. We want to predict the movements of the balls in an arbitrary gravitational field.</p>\n<ul>\n<li>The edge update step might compute the forces or potential energies between two connected balls.</li>\n<li>The edge reduction step might sum all the forces or potential energies acting on the ith ball.</li>\n<li>The node update step might compute the update position, velocity, and kinetic energy (attributes) of each ball.</li>\n<li>The node reduction step aggregates all of the edge updates into a node, for example computing the summed forces (which should be zero in this case).</li>\n<li>The global reduction step might then compute the total kinetic energy of the system</li>\n<li>The global update step might compute something analogous to the net forces and total energy of the physical system.</li>\n</ul>\n<p>Other update orders are possible (e.g. from global to node to edges).</p>\n<p>Graph networks have (at least) three properties of interest:</p>\n<ol>\n<li>The nodes and the edges between provide strong relational inductive biases (e.g. the absence of an edge between two nodes means that they should not directly influence each other).</li>\n<li>Entities and relations are represented as sets, and thus are invariant to ordering and permutations. This is a desirable property in many contexts (e.g. objects in a scene do not have a natural ordering).</li>\n<li>Since the per-edge and per-node functions are reused across all edges and nodes respectively, GNs automatically support a form of combinatorial generalisation. A single GN can operate on graphs of different sizes and shapes.</li>\n</ol>\n<h3>Graph network architectures</h3>\n<p>So far it seems like we&rsquo;ve just been re-inventing a general graph computation framework. And indeed the framework is agnostic to specific representations and functional forms. But the fun stuff starts when we focus on deep learning architectures allowing GNs to act as <em>learnable graph-to-graph function approximators</em>. The three design principles behind graph networks which support this are:</p>\n<ul>\n<li>flexible representations</li>\n<li>configurable within-block structure, and;</li>\n<li>composable multi-block architectures</li>\n</ul>\n<p><strong>Flexible representations</strong> refers to the choice of representation for the attributes of edges, nodes, and global state, as well as the form of the outputs. For deep learning implementations, real-valued vectors and tensors would be a likely choice. Edge and node outputs would typically correspond to lists of vectors or tensors, and global outputs to a single vector or tensor. Thus the output of a GN block can be passed to other deep learning building blocks. The relational structure (the graph) can be explicitly specified in the inputs, or it can be inferred or assumed.</p>\n<p><strong>Configurable within-block structure</strong> refers to flexibility in how the internal structure and functions of a GN block are configured. The <img src=\"https://s0.wp.com/latex.php?latex=%5Cphi&amp;bg=ffffff&amp;fg=333333&amp;s=0\" alt=\"\\phi\" title=\"\\phi\" class=\"latex\"> functions could themselves be implemented as neural networks for example (e.g. MLPs for vectors, or CNNs for tensors). There are GN configurations that correspond to many existing works in the literature. The following figure shows some examples.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-fig-4.jpeg?w=640\"></p>\n<p><strong>Composable multi-block architectures</strong> refers to the fact that the output of one GN block can be fed into another GN block as an input. In general arbitrary numbers of GN blocks can be composed.</p>\n<p><img src=\"https://adriancolyer.files.wordpress.com/2018/09/relational-inductive-bias-fig-6.jpeg?w=640\"></p>\n<p>One common design is the <em>encode-process-decode</em> configuration in which an input graph is transformed into a latent representation by an encoder GN, a shared core block is applied multiple times to process the encoding, and then a decoder GN produces the final output.</p>\n<h3>What&rsquo;s next</h3>\n<blockquote>\n<p>Realizing the full potential of graph networks will likely be far more challenging than organizing their behaviour under one framework, and indeed, there are a number of unanswered questions regarding the best ways to use graph networks. One pressing question is: where do the graphs come from that the graph networks operate over?</p>\n</blockquote>\n<p>For example, how should we convert raw sensory data into structured graph representations?</p>\n<p>And beyond just graphs, &ldquo;<em>one takeaway from this paper is less about graphs themselves and more about the approach of blending powerful deep learning approaches with structured representations.</em>&rdquo;</p>\n<blockquote>\n<p>&hellip; learnable models which operate on graphs are only a stepping stone on the path toward human-like intelligence. We are optimistic about a number of other relevant, and perhaps underappreciated, research directions, including marrying learning-based approaches with programs, developing model-based approaches with an emphasis on abstraction, investing more heavily in meta-learning, and exploring multi-agent learning and interaction as a key catalyst for advanced intelligence.</p>\n</blockquote>\n<p>The authors state an intention to release an open-source implementation for graph networks later this year.</p>\n</div>\n</div>\n<br>\n<br>\n<br>\n<br>\nBigData,AI|ML|DM|IR|PR<br>\n<br>\nvia the morning paper https://ift.tt/1WJ1E4W<br>\n<br>\nSeptember 19, 2018 at 01:00PM"}}
{"actor":{"display_login":"guevara"}}