LogoLogo
Continuum WebsiteContinuum ApplicationsContinuum KnowledgeAxolotl Platform
Continuum Knowledge
Continuum Knowledge
  • Continuum
  • Data
    • Datasets
      • Pre Training Data
      • Types of Fine Tuning
      • Self Instruct Paper
      • Self-Alignment with Instruction Backtranslation
      • Systematic Evaluation of Instruction-Tuned Large Language Models on Open Datasets
      • Instruction Tuning
      • Instruction Fine Tuning - Alpagasus
      • Less is More For Alignment
      • Enhanced Supervised Fine Tuning
      • Visualising Data using t-SNE
      • UMAP: Uniform Manifold Approximation and Projection for Dimension Reduction
      • Training and Evaluation Datasets
      • What is perplexity?
  • MODELS
    • Foundation Models
      • The leaderboard
      • Foundation Models
      • LLama 2 - Analysis
      • Analysis of Llama 3
      • Llama 3.1 series
      • Google Gemini 1.5
      • Platypus: Quick, Cheap, and Powerful Refinement of LLMs
      • Mixtral of Experts
      • Mixture-of-Agents (MoA)
      • Phi 1.5
        • Refining the Art of AI Training: A Deep Dive into Phi 1.5's Innovative Approach
      • Phi 2.0
      • Phi-3 Technical Report
  • Training
    • The Fine Tuning Process
      • Why fine tune?
        • Does Fine-Tuning LLMs on New Knowledge Encourage Hallucinations?
        • Explanations in Fine Tuning
      • Tokenization
        • Tokenization Is More Than Compression
        • Tokenization - SentencePiece
        • Tokenization explore
        • Tokenizer Choice For LLM Training: Negligible or Crucial?
        • Getting the most out of your tokenizer for pre-training and domain adaptation
        • TokenMonster
      • Parameter Efficient Fine Tuning
        • P-Tuning
          • The Power of Scale for Parameter-Efficient Prompt Tuning
        • Prefix-Tuning: Optimizing Continuous Prompts for Generation
        • Harnessing the Power of PEFT: A Smarter Approach to Fine-tuning Pre-trained Models
        • What is Low-Rank Adaptation (LoRA) - explained by the inventor
        • Low Rank Adaptation (Lora)
        • Practical Tips for Fine-tuning LMs Using LoRA (Low-Rank Adaptation)
        • QLORA: Efficient Finetuning of Quantized LLMs
        • Bits and Bytes
        • The Magic behind Qlora
        • Practical Guide to LoRA: Tips and Tricks for Effective Model Adaptation
        • The quantization constant
        • QLORA: Efficient Finetuning of Quantized Language Models
        • QLORA and Fine-Tuning of Quantized Language Models (LMs)
        • ReLoRA: High-Rank Training Through Low-Rank Updates
        • SLoRA: Federated Parameter Efficient Fine-Tuning of Language Models
        • GaLora: Memory-Efficient LLM Training by Gradient Low-Rank Projection
      • Hyperparameters
        • Batch Size
        • Padding Tokens
        • Mixed precision training
        • FP8 Formats for Deep Learning
        • Floating Point Numbers
        • Batch Size and Model loss
        • Batch Normalisation
        • Rethinking Learning Rate Tuning in the Era of Language Models
        • Sample Packing
        • Gradient accumulation
        • A process for choosing the learning rate
        • Learning Rate Scheduler
        • Checkpoints
        • A Survey on Efficient Training of Transformers
        • Sequence Length Warmup
        • Understanding Training vs. Evaluation Data Splits
        • Cross-entropy loss
        • Weight Decay
        • Optimiser
        • Caching
      • Training Processes
        • Extending the context window
        • PyTorch Fully Sharded Data Parallel (FSDP)
        • Train Short, Test Long: Attention with Linear Biases Enables Input Length Extrapolation
        • YaRN: Efficient Context Window Extension of Large Language Models
        • Sliding Window Attention
        • LongRoPE
        • Reinforcement Learning
        • An introduction to reinforcement learning
        • Reinforcement Learning from Human Feedback (RLHF)
        • Direct Preference Optimization: Your Language Model is Secretly a Reward Model
  • INFERENCE
    • Why is inference important?
      • Grouped Query Attention
      • Key Value Cache
      • Flash Attention
      • Flash Attention 2
      • StreamingLLM
      • Paged Attention and vLLM
      • TensorRT-LLM
      • Torchscript
      • NVIDIA L40S GPU
      • Triton Inference Server - Introduction
      • Triton Inference Server
      • FiDO: Fusion-in-Decoder optimised for stronger performance and faster inference
      • Is PUE a useful measure of data centre performance?
      • SLORA
  • KNOWLEDGE
    • Vector Databases
      • A Comprehensive Survey on Vector Databases
      • Vector database management systems: Fundamental concepts, use-cases, and current challenges
      • Using the Output Embedding to Improve Language Models
      • Decoding Sentence-BERT
      • ColBERT: Efficient and Effective Passage Search via Contextualized Late Interaction over BERT
      • SimCSE: Simple Contrastive Learning of Sentence Embeddings
      • Questions Are All You Need to Train a Dense Passage Retriever
      • Improving Text Embeddings with Large Language Models
      • Massive Text Embedding Benchmark
      • RocketQAv2: A Joint Training Method for Dense Passage Retrieval and Passage Re-ranking
      • LLM2Vec: Large Language Models Are Secretly Powerful Text Encoders
      • Embedding and Fine-Tuning in Neural Language Models
      • Embedding Model Construction
      • Demystifying Embedding Spaces using Large Language Models
      • Fine-Tuning Llama for Multi-Stage Text Retrieval
      • Large Language Model Based Text Augmentation Enhanced Personality Detection Model
      • One Embedder, Any Task: Instruction-Finetuned Text Embeddings
      • Vector Databases are not the only solution
      • Knowledge Graphs
        • Harnessing Knowledge Graphs to Elevate AI: A Technical Exploration
        • Unifying Large Language Models and Knowledge Graphs: A Roadmap
      • Approximate Nearest Neighbor (ANN)
      • High Dimensional Data
      • Principal Component Analysis (PCA)
      • Vector Similarity Search - HNSW
      • FAISS (Facebook AI Similarity Search)
      • Unsupervised Dense Retrievers
    • Retrieval Augmented Generation
      • Retrieval-Augmented Generation for Large Language Models: A Survey
      • Fine-Tuning or Retrieval?
      • Revolutionising Information Retrieval: The Power of RAG in Language Models
      • A Survey on Retrieval-Augmented Text Generation
      • REALM: Retrieval-Augmented Language Model Pre-Training
      • Retrieve Anything To Augment Large Language Models
      • Generate Rather Than Retrieve: Large Language Models Are Strong Context Generators
      • Active Retrieval Augmented Generation
      • DSPy: LM Assertions: Enhancing Language Model Pipelines with Computational Constraints
      • DSPy: Compiling Declarative Language Model Calls
      • DSPy: In-Context Learning for Extreme Multi-Label Classification
      • Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programs
      • HYDE: Revolutionising Search with Hypothetical Document Embeddings
      • Enhancing Recommender Systems with Large Language Model Reasoning Graphs
      • Retrieval Augmented Generation (RAG) versus fine tuning
      • RAFT: Adapting Language Model to Domain Specific RAG
      • Summarisation Methods and RAG
      • Lessons Learned on LLM RAG Solutions
      • Stanford: Retrieval Augmented Language Models
      • Overview of RAG Approaches with Vector Databases
      • Mastering Chunking in Retrieval-Augmented Generation (RAG) Systems
    • Semantic Routing
    • Resource Description Framework (RDF)
  • AGENTS
    • What is agency?
      • Rephrase and Respond: Let Large Language Models Ask Better Questions for Themselves
      • Types of Agents
      • The risk of AI agency
      • Understanding Personality in Large Language Models: A New Frontier in AI Psychology
      • AI Agents - Reasoning, Planning, and Tool Calling
      • Personality and Brand
      • Agent Interaction via APIs
      • Bridging Minds and Machines: The Legacy of Newell, Shaw, and Simon
      • A Survey on Language Model based Autonomous Agents
      • Large Language Models as Agents
      • AI Reasoning: A Deep Dive into Chain-of-Thought Prompting
      • Enhancing AI Reasoning with Self-Taught Reasoner (STaR)
      • Exploring the Frontier of AI: The "Tree of Thoughts" Framework
      • Toolformer: Revolutionising Language Models with API Integration - An Analysis
      • TaskMatrix.AI: Bridging Foundational AI Models with Specialised Systems for Enhanced Task Completion
      • Unleashing the Power of LLMs in API Integration: The Rise of Gorilla
      • Andrew Ng's presentation on AI agents
      • Making AI accessible with Andrej Karpathy and Stephanie Zhan
  • Regulation and Ethics
    • Regulation and Ethics
      • Privacy
      • Detecting AI Generated content
      • Navigating the IP Maze in AI: The Convergence of Blockchain, Web 3.0, and LLMs
      • Adverse Reactions to generative AI
      • Navigating the Ethical Minefield: The Challenge of Security in Large Language Models
      • Navigating the Uncharted Waters: The Risks of Autonomous AI in Military Decision-Making
  • DISRUPTION
    • Data Architecture
      • What is a data pipeline?
      • What is Reverse ETL?
      • Unstructured Data and Generatve AI
      • Resource Description Framework (RDF)
      • Integrating generative AI with the Semantic Web
    • Search
      • BM25 - Search Engine Ranking Function
      • BERT as a reranking engine
      • BERT and Google
      • Generative Engine Optimisation (GEO)
      • Billion-scale similarity search with GPUs
      • FOLLOWIR: Evaluating and Teaching Information Retrieval Models to Follow Instructions
      • Neural Collaborative Filtering
      • Federated Neural Collaborative Filtering
      • Latent Space versus Embedding Space
      • Improving Text Embeddings with Large Language Models
    • Recommendation Engines
      • On Interpretation and Measurement of Soft Attributes for Recommendation
      • A Survey on Large Language Models for Recommendation
      • Model driven recommendation systems
      • Recommender AI Agent: Integrating Large Language Models for Interactive Recommendations
      • Foundation Models for Recommender Systems
      • Exploring the Impact of Large Language Models on Recommender Systems: An Extensive Review
      • AI driven recommendations - harming autonomy?
    • Logging
      • A Taxonomy of Anomalies in Log Data
      • Deeplog
      • LogBERT: Log Anomaly Detection via BERT
      • Experience Report: Deep Learning-based System Log Analysis for Anomaly Detection
      • Log-based Anomaly Detection with Deep Learning: How Far Are We?
      • Deep Learning for Anomaly Detection in Log Data: A Survey
      • LogGPT
      • Adaptive Semantic Gate Networks (ASGNet) for log-based anomaly diagnosis
  • Infrastructure
    • The modern data centre
      • Enhancing Data Centre Efficiency: Strategies to Improve PUE
      • TCO of NVIDIA GPUs and falling barriers to entry
      • Maximising GPU Utilisation with Kubernetes and NVIDIA GPU Operator
      • Data Centres
      • Liquid Cooling
    • Servers and Chips
      • The NVIDIA H100 GPU
      • NVIDIA H100 NVL
      • Lambda Hyperplane 8-H100
      • NVIDIA DGX Servers
      • NVIDIA DGX-2
      • NVIDIA DGX H-100 System
      • NVLink Switch
      • Tensor Cores
      • NVIDIA Grace Hopper Superchip
      • NVIDIA Grace CPU Superchip
      • NVIDIA GB200 NVL72
      • Hopper versus Blackwell
      • HGX: High-Performance GPU Platforms
      • ARM Chips
      • ARM versus x86
      • RISC versus CISC
      • Introduction to RISC-V
    • Networking and Connectivity
      • Infiniband versus Ethernet
      • NVIDIA Quantum InfiniBand
      • PCIe (Peripheral Component Interconnect Express)
      • NVIDIA ConnectX InfiniBand adapters
      • NVMe (Non-Volatile Memory Express)
      • NVMe over Fabrics (NVMe-oF)
      • NVIDIA Spectrum-X
      • NVIDIA GPUDirect
      • Evaluating Modern GPU Interconnect
      • Scalable Hierarchical Aggregation and Reduction Protocol (SHARP)
      • Next-generation networking in AI environments
      • NVIDIA Collective Communications Library (NCCL)
    • Data and Memory
      • NVIDIA BlueField Data Processing Units (DPUs)
      • Remote Direct Memory Access (RDMA)
      • High Bandwidth Memory (HBM3)
      • Flash Memory
      • Model Requirements
      • Calculating GPU memory for serving LLMs
      • Transformer training costs
      • GPU Performance Optimisation
    • Libraries and Complements
      • NVIDIA Base Command
      • NVIDIA AI Enterprise
      • CUDA - NVIDIA GTC 2024 presentation
      • RAPIDs
      • RAFT
    • Vast Data Platform
      • Vast Datastore
      • Vast Database
      • Vast Data Engine
      • DASE (Disaggregated and Shared Everything)
      • Dremio and VAST Data
    • Storage
      • WEKA: A High-Performance Storage Solution for AI Workloads
      • Introduction to NVIDIA GPUDirect Storage (GDS)
        • GDS cuFile API
      • NVIDIA Magnum IO GPUDirect Storage (GDS)
      • Vectors in Memory
