<?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 Aaditya Prakash Singh on Medium]]></title>
        <description><![CDATA[Stories by Aaditya Prakash Singh on Medium]]></description>
        <link>https://medium.com/@aadityasingh33016?source=rss-6831de886e17------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ngt-dqfJ93SbNvNT.jpg</url>
            <title>Stories by Aaditya Prakash Singh on Medium</title>
            <link>https://medium.com/@aadityasingh33016?source=rss-6831de886e17------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 11:49:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@aadityasingh33016/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[Chat about anything with Human-Like Open-Domain Chatbot]]></title>
            <link>https://medium.com/analytics-vidhya/chat-about-anything-with-human-like-open-domain-chatbot-7649408fe279?source=rss-6831de886e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/7649408fe279</guid>
            <category><![CDATA[chatbots]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[nlp]]></category>
            <category><![CDATA[google]]></category>
            <category><![CDATA[research-and-development]]></category>
            <dc:creator><![CDATA[Aaditya Prakash Singh]]></dc:creator>
            <pubDate>Thu, 25 Mar 2021 15:45:45 GMT</pubDate>
            <atom:updated>2021-03-25T15:45:45.585Z</atom:updated>
            <content:encoded><![CDATA[<p>Metrics developed by Google to evaluate open-domain chatbots</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*84IDcRcgCK-bKO5Pk0kc5w.jpeg" /></figure><p>Most of today’s chatbots are highly specific in their conversations (according to their domain of usage) and users can’t afford to drift away from their expected use. They are not good with retaining context from past conversations, sometimes give meaningless, illogical responses and quite easily give the response, “I don’t know”.</p><p>Open-domain chatbots are conversational agents that can chat about anything and have basic knowledge about the real world. In the research paper “<a href="https://arxiv.org/abs/2001.09977">Towards a Human-like Open-Domain Chatbot</a>”, Google introduced Meena. Meena is claimed to be the smartest chatbot, highly sensible and specific in its responses, unlike other chatbots.</p><p>One of the challenges with the chatbots is their evaluation. There is no automated and quantitative way of determining, how good an open-domain chatbot is performing with respect to a human. In this article, we’ll discuss two such metrics but before that, let’s take a look at what is Meena.</p><h4>Meena’s Architecture</h4><p>Meena is a neural conversational model that consists of 1 evolved encoder(<em>to process the context from past conversations)</em> and 13 evolved decoders <em>(to develop a response to the context from the encoder). </em>Meena is an evolved transformer sequence2sequence architecture, aiming to minimize perplexity(uncertainty in choosing the next token/word). After hyperparameter tuning, it was deducted that a powerful decoder is necessary for better conversation skills.</p><p>Meena is trained on 2.6 billion parameters with 341 GB of preprocessed social media text which is 8.5 times more training data of OpenAI’s GPT-2(former state of the art for generative model).</p><p>It was discovered using neural architecture search (NAS). NAS automates the development of neural architecture by allowing more resources to well-performing architectures and less or no resources to underperforming models.</p><h4><strong>Sensibleness And Specificity Average(SSA)</strong></h4><p>Google introduced a new metric for the evaluation of open domain chatbots called Sensibleness and Specificity Average(SSA). For its testing, Google crowdsourced Meena and some of the other open domain chatbots like Cleverbot, DialoGPT, etc.</p><p>People were asked two questions for each response from the chatbot, “<em>Is the response sensible</em>” and “<em>Is it specific</em>”. For example, if a person says “<em>I love tennis</em>” and the chatbot replies with “<em>That’s nice</em>”. In this case, the chatbot’s reply is <em>sensible </em>but not <em>specific </em>as it can be used in multiple situations. Whereas, if it replies with “<em>Great!! I love Roger Federer</em>”, then it would be considered as specific too.</p><p>Sensible and Specificity Average is the mean of a fraction of sensible responses and a fraction of specific responses. The results proved that fine-tuned Meena(79%) outperforms other open domain chatbots and is close to the human level (86%). So basically Meena is better when it comes to SSA score.</p><p>The disadvantage of using SSA is the manual work done by people that slows down the chatbot’s evaluation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*VSs5wlyumvNbKS4mtyW6Ew.png" /><figcaption>SSA scores of humans and various open domain chatbots (source: ai.googleblogs.com)</figcaption></figure><p>From the above chart, it is clear that Meena(large) is close to the human level in the art of conversation.</p><h4>Perplexity</h4><p>Perplexity is an automatic metric for the faster evaluation of language models. It measures how well the model predicts what the user is going to say.</p><p>Moreover, during the research, it was concluded that perplexity has a high correlation with the human evaluation technique SSA and can be used for the efficient development of chatbots.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/459/1*YgqfVwfLqkYWXkVX1ZXTqg.png" /><figcaption>SSA vs perplexity (source: ai.googleblogs.com)</figcaption></figure><p>This is encouraging as perplexity is automatic, optimizable with a standard cross-entropy loss function.</p><p>High confidence of a language model is represented by a lower perplexity score. Meena(without fine-tuning) has a perplexity of 10.2 (smaller is better) which reflects 72% of SSA.</p><h3><strong>Further Research &amp; Conclusion</strong></h3><p>Personality and factuality are also a few of the attributes other than sensibleness and specificity for evaluation metrics. Perplexity needs to be reduced by optimizing the algorithm, data, and architecture of the neural network.</p><p>Google is currently not releasing any external research demo because of safety concerns.</p><p>So, at last, perplexity is to date the best automatic way to evaluate your chatbot as it has a strong correlation with the human method of evaluation (SSA) and we are not far away from an era when we wouldn&#39;t be able to differentiate between the conversations of a human and a chatbot.</p><p>For more in-depth intuition about Meena refer to the link below.</p><p><a href="https://arxiv.org/abs/2001.09977">Towards a Human-like Open-Domain Chatbot</a></p><p>Cheers, Happy Learning</p><p>Aaditya Prakash Singh,</p><p>Chief AI Officer at Ontribe — <a href="https://ontribe.in/">https://ontribe.in/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7649408fe279" width="1" height="1" alt=""><hr><p><a href="https://medium.com/analytics-vidhya/chat-about-anything-with-human-like-open-domain-chatbot-7649408fe279">Chat about anything with Human-Like Open-Domain Chatbot</a> was originally published in <a href="https://medium.com/analytics-vidhya">Analytics Vidhya</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understand Multi-Document Summarization based on Centroid Approach and Sentence Embeddings]]></title>
            <link>https://aadityasingh33016.medium.com/understand-multi-document-summarization-based-on-centroid-approach-and-sentence-embeddings-ef98e8550b19?source=rss-6831de886e17------2</link>
            <guid isPermaLink="false">https://medium.com/p/ef98e8550b19</guid>
            <category><![CDATA[research-paper]]></category>
            <category><![CDATA[embedding]]></category>
            <category><![CDATA[artificial-intelligence]]></category>
            <category><![CDATA[summarization]]></category>
            <category><![CDATA[nlp]]></category>
            <dc:creator><![CDATA[Aaditya Prakash Singh]]></dc:creator>
            <pubDate>Fri, 19 Mar 2021 09:54:16 GMT</pubDate>
            <atom:updated>2021-03-19T11:49:50.770Z</atom:updated>
            <content:encoded><![CDATA[<p>Summarize multiple documents without any training (Unsupervised)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QUu61inH8q3Jv9U0" /><figcaption>Photo by <a href="https://unsplash.com/@anniespratt?utm_source=medium&amp;utm_medium=referral">Annie Spratt</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><p>Summarization has always been a tedious task and one of the most challenging problem of Natural Language Processing. There have been several algorithms proposed which are broadly divided into extractive summarization(extracting key sentences from the original document to form a summary) and abstractive summarization(concisely paraphrasing the document’s content).</p><p>One of the main disadvantages of using abstractive summarization is the lack of training data(for fine-tuning models like BERT, GPT, etc) and limited computation power(leading to high training time). Whereas extractive summarization operates on a statistical analysis of the document to extract key information(without any training) making it preferable for practical uses.</p><p>Before the formulation of semantic embeddings, preserving the semantic meaning of the text in the form of embeddings(vectorized representation of text) was not possible with concepts such as Bag Of Words, Tf-IDF, etc. After the development of deep semantic embeddings such as Universal Sentence Encoder, Sentence BERT, etc capturing the semantic meaning is much efficient and easier.</p><p>Now let’s get to the main stuff.</p><h3>Proposed Algorithm</h3><p>The proposed algorithm is from Salima Lamsiyah’s paper “An Unsupervised Method for Extractive Multi-Document Summarization based on Centroid Approach and Sentence Embeddings”.</p><p>The main task in an unsupervised extractive text summarization is to compute the score of a sentence based on its importance in the document. The algorithm consists of 5 main steps. (i) preprocessing (ii) Sentence Embedding (iii) Centroid Embedding (iv) sentence scoring (v) sentence selection.</p><h4>Preprocessing</h4><p>We will follow a common preprocessing pipeline. The cluster of documents usually consists of several documents(D). These documents are broken down into sentences. Then, sentences are converted to lowercase. Special characters, URLs, extra spaces are removed, which can be done using open-source tools such as Spacy or NLTK.</p><h4>Sentence Embedding</h4><p>After preprocessing, each sentence is converted to fixed-length embeddings using pre-trained embedding models(DAN, BERT, etc). The embeddings will be feature-based, meaning there will be no fine-tuning of the embeddings according to the document as this is an unsupervised approach.</p><h4><strong>Centroid Embedding</strong></h4><p>The main motive of calculating centroid embedding is to obtain the overall context of the text. Sentences whose embeddings are more closer(lesser angle) to the centroid, the more they represent the crux of the document. Centroid embedding is calculated by averaging all the embeddings of the document’s sentences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/445/1*Wi8FIpfz8t3O3R6Tewykow.png" /><figcaption>centroid from embeddings</figcaption></figure><h4>Sentence Scoring</h4><p><strong><em>Sentence relevance score</em></strong></p><p>Sentence relevance score defines the similarity between the embeddings of the documents and the centroid embedding. As I said earlier, sentences whose embeddings are more similar to the centroid embedding(cosine similarity in this case), the more relevant they are than other sentences. The value is between 0 and 1. Higher the sentence relevance score of a sentence, the more relevant it is.</p><p><strong><em>Sentence novelty score</em></strong></p><p>Sentence novelty score filters the sentences with similar information as they don’t impart any distinct information to the document. It specifies a low score to the sentence whose context is similar to other sentences and a high score to sentences with novel content.</p><p><strong><em>Sentence position score</em></strong></p><p>According to Edmundson, sentences at the beginning of a document are more relevant than the later ones. The sentence position score metric used in this algorithm was introduced by Joshi in 2019.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/437/1*9TcYnWc6PDvAEmm78iwLvA.png" /><figcaption>Sentence position score equation</figcaption></figure><p>Here Si represents the position of a sentence (eg: 1 for the first sentence of the document). M^d represents the number of sentences in the document.</p><h3><strong>Sentence selection</strong></h3><p>After the calculation of all the scores for all the sentences in the doc, the scores are then linearly added with a weighted sum of 3 scores. Sentences with higher final scores are selected to be a part of the summary (keeping in mind the length of the summary).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1008/1*SRn81Vggwe9PoWYF_toGpA.png" /><figcaption>Equation for final score</figcaption></figure><p>Python implementation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*i4EE3m4bQu4Xu6zNp_24Qw.png" /><figcaption>overall score function</figcaption></figure><p>Here is the full code for the above algorithm implementation</p><p><a href="https://github.com/aaditya0710/Extractive-summarization-using-centroid-embedding">https://github.com/aaditya0710/Extractive-summarization-using-centroid-embedding</a></p><p>For more in-depth intuition of the algorithm refer to the research paper mentioned below</p><p><a href="https://www.sciencedirect.com/science/article/pii/S0957417420308952">An unsupervised method for extractive multi-document summarization based on centroid approach and sentence embeddings</a></p><p>Cheers, Happy Learning</p><p>Aaditya Prakash Singh,</p><p>Chief AI Officer at Ontribe — <a href="https://ontribe.in/">https://ontribe.in/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ef98e8550b19" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>