Ai4
AI-assisted summary of Joint LLM-Infused Embeddings for Explainable Financial Recommendations at Scale — original source. Check the original for full context.
Source published:
Detailed notes
## Background Published on YouTube by Ai4 on August 14, 2026, this talk features Alejandro Correa Bahnsen, VP of Data & AI at Grupo Bursátil Mexicano (GBM). According to the video description, Bahnsen presents an explainable financial recommender system that bridges investor behavioral signals and market dependency structures using fine-tuned LLM-based embeddings within a shared representation space.
## TL;DR Addressing the challenges of scaling Mexico's largest brokerage app to nearly two million digital users, Bahnsen details GBM's progression from manual CIO curation to collaborative filtering and handcrafted Learning-to-Rank pipelines. While tabular feature engineering raised sales conversion by nearly 6%, it created a representation bottleneck that struggled to capture complex portfolio diversification, price reflexivity, and nuanced investor behavior. To solve this, GBM engineered a joint semantic embedding architecture utilizing three dedicated LLM encoders for user behavior, portfolio holdings, and candidate assets. The joint representation resolved asset cold-start issues, doubled offline NDCG and recall performance compared to engineered baselines, and established the groundwork for real-time conversational and multimodal voice advisory.
## Atmosphere & style The presentation carries the pragmatic, methodical cadence of an experienced practitioner operating in a high-stakes financial environment. Bahnsen pairs transparent institutional war stories with architectural depth, balancing an analytical mindset with genuine engineering enthusiasm as he dissects why standard consumer recommendation tricks break down in wealth management. The delivery feels like an authoritative technical masterclass—grounded, measured, and focused on solving hard production constraints rather than chasing AI hype.
## Key takeaways - [00:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=4s) Financial advice is fundamentally subjective and depends on each investor's unique goals, time horizon, and risk tolerance rather than a universal right answer. - [00:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=4s) Scaling Grupo Bursátil Mexicano's digital investment platform to nearly two million users broke legacy manual curation models, which relied on the Chief Investment Officer selecting weekly picks. - [03:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=184s) Applying an initial collaborative filtering baseline drove a 3% uplift in sales, but treating investments like e-commerce purchases ignores wealth management fundamentals. - [05:31](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=331s) Financial recommendation systems differ fundamentally from e-commerce because they must prioritize portfolio diversification, risk preferences, and volatile market dynamics rather than mere engagement metrics. - [05:31](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=331s) Unlike consumer shopping, financial recommendations at scale can trigger price reflexivity, where algorithm-driven buying pressure directly moves asset prices in small-cap or domestic markets. - [11:41](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=701s) Adopting a classic Learning-to-Rank framework with handcrafted features across investor profiles, portfolio holdings, behavior, and market signals achieved a nearly 6% sales lift in production, doubling collaborative filtering. - [16:14](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=974s) Traditional tabular feature engineering hits a representation bottleneck where adding thousands of manual features produces diminishing returns and fails to capture rich financial context. - [18:35](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1115s) A joint semantic embedding architecture replaces manual feature tables with three dedicated LLM encoders covering user behavior, portfolio holdings, and candidate assets. - [18:35](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1115s) Joint LLM embeddings solve the cold start problem for newly listed IPOs and assets with limited trading history by leveraging foundation models' world knowledge and descriptive metadata. - [21:48](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1308s) Offline benchmarking over six weeks revealed that joint semantic embeddings roughly doubled ranking accuracy across NDCG and Recall metrics compared to the feature-engineered baseline. - [23:58](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1438s) Semantic representation learning lays the foundation for conversational investing, requiring strict portfolio guardrails, sub-second latency, and omnichannel consistency between chat interfaces and app UI feeds.
## Detailed walkthrough ### [00:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=4s) The Subjectivity of Financial Advice and GBM's Digital Transformation
Every day in asset management and financial advisory comes with the same recurring questions from friends, colleagues, and advisors alike: "Which stock is better? Should I buy Apple? Should I buy SpaceX?" The reality is that there is never a single universal answer. Recommendations depend fundamentally on who the investor is, what their specific goals are, their time horizon, and whether they are treating the platform as a place to gamble or as a home for their retirement savings.
Grupo Bursátil Mexicano (GBM) operates as an established, nearly 40-year-old financial advisory and brokerage firm. Over the past three to five years, however, the firm expanded rapidly into the digital space, scaling its investment app to close to two million digital users and cementing its position as by far the largest brokerage firm in Mexico, even while maintaining its traditional offline operations.
In the app's early digital days, the homepage presented identical content to all users. Every Monday morning, curation was handled manually: the Chief Investment Officer (CIO) would decide which investment opportunities or popular instruments to highlight for that week. While this static, editorial method worked passably when managing tens of thousands of clients, it completely broke down when scaling to millions of users with diverse risk profiles and financial needs.
```mermaid flowchart TD accTitle: Evolution of Recommendation Systems at GBM accDescr: Transition from manual CIO weekly picks to collaborative filtering and machine learning models.
subgraph Phase1["Legacy Manual Approach"] CIO["Chief Investment Officer (CIO)"] -->|"Manual weekly picks"| StaticFeed["Static Homepage Feed<br/>(Same for all users)"] end
subgraph Phase2["Initial Personalization"] UserActions["User Buy History"] --> CF["Collaborative Filtering"] CF -->|"Similar users bought X"| RecFeed["Personalized Feed<br/>(+3% conversion vs baseline)"] end
Phase1 -.->|"Fails at millions of users"| Phase2 ```
---
[03:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=184s) The First Step: Collaborative Filtering and Its Limits
To solve the scale challenge, the team looked toward standard e-commerce and media platforms that personalize user feeds based on inferred intent. Borrowing the classic collaborative filtering paradigm—the idea that "similar customers bought item X, therefore you should buy item X"—GBM deployed a collaborative filtering model to drive homepage recommendations.
Implemented at the beginning of the year, the collaborative filtering model delivered an immediate +3% uplift in investment sales compared to the baseline of showing the most popular assets. Initially, performance was tracked using a straightforward metric: comparing the amount of money invested by users who were exposed to the personalized recommendation module against those who were not.
- **Initial Metric:** Aggregate capital invested by users exposed to personalized recommendations vs. non-exposed users. - **Immediate Outcome:** +3% higher conversion/sales over the static popular-instrument baseline. - **Limitation:** Recommending complex assets solely based on peer transaction co-occurrence ignores fundamental differences between consumer shopping and wealth management.
---
[05:31](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=331s) Why Financial Recommendations Are Fundamentally Different from E-Commerce
While consumer platforms optimize for user attention, video watch time, retention, click-through rates, social engagement, or recurring subscription revenue, measuring financial recommendations is far more challenging. In consumer platforms, the core question is "What should I show next?"; in finance, the user is asking, "What should I do with my money?"
A sound financial recommendation system cannot simply optimize for immediate engagement. It must balance multiple competing dimensions: 1. **Uncertain Returns & Risk Preferences:** Users range from highly risk-averse to aggressive investors. Predicting returns is practically impossible; the only reliable signal is historical volatility. 2. **Portfolio Diversification:** If an investor's portfolio is already concentrated in technology equities, recommending yet another tech stock is irresponsible, even if their behavioral data indicates a strong preference for tech. 3. **Price Reflexivity (Market Impact):** Unlike consumer products, recommending an asset at scale to millions of users can directly alter market mechanics. For small-cap, niche, or domestic securities, routing millions of impressions to an asset creates artificial buying pressure that moves the underlying price—a phenomenon unique to finance that acts as an unintended byproduct of the algorithm. 4. **Temporal Decay and Market Dynamics:** The shelf life of a recommendation is tied to live market swings. Showing an asset whose price has just experienced extreme volatility changes the nature and safety of the recommendation.
| Dimension | Standard E-Commerce / Streaming | Financial Investment Platforms | |:--- |:--- |:--- | | **Primary User Goal** | Discover content/products to consume | Manage capital and build wealth safely | | **Core Optimization Metrics** | CTR, watch time, retention, GMV | Risk-adjusted return, diversification, volatility alignment | | **Asset Concentration Impact** | Low harm (e.g., listening to one genre) | Severe risk (over-indexing on a single sector) | | **Market Feedback Loop** | Item availability/price generally static | **Price reflexivity**: Recommendations can move asset prices | | **Temporal Sensitivity** | Moderate (decays over months/years) | Extreme (decays over hours/days based on price swings) |
---
[11:41](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=701s) Engineering Machine Learning Pipelines with Learning-to-Rank
To move from predicting "what will the user click" to "what is financially relevant for this specific investor right now," recommendation models must ingest richer, multi-dimensional user context. Financial relevance depends on an investor's existing holdings, transaction history, search and price tracking habits, position sizing adjustments (increasing vs. decreasing exposure), and specific fiscal constraints such as capital gains tax liabilities.
To capture these interactions, the engineering team's first robust modeling attempt centered on a classic Machine Learning **Learning-to-Rank (LTR)** framework. This required data science teams to spend weeks handcrafting domain-specific features across multiple data domains:
```mermaid flowchart LR accTitle: Feature Engineering Pipeline for Financial Learning-to-Rank accDescr: Multiple data sources combined into engineered feature sets fed into a Learning-to-Rank model.
subgraph DataSources["Data Sources & Context"] U["Investor Profile & Demographics"] P["Current Holdings & Tax Factors"] I["Interaction History (Search, Views)"] M["Market Signals & Asset Price Shifts"] end
subgraph FeatureEng["Handcrafted Feature Pipeline"] F1["User Risk & Balance Features"] F2["Portfolio Concentration Metrics"] F3["Behavioral Intent Signals"] F4["Dynamic Market Features (e.g., Price Drops)"] end
subgraph ModelStage["Ranking Layer"] LTR["Learning-to-Rank (LTR) Model"] Output["Ranked Investment Recommendations"] end
U --> F1 P --> F2 I --> F3 M --> F4
F1 & F2 & F3 & F4 --> LTR LTR --> Output ```
- **User & Investor Features:** Risk tolerance scores, investment horizons, account tier, and historical trading style. - **Portfolio Features:** Asset allocation breakdown, existing sector weights, and tax sensitivity parameters. - **Interaction & In-App Activity:** Search logs, watchlist queries, price chart interactions, and frequency of position scaling. - **Market & Asset Features:** Relative price movements, volatility windows, and trigger features (e.g., whether a user is viewing an asset that recently pulled back in price).
[14:47](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=887s) Production Impact: Doubling Recommender Performance
Deploying personalized recommendations in-app—such as curating top-five asset lists for carousel widgets—delivered an immediate commercial impact. A production rollout in March, evaluated over a month of live testing, revealed that personalized asset recommendations drove an increase in sales of nearly 6% compared to merely displaying the most popular assets. Across a user base scaling into millions of investors, this uplift represents substantial trading volume.
The result is particularly striking given the architectural simplicity of the underlying machine learning model, where the bulk of the effort was focused heavily on manual feature engineering. Compared to the baseline collaborative filtering model, which achieved a 3% sales lift, this iteration successfully doubled performance.
- **Production Uplift:** Almost 6% increase in sales over showing baseline popular assets. - **Baseline Comparison:** Doubled the ~3% sales improvement previously achieved via collaborative filtering. - **Application Context:** Powered personalized in-app carousels displaying top-5 asset recommendations across millions of active users.
```mermaid flowchart LR accTitle: Recommender Model Iteration Performance subgraph Baselines ["Baseline Models"] A["Popular Assets Baseline"] -->|Baseline| B["0% Relative Lift"] C["Collaborative Filtering"] -->|Initial ML| D["+3% Sales Lift"] end subgraph Engineered ["Engineered Model"] E["Feature-Engineered Ranker"] -->|Doubled Impact| F["+6% Sales Lift"] end ```
---
[16:14](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=974s) The Representation Gap and Feature Engineering Bottlenecks
Despite the strong production metrics, the team identified severe structural limitations inherent to traditional tabular feature engineering, termed the "representation gap." Manually engineered features fail to capture the nuanced, high-dimensional reality of financial assets and dynamic investor behavior. On the asset side, analysts track industry sectors (e.g., consumer technology), recent revenue trajectories, corporate buybacks, and shifting fundamentals. On the user side, signals multiply rapidly: recent transaction timing, whether an investor panic-sells immediately upon a price dip or waits out drawdowns, and how they consume in-app financial news—including whether the sentiment of the articles they read about a particular holding is positive or negative.
Attempting to hand-craft features for every signal quickly hits diminishing returns. Expanding feature sets from 10,000 to 11,000 tabular inputs stopped yielding performance gains and merely introduced noise, proving that "not every interaction can be anticipated and manually created into a feature." This realization prompted a strategic shift away from manual financial feature engineering toward learning rich, dense semantic representations.
---
[18:35](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1115s) Architecture: Joint LLM-Infused Semantic Embeddings
To bridge the representation gap, the team developed a joint semantic embedding architecture that replaces manual feature tables with three dedicated encoders powered by large language models. The framework simultaneously encodes three core pillars of financial context: the user's granular recent behavior, their current portfolio composition, and the universe of candidate assets available on the platform.
```mermaid flowchart TD accTitle: Joint Semantic Recommender Architecture subgraph Inputs ["Input Encoders"] U["User Recent Behavior"] --> E1["LLM Behavior Encoder"] P["User Portfolio Holdings"] --> E2["LLM Portfolio Encoder"] A["Candidate Asset Universe"] --> E3["LLM Asset Encoder"] end subgraph Fusion ["Fusion & Scoring"] E1 --> C["Concatenation Layer"] E2 --> C E3 --> C C --> NN["Neural Network Ranker"] NN --> Out["Relevance Score / Top-K Assets"] end ```
The resulting embeddings from all three branches are concatenated into a unified representation space and fed into a downstream neural network to generate a personalized relevance score. This setup allows the system to harness the inherent world knowledge of foundation models regarding public companies and macroeconomic relationships. Crucially, semantic embeddings also resolve the severe "cold start problem in financial recommendations"—allowing newly listed assets, such as recent high-profile IPOs that lack historical trading interactions, to be effectively embedded and recommended based on descriptive metadata without manual tabular intervention.
---
[21:48](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1308s) Offline Validation: Doubling Ranking Accuracy
Offline evaluation of the new joint representation ranker demonstrated dramatic improvements across standard ranking metrics when benchmarked against previous feature-engineered iterations. Testing across offline historical datasets showed that semantic representations roughly doubled performance on Normalized Discounted Cumulative Gain (NDCG) as well as Recall metrics, accurately mirroring what users subsequently purchased.
While acknowledging a personal preference to present live production metrics, the offline experiments over the preceding six weeks provided strong empirical justification for an imminent production rollout. The findings confirm that encoding user portfolios, behavioral journeys, and asset metadata into a shared semantic space captures far more predictive investor intent than traditional feature tables can express.
- **Offline Gains:** Approximately 2x improvement in NDCG and Recall compared to the feature-engineered production baseline. - **Validation Scope:** Six weeks of experimental offline benchmarking prior to scheduling live production deployment. - **Core Objective:** Accurately replicating human financial advisor intuition within automated digital experiences.
---
[23:58](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1438s) Conversational Investing, Multimodal Voice, and Guardrails
The long-term value of joint semantic modeling lies in its natural compatibility with the broader shift toward conversational finance, encompassing interactive text chat and multimodal voice interfaces. Traditional recommendation tables cannot adapt dynamically to an ongoing dialogue; in contrast, a semantic encoder can ingest conversational turns in real time and immediately refresh portfolio recommendations.
Operating financial AI in conversational channels introduces strict technical and regulatory challenges:
- **Portfolio Guardrails:** Preventing overexposure to specific sectors or volatile asset classes when an investor’s risk profile dictates diversification. - **Omnichannel Consistency:** Ensuring that recommendations provided inside a conversational chat or voice session match the assets displayed on the app’s homepage carousel, rather than relying on a disconnected generic LLM that hallucinates investment advice. - **Sub-Second Latency:** Transitioning semantic encoding pipelines to real-time execution speeds necessary to support seamless, live conversational interactions with digital financial advisors.
## Notable quotes > [00:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=4s) Which stock is better? Should I buy Apple? Should I buy SpaceX? — Alejandro Correa Bahnsen
> [03:04](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=184s) similar customers bought item X, therefore you should buy item X — Alejandro Correa Bahnsen
> [05:31](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=331s) What should I show next? — Alejandro Correa Bahnsen
> [05:31](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=331s) What should I do with my money? — Alejandro Correa Bahnsen
> [11:41](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=701s) what will the user click — Alejandro Correa Bahnsen
> [11:41](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=701s) what is financially relevant for this specific investor right now — Alejandro Correa Bahnsen
> [16:14](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=974s) representation gap — Alejandro Correa Bahnsen
> [16:14](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=974s) not every interaction can be anticipated and manually created into a feature — Alejandro Correa Bahnsen
> [18:35](https://www.youtube.com/watch?v=Kgp27I4VNYw&t=1115s) cold start problem in financial recommendations — Alejandro Correa Bahnsen
## Mentioned Alejandro Correa Bahnsen, Grupo Bursátil Mexicano (GBM), Apple, SpaceX, Normalized Discounted Cumulative Gain (NDCG), Learning-to-Rank (LTR)
## Video description Alejandro Correa Bahnsen - VP of Data & AI, Grupo Bursátil Mexicano
Traditional recommendation systems such as collaborative filtering and market-signal models often fail to capture investor intent and rarely provide meaningful explanations. In this talk, I will present a financial recommender that jointly models investor behavioral signals (holdings, watchlists, interaction patterns) and market dependency structures using fine-tuned LLM-based embeddings in a shared representation space.
I will explain how this joint embedding approach improves relevance, diversity, and stability compared to behavior-only or market-only baselines, and how we evaluate these gains both offline and in production-oriented settings. The talk will also cover architectural decisions, representation learning trade-offs, and explainability strategies needed for real-world deployment.
If you are building ranking systems in high-stakes domains, this session will offer concrete patterns for combining foundation models with structured financial data in a scalable and interpretable way.
[Source](https://www.youtube.com/watch?v=Kgp27I4VNYw)