Powered by GitBook
LogoLogo

Continuum - Accelerated Artificial Intelligence

  • Continuum Website
  • Axolotl Platform

Copyright Continuum Labs - 2023

On this page
  • Instruction format design
  • Instruction Tuning of LLMs for Recommender Systems
  • Methodology
  • Experiment
  • Real-World Application
  • Example - Wedding Planner
  • Training Process
  • How does this differ from existing recommendation systems?
  • References

Was this helpful?

  1. DISRUPTION
  2. Recommendation Engines

Model driven recommendation systems

PreviousA Survey on Large Language Models for RecommendationNextRecommender AI Agent: Integrating Large Language Models for Interactive Recommendations

Last updated 10 months ago

Was this helpful?

This May 2023 paper introduces an approach to developing recommendation models by leveraging the power of large language models (LLMs) and considering recommendation as an instruction following task.

The key idea is that user preferences or needs can be expressed in natural language descriptions, which are referred to as instructions. By understanding and executing these instructions, LLMs can fulfill the recommendation task more effectively.

The authors propose a framework called InstructRec, which consists of two main components:

Instruction format design

The authors formulate a general instruction format that comprehensively describes the user's preferences, intentions, task form, and context in natural language.

They manually design 39 instruction templates and automatically generate a large amount of user-personalised instruction data (252K instructions) with varying types of preferences and intentions.

