NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Using Integer Linear Programming for Content Selection, Lexicalization, and Aggregation to Produce Compact Texts from OWL Ontologies

Gerasimos Lampouras, Ion AndroutsopoulosENLG 2013

Abstract: Traditional Natural Language Generation (NLG) systems typically follow a pipeline architecture, making sequential decisions that often lead to wordy and repetitive text. This paper presents a novel approach using Integer Linear Programming (ILP) to jointly optimize content selection, lexicalization, and aggregation. By treating generation as a global optimization problem, the system produces more compact and readable descriptions from OWL ontologies. Results show that this joint optimization significantly increases information density and improves human-rated quality for complex descriptions.

The Pipeline Bottleneck

Most NLG systems operate as a sequence of independent stages: selecting facts, planning their order, choosing words (lexicalization), and finally merging sentences (aggregation). This "pipeline" approach suffers from a "greedy" decision-making process. A choice made early—such as selecting a specific set of facts—may preclude elegant aggregation opportunities later. For instance, a system might pick two important facts that cannot be combined into a single concise sentence, resulting in disjointed and verbose output.

Joint Optimization via ILP

To overcome these limitations, the authors propose an ILP model that handles these decisions simultaneously. The model's objective function is designed to maximize the total importance of selected facts while minimizing the total number of unique linguistic elements (words and phrases) used. This mathematical formulation naturally incentivizes the system to find "aggregation shortcuts"—selecting facts that can be compactly expressed together.

Figure 1: Information density (facts per word) of the ILP model compared to pipeline baselines on the Wine ontology dataset.

The model includes constraints to ensure linguistic coherence, such as requiring exactly one sentence plan per selected fact and preventing the merging of facts from unrelated topical sections.

Scaling with Approximation

While the full ILP model provides a global optimum, the underlying problem is NP-hard, making it computationally expensive for long texts. To address this, the authors introduced an approximation method, ILPNLGAPPROX. Instead of a global search, this method iteratively selects the best single sentence (the one with the highest importance-to-cost ratio), removes the included facts from the pool, and repeats the process. This greedy approximation maintains high efficiency while still capturing many of the benefits of joint optimization.

Figure 4: Average execution time of the ILPNLGAPPROX method as the number of available facts increases.

Evaluation and Results

The system was evaluated on two OWL ontologies: a Wine ontology (short descriptions) and a Consumer Electronics ontology (long descriptions).

  • Efficiency: In the Wine ontology experiments, the ILP model achieved a significantly higher facts-per-word ratio than the pipeline baselines, as shown in Figure 1. It successfully packed more information into fewer words.
  • Human Quality: For short wine descriptions, human judges found the ILP and pipeline outputs comparable. However, for the longer electronics descriptions, the ILP approximation significantly outperformed the pipeline. On a 1-5 scale, the ILP version scored 4.73 overall, compared to 4.10 for the pipeline. Judges specifically noted better clarity and structure in the more compact ILP texts.
  • Speed: The approximation method proved highly scalable. As shown in Figure 4, even with 21 available facts, the generation time remained well under 0.03 seconds, making it suitable for real-time applications.

Conclusion

This research demonstrates that moving from a pipeline to a joint optimization framework is a powerful way to produce high-quality, compact text. By considering how facts will be aggregated at the moment they are selected, the ILP model avoids the verbosity common in traditional NLG. Future work aims to integrate text planning and referring expression generation directly into the ILP framework to create a truly end-to-end global optimizer for natural language generation.

Summary updated

BibTeX
@inproceedings{lampouras2013using,
  author = {Gerasimos Lampouras and Ion Androutsopoulos},
  title = {{Using Integer Linear Programming for Content Selection, Lexicalization, and Aggregation to Produce Compact Texts from OWL Ontologies}},
  booktitle = {ENLG},
  year = {2013},
  url = {https://openreview.net/forum?id=XBDhtNGnkLY},
}
Figure