<?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 Ruben Melkonian on Medium]]></title>
        <description><![CDATA[Stories by Ruben Melkonian on Medium]]></description>
        <link>https://medium.com/@quantum-inc?source=rss-694175602ece------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*HKwIH4A5b-nBr1oS1ekBWA.jpeg</url>
            <title>Stories by Ruben Melkonian on Medium</title>
            <link>https://medium.com/@quantum-inc?source=rss-694175602ece------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 01 Jun 2026 20:02:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@quantum-inc/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[LLM Deprecation and Migration Strategy: How to Adapt to Rising AI Prices]]></title>
            <link>https://ai.gopubby.com/llm-deprecation-and-migration-strategy-how-to-adapt-to-rising-ai-prices-ca3d1e9abbaf?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/ca3d1e9abbaf</guid>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai-strategy]]></category>
            <category><![CDATA[ai-cost-optimization]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Thu, 30 Apr 2026 13:00:45 GMT</pubDate>
            <atom:updated>2026-04-30T13:00:45.638Z</atom:updated>
            <content:encoded><![CDATA[<h4>Practical frameworks for navigating LLM retirement and minimizing engineering overhead</h4><p>Model retirement is a structural reality of the AI market, not a rare operational event. OpenAI (GPT), Anthropic (Claude), Google (Gemini), and other LLM providers frequently deprecate specific API versions in favor of newer models.</p><p>The biggest mistake is treating these models as permanent commodities. In a production-ready system, prompt logic and output stability are often optimized for the unique behaviors of a specific model.</p><p>Therefore, when a provider decides to retire a model, it forces an unexpected migration, even if your system is performing flawlessly and generating revenue. Losing a foundational model triggers a mandatory cycle of regression testing and recalibration for a new one. Building for reliability requires an explicit strategy, because the impact of these forced migrations is multidimensional:</p><ul><li><strong>Financial</strong> — direct price increases compound at scale. Even modest percentage shifts materially affect high-volume systems.</li><li><strong>Operational</strong> — migrations consume engineering capacity that could otherwise drive product growth.</li><li><strong>Technical</strong> — nondeterministic outputs make regression validation complex, especially for generation-heavy systems.</li><li><strong>Strategic</strong> — heavy dependence on a single large model increases vendor lock-in and reduces negotiation leverage.</li></ul><p>In this article, we will go through the effective practices from a personal experience that can help you survive a provider’s retirement cycle while maintaining system stability.</p><h3>Why LLM Deprecation Is a “Hot” Topic for Engineers</h3><p>From a technical perspective, the frustration is simple: systems work until they are forced to change.</p><p>In a traditional AI solution, when you train a model and deploy it to production, it doesn’t end here. You constantly monitor it, track quality metrics, and retrain only if user behavior shifts or performance degrades. There is no reason to replace a stable, revenue-generating model.</p><p>When you train your own model, performance degradation often occurs due to data drift. For example, a custom computer vision model might fail because of the adjusted camera angle or resolution. The model didn’t degrade over time for no reason; the real-world data distribution shifted. You control the retraining process. But with API providers, the dynamic is entirely different.</p><p>When you rely on API-based LLM providers, the decision is no longer yours. Even if a model fully satisfies your requirements, the provider may deprecate it for internal reasons — cost, infrastructure load, strategic positioning. They remove the model not because it degraded for you, but because it no longer makes sense for them commercially.</p><p>You can have a healthy production environment where everything behaves predictably and still be forced to migrate. That’s why this topic generates tension inside engineering teams: the problem comes from outside the system.</p><p>These external pressures display as three primary categories of business and technical risk that every team must account for.</p><h3>Business and Technical Problems Caused by Model Deprecation</h3><h4>1. Direct Cost Increases</h4><p>Even a 5–10% price increase becomes significant at scale. A chatbot handling 10,000–20,000 requests per day amplifies every marginal change. When the difference reaches 50% or more, it reshapes the product’s entire cost model.</p><p>Providers sometimes recommend a “closest replacement,” but that model may sit in a higher pricing tier. The market has shifted from competing on price and speed to competing on quality, with noticeably higher costs.</p><p>Market dynamics have also shifted. Earlier competition emphasized speed and aggressive pricing. Today, providers compete primarily on quality improvements — often introducing newer models at noticeably higher price points. In some generational transitions, price differences can approach 2x. For instance, generational leaps in models like Gemini can nearly double pricing. The harsh reality of vendor dependency is simple: you just have to accept it, or change the vendor. However, changing vendors isn’t the only way to protect your margins. You can also implement <a href="https://towardsdatascience.com/frugalgpt-and-reducing-llm-operating-costs-ff1a6428bf96/">a cost-saving architecture</a> to minimize expenses without sacrificing quality.</p><h4>2. Migration Costs &amp; Efforts</h4><p>Changing an endpoint is trivial — you just change the URL. Adapting behavior is not.</p><p>The majority of time in migration is spent not on switching APIs but on:</p><ul><li>Prompt adaptation</li><li>Regression testing</li><li>Structural validation of outputs</li><li>Fixing edge cases</li></ul><p>In large systems, subtle changes in output structure may go unnoticed initially. The system technically works, but formatting differences or minor behavioral shifts may break downstream logic.</p><p>From personal experience, roughly 80% of the migration effort is spent on testing and refining prompts based on quality checks. And unlike classical software systems, LLMs are nondeterministic. You cannot rely on binary input-output comparison. Two valid answers may differ in wording, but both are acceptable, which complicates automation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tbSNK6KX-vw5wlbbvVxnPw.png" /><figcaption>Figure 1. Migration Effort Breakdown. Image by Author</figcaption></figure><h4>3. Business Risk</h4><p>Even with provider guidance, a new model always behaves differently. Migration introduces uncertainty:</p><ul><li>Response structure may shift</li><li>Tone or reasoning patterns may change</li><li>Edge-case handling may differ</li></ul><p>These risks may be inherent to the current market, but they don’t have to be a disaster. The following three pillars form the foundation of a migration-ready strategy.</p><h3>Testing and Migration Strategy</h3><p>A structured approach reduces risk but does not eliminate it.</p><h3>1. Maintain a Regression Dataset</h3><p>Every production system should have a stable set of evaluation examples:</p><ul><li><strong>For chatbots:</strong> question-expected-answer pairs</li><li><strong>For classification:</strong> labeled samples</li><li><strong>For structured outputs:</strong> format validation cases</li></ul><p>Every model update should be validated against this dataset. If quality does not degrade, migration becomes safer.</p><p>Classification tasks are relatively easy to validate because you can simply compare predicted labels (e.g., classes 1–5). Generation tasks are significantly harder because outputs are variable by design.</p><p>Since standard unit testing (e.g., assert output == expected) fails on generative text, engineering teams must implement specialized evaluation pipelines:</p><ul><li><strong>LLM-as-a-Judge:</strong> Use a larger, highly capable model to grade the output of the new model against a strict set of criteria. You can ask the judge model: “Does Candidate B contain all the factual information present in Baseline A, without adding hallucinations? Answer Yes/No.”</li><li><strong>Semantic Similarity Scoring:</strong> Convert the old model’s expected output and the new model’s actual output into vector embeddings. If the cosine similarity score is high, the new generation is semantically acceptable.</li><li><strong>Deterministic Guardrails:</strong> Evaluate the structure, not the free-form text. Use code-based checks to ensure the model outputs valid JSON or includes mandatory keywords.</li></ul><h3>2. Design Model-Agnostic Prompts</h3><p>One practical recommendation: avoid overfitting prompts to a specific model. It occurs when developers lean into the specific quirks of one model (such as Claude’s heavy reliance on XML tags vs. GPT’s preference for Markdown).</p><p>For instance: if you are building with a new Gemini model, don’t test it alone. Run a suite of 100 test cases simultaneously across Gemini, GPT, and Claude models, using identical regression tests and adjusting your prompts to minimize differences between the models. Generate a summary table of passes and fails across all models. By doing so, you drastically future-proof your system and reduce future migration time.</p><p>The goal is not to fully abstract away differences, but to ensure approximate behavioral stability across providers. This reduces future switching costs.</p><h3>3. Decompose Complex Tasks</h3><p>Instead of solving everything in a single large model call, break tasks into smaller steps:</p><p><strong>Retrieval ➡ Filtering ➡ Summarization ➡ Translation</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVKgyqGdhLH1RrHHJVWjNw.png" /><figcaption>Figure 2. Task Decomposition Pipeline. Image by Author</figcaption></figure><p>LLM APIs charge for tokens, not the number of calls. Splitting tasks does not significantly change total token usage but allows you to use simpler and cheaper models for subtasks. If you take a heavy task, like finding relevant articles, filtering them, summarizing, and translating — break it into four separate API requests, your total token count remains roughly the same. However, since you can route the simpler filtering and translating steps to much smaller models, your overall cost per token drops significantly.</p><p><strong>Your benefits?</strong> Lower costs, greater flexibility, easier replacement if one model is deprecated, and access to open-source or self-hosted, cost-effective alternatives, like Llama, Mistral, etc., as well as:</p><ul><li>Self-Hosting: You gain absolute permanence by hosting open-weights models on your own infrastructure.</li><li>Specialized Hardware APIs: Alternatively, you can use companies, like Groq, that build custom Language Processing Units (LPUs) — silicon chips designed specifically to accelerate language model inference. This allows you to access open-source models via API at blistering speeds (400+ tokens per second) and at a fraction of the cost of flagship proprietary models.</li></ul><p>If your architecture depends on one costly “super-model,” you’re basically locked in. If tasks are decomposed, the number of replacement options expands. However, once your architecture is modular, the challenge shifts to selection: how do you identify which model is the right fit for your specific subtasks?</p><h3>Evaluating Alternatives and Comparing Providers</h3><p>Public dashboards, like <a href="https://artificialanalysis.ai/">Artificial Analysis</a>, compare model speed, reasoning ability, and pricing. These benchmarks are directionally useful: a top-ranked model will generally outperform a low-ranked one.</p><p>You may rely on it as a source that helps to identify which models fall into the same performance tier as the one you are currently using.</p><p>However, differences between neighboring models are often marginal and task-specific. If two models have close benchmark scores (e.g., 48 vs 47), the public rankings don’t matter that much. Real-world performance will depend entirely on your specific use case. Benchmarks use neutral tasks; your workload may behave differently. Often, the most effective strategy to <a href="https://quantumobile.com/blog/ai-cost-reduction-outlook-how-to-cut-operational-expenses-smartly/">cut AI operational costs</a> is to select models proportionate to the task, using smaller, fine-tuned models for domain-specific tasks rather than defaulting to expensive flagship LLMs.</p><p><strong>Your strategy is the following:</strong></p><ol><li>Use rankings to shortlist candidates.</li><li>Always test models on your own regression dataset before integration.</li></ol><p>At the same time, actively track model lifecycle announcements. Providers typically publish retirement timelines in advance. To use this information effectively, you should integrate these timelines into a broader strategy for observing market trends and internal quality metrics.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fdatawrapper.dwcdn.net%2FLScCY%2F2%2F&amp;display_name=Datawrapper&amp;url=https%3A%2F%2Fdatawrapper.dwcdn.net%2FLScCY%2F2%2F&amp;image=https%3A%2F%2Fdatawrapper.dwcdn.net%2FLScCY%2Fplain-s.png%3Fv%3D2&amp;type=text%2Fhtml&amp;schema=dwcdn" width="600" height="1199" frameborder="0" scrolling="no"><a href="https://medium.com/media/e8a6cd8e74b130db5ad4ea8ab248bf4c/href">https://medium.com/media/e8a6cd8e74b130db5ad4ea8ab248bf4c/href</a></iframe><h3>Automated Market Monitoring and Switching</h3><p>Unfortunately, there is no magic pill. What you can do systematically:</p><h4>Monitor provider lifecycle pages and deprecation timelines.</h4><p>Be aware that deprecation usually happens in distinct phases: first, new users are blocked from accessing the old endpoint; next, existing users are given a grace period of a few months; finally, it is fully shut down. You are informed in advance, but you still must migrate.</p><h4>Continuously track quality metrics in production.</h4><p>Establish comprehensive monitoring, traceability, and observability. Whether your application runs in real-time or processes batches asynchronously, you must log everything, track intermediate outputs (especially in decomposed workflows), and collect quality metrics over time. When quality drops, you have a baseline to investigate. Usually, degradation happens because user behavior changes or the input data shifts — a data drift. By strictly logging production metrics, you can determine whether a drop in quality is due to your users changing their behavior or to your API provider stealthily updating the model behind the scenes.</p><h4>Maintain regression tests that can be run against multiple models.</h4><p>Build your CI/CD pipeline so that your automated regression tests continuously route production samples to your fallback models. This ensures that as your prompts naturally evolve over time, your fallback models remain fully compatible, and migrating remains as simple as flipping a configuration switch.</p><h4>Periodically benchmark comparable models in the same price segment.</h4><p>Set up a quarterly routine to evaluate new open-source or API models strictly within your current cost-per-token limit. Because providers often push expensive flagship upgrades during deprecation events, maintaining a shortlist of tested replacements is your best strategy to avoid forced budget increases.</p><p>Migration becomes stressful when delayed. When multiple models require replacement simultaneously, the workload multiplies quickly. Proactive evaluation and staggered migration reduce pressure and operational risk. Delaying these updates can be devastating. In real-world enterprise systems running upwards of 15 models simultaneously, a forced deprecation event can easily consume 1 to 1.5 human months of purely reactive, non-feature engineering work.</p><h3>Model Deprecation Is a Structural Reality, Not an Exception</h3><p>There is no single technical trick that eliminates this risk. What works is discipline in system design:</p><ol><li><strong>Assume replacement is inevitable.</strong> Build architectures that tolerate switching.</li><li><strong>Continuously monitor quality metrics.</strong> Degradation detection should be standard practice.</li><li><strong>Maintain robust regression datasets.</strong> Especially for generative systems.</li><li><strong>Decompose complex workflows.</strong> Smaller subtasks widen your model choices and reduce cost pressure.</li><li><strong>Benchmark alternatives proactively.</strong> Don’t wait for deprecation announcements.</li></ol><p>The most resilient teams treat model providers as modular infrastructure layers rather than permanent dependencies. In the AI market, long-term stability does not come from choosing the “best” model today. It comes from designing systems that remain stable when that model disappears tomorrow.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ca3d1e9abbaf" width="1" height="1" alt=""><hr><p><a href="https://ai.gopubby.com/llm-deprecation-and-migration-strategy-how-to-adapt-to-rising-ai-prices-ca3d1e9abbaf">LLM Deprecation and Migration Strategy: How to Adapt to Rising AI Prices</a> was originally published in <a href="https://ai.gopubby.com">AI Advances</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hidden Operational Costs of GenAI Products: Lifecycle, Risk, and Long-Term Maintenance]]></title>
            <link>https://pub.towardsai.net/the-hidden-operational-costs-of-genai-products-lifecycle-risk-and-long-term-maintenance-ce0f907a9b66?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/ce0f907a9b66</guid>
            <category><![CDATA[gen-ai-for-business]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[finops]]></category>
            <category><![CDATA[ai-cost-optimization]]></category>
            <category><![CDATA[hidden-cost-of-ai]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Fri, 10 Apr 2026 23:01:02 GMT</pubDate>
            <atom:updated>2026-04-10T23:01:02.099Z</atom:updated>
            <content:encoded><![CDATA[<h4>An analysis of the economics behind Generative AI products, exploring why initial cost estimates fall short and how businesses can plan for sustainable GenAI operations.</h4><p>The question “How can a text conversation cost this much?” is now being asked more frequently by CTOs and finance teams as AI initiatives move from controlled pilots into full-scale production environments.</p><p>The misalignment stems from the fact that GenAI solutions behave differently from known application models, which users expect to have predictable, flat operating costs. Each interaction consumes compute power and storage resources, not to mention the human effort involved. What’s more, to keep the model in good shape, aspects such as quality assurance, regular data training updates, security strengthening, model monitoring, and maintenance are a must and come at a price.</p><p>What looks like a neat chatbot UI is, in fact, the tip of an operational iceberg, with not-so-obvious cost drivers beneath the surface. Teams budget for model access and infrastructure, but rarely anticipate how usage, data change, and quality requirements affect expenses in the long term.</p><p>To clarify the total GenAI development cost and help companies avoid financial surprises, we examine what happens across the product lifecycle once the GenAI system reaches production.</p><h3>Illusion of Simplicity in GenAI Products</h3><p>From the end user perspective, a GenAI solution looks disarmingly simple. What they see is a text box and a response that appears seconds later. Roughly said, it’s a conversation that feels professional, though.</p><p>Behind the scenes, that interaction triggers a chain of operations that looks nothing like a standard request-response flow. A single user prompt can involve using API calls, embedding generation, vector database searches, and dynamic context assembly before the model even begins inference.</p><p>A similarly multi-step flow continues after a response is generated. It has to pass through validation layers, safety filters, logging systems, and monitoring pipelines. To top it all, each step runs on separate services, often across different regions, and each consumes compute and network resources. The trick is that one action to the user is, in reality, dozens of coordinated operations happening in milliseconds.</p><p>This is where many of the hidden costs of AI originate. Not from one expensive component, but from the cumulative effect of many small processes.</p><p>Now, the most intriguing part — the economic model. It’s fundamentally new compared to any known enterprise software pricing. What is typically used in the IT services market is charging for provisioned infrastructure, licensing fees, and routine infrastructure. These costs are largely predictable and easy to govern and control.</p><p>GenAI systems, in addition to the aforementioned expenses, take into account the usage itself. Therefore, every interaction incurs a variable cost tied to prompt length and response complexity.</p><p>This is exactly why GenAI cost models appear sound in early estimates but collapse under real-world scale.</p><h3>Predictable Cost of AI Organizations Can Plan For</h3><p>When organizations evaluate generative AI ROI, they consider quantifiable expenses listed in budget proposals and procurement documents. They are understandable yet may still contain peculiarities that catch unprepared companies off guard once the technology is rolled out.</p><h4>Infrastructure and Compute Resources</h4><p>When you submit a query, neural networks containing billions of parameters process that input token by token. It’s very computationally expensive. That’s one of the main reasons every <a href="https://www.ibm.com/thought-leadership/institute-business-value/report/ceo-generative-ai/ceo-ai-cost-of-compute">surveyed organization by IBM</a> decided to abandon or table at least one GenAI project.</p><p>Since standard servers alone are insufficient, modern language models use specialized hardware, namely GPUs (Graphics Processing Units) or TPUs (Tensor Processing Units), to be able to perform mathematical operations in parallel. Even when teams access models through cloud APIs, they directly pay for these massive server farms running continuously in provider data centers.</p><p>We can split the cost of AI infrastructure into two categories: model training and inference.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mdMNn9p9sYawolx35oRofA.png" /></figure><h4>API usage and Model Serving Fees</h4><p>The most visible line item in generative AI pricing budgets is API charges. Some providers like OpenAI and Anthropic price their services in tokens — units of text processed during input and output. Organizations discover that per-token costs accumulate overwhelmingly quickly and generally exceed initial projections.</p><p>Other providers offer tiered pricing that rewards higher usage, as seen in Google’s Gemini offerings. While organizations processing millions of tokens monthly might pay 40-60% less per token than low-volume users, they rarely offset the exponential growth in usage, particularly for consumer-facing applications.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NUoRfzdjTU-KyLjWdsKvcA.png" /><figcaption>API expenses calculation equation</figcaption></figure><h4>Storage and Database Systems</h4><p>GenAI apps also need substantial storage and corresponding infrastructure:</p><ul><li><strong>vector databases</strong> to store embedded knowledge as mathematical representations;</li><li><strong>traditional relational databases</strong> to manage user data and conversation history;</li><li><strong>big ERP systems</strong> to sync operational records and enterprise workflows;</li><li><strong>caching mechanisms</strong> to improve performance;</li><li><strong>backup systems</strong> to ensure reliability and disaster recovery.</li></ul><p>Vector databases deserve special attention because they charge for query operations on top of common storage usage.</p><p>One more interesting nuance is RAG (retrieval-augmented generation) architectures, which companies are eagerly implementing to ground AI responses in internal data in a secure and more efficient way. The crux is that the RAG solutions store every document twice. Once as original text for reference and retrieval, and once as mathematical vectors for semantic search.</p><p>Find more on RAG benefits in our recent article From ChatGPT Prompting to Corporate GenAI Solution.</p><h4>Initial Development and Integration</h4><p>When organizations opt for <a href="https://quantumobile.com/expertise/generative-ai/">generative AI development services</a>, they expect natural development costs coming from:</p><ul><li><strong>Specialized talent</strong>: ML engineers, full-stack developers, and prompt engineers at a bare minimum.</li><li><strong>System development</strong>: Depending on the engagement model, it might be a fixed price per project, hourly billing, or a managed delivery model.</li><li><strong>Integration with existing systems</strong>: Data pipeline construction to extract the necessary information from enterprise systems, proper authentication for security purposes, workflow integration, and API management.</li><li><strong>Testing and validation</strong>: QA resources, user acceptance testing, security levels, performance testing.</li><li><strong>Deployment</strong>: Production rollout, monitoring setup, and handover to internal teams, plus employee training if required.</li></ul><h3>Beneath the Interface: Hidden Costs of Using AI</h3><p>While organizations carefully budget for infrastructure and API fees, the largest portion of hidden GenAI development costs surfaces only after deployment. The unpleasant part is that these operational expenses exceed visible costs by 200-300%, disrupting ROI projections and planning.</p><h4>Continuous Data Pipeline</h4><p>Before your GenAI app delivers the answer, data undergoes multiple transformations. Building and operating that complex data pipeline involves:</p><ul><li>Extracting content from dozens of enterprise sources</li><li>Normalizing formats</li><li>Cleaning inconsistencies and duplications</li><li>Breaking documents into usable chunks</li><li>Generating embeddings</li><li>Indexing those vectors in a retrieval system</li></ul><p>But developing a pipeline is hardly the finish line. It’s just the first step in AI product lifecycle management.</p><p>Knowledge bases quickly become stale because your company widens its product catalogs or updates its policies. So, all these changes must be synchronized with the model by reprocessing content and regenerating embeddings. Neglect this work and misleading outputs won’t be long in coming.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ozhOFogqR0a6yhXMGlM0ew.png" /><figcaption><strong>Enterprise data pipeline loop for GenAI</strong></figcaption></figure><p>Returning to the topic of spending, to sustain such data workflows, you have to invest in engineering time, specialized tools, and human-in-the-loop workflows for quality control.</p><h4>Monitoring and Observability Infrastructure</h4><p>GenAI solutions demand much deeper visibility than basic uptime and error rates, as is the case with traditional software. It’s important to track every single API call to understand system behavior. And we not only speak of measuring whether it succeeded, but also how many tokens it consumed, how quickly it responded, and the essential output quality.</p><p>Then there is also a need to keep a close eye on AI-specific metrics, which is difficult without specialized tools. Those metrics include, but are not limited to:</p><ul><li>Hallucination rates</li><li>Prompt effectiveness metrics</li><li>Cost per interaction</li><li>Context window utilization</li><li>Model performance drift</li></ul><p>High-volume applications, like the <a href="https://quantumobile.com/portfolio/ai-financial-analysis-solution/">AI financial analysis</a> we built, generate terabytes of data each month. Companies have to build dedicated infrastructure separate from production systems to store and analyze such a colossal volume of data.</p><h4>Quality Assurance and Testing Systems</h4><p>GenAI outputs are non-deterministic, which means the same prompt can produce different responses. Investment in automated testing is unavoidable for high-usage deployments that require running thousands of test cases and comparing outputs against expected response characteristics.</p><p>These tools also automate sample human evaluations and systematic regression testing. However, human oversight remains crucial for handling edge cases and validating consistency. <a href="https://arxiv.org/abs/2402.16391?utm_source=chatgpt.com">Academic studies on AI QA</a> highlight the same finding: AI implementation costs scale with model complexity and use cases.</p><p>What is important to realize is that quality assurance is needed continuously throughout production, not only in the pre-launch phase. Every prompt modification or model update should be tested for regression to prevent a sudden drop in quality. You’ll also want to avoid harmful, biased, or inappropriate responses, so validating safety regularly should be a part of day-to-day operations.</p><h4>Model Maintenance and Performance Management</h4><p>AI performance degrades after a while by default, a phenomenon known as model drift. That’s because too many variables, like user behavior, content domains, and others that AI considers when giving a response, evolve or change. So, being able to detect performance drops as early as possible is advantageous yet demanding, calling for user feedback collection and analysis, and comparing benchmarking against baseline performance.</p><p>There are several practices teams actively use to combat hallucinations and drift. AI performance monitoring for catching deviations from the norm and repeated model retraining are the keys to success. Careful version control in this context is paramount for controlled recovery in case of unexpected behavior.</p><h4>Security and Treat Protection</h4><p>GenAI is unlike any known technology, and no wonder it introduces novel security challenges. Systems should defend against prompt-injection attacks that manipulate AI behavior, jailbreak attempts that coax inappropriate responses, and data-extraction exploits targeting unauthorized access to the company’s training data. Needless to say, common threats remain in play.</p><p>Strong security infrastructure, including input filters, output validators, pattern detection, and security system monitoring, is what companies need to shield production models. The arms race between attackers discovering unpatched vulnerabilities and cybersecurity pros building protections never ceases, assuming ongoing investment in security. Particularly, companies must budget for specialized AI security tools, regular penetration testing, and security-focused engineering time.</p><h4>Content Safety and Moderation</h4><p>As a rule, every AI output passes through many safety checks before it reaches users. Content moderation systems screen responses for harmful language, bias, personal identifiable information, and hallucinations.</p><p>Applied at scale, moderation adds up to latency and compute usage, accompanied by operational overhead that grows linearly with traffic. Automated filters do the initial screening, but it’s human moderators who sample and review flagged output to polish policies and determine new failure patterns. Some projects, like <a href="https://quantumobile.com/portfolio/ai-copilot-for-greenhouse-operations/">AI copilot for greenhouse operations</a>, demonstrate that effective domain-specific safety requires custom moderation rules in addition to generic filters.</p><h4>Compliance and Governance Operations</h4><p>Regulatory frameworks — GDPR in Europe, CCPA in California, AI-specific laws that are gradually taking shape across the globe mandate that organizations embed transparency into systems at the engineering level. The company should be able to trace the data used for generating the response, who accessed it, which model version produced the output, and under what conditions.</p><p>Therefore, we see audit trail systems widely used for these purposes. Meanwhile, access control systems allow companies to enforce who can view which information, and retention policies automatically archive or delete data in accordance with regulations. Compliance also entails human processes, such as legal team reviews and AI policy development by governance committees.</p><h4>Expert Human Teams</h4><p>Behind every properly working production GenAI system operates a team of diverse specialists:</p><ul><li><strong>ML engineers</strong> to maintain models</li><li><strong>MLOps engineers</strong> to manage deployments</li><li><strong>Data engineers</strong> to sustain pipelines</li><li><strong>Data Scientists with AI/LLM expertise</strong> to optimize interactions and defend against misuse</li></ul><p>Nowadays, having an in-house ML team is a luxury. Given that AI talent demand surpasses supply across key roles by a <a href="https://www.secondtalent.com/resources/global-ai-talent-shortage-statistics/">3.2:1 ratio</a>, companies are forced to pay a premium to scarce specialists. For comparison, AI professionals generally earn 67% more than traditional IT roles.</p><p>And that’s not all. Team members spend time researching innovative techniques and assessing new models to stay ahead of tech advancements. Thus, the cost of AI expertise stretches to employee learning and experimentation in addition to base salaries.</p><h4>Technology Evolution and Adaptation</h4><p>Nobody will deny that AI technology, more precisely GenAI as we know it, progresses at unprecedented speed. New models appear literally monthly, usually bringing in improved capabilities or better performance characteristics. As a result, businesses face constant pressure to reassess their technology stack. It consumes noticeable resources to test new models against existing ones and benchmark performance differences.</p><p>Adopting a newer model is never a simple swap. Migration projects demand refactoring code and retraining custom components, along with hundreds of hours spent on compatibility testing. Even when migration promises long-term efficiency gains, short-term spending increases. Organizations striving to remain competitive should include these expenses in their overall GenAI cost strategy.</p><h4>Scaling Complexity and Optimization</h4><p>Unfortunately, usage growth drives exponential increases in costs associated with introduced operational complications. Let’s understand why this is so. Monitoring becomes more challenging because new users exhibit different usage patterns, which require additional analysis. More users also mean more edge cases, as the system will encounter unusual combinations of inputs or languages. Finally, companies will need to perform additional tests to cover new user scenarios.</p><p>So, how to optimize the cost of generative AI for growing user demand? The Quantum team suggests combining several tactics for maximum effect.</p><p>Using <strong>model routing</strong> lets businesses direct simple queries to cheaper models and preserve more robust ones for compute-intensive tasks. <strong>Prompt optimization</strong>, which may encompass removing outdated system instructions and condensing retrieved context, helps companies consume fewer tokens per request while getting answers of the same quality. <strong>Caching</strong> is another effective method aimed at storing the most frequently accessed responses to avoid redundant API calls.</p><h3>Architecting Sustainable GenAI: Economics and Long-Term Strategy</h3><p>As it turns out, keeping GenAI applications economically viable in production is not easy. Even well-funded pilots can become financial liabilities. Organizations that succeed are the ones that design for cost discipline as deliberately as they design for accuracy and latency.</p><p>Sustainable AI starts with acknowledging that API bills represent only a fraction of the total AI implementation cost. As we have discussed, spending accumulates through every system layer, from data pipelines to quality assurance. If organizations account for only direct model inference expenses, they have to deal with exponentially rising costs only after scaling, when course correction becomes several times more expensive.</p><p>This is the case for <strong>AI FinOps</strong>. Using FinOps practices in GenAI projects enables teams to attribute costs to specific use cases, user segments, or business outcomes, rather than treating AI spend as shared overhead. According to the <a href="https://www.finops.org/wg/finops-for-ai-overview">FinOps Foundation</a>, organizations with a mature cost attribution framework are much more likely to keep cloud and AI spending within forecasted limits.</p><p>Cost-effective GenAI is as much an architectural challenge as a financial one. For example, by opting for <strong>model-agnostic designs</strong>, teams gain the ability to switch providers if one of them increases pricing or changes compliance requirements, performance, etc. <strong>Multi-provider strategies</strong> have low lock-in risk and give companies leverage when negotiating usage-based pricing. Engineering <strong>modular architectures</strong> will let companies easily replace safety filters, models, or other components without re-platforming the entire system.</p><h3>The Bottom Line on the Hidden Investment in AI Excellence</h3><p>That simple text box masking extraordinary complexity tells only part of the story. Behind every seamless conversation stands a myriad of processes and operational responsibilities. This is why the question “How much does artificial intelligence cost?” doesn’t have a straightforward answer.</p><p>The success of GenAI products is not defined by model sophistication alone. It’s sustained by thoughtful architecture, investment in people and processes, and relentless operational excellence, managing this complexity. The narrative positioning AI as simple or inexpensive crumbles rapidly when confronted with reality. Each hidden cost of AI revealed reflects the necessities organizations discover only through experience.</p><p>Yet these complications shouldn’t discourage investment. GenAI delivers capabilities and business value that were unthinkable just a few years ago. The complexity and cost of AI mirror the real power required to make that possible at scale.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ce0f907a9b66" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/the-hidden-operational-costs-of-genai-products-lifecycle-risk-and-long-term-maintenance-ce0f907a9b66">The Hidden Operational Costs of GenAI Products: Lifecycle, Risk, and Long-Term Maintenance</a> was originally published in <a href="https://pub.towardsai.net">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[2026 Strategic Guide to Satellite Imagery Providers: Which Data Suits Your ML Project?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/illumination/2026-strategic-guide-to-satellite-imagery-providers-which-data-suits-your-ml-project-c3ab0253c464?source=rss-694175602ece------2"><img src="https://cdn-images-1.medium.com/max/2600/0*bTzgE_C654zkP_4Y" width="3838"></a></p><p class="medium-feed-snippet">A guide to selecting satellite imagery providers and data specs that match resolution and delivery method to your project.</p><p class="medium-feed-link"><a href="https://medium.com/illumination/2026-strategic-guide-to-satellite-imagery-providers-which-data-suits-your-ml-project-c3ab0253c464?source=rss-694175602ece------2">Continue reading on ILLUMINATION »</a></p></div>]]></description>
            <link>https://medium.com/illumination/2026-strategic-guide-to-satellite-imagery-providers-which-data-suits-your-ml-project-c3ab0253c464?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/c3ab0253c464</guid>
            <category><![CDATA[remote-sensing]]></category>
            <category><![CDATA[earth-observation]]></category>
            <category><![CDATA[gis]]></category>
            <category><![CDATA[satellite-technology]]></category>
            <category><![CDATA[geoai]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Tue, 07 Apr 2026 19:37:17 GMT</pubDate>
            <atom:updated>2026-04-07T19:37:17.882Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How to Accurately Estimate a Data Science Project: A Step-by-Step Framework]]></title>
            <link>https://itnext.io/how-to-accurately-estimate-a-data-science-project-a-step-by-step-framework-472f97308543?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/472f97308543</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[datasciencemethodology]]></category>
            <category><![CDATA[project-management]]></category>
            <category><![CDATA[data-science-projects]]></category>
            <category><![CDATA[software-kpis]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 23:09:17 GMT</pubDate>
            <atom:updated>2025-12-09T08:27:48.307Z</atom:updated>
            <content:encoded><![CDATA[<h4>Learn why most data science projects fail, how to structure realistic data science project estimation, and improve performance metrics.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wO_WcqXJz-6auwby" /><figcaption>Photo by <a href="https://unsplash.com/@patrickperkins?utm_source=medium&amp;utm_medium=referral">Patrick Perkins</a> on <a href="https://unsplash.com?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>When clients ask how long a data science project will take, they often expect the kind of answer you’d get for a traditional software task. But data science isn’t about building a known feature — it’s about exploring what’s possible, learning from data, and translating that into something the business can act on.</p><p>The irony is that while nearly every company today believes they need AI or advanced analytics to stay competitive, most data science initiatives fall far short of expectations or fail outright. There’s no single source for an exact failure rate, but industry signals are hard to ignore.</p><p>Back in 2016, Gartner analyst Nick Heudecker estimated that as many as <a href="https://www.techrepublic.com/article/85-of-big-data-projects-fail-but-your-developers-can-help-yours-succeed/">85% of data science projects fail</a>. Another <a href="https://venturebeat.com/ai/why-do-87-of-data-science-projects-never-make-it-into-production">source</a> claims only 13% reach production.</p><p>Despite rapidly evolving tools, platforms, and modeling techniques, the core reasons behind failure remain remarkably consistent: leadership relying more on gut instinct than insights, teams lacking a clear business case, and organizations pushing forward with data initiatives without first building a culture of evidence-based decision-making.</p><p>This article outlines a structured framework for estimating data science projects and demonstrates how to apply it to ensure realistic scoping and timelines. To help you apply this approach, we’ve also included a downloadable estimation file that can help structure and scope DS projects with realistic effort ranges.</p><h3>The Core Difference: Accuracy Over Delivery</h3><p>Software development estimation is driven by functionality. You know what you’re building-a checkout page, a dashboard, a mobile app- and the effort is measured in features.</p><p>In contrast, <a href="https://quantumobile.com/expertise/data-science/">data science development services </a>are measured in terms of model performance, often using data science performance metrics like accuracy, precision, recall, or F1-score. While accuracy is a common requirement in many systems (such as GPS devices, sensor platforms, or analytical software), in data science it carries a different challenge: <strong>you often can’t predict what level of accuracy is achievable until you explore the data.</strong></p><p>You can’t promise a 95% F1-score on day one because it depends on factors you may not fully control at the start: data quality, feature availability, noise levels, hidden biases, or the fundamental learnability of the task. In software engineering, requirements like accuracy can often be engineered through design and calibration. In data science, they’re discovered through experimentation.</p><p>That changes everything. You’re no longer estimating how long it takes to implement a solution — you’re estimating how long it will take to find one. And that journey includes missteps, restarts, and iterations.</p><h3>Why Iterations Work (and Waterfall Doesn’t)</h3><p>We estimate DS projects as a series of iterations. Each iteration has a defined goal — build a baseline model, improve performance, test generalization — and is scoped and priced independently.</p><p>This lets clients control how far they want to go. After each iteration, they get measurable results. If those results are good enough, they can stop. If they need improvement, they can fund another iteration with clearer insight into expected gains.</p><p>Our iterations follow the <a href="https://en.wikipedia.org/wiki/Cross-industry_standard_process_for_data_mining">CRISP-DM framework</a>. It’s not a buzzword– it’s genuinely the backbone of our work. Every cycle includes understanding the problem and data, preparing inputs, building and evaluating a model, and considering deployment. This loop keeps the work grounded and allows us to structure estimates in a way that aligns with real progress.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PrgJKI722XSqpFYMsgd8dg.png" /><figcaption>Source: Image by the author.</figcaption></figure><h3>Estimating the Whole Flow</h3><p>The most overlooked truth in estimation in data science is this: modeling is only 30–40% of the effort.</p><p>It begins with requirements — understanding what the client truly wants to achieve, and how the output of the model will be used in their product or workflow. That means aligning with data science KPIs and thinking about where and how predictions will be consumed.</p><p>Then comes data collection. Often underestimated, this phase can swallow weeks of work. Open-source datasets may look promising but turn out to be noisy, incomplete, or misaligned with your real-world task. Even when the data is available, cleaning it, converting it, and storing it in usable form is a job of its own.</p><p>After that, we move into the iterations themselves: modeling, evaluation, and refinement. This is where the typical excitement lies, but without the previous two stages done well, no model can succeed.</p><p>Finally, and most often overlooked, we transition research code into production. This means setting up environments, packaging models into APIs, writing tests, logging outputs, and ensuring the solution integrates smoothly into the customer’s systems. It’s not glamorous work, but it’s essential. In fact, the most common reason DS projects fail to create business value is because this step is rushed or skipped.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Yv3RxIHrI8RhzThjMaEqDw.png" /><figcaption>Cross-industry standard process for data mining (CRISP-DM). Source: Image by the author.</figcaption></figure><h4>A Test Example: Satellite Biomass Estimation</h4><p>To demonstrate how part of our estimation framework works in practice, let’s walk through a test case we use internally to explain our structure. The task is to estimate data science project above-ground biomass using satellite imagery. This example isn’t based on a real client, but it closely reflects the types of projects we deliver.</p><p>It starts with dataset research: identifying open satellite sources, checking resolution, and downloading samples. The estimate for this phase is around 20 m/hours.</p><p>The first modeling iteration is designed to build a simple baseline model. Its goal is not to maximize accuracy, but to validate whether the data has predictive value. This includes preprocessing, model training, and evaluation — typically around 50 m/hours.</p><p>In the second cycle, we aim to refine the model by exploring new architectures, enhancing features, and improving performance. Another 50 m/hours.</p><p>The final stage involves preparing the solution for deployment: setting up Docker, building pipelines, and generating documentation. This takes about 20 m/hours.</p><p>The total estimate comes to roughly 150 m/hours. But more important than the number is the structure: this example shows how we factor in requirements, iterations, and production readiness from the beginning — something that’s often missing from traditional approaches.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IiGl5lsi2ntbiMeDYgA-Iw.png" /><figcaption><strong>You can explore the full Excel estimation file </strong><a href="https://docs.google.com/spreadsheets/d/1WSyrVy15yUk7YMDoCbTo8WugKmn5BowAY6DTXBHfKF0/edit?gid=976766327#gid=976766327"><strong>here</strong></a><strong>. </strong>Source: Table by the author.</figcaption></figure><h4>Avoiding the Most Common Pitfalls in DS Project Estimation</h4><p>From experience, we’ve seen a few patterns emerge in failed DS project planning. The most frequent mistake is treating model training as the core deliverable. In reality, training is one-third of the total effort — maybe less. Requirements analysis, data handling, and production work are just as important.</p><p>Another issue is underestimating the number of iterations needed. A proof of concept might work, but refining it to meet business targets often takes multiple attempts. Planning for just one iteration and hoping for the best is risky and unrealistic.</p><p>Finally, there’s the integration gap. A model that performs well in a Jupyter notebook doesn’t create value unless it’s integrated, monitored, and used. That step needs to be scoped and budgeted just like any other.</p><h3>Final Thoughts</h3><p><a href="https://quantumobile.com/blog/how-to-accurately-estimate-data-science-project-a-step-by-step-framework/">Estimating a data science project</a> isn’t about predicting the future. It’s about managing uncertainty in a structured way. By breaking the work into clear, time-boxed iterations, grounding your process in CRISP-DM, and not ignoring the messy yet essential parts, such as integration and deployment, you can build realistic and actionable project plans.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=472f97308543" width="1" height="1" alt=""><hr><p><a href="https://itnext.io/how-to-accurately-estimate-a-data-science-project-a-step-by-step-framework-472f97308543">How to Accurately Estimate a Data Science Project: A Step-by-Step Framework</a> was originally published in <a href="https://itnext.io">ITNEXT</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Difference Between Generative AI vs Traditional AI]]></title>
            <link>https://pub.towardsai.net/the-difference-between-generative-ai-vs-traditional-ai-6ff3d34c7154?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/6ff3d34c7154</guid>
            <category><![CDATA[generative-ai]]></category>
            <category><![CDATA[generative-ai-tools]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[gen-ai-revolution]]></category>
            <category><![CDATA[gen-ai-for-business]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 13:32:13 GMT</pubDate>
            <atom:updated>2025-12-08T16:44:35.380Z</atom:updated>
            <content:encoded><![CDATA[<h4>Go beyond the hype to see how AI truly works. This guide distinguishes between traditional AI and Generative AI, showing why the smartest businesses are building a future by balancing both.</h4><p>AI has become one of the defining technologies of the 21st century. It is powering everything: from systems for fraud detection to personalized recommendations on Netflix. However, in the last 3 years, generative AI has taken the spotlight, offering not just simple analysis but creativity at scale.</p><p>According to McKinsey’s report, approximately <a href="https://medium.com/r?url=https%3A%2F%2Fwww.mckinsey.com%2Fcapabilities%2Fquantumblack%2Four-insights%2Fthe-state-of-ai-in-2023-generative-ais-breakout-year%3Futm_source%3Dchatgpt.com">79% of the executives</a> have already tested generative AI in their operational business processes. Meanwhile, Gartner assumes that over 80% of companies will use GenAI APIs by 2026. Such a rapid shift raises the question: how is generative AI different from the traditional AI that has dominated the market for the last 20 years?</p><p>Distinction matters here as each one has its strengths: traditional AI excels in predictive analysis and optimization, while generative AI creates original content. Companies put their investments or even reputation at risk if they don’t apply these technologies wisely. Thus, in this article, we are exploring the evolution of AI, comparing traditional AI vs generative AI use cases, discussing strengths and limitations, as well as risks of each.</p><h3>The Evolution of Artificial Intelligence: From Rules to Generation</h3><p>During the 1990s and early 2000s, the field of AI saw the rise of machine learning. This time, engineers trained algorithms using large datasets instead of following human-written rules. Such a breakthrough resulted in credit scoring tools, supply chain optimization, and spam filters, marking it as the era of traditional AI.</p><p>The 2010s brought innovations in deep learning and speech recognition, which paved the way for real-time translation and autonomous vehicles. Generative Adversarial Networks (GANs) introduced by Ian Goodfellow in 2014 <a href="https://www.mdpi.com/1099-4300/25/12/1657?utm_source=chatgpt.com">pioneered the idea of having two models compete: a generator that produces data and a discriminator that evaluates it</a>.</p><p>Such a discovery enabled the synthesis of highly realistic data. GANs became the foundation for such applications as image generation, style transfer, and super-resolution.</p><p>2017 was another breakthrough year, which introduced the Transformer architecture. <a href="https://www.mdpi.com/2078-2489/14/4/242?utm_source=chatgpt.com">Being a self-attention model, it allows models to process entire data sequences in parallel, making training faster</a>. Today, Transformer technology is the backbone of LLMs and other multimodal systems.</p><p>By 2020, generative AI had emerged as the next leap, with diffusion models being in the spotlight of more advanced image and audio generation. It was exactly the time when many IT companies noticed a potential in this innovative technology. Quantum has been working with AI since 2015, which means we are the leaders of scaling AI.</p><p>As opposed to other companies, which have adjusted their brand voice and the vector of their business strategy in response to the growing interest in AI-based solutions, our expertise comes from over a decade of dedicated work and hands-on knowledge of all aspects of AI models.</p><p>Unlike previous predictive models that classify or predict, generative AI uses advanced architectures (transformers, GANs, diffusion models) to create. Systems like ChatGPT (OpenAI) and Gemini (Google DeepMind) represent this shift. This transition mirrors the broader shift in the paradigm of AI research: from answering “what is this?” to “what can I create?” (Stanford AI Index Report, 2023).</p><h3>What is Traditional AI?</h3><p>Traditional AI is an AI model that focuses on approaches based on analysis, classification, prediction, and optimization. It does not generate new outputs, working within the boundaries of the existing structured inputs.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*quQcgGUyDKXhm5iwXywLgw.png" /><figcaption>Traditional AI Systems: Key methods</figcaption></figure><h4>Tools and Examples</h4><p>Non-generative AI has laid a solid foundation for multiple business processes that happen seamlessly and remain unnoticed by a regular customer. With over 100 commercial projects to its name, Quantum is at the forefront of successfully integrating traditional AI into various spheres. The company’s work on fraud detection with AI illustrates traditional AI’s strengths.</p><p>By analyzing transaction histories with anomaly detection algorithms, financial institutions were able to reduce the number of suspicious transactions without introducing customer friction.</p><p>Retail is another sphere where global leaders like Walmart and Amazon benefit from AI usage. Predictive AI helps them anticipate shopping trends to stock on time and minimize waste. Despite its obvious accuracy and prediction, this optimization is limited to the existing information as opposed to generating non-existent data in case of GenAI.</p><p>Healthcare is another field that benefited greatly from traditional AI. Healthcare is tightly connected to the analysis of multiple data, which is quite time-consuming and not always cost-efficient. Predictive models are among the best tools that can help detect chronic diseases earlier, as was demonstrated by our<a href="https://quantumobile.com/portfolio/blood-cancer-type-classification-solution/"> advanced blood cancer classification tool</a>.</p><p>Other applications of traditional AI include:</p><ul><li>Energy: predictive maintenance for turbines and grids.</li><li>Logistics: optimization of routes to cut fuel costs.</li></ul><p>Such solutions based on traditional AI are not only reducing the burden on hospital resources but also improving diagnostic accuracy. Popular libraries such as TensorFlow, scikit-learn, and PyTorch support such multimodal tasks, making traditional AI cost-efficient and accessible. When the task is prediction-focused, structured, and accuracy-driven, traditional AI is usually the best fit.</p><h3>What is Generative AI?</h3><h4>Definition and Core Principles</h4><p>Generative AI focuses on generating new data, which resembles human creative solutions by recognizing specific deep structures within datasets and reorganizing them into original output. Apart from simply producing texts and images from scratch, generative AI has redefined industry processes. For example, <a href="https://medium.com/r?url=https%3A%2F%2Fgithub.com%2Ffeatures%2Fcopilot">GitHub Copilot </a>enhances software development by suggesting code lines, saving engineers precious hours of work. Generative AI thrives in the environment of unstructured data, serving as a catalyst for innovation.</p><h4>Key Technologies</h4><ol><li><a href="https://quantumobile.com/blog/llms-everything-you-need-to-know/">Large Language Models (LLMs)</a>: GPT-4, Gemini, Claude for text and code generation.</li><li>Generative Adversarial Networks (GANs): producing images and videos.</li><li>Diffusion Models: powering tools like DALL·E 3 and Stable Diffusion for realistic imagery.</li></ol><h4>How it Works</h4><p>There are 3 main steps involved in how GenAI works:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VTnlbOAnZSnrcXsXfwAVYA.png" /></figure><h4>Tools and Examples</h4><p>Generative AI has a breakthrough potential in business. According to PwC, active implementation of GenAI can add <a href="https://www.pwc.com/us/en/tech-effect/ai-analytics/scaling-ai-capabilities-with-generative-investment.html">approximately $15,7 trillion</a> to the world’s economy. As a result, at Quantum, we see an increase in generative AI usage in business operations. Working in the field of data science and AI since 2015, we actively engage with multiple businesses and consult about potential advanced solutions for their niche. For example, in our blog, we recently wrote about hyper-personalized services that enable the generation of extra revenue and attract new clients.</p><p>E-commerce is another niche that maximizes the usage of generative AI for business scaling. AI-supported optimization of online shops is expected to generate a measurable positive impact, as we demonstrated in our solution for e-commerce retailing. Apart from significantly increased automation of routine tasks, engagement rates grew proportionally.</p><p>Having introduced a multilingual AI agent, we expanded market reach and ensured 24/7 support is available for all clients. Non-stop sales alongside solid customer support around the clock increased revenue and improved customer satisfaction rates.</p><p>Owing to deep learning techniques, at Quantum we were able to deliver <a href="https://quantumobile.com/expertise/generative-ai/">GenAI solutions</a> in various spheres, including healthcare and pharmacy, with ultimate benefit for each party:</p><ul><li>for patients — improved therapy compliance and efficacy;</li><li>for physicians — a more accurate decision-making process;</li><li>for healthcare providers — reduction of treatment cost through decreased number of hospitalizations as well as emergency treatments.</li></ul><p>Meanwhile, the ability to generate new content helps to automate the creation of marketing copy and product descriptions, freeing human teams to focus on other higher-end tasks. Working beyond the rigid limitations of traditional AI, the creative side of GenAI makes it more and more embedded into operational processes.</p><h3>Key Differences Between AI and GenAI</h3><p>Key differences of <a href="https://quantumobile.com/blog/the-difference-between-generative-ai-vs-traditional-ai/">generative AI vs traditional AI </a>can be summarized according to several key categories: goal, types of data, outputs, cost, and complexity.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gRWk94kQ_LoC6yl6CsYYSA.png" /></figure><h3>Analysis of Differences</h3><ul><li>Goal: traditional AI improves efficiency and is good at specific scenarios; generative AI sparks innovation and is able to generate new content.</li><li>Data: predictive AI depends on structured records; GenAI thrives on multimodal data.</li><li>Outputs: one predicts; the other generates.</li><li>Costs: open-source predictive models are relatively cheap and do not require a team of tech specialists to support them; training GPT-like systems costs more, as it requires an AI provider.</li><li>Complexity: businesses may prefer traditional AI for credibility, while GenAI requires new governance frameworks.</li></ul><h3>Use Cases: AI in Action</h3><h4>Finance</h4><p>Both Traditional AI and Generative AI have earned their spot in the finance sector, serving as a reliable assistant.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bhC1lH1MqznZ6BUIOU7V_Q.png" /><figcaption>Top current use cases of AI in fintech</figcaption></figure><p>Traditional <a href="https://quantumobile.com/blog/ai-in-fintech-exploring-cutting-edge-use-cases/">AI in financial services</a> underpins trading algorithms and identifies anomalies in structured datasets while protecting sensitive data. Above that, machine learning has revolutionized the sphere by automating routine tasks.</p><p>Generative AI may create personalized financial reports and summaries, allowing banks as well as individual entrepreneurs to correct their business strategy and offer personalized financial solutions for businesses. Above that, LLMs have become a cornerstone of document processing in finance, serving as a time- and cost-saving tool.</p><h4><a href="https://quantumobile.com/blog/generative-ai-in-healthcare-application-advantages-and-key-challenges/">Gen AI in Healthcare</a></h4><p>The exploration of machine learning in healthcare demonstrated that traditional AI can significantly enhance efficacy, reduce costs, and time consumption by healthcare specialists. Predictive analysis performed by a traditional AI is especially beneficial for doctors or healthcare analysts who are involved in research. Meanwhile, GenAI helps those healthcare professionals who deal with end clients:</p><ul><li>consultants,</li><li>receptionists,</li><li>nurses.</li></ul><p>Taking into account our expertise and experience in offering <a href="https://quantumobile.com/blog/how-to-get-actual-value-from-health-data/">AI-based solutions in healthcare</a>, we have proved through our multiple projects: predictive AI improves chronic disease diagnosis, improves prognosis, and risk stratification assessment.</p><h4>Manufacturing</h4><p>Manufacturing is another high-risk domain that has been experimenting with introducing AI technologies into its processes. From basically replacing human labor to automation of repetitive processes, AI technologies have earned their place in the industry. Safety is one of the paradigms that was redefined with the help of AI.</p><p>Computer vision systems with OCR became especially beneficial here, as they increase manufacturing efficiency. Our quality control solution demonstrated 99,9% accuracy in anomaly detection due to real-time video processing based on embedded AI.</p><p>Owing to solid analytical capabilities, AI-powered solutions can monitor equipment’s condition and predict its maintenance needs. This is a textbook example of traditional AI excelling at structured forecasting.</p><h4>Customer Support</h4><p>One of the best ways to assess the growing trend in GenAI usage is to see the number of <a href="https://quantumobile.com/portfolio/optimizing-e-commerce-conversion-with-a-proactive-ai-sales-agent/">GenAI-powered e-commerce sales agents </a>and chatbots. One of the projects our expert team at Quantum delivered was a generative AI chatbot that transformed customer service operations. Unlike traditional scripted bots, it offered empathetic interactions and cut response times while boosting customer satisfaction metrics.</p><p>Together, these few cases prove that regardless of the niche or sphere of usage, the real competitive edge lies in combining these two models — prediction and creation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pRHOy9K0uMZoJJikcR9RQw.png" /></figure><h3>Strengths and Limitations: Traditional vs Generative AI</h3><p>Both AI models have their strengths and limitations, which are used to determine the most appropriate tool for specific purposes.</p><h4>Traditional AI</h4><ol><li>Strengths: proven reliability, explainability, and relatively low cost. Works well in scenarios it was trained on.</li><li>Limitations: requires structured datasets, less efficient for tasks requiring a creative approach.</li></ol><h4>Generative AI</h4><ol><li>Strengths: availability of multimodal outputs, creativity, and adaptability in various areas.</li><li>Limitations: ethical considerations, relatively high computational costs, and risk of hallucinations when the data becomes too specific.</li></ol><p>Economic efficiency is another essential question lying in the long-term perspective of AI usage. Traditional AI often relies on open-source libraries, which are objectively cost-effective. On the contrary, generative AI requires a provider to pay for usage, which significantly increases costs.</p><p>As OpenAI CEO reported, training <a href="https://www.economist.com/leaders/2024/09/19/the-breakthrough-ai-needs">GPT-like AI models may require 1000,000,000$</a>, which increases potential expenditures for businesses looking to implement GenAI-based solutions. Identifying the processes and industries that will benefit from either model’s solutions is one of the keys to both cost- and money-efficient decisions in business.</p><h3>Risks and Ethical Considerations</h3><p>Both AI frameworks raise serious challenges:</p><ul><li><strong>Privacy</strong>: risk of sensitive datasets leaks during training.</li><li><strong>Bias</strong>: both models (predictive and generative) may strengthen societal biases.</li><li><strong>Copyright</strong>: generative AI <a href="https://hbr.org/2023/04/generative-ai-has-an-intellectual-property-problem?utm_source=chatgpt.com">can potentially reproduce copyrighted work, which raises serious legal disputes</a>.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ri63lhIYU7v51Ox96lAnPQ.png" /></figure><p>Working with AI for nearly a decade, we realize the complexity of ethical considerations of using both traditional AI and generative AI. Our groundwork and research on ethical AI frameworks emphasize the need for auditable pipelines, bias detection tools, and transparent reporting. For example, one approach is training on synthetic datasets generated under strict governance, reducing exposure to personal data while maintaining performance.</p><h3>Privacy</h3><p>The risk of sensitive data leakage has never been more critical than during AI training. Such exposure is not limited to a model’s certain development phase — deployment itself can also possess potential risks. The complex structure of modern generative AI systems, including the vast utilization of vast datasets, makes it difficult to trace the origin of the information. As a result, we have a conflict with current regulations (for example, GDPR).</p><p>Various AI tools have been actively introduced into many spheres, including finance and healthcare, where data vulnerability is at its highest. Not only the lack of a solid regulatory basis and procedures, which enable firm control over data transfer and its protection, but also the lack of technological tools to support all of the aforementioned, are in the spotlight of debates.</p><p>Several solutions, such as differentiated privacy and federated learning, are currently being investigated as potential countermeasures. They are expected to minimize data leakage, allowing new AI models to train on decentralized datasets.</p><h3>Bias</h3><p>Both traditional and generative AI may strengthen biases. One major reason underlying this is that they are trained on historical data that often reflects existing human prejudices and systemic discrimination. Consequently, it can lead to discrimination-based decisions in<strong> </strong>multiple areas, including:</p><ul><li>applications for loans,</li><li>hiring processes,</li><li>criminal justice.</li></ul><p>In case of non-generative AI, this can result in inaccurate risk assessment for certain demographic groups or misalignment. The cause for this is believed to be rooted in inappropriate training: <a href="https://openai.com/index/emergent-misalignment/">wrong answers and negative behaviors</a> during training produce misalignment in various spheres. For GenAI, bias can be detected in stereotypical or even potentially harmful content generation. Addressing bias requires not just careful data selection but also re-training the model by means of correct algorithms and specific positive reinforcement of “correct” behavior.</p><h3>Copyright</h3><p>Generative AI can potentially reproduce copyrighted work, which raises serious legal concerns. It is especially frustrating for content creators, artists, and publishers, who insist that their intellectual property is being repurposed without permission or financial compensation. The concept of “fair use” is being actively discussed in courts worldwide as the legal system attempts to keep pace with technological capability to generate content from millions of source items. In addition to that, there are legal questions concerning the ownership of the output itself: who owns the rights to a piece of content generated by an AI — the developer of the model, the user who prompted it, or is it un-copyrightable?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6ff3d34c7154" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/the-difference-between-generative-ai-vs-traditional-ai-6ff3d34c7154">The Difference Between Generative AI vs Traditional AI</a> was originally published in <a href="https://pub.towardsai.net">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LLMs: Everything you need to know]]></title>
            <link>https://quantum-inc.medium.com/llms-everything-you-need-to-know-b84ad9fdb2f8?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/b84ad9fdb2f8</guid>
            <category><![CDATA[llm-deployment]]></category>
            <category><![CDATA[gpt-4]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[ai-agent]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Tue, 02 Dec 2025 08:23:10 GMT</pubDate>
            <atom:updated>2025-12-08T16:12:39.413Z</atom:updated>
            <content:encoded><![CDATA[<h4>An overview of Large Language Models (LLMs), focusing on their types, differences, capabilities, and applications.</h4><h3>What are the Large Language Models?</h3><p><a href="https://quantumobile.com/expertise/large-language-models/">Large language models</a> (LLMs) are powerful AI models designed to understand and generate human-like text. They use massive amounts of data to learn patterns in language, allowing them to answer questions, generate content, and perform various language-related tasks.</p><h3>How powerful are LLMs</h3><p>Large language models work in a few key steps. Initially, they learn from tons of text to understand grammar, context, and general knowledge. Text gets segmented into smaller units called tokens, and neural networks process these tokens to transform input into meaningful output. Afterward, the model undergoes fine-tuning for specific tasks, like answering questions or generating text, and then, during inference, produces output, like generating text or answering questions.</p><h3>Handling large amounts of data: talking numbers</h3><p>Language models vary in size and capabilities. For example, GPT-3 was trained on a vast 570 GB of text data. In contrast, the previous generation’s state-of-the-art BERT model had a training dataset of only 16 GB of text.</p><p>To give you some perspective, a 1 GB text file can hold roughly 178 million words. Just think about the immense number of words used to train even the smallest one from LLMs! This way, you could input an entire book into these models. Yes, it might be costly, but it’s definitely feasible!</p><h3>Adaptability to different domains</h3><p>Large language models possess remarkable versatility and can work with data from any field without delving into domain-specific details. However, to truly excel in a specific topic, they require fine-tuning tailored to that particular domain. This adaptability empowers them to comprehend and produce relevant content across various fields, including finance, healthcare, or even your favorite hobby.</p><h3>Which tasks do LLMs solve?</h3><p>LLMs are highly adaptable and can tackle various NLP tasks. These include text generation, translation, text summarization, classification, sentiment analysis, conversational AI, and chatbots. Let’s take a closer look at some of these tasks:</p><h3>Named Entity Recognition &amp; Relation Extraction</h3><p>LLMs can identify specific entities in textual data, such as names, places, or organizations, such as the name “Mike” and the institution “MIT,” and establish connections based on their relationships, like “Mike is studying at MIT.” It is essential for organizing and categorizing information effectively, especially if you need to process massive documents.</p><h3>Sentiment &amp; Intent analytics</h3><p>Large language models excel in analyzing language to determine the intent behind a user’s query or message and whether it expresses a positive, negative, or neutral sentiment. This capability is crucial for businesses to gauge brand loyalty and make informed decisions.</p><h3>AI Agents &amp; Virtual Assistants</h3><p>LLM-powered agents are invaluable for customer success. A deep understanding of language and domain data enables them to engage in natural conversations and intuitive user interactions. As an example, check our <a href="https://quantumobile.com/portfolio/llm-based-financial-investment-advisory-chatbot/">LLM-based financial advisory chatbot</a> for instant investment advice.</p><h3>ChatGPT and GPT-based models</h3><p>First things first, ChatGPT isn’t a standalone model; it’s a composite system comprising GPT-3.5 Turbo and GPT-4 models.</p><p>GPT-3.5 Turbo is a powerful language model known for its impressive ability to understand and generate human-like text. However, some businesses, especially those requiring advanced language understanding, might fail from GPT-3.5 and require GPT-4 integration.</p><p>GPT-4 is relevant for industries such as legal services for in-depth case analysis or complex scientific research, where its enhanced capabilities in understanding context and generating more accurate and contextually relevant text can be valuable.</p><p>However, there are concerns about data privacy since sensitive data passes through OpenAI servers, and there are no alternative options for keeping it in-house. These considerations are crucial when leveraging these advanced language models for specific applications.</p><h3>Open-source large language models</h3><p>Custom open-source LLMs may not match the scale of GPT-4, but they offer the flexibility of fine-tuning for various tasks, which GPT-based models handle as well. However, there is one thing: open-source LLMs are way easier to fine-tune on specific-domain tasks.</p><p>Let’s say you need a chatbot therapeutist that can make an initial diagnosis or direct users to specialized doctors based on the same symptoms. In such case, a pre-trained open-source LLM fine-tuned on specific domain data will definitely excel where GPT-4 falls short.</p><p>Most open-source LLMs are available on <a href="https://huggingface.co/">Hugging Face</a>, accessible via the <a href="https://huggingface.co/docs/transformers/index">Transformers library</a>. Since this is a rapidly evolving field, the top open-source LLM models change almost monthly.</p><p>On the day of writing this article, the <a href="https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard">Open LLM Leaderboard</a> appeared as follows:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aNAZMIRzP6flBd4Alg_A-w.png" /><figcaption>Open LLM Leaderboard</figcaption></figure><p>The competitive advantage of open-source LLMs lies in data privacy, as they host the model within their infrastructure. This means you can access the source code, understand the model’s operation, and verify its behavior, which can be crucial for ensuring ethical and unbiased outputs. So, choosing a suitable model for specific data needs requires significant consideration.</p><h3>Large Language Models deployment</h3><p>When it comes to deployment, for OpenAI models, the process is straightforward and transparent-you can purchase an API and integrate it into your application.</p><p>Deploying open-source LLMs can be costly, especially when handling substantial data loads. It also requires the use of less obvious optimization methods to guarantee speedy performance. However, at Quantum, we’ve implemented several effective strategies in our projects that helped optimize the model operations while managing the costs without compromising the quality.</p><p>Working with open-source language models may present challenges, but their capabilities are really worth it. Embracing the potential of open-source language models can result in text analysis and generation solutions that are more accurate, context-aware, and efficient.</p><h3>Prompt engineering for accurate outputs</h3><p>Prompt engineering is carefully crafting and refining the prompts or instructions that serve as helpful add-ons transmitted in model requests to guide responses. These prompts specify what to answer, how to respond, which words to use or avoid, the recommended answer length, and the chatbot’s role.</p><p>This feature allows us to configure the model as needed, obtain the proper answer, and seamlessly switch between tasks.</p><p>You can learn more about prompt strategies for different purposes in our article: “<a href="https://quantumobile.com/rd-blog/how-to-build-question-answering-system-using-llm/">How to build question-answering system using LLM.</a>”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/830/1*tXtClOtiIJCm-JAiYKYGtA.png" /><figcaption>Prompt engineering strategies for LLMs. <a href="https://blogs.novita.ai/what-is-llm-embeddings-all-you-need-to-know/">Source</a></figcaption></figure><h3>Looking Ahead of LLM’s Future</h3><p>The latest advancements in LLM technology will likely begin a new era of automation and efficiency across various industries. We can anticipate LLMs being employed in healthcare, finance, and education solutions to streamline processes and provide valuable insights. However, it comes with the responsibility of ensuring ethical utilization and a solid commitment to protecting user data.</p><p>As LLMs keep improving, it’s vital to establish strong data protection and clear AI usage rules. Also, ongoing research should tackle biases and promote fairness in AI to avoid unintended issues and ensure these innovations benefit society.</p><p><em>Originally published at </em><a href="https://quantumobile.com/blog/llms-everything-you-need-to-know/"><em>quantumobile.com</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b84ad9fdb2f8" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AI Cost Reduction Outlook: How to Cut Operational Expenses Smartly]]></title>
            <link>https://pub.towardsai.net/ai-cost-reduction-outlook-how-to-cut-operational-expenses-smartly-5da3b56799fb?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/5da3b56799fb</guid>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[ai-cost-reduction]]></category>
            <category><![CDATA[generative-ai-solution]]></category>
            <category><![CDATA[genai]]></category>
            <category><![CDATA[ai-development]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Sat, 29 Nov 2025 18:02:19 GMT</pubDate>
            <atom:updated>2025-11-29T18:02:19.722Z</atom:updated>
            <content:encoded><![CDATA[<h4>Achieve significant cost savings with a four-layer AI framework that moves beyond simple automation to optimize workflows and generate predictive forecasts.</h4><p>How much is your organization losing every quarter by ignoring AI cost reduction potential? According to a recent McKinsey study [<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">1</a>], companies that have already applied gen AI across most critical operations see cost reduction by over 20%.</p><p>While 93% of C-level executives plan to use AI to slash expenses in the coming 18 months [<a href="https://web-assets.bcg.com/d1/df/415a1a324ae8a892ada58c254a9b/bcg-executive-perspectives-driving-sustainable-cost-adv-with-ai-ep15-20may2025.pdf">2</a>], the gap between intention and execution continues to widen — costing businesses millions in missed opportunities.</p><p>Through our work with over 50 businesses seeking to streamline spending and improve performance, we’ve discovered that AI cost efficiency is incomparably successful. Our AI consultants, time and again, observed that companies implementing artificial intelligence technology generally achieve 10x higher ROI than those still dependent on manual workflows.</p><p>Having helped organizations adopt AI and machine learning solutions for quite some time, we at Quantum decided to pull back the curtain on how AI reduces costs and explain the practical steps CEOs and CMOs can take to prove AI ROI and start cutting overheads that quietly bleed budgets every day.</p><h3>How Does AI Reduce Costs: Four Layers of AI Cost Impact</h3><p>Manual task automation and productivity gains — that’s usually where the AI conversation starts. And ends. As McKinsey’s survey found [<a href="http://medium.com/r?url=https%3A%2F%2Fwww.mckinsey.com%2Fcapabilities%2Fmckinsey-digital%2Four-insights%2Fsuperagency-in-the-workplace-empowering-people-to-unlock-ais-full-potential-at-work">3</a>], just 1% of leaders say they’ve reached a stage where AI is fully integrated and actually drives outcomes.</p><p>While basic task automation delivers immediate savings, it represents only one of the four layers of AI’s cost optimization potential. Each of them helps companies cut expenses and increase margins, but on different levels. Let us show you how.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*deyd6pKHBQ6paydn3edCJw.png" /><figcaption>Source: Image by the author.</figcaption></figure><h3>1. Surface Layer: Direct Automation Savings</h3><p>The surface layer represents what most organizations, to be exact 75% of the surveyed [<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">4</a>], discuss in boardrooms: direct task replacement and immediate labor savings. It’s the “low-hanging fruit” of AI implementation, but also a vital first step for companies that, for some reason, haven’t embraced gen AI solutions yet.</p><p>Here, we talk about the digitalization of simple, routine tasks like email management or document scanning, where one human action is replaced with a digital one, and saves X hours. Companies investing at least 20% of their IT budget in automation achieved an average of 22% in cost savings [<a href="http://medium.com/r?url=https%3A%2F%2Fwww.bain.com%2Finsights%2Fautomation-scorecard-2024-lessons-learned-can-inform-deployment-of-generative-ai%2F">5</a>], primarily by automating repetitive tasks and minimizing manual errors.</p><p>One particularly noticeable case is the seemingly simple automation of multilingual customer support for one of our clients. A Canadian provider of AI-powered customer experience platforms poured millions yearly on large teams handling repetitive queries in rare and mixed languages.</p><p>Now, 70% of the inquiries are addressed by a natural language processing (NLP) chatbot platform powered by Google BERT [<a href="http://medium.com/r?url=https%3A%2F%2Fquantumobile.com%2Fportfolio%2Fmultilingual-chatbot-platform%2F">6</a>]. Thanks to this solution, the company cut 20–25% in customer service expenses within just one year, a six-figure operational spend.</p><h3>2. Process Layer: Workflow Optimization and Error Reduction</h3><p>This is the layer where AI reconfigures the entire workflow or process that may involve multiple tasks and systems. It’s where the real cost leverage begins.</p><p>Instead of simply automating a handful of tasks, generative AI at this level helps companies get rid of duplicated work and bottlenecks, collapse multi-step approvals, and remove latency from critical processes. And it does all of this with little to no human touch. See the difference?</p><p>From our experience, HR and financial process automations top the demand list because they offer clear ROI, standardized workflows, and regulatory compliance benefits that appeal to executives looking for measurable wins and ways to reduce operational costs. Talking about quantifiable outcomes, here’s one of our clients’ stories about an automated document parsing solution [<a href="http://medium.com/r?url=https%3A%2F%2Fquantumobile.com%2Fportfolio%2Fautomated-document-parsing-solution%2F">7</a>].</p><p>A Sweden-based financial services company needed to completely overhaul its invoice processing workflow, which was full of manual bottlenecks from dealing with thousands of documents daily.</p><p>So here’s what was done:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*jjDrgLzVt-ch3IhrjRvS2Q.png" /><figcaption>Source: Image by the author.</figcaption></figure><h3>3. Intelligence Layer: Predictive Insights and Proactive Cost Prevention</h3><p>Business intelligence solutions powered by generative AI technologies allow companies to spot issues and not-yet-visible cost drivers before they impact the bottom line. That’s what the intelligence layer is about and where the cost of implementing AI begins to pay off in measurable ways.</p><p>Realizing the huge strategic and financial upside, 28% of CFOs are already using artificial intelligence to automate forecasting, and another 39% plan to adopt it within the year [<a href="http://medium.com/r?url=https%3A%2F%2Fwww.pwc.com%2Fus%2Fen%2Fexecutive-leadership-hub%2Flibrary%2Felection-insights-2024-cfo.html">8</a>]. The use cases are diverse and usually come with a million-dollar perspective of cost avoidance and efficiency gains.</p><p>For example, one oil and gas exploration company uses a machine learning model to predict the location of oil reservoirs [<a href="http://medium.com/r?url=https%3A%2F%2Fquantumobile.com%2Fportfolio%2Fpredicting-oil-felds-using-solids-dna%2F">9</a>]. The solution segments data by geographical and seasonal factors and applies feature selection techniques to achieve the desired 70% accuracy in site predictions.</p><p>And now, the most interesting part — the actual advantages of cost-effective AI.</p><p>The client saves $10–40 million per exploration cycle through more data-driven and precisely targeted site selection. On top of the direct savings from fewer unsuccessful drilling operations, the intelligence-layer solution allowed the company to refine its exploration strategy and identify previously overlooked high-potential areas. They expanded their explorable territory by 300% while decreasing risk exposure by 70%.</p><h3>4. Ecosystem Layer: Network Effects and Compound Improvements</h3><p>Traditional cost reduction follows predictable patterns: cut 10% from operations, save 10% overall. Ecosystem-layer AI breaks this linear relationship. Organizations operating at this level create a snowball effect where improvements multiply faster as more partners join their<br>network.</p><p>The cost of implementing artificial intelligence at the ecosystem level becomes insignificant compared to the loss of staying out.</p><p>To put it in context, let’s take a medicine service provider and see the mechanics of the network effect.</p><p>Let’s look at how the AI-powered decision support system (DSS) helps medical practitioners fight COVID-19 and the associated challenges better [<a href="http://medium.com/r?url=https%3A%2F%2Fquantumobile.com%2Fportfolio%2Fai-powered-decision-support-system-for-assisting-medical-staff%2F">10</a>]. Each of the 50+ hospitals and regional health authorities contributes data to a shared AI-based DSS solution that improves treatment recommendations, protocol compliance, and EMR synchronization for all facilities.</p><p>If we go into detail, they collect patient data, e.g., examination results, vital signs, and treatment history, which is automatically synchronized with the central hospital information system. So when one of the hospitals encounters a similar case or pattern, the DSS gives the optimal recommendations that adhere to expert-defined rules.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BWjFD5Cfb83Q0u47yXq4YA.png" /><figcaption>Source: Table by the author.</figcaption></figure><p>The most compelling aspect is that even if competitors invest in the same technology, they won’t be able to replicate the network effect, as they lack the data network that powers optimization.</p><h3>AI Investment Payoff: Costs, Returns, and Insights</h3><p>“How much does AI cost?” and “What is the approximate cost of implementing artificial intelligence in business?” These are the two most frequently asked questions Quantum AI consultants have to answer repeatedly. But evaluating the AI development and implementation cost in isolation will miss the full picture, where technology investment evolves into a million-dollar value creation engine.</p><p>Having analyzed 50+ enterprise AI projects, here’s a simple table comparing the average development expenses versus potential financial returns.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hPe_eiC1ca2D4mXFhxBlPQ.png" /><figcaption>Source: Table by the author.</figcaption></figure><p>Let’s be upfront that the AI development cost may seem pretty high, especially when it comes to custom predictive engine development or data integration pipelines.</p><p>But organizations following systematic implementation achieve returns that justify initial expenditure within 18–24 months and create sustainable competitive advantages worth multiples of original investments.</p><h3>AI Cost Reduction Through a Technical Lens</h3><p>AI model deployment is only one piece of the puzzle. To see the tangible cost benefits from artificial intelligence, business leaders also need to establish the right technical architecture that optimizes performance while lowering operational expenses.</p><p>Our AI experts have outlined four critical technical components that help you ensure your AI initiatives deliver maximum ROI without draining resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/546/1*1Peq0RzrwZCMJcAugdHGIQ.png" /><figcaption>Source: Image by the author.</figcaption></figure><h3>Scalable Data Architectures</h3><p>Data infrastructure is a major, yet frequently overlooked, financial burden in AI projects. Easy-to-scale architecture designed from the start helps companies avoid the expensive “rebuild and migrate” problem as data volumes grow.</p><p>The best long-term strategy would be to adopt an elastic infrastructure, no matter whether you choose cloud-native solutions, hybrid data lakes, or distributed pipelines.</p><h3>AI Model Selection and Tuning</h3><p>An advanced ML model isn’t always the right fit for every case. Many enterprises initially opt for large-scale deep learning solutions, which often demand huge computing power and specialized hardware.</p><p>Yet, what we recommend is to select models proportionate to the task. For example, you don’t need a neural network to classify structured tabular data when classical logistic regression or gradient boosting are more than sufficient to deliver accurate results.</p><p>Another practical way to save costs on development is fine-tuning pre-trained models, rather than building one from scratch. Told in confidence, fine-tuned smaller models often outperform large general-purpose models at 10x lower inference costs for domain-specific tasks.</p><h3>AI Integration into Workflows</h3><p>A company can realize the real value of artificial intelligence only when it integrates seamlessly into existing business operations. Nothing surprising here. However, many companies approach AI projects as a standalone add-on, and as a result, they struggle with inefficiencies, duplicate tools, and extra spending on middleware.</p><p>So, by designing AI around current workflows, organizations reduce friction, decrease redundant manual handoffs, and cut unnecessary licensing expenses.</p><h3>Continuous Learning with MLOps</h3><p>Unlike traditional software that often follows a “build and deploy” cycle, AI systems need constant refinement to continue producing relevant outputs.</p><p>MLOps (machine learning operations) frameworks help you put this task on automation rails by taking care of model retraining, drift monitoring, and versioning with minimal human intervention. Such an automation dramatically lowers ongoing maintenance costs.</p><h3>How to Get Started: AI Implementation Roadmap</h3><p>McKinsey’s recent research reveals a crucial insight: establishing a clearly defined roadmap to drive generative AI adoption has one of the biggest impacts on EBIT [<a href="https://www.mckinsey.com/capabilities/quantumblack/our-insights/the-state-of-ai">11</a>]. In other words, the fastest way to turn artificial intelligence into a profit engine is to plan its adoption in value-driven phases.</p><p>Here are the steps to follow to help businesses adopt AI technology painlessly and with maximum ROI and effectiveness.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fwQycSnqzkzIHL7Nt6EL8w.png" /></figure><h3>Step 1. Define High-Impact Goals</h3><p>Identify the key pain points where gen AI can save your team time or reduce expenses. To do that, ask yourself these questions:</p><ul><li>Where does human decision-making repeatedly slow down the process?</li><li>Which processes generate costs that rarely appear on the balance sheet?</li><li>Where do delays directly affect customer satisfaction, retention, or revenue?</li></ul><p>What’s important here is to start with 1–2 processes most subject to costly bottlenecks and not try to revamp the entire operation. Once you pinpoint them, set clear objectives to better track ROI and put capital into initiatives that deliver the most value.</p><h3>Step 2. Map Processes &amp; Data Flows</h3><p>To separate out repetitive and time-draining tasks, you should understand and document how existing business processes move across departments. Create as detailed process maps as possible, highlighting bottlenecks and redundancies.</p><p>Organizations that thoroughly map their processes before AI rollout achieve 35% better results because they understand exactly where automation will have maximum impact.</p><p>You should also trace data flows, in particular, where information gets delayed, duplicated, or lost between systems. Identify data sources, quality levels, and access points that will feed your AI systems. It’s a must if you want to integrate technology with existing workflows properly.</p><h3>Step 3. Select Optimal AI Solutions and Architecture</h3><p>That’s one of the trickiest and decisive tasks requiring special expertise. When choosing the right solution, look for technologies that can bring quick automation wins and scale when your project evolves. You can combine several AI technologies in one solution to get better results and multiply the cost savings.</p><h3>Step 4. Pilot &amp; Measure</h3><p>The best practice is to deploy AI solutions in controlled phases. So, start with small pilot programs in low-risk, yet high-impact areas to demonstrate the immediate value. Then, continue with proof-of-concept implementations lasting 30–60 days, followed by department-wide rollouts.</p><p>To understand whether AI really works for your business, you should assess the effectiveness of your project. Depending on your goals, it could be lower error rates, saved hours for your team, faster workflows, etc.</p><h3>Step 5. Scale &amp; Integrate</h3><p>When you are certain your AI project is stable and proven to be reliable in real-world scenarios, expand it into connected processes and organization-scale workflows. Key points here are establishing data pipelines and governance standards to ensure the quality of data for AI. Now, your model is ready to be integrated with your business apps to enable automation.</p><h3>Step 6. Monitor &amp; Optimize</h3><p>For your AI model to stay relevant and perform as expected, it needs updates and refinements over time. In this regard, introducing MLOps practices would be the best choice as it automates most of the core maintenance activities. It’s much easier to prevent performance degradation, as you will be alerted as soon as anomalies are detected.</p><h3>Final Thoughts on AI Cost Reduction Potential</h3><p>The fact is, gen AI generates returns unmatched by other technology investments. With artificial intelligence, large enterprises as well as small businesses can gain transformational results that drive lasting competitive advantages on top of direct cost savings.</p><p>To sum up, here are several undeniable pieces of evidence of AI cost efficiency:</p><ul><li><strong>Artificial intelligence delivers immediate and measurable impact</strong></li></ul><p>While most organizations experiment with AI, expert-guided implementations consistently reduce operational costs by 20–35% within the first year through automation of high-volume processes and elimination of manual errors.</p><ul><li><strong>AI cuts errors and inefficiencies</strong></li></ul><p>Modern ML systems show incredible 95%+ accuracy in data processing, quality control, and decision-making tasks. So, you can rely on them to reduce costly human errors that typically account for 15–20% of operational expenses.</p><ul><li><strong>AI optimizes resources and increases ROI</strong></li></ul><p>ML algorithms let you make the most out of your current equipment, assets, and workforce capacity. For example, smart scheduling and routing software can streamline processes to gain 3–8x return on AI investments.</p><ul><li><strong>AI enables scalable growth without cost increases</strong></li></ul><p>Organizations can expand operations, serve more customers, and process higher volumes while maintaining or reducing per-unit costs through intelligent automation.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5da3b56799fb" width="1" height="1" alt=""><hr><p><a href="https://pub.towardsai.net/ai-cost-reduction-outlook-how-to-cut-operational-expenses-smartly-5da3b56799fb">AI Cost Reduction Outlook: How to Cut Operational Expenses Smartly</a> was originally published in <a href="https://pub.towardsai.net">Towards AI</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[State-of-the-art models for guided depth super-resolution (GDSR)]]></title>
            <link>https://medium.datadriveninvestor.com/state-of-the-art-models-for-guided-depth-super-resolution-gdsr-1802c737122d?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/1802c737122d</guid>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <category><![CDATA[image-super-resolution]]></category>
            <category><![CDATA[image-processing]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Thu, 27 Feb 2025 04:35:40 GMT</pubDate>
            <atom:updated>2025-03-03T10:37:30.423Z</atom:updated>
            <content:encoded><![CDATA[<p>Greetings, computer vision enthusiast! In this article, you will learn about Guided depth super-resolution, a trendy topic in modern CV. The article covers both the basics and cutting-edge approaches evaluated on a real-world dataset. If you are an experienced developer already familiar with the topic, feel free to skip the first section and jump straight to the hardcore. Otherwise, we invite you to begin your journey in understanding GDSR.</p><h3>What is Guided depth super-resolution (GDSR)?</h3><p>Let&#39;s begin with a simpler concept — image super-resolution. Sounds familiar, right? Indeed, this is about increasing the spatial resolution of an image so that a blurry picture becomes clear. Technically speaking, the process involves generating high-frequency details, which basically means smoothing out the rough texture, like in the image <a href="https://miro.medium.com/v2/resize:fit:1100/format:webp/1*rmQjKd4uETJtwYMRTDzmrg.png">below</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ye_wVOh4kOLSoOvZ" /><figcaption>Image 1. Super-resolution of an image of a cat</figcaption></figure><p>The second important concept is a depth image. This image contains information about the distance from a certain point of view, in most cases, a camera. In particular, it might be represented as a 4th channel (so-called RGB-D image). In the depth image, each pixel corresponds to the distance from the captured object to the camera in meters (or other units). Capturing depth information is usually achieved by employing one of the 2 sensors: either Time-of-flight (ToF) or Light Detection And Ranging (LiDAR) sensors. Their working principles are similar: both send a ray of light and measure the time it takes for the ray to bounce back. You can read more about these <a href="https://pmt-fl.com/time-of-flight-sensor-vs-lidar-what-are-the-differences/#:~:text=ToF%20sensors%20typically%20use%20infrared,%2C%20high%2Dresolution%20spatial%20data.">here</a>.</p><p>Now, it is not hard to guess what depth super-resolution (DSR) is about. True enough, the goal of the task is to increase the spatial resolution of a depth image. The problem arises rather often since both ToF and LiDAR cameras are pretty expensive, especially in high resolution. Depth information is essential in numerous contexts, for example, in 3D scene reconstruction.</p><p>The last thing remains. Namely, what is the &quot;guided&quot; part all about? Here, it actually gets interesting. Quite conveniently, ToF cameras are often equipped with other sensors that capture information about color in high resolution. Thus, in addition to the depth image, we usually have a companion RGB image, which can be utilized to guide the super-resolution process. It is noteworthy that adding the RGB guidance also aids the mathematical framework since DSR is an ill-posed problem per se — it is possible to reconstruct multiple high-resolution depth maps from a low-resolution depth image without a color guide.</p><p>With that said, let&#39;s formally define GDSR: GDSR aims to reconstruct a high-resolution depth map from a low-resolution observation with the help of a paired high-resolution color image. The image below illustrates the task:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zh4p4x_SI3odC_c8" /><figcaption>Image 2. GDSR: given a color image and a low-resolution depth, we reconstruct a high-resolution depth map</figcaption></figure><h3>Traditional approaches</h3><p>To provide a baseline for more sophisticated solutions, it is useful to look into more simple ones. The most basic super-resolution method is bilinear interpolation, the default in OpenCV. Let&#39;s first look at the problem from a different angle to understand how it works. For a given image I with shape m x n, the super-resolved image ISR is like a copy of I, only with higher pixel density, or, in other words, a more fine-grained pixel grid. Thus, we want to estimate the values of a 2D function, given its values in a limited number of points. This is a common mathematical problem called 2D function interpolation. There are multiple solutions to this problem; the simplest one is the above-mentioned bilinear interpolation. It takes the closest pixels to the one we have to estimate and averages their values. As simple as it is, it may work frustratingly well, providing a nice balance between precision and speed. If one is willing to trade off some speed for a higher accuracy, one should consider bicubic interpolation. This approach estimates the value for a pixel using a cubic function of its neighbors. As a result, we get a much smoother <a href="https://upload.wikimedia.org/wikipedia/commons/thumb/f/f5/Interpolation-bicubic.svg/440px-Interpolation-bicubic.svg.png">image</a> than using <a href="https://upload.wikimedia.org/wikipedia/commons/thumb/d/dd/Interpolation-bilinear.svg/440px-Interpolation-bilinear.svg.png">bilinear interpolation</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/784/1*SVtJswfdsZQVWDd5XyG-zw.jpeg" /><figcaption>Image 3. Example of bicubic and bilinear interpolation</figcaption></figure><p>Another advantage is improved detail preservation.</p><p>The main drawback of bicubic interpolation in comparison with its bilinear counterpart is its potential for artifacts, as a cubic function works on a larger scale and can sometimes result in unreasonably high or low values.</p><p>As efficient as these solutions might be in specific scenarios, neither bilinear nor bicubic interpolation scales well with the increase of the resolution factor. Indeed, they might be efficient for increasing the resolution by 2–4 times, but if you want to super-resolve the image further, say by 8 or even 16 times, they will fail miserably since they do not use the RGB guidance, and thus cannot infer the correct information beyond a certain threshold. In such a case, you would need more sophisticated solutions, described in the upcoming sections.</p><h3>Evaluation dataset</h3><p>Before diving into modern solutions, let&#39;s look at the dataset that was used to evaluate them. The data was borrowed from the <a href="https://data.4tu.nl/articles/_/21960932/1">3rd Autonomous Greenhouse Challenge</a>. It contains 834 RGB-D image pairs of lettuce plants, where the &quot;D&quot; stands for the depth image. Each image comes in full HD resolution (1080x1920 pixels). For evaluation purposes, the depth images were first downsampled by a factor of 4 and then super-resolved back to full HD for comparison with the ground truth.</p><p>The dataset consists of 2 subdatasets. The first is a close-on view of a single lettuce plant, while the second is a birds-eye view encompassing multiple plants in a single image:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TotDucD-Fk725_FfH6RAVQ.jpeg" /><figcaption>Image 4. Pictures from the 3rd Autonomous Greenhouse Challenge demonstrating 2 underlying data distributions</figcaption></figure><h3>SOTA solutions</h3><p>Quite predictably, the most accurate approaches involve deep learning.</p><h4>Structure Guided Network via Gradient-Frequency Awareness</h4><p>It is a frequent pattern in deep learning when a powerful idea is transferred from one field to another. The transformer architecture is a good example — it rose from solving NLP tasks to aiding numerous computer vision problems, some of which we will see later in this article. Something similar happens here, only on a smaller scale. Indeed, the idea of transferring structure during super-resolution comes from a related but slightly different task: single image super-resolution (SISR). The reason why structure is so important is easier to understand once you have seen it in a specific <a href="https://arxiv.org/abs/2003.13081">example</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/471/0*wMrl4qZ1fo1eqlQe" /><figcaption>Image 5. Comparison of 5 different super-resolution methods. Illustrates the efficiency of structure-guided approach (f)</figcaption></figure><p>The picture shows 6 high-resolution images: the ground truth (top-left) and the results of 5 super-resolution algorithms. It is easy to see that while all algorithms successfully capture the content, only one (bottom-right) does a nice job of preserving the structure — the other 4 algorithms produced results that are either too smooth or too noisy. But how do we capture the structure? In the original SGNet paper, the concept of &quot;structure&quot; is divided into 2 principal components: the gradient and the frequency of the image. The former represents the change in intensity (or color) between neighboring pixels, while the latter refers to the rate of these changes over larger spatial areas, helping to separate overall image structure into fine and coarse patterns across the entire image. SGNet is trained in a residual fashion: first, the low-resolution depth image is upsampled to the desired dimensions using simple bicubic interpolation; then, a neural network is applied to add gradient and frequency features using the color guide. Also, the loss function is modified to punish the network for missing structure information. For a more detailed explanation, please refer to the original <a href="https://arxiv.org/abs/2312.05799">paper</a>.</p><h4>Model&#39;s performance</h4><p>This model performs exceptionally well on the above-described dataset. After fine-tuning, it works almost twice as good as bicubic upsampling.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-ZI1WJWmINDknhBIXdwcYQ.png" /><figcaption>Table 1. Comparison of SGNet model’s metrics with baseline algorithm on lettuce dataset</figcaption></figure><p>Visually, the result is almost indistinguishable from the ground truth:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/981/0*fu6AzmSgaJN2tBNs" /><figcaption>Image 6. Comparison of the ground truth depth map against the predicted depth map</figcaption></figure><h3>DepthAnything + SegmentAnything</h3><p>Foundation models, like <a href="https://dinov2.metademolab.com/">DinoV2</a> or SegmentAnything, have gained significant popularity in the computer vision field in recent years. These models have been trained on large and diverse datasets to prepare for every imaginable scenario. Although a foundation GDSR model is yet to be trained, other foundation models could be utilized to perform a 0-shot GDSR. In particular, we will use 2 foundation models:</p><ol><li>DepthAnything (<a href="https://arxiv.org/abs/2401.10891">DAny</a>). This model solves the problem of monocular depth estimation. Namely, it estimates the depth map given a color image. Clearly, the task is significantly more complex than GDSR, so naturally, a straightforward application of DAny would yield inferior results. Besides, there is another caveat: DAny outputs relative depth. In other words, its outputs do not reflect any human-readable units, such as inches or centimeters. Instead, they can only be interpreted relative to one another. For example, if one pixel is at distance 1, and another pixel is at distance 2, then it means that the former is twice as close to the viewpoint as the latter. But the exact distance is not known. The reason for this queer output format is hidden in simple geometry. When projecting a 3D world into a 2D plane (which is basically what a camera does when it takes a photo), the depth information is permanently lost. This is the cost you pay for projection. Thus, retrieving the depth using only the color image is impossible. Of course, the problem becomes entirely solvable with the addition of supplementary information. For example, knowing the distance from as few as 2 pixels is enough to restore the metric depth (depth in absolute units, like meters) for the whole image.</li><li>SegmentAnything (<a href="https://arxiv.org/abs/2304.02643">SAM</a>). This model, introduced by Meta AI, excels at 0-shot semantic segmentation. It was trained on a massive dataset with 11M images and over 1.1B masks, more than 99% percent of which were generated fully automatically.</li></ol><p>To combine these elements into a working solution, we offer the following algorithm, described in the workflow diagram below:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QZLt7j8PoibHzEhG" /><figcaption>Image 7. Algorithm diagram.</figcaption></figure><p>Let&#39;s break it down step by step.</p><ol><li>Input: high-resolution color image ImHR and a low-resolution depth map DLR, highlighted with a red border.</li><li>Apply DAny to the color image to obtain a high-resolution depth estimate: DEHR:= DAny(ImHR). Downsample it to match the size of the ground truth: DELR:= bilinear_donwsample(DEHR).</li><li>Learn the linear map <em>f</em> from DELR to the ground truth DLR. This is a linear regression problem, and it can be solved using the ordinary least squares (OLS) method.</li><li>Apply map <em>f</em> to the high-resolution estimate to obtain the high-resolution metric depth prediction: DHR:= <em>f</em>(DEHR) (highlighted in green).</li></ol><p>The algorithm above summarizes only the top part of the diagram above (excluding the lower branch); however, it can be used as an independent algorithm itself. To enhance its performance, we propose the following modification. We hypothesize that the relative depth is more consistent between the pixels of a single object than between pixels from different objects. Thus, we are willing to learn a separate map <em>fobj</em> for every object in the image (and a separate map <em>fbg </em>for the background).</p><p>This leads us to a slightly modified algorithm with the same steps 1–2 but different further steps:</p><p>3. Apply SegmentAnything to the high-resolution color map to obtain a high-resolution segmentation map: SHR:= SAM(ImHR).</p><p>4. Downsample the segmentation map to match the size of the ground truth depth: SLR:= bilinear_donwsample(SHR).</p><p>5. Learn a different linear map <em>fobj</em>, mapping the low-resolution relative depth (DELR) to the low-resolution ground truth depth DLR for each object in the image detected on the previous step (background may be considered as an object as well). One way to do this is to use the OLS method.</p><p>VI. Finally, the metric depth prediction is obtained by applying the learned maps to the high-resolution depth estimate: DHRobj:= <em>fobj</em>(DEHRobj).</p><p>The main advantage of this algorithm compared with SGNet is that it does not require model training or fine-tuning. Note that the linear regression model learned in the 3rd step of the algorithm is learned during inference for each individual input sample; its weights are not shared between different inputs — rather, they are learned separately. This does slightly negatively affect inference time, but it implies that this approach can be applied without prior training.</p><p>Now, let&#39;s look at the performance of the proposed method.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1mwaNHXhkb6f7LhhYkdYBA.png" /><figcaption>Table 2. Foundational model’s metrics on the lettuce dataset, compared with the baseline</figcaption></figure><p>As we can see, the approach does not yield great results. It outperforms bicubic only on one dataset split; on the other 2, it performs worse. The reason for its inferior performance likely lies in the efficiency of DepthAnything. Despite being SOTA in-depth estimation, it cannot compete with other alternatives for GDSR, which is inherently a simpler problem, as it uses a low-resolution depth map (which DAny does not). On the bright side, however, the rapid development of depth estimation models may lead us to the point when this method might show competitive performance in the field of GDSR as well by substituting DAny with a more advanced alternative.</p><h3>Code hacks</h3><p>Before we jump to conclusions, we will use this opportunity to share 2 implementation details that would allow us to run SGNet on a reasonable-sized GPU. Indeed, SGNet is a rather large model, and it takes around 10.77 gigabytes of GPU memory for training on 256x256 images with a batch size of 1, according to the original <a href="https://arxiv.org/abs/2312.05799">paper</a>. Thus, it makes sense to apply two tricks that could save a lot of memory.</p><h4>Train on slices</h4><p>The first idea is to perform training and inference on image slices rather than full-sized images, which could be very large, like in our dataset. The code for sliced training can be found on SGNet’s Github page: the authors extract random crops from the image and the depth map of size 256x256 (the crop size of the depth map is 256 / <em>s</em>, where <em>s</em> is the scale factor). As for the inference, we share <a href="https://gist.github.com/philosoph10/f478180be1931911bf6d89b633378c17#file-sliced_inference-py">a code snippet</a> that we used to test the model.</p><p>Although the snippet may appear large at first glance, the idea behind it is rather simple. A sliding window of a fixed size (your desired inference size) is moved along the image. For each slice that it defines, model inference is performed; namely, we obtain depth predictions for a given image patch. To combine the results for different patches, we have to count the overlap between them. This is done by averaging the depth values for a pixel from all patches that contain this pixel. Note that it is desirable for the window to move with some overlap since, otherwise, prediction artifacts may be noticeable along the window edges.</p><h4>Mixed precision</h4><p>Another common memory-saving trick is to use mixed precision. PyTorch allows to do it very simply, using the library’s context manager:</p><blockquote>with torch.cuda.amp.autocast(enabled=True):</blockquote><p>There is one notable caveat, however. The thing is, PyTorch (at least at the time of the writing) does not support mixed precision for Complex numbers that are used in SGNet’s implementation. The solution to this problem is simple: mixed precision should be turned off for the Complex number operations. An example implementation can be found in <a href="https://gist.github.com/philosoph10/f478180be1931911bf6d89b633378c17#file-sdb-py">this code snippet</a>.</p><h3>Conclusions</h3><p>There are two main takeaways from this research. The first one is that the most efficient way to perform GDSR is to fine-tune a neural network. If you are looking for high accuracy, brace up for a serious data collection process and network training. SGNet is an excellent example of such a network, as it achieves SOTA performance in the field, which is backed by our experiments.</p><p>The second takeaway is that the foundation models have not yet developed so well that they can be applied to such complex tasks as GDSR on the fly. Even the combination of such powerful models as SegmentAnything and DepthAnything does not perform well enough to be useful in practice. But there may yet be light at the end of the tunnel! New foundation models in depth estimation are being developed even as this article is being written: StableDiffusion-based <em>Marigold</em>; <em>Depth Pro</em>, which predicts absolute (!) depth; <em>DepthAnything2</em> — the second generation of DepthAnything… We firmly believe that this approach could bear fruitful results in the near future.</p><p>Visit us at <a href="https://www.datadriveninvestor.com/"><em>DataDrivenInvestor.com</em></a></p><p>Subscribe to DDIntel <a href="https://www.ddintel.com/"><em>here</em></a>.</p><p>Join our creator ecosystem <a href="https://join.datadriveninvestor.com/"><em>here</em></a>.</p><p>DDI Official Telegram Channel: <a href="https://t.me/+tafUp6ecEys4YjQ1">https://t.me/+tafUp6ecEys4YjQ1</a></p><p>Follow us on <a href="https://www.linkedin.com/company/data-driven-investor"><em>LinkedIn</em></a>, <a href="https://twitter.com/@DDInvestorHQ"><em>Twitter</em></a>, <a href="https://www.youtube.com/c/datadriveninvestor"><em>YouTube</em></a>, and <a href="https://www.facebook.com/datadriveninvestor"><em>Facebook</em></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1802c737122d" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/state-of-the-art-models-for-guided-depth-super-resolution-gdsr-1802c737122d">State-of-the-art models for guided depth super-resolution (GDSR)</a> was originally published in <a href="https://medium.datadriveninvestor.com">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to build question answering system using LLM]]></title>
            <link>https://quantum-inc.medium.com/how-to-build-question-answering-system-using-llm-d9b91ee0d29d?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/d9b91ee0d29d</guid>
            <category><![CDATA[prompt-engineering]]></category>
            <category><![CDATA[question-answering]]></category>
            <category><![CDATA[large-language-models]]></category>
            <category><![CDATA[chatgpt]]></category>
            <category><![CDATA[gpt-3]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Wed, 13 Sep 2023 08:55:53 GMT</pubDate>
            <atom:updated>2023-09-13T08:55:53.760Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction to Large Language Models</h3><p>In recent years, Language Models (LMs) have significantly impacted natural language processing (NLP), revolutionizing how we interact with computers and pushing the boundaries of what machines can understand and generate. One such groundbreaking development is the advent of Large Language Models (LLMs), which have opened up a realm of possibilities previously unimaginable. LLMs, powered by advanced algorithms and trained on vast amounts of data, can understand, generate, and manipulate human language with astonishing accuracy and creativity.</p><p>This article aims to delve into the exciting world of LLMs, highlighting a brief overview of their architecture and application techniques.</p><h3>Understanding LLMs</h3><p>LLMs are state-of-the-art artificial intelligence systems that have the remarkable ability to understand and generate human language. At their core, LLMs are built upon advanced deep learning architectures, such as transformer models, which have revolutionized the field of NLP. These models consist of multiple layers of self-attention mechanisms and feed-forward neural networks, allowing them to capture complex language patterns, dependencies, and contextual information.</p><p>A typical transformer model consists of four main steps in processing input data.</p><p>First, the model performs word embedding to convert words into high-dimensional vector representations. Then, the data is passed through multiple transformer layers. Within these layers, the self-attention mechanism is crucial in understanding the relationships between words in a sequence. Finally, after processing through the transformer layers, the model generates text by predicting the most likely next word or token in the sequence based on the learned context.</p><figure><img alt="Transformer encoder-decoder architecture" src="https://cdn-images-1.medium.com/max/1024/0*4PlWlJkyQgpHWuyN" /><figcaption><em>In the transformer encoder-decoder architecture, the encoder processes the input data, applying word embedding and multiple transformer layers to capture the contextual information. The decoder then takes the encoded representation and generates text by predicting the next token based on the learned context. </em>(<a href="https://jalammar.github.io/illustrated-transformer/">source</a>)</figcaption></figure><p>The concept of self-attention enables the model to focus on different parts of the input text to <strong>understand the relationships between words and their significance within the context</strong>. It works by assigning weights to different words in a given input sequence based on their relevance and importance in the context. Each word in the sequence attends to all other words, calculating a weighted representation of their contributions to its representation. These weights are determined by computing the dot product of the word’s embedding and the embeddings of the other words, followed by applying a softmax function to obtain normalized attention scores.</p><p>By attending to relevant words and phrases, LLMs can <strong>generate coherent and contextually appropriate responses that follow a given text input with an instruction</strong> to an LLM. This text instruction is called a <strong>prompt</strong>.</p><figure><img alt="Attention mechanism" src="https://cdn-images-1.medium.com/max/437/0*bh5vw2oupMvD-vce" /><figcaption><em>As we are encoding the word “it” in the encoder, part of the attention mechanism was focusing on “The Animal”, and baked a part of its representation into the encoding of “it”. </em>(<a href="https://jalammar.github.io/illustrated-transformer/">source</a>)</figcaption></figure><p>LLMs have greatly enhanced language understanding capabilities. They can accurately <strong>comprehend and interpret text inputs by capturing intricate language patterns and contextual cues</strong>. Models adapt their pre-trained knowledge to specific tasks through transfer learning, reducing training time. LLMs also possess zero-shot capabilities, generating responses without explicit training. This has <strong>profound implications for various NLP tasks such as sentiment analysis, information retrieval, and question answering</strong>, where they have proven instrumental in providing accurate and contextually relevant responses.</p><p>LLMs have also revolutionized human-machine interactions by enabling <strong>more natural and intuitive communication</strong>. Through chatbots and virtual assistants powered by LLMs, users can engage in conversations that feel remarkably close to conversing with a human. This has improved customer service experiences, streamlined information retrieval, and facilitated personalized user interactions.</p><p>The release of GPT-3 (Generative Pre-trained Transformer 3) marked significant milestones in developing and deploying large-scale language models. Released by OpenAI in June 2020, the model captured widespread attention due to its unprecedented size and capabilities. With 175 billion parameters, GPT-3 demonstrated remarkable language generation and understanding abilities, leading to human-like text responses.</p><p>However, proprietary models like GPT-3 have garnered significant attention and demonstrated impressive capabilities, and they do come with several disadvantages. One primary concern is the cost structure associated with proprietary models. GPT-3 can be expensive as it operates on a token-based pricing model, where users are charged for every 1,000 tokens processed.</p><p>Another drawback is latency issues that may arise as the models rely on remote servers, introducing processing delays unsuitable for real-time applications. Additionally, a lack of flexibility comes with proprietary models. Their underlying architectures and parameters are typically inaccessible for modification, limiting the ability to fine-tune the models according to specific use cases or domains.</p><p>In response to the centralization of LLM power, the open-source community has actively worked on developing alternative models that promote transparency, accessibility, and community-driven development. One notable example is the LLaMA, a family of LLMs in four sizes: 7, 13, 33, and 65 billion parameters. LLaMa is not an instruction-following LLM like ChatGPT, but the idea behind the smaller size of LLaMA is that smaller models pre-trained on more tokens are easier to retrain and fine-tune for specific tasks and use cases. Although the LLaMA was released under “a noncommercial license focused on research use cases,” models with a commercial use license were released quickly.</p><p>Falcon is the first fully open-source large language model, and it has outranked all the open-source models released so far, including LLaMA, StableLM, MPT, and more. It has been developed by the Technology Innovation Institute (TII), UAE. So far, the TII has released two Falcon models trained on 40B and 7B parameters.</p><figure><img alt="LLM leaderboard" src="https://cdn-images-1.medium.com/max/1024/0*2ccWdiYwmqSSFcLC" /></figure><h3>Techniques of using LLMs</h3><p>When it comes to inference LLMs, several techniques have emerged to guide the generation of desired outputs. The four major ones are:</p><ul><li>Zero-shot prompting</li><li>Few-shot prompting</li><li>Fine-tuning</li><li>Embedding</li></ul><figure><img alt="A brief summary of Large Language Model approaches." src="https://cdn-images-1.medium.com/max/830/0*qh_1CbhqeGRkuqWR" /><figcaption>A brief summary of Large Language Model approaches.</figcaption></figure><h3>Zero-shot Prompting</h3><p>Zero-shot prompting means providing a prompt that is not part of the training data to the model, but the model can generate a result that you desire. This capability stems from their extensive pre-training on massive amounts of diverse text data, which equips them with a broad understanding of human language. During pre-training, LLMs learn to capture patterns, contextual relationships, and semantic representations from the data they are trained on. As a result, when presented with a question, LLMs can leverage their acquired knowledge to generate responses that align with the query.</p><p>Utilizing zero-shot prompting is an excellent initial step to swiftly assess the capabilities of LLMs and obtain responses without the need for specialized training. This approach only requires the construction of a prompt, making it a straightforward way to evaluate the LLM’s performance and explore its language understanding abilities. However, it’s essential to note that zero-shot prompting may not always yield accurate or desired results. In such cases, few-shot prompting can be a more practical approach.</p><p>Let’s demonstrate <strong>a use case of zero-shot prompting</strong> for named entity recognition (NER). To perform NER using zero-shot prompting, we construct a prompt that specifies the task as well as the entity types to be identified.</p><p><strong><em>Prompt: </em></strong><em>Identify the entities in the following text and tag them as PERSON, ORGANIZATION, LOCATION, or PRODUCT.</em></p><p><strong><em>Text: </em></strong><em>John Smith is a software engineer at Google. He lives in Mountain View, California.</em></p><p>The LLM, equipped with its pre-trained knowledge, comprehends the prompt and applies its understanding to identify the named entities in the text. In this example, the LLM would recognize “John Smith” as a PERSON, “Google” as an ORGANIZATION, and “Mountain View” as a LOCATION. By employing zero-shot prompting, LLMs can effectively perform named entity recognition tasks without requiring specific training on labeled data for each entity type.</p><h3>Few-shot Prompting</h3><p>Few-shot prompting presents a set of high-quality demonstrations of the target task, each consisting of both input and desired output. As the model first sees good examples, it can better understand human intention and criteria for what kinds of answers are wanted. Therefore, few-shot prompting often leads to better performance than zero-shot. However, it comes at the cost of more token consumption and may hit the context length limit when input and output text is long.</p><p>This technique proves exceptionally advantageous in several situations where fine-tuning or extensive training may not be feasible or efficient. Firstly, when dealing with limited labeled data for a specific task, few-shot prompting becomes valuable. By providing a small set of relevant examples, the model can quickly learn and generalize from this limited data, enabling it to perform well on the given task. Secondly, few-shot prompting is helpful for rapid prototyping and experimentation. It allows developers to iteratively test and refine models without requiring time-consuming fine-tuning processes.</p><p>Few-shot prompting demonstrates a wide range of use cases, including enhancing Natural Language Understanding (NLU) tasks like <strong>sentiment analysis, entity recognition, and relationship extraction</strong>. It <strong>improves question-answering systems</strong> by generating accurate responses through demonstrations of correct answers. In <strong>text summarization</strong>, it aids in generating concise and informative summaries. For <strong>conversational AI applications</strong>, it guides models to produce context-aware and coherent responses, while in <strong>data extraction and formatting tasks</strong>, it helps extract and organize information into structured formats.</p><p>To illustrate the concept of few-shot prompting, let’s consider an example in which we attempt to classify customer feedback as positive or negative. We provide a model with 3 examples of positive/negative feedback, then show it a new piece of feedback that has yet to be classified.</p><p><strong><em>Prompt:</em></strong></p><p><em>The product is fantastic, delivering excellent quality and exceeding my expectations in every way: </em><strong>positive</strong></p><p><em>I’m disappointed with the poor customer service and lack of responsiveness to inquiries and concerns: </em><strong>negative</strong></p><p><em>I absolutely love this! It’s user-friendly, durable, and provides exceptional value for the price: </em><strong>positive</strong></p><p><em>Unfortunately, the product did not live up to its claims and fell short in terms of performance and durability:</em></p><p>The model sees that the first 3 examples were classified as either positive or negative and uses this information to classify the new example as negative. We can observe that the model has somehow learned how to perform the task by providing it with just 3 examples (i.e., 3-shot). For more complex tasks, we can experiment with increasing the number of demonstrations (e.g., 5-shot, 10-shot, etc.).</p><h3>Fine-tuning</h3><p>In some instances, few-shot prompting may not effectively address a specific use case or deliver the desired results. In such situations, fine-tuning becomes a more suitable option to tailor LLM to the targeted application.</p><p>Fine-tuning involves adjusting the parameters of a pre-trained model to improve its performance on a particular task. By supplying the model with a curated dataset of relevant examples, <strong>fine-tuning allows the LLM to generate more accurate and context-specific responses</strong>. This process is especially beneficial for tasks that demand a <strong>deeper understanding of domain-specific terminology, jargon, or unique context</strong> that may not be sufficiently captured through few-shot prompting, for instance, customer service chatbots.</p><p>It is worth mentioning that fine-tuning LLMs presents its own set of challenges. For example, to fine-tune a 65 billion parameters model, we need more than 780 Gb of GPU memory. It is equivalent to ten A100 80 Gb GPUs. In other words, you would need cloud computing to fine-tune your models.</p><p>To overcome the issue of memory usage during fine-tuning, Dettmers et al. presented <strong>QLoRA: Efficient Fine-tuning of Quantized LLMs.</strong> QLoRA employs an efficient approach that enables fine-tuning a 65B parameter model on a single 48GB GPU.</p><p>QLoRA utilizes a technique called Low-Rank Adapters (LoRA) which adds a tiny amount of trainable parameters, i.e., adapters, for each layer of the LLM and freezes all the original parameters. We only have to update the adapter weights for fine-tuning, significantly reducing the memory footprint.</p><figure><img alt="Illustration of how LoRA works" src="https://cdn-images-1.medium.com/max/332/0*nPi7FyQZKoFaylaC" /><figcaption><em>The output activations original (frozen) pre-trained weights (left) are augmented by a low-rank adapter comprised of weight matrics A and B (right).</em></figcaption></figure><p>Next QLoRa goes three steps further by introducing: 4-bit quantization, double quantization, and the exploitation of nVidia unified memory for paging.</p><p>In a few words, each one of these steps works as follows:</p><ul><li><strong>4-bit NormalFloat quantization:</strong> This is a method that improves upon quantile quantization. It ensures an equal number of values in each quantization bin. This avoids computational issues and errors for outlier values.</li><li><strong>Double quantization:</strong> The authors of QLoRa define it as follows: “the process of quantizing the quantization constants for additional memory savings.”</li><li><strong>Paging with unified memory:</strong> It relies on the NVIDIA Unified Memory feature and automatically handles page-to-page transfers between the CPU and GPU. It ensures error-free GPU processing, especially in situations where the GPU may run out of memory.</li></ul><figure><img alt="Comparison between standard, LoRa, and QLoRa models for fine-tuning an LLM" src="https://cdn-images-1.medium.com/max/932/0*sXsWACCltO473otm" /><figcaption>Comparison between standard, LoRa, and QLoRa models for fine-tuning an LLM</figcaption></figure><p>These steps drastically reduce the memory requirements for fine-tuning while performing almost on par with standard fine-tuning.</p><p>Besides all optimized fine-tuning techniques, it’s important to note that the fine-tuning process focuses on teaching the model new tasks or patterns rather than new information. It means there are better solutions than fine-tuning for tasks that require storing and retrieving additional up-to-date knowledge, such as question-answering (QA).</p><h3>Embeddings</h3><p>The problem of demand for up-to-date information, which was not presented in training data, can be solved using semantic embeddings.</p><p>Semantic embeddings are high-dimensional numerical vector representations of text that capture the semantic meaning of words or phrases. By comparing and analyzing these vectors, similarities and differences between textual elements can be discerned.</p><p>Leveraging semantic embeddings for search enables the quick and efficient retrieval of relevant information, particularly within large datasets. Semantic search boasts several advantages over fine-tuning, such as faster search speeds, reduced computational costs, and preventing confabulation or fact fabrication. Owing to these benefits, semantic search is often favored when the objective is to access specific knowledge within a model.</p><p>To enhance an LLM with embeddings, the first step involves obtaining a collection of relevant documents containing the necessary information for the task. Subsequently, these texts are divided into coherent smaller chunks, and their embeddings are computed using a specialized model. Proprietary models like OpenAI’s text-embedding-ada-002 and open-source options like instructor-xl can be employed. These embeddings are stored in dedicated vector stores, enabling efficient search and retrieval operations.</p><p>Once the necessary preparations are completed, the next stage involves inference. Let’s consider a question-answering task where Wikipedia pages serve as the source of information. Initially, the question is embedded using the same model used for generating the embeddings from external knowledge sources. Subsequently, the top-K similar text chunks are retrieved using the resulting query vector and then are provided as input context along with the question to the LLM.</p><figure><img alt="Information retrieval system" src="https://cdn-images-1.medium.com/max/801/0*Htuf4GSizRzCzhmV" /><figcaption>Information retrieval system</figcaption></figure><p>By utilizing this additional context, the enhanced LLM demonstrates its capability to answer questions based on information that may not have been present in its training data or is private. This ability to leverage external knowledge and context allows the LLM to handle a broader range of queries and address information gaps. It is a powerful tool for tasks that require accessing and generating responses based on external or private information.</p><h3>Conclusion</h3><p>Large Language Models have emerged as powerful tools in modern NLP, revolutionizing the way we approach and solve complex language-related problems. These models offer out-of-the-box solutions for various tasks, providing quick and accurate responses with their inherent language understanding capabilities. Furthermore, LLMs have the flexibility to tackle more sophisticated and nuanced challenges through fine-tuning and leveraging contextual embeddings. Their ability to generalize from limited examples, incorporate external knowledge, and adapt to specific domains makes them invaluable in diverse applications.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d9b91ee0d29d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Speed up Drone Navigation System Development with Simulator]]></title>
            <link>https://medium.datadriveninvestor.com/how-to-speed-up-drone-navigation-system-development-with-simulator-8a8b317adf72?source=rss-694175602ece------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a8b317adf72</guid>
            <category><![CDATA[drones-technology]]></category>
            <category><![CDATA[autonomous-navigation]]></category>
            <category><![CDATA[airsim]]></category>
            <category><![CDATA[autonomous-drones]]></category>
            <category><![CDATA[drone-data]]></category>
            <dc:creator><![CDATA[Ruben Melkonian]]></dc:creator>
            <pubDate>Fri, 14 Jul 2023 00:02:12 GMT</pubDate>
            <atom:updated>2023-07-14T08:55:37.995Z</atom:updated>
            <content:encoded><![CDATA[<h3>The Challenge: the call for drone autonomy</h3><p>Drones have become increasingly significant across multiple industries, from agriculture to delivery services. One critical aspect of drone operations is their ability to fly autonomously, using AI for optical navigation; yet it demands vast data for training and testing to ensure that the AI system can adapt to diverse real-life scenarios.</p><p>To overcome these obstacles, we have embraced a simulator environment for both data collection and system training in various scenarios. This approach eliminates the need for flight permissions and offers full control over weather and lighting conditions, leading to quicker and more cost-effective development.</p><p>However, this method has also brought about new challenges that demand further research and adjustments. In this article, we will delve deeper into these emerging obstacles and examine potential solutions.</p><h3>And that’s how we did it</h3><p>For our task, we experimented with various simulators and ultimately chose <strong>AirSim.</strong> This open-source, cross-platform simulator not only provides a highly realistic representation of drone behavior in both physical and visual aspects but also offers crucial APIs for data retrieval and UAV control.</p><p>AirSim boasts a broad range of pre-existing drone models, faithfully replicating their equipped cameras, depth sensors, GPS modules, and other hardware configurations, enabling us to gather diverse and authentic imagery to train our algorithm effectively.</p><p>Another significant advantage of this tool is the extensive customization options available for the environment. By carefully fine-tuning weather and lighting conditions, we can recreate a wide array of natural scenarios within a finite timeframe, which would be otherwise unattainable in real-world settings. Moreover, this approach eliminates the need for physical travel, expensive data collection, and most potential risks associated with real-world testing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YcfbaFz1VmjUitUkmUTJiA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yHi2IXMAYa3MhJn9rz_zrA.png" /><figcaption>Simulations offer the flexibility to fly in diverse environments, weather conditions, and scenarios</figcaption></figure><h3>A Quick Guide to Drone Navigation</h3><h4>Data: the cornerstone of success</h4><p>Amassing extensive data plays a huge role in the development of drone autonomy. Using a simulation for this purpose offers some fundamental advantages:</p><ul><li><strong>It’s cost-effective</strong> compared to relying solely on physical drones. The expenses associated with building, maintaining, repairing, and replacing physical hardware can be significantly reduced or eliminated with simulators.</li><li>Simulations offer a <strong>controlled and safe environment</strong> to explore different scenarios without the risk of equipment damage or harm, making them highly beneficial for training. Users can practice flying drones and gain valuable experience without risks.</li><li>Physical drones face limitations regarding flight time, weather conditions, or restricted airspace. Simulations <strong>offer the flexibility</strong> to fly in diverse environments, weather conditions, and scenarios that might otherwise be inaccessible or unfeasible in the real world. It widens the scope of experimentation and expands the possibilities for data collection.</li><li>Drone simulations allow for <strong>thorough testing of various scenarios,</strong> facilitating the evaluation and improvement of drone performance. Simulating responses to different weather conditions, obstacles, or complex flight paths can be challenging or risky to replicate in the physical world. Simulations provide a controlled setting to conduct such tests.</li><li>Simulations <strong>gather extensive and precise flight parameters</strong>, including altitude, speed, acceleration, and control inputs, enabling more comprehensive research and development. This data is invaluable for analysis, performance evaluation, and enhancing drone designs and flight algorithms.</li></ul><h3>Artificial Intelligence: Training for Excellence</h3><p>Drone navigation relies on visual data to perceive and navigate the surroundings effectively. By training AI models to recognize objects, landmarks, and environmental features, drones can navigate safely and avoid collisions. Training enables the creation of detailed maps, accurate real-time localization, and intelligent decision-making for efficient path planning and drone navigation during missions.</p><p>Model training also facilitates adaptation to changing conditions. By exposing the model to diverse lighting conditions, weather variations, and different terrains during training, the AI learns to generalize and perform robustly in unpredictable scenarios.</p><p>Finally, continuous algorithm training is a crucial task for improving and optimizing the optical navigation module. As the AI collects more data and receives feedback from real-world operations, the system should be regularly retrained to enhance performance, improve object recognition, and incorporate new features. This iterative training process ensures that the drone’s optical navigation continually evolves, maintaining high efficiency and effectiveness in various environments.</p><h3>Test flights: fine-tuning drone performance</h3><p>Drone flight simulator environments provide a virtual setting for training, evaluating, and fine-tuning drone performance, allowing for comprehensive testing and analysis.</p><p>The environment accurately models the physics and dynamics of the drone, including flight controls, propulsion systems, and aerodynamics, to ensure that the drone’s behavior closely resembles that of a physical drone, providing a realistic flight experience.</p><p>In the simulator, we can test different flight behaviors, such as takeoffs, landings, and aerial maneuvers under various conditions, to improve the system in a safe and controlled environment. We also can assess how the drone handles obstacles, wind gusts, and other challenging factors, identifying areas for further optimization.</p><p>AirSim provides extensive flight data, such as altitude, speed, trajectory, and sensor readings, that let us assess the drone’s performance, identify patterns or anomalies, and make data-driven decisions for enhancing flight algorithms and optimizing drone operations.</p><h3>New challenges</h3><h4>The gap between virtual and real-world data</h4><p>The limitations and lack of control over physical conditions make the real world a suboptimal data source. In contrast, a virtual environment provides greater flexibility to manipulate and execute numerous scenarios, including modifying weather and lighting conditions, experimenting with different terrain types, and introducing unexpected obstacles that need to be avoided.</p><p>While AirSim may not perfectly replicate the real world, there are strategies to address this challenge. Data augmentation techniques can be employed, incorporating satellite imagery and utilizing transfer learning to align simulator data with real-world geographic information. This involves comparing simulated sensor readings with accurate ground truth data derived from satellite imagery.</p><p>We can achieve more precise and robust training and testing by creating a virtual environment closely resembling real-world geography. <a href="https://quantumobile.com/geo-analytics/satellite-data/">Integrating satellite imagery</a> into the simulation with further transfer of acquired knowledge back to the physical world results in significant cost and time savings, facilitating the development of AI optical navigation.</p><h3>Other issues and how to deal with them</h3><ul><li><strong>Sensor Fidelity.</strong> Discrepancies between simulated and real-world sensors can be addressed by adjusting sensor parameters in the simulator to closely match real-world characteristics. Additionally, you can try sensor calibration to align virtual outputs with physical sensor data.</li><li><strong>Environment Differences.</strong> A simulator environment can be customized to closely resemble natural conditions: lighting, wind, and other dynamic elements. Data augmentation techniques will help introduce variability and simulate real-world scenarios, and integration of real-world data, such as satellite imagery or point cloud maps, into the simulator will add accuracy</li><li><strong>Motion and Dynamics.</strong> Fine-tune the drone dynamics model in the simulator using real-world flight data to improve alignment with real-world drones’ flight dynamics and control responses. Employ advanced control algorithms that adapt to the differences between simulated and real-world dynamics. Leverage machine learning techniques to learn the mapping between the simulator and real-world drone behaviors.</li><li><strong>Data Collection.</strong> Overcome challenges related to obtaining real-world drone data by collecting limited real-world data and augmenting it with simulated data to create a more diverse dataset. Utilize transfer learning techniques to leverage pre-trained models on similar tasks or domains to overcome limitations in real-world data availability.</li></ul><h3>Conclusion</h3><p>Using a simulator proves to be a practical solution in developing and testing AI-based optical navigation systems. Simulators offer a controlled and repeatable environment, eliminating the costs and logistical challenges associated with real drone flights.</p><p>Simulators excel at creating highly realistic 3D models of the drone’s surroundings, enabling the AI system to undergo training and navigation exercises in a virtual world that closely mirrors reality. Through simulations, an array of scenarios can be generated, encompassing diverse weather conditions, lighting variations, and obstacles to empower the AI system to learn and adapt to various situations.</p><p>However, it is crucial to accept that simulators may not perfectly replicate the real-world environment, and there may be disparities between the data collected in a simulator and that obtained from a physical drone.</p><p><a href="https://quantumobile.com/company/contacts/">Drop us a line</a> if you want to leverage the possibilities of simulators for drone navigation systems.</p><p>Subscribe to DDIntel <a href="https://ddintel.datadriveninvestor.com/">Here</a>.</p><p>Visit our website here: <a href="https://www.datadriveninvestor.com/">https://www.datadriveninvestor.com</a></p><p>Join our network here: <a href="https://datadriveninvestor.com/collaborate">https://datadriveninvestor.com/collaborate</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a8b317adf72" width="1" height="1" alt=""><hr><p><a href="https://medium.datadriveninvestor.com/how-to-speed-up-drone-navigation-system-development-with-simulator-8a8b317adf72">How to Speed up Drone Navigation System Development with Simulator</a> was originally published in <a href="https://medium.datadriveninvestor.com">DataDrivenInvestor</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>