Instruction Tuning of LLMs for Recommender Systems

The authors of InstructRec take a novel approach to adapting Large Language Models (LLMs) for recommender systems.

Instead of relying on public LLM APIs, they fine-tune an open-source model, specifically the 3B Flan-T5-XL. This process, known as instruction tuning, optimises the LLM to better understand and execute user instructions in the context of recommendations.

The key innovation lies in bridging the gap between LLMs, which are trained on natural language text, and recommender systems, which typically deal with user behaviour data. By reformulating recommendation tasks as natural language instructions, the authors effectively transform them into language processing tasks that LLMs are well-suited to handle.

This approach offers several advantages:

  1. Personalisation: Users can express their specific needs and preferences through natural language instructions, allowing for more nuanced and personalized recommendations.

  2. Flexibility: The system can handle a wide range of recommendation scenarios, from traditional item suggestions to more complex, context-dependent recommendations.

  3. Enhanced user control: By allowing users to articulate their needs directly, the system gives them more control over the recommendation process.

  4. Leveraging LLM capabilities: The approach harnesses the powerful language understanding and generation capabilities of LLMs for recommendation tasks.

To evaluate the effectiveness of their method, the authors constructed various interaction scenarios using real-world datasets. Their experiments demonstrate that InstructRec outperforms several competitive baselines, including the powerful GPT-3.5 model, in these recommendation tasks.

