Building Decision Making Models Through Language Model Regime

Yu Zhang, Haoxiang Liu, Feijun Jiang, Weihua Luo, Kaifu ZhangarXiv 2024 · DOI

Abstract

Traditional decision-making systems often lack the generalization capabilities seen in modern Large Language Models (LLMs). Researchers from Alibaba Group propose Learning then Using (LTU), a two-stage framework that treats decision-making as a language modeling task. By performing continued pre-training on state-action-reward sequences followed by task-specific fine-tuning, the LTU approach builds a "foundation decision model" capable of superior performance and cross-domain generalization in complex e-commerce environments.

Introduction

Decision-making (DM) systems, from expert systems to Reinforcement Learning (RL), frequently suffer from "brittleness"—they are often task-specific and fail to generalize across different domains. While Transformer architectures have been applied to DM (e.g., Decision Transformers), they typically skip the foundational pre-training step that has made LLMs so robust. The LTU framework addresses this by mirroring the "pre-train then instruct-tune" paradigm of LLMs for the components of decision-making: State ($S$), Action ($A$), and Reward ($R$).

The LTU Framework

The LTU regime consists of two primary phases:

  1. Data Formulation: Decision contexts are converted into textual triplets $(s, a, r)$. For instance, in an e-commerce setting, the "State" includes product attributes and background, the "Action" is the advertisement content, and the "Reward" is the resulting user engagement (e.g., CTR).
  2. Phase 1: Learning (Continued Pre-training): The model undergoes continued pre-training on a massive corpus of these triplets. This phase allows the model to learn the underlying "syntax" of cause-and-effect across various domains.
  3. Phase 2: Using (Supervised Fine-Tuning): The resulting foundation decision model is fine-tuned for specific downstream tasks, such as predicting the probability of a reward given a state and action: $P(r|s, a)$.
Figure 3: Illustration of the LTU data formulation, mapping complex e-commerce data into State, Action, and Reward components for language modeling.

Experimental Setup

The authors utilized the Llama-2-13b base model and trained it on real-world e-commerce data from Alibaba:

  • SEO (Search Engine Optimization): Product data and user engagement metrics from AliExpress.com (~19.5B tokens).
  • PPC (Pay-Per-Click): Advertisement data from Facebook systems, focusing on CTR and CPC prediction.
  • Common Knowledge: General web text (RefinedWeb, Wudao) used to reach training targets and test the impact of non-decision data.

Key Results and Insights

The LTU approach consistently outperformed standard Supervised Fine-Tuning (SFT) across various metrics.

Performance and Generalization

In PPC tasks, LTU achieved a CTR prediction accuracy of 0.621, compared to 0.599 for standard SFT. Notably, the framework demonstrated strong out-of-domain generalization: a model pre-trained on SEO data outperformed the SFT baseline on PPC tasks by approximately 3%, suggesting that decision-making logic is a transferable skill.

The "Common Knowledge" Penalty

A significant finding was that mixing general web text (common knowledge) into the decision pre-training phase actually degraded performance. High-quality, pure $(s, a, r)$ data proved more effective for building a decision foundation than a mix of general text.

Figure 4: Comparison of accuracy across different tasks and data compositions, highlighting the performance of LTU-PPC and the performance drop when using common knowledge (LTU-Common).

Conclusion

The LTU framework demonstrates that decision-making can be effectively modeled as a language. By building a foundational understanding of decision logic through continued pre-training, models can achieve better generalization and data efficiency than traditional one-stage supervised learning. While currently focused on single-step e-commerce tasks, this architecture provides a scalable path for applying LLM-style regimes to complex, real-world decision-making problems.

Summary updated

BibTeX
@misc{zhang2024building,
  author = {Yu Zhang and Haoxiang Liu and Feijun Jiang and Weihua Luo and Kaifu Zhang},
  title = {{Building Decision Making Models Through Language Model Regime}},
  year = {2024},
  eprint = {2408.06087},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2408.06087},
}
Figure