Wednesday, October 28, 2026
Science
No Result
View All Result
  • Login
  • HOME
  • SCIENCE NEWS
  • CONTACT US
  • HOME
  • SCIENCE NEWS
  • CONTACT US
No Result
View All Result
Scienmag
No Result
View All Result
Home Science News Technology and Engineering

Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark

October 28, 2026
in Technology and Engineering
Denise Maddox
By Denise Maddox Scienmag Editorial Profile - Mechanical Engineering
Reading Time: 4 mins read
0
Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark

Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark

65
SHARES
587
VIEWS
Share on FacebookShare on Twitter
ADVERTISEMENT

Demand forecasting sits at the heart of inventory management, because every unit of forecast error ripples directly into replenishment timing, safety stock, service levels and operating cost. A new benchmark study now offers a sober answer to one of the more fashionable questions in applied forecasting: does converting structured business data into natural-language prompts, and then into machine-learned embeddings, actually improve predictions? In a multi-store inventory setting, the answer was no for the strongest models tested.

The study, published in Discover Analytics, built a hybrid forecasting framework that transformed each row of a retail demand dataset into a standardized textual description of store, product, price, promotion, inventory, weather, epidemic and seasonal conditions. Those prompts were encoded into dense sentence embeddings, compressed with principal component analysis, and appended to conventional engineered time-series features. The resulting hybrid models were then pitted against tabular-only versions of the same algorithms under a strict chronological holdout protocol.

The data came from a publicly available Kaggle dataset uploaded by Ramin Huseyn, containing 76,000 observations across 760 daily timestamps, 5 stores and 20 products, with 16 variables. After lag-based feature engineering removed early periods without sufficient history, the final modeling dataset contained 73,200 observations, split into 58,500 training and 14,700 test rows. The authors are careful to note that the dataset’s original organizational provenance cannot be independently verified, so the findings should be read as dataset-specific and exploratory.

Three regression families were evaluated: LightGBM, XGBoost and Random Forest, each in a tabular form and a hybrid form augmented with 32 principal components derived from the sentence embeddings produced by the all-MiniLM-L6-v2 model. In the final holdout run, those 32 components retained 96.7159 percent of the training-embedding variance. Hyperparameters were tuned separately for each variant on a validation slice carved from the training period, using the same modest grid-search budget for all models.

The verdict was unambiguous. Tabular_XGBoost, the plain structured-data version of XGBoost, was the strongest tuned holdout model, achieving a mean absolute error of 11.4174, a root mean squared error of 16.3032, a mean absolute percentage error of 17.8859 percent, an R-squared of 0.8638 and a weighted absolute percentage error of 11.4220 percent. Hybrid contextual embeddings improved Random Forest, reducing its RMSE by 2.58 percent, but they worsened LightGBM by 1.19 percent and XGBoost by 9.10 percent in RMSE terms.

These within-family differences were not statistical noise. Paired bootstrap confidence intervals and Diebold-Mariano tests computed on final-holdout per-observation errors showed that the differences were statistically distinguishable. For LightGBM and XGBoost, the 95 percent paired bootstrap intervals for the RMSE difference were positive, indicating higher hybrid error, while for Random Forest the interval was negative, indicating lower hybrid error. The Diebold-Mariano tests on squared errors were significant for all three comparisons.

The benchmark was reinforced by two additional checks, both deliberately qualified. A model-seed stability check varied only the random seed across 7, 42 and 2024 while holding validation-selected hyperparameters and the embedding representation fixed, so it captures model-fitting stochasticity rather than full tuning uncertainty. Four expanding-window rolling-origin checks refit the models per window using the same validation-selected configurations; the authors describe these as descriptive temporal sensitivity checks rather than fully independent nested backtests. Under both checks, Tabular_XGBoost retained the lowest average RMSE.

Why did the prompt-engineered layer fail to help the boosting models? The most likely explanation, according to the authors, is that the prompts were generated from variables already present in the tabular feature matrix. The embedding therefore added no genuinely independent information source, only a redundant, higher-dimensional restatement of signals that tree-based learners can exploit directly. Feature importance analysis of the winning model supports this reading: the 7-period rolling mean of demand was the leading predictor, followed by the promotion-price interaction, promotion status, epidemic status and weather condition. Recent demand history remained the central source of predictive information.

The study also connects forecasts to operations through an illustrative inventory simulation with a fixed seven-day replenishment lead time. For each store-product series, beginning inventory was initialized from the first test observation, demand was fulfilled daily, and reorder targets were computed as seven-day forecast demand plus a safety-stock term of 1.65 times recent demand volatility times the square root of seven. The XGBoost variants produced the highest fill rates and lowest stockout-period rates, but the authors stress that the service-level differences are small and the simulation is a transparent decision-analytics illustration, not an optimized inventory-control policy or a basis for cost-ranking claims.

The broader lesson is a contingent view of prompt engineering in time-series analytics. Prompt-derived embeddings may provide selective value, as the Random Forest result shows, but they do not necessarily surpass strong structured-data benchmarks when operational predictors already contain the dominant forecasting signal. The authors suggest prompt engineering may prove more valuable when it introduces external text, manager notes or event descriptions not already captured in structured form. They also flag seven limitations, including the single dataset, one prompt template, one embedding model, a modest hyperparameter search and the simplified inventory layer, and call for future work with external unstructured text, alternative templates and richer inventory-control simulations.

Subject of Research: Benchmarking prompt-engineered contextual embeddings against tabular machine-learning models for multi-store demand forecasting

Article Title: Prompt-engineered contextual embeddings for panel time-series demand forecasting: a benchmark in multi-store inventory analytics

