[KongchangAI]
· 1 min read· 853 words

TextPredOpt: Evaluating the True Impact of Textual Information on Decision Optimization

TextPredOpt: Evaluating the True Impact of Textual Information on Decision Optimization

TextPredOpt benchmark jointly evaluates prediction loss and decision regret, showing that textual information does not necessarily improve decisions.

TextPredOpt is a testbed that jointly evaluates prediction and decision, addressing the gap that traditional text-aware benchmarks focus only on prediction accuracy and ignore decision cost. It includes five decision tasks, each with a fixed optimizer, and reports both prediction loss and regret. Experiments compare TF-IDF, sentence embeddings, and LLM extraction. Key findings: on synthetic tasks, LLM extraction reduces regret by 8%-24% under boosted trees but increases it by 3%-6% under linear predictors; on real-data tasks, sentence embeddings lower prediction loss yet increase regret by 22% and 61%. Zero-shot direct prediction generally yields higher regret than the no-text baseline. These results show that prediction loss and decision cost can diverge, and text representation choices must be validated at the decision level. TextPredOpt provides a data pipeline and evaluation code to support the development of decision-aware text representation methods.

In the predict-then-optimize framework, the lowest prediction loss does not always yield the lowest decision cost. Much decision-relevant context appears as text—news articles, customer reviews, and vulnerability reports. Embedding models and large language models (LLMs) convert this text into features or direct predictions. However, existing text-aware prediction benchmarks evaluate only the prediction itself, failing to reveal whether text truly improves the decisions made from those predictions. To fill this gap, researchers propose TextPredOpt, a testbed that evaluates prediction and decision jointly.

TextPredOpt overview

Why evaluate prediction and decision together?

Traditional benchmarks typically focus only on prediction accuracy (e.g., mean squared error), but decision quality depends on how predictions are used by the optimizer. TextPredOpt's core insight is that a prediction model may have low loss on the test set, yet the resulting decisions may incur higher cost (i.e., regret). TextPredOpt therefore designs five decision tasks, each with a fixed optimizer, and evaluates both prediction loss and regret. Its synthetic tasks have known ground-truth extractions, enabling controlled experiments.

Regret is the core metric for decision quality, defined as the difference between the actual decision cost and the optimal decision cost achievable with perfect predictions (i.e., true parameters). In the predict-then-optimize framework, the prediction model outputs parameter estimates, and the optimizer solves for decision variables accordingly; if predictions are biased, the optimizer may choose a suboptimal decision, incurring regret. Unlike prediction loss (e.g., mean squared error), regret directly reflects the cost at the decision level, thus exposing inconsistencies between prediction accuracy and decision effectiveness. TextPredOpt reports both prediction loss and regret precisely to capture this disconnect.

TextPredOpt design and experimental setup

TextPredOpt includes five decision tasks and provides a data pipeline and evaluation code. In the evaluation, researchers compared multiple text representation methods: TF-IDF, two sentence embeddings, and four LLMs as feature extractors, combined with linear predictors and boosted-tree predictors. They also tested four LLMs as direct predictors.

Performance on synthetic tasks

On synthetic tasks, LLM-extracted fields reduced regret by 8% to 24% under boosted trees, while ground-truth extraction reduced it by 26%. However, under linear predictors, LLM extraction instead increased regret by 3% to 6%. This shows that the effectiveness of text extraction methods depends heavily on the predictor type.

Performance on real-data tasks

On real-data tasks, no text representation or LLM extraction significantly reduced regret. Under linear predictors, nearly all text methods reduced regret on the vulnerability patching task, by up to 16%; on the retail assortments task, three of four LLM extractions reduced regret by 6% to 14%. Interestingly, the two sentence embeddings, despite reducing prediction loss, increased regret by 22% and 61%, respectively. This highlights the disconnect between prediction loss and decision cost.

TF-IDF (term frequency–inverse document frequency) is a classic text representation method that converts text into sparse vectors by counting term frequencies and weighting them by term rarity across the corpus. It is simple to compute and highly interpretable, but cannot capture word order or semantic information. Sentence embeddings use pretrained models (e.g., Sentence-BERT) to map an entire sentence into a dense vector, encoding semantic similarity. LLM as feature extractor means using a large language model to extract structured fields (e.g., entities, attributes) from text, then feeding these fields as features into a predictor; LLM as direct predictor means letting the model directly output prediction values, skipping explicit feature engineering. These methods differ significantly in representational power and computational cost, and TextPredOpt systematically compares their effects on decision regret.

Key findings and implications

The experiments also revealed counterintuitive results: including optimization structure in the extraction prompt did not yield consistent gains; and zero-shot direct prediction generally incurred higher regret than the no-text baseline (for both predictor types). These results suggest that merely feeding textual information to LLMs or embedding models is not enough to improve decisions—and may even backfire.

The researchers argue that these findings motivate training text representations and LLM predictors directly against decision cost. TextPredOpt provides decision tasks, a data pipeline, and evaluation code, laying the groundwork for developing and comparing such methods.

Zero-shot direct prediction means having a large language model output predictions directly via prompting, without task-specific fine-tuning. This approach relies on the model's general capabilities but may fail to align with the decision structure of the downstream optimizer, amplifying prediction bias into higher regret. In contrast, training against decision cost means incorporating regret as part of the loss function and directly optimizing text representation or predictor parameters, so the model learns features that are more decision-friendly. TextPredOpt's experiments show that zero-shot direct prediction often underperforms the no-text baseline, highlighting the need for task-specific training.

Practical implications for AI applications

For engineers and data scientists working on AI applications, TextPredOpt sends a clear signal: when integrating textual information into decision pipelines, you must monitor both prediction metrics and decision metrics. Chasing lower prediction loss alone may mislead model selection. Especially in high-stakes domains (e.g., vulnerability patching), the choice of text representation needs validation at the decision level. As an open-source testbed, TextPredOpt provides standardized tools for such validation.

More technical details and code are available on the project page.

#TextPredOpt#predict-then-optimize#decision regret#text representation#LLM feature extraction#sentence embeddings#prediction loss
Share:

Related articles