BERT Embeddings Can Control Hidden Text Confounders in Regression

Image: "Positive Customer Feedback" by Zuko.io Images (CC BY 2.0) via Wikimedia Commons, recoloured.
When researchers turn text such as online reviews into a regression variable, the rest of that text can hide confounders. Qiao and Huang, writing in Management Science, propose using BERT embeddings as an automatic set of textual controls inside a double machine learning framework, and report that this reduces estimation bias in their experiments.
Letting the text control for itself
Text mining has become a standard tool in information systems, marketing and management research. A typical design extracts one variable from a document, for example the sentiment of an online review, and relates it to an outcome such as sales. The problem is that a review says far more than its sentiment. Product quality, price complaints or delivery issues may sit in the same text and drive both the sentiment score and the outcome.
Researchers usually handle this by hand-crafting extra control variables from the same documents. According to Mengke Qiao and Ke-Wei Huang (Management Science, 2026), that manual step cannot guarantee that every important confounder is captured, or that it enters the model in the correct functional form. If relevant textual information is left out and no valid identification strategy is available, omitted variable bias follows.
Their solution is to let a language model build the controls. The authors use text embeddings from BERT (bidirectional encoder representations from transformers) to create a control vector that stands in for latent confounding factors in the documents. The model is semiparametric: the key independent variable keeps a linear term, so its coefficient remains interpretable, while the textual controls enter through an unknown function estimated by a neural network.
Methodologically, the paper extends double machine learning. Qiao and Huang introduce a new Neyman-orthogonal loss function within an integrated deep neural network, designed to minimise bias in the estimate of the key coefficient. According to the authors, their experiments show that controlling for text through embeddings is effective and that the new loss function further improves estimation performance.
The scope is worth stating clearly. The method is framed for settings that lack a valid identification strategy, so it complements rather than replaces designs such as instruments or natural experiments. It addresses confounders that live in the text itself, not those outside the documents. The supporting evidence comes from the authors' own experiments, and an online appendix and data files accompany the article for readers who want to inspect or reuse them.
Why it matters: Any study that regresses an outcome on a text-derived variable, whether review sentiment, earnings call tone or the language of a pitch, is exposed to the bias this paper targets. Qiao and Huang offer a principled way to use a pretrained language model as a confounder control rather than only as a measurement tool, and reviewers in text-heavy fields are likely to start asking whether such controls were considered.
Qiao, M., & Huang, K.-W. (2026). Correcting the unobserved textual confounding factors in regression by BERT and partially linear regression. *Management Science*. Read the original. Independent editorial summary of third-party research.





Comments