Article References: Khan, M. R. I., Mamun, A. A., Tahsin, M. S., & Shamsuddoha, M. (2026). Prompt-engineered contextual embeddings for panel time-series demand forecasting: a benchmark in multi-store inventory analytics. Discover Analytics, 4(1), Article 42. https://doi.org/10.1007/s44257-026-00094-1

Image Credits: AI Generated

DOI: 10.1007/s44257-026-00094-1

Keywords: demand forecasting, prompt engineering, contextual embeddings, XGBoost, LightGBM, Random Forest, time-series analytics, inventory management, sentence transformers, retail analytics, machine learning benchmark, supply chain

Cite Scienmag News

Denise Maddox. (October 28, 2026). Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark. Scienmag. https://scienmag.com/prompt-engineered-embeddings-fail-to-beat-strong-tabular-models-in-demand-forecasting-benchmark/

Denise Maddox. "Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark." Scienmag, 28 October 2026, https://scienmag.com/prompt-engineered-embeddings-fail-to-beat-strong-tabular-models-in-demand-forecasting-benchmark/. Accessed 28 October 2026.

Denise Maddox. "Prompt-engineered embeddings fail to beat strong tabular models in demand forecasting benchmark." Scienmag. October 28, 2026. https://scienmag.com/prompt-engineered-embeddings-fail-to-beat-strong-tabular-models-in-demand-forecasting-benchmark/

Tags: contextual embeddingsdemand forecastingdemand forecasting accuracydemand prediction benchmarkhybrid forecasting modelsinventory managementLightGBMmachine learning benchmarkmachine learning embeddingsmulti-store retail analysisnatural language promptspredictive modeling in supply chainprompt engineeringRandom Forestretail analyticsSentence-Transformersstructured business datasupply chaintabular data versus embeddingstime-series analyticstime-series feature engineeringXGBoost
Share26Tweet16
Previous Post

Photon-counting CT sharpens lung nodule images at lower radiation doses, review finds

Next Post

Diffusion AI generates synthetic dysarthric speech to sharpen intelligibility classifiers

Related Posts

Nursing decision support tool linked to lower neonatal hypoglycemia rates in hospital study
Medicine

Nursing decision support tool linked to lower neonatal hypoglycemia rates in hospital study

October 28, 2026
Deep reinforcement learning model audits and improves listed companies’ disclosure quality
Technology and Engineering

Deep reinforcement learning model audits and improves listed companies’ disclosure quality

October 28, 2026
New LAMPP Model Aims to Guide LLM Use in Programming Education
Technology and Engineering

New LAMPP Model Aims to Guide LLM Use in Programming Education

October 28, 2026
Waste Heat From Steel Furnaces Turned Into Electricity and Freshwater in Optimized New Design
Technology and Engineering

Waste Heat From Steel Furnaces Turned Into Electricity and Freshwater in Optimized New Design

October 28, 2026
Wind Farm Controller Targets Profit and Guarantees 20-Year Turbine Lifetime
Technology and Engineering

Wind Farm Controller Targets Profit and Guarantees 20-Year Turbine Lifetime

October 28, 2026
Temporal deep learning model predicts aging of power composite insulators
Technology and Engineering

Temporal deep learning model predicts aging of power composite insulators

October 28, 2026
Next Post
Diffusion AI generates synthetic dysarthric speech to sharpen intelligibility classifiers

Diffusion AI generates synthetic dysarthric speech to sharpen intelligibility classifiers

  • Mothers who receive childcare support from maternal grandparents show more optimized

    Mothers who receive childcare support from maternal grandparents show more parental warmth, finds NTU Singapore study

    27656 shares
    Share 11059 Tweet 6912
  • University of Seville Breaks 120-Year-Old Mystery, Revises a Key Einstein Concept

    1061 shares
    Share 424 Tweet 265
  • Bee body mass, pathogens and local climate influence heat tolerance

    682 shares
    Share 273 Tweet 171
  • Researchers record first-ever images and data of a shark experiencing a boat strike

    546 shares
    Share 218 Tweet 137
  • Groundbreaking Clinical Trial Reveals Lubiprostone Enhances Kidney Function

    531 shares
    Share 212 Tweet 133
Science

Embark on a thrilling journey of discovery with Scienmag.com—your ultimate source for cutting-edge breakthroughs. Immerse yourself in a world where curiosity knows no limits and tomorrow’s possibilities become today’s reality!

RECENT NEWS

  • GPs rarely examine pelvic floor in anorectal complaints, Dutch survey finds
  • CAR-T Therapy for Brain Tumors Shows Early Promise and Persistent Barriers
  • Two AI Tools Judging Breast Positioning in Screening Barely Agree
  • Rare Pineal Region Tumor Managed with Staged Surgery and Focal Radiotherapy in 63-Year-Old Man

Categories

  • Agriculture
  • Anthropology
  • Archaeology
  • Athmospheric
  • Biology
  • Biotechnology
  • Blog
  • Bussines
  • Cancer
  • Chemistry
  • Climate
  • Earth Science
  • Editorial Policy
  • Marine
  • Mathematics
  • Medicine
  • Pediatry
  • Policy
  • Psychology & Psychiatry
  • Science Education
  • Science News
  • Social Science
  • Space
  • Technology and Engineering

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 5,151 other subscribers

© 2025 Scienmag - Science Magazine

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In
No Result
View All Result
  • HOME
  • SCIENCE NEWS
  • CONTACT US

© 2025 Scienmag - Science Magazine

Discover more from Science

Subscribe now to keep reading and get access to the full archive.

Continue reading