Don't Contrast the Impossible: Region-Constrained Batching for Contrastive User Modeling on a Local Community Platform
This paper proposes Region-Constrained Batch Sampling (RCBS), a novel batching method for local community platforms that replaces geographically impossible negatives with feasible ones to improve contrastive user modeling, thereby enhancing recommendation and advertising performance in production.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine you are trying to teach a robot how to understand what people like. In the world of computer science, this is called "recommender systems," and the robot's brain is built using a technique called "contrastive learning." Think of this like a game of "spot the difference." To teach the robot what a user likes, you show it a picture of something they clicked on (a "positive") and then show it a bunch of other pictures they didn't click on (the "negatives"). The robot learns by realizing, "Ah, the user likes this one, but not those others."
For this game to work well, the "negative" pictures you show the robot must be things the user could have seen but simply chose to ignore. If you show the robot a picture of a penguin to a user who lives in the middle of a desert and has never seen a penguin, the robot learns nothing useful. The user didn't ignore the penguin because they dislike it; they ignored it because it was impossible for them to see it in the first place. This paper tackles a specific problem where the "game board" has strict rules about who can see what, and the robot was getting confused by showing it impossible things.
The Problem: Teaching a Robot with Impossible Choices
On a local community app like Karrot (a popular place in South Korea for buying and selling nearby), the rules of the game are very different from a global store like Amazon. On Karrot, you can only see items that are close to you. If you live in Seoul, you won't see a bicycle for sale in Busan, even if it's the coolest bike ever. The app is designed so that distance acts like a wall; items on the other side of the wall are simply invisible to you.
The researchers found that the standard way of training the robot was making a big mistake. The robot was being trained using "mini-batches," which are just small groups of users and items mixed together randomly. Because the mixing was random, the robot was often shown items that were physically impossible for a specific user to see. For example, it might show a user in one neighborhood an item from a neighborhood 50 kilometers away.
The paper calls these "impossible negatives." When the robot sees a user ignore an item that was impossible to see, it thinks, "Okay, this user definitely hates this item!" But that's wrong. The user didn't hate it; they just couldn't see it. This is like a teacher scolding a student for not answering a question that was written in a language the student doesn't speak. The paper argues that filling the training game with these "impossible" choices dilutes the robot's learning, making it bad at guessing what people actually want.
The Solution: The "Same-Neighborhood" Rule
To fix this, the authors, Seungho Han, Byeongchang Kim, and Jin Yu, proposed a new way to organize the training game called Region-Constrained Batch Sampling (RCBS).
Instead of throwing everyone into the same big bucket, RCBS acts like a strict neighborhood watch. When it creates a group of users to train the robot, it only picks users who live in the same area (or very close areas). Because everyone in the group lives nearby, every item shown in the group is something anyone in that group could theoretically see.
This simple change has a powerful effect. Now, when the robot sees a user ignore an item, it knows for a fact that the user could have seen it. If they still didn't click, it's a real signal that they aren't interested. These are called "feasible negatives." The paper suggests that these "feasible" choices are actually harder and more informative for the robot to learn from than the easy "impossible" ones. It's like upgrading the robot's training from "guessing what's in a locked box" to "guessing what's in a box right in front of you."
What They Found: A Better Robot
The team tested this idea in two ways: first, by running simulations offline (like a practice match), and second, by testing it on the real app with real users (a live A/B test).
In the simulations, they measured how many "impossible" choices were in the training groups. With the old random method, a staggering 98% of the negative choices were impossible for the user to see. With their new RCBS method, they managed to drop that number down to 30%.
The results were clear. The robot trained with the new "neighborhood rule" became much better at understanding users.
- Offline tests: The new robot improved its ability to find the right items by about 7.56% for home feed searches and 4.61% for ad rankings, compared to the old robot.
- Live tests: When they put the new robot into the actual app, the results were even more exciting. The number of clicks on the home feed went up by 10.0%, and the number of people seeing the feed (impressions) went up by 5.12%. Even the ads performed better, with a 7.46% increase in people clicking on them.
The Takeaway
The paper concludes that for local community platforms, you can't just mix and match users and items randomly. You have to respect the geography. By ensuring the robot only learns from things users could actually see, the robot learns much faster and smarter. The authors have already deployed this new method at Karrot, and it is now helping millions of users find the things they actually want, right in their own neighborhoods. They suggest that while this is a big step forward, there might be even more ways to fine-tune these "neighborhood" rules in the future, but for now, the simple fix of "don't contrast the impossible" has proven to be a winner.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.