Improving relevance in e-commerce sponsored searches with LLM

Discover how the LLAMA2 model with LoRA improves the relevance of sponsored ads in e-commerce, achieving 89.43% accuracy and surpassing GPT-4.

martes, 7 de julio de 2026 • 2 min read • Q2BSTUDIO Team

LLAMA2 and LoRA: precision in sponsored searches

In the dynamic ecosystem of e-commerce, the relevance of sponsored search results has become a critical factor for user satisfaction and revenue optimization. When a customer types a query in a marketplace, the ads that appear must align with their intentions, a task complicated by the enormous variety of keywords, semantic ambiguity, and language diversity. To address this challenge, companies are turning to fine-tuned large language models (LLMs), as recently demonstrated by adapting a LLaMA2 7B model through Low-Rank Adaptation (LoRA), achieving 89.43% accuracy in classifying ads as relevant, partially relevant, or irrelevant. This approach not only outperforms generalist models like GPT-4 but also reduces computational costs and improves operational privacy.

The key lies in specialized fine-tuning: instead of training from scratch, a pre-trained model is adjusted with e-commerce domain-specific data, keeping most of its parameters frozen and modifying only certain layers via LoRA. This allows the system to understand nuances such as purchase intent, product synonyms, or categories, something that systems based solely on word matching cannot achieve. For a company, implementing this technology requires not only AI knowledge but also robust infrastructure and the ability to integrate with existing platforms. This is where having a technology partner that offers AI for businesses and artificial intelligence solutions tailored to each business becomes relevant.

At Q2BSTUDIO, we understand that personalization is the foundation of success. That is why we develop custom applications and custom software that incorporate LLM-based recommendation and classification engines, adjusted to each client's catalogs and behaviors. Our teams combine AWS and Azure cloud services to scale these models without compromising latency, and we apply rigorous cybersecurity policies to protect user data and queries. Additionally, we integrate dashboards with Power BI and business intelligence services so that marketing teams can monitor the effectiveness of sponsored campaigns in real time.

The evolution toward autonomous AI agents that manage bids and segment audiences is the next step. These agents, trained with techniques similar to those in the mentioned study, can dynamically optimize keywords and budget, improving ROI. Implementing these systems is not trivial: it requires clean data architecture, lightweight models, and continuous update processes. At Q2BSTUDIO, we offer process automation and consulting so that e-commerce companies can leverage these innovations without friction, ensuring that each search query receives the most relevant ad and, ultimately, a smoother and more profitable shopping experience.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.