This instruction tuning approach represents a step towards more user-centric and flexible recommender systems, potentially opening up new possibilities for human-AI interaction in recommendation contexts.

Methodology

The methodology of the proposed InstructRec approach consists of three main components:

Instruction Format for Recommendation

The authors design a unified instruction format that integrates three key aspects related to the expressions of user's needs: preference, intention, and task form.

Preference refers to user's personalised tastes towards item attributes or characteristics, which can be categorised into none (cold-start scenarios), implicit (user's context information), and explicit (direct expression of user preference).

Intention refers to user's more immediate demands for certain types of items, which can be none (exploratory interaction), vague (ambiguous idea of target), or specific (clear idea of target).

Task Form specifies the task for execution by the LLM, which can be pointwise (examining a candidate item), pairwise (comparing a pair of items), matching (generating potential candidates), or reranking (reranking retrieved candidate items).

The instruction format also allows the inclusion of context information about the user's situation.

Instruction Generation

The authors generate instruction data by simulating user preferences and intentions based on available interaction data, using GPT-3.5 as a teacher-LLM to generate personalised information for each user based on their historical interactions and reviews.

Preference annotation: For implicit preferences, item titles from user's historical interactions are used. For explicit preferences, GPT-3.5 generates expressions based on historical interactions.

Intention annotation: For vague intentions, GPT-3.5 extracts them from target item reviews. For specific intentions, category information of target items is used.

Task form annotation: Instructions are formulated for pointwise recommendation, matching, and reranking tasks.

The authors also propose strategies to increase the diversity of instructions, such as turning the task around, enforcing relatedness between preference and intention, and chain-of-thought-like reasoning.

Instruction Tuning for Recommendations

The authors use the 3B Flan-T5-XL as the backbone model for instruction tuning.

Optimisation via Instruction Tuning: The LLM is optimised using the generated instructions in a supervised fine-tuning manner, with the desired system responses annotated as the target output.

Inference: The instruction-tuned LLM is employed as a reranker to generate the final ranking for candidates based on users' instructions. Appropriate coarse-grained instruction templates are selected based on user instructions and other information, and the LLM executes the model instruction that specifies the user's needs.

