IP Library › Granted Patent US 12,730,967
Granted Patent B2
US 12,730,967 · App. 18/505,293 · Granted Sep 8, 2026

Transformer-based hybrid recommendation model with contextual feature support

Inventors: Cesare Bernardis (Zurich, CH); Damien Hilloulin (Zurich, CH); Rhicheek Patra (Zurich, CH); Sungpack Hong (Palo Alto, CA); Hassan Chafi (San Mateo, CA)
Assignee: Oracle International Corporation
G06F40/284G06F16/9535
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,730,967
App. No.
18/505,293
Granted
Sep 8, 2026
Kind
B2
Abstract

In a computer-implemented embodiment, an interaction machine learning model is trained based on many interactions on many resources. A context lexical token is inferred that represents a current operational context of a user. The context lexical token is inserted into a sequence of other inferred lexical tokens. From the context lexical token within the sequence of tokens, the interaction machine learning model infers a predicted resource that will be accessed next. In an embodiment, accelerated matchmaking entails suitability measurement by a dot product of a) a dynamically inferred user embedding that is based on the context lexical token and b) a statically inferred item embedding.

Claims (34)

1 . A method comprising:

training, based on a plurality of interactions on a plurality of resources, an interaction large language model (LLM);

generating a context lexical token that represents an operational context, wherein the operational context occurs after said training the interaction LLM; and

inferring by the interaction LLM, from an input, a predicted resource of said plurality of resources that will be accessed next, wherein the input comprises the context lexical token, a contiguous plurality of padding tokens, a temporal sequence of interaction lexical tokens that each represents a respective distinct interaction that was already caused by a particular user, and a lexical token that represents the particular user in the operational context.

2 . The method of claim 1 wherein said inferring the predicted resource that will be accessed is based on a sequence of lexical tokens that comprises:

the context lexical token,

a temporal sequence of interaction lexical tokens that each represents a respective distinct interaction that was already caused by a particular user, and

between the context lexical token and said temporal sequence of interaction lexical tokens, a predefined lexical token that does not represent data.

3 . The method of claim 1 further comprising inferring a particular lexical token that is a fixed-size embedding of an object, wherein the particular lexical token is selected from a group consisting of the context lexical token and an interaction lexical token that represents a respective distinct access of a respective resource by a particular user.

4 . The method of claim 3 further comprising dropout training an artificial neural network to perform said inferring the particular lexical token.

5 . The method of claim 1 further comprising inferring a respective fixed-size embedding of each resource in the plurality of resources.

6 . The method of claim 5 further comprising generating a multidimensional index of said fixed-size embeddings of the plurality of resources.

7 . The method of claim 6 further comprising using the predicted resource that will be accessed as a lookup key to retrieve, from the multidimensional index, a nearest neighbors subset of the fixed-size embeddings of the plurality of resources.

8 . The method of claim 7 wherein:

said inferring the predicted resource that will be accessed comprises generating a fixed-size embedding of the predicted resource;

said using the predicted resource that will be accessed as the lookup key comprises using the fixed-size embedding of the predicted resource as the lookup key.

9 . The method of claim 8 further comprising selecting, filtering, or ranking the nearest neighbors subset of the plurality of resources based on a respective dot product of the fixed-size embedding of the predicted resource and each fixed-size embeddings of the nearest neighbors subset of the fixed-size embeddings of the plurality of resources.

10 . The method of claim 1 wherein said inferring the predicted resource that will be accessed is based on a temporal sequence of interactions that occurred after said plurality of interactions.

11 . One or more non-transitory computer-readable media storing instructions that, when executed by one or more processors, cause:

training, based on a plurality of interactions on a plurality of resources, an interaction large language model (LLM);

generating a context lexical token that represents an operational context, wherein the operational context occurs after said training the interaction LLM; and

inferring by the interaction LLM, from an input, a predicted resource of said plurality of resources that will be accessed next, wherein the input comprises the context lexical token, a contiguous plurality of padding tokens, a temporal sequence of interaction lexical tokens that each represents a respective distinct interaction that was already caused by a particular user, and a lexical token that represents the particular user in the operational context.

12 . The one or more non-transitory computer-readable media of claim 11 wherein said inferring the predicted resource that will be accessed is based on a sequence of lexical tokens that comprises:

the context lexical token,

a temporal sequence of interaction lexical tokens that each represents a respective distinct interaction that was already caused by a particular user, and

between the context lexical token and said temporal sequence of interaction lexical tokens, a predefined lexical token that does not represent data.

