<?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"><channel><title><![CDATA[Chaitanya Pathak]]></title><description><![CDATA[Chaitanya Pathak]]></description><link>https://chaitanya-pathak.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Sat, 05 Sep 2026 22:41:29 GMT</lastBuildDate><atom:link href="https://chaitanya-pathak.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[Navigating the LLM Evaluation Metrics Landscape]]></title><description><![CDATA[Assessing LLMs is a difficult and multidimensional process that requires both quantitative and qualitative methods. Comprehensive evaluation techniques that address several facets of model performance and impact must be used when assessing LLMs. The ...]]></description><link>https://chaitanya-pathak.hashnode.dev/navigating-the-llm-evaluation-metrics-landscape</link><guid isPermaLink="true">https://chaitanya-pathak.hashnode.dev/navigating-the-llm-evaluation-metrics-landscape</guid><category><![CDATA[llm]]></category><category><![CDATA[metrics]]></category><category><![CDATA[genai]]></category><dc:creator><![CDATA[Chaitanya Pathak]]></dc:creator><pubDate>Sun, 19 May 2024 20:00:00 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1733137988127/5252e292-2c68-4bac-afb3-2040d0a79e6d.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<p>Assessing LLMs is a difficult and multidimensional process that requires both quantitative and qualitative methods. Comprehensive evaluation techniques that address several facets of model performance and impact must be used when assessing LLMs. The absence of standardised assessments is one of the biggest problems we have, as it makes it very hard to compare various models in a methodical way in terms of their capabilities, possible dangers, and potential damages. This highlights the difficulty and significance of the review process because it means we lack an objective way to gauge how intelligent or good any of these particular models are.</p>
<p>When we talk about GenAI evaluations , most of the conversations focus on accuracy and performance evaluations, which measure how effectively a language model can understand and generate text that is similar to human language. Applications like chatbots, content creation, and summarisation jobs that depend on the calibre and applicability of the content they produce should pay close attention to this factor.</p>
<p>Traditional evaluation metrics that examine language quality, LLM task-specific criteria for evaluating certain tasks, and human evaluations are the three broad categories of evaluations that can gauge performance and accuracy.</p>
<p><strong>LLM evaluation pillars</strong> : the foregoing should be the 5 critical design considerations when putting together a LLM evaluation framework in place which ensure that a systematic and rigorous approach and infrastructure is put in place for continuous model improvements.</p>
<p><strong>Use Case Specificity</strong> : Testing the LLM on the use cases for which it was created—that is, applying the model to a range of natural language processing (NLP) activities, including translation, question-answering, and summarization—is necessary to provide a meaningful evaluation. Standard metrics, like ROUGE (Recall-Oriented Understudy for Gisting Evaluation), should be used in the evaluation process for summarisation in order to preserve comparability and dependability.</p>
<p><strong>Prompt Engineering:</strong> The development of prompts is a crucial component of LLM evaluation. In order to provide a reliable evaluation of the model's capabilities, prompts need to be clear and equitable. By doing this, the evaluation results are guaranteed to accurately represent the model's performance.</p>
<p><strong>Benchmarking:</strong> A critical technique that makes it possible to assess an LLM's performance using pre-existing standards and alternative models is benchmarking. This not only monitors advancement but also pinpoints areas in need of development. Periodically assessing and improving the LLM is made possible by a continual review approach in conjunction with ongoing development procedures.</p>
<p><strong>GenAI Ethics</strong>: At every stage of the LLM evaluation process, ethical considerations must be taken into account. Checking the model for biases, fairness, and ethical issues requires examining both the training data and the results. To make sure that the model's outputs meet user needs and expectations, the evaluation should also include a significant section on the user experience.</p>
<p><strong>Logging and monitoring:</strong> All aspects of the evaluation must be open and transparent. Maintaining a record of the criteria, procedures, and outcomes promotes confidence in the LLM's skills and permits independent verification. The model, training data, and evaluation procedure should all be improved based on performance metrics and feedback, and the evaluation results should guide a cycle of continuous development.</p>
<p><strong>Evaluation scope  - Model vs System</strong></p>
<p>An LLM system is the entire setup that includes not only the LLM itself but also extra components like function tool calling (for agents), retrieval systems (in RAG), response caching, etc., which makes LLMs useful for real-world applications like text-to-SQL generators, autonomous sales agents, and customer support chatbots. In contrast, an LLM (Large Language Model) refers specifically to the model (e.g., GPT-4) trained to understand and generate human language.</p>
<p>It's crucial to remember, though, that an LLM system can occasionally only consist of the LLM itself, as is the case with ChatGPT.</p>
<p>Therefore, evaluating an LLM system is more complicated than evaluating an LLM directly. Even though both LLMs and LLM systems receive and produce textual outputs, you should use LLM evaluation metrics more precisely to assess various LLM system components for a better understanding. This is because an LLM system may have multiple components working together.</p>
<p>Below is the GQM. -  Goal Question Metric table that illustrates the key differences in focus .</p>
<div class="hn-table">
<table>
<thead>
<tr>
<td><strong>Evaluation focus</strong></td><td><strong>Model</strong></td><td><strong>System</strong></td></tr>
</thead>
<tbody>
<tr>
<td>Goal</td><td>General performance of the LLM model</td><td>Targeted effectiveness of the of the end to end system for a specific task</td></tr>
<tr>
<td>Question</td><td>What is the comprehension and adaptability of the model to a wide variety of tasks</td><td>How accurate and contextual are the outcomes of the task-specific system.</td></tr>
<tr>
<td>Metrics</td><td>MMLU, complexity, coherence</td><td>Precision, recall, F1 score</td></tr>
</tbody>
</table>
</div><p><strong>Convergence</strong></p>
<p>A good evaluation framework must ensure that use case complexity and evaluation architecture approach are converging, This convergence will give the most relevant metrics.</p>
<p><strong>Reference Based Metrics</strong></p>
<p>A reference, the human-annotated ground truth text, is compared to the generated text using reference-based metrics. Although many of these metrics were created for conventional NLP tasks prior to the development of LLMs, they are still relevant for text produced by LLMs.</p>
<p><strong>N-gram based metrics</strong></p>
<p>The overlap-based measures JS divergence (JS2), ROUGE (Recall-Oriented Understudy for Gisting Evaluation), and BLEU (Bilingual Evaluation Understudy) gauge how similar the reference and output texts are using n-grams.</p>
<p><strong>Text Similarity metrics</strong></p>
<p>By evaluating the overlap of words or word sequences between text parts, evaluators concentrate on calculating similarity. They are helpful in generating a similarity score between reference ground truth text and projected output from an LLM. Additionally, the model's performance for each task is indicated by these metrics.</p>
<p><strong>Levenshtein Similarity Ratio</strong></p>
<p>A string metric for comparing two sequences' similarity is the Levenshtein Similarity Ratio. The Levenshtein Distance serves as the basis for this metric. The smallest number of single-character modifications (insertions, deletions, or substitutions) needed to transform one string into another is known as the Levenshtein Distance between two strings.</p>
<p><strong>Semantic Similarity metrics</strong></p>
<p>Sentence Mover Similarity (SMS), MoverScore, and BERTScore metrics all use contextualised embeddings to gauge how similar two texts are. According to studies, these metrics can have poor correlation with human evaluators, lack interpretability, inherent bias, poor adaptability to a wider variety of tasks, and an inability to capture subtle nuances in language, despite being quick, easy, and less expensive to compute than LLM-based metrics.</p>
<p>The degree to which two statements' meanings are similar is known as their semantic similarity. This is accomplished by first representing each string as a feature vector that encapsulates its semantics and meanings. Making embeddings of the strings (for instance, with an LLM) and then calculating the cosine similarity between the two embedding vectors is a popular method.</p>
<p><strong>Reference-free Metrics</strong></p>
<p>Ground truth is not used by reference-free (context-based) metrics, which instead generate a score for the created text. The context or source document serves as the basis for evaluation. The difficulty of producing ground truth data led to the development of several of these metrics. These approaches are often more recent than reference-based approaches, which reflects the rising need for scale text assessment as PTMs gained power. These include measurements that are based on quality, entailment, factuality, question-answering (QA), and question-generation (QG).</p>
<p>**Quality Based Metrics –**Used for summarization tasks these metrics are a strong indicator of how relevant the information is in the summary produced. BLANC quality quantifies the discrepancy in accuracy between two reconstructions of masked tokens, while SUPERT quality evaluates how well a summary matches a BERT-based pseudo-reference. ROUGE-C is an adaptation of ROUGE that uses the source text as the context for comparison and does not require references.</p>
<p><strong>Entailment based</strong> : The Natural Language Inference (NLI) task, which assesses whether an output text (hypothesis) implies, contradicts, or undermines a given text (premise), is the foundation of entailment-based metrics [24]. Finding factual inconsistencies can be aided by this.Factual inconsistencies with the source text can be found using the SummaC (Summary Consistency) benchmark, FactCC, and DAE (Dependency Arc Entailment) metrics. The categorisation task for entailment-based metrics is labelled "consistent" or "inconsistent."</p>
<p>Metrics based on QG, QA, and factualness. Metrics based on facts, such as QAFactEval and SRLScore (Semantic Role Labelling), assess whether generated text contains inaccurate information that deviates from the original text. Factual consistency and relevance are also measured using QA-based metrics, such as QuestEval, and QG-based metrics.</p>
<p><strong>LLM-as Judge</strong></p>
<p>One effective method is LLM-as-a-Judge, which employs LLMs to do LLM (system) review by assessing LLM responses according to any particular criterion of your choosing. Giving an LLM an evaluation criterion and letting it grade it for you is the simple idea. The three categories of LLM as judges, which were first presented in the Judging LLM-as-a-Judge with MT-Bench and Chatbot Arena article as a substitute for human evaluation—which is frequently costly and time-consuming—include:</p>
<p>Single Output Scoring (without reference): An LLM judge is given a scoring rubric to use as the criteria and is asked to rate LLM responses according to a number of criteria, including retrieval context in RAG pipelines, input to the LLM system, etc.<br />Single Output Scoring (with reference): The same as previously, although occasionally LLM judges may become erratic. It is easier for the judge LLM to provide consistent ratings when there is a reference, ideal, and expected output.<br />Pairwise Comparison: The judge LLM will choose which of two outputs produced by the LLM is superior in terms of the input. Additionally, a unique set of standards is needed to decide what is "better."</p>
<p>The use of LLMs as a scorer for LLM evaluation measures to assess other LLMs is becoming more and more popular as the alternatives are insufficient. Although human review is slow and conventional evaluation techniques like BERT and ROUGE fall short by ignoring the underlying semantics in LLM-generated text, LLM evaluation is essential for measuring and pinpointing areas to enhance LLM system performance.</p>
<p><strong>G-Eval</strong></p>
<p>G-Eval is an approach / framework that employs CoT prompts to stabilise and improve the accuracy and dependability of LLM judges when it comes to calculating metric scores.</p>
<p>G-Eval employs a form-filling paradigm to establish the final score after first creating a set of assessment stages based on the original evaluation criteria. This is simply a fancy way of saying that G-Eval needs a number of pieces of information to function. For instance, assessing LLM output coherence with G-Eval entails creating a prompt with the evaluation criteria and text to create evaluation stages, then using an LLM to produce a score ranging from 1 to 5 based on these steps.</p>
<p><strong>Use case Complexity</strong></p>
<p>Various applications demand unique performance metrics that correspond with their particular objectives and specifications. Assessment metrics like BLEU and METEOR are frequently used in the field of machine translation, where producing correct and coherent translations is the key goal. The purpose of these measures is to assess how closely machine-generated translations and human reference translations resemble one another. In this case, it becomes crucial to modify the evaluation criteria to emphasise linguistic accuracy. Metrics like precision, recall, and F1 score may be given priority in applications like sentiment analysis. A metric framework that takes into account the subtleties of sentiment classification is necessary to evaluate a language model's accuracy in identifying positive or negative feelings in text data. A more pertinent and significant review is guaranteed when evaluation criteria are crafted to highlight certain measures.</p>
<p><strong>RAG architectural Pattern</strong></p>
<p>The Retrieval-Augmented Generation (RAG) pattern is a widely used technique to enhance LLM performance. The process entails obtaining pertinent data from a knowledge base and then producing the end result utilising a generation model. LLMs can be used for both the creation and retrieval models. The retrieval and generation models' performance can be assessed using the following metrics from the RAGAS implementation (RAGAS is an evaluation framework for your Retrieval Augmented Generation pipelines; see below), which requires the retrieved context per query:</p>
<p><strong>Generation Related</strong></p>
<p>Faithfulness: Evaluates the generated answer's factual coherence with the provided context. The answer will be penalised if it contains any statements that cannot be inferred from the context. This is accomplished by employing a two-step paradigm that involves generating statements from the generated response and then confirming each of these statements using inferencing, or context. It is calculated from answer and retrieved context. The response is scaled from 0 to 1, with 1 representing the best result.</p>
<p>Relevancy: The degree to which a response directly responds to and is suitable for a particular question or situation is known as answer relevance. This penalises the existence of superfluous information or partial replies to a query rather than taking the answer's factual accuracy into account.</p>
<p><strong>Retrieval Related</strong></p>
<p>Context Relevancy: Indicates how pertinent the contexts that were retrieved are to the query. The context should ideally just provide the details required to respond to the query. It is penalised when redundant information appears in the context. conveys the retrieval pipeline's quality. It is computed using the context that was retrieved and the inquiry.</p>
<p>Context Recall: Uses the annotated response as the ground truth to gauge how well the context was remembered. The context of the ground truth is represented by an annotated response. It is computed using recovered context and ground truth.</p>
<p><strong>Ethics and Safety</strong></p>
<p>LLMs will eventually be used on a regular basis by a variety of companies and organisations across the globe. For these models to function at their peak and even adhere to cultural norms, it is imperative that they adhere to ethical and safety assessments.</p>
<p>**Identifying Bias<br />**Examine LLM outcomes carefully for instances of unequal treatment or representation of various groups. The metric determines and evaluates the degree to which the model ignores any age, ethnicity, gender, religious, and other stereotypes.</p>
<p>**Assessment of Toxicity<br />**This measure assesses the overall likelihood of any offensive, improper, or harmful content. It even makes use of certain algorithms to categorise and rank output based on how likely it is to promote hate speech, foul language, or other similar types of content.</p>
<p>**Checks for Factual Correctness<br />**It assesses the general veracity of the data produced by LLM chatbots. To be completely sure that the information provided is trustworthy, it compares the outputs with credible sources or facts, particularly in cases when inaccurate or misleading information could have serious consequences.</p>
<p>**Evaluation of Security and Privacy<br />**This measure assesses and guarantees that no private information is inadvertently revealed by the LLM model. Additionally, it provides security against leaks, closely checks the model's handling of private data, and complies with the most recent privacy laws in the area.</p>
]]></content:encoded></item><item><title><![CDATA[Hyperautomation: Driving Large-Scale Adoption in the Digital Era]]></title><description><![CDATA[About the author
This article is authored by Chaitanya Pathak. He is a seasoned technology leader with extensive expertise in product management and enterprise software, boasting over a decade of experience at the nexus of product innovation and tech...]]></description><link>https://chaitanya-pathak.hashnode.dev/hyperautomation-driving-large-scale-adoption-in-the-digital-era</link><guid isPermaLink="true">https://chaitanya-pathak.hashnode.dev/hyperautomation-driving-large-scale-adoption-in-the-digital-era</guid><category><![CDATA[rpa]]></category><category><![CDATA[hyperautomation]]></category><category><![CDATA[ML]]></category><category><![CDATA[AI]]></category><dc:creator><![CDATA[Chaitanya Pathak]]></dc:creator><pubDate>Sat, 03 Dec 2022 20:00:00 GMT</pubDate><enclosure url="https://cdn.hashnode.com/res/hashnode/image/upload/v1727703032637/eecf3445-e5f9-4e5f-ac2d-92fadd298623.jpeg" length="0" type="image/jpeg"/><content:encoded><![CDATA[<h1 id="heading-about-the-author">About the author</h1>
<p>This article is authored by <a target="_blank" href="https://www.linkedin.com/in/chaitanya-pathak-cap/">Chaitanya Pathak</a>. He is a seasoned technology leader with extensive expertise in product management and enterprise software, boasting over a decade of experience at the nexus of product innovation and technology. As the Chief Product and Technology Officer at LEAPS by Analyttica, he spearheads the development and execution of advanced technological solutions that drive innovation in dynamic pricing and machine learning. Chaitanya's strategic vision and deep technical acumen consistently deliver impactful solutions, enhancing the company's product offerings and positioning it at the forefront of industry advancements.</p>
<h1 id="heading-introduction">Introduction</h1>
<p>Organizations are constantly seeking ways to streamline operations, enhance efficiency, and drive innovation. Hyperautomation presents a sophisticated approach that combines multiple technologies to automate complex business activities at an unprecedented scale. This article delves into the concept of hyperautomation, its impact on various industries, and its practical applications in driving large-scale adoption of data literacy and advanced analytics.</p>
<h1 id="heading-understanding-hyperautomation">Understanding Hyperautomation</h1>
<h2 id="heading-from-rpa-to-intelligent-automation">From RPA to Intelligent Automation</h2>
<p>To fully grasp the concept of hyperautomation, it’s essential to understand its evolution:</p>
<ol>
<li><p><strong>Robotic Process Automation (RPA)</strong>: The foundation of modern automation, RPA focuses on automating repetitive, rule-based tasks using software bots. Example: Automating data entry from invoices into accounting systems.</p>
</li>
<li><p><strong>Intelligent Automation</strong>: Building upon RPA, this approach incorporates machine learning and artificial intelligence to handle more complex tasks. Example: Using natural language processing to categorize and route customer support tickets.</p>
</li>
<li><p><strong>Hyperautomation</strong>: The next frontier, combining multiple advanced technologies to automate end-to-end processes and workflows across entire organizations.</p>
</li>
</ol>
<h2 id="heading-defining-hyperautomation">Defining Hyperautomation</h2>
<p>Hyperautomation is the synchronized and integrated use of multiple technologies, including:</p>
<ul>
<li><p>Artificial Intelligence (AI)</p>
</li>
<li><p>Machine Learning (ML)</p>
</li>
<li><p>Robotic Process Automation (RPA)</p>
</li>
<li><p>Business Process Management (BPM)</p>
</li>
<li><p>Natural Language Processing (NLP)</p>
</li>
<li><p>Optical Character Recognition (OCR)</p>
</li>
<li><p>Advanced Analytics</p>
</li>
</ul>
<p>Example: A hyperautomation solution in healthcare might combine RPA for data entry, AI for diagnosis assistance, ML for predictive analytics, and NLP for processing patient records – all working together seamlessly to improve patient care and operational efficiency.</p>
<h2 id="heading-key-components-of-hyperautomation">Key Components of Hyperautomation</h2>
<ol>
<li><p><strong>Process Discovery</strong>: AI-powered tools that analyze existing workflows to identify automation opportunities.</p>
</li>
<li><p><strong>Advanced Analytics</strong>: Utilizing big data and ML algorithms to derive insights and drive decision-making.</p>
</li>
<li><p><strong>Intelligent Document Processing</strong>: Combining OCR and NLP to extract and process information from unstructured documents.</p>
</li>
<li><p><strong>Low-Code/No-Code Platforms</strong>: Enabling citizen developers to create and deploy automation solutions.</p>
</li>
<li><p><strong>AI-Powered Decision Making</strong>: Leveraging advanced algorithms to automate complex decision processes.</p>
</li>
</ol>
<h1 id="heading-the-impact-of-hyperautomation">The Impact of Hyperautomation</h1>
<h2 id="heading-empowering-citizen-users">Empowering Citizen Users</h2>
<p>Hyperautomation brings sophisticated technologies within reach of non-technical users, fostering bottom-up innovation. For example, drag-and-drop AI-powered analytics tools allow marketing professionals to perform complex customer segmentation without extensive coding knowledge.</p>
<h2 id="heading-intelligent-decision-making">Intelligent Decision Making</h2>
<p>By combining NLP, advanced analytics, and machine learning, hyperautomation enables autonomous decision-making systems. For instance, in financial services, these systems can analyze market trends, company reports, and news articles to make real-time investment recommendations.</p>
<h2 id="heading-adaptive-workflows">Adaptive Workflows</h2>
<p>Unlike traditional automation, hyperautomation creates dynamic workflows that can adapt to changing conditions. In manufacturing, for example, an AI-powered system can adjust production lines in real-time based on supply chain disruptions, demand fluctuations, and equipment performance.</p>
<h2 id="heading-enhanced-knowledge-management">Enhanced Knowledge Management</h2>
<p>Hyperautomation excels at capturing and codifying tacit knowledge within organizations. For example, an AI-powered system can analyze patterns in how experienced employees solve complex problems, creating a knowledge base that can be used to train new staff or automate future problem-solving.</p>
<h1 id="heading-scaling-adoption-a-case-study-of-leaps">Scaling Adoption: A Case Study of LEAPS</h1>
<p>LEAPS, a SaaS product focused on data literacy, is leveraging hyperautomation to enhance its offerings and drive adoption at scale. Here’s how:</p>
<h2 id="heading-challenges-in-data-literacy">Challenges in Data Literacy</h2>
<p>Many organizations struggle with:</p>
<ol>
<li><p>Understanding data in context</p>
</li>
<li><p>Performing "what-if" scenario analyses</p>
</li>
<li><p>Moving from explanatory to experimental data use</p>
</li>
</ol>
<h2 id="heading-leaps-hyperautomation-solution">LEAPS’ Hyperautomation Solution</h2>
<p>To address these challenges, LEAPS has developed an integrated hyperautomation architecture that includes:</p>
<ol>
<li><p><strong>Graph RAG (Retrieval-Augmented Generation)</strong>: For understanding user context based on historical data and domain rules.</p>
</li>
<li><p><strong>Natural Language Interfaces</strong>: Allowing users to interact with data using conversational prompts.</p>
</li>
<li><p><strong>Action-based Recommendation Engines</strong>: Suggesting next steps and analyses based on user behavior and data patterns.</p>
</li>
<li><p><strong>Automated ML Pipeline Generation</strong>: Creating and executing machine learning models based on user requirements.</p>
</li>
<li><p><strong>Automated Dashboard Creation</strong>: Generating visualizations and reports tailored to user needs.</p>
</li>
</ol>
<p>This hyperautomation approach allows LEAPS to:</p>
<ul>
<li><p>Automate end-to-end workflows for scenario identification</p>
</li>
<li><p>Generate synthetic data for testing and training</p>
</li>
<li><p>Create and deploy ML models with minimal user intervention</p>
</li>
<li><p>Produce automated, context-aware dashboards and reports</p>
</li>
</ul>
<h1 id="heading-the-future-of-hyperautomation">The Future of Hyperautomation</h1>
<p>As organizations continue to embrace digital transformation, hyperautomation will play an increasingly crucial role. Key trends to watch include:</p>
<ol>
<li><p><strong>Integration of Generative AI</strong>: Incorporating large language models to enhance natural language interactions and content generation within automated workflows.</p>
</li>
<li><p><strong>Edge Computing in Hyperautomation</strong>: Bringing automation closer to data sources for real-time processing and reduced latency.</p>
</li>
<li><p><strong>Ethical AI and Governance</strong>: Developing frameworks to ensure responsible and transparent use of AI in automated decision-making processes.</p>
</li>
<li><p><strong>Cross-functional Process Optimization</strong>: Breaking down silos to create seamless, organization-wide automated workflows.</p>
</li>
</ol>
<h1 id="heading-conclusion">Conclusion</h1>
<p>Hyperautomation represents a paradigm shift in how organizations approach digital transformation. By combining RPA, AI, ML, and other advanced technologies, it offers unprecedented opportunities for efficiency, innovation, and growth. As demonstrated by LEAPS’ implementation in the field of data literacy, hyperautomation has the power to democratize complex technologies, enabling citizens within organizations to participate in high-value activities that drive core competencies.</p>
<p>As we move forward, the focus will be on creating human-centric hyperautomation solutions that augment rather than replace human capabilities, fostering a collaborative environment where technology and human expertise work hand in hand to tackle the challenges of the digital age.</p>
]]></content:encoded></item></channel></rss>