Introducing multilingual support for semantic search on Azure Cognitive Search

Published 05-26-2021 06:00 AM 1,780 Views
Microsoft

At Microsoft, we are always looking for ways to empower our customers to achieve more by delivering our most advanced AI-enabled services. In March 2021, we launched the preview release of semantic search on Azure Cognitive Search, which allows our customers’ search engines to retrieve and rank search results based on the semantic meaning of search keywords rather than just their syntactical interpretation. We introduced this functionality by leveraging state-of-the-art language models that power Microsoft Bing search scenarios across several languages – a result of the recent advancements in developing large, pretrained transformer-based models as part of our Microsoft AI at Scale initiative.

 

Today, we are excited to announce that we are extending these capabilities to enable semantic search across multiple languages on Azure Cognitive Search.

 

Search scenarios

Semantic search consists of three scenarios – semantic ranking, captions and answers – and customers can easily enable them via the REST API or Azure Portal to get semantic search results. The following examples illustrate how these scenarios are being delivered across different languages, where we rank search results based on our semantic ranker, followed by extracting and semantically highlighting the answer to the search query.

 

Figure 1. Semantic search in German language. English translated query is {area code kyllburg}. Sample index is based on the XGLUE benchmark dataset for cross-lingual understanding.Figure 1. Semantic search in German language. English translated query is {area code kyllburg}. Sample index is based on the XGLUE benchmark dataset for cross-lingual understanding.

 

 

Figure 2. Semantic search in French language. English translated query is {different literary movements}. Sample index is based on the XGLUE benchmark dataset for cross-lingual understanding.Figure 2. Semantic search in French language. English translated query is {different literary movements}. Sample index is based on the XGLUE benchmark dataset for cross-lingual understanding.

Models and evaluations                     

The language models powering semantic search are based on our state-of-the-art Turing multi-language model (T-ULRv2) that enables search across 100+ languages in a zero-shot fashion. Using global data from Bing, these models have been fine-tuned across various tasks to enable high-quality semantic search features for multiple languages and have been distilled further to optimize for serving real-world online scenarios at a significantly lower cost. Below is a list of the various innovations that are powering semantic search today.

UniLM (Unified Language Model pre-training)

Graph attention networks for machine reading comprehension

Multi-task deep neural networks for natural language understanding

MiniLM distillation for online serving in real-life applications

 

Since their introduction, the models have been serving Bing search traffic across several markets and languages, delivering high-quality semantic search results to Bing users worldwide. Additionally, we have validated the quality of semantic ranking on Azure Cognitive Search using a variety of cross-lingual datasets – these include academic benchmark datasets (e.g. XGLUE web page ranking) as well as real-world datasets from services currently powered by Azure Cognitive Search (e.g. Microsoft Docs). Our results showed several points of gain in search relevance metrics (NDCG) over the existing BM25 ranker for various languages such as French, German, Spanish, Italian, Portuguese, Chinese and Japanese. For semantic answers, our evaluations were based on multiple datasets focused on Q&A tasks. Current academic benchmark leaderboards for Q&A scenarios measure accuracy of answer extraction for a given passage. However, our assessments were required to go a step further and consider more real-world intricacies involving multiple steps (see Figure 3) to extract an answer from a search index: (1) documents retrieval from the search index, (2) candidate passage extraction from the given documents, (3) passage ranking across candidate passages, and (4) answer extraction from the most relevant passage. We observed that our model accuracy for French, Italian, Spanish and German languages is equivalent to that of English language.

 

Figure 3. Semantic answer extraction in Azure Cognitive Search.Figure 3. Semantic answer extraction in Azure Cognitive Search.

Get started

The following table summarizes the set of languages and queryLanguage parameter values that we currently support via the REST API to enable semantic search on Azure Cognitive Search. Note that we have also added speller support for Spanish, French and German languages. For languages marked as “preview”, we encourage you out to try the capability for your search index and give us your feedback. For detailed instructions on how to configure semantic search for your target language, please refer to our documentation.

Table 1. Supported languages for semantic search on Azure Cognitive Search.Table 1. Supported languages for semantic search on Azure Cognitive Search.

Conclusion

With additional support for new languages, we are very excited to extend access to our state-of-the-art AI-enabled search capabilities to developers and customers worldwide. Please sign up for our preview to try out semantic search today!

 

