<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Syntropy - Medium]]></title>
        <description><![CDATA[Syntropy on Machine Intelligence - Medium]]></description>
        <link>https://medium.com/syntropy-ai?source=rss----b27cb4e1e73f---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Syntropy - Medium</title>
            <link>https://medium.com/syntropy-ai?source=rss----b27cb4e1e73f---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 29 Nov 2026 04:34:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/syntropy-ai" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Computer Vision: Learning a common language to describe how visual concepts can change]]></title>
            <link>https://medium.com/syntropy-ai/dimension-association-4c6f2988e603?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/4c6f2988e603</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <dc:creator><![CDATA[Angus Russell]]></dc:creator>
            <pubDate>Tue, 05 Jun 2018 02:39:56 GMT</pubDate>
            <atom:updated>2018-06-05T02:39:56.212Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3uDY4CbmLssZQnVEK5GCrA.png" /></figure><p><em>This is the third of a series of articles explaining the work we’re doing at </em><a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24"><em>Syntropy</em></a><em>, and tracking our progress as we make ground through some of the unsolved (or unsatisfactorily solved) problems in machine learning. These articles are split into technical (for Machine Learning professionals) and non-technical (for a more general audience). This article is non-technical.</em></p><p>To briefly recap the ground we’ve covered so far, in <a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec">part one</a> we explained that the visual world is made up of a hierarchy of parts. Bikes are made up of handlebars, wheels, pedals, etc; wheels are made up of tyres, spokes, hub, etc; and at the lowest levels, everything is colours, edges, shapes and textures. At each layer of this hierarchy, our brains are <em>invariant</em> to some degree of change. At the lower levels of the visual hierarchy, invariance allows you to recognise a rectangle or line even when it is skewed, rotated or scaled; and at the higher levels it allows you to recognise people and objects regardless of viewing angle, lighting conditions, or context.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/1*kSOzbpEpgtKJAuE7qXXwaA.jpeg" /><figcaption>We can see that these two pedals are the same, even though the shapes and lines that compose them are completely different.</figcaption></figure><p>But that’s not enough. In <a href="https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4">part two</a> we showed that not only are our brains invariant to changes in visual concepts, they can also <em>describe</em> those changes. Each visual concept can change in a variety of different ways (lighting, rotation, skew, position, etc), and our brains can distinguish between them.</p><p>At the end of part two, we showed how a single concept can be ‘disentantled’ into a set of equivariant dimensions of change. The <a href="https://codepen.io/mattway/full/ayaXpx/">demo</a> (gif version below) shows a simplified visual concept — a heart that changes along x, y and rotation dimensions. Each possible version of the heart is shown as a point in the 3d graph. Initially the points are distributed randomly, but with training they find their true order, and once training is completed, the sliders each represent a single dimension of change.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgfycat.com%2Fifr%2FInconsequentialSociableDrake&amp;url=https%3A%2F%2Fgfycat.com%2FInconsequentialSociableDrake&amp;image=https%3A%2F%2Fthumbs.gfycat.com%2FInconsequentialSociableDrake-size_restricted.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=gfycat" width="736" height="402" frameborder="0" scrolling="no"><a href="https://medium.com/media/b448509d9cb02796df3ed94f3f698fb2/href">https://medium.com/media/b448509d9cb02796df3ed94f3f698fb2/href</a></iframe><p>You’ll find though, that if you move the sliders after it’s trained, and take note of which slider represents which transformation (horizontal movement, vertical movement and rotation), then hit ‘Reset’ and train again from a random position, the sliders now <em>probably</em> represent <em>different</em> axes from the first time. That’s because the data doesn’t contain any information about what axis is what — in fact it doesn’t contain any information about the axes at all. It’s simply governed by the rule “an input contains two versions of the heart that belong next to each-other in the manifold”. From this we can disentangle the dimensions of change, but we can’t know which dimension is which unless we manually label it (E.g. “horizontal movement”) <em>after</em> it has been disentangled.</p><p>So now let’s imagine scaling up our demo to include multiple visual concepts. Each concept can disentangle itself into a set of dimensions of change, but there’s nothing linking those dimensions together across concepts, so they’re really not very useful.</p><p>But if we had every dimension of change labelled (E.g. horizontal movement, vertical movement, rotation, lighting, etc), we’d be able to use that information to do some really cool things. For example, we could take a single example of an item, made up of known visual concepts, but in an arrangement we’ve never seen before, and <em>imagine</em> how it looks from other angles, in different lighting, upside down, etc. This would simply involve taking all the concepts that make up the item and moving them equally along the same transformational axes.</p><p>We could also use the transformational relationships between concepts to accurately classify new inputs using only one (or very few) labelled exemplars. This is called one-shot learning, and is considered an open problem in computer vision. In this case the process would be:</p><ol><li>See a new input.</li><li>Determine which visual concepts are present (see <a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec">part 1</a>).</li><li>Find any labelled examples that have significant concept overlap.</li><li>Choose the example that most closely matches the transformational relationships between concepts.</li></ol><p>To be able to do these things, we need to be able to identify the relationships between the transformational dimensions across all the concepts in our system. In other words, we need to be able to say “the <em>2nd</em> dimension in this concept represents horizontal movement, while the <em>3rd</em> dimension in this other concept represents horizontal movement”. So how can we achieve this?</p><p>We <em>could</em> just move a slider for each dimension, see visually what it represents, and label it manually. Technically, this would give us a global language for describing change across concepts. While that might be feasible, even if we had to do it for tens of dimensions multiplied by hundreds or thousands of concepts (lets say 20 dimensions * 1000 concepts = 20,000 labels), it just seems like there must be a better way. Well it turns out there’s a pretty simple but effective method we can use.</p><p>If you think about how the world changes as you watch it (E.g. someone walking towards you, a leaf moving in the wind, etc), the changes that are occurring all the way up the hierarchy of visual concepts are the same set of changes. While that leaf moves to the left, <em>all</em> of the patterns and textures and shapes that make up that leaf are moving to the left. While this data doesn’t include the label “left”, it <em>does</em> tell us that the dimensions that each concept is moving along <em>probably</em> represent the same thing. This won’t always be the case, but it will be accurate more often than not, so each time we see two concepts changing at the same time, we can add a ‘vote’ to associate whichever unlabelled dimensions within them are changing at a similar rate. Given enough time and examples, we can accurately associate every dimension within a concept to a particular dimension within <em>every other concept</em>. At that point we have an unlabelled but global language for how concepts can change, and if we want to label the dimensions, we now just need to add a single label per dimension (20 labels rather than 20,000).</p><p>In the demo below, we show two concepts, a vertical and horizontal line that can change along the x and y axis, and have some degree of rotation. These dimensions of change are initially entangled, but disentangle themselves during training. For training data, each concept is given two input examples at a time. We refer to the dual inputs as an episode with two frames, and stipulate that the two frames of an episode contain versions of the concept that are similar (I.e. only change a maximum of one step along each axis of change). We also ensure that the two concepts see an episode that is changing in the same ways (E.g. both move left, or both rotate clockwise). This setup mimics how we see things moving in the real world.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2FGusRuss89%2Fembed%2Fpreview%2FzjoGMy%3Fheight%3D600%26slug-hash%3DzjoGMy%26default-tabs%3Djs%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2FGusRuss89%2Ffull%2FzjoGMy&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F46339.zjoGMy.small.25f87dff-7607-4549-a67b-66676fa515c6.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/995b606df9d8725493f32be4ac13b2b7/href">https://medium.com/media/995b606df9d8725493f32be4ac13b2b7/href</a></iframe><p>As the concepts are training, we’re counting the number of times that each dimension in the first concept is seen changing across an episode at the same time as a particular dimension from the second concept. By the time the concepts have fully disentangled themselves, the system has discovered the correct relationships between dimensions. Drag the first set of sliders to move both concepts through the dimensional space using the discovered relationships. Drag the second set of sliders to move the vertical line independently and create different arrangements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4c6f2988e603" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/dimension-association-4c6f2988e603">Computer Vision: Learning a common language to describe how visual concepts can change</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Dimensional Reduction via Sequential Data]]></title>
            <link>https://medium.com/syntropy-ai/dimensional-reduction-via-sequential-data-798d4c3510d9?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/798d4c3510d9</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matt Way]]></dc:creator>
            <pubDate>Thu, 31 Aug 2017 10:57:50 GMT</pubDate>
            <atom:updated>2017-08-31T10:57:50.348Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This is the third of a series of articles explaining the work we’re doing at </em><a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24"><em>Syntropy</em></a><em>, and tracking our progress as we make ground through some of the unsolved (or unsatisfactorily solved) problems in machine learning. These articles are split into technical (for Machine Learning professionals) and non-technical (for a more general audience). This article is the technical follow-on to </em><a href="https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4"><em>How do humans recognise objects from different angles? An explanation of one-shot learning</em></a><em>.</em></p><p>In the previous article, we explored why it is important to try and find a common language between invariant manifolds within a neural network. To recap, there is only so much you can do with a flat set of features like the ones found in any layer of an end to end network. By grouping features by semantic similarity, they become much more useful. Rather than looking at each feature as a stand alone detector, we can instead look at how a group of features relate to each other. If common sets of relationships can be found to be consistent between different data manifolds, then we are able to perform powerful comparisons. For example, if you were to take two pictures of your face at different angles, the way your nose transformed between both images is arguably the same as the way your eyes transformed (the relationship is consistent). This idea of a common transformation language allows for the ability to perform difficult machine learning tasks such as <a href="http://vision.stanford.edu/documents/Fei-FeiFergusPerona2006.pdf">one shot learning</a>. As the transformation space can now be explored and compared, a single labelled example contains enough information to compare its similarity with any other input.</p><p>During 2011, the <a href="http://www.cs.toronto.edu/~fritz/absps/transauto6.pdf">Transforming Auto-encoders</a> paper provided the first framework for thinking about neural networks in terms of a transformation language. It worked nicely, but did not scale well due to the architecture requiring privileged knowledge about the underlying transformations. This meant that in order to learn rotational invariance for example, knowledge of how to manually rotate data was required in advance of training. Human beings on the other hand manage to extract most of the rich tapestry of possible transforms, simply by experiencing the world. We say mostly, because it could be argued that some prior transform knowledge is imbued in us via evolutionary mechanisms such as <a href="https://www.ncbi.nlm.nih.gov/pubmed/10202531">prenatal retinal waves</a> (however it can also be argued that these merely speed up the learning process and are not prerequisites).</p><p>The most likely candidate for where humans gain the required transformational information to build this language is via sequential data. Most machine learning systems deal only in unrelated batches of inputs, while humans leverage the extra information provided by watching the world change over time. If you take two successive frames of experiential data, you are given not only weak labelling (that both frames contain the same things), but also information about how each feature can legally change. Given this knowledge, a traditional layer’s output can be translated from a compressed disorganised manifold, into disentangled latent transformational dimensions.</p><p>Technically, converting a manifold into a transformational language is really just doing <a href="https://en.wikipedia.org/wiki/Dimensionality_reduction">dimensional reduction</a>. A field that has been around for over one hundred years, with many different techniques and uses. Most commonly it is used for either compression or data exploration and visualisation. In order to learn a useful transformational language, we combine two techniques, <a href="https://www.elen.ucl.ac.be/neural-nets/Research/Publications/2000/es2000-35.pdf">distance based unfolding</a>, and <a href="https://www5.in.tum.de/lehre/seminare/datamining/ss17/paper_pres/16_pca/paper.pdf">PCA</a>. Distance based unfolding deals with searching for structure within data by providing a way of comparing data point similarities/distances. The most commonly used technique today is <a href="http://www.cs.toronto.edu/~hinton/absps/tsne.pdf">t-SNE</a>, but there are many others like <a href="http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf">DrLIM</a>, <a href="http://documents.irevues.inist.fr/bitstream/handle/2042/12339/AR18_4.pdf?sequence=1">CCA/CDA</a>, <a href="https://cseweb.ucsd.edu/~saul/papers/nldr_aaai06.pdf">MVU</a>, <a href="https://en.wikipedia.org/wiki/Self-organizing_map">SOM</a>, and <a href="https://link.springer.com/chapter/10.1007%2F978-3-540-33037-0_14">MDS</a>. Most use <a href="https://en.wikipedia.org/wiki/Euclidean_distance">euclidean distance</a> as the measure of similarity, while some allow for more arbitrary functions. Sequential data fits into this model well, as subsequent frames contain the most likely candidates for close similarity. Unfortunately, these unfolding algorithms only care about learning a locally consistent structure, ignoring any type of global alignment. Interestingly, common real world transformations are all interrelated. Every object sits on each dimensional spectrum simultaneously, which means the internal structure can be thought of as an n-dimensional cube. This means that the individual unfolded structures can be aligned using something like PCA.</p><p>In the example below, we show a simple visualisation of this unfolding and alignment happening online. Initially the manifold is organised arbitrarily, but by training with random two frame sequences of inputs, the model can unfold the similarities into a structure that can be better understood. The sliders can be used to test the generative outputs of each dimensional combination. Similar to the analogy explained in DrLIM, the unfolding process can be understood from the perspective of spring dynamics. If each neighbouring pair is thought to be connected by a spring, then the global structure emerges through the local dynamics of each spring expanding and contracting. Unlike most unfolding algorithms, we have forgone the requirement of building a similarity matrix, and instead drive the expansion process through stochastic propulsion, which makes the process entirely online. Similarly the alignment PCA is done entirely online by combining <a href="https://users.ics.aalto.fi/oja/Oja1982.pdf">Oja’s rule</a> with the unfolding dynamics.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmattway%2Fembed%2Fpreview%2FayaXpx%3Fheight%3D600%26slug-hash%3DayaXpx%26default-tabs%3Djs%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fmattway%2Ffull%2FayaXpx%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F1436501.ayaXpx.small.ef6f0064-788f-4ee4-abad-32e89e32a4da.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/2eca1211d244947a58b1272bdcd44f86/href">https://medium.com/media/2eca1211d244947a58b1272bdcd44f86/href</a></iframe><p>There are two newer neural network architectures that attempt to find the same useful latent dimensions. These are the <a href="https://arxiv.org/abs/1606.05579"><em>β</em>-VAE</a> and <a href="https://arxiv.org/abs/1606.03657">InfoGAN</a>, which utilise the <a href="https://arxiv.org/abs/1312.6114">variational autoencoder</a>, and <a href="https://arxiv.org/abs/1406.2661">generative adversarial network</a> architectures respectively. While providing impressive results, they are end to end systems, making it only possible to provide a single dimensional reduction for an entire dataset (non hierarchical disentangling). They are also limited by a euclidean distance similarity function — shown explicitly in [<a href="https://arxiv.org/abs/1606.05579">13</a>] — and only approximate the underlying unfolding.</p><p>In the next technical article, we’ll expand on these ideas to show how multiple manifolds that have learned the same transformational language can be utilised.</p><p><em>If you’re interested in following along as we expand on these ideas then please subscribe, or </em><a href="https://twitter.com/SyntropyAI"><em>follow us on Twitter</em></a><em>. If you’re interested in our work or have feedback after reading this, please comment, or reach out via email (info at syntropy dot xyz) or Twitter.</em></p><ol><li><a href="http://vision.stanford.edu/documents/Fei-FeiFergusPerona2006.pdf">One Shot Learning of Object Categories</a></li><li><a href="http://www.cs.toronto.edu/~fritz/absps/transauto6.pdf">Transforming Auto-encoders</a></li><li><a href="https://www.ncbi.nlm.nih.gov/pubmed/10202531">Retinal Waves and Visual System Development</a></li><li><a href="https://www.elen.ucl.ac.be/neural-nets/Research/Publications/2000/es2000-35.pdf">A Robust Nonlinear Projection Method</a></li><li><a href="https://www5.in.tum.de/lehre/seminare/datamining/ss17/paper_pres/16_pca/paper.pdf">Principal Component Analysis</a></li><li><a href="http://www.cs.toronto.edu/~hinton/absps/tsne.pdf">Visualizing Data Using t-SNE</a></li><li><a href="http://yann.lecun.com/exdb/publis/pdf/hadsell-chopra-lecun-06.pdf">Dimensionality Reduction by Learning and Invariant Mapping</a></li><li><a href="http://documents.irevues.inist.fr/bitstream/handle/2042/12339/AR18_4.pdf?sequence=1">Curvilinear Component Analysis</a></li><li><a href="https://cseweb.ucsd.edu/~saul/papers/nldr_aaai06.pdf">An Introduction to Nonlinear Dimensionality Reduction by Maximum Variance Unfolding</a></li><li><a href="https://en.wikipedia.org/wiki/Self-organizing_map">Self Organising Map</a></li><li><a href="https://link.springer.com/chapter/10.1007%2F978-3-540-33037-0_14">Multidimensional Scaling</a></li><li><a href="https://users.ics.aalto.fi/oja/Oja1982.pdf">A Simplified Neuron Model as a Principal Component Analyzer</a></li><li><a href="https://arxiv.org/abs/1606.05579">Early Visual Concept Learning With Unsupervised Deep Learning</a></li><li><a href="https://arxiv.org/abs/1606.03657">InfoGAN: Interpretable Representation Learning by Information Maximizing Generative Adversarial Nets</a></li><li><a href="https://arxiv.org/abs/1312.6114">Auto-Encoding Variational Bayes</a></li><li><a href="https://arxiv.org/abs/1406.2661">Generative Adversarial Networks</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=798d4c3510d9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/dimensional-reduction-via-sequential-data-798d4c3510d9">Dimensional Reduction via Sequential Data</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unsupervised learning of a useful hierarchy of visual concepts — Part 1]]></title>
            <link>https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/13ab0d4e21ec</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <dc:creator><![CDATA[Angus Russell]]></dc:creator>
            <pubDate>Tue, 29 Aug 2017 03:37:21 GMT</pubDate>
            <atom:updated>2017-09-06T10:48:25.662Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unsupervised learning of a useful hierarchy of visual concepts — Part 1</h3><p><em>This is the first of a series of articles explaining the work we’re doing at </em><a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24"><em>Syntropy</em></a><em>, and tracking our progress as we make ground through some of the unsolved (or unsatisfactorily solved) problems in machine learning. These articles are split into technical (for Machine Learning professionals) and non-technical (for a more general audience). This is article is non-technical, and will have a technical follow-on article.</em></p><p><em>This article originally formed the first half of </em><a href="https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef"><em>Unsupervised learning of a useful hierarchy of visual concepts — Part 2</em></a><em>. The non-technical portion of the original article has been extracted, leaving the </em><a href="https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef"><em>technical portion</em></a><em> as a follow-on.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Bag6TAmPK_ESN5Lt." /></figure><p>Look at the picture above. It’s a picture of a bike — that’s obvious — but it’s a bike you’ve never seen before, so how do you <em>know</em> it’s a bike? I expect you’ll list the properties of bikes that we can see here — <em>two wheels, pedals, handlebars, seat</em> etc. That begs the question though — how do you know those are wheels if you’ve never seen those exact wheels before? The answer here — <em>tyres, spokes, hub </em>— reveals that the properties that make up a bike are themselves made up of other properties. Our visual world is composed of a hierarchy of parts. At the top of the hierarchy there are abstract concepts like <em>bike, car, dog</em>; and if you follow it all the way down you’ll find that everything is made up of basic shapes, lines, colours and textures.</p><p>So is that the answer? We see a bike because it’s made up of the properties that define a bike? Actually it’s only one part — there’s another question that will throw a spanner in the works.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/969/0*1o4EDnVCaSOa1Hqp." /><figcaption><em>Two pedals. The same, but different.</em></figcaption></figure><p>The two pictures above are of the same pedal. Again, it seems obvious, but if you followed the hierarchy down to the bottom you’d notice that actually, the shapes that make up the first image are <em>different</em> to the shapes that make up the second. So how do we know they’re the same when, seemingly, they are made up of different parts?</p><p>The answer is that at each level of the visual hierarchy, your brain has learned to tolerate some amount of variance in the parts that compose a particular concept. This is called <em>invariance. </em>At the lower levels of the visual hierarchy, invariance allows you to recognise a rectangle or line even when it is skewed, rotated or scaled; and at the higher levels it allows you to recognise people and objects regardless of viewing angle, lighting conditions, or context.</p><p>If we want to build a computer vision system that can see like humans do, then it must have a hierarchy of visual concepts, where each is invariant to some degree of change in the parts that compose it.</p><p>Machine learning algorithms take varying approaches to finding invariance in visual data. Deep learning, currently in vogue, takes what you might call a ‘brute force’ approach — show the system thousands or millions of images, label each one (<em>bike, car, dog</em>), and it will eventually discover correlations between similarly labelled images. This works astonishingly well when applied to narrowly defined classification problems, but the invariance that emerges from this process is very much inferior to a human’s hierarchy of invariance.</p><p>First, while the system itself does learn invariances throughout the hierarchy, they’re not organised in any useful way, but scattered around indiscriminately within each layer. This makes them uninterpretable at any level other than the top (where we assigned the labels), and is the reason we refer to deep learning as a ‘black box’. If we could look inside and see what the system was learning then we could do far more with it than just recognise bikes and dogs. We could ask further questions about the dog (tail length, fur colour, etc), identify <em>why</em> the system did or didn’t correctly recognise the dog, and easily rectify any weaknesses in the system — all things humans can do naturally.</p><p>Secondly, to learn anything at all, deep learning vision systems require thousands of labelled images for each thing you want them to recognise. Compare this with humans, who can learn to recognise objects and people before we can even talk — well before we could be said to be given any labelled data. Learning without labels is called <em>unsupervised learning</em>, while learning from labels is called <em>supervised learning</em>. Much of the learning that humans do is unsupervised, while deep learning is supervised.</p><p>Fully-supervised learning is problematic because it can only find invariance by recognising statistical similarities between pictures that had the same label. These are not necessarily true invariances. For example, of 1,000 pictures labeled ‘dog’, 95% might contain whiskers, which is good, but 80% might also contain grass. Does grass define a dog? Of course not! But if the data is skewed in some way like this then the discovered invariances might not map well to the real world.</p><p>The skewed invariances problem is often tolerable for deep learning applications because the training data is usually similar to the test data. It becomes a problem though when we need a more general system that we can build upon to perform new tasks. If the hierarchy of invariance was robust, like a human’s, then it would also be reusable. This is the reason humans can learn to recognise something after seeing it only a few times — we are building upon a good mental model of the visual world. Deep learning vision systems do not have a robust mental model, leaving them useful only for performing the exact task they were trained to perform.</p><p>Our goal at Syntropy is to help computers understand the world the same way that humans do. To achieve this, we need an algorithm that can learn the same hierarchy of invariant concepts that humans build internally, <em>without</em> relying on labelled data. This can be phrased in machine learning terms as unsupervised learning of a hierarchy of invariant parts. The rest of this article details some initial stages of our approach towards this goal.</p><p>In a typical artificial neural network, each neuron is a feature detector. It is looking for some specific thing in the input which, if found, will cause it to activate. In the first few layers of a deep learning network, the neurons typically work together to detect edges, lines and basic shapes. One of these layers might contain dozens of combinations of neurons that are looking for vertical edges in varying positions, lengths and degrees of rotation; each different to the next, but similar enough that we can still consider them all to be vertical edges. These combinations of neurons could together be said to cover the whole <em>manifold</em> of possible vertical edge variations. The problem is, there’s nothing explicitly tying the combinations together. The neurons are not organised in any meaningful way, but distributed randomly throughout the layer, interspersed with other neurons that are detecting totally different things.</p><p>Our objective is to organise these feature detectors into an explicit structure, grouping them together in such a way that each group could be considered a <em>manifold detector</em>. That is, a group of neurons that can activate in different ways to detect all the variations of a particular visual concept. A hierarchy of manifold detectors would directly mirror the visual hierarchy of the real world, be easy to inspect and explain, and form a useful schema that can be built upon to rapidly learn new things. <em>A successful implementation should identify the same object in various positions by recognising that even as the position changes, the set of activated manifold detectors remains constant.</em> This will be our yardstick for measuring progress against this objective.</p><p>We trained our network on the <a href="https://github.com/brendenlake/omniglot">Omniglot data set</a>, a set of 1623 different handwritten characters from 50 different alphabets. Omniglot comes with images, labels and stroke data, but for our experiments we have used only the images.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/560/0*vgJhenstqnlx2-WK." /><figcaption>A sample of characters from the Omniglot data set</figcaption></figure><p>We feed our network a single character at a time, transforming the input in subtle ways across a few input frames to simulate video input, or the way a human might see something move. Using this data, our system is able to construct a map of invariant manifold detectors, each of which represents a ‘part’ in a variety of poses and positions. Each manifold detector attempts to reconstruct the part that it identified, and the reconstructions generated by the activated manifolds can be combined to reconstruct the full input. This is demonstrated below, colours are used only as a visual aid.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*HECPE-KkM-z5dyYL." /><figcaption>Left column: Input. Middle column: Manifold reconstructions. Right column: Combined reconstruction.</figcaption></figure><p>The following diagram shows a history of the last 15 reconstructions that some of the manifold detectors had generated. Note that in general, each is reconstructing a range of variations of a particular type of part. This demonstrates that the manifold detector has an invariance to some degree of pose and positional change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/573/1*4MMltnVOjdqwTbCWEkI7-Q.png" /><figcaption>Last 15 reconstructions performed by each manifold.</figcaption></figure><p>Finally, as stated earlier, a successful implementation should identify an object in various positions by recognising that even as the position changes, the set of activated manifold detectors remains the same. The following diagram illustrates that our system is capable of this ability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/450/0*Uzk0mINI_i6SJQva." /><figcaption>Left: Transforming input. Right: Reconstruction.</figcaption></figure><p>We go into more depth on the inspirations, related work, and technical implementation details in the follow-on article: <a href="https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef">Unsupervised Learning of a Useful Hierarchy of Visual Concepts — Part 2</a>. The follow-on article is more technical and is aimed at machine learning professionals. The general reader can continue on to the next non-technical article: <a href="https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4">How do humans recognise objects from different angles? An explanation of one-shot learning.</a></p><p><em>If you’re interested in following along as we expand on these ideas then please subscribe, or </em><a href="https://twitter.com/SyntropyAI"><em>follow us on Twitter</em></a><em>. If you have feedback after reading this, please comment, or reach out via email (info at syntropy dot xyz) or Twitter. Finally, if you’re interested in our work, please get in touch — we are always looking to expand our team.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=13ab0d4e21ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec">Unsupervised learning of a useful hierarchy of visual concepts — Part 1</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How do humans recognise objects from different angles? An explanation of one-shot learning.]]></title>
            <link>https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/71887ab2e5b4</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Angus Russell]]></dc:creator>
            <pubDate>Tue, 29 Aug 2017 00:25:39 GMT</pubDate>
            <atom:updated>2018-01-15T01:31:56.510Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*COzSvxlAXTqCJixLCJRalg.png" /></figure><p><em>This is the second of a series of articles explaining the work we’re doing at </em><a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24"><em>Syntropy</em></a><em>, and tracking our progress as we make ground through some of the unsolved (or unsatisfactorily solved) problems in machine learning. These articles are split into technical (for Machine Learning professionals) and non-technical (for a more general audience). This article is non-technical, and will have a technical follow-on article.</em></p><p>In our <a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec">last article</a>, we explained that the visual world is made up of a hierarchy of parts. Bikes are made up of handlebars, wheels, pedals, etc; wheels are made up of tyres, spokes, hub, etc; and at the lowest levels, everything is colours, edges, shapes and textures. At each layer of this hierarchy, our brains are <em>invariant</em> to some degree of change. At the lower levels of the visual hierarchy, invariance allows you to recognise a rectangle or line even when it is skewed, rotated or scaled; and at the higher levels it allows you to recognise people and objects regardless of viewing angle, lighting conditions, or context. If this isn’t conceptually clear, just go back and read the first four paragraphs.</p><p>The astute reader may have picked up on a problem we left unaddressed in the last article. If a concept is invariant to change then we can be left with the following problem.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*TdgS542bB8rYF3a-." /><figcaption><em>Three arrangements of the same two parts.</em></figcaption></figure><p>In the above image, each of the three shapes are arrangements of the same two invariant concepts. The first two we can recognise as both being the capital letter T, but the third is clearly not — even though it contains the same parts. What this tells us is that it’s not just the presence of the parts that define an object, but also the relationships between them. The second T still looks like a T because the two parts still join in the same place relative to each-other, and have been rotated to the same degree. The third doesn’t look like a T because the parts now have different relationships — they rotated in opposite directions, and join in a different relative place.</p><p>This tells us a few things about how our brain works. First, even though we have a tolerance for variance, we can still see that there has been a change. Second, we can describe what this change was (rotation), which means we have deconstructed <em>change</em> as a concept into a set of independent dimensions (<em>rotation, translation, colour, brightness, etc</em>). Last, the dimensions we use to describe changes are common between parts, and we can relate them together. To prove this, try imagining the following image, but change the colour to red, and rotate it 90 degrees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/352/0*nWyGCTd40dgvRfeq." /><figcaption><em>Imagine the black parts are red, and the whole thing is rotated 90 degrees.</em></figcaption></figure><p>You’ve <em>probably</em> never seen this exact combination of lines and shapes before, but you can still quite easily imagine it rotated, and in a different colour. This implies that we employ a common set of dimensions of change to both recognise and imagine how objects look from different angles, <em>without</em> having to see them from every angle first.</p><p>In 2011, Geoffrey Hinton, Alex Krishevsky and Sida Wang released a paper called ‘<a href="http://www.cs.toronto.edu/~fritz/absps/transauto6.pdf">Transforming Autoencoders</a>’, which laid out a theory commonly referred to as ‘Capsules Theory’. This paper proved that given a common set of dimensions that describe how each visual concept can transform, a network could accurately predict and classify unseen variations of an input, having only seen the original input once (or just a few times). This ability to accurately classify objects after seeing them only once is called ‘one-shot learning’, and is something that humans can do naturally, but has proven difficult to replicate well thus far in machines. The architecture described in the capsules paper achieved one-shot learning, but prior knowledge of the transformational changes was required to train the system. For this reason it would be very difficult to scale the system to real-world vision applications — we simply don’t have access to that required training data.</p><p>So what needs to be done to create a more scalable capsules architecture? Let’s start by going over what a ‘capsule’ is, and what it does. Here is the description of a capsule from the original paper.</p><blockquote>Each capsule learns to recognize an implicitly defined visual entity over a limited domain of viewing conditions and deformations and it outputs both the probability that the entity is present within its limited domain and a set of “instantiation parameters” that may include the precise pose, lighting and deformation of the visual entity relative to an implicitly defined canonical version of that entity.</blockquote><p>That’s a pretty dense sentence, but it essentially means that each capsule represents a visual concept that is invariant to some degree of changes like lighting, viewing angle, etc. If that part sounds familiar it’s because that is exactly what our <a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec">previous article</a> demonstrated. What a capsule does that our previous demo does not is provide “instantiation parameters” along the dimensions of change. In other words, not only can it identify that an object is present, but also its precise position, angle of rotation, size, etc.</p><p>The capsules architecture relies on prior knowledge of transformational changes during training, but humans don’t have these changes labelled for us when we’re learning to see. We are able to deconstruct our visual world into a common set of dimensions of change like position, lighting conditions and rotation simply by observing. Similar to our proposition in the last article, we propose that humans do this dimension separation by leveraging episodic, or sequential data.</p><p>In our previous demo, we showed that episodes can be used to group all the variations of a visual concept into manifold detectors. In our architecture, each manifold can detect a visual concept in all of its variations, but it doesn’t give us back any information about the current variation. It can tell us “there is a square in this image” but not “the square is rotated to 10 degrees, is relatively large, and is located near the bottom left corner”. The following demonstration shows how we might conceivably build upon our manifold detectors to allow them to provide this information using episodic data. In other words, how we can turn our manifold detector architecture into a more scalable version of capsules.</p><p>Below is an example of a manifold representing a heart in different positions and rotations. Each point in the 3d visualisation represents a particular version of the heart. Initially the system is disordered, so moving the sliders around does not produce anything useful, but after some training (press play) will automatically order itself, discovering the underlying latent dimensions without any prior knowledge of what the dimensions mean. Once organised, the sliders will each represent a single dimension of change.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fcodepen.io%2Fmattway%2Fembed%2Fpreview%2FayaXpx%3Fheight%3D600%26slug-hash%3DayaXpx%26default-tabs%3Djs%2Cresult%26host%3Dhttps%3A%2F%2Fcodepen.io%26embed-version%3D2&amp;url=https%3A%2F%2Fcodepen.io%2Fmattway%2Ffull%2FayaXpx%2F&amp;image=https%3A%2F%2Fs3-us-west-2.amazonaws.com%2Fi.cdpn.io%2F1436501.ayaXpx.small.ef6f0064-788f-4ee4-abad-32e89e32a4da.png&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=codepen" width="800" height="600" frameborder="0" scrolling="no"><a href="https://medium.com/media/2eca1211d244947a58b1272bdcd44f86/href">https://medium.com/media/2eca1211d244947a58b1272bdcd44f86/href</a></iframe><p>The key to this unsupervised unfolding is in episodic data. Each training sample contains two versions of the heart that are next to each other in transformational space. That is, each axis of transformation is either unchanged, or only changed to one degree. This constraint on the training data is not considered prior knowledge, it simply represents how objects actually change in the real world.</p><p>We dive deeper into how this works, related work and historical inspiration in the technical follow-on article: <a href="https://medium.com/syntropy-ai/dimensional-reduction-via-sequential-data-798d4c3510d9">Dimensional Reduction via Sequential Data</a>.</p><p><em>If you’re interested in following along as we expand on these ideas then please subscribe, or </em><a href="https://twitter.com/SyntropyAI"><em>follow us on Twitter</em></a><em>. If you’re interested in our work or have feedback after reading this, please comment, or reach out via email (info at syntropy dot xyz) or Twitter.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=71887ab2e5b4" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4">How do humans recognise objects from different angles? An explanation of one-shot learning.</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unsupervised learning of a useful hierarchy of visual concepts — Part 2]]></title>
            <link>https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/fcd0c4d3e7ef</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[unsupervised-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Matt Way]]></dc:creator>
            <pubDate>Fri, 18 Aug 2017 05:17:41 GMT</pubDate>
            <atom:updated>2017-09-06T10:45:56.318Z</atom:updated>
            <content:encoded><![CDATA[<h3>Unsupervised learning of a useful hierarchy of visual concepts — Part 2</h3><p><em>This is the first of a series of articles explaining the work we’re doing at Syntropy, and tracking our progress as we make ground through some of the unsolved (or unsatisfactorily solved) problems in machine learning. These articles are split into technical (for Machine Learning professionals) and non-technical (for a more general audience).</em></p><p><em>This article is a technical follow-on to </em><a href="https://medium.com/syntropy-ai/unsupervised-learning-of-a-useful-hierarchy-of-visual-concepts-part-1-13ab0d4e21ec"><em>Unsupervised learning of a useful hierarchy of visual concepts — Part 1</em></a><em>.</em></p><p>Most attempts at unsupervised learning for vision involve what is called self supervision. Given any particular input, rather than trying to learn a relationship between the input and a label, instead try and learn a model that is able to reconstruct, or redraw that original input. The intuition here is that if the system is able to reconstruct the input well, then it might have learned a useful representation of the data internally. The keyword here is “<em>might</em>” however, as just being able to reconstruct data says nothing specific about the representation itself. This idea was popularised by the <a href="https://en.wikipedia.org/wiki/Autoencoder">autoencoder</a> architecture, which has since seen a large set of variants developed with the sole focus of learning different kinds of internal representations. Despite their popularity, and a brief period where they were used to pretrain supervised networks, they remain largely unused due to their inability to actually learn good enough representations (the variational autoencoder is promising, but will be discussed in later articles). The reason for this is what’s called the information loss problem.</p><p>The popular idea is that neural networks tend to lose information when going from input to output. So if they throw away the wrong information (information you might need to perform some task), then the network is problematic and needs to be improved. Some argue that supervised signals like labels are the only away to achieve this (due to joint learning), however our brains appear to solve this problem in an unsupervised way. We believe that light can be shed on this problem by comparing the differences between <a href="https://en.wikipedia.org/wiki/Autoencoder">vanilla</a> and <a href="https://papers.nips.cc/paper/3112-efficient-learning-of-sparse-representations-with-an-energy-based-model.pdf">sparse autoencoders</a>. Vanilla autoencoders compress the data space by creating a bottleneck in the model that forces it to be good at reconstructing inputs while using less resources. Sparse autoencoders on the other hand, try and learn features that activate more rarely, so that only a few activations are found for each input. They are worse at performing reconstructions, yet interestingly are much better at doing tasks like classification. But if the autoencoder is better at reconstructions, then arguably they retain more information than their sparse counterpart. How do you make sense of this weird contrast?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*OtSE8txGQsBS6OY9mGMqUw.png" /><figcaption>MNIST Vanilla autoencoder features (left), Sparse autoencoder features (right)</figcaption></figure><p>If you look at a single sparse autoencoder feature, by definition it is activated for a much smaller number of inputs. Inputs that have some particular thing in common. We like to say that these features have a high usefulness, because they represent some building block in the input space that is common enough to warrant its existence. A building block that helps perform good reconstructions, but is also good at doing classification, as it only activates for inputs that have what it represents in common. Interestingly the more building blocks you allow a sparse autoencoder to learn, the better it becomes. So why don’t either of these networks do well when compared to supervised models?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*iD5v4AqtGy-V4c5ZICjGKA.png" /></figure><p>If you imagine the complexity of the real world, the number of building blocks that could be useful would be staggeringly large. It is for this reason that a model would need to compress its data as well as possible. As illustrated in the crude diagram above, supervised deep learning achieves this combination of compression and usefulness, while the two different types of autoencoders do not. Vanilla autoencoders achieve decent information retention, but poor usefulness, while the sparse autoencoders are good at finding useful features, but cannot scale well. As you add more compression to a sparse autoencoder, the usefulness quickly degrades. This is because as you reduce the sparsity, the model has no guidance for the best way to compress the data (blue line). It just compresses in a way that satisfies the objective of building good reconstructions.</p><p>Compression in this light becomes a question of grouping. If you took any group of sparse autoencoder features, they can be compressed to use less resources, but at the expense of being as useful, as they throw away separability information. This is where prior invariant knowledge becomes important. If you knew which sparse autoencoder features represented the same thing semantically, then these would become good candidates for compressing into a single group. As mentioned in <a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24">earlier writings</a>, humans don’t leverage static data, but rather data that changes over time. This data is powerful as it contains information about how things we consider to be semantically the same appear from this moment to the next. We believe the brain uses this extra information for guidance as to how to compress these building block features in a way that keeps them maximally useful, while making them scalable through appropriate compression.</p><p>By learning the type of invariant manifold structure described earlier, you can achieve the desired mix of compression and usefulness. The individually learned manifolds behave like a sparse dictionary, in that they provide good usefulness. Then by also learning a heavily compressed representation of each individual manifold, a scalable compression can be achieved, avoiding unwanted information loss. The usefulness does not drop because the compression is over groups that contain semantically similar or invariant features.</p><p>There has been lots of work over the last two decades that revolve around these ideas, but have most likely come from different intuitions. The earliest was the <a href="https://www.researchgate.net/publication/220500181_Self-Organized_Formation_of_Various_Invariant-Feature_Filters_in_the_Adaptive-Subspace_SOM">Adaptive Subspace Self Organising Map</a>. This was inspired by neuroscience, utilised episodic data, and attempted to build a topographic map like the one seen in <a href="https://en.wikipedia.org/wiki/Visual_cortex#Primary_visual_cortex_.28V1.29">V1</a> of the visual cortex. It was only able to select one manifold per input, and utilised a simple type of sparse compression. Following on the topographic path were [<a href="http://www.sciencedirect.com/science/article/pii/S0042698901001146">3</a>,<a href="http://yann.lecun.com/exdb/publis/pdf/koray-cvpr-09.pdf">4</a>], which overcame the limitation of only selecting a single manifold per input. These worked by trying to maximise the sparsity of feature neighbourhoods, which resulted in a similar emerging topography. These methods also used a simple linear compression, but did not utilise episodic data, which limits the combined manifold features to being close in euclidean space.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/316/1*AP4d0tYCHiCC9GeW9TE8Ug.png" /><figcaption>Sparse topographic features from [4]</figcaption></figure><p>Building upon the idea of <a href="https://statweb.stanford.edu/~tibs/lasso/lasso.pdf">lasso regularisation</a> (or <a href="https://en.wikipedia.org/wiki/Basis_pursuit_denoising">basis pursuit denoising</a>), [<a href="https://web.stanford.edu/~hastie/Papers/SGLpaper.pdf">6</a>,<a href="https://arxiv.org/pdf/1001.0736.pdf">7</a>,<a href="https://openreview.net/pdf?id=BJFG8Yqxl">8</a>,<a href="https://arxiv.org/pdf/1008.4988.pdf">9</a>,<a href="https://arxiv.org/pdf/1607.00485.pdf">10</a>,<a href="https://arxiv.org/pdf/1006.1346.pdf">13</a>] utilise a more complex sparse group lasso regularisation. While the structure of these models is very similar to the ideas described earlier, they are less about trying to directly learn manifolds or invariance, and more about maximising selection sparsity. The primary difference to the topographic methods above is that these explicitly group separate manifolds, rather than being constrained to learn an overlapping map. The shortcomings of these methods is that they don’t use episodic data, they require batching (so must operate offline), and are much further away from biological plausibility.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/924/1*5BLpyqWe3Zcjm7XEDrBURg.png" /><figcaption>Single layer manifold map architecture.</figcaption></figure><p>Our approach to group-based compression is an amalgamation of two existing algorithms. Firstly, to do the sparse manifold selection we use <a href="https://www.isr.umd.edu/~krishna/images/pati_reza_psk.pdf">orthogonal matching pursuit</a>. In this algorithm, manifolds compete for selection, with the ‘winner’ being the one that best represents some aspect of the input. The reconstruction generated by the winning manifold is then subtracted away from the input, and the rest of the manifolds again compete for the remaining input. The process repeats until some threshold is reached. Orthogonal matching pursuit is simple, works online, and is a potentially good analogue for how the cortex does manifold selection. By competing to phase lock certain aspects of the input, a cortical area could conceivably both activate for, and effectively remove, that aspect of the input; rendering it invisible to the other manifolds competing to activate for the remaining input. This would also allow for potentially selecting the same manifold multiple times, by utilising different temporal frames; a potential solution to the duplication problem from [<a href="http://www.cs.toronto.edu/~fritz/absps/transauto6.pdf">12</a>].</p><p>Secondly, to do the compression in the intra-manifold features we use an online implementation of <a href="https://arxiv.org/abs/1503.00680">non negative matrix factorisation</a>. Rather than trying to learn a reconstruction, this learns sparsity through a nonlinear competitive dynamic process. By leveraging both feedforward <a href="https://en.wikipedia.org/wiki/Oja%27s_rule">hebbian</a> and locally connected <a href="https://en.wikipedia.org/wiki/Anti-Hebbian_learning">antihebbian</a> learning, neurons are penalised when coactivating, promoting an optimum level of sparsity. This is interesting because the usual sparse parameter does not need to be provided, and the architecture has a very close analogue to the input L4 of a cortical column [<a href="http://onlinelibrary.wiley.com/doi/10.1113/JP271891/full">15</a>].</p><p>By using episodic data, we are able to lock the manifold selections across multiple frames. This provides the compression guidance as explained in the information loss section. This also has a biological analogue in the mexican hat connectivity patterns of L2/3 in the cortical column. [<a href="https://pdfs.semanticscholar.org/41d8/fbd00572df8ff20accabd58eed88f2182bf0.pdf">16</a>] shows that this type of connectivity pattern causes bubbles or blobbing to occur after sufficient input activity, and is self sustaining even after the input patterns have changed, keeping the lower layers active, able to learn patterns they may not have otherwise selected for.</p><p>While this architecture shows interesting results, it is only one part of a larger architecture. We describe the next part in <a href="https://medium.com/syntropy-ai/how-do-humans-recognise-objects-from-different-angles-an-explanation-of-one-shot-learning-71887ab2e5b4">How do humans recognise objects from different angles? An explanation of one-shot learning.</a></p><p><em>If you’re interested in following along as we expand on these ideas then please subscribe, or </em><a href="https://twitter.com/SyntropyAI"><em>follow us on Twitter</em></a><em>. If you have feedback after reading this, please comment, or reach out via email (info at syntropy dot xyz) or Twitter. Finally, if you’re interested in our work, please get in touch — we are always looking to expand our team.</em></p><ol><li><a href="https://papers.nips.cc/paper/3112-efficient-learning-of-sparse-representations-with-an-energy-based-model.pdf">Efficient Learning of Sparse Representations with an Energy-Based Model</a></li><li><a href="https://www.researchgate.net/publication/220500181_Self-Organized_Formation_of_Various_Invariant-Feature_Filters_in_the_Adaptive-Subspace_SOM">Self-Organised Formation of Various Invariant-Feature Filters in the Adaptive-Subspace SOM</a></li><li><a href="http://www.sciencedirect.com/science/article/pii/S0042698901001146">A two-layer sparse coding model learns simple and complex cell receptive fields and topography from natural images</a></li><li><a href="http://yann.lecun.com/exdb/publis/pdf/koray-cvpr-09.pdf">Learning Invariant Features through Topographic Filter Maps</a></li><li><a href="https://statweb.stanford.edu/~tibs/lasso/lasso.pdf">Regression Shrinkage and Selection via the Lasso</a></li><li><a href="https://web.stanford.edu/~hastie/Papers/SGLpaper.pdf">A Sparse-Group Lasso</a></li><li><a href="https://arxiv.org/pdf/1001.0736.pdf">A Note of the Group Lasso and Sparse Group Lasso</a></li><li><a href="https://openreview.net/pdf?id=BJFG8Yqxl">Group Sparse CNNs for Question Sentence Classification with Answer Sets</a></li><li><a href="https://arxiv.org/pdf/1008.4988.pdf">Sparse Group Restricted Boltzmann Machines</a></li><li><a href="https://arxiv.org/pdf/1607.00485.pdf">Group Sparse Regularization for Deep Neural Networks</a></li><li><a href="https://www.isr.umd.edu/~krishna/images/pati_reza_psk.pdf">Orthogonal Matching Pursuit: Recursive Function Approximation with Applications to Wavelet Decomposition</a></li><li><a href="http://www.cs.toronto.edu/~fritz/absps/transauto6.pdf">Transforming Auto-encoders</a></li><li><a href="https://arxiv.org/pdf/1006.1346.pdf">C-HiLasso: A Collaborative Hierarchical Sparse Modeling Framework</a></li><li><a href="https://arxiv.org/abs/1503.00680">A Hebbian/Anti-Hebbian Network Derived from Online Non-Negative Matrix Factorization Can Cluster and Discover Sparse Features</a></li><li><a href="http://onlinelibrary.wiley.com/doi/10.1113/JP271891/full">Primary visual cortex shows laminar-specific and balanced circuit organization of excitatory and inhibitory synaptic connectivity</a></li><li><a href="https://pdfs.semanticscholar.org/41d8/fbd00572df8ff20accabd58eed88f2182bf0.pdf">Bubbles: a unifying framework for low-level statistical properties of natural image sequences</a></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fcd0c4d3e7ef" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef">Unsupervised learning of a useful hierarchy of visual concepts — Part 2</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How can we make machines understand the world like humans do?]]></title>
            <link>https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24?source=rss----b27cb4e1e73f---4</link>
            <guid isPermaLink="false">https://medium.com/p/3443dd010d24</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Angus Russell]]></dc:creator>
            <pubDate>Wed, 09 Aug 2017 04:43:23 GMT</pubDate>
            <atom:updated>2017-08-18T09:26:23.020Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Syntropy is on a mission to exponentially increase the productivity of every human being on the planet. To achieve this, we believe we need to solve a fundamental problem in machine learning — how can we make machines comprehend the world like humans do? In this article we’ll dive into this mission in more detail, highlight the problems we need to overcome to realise it, and explain the principles and insights that are guiding our work.</em></p><p>Without providing a recap of our collective human history, it is safe to say our progress thus far has been incredible. From nomadic hunter-gatherer tribes to industrialised megacities, this progress has been driven by two complementary ideas; leveraging technology to increase productivity, and sharing our discoveries with others. The most recent step change in our collective output is thanks to the internet, which has dramatically sped up knowledge propagation between people.</p><p>Once likely driven by pure survival, it seems as though modern progress is now about maximising our time. More time for family and friends, more time to pursue our goals, dreams and passions. This was the original promise of automation, and if you ignore our arguably inept social and economic structures for dealing with it, many of us are indeed seeing net benefits to our freedoms in daily life. In reality however, this perceived increase is fairly futile when considering the image below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MWpVE8UpFVFQsHDFIQJ1fg.png" /></figure><p>Above is your <strong><em>entire</em></strong> waking life in weeks. This is all you get before you die. You may have seen an image like this before, and may, like others, find it somewhat depressing. And you should. But there is hope. You see, every year our average life span changes based on better standards of living and better medical technology. At present it takes more than a year’s worth of progress in these areas to extend our life expectancy by one year, but if this could be accelerated to the point where the same progress can be compacted into a year or less, then for all practical purposes our lifespans would be open ended. This idea is known as the <a href="https://en.wikipedia.org/wiki/Longevity_escape_velocity">longevity escape velocity</a>. It may feel like a distant dream of science fiction, and arguably if our rate of progress went unchanged then we would agree. But we are notoriously known for mistakenly thinking our progress is linear.</p><p>Rather than addressing our mortality by focusing on specific medical problems, we believe that it is much more prudent to hack the acceleration of progress itself. We can do this by speeding up the rate at which we are able to automate processes. Humans have been getting better at this over time, but we are currently held by the bottleneck of software development. Developing software is still an extremely inefficient, costly process, that usually requires a large amount of time and expertise. Imagine how many useful programs don’t get written because of these disincentives. If we were able to communicate with, and teach computers the same way that we might teach another human, we would afford every person the power to automate any process as though they had their own team of software engineers. This would facilitate a step change in global productivity.</p><p>To the casual observer, it would appear that we are already making great headway on this problem. DeepMind’s AlphaGo has now beaten the world №1 Go player, self-driving cars are allowed to drive themselves in 9 US states, computers are getting “super-human” scores on object recognition tasks, VCs are pouring billions of dollars into AI-related startups, and “deep learning” is in the headlines every week. With all this happening, it’s easy to imagine that human-like AI is only a stone’s throw away, but the reality is that there is still a fundamental problem to overcome — we don’t yet know how to program computers to learn a useful representation of the world.</p><p>To get good at playing Go, DeepMind trained AlphaGo on a database of 30 million moves, before having it play against itself thousands of times to generate more data. To achieve human-level performance at object recognition, a system typically requires millions of labelled training examples. Tesla has well over 1 Billion miles worth of labelled training data for its self-driving cars, but they still can’t handle poor weather conditions, and struggle on roads without lane markings. Clearly, humans don’t require anywhere near this much labelled training data to learn. As a child, you need only be told a handful of times what a tree is before you can recognise other trees. We can’t do the same with computers.</p><p>If you trained a computer to classify 1000 different animals, then wanted to add worms to the list, you’d have to start again and re-learn all 1001 types of animals at once. We humans don’t need to forget everything we know to incorporate a new piece of knowledge. This problem is called catastrophic forgetting, and is so named because if you tried to learn only the new thing, it would be at the expense of the accuracy of the current knowledge. This forces almost all systems to remain static after training, making active learning impossible. We also have difficulty taking the skills learned in one domain and transferring or building upon them in a new domain. For example, it is difficult to take a system that was trained to classify cars, and leverage its existing knowledge to answer questions about objects that aren’t cars.</p><p>Another big problem with current deep learning systems is that they are essentially black boxes, inscrutable from the outside. While they might make very accurate predictions, it’s practically impossible to decipher <em>why</em> they made a particular prediction. This means that when they are wrong, we can’t see exactly why; and we must either supply more data, better data, or altered parameters to <em>hopefully</em> improve them. This problem precludes the use of these models in any application that requires decision explainability. It’s also been found that models can be quite easily fooled into making a wrong decision by changing an input in ways imperceptible to humans. These types of inputs, called adversarial images, are not only problematic in terms of security (a malicious actor could trick a system into making a specific decision), they also speak to the mysterious nature of the inner workings of these models.</p><p>These problems are all symptoms of the fundamental problem of representation learning, the process of forming a mental model of the world through experience. Humans can learn what a tree is with very little actual teaching, and we can learn what worms are without having to relearn about trees. We can do this because we learn without being explicitly taught. We learn by experiencing the world and building a mental model of all our experiences, so when our parent points to that tall, green thing and tells us it’s a tree, we’re assigning a link between our existing model of trees and our existing model of the word tree. Computers are currently taught in the reverse order — we show a picture of a tree, tell it it’s a tree, and ask it to rearrange it’s mental model so that it’s more likely to recognise the next tree. Repeat a few million times and we have a computer that knows what trees are — and worms, and cars, and cups of coffee — but in the computer’s universe there are as many types of objects as it’s been told about, and no more.</p><p>Computers don’t build mental models like ours because they don’t live in our world. When we show it that picture of a tree, we generally ask it to learn one thing — <em>tree</em>. If we want to know what type of leaves or bark a tree has then we can add more labels to our training data — like <em>leaf</em>, <em>trunk</em>, <em>bark</em> and <em>branch type</em> — but we can only ask questions about the things we’ve labelled, and we can’t feasibly label every factlet that can be gleaned from every image. Computers live in a world of labels, whilst humans live in a world of experiences.</p><p>Consider the following sentence.</p><blockquote>The trophy would not fit in the brown suitcase because <strong>it</strong> was too big.</blockquote><p>If I asked you what the bold <em>it</em> refers to, you’d say the trophy. It’s clear to us because we know big things don’t fit inside little things. If I replaced the word <em>big</em> with <em>small</em> then suddenly that bold <em>it</em> refers to the suitcase. This question is from the <a href="http://commonsensereasoning.org/winograd.html">Winograd Schema Challenge</a>, a set of similarly ambiguous questions that are easily answered by humans using common sense. The highest scoring artificial challenger to date scored 58% accuracy on the questions — little better than random choice, and well short of the 90% accuracy required to unlock the $25,000 prize. These questions are easy for us to answer because they relate to our mental model of the world, but they’re hard for computers to understand because their mental model is not so robust.</p><p>If we had a system that could build a good internal representation of the world like humans do, then we could show it just one or two labelled examples of trees, and have it understand what trees are. We could inspect the system and understand what it knows about trees that allow it to identify one. If the model had a richer interpretability we could also ask many different questions of the model. Not just “What is in this image?”, but all sorts of questions about the scene hierarchy, part relationships, similarities and, importantly; why particular choices were made, and how to fix problems. We could also continue to expose the system to new information, and have it perpetually improving upon its internal representation.</p><p>At Syntropy, we are developing new neural network architectures, inspired by machine learning and neuroscience, that allow a computer to learn a good internal representation of the world. While this goal isn’t entirely new, we distinguish ourselves by following some guiding principles and key insights that we believe will result in better solutions. These are explained below.</p><p>First, we’ve constrained ourselves to only using the same data available to humans. That means no (or very few) labels, especially early in training. This is called unsupervised learning. It’s clear that unsupervised learning is necessary to build a good world model, there’s just no way we could learn enough about the world using human-provided labels. Geoffrey Hinton confirms this with numbers in his <a href="https://www.reddit.com/r/MachineLearning/comments/2lmo0l/ama_geoffrey_hinton/clyjogf/">2014 AMA</a>.</p><blockquote>The brain has about 10¹⁴ synapses and we only live for about 10⁹ seconds. So we have a lot more parameters than data. This motivates the idea that we must do a lot of unsupervised learning since the perceptual input (including proprioception) is the only place we can get 10⁵ dimensions of constraint per second.</blockquote><p>Humans also experience data not as discrete, unrelated inputs, but as a stream of sequential data points. When you look around the room, your eyes are taking in sequential frames of vision, and even when you lock your gaze, your eyes are doing <a href="https://en.wikipedia.org/wiki/Microsaccade">microsaccades</a> (small, involuntary movements) around your point of focus. All our sensory modalities deliver signals in this way — a constant stream of continuously transforming data. Sequential data provides us with weak labelling, as each successive frame is likely to contain the same things. It also provides information about how things can legally change over time. Other methods, like <a href="http://www.scholarpedia.org/article/Slow_feature_analysis">Slow Feature Analysis</a>, and learning to generate future frames, utilise the same types of data. However we believe the associated models don’t capture the information in the best way.</p><p>Secondly, we enforce explicit structure inside our models, aiming to achieve easier inspection of the internal workings, and an intuitive mapping of the hierarchies of our visual world. Almost all models today are learned end to end without any structural constraints, at the expense of any understanding of the model’s internals. This means that not only can they not be understood in terms of process or function, but they have to be tested with inefficient, indirect methods. A model with an interpretable structure implies an understanding that allows empirical analysis similar to regular software development.</p><p>Finally, our overarching, but loosest principle, is that we are guided by neuroscience. The constraints above are analogous with what we currently know about the brain and it’s connection patterns, and our architectures are, for the most part, biologically plausible. While this isn’t a constraint we feel we need to follow by the book, we believe that there is value not only in building new useful models, but also in working towards an understanding of how the brain functions. To put it another way, we aren’t specifically trying to replicate the brain, but if there is already a machine that exhibits the behaviours we are trying to emulate, then it makes sense to refer to it for inspiration.</p><p>If we can build useful systems that adhere to the above principles, then any good solution we arrive at should exhibit solutions to all the problems listed earlier. This will put us one step closer to achieving our mission.</p><p><em>We’ll be releasing a series of explainers of our work over the coming months. If you think you’ll be interested in them then please subscribe, or </em><a href="https://twitter.com/SyntropyAI"><em>follow us on Twitter</em></a><em>. If you have feedback after reading this, please comment, or reach out via email (info at syntropy dot xyz) or Twitter. Finally, if you’re interested in our mission and ideas, please get in touch — we are always looking to expand our team. The first technical article can be found here: </em><a href="https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef">https://medium.com/syntropy-ai/unsupervised-learning-invariant-manifolds-fcd0c4d3e7ef</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3443dd010d24" width="1" height="1" alt=""><hr><p><a href="https://medium.com/syntropy-ai/syntropy-thesis-3443dd010d24">How can we make machines understand the world like humans do?</a> was originally published in <a href="https://medium.com/syntropy-ai">Syntropy</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>