Abstract
Researchers often query online social platforms through their application programming interfaces (API) to find target populations such as people with mental illness or specific professional groups. Entities of such target populations satisfy properties that are typically identified using an "oracle" (human or a pre-trained classifier). When the property of the target entities is not directly queryable via the API, we refer to the property as "hidden" and the population as a hidden population. Finding individuals who belong to these populations on social networks is challenging because they are non-queryable, and the sampler must explore a combinatorial query space within a finite budget. By exploiting the correlation between queryable attributes and the population of interest and by hierarchically ordering the query space, we propose a Decision tree-based Thompson sampler (DT-TMP) that efficiently discovers the right combination of attributes to query. Our proposed sampler outperforms state-of-the-art samplers in online experiments, for example by 54% on Twitter.
The Challenge of Hidden Populations
Researchers and advertisers often need to find "hidden populations"—groups defined by properties that aren't directly searchable via a platform's API. For example, one cannot search Twitter directly for "people with depression" because users rarely self-describe that way in a searchable field. Instead, researchers must use an oracle (like a pre-trained classifier) to identify them from general search results.
This presents two major technical hurdles:
- Combinatorial Search Space: If you can search by location, time, and keywords, the number of possible query combinations grows exponentially. With strict API rate limits (e.g., only 60 calls per hour), a naive search will fail to find many people.
- Black-box APIs: APIs are often "noisy." They might return the same user for different queries (re-sampling), return fewer results than requested, or provide stochastic feedback where different pages of the same query yield different densities of the target group.
Methods: The DT-TMP Approach
The authors propose DT-TMP, which combines a Decision Tree structure with Thompson Sampling (a classic Multi-Armed Bandit algorithm).
- Hierarchical Exploration: Instead of treating every possible query as a flat list, DT-TMP organizes them into a tree. It starts with the most general query (e.g., "all users") and identifies promising "branches" (e.g., "users in New York"). It then expands these branches into more specific conjuncts (e.g., "users in New York AND using hashtag #latenight").
- Thompson Sampling: To balance "exploration" (trying new attribute combinations) and "exploitation" (repeatedly issuing high-yielding queries), the model maintains a probability distribution (Beta distribution) for each query’s success rate. It selects queries to issue based on random samples from these distributions.
- Unified Reward Function: The algorithm uses a novel reward function that accounts for the probability of discovering unique hidden entities, specifically penalizing queries that are likely to return users the sampler has already seen.
Key Insights and Ideas
The Clustering Effect
The core insight is that query precision is often correlated. If a general query for "Chicago" has a high density of your target population, specific sub-queries within Chicago are statistically more likely to be high-yielding than sub-queries in a low-performing city.
Combinatorial Advantage
The paper proves that querying via combinations of attributes (A AND B) is significantly more efficient than querying attributes individually. This hierarchy allows the sampler to "prune" large sections of the search space that are unlikely to contain the target population. DT-TMP is designed for the "cold start" problem where no prior data exists, learning the correlation between queryable attributes and the hidden property on the fly.
Evaluation and Results
The authors evaluated DT-TMP across both offline simulations (using Patent, Auto, and Adult datasets) and live online environments:
- Twitter: Identifying female users, verified accounts, or early adopters.
- RateMDs: Finding highly-rated doctors or those accepting specific insurance.
- GitHub: Finding users by nationality or contribution frequency.
DT-TMP consistently outperformed state-of-the-art baselines (including standard Thompson Sampling, Random Walks, and Content-Based search). On Twitter, DT-TMP improved the discovery rate of hidden populations by 54% over the next best sampler. In offline experiments, it outperformed baselines by a factor of 0.9x to 1.5x.
Limitations and Future Work
While highly effective, the current model assumes the API returns results in a random or unknown order. If an API uses a specific ranking (e.g., most popular users first), the sampler might need adjustment for non-stationary rewards. Additionally, the system relies on the accuracy of the "oracle" classifier; a biased classifier will lead the sampler to efficiently find the wrong population. Future work aims to adapt DT-TMP for high-velocity streaming data and more complex query formulations.
Summary updated