Prompting for Numerical Sequences: A Case Study on Market Comment Generation

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Kawarada, Masayuki, Ishigaki, Tatsuya, Takamura, Hiroya
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866911826070994944
author Kawarada, Masayuki
Ishigaki, Tatsuya
Takamura, Hiroya
author_facet Kawarada, Masayuki
Ishigaki, Tatsuya
Takamura, Hiroya
contents Large language models (LLMs) have been applied to a wide range of data-to-text generation tasks, including tables, graphs, and time-series numerical data-to-text settings. While research on generating prompts for structured data such as tables and graphs is gaining momentum, in-depth investigations into prompting for time-series numerical data are lacking. Therefore, this study explores various input representations, including sequences of tokens and structured formats such as HTML, LaTeX, and Python-style codes. In our experiments, we focus on the task of Market Comment Generation, which involves taking a numerical sequence of stock prices as input and generating a corresponding market comment. Contrary to our expectations, the results show that prompts resembling programming languages yield better outcomes, whereas those similar to natural languages and longer formats, such as HTML and LaTeX, are less effective. Our findings offer insights into creating effective prompts for tasks that generate text from numerical sequences.
format Preprint
id arxiv_https___arxiv_org_abs_2404_02466
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Prompting for Numerical Sequences: A Case Study on Market Comment Generation
Kawarada, Masayuki
Ishigaki, Tatsuya
Takamura, Hiroya
Computation and Language
Artificial Intelligence
Computational Engineering, Finance, and Science
Large language models (LLMs) have been applied to a wide range of data-to-text generation tasks, including tables, graphs, and time-series numerical data-to-text settings. While research on generating prompts for structured data such as tables and graphs is gaining momentum, in-depth investigations into prompting for time-series numerical data are lacking. Therefore, this study explores various input representations, including sequences of tokens and structured formats such as HTML, LaTeX, and Python-style codes. In our experiments, we focus on the task of Market Comment Generation, which involves taking a numerical sequence of stock prices as input and generating a corresponding market comment. Contrary to our expectations, the results show that prompts resembling programming languages yield better outcomes, whereas those similar to natural languages and longer formats, such as HTML and LaTeX, are less effective. Our findings offer insights into creating effective prompts for tasks that generate text from numerical sequences.
title Prompting for Numerical Sequences: A Case Study on Market Comment Generation
topic Computation and Language
Artificial Intelligence
Computational Engineering, Finance, and Science
url https://arxiv.org/abs/2404.02466