cs.LGOct 8, 2026

Long Text to Predictive Features: LLM-Guided Blockwise Feature Engineering via Executable Program Search

Authors: Ziming Dai, Dabiao Ma, Ziheng Guo, Jack Dong, Zimu Zhou

Organizations: City University of Hong Kong Hong Kong, China

Abstract

Industrial risk-control systems typically rely on structured-data models for efficient prediction, yet substantial valuable information remains embedded in unstructured long text. Extracting this information through manual feature engineering is labor-intensive, while requiring a large language model (LLM) to process every real-time input may not meet practical deployment requirements. To address this challenge, we propose LLM-BlockFE, an LLM-guided offline feature construction framework that converts long text into executable feature programs, thereby avoiding LLM calls during online inference. LLM-BlockFE constructs feature programs by incrementally appending immutable code blocks and evaluates candidate features using a downstream model. To address the tendency of conventional greedy search to become trapped in suboptimal solutions, our method introduces a block-level rollback mechanism based on depth-calibrated credit allocation and advances multiple independent search trajectories in an interleaved manner, reducing redundant exploration by sharing fixed descriptions of each trajectory's exploration direction. After the search, the resulting programs are frozen and deployed to extract structured features for downstream prediction models. Across two public and two private datasets, LLM-BlockFE achieves absolute AUC improvements of 0.0069 to 0.0358 over the strongest baseline on each dataset in the full-dataset comparison. Post-launch monitoring across five deployed financial risk-control applications shows absolute KS improvements of 0.02 to 1.56 percentage points over the existing manually designed strategy.

Figures & tables

Appendix figures & tables3 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. CoFEE: Reasoning Control for LLM-Based Feature Discovery

    Apr 23, 2026Maximilian Westermann, Ben Griffin, Aaron Ontoyin Yin +6LLM PromptingAutomated Feature Engineering

  2. Eureka: Intelligent Feature Engineering for Enterprise AI Cloud Resource Demand Prediction

    May 24, 2026Hangxuan Li, Renjun Jia, Xuezhang Wu +3LLM-Based Program SynthesisCloud Computing

  3. Adaptive Graph-of-Islands Evolution for Automatic Feature Engineering with LLMs

    Jul 25, 2026Sha Li, Naren RamakrishnanEvolutionary OptimizationLarge Language Model-Guided Optimization