The proposed InstructRec approach differs from traditional recommendation methods and existing LLM-based recommendation approaches by focusing on aligning LLMs with more diverse and detailed user needs in practical scenarios through the design and generation of recommendation-oriented instructions containing different types of preferences, intentions, and task forms.

Experiment

The experiments conducted in this study demonstrate the effectiveness of the proposed InstructRec approach in accommodating diverse user information needs and its generalisation ability across different scenarios and datasets.

Overall Performance on Various User Information Needs

The authors evaluate InstructRec's performance in various interaction scenarios, including sequential recommendation, product search, and personalised search. They compare InstructRec with baseline models specific to each scenario and the universal GPT-3.5 model.

Results

  • In the sequential recommendation scenario, InstructRec outperforms baselines like BERT4Rec and SASRec, while GPT-3.5 does not perform satisfactorily due to the mismatch between its universal textual nature and the specificity of behavioural information in the private domain.

  • For product search, InstructRec achieves superior or comparable performance to the DSSM baseline, especially in top-ranking metrics, due to its vast amount of encoded general knowledge.

  • In personalised search scenarios, InstructRec outperforms the TEM baseline by a large margin, effectively bridging the gap between universal semantic knowledge and personalised user behaviours.

Further Analyses

Discriminating Hard Negative Item Candidates

InstructRec demonstrates a strong ability to discriminate and select items that align with user information needs among similar items retrieved by a strong matching module.

Discriminating More Candidate Items: InstructRec exhibits considerable performance advantage over the traditional baseline when reranking a larger pool of candidate items (100 items).

Effects of Instructions: Increasing the diversity of instructions during instruction tuning improves InstructRec's performance on held-out interaction scenarios, demonstrating its generalization capabilities.

Generalisation across Datasets: InstructRec outperforms powerful LLMs in a zero-shot setting when transferring from the "Games" dataset to the "CDs" dataset, indicating its ability to capture universal knowledge across distinct domains.

Measuring Success: The authors measure the success of InstructRec using top-K hit ratio (HR) and top-K normalised discounted cumulative gain (NDCG) metrics, with K set to 1, 3, and 5. These metrics evaluate the model's ability to rank the ground-truth item higher among the candidate items.

Real-World Application

InstructRec can be applied in real-world recommender systems to accommodate diverse user information needs and provide personalised recommendations.

The approach can be particularly useful in the following scenarios:

  1. E-commerce platforms: InstructRec can help users find desired products by understanding their preferences, intentions, and contextual information through natural language instructions.

  2. Content recommendation: The model can be applied to recommend articles, videos, or music based on user instructions, enhancing the user experience and engagement.

  3. Personalised search engines: InstructRec can improve the relevance of search results by incorporating user preferences and intentions, making the search experience more tailored to individual needs.

To apply InstructRec in real-world systems, practitioners would need to collect user interaction data, generate instruction data using the proposed methodology, and fine-tune the language model using the generated instructions.

The fine-tuned model can then be deployed as a reranker in the recommendation pipeline to provide personalized and relevant recommendations based on user instructions.

Example - Wedding Planner

A wedding planning recommendation model has significant commercial value for businesses in the wedding industry, such as wedding planning websites, bridal magazines, or e-commerce stores selling wedding-related products.

By providing personalised recommendations based on user preferences and interactions, these businesses can:

  1. Enhance user engagement: Personalised recommendations keep users interested and encourage them to explore more content or products related to their preferences, leading to increased website traffic and user satisfaction.

  2. Boost sales: Recommending products or services that align with a user's preferences and current needs increases the likelihood of conversions, resulting in higher sales and revenue.

  3. Improve customer loyalty: By providing valuable and relevant recommendations, businesses can build trust and establish long-term relationships with customers, encouraging repeat visits and purchases.

  4. Streamline the wedding planning process: Personalized recommendations help users navigate the overwhelming amount of wedding-related information and products, making the planning process more efficient and less stressful.

Recording User Queries: To record user queries and interactions, the recommendation system would be integrated with the business's website or application. User actions, such as searches, page views, and purchases, would be logged and stored in a database. For example:

  1. When a user searches for "affordable wedding favours," their search query would be recorded along with a timestamp and any relevant user information (e.g., user ID, session ID).

  2. As the user interacts with the website, their actions (e.g., clicking on a product, adding an item to the cart, or making a purchase) would be logged and associated with their user profile.

  3. User preferences can be inferred from their interactions, such as the types of products they view or purchase, the content they engage with, and any explicit feedback they provide (e.g., ratings, reviews).

