Elamur Research

Generating Acrostics via Paraphrasing and Heuristic Search

Paper · 2014 · Benno Stein, Matthias Hagen and Christof Bräutigam

Summary

An acrostic hides a word or phrase in the letters that begin consecutive lines. Putting a chosen acrostic into existing prose is a rewriting problem as much as a formatting problem. A line must start with the required letter, fit the allowed width, and leave the right material for the next line. Meanwhile, the prose should still say what it said before. In Generating Acrostics via Paraphrasing and Heuristic Search, the authors use this combination of demands to study how a program can choose and coordinate many small changes to a text.

The method treats each intermediate version of the text as a point in a search. The program can try a new line break, hyphenate a word, substitute a synonym, or insert or delete a word. Each move creates an alternative that may fit the next required letter. The search ranks alternatives by the cost of the edits already made and an estimate of the effort still ahead. That estimate draws on how frequently letters start words and whether parts of the target might be handled independently. The edit costs give a conspicuously bad change more influence than a small blemish.

In experiments on news articles, emails, and encyclopedia articles, the full system succeeded in about 20% of runs overall under the study's resource limits. A baseline restricted to line breaks and hyphenation succeeded in less than 1% of test cases. Because the benchmark stipulated that the acrostic begin where the text itself begins, the first letter carried particular weight. When the target came from the text's own opening, so that its first letter was already in place, success approached 90%. Successful searches usually took less than 30 seconds, after about one minute of preprocessing per run.

The completed rewrites generally used more common words and scored as easier to read on the paper's automatic measures. Correctly spelling the acrostic and preserving the quality of the prose remained separate challenges. Unconventional hyphenation accounted for 37.63% of operator use on successful paths, and the scoring formulas for readability missed the visual awkwardness of those breaks. The paper establishes that small, individually scored changes can be coordinated to meet a demanding constraint on prose. Its results also show how much depends on the opening conditions and on what the search is willing to count as an acceptable edit.

Deep dive: Generating Acrostics via Paraphrasing and Heuristic Search

How heuristic search rewrites and wraps existing prose to spell a target acrostic, and what the experiments reveal about success and readability. · about 36 minutes to read

The problem and its context

Why a letter at the edge changes the whole line

An acrostic has two readings. The ordinary reading runs across each line and continues onto the next. The acrostic is read down the left edge, using the first letters of successive lines. A writer composing from scratch can choose what to say around those letters. The task in this paper begins with an existing passage whose meaning is supposed to carry over. The system has to find a way to express that material while placing the right letters at the edge of the page. It is a constrained form of text generation.

The paper opens with a letter from Arnold Schwarzenegger to the Californian State Assembly. An acrostic is visible in the opening letters of lines across successive paragraphs. The authors use the example to ask how often such a pattern would arise by chance. Their illustrative estimate is 1.15 · 10⁻¹² for that particular acrostic. It uses initial-letter frequencies from the British National Corpus and assumes independence between the initials of words separated by more than ten words. The estimate concerns an incidental match under that assumption. It gives the authors a reason to consider purposeful alteration of the prose and its layout.

Their formal task supplies the text, the target letters, and lower and upper bounds on line length. Monospaced output makes the width constraint a matter of counting characters. In the general problem, the acrostic may occupy a consecutive stretch within the output. The paper also permits the last line of a paragraph to be short in its worked example. These details matter because ordinary paragraph layout gives a writer opportunities to change where a line starts, but the width restriction limits how far any individual break can move.

Suppose a line currently starts with the right letter. A change to that line can still affect later letters. Ending it earlier might leave the next required initial beyond the permitted width of the following line. Replacing a word with a longer expression might make the next break possible, while also moving a later word away from the position where it was needed. A decision about the present line therefore has to be judged in the context of a passage that has yet to be laid out. Even a perfectly acceptable local rewrite can lead to a dead end.

The paper's Turing example also shows what the linguistic requirement adds. The original biographical prose identifies Turing's fields and describes his influence on computer science. The authors show a revision whose line initials spell his surname. They observe that it introduces a more emphatic attitude towards his accomplishments. The target letters and line widths can be inspected directly. Whether the change in tone is acceptable depends on the standards of the source text, in this case the neutrality expected of an encyclopedia. An acrostic benchmark brings the formal and linguistic demands into view at the same time.

What earlier paraphrase research supplied

The authors situate the task within paraphrasing, where a writer changes the expression of some content while trying to retain its meaning. Their review distinguishes the acquisition of possible paraphrases from the production of a usable revision. A collection of phrase pairs can supply options for an edit. A generator working on a particular passage still has to find an applicable pair, judge the result in context, and decide whether the edit helps meet the task's constraints.

Much of the acquisition research discussed in the paper begins with parallel material. Different accounts of an event can express the same facts in different words. Several translations of a common source can also offer alternative formulations. Bilingual resources give another way of identifying expressions with related meanings. The material provides evidence about which pieces of text might be exchanged, with different methods for aligning the passages or limiting the kinds of alignment they accept. The paper draws on work including Extracting Paraphrases from a Parallel Corpus and Paraphrasing with Bilingual Parallel Corpora.

