Optimal word order for non-causal text generation with Large Language Models: the Spanish case

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Busto-Castiñeira, Andrea, García-Méndez, Silvia, de Arriba-Pérez, Francisco, González-Castaño, Francisco J.
Format: Preprint
Publié: 2025
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866910837044674560
author Busto-Castiñeira, Andrea
García-Méndez, Silvia
de Arriba-Pérez, Francisco
González-Castaño, Francisco J.
author_facet Busto-Castiñeira, Andrea
García-Méndez, Silvia
de Arriba-Pérez, Francisco
González-Castaño, Francisco J.
contents Natural Language Generation (NLG) popularity has increased owing to the progress in Large Language Models (LLMs), with zero-shot inference capabilities. However, most neural systems utilize decoder-only causal (unidirectional) transformer models, which are effective for English but may reduce the richness of languages with less strict word order, subject omission, or different relative clause attachment preferences. This is the first work that analytically addresses optimal text generation order for non-causal language models. We present a novel Viterbi algorithm-based methodology for maximum likelihood word order estimation. We analyze the non-causal most-likelihood order probability for NLG in Spanish and, then, the probability of generating the same phrases with Spanish causal NLG. This comparative analysis reveals that causal NLG prefers English-like SVO structures. We also analyze the relationship between optimal generation order and causal left-to-right generation order using Spearman's rank correlation. Our results demonstrate that the ideal order predicted by the maximum likelihood estimator is not closely related to the causal order and may be influenced by the syntactic structure of the target sentence.
format Preprint
id arxiv_https___arxiv_org_abs_2502_14451
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Optimal word order for non-causal text generation with Large Language Models: the Spanish case
Busto-Castiñeira, Andrea
García-Méndez, Silvia
de Arriba-Pérez, Francisco
González-Castaño, Francisco J.
Computation and Language
Natural Language Generation (NLG) popularity has increased owing to the progress in Large Language Models (LLMs), with zero-shot inference capabilities. However, most neural systems utilize decoder-only causal (unidirectional) transformer models, which are effective for English but may reduce the richness of languages with less strict word order, subject omission, or different relative clause attachment preferences. This is the first work that analytically addresses optimal text generation order for non-causal language models. We present a novel Viterbi algorithm-based methodology for maximum likelihood word order estimation. We analyze the non-causal most-likelihood order probability for NLG in Spanish and, then, the probability of generating the same phrases with Spanish causal NLG. This comparative analysis reveals that causal NLG prefers English-like SVO structures. We also analyze the relationship between optimal generation order and causal left-to-right generation order using Spearman's rank correlation. Our results demonstrate that the ideal order predicted by the maximum likelihood estimator is not closely related to the causal order and may be influenced by the syntactic structure of the target sentence.
title Optimal word order for non-causal text generation with Large Language Models: the Spanish case
topic Computation and Language
url https://arxiv.org/abs/2502.14451