Exploring Chunk Based Templates for Generating a subset of English Text
Paper · 2018 · Nikhilesh Bhatnagar, Manish Shrivastava and Radhika Mamidi
Summary
The paper addresses tactical generation: producing a grammatical English sentence in isolation that satisfies given constraints, such as a partial bag-of-words, fixed token positions or required ordering. Rather than handcrafting templates, the authors mine them automatically from English Wikipedia. Each chunk becomes a template after abstraction. Named entities are replaced by category symbols, some POS classes are collapsed to their tags, and the remaining content words are mapped to KMeans clusters of token–POS embeddings. Stopwords and punctuation stay literal. Because every template is copied from real text, it is grammatical internally, so the open problem is only how to join templates.
Generation is treated as search. An evolutionary algorithm assembles template sequences under per-slot constraints. Its fitness function combines n-gram log-probabilities over chunk tags, chunk layouts, junctions, heads and lexical clusters. Finally, the cluster slots are filled with the requested words.
The evaluation consists only of example outputs, which are often syntactically plausible but semantically odd. The work matters as a corpus-driven, inspectable alternative to hand-written templates.
Key points
- Templates were extracted from English Wikipedia using Stanford CoreNLP, spaCy and LM-LSTM-CRF for tagging, NER and chunking. Clustering used lexvec vectors with k = 7500 token–POS clusters.
- The fitness score is a weighted sum of five length-normalized n-gram scores (chunk, construction, junction, head, lexical) with empirically chosen weights of 75, 10, 10, 5 and 2.
- The evolutionary search works as follows:
- population of 1000 organisms, run for 100 generations;
- elitist selection, with the first half of the population mutated into the second half;
- 25% of the population re-initialized each generation;
- at least 8% of organisms must have unique blank layouts and 15% unique extended POS layouts.
- Template selection uses Zipf dampening with exponent 0.4, because otherwise NP chunks dominate (about 40% of picks).
- Generation took about 150 seconds and 2.2 GB of memory. The authors note biases toward sentences opening with "the" NPs and chains of VPs/PPs. Questions only appear when the wh-word position is constrained.
Interesting ideas
- I1. Build sentences by joining corpus fragments that are already well-formed internally, so the scorer only has to judge the seams between them rather than every word.
- I2. Score a candidate with several separate n-gram models over different abstraction layers (chunk tags, chunk layouts, junction tokens, heads, lexical clusters) and combine them with explicit weights.
- I3. Flatten a skewed Zipf distribution with a dampening exponent, so rare categories still get sampled while frequency preferences survive.
- I4. Describe a chunk by its layout, with content words blanked or replaced by POS while function words and punctuation are kept, giving a compact construction signature.
- I5. Cluster word embeddings per token–POS pair instead of per word form, so that each syntactic use of an ambiguous word gets its own class.
For Mova
How these ideas could serve Mova, our small open language model — its files, stages and tests:
- I1 (back): Generation from the meaning graph could stitch verified phrase-level realizations taken from parsed text, and focus checking effort on boundaries between them.
- I2 (back): Each sub-score explains which aspect of a generated sentence is weak, which fits Mova's requirement that every step be explainable.
- I3 (learn): When sampling sentences for silver data or self-play, damping keeps rare constructions from being drowned out by common NP-heavy patterns.
- I4 (learn): Such signatures could serve as keys for grouping parser errors and indexing self-induced repair rules by construction type.
- I5 (tokens): POS-split clusters could provide backoff classes for rare lemmas in the tagger and morphology, without merging noun and verb behavior.
Institutions
Fields, topics and concepts
📚 Shelves 4The field of science this work belongs to (OpenAlex fields).Computer Science · 18,614 worksArtificial Intelligence · 17,965 worksArts and Humanities · 17,450 worksLanguage and Linguistics · 17,296 works
🧭 Topics 1Research subjects and languages the work is about.English · 2,379 works
Cite
Cite as Nikhilesh Bhatnagar, Manish Shrivastava and Radhika Mamidi. 2018. Exploring Chunk Based Templates for Generating a subset of English Text. Proceedings of ACL 2018, Student Research Workshop.
@inproceedings{bhatnagar2018exploring,
title = {{Exploring Chunk Based Templates for Generating a subset of English Text}},
author = {Nikhilesh Bhatnagar, Manish Shrivastava and Radhika Mamidi},
booktitle = {Proceedings of ACL 2018, Student Research Workshop},
year = {2018},
doi = {10.18653/v1/p18-3017},
url = {https://doi.org/10.18653/v1/p18-3017}
}References
- Nikhilesh Bhatnagar and Radhika Mamidi. 2016. Experiments in linear template combination using genetic algorithms. 22nd Himalayan Languages Symposium. find
- Dimitrios Galanis and Ion Androutsopoulos. 2007. Generating multilingual descriptions from linguistically annotated owl ontologies: the naturalowl system. In Proceedings of the Eleventh European Workshop on Natural Language Generation, pages 143–146. Association for Computational Linguistics. find
- Matthew Honnibal and Ines Montani. 2017. spacy 2: Natural language understanding with bloom embeddings, convolutional neural networks and incremental parsing. To appear. find
- Ravi Kondadadi, Blake Howald, and Frank Schilder. 2013. A statistical nlg framework for aggregated planning and realization. In ACL (1), pages 1406– 1415. find
- L. Liu, J. Shang, F. Xu, X. Ren, H. Gui, J. Peng, and J. Han. 2018. Empower Sequence Labeling with Task-Aware Neural Language Model. In AAAI.
- Christopher D. Manning, Mihai Surdeanu, John Bauer, Jenny Finkel, Steven J. Bethard, and David Mc-Closky. 2014. The Stanford CoreNLP natural language processing toolkit. In Association for Computational Linguistics (ACL) System Demonstrations, pages 55–60. ↗
- Ehud Reiter and Robert Dale. 2000. Building natural language generation systems. Cambridge university press. find
- Alexander I Rudnicky and Alice H Oh. 2002. Dialog annotation for stochastic generation. find
- Alexandre Salle, Marco Idiart, and Aline Villavicencio. 2016. Matrix factorization using window sampling and negative sampling for improved word representations. CoRR, abs/1606.00819. ↗
- Kees Van Deemter, Emiel Krahmer, and Mariët Theune. 2005. Real versus template-based natural language generation: A false opposition? Computational Linguistics, 31(1):15–24. find
Updated
This page in Markdown → https://md.research.elamur.ai/free/en/papers/bhatnagar-2018-exploring-chunk-based-templates-generating/