In the authors' account, the effort of building and judging early collections limited their size and made some of their expressions specific to the source domain. They give METER as an example with 1717 texts from legal and entertainment coverage. The Microsoft Research paraphrase corpus has 5801 sentence pairs in their account. A collection can contain valuable examples while offering little help with a sentence far from the material it samples. Larger automatically acquired collections broaden the supply of candidate expressions. The paper makes selective use of one such resource, PPDB, and discusses the paired news sentences of the Microsoft Research Paraphrase Corpus.

The paper also reviews earlier approaches to generation. A learned pattern can describe a situation in which a rewrite is possible. Its usefulness depends on encountering a sentence that matches the pattern, and the authors emphasize how rarely intricate patterns may match the text at hand. A translation approach can generate an alternative expression in the same language, drawing on parallel data to do so. The paper points to the cost of acquiring that data. These are different routes to building a repertoire of edits, represented in the review by Learning to Paraphrase and Monolingual Machine Translation for Paraphrase Generation.

A thesaurus supplies a more local kind of alternative. A synonym can be proposed for a word at a particular position, and evidence from surrounding words can help judge whether it belongs there. Earlier work discussed by the authors also uses statistical evidence to generate or select paraphrases. These lines of research supply ways of proposing and judging individual changes. The acrostic task adds a reason to consider the consequences of those changes beyond the sentence in which they occur. The review describes the sentence as the usual unit of earlier generation work, while the new task requires the layout of consecutive lines across prose.

The paper takes a practical approach to that difference. A typographic break, a synonym replacement, and an insertion all enter the same search as possible actions. Each action can affect the visible line structure, and each can be assigned a cost. The algorithm can then compare a rewrite that offers an easy next letter at considerable linguistic expense with one that preserves the text better but leaves a harder continuation. The contribution depends on this coordination. A resource that lists excellent paraphrases on its own has no way to tell which sequence of changes will give a particular passage the required left edge.

The method, step by step

From the original passage to a search state

The input passage is denoted by T, and the requested acrostic by x. The line-length bounds are lₘᵢₙ and lₘₐₓ. The requested output, T*, is a version of the passage in monospaced type that satisfies the formatting rules and contains the acrostic. The search starts with the original passage and considers alternatives made by applying editing or formatting operations, which the paper calls operators. An operator can have parameters, such as the position at which to break a line or the replacement to try at a particular word.

A state represents a version of the text together with the acrostic problem still associated with it. For instance, a state can reflect decisions that deliver a prefix of the target and leave its suffix to be found. Applying an operator leads to a successor state. The original state is s, and Γ is the set of goal states. A member of that set is denoted by γ. A successful run discovers a path from the original state to a goal. The steps on the path record the changes that deliver the required layout.

This representation gives the search a way to revisit an earlier decision in substance. It can leave one alternative waiting while it explores another. A tempting line break may be easy to reach but expensive to continue from. The search can later expand a different version in which an earlier word was changed and the line ends elsewhere. Choosing which version to expand requires a score that reflects both the changes already committed on that path and the prospects for spelling the remaining letters.

Rewriting and laying out prose for an acrostic

The steps in order.

Rewriting and laying out prose for an acrosticStep 1: Take the passage, target letters, and line bounds1. Take the passage, target letters, and line boundsStep 2: Prepare candidate edits and their context evidence2. Prepare candidate edits and their context evidenceStep 3: Generate alternatives with edits and line breaks3. Generate alternatives with edits and line breaksStep 4: Check line widths and required initials4. Check line widths and required initialsStep 5: Estimate the cost of completing each alternative5. Estimate the cost of completing each alternativeStep 6: Expand the most promising pending state6. Expand the most promising pending stateStep 7: Return a passage that spells the target7. Return a passage that spells the target

Why the search sometimes has to reconsider earlier lines

The authors use two graph structures to explain the dependencies. An OR node represents a choice among alternatives. For a line, the search might choose among a break at a space, a hyphenated break, or a verbal change that makes a different break feasible. A path through successive choices is a candidate route to a finished passage. An AND node expresses a different relationship. It represents a problem that can be split into parts, each of which needs a solution. If layout decisions for the first part of an acrostic leave the second part unaffected, the search effort for those parts can be considered separately.

A change within a paragraph can have consequences downstream because it can change every later point where a line wraps. Paragraph boundaries can sometimes stop such a change from propagating. An operator that preserves line breaks can also leave an existing boundary intact. A multiword target whose parts fall in different paragraphs offers another potential opportunity to split the work. Whether such a split is safe depends on the text and the available edits. The paper expresses that uncertainty through a probability of independent treatment rather than requiring the system to identify a valid partition for every intermediate passage.

The distinction affects the estimate of search effort. If two partial acrostics can be completed independently, the costs of finding their solutions add. When the parts interact, attempts on the first part may lead to repeated attempts on the second, so the authors represent the combined effort with a product. Their estimate interpolates between those cases.

E(x) = ⎧ e(x)                                                         if |x| = 1
       ⎩ Pᵧ∘𝓏(|x|) · (E(y) + E(z)) + (1 − Pᵧ∘𝓏(|x|)) · E(y) · E(z)   if |x| > 1

Here x is the target acrostic under consideration and |x| is its length in letters. For a target longer than 1, y and z are consecutive parts that form x when joined, with ∘ denoting that joining. E is the effort assigned to the whole target or to either part. The base case e(x) is the effort for a single letter and is at least 1. Pᵧ∘𝓏(|x|) is the probability that the parts can be handled independently. The probability weights the additive term, and its complement weights the multiplicative term. At probability 0 the combination is entirely multiplicative. At probability 1 the combination is entirely additive.

