Non-Autoregressive Sentence Ordering
Paper · 2023 · Yi Bin, Wenhao Shi, Bin Ji et al.
Summary
A paragraph can lose its meaning when its sentences are shuffled, even though every sentence remains intact. A result may appear before the question it answers, or a story may mention an event before establishing where it happened. Bin and colleagues study whether a system can recover the original order from the sentences alone. They propose the Non-Autoregressive Ordering Network, or NAON, which scores possible placements for all positions in parallel. A system that works from left to right instead makes each new choice after seeing its earlier choices. NAON can bring information about both the beginning and the end of the paragraph into the scoring stage before it commits to any placement.
Sentence ordering gives parallel prediction a useful constraint. The number of output positions is known from the number of input sentences, and each input sentence belongs in exactly one position. NAON learns to score a match in both directions, asking which sentence belongs in a position and which position belongs to a sentence. The authors call the resulting training objective an exclusive loss. The loss makes competing positions less likely to nominate the same sentence. At inference, a separate matching procedure guarantees a complete ordering by taking the strongest remaining match and removing its sentence and position from further consideration.
The authors test NAON on six datasets covering research abstracts and stories. The standard system is competitive with established approaches, although the leader depends on the dataset and metric. On arXiv, NAON reaches 46.82 on paragraph-level exact match, compared with 44.28 for TGCM. On AAN, the ranking-based B-TSort reaches 50.76 on that metric, ahead of NAON’s 46.71. In the timing experiment, NAON completes inference faster than the autoregressive AON on every dataset. A version that incorporates BART obtains the highest values in the paper’s main comparison across all six datasets and all three ordering metrics.
The authors also examine the scores before the final matching procedure repairs repeated choices. On ROCStory, 99.97% of paragraphs contain a repeated sentence when the system is trained without the exclusive loss. With the loss, that figure falls to 35.58%. The remaining collisions explain why the authors keep the matching step. That experiment distinguishes a system whose scores favor different sentences for different positions from a system whose final answers are guaranteed to use every sentence once.
Deep dive: Non-Autoregressive Sentence Ordering
Non-Autoregressive Sentence Ordering scores all paragraph positions in parallel and uses one-to-one matching to recover a coherent order. · about 33 minutes to read
The problem and its context
Recovering an order from intact sentences
Sentence ordering turns an aspect of document coherence into a testable problem. A system receives the sentences of a paragraph without their original sequence and must decide how to arrange them. The work is at the level of relationships among sentences. An individual sentence can be grammatical and clear in isolation yet be difficult to place without reading the others. Its contribution may become clear only after a reader sees what it elaborates, what it presupposes, or how it advances an account. The ordering task asks whether a system can use such clues to recover the sequence recorded in the data.
The paper illustrates the task with SIND, a collection of stories written for sequences of images. The ordering system works with the story sentences. To understand the kind of decision it faces, consider the carnival story discussed in the paper’s prompt analysis. A sentence about a family’s trip establishes the setting. General remarks about the rides lead into a detail about rides suitable for a young child. The account then moves to the games, making a complaint about some of them easier to place. The sentences retain all those clues when shuffled. What disappears is the sequence that makes each clue easy to interpret.
A paragraph may carry several kinds of ordering evidence at once. In a story, a later event might presuppose an earlier one. In an abstract, a result might refer back to an approach already introduced. A topic repeated across several sentences can establish that they belong together while leaving their internal order uncertain. These are different demands on an ordering system. It must identify which sentences fit a particular place and account for how using a sentence there affects the rest of the paragraph. Keeping the input wording fixed allows the benchmark to focus on these decisions.
The shuffle also puts a boundary around what the original order can tell an experimenter. A paragraph has a reference sequence because that is how it appeared in the dataset. Recovering that sequence is an observable outcome. Whether every other sequence reads poorly is a separate judgment. The experiments have a clear target even for cases where two neighboring statements could plausibly change places. That distinction matters when interpreting the paper’s strictest metric.
From linguistic features to pairwise ranking
Earlier work, as the authors describe it, used designed features and probabilistic transitions to represent how a text moves from one sentence to the next. The paper points to Lapata’s work on sentence ordering, Barzilay and Lee’s work on recurring content patterns, and Barzilay and Lapata’s entity-based account of local coherence. Tracking entities is one way to make an intuition about connected text measurable. A sentence that mentions someone or something may fit naturally near another sentence that continues the same discussion. Such systems depend on decisions about which properties to encode and how to combine them, and the authors emphasize the work involved in adapting those decisions to different settings. Probabilistic Text Structuring, Catching the Drift, Modeling Local Coherence
The paper groups more recent neural approaches into ranking and sequence generation. In pairwise ranking, the immediate prediction concerns which of two sentences should come first. A subsequent procedure turns such comparisons into a full sequence. Chen and colleagues’ Pairwise system directly learns the relative order of sentence pairs. The attentive RankTxNet uses learned sentence scores and ranking objectives. B-TSort derives order constraints between pairs and uses topological sorting to assemble them into an order.
Pairwise ranking supplies an intuitive training question. Given a sentence that introduces a setting and one that comments on it, the immediate decision may be easy to express. However, a collection of local preferences still needs to fit together. The intended role of a sentence can depend on evidence distributed over several other sentences, and pairwise scoring and search can require substantial work. The paper uses these concerns to motivate a design in which each sentence representation can draw on the whole paragraph before the system decides a placement.
What a left-to-right decoder commits to
In the sequence-generation approach, the output is assembled one sentence at a time. A pointer network makes each choice from the available input items. Its output can be interpreted as an index into the shuffled paragraph, so the decoder can return an existing sentence without generating its wording. Once a sentence has been selected, a recurrent decoder can mask it out, removing it from consideration at later steps. This gives the procedure a simple way to enforce the rule that each sentence is used once. Pointer Networks
The authors identify problems with using recurrence at two different stages. On input, reading shuffled sentences in the order they happen to arrive can give the encoder different summaries of the same paragraph. The artificial order becomes part of the evidence passed downstream. Earlier systems such as AON dealt with this issue through a Transformer and attention architecture that omits position information at the level of the shuffled sentence set. This was already a way to let sentences inform one another without treating their presented order as meaningful. Attention Is All You Need
On output, a recurrent pointer still chooses the sentence for the current position after its previous choices. An error at the opening can matter in two ways. It supplies an incorrect part of the prefix for the next decision, and the mask can make that sentence unavailable for its proper position later. An encoder that provides access to the whole input can soften the informational restriction. The decoder’s commitment is still directional, since the committed sentence in a later output slot cannot supply evidence back to an earlier one.
The distinction between input context and output commitment is important to the paper’s claim. The authors do not start from an encoder that sees only an isolated sentence when it scores a placement. Some earlier systems already had access to a contextualized sentence set. The proposed change is to give the output slots representations that interact before any slot is assigned a sentence. A slot can attend to the context and participate in parallel scoring without awaiting a sentence chosen for the preceding slot.
Why translation suggested a different decoder
The paper draws on non-autoregressive machine translation, where a decoder can score target positions in parallel. Translation presents a problem before parallel prediction can begin. The source alone does not tell the decoder how many target positions to create. The work the authors discuss handles length through mechanisms such as predicting how many copies to allocate to source tokens, estimating target length separately, or allowing insertions and deletions. These mechanisms address decisions that arise because translation produces a new sequence. Non-Autoregressive Neural Machine Translation, Deterministic Non-Autoregressive Neural Sequence Modeling by Iterative Refinement
For sentence ordering, the input count gives the output count directly. A decoder can create all its slots from that count and use the input sentences as the candidates for each slot. The difficulty moves from predicting how much text to emit to coordinating selections across positions. If each slot independently takes its favorite candidate, several slots may pick the same sentence. The authors exploit a fact specific to this task to address that problem. A legitimate output is a permutation of the input, so repetition calls for a correction instead of a decision about whether the text naturally repeats a word or phrase.
The method, step by step
From sentence text to a complete assignment
NAON begins by encoding each sentence separately. The first representation preserves information from the words in that sentence. A second encoder compares the resulting representations across the entire input so that the representation of a sentence can also reflect its relationship to the others. The decoder creates a set of output slots from the input count, lets those slots interact, and asks what the contextualized sentences suggest for each slot. A pointer then scores every possible match between a position and an input sentence.
The result is a square grid. Each row can be understood as an output position and each column as an input sentence. A row tells the system how to choose among sentences for that position. A column tells it how a sentence scores across positions. These are views of the same scores, and the authors use both during training. During inference, the grid supplies the preferences from which a full one-to-one assignment is made.
How NAON turns shuffled sentences into a paragraph
The steps in order.
For an intuitive example, return to the carnival story. A slot near the beginning can draw on all the sentences when it scores the trip announcement as an opening. The slot that may hold the complaint about games also has access to the sentences that make that complaint intelligible. The decoder prepares those scores together. If another slot also gives the trip announcement a high score, the training objective has encouraged the correct position to win that competition, and the inference procedure will allow only one slot to take it.
The example also shows why relative placement can remain difficult after the output format is solved. Once the opener is assigned, the system still needs to distinguish a general statement about the rides from the detail about the child. The matching rule cannot read that relationship by itself. Its role is to honor the preferences learned from word and sentence context while returning an arrangement that uses the available material exactly once.
The ordering objective
The task starts with a set of sentences, denoted by S. Each sentence has its own sequence of words and its length can differ from those of the others. An output supplies a sentence for every position in a paragraph of length N. The authors characterize the desired sequence as the one that receives at least as much probability as any competing sequence.
P(O* | S) ≥ P(O | S), ∀ O ∈ Ω
P denotes a probability and | reads as “given.” S is the input collection. O* is the reference order the system seeks to recover, and O is a candidate order. ≥ expresses the requirement that the reference receive at least the candidate’s score in probability terms. Ω is the set of possible orders, and ∀ O ∈ Ω means that the comparison applies to every order in that set.
This is a statement of the target, rather than an instruction to enumerate the permutations. The authors next describe the difference between training a left-to-right system and training one that scores all positions from the same input. The autoregressive formulation gives each decision the earlier sentences in the target sequence as conditioning information.
∑ⱼ₌₁ᴺ log P(sⱼ | s₁, s₂, …, sⱼ₋₁, S)
∑ adds the terms for position index j from 1 through N, the number of sentences. log is the logarithm. P is the conditional probability of selecting sⱼ, the sentence at target position j. The sentences s₁, s₂, …, sⱼ₋₁ constitute the preceding target sequence, and S is the supplied sentence set. During left-to-right inference, the system forms a prefix from its own selections.
For parallel ordering, the authors write the corresponding objective without a prefix of sentence decisions.
∑ⱼ₌₁ᴺ log P(sⱼ | S)
∑ adds the terms over target positions j from 1 through N. log is the logarithm, P denotes the probability used for the selection at position j, sⱼ is the sentence for that position, and S is the full input set. The shorthand leaves the position implicit in the summand. The decoder described below supplies it explicitly through an output position representation. The absence of a sentence prefix permits concurrent scoring. The output slots can still exchange information internally before the scores are computed.
What stays ordered inside the input
For each sentence, the authors put a [CLS] token in front of its word sequence and pass the result through pretrained BERT. They use BERT-base and average its output vectors over the tokens to represent the sentence. That makes the sentence vector a pooled description of the token outputs. The order of words inside a sentence remains available to BERT, since scrambling that order would change the content that the system is trying to place.
The sentence vectors then become the inputs to the contextual encoder. Here, the relevant units are whole sentences, and the authors remove positional embeddings. Attention compares the sentences by their representations without attaching significance to the slot each occupied in the shuffled list. If the input list changes order, the contextual vectors follow their corresponding sentences. Their list indices may change, while the same content is available for the comparisons. An index at this stage chiefly provides a way to refer back to the input item.
Contextualization also avoids asking the decoder to rely on a single pooled vector for the paragraph. The contextual encoder retains a representation for every sentence. When the decoder needs to decide between two plausible placements, it can attend to specific parts of the input collection. A sentence may acquire context from several related ones while still remaining a distinct candidate for selection.
How attention exchanges information
The contextual encoder uses scaled dot-product attention. A query describes the information an item is looking for. Keys provide representations against which to compare the query. Values carry the information to be combined once those comparisons have been weighted.
Attention(Q, K, V) = softmax(QKᵀ ÷ √dₖ)V
Attention names the operation. Q, K, and V are matrices of queries, keys, and values. Kᵀ is the transpose of K, making QKᵀ a matrix of query–key comparisons. dₖ is the key dimension and √dₖ is its square root, used to scale those comparisons. softmax converts the scaled comparisons for a query into weights that sum to one. The final multiplication by V uses the weights to combine the values for each query.
The encoder runs attention through several heads. Each head has its own projections, so different heads can form different comparisons over the same input. The paper writes the projected attention for an individual head as follows.
Hᵢ = Attention(QWᵢ^Q, KWᵢ^K, VWᵢ^V)
i indexes the head and Hᵢ is its output. Q, K, and V again denote the query, key, and value matrices. Wᵢ^Q, Wᵢ^K, and Wᵢ^V are the head’s learned projection matrices for queries, keys, and values. Attention is the scaled operation above. The superscripts on the projection matrices indicate which role each matrix serves.
MH(Q, K, V) = [H₁, H₂, …, Hₕ]W
MH denotes multi-head attention. Q, K, and V supply its query, key, and value matrices. H₁, H₂, …, Hₕ are the outputs of the heads, and h is the head count. The brackets indicate concatenation. W is a learned matrix that projects the concatenated result back into an output representation.
In self-attention, the queries, keys, and values draw on the same set of sentence representations. The output is a set of vectors, each informed by its comparisons with the other elements. The authors stack contextual blocks so later layers can work with vectors that have already incorporated context. They denote the basic representations by Eᵇ and the output of the last contextual layer by Eᶜ. Both remain available, and they have separate uses in the decoder.
Position enters on the output side
The input encoder has no reason to treat a sentence as an opener simply because the shuffle placed it first. The decoder does need to distinguish the opening slot from the closing slot. It starts from a sinusoidal representation of each output position. The sine and cosine components are specified in separate equations.
pᵢ,₂ⱼ = sin(i ÷ 10000^(2j/dₖ))
pᵢ,₂ⱼ is the component at even dimension 2j of the vector for output position i. j indexes a pair of dimensions. sin is the sine function, 10000 is the fixed base of the scaling term, and dₖ is the dimension used in the exponent. The division by the resulting scale changes how quickly the component varies with i.
pᵢ,₂ⱼ₊₁ = cos(i ÷ 10000^(2j/dₖ))
pᵢ,₂ⱼ₊₁ is the neighboring component at odd dimension 2j+1 for position i. cos is the cosine function. j, 10000, and dₖ have the same roles as in the sine component. Together the components provide a distinct pattern for each slot, including slots with no assigned sentence yet.
The slot vectors attend to one another. In the following equation, P′ distinguishes the result from the input P, for which the paper reuses the same letter.
P′ = MHAtt(PW^Q, PW^K, PW^V)
P is the matrix of position vectors and P′ is its contextualized version. W^Q, W^K, and W^V are the query, key, and value projections used here. MHAtt is the multi-head self-attention block built from the attention operations above. Each of its inputs comes from the position matrix, so this step compares slots with slots.
The position representations then query the contextual sentence vectors. This brings the content of the particular paragraph into the decoder. An opening representation can weight the sentences differently from a closing representation, even though both draw on the same contextual sentence set. The paper describes this as inter-attention and writes its core operation as follows.
Eᵖ = softmax(P′(Eᶜ)ᵀ ÷ √dₖ)Eᶜ
Eᵖ is the matrix of position-sensitive outputs. P′ is the result of position self-attention and supplies the queries. Eᶜ is the matrix of contextualized sentence vectors, and (Eᶜ)ᵀ is its transpose. dₖ is the key dimension and √dₖ scales the comparisons. softmax supplies weights over the input sentences for each position. Multiplication by Eᶜ combines those vectors using the resulting weights.
The rows of Eᵖ have an output-position index. A row can contain evidence from a mixture of sentences because it is an attentive representation of what might belong in that slot. A pointer compares that position-sensitive vector with the basic representation of each actual sentence. This is the stage at which the decoder attaches each candidate’s identity to a score.
Scoring all position–sentence pairs
The pointer assigns a compatibility score to every pair of position and sentence. It uses learned transformations to put the two vectors into a space where they can be combined.
ωᵢⱼ = uᵀ tanh(Wᵖeᵖᵢ + Wᵇeᵇⱼ)
ωᵢⱼ is the unnormalized match score for output position i and input sentence j. eᵖᵢ is the row of Eᵖ for position i, and eᵇⱼ is the basic encoding of sentence j from Eᵇ. Wᵖ and Wᵇ are their learned projection matrices. + adds the projected vectors, tanh applies the hyperbolic tangent, and uᵀ is the transpose of a learned column vector u. Its product with the transformed vector gives a scalar score.
This is where the division between basic and contextual representations becomes concrete. A candidate contributes its basic encoding directly to its pointer score. Contextual information arrives through the position-sensitive vector that has already attended to the sentence set. The scoring grid can therefore compare the identity and content of a particular candidate with an account of what the slot needs in this paragraph.
Ptrᵢ = softmax(ωᵢ)
Ptrᵢ is the pointer distribution for position i, ωᵢ is the vector of all compatibility scores at that position, and softmax normalizes them over the candidate sentences. Each position now has a distribution that can be read independently. Completing this calculation for every position does not require committing any sentence to any slot.
Training with two views of the same match
A conventional pointer objective trains the system to favor the reference sentence at each slot. The paper expresses that objective as an average cross-entropy loss. Its negative logarithm makes a low probability on the reference choice costly.
L꜀ = −(1/N) ∑ᵢ₌₁ᴺ log P(oᵢ | pᵢ; Θ)
L꜀ is the cross-entropy loss, − turns the average log probability into a loss to minimize, and N is the paragraph’s sentence count. ∑ adds the terms over positions i from 1 through N. log is the logarithm and P is the predicted probability. oᵢ is the reference sentence at position i, pᵢ represents that output position, and Θ denotes the learnable parameters on which the probability depends.
Each row’s normalization makes sentences compete for a position. It leaves another competition implicit. The score for a given sentence might be strong across several positions because every row normalizes separately. Around a well-supported opening, for instance, the opener might have a higher score than every other candidate for more than one early slot. Correct training labels provide pressure against such errors, but the conventional objective has no term that directly compares the same sentence’s scores across different positions.
The exclusive loss adds that comparison. The authors normalize the same score grid along the other axis to form a distribution over positions for each sentence. They train both distributions on the same reference matches. A reference pair should receive a high probability when the position chooses a sentence and when the sentence chooses a position.
Lₑₓ = −(1/N) ∑ᵢ₌₁ᴺ (log P(oᵢ | pᵢ) + log P(pᵢ | oᵢ))
Lₑₓ is the exclusive loss. N is the number of sentences, i indexes positions from 1 through N, and ∑ adds the terms for those positions. oᵢ is the reference sentence for position pᵢ. In the first conditional probability, P(oᵢ | pᵢ), the alternatives are sentences. In the second, P(pᵢ | oᵢ), the alternatives are positions. log is the logarithm, + combines the objectives for the two directions, and the negative sign and factor 1/N form the average loss per position.
Both directions refer to one correct match for each sentence. Training can favor a sharper match in the grid without guaranteeing that the top candidate in every row will be distinct on a new example. That is why the authors test the loss on the raw choices as well as evaluating the complete system.
Choosing a permutation at inference
The inference routine starts from the array of pointer probabilities. It finds the largest entry among the available rows and columns and records the corresponding position–sentence pair. It sets that entire row and column to zero. The next match comes from the best entry still available, and the procedure repeats until the array has no positive entries left.
A match can start anywhere in the output paragraph. If the largest score belongs to a closing sentence, its position and sentence are reserved before the procedure considers the opener. All the scores were already computed when this selection began. Removing a row and a column changes which matches are eligible, while the decoder’s representations and scores stay as they were. The matching loop is sequential in this sense even though the neural scoring is parallel.
This is a greedy procedure because the strongest available pair is accepted immediately, without testing how alternative commitments would combine. The output is a valid permutation because each commitment consumes one position and one sentence. Suppose two slots favor the same sentence, while one of those slots also has a strong fallback. The ideal joint decision may depend on which slot can accommodate that fallback. The greedy rule uses the top current probability to decide which slot wins, and the remaining slot must choose from the candidates still available.
Training settings
The authors implement NAON in PyTorch and optimize the system with Adam. They use an initial learning rate of 1e−4 for the contextual encoder and decoder, and 5e−5 for end-to-end fine-tuning of BERT-base, which has 12 Transformer blocks. The reported weight decay is 1e−5 and the dropout setting is 0.1. Training stops once validation performance has fallen below the best observed result 5 times.
The Transformer blocks have a hidden size of 1024, and the decoder has 2 multi-head inter-attention blocks. The depth of the contextual sentence encoder varies with the dataset. SIND, ROCStory, and NIPS use 2 blocks. NSF and arXiv use 4 blocks, and AAN uses 6. These settings describe the standard system as trained for each benchmark. The authors release source code for their sentence ordering approach.
Experiments and results
Abstracts and stories
The evaluation covers six established datasets. AAN contains abstracts from the ACL Anthology Network through 2016, using the data and split inherited from earlier sentence ordering work. NIPS also uses an established split. Its training, validation, and test abstracts come from 2005-2013, 2014, and 2015, respectively. NSF contains abstracts from research awards, and arXiv brings together abstracts from seven disciplines.
The story datasets test a different kind of sequence. SIND stories accompany a sequence of images and have 5 sentences each. ROCStory, collected for commonsense story understanding, likewise uses 5 sentences per story. The paper uses the sentences from these datasets as ordering inputs. For an abstract or a story, the reference is the sequence in which the sentences originally appeared. Visual Storytelling
This mix lets the authors compare performance on texts with different purposes. An abstract can give a problem, introduce an approach, and then report what happened when it was tested. A story can convey ordering through events, shifts in setting, or references to people and objects that have already been introduced. The datasets also differ in length. The authors use that difference when interpreting timing, since a decoder that commits one sentence at a time must take more such steps as paragraphs grow.
Three views of ordering quality
Accuracy, abbreviated Acc, counts sentences placed in their reference slots. It gives credit for part of a paragraph even when other sentences are misplaced. As a measure of absolute position, it can be severe when a mistake shifts several sentences without disturbing their relative order. The paper uses [2, 3, 4, 1] against [1, 2, 3, 4] to illustrate this point. Accuracy is 0 in that example because every sentence is in a different slot, even though a run of sentences preserves its internal sequence.
Perfect Match Ratio, or PMR, measures the share of paragraphs whose entire predicted order matches the reference. An otherwise convincing paragraph with one misplaced sentence cannot contribute a perfect match. This metric answers a different question from sentence accuracy. A system can get many slots right without getting many entire paragraphs right, and its standing on PMR can change accordingly.
Kendall’s tau, written τ, measures relative order by comparing sentence pairs. An inversion occurs when the output puts two sentences in the reverse of their reference order. The statistic penalizes the proportion of possible pairs that are inverted.
τ = 1 − 2 × I ÷ C(N, 2)
τ is Kendall’s tau. I counts inversions relative to the reference, N is the sentence count, and C(N, 2) is the number of unordered pairs of sentences drawn from the paragraph. × and ÷ indicate multiplication and division. The factor 2 gives the inversion penalty its scale, and the leading 1 is the value for an ordering with no inversions. Higher scores are favorable for all three metrics.
The three measures help distinguish improvements that would look similar under any single one. A rise in accuracy means more absolute placements agreed with the reference. A rise in PMR shows that fully correct sequences became more frequent. A rise in tau means the output preserves more pairwise precedence. A system may improve one of these while giving something up on another. The comparison with B-TSort supplies concrete instances of such tradeoffs.
Standard NAON against ranking and generation systems
The main test comparison includes the ranking approaches Pairwise, RankTxNet, and B-TSort. The generative baselines range from early pointer systems such as LSTM-Ptr and SetLSTM to attentive or graph-based variants. AON provides an important comparison because it already contextualizes the unordered input, while its pointer still runs left to right. En-Ptr augments generation with pairwise ordering information. TGCM uses topical coherence, and SE-Graph represents relationships using sentence entities. Some baselines report only a subset of the datasets or metrics, so each comparison depends on the available cells.
On NIPS, standard NAON has 64.43 Acc, 33.02 PMR, and 0.80 tau. The corresponding B-TSort scores are 61.48, 32.59, and 0.81. NAON therefore places more sentences in their original slots and exactly recovers more paragraphs in this comparison, while B-TSort does better on the relative order of pairs. On AAN, NAON records 69.28 Acc, 46.71 PMR, and 0.82 tau. B-TSort reports 69.22 Acc, 50.76 PMR, and 0.83 tau. Their absolute-position accuracy is close, but B-TSort is ahead on exact paragraphs as well as on pairwise agreement.
NSF shows another split. NAON reaches 41.82 Acc, 13.68 PMR, and 0.64 tau. TGCM has 42.67 Acc and 22.35 PMR, along with 0.55 tau. B-TSort scores 35.21 Acc and 10.44 PMR but attains 0.66 tau. Those results put each of these systems ahead on a different part of the comparison. NAON’s tau improves on the listed standard generation baselines there, while TGCM produces the strongest full matches among the standard systems with reported NSF PMR.
Standard ordering systems on NSF by paragraph exact match
NAON recovers more exact paragraphs than the ranking baselines shown, while TGCM leads this comparison.
The numbers
| System or setting | PMR % |
|---|---|
| RankTxNet | 9.78 |
| B-TSort | 10.44 |
| NAON (this paper) | 13.68 |
| TGCM | 22.35 |
On arXiv, NAON reports 64.50 Acc, 46.82 PMR, and 0.79 tau. TGCM reports 58.31 Acc and 44.28 PMR, and En-Ptr reaches 46.58 PMR and 0.77 tau. The available figures show NAON doing well across all three criteria on this dataset. In particular, its higher tau than En-Ptr accompanies a slightly higher rate of fully recovered paragraphs.
On SIND, NAON records 52.38 Acc, 19.13 PMR, and 0.60 tau. B-TSort reaches 52.23 Acc, 20.32 PMR, and 0.60 tau. The systems agree in the reported pairwise-order score, while B-TSort recovers a larger share of whole paragraphs and NAON scores slightly higher on absolute positions. On ROCStory, NAON obtains 75.89 Acc, 53.36 PMR, and 0.82 tau. Among the available standard comparisons on ROCStory, En-Ptr reports 46.00 PMR and 0.77 tau, and RankTxNet reports 38.02 PMR and 0.76 tau.
These results support the paper’s case that a parallel decoder can compete with the established approaches. The comparison is especially informative where moderate differences in exact-match scores coexist with close accuracy or tau. The table also qualifies a broad statement in the paper about NAON’s tau standing. B-TSort has higher tau on NIPS, AAN, and NSF. The stronger reading supported by the values is that standard NAON has favorable pairwise ordering scores against the listed standard generation baselines, with tougher competition from ranking.
Explicit relative order and BART pretraining
The authors run a second comparison with techniques that can improve the representations available for ordering. NAON-RO incorporates explicit modeling of relative order between pairs of sentences. BERSON, the autoregressive comparison for this experiment, also uses relative-order information. On AAN, NAON-RO records 78.22 Acc, 59.81 PMR, and 0.86 tau. BERSON has 78.03 Acc, 59.79 PMR, and 0.85 tau. On SIND, NAON-RO reports 59.04 Acc, 31.71 PMR, and 0.66 tau, compared with BERSON’s 58.91 Acc, 31.69 PMR, and 0.65 tau.
The relative-order results reveal two comparisons of different sizes. Relative-order information accompanies substantial gains over standard NAON on the reported metrics. NAON-RO’s lead over the already relation-aware BERSON is much narrower. The two also tie on some tau values, including 0.85 on NIPS and 0.88 on ROCStory. The benchmark evidence shows that parallel decoding remains competitive when the system has an explicit source of pairwise order information.
The authors also equip NAON with pretrained BART weights. RE-BART, the comparison in this group, uses a pretraining scheme that already includes sentence permutation. On NIPS, NAON-BART reaches 84.19 Acc, 61.17 PMR, and 0.92 tau, compared with RE-BART’s 77.41 Acc, 57.03 PMR, and 0.89 tau. On arXiv, NAON-BART has 79.16 Acc, 62.63 PMR, and 0.87 tau, while RE-BART has 74.28 Acc, 62.40 PMR, and 0.86 tau. The close PMR on arXiv is a reminder that the size of the improvement depends on the metric even when all three move in the same direction.
BART and relative-order systems on SIND by paragraph exact match
NAON-BART gives the highest exact-match score among the enhanced systems.
The numbers
| System or setting | PMR % |
|---|---|
| BERSON | 31.69 |
| NAON-RO | 31.71 |
| RE-BART | 43.15 |
| NAON-BART (this paper) | 55.59 |
The BART version has the highest reported test scores in the table on AAN and NSF as well, with 73.90 PMR on AAN and 30.64 PMR on NSF. On SIND it reports 79.57 Acc and 0.87 tau alongside the exact-match result shown above. Its ROCStory scores are 95.13 Acc, 89.07 PMR, and 0.97 tau. The paper presents these results as evidence that the parallel ordering strategy can be combined with a backbone whose pretraining already gives it practice with sentence permutations.
How long ordering takes
The timing comparison pairs standard NAON with AON. The authors describe the two systems as sharing the encoder and using different decoder strategies. They report inference time in seconds for each dataset on an NVIDIA TITAN V. That design makes the timing comparison more directly relevant to decoding than a comparison of unrelated systems with different input processing.
Inference time for sentence ordering on AAN
NAON completes the AAN inference run faster than AON and B-TSort.
The numbers
| System or setting | seconds |
|---|---|
| B-TSort | 375.82 |
| AON | 21.92 |
| NAON (this paper) | 13.82 |
On NIPS, NAON takes 4.35 seconds and AON takes 6.55 seconds, a reported speed-up of 1.51×. On NSF the times are 123.26 and 187.76 seconds, with a reported speed-up of 1.52×. The arXiv comparison is 1040.81 seconds for NAON and 1401.88 for AON, reported as 1.35×. The SIND and ROCStory speed-ups over AON are 1.28× and 1.30×, respectively, while AAN has a reported speed-up of 1.59×. The authors connect the larger gains on NIPS, AAN, and NSF, relative to the story corpora, with their longer average paragraphs.
B-TSort is substantially slower wherever its timing is reported. The paper gives a speed-up for NAON of 21.43× on NIPS, 27.19× on AAN, 15.00× on NSF, and 13.74× on SIND. The authors attribute B-TSort’s runtime in part to the need to compute relative order for all sentence pairs. These measurements describe the reported dataset runs. They give a practical comparison that includes assembling a complete permutation after the scores are available.
What the ablations show
Training for exclusivity improves the finished order
NAON-NE is the comparison without the exclusive loss. On every dataset, the full standard system scores higher than NAON-NE on Acc, PMR, and tau. On NIPS, for example, NAON-NE has 63.37 Acc, 32.13 PMR, and 0.79 tau, while the full system reaches 64.43 Acc, 33.02 PMR, and 0.80 tau. On NSF, the scores without the loss are 40.88 Acc, 12.86 PMR, and 0.63 tau. With the loss they are 41.82, 13.68, and 0.64.
The direction of the change holds for abstracts and stories. On arXiv, PMR rises from 45.71 without the exclusive loss to 46.82 with it. On SIND it goes from 18.45 to 19.13. On ROCStory, sentence accuracy rises from 74.45 to 75.89, and exact match rises from 52.68 to 53.36. The gains in the final outputs are consistent with a training objective that improves the score grid used by the matching procedure. The comparison alone says little about how frequently the no-loss system would repeat sentences if its choices were left uncorrected.
Removing the matching rule exposes the collisions
To examine that issue directly, the authors obtain choices from the position distributions before applying greedy selection and removal. The resulting sequences can repeat a sentence. The authors measure repetition at the paragraph level and at the sentence level because the presence of a collision and the extent of repetition are separate properties.
At the paragraph level they use Paragraph Repetition Ratio, or PRR. Each paragraph receives an indicator of 1 if a sentence is repeated and 0 otherwise. Over paragraphs, the statistic measures how common any repetition is. The sentence-level statistic, mSRR, averages a within-paragraph ratio based on how many of the sentence selections are repeated. A paragraph with a small number of recurring choices can therefore register a collision on PRR while contributing a more limited amount of sentence-level repetition.
Without the loss, PRR is 99.46% on AAN and 99.97% on ROCStory when the matching rule is withheld. With the loss, PRR falls to 62.18% on AAN and 35.58% on ROCStory in the same diagnostic. The authors also report declines in sentence-level repetition on both datasets. This comparison puts the source of the improvement in the training objective. The inference rule is absent in both conditions, so it cannot explain why the raw choices repeat less often.
The two sets of findings answer related questions. The full-system scores show how well the trained distributions support the eventual permutation. The raw-choice test shows how well those distributions already agree on who belongs where. Greedy matching can mask the extent of a collision problem when measured only by final output validity, since validity is required by construction. The diagnostic shows that the exclusive loss improves the proposals even though the trained system still relies on matching to prevent duplicate selections.
Openings are easier to place than endings
The paper also checks accuracy at the first and last positions on the arXiv and SIND test data. These positions have different functions within a paragraph. An opener may establish a topic, problem, or setting. A closing sentence can depend more on the particular route the paragraph has taken, although the experiment does not annotate those functions directly. Measuring both ends separately lets the authors examine positional differences that an overall accuracy score can hide.
Standard NAON reaches 93.92 on arXiv head accuracy and 72.58 on arXiv tail accuracy. On SIND, it reaches 81.47 at the head and 61.82 at the tail. AON shows the same asymmetry, with 91.00 and 68.08 on arXiv and 76.00 and 54.42 on SIND. The advantage for openings persists when the decoder prepares the scores for all positions together. This is consistent with the authors’ suggestion that opening sentences carry distinctive cues, since a left-to-right selection procedure is unnecessary for the advantage to appear.
Enhanced systems improve both endpoint scores. NAON-RO reaches 94.83 for the arXiv head and 76.71 for the tail. NAON-BART reaches 98.98 and 85.91 on those positions. On SIND, RE-BART obtains 87.97 at the head and 73.02 at the tail, while NAON-BART reaches 90.10 and 80.99. These comparisons show broader gains than an improvement confined to identifying the opener. They leave open what kinds of textual evidence make endings difficult and whether the same pattern would hold with human judgments of alternative closings.
Prompting changes both validity and agreement
In an additional experiment, the authors ask ChatGPT to recover sentence order. The comparison is exploratory and covers NIPS and SIND because of the cost of API calls. Some early prompt settings are tried only on NIPS, for which the paper lists 376 samples in its description of the exploratory setup. The tests distinguish input format from requested output. Sentences are presented either as a list or as a dictionary with explicit labels. Some prompts request an ordering of the identifiers alone, while later prompts ask for the rearranged paragraph followed by the identifiers.
The dictionary format helps with an immediate problem. With list input, the paper reports wrong-length outputs in about 5% of NIPS cases and 6.8% of SIND cases in its analysis of input format. With dictionary input, the corresponding figures are 0.8% and 0.5%. An example in the paper shows how errors can arise when rewriting and indexing are combined. ChatGPT divides a sentence about architecture and religious art into separate sentences, then returns too many indices. In another case it omits the sentence about spotting an exit sign while driving to a party. Both responses can still read like continuous prose even though they fail to return a permutation of the input units.
The authors observe improved ordering when the prompt asks to present the paragraph before listing the order. Adding the sentence count to the request further reduces length inconsistencies. The paper reports 1/367 (0.27%) on NIPS and 3/5055 (0.06%) on SIND for the explicit-count prompt. The authors connect the paragraph-first result to work on guiding a system through intermediate output. Their prompt tests measure the success of the requested answers and the frequency of particular output errors. Chain-of-Thought Prompting
With dictionary input and Prompt-3, NIPS scores are 58.10 Acc, 28.8 PMR, and 0.71 tau, below standard NAON’s corresponding NIPS scores. On SIND, the same condition reaches 52.38 Acc, 22.71 PMR, and 0.57 tau. NAON ties that accuracy at 52.38, records 19.13 PMR, and reaches 0.60 tau. The metrics again give different answers. The prompted system exactly recovers a larger share of SIND references in that condition, while NAON better preserves the relative order of sentence pairs. The format checks explain an additional part of the practical difference between a prompt that asks for a permutation and an architecture that returns one through its inference rule.
Limitations
Limits identified by the authors
The authors intentionally use a basic non-autoregressive Transformer decoder and a straightforward strategy for repeated selections. This gives them a way to examine whether the parallel setup fits sentence ordering. It also leaves more advanced parallel decoding and refinement techniques outside the main investigation. The results establish the performance of this design and the reported extensions. The broader space of non-autoregressive architectures is open.
The authors treat relative-order information as useful but costly. They report O(N²) time and space complexity for the explicit relative-order enhancement, with N the number of sentences. In their example, a paragraph with more than 18 sentences can require 12GB or more of memory, and training can take several days. They therefore retain the plain system as standard NAON. The relative-order variant’s higher benchmark scores come with a workload the standard comparison was meant to avoid.
The paper also treats its ChatGPT findings as sensitive to the prompts used. The authors offer prompt quality and the constrained nature of the task as possible explanations for some of the observed behavior. Their changes to formatting and instructions show that the tested setup responds to both. They report results for specific requests and two datasets, and their interpretation of the causes remains provisional.
Limits visible in the experimental setup
The benchmark defines success through agreement with the original sequence. That target is appropriate for reconstructing a particular document. It allows less room for judging whether an alternative paragraph is coherent on its own. The paper’s farm-visit story illustrates the issue. A version that starts with the visit and then moves through descriptions of the countryside and the farm can read as a plausible account while differing from the stored order. PMR will reject that order, and the other metrics count its departures from the reference. The study gives no separate human coherence assessment for that set of alternatives.
The authors discuss tau in connection with human ordering judgments, but the figures they report are computed against benchmark references. Higher tau means more agreement with the pairwise relations in those references. A claim about which paragraph a reader would prefer would require judgments of the candidate outputs themselves. The distinction matters most on examples where several sentences can trade places without changing how a reader understands the main events or argument.
The head and tail test also has a particular scope. It uses arXiv and SIND, so the observed advantage for opening sentences comes from those collections. Their first sentences may differ from their endings in content, cues, or the variety of places where a sentence can plausibly go. The experiment records which slot was recovered. It leaves the source of the asymmetry as an interpretation and supplies no controlled comparison that removes an introductory cue or holds sentence content fixed while changing its role.
The inference guarantee applies to output validity. Each slot is filled and each sentence is used once. Since the greedy routine commits to a strong individual match, it can use a sentence that would have contributed more to the paragraph in a different position. The paper supplies no controlled comparison with a procedure that chooses all matches jointly under an explicit global score. Its probability notation states the goal of recovering the best order, and its implementation approaches that goal through learned local scores and greedy commitments.
Parallel scoring also leaves work that grows with paragraph length. The pointer array has N rows and N columns, and paragraph-level attention must compare sentences. The final selection loop makes repeated commitments. The measured speed-ups are credible evidence of lower inference time in the tested configuration. They do not establish a device-independent scaling law or a latency for an individual paragraph of a particular length. The additional timing burden of NAON-RO is a separate practical constraint from the speed measurements for standard NAON.
Finally, the strongest system combines the parallel ordering procedure with BART, while the standard system uses BERT-base. Its test scores establish that the combination works well in the authors’ evaluation. The comparisons do not isolate sentence permutation during pretraining from all the other differences between the pretrained systems and their use downstream. Similarly, improvements from explicit relative-order information demonstrate the value of that enhancement in the tested configuration without identifying how much of the gain comes from any single kind of sentence relation.
What came after
Non-Autoregressive Math Word Problem Solver is a citing paper from 2023 that applies non-autoregressive prediction to math word problems with a unified tree structure. It shares the broad decision to frame a task around a structured output and avoid a purely left-to-right prediction procedure. The output structure differs. Sentence ordering assigns an existing collection of sentences to positions in a sequence, whereas the math work addresses a solution represented with a tree.
The sentence ordering paper also cites the math paper when discussing applications of non-autoregressive methods. The mutual references document an overlap in research direction. They do not establish that the math solver inherited the pointer grid, the exclusive loss, or the greedy matching rule. The documented connection is the move to parallel prediction in a task whose output has an explicit structure, with the sentence ordering paper’s one-to-one rule tied specifically to the recovery of a permutation.
Cite
Cite as Yi Bin, Wenhao Shi, Bin Ji, Jipeng Zhang, Yujuan Ding and Yang Yang. 2023. Non-Autoregressive Sentence Ordering. Findings of the Association for Computational Linguistics: EMNLP 2023.
@inproceedings{bin2023non,
title = {{Non-Autoregressive Sentence Ordering}},
author = {Yi Bin, Wenhao Shi, Bin Ji, Jipeng Zhang, Yujuan Ding and Yang Yang},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2023},
year = {2023},
doi = {10.18653/v1/2023.findings-emnlp.277},
url = {https://doi.org/10.18653/v1/2023.findings-emnlp.277}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/bin-2023-non-autoregressive-sentence-ordering/