13 . The one or more non-transitory computer-readable media of claim 11 wherein:

the instructions further cause inferring a particular lexical token that is a fixed-size embedding of an object;

the particular lexical token is selected from a group consisting of the context lexical token and an interaction lexical token that represents a respective distinct access of a respective resource by a particular user.

14 . The one or more non-transitory computer-readable media of claim 13 wherein the instructions further cause dropout training an artificial neural network to perform said inferring the particular lexical token.

15 . The one or more non-transitory computer-readable media of claim 11 wherein the instructions further cause inferring a respective fixed-size embedding of each resource in the plurality of resources.

16 . The one or more non-transitory computer-readable media of claim 15 wherein the instructions further cause generating a multidimensional index of said fixed-size embeddings of the plurality of resources.

17 . The one or more non-transitory computer-readable media of claim 16 wherein the instructions further cause using the predicted resource that will be accessed as a lookup key to retrieve, from the multidimensional index, a nearest neighbors subset of the fixed-size embeddings of the plurality of resources.

18 . The one or more non-transitory computer-readable media of claim 11 wherein said inferring the predicted resource that will be accessed is based on a temporal sequence of interactions that occurred after said plurality of interactions.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 9, 2023
From: BERNARDIS, CESARE; HILLOULIN, DAMIEN; PATRA, RHICHEEK; HONG, SUNGPACK; CHAFI, HASSAN
To: ORACLE INTERNATIONAL CORPORATION
Reel/Frame 065508/0617 →
Continuity (1)
Related Publication 20250156637A1 · May 15, 2025
References Cited (20)
US 20200097544A1 · Alexander · 2020 [cited by examiner]
US 20230185626A1 · Sankaranarayanan · 2023 [cited by examiner]
US 20240143916A1 · Lee · 2024 [cited by examiner]
US 20240184835A1 · Luo · 2024 [cited by examiner]
US 20240378396A1 · Bhupati · 2024 [cited by examiner]
US 20250005644A1 · Ruan · 2025 [cited by examiner]
US 20250095652A1 · Chen · 2025 [cited by examiner]
Hirschorn, James. “Transformer Implementation with the High-Level Keras API.” (2021). (Year: 2021). [cited by examiner]
Xu, Yu-Hao, et al. “A recommendation algorithm based on a self-supervised learning pretrain transformer.” Neural Processing Letters 55.4 (2022): 4481-4497. (Year: 2022). [cited by examiner]
Khrylchenko, Kirill, and Alexander Fritzler. “Personalized transformer-based ranking for e-commerce at yandex.” arXiv preprint arXiv:2310.03481 (Oct. 2023). (Year: 2023). [cited by examiner]
Li, Xiangyang, et al. “Inttower: the next generation of two-tower model for pre-ranking system.” Proceedings of the 31st ACM International Conference on Information & Knowledge Management. 2022. (Year: 2022). [cited by examiner]
Zhu et al., “Understanding masking & padding”, [online] , retrieved from archive.org, published on Jun. 1, 2023. (Year: 2023). [cited by examiner]
Caner, “Padding for NLP”, [online], https://medium.com, published in 2020. (Year: 2020). [cited by examiner]
Wang, S., et al. “Attention-Based Transactional Context Embedding for Next-Item Recommendation”, Proceedings of the AAAI Conference on Artificial Intelligence, vol. 32, No. 1, 2018. [cited by applicant]
Villegas, Norha M., et al. “Characterizing context-aware recommender systems: A systematic literature review.” Knowledge-Based Systems 140, 2018, 173-200. [cited by applicant]
Vaswani, Ashish, et al. “Attention is all you need.” Advances in neural information processing systems 30, 2017. [cited by applicant]
Raza, Shaina et al. “Progress incontext-aware recommender systems—An overview”, Computer Science Review 31, 2019, 84-97. [cited by applicant]
Javed, Umair, et al. “A review of content-based and context-based recommendation systems”, International Journal of Emerging Technologies in Learning (iJET)16.3, 2021, 274-306. [cited by applicant]
Hu, Liang, et al. “Diversifying personalized recommendation with user-session context”, Proceedings of the 26th International Joint Conference on Artificial Intelligence (IJCAI'17). AAAI Press, 2017, 1858-1864. [cited by applicant]
Caner, “Hands-on TensorFlow Tokenizer for NLP”, available: https://medium.com/@canerkilinc/hands-on-tensorflow-tokenizer-for-nlp-392c97d5874d; retrieved on Nov. 19, 2025; 9 pages. [cited by applicant]