The single-letter estimate uses the reciprocal of the probability that a word begins with that letter. Those probabilities come from the British National Corpus, which contains 100 million words of spoken and written material. The paper reports an initial-letter probability of 0.115719 for s and 0.00005 for z. With reciprocals, a letter that very seldom starts a word contributes more effort than a common initial. The estimate describes the language resource, so a rare initial that happens to be conveniently placed in a specific passage can still be easy to produce there.

For the partition probability the authors propose N(5, 0.5), a normal distribution they motivate through paragraph lengths in the prose or the character lengths of words in the acrostic. Applying their choices for the single-letter effort and the split probability gives Ê, the estimated form of E. The search uses it on the target suffix left at the current state. This use is deliberately indirect. The estimate reflects the expected difficulty of the letters and the extent to which the remaining jobs can interact. It does not have to predict exactly where the text will next be cut.

An additional complication is that different edit sequences can generate the same state. The paper discusses OPEN and CLOSED lists for tracking the status of generated nodes. OPEN holds candidates awaiting exploration. CLOSED records the states already explored. Checking those records can save repeated work, but state descriptions have to reflect the effects of earlier edits. The authors discuss hash tables and key-value stores as possible ways to manage those checks at scale. In the experiments, the size of the pending list ultimately limits unsuccessful runs.

Giving an edit a cost

The quality scheme starts from the original passage as the reference. Every edit is assessed in terms of what it preserves or degrades relative to that starting point. The paper assumes that several changes influence the quality of the result and that a serious defect can weigh disproportionately. A text with a conspicuous error can be worse for a reader than a text with several slight awkwardnesses. The scoring rule represents that concern by putting reciprocal local qualities into an additive cost.

1 / Q*(n) = ⎧ 0                                       if n ∈ Γ
            ⎩ minᵢ {1 / q(n, nᵢ) + 1 / Q*(nᵢ)}         otherwise

n is the current state, nᵢ is one of its direct successors, and i indexes the alternatives. q(n, nᵢ) is the local quality of the operator taking the search from n to nᵢ. The paper assigns q a range from 0 for the worst quality to 1 for the best. In the reciprocal cost, the lower endpoint represents the limiting case of an unbounded penalty. Q*(n) denotes the best attainable unnormalized quality from n. The recurrence minimizes its reciprocal over the successors, as indicated by minᵢ. The ∈ sign indicates membership in the goal set Γ. A goal has 0 further cost, and other states add the cost of their next edit to the best cost of completing the path from its successor.

The effect of the reciprocal is easiest to see by following a path with a weak edit. As the quality assigned to that edit falls towards its lower endpoint, its cost grows more sharply. High-quality moves have much less effect on the total. Costs can still be added as the search goes, which means that choices after the current state cannot alter the cost already incurred along the path to it. The paper calls this the parent discarding property. A cost accumulated so far can therefore be carried forward when evaluating a continuation.

A raw quality based on accumulated cost also reflects the length of the target. For comparisons, the authors multiply by the number of letters in the acrostic.

Q̄* = |x| · Q*

Q̄* is the normalized overall quality, Q* is the unnormalized quality, and |x| is the number of letters in the target x. The dot indicates multiplication. The paper describes the resulting aggregation in terms of the harmonic mean and gives 0 and 1 as the endpoints of the normalized quality scale. The reciprocal penalty is what allows a weak operation to have a large influence on that overall assessment.

The worked example lays out a paragraph about Alan Turing with lₘᵢₙ = 55 and lₘₐₓ = 60. The authors assign q = 1.0 to each of the opening lines of the acrostic. They give the change from an account of Turing's influence to a claim that he revolutionized the field a local quality of 0.9, observing that the stronger claim introduces an exaggerating tone. They assign 0.6 to an unexpected division of a short word and 0.6 to the change that describes computation as definite and splits the added word across lines. The change to a form of “regarded,” with a more acceptable split, receives 0.7. The resulting unnormalized quality is 0.127, and the normalized example scores 0.76.

That worked example separates several judgments that are easy to conflate. An action can make the right letter available and still be questionable as an edit. A new word can sit smoothly in a sentence and still alter the claim or tone. And a plausible synonym can arrive alongside an awkward break, so the overall change deserves an assessment that takes both into account. The paper uses the example to motivate the scoring structure. Some illustrative changes, including the tautological addition, come from operator ideas that were excluded from the main experiment.

Ranking the unfinished paths

The experiment uses A* search. Its ranking function includes g(n), the cost already incurred on the current path, and h(n), the estimated cost of finishing from state n. The search can favor an incomplete candidate whose path is inexpensive so far and whose remaining letters look manageable. The heuristic estimate also lets it consider a more costly partial solution if an alternative leaves a difficult continuation.

f(n) = g(n) + h(n)

f(n) is the estimated total cost used to rank state n. g(n) is the accumulated cost of getting to n along the particular path being considered. h(n) estimates the additional cost from n to a goal. The plus sign combines the known cost with the estimate. The paper uses an optimistic estimate in the experimental search, meaning that the cost forecast for the rest of the path is intended to be a lower bound.

To construct h, the authors use the effort estimate for the remaining letters. They take its logarithm to put it on a scale related to the number of steps still needed and multiply by the cost of an edit at the best available quality. The full expression writes out both parts of the ranking function.

