<?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[Stories by Joy Rimchala on Medium]]></title>
        <description><![CDATA[Stories by Joy Rimchala on Medium]]></description>
        <link>https://medium.com/@Joy_Rimchala?source=rss-ae21e48d8d8f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*b2YZjDr1v5X-tVAouQ3tHw.jpeg</url>
            <title>Stories by Joy Rimchala on Medium</title>
            <link>https://medium.com/@Joy_Rimchala?source=rss-ae21e48d8d8f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:35:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@Joy_Rimchala/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Learning Information Extraction from Structured Documents Using Synthetic Data and Conditional…]]></title>
            <link>https://medium.com/intuit-engineering/learning-information-extraction-from-structured-documents-using-synthetic-data-and-conditional-f1a9c7dac269?source=rss-ae21e48d8d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1a9c7dac269</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[ai-and-data-science]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Joy Rimchala]]></dc:creator>
            <pubDate>Thu, 21 Mar 2019 20:06:46 GMT</pubDate>
            <atom:updated>2019-03-21T22:04:51.665Z</atom:updated>
            <content:encoded><![CDATA[<h3>Learning Information Extraction from Structured Documents Using Synthetic Data and Conditional Random Fields</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7egwHkVdULWXSKY3-YajFA.jpeg" /></figure><p>Accuracy is a must when extracting data from financial documents to be used in software. People increasingly prefer to photograph their tax forms, receipts and invoices rather than enter the data on them manually. Automatic information extraction (IE) eliminates manual data entry, as well as the security issues and errors in manual data handling. For sensitive documents containing personally identifiable information (PII), a reliable IE system that does not require a human in the loop is extremely valuable.</p><p>Attempts to train machine learning algorithms to do IE are hindered by the lack of high-quality labeled data. Acquiring such data sets requires human-in-the-loop verification and manual field-level redaction (due to the sensitive nature of some fields) and so it is expensive to acquire.</p><p>At Intuit, we built a data-driven framework for generating synthetic form images by learning statistical distributions of the real data. This framework has allowed us to generate labeled data sets on the fly and scale up the training set size for supervised machine learning models by several thousand-fold in a matter of hours. We used these synthetic training sets to train an IE model from structured text images. Our framework does not require any human-labeled data, and it performs classification on the images holistically.</p><p>IE is a structured prediction problem; and for this class of problem, conditional random fields (CRFs) is the state-of-the-art. CRF belongs to a class of sequence labeling models that have shown good performance over a large number of IE tasks. Under the hood, CRF seeks to locate latent entities in an observed sequence (stream of OCR extracted text in our case) and classifies them into categories, such as the names of people, organizations, monetary values, etc. For tax forms, the form fields are the (named entity) categories.</p><p><strong>Synthetic Data Generation Pipeline</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/974/1*sMVTzS9eG2aqSBLzTAVOEw.png" /><figcaption><em>The synthetic data pipeline consists of four main components: (1) the Data Type Classifier, (2) the Data Sampler, (3) the Data Assembler, and (4) the Image Render Engine.</em></figcaption></figure><p>Our synthetic data generation pipeline learns data distributions from Intuit’s electronic W2 records. The Data Type Classifier determines which of the following distributional types each data element falls into: <em>categorical, continuous, </em>and<em> personally identifiable information (PII)</em>. The Data Sampler then performs type-specific density estimation and stratified sampling. For PII, we synthesize combinations of data that do not trace back to real identity. Then the Data Sampler performs stratified samplings for all the data elements required for a form image from which the Data Assembler concatenates into a textual document. The output of this step is the synthetic textual data that the Image Render Engine renders over W2 form images.</p><p><strong>Named Entity Recognition Conditional Random Fields (NER-CRF)</strong></p><p>Our framework for IE consists of:</p><p>1. <em>Specifying types of named entities.</em> There are two main types of entities for forms: field labels (e.g., SSN) and field values (the value of the SSN). Within each type, there are 32 categories based on the W2 form labels.</p><p>2. <em>Extracting text from images using an optical character recognition (OCR) and computing features. </em>We use two classes of features: 1) token-based features, which capture words’ morphological patterns, part of speech, and pattern of the current token, and 2) contextual features, for which we use Word2Vec and latent Dirichlet allocation (LDA). Word2Vec learns the statistical relationship of word to their neighbors, while LDA learns distributions of latent topics of the documents over words.</p><p>3. <em>Training CRF.</em> The extracted features are state parameters in CRF. The model combines the strengths of sequence labeling and classification by learning the probability of content types directly from the observable stream of words, and models the dependencies between observations and types.</p><p><strong>Synthetic Data Generator Implementation</strong></p><p>Our synthetic data pipeline is packaged in a Docker image stored in an AWS Elastic Container Registry (ECR). It can be launched from any machine with a single script. Our framework is highly parallelizable and is capable of generating millions of form images of synthetic data from a single core machine, which can generate enough data to run large-scale machine learning experiments using complex models.</p><p>We use the W2 form synthetic data sets to run a proof of concept, medium-scale and large-scale NER-CRF-based IE with promising synthetic test set performance (&gt; 90% F1). NER-CRF prediction on labeled production images yields slightly lowered performance.</p><p><strong>NER-CRF IE Results</strong></p><p>We performed a proof of concept (POC) and a medium-scale experiment on the synthetic W2 images using 80/10/10 training/validation/test split. NER-CRF achieves 98.1% F1 in the POC and 94.2% F1 score in the medium-scale experiments over all 64 entity types. We examined NER-CRF performance at the entity type level and found that there are 3 out of 64 entity types for which NER-CRF yields mediocre performance. We are further investigating the reasons for reduced performance for these entities.</p><p>The trained NER-CRF is tested on a small set of human curated labeled production images. NER-CRF yields an overall F1 score of 69.0%. The results are summarized in the table below:</p><pre>╔═══════════════╦══════════════════╦═══════════╦══════════╦════════╗<br>║ Experiment    ║  Data Set Size   ║ Precision ║  Recall  ║   F1   ║<br>╠═══════════════╬══════════════════╬═══════════╬══════════╬════════╣<br>║ POC           ║ 9K, 1 layout     ║   97.4    ║   99.0   ║  98.1  ║<br>║ Large Scale   ║ 140K, 14 layouts ║   93.4    ║   95.2   ║  94.2  ║<br>║ Production    ║ 30 images        ║   64.1    ║   71.2   ║  69.0  ║  <br>╚═══════════════╩══════════════════╩═══════════╩══════════╩════════╝</pre><p>The major reasons for reduced performance in production images are production image quality, OCR character misspelling, inconsistent OCR text ordering, and noisy labels due to erroneous human-curated labels. We are quantifying the contributions from all these possible causes.</p><p><strong>Some Firsts</strong></p><p>Our work is the first data-driven synthetic data generator for form images in financial/tax domains with multiple data types including non-traceable PII. These data sets consist of multimodal labels: 1) pixel-level text labels, 2) bounding-box-level form entity labels, and 3) character-level textual ground truths. The ability to generate such data sets with labels on the fly has opened doors to training and evaluating complex machine learning models.</p><p>On the modeling side, this work presents the first unique combination of token-based with contextual features as an input to CRF to extract and associate information from tax forms that yields competitive performances to cutting-edge methods.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1a9c7dac269" width="1" height="1" alt=""><hr><p><a href="https://medium.com/intuit-engineering/learning-information-extraction-from-structured-documents-using-synthetic-data-and-conditional-f1a9c7dac269">Learning Information Extraction from Structured Documents Using Synthetic Data and Conditional…</a> was originally published in <a href="https://medium.com/intuit-engineering">Intuit Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Beyond Limited Labels]]></title>
            <link>https://medium.com/@Joy_Rimchala/learning-beyond-limited-labels-3a4861ec44ad?source=rss-ae21e48d8d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a4861ec44ad</guid>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Joy Rimchala]]></dc:creator>
            <pubDate>Tue, 18 Sep 2018 22:39:01 GMT</pubDate>
            <atom:updated>2018-10-03T01:16:59.931Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Discovering Disentangled and Compact Representations of Abstract Concepts</em></p><p>As most machine learning practitioners know, the primary challenge for machine learning as a field continues to be ensuring that trained learning systems are capable of generalizing beyond limited training datasets — and humans are much better at this than current state-of-the-art learning systems. As a member of the applied machine learning research group at Intuit, I have been toying with the idea of combining domain knowledge and human interactions with data-driven approaches to teach learning systems to learn more effectively.</p><p>At ICML (the International Conference on Machine Learning) this year, I came across an inspiring talk that proposed innovative ideas to tackle this problem. It was an invited lecture in the Saturday Workshop on “Toward Learning with Limited Labels” entitled “Towards disentangling underlying explanatory factors” by <a href="http://www.iro.umontreal.ca/~bengioy/yoshua_en/talks.html">Dr. Yoshua Bengio</a>. Given the speaker’s reputation, it’s not surprising that this talk attracted a lot of interest. What did surprise me was that the overflow was so significant that halfway through the talk, much of the audience had to be escorted out in order to comply with the facility’s safety regulations. Here’s what those of us lucky enough to stay for the whole talk got to hear.</p><h3>What’s Missing with Deep Learning: Deep Understanding</h3><p>In the first part of the talk, Dr. Bengio provided concrete evidence that current state-of-the-art deep learning-based models tend to capture “statistical regularities” in the training data sets, rather than the underlying causal mechanisms. In standard machine learning practice, training, validation, and testing data sets are sampled from the same pool (i.e., the same statistical distributions). In many real-world applications such as autonomous driving, the statistical distributions of actual data inputs can deviate vastly from the training data sets. This discrepancy explains why models trained using static data sets appear to generalize so well at test time, but remain vulnerable to adversarial attacks when deployed in the real world. While this observation would not surprise any seasoned machine learning/deep learning practitioners, the fact that Dr. Bengio’s group set out to measure the extent to which this happens is impressive[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>]. (Their approach is summarized in the <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.f5jdubds38ye">appendix</a>.)</p><h3>Toward A Machine That Plans</h3><p>Dr. Bengio spoke next about the tried and true strategies that encourage learning systems to “learn how the world ticks,” including equivariance/invariance, symmetries, and leveraging spatial and temporal scales. Inspired by the neuroscientific approach to understanding how human brains work, these strategies attempt to:</p><ul><li>Capture “good” internal, high-level, low-dimensional representations.</li><li>Maximize independence among controllable external factors, which leads to the concept of agents and actions.</li></ul><p>Why does capturing meaningful low-dimensional representation allow for generalization? From a neuroscientific perspective, there is evidence that human thought is inherently low-dimensional, hierarchical, and attentional. The human brain can store about seven items in working memory, which is small compared to the hundreds of dimensions of internal representations used in state-of-the-art machine learning models.</p><p>While limiting, this low-dimensional content-based attention allows humans to focus on a few elements out of a large set. In recent findings, neuroscientists have shown that the human brain integrates innumerable cognitive tasks into structured low-dimensional hierarchies. This allows a human to shift fluidly within changing but related tasks[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.fhxdt4j3jsy6">10</a>]. The low-dimensional core dynamic of the human brain is analogous to a meta-learner of related tasks. Such meta-learning allows learning systems to generalize and adapt to new tasks in a data-efficient manner (i.e., few shots)[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.y7t4lnyox34">11</a>]. More importantly, the seemingly vast diversity of natural-world scenarios actually arises from a small set of coherent rules (in physics and chemistry for example) that can be explained through abstract concepts. By adding a low-dimensionality constraint into the model architecture, learning systems can be trained to learn such meaningful hierarchical lower-dimensional representations[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.9yffy2gfznfu">3</a>].</p><p>Why might maximizing independence among external factors improve generalization? It could be argued that the human brain can come up with control policies that influence independent and distinct aspects of the world. For example, consider an object that we can manipulate/control — let’s say a coffee mug on a desk. One can choose to perform two independent actions on the mug, for instance: 1. turning the mug at its base by 90 degrees, and 2. filling up the mug with coffee to its rim. The outcome of this first action could be called “observing how the coffee mug looks from a 90-degree clockwise viewpoint,” while the outcome of the second is “observing the volume capacity of the mug.” These independent action-outcome pairs are maximally independent factors that explain how our perception of the coffee mug transitions from the original state (of sitting on a desk) to the two final states (turned by 90 degrees, and then filled with coffee). By mentally abstracting these action-outcome pairs, a human can generalize and predict the final states of the mug after these independent actions are taken in any sequence or combination. More importantly, humans can extend such generalization beyond coffee mugs to any object of similar physical properties.</p><p>The internal representation of action-outcome pairs is what we call the “mental model” of the world. We use this mental model to plan, act, and predict the outcomes of our actions<strong>.</strong> In the realm of machine learning, the closest analogs to this idea are the advances in reinforcement learning that show how acting in the real world can help guide representation learning and disentangling[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.1edsby603yge">4</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.ysqujesm8roz">5</a>]. (Disentangling being the separation of independent causes.) Having the “right” representation of the environment and the policy to control/affect aspects of it <em>“are two important ingredients that occur in parallel that allow human minds to discover what’s controllable in the world.”</em> And, as Dr. Bengio pointed out, “<em>This naturally leads to the emergence of the notion of objects and agents.”</em></p><h3>The Two Priors</h3><p>Next came the key ideas of the talk: the two types of priors that encourage learning systems to learn deeper “concepts” — the <em>Conscious Prior</em>[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.kei1cpp7jwyt">6</a>] and the <em>Independent Controllable Explanatory Factors</em>[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>].</p><p><strong>The Conscious Prior</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*sbZLsI0-VuR4yvBEEhVw-w.png" /><figcaption>The two levels of representation in the Conscious Prior. The image is taken from <a href="http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf">Dr. Bengio’s presentation</a>.</figcaption></figure><p>In brief, a conscious representation can be viewed as a low-dimensional combination of a few (concrete or abstract) concepts constituting a “thought.” State-of-the-art learning systems are often trained to capture a high-dimensional representation of the input space. With the Conscious Prior, there are two levels of representation: a high-dimensional “unconscious (hidden)” representation <strong>(<em>h</em>)</strong> and a low-dimensional “conscious” representation <strong>©</strong>. The low dimensionality of the conscious representation serves as a strong regularization for the learning problem. Attention can be applied over the conscious and unconscious state in such a way that the learning system output/prediction synthesized from the unconscious representation maps to a simple combination in the conscious representation. We can think of attention as a model-training mechanism that encourages a learning system to discover a conscious representation in which learned concepts can be “mentally” manipulated and/or referred to compactly. It should be noted that merely encouraging lower-dimensional representation does not guarantee that the discovered/learned representation is “conscious” in the neuroscience sense.</p><p><strong>The Independent Controllable Explanatory Factors</strong></p><p>The idea behind Independent Controllable Explanatory Factors is that by acting in the real world, a learning system (or agent) can learn “disentangled representations.” Because an agent can act on a particular aspect of the environment while leaving others unaffected, the learned internal representation must be able to distinguish perturbations coming from independent factors. As in the example of manipulating the coffee mug, an agent learns to associate its actions in the environment with internal representations that are unique to the action and the aspect of the environment being acted upon (i.e., Independent Controllable Explanatory Factors).</p><h3>Final Thoughts</h3><p>Among all the ICML talks I attended this year, this one has been the most thought-provoking. Shortly after wrapping up for the day, I hurried back to my hotel room, pulled up the papers [<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.kei1cpp7jwyt">6</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.g5moc0zekr34">8</a>] referenced in the talks, and started immersing myself in them. While I’m still trying to figure out how to apply these concepts to my current work, I’m keeping them in my machine learning toolbox, hoping they’ll become useful one day.</p><p>In closing, here are my thoughts on the two priors. Reflecting on my understanding of the Conscious Prior, the idea of using a lower-dimensional conscious space to represent a “concept” seems to correspond well to the current understanding of how thoughts occur in human brains. This type of machine training should lead to models that are not only more easily trainable and generalizable, but also more explainable (e.g., model decisions explained by activation of a few meaningful concepts vs. activation of a large sparse array of neural weights). Fewer and more coherent explanatory factors, plus making these factors maximally independent from one another, makes the factors’ effects easier to tease apart. I see a parallel between Independent Controllable Explanatory Factors and the idea of learning with equivariance, which Dr. Bengio pointed out has led to discoveries of good representations in many visual learning tasks. Notably, not all features of an aspect of environments — such as the aspect of color — are information that an agent can act upon (i.e., controllable). So there must be other strategies the human brain uses to learn those concepts in generalizable ways.</p><p>Applying the Conscious Prior and Independent Controllable Factors even to toy problems (such as navigating in a simple grid world [<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.rc3gzye41o5p">9</a>]) provides a good example of how machine learning as a field can benefit from ideas borrowed from neuroscience. I’m hopeful that there are many more insights we can draw from our growing understanding of the human brain to help build more robust machine learning systems.</p><h3>Appendix</h3><p>How did Bengio’s group measure the tendency of complex models to latch on to surface statistical regularities rather than generalizable features?</p><p>Jason Jo and Yoshua Bengio[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>] implemented perturbation maps (Random and Radial Fourier filtering schemes) that qualitatively changed statistical regularities while preserving object recognizability, and applied them to well-known image data sets (<a href="http://ufldl.stanford.edu/housenumbers/">SVHN</a> and <a href="https://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10</a>). A state-of-the-art Convolutional Neural Network (Preact ResNet with Bottleneck architecture 200[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.v884nuhgbesy">2</a>]) was trained on one data set, and then tested across differently-perturbed sets. With this setup, the models exhibited up to a 28 percent generalization gap across the various test sets[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>].</p><h3>References:</h3><p><em>[1] Jo J. and Bengio Y. (2017). “Measuring the tendency of CNNs to Learn Surface Statistical Regularities” </em><a href="https://arxiv.org/abs/1711.11561"><em>https://arxiv.org/abs/1711.11561</em></a></p><p><em>[2] K. He, X. Zhang, S. Ren, and J. Sun. “Identity Mappings in Deep Residual Networks” </em><a href="https://arxiv.org/abs/1603.05027"><em>https://arxiv.org/abs/1603.05027</em></a></p><p><em>[3] Higgins I. et al (2017). “SCAN: Learning Hierarchical Compositional Visual Concepts” </em><a href="https://arxiv.org/abs/1707.03389"><em>https://arxiv.org/abs/1707.03389</em></a></p><p><em>[4] Lesort T. et al (2018). “State Representation Learning for Control: An Overview” </em><a href="https://arxiv.org/abs/1802.04181"><em>https://arxiv.org/abs/1802.04181</em></a></p><p><em>[5] Raposo D. et al (2017). “Discovering objects and their relations from entangled scene representations” </em><a href="https://arxiv.org/abs/1702.05068"><em>https://arxiv.org/abs/1702.05068</em></a></p><p><em>[6] Bengio Y. (2017). “The Consciousness Prior” </em><a href="https://arxiv.org/abs/1709.08568"><em>https://arxiv.org/abs/1709.08568</em></a></p><p><em>[7] Thomas V. et al (2017). “Independently Controllable Factors” </em><a href="https://arxiv.org/abs/1708.01289"><em>https://arxiv.org/abs/1708.01289</em></a></p><p><em>[8] Bengio Y. (2018) “Towards disentangling underlying explanatory factors” </em><a href="http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf"><em>http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf</em></a></p><p><em>[9] Sukhbaatar S. et al (2015). “MazeBase: A sandbox for learning from games” </em><a href="https://arxiv.org/abs/1511.07401"><em>https://arxiv.org/abs/1511.07401</em></a></p><p><em>[10] Shine et al (2018) “The low dimensional dynamic and integrative core of cognition in the human brain” </em><a href="https://doi.org/10.1101/266635"><em>https://doi.org/10.1101/266635</em></a></p><p><em>[11] Finn C., Abbeel P. and Levine S. (2017) “Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks” </em><a href="https://arxiv.org/abs/1703.03400"><em>https://arxiv.org/abs/1703.03400</em></a></p><h3>Bio:</h3><p>Joy Rimchala is a Data Scientist in Applied Machine Learning Research in Intuit’s Technology Futures Group. She has implemented a synthetic data approach to overcome the lack of limited label data in computer vision and natural language settings, and has built model pipelines with TensorFlow, PyTorch and AWS SageMaker. Joy is currently leading the initiative on information extraction from images of structured documents using ideas from computer vision, natural language models, and representation learning. Joy holds a PhD from MIT, where she spent five years doing biological object tracking experiments, and modeling them using Markov Decision Processes.</p><h3>Acknowledgment:</h3><p>First and foremost, I would like to thank Heather White for her coaching and for constructive feedback. Heather’s comments and suggestions brought much clarity and readability to the article. I also would like to thank Alex Gude, Andrew Mattarella-Micke, Conrad De Peuter, Riley Edmunds, Sricharan Kumar, Sumayah Rahman and Yang Li and for advice and feedbacks on the technical aspects of the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3a4861ec44ad" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Learning Beyond Limited Labels]]></title>
            <link>https://medium.com/@Joy_Rimchala/learning-beyond-limited-labels-45a7dad63435?source=rss-ae21e48d8d8f------2</link>
            <guid isPermaLink="false">https://medium.com/p/45a7dad63435</guid>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[representation-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[icml2018]]></category>
            <dc:creator><![CDATA[Joy Rimchala]]></dc:creator>
            <pubDate>Fri, 14 Sep 2018 22:41:59 GMT</pubDate>
            <atom:updated>2018-09-14T22:41:59.592Z</atom:updated>
            <content:encoded><![CDATA[<p><em>By Discovering Disentangled and Compact Representations of Abstract Concepts</em></p><p>As most machine learning practitioners know, the primary challenge for machine learning as a field continues to be ensuring that trained learning systems are capable of generalizing beyond limited training datasets — and humans are much better at this than current state-of-the-art learning systems. As a member of the applied machine learning research group at Intuit, I have been toying with the idea of combining domain knowledge and human interactions with data-driven approaches to teach learning systems to learn more effectively.</p><p>At ICML (the International Conference on Machine Learning) this year, I came across an inspiring talk that proposed innovative ideas to tackle this problem. It was an invited lecture in the Saturday Workshop on “Toward Learning with Limited Labels” entitled “Towards disentangling underlying explanatory factors” by <a href="http://www.iro.umontreal.ca/~bengioy/yoshua_en/talks.html">Dr. Yoshua Bengio</a>. Given the speaker’s reputation, it’s not surprising that this talk attracted a lot of interest. What did surprise me was that the overflow was so significant that halfway through the talk, much of the audience had to be escorted out in order to comply with the facility’s safety regulations. Here’s what those of us lucky enough to stay for the whole talk got to hear.</p><h3>What’s Missing with Deep Learning: Deep Understanding</h3><p>In the first part of the talk, Dr. Bengio provided concrete evidence that current state-of-the-art deep learning-based models tend to capture “statistical regularities” in the training data sets, rather than the underlying causal mechanisms. In standard machine learning practice, training, validation, and testing data sets are sampled from the same pool (i.e., the same statistical distributions). In many real-world applications such as autonomous driving, the statistical distributions of actual data inputs can deviate vastly from the training data sets. This discrepancy explains why models trained using static data sets appear to generalize so well at test time, but remain vulnerable to adversarial attacks when deployed in the real world. While this observation would not surprise any seasoned machine learning/deep learning practitioners, the fact that Dr. Bengio’s group set out to measure the extent to which this happens is impressive[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>]. (Their approach is summarized in the <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.f5jdubds38ye">appendix</a>.)</p><h3>Toward A Machine That Plans</h3><p>Dr. Bengio spoke next about the tried and true strategies that encourage learning systems to “learn how the world ticks,” including equivariance/invariance, symmetries, and leveraging spatial and temporal scales. Inspired by the neuroscientific approach to understanding how human brains work, these strategies attempt to:</p><ul><li>Capture “good” internal, high-level, low-dimensional representations.</li><li>Maximize independence among controllable external factors, which leads to the concept of agents and actions.</li></ul><p>Why does capturing meaningful low-dimensional representation allow for generalization? From a neuroscientific perspective, there is evidence that human thought is inherently low-dimensional, hierarchical, and attentional. The human brain can store about seven items in working memory, which is small compared to the hundreds of dimensions of internal representations used in state-of-the-art machine learning models.</p><p>While limiting, this low-dimensional content-based attention allows humans to focus on a few elements out of a large set. In recent findings, neuroscientists have shown that the human brain integrates innumerable cognitive tasks into structured low-dimensional hierarchies. This allows a human to shift fluidly within changing but related tasks[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.fhxdt4j3jsy6">10</a>]. The low-dimensional core dynamic of the human brain is analogous to a meta-learner of related tasks. Such meta-learning allows learning systems to generalize and adapt to new tasks in a data-efficient manner (i.e., few shots)[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.y7t4lnyox34">11</a>]. More importantly, the seemingly vast diversity of natural-world scenarios actually arises from a small set of coherent rules (in physics and chemistry for example) that can be explained through abstract concepts. By adding a low-dimensionality constraint into the model architecture, learning systems can be trained to learn such meaningful hierarchical lower-dimensional representations[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.9yffy2gfznfu">3</a>].</p><p>Why might maximizing independence among external factors improve generalization? It could be argued that the human brain can come up with control policies that influence independent and distinct aspects of the world. For example, consider an object that we can manipulate/control — let’s say a coffee mug on a desk. One can choose to perform two independent actions on the mug, for instance: 1. turning the mug at its base by 90 degrees, and 2. filling up the mug with coffee to its rim. The outcome of this first action could be called “observing how the coffee mug looks from a 90-degree clockwise viewpoint,” while the outcome of the second is “observing the volume capacity of the mug.” These independent action-outcome pairs are maximally independent factors that explain how our perception of the coffee mug transitions from the original state (of sitting on a desk) to the two final states (turned by 90 degrees, and then filled with coffee). By mentally abstracting these action-outcome pairs, a human can generalize and predict the final states of the mug after these independent actions are taken in any sequence or combination. More importantly, humans can extend such generalization beyond coffee mugs to any object of similar physical properties.</p><p>The internal representation of action-outcome pairs is what we call the “mental model” of the world. We use this mental model to plan, act, and predict the outcomes of our actions<strong>.</strong> In the realm of machine learning, the closest analogs to this idea are the advances in reinforcement learning that show how acting in the real world can help guide representation learning and disentangling[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.1edsby603yge">4</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.ysqujesm8roz">5</a>]. (Disentangling being the separation of independent causes.) Having the “right” representation of the environment and the policy to control/affect aspects of it <em>“are two important ingredients that occur in parallel that allow human minds to discover what’s controllable in the world.”</em> And, as Dr. Bengio pointed out, “<em>This naturally leads to the emergence of the notion of objects and agents.”</em></p><h3>The Two Priors</h3><p>Next came the key ideas of the talk: the two types of priors that encourage learning systems to learn deeper “concepts” — the <em>Conscious Prior</em>[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.kei1cpp7jwyt">6</a>] and the <em>Independent Controllable Explanatory Factors</em>[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>].</p><p><strong>The Conscious Prior</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/890/1*sbZLsI0-VuR4yvBEEhVw-w.png" /><figcaption>The two levels of representation in the Conscious Prior. The image is taken from <a href="http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf">Dr. Bengio’s presentation</a>.</figcaption></figure><p>In brief, a conscious representation can be viewed as a low-dimensional combination of a few (concrete or abstract) concepts constituting a “thought.” State-of-the-art learning systems are often trained to capture a high-dimensional representation of the input space. With the Conscious Prior, there are two levels of representation: a high-dimensional “unconscious (hidden)” representation <strong>(<em>h</em>)</strong> and a low-dimensional “conscious” representation <strong>(c)</strong>. The low dimensionality of the conscious representation serves as a strong regularization for the learning problem. Attention can be applied over the conscious and unconscious state in such a way that the learning system output/prediction synthesized from the unconscious representation maps to a simple combination in the conscious representation. We can think of attention as a model-training mechanism that encourages a learning system to discover a conscious representation in which learned concepts can be “mentally” manipulated and/or referred to compactly. It should be noted that merely encouraging lower-dimensional representation does not guarantee that the discovered/learned representation is “conscious” in the neuroscience sense.</p><p><strong>The Independent Controllable Explanatory Factors</strong></p><p>The idea behind Independent Controllable Explanatory Factors is that by acting in the real world, a learning system (or agent) can learn “disentangled representations.” Because an agent can act on a particular aspect of the environment while leaving others unaffected, the learned internal representation must be able to distinguish perturbations coming from independent factors. As in the example of manipulating the coffee mug, an agent learns to associate its actions in the environment with internal representations that are unique to the action and the aspect of the environment being acted upon (i.e., Independent Controllable Explanatory Factors).</p><h3>Final Thoughts</h3><p>Among all the ICML talks I attended this year, this one has been the most thought-provoking. Shortly after wrapping up for the day, I hurried back to my hotel room, pulled up the papers [<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.kei1cpp7jwyt">6</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.g5moc0zekr34">8</a>] referenced in the talks, and started immersing myself in them. While I’m still trying to figure out how to apply these concepts to my current work, I’m keeping them in my machine learning toolbox, hoping they’ll become useful one day.</p><p>In closing, here are my thoughts on the two priors. Reflecting on my understanding of the Conscious Prior, the idea of using a lower-dimensional conscious space to represent a “concept” seems to correspond well to the current understanding of how thoughts occur in human brains. This type of machine training should lead to models that are not only more easily trainable and generalizable, but also more explainable (e.g., model decisions explained by activation of a few meaningful concepts vs. activation of a large sparse array of neural weights). Fewer and more coherent explanatory factors, plus making these factors maximally independent from one another, makes the factors’ effects easier to tease apart. I see a parallel between Independent Controllable Explanatory Factors and the idea of learning with equivariance, which Dr. Bengio pointed out has led to discoveries of good representations in many visual learning tasks. Notably, not all features of an aspect of environments — such as the aspect of color — are information that an agent can act upon (i.e., controllable). So there must be other strategies the human brain uses to learn those concepts in generalizable ways.</p><p>Applying the Conscious Prior and Independent Controllable Factors even to toy problems (such as navigating in a simple grid world [<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.8xyj6pea92ce">7</a>, <a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.rc3gzye41o5p">9</a>]) provides a good example of how machine learning as a field can benefit from ideas borrowed from neuroscience. I’m hopeful that there are many more insights we can draw from our growing understanding of the human brain to help build more robust machine learning systems.</p><h3>Appendix</h3><p>How did Bengio’s group measure the tendency of complex models to latch on to surface statistical regularities rather than generalizable features?</p><p>Jason Jo and Yoshua Bengio[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>] implemented perturbation maps (Random and Radial Fourier filtering schemes) that qualitatively changed statistical regularities while preserving object recognizability, and applied them to well-known image data sets (<a href="http://ufldl.stanford.edu/housenumbers/">SVHN</a> and <a href="https://www.cs.toronto.edu/~kriz/cifar.html">CIFAR-10</a>). A state-of-the-art Convolutional Neural Network (Preact ResNet with Bottleneck architecture 200[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.v884nuhgbesy">2</a>]) was trained on one data set, and then tested across differently-perturbed sets. With this setup, the models exhibited up to a 28 percent generalization gap across the various test sets[<a href="https://docs.google.com/document/d/1HUtDQmc_bS0L4pRzVpfK_KlvWaIAmgNhMm0WLhpbacU/edit#heading=h.li205n8ofsf1">1</a>].</p><h3>References:</h3><p><em>[1] Jo J. and Bengio Y. (2017). “Measuring the tendency of CNNs to Learn Surface Statistical Regularities” </em><a href="https://arxiv.org/abs/1711.11561"><em>https://arxiv.org/abs/1711.11561</em></a></p><p><em>[2] K. He, X. Zhang, S. Ren, and J. Sun. “Identity Mappings in Deep Residual Networks” </em><a href="https://arxiv.org/abs/1603.05027"><em>https://arxiv.org/abs/1603.05027</em></a></p><p><em>[3] Higgins I. et al (2017). “SCAN: Learning Hierarchical Compositional Visual Concepts” </em><a href="https://arxiv.org/abs/1707.03389"><em>https://arxiv.org/abs/1707.03389</em></a></p><p><em>[4] Lesort T. et al (2018). “State Representation Learning for Control: An Overview” </em><a href="https://arxiv.org/abs/1802.04181"><em>https://arxiv.org/abs/1802.04181</em></a></p><p><em>[5] Raposo D. et al (2017). “Discovering objects and their relations from entangled scene representations” </em><a href="https://arxiv.org/abs/1702.05068"><em>https://arxiv.org/abs/1702.05068</em></a></p><p><em>[6] Bengio Y. (2017). “The Consciousness Prior” </em><a href="https://arxiv.org/abs/1709.08568"><em>https://arxiv.org/abs/1709.08568</em></a></p><p><em>[7] Thomas V. et al (2017). “Independently Controllable Factors” </em><a href="https://arxiv.org/abs/1708.01289"><em>https://arxiv.org/abs/1708.01289</em></a></p><p><em>[8] Bengio Y. (2018) “Towards disentangling underlying explanatory factors” </em><a href="http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf"><em>http://www.iro.umontreal.ca/~bengioy/talks/ICMLW-limitedlabels-13july2018.pptx.pdf</em></a></p><p><em>[9] Sukhbaatar S. et al (2015). “MazeBase: A sandbox for learning from games” </em><a href="https://arxiv.org/abs/1511.07401"><em>https://arxiv.org/abs/1511.07401</em></a></p><p><em>[10] Shine et al (2018) “The low dimensional dynamic and integrative core of cognition in the human brain” </em><a href="https://doi.org/10.1101/266635"><em>https://doi.org/10.1101/266635</em></a></p><p><em>[11] Finn C., Abbeel P. and Levine S. (2017) “Model-Agnostic Meta-Learning for Fast Adaptation of Deep Networks” </em><a href="https://arxiv.org/abs/1703.03400"><em>https://arxiv.org/abs/1703.03400</em></a></p><h3>Bio:</h3><p>Joy Rimchala is a Data Scientist in Applied Machine Learning Research in Intuit’s Technology Futures Group. She has implemented a synthetic data approach to overcome the lack of limited label data in computer vision and natural language settings, and has built model pipelines with TensorFlow, PyTorch and AWS SageMaker. Joy is currently leading the initiative on information extraction from images of structured documents using ideas from computer vision, natural language models, and representation learning. Joy holds a PhD from MIT, where she spent five years doing biological object tracking experiments, and modeling them using Markov Decision Processes.</p><h3>Acknowledgment:</h3><p>First and foremost, I would like to thank Heather White for her coaching and for constructive feedback. Heather’s comments and suggestions brought much clarity and readability to the article. I also would like to thank Alex Gude, Andrew Mattarella-Micke, Conrad De Peuter, Riley Edmunds, Sricharan Kumar, Sumayah Rahman and Yang Li and for advice and feedbacks on the technical aspects of the article.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45a7dad63435" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>