Context augmentation uses LLM-generated contexts as latent variables to enable frequentist two-sample tests and text-on-text regression with claimed asymptotic guarantees.
A Two-Sample Test of Text Generation Similarity
1 Pith paper cite this work. Polarity classification is still indexing.
abstract
The surge in digitized text data requires reliable inferential methods on observed textual patterns. This article proposes a novel two-sample text test for comparing similarity between two groups of documents. The hypothesis is whether the probabilistic mapping generating the textual data is identical across two groups of documents. The proposed test aims to assess text similarity by comparing the entropy of the documents. Entropy is estimated using neural network-based language models. The test statistic is derived from an estimation-and-inference framework, where the entropy is first approximated using an estimation set, followed by inference on the remaining data set. We showed theoretically that under mild conditions, the test statistic asymptotically follows a normal distribution. A multiple data-splitting strategy is proposed to enhance test power, which combines p-values into a unified decision. Various simulation studies and a real data example demonstrated that the proposed two-sample text test maintains the nominal Type one error rate while offering greater power compared to existing methods. The proposed method provides a novel solution to assert differences in document classes, particularly in fields where large-scale textual information is crucial.
fields
stat.ME 1years
2025 1verdicts
CONDITIONAL 1representative citing papers
citing papers explorer
-
Large Language Models for Statistical Inference: Context Augmentation with Applications to the Two-Sample Problem and Regression
Context augmentation uses LLM-generated contexts as latent variables to enable frequentist two-sample tests and text-on-text regression with claimed asymptotic guarantees.