Q̂(n) = ∑ᵏᵢ₌₁ 1 / q(nᵢ₋₁, nᵢ) + logₖ(Ê(τ(n))) · (1 / qₘₐₓ)

Q̂(n) is the paper's estimate used as f(n) for the current state n. The summation sign ∑ adds up the reciprocal local edit qualities q for the path steps indexed by i. The path starts at n₀ = s, where s is the original state, and ends at nₖ = n, where k is the number of steps on that path. nᵢ₋₁ and nᵢ are the states before and after the edit indexed by i. That sum is g(n). The lower-case subscript typography on logₖ denotes the logarithm base K, which is distinct from the path index limit k. τ(n) gives the suffix of the acrostic left at n, and Ê estimates the effort for that suffix. qₘₐₓ is the best quality assumed for a remaining operation. Its reciprocal gives the assumed cheapest cost per remaining step. The logarithm times that reciprocal is h(n).

The default base K is the reciprocal of the word-initial probability of the rarest letter in the remaining suffix. The paper uses this choice to bound the logarithm of estimated effort by the number of letters left. It also favors independent decomposition in the effort estimate and allows the search to use 1.0 as an upper bound on the quality of a future edit. These choices make the calculation optimistic about the size and price of the remaining work. Under the authors' stated conditions, the heuristic is admissible. In search terminology, that means the heuristic is designed to avoid overestimating the cost to a goal, which supports the minimum-cost guarantee with the paper's delayed termination condition.

There is a practical cost to optimism. An estimate far below the eventual completion cost tells the search little about which unfinished path deserves attention. With a very small estimate for the remaining work, ranking depends mainly on the cost already incurred and the behavior approaches uniform-cost search. The authors describe a way to tune the degree of depth preference by varying the base between Kₘᵢₙ, obtained from the most frequent of the remaining initials, and Kₘₐₓ, obtained from the least frequent. The larger base gives a smaller logarithm for the same effort estimate. Using a different base trades the paper's conservative bound for a stronger preference about which branches to pursue. The main runs use an admissible setting.

Where candidate edits come from

The paper groups its operators by how much linguistic evidence they need. The simpler ones can be proposed from formatting rules or prepared lists. Their classification as context-independent describes the way they generate candidates. The acceptability of an individual change can still depend on the passage. Swapping a connective, for instance, can alter the relation between clauses even if the words belong to a group the procedure treats as interchangeable.

The simplest action breaks a line between words. Ordinary interword breaks must fall inside the width window. The procedure can also break at a sentence boundary to form a paragraph. A related operator uses the authors' implementation of the TeX hyphenation algorithm to break within a word. The part left on the current line must allow it to meet the width limits. Starting the next line with the rest of a word expands the set of available initials beyond the letters that began words in the original passage.

The authors also allow deliberately unconventional hyphenation. A nonstandard split can expose a character in a position where normal line breaks or standard hyphenation would fail to expose it. The operator is penalized for quality and restricted to avoid particularly conspicuous fragments, such as placing a piece of just two letters on the next line. Its appeal to the search is straightforward. The requested letter can be available inside a word even when it is scarce at word beginnings. Its cost to the reader is equally direct, since the interruption is visible at the very place that carries the acrostic.

Other context-independent operators change the lengths or forms of words. The authors assemble 40 groups of function words from a published list and PPDB. Candidate exchanges include some expressions that mark contrast or consequence. They collect 240 English contraction and expansion pairs from Wikipedia, along with several thousand acronyms mined from the Web. An expression can be shortened or expanded through these paired forms, and small numbers may be written out or rendered as numerals. Such edits can shift the position of a later break even when they take place away from the letter the search needs.

The spelling operator draws on 3,000 common misspellings gathered from Wikipedia. It also allows some errors suggested by keyboard substitutions and sound similarities. The authors limit the changes to word interiors because an error at the beginning of a word would be less customary. The operator can change a word's length or the letters exposed by a split. Its low quality puts it at a disadvantage when an ordinary operation offers a comparable route to the goal.

The context-dependent synonym operator starts with WordNet. Its synsets provide groups of words associated with a sense, giving the procedure a set of possible substitutes. The authors use surrounding phrasing to screen these options. They check whether the Google corpus contains the proposed substitute in the corresponding context, using Netspeak to query the corpus. The underlying units are n-grams, sequences of consecutive words whose observed frequencies provide the evidence.

The Google sequences are up to five words long, so the authors can check up to four context words around the replacement. They draw on a minimum of two words preceding or following a candidate and give preference to evidence that matches on either side of it simultaneously. One benefit of this check is that it asks about the proposed word in a phrase resembling the current passage. A synonym list alone can supply an option appropriate for a different use of the original word. The corpus query gives the search a way to prefer options that have actually occurred with the surrounding phrasing. The paper connects the use of wider context to earlier work including Aligning Needles in a Haystack.

Insertion and deletion use the same kind of local evidence. The system queries the corpus for a word that occurs frequently enough between existing neighbors. For deletion, it asks whether the neighbors also occur together after removal of the word in question. The authors use at least two context words and prefer variants with more matching context. In either direction, the query supplies evidence that the revised sequence occurs in written usage. Common usage alone leaves open whether the change is faithful here. The paper's example adds “cruel” between “hello” and “world.” The expanded expression is familiar enough to be found by the query and introduces a description absent from the source.

