<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Learned Archives - Artificial Intelligence</title>
	<atom:link href="https://www.aiuniverse.xyz/tag/learned/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.aiuniverse.xyz/tag/learned/</link>
	<description>Exploring the universe of Intelligence</description>
	<lastBuildDate>Mon, 01 Mar 2021 07:07:30 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.2</generator>
	<item>
		<title>What Is Meta-Learning via Learned Losses (with Python Code)</title>
		<link>https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/</link>
					<comments>https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Mon, 01 Mar 2021 07:07:28 +0000</pubDate>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[Code]]></category>
		<category><![CDATA[Learned]]></category>
		<category><![CDATA[Losses]]></category>
		<category><![CDATA[meta-learning]]></category>
		<category><![CDATA[What]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=13145</guid>

					<description><![CDATA[<p>Source &#8211; https://analyticsindiamag.com/ Facebook AI Research (FAIR) research on meta-learning has majorly classified into two types:  First, methods that can learn representation for generalization. Second, methods that <a class="read-more-link" href="https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/">What Is Meta-Learning via Learned Losses (with Python Code)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Source &#8211; https://analyticsindiamag.com/</p>



<p class="wp-block-paragraph">Facebook AI Research (FAIR) research on meta-learning has majorly classified into two types:  First, methods that can learn representation for generalization. Second, methods that can optimize models. We have thoroughly discussed the type first in our previous article MBIRL. For this post, we are going to give a brief introduction to the second type. Last month, at the International Conference on Pattern Recognition, {ICPR}, Italy, January 10-15, 2021, a group of researchers: <em>S. Bechtle,  A. Molchanov, Y. Chebotar, E. Grefenstette, L. Righetti, G. S. Sukhatme, F. Meier</em> submitted a research paper focussing on the automation of “meta-training” processing: <strong>Meta Learning via Learned Loss</strong>.</p>



<p class="wp-block-paragraph"><strong>Motivation Behind ML</strong><strong><sup>3</sup></strong></p>



<p class="wp-block-paragraph">In meta-learning, the goal is to efficiently optimize the function <em>f<sub>θ </sub> </em>which can be a regressor or classifier that finds the optimal value of <em>θ</em>. <em>L</em> is the loss function and <em>h</em> is the gradient transform. The majority of the work in deep learning is associated with learning the <em>f </em>function directly from data and some meta-learning work focuses on the parameter updation. In <strong>ML<sup>3</sup></strong> approach, the authors have targeted loss learning. Loss functions are architecture independent and widely used for learning problems so learning a loss function doesn’t require any engineering and optimization and allows the addition of extra information during meta-training.</p>



<p class="wp-block-paragraph">The key idea of the proposed framework is to develop a pipeline for meta-training that not only can optimize the performance of the model but also generalize for different tasks and model architectures. The proposed framework of learning loss functions efficiently optimize the models for new tasks. The main contribution of the ML<sup>3</sup>&nbsp;framework are :</p>



<p class="wp-block-paragraph">i) It is capable of learning adaptive, high-dimensional functions via back propagation and gradient descent.</p>



<p class="wp-block-paragraph">ii) The given framework is very flexible as it is capable of storing additional information at the meta-train time and provides generalization by solving regression, classification, model-based reinforcement learning, model-free reinforcement learning.</p>



<p class="wp-block-paragraph"><strong>The Model Architecture of ML</strong><strong><sup>3</sup></strong></p>



<p class="wp-block-paragraph">The task of learning a loss function is based on a bi-level optimization technique i.e., it contains two optimization loops: inner and outer. The inner loop is responsible for training the model or<em> optimizee </em>with gradient descent by using the loss function learners meta-loss function and the outer loop optimized the meta-loss function by minimizing the task loss i.e., regression or classification or reinforcement learning loss. </p>



<p class="wp-block-paragraph">The process contains a function <em>f </em>parameterized by <em>θ</em> that takes a variable <em>x</em> and outputs <em>y</em>. It also learns meta-loss network <em>M</em> parameterized by <em>Φ </em> that takes the input and output of function <em>f</em> and together with task-specific information <em>g </em>(for example ground truth label for regression or classification, final position in MBIRL or the sample reward from model-free reinforcement learning problems) and outputs the meta- loss function <em>L</em> parameterized by both <em>Φ </em>and <em>θ</em>. </p>



<p class="wp-block-paragraph">So, to update function <em>f</em>, compute the gradient of Meta Loss <em>L</em> with respect to <em>θ </em>and update the gradient using the learned loss function, as shown below :</p>



<p class="wp-block-paragraph">Now, to update <em>M, </em>the loss network, formulate a task-specific loss that compares the output of the currently optimal <em>f </em>with the target information since <em>f </em>is updated with<em> L</em>, the task is also functional <em>Φ </em>and perform gradient update on <em>Φ </em>to optimize M. This architecture finally forms a fully differential loss learning framework used for training.</p>



<p class="wp-block-paragraph">To use the learning loss  at Test time, directly update <em>f </em>by taking the gradient of learned loss <em>L</em> with respect to the parameters of <em>f.</em></p>



<p class="wp-block-paragraph"><strong>Applications of ML</strong><strong><sup>3</sup></strong></p>



<ol class="wp-block-list"><li>Regression problems.</li><li>Classification problems.</li><li>Shaping Loss during training e.g., Covexifying Loss, exploration signal. ML<sup>3</sup>&nbsp;provides a possibility to add additional information during meta-training.</li><li>Model-based Reinforcement Learning.</li><li>Model-free Reinforcement Learning.</li></ol>



<p class="wp-block-paragraph"><strong>Requirements &amp; Installation</strong></p>



<ol class="wp-block-list"><li>Python=3.7</li><li>Clone the Github repository via <em>git</em>.</li><li>Install all the dependencies of ML<sup>3</sup> via :</li></ol>



<p class="wp-block-paragraph"><strong>Paper Experiment Demos</strong></p>



<p class="wp-block-paragraph">This section contains different experiments mentioned in the research paper.</p>



<p class="wp-block-paragraph"><strong>A. Loss Learning for Regression</strong></p>



<ol class="wp-block-list"><li>Run Sin function regression experiment by code below:</li></ol>



<ol class="wp-block-list" start="2"><li>Now, you can visualize the results by the following code:</li></ol>



<p class="wp-block-paragraph">2.1 Import the required libraries, packages and modules and specify the path to the saved data during meta-training. The code snippet is available here.</p>



<p class="wp-block-paragraph">2.2 Load the saved data during the experiment.</p>



<p class="wp-block-paragraph">2.3 Visualize the performance of the meta loss when used to optimize the meta training tasks, as a function of (outer) meta training iterations.</p>



<p class="wp-block-paragraph">2.4 Evaluating learned meta loss networks on test tasks. Plot the performance of the final meta loss network when used to optimize the new test tasks at meta test time. Here the x-axis represents the number of gradient descent steps. The code snippet is available here.</p>



<p class="wp-block-paragraph"><strong>C. Learning with extra information at the meta-train time</strong></p>



<p class="wp-block-paragraph">This demo shows how we can add extra information during meta training in order to shape the loss function. For experiment purposes, we have taken the example of sin function. Now, with the code, the script requires two arguments, first one is train\test, the 2nd one indicates whether to use extra information by setting True\False (with\without extra info).</p>



<ol class="wp-block-list"><li>For training, the code is given below</li><li>To test the loss with extra information run:</li></ol>



<ol class="wp-block-list" start="3"><li>For comparison purposes, we have repeated the above two steps with argument as <em>False</em>. The full code is available here.</li><li>Comparison of results via visualization.</li></ol>



<p class="wp-block-paragraph">Similarly, the research experiment for meta learning the loss with an additional goal in the mountain car experiment run can be done. The code lines is available here.</p>



<p class="wp-block-paragraph"><strong>EndNotes</strong></p>



<p class="wp-block-paragraph">In this write-up we have given an overview Meta Learning via Learned Loss(ML<sup>3</sup>), a gradient-based bi-level optimization algorithm which is capable of learning any parametric loss function as long as the output is differential with respect to its parameters. These learned loss functions can be used to efficiently optimize models for new tasks.</p>



<p class="wp-block-paragraph"><strong>Note :</strong>&nbsp;All the figures/images except the output of the code are taken from official sources of ML<sup>3</sup>.</p>



<ul class="wp-block-list"><li><strong>Colab Notebook ML<sup>3</sup> Demo</strong></li></ul>



<p class="wp-block-paragraph">Official Code, Documentation &amp; Tutorial are available at:</p>



<ul class="wp-block-list"><li>Github </li><li>Website </li><li>Research Paper</li></ul>



<p class="wp-block-paragraph"></p>
<p>The post <a href="https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/">What Is Meta-Learning via Learned Losses (with Python Code)</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/what-is-meta-learning-via-learned-losses-with-python-code/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Have We Learned Machine Learning Yet?</title>
		<link>https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/</link>
					<comments>https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/#respond</comments>
		
		<dc:creator><![CDATA[aiuniverse]]></dc:creator>
		<pubDate>Fri, 14 Jun 2019 10:02:41 +0000</pubDate>
				<category><![CDATA[Artificial Intelligence]]></category>
		<category><![CDATA[Learned]]></category>
		<category><![CDATA[Machine learning]]></category>
		<category><![CDATA[Yet]]></category>
		<guid isPermaLink="false">http://www.aiuniverse.xyz/?p=3826</guid>

					<description><![CDATA[<p>Source:- electronicdesign.com Machine learning (ML) isn’t a replacement for conventional programming, but it’s one more tool that developers have available when creating solutions. Unfortunately, the scope and variations <a class="read-more-link" href="https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/">Read More</a></p>
<p>The post <a href="https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/">Have We Learned Machine Learning Yet?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>Source:- electronicdesign.com</p>
<p>Machine learning (ML) isn’t a replacement for conventional programming, but it’s one more tool that developers have available when creating solutions. Unfortunately, the scope and variations of ML are complex and changing continually as designers refine existing methodologies and develop new ones. This would be less of an issue if the changes weren’t occurring so frequently and if ML had less of an impact. Often, ML is the edge that companies need to stay ahead of the competition.</p>
<p>New models and approaches are being created in the neural-network space where most of the latest ML technology is found, even as hardware designers rush to incorporate ML accelerators in their latest releases. Few processor, GPU, or networking chips lack some sort of ML acceleration these days. These can often provide increased speeds on the order of multiple magnitudes, making many applications possible.</p>
<div class="dfp-ad-hideempty hidden n_hidden" data-dfp-position="native_inline"></div>
<p>The advantage of the plethora of options is that tools like Xnor’s AI2Go and H2O.ai’s H20are allowing developers to choose ML models based on applications and criteria. These can be quickly incorporated into an application. They frequently provide services to train models for a particular application, too.</p>
<div class="article-banner dfp-ad-hideempty"></div>
<p>Machine learning (ML) isn’t a replacement for conventional programming, but it’s one more tool that developers have available when creating solutions. Unfortunately, the scope and variations of ML are complex and changing continually as designers refine existing methodologies and develop new ones. This would be less of an issue if the changes weren’t occurring so frequently and if ML had less of an impact. Often, ML is the edge that companies need to stay ahead of the competition.</p>
<p>New models and approaches are being created in the neural-network space where most of the latest ML technology is found, even as hardware designers rush to incorporate ML accelerators in their latest releases. Few processor, GPU, or networking chips lack some sort of ML acceleration these days. These can often provide increased speeds on the order of multiple magnitudes, making many applications possible.</p>
<div class="dfp-ad-hideempty hidden n_hidden" data-dfp-position="native_inline"></div>
<p>The advantage of the plethora of options is that tools like Xnor’s AI2Go and H2O.ai’s H20are allowing developers to choose ML models based on applications and criteria. These can be quickly incorporated into an application. They frequently provide services to train models for a particular application, too.</p>
<div id="bx-campaign-959259" class="bxc bx-base bx-custom bx-active-step-1    bx-campaign-959259  bx-brand-11007 bx-width-full bx-type-agilityzone  bx-has-close-x-1  bx-fx-0 bx-impress bx-impress-in" aria-hidden="false"></div>
<p>Likewise, combining ML models can often be similar to combining filters in DSP applications. Sometimes it’s as simple as connecting a few blocks together sequentially, but other times the interconnections and interactions can be as complex as the ML models themselves. More applications are utilizing multiple models rather than a single model that addresses just one aspect of the application.</p>
<p>Also, ML is being applied to all aspects of application design, deployment, and maintenance in many cases. ML support is part of most cloud services and management systems these days. ML models are often employed in apps and cloud services given the growth of IoT in embedded applications.</p>
<p>ML tools and models aren’t a panacea for embedded developers. They’re also not a solution for all applications. In fact, many embedded and IoT applications will not benefit incorporating ML support. By the same token, ML can be a time and money sink with little payoff, especially when the technology is misunderstood or not applicable.</p>
<p>It’s a good idea for developers and managers to get more educated about ML and the options available. Therefore, they can determine whether or when it might be applicable to your needs. Remember, neural networks are all about probabilities, so their relevance isn’t always a binary choice.</p>
<p>The post <a href="https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/">Have We Learned Machine Learning Yet?</a> appeared first on <a href="https://www.aiuniverse.xyz">Artificial Intelligence</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.aiuniverse.xyz/have-we-learned-machine-learning-yet/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
