<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yuanpei Cao on Medium]]></title>
        <description><![CDATA[Stories by Yuanpei Cao on Medium]]></description>
        <link>https://medium.com/@caoyuanpei?source=rss-dd368cae1247------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wZhTYXwJYILN7S_XlD52-w.jpeg</url>
            <title>Stories by Yuanpei Cao on Medium</title>
            <link>https://medium.com/@caoyuanpei?source=rss-dd368cae1247------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 22:19:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@caoyuanpei/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Listening, learning, and helping at scale: How machine learning transforms Airbnb’s voice support…]]></title>
            <link>https://medium.com/airbnb-engineering/listening-learning-and-helping-at-scale-how-machine-learning-transforms-airbnbs-voice-support-b71f912d4760?source=rss-dd368cae1247------2</link>
            <guid isPermaLink="false">https://medium.com/p/b71f912d4760</guid>
            <category><![CDATA[customer-service]]></category>
            <category><![CDATA[retrieval-system]]></category>
            <category><![CDATA[speech-recognition]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Yuanpei Cao]]></dc:creator>
            <pubDate>Thu, 29 May 2025 17:29:46 GMT</pubDate>
            <atom:updated>2026-04-24T23:06:51.941Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Listening, learning, and helping at scale: How machine learning transforms Airbnb’s voice support experience</strong></h3><p>A look into how Airbnb uses speech recognition, intent detection, and language models to understand users and assist agents more effectively.</p><figure><img alt="Interior view of a mountain cabin with a wooden dining table in the foreground and a sliding glass wall open to a deck; outside, a woman in a pink top stands near wicker lounge chairs, talking on the phone while looking out at pine trees and distant mountains." src="https://cdn-images-1.medium.com/max/1024/1*zyT9hDwGkSCvZ-wKEx669w.jpeg" /></figure><p><strong>By</strong>: <a href="https://www.linkedin.com/in/yuanpei-cao-792b103b/">Yuanpei Cao</a>, <a href="https://www.linkedin.com/in/heng-j-1a44a711/">Heng Ji</a>, <a href="https://www.linkedin.com/in/elaineliu5/">Elaine Liu</a>, <a href="https://www.linkedin.com/in/peng-wang-13117371/">Peng Wang</a>, and <a href="https://www.linkedin.com/in/tiantian-zhang-a4208726/">Tiantian Zhang</a></p><p>At Airbnb, we aim to provide a smooth, intuitive, and helpful community support experience, whether it’s helping a guest navigate a booking change or helping a host with a listing issue. While our Help Center and customer support chatbot helps resolve many inquiries efficiently, some users prefer the immediacy of a voice conversation with a support representative. To make these interactions faster and more effective, we’ve significantly improved our Interactive Voice Response (IVR) system via machine learning.</p><p>Over the years, Airbnb has invested in conversational AI to enhance customer support. In our previous blog posts <a href="https://medium.com/airbnb-engineering/task-oriented-conversational-ai-in-airbnb-customer-support-5ebf49169eaa"><em>Task-Oriented Conversational AI in Airbnb Customer Support</em></a> and<a href="https://medium.com/airbnb-engineering/using-chatbots-to-provide-faster-covid-19-community-support-567c97c5c1c9"> <em>Using Chatbots to Provide Faster COVID-19 Community Support</em></a>, we explored how AI-driven chatbots streamline guest and host interactions through automated messaging. This post explains how we extend that work to voice-based support, leveraging machine learning to improve real-time phone interactions with our intelligent IVR system.</p><p>We’ll take you through the end-to-end IVR journey, the key machine learning components that power it, and how we designed a system that delivers faster, more human-like, and more intuitive voice support for our community.</p><h3>Reimagining the voice support journey</h3><p>Traditional IVR systems often rely on rigid menu trees, requiring callers to press buttons and navigate pre-set paths. Instead, we designed an adaptive, conversational IVR that listens, understands, and responds in real time. Here’s normally what happens when a caller reaches out to Airbnb support:</p><ol><li><strong>Call and greeting: </strong>IVR picks up and prompts, <em>“In a few sentences, please tell us why you’re calling today.”</em></li><li><strong>Automated speech recognition (ASR):</strong> The caller’s response is transcribed with Airbnb-specific ASR. For example, if a caller says, <em>“I need to request a refund for my reservation,”</em> ASR accurately converts this speech into text, preserving key domain-specific terms.</li><li><strong>Understanding intent:</strong> A Contact Reason Detection model classifies the issue into a category like cancellations, refunds, account issues, etc.</li><li><strong>Decision-making:</strong> If self-service is possible, the system retrieves and sends a relevant help article or an intelligent workflow via SMS or app notification. If the caller explicitly requests agent support or the issue requires human intervention, the call is routed to a customer support agent with relevant details attached.</li><li><strong>Clarifying response:</strong> A Paraphrasing model generates a summary of the user intent, which IVR shares with the user before delivering the solution. This ensures that users understand the context of the resource they receive. Continuing our example, the system would respond, “<em>I understand your issue is regarding a refund request.</em> <em>We have sent you a link to resources about this topic. Follow the instructions to find answers. If you need to speak with an agent, press 0 to be connected to our customer service representative.</em>” The underscored Paraphrasing component enhances engagement by bridging the gap between system-generated responses and user comprehension, making the self-service experience more intuitive.</li><li><strong>Resolution or escalation:</strong> The caller receives an SMS or app notification with a direct link to a relevant <a href="https://www.airbnb.com/help">Airbnb Help Center</a> article. If further assistance is needed, they can press 0 to connect with a customer service representative.</li></ol><p>By moving away from rigid menus to natural language understanding, we allow guests and hosts to express their issues in their own words, helping to increase satisfaction and resolution efficiency.</p><figure><img alt="Diagram of Airbnb’s IVR system: • IVR Core Service box with three layers — Call Management, User Interaction, and Decision &amp; Routing. • Arrows connect an “Airbnb User (Guest/Host)” on the left and an “Airbnb Customer Support Human Ambassador” on the right to the core service. • Below, a “Machine Learning Components” box lists ASR, Contact Reason Prediction, Help Article Retrieval, and Paraphrasing, feeding insights back to the IVR for routing." src="https://cdn-images-1.medium.com/max/1024/1*BNyYIWtMRorDGJ935DcQJw.png" /><figcaption>Figure 1: High-level architecture of how Airbnb IVR Core Service interacts with core machine learning components to resolve user issues over the phone.</figcaption></figure><h3>Breaking down our ML-powered IVR system</h3><h4>1. Automated speech recognition (ASR): transcribing with precision</h4><p>In a voice-driven support system, achieving high transcription accuracy is essential, particularly in noisy phone environments where speech can be unclear. General speech recognition models often struggle with Airbnb-specific terminology, leading to errors like misinterpreting “listing” as “lifting” or “help with my stay” as “happy Christmas Day.” These inaccuracies create challenges in understanding user intent and impact downstream processes.</p><p>To enhance ASR accuracy, we transitioned from a generic high-quality pretrained model to one specifically adapted for noisy phone audio. Additionally, we introduced a domain-specific phrase list optimization that ensures Airbnb terms are properly recognized. Based on a sample of hundreds of clips, this significantly <strong>reduced the word error rate (WER) from 33% to approximately 10%</strong>. The reduced WER significantly enhanced the accuracy of downstream help article recommendations, increasing user engagement, improving customer NPS among users who interacted with the ASR menu, while reducing reliance on human agents and lowering customer service handling time.</p><h4>2. Contact Reason prediction: understanding the why</h4><p>After transcribing the caller’s statements, the next step involves identifying their intent. We accomplished this by creating a detailed Contact Reason taxonomy that categorizes all potential Airbnb inquiries, as elaborated in “<a href="https://medium.com/airbnb-engineering/t-leaf-taxonomy-learning-and-evaluation-framework-30ae19ce8c52">T-LEAF: Taxonomy Learning and EvaluAtion Framework</a>.” We then use an intent detection model to classify calls into a Contact Reason category, ensuring each inquiry is handled appropriately. For example, if a caller mentions “I haven’t received my refund yet,” the model predicts the Contact Reason as Missing Refund and forwards it to the relevant downstream components.</p><p>In production, we deploy the Issue Detection Service to host the intent detection models, running them in parallel to achieve optimal scalability, flexibility, and efficiency. Parallel computing ensures that intent detection <strong>latency remains under 50ms on average</strong>, making the process imperceptible to IVR users and ensuring a seamless real-time experience. The detected intent is then analyzed within the IVR workflow to determine the next action, whether it’s guiding the user through a self-service resolution or escalating directly to a human agent.</p><p>Occasionally, callers prefer to speak directly with a human agent instead of describing their issues, using terms like “agent” or “escalation.” For such scenarios, we use a different intent detection model to recognize when a caller wants to escalate to a human agent. If this intent is detected, the IVR system honors the caller’s request and routes the call to the suitable support team.</p><figure><img alt="Flowchart: An Airbnb user’s query enters an Issue Detection Service (escalation, contact-reason, and other intent models run in parallel). If “escalation intent” is true, the call routes to a human agent; otherwise, the system returns a relevant help article, with an option to escalate if help is still needed." src="https://cdn-images-1.medium.com/max/1024/1*Q7LxFhZitCrNdqKAy_ffOw.png" /><figcaption>Figure 2. Intent detection architecture and Issue Detection Service.</figcaption></figure><h4>3. Help article retrieval: delivering the right information</h4><p>Many common Airbnb issues can be quickly resolved by providing clear and relevant educational information. To help provide useful information to users and minimize the need for human customer support, we use the Help Article Retrieval and Ranking system. This advanced system automatically identifies the issue in a user’s inquiry and delivers the most relevant help article link via SMS text message and Airbnb app notification. Our process incorporates two machine learning stages.</p><p><strong>Semantic retrieval and ranking:</strong> We index Airbnb Help Article embeddings into a vector database, enabling efficient retrieval of up to 30 relevant articles per user query using cosine similarity, typically within 60ms. An LLM-based ranking model then re-ranks these retrieved articles, with the top-ranked article directly presented to users via IVR channels. This dual-stage system not only powers IVR interactions but also supports our customer support chatbot and Help Center search. Across these platforms, its effectiveness is continuously evaluated using metrics like Precision@N, facilitating ongoing improvements and refinements.</p><figure><img alt="Flowchart of Airbnb’s help-article retrieval pipeline: Airbnb internal knowledge feeds “Airbnb Help Articles.” Users submit inquiries; a “User query expansion and rewrite” box reformulates them. Expanded queries and help articles enter a “Semantic Embedding Retrieval Model,” which passes results to a purple “Vector store and search” block. The vector search returns the top N articles to a “Generative Ranking Model,” which outputs the top K reranked articles." src="https://cdn-images-1.medium.com/max/1024/1*wlkl-CT0czyGqNdKx-ffIw.png" /><figcaption>Figure 3. Architecture diagram for the Help Article Retrieval and Ranking system.</figcaption></figure><h4>4. Paraphrasing model: enhancing user understanding</h4><p>A key challenge in IVR-based customer support is ensuring users clearly understand the resolution before receiving help article links, as they typically lack visibility into the article’s contents or title. To address this, we implemented a lightweight paraphrasing approach leveraging a curated set of standardized summaries.</p><p>UX writers created concise and clear paraphrases for common Airbnb scenarios. During online serving, user inquiries are mapped to these curated summaries via nearest-neighbor matching based on text embedding similarity. We calibrated a similarity threshold to ensure high-quality matches. Manual evaluation of end-to-end model outputs confirmed precision exceeding 90%.</p><p>The outcome was a finite-state solution delivering the most appropriate paraphrased IVR prompt before presenting a help article link. For example, if a caller states, “I need to cancel my reservation and request a refund,” the model generates a response like “I understand your issue is about a refund request” before sending the retrieved help article link.</p><p>Integrating this model ensures users receive clear, contextually relevant summaries prior to accessing help articles. In an experiment targeting English hosts who contacted customer support, we found that presenting a paraphrased summary before sending the article link increases user engagement with article content, resulting in improvement in self-resolution rates, helping to reduce the need for direct customer support assistance.</p><h3>Conclusion</h3><p>By combining Automated Speech Recognition and Contact Reason Detection systems with a help article retrieval system, and a paraphrasing model, we have created an IVR system that streamlines support interactions and improves user satisfaction. Our solution enables callers to describe issues naturally, reduces dependency on human agents for common inquiries, and provides instant, relevant support through self-service. When human assistance is necessary, the system ensures a smooth transition by routing users to the right agent with essential context.</p><p>Interested in working at Airbnb? Check out our <a href="https://careers.airbnb.com/">open roles</a>.</p><h3><strong>Acknowledgements</strong></h3><p>Thanks to Zhenyu Zhao, Mia Zhao, Wayne Zhang, Lucca Siaudzionis, Lulu Chen, Sukey Xu, Floria Wan, Michael Zhou, Can Yang, Yaolin Chen, Shuaihu Wang, Huifan Qu, Ming Shang,Yu Jiang, Wanting Chen, Elena Zhao, Shanna Su, Cassie Cao, Hao Wang, Haoran Zhu, Xirui Liu, Ying Tan, Xiaohan Zeng, Xiaoyu Meng, Gavin Li, Gaurav Rai, Hemanth Kolla, Ihor Hordiienko, Matheus Scharf, and Stepan Sydoruk who helped bring this vision to life. Also thanks to Paige Schwartz, Stephanie Chu, Neal Cohen, Becky Ajuonuma, Iman Saleh, Dani Normanm, Javier Salido, and Lauren Mackevich for the review and editing.</p><p>Thanks to Jeremy Werner, Joy Zhang, Claire Cheng, Yashar Mehdad, Shuohao Zhang, Shawn Yan, Kelvin Xiong, Michael Lubavin, Teng Wang, Wei Ji, and Chenhao Yang’s leadership support on building conversational AI products at Airbnb.</p><p><em>All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b71f912d4760" width="1" height="1" alt=""><hr><p><a href="https://medium.com/airbnb-engineering/listening-learning-and-helping-at-scale-how-machine-learning-transforms-airbnbs-voice-support-b71f912d4760">Listening, learning, and helping at scale: How machine learning transforms Airbnb’s voice support…</a> was originally published in <a href="https://medium.com/airbnb-engineering">The Airbnb Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a picture is worth more than words]]></title>
            <link>https://medium.com/airbnb-engineering/when-a-picture-is-worth-more-than-words-17718860dcc2?source=rss-dd368cae1247------2</link>
            <guid isPermaLink="false">https://medium.com/p/17718860dcc2</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[computer-vision]]></category>
            <dc:creator><![CDATA[Yuanpei Cao]]></dc:creator>
            <pubDate>Thu, 08 Dec 2022 18:03:50 GMT</pubDate>
            <atom:updated>2026-05-26T21:35:18.961Z</atom:updated>
            <content:encoded><![CDATA[<p>How Airbnb uses visual attributes to enhance the Guest and Host experience.</p><figure><img alt="A cozy, two-story bamboo villa with warm string lights glowing on its veranda, nestled among lush palm trees and jungle greenery on a terraced hillside at sunset, with a pink-and-purple sky in the background." src="https://cdn-images-1.medium.com/max/1024/1*vDjnjMZRRxZSXFJhb4iwiA.jpeg" /></figure><p><strong>By</strong>: <a href="https://www.linkedin.com/in/yuanpei-cao-792b103b/">Yuanpei Cao</a>, <a href="https://www.linkedin.com/in/bulam/">Bill Ulammandakh</a>, <a href="https://www.linkedin.com/in/hao-wang-2661553/">Hao Wang</a>, and <a href="https://www.linkedin.com/in/hwangtt/">Tony Hwang</a></p><h3><strong>Introduction</strong></h3><p>On Airbnb, our hosts share unique listings all over the world. There are hundreds of millions of accompanying listing photos on Airbnb. Listing photos contain crucial information about style and design aesthetics that are difficult to convey in words or a fixed list of amenities. Accordingly, multiple teams at Airbnb are now leveraging computer vision to extract and incorporate intangibles from our rich visual data to help guests easily find listings that suit their preferences.</p><p>In previous blog posts titled <a href="https://medium.com/airbnb-engineering/widetext-a-multimodal-deep-learning-framework-31ce2565880c"><em>WIDeText: A Multimodal Deep Learning Framework</em></a>,<em> </em><a href="https://medium.com/airbnb-engineering/categorizing-listing-photos-at-airbnb-f9483f3ab7e3"><em>Categorizing Listing Photos at Airbnb</em></a> and <a href="https://medium.com/airbnb-engineering/amenity-detection-and-beyond-new-frontiers-of-computer-vision-at-airbnb-144a4441b72e"><em>Amenity Detection and Beyond — New Frontiers of Computer Vision at Airbnb</em></a>, we explored how we utilize computer vision for room categorization and amenity detection to map listing photos to a taxonomy of discrete concepts. This post goes beyond discrete categories into how Airbnb leverages image aesthetics and embeddings to optimize across various product surfaces including ad content, listing presentation, and listing recommendations.</p><h3>Image aesthetics</h3><p>Attractive photos are as vital as price, reviews, and description during a guest’s Airbnb search journey. To quantify “attractiveness” of photos, we developed a deep learning-based image aesthetics assessment pipeline. The underlying model is a deep convolutional neural network (<a href="https://en.wikipedia.org/wiki/Convolutional_neural_network">CNN</a>) trained on human-labeled image aesthetic rating distributions. Each photo was rated on a scale from 1 to 5 by hundreds of photographers based on their personal aesthetic measurements (the higher the rating, the better the aesthetic). Unlike traditional classification tasks that classify the photo into low, medium and high-quality categories, the model was built upon the Earth Mover’s Distance (<a href="https://en.wikipedia.org/wiki/Earth_mover%27s_distance">EMD</a>) as the loss function to predict photographers’ rating distributions.</p><figure><img alt="Diagram: a living-room photo enters an image-encoder with stacked blocks, then a tall bar (softmax) outputs a column of probability scores." src="https://cdn-images-1.medium.com/max/1024/0*9uDKRsxap29D2jTg" /><figcaption><em>Figure 1. The model that predicts image aesthetics distribution is CNN-based and trained with the EMD loss function. Suppose the ground truth label of a photo is: 10% of users give ratings 1 and 2, respectively, 20% give rating 3, and 30% give ratings 4 and 5, respectively. The corresponding prediction is [0.1, 0.1, 0.2, 0.3, 0.3]</em></figcaption></figure><p>The predicted mean rating is highly correlated with image resolution and listing booking probability, as well as high-end Airbnb listing photo distribution. Rating thresholds are set based on use cases, such as ad photo recommendation on social media and photo order suggestion in the listing onboarding process.</p><figure><img alt="Open-air terrace with wicker seating, round dining table, infinity pool, and ocean view." src="https://cdn-images-1.medium.com/max/1024/0*oX4zLXa1xuW5dZ1u" /></figure><figure><img alt="Modern living room with floor-to-ceiling glass walls overlooking pine trees, a tan sectional sofa facing a concrete fireplace, and sunlight streaming onto herringbone-patterned tile floors." src="https://cdn-images-1.medium.com/max/1024/0*kPzH6oeThUYOm-Lu" /><figcaption><em>Figure 2. Examples of Airbnb listing photos with aesthetics scores higher than the 90% percentile</em></figcaption></figure><h3>Image aesthetic-based ads quality improvement</h3><p>Airbnb uses advertising on social media to attract new customers and inspire our community. The social media platform chooses which ads to run based on millions of Airbnb-provided listing photos.</p><figure><img alt="Facebook ad for an Airbnb listing — night view of a two-story house with a brightly lit swimming pool, captioned “from $96” and labeled “Orlando, entire home/apt, 1 bed, 2 guests.”" src="https://cdn-images-1.medium.com/max/750/0*Cs_Sp9Db3uebMDQA" /><figcaption><em>Figure 3. Airbnb Ads displayed on Facebook</em></figcaption></figure><p>Since a visually appealing Airbnb photo can effectively attract users to the platform and considerably increase the ad’s click-through rate (CTR), we utilized the image aesthetic score and room categorization to select the most attractive Airbnb photos of the living room, bedroom, kitchen, and exterior view. The criterion for “good quality” listing photos was set based on the top 50th percentile of the aesthetic score and tuned based on an internal manual aesthetic evaluation of 1K randomly selected listing cover photos. We performed A/B testing for this use case and found that the ad candidates with a higher aesthetic score generated a substantially higher CTR and booking rate.</p><figure><img alt="Modern black cabin with sliding glass doors, slatted shutters, and a small patio with table, chairs, and a closed umbrella, set amid lush green hills and trees." src="https://cdn-images-1.medium.com/max/1024/0*qkiOeZNUrFiQ9hp0" /></figure><figure><img alt="Bright bedroom with two twin beds, black-and-white geometric pillows and throws, clip-art prints of a fox and an owl above the headboards, black wall-mounted reading lamps, and a small suitcase-style nightstand between the beds." src="https://cdn-images-1.medium.com/max/1024/0*3wAi8A6I4pgZh2ti" /></figure><figure><img alt="Two-story tropical villa glowing at dusk, with a pool, loungers, and lush palm-lined garden." src="https://cdn-images-1.medium.com/max/1024/0*EAZedvb_PXHZT4j0" /><figcaption><em>Figure 4. Pre-selected Airbnb Creative Ads through image aesthetics and room type filters</em></figcaption></figure><h3>Automated photo ranking based on home design and room type</h3><p>When posting a new listing on Airbnb, hosts upload numerous photos. Optimally arranging these photos to highlight a home can be time-consuming and challenging. A host may also be uncertain about the ideal arrangement for their images because the work requires making trade-offs between photo attractiveness, photo diversity, and content relevance to guests. More specifically, the first five photos are the most important for listing success as they are the most frequently viewed and crucial to forming the initial guest impression. Accordingly, we developed an automated photo ranking algorithm that selects and orders the first five photos of a home leveraging two visual signals: home design evaluation and room categorization.</p><p>Home design evaluation estimates how well a home is designed from an interior design and architecture perspective. The CNN-based home design evaluation model is trained on Airbnb<em> Plus </em>and<em> Luxe</em> qualification data that assess the aesthetic appeal of each photo’s home design. Airbnb <em>Plus</em> and <em>Luxe</em> listings have passed strict home design evaluation criteria and so the data from their qualification process is well-suited to be used as training labels for a home design evaluation model. The photos are then classified into different room types, such as living room, bedroom, bathroom etc, through the room categorization model. Finally, an algorithm makes trade-offs between photo home design attractiveness, photo relevance, and photo diversity to maximize the booking probability of a home. Below is an example of how a new photo order is suggested. The photo auto-rank feature was launched in Host’s listing onboarding product in 2021, leading to significant lifts in new listing creation and booking success.</p><p><strong>Original ordering</strong></p><figure><img alt="Collage showing an A-frame cabin in the woods — nighttime views with string lights and a hot tub, snowy stairs and roof in winter, and the pale-green front facade with pines around it." src="https://cdn-images-1.medium.com/max/1024/0*pnBb2R9FSRaKolwe" /></figure><p><strong>Auto-suggested ordering</strong></p><figure><img alt="Collage of a cozy A-frame cabin — wood-paneled living room with stove, deck with hot tub and forest view, bright bedroom, and compact rustic kitchen." src="https://cdn-images-1.medium.com/max/1024/0*Ycy7KI2DK_dhX98a" /><figcaption><em>Figure 5. The example of original photo order (top) uploaded by Airbnb Host and auto-suggested order (bottom) calculated by the proposed algorithm</em></figcaption></figure><h3>Image similarity</h3><p>Beyond aesthetics, photos also capture the general appearance and content. To efficiently represent this information, we encode and compress photos into image embeddings using computer vision models. Image embeddings are compact vector representations of images that represent visual features. These embeddings can be compared against each other with a distance metric that represents similarity in that feature space.</p><figure><img alt="Diagram connecting three listing photos — a red barn-style house, a courtyard with a purple-blossomed tree, and a garden with pool — using dashed lines labeled 0.8, 0.5, and 0.2 to indicate similarity scores." src="https://cdn-images-1.medium.com/max/1024/0*qJaLeY5a3rvkR87m" /><figcaption><em>Figure 6. Image embeddings can be compared by distance metrics like cosine similarity to represent their similarity in the encoded latent space</em></figcaption></figure><p>The features learned by the encoder are directly influenced by the training image data distribution and training objectives. Our labeled room type and amenity classification data allows us to train models on this data distribution to produce semantically meaningful embeddings for listing photo similarity use cases. However, as the quantity and diversity of images on Airbnb grow, it becomes increasingly untenable to rely solely on manually labeled data and supervised training techniques. Consequently, we are currently exploring self-supervised contrastive training to improve our image embedding models. This form of training does not require image labels; instead, it bootstraps contrastive learning with synthetically generated positive and negative pairs. Our image embedding models can then learn key visual features from listing photos without manual supervision.</p><figure><img alt="Diagram of a self-supervised learning pipeline — an original photo of a snowy treehouse is copied into two branches, each undergoes “image transformation,” passes through an image encoder and projection layers to create two embeddings, which are compared in a “maximize similarity” step." src="https://cdn-images-1.medium.com/max/1024/0*hU4Ij4D2PUCVyN0V" /><figcaption><em>Figure 7. Introducing random image transformations to synthetically create positive and negative pairs helps refine our image encoders without additional labeling.</em></figcaption></figure><h3>Scalable embedding search</h3><p>It is often impractical to compute exhaustive pairwise embedding similarity, even within focused subsets of millions of items. To support real-time search use cases, such as (near) duplicate photo detection and visual similarity search, we instead perform an approximate nearest neighbor (<a href="https://en.wikipedia.org/wiki/Nearest_neighbor_search#Approximate_nearest_neighbor">ANN</a>) search. This functionality is largely enabled by an efficient embedding index preprocessing and construction algorithm called Hierarchical Navigable Small World (<a href="https://arxiv.org/abs/1603.09320">HNSW</a>). HNSW builds a hierarchical proximity graph structure that greatly constrains the search space at query time. We scale this horizontally with AWS OpenSearch, where each node contains its own HNSW embedding graphs and Lucene-backed indices that are hydrated periodically and can be queried in parallel. To add real-time embedding ANN search, we have implemented the following index hydration and index search design patterns enabled by existing Airbnb internal platforms.</p><p>To hydrate an embedding index on a periodic basis, all relevant embeddings computed by <a href="https://ieeexplore.ieee.org/document/8964147">Bighead</a>, Airbnb’s end-to-end machine learning platform, are aggregated and persisted into a Hive table. The encoder models producing the embeddings are deployed for both online inference and offline batch processing. Then, the incremental embedding update is synced to the embedding index on AWS OpenSearch through Airflow, our data pipeline orchestration service.</p><figure><img alt="Flowchart: photos → Bighead (encoder inference) → Hive (embedding table) → Apache Airflow (HNSW index pipeline) → Amazon OpenSearch" src="https://cdn-images-1.medium.com/max/1024/0*701twLpGC7cAqooo" /><figcaption><em>Figure 8. Index hydration data pathway</em></figcaption></figure><p>To perform image search, a client service will first verify whether the image’s embedding exists in the OpenSearch index cache to avoid recomputing embeddings unnecessarily. If the embedding is already there, the OpenSearch cluster can return approximate nearest neighbor results to the client without further processing. If there is a cache miss, Bighead is called to compute the image embedding, followed by a request to query the OpenSearch cluster for approximate nearest neighbors.</p><figure><img alt="Flow diagram — client service sends an image to Bighead for embedding, receives the embedding, forwards it to Amazon OpenSearch Service, and gets back similar images." src="https://cdn-images-1.medium.com/max/1024/0*gPnnwDRV1gU6VJ9g" /><figcaption><em>Figure 9. Image similarity search for a previously unseen image</em></figcaption></figure><p>Following this embedding search framework, we are scaling real-time visual search in current production flows and upcoming releases.</p><h3>Expanding Airbnb categories</h3><p><a href="https://www.airbnb.com/2022-summer">Airbnb Categories</a> help our guests discover unique getaways. Some examples are “Amazing views”, “Historical homes”, and “Creative spaces”. These categories do not always share common amenities or discrete attributes, as they often represent an inspirational concept. We are exploring automatic category expansion by identifying similar listings based on their photos, which do capture design aesthetics.</p><figure><img alt="Row of four listing photos — a music-themed room with piano and drums, a bright living room with bookshelves and orange sofa, a wood-paneled lounge with tall windows and rug, and an eclectic studio filled with hanging plants." src="https://cdn-images-1.medium.com/max/1024/0*_m9Kv0hZdqYRDAZL" /><figcaption><em>Figure 10. Listing photos from the “Creative spaces” category</em></figcaption></figure><h3>Similar listing recommendations in rebooking assistance</h3><p>In the 2022 Summer Release, Airbnb introduced rebooking assistance to offer guests a smooth experience from Community Support ambassadors when a Host cancels on short notice. For the purpose of recommending comparable listings throughout the rebooking process, a two-tower reservation and listing embedding model ranks candidate listings, updated on a daily basis. As future work, we can consider augmenting the listing representation with image embeddings and enabling real-time search.</p><figure><img alt="Airbnb search page showing a list of similar Manhattan stays on the left (photos, prices, ratings) and a map of Midtown Manhattan on the right with price pins marking available listings." src="https://cdn-images-1.medium.com/max/1024/0*at3MPM2B3Mj-etNu" /><figcaption><em>Figure 11. The example of a landing page that recommends similar listings to guests and Community Support ambassadors in the Rebooking assistance.</em></figcaption></figure><h3>Conclusion</h3><p>Photos contain aesthetic and style-related signals that are difficult to express in words or map to discrete attributes. Airbnb is increasingly leveraging these visual attributes to help our hosts highlight the unique character of their listings and to assist our guests in discovering listings that match their preferences.</p><p>Interested in working at Airbnb? Check out our <a href="https://careers.airbnb.com/">open roles</a>.</p><h3>Acknowledgements</h3><p>Thanks to Teng Wang, Regina Wu, Nan Li, Do-kyum Kim, Tiantian Zhang, Xiaohan Zeng, Mia Zhao, Wayne Zhang, Elaine Liu, Floria Wan, David Staub, Tong Jiang, Cheng Wan, Guillaume Guy, Wei Luo, Hanchen Su, Fan Wu, Pei Xiong, Aaron Yin, Jie Tang, Lifan Yang, Lu Zhang, Mihajlo Grbovic, Alejandro Virrueta, Brennan Polley, Jing Xia, Fanchen Kong, William Zhao, Caroline Leung, Meng Yu, Shijing Yao, Reid Andersen, Xianjun Zhang, Yuqi Zheng, Dapeng Li, and Juchuan Ma for the product collaborations. Also thanks Jenny Chen, Surashree Kulkarni, and Lauren Mackevich for editing.</p><p>Thanks to Ari Balogh, Tina Su, Andy Yasutake, Joy Zhang, Kelvin Xiong, Raj Rajagopal, and Zhong Ren’s leadership support on building computer vision products at Airbnb.</p><p><em>All product names, logos, and brands are property of their respective owners. All company, product, and service names used in this website are for identification purposes only. Use of these names, logos, and brands does not imply endorsement.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17718860dcc2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/airbnb-engineering/when-a-picture-is-worth-more-than-words-17718860dcc2">When a picture is worth more than words</a> was originally published in <a href="https://medium.com/airbnb-engineering">The Airbnb Tech Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>