Preparing the search and deciding which operators to keep

Much of the context checking can be done in advance. The authors prepare a relevant subset of the available operator applications and store the results in memory. An example is looking up the corpus frequencies for synonym substitutions considered at the words of the input passage. Search can then use those prepared alternatives as it expands states. The procedure depends on acquiring operator lists, gathering corpus evidence, and placing usable choices in memory before search starts. The evaluation reports that preparation time separately.

The authors pilot other ways of creating additional initials. One approach inserts a phrase or sentence intended to be redundant or readily acceptable in context. Another changes a sentence opening, perhaps with a discourse expression or with an attribution that supplies a name or time. These changes can provide letters unavailable in nearer substitutes, and they demand richer knowledge about the passage. Introducing a speaker or time reference can make the prose strange or change its content. The authors also pilot the full set of PPDB patterns and find changes they regard as too damaging. They keep the selected function-word exchanges and leave the full database operator, the sentence-opening operator, and the tautology operator out of the main tests.

The resulting search therefore has two kinds of checks with different roles. Candidate generation tries to supply a variety of usable changes, often drawing on written usage and formatting rules. The search then asks which sequence of these changes can produce the required left edge within the width constraints and at an acceptable cost. An exact match on the acrostic is a property of the goal state. Quality is the basis for ranking competing paths toward such a state.

Experiments and results

Passages, targets, and conditions

The experiments draw 50 newspaper articles from Reuters Corpus Volume 1, 50 emails from the Enron corpus, and 50 articles from the English Wikipedia. Every selected passage has at least 150 words after lists and tables are excluded from that count. The genres give the system prose with different purposes and habits of expression. A rewrite can affect a news article's phrasing, an email's conversational style, or an encyclopedia article's tone in different ways. The newspaper dataset is described in the work on RCV1.

The common-word targets include the 25 most common adjectives, nouns, prepositions, and verbs in each of those categories, plus 50 other common English words. The paper reports 150 word targets for this group. A separate set comes from common US forenames. The authors choose the 100 most common male names and the 100 most common female names, giving the reported total of 200 name targets. The words test the insertion of ordinary targets chosen independently of a passage. The names reflect a use of acrostics in which the concealed text is a person's name.

The self-referential targets come from the beginnings of the input passages. The authors report 150 phrases for this condition, with at least the opening word to be generated. The input therefore already begins with the first required letter. Later letters still have to appear at the starts of subsequent lines. The condition makes a deliberate change to the opening problem while giving the system a different distribution of targets, including phrases longer than the ordinary word targets.

For the experimental search, the acrostic must begin right where the input starts. That choice reduces the work of considering different starting positions and makes a suitable initial at the beginning especially valuable. The main runs use lₘᵢₙ = 50 and lₘₐₓ = 70, selected after pilots. The authors compare this window with ordinary widths of 55 to 65 characters, or about 10-12 words. The freedom to choose among several widths is part of the task as evaluated. It determines which spaces and internal word positions can be considered at each step.

The tests run on a quad-core PC with Ubuntu 12.04 and 16 GB of RAM. The search uses the prepared in-memory operator tables and an admissible heuristic. Preprocessing takes about one minute per run and is excluded from the reported search times. The benchmark measures whether the search reaches a complete acrostic under the run conditions. For successful completions the paper also reports elapsed search time, generated nodes, goal checks, memory, and changes in measures related to text quality. A goal check tests whether a state completes the requested task. Generating a node is the broader operation of adding a candidate state, so the reported rates describe different aspects of the workload.

How often the search succeeds

The authors report overall success of about 20% with the available hardware and time. They also report nearly 90% success for self-referential targets and about 20% for the other targets. These are approximate figures with the scopes given in the discussion. The strong result for self-referential targets comes with an immediate advantage. The search starts with the right initial, whereas an independently selected target can demand a change before the procedure has any useful line break to work with.

The comparison system uses line breaks and ordinary hyphenation. Since the authors describe their approach as the first automatic system for generating acrostics in an existing text, they construct this formatting baseline themselves. It succeeds in less than 1% of the test cases. A mismatch at the very start is fatal to the baseline. Its available actions can change where later lines begin, but a word in the opening position still starts with the same letter. The authors say that most baseline successes are self-referential first words. They also observe that the second or third letter often fails to become available, even when the opening letter is already right.

With the full set of experimental operators, the paper reports a self-referential acrostic longer than seven characters in 80% of cases. The authors describe ten characters as achievable on average for self-referential cases. This result gives a more specific view of what the system can do with the favorable start. The higher success rate does not simply count an opening initial already supplied by the passage. For many inputs, the editing and layout procedure carries the pattern through subsequent lines.

How long successful searches take

A successful run typically spends less than 30 seconds in search after preprocessing. The authors describe very few successful runs taking more than 40 seconds, with longer self-referential targets the main exception. Unsuccessful searches can run for five to ten minutes before the pending-state list reaches the memory limit. Search time for successful cases is accordingly a measure of how quickly the system finds an acrostic when it does find one. The reported failure times give a different picture of what a user would experience on difficult inputs.

The paper tabulates averages by target type. For the common-word categories, mean target lengths range from 3.29 letters for the group of other common words to 4.47 for nouns. Average search times for successful cases range from 2.41 seconds for other words to 3.40 for nouns. Male names have a reported mean length of 6.00 letters and average 9.32 seconds on successful searches. Female names average 6.07 letters and 7.82 seconds. The self-referential category has a reported average length of 10.33 letters and a successful-search average of 36.09 seconds.