Using the Model for Recommendations: To generate recommendations for a user, the recommendation system would follow these steps:

  1. Retrieve the user's profile, including their historical interactions, preferences, and current query (if applicable).

  2. Format the user's information into an instruction that matches the model's expected input structure, such as: "The user has previously purchased the following items: {1. 'Personalised Wedding Favour Ideas on a Budget' 2. 'DIY Wedding Decoration Ideas'}. The user is now searching for {'affordable wedding centerpieces'}. Please provide recommendations."

  3. Feed the formatted instruction into the trained recommendation model, which will generate a set of recommendations based on the user's preferences and current needs.

  4. Display the generated recommendations to the user on the website or application, typically as a list of suggested products, services, or content.

  5. Monitor the user's interaction with the recommendations (e.g., clicks, purchases) and update their profile accordingly, allowing the model to continuously learn and improve its recommendations over time.

By implementing this recommendation model, businesses in the wedding industry can provide a more personalised and efficient experience for their users, ultimately leading to increased engagement, sales, and customer satisfaction.

The model's ability to process natural language instructions and generate relevant recommendations based on user preferences and interactions makes it a valuable tool for businesses looking to improve their online presence and drive growth.

The model learns to make recommendations based on the user query through the process of instruction tuning.

Training Process

During training, the model is provided with a large number of instruction-output pairs, where the instructions contain information about the user's preferences, historical interactions, and current intentions.

By learning from these examples, the model develops an understanding of how to map user queries and contextual information to appropriate recommendations.

Here's an example 20-set instruction set for training a wedding planning model in JSON format:

[
  {
    "instruction": "The user has interacted with the following items related to wedding planning: {1. \"The Ultimate Wedding Planning Checklist\" 2. \"How to Create a Wedding Budget\"}. Now the user is searching for {\"tips for choosing a wedding venue\"}, please generate recommendations that match their intent.",
    
    "output": "Based on your previous interactions with wedding planning resources, I recommend the following items to help you choose a wedding venue:\n1. \"10 Essential Factors to Consider When Choosing a Wedding Venue\"\n2. \"Questions to Ask When Touring Wedding Venues\"\n3. \"How to Choose a Wedding Venue That Fits Your Style and Budget\""
  },
  {
    "instruction": "The user has previously purchased the following items: {1. \"Wedding Guest List Planner\" 2. \"Save the Date Templates\"}. Based on this information, is it likely that the user will interact with {\"Wedding Invitation Design Guide\"} next?",
    
    "output": "Yes, based on the user's previous purchases of wedding-related items such as a guest list planner and save the date templates, it is likely that they will be interested in a \"Wedding Invitation Design Guide\" as the next step in their wedding planning process."
  },
  {
    "instruction": "Here is the historical interaction of a user: {1. \"Wedding Dress Styles for Every Body Type\" 2. \"Bridal Hairstyle Inspirations\"}. And their personalized preferences are as follows: {\"The user prefers a classic and elegant wedding style\"}. Your task is to generate a new product that is consistent with the user's preferences.",
    
    "output": "Based on the user's historical interactions and their preference for a classic and elegant wedding style, I recommend the following product:\n\"Timeless Wedding Decor: Elegant Centerpieces and Table Settings\"\nThis product will provide the user with ideas and inspiration for creating a sophisticated and traditional wedding atmosphere that aligns with their tastes."
  },
  {
    "instruction": "The user wants to buy some products and searches for: {\"affordable wedding favors\"}. In addition, they have previously bought: {1. \"DIY Wedding Decoration Ideas\" 2. \"Budget-Friendly Wedding Planning Tips\"}. You can estimate their preference by analyzing their historical interactions. {\"The user is looking for cost-effective ways to plan their wedding\"}. Please recommend one of the candidate items below that best matches their search query and preferences: {1. \"Personalized Wedding Favor Ideas on a Budget\" 2. \"Luxury Wedding Favors for High-End Weddings\" 3. \"Unique Wedding Favor Ideas to Impress Guests\"}",
    
    "output": "Based on the user's search for \"affordable wedding favors\" and their previous interactions indicating a preference for budget-friendly wedding planning, I recommend the following item:\n\"Personalized Wedding Favor Ideas on a Budget\"\nThis item aligns with the user's current search query and their overall preference for cost-effective wedding solutions, making it the most suitable choice among the given candidates."
  },
  {
    "instruction": "The user has interacted with the following items: {1. \"Wedding Cake Designs for Every Style\" 2. \"How to Choose the Perfect Wedding Cake\"}. The user has expressed a desire for {\"unique and creative wedding cake ideas\"}. Please provide recommendations.",
    
    "output": "Based on your interactions with wedding cake-related content and your desire for unique and creative ideas, I suggest exploring the following resources:\n1. \"10 Unconventional Wedding Cake Flavors to Surprise Your Guests\"\n2. \"Creative Wedding Cake Toppers to Showcase Your Personality\"\n3. \"Modern Wedding Cake Designs for Trendsetting Couples\"\nThese recommendations will help you find inspiration for a one-of-a-kind wedding cake that reflects your personal style."
  },
  {
    "instruction": "The user has recently purchased the following items: {1. \"Groom's Guide to Wedding Attire\" 2. \"Best Men's Wedding Shoes\"}. The user has expressed a desire for {\"stylish groomsmen gift ideas\"}. Please provide recommendations.",
    
    "output": "Considering your recent purchases related to groom and groomsmen attire, along with your interest in stylish groomsmen gifts, I recommend the following items:\n1. \"Personalized Leather Watches for Groomsmen\"\n2. \"Engraved Flask and Cigar Box Groomsmen Gift Set\"\n3. \"Custom Cufflinks and Tie Clips for Groomsmen\"\nThese gift ideas are both fashionable and functional, making them excellent choices to show appreciation for your groomsmen while complementing their wedding attire."
  },
  {
    "instruction": "The user has interacted with the following items: {1. \"Bridal Shower Themes and Ideas\" 2. \"How to Plan the Perfect Bridal Shower\"}. Now the user is searching for {\"bridal shower games and activities\"}, please generate recommendations that match their intent.",
    "output": "Based on your interest in bridal shower planning and your current search for bridal shower games and activities, I suggest the following resources:\n1. \"10 Hilarious Bridal Shower Games to Break the Ice\"\n2. \"Creative Bridal Shower Activities for Every Type of Bride\"\n3. \"Bridal Shower Scavenger Hunt and Trivia Game Templates\"\nThese recommendations offer a variety of entertaining games and activities to make the bridal shower memorable and enjoyable for the bride and her guests."
  },
  {
    "instruction": "The user has previously purchased the following items: {1. \"Bohemian Wedding Dress Inspiration\" 2. \"Rustic Wedding Decor Ideas\"}. Based on this information, is it likely that the user will interact with {\"Vintage-Inspired Bridal Accessories\"} next?",
    "output": "Yes, given the user's previous purchases of bohemian wedding dresses and rustic wedding decor, it is highly likely that they would be interested in \"Vintage-Inspired Bridal Accessories\" as these items complement the overall aesthetic and theme of their wedding style preferences."
  },
  {
    "instruction": "The user has interacted with the following items: {1. \"DIY Wedding Floral Arrangements\" 2. \"Seasonal Wedding Flower Guide\"}. Now the user is searching for {\"how to preserve wedding bouquets\"}, please generate recommendations that match their intent.",
    "output": "Considering your interest in wedding floral arrangements and your current search for preserving wedding bouquets, I recommend the following resources:\n1. \"5 Creative Ways to Preserve Your Wedding Bouquet\"\n2. \"How to Press and Frame Your Wedding Flowers\"\n3. \"DIY Wedding Bouquet Preservation Kits and Supplies\"\nThese recommendations provide various methods and tools to help you preserve your wedding bouquet as a cherished keepsake long after your special day."
  },
  {
    "instruction": "The user has previously purchased the following items: {1. \"Destination Wedding Planning Guide\" 2. \"Top Tropical Honeymoon Destinations\"}. Based on this information, is it likely that the user will interact with {\"Beach Wedding Invitation Templates\"} next?",
    
    "output": "Absolutely! Based on the user's previous purchases related to destination weddings and tropical honeymoons, it is highly probable that they will be interested in \"Beach Wedding Invitation Templates\" as they align perfectly with the theme and style of their wedding plans."
  },
  {
    "instruction": "The user has interacted with the following items: {1. \"Wedding Reception Seating Chart Ideas\" 2. \"How to Create the Perfect Wedding Seating Plan\"}. Now the user is searching for {\"creative escort card display ideas\"}, please generate recommendations that match their intent.",
    
    "output": "Given your recent interactions with content related to wedding seating charts and your current search for creative escort card displays, I suggest exploring the following ideas:\n1. \"10 Unique Escort Card Display Ideas for Every Wedding Style\"\n2. \"DIY Escort Card Displays Using Frames, Mirrors, and More\"\n3. \"Themed Escort Card Display Ideas to Match Your Wedding Decor\"\nThese recommendations showcase various innovative and visually appealing ways to present your escort cards, making it easier for guests to find their seats while adding a decorative touch to your wedding reception."
  },
  {
    "instruction": "The user has previously purchased the following items: {1. \"Engagement Photo Outfit Ideas\" 2. \"How to Prepare for Your Engagement Photo Shoot\"}. Based on this information, is it likely that the user will interact with {\"Wedding Photography Checklist\"} next?",
    "output": "Yes, it is very likely that the user will interact with a \"Wedding Photography Checklist\" next, as they have shown interest in engagement photography and preparing for photo shoots. A wedding photography checklist is a natural progression from engagement photos, helping the user plan and organize their wedding day photography."
  },
  
  },
]

