Encoding Categorical Variables with Conjugate Bayesian Models for WeWork Lead Scoring Engine
Not on the map. Why?
Abstract (arXiv)
Applied Data Scientists throughout various industries are commonly faced with the challenging task of encoding high-cardinality categorical features into digestible inputs for machine learning algorithms. This paper describes a Bayesian encoding technique developed for WeWork's lead scoring engine which outputs the probability of a person touring one of our office spaces based on interaction, enrichment, and geospatial data. We present a paradigm for ensemble modeling which mitigates the need to build complicated preprocessing and encoding schemes for categorical variables. In particular, domain-specific conjugate Bayesian models are employed as base learners for features in a stacked ensemble model. For each column of a categorical feature matrix we fit a problem-specific prior distribution, for example, the Beta distribution for a binary classification problem. In order to analytically derive the moments of the posterior distribution, we update the prior with the conjugate likelihood of the corresponding target variable for each unique value of the given categorical feature. This function of column and value encodes the categorical feature matrix so that the final learner in the ensemble model ingests low-dimensional numerical input. Experimental results on both curated and real world datasets demonstrate impressive accuracy and computational efficiency on a variety of problem archetypes. Particularly, for the lead scoring engine at WeWork -- where some categorical features have as many as 300,000 levels -- we have seen an AUC improvement from 0.87 to 0.97 through implementing conjugate Bayesian model encoding.
Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). First posted on arXiv 30 Apr 2019.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 2; 2022: 2; 2023: 0; 2024: 0; 2025: 0; 2026: 1.
5 papers.
- 2022Fairness Implications of Encoding Protected Categorical Attributescited by 7
- 2021Quantile Encoder: Tackling High Cardinality Categorical Features in Regression Problemscited by 5
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detectioncited by 3
- 2021New PCA-based Category Encoder for Cybersecurity and Processing Data in IoT Devicescited by 0
- 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domaincited by 0
- 2026Interpretable vs Learned Encoders for High-Cardinality Fraud Detection1 Jul 2026
- 2022Progressive Feature Upgrade in Semi-supervised Learning on Tabular Domain1 Dec 2022
- 2022Fairness Implications of Encoding Protected Categorical Attributes27 Jan 2022
- 2021New PCA-based Category Encoder for Cybersecurity and Processing Data in IoT Devices29 Nov 2021
- 2021Quantile Encoder: Tackling High Cardinality Categorical Features in Regression Problems27 May 2021