Mean successful search time by target type on the news, email, and Wikipedia test passages

Other common words complete fastest on average, while self-referential targets take longest among completed searches.

Mean successful search time by target type on the news, email, and Wikipedia test passagesOther common words (this paper): 2.41Other common words (this paper)2.41Verbs: 2.76Verbs2.76Prepositions: 3.16Prepositions3.16Adjectives: 3.25Adjectives3.25Nouns: 3.40Nouns3.40Female first names: 7.82Female first names7.82Male first names: 9.32Male first names9.32Self-referential first words: 36.09Self-referential first words36.09
The numbers
System or settingseconds
Other common words (this paper)2.41
Verbs2.76
Prepositions3.16
Adjectives3.25
Nouns3.40
Female first names7.82
Male first names9.32
Self-referential first words36.09

Shorter target categories tend to be faster. The difference between the name categories shows why length alone cannot explain the times. The female names are slightly longer on average in the paper's table, yet their successful searches are faster. The authors suggest the initials of many of those names are more common and easier to produce. That interpretation is consistent with the search's use of initial-letter frequencies. The category averages describe the result of drawing these particular targets and running these searches, with the target's length and letters both affecting the outcome.

The authors report throughput of about 90,000 generated nodes and 550 goal checks per second. Their discussion places the average number of goal checks for a successful acrostic below 10,000, which they describe as about 20 seconds of runtime. Separately, the average row of the detailed table gives 8.53 seconds of search time and 89,545 generated nodes per second. These are the discussion's characterization and the table's reported averages, respectively. Neither timing includes the per-run preparation of operator candidates.

The search size can be large even when an answer comes back quickly. Successful searches for other common words average 218,974 generated nodes and 206 MByte of memory. For male first names, the corresponding averages are 851,665 nodes and 649 MByte. The self-referential first-word category reaches 3,164,873 nodes and 1,985 MByte on average among completions. A favorable initial gives the search a foothold. Longer targets can still require it to keep and judge a large collection of alternatives further along the passage.

Measuring changes to the prose

The paper compares each rewritten passage with its source using word frequency classes and readability indices. Word frequency class describes how usual a word is in the chosen corpus. The most frequent word serves as the reference, so a larger class indicates a less frequent word. The authors use the Google n-gram corpus, where “the” has class 0 and the least usual words in the corpus reach class 26.

WFC(w) = ⌊log₂(ϕ(w*) / ϕ(w))⌋

WFC(w) is the frequency class of the word w. ϕ denotes a corpus count, so ϕ(w) is the frequency of w and ϕ(w*) is the frequency of w*, the most frequent word in that corpus. The slash forms the ratio of those counts, log₂ takes the base-2 logarithm, and the floor brackets ⌊ ⌋ round down to the integer class. Rarer words have larger ratios to the reference count and can therefore occupy higher classes.

The Automated Readability Index, or ARI, estimates a grade level using word length in characters and sentence length in words. The paper counts characters without punctuation and whitespace. It uses punctuation marks as sentence delimiters, including periods, exclamation marks, question marks, colons, semicolons, and ellipses.

ARI = 4.71 · (Characters / Words) + 0.5 · (Words / Sentences) − 21.43

ARI is the Automated Readability Index. Characters, Words, and Sentences are the respective counts for the passage, with the character and sentence conventions described above. The slash denotes division. Characters / Words is the average character count per word and Words / Sentences is the average word count per sentence. The constants 4.71 and 0.5 weight those averages. The formula subtracts the offset 21.43. A higher index indicates a higher estimated reading grade.

The study also uses SMOG, the Simple Measure of Gobbledygook. This measure draws on polysyllabic words, which the authors describe as words with more than three syllables. The ARI and SMOG scores are obtained with the Phantom Readability Library.

SMOG = 1.0430 · √(30 · Polysyllables / Sentences) + 3.1291

SMOG is the readability score, Polysyllables counts the words classified as polysyllabic, and Sentences is the sentence count. Division gives the number of polysyllables per sentence. The formula scales that rate by 30, applies the square root √, multiplies by 1.0430, and adds 3.1291. A higher score corresponds to a higher estimated grade level.

The table reports ∆ WFC, ∆ ARI, and ∆ SMOG for successful rewrites. The delta symbol indicates the change from the original prose to the acrostic version. Negative frequency-class changes indicate a shift toward more common words. Negative readability-index changes indicate that the formulas find the revised passage easier. The table's average row gives -0.83 for word frequency class, -1.53 for ARI, and -0.80 for SMOG.

Mean change in Automated Readability Index after successful generation on the test passages

The index falls across target types, with the strongest decrease for prepositions and the smallest for self-referential first words.

Mean change in Automated Readability Index after successful generation on the test passagesPrepositions (this paper): -2.28Prepositions (this paper)-2.28Other common words: -2.05Other common words-2.05Male first names: -1.87Male first names-1.87Female first names: -1.77Female first names-1.77Adjectives: -1.61Adjectives-1.61Verbs: -1.60Verbs-1.60Nouns: -0.96Nouns-0.96Self-referential first words: -0.09Self-referential first words-0.09
The numbers
System or settingARI change
Prepositions (this paper)-2.28
Other common words-2.05
Male first names-1.87
Female first names-1.77
Adjectives-1.61
Verbs-1.60
Nouns-0.96
Self-referential first words-0.09

