30 Oct 2023

6 min read

The Transformational LLMs on Search and Recommendations

The Transformational LLMs on Search and Recommendations

Search engines and recommendation systems sit at the core of the modern digital experience. Getting more relevant results and personalized recommendations can directly move revenue, engagement, and customer satisfaction for online platforms. In this deep dive, we'll explore how large language models (LLMs) like GPT-3 are reshaping these systems, along with the opportunities and challenges they bring. This blog post was presented at our Digitalzone Exclusive: Generative AI event, check out our YouTube channel!

Ahmet kuzubasli eng

Introduction to Large Language Models

LLMs are a fairly recent development in artificial intelligence. Trained on massive text datasets, they learn complex language representations that let them generate human-like text. Popular examples include OpenAI's GPT-3 and Google's LaMDA.

LLMs originally focused only on generating text, predicting what comes next after a given prompt. But their natural language competencies carry enormous potential for search, recommendations, and other uses that depend on understanding language context and meaning.

What Are LLMs Good at?

  • Natural language processing: Understanding text meaning and nuance
  • Sound judgment: Making logical inferences and explanations
  • Knowledge representation: Linking concepts across text corpora

These capabilities make LLMs a genuinely groundbreaking force behind smarter search and recommendation engines. Let's look at the impact on each domain in detail.

Llms ai3

Source: DALL-E 3

Revolutionizing Search Relevance with LLMs

Traditional search engines lean heavily on keyword matching and backlink analysis, so results end up limited to documents containing the query terms, ranked by simplified relevance signals.

But users often don't search with perfect terminology, or phrase their questions naturally at all. LLMs offer a real paradigm shift here: they understand the underlying search intent, reason through the context and any explanatory detail in the question, and use that to surface plausible answers or documents tailored to that intent.

LLMs, for example:

- Can tell whether a "dog toy" means a toy for dogs or a figurine of a dog.

- Understand that a search for "best thriller book" probably calls for fiction results sorted by reviews and popularity.

- Answer the question "Who won the World Cup in 2002?" directly, rather than just surfacing pages that contain those words.

Key Features of LLM Search are the following:

Natural Language Query Understanding

It parses the true meaning and intent behind a search query in context, so a search goes well beyond keyword matching into full semantic understanding.

Rather than a one-off keyword search, it supports clarifying questions and lets you zoom in interactively on the information you actually need.

In-Context Personalization

It tailors and personalizes results based on earlier queries in the same session, and on your individual history.

Reasoning to Collect and Generate Data

It can take existing data and generate new text, summarizing key facts from multiple sources as needed.

Early adopters like You.com and Anthropic have shown search relevance improving 10 to 100 times over older search methods once LLM understanding gets involved, a meaningful leap in search quality.

Challenges in Evaluating LLM Search Performance

LLMs have opened the door to real advances in relevance, but they've also exposed the limits of traditional offline evaluation metrics, like precision and recall on a fixed dataset, which aren't enough to measure real improvements in search quality.

Some of the Key Challenges are as follows:

Fixed Data: Fixed datasets may not capture individual user needs down to the level of true personalization.

Interaction: Static queries ignore clarifying interactions.

Reasoning: Keyword matching misses nuanced understanding.

Response quality: Automated metrics may not appreciate subtleties.

The standardized Cranfield paradigm metrics need real development to accurately evaluate LLM search, which behaves very differently from traditional search systems.

Partial solutions include:

- Human assessment for relevance on sample traffic.

- User studies and satisfaction surveys.

- Online A/B testing of experience metrics.

- Task-oriented question-answering evaluations.

Still, a truly holistic way to evaluate LLM search remains an open research problem. As LLMs spread further, the pressure to build better metrics will only grow.

Llms ai2

Source: Adobe Firefly

More Contextualized and Personalized Recommendations

LLMs likewise improve recommendation quality through language understanding. Traditional systems lean heavily on collaborative filtering, matching users to items based on past interactions, which can lead to problems such as

  • Sparse history with new users or items ("cold start problem")

  • Popularity bias rather than personalized relevance

  • Lack of explanation of why recommendations are made

By drawing on richer user and item data, LLMs can build recommendations around contextual relevance rather than just popularity.

Key Techniques Enabled by LLMs

User psychology modeling: understanding a user's interests, tastes, and personality

Understanding element metadata: encoding details such as text descriptions, tags, and attributes.

User-item relevance matching: assessing the similarity between user models and item metadata to build personalized recommendations for each user.

Conversational feedback - refining recommendations through interactive natural language feedback.

Explainability - creating natural language explanations that support and validate the recommendations made.

With user psychology models and item metadata encoded as semantic vectors, rather than mere identities, LLMs can assess compatibility in real depth and make genuinely contextual recommendations.

LLM Advice Challenges

LLM recommendations unlock more personalized, relevant suggestions, but adopting this approach comes with real technical and ethical challenges:

Computational costs - querying LLMs costs more than simple collaborative filtering. Caching, optimization, and selective use of LLMs can help offset this.

Transparency requirements - "black box" recommendations may run into regulations requiring disclosure, and the explainability LLMs offer can work in their favor here.

User privacy - psychographic profiling built on intrusive data collection raises real concerns, and ethical approaches that anonymize or synthesize data can help.

Evaluation challenge - offline measurement remains limited here too. Preference studies, user research, and A/B testing can only partially capture the gains.

Using LLMs responsibly will come down to fair representation, data minimization, transparency, personalization, and protecting user agency.

The Way Forward and Recommendations for LLM Research

LLMs for search and recommendation are still in the early stages of development. A lot of rapid innovation is happening, and much of the real-world use of these models stays under wraps. Even so, every indication points to LLMs becoming just as important for search and recommendation as they already are for text generation.

Continued improvements in model size, training methods, and sequential reasoning should push capabilities further. Over time, issues around latency, infrastructure needs, and evaluation should get easier to manage too.

We expect LLMs to drive a paradigm shift in areas like:

Conversational interfaces: more interactive, contextual search and recommendations.

Hyper-personalization: deep customization built around individual user needs.

Creative hybrid intelligence: combining neural creativity with structured data and rules.

Reliable reasoning: robust logic chains in place of fragile machine learning correlations.

Control and transparency: protecting user agency alongside genuine explainability.

Language models are on the verge of reshaping core platform functionality. Adopted thoughtfully, they stand to deliver real value, from a stronger customer experience to better business metrics. It's a genuinely optimistic outlook for the future.

If you have questions about moving into the AI space, or aren't sure how to fully integrate it into your business, contact us for our Generative AI consulting services!

Related service

Decide where AI fits before you fund it

AI consultancy helps you evaluate the use case, available evidence, controls, and ownership needed to move a viable idea into day-to-day use.
Explore AI consultancy
Didem Himmetli
Didem Himmetli