Revisiting Compositional Generalization Capability of Large Language Models Considering Instruction Following Ability

Yusuke Sakai, Hidetaka Kamigaito, Taro Watanabe

Abstract

In generative commonsense reasoning tasks such as CommonGen, generative large language models (LLMs) compose sentences that include all given concepts. However, when focusing on instruction-following capabilities, if a prompt specifies a concept order, LLMs must generate sentences that adhere to the specified order. To address this, we propose Ordered CommonGen, a benchmark designed to evaluate the compositional generalization and instruction-following abilities of LLMs. This benchmark measures ordered coverage to assess whether concepts are generated in the specified order, enabling a simultaneous evaluation of both abilities. We conducted a comprehensive analysis using 36 LLMs and found that, while LLMs generally understand the intent of instructions, biases toward specific concept order patterns often lead to low-diversity outputs or identical results even when the concept order is altered. Moreover, even the most instruction-compliant LLM achieved only about 75% ordered coverage, highlighting the need for improvements in both instruction-following and compositional generalization capabilities.

Introduction: The Gap in Generative Commonsense Reasoning

The field of Generative Commonsense Reasoning (GCR) has long utilized benchmarks like CommonGen to evaluate whether Large Language Models (LLMs) can synthesize coherent sentences from a provided "concept set" (e.g., {dog, catch, frisbee, throw}). While modern LLMs excel at including these keywords, standard evaluations typically ignore the sequence in which they appear.

In real-world scenarios—such as describing a chronological sequence of events, following a specific narrative plan, or writing structured content—the order of concepts is paramount. If a user specifies that "the sun rises" should precede "the alarm rings," a model that reverses this order fails the instruction, even if the resulting sentence is grammatically perfect. This paper introduces Ordered CommonGen, a benchmark that bridges the gap between compositional generalization (combining ideas) and strict instruction-following.

Illustration of the Ordered CommonGen task showing how models must adhere to a specific concept sequence.

Methodology: The Ordered CommonGen Benchmark

The researchers developed Ordered CommonGen by introducing spatial constraints to the standard GCR task. The framework involves:

  1. Permutation Generation: Starting with concept sets of four words from CommonGen-lite (192 sets), the authors generated all 24 possible permutations ($4!$) for each set, resulting in a total of 4,608 unique test instances.
  2. Instructional Framework: They utilized six distinct prompt templates from the FLAN collection, modified with the specific constraint: "in the specified order."
  3. Evaluation Metrics:
    • Ordered Rate: The percentage of outputs where concepts appear in the exact requested sequence.
  4. Diverse Rate: Measures how frequently a model produces unique sentences when the input order is varied.
  5. pBLEU/pBLEURT: Quantifies the similarity between sentences generated for different permutations of the same set.
  6. Perplexity: Assesses whether forcing a specific order degrades the linguistic quality of the output.

Key Insights: The "Naturalness" Trap and POS Biases

A primary finding is the "Naturalness" Trap. LLMs possess strong linguistic priors; if a requested order is linguistically awkward or rare in their training data, models often silently reorder the concepts to match more frequent patterns. They prioritize fluency over strict adherence to the prompt's structural constraints.

Furthermore, the study revealed that verbs are significantly harder to order than nouns. Analysis of Part-of-Speech (POS) patterns showed that models struggle most with "verb-heavy" sets (e.g., four consecutive actions). The variance in performance for these sets suggests a fundamental weakness in composing complex action sequences compared to simple object descriptions.

Comprehensive Performance Analysis

The study evaluated 36 LLMs, ranging from 1B parameter models to state-of-the-art giants.

Comparative performance metrics for 36 LLMs on the Ordered CommonGen benchmark.

Key Results:

  • Best in Class: Llama 3.1-405B achieved the highest Ordered Rate at 75.26%. While this is the state-of-the-art, it implies that even the most powerful open model fails to follow a simple four-word ordering instruction approximately 25% of the time.
  • Instruction Awareness: Explicitly adding "in the specified order" improved performance across nearly all models. This indicates that LLMs "understand" the instruction's intent but often lack the "capability" to execute it against their internal linguistic biases.
  • The Problem of Duplicate Outputs: Many smaller models, such as Gemma 2-2B, exhibited low diversity. For a set like {dock, dog, jump, water}, these models might output "The dog jumped off the dock into the water" for every one of the 24 permutations, completely ignoring the requested sequence in favor of a single "safe" sentence.
  • Reasoning-Enhanced Models: Models like o1-mini showed notable improvements over their base versions, suggesting that Chain-of-Thought reasoning helps in resolving complex ordering constraints.

Conclusion and Future Directions

Ordered CommonGen highlights a significant limitation in current LLMs: the tension between generating "natural" text and following structural instructions. While models are becoming better at including concepts, their ability to compose them in a user-defined sequence remains imperfect.

Future research should address these limitations by expanding language support, increasing concept set complexity, and developing training techniques that allow models to follow awkward orders without sacrificing grammatical integrity.

Summary updated

BibTeX
@inproceedings{sakai2025revisiting,
  author = {Yusuke Sakai and Hidetaka Kamigaito and Taro Watanabe},
  title = {{Revisiting Compositional Generalization Capability of Large Language Models Considering Instruction Following Ability}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
  url = {https://openreview.net/forum?id=mzZ31W7Da7},
}
Figure