The self-referential results show why the measures are best read individually. The average change in ARI for those completions is -0.09, while the average change in SMOG is 0.20. The measures react to different features of prose, so a small movement in opposite directions is possible. The frequency class for the same category drops by -0.31. Taken together, the results indicate that completed acrostics frequently use familiar vocabulary and have features associated with simpler prose. The operator analysis helps explain why that favorable tendency can coexist with visible defects.

What the ablations show

Restricting the search to layout

The study has a grouped operator comparison against the formatting baseline. It also compares targets with and without a ready-made initial, profiles operator use on successful paths, and describes pilot decisions about which edits to include. The grouped comparison is the closest test of what the richer operator set contributes. The other analyses examine where the search spends effort or which actions appear in solutions.

When the search can only insert line breaks and hyphenate conventionally, it has a fixed sequence of letters to work with. It can expose some interior letters through regular hyphenation and move later words to new lines. A width limit can still make a particular letter unreachable within a line. The very low baseline success rate, less than 1%, shows how restrictive those conditions are for the test targets. In the full search, insertion, deletion, substitution, and unconventional splits all expand what can be reached. The comparison measures the combined effect of that expansion under the benchmark conditions.

The importance of the initial can be seen within this comparison. For the formatting system a mismatched opening is enough to end the attempt. For a self-referential case the baseline reaches the later-letter problem immediately. The authors report that the simple operators still often fail there. This is evidence that the richer actions help beyond creating a usable first character. The design includes no separate reported search with only opening edits added, so the observed gain belongs to the complete set of additional capabilities.

Giving the search its first letter

The self-referential condition addresses the opening directly. The first letter of the target comes from the first letter of the passage. The contrast between almost 90% success in that condition and about 20% for the other targets supports the authors' emphasis on the start of the search. With the opening already satisfied, the program can direct its available alternatives towards later positions. When the initial is wrong, even a promising layout of the existing passage has to wait on an edit that makes the first line viable.

The self-referential and independent targets differ in more ways than that opening constraint. Their letters come from different sources, and the self-referential phrases are often longer. The test therefore gives direct evidence about how well a favorable class of cases works and shows why the opening is a plausible contributor. A more narrowly matched estimate of its effect would require holding the rest of the target and the passage conditions fixed. The successful cases also show that easier entry into the search can coexist with slower completion. The self-referential category has the highest successful search time in the table.

Reading the operator profiles

The operator table separates applicability from use on a successful path. The applicability column profiles whether an operator can be applied at a node. The usage column describes the operator applications in completed solutions. An operator can offer many candidates yet account for little of the final writing. Conversely, an option that applies in fewer places can repeatedly solve a distinctive problem that other operators leave open.

Context-dependent synonym replacement is a case of relatively frequent availability and limited final use. The table gives it an application probability of 16.69% and a usage probability of 2.47%. Finding a possible replacement at a node is only one part of making it valuable. It also has to move the layout in the right direction and allow the remaining letters to be recovered. The table counts the synonym changes that contribute to finished solutions, while the alternatives that lose the search competition still add to the work of generating and evaluating candidates.

Word insertion or deletion has an application probability of 43.46% and usage of 25.24%. These edits have two ways to affect the layout. They can provide an initial of their own or move another word toward a permitted break. They are also the most expensive operator in the profile, at 2.46 times the online effort of line breaking and 42.75 ms per word in offline time. Synonyms have an online effort of 1.66 on the same scale and an offline time of 23.24 ms per word. Preparing context evidence in advance shifts much of the cost away from the measured search interval.

Regular line breaks account for 21.13% of operator use on successful paths, and standard hyphenation for 9.38%. Unconventional hyphenation accounts for 37.63%, with an application probability of 9.53%. That combination is the clearest indication of how valuable the extra break positions are in the solutions the system finds. An unusual split can deliver a letter in a window where standard formatting and available rewrites leave no convenient candidate. The penalty makes the option less attractive when there is a good substitute. It remains available when the alternatives are exhausted or costlier overall.

At the other end of the profile, contraction and expansion show 0.29% applicability and 0.00% usage at the table's precision. Spelling changes show 6.98% applicability and 1.57% usage. These figures characterize the paths found with all operators competing under the chosen scoring rule. They are less informative about what would happen if an operator were removed. The search could find a different route, get stuck more often, or spend a different amount of time reaching similar results. The paper supplies no complete set of runs that removes the operators individually.

The pilot analyses address a complementary question. Tautologies, modified sentence openings, and unrestricted PPDB substitutions could add possibilities, but they often produced language the authors found poorly suited to its context. The decision to leave them out shows a practical boundary on expanding the search by enlarging its repertoire. Those pilots provide qualitative reasons for the chosen operator set. They do not quantify changes in completion rate or human judgments for matched searches with the additional operators enabled.

Limitations

Limits the authors identify

The authors explicitly distinguish their automatic indicators from quality as a person would experience it. Word frequency, character and sentence counts, and syllable counts each capture a feature of the revision. An unusual hyphen can leave those features looking favorable while drawing the reader's attention. The high use of unconventional hyphenation on completed paths makes that omission consequential for interpreting the scores. The authors identify better operator assessments and fewer awkward word divisions as opportunities to improve output quality.

