<?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 Vihan Lakshman on Medium]]></title>
        <description><![CDATA[Stories by Vihan Lakshman on Medium]]></description>
        <link>https://medium.com/@vihan_lakshman?source=rss-aced52a5827f------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zwc_UnDUfDYu3iQro-WvwQ.jpeg</url>
            <title>Stories by Vihan Lakshman on Medium</title>
            <link>https://medium.com/@vihan_lakshman?source=rss-aced52a5827f------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 15:02:20 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@vihan_lakshman/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[Announcing BOLT: A Deep Learning Engine for Efficiently Training and Deploying Large Models on…]]></title>
            <link>https://medium.com/thirdai-blog/announcing-bolt-a-deep-learning-engine-for-efficiently-training-and-deploying-large-models-on-bcb55dcd46ce?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bcb55dcd46ce</guid>
            <category><![CDATA[efficient-ml]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[graph-neural-networks]]></category>
            <category><![CDATA[hpc]]></category>
            <category><![CDATA[neural-networks]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Wed, 05 Apr 2023 19:00:39 GMT</pubDate>
            <atom:updated>2023-04-05T19:00:39.351Z</atom:updated>
            <content:encoded><![CDATA[<h3>Announcing BOLT: A Deep Learning Engine for Efficiently Training and Deploying Large Models on Commodity CPUs</h3><h4>New paper dives into the technical details of BOLT, the first deep learning framework for efficiently training and deploying massive models on CPUs</h4><p>Artificial intelligence is in the midst of a revolution with extremely large-scale models demonstrating astounding capabilities that have captured the attention and imagination of the general public. However, the current process of training and deploying these massive neural networks remains unsustainable as well as prohibitively expensive for all but the largest of institutions due to the need for expensive specialized hardware such as GPUs.</p><p>To democratize large-scale deep learning for all in a sustainable manner, we at ThirdAI rejected the widely held assumption that specialized hardware accelerators are essential for training and serving large models. To achieve this vision, we have built a new deep learning framework from scratch, called BOLT, that enables developers to train billion-parameter models, as well as deploy them, on ordinary low-cost CPU machines.</p><p>Today, we are excited to announce the release of a <a href="https://arxiv.org/pdf/2303.17727.pdf">new preprint</a> detailing the technical details of BOLT, including 1) the design philosophy, 2) novel algorithmic features, and 3) experimental results on a variety of machine learning benchmarks. We hope that this paper will bring more awareness of the potential for achieving near state-of-the-art deep learning performance using only CPU machines while enjoying, in some cases, orders-of-magnitude speedups in training and inference time.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/812/1*gzYZYrfXjZDX0sXCgZwWTg.png" /><figcaption>Simplified illustration of BOLT’s sparse neural network training algorithm via locality-sensitive hashing</figcaption></figure><h3>Paper Highlights</h3><p><strong>Novel Features for a Deep Learning Framework: </strong>We introduce several development features that, to our knowledge, are unique amongst production-grade deep learning frameworks. First and foremost is the concept of <em>configurable sparsity</em> which allows developers to set the amount of computation to perform in a given layer (e.g. activating only 5% of the neurons in a forward pass). Our sparsity parameter provides the capability for users to gracefully trade between training time and model quality.</p><p>Secondly, we provide the capability to automatically tune the specialized hyper-parameters associated with our hashing-based learning algorithms. Properly tuning locality-sensitive hash tables has historically required a considerable amount of domain expertise, which would present a burden to data science practitioners. To address this challenge, we have developed a set of novel mathematical techniques to tune these parameters without introducing <em>any additional computational overheads. </em>These techniques are essential to our vision of making large-scale deep learning accessible to all users by eliminating the need to acquire years of domain-specific knowledge.</p><p>Finally, we introduce the notion of dynamic sparse inference for model deployment that further reduces inference latency by activating only a subset of neurons for a given input. As shown in the table below (taken from the paper), we discovered that sparse inference can, perhaps surprisingly, achieve essentially the same accuracy as a dense TensorFlow model with an order of magnitude reduction in latency.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WGQ1LTTt7g8V147S4TjQQA.png" /></figure><p><strong>State-of-the-Art Performance on the Yelp-Chi Graph Learning Benchmark</strong></p><p>Deep learning on graphs has recently emerged as an area of intense interest with numerous applications ranging from fraud detection, to recommendations, and to social network analysis. In this paper, we focus on evaluating BOLT on the <a href="https://github.com/CUAI/Non-Homophily-Benchmarks">Non-Homophilous Graph Benchmarks</a> which consist of node classification tasks on large-scale graphs where neighboring vertices are not necessarily of the same type. This setting is generally harder than the homophilous case, especially since many popular graph learning methods seek to use homophily as an inductive bias. We evaluate on three datasets from this benchmark and, as shown in the table below, achieve state-of-the-art performance on the Y<a href="http://odds.cs.stonybrook.edu/yelpchi-dataset/">elp-Chi dataset</a> for fraud detection, beating a very strong baseline in <a href="https://arxiv.org/pdf/2110.14446.pdf">LinkX</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CoiiBh_CVFHg4CVPmHe2-w.png" /></figure><p><strong>Distributed Data-Parallel Training Optimized for CPUs</strong></p><p>With many modern machine learning datasets on the terabyte-scale and beyond, we knew that BOLT needed to support distributed training. Distributed deep learning approaches very roughly fall into two categories. One paradigm is <em>data-parallel training</em> where each machine loads a copy of the model, trains on separate shards of data, and communicates gradients between nodes to update parameters. The second approach is <em>model-parallel training </em>where the layers of the model are partitioned amongst multiple machines. Since CPU machines have much larger memory budgets than GPUs, we realized that we could fit even billion-parameter models entirely in CPU memory. Thus, we can avoid model-parallel training, which often comes with greater engineering complexity, and focus on data-parallel. We implemented our distributed BOLT library on top of <a href="https://ray.io/">Ray</a>, an open source framework for parallel computing.</p><p>Because our BOLT models are heavily optimized for speed, we found that we were heavily bottlenecked during training by the cost of communicating gradients between machines and we thus had to design new approaches for data parallel training, including a novel gradient compression scheme, to achieve better scalability as we increased the number of nodes.</p><p><strong>Even More!</strong></p><p>We include additional experiments and scientific contributions in the paper, including <a href="https://medium.com/thirdai-blog/how-to-use-thirdai-to-cold-start-models-for-search-and-recommendations-abc2346f715f">self-supervised pretraining</a>, personalized recommendations, and extreme classification. Please check out the <a href="https://arxiv.org/pdf/2303.17727.pdf">paper</a> for more details.</p><h3>Try Out BOLT</h3><p>To try out BOLT for yourself, please see our suite of <a href="https://github.com/ThirdAILabs/Demos">demo notebooks</a> available on both Google Colab and Jupyter. These notebooks include examples of many of the experiments described in this post such as graph learning, distributed training, and recommendations. To learn more about ThirdAI for your business needs, please visit our <a href="https://www.thirdai.com/">website</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bcb55dcd46ce" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/announcing-bolt-a-deep-learning-engine-for-efficiently-training-and-deploying-large-models-on-bcb55dcd46ce">Announcing BOLT: A Deep Learning Engine for Efficiently Training and Deploying Large Models on…</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to use ThirdAI to Cold-Start Models for Search and Recommendations]]></title>
            <link>https://medium.com/thirdai-blog/how-to-use-thirdai-to-cold-start-models-for-search-and-recommendations-abc2346f715f?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/abc2346f715f</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[cold-start]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[thirdai]]></category>
            <category><![CDATA[search-engines]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Tue, 28 Feb 2023 22:02:38 GMT</pubDate>
            <atom:updated>2023-03-09T21:16:36.951Z</atom:updated>
            <content:encoded><![CDATA[<h4>A self-supervised learning framework for building a recommender system even in the absence of behavioral data</h4><p><em>**This post was written in collaboration with Ben Coleman, former research scientist at ThirdAI**</em></p><p>For many businesses, search and recommendation systems are a core part of the customer experience. A good recommendation model can match users with a personalized product suggestion that will best meet their needs, increasing sales and conversion metrics. Recommendation models also arise in other important areas, such as support ticketing.</p><h3>Challenges for practical deployment</h3><p>State-of-the-art recommender systems are notorious for needing millions of training examples to produce good results. The model must also be updatable with new information, since customer preferences are often time-varying.</p><p>To address these problems, ThirdAI has developed a cold-start solution that provides a quick and easy way to get your recommendation system running, even if you do not have months or years of prior data. Our cold-start models have good performance out-of-the-box and can be dynamically updated with new information as users interact with the system.</p><h3>What is cold-start recommendation?</h3><p>If we have lots of historical data, we can use previous user behavior to inform the search results. For example, if many customers purchase a specific pair of tennis shoes after searching for “gym training shoes” then we can train a model to associate this type of query with that specific product. This supervised learning process yields good recommendations for well-established products that have been seen by many users, and there are lots of machine learning models that can leverage query-product information.</p><p>However, there are many cases where we do not have much behavioral data. For example, new products won’t have been seen by many customers, so we won’t know when to recommend them. We might also have seasonal products, work in a product niche with exceptionally low sales volume, or want to start a new e-commerce store. All of these settings require <strong><em>cold-start recommendation</em></strong>, where we need to start our model without a rich dataset of query-product information.</p><h3>Good models without (much) data</h3><p>How is it possible to make recommendations without behavioral data from users? The answer lies in the metadata. By carefully using metadata about the items in our collection, we can generate reasonable recommendations without needing to observe users as they interact with the system.</p><p>In product search, the metadata often takes the form of a detailed description or review of each product. Using our tennis shoe example from earlier, suppose we have the following description of the shoes: “Grey color men’s tennis shoes. Lightweight with excellent traction, great for workouts, endurance training and gym use.” Based on this description, we might be able to guess that these shoes would be interesting to a user searching for “gym training shoes,” even if we haven’t directly observed this query-product pair.</p><p>Below, we show the precision and recall of two cold-start models on <a href="https://data.stackexchange.com/">question-answer data from stack exchange</a>, where the goal is to recommend similar questions/answers given a user query. Even without behavioral data from users, we have excellent recall of relevant items. Note that random model performance is approximately 0% for all the datasets below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*RWCXXqteEQpkZA8sHOsotA.png" /></figure><h3>Bootstrapping a cold-start model</h3><p>As users interact with the system, we gain access to new data that can be used to refine the system. This allows us to bootstrap the system; by observing how users interact with the current model, we gather data that can be used to train a better model. Bootstrapping is a strong advantage of our cold-start modeling approach because we can update the model with new data at any time.</p><p>This stands in contrast to unsupervised indexing methods, such as elastic-search. These methods can achieve recommendation via keyword search or semantic search via pre-trained word embeddings. However, they cannot consume new data or dynamically change their recommendations based on recent observations of user behavior.</p><p>With our cold-start solution, you can realize the benefits of new data as it is generated, resulting in a model that is progressively refined based on user activity. Below, we show the results of refining a cold-start model using anonymized customer data and using the open <a href="http://manikvarma.org/downloads/XC/XMLRepository.html">Amazon-131K dataset</a>. Our cold-start process starts with reasonable performance and quickly hits the performance target (80% precision). To achieve the same performance when training a model from scratch, we need 10x more supervised examples. This translates to a 10x longer ramp-up period, during which we will see far worse model performance and likely lower revenue.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QTaZrEsB1mtPC1ivm4byqg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MknvzRIBzANOX8FKB-y_Jg.png" /></figure><h3>Application areas</h3><p>We introduced the cold-start problem in the context of product recommendation, but our solution is much more general. Broadly speaking, our approach applies to any recommendation task where we wish to identify a small number of relevant items from a collection based on a user-issued textual query, and we have metadata about each item in the form of text. Here are just a few possibilities:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNI0eGpLevvsXbF0-OshOg.png" /></figure><p>ThirdAI provides a solution for cold-start recommendation that works well for large and complex recommendation problems. By using ThirdAI’s UDT engine, we are able to efficiently cold-start and deploy recommender models on any standard CPU. Our system has good performance out-of-the-box, can be dynamically updated with new data, and easily scales to collections with millions of items.</p><h3>Try for yourself</h3><p>ThirdAI’s solution for cold-start recommendation uses our <a href="https://medium.com/thirdai-blog/introducing-thirdais-universal-deep-transformers-toolkit-4bc7f240aba2">Universal Deep Transformer</a> (UDT) modeling toolkit. Using UDT we can set up a robust and performant recommendation model with just a few lines of code:</p><pre>from thirdai import bolt<br><br>model = bolt.UniversalDeepTransformer(<br>    data_types={<br>        &quot;PRODUCT_ID&quot;: bolt.types.categorical(),<br>        &quot;QUERY&quot;: bolt.types.text(contextual_encoding=&quot;local&quot;),<br>    },<br>    target=&quot;PRODUCT_ID&quot;,<br>    n_target_classes=1000,<br>    integer_target=True,<br>)<br><br>model.cold_start(<br>    filename=product_catalog_file,<br>    strong_column_names=[&quot;TITLE&quot;],<br>    weak_column_names=[&quot;DESCRIPTION&quot;, &quot;BULLET_POINTS&quot;, &quot;BRAND&quot;],<br>    learning_rate=0.001,<br>    epochs=1,<br>)<br><br>product_probabilities = model.predict({&quot;QUERY&quot;: &quot;birthday party return gift&quot;})</pre><p>As you can see, the model is ready to answer queries even after only seeing the product catalog. Additionally, as more supervised data is generated, UDT can execute a simple train call on this data to further improve the performance of the model on real examples.</p><h4>Try Out ThirdAI’s Cold Start Capabilities</h4><p>For more information on trying out ThirdAI’s UDT, please visit our <a href="https://github.com/ThirdAILabs/Demos">demos</a> page on GitHub, especially our <a href="https://github.com/ThirdAILabs/Demos/blob/main/EmbeddingsAndColdStart.ipynb">cold start demo notebook</a>, and the <a href="https://www.thirdai.com/bolt-installation/">installation instructions</a> on our website.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=abc2346f715f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/how-to-use-thirdai-to-cold-start-models-for-search-and-recommendations-abc2346f715f">How to use ThirdAI to Cold-Start Models for Search and Recommendations</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Sparsity and Sustainability: Estimating the Carbon Footprint of ThirdAI’s UDT Framework]]></title>
            <link>https://medium.com/thirdai-blog/sparsity-and-sustainability-estimating-the-carbon-footprint-of-thirdais-udt-framework-5176139f01fe?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/5176139f01fe</guid>
            <category><![CDATA[sustainability]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[energy-efficiency]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Tue, 17 Jan 2023 12:11:54 GMT</pubDate>
            <atom:updated>2023-02-10T23:48:16.004Z</atom:updated>
            <content:encoded><![CDATA[<h4>ThirdAI’s Universal Deep Transformers AutoML Interface, powered by our proprietary BOLT deep learning framework, provides substantial reductions in energy consumption compared to popular pre-trained NLP models without reducing model quality</h4><p><em>**This post was written by Benjamin Meisburger, former intern at ThirdAI**</em></p><p>As sustainability becomes an increasingly critical requirement for organizations across all business sectors, reducing the cost and energy consumption of training and deploying large-scale AI models has emerged as an essential task. In the case of GPT-3, for instance, the electricity and compute cost of training alone was reported to be <a href="https://venturebeat.com/ai/ai-machine-learning-openai-gpt-3-size-isnt-everything/">$12 million</a>. This concern has only intensified in recent months as model sizes continue to balloon.</p><p>In this post, we study how ThirdAI’s BOLT engine, the framework behind our <a href="https://medium.com/thirdai-blog/introducing-thirdais-universal-deep-transformers-toolkit-4bc7f240aba2">Universal Deep Transformers AutoML library</a>, translates into carbon savings. In short, we find that BOLT’s ability to train sparse neural networks on everyday CPU hardware yields significant energy savings, producing only 2.5% of the carbon emissions associated with fine-tuning a RoBERTa model on a sentiment analysis task.</p><h3>Inspiration</h3><p>After reading <a href="https://www.etsy.com/codeascraft/cloud-jewels-estimating-kwh-in-the-cloud">Etsy’s Cloud Jewels</a> blog post, I was curious to see if we could replicate their methodology to ballpark the carbon footprint required to train a model with BOLT at different levels of sparsity. My goals were twofold: (1) to determine if our BOLT engine provides a meaningful reduction in carbon footprint when compared to a state-of-the-art equivalent, and second, to determine what extent sparsity impacts BOLT’s net carbon footprint.</p><h3>Methodology</h3><p>For my tests, I chose a straightforward and practical task: sentiment classification on Yelp reviews. For this benchmark, there is a well-defined state-of-the-art model, <a href="https://huggingface.co/docs/transformers/model_doc/roberta">RoBERTa</a>, fine-tuned for sentiment.</p><p>To standardize our testing as much as possible, all experiments were run on AWS instances in the us-west-1 availability zone, providing a replicable and consistent framework. First, we fine-tuned an off-the-shelf pre-trained RoBERTa model on a p4d.24xlarge instance, which reached ~93% test accuracy in 40 minutes on a single A100 GPU (a p4d.24xlarge instance includes eight A100s). We used 93% accuracy as our threshold for all subsequent models. Next, we trained BOLT on an r6g.xlarge CPU instance from scratch with 20% sparsity (meaning the neural network used only 20% of the full dense matrix computations) that reached 93% accuracy in 42 minutes. We repeated this experiment with 10% sparsity, resulting in a training time of just over 20 minutes. Finally, we trained BOLT with 5% sparsity; however, this particular model only reached 90% accuracy, yielding a more pronounced tradeoff between model quality and energy consumption.</p><p>To estimate the carbon footprint of a given AWS instance, we used the formula below. We obtained estimates for power consumption and manufacturing carbon footprint estimates from this <a href="https://docs.google.com/spreadsheets/d/1DqYgQnEDLQVQm5acMAhLgHLD8xXCG9BIrk-_Nv6jF3k/edit#gid=504755275">dataset</a>, which aggregates information via the methodology described in this <a href="https://medium.com/teads-engineering/building-an-aws-ec2-carbon-emissions-dataset-3f0fd76c98ac">blog post</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*58y3nbw1i85Xvbui" /></figure><p>For example, when estimating the emissions from fine-tuning RoBERTa on a single A100 within a p4d.24xlarge instance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wy1yv28orXJCXpMs" /></figure><p>This process was repeated for each level of sparsity, compiled in the figure below. All BOLT networks were trained from scratch on a single r6g.xlarge instance while RoBERTa was fine-tuned on a single A100 GPU.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Pt01qFY1-MRvfp91" /></figure><h3>Analysis</h3><p>As shown above, the BOLT engine provides a significant improvement over a state-of-the-art NLP model in regards to carbon footprint; on average producing just 2.5% the carbon emissions of RoBERTa fine-tuned on a GPU. We also note that this comparison <strong>does not take into account the pre-training cost</strong> of RoBERTa, which is also substantial. For BOLT, it should be noted that increasing sparsity yields a significant — but not quite linear — carbon savings, although the emissions savings begin to plateau as the total carbon footprint approaches the (unavoidable) cost of manufacturing a CPU. It should be noted that these figures are estimates only, but we are confident they are conservative enough to capture procedural error and thus should be representative of the true footprint.</p><h3>Use UDT and BOLT to Drive Sustainability and Lower Costs in Your Organization</h3><p>Climate change and environmental sustainability are perhaps the defining challenge of our time. If you are concerned by the rising carbon footprint and exorbitant financial costs of training and deploying state-of-the-art AI models, we have an answer. By rejecting the conventional wisdom that large-scale neural networks require specialized, power-hungry hardware and dense computations, we have built a hands-off-the-wheel AutoML product, called UDT, to perform deep learning on ordinary CPU hardware with comparable quality to the existing state-of-the-art techniques. As we have seen in work with <a href="https://medium.com/thirdai-blog/launch-announcement-wayfair-deploys-thirdais-udt-to-improve-search-relevance-and-reduce-costs-bf51e9acbda0">our customers</a>, UDT can substantially reduce training costs, accelerate real-time prediction latencies, and even improve model accuracy.</p><p>To try out UDT for your business needs, please reach out to us by requesting a <a href="https://www.thirdai.com/try-bolt/">trial license</a> for our software. We also invite you to explore our Google Colab <a href="https://github.com/ThirdAILabs/Demos#step-1-running-a-udt-demo">demo notebooks</a> that showcase UDT in action.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5176139f01fe" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/sparsity-and-sustainability-estimating-the-carbon-footprint-of-thirdais-udt-framework-5176139f01fe">Sparsity and Sustainability: Estimating the Carbon Footprint of ThirdAI’s UDT Framework</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Launch Announcement: Wayfair Deploys ThirdAI’s UDT to Improve Search Relevance and Reduce Costs]]></title>
            <link>https://medium.com/thirdai-blog/launch-announcement-wayfair-deploys-thirdais-udt-to-improve-search-relevance-and-reduce-costs-bf51e9acbda0?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf51e9acbda0</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ecommerce]]></category>
            <category><![CDATA[product-search]]></category>
            <category><![CDATA[efficient-ml]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Wed, 11 Jan 2023 16:31:20 GMT</pubDate>
            <atom:updated>2023-01-11T16:31:20.560Z</atom:updated>
            <content:encoded><![CDATA[<h4>ThirdAI’s Universal Deep Transformers (UDT) AutoML library allows Wayfair to train query classification models on low-cost CPU hardware and serve real-time predictions with sub-millisecond latency</h4><p>ThirdAI is excited to announce the launch of our collaboration with Wayfair, a leading online retailer for furniture and home goods, to better serve highly relevant search results in response to customer queries.</p><figure><img alt="The logo for Wayfair" src="https://cdn-images-1.medium.com/max/1024/0*g33naXVfA8FRXZ-J.png" /></figure><p>By leveraging ThirdAI’s Universal Deep Transformers (UDT) toolkit, Wayfair successfully trained a query classification model for search relevance on low-cost CPU hardware and successfully deployed the serialized UDT model in production with sub-millisecond latency. We are especially excited about this collaboration because we were able to achieve a triple win for Wayfair: (1) improving the relevance of search results for shoppers, (2) reducing inference latency, and (3) reducing training infrastructure costs by eliminating the need for costly GPU machines.</p><p>For more details on the business importance of product search and the journey of ThirdAI’s engagement with Wayfair, please see the excellent writeup published on the <a href="https://www.aboutwayfair.com/careers/tech-blog/how-wayfairs-scientists-collaborated-with-innovative-startup-thirdai-to-serve-hyper-relevant-search-results-to-customers">Wayfair Tech Blog</a>.</p><h4>Use ThirdAI to Transform Your Business</h4><p>We are still in the early days of our journey to radically democratize AI by enabling businesses and developers to train and deploy state-of-the-art models on ordinary CPU hardware with no feature engineering or parameter tuning. As we have seen in our work with Wayfair, ThirdAI’s software can improve upon existing techniques at a fraction of the cost while seamlessly handling the demand of high-traffic online serving systems. To try out UDT for your business needs, please reach out to us by requesting a <a href="https://www.thirdai.com/try-bolt/">trial license</a> for our software and explore our Google Colab <a href="https://github.com/ThirdAILabs/Demos#step-1-running-a-udt-demo">demo notebooks</a> that showcase UDT in action.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf51e9acbda0" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/launch-announcement-wayfair-deploys-thirdais-udt-to-improve-search-relevance-and-reduce-costs-bf51e9acbda0">Launch Announcement: Wayfair Deploys ThirdAI’s UDT to Improve Search Relevance and Reduce Costs</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing ThirdAI’s Universal Deep Transformers Toolkit]]></title>
            <link>https://medium.com/thirdai-blog/introducing-thirdais-universal-deep-transformers-toolkit-4bc7f240aba2?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/4bc7f240aba2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[efficient-ml]]></category>
            <category><![CDATA[thirdai]]></category>
            <category><![CDATA[automl]]></category>
            <category><![CDATA[deep-learning]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Tue, 20 Dec 2022 06:51:21 GMT</pubDate>
            <atom:updated>2023-09-15T23:50:14.960Z</atom:updated>
            <content:encoded><![CDATA[<h4>A General-Purpose, CPU-Based AutoML Interface for a Wide Range of Machine Learning Problems</h4><p>As we introduced in our <a href="https://medium.com/@vihan_lakshman/introducing-the-thirdai-tech-blog-e6de034ddf53">previous post</a>, ThirdAI is a startup dedicated to democratizing artificial intelligence by enabling all developers to train and deploy large-scale neural networks on commodity CPU hardware. Through algorithmic and software innovations, we aim to reduce the cost of developing state-of-the-art machine learning solutions by orders of magnitude.</p><p>In this post, we are excited to introduce ThirdAI’s latest product offering: Universal Deep Transformers (UDT), an AutoML interface for tackling a wide variety of machine learning tasks with only a few lines of Python code and no manual hyper-parameter tuning. With UDT, any developer or business organization can get up-and-running with cutting edge deep learning capabilities on a standard CPU workstation without the need for machine learning expertise.</p><p>In the remainder of this post, we will summarize the benefits of UDT and walk through several use cases, which are also available for you to try out as Google Colab <a href="https://github.com/ThirdAILabs/Demos#-quickstart">notebooks</a>.</p><h3>UDT Capabilities</h3><ol><li><strong>Universal Interface: </strong>UDT can tackle a broad range of machine learning tasks and data modalities, from natural language processing, to search, to recommendations, to tabular data analytics, to time series, to text reformulation, and more all through the same API. This universal API simplifies the workflow especially as customers look to apply UDT to multiple business problems.</li><li><strong>Automated Parameter Tuning: </strong>ThirdAI’s proprietary algorithms for neural network training and inference are based on years of research in applying hashing and probabilistic data structures towards machine learning. These tools, while effective, involve a lot of custom hyper-parameters that require considerable domain expertise to tune correctly for a given dataset and workload. However, we have eliminated this bottleneck by developing new mathematical techniques for automatically selecting the optimal hyper-parameters associated with our algorithms. As a customer, you only need to invoke the UDT interface on your dataset and then sit back and relax knowing ThirdAI’s technology will select the optimal hyper-parameters and perform feature engineering automatically <em>without any additional computational overhead</em>.</li><li><strong>Billion-Scale Training:</strong> Thanks to the ThirdAI’s software engineering innovations as well as the larger memory on CPUs compared to GPUs, UDT can seamlessly scale to datasets with billions of entries and extreme classification tasks with hundreds of million of output labels.</li><li><strong>Sub-Millisecond Inference Latency: </strong>By utilizing ThirdAI’s proprietary sparse inference algorithms, UDT can achieve inference latencies under 1 millisecond on standard CPUs <em>regardless of the overall model size</em>.</li><li><strong>Immediately Production-Ready: </strong>We designed UDT with production deployment at the forefront. After training a UDT model, customers can immediately save the network in a serialized format that can be loaded in a variety of runtime environments with no additional engineering effort.</li></ol><h3>UDT Case Studies</h3><p>In this section, we highlight several practical use cases for UDT. All of these examples are also available as Google Colab <a href="https://github.com/ThirdAILabs/Demos#-quickstart">notebooks</a>. We encourage you to run these notebooks and see UDT in action for yourself!</p><p><strong>Census Income Prediction</strong></p><p>Our first example involves a classification task on tabular data. In particular, the objective of the Kaggle Census Income challenge is to predict if a given individual’s income exceeds $50,000 annually or not. Once we have the tabular dataset downloaded, we can define our UDT model as follows:</p><pre>from thirdai import bolt<br>from thirdai.demos import download_census_income<br><br>train_filename, test_filename, inference_batch = download_census_income()<br><br>model = bolt.UniversalDeepTransformer(<br>    data_types={<br>        &quot;age&quot;: bolt.types.numerical(range=(17, 90)),<br>        &quot;workclass&quot;: bolt.types.categorical(),<br>        &quot;fnlwgt&quot;: bolt.types.numerical(range=(12285, 1484705)),<br>        &quot;education&quot;: bolt.types.categorical(),<br>        &quot;education-num&quot;: bolt.types.categorical(),<br>        &quot;marital-status&quot;: bolt.types.categorical(),<br>        &quot;occupation&quot;: bolt.types.categorical(),<br>        &quot;relationship&quot;: bolt.types.categorical(),<br>        &quot;race&quot;: bolt.types.categorical(),<br>        &quot;sex&quot;: bolt.types.categorical(),<br>        &quot;capital-gain&quot;: bolt.types.numerical(range=(0, 99999)),<br>        &quot;capital-loss&quot;: bolt.types.numerical(range=(0, 4356)),<br>        &quot;hours-per-week&quot;: bolt.types.numerical(range=(1, 99)),<br>        &quot;native-country&quot;: bolt.types.categorical(),<br>        &quot;label&quot;: bolt.types.categorical(),<br>    },<br>    target=&quot;label&quot;,<br>    n_target_classes=2,<br>)</pre><p>And then we can train, evaluate, save, and load the model in just four lines of code. Note that aside from the learning rate and number of epochs, all other training parameters are automatically selected.</p><pre># Training the model<br>model.train(train_filename, epochs=5, learning_rate=0.01, metrics=[&quot;categorical_accuracy&quot;])<br><br># Evaluating the model<br>model.evaluate(test_filename, metrics=[&quot;categorical_accuracy&quot;]);<br><br># Saving<br>model.save(&quot;income_prediction.model&quot;)<br><br># Loading<br>model = bolt.UniversalDeepTransformer.load(&quot;income_prediction.model&quot;)</pre><p><strong>Intent Classification</strong></p><p>For our second example, we will turn our attention to the natural language processing task of intent classification, which involves predicting an intent from a fixed set of possible labels for a given text input. For this demonstration, we use the Clinc150 benchmark dataset. As shown below, the interface is the same as the previous tabular example despite the significant differences in the data format.</p><pre>from thirdai import bolt<br>from thirdai.demos import download_clinc_dataset<br><br>train_filename, test_filename, inference_batch = download_clinc_dataset()<br><br>model = bolt.UniversalDeepTransformer(<br>    data_types={<br>        &quot;text&quot;: bolt.types.text(),<br>        &quot;category&quot;: bolt.types.categorical(),<br>    },<br>    target=&quot;category&quot;,<br>    n_target_classes=150,<br>)<br><br>model.train(train_filename, epochs=5, learning_rate=0.01, metrics=[&quot;categorical_accuracy&quot;])<br><br>model.evaluate(test_filename, metrics=[&quot;categorical_accuracy&quot;]);<br><br>save_location = &quot;intent_classification.model&quot;<br><br># Saving<br>model.save(save_location)<br><br># Loading<br>model = bolt.UniversalDeepTransformer.load(save_location)</pre><p><strong>Query Reformulation</strong></p><p>For our final example, we will look at the problem of query reformulation, which is a critical task for many search engines. In short, query reformulation involves rewriting a never-before-seen user query — such as one with typos or non-standard descriptions — into a canonical version for which the search engine has already cached high quality results. Although this task appears very different from the previous supervised learning problems we have considered in this post, the UDT interface remains almost identical</p><pre>from thirdai import bolt<br>from thirdai.demos import prepare_query_reformulation_data<br><br>import pandas<br><br>train_filename, test_filename, inference_batch = prepare_query_reformulation_data()<br><br><br>model = bolt.UniversalDeepTransformer(<br>    source_column=&quot;source_queries&quot;, target_column=&quot;target_queries&quot;, dataset_size=&quot;medium&quot;<br>)<br><br>model.train(filename=train_filename)<br><br>query_reformulations = model.evaluate(filename=test_filename, top_k=5)<br><br>model_location = &quot;query_reformulation.model&quot;<br><br># Saving<br>model.save(filename=model_location)<br><br># Loading<br>model = bolt.UniversalDeepTransformer.load(model_location)</pre><p>In future posts, we will dive deeper into more of the details behind these various applications. For now, the key takeaway is that we can solve a diverse array of technical challenges with the same UDT interface.</p><h3>Conclusion</h3><p>In this post, we introduced ThirdAI’s latest product offering: Universal Deep Transformers (UDT). With UDT, customers have access to a state-of-the-art AutoML interface for machine learning that operates efficiently on CPUs without the need for tedious manual parameter tuning or domain expertise in deep learning. We encourage you to try out UDT for yourself through our <a href="https://github.com/ThirdAILabs/Demos#step-1-running-a-udt-demo">demo notebooks </a>and visit our <a href="https://www.thirdai.com/">website</a>. To use UDT for your business needs, please reach out to us by requesting a <a href="https://www.thirdai.com/try-bolt/">trial license</a> for our software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4bc7f240aba2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/introducing-thirdais-universal-deep-transformers-toolkit-4bc7f240aba2">Introducing ThirdAI’s Universal Deep Transformers Toolkit</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introducing the ThirdAI Tech Blog]]></title>
            <link>https://medium.com/thirdai-blog/introducing-the-thirdai-tech-blog-e6de034ddf53?source=rss-aced52a5827f------2</link>
            <guid isPermaLink="false">https://medium.com/p/e6de034ddf53</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[automl]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Vihan Lakshman]]></dc:creator>
            <pubDate>Mon, 19 Dec 2022 17:27:33 GMT</pubDate>
            <atom:updated>2022-12-19T17:27:33.743Z</atom:updated>
            <content:encoded><![CDATA[<h4>Showcasing the science and engineering behind unlocking the power of deep learning on everyday CPU devices</h4><p>Hello World! This is the first post from ThirdAI’s new science and engineering blog, where we will showcase the exciting product innovations and developments from our talented team.</p><p>Founded in 2021, ThirdAI is an early-stage startup dedicated to the mission of democratizing artificial intelligence technologies through algorithmic and software innovations that make these techniques dramatically more sustainable and scalable. Our goal, quite simply, is to radically reduce the cost of state-of-the-art artificial intelligence while eliminating barriers to accessing this technology. We are driven by the conviction that one should not need to incur a massive carbon footprint or exorbitant GPU bill to take advantage of AI and begin integrating these capabilities into practical applications.</p><p>To achieve these goals, we have pioneered new approaches to training neural networks that enable machine learning researchers and practitioners to build billion-parameter models on cost-effective CPU hardware as opposed to expensive, specialized chips such as GPUs. Furthermore, we have developed a suite of novel, automated hyper-parameter tuning capabilities to provide a truly hands-off-the-wheel library, called <a href="https://thirdailabs.github.io/">Universal Deep Transformers</a> (UDT). This AutoML interface allows anyone with a standard laptop to get started with training state-of-the-art deep learning models without the need for tedious manual tuning or sophisticated machine learning expertise.</p><p>And, as the cherry on top, our novel sparse inference techniques allow users to deploy our models with <strong>sub-millisecond latencies</strong> on CPUs — without the need for expensive model compression techniques such as knowledge distillation or pruning that are now commonplace in large-scale deep learning pipelines. With ThirdAI, one can train a model and immediately deploy it in production.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LwOCBj6n9bE__WUy7CgOlg.png" /><figcaption>ThirdAI delivers revolutionary efficiency improvements in neural network training through proprietary sparse algorithms that activate only a small subset of neurons for a given input.</figcaption></figure><p>These advances are the culmination of years of academic research in applying hashing, sketching, and randomized algorithmic techniques to the domain of machine learning. In fact, much of this work was driven by current employees at ThirdAI, where we have assembled a collection of experts uniquely positioned to take on this once-in-a-lifetime challenge of democratizing AI.</p><p>For more updates on our product releases, research developments, and engineering advances, look for regular updates in this space. In the meantime, we invite you to try out our software through <a href="https://github.com/ThirdAILabs/Demos">demo notebooks</a> hosted on Google Colab and visit our <a href="https://www.thirdai.com/">website</a>. To use ThirdAI , please reach out to us by requesting a <a href="https://www.thirdai.com/try-bolt/">trial license</a> for our software.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e6de034ddf53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/thirdai-blog/introducing-the-thirdai-tech-blog-e6de034ddf53">Introducing the ThirdAI Tech Blog</a> was originally published in <a href="https://medium.com/thirdai-blog">ThirdAI Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>