How does this differ from existing recommendation systems?

Natural Language

  • Traditional recommendation systems often rely on structured data, such as user ratings, item features, or transaction history, to make recommendations.

  • The proposed model leverages natural language to process and understand user queries, preferences, and interactions in natural language format, allowing for a more intuitive and human-like interaction between the user and the recommendation system.

Instruction Tuning

  • Existing recommendation systems typically use techniques such as collaborative filtering, content-based filtering, or matrix factorization to learn user preferences and generate recommendations.

  • The proposed model employs instruction tuning, a novel approach where the model is trained on a large set of instruction-output pairs, enabling it to understand and follow instructions in natural language to generate personalised recommendations.

Flexibility and Adaptability

  • Traditional recommendation systems are often designed for specific domains or use cases, such as movie recommendations or product recommendations, and may struggle to adapt to new domains or changing user preferences.

  • The instruction-tuned model can handle a wide range of user queries, preferences, and interactions, making it more flexible and adaptable to various scenarios and domains.

Explainability

  • Many existing recommendation systems act as "black boxes," providing limited insight into why a particular recommendation was made.

  • The proposed model, by generating recommendations in natural language, can provide more explainable and transparent recommendations, as the output can include reasoning or justification for the suggested items or content.

Handling Cold Start

  • Cold start is a common problem in traditional recommendation systems, where the system struggles to make accurate recommendations for new users or items with limited data.

  • The instruction-tuned model can potentially handle cold start situations better by leveraging the knowledge encoded in the pre-trained language model and the ability to process natural language instructions, even with limited user data.

Personalisation

  • While existing recommendation systems aim to provide personalised recommendations, they often rely on implicit feedback or user-item interactions.

  • The proposed model can incorporate explicit user preferences and intents expressed through natural language, enabling a higher level of personalisation in the recommendations.

It's important to note that the proposed wedding planning recommendation model is still a conceptual approach, and its effectiveness compared to existing recommendation systems would need to be validated through rigorous testing and evaluation.

However, the use of instruction tuning and natural language processing in recommendation systems is a promising avenue for future research and development, with the potential to create more user-centric, adaptable, and explainable recommendation experiences.

References

Based on the survey paper, some of the top LLM-based recommendation systems highlighted include:

  1. M6 Rec (Cui et al., 2022) - Pre-trains the entire model on massive recommendation datasets using transformer-based models for next-item prediction and language modeling tasks.

  2. TallRec (Bao et al., 2023b) - Uses LoRA, a parameter-efficient tuning method, for two-stage tuning of LLMs, first on general data and then on user historical information.

  3. BIGRec (Bao et al., 2023a) - Fine-tunes LLMs through instruction tuning to produce tokens symbolizing items and aligns them with real items using statistical data like popularity.

  4. RecAgent (Wang et al., 2023b) - Treats each user as an FM-based autonomous agent within a virtual simulator, allowing for free interaction, behavior, and evolution of agents.

  5. Agent4Rec (Zhang et al., 2023a) - A recommender system simulator with 1,000 LLM-empowered generative agents interacting with personalized movie recommendations.

  6. VIP5 (Geng et al., 2023) - Focuses on visual and textual modalities in recommendation tasks, incorporating multi-modal personalized prompts and parameter-efficient training.

  7. Recommendation as language processing (rlp): A unified pretrain, personalized prompt & predict paradigm (p5) (Geng et al., 2022) - Presents a unified paradigm for using foundation models in recommendation systems.

  8. Exploring adapter-based transfer learning for recommender systems: Empirical studies and practical insights (Fu et al., 2023a) - Investigates the efficacy of adapter-based learning for cross-domain recommendation.

  9. A unified framework for multi-domain CTR prediction via large language models (Fu et al., 2023b) - Introduces a prompting strategy to convert features into a prompt sequence for semantic representation in multi-domain recommendation.

  10. Vip5: Towards multimodal foundation models for recommendation (Geng et al., 2023) - Explores the use of multi-modal foundation models in recommendation tasks.

LogoRecommendation as Instruction Following: A Large Language Model...arXiv.org
Various types of key aspects in instructions
Page cover image