<?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 Eric Landau on Medium]]></title>
        <description><![CDATA[Stories by Eric Landau on Medium]]></description>
        <link>https://medium.com/@eric-landau?source=rss-b4a7310c05a8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*9HFCn84KhoRD3M4QoD0ezQ.png</url>
            <title>Stories by Eric Landau on Medium</title>
            <link>https://medium.com/@eric-landau?source=rss-b4a7310c05a8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 09:46:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@eric-landau/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[Distributed Alignment and the Rise of the Age of Intelligence]]></title>
            <link>https://eric-landau.medium.com/distributed-alignment-and-the-rise-of-the-age-of-intelligence-760c339e8022?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/760c339e8022</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Fri, 06 Jun 2025 09:17:03 GMT</pubDate>
            <atom:updated>2026-02-16T16:37:21.123Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*GcXHkWT1SgNKqOFv" /></figure><p><strong><em>TLDR</em></strong><em>; With recent questions around the alignment of recent models like GPT-4.1, we introduce the concept of </em><strong><em>distributed alignment</em></strong><em>, where organizations beyond frontier labs assume responsibility for alignment of AI systems through robust monitoring and control systems.</em></p><p>In the summer of 1859, Edwin Drake had a dream. He saw an opportunity that he thought others had missed: using techniques from salt well drilling to extract a different substance from the earth, oil. He had invested thousands of dollars into a machine to drill and was now testing it out near Titusville, Pennsylvania. It was not going well.</p><p>For months, he had driven iron pipes through layers of stubborn gravel, fighting collapsed walls and bedrock, progressing at an excruciating three feet per day. Local farm hands had taken to calling his operation “Drake’s Folly” and his financial backers had already abandoned him, leaving him to resort to taking out loans to stay afloat. Drake was on the brink of failure.</p><p>But on arrival to work the morning of August 28, one of Drake’s drillers peered down and witnessed something miraculous: crude oil, rising up the shaft. As Drake rushed to the site, they began pumping the mysterious black liquid into an old bathtub, a humble vessel for what would become the lifeblood of the industrial age.</p><p>Besides being emblematic of many future startups’ struggles against impossible odds in the face of ridicule and doubt, this moment would unleash forces that, for better or worse, would reshape power dynamics in society and ultimately fuel the next century of technological progress. Before Drake’s innovation, petroleum was a niche product, and whale oil lit the lamps of America. Within decades, petroleum would power the second industrial revolution, enabling unprecedented mobility, manufacturing, and economic growth. A person born at the time of Drake’s discovery would have started their life in a world of horse-drawn carriages and candlelit rooms and ended it in an era of space travel and nuclear power.</p><p>Today we stand at a similar inflection point. The culmination of decades of innovation in model architectures, compute infrastructures, frontier data processes, and human feedback combined with the accessible, easy-to-use form factor of a humble chatbot has opened the door to a renaissance in <strong>Artificial Intelligence</strong>. Just as Drake’s drill struck oil, we have struck a new kind of<strong> <em>intelligence well</em></strong>.</p><p>2022 was the clear demarcating line for this wellspring with the release, and subsequent rapid adoption, of ChatGPT. In the time since, thousands of new startups have popped up to capture the rivulets of this intelligence well. It is difficult to throw a rock in San Francisco today without hitting an AI founder.</p><p>The previous technological paradigm, the <em>Big Data Era,</em> saw the rise of a common cliche: data is the new oil. We are witnessing a new regime change, a renaissance in real-time, which is propelling the creation of a much more potent commodity, intelligence. <strong>We are entering the Intelligence Age where intelligence is the new oil.</strong></p><h3>The Bottleneck</h3><p>Yet, despite all this progress, the economy remains ill-equipped for the mass adjustment to AI technology. According to Gartner, 85% of AI projects ultimately fail to deliver on their promises, with McKinsey reporting that only 10% of organizations achieve significant financial benefits from AI investments. In a world of abundant intelligence why are there these gaps?</p><p>When John D. Rockefeller founded Standard Oil in 1870 (over a decade after Drake’s discovery), the automobile was still decades away from mass production. Most of oil’s eventual applications were undiscovered, existing only as unrealized potential. Yet Rockefeller still understood something fundamental: the future belonged to those who could not just extract oil but <strong>refine</strong> and <strong>distribute</strong> it effectively. Standard Oil’s dominance came not just from controlling oil wells, but from mastering both the pipeline of distribution to end users and the complex process of turning crude oil into useful products.</p><p>We are missing similar ingredients now. While hundreds of LLM wrapper startups have emerged as preliminary distribution vessels for this raw intelligence, we are still only beginning to develop a more robust infrastructure that also incorporates effective guardrails. We have the raw intelligence, but we are still only developing the infrastructure and distribution for <strong>refining</strong> this intelligence into economic and social utility with minimal harm.</p><p>The missing key is a concept that is not new in AI parlance but is often misunderstood and underestimated. <strong>To make this new form of intelligence truly useful and effective, we must solve the fundamental alignment problem.</strong></p><h3>Infinite, Infinitely Intelligent Interns</h3><p>In its simplest terms, <em>alignment</em> ensures AI systems reliably pursue and achieve intended objectives while respecting human values and safety constraints. While often portrayed as an abstract concept relevant only to future scenarios of potential conflict between humanity and Artificial General Intelligence(AGI), alignment is fundamentally about something more immediate and practical. It is about ensuring AI systems, at any level of capability, are trustworthy, reliable, and genuinely useful for their intended purposes. Just as a well can produce unrefined crude oil that’s too contaminated for practical use, an unaligned AI system, regardless of its raw intelligence, can be unreliable, unpredictable, or even counterproductive.</p><p>To understand alignment’s practical importance, consider AI’s promise: providing every organization, business, and individual access to what amounts to a (functionally) infinite number of (functionally) infinitely intelligent interns. Even considering just one such intern reveals critical challenges. Would any organization hire a highly intelligence intern who also:</p><ul><li>Gets your coffee correct 99% of the time but occasionally serves you battery acid by mistake</li><li>Is not able to faithfully explain their rationale for how they make decisions</li><li>Asked to schedule a meeting with a busy executive, orchestrates a company-wide fire drill to ensure the executive is free at the desired time</li><li>May secretly be plotting your demise</li></ul><p>No organization would hire such a person despite any level of intelligence. Raw intelligence alone is insufficient, it must be refined through alignment to become trustworthy and useful.</p><p>In more formal terms, alignment is typically considered across a spectrum of dimensions:</p><ol><li><strong>Technical Alignment</strong>: Ensuring accuracy and reliability while minimizing hallucinations and errors.</li><li><strong>Value Alignment</strong>: Guaranteeing that AI systems understand and pursue intended goals while respecting human values and preferences.</li><li><strong>Robustness</strong>: Maintaining consistent and reliable behavior across diverse contexts and previously unseen scenarios.</li><li><strong>Safety</strong>: Preventing harmful outcomes through comprehensive safeguards against misuse, manipulation, and unintended consequences.</li></ol><p>A couple of years ago, I wrote about the <a href="https://medium.com/@eric-landau/closing-the-ai-production-gap-encord-active-a-new-open-source-toolkit-for-active-learning-736e5a72a305">POC to production gap</a> in AI. I highlighted many of the same concerns that (now) legacy AI systems had in bridging the gap to meet production-level standards. The evolution of AI capabilities in the subsequent years has only broadened those concerns. Two years ago, technical alignment and robustness dominated the conversation. Today, as AI systems approach or exceed human performance in many domains, value alignment and safety have become equally critical.</p><p>We’re discovering that no matter their performance capabilities, humans have specific preferences for AI behavior and (surprise, surprise) would also prefer not to be harmed in the process of using AI. And as AI systems get better and better, alignment could be the <strong>most</strong> important problem we must solve.</p><h3>The Imperatives of Alignment</h3><p>Alignment is often seen in a context where it is motivated by resolving potential existential risk from AGI. Some of the field’s leading researchers have published sobering estimates of what they call “P(Doom)” — the probability that advanced AI systems could lead to human extinction. Anthropic’s Paul Christiano suggests this probability could be as high as 35%, while Deepmind’s Stuart Armstrong places it at 40%.</p><p>Moving down the probability of catastrophic doom for humanity is perhaps the highest <em>moral</em> imperative you can imagine. However, this framing may also do us a disservice. Focusing exclusively on the long-tailed risk misalignment poses to humanity risks overlooking the immediate, concrete challenges that demand our attention today. It may also, paradoxically, hinder our progress towards lowering P(Doom).</p><p>An oil refiner in Drake’s time couldn’t have conceptualized the complex dynamics of climate change or foreseen its global implications. Yet they certainly understood the immediate dangers of toxic fumes, industrial accidents, and local environmental damage. Had the early petroleum industry developed more rigorous safety protocols and pollution controls to address these immediate concerns, these practices might have naturally evolved into stronger environmental safeguards. It is not inconceivable that the compounding effects of early safety cultures and responsible industrial practices could have naturally altered the trajectory of climate change.</p><p>Similarly, by solving today’s tangible alignment challenges, we build the foundation for addressing more profound future risks. We should thus consider the immediate <em>social</em> imperatives for alignment. As AI systems become increasingly embedded in the fabric of society — making decisions in healthcare, criminal justice, education, and social services — misaligned systems could amplify existing issues and create new forms of social harm. These include areas such as:</p><ul><li><strong>Information Ecosystem Pollution: </strong>As models become more sophisticated, misaligned systems could flood our information and media ecosystem with deepfakes and plausible-sounding but subtly misleading content, making it increasingly difficult for humans to distinguish truth from machine-generated fiction.</li><li><strong>Erosion of Social Trust: </strong>With the above pollution, it might be increasingly difficult for humans to trust any information or interaction</li><li><strong>Homogenization: </strong>Unaligned AI systems, in their drive for efficiency and optimization, might inadvertently homogenize human expressions, language usage, and artistic creation. Soon everything will sound like it’s from a machine.</li></ul><p>These and other social considerations are hugely important risks and challenges to get right in our transition to an AI-powered society. However, while we often think of the potential downsides of AI, we should equally consider the upsides of getting AI right. There is also a strong <em>economic</em> imperative for alignment which is often overlooked.</p><p>Quantifying alignment’s economic impact presents a challenge similar to measuring energy’s contribution to GDP, it’s so fundamental that it becomes difficult to isolate. Just as the difference between refined and unrefined oil marked the difference between transformative energy and mere combustible liquid, alignment determines whether AI becomes a transformative technology or remains a fascinating but limited tool.</p><p>Alignment dictates how we use AI. The application of a technology inherently governs its eventual economic impact. For instance, instead of incorporating oil into economic processes, we could have just extracted it and used it to create a massive bonfire. How much GDP would that have produced?</p><p>In his essay <em>Machines of Loving Grace</em>, Dario Amodei argues for many of the long-term benefits of AI. He foresees a world where AI has the potential to be the dominant force in economic life and, with that, lift billions in the world out of poverty. Even Bernie Sanders, far from what you would call a “tech bro, “ recognizes AI’s potential in improving economic reality. In an interview with the New York Times, he states: “In terms of artificial intelligence, in terms of robotics, etc, we truthfully have the capability now of creating a society where all of our people have a decent standard of living.”</p><p>We don’t have to look just at the pie-in-the-sky to understand the economic impact of alignment. IBM’s survey of business leaders reveals that 78% cite lack of trust in AI systems as a major barrier to adoption. Deloitte’s State of AI report, 63% harbour concerns about AI reliability. McKinsey’s analysis suggests successful AI alignment could unlock $13 trillion in annual economic value by 2030 through improved decision-making, increased productivity, and new product innovations.</p><p>With all this at stake, how do we get alignment right for this new Intelligence Age?</p><h3>The Next Era of Alignment</h3><p>The imperatives of alignment are not lost on the current leaders of the AI wave. Sam Altman, CEO of OpenAI, has said: “Even if we stopped all AI progress today, the existing technology has sufficient capabilities to fundamentally transform our economy and society — we just haven’t figured out how to properly implement and control it yet.” Demis Hassabis of Google DeepMind has noted that “the gap between AI’s theoretical capabilities and its practical implementation remains substantial…In a world of increasingly abundant intelligence, what remains scarce is our ability to reliably harness and direct it.” This is not just lip service. AI Labs are investing significant portions of both their budget and talent pool into alignment research.</p><p>This, however, also presents a challenge. The current paradigm of AI alignment research concentrates the responsibility for alignment in the hands of a few labs, creating a precarious situation akin to having oil refinement controlled by a single entity. While companies like OpenAI, Anthropic, and DeepMind have made commendable commitments to safety, they face inherent tensions in their position.</p><h3>The AI Laboratory Dilemma</h3><p>AI labs face an impossible balancing act. They must:</p><ul><li>Race to maintain competitive advantage in an increasingly crowded field</li><li>Satisfy investor demands for rapid progress and market share</li><li>Ensure rigorous safety standards and alignment protocols</li><li>Navigate complex geopolitical pressures and regulatory environments</li></ul><p>Game theory tells us this situation is unstable. In a competitive landscape where being first can mean market dominance, the pressure to prioritize capabilities over safety becomes nearly irresistible. Even if 99% of labs maintain strict alignment protocols, it takes only one actor choosing to prioritize speed over safety to force others to follow suit or become irrelevant.</p><p>The labs themselves cannot possibly anticipate all use cases and deployment contexts for their models. An AI system that appears well-aligned in laboratory conditions may exhibit unexpected behaviors when deployed in specific industry contexts or novel situations. We must consider alternative solutions and demand a more <strong>distributed</strong> approach to alignment.</p><h3><strong>The Case for Distributed Alignment</strong></h3><p>Just as the oil industry evolved from vertically integrated monopolies to a diverse ecosystem of specialized players, AI alignment must become a distributed responsibility. This requires developing robust tools and frameworks that enable organizations deploying AI to implement and maintain alignment independently of the original model providers, ultimately placing stewardship with the users, not the creators of the models.</p><p>In the case of distributed alignment, where you may not have access to the underlying model and its internal parameters, you can still follow fundamental principles to mitigate potential alignment issues.</p><ul><li><strong>We should know what AI knows</strong>: Distributors of AI systems should thoroughly understand and audit additional data, prompting, and context they feed into the system. This corresponds to <strong>Input Monitoring and Control.</strong></li><li><strong>We should know what AI does</strong>: Every decision and action made by an AI system should be monitored. This corresponds to <strong>Output Monitoring and Control.</strong></li><li><strong>Every AI system should have a human boss: </strong>Every AI system should have a human control system where human judgement can correct, override, and terminate AI action. This corresponds to <strong>Human Monitoring and Control.</strong></li></ul><p><strong>These principles should be followed throughout the entire AI distribution chain.</strong></p><p>Consider this in a practical scenario: a healthcare organization deploying a third-party AI diagnostic tool. Without access to the underlying model, the organization could implement <strong>input controls</strong> by curating patient data to ensure relevance and quality,<strong> output controls</strong> by comparing AI-generated diagnoses against established benchmarks and ground truth, and <strong>human oversight</strong> by requiring a doctor to validate and sense check AI recommendations and sending back errors for correction. This would allow the healthcare organization to have some form of alignment over the system even without accessing the behind-the-scenes model.</p><p>In an ideal world we would have AI models that were 100% accurate, 100% honest, 100% explainable, and 100% controllable. Unfortunately, we do not have such guarantees. Without control of the underlying model, we must think beyond models and instead to AI systems. The development of a framework of distributed alignment can still contribute to the robustness, interpretability, and control of these AI systems that a model is powering. We must develop tools to improve our observability and to continually course-correct AI with strong protocols and human oversight. In future articles we will cover these controls in more detail and how they can be operationalized with concrete strategies, actions, and tools.</p><p>Regardless of implementation details, the thrust of distributed alignment is that <strong>the responsibility for aligned AI systems should not just sit with the AI labs, it should also sit with AI application companies, end users, government agencies, and intermediate infrastructure providers.</strong> Only with a distributed approach will we have a chance of practically aligning AI.</p><h3>Making Distributed Alignment Work</h3><p>We would be remiss if we did not also mention the role of regulation in this framework. While some sort of AI regulation is almost inevitable(and certainly needed), we cannot expect that regulation will be a panacea to this issue. AI technology is moving faster than any other technology in history and regulation moves at the speed of, well, government. The complexity of the technology and the inherently fragmented nature of regulation will also make it extremely difficult to enforce consistently and uniformly. We must consider these frameworks with future regulations in mind, but we cannot wait for them in place before addressing the problem.</p><p>The ultimate success of distributed alignment depends on creating an ecosystem where:</p><ol><li>Organizations have access to user-friendly alignment tools that automate tasks while keeping humans in the loop for auditing.</li><li>Best practices and metrics for alignment are standardized and understood across industries</li><li>Regular auditing and certification processes exist</li><li>Regulatory frameworks support and enforce alignment standards</li></ol><p>Just as the oil industry developed standard safety protocols and quality metrics, the AI industry needs to develop standard alignment protocols that can be implemented and verified across different contexts and applications.</p><p>The goal isn’t to remove responsibility from AI labs but to create a robust system of checks and balances where alignment is maintained through multiple layers of oversight and control. This distributed approach to alignment will ensure that AI systems remain safe and beneficial as they become more deeply integrated into every aspect of society.</p><h3>The Opportunity Ahead</h3><p>The cat is now out of the bag with AI development and we can’t put it back. It is now incumbent on us to also recognize the urgency of the moment. This recognition demands that we understand alignment not as a distant concern for some Terminator-like future, but as an immediate and pressing challenge that will define our era.</p><p>The current tenor of the conversation is around compute infrastructure and successively larger models from foundation model providers. But we may be missing the forest for the trees. We are on the verge of unleashing an infinite army of infinitely intelligent interns into a world without the institutional infrastructural or guardrails to absorb them safely or effectively. Unlike human employees who are governed by constructs such as management principles, legal frameworks, and self-inforced social norms developed over thousands of years, we have to figure this all out in the space of a few years. In this effort, we have the opportunity to really interrogate ourselves and our society deeply in the process.</p><p>A common dynamic we have observed in various facets of society is what I call “Money-ball-ification”. This refers to the Michael Lewis book where he described how baseball was transformed by introducing quantitative methods and statistical analysis — to great success. We have seen this application of statistics and math to increasingly more areas such as finance, elections, and even content creation. In a world of AI systems governed by computer scientists and engineers, we will now have to do this on a global social scale. In an effort to align AI systems, we must grapple with deep questions of ethics, values, and human nature that philosophers have pondered for millennia. Deep moral questions will come into the purview of technology, and we have the chance to not only positively affect the direction of technology but also to improve our understanding of ourselves.</p><p>For AI, the stakes could not be higher. Like in the industrial age accelerated by Drake and others, in the Intelligence Age to come, we must navigate downside risks, social harms, and perhaps dizzying upside potential. The world will become unrecognizable from what it looks like today. It is on us to ensure these systems are aligned towards the greatest good. We must take the responsibility of alignment as a collective action.</p><p>Our task is to ensure that when future generations look back on this moment, they see not just the rise of the Intelligence Age but the moment when humanity chose to take conscious control of its technological destiny. The time for that choice is now.</p><p><em>Originally published at </em><a href="https://encord.com/blog/distributed-alignment-intelligence-age/"><em>https://encord.com</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=760c339e8022" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[One Year of ChatGPT — here’s what’s coming next]]></title>
            <link>https://eric-landau.medium.com/one-year-of-chatgpt-heres-what-s-coming-next-9d661e2ea667?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9d661e2ea667</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Thu, 30 Nov 2023 15:33:58 GMT</pubDate>
            <atom:updated>2024-08-07T09:37:57.302Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>One Year of ChatGPT — here’s what’s coming next</strong></h3><p><em>Exploring an AI future beyond the first year of ChatGPT. Cross posted from the Encord blog </em><a href="https://encord.com/blog/one-year-of-chatgpt/"><em>here</em></a><em>.</em></p><p>Before OpenAI was a producer of the most scintillating boardroom corporate drama outside of an episode of Succession, it was the creator of the universally known AI application ChatGPT. On the eve of the one-year anniversary of its launch(a whirlwind year of progress, innovations and twists), it is worth revisiting the state of AI post-ChatGPT with a view towards looking forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPzVVLSLZ7kxMcWC5zJJDA.png" /></figure><p>A year ago, <a href="https://openai.com/chatgpt">ChatGPT</a> took the world by storm, smashing even OpenAI’s greatest expectations of adoption by becoming the world’s <a href="https://www.reuters.com/technology/chatgpt-sets-record-fastest-growing-user-base-analyst-note-2023-02-01/">fastest-growing consumer app of all time</a>. While the last year has been filled with a panoply of new models, hundreds of freshly minted startups, and <a href="https://www.nytimes.com/2023/11/22/opinion/openai-sam-altman.html">gripping drama</a>, it still very much feels like only the early days of the technology.</p><p>As the cofounder of an <a href="https://encord.com/">AI company</a>, and having been steeped in the ecosystem for years, the difference this last year has made has been nothing short of remarkable — not just in technological progress or academic research (although the strides here have been dizzying) — but more in unlocking the public imagination and discourse around AI.</p><p>YCombinator, a leading barometer of the directionality of technological trends, has recently churned out batches where, for the first time, most companies are focused on AI. ChatGPT is now being used as a <a href="https://www.computerworld.com/article/3705432/the-republican-debate-and-chatgpt-room-for-gen-ai-in-politics.html">zinger in political debates</a>. Once exotic terms like <a href="https://arxiv.org/abs/2005.11401"><em>Retrieval Augmentation Generation</em></a> are making their way into the vernacular of upper management in Fortune 500 companies. We have entered not a technological, but a societal change, where AI is palatable for mainstream digestion. So what’s next?</p><p>Seeing the future is easy, if you know where to look in the present: technological progress does not move as a uniform front where adoption of innovation propagates equally across all facets of society. Instead, it moves like waves crashing the jagged rocks of a coastline, splashing chaotically forward, soaking some while leaving others dry. Observing where the water hits first lets you guess what happens when it splashes on others later. It takes one visit to San Francisco to notice the eerily empty vehicles traversing the city in a silent yet conspicuous manner to preview what the future looks like for municipalities around the world — a world with the elimination of Uber driver small talk.</p><p>While making firm predictions in a space arguably moving forward faster than any other technological movement in history is a fool’s game, clear themes are emerging that are worth paying attention to by looking at the water spots of those closest to the waves. We are only one year into this “new normal,” and the future will have much more to bring along the following:</p><p><strong>Dive Into Complexity</strong></p><p>One of the most exciting aspects of artificial intelligence as a technology is that it falls into a category few technologies do: “unbounded potential.” Moore’s Law in the ’60s gave a self-fulling prophecy of computational progress for Silicon Valley to follow. The steady march of development cycles has paved the way from room-sized machines with the power of a home calculator to all the marvellous wonders we take for granted in society today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*SS_NaCp4DIzLbslP" /><figcaption>Moore’s Law in Action</figcaption></figure><p>Similar to computation, there are no limits in principle for the cognitive power of computers across the full range of human capabilities. This can stoke the terrors of a world-conquering AGI, but it also brings up a key principle worth considering: ever-increasing intellectual power.</p><p>The AIs of today that are <a href="https://encord.com/blog/object-detection/">drawing boxes over cars</a> and <a href="https://encord.com/blog/guide-to-semantic-segmentation/">running segmentations over people</a> will be considered crude antiquities in a few years. They are sub-component solutions used only as intermediate steps to tackle more advanced problems (such as diagnosing cancer, counting cars for parking tickets, etc). We must walk before we can run, but it is not difficult to imagine an ability to tackle harder and harder questions over time. In the future, AI will be able to handle problems of increasing complexity and nuance, ones that are currently limitations for existing systems.</p><p>While ChatGPT and other equivalent LLMs of today are conversant (and hallucinatory) in wide-ranging topics, they still cannot handle niche topics with reliability. Companies, however, have already begun tailoring these models with specialized datasets and techniques to handle more domain-specific use cases. With improved training and prompting, the emergence of AI professionals — such as doctors, paralegals, and claims adjusters — is on the horizon. We’re also approaching an era where these specialised applications, like a <a href="https://github.com/knowrohit/Fashion-Rec-Sys">FashionGPT</a> trained on the latest trends, can provide <em>personalized</em> advice and recommendations according to individual preferences.</p><p>We should expect a world where the complexity and nuance of problems, ones that are only available for particular domain experts of today, will be well within the scope of AI capabilities. Topics like advanced pathology, negotiating geopolitical situations, and company building will be problems within AI capacity. If the history of computers is any beacon, complexity is the direction forward.</p><p><strong>Multi-modality</strong></p><p>Right now, there are categorical boxes classifying different types of problems that AI systems can solve. We have “<a href="https://encord.com/glossary/computer-vision-definition/">computer vision</a>”, “<a href="https://encord.com/glossary/nlp-definition/">NLP</a>”, “reinforcement learning”, etc. We also have separations between “Predictive” and “Generative AI” (with a corresponding hype cycle accompanying the rise of the term). These categories are useful, but they are mostly in place because models can, by and large, solve one type of problem at a time. Whenever the categorisations are functions of technological limitations, you should not expect permanence; you should expect redefinitions.</p><p>Humans are predictive and generative. You can ask me if a picture is of a cat or a dog, and I can give a pretty confident answer. But I can also draw a cat (albeit badly). Humans are also multi-modal. I can listen to the soundtrack of a movie and take in the sensory details of facial expressions, body language, voice in both semantic content as well as tonal and volume variations. We are performing complex feats of sensor fusion across a spectrum of inputs, and we can perform rather complex inferences from these considerations. Given that we can do this adeptly, we shouldn’t expect any of these abilities to be outside the purview of sufficiently advanced models.</p><p>The first inklings of this multi-modal direction are already upon us. ChatGPT <a href="https://encord.com/blog/gpt4-vision/">has opened up to vision</a> and can impressively discuss input images. Open source models like LLaVA now reason over both text and vision. CLIP combines text and vision into a unified embedding structure and can be integrated in <a href="https://encord.com/blog/search-anything-model-introduction/">various types of applications</a>. Other multimodal embedding agents are also becoming commonplace.</p><p>While these multimodal models haven’t found use in many practical applications yet, it is only a matter of time before they are integrated into commonplace workflows and products. Tied to the point above on complexity, multimodal models will start to replace their narrower counterparts to solve more sophisticated problems. Today’s models can, by and large, see, hear, read, plan, move, etc. The models of the future will do all of these simultaneously.</p><p><strong>The many faces of alignment</strong></p><p>The future themes poised to gain prominence in AI not only encompass technological advancements but also their societal impacts. Among the onslaught of buzzy terms borne out of the conversations in San Francisco coffee shops, <em>alignment</em> has stood out among the rest as the catch-all for all the surrounding non-technical considerations of broader implications of AI. According to ChatGPT:</p><p><em>AI alignment refers to the process and goal of ensuring that artificial intelligence (AI) systems’ goals, decisions, and behaviors are in harmony with human values and intentions.</em></p><p>There are cascading conceptual circles of alignment dependent on the broadness of its application. As of now, the primary focus of laboratories and companies has been to align models to what is called a “loss function.” A loss function is a mathematical expression of how far away a model is from getting an answer “right.” At the end of the day, AI models are just very complicated functions, and all the surrounding infrastructure are very powerful functional optimization tools. A model behaving as it should as of now just means a function has been properly optimized to “having a low loss.”</p><p>It begs the question of how you choose the right loss function in the first place. Is the loss function itself aligned with the broader goal of the researcher building it? Then there is the question: if the researcher is getting what they want, does the institution the researcher is sitting in get what it wants? The incentives of a research team might not necessarily be aligned with that of the company. There is the question of how all of this is aligned with the interests of the broader public, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*50gbipiPhfdr08Nq" /><figcaption>Dall-E’s interpretation of the main concentric circles of alignment</figcaption></figure><p>The clear direction here is that infrastructure for disentangling multilevel alignment seems inevitable (and necessary). Research in “superalignment” by institutions such as OpenAI, before their board debacle, is getting heavy focus in the community. It will likely lead to tools and best practices to help calibrate AI to human intention even as AI becomes increasingly powerful.</p><p>At the coarse-grained societal level, this is broad regulation imposed by politicians that need help finding the Google toolbar. Broad-brushed regulations similar to what we see in the <a href="https://encord.com/blog/what-the-european-ai-act-means-for-you/">EU AI Act</a>, are very likely to follow worldwide. Tech companies will get better at aligning models to their loss, researchers and alignment advocates at a loss to human goals, and regulators at the technology to the law. Regulation, self-regulation, and corrective mechanisms are bound to come — their effectiveness is still uncertain.</p><p><strong>The AI Internet</strong></p><p>A question in VC meetings all around the world is whether a small number of powerful foundation models will end up controlling all intelligence operations in the future or whether there will be a proliferation of smaller fine-tuned models floating around unmoored from centralized control. My guess is the answer is <em>both</em>.</p><p>Clearly, centralized foundation models perform quite well on generalized questions and use cases, but it will be difficult for foundation model providers to get access to proprietary datasets housed in companies and institutions to solve finer-grained, domain-specific problems. Larger models are also constrained by their size and much more difficult to embed in edge devices for common workflows. For these issues, corporations will likely use alternatives to control their own fine-tuned models. Rather than having one model control everything, the future is likely to have many more AI models than today.</p><p>The proliferation of AI models to come harkens back to the early proliferation of personal computing devices. The rise of the internet over the last 30 years has taught us a key lesson: things like to be connected. Intelligent models/agents will be no exception to this.</p><p>AI agents, another buzz term on the rise, are according to ChatGPT:</p><p><em>Systems or entities that act autonomously in an environment to achieve specific goals or perform certain tasks.</em></p><p>We are seeing an uptake now on AI agents powered by various models tasked with specific responsibilities. Perhaps this will come down even to the individual level, where each person has their own personal AI completing the routine monotonous tasks for them on a daily basis. Whether this occurs or not, it is only a matter of time before these agents start to connect and communicate with each other. My scheduling assistant AI will need to talk to your scheduling assistant. AI will be social!</p><p>My guess is a type of AI communication protocol will be one in which daisy-chaining models of different skills and occupations will exponentiate their individual usefulness. These communication protocols are still some ways from being established or formalized, but if the days of regular old computation mean much, they will not be far away. We are seeing the first Github repos showcasing orchestration systems of various models. While still crude, if you squint, you can see a world where this type of “AI internet” integrates into systems and workflows worldwide for everyday users.</p><p><strong>Paywalling</strong></p><p>The early internet provided a cornucopia of free content and usage powered by VC largess with the mandate of growth at all costs. It took a few years before the paywalls started, in news sites around the world, in walled-off premium features, and in jacked-up Uber rates. After proving the viability of a technology, the next logical step tends to be monetization.</p><p>For AI, the days of open papers, datasets, and sharing in communities are numbered as the profit engine picks up. We have already seen this in the increasingly, almost comically, vague descriptions OpenAI releases about their models. By the time GPT-5 rolls around, the expected release won’t be much less guarded than OpenAI just admitting, “we used GPUs for this.” Even non-tech companies are realising that the data they possess has tremendous value and will be much more savvy before letting it loose.</p><p>AI is still only a small portion of the economy at the moment, but its generality and unbounded potential stated above lead to the expectation that it can have absolutely enormous economic impact. Ironically, the value created by the early openness of the technology will result in the end of technological sharing and a more closed mentality.</p><p>The last generation of tech growth has been fueled by social media and “attention.” Any barriers to engagement, such as putting a credit card upfront, were discouraged, and the expectation that “everything is free” became commonplace in using many internet services. OpenAI, in contrast, rather than starting with a traditional ad-based approach for monetization, opened up a premium subscription service and is now charging hefty sums for tailored models for corporations. The value of AI technology in its own right obviates the middle step of funding through advertising. Data and intelligence will likely not come for free.</p><p>As we shift from an <strong>attention economy</strong> to an <strong>intelligence economy</strong>, where automation becomes a core driver of growth, expect the credit cards to start coming out.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*NO4DAokJt-n10CMt" /><figcaption>Dall-E’s interpretation of the coming AI paywall paving the transition from an attention economy to an intelligence economy</figcaption></figure><p><strong>Expect the unexpected</strong></p><p>As a usual mealy-mouthed hedge in any predictive article, the requisite disclaimer of the unimaginable items must be established. In this case, this is also a genuine belief. Even natural extrapolations of AI technology moving forward can leave us in heady disbelief of possible future states. Even much smaller questions, like if OpenAI itself will survive in a year, are extremely difficult to predict.</p><p>If you asked someone 50 years ago about capturing some of the most magnificent imagery in the world, of items big or small, wonders of the world captured within a device in the palm of your hand and served in an endless scroll among other wonders, it would seem possible and yet inconceivable. Now, we are <em>bored</em> by seeing some of the world’s most magnificent, spectacular images and events. Our demand for stimulating content is being overtaken by supply. Analogously, with AI, we might be in a world where scientific progress is accelerated beyond our wildest dreams, where we have more answers than questions, and where we cannot even process the set of answers available to us.</p><p>Using AI, deep mathematical puzzles like the <a href="https://en.wikipedia.org/wiki/Riemann_hypothesis">Riemann Hypothesis</a> may be laid bare as a trivial exercise. Yet, the formulation of interesting questions might be bottlenecked by our own ability and appetite to answer them. A machine to push forward mathematical progress beyond our dreams might seem too much to imagine, but it’s only one of many surreal potential futures.</p><p>If you let yourself daydream of infinite personal assistants, where you have movies of arbitrary storylines created on the fly for individual consumption, where you can have long and insightful conversations with a cast of AI friends, where most manual and cognitive work of the day has completely transformed, you start to realize that it will be difficult to precisely chart out where AI is going.</p><p>There are of course both utopian and dystopian branches of these possibilities. The technology is agnostic to moral consequence; it is only the people using them and the responsibility they incur that can be considered in these calculations. The only thing to expect is that we won’t expect what’s coming.</p><p><strong>Conclusion</strong></p><p>Is ChatGPT the equivalent of AI what the iPhone moment of the app wave was in the early 2010s? Possibly — and probably why OpenAI ran a very Apple-like keynote before Sam Altman’s shocking dismissal and return. But what is clear is that once items have permeated into public consciousness, they cannot be revoked. People understand the potential now. Just <a href="https://encord.com/blog/how-we-raised-a-seed-round/">3 years ago a company struggling to raise a seed round</a> had to compete for attention against crypto companies, payments processors, and fitness software. AI companies today are a hot ticket item and have huge expectations baked into this potential.</p><p>It was only 9 months ago that I wrote about <a href="https://encord.com/blog/ai-production-gap/">“bridging the gap” to production AI</a>. Amidst all the frenzy around AI, it is difficult to forget that most models today are still only in the “POC” (Proof of Concept) state, not having proved sufficient value to be integrated with real world applications.</p><p>ChatGPT really showed us a world beyond just production, to “post-production” AI, where AI’s broader societal interactions and implications become more of the story than the technological components that it’s made of. We are now at the dawn of the “Post-Production” era.</p><p>Where this will go exactly is of course impossible to say. But if you look at the past, and at the present, the themes to watch for are: <strong>complexity, multi-modality, connectivity, alignment, commercialization, and surprise</strong>. I am certainly ready to be surprised.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9d661e2ea667" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Closing the AI production gap: Encord Active, a new open source toolkit for active learning]]></title>
            <link>https://eric-landau.medium.com/closing-the-ai-production-gap-encord-active-a-new-open-source-toolkit-for-active-learning-736e5a72a305?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/736e5a72a305</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Fri, 13 Jan 2023 12:35:53 GMT</pubDate>
            <atom:updated>2023-02-12T16:18:28.867Z</atom:updated>
            <content:encoded><![CDATA[<p><strong><em>TLDR</em></strong><em>; </em><strong><em>Problem: </em></strong><em>There is an “AI production gap” between proof-of-concept and production models due to issues with AI model robustness, reliability, explainability, caused by a lack of high-quality labels, model edge cases, and cumbersome iteration cycles for model re-training. <br></em><strong><em>Solution:</em></strong><em> </em><a href="http://encord.com/"><em>We</em></a><em> are releasing a free open-source active learning toolkit, designed to help people building computer vision models improve their data, labels, and model performance.</em></p><p>Recently there was a <a href="https://twitter.com/paulg/status/1610644813526745089">tweet</a> by Paul Graham showing an old cover from Maclean’s magazine highlighting the “future of the internet”.</p><p>Graham poses the accompanying question: <strong>“What do 36 million people use now that eventually 5 billion people will?”</strong> At Encord we have long believed the answer to this question to be artificial intelligence, as AI feels to be at a similar inflection point now as the internet was in the 90s, poised to take off for widespread adoption.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/378/1*yl0plV0anwgYkplQY1vWdQ.png" /></figure><p>While this view that AI will be the next ubiquitous technology is not an uncommon one, its plausibility hasn’t been as palpable as recently with the imagination-grabbing advancements in generative AI over the last year. These advancements have seen the rise of “foundation models”, high capacity unsupervised AI systems that train over enormous swaths of data and take <a href="https://venturebeat.com/ai/ai-machine-learning-openai-gpt-3-size-isnt-everything/">millions of dollars of GPU power doing it</a>.</p><p>The success of foundation models is creating a dynamic of duality in the AI world. With <strong>foundation models</strong> built by well-funded institutions with the GPU muscle to train over an internet’s worth of data and <strong>application-layer AI models </strong>normally built from the traditional supervised learning paradigm requiring labeled training data.</p><p>While the feats of these foundation models have been quite impressive, it is quite clear we are still in the very early days of the proliferation and value of application-layer AI, with numerous bottlenecks holding back wider adoption.</p><p>We started <a href="https://encord.com/?utm_campaign=Introducting%20EA%20blog%20post&amp;utm_source=Medium&amp;utm_medium=social%20posthttps://encord.com/?utm_campaign=Introducting%20EA%20blog%20post&amp;utm_source=Medium&amp;utm_medium=social%20post">Encord</a> a few years ago originally to tackle one of the major blockers to this adoption, <a href="https://venturebeat.com/ai/cord-raises-4-4m-to-automate-computer-vision-annotation-processes/">the data labeling problem</a>. Over the years, working with many exciting AI companies, we have since enhanced our views on the blockers for later-stage AI development and deploying models to production environments. Over this post, we will discuss our learnings from thousands of conversations with ML engineers, data operations specialists, business stakeholders, researchers, and software engineers and how it has culminated in the release of our newest open-source toolkit, <a href="https://encord.com/encord-active/?utm_campaign=Introducting%20EA%20blog%20post&amp;utm_source=Medium&amp;utm_medium=social%20post"><em>Encord Active</em></a>.</p><h3>The Problem: Elon’s promise</h3><p>There is a famous <a href="https://www.youtube.com/watch?v=4sCK-a33Nkk">Youtube sequence</a> of Elon Musk promising Tesla’s delivery of self-driving cars, every “next year”, since 2014.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*DhhbZZ1d416m7bnzDjuqZw.png" /></figure><p>We are now at the start of 2023, and that promise still seems “one year” away. This demonstrates how the broader dream of realizing production AI models that have transformative effects over the real world (self-driving cars, robot chefs, etc) has been slower to materialize than expected given early promise and floods of investment.</p><p>This is a multi-faceted and complex issue coupled with societal structures outside the tech industry (regulators, governments, industry, etc) lagging appreciation of associated implications that come from the second-order effects of adopting this technology. The more pernicious problem, however, is one which lies within the technology itself. Promising proof-of-concept models which perform well on benchmarked datasets in research environments have often struggled when in contact with real-world applications. This is the infamous<strong> AI production gap</strong>. Where does this gap come from?</p><h3>The AI Production Gap</h3><p>One of the main issues is that the set of requirements asked of AI applications rises precipitously when in contact with a production environment: robustness, reliability, explainability, maintainability, and much more stringent performance thresholds. An AI barista making a coffee is impressive in a cherry-picked demo video, but frustrating when spilling your frappuccino 5 times in a row.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*oLIOACvJrOjMf8-SbHNAnA.png" /></figure><p>As such, the gap between “that’s neat” and “that’s useful” is much larger and more formidable than ML engineers had anticipated. The <strong>production gap</strong> can be attributed to a few high-level sub-components. Among others:</p><h4>Slow shift to data-centricity:</h4><p>Working with many AI practitioners, we have noticed a <a href="https://encord.com/blog/data-centric-ai-practical-implications-with-the-smart-pipeline/">significant disconnect between academics and industry</a>. Academics often focus on model improvements, working with fixed benchmark datasets and labels. They optimize the parts of the system that they have the most control over. Unfortunately, in practical use cases, these interventions have lower leveraged effects on the success of the AI application than taking a data-centric view.</p><p>Insufficient care has been placed on data-centric problems such as data selection, data quality improvement, and label error reduction. While not important from a model-centric view with fixed training and validation datasets, these elements are crucial for the success of production models.</p><h4>Lack of decomposability:</h4><p>A disadvantage of deep learning methods compared to traditional software is the lack of being able to take it apart in pieces for examination. Normal (but highly complex) software systems have composable parts that can be examined and tested in independent ways. Stress testing individual components of a system is a powerful strategy for fortifying the entirety. Benefits include the interpretability of system behavior and the ability to quickly isolate and debug errant pieces. Deep neural networks, for all their benefits, are billion parameter meshes of intransparency; you take it as is and have little luck in inspecting and isolating pieces component-wise.</p><h4>Insufficient evaluation criteria:</h4><p>Exacerbating the lack of decomposability are the insufficient criteria we have to evaluate AI systems. Normal approaches just take global averages of a handful of metrics. Complex high-dimensional systems need sophisticated evaluation systems to meet the complexity of their intended domain. The tools to probe and measure performance are still nascent for models and almost completely non-existent for data and label quality, leaving a lack of visibility into the true quality of an AI system.</p><p>The above problems (and the lack of human-friendly tools to deal with them) have all contributed in their own way (again among others) to the <strong>AI production gap</strong>. At Encord, we have been lucky to see how ML engineers across a multifaceted set of use cases have tackled these issues. The interesting observation was that they used very similar strategies even in very varied use cases. We have been helping these companies now for years, and based on that experience we have released Encord Active, a tool that is data-centric, decomposable, human-interaction focused, and improves evaluation.</p><h3>How It Should Be Done</h3><p>Before going into Encord Active, let’s go over how we’ve seen it done by the best AI companies. The gold standard of active learning are stacks that are fully iterative pipelines where every component is run with respect to optimizing the performance of the downstream model: data selection, annotation, review, training, and validation are done with an integrated logic rather than as disconnected units.</p><p>Counterintuitively, the best systems also have the most human interaction. They fully embrace the human-in-the-loop nature of iterative model improvement by opening up entry points for human supervision within each sub-process while also maintaining optionality for completely automated flows when things are working. The best stacks are thus iterative, granular, inspectable, automatable, and coherent.</p><p>Last year, Andrej Karpathy presented <a href="https://www.youtube.com/watch?v=FnFksQo-yEY&amp;t">Tesla’s Data Engine</a> as their solution to bridge the gap, but where does that leave other start-ups and AI companies without the resources to build expensive in-house tooling?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Xt569N_Vn6lXsPzcFvvjSA.png" /><figcaption><strong><em>Source: </em></strong><a href="https://www.techgoing.com/tesla-2022-ai-day-meeting-minutes-optimus-follow-up-production-scale-may-reach-millions-of-units/"><strong><em>Tesla 2022 AI Day</em></strong></a></figcaption></figure><h3>Introducing Encord Active</h3><p>Encountering the above problems and seeing the systems of more sophisticated players led us through a long winding path of creating various tools for our customers. We have decided to release them open source as <a href="https://encord.com/encord-active/?utm_campaign=Introducting%20EA%20blog%20post&amp;utm_source=Medium&amp;utm_medium=social%20post">Encord Active</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/1*AeR1Rr6nKPalFI5NY10iZw.png" /></figure><p>Loosely speaking Encord Active is an active learning toolkit with visualizations, workflows, and, importantly, a library of what we call “quality metrics”. While not the only value-add of the toolkit, for the remainder of the post, we will focus on the quality metric library as it is one of our key contributions.</p><h4>Quality Metrics</h4><p>Quality metrics are additional parametrizations added onto your data, labels, and models; they are ways of indexing your data, labels, and models in semantically interesting and relevant ways. They come in three flavors:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sTZgcVVgDSQbPp6cslBv6w.png" /></figure><p>It was also very important that Encord Active gives practical and actionable workflows for ML engineers, data scientists, and data operations people. We did not want to build an insight-generating mechanism, we wanted to build a tool that could act as the command center for closing the full loop on concrete problems practitioners were encountering in their day-to-day model development cycle.</p><h4>The way it works</h4><p>Encord Active (EA) is designed to compute, store, inspect, manipulate, and utilize quality metrics for a wide array of functionality. It hosts a library of these quality metrics, and importantly allows you to customize by writing your own “quality metric functions” to calculate/compute QMs across your dataset.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-aVucCV8xKZuLHDGqNPWKw.gif" /></figure><p>Upload data, labels, and/or model predictions and it will automatically compute quality metrics across the library. These metrics are then returned in visualizations with the additional ability to incorporate them into programmatic workflows. We have adopted a dual approach such that you can interact with the metrics via a UI with visualizations, but also set them up in scripts for automated processes in your AI stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*9S9acJd5luDEgiZM" /></figure><p>With this approach, let’s return back to the problems we had listed earlier:</p><h4>Slow shift to data-centricity:</h4><p>EA is designed to help improve model performance among several different dimensions. The data-centric approaches it facilitates include, among others:</p><ul><li><em>Selecting the right data to use data labeling, model training, and validation</em></li><li><em>Reducing label error rates and label inconsistencies</em></li><li><em>Evaluating model performance with respect to different subsets within your data</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ADfW1s_wrblDoxlZg2t6HA.png" /><figcaption><em>EA is designed to be useful across the entire model development cycle. The quality metric approach covers everything from prioritizing data during data collecting, to debugging your labels, to evaluating your models.</em></figcaption></figure><p>The best demonstrations are with examples in the next section.</p><h4>Decomposability:</h4><p>Until we have better tools to inspect the inner workings of neural networks, EA treats the decomposability problem by shifting decomposability both up and down the AI stack. Rather than factoring a model itself, quality metrics allow you to very granularly decompose your data, labels, and model <em>performance</em>. This kind of factorization is critical for identifying potential problems and then properly debugging them</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDM3K3uZ6r64F06f4zdVbg.png" /></figure><h4>Insufficient evaluation criteria:</h4><p>As a corollary to the above EA allows for arbitrarily many and arbitrarily complex quality metrics to evaluate the performance of your model. Importantly, it breaks down the model performance as a function of the quality metrics automatically, guiding users to the metrics that are likely to be most impactful for model improvement.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ks_ROiY06LiG5cmug4Vb4Q.png" /></figure><p>Until we have both AGI AND the AI alignment problem solved, it remains critically important of keeping humans in the loop for monitoring, improvement, development, and maintenance of AI systems. EA is designed with this in mind. The UI allows for quick visual inspection and tagging of data, while the programmatic interface allows for systematization and automation of workflows discovered by ML engineers and data operations people.</p><h3>Choose Your Own Adventure: Example Use Cases</h3><h4>Data selection:</h4><p>With EA you can run your previous model over a new dataset and set the inverse confidence score of the model as a quality metric. Sample the data weighted by this quality metric for entry into an annotation queue. Furthermore, you can use the pre-computed quality metrics to identify subsets of outliers to exclude before training or subsets to oversample. You see a tutorial on data selection using the TACO dataset <a href="https://encord.com/blog/analyzing-the-taco-dataset-with-encord-active">here</a>.</p><h4>Label error improvement:</h4><p>You can use the <a href="https://encord.com/blog/automating-the-assessment-of-training-data-quality-with-encord">“annotation quality” metric</a>, which calculates the deviation of the class of a label from its nearest neighbors in an embedding space to identify which labels potentially contain errors. This additionally breaks down label error with respect to <em>who</em> annotated it, to help find annotators that need more training. If you upload your model predictions you can find high-confidence false positive predictions to <a href="https://encord.com/blog/how-to-find-and-fix-label-errors-with-encord-active">identify label errors or missing labels.</a></p><h4>Model performance analysis:</h4><p>EA automatically breaks down your <a href="https://encord-active-docs.web.app/workflows/improve-your-models/metric-importance">global model performance metrics</a> and correlates them to each quality metric. This surfaces which quality metrics are important drives in your model performance, and which potential subsets of the data your model is likely to perform worst in going forward.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EcWjiKt_klGJ1CMYNOeIlg.png" /></figure><p><strong>Why Open Source</strong></p><p>There was an observation we made working with late-stage AI companies that prompted us to release Encord Active open source. Many of the metrics companies use are often common, even for completely different vertical applications.</p><p>One of the strategies of a startup is to reduce the amount of redundant work that is being done in the world. Before Git’s common adoption, every software company was developing its own internal version control software. This amounted to tens of thousands of hours of wasted developer time that could be allocated to more productive activity. We believe the same is being done now with quality metrics for ML engineers.</p><p>Open sourcing Encord Active will remove the pain of people using notebooks to create redundant code and one-off scripts that many others are also developing and free up time for ML engineers to focus on improving their data and models in more interesting ways.</p><p>As a new open source tool, please be patient with us. We have some of the leading AI companies in the world using Encord Active, but it is still very much a work in progress. We want to make it the best tool it can be, and we want it out in the world so that it can help as many AI companies as possible move forward.</p><p>If it works, we can in a small way contribute to one of the hardest things in the world: making an Elon Musk promise come true. Because AI delayed is not AI denied.</p><h3>Want to test your own data &amp; models?</h3><p><strong><em>“I want to get started right away”</em></strong> — You can find Encord Active on <a href="https://github.com/encord-team/encord-active?utm_campaign=Introducting%20EA%20blog%20post&amp;utm_source=Medium&amp;utm_medium=social%20post">Github</a>.</p><p><strong><em>“Can you show me an example first?”</em></strong> — Check out this <a href="https://colab.research.google.com/drive/11iZE1CCFIGlkWdTmhf5XACDojtGeIRGS?usp=sharing">Colab Notebook</a>.</p><p><strong><em>“I am new, and want a step-by-step guide”</em></strong> — Try out the getting started <a href="https://encord-active-docs.web.app/tutorials/touring-the-coco-dataset">tutorial</a>.</p><p>This is cross-posted from our company blog <a href="https://encord.com/blog/closing-the-ai-production-gap-encord-active-a-new">here</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=736e5a72a305" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data-centric AI: Practical implications with the SMART Pipeline]]></title>
            <link>https://becominghuman.ai/data-centric-ai-practical-implications-with-the-smart-pipeline-9b187a1bd412?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/9b187a1bd412</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Thu, 10 Mar 2022 09:12:48 GMT</pubDate>
            <atom:updated>2022-03-16T13:14:48.187Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For context, I am a cofounder of </em><a href="http://www.encord.com/"><em>Encord</em></a><em>, a company building software to improve training data for computer vision.</em></p><p>The latest trend in the ML community is the rise of what is termed <strong>data-centric AI</strong>. Simply put, data-centric AI is the notion that the most relevant component of an AI system is the data that it was trained on rather than the model or sets of models that it uses. It recommends an attentional shift from trying to find improvements to model architectures and hyper-parameters to finding ways to improve the data itself. While this is fine in the abstract, it leaves a little to be desired with respect to the actions necessary for a real-world AI practitioner. How exactly do you transition your workload from iterating over models to over data?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*u948BVyeB6axSoMoHGIGOw.png" /><figcaption>Model accuracy on ImageNet is leveling off over time</figcaption></figure><p>In this article we will go over a few of the practical steps for how to properly think about and implement data-centric AI. Specifically, we will investigate how data-centric AI differs from model-centric AI with respect to creating and handling training data.</p><p>Because current systems are model-centric and thus not calibrated to handle iterations over datasets, data-centric AI often requires much more work. The downstream components of the model building process such as deployment and monitoring will be covered in future articles, but first we will start with the data-centric process necessary to build and maintain a formidable training data set. We summarize this in the acronym “SMART”: sourcing, managing, annotating, reviewing, and training. We will take some exaggerated perspectives of the data-centric vs model-centric perspectives for the sake of elucidation.</p><p><strong>Sourcing</strong></p><p>Includes: finding data, collecting it, cleaning it, sanitizing(for regulatory/compliance purposes)</p><p><em>Model-centric perspective: Use ImageNet or an open source dataset, that’ll be fine!</em></p><p><em>Data-centric perspective: Use every bone in your body to find good proprietary datasets</em></p><p>While seemingly mundane, the absolute number one most important step for data-centric AI is securing a good data source. In fact, from our experience, the number one predictor of success for an AI company was their ability to source the best data(best in the sense of combining both quantity and quality). This was sometimes through partnerships, sometimes through creative methods such as sophisticated scraping, sometimes through structural advantages(Google will collect the best data on searches for example), or sometimes through sheer force of will of the company. From the cases we’ve seen, the investment in collecting and identifying the best data was almost always a worthy one, at least within the context of business applicability. Sourcing good data also creates positive externalities because better data attracts better data scientists, data engineers, and ML engineers.</p><p>Even once you have secured a source, however, the work is not close to done. Raw globs of unstructured data by itself will not be useful to downstream processes without cleaning and structuring. In many cases, unprocessed data also does not comply with legal, privacy, or other regulatory restrictions. Unfortunately the problems here are often idiosyncratic to the individual case of the company. Despite this, it is often possible to sort these systematically such that data can be extracted continuously from a secured source without worrying about downstream issues with the pipeline. The best AI companies will have a data source flow that requires minimal intervention to the next stage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*U1BhieplEp_LEyZ_vg6MVA.gif" /><figcaption>When you realize your data isn’t GDPR compliant</figcaption></figure><p><strong>Managing</strong></p><p>Includes: storage, querying, sampling, augmenting, curating</p><p><em>Model-centric perspective: Querying and slicing data in efficient ways is not necessary, I will use a fixed set of data and labels for everything because my focus will be on improving my model parameters.</em></p><p><em>Data-centric perspective: Data retrieval and manipulation needs to occur frequently and efficiently as we will be iterating through many permutations and transformations of the data.</em></p><p>Once you have found a supply of data, the next natural step is finding a way to effectively manage it. Data management is an undervalued component in the AI development stack because it is a task of messy engineering rather than idealized mathematical formulations. The issue we find is that data systems are often designed by data <em>scientists</em>, not by data <em>engineers</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/358/1*ZSfnRKC1GQbR8CE-MZDP5w.gif" /><figcaption>Typical looking pipeline built by data scientists</figcaption></figure><p>The number of times we have seen annotations in text files dumped in random S3 folders is larger than we would like to admit. This is largely due to a philosophy that if data is in a place that is accessible by <em>some</em> method, it should be fine. This lack of flexibility slows down the data-centric development process by disallowing experimentation due to inefficient data access.</p><p>A data-centric approach maps out management solutions from the beginning of the projects and makes sure all valuable utilities are included. Sometimes that might be finding ways to create more data through augmentations, sometimes it might be finding ways to get rid of data through sampling and pruning. Within the Large Hadron Collider(probably the most sophisticated data collection device on the planet) for instance, over 99.99% of the data is thrown away and never analyzed. This is not done randomly, of course, but is part of the careful management of a system that produces around 100 petabytes a year.</p><p>From a practical perspective, this means investing in data engineering <em>early</em>. This can be in talent, or in external solutions, just make sure to future-proof your data systems, and don’t leave it to the hands of a math PhD(said by a former physics PhD).</p><p><strong>Annotating and Reviewing</strong></p><p>Includes: schema specification, pipeline design, manual and automated labeling, label and model evaluation</p><p><em>Model-centric perspective: Get to model development quicker by using an open source labelled dataset, or, if one is not available for your problem, pay a bunch of people to label stuff and now you have labels you can use forever.</em></p><p><em>Data-centric AI: Annotation is a continuous process and should be informed by model performance.</em></p><p>The biggest misconception about annotation is that it is a one-off process. The model-centric view is you create a static set of labels for a project and then build a production model by optimizing parameters and hyper-parameters through permutations of train, test, and validation sets of these labels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vBFmYLX80n-i9vx44bKOmQ.png" /><figcaption>Example annotations of people</figcaption></figure><p>It is clear where this perception originates. This is the standard operating procedure for much of academic AI work as academics lean on benchmark datasets to compare their results against the corpus of existing work run on the same datasets. This falls dangerously short however for practical applications. The real world unfortunately does not look like ImageNet. It is a mess of dynamic and imperfect data.</p><p>The only way to sort out the messiness of the real world is maintenance. Continuous annotation is the maintenance layer of AI. Robust annotation pipelines are iterative and contain flows that include not just one-off annotation, but strong review processes to ensure ground truth quality and input from existing models and intelligence. This facilitates continuous learning on your system, where models can adapt with the flow of new labels and data. The most maintainable AI systems are designed such that they can accommodate these continuous processes and make the most of these active learning pipelines.</p><p>The other consideration with respect to industrial AI is that intellectual property can be developed at the labelling step itself. In the world of data-centric AI, the label structures you use are in themselves architectural design choices that may give your system competitive advantages. Using common ontologies or open source labels nullifies this potential advantage. These choices are difficult to make a priori and often require some empirical analysis to get right. Thus, similar to how annotation pipelines should be iterative, converging on the right label structure should itself also be an iterative process guided by experimentation.</p><p><strong>Training</strong></p><p>Includes: Data splitting, efficient data loading, training and re-training, active learning</p><p><em>Model-centric AI: I trained my model and see the results in Weights and Biases! Hmm, they don’t look good, let me write some code to fix it.</em></p><p><em>Data-centric: I trained my model and see the results in Weights and Biases! Hmm, they don’t look good, let me check my dataset to see what’s wrong.</em></p><p>The model training and validation processes look very similar for both model-centric and data-centric approaches. The major difference is the first place a data scientist looks when they go to improve performance. A model-centric view will unsurprisingly check the model. <em>Is there a bug in the model code? Did I use a wide enough scope of hyper parameters? Should I turn on batch normalization?</em> A data-centric view will (also unsurprisingly) focus on the data. <em>Did I train on the right data? Is this failing for specific subsets of the data? Are there errors in my annotations?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/220/1*GrlA25tZDL0DJB5R2npp5g.gif" /><figcaption>When (model) training goes wrong</figcaption></figure><p>The actionable insight here is that when ideating on potential performance improvements post training, <em>start</em> with the data. Sub-optimality can of course originate from a wide menu of causes, but the thesis of data-centric AI is that to build sustainable high-performing AI systems, much more care needs to go into getting the data layer right. Failure modes in this domain can be quite subtle, so careful thought is often required and can lead to deeper insight and understanding of the problem space. Because it is subtle, debugging your data after training also requires lining up all of the above steps of the SMART pipeline correctly. And like most of the other steps, training is not a one-off process in the pipeline, but dynamic and iterative and feeding the other steps. Training is not the end of a linear pipeline, only the middle of a circular one.</p><p><strong>Conclusion</strong></p><p>To summarize, for more effective data-centric AI:</p><ul><li>Find clever ways to source your data</li><li>Invest in good data engineering resources for dataset management</li><li>Setup continuous annotation generating and monitoring pipelines</li><li>Think about debugging your data first, before your models</li></ul><p>While seemingly obvious, there are no shortage of companies that we have seen that fail to think about many of the points above. They don’t realize that they don’t necessarily need to have smarter or more sophisticated models than their competitors, they just need better data than they do. While probably not as ostensibly fun as reading a paper about the latest model that improved on an open source benchmark, a data-centric approach is our best bet to make AI a practical reality for the everyday world.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9b187a1bd412" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/data-centric-ai-practical-implications-with-the-smart-pipeline-9b187a1bd412">Data-centric AI: Practical implications with the SMART Pipeline</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why running a startup is like playing in Squid Game]]></title>
            <link>https://eric-landau.medium.com/why-running-a-startup-is-like-playing-in-squid-game-4ca6255926ab?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4ca6255926ab</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Wed, 19 Jan 2022 12:15:56 GMT</pubDate>
            <atom:updated>2022-02-03T12:10:06.659Z</atom:updated>
            <content:encoded><![CDATA[<p><em>This article comes from my experiences co-founding </em><a href="http://encord.com/"><em>Encord</em></a><em>. Spoilers ahead for the most watched Netflix series of last year. Although if you are getting spoilers from this article, you probably don’t care about spoilers.</em></p><p>It sounds odd, but there might not be a better approximation of what it’s like running a new technology company than the hit 2021 Netflix series <em>Squid Game</em>. The trials and tribulations faced by the contestants of the show are strangely analogous to those faced by the typical startup, albeit in a very different context. Both face exceedingly small chances of survival, with less than 1/100 VC backed startups making it to IPO and only 1/456 contestants making it to the end of the season. Also, not unlike the show’s characters, startups often have great difficulty making money in the real world.</p><p>We will go through the various challenges of <em>Squid Game</em> and show how these relate to practical problems facing every startup. Unlike in <em>Squid Game</em>, in the startup world these challenges are not dealt with sequentially, but concurrently. This makes them that much more difficult to navigate.</p><p><strong>Red Light/Green Light (Fundraising)</strong></p><p>Going through the fundraising gauntlet can be brutal. One key reason is that investors are mostly looking for a reason to say <em>no</em> to your startup rather than <em>yes</em>. Seeing so many opportunities everyday, investors have to come up with heuristics they can use to pass and quickly move on from deal to deal. The questions they ask thus act as a type of gating mechanism, where even a single answer can filter out a company for consideration.</p><p>The net effect of this dynamic is that as a founder pitching, you are hoping that you don’t say even one wrong thing to disqualify your company. It’s like playing Red Light/Green Light in <em>Squid Game</em> and making one tiny move after hearing “Red Light.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*9XLG79SAJtCLXlhwSZOUYg.gif" /><figcaption>Didn’t give a good answer on the market size question</figcaption></figure><p>Even after getting meetings and passing through pitches, investors will make holistic evaluations of companies before deciding to invest. Failure can happen at any point in the process(including after getting a term sheet, although this is rare). You have not completed the challenge until money has actually cleared into the company account. And even then, this is only the beginning of bringing your startup to success.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/1*WUgfPcX2RaUK5VI_H2Dfvg.gif" /></figure><p><strong>Cookie Cutting(Product Development)</strong></p><p>There are only two fundamental requirements a product needs to fulfill for viability: it needs to do something valuable and it needs to work. Often these requirements are in tension with each other. A natural temptation is to pepper a product with more and more features to increase its value and hope that more people will use it. This, however, introduces development and maintenance burdens and bug potential at a faster rate than the increase in feature number.</p><p>This point is demonstrated beautifully in the cookie cutting challenge in <em>Squid Game</em>. The simpler the shape, the easier the challenge. The simpler the product, the easier it is to build and maintain. <strong>Simpler products break less</strong>. If you want to build an umbrella you are opening yourself up to many more failure modes than if you build a circle. Thus, build circles, not umbrellas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/696/1*CWvAGVtDZ6ZQrDm-4UOV9w.jpeg" /></figure><p>When going through <a href="https://medium.com/swlh/what-i-learned-from-my-first-month-at-y-combinator-5b35fb9ebb7b">Y Combinator</a>, I heard the importance of <em>focus </em>reiterated<em> </em>many times. It is critical to focus as a startup. I interpreted that this focus was for the sake of simplifying and optimizing a go-to-market motion where you can tailor your messaging and target a narrower set of companies for finding initial product market fit. This is true, but I neglected the product component to the point.</p><p>The less targeted and focused a product is, i.e. the more features and use cases it accommodates, the more complex the maintenance surface is and the more resources it requires to get right. Complexity makes it very easy to get lost in the morass of the product development cycle and can distract from solving other problems. For both <em>Squid Game</em> and startups, simplicity is key, simplicity gets you to the next round.</p><p><strong>Tug of War(Building a Team)</strong></p><p>The most important component of a company is the team and there are two(not mutually exclusive!) strategies of making an effective team. You can hire the best and greatest and/or you can put together a team where everyone is pulling in sync in the same direction.</p><p>Again, this is demonstrated with metaphorical clarity in <em>Squid Game</em> with Tug of War. Our hero, Gi-Hun, finds himself in a suboptimal team playing in a game where the sum of raw strength seems the only relevant factor for success. They face up against what looks like a massively stronger team on the other side and seem doomed to failure. The one advantage, however, is that they come equipped with a strategy that they all commit to following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3TUhupKRHrXEyJm9SguOQ.png" /><figcaption>Dev team deploying to production</figcaption></figure><p>This metaphor works on two levels. Their initial strategy keeps them alive for the first burst of activity and gives them confidence they can compete against the other ostensibly stronger team. Later, when they start waning they also come up with an ingenious tactic to step forward and throw the other team off balance. This shows great teams don’t just follow one static plan, but also communicate and improvise in unison. As a startup navigating uncertain environments, the ability to adapt and adjust across the organization is crucial. To do this, <strong>communication channels must be open</strong>. If a team can’t communicate and coordinate, an accumulation of talent will not amount to much.</p><p><strong>Marbles(Making Difficult Choices)</strong></p><p>The most emotionally wrenching challenge from the show was the marble game. This section saw the characters make difficult sacrifices and dubious choices with respect to other characters. Although not as dramatic, this does reflect the sometimes difficult personal choices that you have to make running a startup. Social calendars get wiped out, working hours extend, and tough choices must be made. These types of trade-offs are not for everyone, and really shouldn’t be.</p><p>While glamourized in a current bonanza fundraising environment, startup founders often do not live healthy, well-rounded lives. I have heard no shortage of stories of founders maxing out their credit cards, moving back in with their parents, or firing their best friends. This is not to say that these choices or sacrifices are necessary(certainly they are not preferable), but they are the simple reality for many. <em>Squid Game</em> captures this regrettable reality.</p><p><strong>Crossing the Bridge(Taking Risks)</strong></p><p>While effective dramatically, the least personally satisfying game of the show was bridge crossing. It was a game of pure luck, requiring no mental or physical skill. Unfortunately, this too has an analogue within the startup world. Sometimes, no matter what you do, how well you execute, and how strong your team, you can just get unlucky.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*IcM5QnaprwpIAIcZuhSDYw.gif" /></figure><p>The startup world is inherently risky, and comes loaded with a stack of implicit bets that you must make.<em> Is this market going to grow, is this solution the right one, are you too early, are you too late?</em> You are not guarded against force majeure as you would be in a large robust and established institution. There are just too many factors that are out of your control. You simply have to jump from platform to platform, and hope.</p><p><strong>Squid Game(Competition)</strong></p><p>The most individually competitive game in the series is the final challenge, the eponymous squid game. With a startup, competition will of course be a factor. If you don’t have any competition that is most likely a sign that you have chosen the wrong problem to solve. As Paul Graham has written:</p><blockquote>If you make anything good, you’re going to have competitors, so you may as well face that. You can only avoid competition by avoiding good ideas.</blockquote><p>All of the major tech giants that we know today started in massively competitive markets. It would have been easy to dismiss Google in the late 90s as just another search engine in an ocean of many.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdqnhAVmgvXDUc2nYV7gbA.png" /><figcaption>The iSmell, a device that could emit odors from your PC, had no competitors</figcaption></figure><p>But like with <em>Squid Game</em>, overcoming competition is only a small element of success. Based on elimination numbers, getting through <em>Squid Game</em> was far less about competing against others, and much more about individual skill and luck.</p><p>This aligns with the opinion that competition is greatly over emphasized in the startup world as a failure mode. A startup is more more likely to die from self-inflicted wounds that it is from competition. The emphasis should always be about solving a real problem, not beating competitors.</p><p>One final point is that nowhere in the <em>Squid Game</em> rules did it list the game as being winner-take-all. There may have been an alternative configuration where multiple contestants won the final prize and split it amongst themselves. This is how most markets actually operate. With a big enough pie, winnings can be shared.</p><p><strong>Conclusion</strong></p><p>While being a hugely entertaining show, Squid Game also offers many lessons for entrepreneurs embarking on the dangerous journey of starting a company. Perhaps with the next season we can continue the learning, and also find out more about the shadowy puppet master behind the entire operation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/660/1*uubp4hGhADjGX8QrSKGGEg.jpeg" /></figure><p><em>To get future updates on stories, subscribe </em><a href="https://encord.com/subscribe"><em>here</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4ca6255926ab" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to micro-models or: how I learned to stop worrying and love overfitting]]></title>
            <link>https://eric-landau.medium.com/introduction-to-micro-models-or-how-i-learned-to-stop-worrying-and-love-overfitting-fd8fbe98e99b?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/fd8fbe98e99b</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data-labeling]]></category>
            <category><![CDATA[machine-learning]]></category>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Thu, 05 Aug 2021 10:53:59 GMT</pubDate>
            <atom:updated>2022-02-03T12:12:26.963Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The purpose of this post is to introduce the “micro-model” methodology we use at </em><a href="https://encord.com/"><em>Encord</em></a><em> to automate data annotation. We have deployed this approach on computer vision labelling tasks across a wide range of domains including medical imaging, agriculture, autonomous vehicles, and satellite imaging.</em></p><p><strong>TLDR;</strong> <strong>What</strong>: Low bias models applied to a small domain of a data distribution. <strong>How</strong>: Overfitting deep learning models on a handful of examples of a narrowly defined task. <strong>Why</strong>: Saving hundreds of hours of hand labelling.</p><p><em>How much data do you need to build a model that detects Batman?</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*cnZnfhAe73fbWq5GMEa9bw.gif" /><figcaption>Dark Knight vision</figcaption></figure><p>This of course depends on your goal. Maybe you want a general purpose model that can detect the Batmen of Adam West, Michael Keaton, and Batfleck all in one. Maybe you need it to include a Bruce Wayne detector that can also identify the man behind the mask.</p><p>But if you want a model that follows the Christian Bale Batman in one movie, in one scene, the answer is…<strong>five labelled images</strong>. The model used to produce the snippet of model inference results above was trained with the five labels below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SxWjuSGImY2RJvO3Hc9Ltg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ixK0OwrpwpfnVc6i2HevPg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mvYXHR1hTqsr9HceQDDIyA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qWPXu_WqxlAbl8CaIwIN1A.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*rJwvl20V8fWfgZn0syIP1A.png" /><figcaption>The five labels used to train the micro-model</figcaption></figure><p>Now, does this answer the initial question? This model is only a <em>partial</em> Batman model. It doesn’t perform that well on the Val Kilmer or George Clooney Batmen, but it is still functional with a specific use case. We thus won’t call it a Batman model, but instead a Batman <strong>micro-model</strong>.</p><p><strong>Origins</strong></p><p>We started using micro-models in the early days of Cord when our focus was purely on video data. We stumbled upon the idea when trying out different modelling frameworks to automate the classification of gastroenterology videos (you can find more about that <a href="https://eric-landau.medium.com/pain-relief-for-doctors-labelling-data-72f3e5e31c92">here</a>). Our initial strategy was to try a “classical” data science approach of sampling frames from a wide distribution of videos, training a model, and then testing on out-of-sample images of a different set of videos. We would then use these models and measure our annotation efficiency improvement compared to human labelling. We realized in experiments, however, that a classification model trained on a small set of intelligently selected frames from <em>only one</em> video already produced strong results. We also noticed that as we turned the number of epochs up, our annotation efficiencies got higher.</p><p>This was contrary to what we knew about good data science; we were grossly overfitting a model to this video. But it worked, especially if we broke it up such that each video had its own model. We called them micro-models. While this was for video frame classification, we have since extended the practice to include tasks such as object detection, segmentation, and pose estimation.</p><p><strong>What are micro-models exactly?</strong></p><p>Most succinctly, <strong>micro-models are annotation specific models that are overtrained to a particular task or particular piece of data</strong>. They are <em>purposefully</em> overfit models such that they don’t perform well on general problems, but are very effective in automating one aspect of your data annotation. They are thus designed to only be good at one thing. To use them in practice, we ensemble many together to automate a comprehensive annotation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*3FnzdWCX74VhpTj4smnN4w.png" /></figure><p>The distinction between a “traditional” model and a micro-model is not in their architecture or parameters, but in their domain of application, the counter-intuitive data science practices that are used to produce them, and their eventual end uses.</p><p><strong>1-dimensional labelling</strong></p><p>To cover <em>how</em> micro-models work, we will take a highly simplified toy model that can give a clearer insight into the underpinnings beneath them. Machine learning at its core is curve-fitting, just in a very high dimensional space with many parameters. It is thus instructive to distill the essence of building a model to one of the simplest possible cases, one-dimensional labelling. <strong>The following is <em>slightly</em> more technical, feel free to skip ahead.</strong></p><p>Imagine you are an AI company with the following problem:</p><ul><li><em>You need to build a model that fits the hypothetical curve below</em></li><li><em>You don’t have the x-y coordinates of the curve and can’t actually see the curve as a whole, you can only manually sample values of x and for each one you have to look up the corresponding y value associated with it (the “label” for x).</em></li><li><em>Due to this “labelling” operation, each sample comes with a cost</em></li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/971/1*2aoQXHsti6q6bQBTV1wMww.jpeg" /></figure><p>You want to fit the whole curve with one model, but it is too expensive to densely sample points to do so. What strategies can you use here?</p><p>One strategy is fitting a high degree polynomial to some initial set of sampled points across the domain of the curve, re-sampling at random , evaluating the error, and updating the polynomial as necessary. The issue is that you will have to re-fit the whole curve each time new sample points are checked. Every point will affect every other. Your model will also have to be quite complex to handle all the different variations in the curve.</p><p>Another strategy, which resolves these problems, is to sample in a local region, fit a model that approximates just that region, and then stitch together many of these local regions over the entire domain. We can try to fit a model to just this curved piece below for instance:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/972/1*bHFK2oz15n0FEiyebJ3YxA.jpeg" /></figure><p>This is <em>spline interpolation</em>, a common technique for curve-fitting. Each spline is purposefully “overfit” to a local region. It will not extrapolate well beyond its domain, but it doesn’t have to. This is the conceptual basis for micro-models, manifested in a low dimensional space. These individual spline units are analogous to “micro-models” that we are using to automate our x-value labelling.</p><p>The more general case follows similar core logic with some additional subtleties(like utilizing transfer learning and optimizing sampling strategies). To automate a full computer vision annotation process, we also “stitch” micro-models together like an assembly line. Note, ensembling weak models together to achieve better inference results is an idea that has been around for a long time. This is slightly different. We are not averaging micro-models together for a single prediction, we let each one handle predictions on their own. Micro-models are also not just “weak learners.” They just have limited coverage over a data distribution and exhibit <strong>very low bias</strong> over that coverage.</p><p>We are leveraging the fact that during an annotation process, we have access to some form of human supervision to “point” the models to the correct domain. This guidance over the domain of the micro-model allows us to get away with using very few human labels to start automating a process.</p><p><strong>Batman Efficiency</strong></p><p>Models can be defined based on <em>form </em>(a quantifiable representation approximating some phenomena in the world) or on <em>function </em>(a tool that helps you do stuff). My view leans toward the latter. As the common quote goes:</p><blockquote>All models are wrong, but some are useful.</blockquote><p>Micro-models are no different. Their justification flows from using them in applications along a variety of domains.</p><p>To consider the practical considerations of micro-models with regards to annotation, let’s look at our Batman example. Taking fifteen hundred frames from the scene we trained our model on, we see that Batman is present in about half of them. Our micro-model in turn picks up about 70% of these instances. We thus get around <strong>five hundred</strong> Batman labels from only <strong>five</strong> manual annotations.</p><p>There are of course issues of correction. We have false positives for instance. Consider the inference result of one of the “faux” Batmen from the scene that our model picks up on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SXFfGRgf3qYJPz8M7di5aA.png" /><figcaption>I’m (not) Batman</figcaption></figure><p>We also have bounding boxes that are not as tight as they could be. This is all, however, with just the first pass of our micro-model. Like normal models, micro-models will go through a few rounds of iteration. For this, active learning is the best solution.</p><p>We only started with five labels, but now with some minimal correction and smart sampling, we have more than five hundred labels to work with to train the next generation of our micro-model. We then use this more powerful version to improve on our original inference results and produce higher quality labels. After another loop of this process, when accounting for number of human actions, including manual corrections, our Batman label efficiency with our micro-model gets to over 95%.</p><p><strong>Added Benefits</strong></p><p>There are some additional points to consider in evaluating micro-models:</p><ol><li><strong>Time to get started</strong>: You can start using micro-models in inference within five minutes of a new project due to requiring so few labels to train.</li><li><strong>Iteration time</strong>: A corollary to the speed of getting started is the short iteration cycle. You can get into active learning loops that are minutes long rather than hours or days.</li><li><strong>Prototyping: </strong>Short iteration cycles facilitate rapid model experimentation. We have seen micro-models serve as very useful prototypes for the future production models people are building. They are quick checks if ideas are minimally feasible for an ML project.</li></ol><p><strong>Data-oriented Programming</strong></p><p>While we have found success in using micro-models for data annotation, we think there is also a realm of possibility beyond just data pipeline applications. As mentioned before, AI is curve fitting. But even more fundamentally, it is getting a computer to do something you want it to do, which is simply programming. It is just a form of programming that is statistically rather than logically driven.</p><p>“Normal” programming works by establishing deterministic contingencies for the transformation of inputs to outputs via logical operations. Machine learning thrives in high complexity domains where the difficulty in logically capturing these contingencies is supplanted by learning from examples. This <em>statistical</em> programming paradigm is still in its infancy and hasn’t developed the conceptual frameworks around it for robust practical use yet.</p><p>For example, factorization of problems into smaller components is one of the key elements to most problem solving frameworks. The object oriented programming paradigm was an organziational shift in this direction that accelerated the development of software engineering and is still in practice today. We are still in the early days of AI, and perhaps instantiating a <strong><em>data-oriented programming</em> </strong>paradigm is necessary for similar rapid progression.</p><p>In this context, micro-models might have a natural analogue in the object paradigm. One lump in a complex data distribution is an “object equivalent” with the micro-model being an instantiation of that object. While these ideas are still early, they coincide well with the new emphasis on <em>data-centric AI</em>. Developing the tools to orchestrate these “data objects” is the burden for the next generation of AI infrastructure. We are only getting started, and still have a long way to go.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fd8fbe98e99b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Announcing our $4.5 million seed round led by CRV]]></title>
            <link>https://eric-landau.medium.com/announcing-our-4-5-million-seed-round-led-by-crv-e4f4e54322d7?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4f4e54322d7</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Tue, 15 Jun 2021 18:30:31 GMT</pubDate>
            <atom:updated>2021-06-15T18:30:31.642Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Today, we are thrilled to publicly launch Cord and announce our $4.5M seed round led by CRV and including the Y Combinator Continuity Fund, WndrCo, Crane Venture Partners, Harvard Management Company, and Intercom.</em></p><p>When we first started Cord a little more than a year ago, we thought about how similar the state of AI was to the early days of computing and the internet. The potential of the technology was in full sight but the tools and processes surrounding it left much to be desired. Before starting the company, we experienced firsthand how the lack of tools to prepare quality training data was impeding the progress of building practical AI applications for everyone besides large tech companies. We wanted to de-FAANG AI by making access to quality training data available beyond Silicon Valley. With enterprises across every industry now evaluating AI as a core part of their business (over half deploying AI applications now compared to only 27% in 2019!), we think the time is right.</p><p>The challenge was to avoid being another data labelling service. Other platforms have done an excellent job making sure your data gets to the right outsourced provider and back to you with newly minted bounding boxes. But what if you cannot send your data externally, perhaps for privacy or security reasons? What if you need someone with special knowledge — say, a doctor — to label the data? (A pedestrian is easily recognizable; a polyp, not so much.) What if you cannot afford to pay an expensive expert to label video frames for 100s of hours so that you have sufficient data to train your model? Or an even simpler problem: what if you get back your labelled data from an outsourced workforce and realize you also need to label ‘table’ as well as ‘chairs’ — do you send it back and pay another fee? The only effective way to solve all these problems at once was automation. Our combined experience in research and building thousands of models was the foundation for developing a solution.</p><p>Cord is the only company that can automate labelling using our deeply technical approach, starting in computer vision. Our customers choose us because our novel algorithmic solution makes the annotation process orders of magnitude faster and cheaper, while allowing them to retain 100% control of their data.</p><p>Stanford Medicine’s Division of Nephrology chose Cord because we increase efficiency without sacrificing accuracy. In one lab, they conducted experiments five times faster while processing three times the number of images.</p><p>Another healthcare use case came out of <a href="https://eric-landau.medium.com/pain-relief-for-doctors-labelling-data-72f3e5e31c92">our published research</a> alongside King’s College London. We worked with collaborators Dr. Bu Hayee and Dr. Mehul Patel to annotate colonoscopy videos, which have relevant applications in cancer incidence. Since “colonoscopy” does not in itself inspire further reading, we’ll skip to the result: compared to open-sourcing labelling standard CVAT, Cord demonstrated an up to 16x increase in labelling efficiency, with our micro-models achieving &gt; 97% accuracy for bounding box placement. <a href="http://thieme-connect.com/products/ejournals/html/10.1055/a-1373-4799">An editorial in Endoscopy International Open</a> cited our paper when discussing the potential of AI to reduce cancer-related mortality, reminding readers that “time is life!” By using Cord, doctors can focus their time on saving patients rather than drawing boxes.</p><p>Our team at Cord has been fortunate to work not only with healthcare innovators, but also with teams building applications in agriculture, autonomous vehicles, and retail. We are working at the vanguard of the latest AI technologies to facilitate the most efficient training data creation possible, regardless of the industry.</p><p>What is next? First and foremost, we are hiring. Take a look at our open roles <a href="https://angel.co/company/cord-9">here</a> or email us at hello@cord.tech. We have an ambitious vision and we need to build a world class team to take advantage of this enormous opportunity. We’re humbled to already work with some of the best, including lead investor <strong>Anna Khan</strong>, General Partner, at CRV and our core group of experienced, supportive investors.</p><p>And of course, if you are building AI applications, we would love to work together. Take a look at our article <a href="https://becominghuman.ai/label-a-dataset-with-a-few-lines-of-code-45c140ff119d">Label a Dataset with a Few Lines of Code</a> to get a flavour for algorithmic labelling on real-world examples, and start using our platform today by booking a demo <a href="http://cord.tech/">here</a>.</p><p>Eric &amp; Ulrik</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/525/1*1z-d5T6Hq7455d4GOIp1YA.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4f4e54322d7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What I Learned From My First Month at Y Combinator]]></title>
            <link>https://medium.com/swlh/what-i-learned-from-my-first-month-at-y-combinator-5b35fb9ebb7b?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/5b35fb9ebb7b</guid>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[ycombinator]]></category>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Wed, 03 Feb 2021 19:18:00 GMT</pubDate>
            <atom:updated>2022-02-03T12:14:10.409Z</atom:updated>
            <content:encoded><![CDATA[<p><em>For context, I am a cofounder of </em><a href="https://encord.com/"><em>Encord</em></a><em>, a company in the current winter 2021 batch. We are focused on building software to improve data labelling for computer vision.</em></p><p>Before writing this I reviewed as many posts I could find(without having to go past the first page of Google) from people writing about their YC experience. There were fewer than I expected. Most people talk about interviewing and how to get in, which is probably the wider point of interest. I didn’t want this post to be redundant, so I decided to avoid talking about anything that collided with the bulk of the points from these posts, and there are many. Think of this as a second order approximation to lessons from YC.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qGmr8vAbBlGa3b0KSCIm4A.png" /><figcaption>Word cloud from previous YC posts I reviewed</figcaption></figure><p><strong>First Order Lessons</strong></p><p>I’ll go ahead and summarise the top lessons from the other posts here, but you should read them. I’ve included the list at the bottom. They are well written, and the lessons are more generally applicable than in this post. They are (roughly):</p><ul><li><strong>Y Combinator is not like school, there is no set track to follow</strong></li><li><strong>You get out what you put in so work hard and embrace the grind</strong></li><li><strong>Think big, aim high</strong></li><li><strong>Maximise your use of the resources available to you, mostly your peer and mentor networks</strong></li><li><strong>Get feedback early and often from your users</strong></li><li><a href="http://paulgraham.com/ds.html"><strong>Do things that don’t scale</strong></a></li><li><strong>Advice is often contradictory, use your own judgment</strong></li></ul><p>I want to dwell on the last point a little bit. My opinion is that advice should come with error bars. You have to weigh the advice you get by the distance of the advisor to your particular situation. If I asked Hafþór Júlíus Björnsson what the path to success looks like, he would probably tell me it’s in lifting weights. That would…not be the best way for me.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/800/1*jowug6HznNzilzKdu9qD4w.jpeg" /><figcaption>My startup mentor</figcaption></figure><p>At YC you get a lot of advice, but I find that the usefulness of advice is inversely proportional to the size of the audience that is receiving it. Advice from batch-wide events is not as relevant as what we get from our group partners in office hours. Think of the error bars as shrinking with how directed it is and also by how many times you have heard it from independent sources.</p><p>With that said, take everything I write here with error bars, large ones. The lessons are both a mix of what I have heard explicitly from YC speakers and conclusions from my own experiences during the last month. They are both abstract and actionable. They also could just be wrong.</p><p>The flip side is that most of this might be obvious. It just wasn’t to me. I could have been missing some basic stuff that it only took YC to elucidate.</p><p><strong>Sales is Search</strong></p><p>I don’t know why it took me so long to realise, sales is not (mostly) a persuasion problem, it is (mostly) a search problem. It is about finding the person that has the problem you are trying to solve. Ads in that sense are like autonomous search agents rather than units of persuadability.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/400/1*lT_VmogR3i6K2Bls4-T8AQ.gif" /><figcaption>This is not SaaS sales</figcaption></figure><p>As a startup you don’t have a much better search algorithm than just brute forcing it. So you need to send emails. A lot of emails. I had an idea for this before YC, but I was an order of magnitude off. Instead of sending dozens of emails a week, you have to send hundreds.</p><p>The corollary to this is that you want to make it easy for people to find you. Inbound is much more efficient than outbound from a sales conversion perspective because the person that is reaching out has already passed a bunch of filters that an outbound contact has not. This means that you should launch your product early, and launch it often. You want to give people a chance to find <em>you</em>.</p><p><strong><em>Actionable</em></strong><em>: Get your product out there for people to easily find. Otherwise, up your email numbers by an order of magnitude.</em></p><p><strong>Look for No</strong></p><p>Time is precious, so a no is valuable. It’s why Nigerian scammers make their emails look <a href="https://www.businessinsider.com/why-nigerian-scam-emails-are-obvious-2014-5">fake</a>. It’s because if you fall for it, you are likely gullible enough to fall for the entire scam. That saves them a lot of time wading through false positives. For a startup, a “no” both frees your time and provides a learning opportunity. It tells you what your product is missing and who your true customers are.</p><p>A “yes”, on the other hand, is not a singular event. In SaaS sales “yes” is actually a funnel of yeses(plural yeese?) that you have to elicit to eventually end in a contract. If you are not making progress moving down this funnel, then you are probably wasting your time. A “no” saves you from having to figure that out for yourself. Thus, the order of preferred customer response is: yes &gt; no &gt; don’t respond &gt; maybe. Yes is best, but no is for pros.</p><p><strong><em>Actionable</em></strong><em>: Try to get a commitment from customers one way or the other and don’t make your product something it is not. Accept the no and move on.</em></p><p><strong>You are Boring the Customer</strong></p><p>Clients don’t care about your product, they care about the solution to their problem. Show the clients how your product is that solution. That means listening to them.</p><p>Before this month, I was talking a lot during customer calls and demos. I was trying to show as many features as I could from the product. It is natural to do that, because you personally find it cool how you solved all the difficult problems to get these features working. You think that if you show them a bunch of neat bells and whistles, they will be more impressed with the product.</p><p>But the truth is that the customers just want to know how you can help them, and not much else. You don’t have to show them a feature that you think is awesome if it is not relevant to them. Otherwise you run the risk of boring them, which I now realise I was probably doing.</p><p><strong><em>Actionable</em></strong><em>: Talk 40%</em>*<em> less in demos.</em></p><p><strong>YC Relativity</strong></p><p>Not much to add on the personal side over what most posts have already said. The only interesting tidbit is our relationship with time. On one side you are so busy and working such long hours that it seems like every day just drags on endlessly. On the other hand, you constantly feel like you are behind and have to catch up with everything you have to do. You are racing against the week, but it is taking forever. The most apt analogy is the feeling you get on the last 100 meters of a 400 meter sprint. You are moving the fastest you can, but you <em>feel</em> very slow and weighed down.</p><p>There is another related phenomenon that is akin to time dilation in special relativity, a disconnection of subjective time from calendar time. You are in a startup that is a rocket moving through “traction space”, where your subjective feeling of progress is benchmarked by changes there rather than the days of the week. The faster the ship goes, the more you become dislocated from the external contextual markers that feedback into your normal perception of time. Combining all that together and the last month has felt like a day, and a year.</p><p><strong>Failure &gt; Success</strong></p><p>One thing I found from listening to all the talks is that I learn more from the stories about failure than the ones about success. Success stories are for inspiration, but failure is for education. The most effective talks are the melding of the two, where people talk either about how their failure turned into success or their success turned to failure. They give a nice A/B test over someone’s career.</p><p>The problem I have with pure success stories goes back a bit to error bars on advice. They are rare cases, likely not statistically significant and difficult to reverse engineer. It’s like trying to figure out how to get rich from talking to a bunch of lottery winners; you will probably come away with a lot of errant conclusions. Not to say people that have built great startups are only just lucky, just that I am suspicious of extrapolating lessons from them because we are not seeing the rest of the sample. A much more informative frame is to talk to a bunch of lottery <em>players</em>. Only then do you learn that playing the lotto is a terrible idea(like starting a startup).</p><p>The other reason is that I feel like it is easy for someone successful to mis-attribute the determinants of their own success. For one, they are probably still associated to the entity that made them successful so they might be attached to a narrative and might not have very clear incentives. There is also not that much <em>reason</em> for them to truly understand it, because things are working. In contrast, a smart, introspective founder that has undergone failure is under a lot more evolutionary pressure to learn from it and synthesise the experience into clear actionable lessons. Hearing about those experiences have personally been a lot more useful for guiding the trajectory of our company. When it comes to hearing a story about a startup that rocketed to unicorn land in a year versus the one that died in the garage, I’ll take the garage.</p><p><strong>It’s a Business, stupid</strong></p><p>People often see their startups as movements, or lifestyles, or disruptions to the status quo, or solving AI, or under some other grandiose perspective. But first and foremost, a startup is a business. That just means it should sell something that people want to buy. Like an ice cream stand. If YC has instilled one thing and only one thing in me so far, it’s the importance of looking at our company from this lens. It has been very useful to strip the pretensions around our startup and just focus on delivering a product that people want. That’s it, simple as that.</p><p>This is underscored by the concept of product market fit. This has been mentioned in other posts, but I wanted to go over it again because of how strongly it has been emphasised during the last month. I didn’t truly understand the definition before YC, now I do.</p><p>So, what is product market fit? The best description is from a paraphrase from Emmett Shear of Twitch(a YC company):</p><blockquote>Before product market fit it feels like you are rolling a boulder uphill, after you have product market fit it’s like you a chasing it downhill.</blockquote><p>Put differently from Dalton Caldwell(one of our group partners):</p><blockquote>You know you have product market fit when growth is no longer you biggest problem.</blockquote><p>Product market fit is the validation that you have created something that people actually want.</p><p>It’s so important that multiple people have described a startup as existing in only two regimes, before PMF and after PMF. I have seen it myself in talking to founders on both sides of it. Founders before PMF sound down and unconfident. After, they are hectic and frenzied, trying to figure how to keep up with that boulder. In a sense, a startup is like a manic-depressive. Before PMF it is in the depressive stage, filled with existential angst over its place in the world, not sure if it should keep going on or not. After, it is manic, trying to productively focus its flailing energy and not harm itself in the process. Your first goal as a startup is to go from being depressive to being manic.</p><p><strong>Long Way to Go</strong></p><p>That’s the first month. It has been quite an experience thus far, even though it has been remote. I wanted to write this post while still early in the batch so that my mental narrative of the program hadn’t been consolidated in any way by hindsight and the eventual actual trajectory of Encord. Writing in the present is foggy, but history is hindsight, and thus history is hindsight bias. It’s like someone talking about a maze from a bird’s eye view versus from within the maze itself. We are in the maze now. Hopefully we will make it out.</p><p>*<em>Or some other significant number</em></p><ul><li><a href="https://blog.close.com/mindset-yc-waste-of-time/">Y Combinator is a waste of time-unless you do THIS</a></li><li><a href="https://blog.useproof.com/is-y-combinator-worth-it">Is Y Combinator Worth It? A Founder&#39;s Experience - Proof Blog</a></li><li><a href="https://drodio.com/our-ycombinator-experience/">Is Y Combinator worth it?</a></li><li><a href="https://www.forbes.com/sites/quora/2018/04/25/what-i-learned-from-my-y-combinator-experience/?sh=890c49b1e93a">What I Learned From My Y Combinator Experience</a></li><li><a href="https://medium.com/@cphftw/4-lessons-we-learned-from-y-combinator-55a1db467e68">4 lessons we learned from Y Combinator</a></li><li><a href="https://tieshunroquerre.com/blog/yc-learnings">What I Learned Going Through YC as a 17 Year Old</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5b35fb9ebb7b" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/what-i-learned-from-my-first-month-at-y-combinator-5b35fb9ebb7b">What I Learned From My First Month at Y Combinator</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Pain Relief for Doctors Labelling Data]]></title>
            <link>https://eric-landau.medium.com/pain-relief-for-doctors-labelling-data-72f3e5e31c92?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/72f3e5e31c92</guid>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Sun, 24 Jan 2021 02:24:01 GMT</pubDate>
            <atom:updated>2022-02-03T12:16:16.814Z</atom:updated>
            <content:encoded><![CDATA[<p>I started academically in physics, but dropped out(sorry, took a leave of absence) of my PhD in the first year and did a long stint in quantitative finance. So out of all the possible topics for my first peer-reviewed published paper: <em>portfolio optimisation</em>, <em>dark matter signatures</em>, <em>density functional theory</em>, I ended up with the topic of…drawing rectangles on a colonoscopy video. I didn’t think it would come to this, but here we are. In reality though, drawing boxes on a colonoscopy video is one of the most interesting problems I have worked on.</p><p>The purpose of this post is to review the paper we (including my cofounder Ulrik at <a href="https://encord.com/">Encord</a>) recently published on this topic: “<strong>Novel artificial intelligence-driven software significantly shortens the time required for annotation in computer vision projects</strong>”. The paper, in the journal <em>Endoscopy International Open,</em> can be found <a href="https://www.thieme-connect.com/products/ejournals/html/10.1055/a-1341-0689">here</a>. This was cowritten with the deft and patient assistance of our collaborators at King’s College London, Dr Bu Hayee and Dr Mehul Patel.</p><p>To convince you to keep reading after already having seen the words “annotation” and “colonoscopy”, we can for starters state that the field of gastroenterology is immensely important for human wellbeing. This is both in terms of cancer incidence and everyday chronic ailments. From <a href="https://www.cancer.org/cancer/colon-rectal-cancer/about/key-statistics.html">cancer.org</a>:</p><blockquote>In the United States, colorectal cancer is the third leading cause of cancer-related deaths in men and in women, and the second most common cause of cancer deaths when men and women are combined. It’s expected to cause about 52,980 deaths during 2021.</blockquote><p>Even more prevalent is inflammatory bowel disease (IBD). In 2015 around 3 million people in the US had been diagnosed with IBD, a condition associated with higher likelihood of respiratory, liver, and cardiovascular disease among others.¹ Add this to the litany of other conditions and symptoms encapsulated under the GI umbrella (acid reflux, indigestion, haemorrhoids, etc.) and we find that the scope (no pun intended) of GI knows few bounds with its effect on the population.</p><p>But gastroenterology is also very important for the AI community. It is one of the early vanguards of commercial adoption of medical AI. Companies such as Pentax, FujiFilm, and Medtronic have all been part of the crop of medical device companies that are running into the field to build their own AI enabled scoping technology. These models can run live detection of polyps and act as a gastroenterologist’s assistant during a scoping procedure, sometimes even catching the doctor’s blind spots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*zwRNl7F8rQL_J7fHzXZYwg.gif" /><figcaption>Polyp detection in action</figcaption></figure><p>Progress in this field will be a beacon to the rest of a skeptical medical community that AI is not just a playground for mathematicians and computer scientists, but a practical tool that directly matters in people’s lives.</p><p>But, there is a problem.</p><p><strong>The Problem</strong></p><p>Unlike a machine learning model that is serving up a binge-y Netflix show to an unsuspecting attention victim (where the stakes of a mistake are that you end up watching an episode of <em>Emily in Paris</em>), getting a polyp detection wrong or mis-diagnosing ulcerative colitis has drastic implications for people’s health. The models that are developed thus need to be as foolproof as you can get in the machine learning world. This requires prodigious quantities of data.</p><p>Empirically, models tend to require ever increasing amounts of data to combat stagnation in performance. Getting a model from 0% to 75% accuracy might require the same amount of data as 75% to 85% which requires the same as from 85% to 90% etc. To get over 99% accuracy, with the current methods and models we have, you need to throw a lot of data at the problem.</p><p>The issue is that for a model to train from this data, it needs to be annotated. These annotations can only effectively be completed by doctors themselves, who have the expertise to correctly identify and classify the patient video and images. This is a massive drain on doctor time.</p><p>A high accuracy endoscopy model might require one million annotated frames. Assuming a conservative estimate of 20 seconds per frame, including review from one or two other doctors, that’s 230 days of doctor time, about the number of working days in a year. That’s a doctor’s working year which is certainly better spent treating and caring for patients(and practicing their handwriting).</p><p>This opportunity cost was the original motivation for starting Encord. We wanted to save valuable time for anyone that has to undergo the necessary evil of data annotation, with doctors being the most egregious case. And after building our platform, we wanted to see if it actually worked. So, we ran an experiment.</p><p><strong>The Experiment</strong></p><p>We decided to run a simple A/B test of our platform against the most widely used open sourced video annotation tool (CVAT). Openly available video annotation tools are difficult to come by, but CVAT stands out as a platform with one of the most active users and stars on GitHub.</p><p>We set up a sample of data from an open source gastrointestinal dataset (the <a href="https://datasets.simula.no/hyper-kvasir/">Hyper-Kvasir</a> dataset) to perform the experiment. From the paper:</p><blockquote>Using a subsample of polyp videos from the Hyper-Kvasir dataset[7], five independent annotators were asked to draw bounding boxes around polyps identified in videos from the dataset. A test set of 25,744 frames was used.</blockquote><p>The experimental setup was:</p><ul><li>Each annotator would have two hours on Encord and two hours on CVAT</li><li>The annotators would run through the data in the same order for both platforms and use any available feature from each platform</li><li>Annotators could only submit frames that at the end of the process they had reviewed and were happy with</li><li>At the end of the two hours, we would simply count the number of approved frames from each annotator on each platform</li></ul><p>The power of the Encord platform (termed <em>CdV</em> in the paper) lies in its ability to quickly train and use annotation specific models, but for the experiment no labels or models were seeded for the annotators. They could only use models that they trained themselves with the data they had annotated within the time limit of the experiment. Normally this would not be the case of course. If you are tagging hundreds of thousands of frames, you will already have models and intelligence to pull from, but we wanted to stack the deck as much against as us we could and have the annotators start cold.</p><p><strong>The Results</strong></p><p>The results were not close. From the paper:</p><blockquote>In the 120-minute project, a mean±SD of 2241±810 frames (less than 10% of the total) were labelled with CVAT compared to 10674±5388 with CdV (p=0.01). Average labelling speeds were 18.7/min and 121/min, respectively (a 6.4-fold increase; p=0.04) while labelling dynamics were also faster in CdV (p&lt;0.0005; figure 2). The project dataset was exhausted by 3 of 5 annotators using CdV (in a mean time of 99.1±15.2 minutes), but left incomplete by all in CVAT.</blockquote><p>With CVAT, most annotators did not make it past the third video. Every single annotator was able to produce more labels with Encord than CVAT. What was the most encouraging was that the most senior doctor of the annotators, the one who had the least experience with any annotation software, got a 16x increase in efficiency from Encord. This was the exact target user we designed the platform for, so it was very encouraging to see these results pan out. It was a major win for the realisation of our hypothesis.</p><p>Briefly, the <em>reason</em> Encord was more efficient was simply the automation of most of the labelling:</p><blockquote>Labellers were allowed to adopt their own labelling strategies with any functionality offered in each platform. With CVAT, this consisted of tools to draw bounding boxes and propagate them across frames using linear interpolation of box coordinates. With CdV, labellers had access to both hand labelling annotation tools and CdV’s embedded intelligence features. This embedded intelligence was composed of object tracking algorithms and functionality to train and run convolutional neural networks (CNNs) to annotate the data.</blockquote><p>Even with a completely cold start, Encord’s “embedded intelligence” automated over 96% of the labels produced during the experiment:</p><blockquote>With CdV, only 3.44%±2.71% of labels produced were hand drawn by annotators. The remainder were generated through either models or tracking algorithms. Thus with CdV far more labels were produced with far less initial manual input (Figure 3). Automated labels still required manual time for review and/or adjustment. For model generated labels, a mean of 36.8±12.8 minutes of the allocated annotator time was spent looking over them frame by frame and making corrections.</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*yN5lQujf1rsyzhXgHVsv6g.png" /></figure><p>The most interesting observation in my opinion was the acceleration of labelling rate under the Encord platform. For CVAT, label rate remained approximately constant for the duration of the experiment. With Encord, however, for every twenty minute interval on the platform, annotation speed increased by a median of <em>55%</em>(!). Every label marginally informed the next. The hope is that with more labels and even larger projects, this effect will lead to a precipitous drop in the temporal (and financial) cost of creating training data sets.</p><p><strong>Conclusion</strong></p><p>While the results were favourable, we recognise there is a lot more to do. Polyp detection is a relatively simple annotation task, so while it is a costly tax on doctors, we realise there are even costlier ones that we need to address. Our software is designed to deal with arbitrarily complex labelling structures, but designing automation around this complexity is a tricky but interesting problem that we are working on.</p><p>That being said, we showed that we could save doctors a bunch of time annotating their data. Give them intelligent but accessible tools, and they will save their own time. With that, the bottleneck to the next iteration of medical AI does not need to be lack of training data.</p><p><em>If you want to chat about annotation or AI feel free to reach out to me at eric.landau@cord.tech.</em></p><p>¹<a href="https://www.cdc.gov/ibd/data-statistics.htm">https://www.cdc.gov/ibd/data-statistics.htm</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72f3e5e31c92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Label a Dataset with a Few Lines of Code]]></title>
            <link>https://becominghuman.ai/label-a-dataset-with-a-few-lines-of-code-45c140ff119d?source=rss-b4a7310c05a8------2</link>
            <guid isPermaLink="false">https://medium.com/p/45c140ff119d</guid>
            <category><![CDATA[artificial-inteligence]]></category>
            <category><![CDATA[dataset]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Eric Landau]]></dc:creator>
            <pubDate>Thu, 14 Jan 2021 21:29:50 GMT</pubDate>
            <atom:updated>2022-02-03T12:18:52.415Z</atom:updated>
            <content:encoded><![CDATA[<p>The purpose of this tutorial is to demonstrate the power of <em>algorithmic labelling </em>through a real world example that we had to solve ourselves.* <em>If you want to see the resulting full labelled </em><a href="https://becominghuman.ai/cheat-sheets-for-ai-neural-networks-machine-learning-deep-learning-big-data-678c51b4b463"><em>dataset </em></a><em>from this process, sign up </em><a href="https://encord.com/"><em>here</em></a>.</p><p>In a later post we will go over a more thorough description of what algorithmic labelling is, but, in short, <strong>algorithmic labelling is about harvesting all existing information in a problem space and converting it into the solution in the form of a program.</strong></p><p>Here is an example of a algorithmic labelling that labels a short video of cars:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*UOFns3vRUn1hR84w-v72yQ.gif" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Hksv9W3NRGnv7Wmu3LUT-g.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*xBqbDKMEGWqajStoSXTCag.gif" /><figcaption>a) Raw Data b) Data Algorithm c) Labelled data</figcaption></figure><p>Our usual domain of expertise at <a href="https://encord.com/">Encord</a> is in working with video data, but we recently came across a problem where the only available <a href="https://becominghuman.ai/data-science-simplified-principles-and-process-b06304d63308">data </a>was in images. We thus couldn’t rely on the normal spatiotemporal correlations between frames that are reliably present in video data to improve the efficiency of the annotation process. We could, however, still use principles of algorithmic labelling to automate labelling of the data. Before we get into that, the problem was as follows:</p><p><em>Company A wants to build a deep learning model that looks at a plate of food and quantifies the calorie count of that plate. They have an open source dataset that they want to use as a first step to identify individual ingredients on the plate. The dataset they want to use is labelled with an image level classification, but not with bounding boxes around the “food objects” themselves. Our goal is to re-label the dataset such that every frame has a correctly placed bounding box around each item of food.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zeh-e-5K2I73ANDT0-t1hQ.png" /><figcaption>Example Food Item with Bounding Box</figcaption></figure><p>Instead of drawing these bounding boxes by hand we will label the <a href="https://becominghuman.ai/becoming-a-data-scientist-data-analyst-financial-analyst-and-research-analyst-d9ec01a9d11d">data </a>using algorithmic labelling.</p><p><strong>Why Algorithmic Labelling?</strong></p><p>So before we talk about solving this with algorithmic labelling, let’s look at our existing options to label this dataset. We can:</p><ol><li>go ahead and hand label it ourselves. It takes me about six seconds to draw a bounding box, and with ~3000 images, it will take me about five hours to label all the images manually.</li><li>send the <a href="https://becominghuman.ai/roadmap-to-data-scientist-b1dcb17896e7">data </a>elsewhere to be labeled. An estimated outsourced cost will likely be around $0.15 per image with total cost about $450. It will additionally take some time to write a spec and get a round trip of the data through to an external provider.</li></ol><figure><a href="https://aijobsboard.com/?fbclid=IwAR0GcsLs8A6CFM-fynrZMM3sTgo_Zpbto2CjglJm0Dmi6otC6YWc7CDFpQk"><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dAlwXfVrtYspdCzmC8iADw.png" /></a><figcaption>Big Data Jobs</figcaption></figure><p>If we look at the cost/time tradeoffs of algorithmic labelling against our first two options, it might not seem like a slam dunk. Writing a good program will take time, maybe initially even more time than you would be spending annotating the data yourself. But it comes with very important benefits:</p><ul><li>Once you have an algorithm working, it is both reusable for similar problems, and extensible to fit slightly altered problems.</li><li>The initial temporal cost of writing a program is fixed, it does not increase with the amount of data you have. Writing a good label algorithm is thus <em>scalable</em>.</li><li>Most importantly, writing label algorithms improves your final models. The data science process does not start once you have a labelled dataset, it starts once you have any data at all. Going through the process of thinking through an algorithm to label your data will give you insight into the data that you will be missing if you just send it to an external party to annotate.</li></ul><h3>Trending AI Articles:</h3><blockquote><a href="https://becominghuman.ai/write-your-first-ai-project-in-15-minutes-a287ed348e7c">1. Write Your First AI Project in 15 Minutes</a></blockquote><blockquote><a href="https://becominghuman.ai/generating-neural-speech-synthesis-voice-acting-using-xvasynth-fc978fdf24c1">2. Generating neural speech synthesis voice acting using xVASynth</a></blockquote><blockquote><a href="https://becominghuman.ai/top-5-artificial-intelligence-ai-trends-for-2021-a3075fea6658">3. Top 5 Artificial Intelligence (AI) Trends for 2021</a></blockquote><blockquote><a href="https://becominghuman.ai/why-youre-using-spotify-wrong-b827eb47c249">4. Why You’re Using Spotify Wrong</a></blockquote><p>With algorithmic labelling there is a strong positive externality of actually understanding the data through the program that you write. The time taken is fixed but the program, and your insight, exists forever.</p><p>With all this in mind, let’s think through a process we can use to write a program for this data. The high level steps will be</p><ol><li>Examine the dataset,</li><li>Write and test a prototype</li><li>Run the program out of sample and review</li></ol><p><strong>Examine the dataset</strong></p><p>The first step to any data science process should be to get a look at the data and take an inventory of its organisational structure and common properties and invariants that it holds. This usually starts with the data’s directory structure:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/390/1*-hXfBI0PwaOUz8P0iUmF8A.jpeg" /></figure><p>We can also inspect the images themselves:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p8U8_dirDtpa8OlZGHxzrQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tNsKeWbhCLWOgKJaobLouA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nvMjzJjHsEqtyynepRlpZw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ydkOTGrjdyDXMxoE7Sfmcw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aApl361VUTB6MdrCE_wckw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JVatFJKTQPy6_tNUeE5v2A.png" /><figcaption>Sample images</figcaption></figure><p>Let’s go ahead and note down what we notice:</p><ul><li>The data is organised in groups of images of photographs of individual items of food on a plate.</li><li>The title of each folder containing the images is the name of the piece of food that is being photographed</li><li>There is only one piece of food per image and the food is the most prominent part of the image</li><li>The food tends to be on average around the centre of the frame</li><li>The colour of the food in most images stands out since the food is always on a white plate sitting on a non colourful table</li><li>There is often a thumb in the picture that the photographers likely used for a sense of size scaling</li></ul><p>There are some food items that look more challenging than others. The egg pictures, for instance, stand out because the colour profile is white on white. Maybe the same program shouldn’t be used for every piece of food.</p><p>The next step is to see if we can synthesise these observations into a prototype program.</p><p><strong>Write a prototype</strong></p><p>There are a few conclusions we can draw from our observations and a few educated guesses we can make in writing our prototype:</p><p><em>Definites</em></p><p>-We can use the title of the image groups to help us. We only need to worry about a particular item of food being in an image group if the title includes that food name. If we have a model for a particular item of food we can run it on all image groups with that title.</p><p>-There should only be one bounding box per frame and there should be a bounding box in every single frame. We can write a function that enforces this condition explicitly.</p><p>-We should add more hand annotations to the more “challenging” looking food items.</p><p><em>Educated Guesses</em></p><p>-Because the food location doesn’t jump too much from image to image, we might want to try an object tracker as a first pass to labelling each image group</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*tJTbnOVKnPhpuyoZPrk8CQ.gif" /></figure><p>-Food items are very well defined in each picture so a deep learning model will likely do very well on this data</p><p>-The colour contrasts within the pictures might make for good use of a semantic segmentation model</p><p>Let’s synthesise this together more rigorously into a prototype label algorithm. Our annotation strategy will be as follows:</p><ul><li>Programmatically upload the data onto the Encord annotation platform using the directory structure to guide us. We will use a Encord data function to concatenate the separate images into a video object so that we can also make use of object tracking</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ebe76d6df706509ea6653f2a0a5fda28/href">https://medium.com/media/ebe76d6df706509ea6653f2a0a5fda28/href</a></iframe><ul><li>Hand annotating two examples for a piece of food, one on the first image and one on halfway point image. For what we think are going to be trickier food items like eggs, we will try ten annotations instead of two.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/600/1*GYmhbcpMzaexXXX8x7pGsQ.gif" /></figure><ul><li>Run a CSRT object tracker across images. Again this dataset is not a video dataset, but with only one object per image that is around the same place in each frame, an object tracking algorithm could serve as a decent first approximation of the labels.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5ac2edaacf96e343478d6db41ccb521b/href">https://medium.com/media/5ac2edaacf96e343478d6db41ccb521b/href</a></iframe><ul><li>Train a deep learning model with transfer learning for each item of food using tracker-generated labels. We can start with a segmentation model. The objects have a stark contrast to the background. Training a model with the noisy labels plus the stark contours might be enough to get a good result. We already converted our bounding boxes to polygons in the previous step, so now the Encord client can train a segmentation model.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/8c017bc60ad62963c5e3958880ba0447/href">https://medium.com/media/8c017bc60ad62963c5e3958880ba0447/href</a></iframe><ul><li>Run the model on all image groupings with that piece of food in the title. Convert the polygonal predictions back to bounding boxes and ensure that there is only box per image by taking the highest confidence prediction.</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/91291da4f2222cbd822bdfc643bb17b0/href">https://medium.com/media/91291da4f2222cbd822bdfc643bb17b0/href</a></iframe><p>That’s it. The full code for the program can be found below. The data function library and full SDK are still in private beta, but if you wish to try it for yourself sign up <a href="https://cord.tech/datafunctions">here</a>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/6014a01cc89108ea4bb69e8d7bcedce7/href">https://medium.com/media/6014a01cc89108ea4bb69e8d7bcedce7/href</a></iframe><p>Let’s now run the program on some sample data. We will choose bananas for the test:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMQO8GSZySq179A8W_gcNw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*j6y_Ewx6Ok9me9gDXCSj4Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*g8PMQdOGW8aCVEHRcvJnwQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PU-LF-hGsRDp9BdaW6LFrw.png" /></figure><p>It seems to do a relatively good job getting the bounding boxes.</p><p><strong>Run the algorithm “out of sample” and review</strong></p><p>Now that we have a functioning algorithm, we can scale it to the remaining dataset. First let’s go through and annotate the few frames we need. We will add more frames for the more difficult items such as eggs. Overall we only hand annotate 90 images out of 3000.We can now run the program and wait for the results to come back with all the labels. Let’s review the individual labels.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f5PRDW7igs7YhJkJdiIiPw.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yVjLQVCFJ3lZJHs9r0956w.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sgoYfdmoU0aLt1yjFkggzg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*sIC_xbW22QYKydeBiipsBQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9O-EgfJq7pgXHcvEJJBncQ.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DwqBW5ge-Uk3ttf6Ri9gAw.png" /></figure><p>We can see for the most part it’s done a very good job.</p><p>The failure modes are also interesting here because we get a “first-look” of where our eventual downstream model might have trouble.</p><p>For these “failures” I can go through and count the total number that I need to hand correct. That’s only 50 hand corrections in the entire dataset. Overall, the label algorithm requires less than 5% of hand labels to get everything working.</p><p>And that’s the entire process. We made some relatively simply observations about the data and converted those into automating labelling of 95% of the data.</p><p>We can now use the labelled dataset to build our desired calorie model, but critically, we can also use many of the ideas we had in the algorithmic labelling process to help us as well.</p><ul><li><em>Real world examples are always better than concocted examples in that they are messy, complex, and require hands-on practical solutions. In that vein, you exercise a different set of problem-solving muscles than would normally not be used in concocted examples with nice closed formed type solutions.</em></li></ul><h3>Don’t forget to give us your 👏 !</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/780/0*2lvCls4yjxVMfZSR" /></figure><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2F8f5f8b%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2F8f5f8b&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href">https://medium.com/media/c43026df6fee7cdb1aab8aaf916125ea/href</a></iframe><figure><a href="https://becominghuman.ai/artificial-intelligence-communities-c305f28e674c"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*2f7OqE2AJK1KSrhkmD9ZMw.png" /></a></figure><figure><a href="https://upscri.be/8f5f8b"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*v-PpfkSWHbvlWWamSVHHWg.png" /></a></figure><figure><a href="https://becominghuman.ai/write-for-us-48270209de63"><img alt="" src="https://cdn-images-1.medium.com/max/255/1*Wt2auqISiEAOZxJ-I7brDQ.png" /></a></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=45c140ff119d" width="1" height="1" alt=""><hr><p><a href="https://becominghuman.ai/label-a-dataset-with-a-few-lines-of-code-45c140ff119d">Label a Dataset with a Few Lines of Code</a> was originally published in <a href="https://becominghuman.ai/">Becoming Human: Artificial Intelligence Magazine</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>