Their Turing example illustrates another kind of loss. A phrase can remain fluent and be compatible with the general topic while strengthening a claim. The authors describe the revision as exaggerated for Wikipedia. Their scoring method acknowledges the problem by assigning a local cost to the change, and their experiment evaluates the broader collection with aggregate readability and frequency measures. A grade-level estimate has no mechanism to assess whether the strength of a historical claim was preserved. The paper offers an example of this distinction and calls for deeper examination of operator quality.

The authors also identify contextual problems in their pilot operators. A new sentence that appears harmless in isolation can make the passage difficult to follow. A proposed sentence opening can introduce an awkward attribution. A resource rich in possible paraphrases can supply a fluent substitution that fits poorly in the full passage. The authors leave these operators out of the main evaluation and suggest more sophisticated operations, including changing tense and exploiting anaphora, where an expression refers back to something already introduced. Such extensions are proposals in the paper.

The computational results reflect a definite resource limit. The authors describe failed searches that terminate when the pending list consumes the available memory. Those runs establish that the system did not find an answer before termination. The existence of a suitable paraphrase elsewhere in the search space remains an open question for such an input. An admissible estimate concerns the quality of a solution found under the search rule and its conditions. It gives no assurance that the available memory will last long enough for the search to finish.

Limits visible in the experimental design

The general task allows a consecutive stretch of lines within the output to carry the acrostic. The evaluated task fixes the beginning of that stretch at the start of the input. This makes the benchmark easier to run and changes the relative power of the operators. A line-breaking system allowed to start farther into the text could look for an existing occurrence of the first letter and then try to align the remaining lines from there. A system that tried many start positions would also face more candidates. The paper measures neither effect in its main runs. The baseline's less-than-1% success and the advantage of an already matched first letter both belong to the fixed-start setting.

The line widths also define the problem being measured. A wide range gives more potential break points. Restricting the width or prescribing the same length across lines can eliminate break points used by successful paths. The paper reports a pilot choice of 50 to 70 characters and uses it for the evaluation. The results describe performance with that flexibility in monospaced text. They supply no measured performance under a different width range or a proportional layout.

The target list and the resources place another boundary around the experiment. The passages are English news, email, and Wikipedia prose, with a minimum passage length. The target categories are common words, popular forenames, and opening phrases from those passages. The hyphenation procedure, the function-word and spelling lists, the synonyms, and the corpus-based letter probabilities are tied to the language resources used in the paper. A new domain or language would change the distribution of initials and the suitability of the available operations. Such transfer is outside the evaluation.

The success figures and the quality statistics answer different questions. Success counts whether a run reaches the formal goal given its resources. The quality changes describe the subset that produced complete acrostics. A lower mean ARI among those passages shows that the completed rewrites can have simpler measurable features. It leaves unresolved whether those same passages preserve their factual content, tone, and discourse connections closely enough for a reader. The study has no reported human judgments of meaning preservation across the completed outputs. The contextual corpus checks are evidence of ordinary usage, and the overall optimization is defined by the assigned operator costs.

There is a related distinction between the merit function and the ultimate linguistic aim. A low-cost path is good according to its edit scores and the graph of candidates the system can reach. Some contextual problems could be missed by the local scores, particularly when changes individually look acceptable but interact across a sentence or paragraph. The paper's Turing example and the hidden awkwardness of unconventional hyphenation give concrete cases in which evaluating an output requires looking beyond the search's success condition. The path cost provides a way to compare candidates with the available evidence. A broader assessment of fidelity would require measurements that directly address it.

Finally, the timing has to be read with its denominator and its exclusions intact. Successful searches are often short relative to failed ones, and the per-run preparation is reported separately. The time by target category in the results table describes successful generations after preparation. In use, an attempt would also incur preprocessing, and a hard input could occupy search and memory resources until termination. These distinctions matter when interpreting the paper's claims about efficiency as an account of the whole procedure.

What came after

The later citation is Heuristic Authorship Obfuscation, published in 2019. Its title places heuristic methods in the setting of authorship obfuscation, where the desired property of the revised prose concerns attribution. The acrostic paper concerns a different property, the visible initials of consecutive lines. The citation connects the work to another setting in which a text can be revised towards an external objective.

The citation establishes that the later work refers to the acrostic study. The specific treatment of the earlier method is unspecified, so the connection can be described at the level of the rewriting problem. In acrostic generation the target has a direct check, since the initials either spell the requested sequence or they fail to do so. The later title points to a different question about what the revised prose reveals about its origin. That change of objective is the kind of extension the acrostic authors had in view when they proposed applying the search framework to other paraphrasing tasks.

Cite

Cite as Benno Stein, Matthias Hagen and Christof Bräutigam. 2014. Generating Acrostics via Paraphrasing and Heuristic Search. Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers.

The paper itself, not this page. BibTeX from the library's record of the work.

@inproceedings{stein2014generating,
  title = {{Generating Acrostics via Paraphrasing and Heuristic Search}},
  author = {Benno Stein, Matthias Hagen and Christof Bräutigam},
  booktitle = {Proceedings of COLING 2014, the 25th International Conference on Computational Linguistics: Technical Papers},
  year = {2014},
  url = {https://aclanthology.org/C14-1190/}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/stein-2014-generating-acrostics-paraphrasing-heuristic-search/