Diversified Multinomial Logit Contextual Bandits

Learn how OFU-DMNL optimizes assortments by combining relevance and diversity in contextual bandits, with superior performance and lower cost.

15 jul 2026 • 4 min read • Q2BSTUDIO Team

Assortment optimization with relevance-diversity trade-off

In today's landscape of artificial intelligence applied to decision-making, assortment recommendation and optimization systems face a constant dilemma: how to balance the relevance of each option with the diversity of the set offered? This problem, known as the trade-off between relevance and diversity, has traditionally been approached from two separate fronts. On the one hand, contextual multinomial logit models (MNLs) capture the probability of choice based on relevant attributes, but ignore the value of offering varied options. On the other hand, submodular or combinatorial bandits incorporate diversity into rewards, but lack a realistic choice probability structure. This gives rise to the need for a unified model: the diversified multinomial logit (DMNL) contextual bandit.

This model, presented in recent literature under the name of DMNL contextual bandit, extends the classic MNL by adding a generally submodular diversity function that weights the contribution of each item to the variety of the assortment. In this way, the balance between what the user would most likely choose (relevance) and what enriches their experience (diversity) is mathematically formalized. However, incorporating diversity makes the problem of optimizing the intractable assortment in its exact form. To solve this, an algorithm based on upper confidence limits (UCB) called OFU-DMNL has been proposed, which builds the assortment item by item maximizing optimistic marginal gains. This approach avoids black-box optimization oracles and guarantees an approximate regret level of at least (1 - 1/(e+1)), with much lower computational complexity than exhaustive enumeration.

The practical relevance of these advances is enormous. In e-commerce, content platforms, or recruiting environments, offering a diverse assortment not only improves user satisfaction, but can increase conversion and discovery rates. DMNL models allow companies to make decisions in real time under uncertainty, dynamically adapting to the user's context. For example, a marketplace may recommend products that are not only highly likely to buy, but also cover complementary categories, increasing cart value.

To implement solutions of this type, companies need robust and specialized technological development. This is where Q2BSTUDIO makes a difference. As a software and technology development company, we offer services ranging from the creation of custom applications to the integration of advanced artificial intelligence models. Our team works with contextual bandit algorithms and sub-modular optimization techniques to build recommendation systems that truly learn and adapt. Whether it's implementing a personalization engine in your online store or optimizing resource allocation in your organization, we have the necessary expertise.

Technological infrastructure also plays a critical role. DMNL models require real-time processing and scalable storage. That's why we offer AWS and Azure cloud services that ensure fast and secure deployments. In addition, cybersecurity is essential when handling user behavior data; Our cybersecurity solutions protect system integrity and customer privacy. Business intelligence, enhanced with tools such as Power BI, allows the results of these algorithms to be visualized and actionable conclusions to be drawn for management.

In the field of artificial intelligence for companies, the concept of AI agents is gaining ground. These agents can use DMNL models to make autonomous assortment decisions in real time, continuously improving through reinforcement learning. Q2BSTUDIO integrates these agents into custom platforms, combining them with business intelligence services to generate dynamic reports. Thus, a company can, for example, automatically adjust the product offering based on seasonality and customer profile, maximizing both relevance and diversity.

From a technical point of view, the advantage of the OFU-DMNL algorithm lies in its 'white-box' character, which allows you to inspect how each assortment is constructed. This is crucial in regulated sectors or where explainability is necessary. In addition, its sublinear regret elevation with respect to the time horizon makes it a viable option for long-term applications. The combination of a submodular feature with MNL probabilities offers a robust framework that can be extended to scenarios with multiple categories, budget constraints, or changing preferences.

For companies that want to stay competitive, adopting these techniques is not just an option, but a necessity. Data-driven personalization is no longer a luxury, but a standard. Q2BSTUDIO, with its focus on AI for business, helps its clients deploy diversified contextual bandit models without the need for an in-house team of data scientists. From model design to production deployment, we offer comprehensive support that ensures measurable results.

In conclusion, diversified multinomial logit contextual bandits represent a significant advance in assortment optimization under uncertainty. By unifying relevance and diversity in a single framework, they provide a more realistic and effective tool than traditional approaches. Businesses of all sizes can benefit from this technology, especially if they have the support of a technology partner like Q2BSTUDIO, who understands both theory and practice. The key is to take the step towards intelligent decision-making, based on algorithms that learn and adapt, and that also respect diversity as an added value for the user.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

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.