References

https://aka.ms/semanticgetstarted

 

%3CLINGO-SUB%20id%3D%22lingo-sub-2385110%22%20slang%3D%22en-US%22%3EIntroducing%20multilingual%20support%20for%20semantic%20search%20on%20Azure%20Cognitive%20Search%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2385110%22%20slang%3D%22en-US%22%3E%3CP%3EAt%20Microsoft%2C%20we%20are%20always%20looking%20for%20ways%20to%20empower%20our%20customers%20to%20achieve%20more%20by%20delivering%20our%20most%20advanced%20AI-enabled%20services.%20In%20March%202021%2C%20we%20launched%20the%20preview%20release%20of%20%3CA%20href%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fazure-ai%2Fintroducing-semantic-search-bringing-more-meaningful-results-to%2Fba-p%2F2175636%22%20target%3D%22_blank%22%3Esemantic%20search%3C%2FA%3E%20on%20Azure%20Cognitive%20Search%2C%20which%20allows%20our%20customers%E2%80%99%20search%20engines%20to%20retrieve%20and%20rank%20search%20results%20based%20on%20the%20semantic%20meaning%20of%20search%20keywords%20rather%20than%20just%20their%20syntactical%20interpretation.%20We%20introduced%20this%20functionality%20by%20leveraging%20state-of-the-art%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fblog%2Fthe-science-behind-semantic-search-how-ai-from-bing-is-powering-azure-cognitive-search%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Elanguage%20models%3C%2FA%3E%20that%20%3CA%20href%3D%22https%3A%2F%2Fblogs.bing.com%2Fsearch-quality-insights%2Fseptember-2020%2FIntroducing-the-next-wave-of-AI-at-Scale-innovations-in-Bing%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Epower%3C%2FA%3E%20Microsoft%20Bing%20search%20scenarios%20across%20several%20languages%20%E2%80%93%20a%20result%20of%20the%20recent%20advancements%20in%20developing%20large%2C%20pretrained%20transformer-based%20models%20as%20part%20of%20our%20Microsoft%20%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fai%2Fai-at-scale%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAI%20at%20Scale%3C%2FA%3E%20initiative.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EToday%2C%20we%20are%20excited%20to%20announce%20that%20we%20are%20extending%20these%20capabilities%20to%20enable%20semantic%20search%20across%20multiple%20languages%20on%20Azure%20Cognitive%20Search.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--464166246%22%20id%3D%22toc-hId--464166286%22%3E%3CFONT%20size%3D%225%22%3ESearch%20scenarios%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3ESemantic%20search%20consists%20of%20three%20scenarios%20%E2%80%93%20semantic%20ranking%2C%20captions%20and%20answers%20%E2%80%93%20and%20customers%20can%20easily%20enable%20them%20via%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Fazure%2Fsearch%2Fsemantic-how-to-query-request%23query-using-rest%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EREST%20API%3C%2FA%3E%20or%20Azure%20Portal%20to%20get%20semantic%20search%20results.%20The%20following%20examples%20illustrate%20how%20these%20scenarios%20are%20being%20delivered%20across%20different%20languages%2C%20where%20we%20rank%20search%20results%20based%20on%20our%20semantic%20ranker%2C%20followed%20by%20extracting%20and%20semantically%20highlighting%20the%20answer%20to%20the%20search%20query.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Semantic%20search%20German%20language.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283753i5B034EB21F04DF1F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Semantic%20search%20German%20language.gif%22%20alt%3D%22Figure%201.%20Semantic%20search%20in%20German%20language.%20English%20translated%20query%20is%20%7Barea%20code%20kyllburg%26amp%3B%23125%3B.%20Sample%20index%20is%20based%20on%20the%20XGLUE%20benchmark%20dataset%20for%20cross-lingual%20understanding.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%201.%20Semantic%20search%20in%20German%20language.%20English%20translated%20query%20is%20%7Barea%20code%20kyllburg%7D.%20Sample%20index%20is%20based%20on%20the%20XGLUE%20benchmark%20dataset%20for%20cross-lingual%20understanding.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-center%22%20image-alt%3D%22Semantic%20search%20French%20language.gif%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283756i9776FD0EEEF1F703%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22Semantic%20search%20French%20language.gif%22%20alt%3D%22Figure%202.%20Semantic%20search%20in%20French%20language.%20English%20translated%20query%20is%20%7Bdifferent%20literary%20movements%26amp%3B%23125%3B.%20Sample%20index%20is%20based%20on%20the%20XGLUE%20benchmark%20dataset%20for%20cross-lingual%20understanding.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%202.%20Semantic%20search%20in%20French%20language.%20English%20translated%20query%20is%20%7Bdifferent%20literary%20movements%7D.%20Sample%20index%20is%20based%20on%20the%20XGLUE%20benchmark%20dataset%20for%20cross-lingual%20understanding.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-2023346587%22%20id%3D%22toc-hId-2023346547%22%3E%3CFONT%20size%3D%225%22%3EModels%20and%20evaluations%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FFONT%3E%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%26nbsp%3B%3C%2FH2%3E%0A%3CP%3EThe%20language%20models%20powering%20semantic%20search%20are%20based%20on%20our%20state-of-the-art%20Turing%20multi-language%20model%20(%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fblog%2Fmicrosoft-turing-universal-language-representation-model-t-ulrv2-tops-xtreme-leaderboard%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3ET-ULRv2%3C%2FA%3E)%20that%20enables%20search%20across%20100%2B%20languages%20in%20a%20zero-shot%20fashion.%20Using%20global%20data%20from%20Bing%2C%20these%20models%20have%20been%20fine-tuned%20across%20various%20tasks%20to%20enable%20high-quality%20semantic%20search%20features%20for%20multiple%20languages%20and%20have%20been%20distilled%20further%20to%20optimize%20for%20serving%20real-world%20online%20scenarios%20at%20a%20significantly%20lower%20cost.%20Below%20is%20a%20list%20of%20the%20various%20innovations%20that%20are%20powering%20semantic%20search%20today.%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fpublication%2Funified-language-model-pre-training-for-natural-language-understanding-and-generation%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EUniLM%20(Unified%20Language%20Model%20pre-training)%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fpublication%2Fdocument-modeling-with-graph-attention-networks-for-multi-grained-machine-reading-comprehension%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EGraph%20attention%20networks%20for%20machine%20reading%20comprehension%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fwww.microsoft.com%2Fen-us%2Fresearch%2Fpublication%2Fmulti-task-deep-neural-networks-for-natural-language-understanding-2%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EMulti-task%20deep%20neural%20networks%20for%20natural%20language%20understanding%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Farxiv.org%2Fpdf%2F2002.10957.pdf%2522%2520%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3EMiniLM%20distillation%20for%20online%20serving%20in%20real-life%20applications%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ESince%20their%20introduction%2C%20the%20models%20have%20been%20serving%20Bing%20search%20traffic%20across%20several%20markets%20and%20languages%2C%20delivering%20high-quality%20semantic%20search%20results%20to%20Bing%20users%20worldwide.%20Additionally%2C%20we%20have%20validated%20the%20quality%20of%20semantic%20ranking%20on%20Azure%20Cognitive%20Search%20using%20a%20variety%20of%20cross-lingual%20datasets%20%E2%80%93%20these%20include%20academic%20benchmark%20datasets%20(e.g.%20%3CA%20href%3D%22https%3A%2F%2Fmicrosoft.github.io%2FXGLUE%2F%22%20target%3D%22_self%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3EXGL%3CSPAN%3EUE%3C%2FSPAN%3E%3C%2FA%3E%20web%20page%20ranking)%20as%20well%20as%20real-world%20datasets%20from%20services%20currently%20powered%20by%20Azure%20Cognitive%20Search%20(e.g.%20Microsoft%20Docs).%20Our%20results%20showed%20several%20points%20of%20gain%20in%20search%20relevance%20metrics%20(NDCG)%20over%20the%20existing%20BM25%20ranker%20for%20various%20languages%20such%20as%20French%2C%20German%2C%20Spanish%2C%20Italian%2C%20Portuguese%2C%20Chinese%20and%20Japanese.%20For%20semantic%20answers%2C%20our%20evaluations%20were%20based%20on%20multiple%20datasets%20focused%20on%20Q%26amp%3BA%20tasks.%20Current%20academic%20benchmark%20leaderboards%20for%20Q%26amp%3BA%20scenarios%20measure%20accuracy%20of%20answer%20extraction%20for%20a%20given%20passage.%20However%2C%20our%20assessments%20were%20required%20to%20go%20a%20step%20further%20and%20consider%20more%20real-world%20intricacies%20involving%20multiple%20steps%26nbsp%3B(see%20Figure%203)%20to%20extract%20an%20answer%20from%20a%20search%20index%3A%20(1)%20documents%20retrieval%20from%20the%20search%20index%2C%20(2)%20candidate%20passage%20extraction%20from%20the%20given%20documents%2C%20(3)%20passage%20ranking%20across%20candidate%20passages%2C%20and%20(4)%20answer%20extraction%20from%20the%20most%20relevant%20passage.%20We%20observed%20that%20our%20model%20accuracy%20for%20French%2C%20Italian%2C%20Spanish%20and%20German%20languages%20is%20equivalent%20to%20that%20of%20English%20language.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22swaritgrover_1-1621971280196.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283660i441774A566E41DA3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22swaritgrover_1-1621971280196.png%22%20alt%3D%22Figure%203.%20Semantic%20answer%20extraction%20in%20Azure%20Cognitive%20Search.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3EFigure%203.%20Semantic%20answer%20extraction%20in%20Azure%20Cognitive%20Search.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-215892124%22%20id%3D%22toc-hId-215892084%22%3E%3CFONT%20size%3D%225%22%3EGet%20started%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EThe%20following%20table%20summarizes%20the%20set%20of%20languages%20and%20queryLanguage%20parameter%20values%20that%20we%20currently%20support%20via%20the%20REST%20API%20to%20enable%20semantic%20search%20on%20Azure%20Cognitive%20Search.%20Note%20that%20we%20have%20also%20added%20speller%20support%20for%20Spanish%2C%20French%20and%20German%20languages.%20For%20languages%20marked%20as%20%E2%80%9Cpreview%E2%80%9D%2C%20we%20encourage%20you%20out%20to%20try%20the%20capability%20for%20your%20search%20index%20and%20give%20us%20your%20feedback.%20For%20detailed%20instructions%20on%20how%20to%20configure%20semantic%20search%20for%20your%20target%20language%2C%20please%20refer%20to%20our%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Frest%2Fapi%2Fsearchservice%2Fpreview-api%2Fsearch-documents%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Edocumentation%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22swaritgrover_2-1621971510974.png%22%20style%3D%22width%3A%20841px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F283661iF88AF52E01205750%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22swaritgrover_2-1621971510974.png%22%20alt%3D%22Table%201.%20Supported%20languages%20for%20semantic%20search%20on%20Azure%20Cognitive%20Search.%22%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-caption%22%20onclick%3D%22event.preventDefault()%3B%22%3ETable%201.%20Supported%20languages%20for%20semantic%20search%20on%20Azure%20Cognitive%20Search.%3C%2FSPAN%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId--1591562339%22%20id%3D%22toc-hId--1591562379%22%3E%3CFONT%20size%3D%225%22%3EConclusion%3C%2FFONT%3E%3C%2FH2%3E%0A%3CP%3EWith%20additional%20support%20for%20new%20languages%2C%20we%20are%20very%20excited%20to%20extend%20access%20to%20our%20state-of-the-art%20AI-enabled%20search%20capabilities%20to%20developers%20and%20customers%20worldwide.%20Please%20%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fsemanticpreview%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Esign%20up%3C%2FA%3E%20for%20our%20preview%20to%20try%20out%20semantic%20search%20today!%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CH2%20id%3D%22toc-hId-895950494%22%20id%3D%22toc-hId-895950454%22%3EReferences%3C%2FH2%3E%0A%3CP%3E%3CA%20href%3D%22https%3A%2F%2Faka.ms%2Fsemanticgetstarted%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Faka.ms%2Fsemanticgetstarted%3C%2FA%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-2385110%22%20slang%3D%22en-US%22%3E%3CP%3EFind%20out%20how%20we%20are%20enabling%20semantic%20search%20across%20multiple%20languages%20on%20Azure%20Cognitive%20Search.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2385110%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Cognitive%20Search%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMachine%20Learning%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EMicrosoft%20Build%202021%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎May 25 2021 11:29 PM
Updated by: