Elamur Research

A Convolutional Neural Network for Modelling Sentences

Paper · 2014 · Nal Kalchbrenner, Edward Grefenstette and Phil Blunsom

Summary

A sentence can express an opinion that none of its phrases conveys by itself. A reviewer may open with praise and qualify it much later. A question may name a place while asking for a person. To classify unfamiliar sentences, a system needs to recognize useful phrases and have some way to use them together. The authors propose a Dynamic Convolutional Neural Network, or DCNN, that builds a numerical representation from recurring patterns and adjusts the size of its intermediate representation to the length of the sentence.

The network turns words into trainable vectors and scans their coordinates with filters that look for patterns in consecutive stretches of text. The filters can extend past either end, where missing inputs count as zeros. This lets a filter examine boundary words at all its offsets and produce responses even on a fragment shorter than its window. The network then uses dynamic k-max pooling. For each row of responses, this operation saves a specified number of the largest values and lays them out in the order in which they occurred. An early pool can save more responses for a longer sentence. The final pool keeps a fixed count, giving the classifier the same number of inputs for sentences of different lengths.

Discarding the weaker responses also changes what the next filter can reach. If the responses to separated phrases survive in the same row, they can become neighbors in the pooled sequence. A short filter can then use both. The resulting hierarchy of features has connections that depend on the input. Some cover a local expression, while others can link evidence from across the sentence. This gives the network a way to build structured features without importing a grammatical analysis from a parser. Parsing

The DCNN leads the paper’s reported accuracy comparisons for binary and fine-grained movie-review sentiment. On TREC question classification, a single convolutional stage performs comparably to classifiers that use extensive hand-designed features and linguistic resources. The Twitter experiment trains on 1.6 million posts labelled from their emoticons and evaluates on posts annotated by people. On that test, the DCNN reduces prediction error by more than 25% relative to the strongest reported baseline using single words and adjacent word pairs. The experiments show how the same feature-extraction design can support several kinds of sentence classification without using a language-specific parser. Sentiment analysis

Deep dive: A Convolutional Neural Network for Modelling Sentences

The Dynamic Convolutional Neural Network uses wide filters and ordered pooling to represent sentences for sentiment and question classification. · about 78 minutes to read

The problem and its context

What a sentence representation has to carry

A classifier makes a decision about a whole input, but most of what it can learn in advance concerns the parts. A particular review sentence may occur only once in a collection. The words expressing enthusiasm, the phrases introducing a reservation, and the ways those expressions tend to be arranged can occur throughout it. A useful representation turns such recurring evidence into features. A feature is a value the classifier can use, for instance a strong response to wording that commonly introduces a qualification. The same detector can then supply evidence for a new sentence about a different film.

An individual word provides a natural starting point. In a review, a familiar adjective may be relevant to the overall judgment. Its contribution can depend on what comes immediately before it. In a question, a word naming a place may describe the setting of an event, while another phrase says what kind of information the questioner seeks. These examples present different problems of composition. The first involves the contents of a short window. The second can require considering evidence from elsewhere in the input. A representation can work well at one scale and make it difficult for information from the other to reach the decision.

The paper calls a consecutive stretch of input units an n-gram. For these sentences the units are words. A bigram is an adjacent pair, and a unigram consists of an individual word. An n-gram preserves the order of its constituents by definition. A system can recognize an ordered expression as a single feature and still have no way to say where that expression appeared relative to another one. The paper’s architecture addresses order inside the stretch examined by a filter and order among the outputs of several such examinations. N-gram

Consider how the same expression could be useful near the start of one sentence and near the end of another. Learning a fresh detector for every position would give up the chance to use observations at either position to improve the same detector. On the other hand, interpreting an opening concession can depend on what follows it. There is a reason to share the detector across positions and a reason to keep track of the sequence of its responses. Absolute location and precedence supply different information. The authors’ approach needs a mechanism that can share a local calculation and still give a later calculation access to the order in which its useful results appeared.

There is also a question of size. A sentence arrives with as many positions as it takes to say what it says. The final classifier in the paper has a fixed collection of weights. Something has to turn an array whose width depends on the input into an array whose size is known in advance. The point at which this occurs affects the work the representation can do. Compressing a sequence immediately simplifies the classifier’s input. Keeping a sequence through an intermediate layer gives that layer a chance to recombine evidence that would otherwise have been summarized before the recombination could take place.

The authors situate this problem within the broader study of sentence meaning. A representation can support a judgment such as whether two sentences paraphrase each other or whether one entails the other. It can also help a system generate text by supplying information to a predictor that emits successive words. The amount and type of information required are different in these cases. To judge a review’s polarity, a classifier can succeed without reconstructing the events mentioned in it. The paper uses class prediction as a way to evaluate a general approach to assembling sentence features. Semantics

Composition from word vectors, logical forms and trees

The authors describe earlier work that derives word vectors from co-occurrence patterns and then combines them to represent larger expressions. In some approaches, algebraic operations specify how the vectors are to be combined. In others, the operation is learned and associated with a syntactic relation or a lexical category. This gives the arrangement or kinds of words a role in determining the combination applied to them. The work belongs to the study of how patterns of usage can supply numerical descriptions of meaning and how those descriptions can be extended beyond the individual word. Distributional semantics

The paper also points to work that obtains logical forms from sentences. Here the representation describes content through an explicit formal structure. Its construction has to deliver something that can be read in terms of the distinctions and relationships expressed by that formalism. For the DCNN experiments, a feature is valuable insofar as the information it carries helps predict a category. The learned number can enter a useful computation even when an observer has no short formal expression for what caused it to become large. The choice of representation determines what the learning problem asks the system to deliver. Learning to Map Sentences to Logical Form

A neural system can use a vector previously learned by predicting the contexts in which a word occurs. The context prediction supplies a reason for the numbers to differ among words before the sentence classifier sees its own labels. A supervised task can then adjust those numbers so that the distinctions they convey are useful to its decision. Starting from a previously learned vector and updating it are separate choices. The word vectors may also begin at random and acquire their useful properties during training on the classification task. Both routes give the filters an input that can change as the classifier learns. Word embeddings

The simplest neural sentence approach in the paper is the neural bag of words, abbreviated NBoW. It looks up vectors for the input items and combines them coordinate by coordinate. With summation, the first coordinate in the result gathers the first coordinate from every item, and the other coordinates do the corresponding work. The result has the same size for any number of items. A classifier can then use the combined vector, including interactions between coordinates, without needing a separate set of weights for inputs of different lengths.

The sum can reflect recurrence because each occurrence contributes to it. Exchanging the positions of occurrences leaves that sum unchanged. The authors include bags of sub-word units and n-grams among the related approaches. A bag of n-grams has access to order within each item, as the arrangement is part of an item’s identity. It still combines the items without retaining their order in the sentence. This distinction helps place the DCNN’s proposal. Learning useful local patterns and retaining a sequence of evidence about those patterns are separate design decisions.

A recurrent neural network constructs a representation along a chain. A state formed on reading a word receives information from that word and from the preceding state. The state reached at the end can stand for the sentence. In principle an early clue can travel through all the intervening states to that endpoint. The authors discuss a tendency for recent words to have greater influence in this approach. For predicting the next word, information close to the current position can be particularly useful. For classifying a completed input, the concern is how readily a clue near the start can remain available alongside one near the end.

A recursive neural network takes a tree as the structure for its computations. Representations are formed by combining the children of a node, with the same learned operation reused across the tree. The top node supplies the representation for the whole sentence. A short phrase and a larger constituent can interact directly when their positions in the tree make them children of the same node. The authors note a bias towards information high in the tree and discuss the possibility of mitigating it with shallower trees. Their examples include work on sentiment based on recursively combining parts of a sentence. Semi-Supervised Recursive Autoencoders for Predicting Sentiment Distributions

Supplying a tree gives the composition process an existing answer to which units ought to be combined. That is a practical advantage when the proposed grouping is suited to what the system is trying to predict. It also makes that grouping a requirement of the calculation. The authors explore how an architecture can form a hierarchy from the responses of its own detectors. Each feature still has a place in a sequence of computations, and a higher feature can depend on several lower ones. Which stretches feed a particular feature can change with the values obtained on the sentence.

Convolution before the DCNN

The immediate starting point is the time-delay neural network, or TDNN. Its filters operate over successive positions using the same weights throughout the sequence. In the phoneme recognition example the authors mention, those positions lie along a time axis. In a sentence the scan follows the order of words. Each position can provide several numerical features. The version of convolution described in the paper uses a separate row of filter weights to operate on each corresponding input row, sliding over the sequence of values found in that row.

Reusing the weights changes how a detector learns from examples. A feature that matters at several locations can use the same coefficients at each one. The coefficients still have an order. A value that supplies evidence at the beginning of a window can have a different effect when it occurs at the end. When an arrangement of words changes, so do their contributions to the dot products. The architecture can therefore learn about order within a window while making the same detector available throughout the input.

The Max-TDNN adapts the convolutional network to sentence classification. It obtains a sequence of responses from each row, then reduces that sequence to its maximum. The highest value in one row can come from an completely different window from the highest value in another row. Once these maxima have been taken, there is a fixed number of features for the fully connected classifier. This gives a sentence-level decision access to the strongest cues identified by several detectors. No external phrase hierarchy is needed to choose the windows.

The underlying convolution of the Max-TDNN is narrow. Its window has to fit entirely within the input. Near the start, there are fewer ways for a word to enter a calculation. The very first word can be used by a fully contained window at the first offset only. Farther into the sequence, overlapping placements let a word be considered at different offsets. This matters when an offset at which a boundary word never appears is one at which a filter could otherwise make useful use of it.

The problem grows when additional layers of narrow convolution are used to increase the span of a feature. Each narrow layer leaves a shorter response sequence for the next one. An upper calculation can combine evidence over a wider contiguous span, but it requires sufficient input for the previous stages to leave a usable window. A larger filter at the first stage likewise trades more direct access to a contiguous pattern for fewer positions at which the whole filter can be used. The authors consider this a poor fit for a system that should work on fragments as well as longer sentences.

The maximum poses a separate difficulty. If the strongest response to a detector occurs early, several later responses can vary without changing its output. A later peak might contain useful evidence on its own, yet once it has lost the competition in that row it cannot affect the classifier through that route. Other rows can preserve other cues, so the representation can still draw on more than one part of the sentence. What the maximum cannot supply is a succession of responses from a particular row, either for the classifier to use directly or for another filter to examine.

These consequences motivate the paper’s two changes. More window placements give filters access to edge words and very short inputs. A pool that can keep several responses makes an ordered sequence available after compression. The two changes act at different points. The convolution determines which candidates a detector can produce. The pool determines which of those candidates later calculations can use. Understanding the architecture requires following both the scan in the original sequence and the scan in the sequence the first pool creates.

The method, step by step

From a sentence to a set of feature maps

The first step is to look up a vector for each word and lay out the vectors as columns. The word sequence then runs horizontally. Each row gives the changing values of an embedding coordinate over those word positions. A filter travels along one such row and computes a response at every permitted placement. Different sets of filters make parallel arrays of responses, so the same input can be examined for several families of patterns.

Each response array is reduced along the sequence dimension. Where folding is used, the network first adds rows in pairs, using the same column for the contributing values. The pool then considers each resulting row by itself. It finds the strongest responses for that row and takes them in the order in which their windows were encountered. A row-specific bias shifts those values and a nonlinear function transforms them. The finished feature map is an array of activations, the numerical signals made available to the following stage.

An upper convolution, when present, reads the arrays formed below it. A row position by then refers to an entry among selected responses. The upper filter has a short window in that new sequence even when its inputs came from distant parts of the sentence. A final selection of fixed width gives the classifier a common input size. The classifier combines these final features to score the categories and converts the scores into probabilities.

How the DCNN builds a sentence representation

The steps in order.

How the DCNN builds a sentence representationStep 1: Lay out word embeddings in sentence order1. Lay out word embeddings in sentence orderStep 2: Scan each row with wide filters2. Scan each row with wide filtersStep 3: Add paired response rows where folding applies3. Add paired response rows where folding appliesStep 4: Keep the strongest responses in sequence order4. Keep the strongest responses in sequence orderStep 5: Add biases and transform the selected values5. Add biases and transform the selected valuesStep 6: Repeat as configured with a fixed final quota6. Repeat as configured with a fixed final quotaStep 7: Use the final maps to predict class probabilities7. Use the final maps to predict class probabilities

The input matrix and its two axes

An embedding supplies trainable coordinates associated with a word. When that word recurs, it supplies the same coordinates from the embedding parameters. The occurrence still occupies a different place in the matrix. This lets it interact with different neighbors in the filter calculation. For instance, a coordinate could contribute strongly at a particular offset when nearby words give values that reinforce it. The lookup links occurrences of the word through shared parameters, and the scan supplies information about the particular stretch in which each occurrence appears.

The paper’s layout for the embeddings can be written as

S = [w₁  …  wₛ]

S is the input matrix. Each w is a column vector, with its subscript identifying the position of its word. The first position is 1, and the last position is s, the number of words in the sentence. The ellipsis stands for the columns in between. The brackets place those columns side by side, and the equality associates the resulting matrix with S. Each column contains d coordinates, the chosen embedding dimension, so the matrix has d rows and s columns.

The two dimensions have different effects. Embedding dimension determines how many rows the first filters can examine. Filter width determines how many successive word positions those filters can use in one response. A larger embedding gives more coordinates in which the training procedure can describe a word. A wider filter enlarges the contiguous stretch available to a detector. Parallel maps provide a separate way to increase the variety of responses, since they give the architecture several different sets of filters to apply to the same word coordinates.

The input coordinates are learned numbers. A particular coordinate need not already correspond to sentiment, a part of speech, or any other property a reader can name. Training can change a coordinate for a word if the resulting filter responses become more useful to the task. Two words can produce similar effects in the same filter while having different full vectors. A single word can also produce different effects as it appears at different window offsets. The coordinate is one ingredient in the computation, with the distribution across offsets and the learned pattern of weights determining the resulting response.

At input, every entry in a column belongs to the same word occurrence. A convolution column refers to a particular window placement. After the rows have been pooled independently, a column can contain values that came from entirely different parts of the text. It refers to a position in the shortened sequence for each row. This change in what a position means is central to reading the architecture. A feature map keeps the same rectangular form even when its columns have ceased to correspond to a single stretch of the original sentence.

A filter response and the treatment of the margins

Take one row of the sentence matrix. A filter is a vector that assigns a coefficient to each offset in a window. The dot product multiplies each value in the window by its corresponding coefficient and sums the products. This gives a scalar response. Shifting the window allows the same weights to examine the next succession of values. A detector can acquire a recognizable preference for a kind of phrase because many windows of that kind produce similar weighted combinations.

cⱼ = m⃗ᵀ s⃗[j − m + 1 : j]

cⱼ is the response for the window ending at index j. The arrow on m⃗ identifies the vector of weights, while the arrow on s⃗ identifies the input sequence for this row. The scalar m counts the offsets in the filter. The superscript ᵀ transposes the weights for a dot product with the input slice. Inside the square brackets, the colon includes both endpoints. The subtraction and addition locate the start of the slice at j − m + 1 for the end at j. Juxtaposition denotes the vector multiplication, and the equality gives the resulting response.

A narrow convolution takes only windows whose entries all have positions in the input row. In the convention of the formula, its first permitted ending is m and its last is s, with s now the length of that row. The number of responses is

s − m + 1

Here s counts the input entries and m counts the filter weights. Subtraction gives the difference between the last and first allowed endings, and adding 1 includes both endpoints. This count describes a usable narrow scan when the input is at least as long as the filter.

The wide variant lets the window enter from beyond the start and leave beyond the end. Values at out-of-range positions are set to zero for the dot product. The output starts at j equal to 1, when the advancing window first reaches the actual input. It continues through the last placement that still includes an input value. The width is

s + m − 1

s remains the count of entries in the input row, and m the filter width. The addition and subtraction give the number of placements with an overlap. The same expression gives the last window ending in the formula’s indexing. Every fully contained window from the narrow scan appears among these placements. The rest contain actual values at some offsets and zeros at the others.

The boundary argument is easiest to see by following the first word. When the advancing window makes initial contact, that word meets the final weight of the filter. As the window moves inward, the word meets successive earlier weights. Eventually it occupies the first offset. With wide convolution, each weight has therefore had a chance to act on this word. A similar argument applies at the other end. This is coverage across placements. The values in a partially overlapping window can still differ considerably from those in a fully contained window.

The paper’s illustration of the two scans uses a filter of width 5. The authors emphasize boundary coverage for widths such as 8 or 10 because a detector with several offsets makes the choice of placements especially consequential. A wide scan also gives a usable result on a short phrase that cannot fill its whole window. The missing entries have well-defined contributions of zero, so the response depends on the part of the filter that does overlap the phrase. The classifier can consequently apply a network with substantial filter widths to fragments as well as longer sentences.

Filter width is a bound on what enters the local dot product. A learned pattern can occupy a smaller portion of the window. Some offsets can contribute little to a given response, and different combinations of input values can produce a high response. A strong activation therefore indicates a match in the numerical calculation. The linguistic description of what caused it requires an account of the windows that gave rise to those values. This is why the paper can describe filters as detectors for classes of n-grams, including phrases shorter than the full span of their weights.

The row operation is repeated with the corresponding row of a filter matrix. For the initial sentence matrix, the number of output rows before folding is still d. The width of each output row is given by the wide placement rule. At a later stage, the input width is the number of positions supplied by the preceding feature map. The filter still works horizontally. The meaning of an offset changes from a position among word coordinates to a position among earlier feature activations.

Selecting values while keeping their sequence

The Max-TDNN’s pooling operation reduces each row to its largest response. In the paper’s notation for a matrix of such responses, it amounts to collecting row maxima in a column.

Cₘₐₓ = [max(C[1, :]), …, max(C[d, :])]ᵀ

C is the matrix of responses and Cₘₐₓ is the pooled column. The first index inside each inner pair of brackets selects a row, with 1 indicating the first and d the last. The colon takes all the positions in that row. The max function returns its largest value. The ellipsis extends the operation across the intervening rows. The outer brackets collect the maxima, the ᵀ puts them into a column, and the equality defines the pooled result. The number of values available after this operation is the row count.

The DCNN generalizes that operation to a selection of several values. Let p⃗ denote a row of candidate values and p the number of positions it contains. The required count is k, with the operator defined for a row having at least that many entries. The pool identifies positions holding the highest k values over the whole row. It returns the values in ascending order of those positions. Taking a single value yields the familiar maximum. Taking several exposes a progression of strong responses to later calculations.

Selection and ordering use different information. Suppose an early window produces a high response and a late window produces an even higher one. If both are chosen, they reach the next layer with the early value first. Their strength decides their eligibility. Their original sequence decides which comes before the other in the pooled row. An upper filter can respond differently if the same strengths occur in reverse sequence because its weights can give different roles to its earlier and later offsets.

The pools operate globally over each row. This means a response competes with others far away as well as with its neighbors. The chosen values may come from a single region that gives particularly strong responses, or from separate regions. Each map and row carries out its own selection. They have the same number of retained positions at that stage, but the sources of those positions can differ. The rectangular result is a convenient arrangement of several ordered selections, with no shared original word index required across a column.

Keeping more responses can make recurrence visible. A detector that was strongly activated around several stretches can pass on several peaks. The resulting magnitudes can also distinguish a succession of moderate values from one that culminates in a particularly large value. They give a partial view of how the detector’s activity changes across the input. The output leaves out the responses between the selected ones and their original indices. The information available about relative position is which survivors precede which others.

The loss of spacing is also how the architecture gains flexible reach. When the next stage slides a filter across the chosen sequence, responses once separated by a stretch of discarded entries can appear in the same window. The next filter can use their order and values. It has no slot for each of the entries that used to lie between them. The upper computation consequently works over a concentrated sequence of evidence whose span in the original text depends on what the lower pool kept.

Setting the quota at different depths

The authors use the same selection rule at each pooling stage. The distinction between fixed and dynamic pooling concerns the requested size of the result. The top pool has a prescribed quota because the input to the classifier must have a constant size. At intermediate stages, the authors let the quota grow with sentence length and reduce the length-dependent allocation as the computation moves upward.

kₗ = max(kₜₒₚ, ⌈((L − l) / L) s⌉)

Read kₗ as the quota assigned to stage l. The lower-case index locates that stage in the stack of convolutions. Upper-case L gives the stack’s depth, and s measures the sentence before any filtering or selection. The fraction in parentheses gives the share of the stack still above the current stage. Its numerator subtracts the current index from the depth, and its denominator is the depth itself. Juxtaposition multiplies that fraction by s, and ⌈ ⌉ round the product upward. The comma separates this candidate from kₜₒₚ, the constant reserved for the last pool. The outer max uses whichever candidate is larger, and the equality assigns it to the stage’s quota.

As the current index approaches the top, the length-dependent allocation becomes smaller. At the final convolution the numerator vanishes, and the fixed quota controls. At an earlier stage on a short input, the same quota can already be the larger candidate. On a longer sentence, that earlier stage can keep a wider selection. This is dynamic in the sense that the architecture determines the size from the input length and the layer index. It does not need to estimate how much content a sentence has before it can assign a size.

The paper illustrates the schedule with an input of length 18 and three convolutional layers. The first pool retains 12 values per row and the second retains 6. The top pool uses its fixed quota of 3. These figures describe capacities at successive selections. They do not identify which passages supply the values. A different sentence of the same length would have the same quotas and can fill them with windows from an completely different succession of locations.

A separate architecture drawing shows what happens to the maps in a compact example. Its input has seven words and the embedding dimension is 4. It depicts two maps at each convolutional stage, with successive filter widths of 3 and 2. The illustrated pools take 5 and then 3 responses per row. The width of a map concerns how many positions are available in its feature sequences. The count of maps concerns how many parallel sets of feature sequences can supply evidence. The drawing lets both aspects of the representation be followed through the stack.

The length used to set a quota is always the length of the original input. The candidate row given to the pool has a different history. At the first stage, wide convolution extends the width of the sequence of word positions. At a later stage it operates on the width left by the preceding pool and again produces a new sequence of responses. The current width determines which candidates are available, while the schedule determines how many can survive. Following the dimensions means tracking both quantities at every stage.

The authors’ rationale is that features of different orders can need different amounts of room. A detector associated with favorable language might have useful responses at several places in a sentence. A feature assembled from several such responses can represent a more elaborate pattern. The schedule gives the early layer scope to preserve many activations and asks successive layers to describe their evidence in fewer positions. A quota caps the surviving activity in a row. Even where a row has an identifiable linguistic preference, its occupied slots count selected placements, which can include overlapping windows.

From selected values to nonlinear features

The DCNN adds a bias to each row after pooling. Every selected value in that row receives the same offset. A nonlinear function then acts on each resulting value individually. The bias affects the range of values supplied to that function. The transformed responses can go to an upper feature extractor or, at the end, to the classifier. In the movie-review experiments, the function is the hyperbolic tangent, written tanh.

The paper presents the local feature calculation by leaving selection aside temporarily. To see the connection between the row filters and a whole output column, gather the coefficients for a given offset across the rows. They can be placed on the diagonal of a square block. Putting one such block beside the next gives a matrix that operates on the vectors in a window.

M = [diag(W[:, 1])  …  diag(W[:, m])]

W denotes the matrix that holds the row filters, and M is the larger matrix assembled from them. Within W[:, 1], the colon takes all the rows and the index 1 chooses the first offset. In W[:, m], the index m chooses the last offset and also gives the width of the filter. The operation diag makes a square array whose main diagonal contains the chosen coefficients and whose other entries are zero. The ellipsis supplies the blocks for the intermediate offsets. The outer brackets place the blocks side by side, which defines M by the equality.

Each diagonal block preserves row identity. At the given offset, the input for a row contributes to that same row of the answer. Across the blocks, this adds contributions from successive positions to that row. A dense block could let several input rows contribute to each output row within the same offset. The paper’s initial formulation gives the row filters a simpler relationship to the word coordinates, leaving interactions among distinct rows to folding or to the classifier.

Stacking the word columns for a particular placement gives an input to which this matrix can be applied. With pooling still left out, the feature column is

a = g(M stack(wⱼ, …, wⱼ₊ₘ₋₁) + b)

a denotes the column of resulting activations, and g applies the nonlinear transformation separately to its entries. M is the diagonal-block matrix. The function stack puts the word vectors w one above another in their input order, with the ellipsis covering the intermediate columns. The index j marks the first word of the window, and j + m − 1 marks its end for filter width m. The juxtaposition with M denotes multiplication. The plus sign adds the row biases from the column b before g is applied, and the equality defines the resulting features.

In this expression j labels a window by its start. The earlier formula labelled it by its end. Both describe the weighted calculation over consecutive entries. When a higher layer performs that calculation, the vectors taking the place of word columns are feature columns and the weights come from the higher filters. Actual pooling intervenes between the convolution and the nonlinear operation. The expression with pooling omitted explains the local calculation itself. To follow the full computation, one also has to identify which response each row selected and where in the shortened sequence it placed that response.

A feature of an earlier order comes from processing evidence close to the input. A later-order feature comes from operating on the output of one or more previous stages. The nonlinear transformation makes successive stages more expressive than a sequence of linear filters with no intervening operations. The selection step also changes which values can enter a later calculation. Together these mechanisms give the upper filter an input whose values and source positions both depend on how the lower stages responded to the sentence.

How parallel maps are combined

The DCNN runs several collections of row filters over the same input to make several maps. These maps can give large responses to different patterns, even when the contributing row starts from the same embedding coordinate. Each has its own shortened sequences after pooling. An upper layer uses all the previous maps in forming a new one. It associates a filter matrix with each pairing of an input map and the desired output map, computes the wide responses, then sums the contributions.

Fⁱⱼ = ∑(k = 1 to n) Wⁱ[j, k] ∗ Fⁱ⁻¹ₖ

On the left, Fⁱⱼ is the convolution response matrix for map j at feature order i. The superscript i − 1 identifies the preceding order, and subscript k selects a map from it, denoted by Fⁱ⁻¹ₖ. The brackets in Wⁱ[j, k] select the filter matrix from map k below to map j above, within the weights for order i. The symbol ∗ denotes wide convolution along the rows. The summation sign ∑ combines the matrices for incoming indices 1 through n, where n is the number of maps supplied to the layer. The equality defines the combined responses before further processing. In this expression k counts through maps. The pooling formula uses that letter for a quota.

The paper describes these weights as an order-4 tensor. Selecting the output map and input map uses two of its indices. The remaining indices identify the row and the coefficient at the desired filter offset. This makes it possible for two output maps to use the same input maps in different ways. One can give strong weight to an earlier detector’s progression in a given row. Another can obtain a different feature from a different combination of the filters applied to that row.

The addition happens in the coordinates of the current response arrays. Because the preceding maps may have retained different positions, a common coordinate can receive evidence that originated in different stretches of text. The addition can bring together different lower detectors’ responses before the new map chooses what to keep. It still operates within a row index. Through convolutions and sums across maps alone, a row of the representation can have a rich set of dependencies on its counterparts below while leaving different row indices separate until classification.

What changes when rows are folded

Folding gives different rows a way to meet sooner. At a designated stage, the network pairs the rows of each convolution response matrix and adds each pair at corresponding column positions. It does this before either row would have made an independent selection. The resulting row has the same width, and the height of the map is reduced.

d / 2

Here d is the number of rows entering the fold. The division by 2 counts the pairs of rows and gives the height after folding. The operation adds the actual responses without learning a further set of weights.

A pool following the fold ranks the sums. One large response can be reinforced by another of the same sign or weakened by an opposing response at the corresponding column. This placement makes folding part of the process that determines which evidence survives. If the rows had pooled independently first, their selected entries at the same compressed position could come from different windows. Folding before pooling uses positions that are still aligned in the convolution output for that layer.

The authors mention a fuller weight matrix as a way to give a row broader access to other rows. Folding creates specific connections between pairs and increases neither the number of filter coefficients nor the number of learned operations required for the sum itself. A future filter can depend on both rows through the combined activation. Its input through that route is their sum, with each original contribution available to the later operation only through that combined value.

A short upper filter can cover a long input span

The feature graph describes how the architecture uses a particular sentence. Begin with a value that survives the top pool and follow the inputs to its convolution. Some of those inputs are responses selected from the preceding layer. Following each of them farther down leads to the windows that produced those responses. If the windows were widely separated and responses between them were discarded, their resulting activations can reach the same short upper filter. The range of that feature is a property of the paths being followed.

The paper’s subgraph illustration uses filter widths of 3 below and 2 above. The first width determines which local values can contribute to one lower response. The upper width lets a filter use successive entries in a pooled row. Where the surviving entries came from is determined by the lower detector and the global competition for slots. An upper window of this width can therefore refine evidence about nearby wording on one example and combine evidence about separated phrases on another, with the same weights used at both times.

In the authors’ graph, a node from a lower layer connects to a higher one when the lower value participates in the convolution for the higher value. Pooling removes nodes from the graph when it does not choose them. The final surviving nodes connect to a common root. The graph is connected in the sense that those dependencies ultimately join at that endpoint. It is directed because values pass from earlier to later calculations and acyclic because no calculation feeds back into an earlier one. The edges carry weights from the computation.

There can be distinct subgraphs reflecting distinct selections. Without folding, the authors describe a subgraph for each row of the sentence matrix. It can use corresponding rows of several maps before joining the other row subgraphs at the top. Folding lets the routes from paired rows join earlier. Evidence from a feature can also contribute to several later features. Both the parallel routes and their possible recombination matter when tracing what the whole representation uses.

The hierarchy of feature orders follows the order of the computations. Its spans follow the responses that survived them. A high-order value can depend on a small region if the lower detector preserves a concentrated run of evidence. A value at the same depth can have predecessors across much of another sentence. The graph thus gives a concrete account of how the network can combine phrases that have no fixed separation. Its organization comes from numerical dependencies on the forward pass, without requiring the input to be broken into syntactic constituents in advance.

Training and turning the final features into a decision

At the last pool, each row supplies the fixed number of values chosen for that classifier. The layer configuration determines how many rows and maps are present. The final activations can therefore all be fed into a fully connected layer with a fixed set of weights. That layer calculates a score for every class using the representation as a whole. A softmax transforms the scores into probabilities. A larger score relative to the others gives that class a larger share of the probability.

The network is fitted by minimizing cross-entropy between the predicted and true distributions. For classification with an assigned category, the loss increases as the probability given to that category falls. The objective includes an L₂ regularization term, which penalizes the squared size of learned parameters. The parameters include the embeddings, the convolution weights and the weights of the fully connected layers. A word coordinate can be adjusted when its effect on a filter’s response helps to improve class prediction.

Training proceeds in mini-batches, groups of examples used to calculate parameter updates. Back-propagation computes how a change to the parameters would affect the objective through the operations that produced the prediction. The authors use Adagrad to take the resulting gradients into account when updating the weights. This gives the detectors a training signal from the decisions they support. The labels specify the desired class for an example. The particular phrases that produce useful responses emerge from fitting the features and the classifier together.

This leaves choices such as embedding size, filter width, the number of maps and the final quota to the configuration for a task. They determine the routes and capacity available before training. The learned values determine which responses are actually produced and which category scores they support. The distinction is especially visible with pooling. Setting its quota determines how many entries can proceed. Changing the filters affects which entries occupy that space and what they convey.

For the repeated row convolutions, the implementation uses the convolution theorem and Fast Fourier Transforms to compute the linear responses efficiently. The authors run their Matlab implementation on a GPU to exploit the parallelism of the operations. They report that it can process multiple millions of sentences per hour on one GPU, with the rate depending primarily on the depth. They also report making the implementation code available. The operation implemented by the transforms is the same wide convolution described by the sliding calculation. GPU and parallel computing

Experiments and results

What the comparisons measure

All of the experiments are classification tests. A prediction contributes to accuracy when its class agrees with the assigned class of the item being evaluated. In the reviews and tweets, the label concerns an opinion. For TREC it concerns the kind of answer a question calls for. Accuracy provides the same form of measurement in each case, even though what it takes to obtain a correct prediction, and what the available training labels describe, differ considerably. Text classification

The paper’s neural comparisons make it possible to see how much can be achieved with simpler ways of representing the same inputs. The neural bag combines the embeddings directly. Max-TDNN forms responses to local order and reduces each row to its strongest match. The DCNN can carry ordered selections to its decision layer and, in the stacked configurations, use them to calculate further features first. The comparison systems taken from earlier studies supply another perspective. Depending on the dataset, these use familiar short word patterns, features organized by a parse tree, or extensive manually specified linguistic information.

The data also vary in how the desired kind of knowledge reaches the network. The reviews have sentiment labels for training sentences and for phrases occurring within them. The question experiment gives the classifiers context-trained vectors as a starting point for learning from labelled questions. The tweet classifier is fitted to labels produced by a rule and tested against judgments by people. Each result concerns a particular set of inputs, labels and training conditions. The paper’s accuracy rankings, its statement about statistical significance on TREC and its relative error reduction on Twitter describe different aspects of the comparisons.

Movie reviews under binary and fine-grained labels

The authors use the Stanford Sentiment Treebank for both movie-review experiments. The binary decision is between favorable and unfavorable sentiment. The fine-grained categories are negative, somewhat negative, neutral, somewhat positive and positive. The latter task can require telling a restrained assessment from a more definite one on the same side of the scale. It also has a category for neutrality. Each test prediction is evaluated under the scheme used to label that split. Recursive Deep Models for Semantic Compositionality Over a Sentiment Treebank

The binary data are split into 6920 training sentences, 872 development sentences and 1821 test sentences. For the fine-grained task, the paper gives the training, development and test counts as 8544/1101/2210. These figures count sentences. The authors also present labelled phrases from inside the training sentences as independent training instances. For example, a phrase expressing approval can retain its own label when the full sentence includes a reservation. The phrase and the complete sentence can each provide a learning signal appropriate to its scope. The review vocabulary contains 15,448 types. Linguistic annotation

Stanford Sentiment Treebank training sentence counts by DCNN setting

The fine-grained setting has more training sentences before the addition of labelled phrases.

Stanford Sentiment Treebank training sentence counts by DCNN settingBinary sentiment configuration: 6920Binary sentiment configuration6920Fine-grained sentiment configuration (this paper): 8544Fine-grained sentiment configuration(this paper)8544
The numbers
System or settingtraining sentences
Binary sentiment configuration6920
Fine-grained sentiment configuration (this paper)8544

The chart measures the size of each training split at the sentence level. The additional phrase instances give the networks examples across a wider range of input lengths. One benefit of presenting a phrase on its own is that the training label can directly reward features appropriate to that phrase. The accuracy comparisons then ask whether the trained representation and classifier can assign the right category to test sentences. The binary and fine-grained rankings each have to be read within their own evaluation.

For these comparisons the authors initialize the neural systems’ word embeddings randomly and choose dimension 48. NBoW adds the word vectors, transforms the sum nonlinearly and makes a softmax prediction. The Max-TDNN scans the input with narrow filters of width 6. Short phrases are padded with zero vectors to give this baseline a usable window. It transforms the response values, takes the maximum of each row and predicts from the maxima. The nonlinear function is tanh. Both baselines supply a fixed-size vector, with one retaining the sum of word evidence and the other retaining the strongest responses of local detectors.

In the binary DCNN, the first wide convolution uses width 7 and has 6 maps. It folds the response rows, pools the sums using the length-dependent schedule and applies tanh after the bias. The next convolution uses width 5 and has 14 maps. Folding again precedes pooling. The second pool retains 4 values per row, and the final nonlinear values are passed to the classifier. The size of the intermediate representation can depend on sentence length, so the second filters work on sequences that can have different origins and widths across examples.

The fine-grained configuration follows the same sequence of operations with different widths and capacities. The first convolution uses filters of width 10 and produces 6 maps. The next uses width 7 and produces 12 maps. The final selection keeps 5 values per row. Both review configurations use dropout after the last tanh during training. Dropout withholds some activations on a training pass, varying the evidence available to the classifier when its parameters and the feature extractor are adjusted. Improving Neural Networks by Preventing Co-adaptation of Feature Detectors

The earlier non-neural results include Naive Bayes with features for individual words and another version with features for words and adjacent pairs. A support vector machine also uses those word and pair features. These comparisons show what conventional classifiers can do with short patterns specified directly by the input representation. The recursive neural tensor network supplies an additional comparison. It uses a tensor-based combination of features along an externally supplied parse tree. The paper identifies it as the best-performing recursive approach included in this comparison.

The authors report that the DCNN leads the alternatives in accuracy on both movie-review tasks and describe the advantage as significant. NBoW is broadly comparable to the conventional short-pattern systems. Max-TDNN trails NBoW. The authors suggest that reducing a response row to one peak removes too much evidence about sentiment. This interpretation fits the observation that the bag can reflect contributions from many words even though it lacks the Max-TDNN’s way of using order inside a window.

These rankings concern the complete architectures. The DCNN gives the upper layer several lower responses to examine and also changes how filtering reaches the margins. It folds rows and uses a further stage of feature computation. The result in the binary setting shows the performance of this combination with a polarity decision. The fine-grained result places the same design in a setting where the classifier must also distinguish degree and neutrality, using settings chosen for that task. Leading the comparisons under both schemes shows that the architecture can support the finer decision as well as the binary one.

Predicting question types on TREC

TREC asks a classifier to choose among six types of question. Examples in the paper include questions seeking a location, a person or numerical information. The form of a question can give useful cues to the expected answer even when its subject is unfamiliar. Identifying the type can help a subsequent process decide what to look for. The classification experiment measures correct assignments of those types. There are 5452 labelled questions for training and 500 questions in the test set. Learning Question Classifiers · Question answering

The comparison includes classifiers supplied with manually designed information. In the example the authors discuss in detail, a maximum entropy system uses 26 sets of features. Short sequences of words, grammatical categories, named-entity tags, relations derived from the structure of a CCG parse, and WordNet synsets are among them. A classifier trained on these inputs can learn associations between question categories and particular combinations of linguistic properties. The sets of features themselves give it a detailed description of what kinds of cues are available to use. Part-of-speech tagging · Named entity recognition

The neural systems carry over most of their settings from the binary review comparison. For this smaller dataset, the authors choose embedding dimension 32. The embeddings are initialized with vectors learned by unsupervised prediction of contexts in which words occur. This gives the new task a starting representation that already reflects patterns of use. The labelled questions supply the supervised objective for question classification, while the initial coordinates provide information obtained without labels for those types. Word Representations: A Simple and General Method for Semi-Supervised Learning

The TREC DCNN has a single convolutional layer, with width 8 filters and 5 feature maps. The wide scan can recognize ordered patterns spanning pieces of a question. The pool at that stage is already the final pool and thus uses the fixed quota. The chosen responses can give the fully connected classifier evidence from several places, and the classifier can combine those values in making its decision. In this configuration, the composition through an intermediate pool and a later convolution described by the feature graph is absent. The result is a test of the architecture’s shallower use of wide convolution and ordered selection.

The authors report that the DCNN reaches the performance range of the high-performing alternatives and characterize the difference as statistically insignificant, giving p < 0.09. This expression belongs to the paper’s comparison of performance and is separate from the accuracy measure. The result shows that the feature extractor trained on the question labels, starting from context-trained embeddings, can compete with classifiers receiving many explicitly designed linguistic features. The prediction still has the scope of a question type. A correct answer to the underlying question is beyond the output evaluated on this split.

This result broadens the role of the proposed pooling operation. In the stacked sentiment configurations, a retained sequence can supply the inputs from which another local filter makes a new feature. For TREC, the same kind of ordered selection summarizes the responses for the decision layer. Local cues and their progression can contribute usefully even when there is no intervening scan. The benchmark gives direct evidence about this configuration under its question labels and embedding initialization.

Sentiment from automatically labelled tweets

The Twitter experiment changes the way training labels are obtained. The rule uses an emoticon in a post to label it positive or negative. This is distant supervision: a signal associated with the desired category is used to assign training labels automatically. It makes a large collection available for fitting the classifier. The authors train on 1.6 million tweets with such labels. The test set contains about 400 tweets annotated by people, making agreement with those human judgments the criterion for correct predictions.

The authors follow the earlier Twitter study’s minimal preparation procedure, then lower-case all the tokens. They report a vocabulary of 76,643 word types. The vocabulary count concerns distinct inputs for which the network has embeddings, while the training set count concerns the posts used as examples. The earlier work supplies the established tweet data and comparison results. By using human labels at evaluation, the experiment asks whether the training signal supports the intended sentiment decision independently of scoring predictions by the same emoticon rule.

The neural architectures follow those used for binary movie-review sentiment. The embeddings are again randomly initialized and here have dimension 60. The DCNN therefore has the opportunity to identify local ordered patterns and combine the retained responses at a further stage before prediction. The NBoW comparator can learn its own word embeddings from the same type of supervision. Its aggregation gives the classifier a way to use evidence from anywhere in the tweet, with no progression of positions available from the sum.

The reported non-neural comparators use unigram and bigram features. The authors regard these as especially strong baselines when the labelled training supply is large. Single words can be good indicators of polarity and word pairs can capture useful neighboring expressions. The network has a different way to exploit the available examples. It can fit filters on longer stretches, and it can use responses from those filters to form later features. The comparison asks which complete representation produces more accurate positive or negative judgments on the annotated test material.

The DCNN improves on the reported short-pattern classifiers. The paper quantifies its gain against the strongest of those baselines as a reduction of more than 25% in prediction error on the human-annotated tweets. This is relative to the comparator’s error on that test split. It measures the reduction in the rate of wrong predictions using the baseline error as the reference. The reported accuracy ordering and the relative error claim concern the same test outcome, expressed through different measures.

The paper also finds an advantage over neural bag-of-words on Twitter. The authors interpret this as evidence for the value of recognizing longer patterns and combining them hierarchically. The filters can make the contribution of a word depend on its position within a local phrase. The next layer can use several of the resulting responses in succession. Accuracy measures the joint effect of these possibilities on a full sentiment decision. It shows that the stacked features can be learned effectively from the emoticon labels and used for the test judged by people.

Across the evaluations, the design serves several distinct prediction problems. The movie tests show that the learned representation supports both coarse polarity and a finer set of sentiment categories. The question test shows competitive accuracy with one convolutional stage and context-trained initial vectors. The tweet test shows a gain over established short-pattern baselines when a large automatically labelled collection supplies the training evidence. These results attach to the chosen configurations and their decision tasks. The shared operation is the preservation of useful responses in sequence order, with the point at which that sequence reaches a fixed size determined by the role it must play in the classifier.

What the ablations show

The study tests complete architectures without ablating their components individually. Its evidence about the components comes from benchmark comparisons, a structural analysis of the computation, and a closer look at the filters learned for movie-review sentiment. The comparisons establish which systems worked better under the reported conditions. The structural analysis explains what information an operation makes available to its successors. The filter inspection identifies patterns associated with particular responses. Read together, they make the authors’ explanation plausible while leaving the size of each component’s contribution open.

The case for keeping more than a peak

In the movie-review experiments, a striking result is that the neural bag of words does better than Max-TDNN. These systems make different concessions to obtain a representation that fits the classifier. The bag combines contributions from all the words, with their arrangement lost in the addition. Max-TDNN takes the arrangement inside each window into account, then represents an entire row of responses by its strongest value. The paper’s interpretation is that the latter concession can cost more on sentiment than the local sensitivity to order brings back.

Consider a sentence with an enthusiastic description of the acting followed by several reservations about the film. Imagine a row that responds to evaluative language in both places. If the enthusiastic passage gives the largest value, raising or lowering the other responses within the range below that peak leaves the row’s contribution unchanged. Even adding a reservation that strongly activates the row can have the same outcome. For that detector, a change in the balance of evidence across the sentence can leave the number presented to the classifier exactly as it was.

The restriction is specific to the row. A detector sensitive to a different property could have its peak in a passage of criticism. The classifier could then receive evidence from that passage through another route. The experiment does not imply that a maximum necessarily relegates the whole network to one region of a sentence. It shows that a classifier built from many such maxima can still perform less well in this setting than a classifier whose much simpler aggregation allows every word to contribute to the sum.

The comparison puts the emphasis on what happens after a pattern has been detected. A carefully learned window response is useful to the final prediction only through some route that remains open to it. The bag offers a route for less conspicuous words, even though their individual contributions are mixed together. The maximum supplies a clearer record of a particular type of strong match, at the cost of making every weaker match in its row indistinguishable as far as that pooled value is concerned. These properties are guaranteed by the respective calculations. The accuracy ranking is the empirical evidence that accompanies them.

The DCNN gives a detector another option. If an expression of approval and a subsequent hesitation both produce sufficiently large responses, the network can pass both on. This can help in more than one way. The final classifier can receive a fuller record of what a filter detected. In a stacked system, an intervening convolution can make a new feature from the selected responses. The latter possibility matters when the significance of the hesitation depends on its place after the approval. A feature that reacts to the succession can provide evidence of its own.

It is useful here to distinguish selection size from ordering. Consider a version of the computation that keeps several strong values but sorts them by strength. It would carry information about the strongest response, the runner-up and the rest of the selected magnitudes. Two sentences that produced the same selected magnitudes in different orders would present that version with the same sequence of ranked values. With the paper’s operator, the sequence can differ. This is a concrete benefit in representational capacity. The movie comparison leaves open whether that capacity accounts for much of the gain, whether a broader selection would suffice on many examples, and whether the answers differ among detectors.

The length-dependent quota introduces a further choice. A fixed quota at an intermediate stage could also preserve several activations and their order. The dynamic rule gives a longer sentence the possibility of keeping more, at the same depth, before those activations enter a further convolution. A comparison that varied the rule for the quota while keeping the rest of the processing the same would speak directly to the value of that adjustment. The paper’s sentiment systems use the adjustment alongside changes in the widths of the filters, treatment of the ends, folding and a further feature stage. The observed performance is evidence about the resulting systems.

Using separate review configurations for binary and fine-grained prediction supplies another kind of evidence. A representation useful for choosing between favorable and unfavorable sentiment can also be adapted to a division that includes neutrality and degrees of opinion. The fact that both configurations lead their respective comparisons supports the design’s usefulness across the two tasks. As a test of a particular architectural ingredient, though, this repetition leaves the ingredients coupled. There is no separate performance observation for the case where a component is present in one configuration and removed from an otherwise identical counterpart.

The Twitter comparison gives the authors another reason to favor richer features. Neural bag-of-words and the stacked DCNN both learn from the automatically assigned sentiment categories. The DCNN produces a better classifier in that comparison. The authors point to longer phrases and the ability to combine evidence in stages. A phrase whose polarity depends on several words can benefit from the first convolution alone. A phrase whose significance depends on a later qualification can benefit from a route through another layer. Each situation is consistent with the system-level result, and the reported metric gives them equal credit whenever the final label is correct.

The TREC configuration illustrates how much of the design can be used without the particular form of composition in the stacked sentiment systems. Its selected responses go straight from their first feature stage to the classifier. The classifier can give several positions and maps a role in scoring the question type. All the patterns computed by the convolution itself derive from local windows on the input. Competitive categorization in this experiment shows that wide windows and ordered selection can supply a good representation in their own right. It also narrows the scope of any explanation based on an upper convolution joining selected responses: such an explanation applies to the computations in the stacked configurations.

The question experiment would serve a different purpose if a shallow network and a stack were fitted side by side to the same question data. Their outcomes could then inform a comparison of depths, subject to the other choices made in the setup. Here the shallow result concerns questions and the stacked results concern sentiment. The label spaces, the training sources and the starting word vectors vary across those experiments. What carries across them is the framework for producing a representation. What the results say about the value of a further stage remains particular to each configuration.

What changes in the routes to a prediction

The feature graph answers a narrower question than an accuracy comparison. It lets the reader identify where an upper response obtained its inputs. To see the point, imagine two lower responses that have many other responses between them. For the upper filter to use them at successive offsets, the intervening values must stop occupying those offsets. Ordered selection can accomplish this: if both responses are kept and everything between them is removed from the row, the first is immediately followed by the second. The weights at the upper offsets now act on values whose origins may lie in separate clauses.

This is a consequence of the operator even before an observer assigns a linguistic interpretation to either response. The two lower windows could contain two opinions, two names or two different instances of a phrase. In each case the source of the upper feature can be traced to both windows. The description of the architecture as capable of reaching across a sentence has this concrete meaning. The filter can use predecessors with a large separation in the original sequence while making a short calculation over the sequence it receives.

The same account covers cases in which the source windows are near each other. A row’s strongest responses can all occur around a compact expression. Compressing the row can then leave a succession of responses derived from overlapping windows. An upper calculation over that succession may help distinguish variations within the expression. The depth of the calculation remains the same as when the sources are widely separated. Depth records how many stages of feature calculation are involved. The span can be determined by tracing the predecessors for the particular input.

A graph becomes informative about order when one considers which coefficient is applied where. Suppose the earlier survivor is of moderate strength and the later survivor is stronger. An upper filter can place greater weight on the earlier offset than on the later offset. If the two strengths exchange places in the representation, the contributions to the dot product change. Thus a particular precedence relationship is available to the calculation, even in the absence of the original gap. During training, the coefficients may come to give such differences importance if they help distinguish the categories.

Global selection also gives a precise meaning to losing evidence. Once a response is excluded from a particular pool, that response supplies no value to the next convolution through that route. Its source words can still occur in other selected windows, and other feature maps can carry evidence about the same passage. The graph therefore gives a better account of the operation than a statement that selected words are retained and other words are discarded. Selection concerns activations, each of which can already depend on a window. A word can influence several activations with different destinations.

The analysis of wide convolution gives a different kind of structural guarantee. Placing the filter partly outside the input means that an edge word can contribute at offsets unavailable to it in a scan restricted to fully contained windows. This changes the set of possible responses whether or not the added placements tend to matter on a particular dataset. To affect a prediction, a boundary placement would still have to supply useful evidence through the filters and pools. The graph can identify such a route for a given input, but the result tables provide no separate accuracy comparison for the words or constructions affected by these placements.

The padding used by Max-TDNN on short review phrases makes that distinction especially important. That baseline is able to process those phrases. The comparison therefore cannot be interpreted as contrasting a classifier that has access to short phrases with one that has none. The difference in scanning is broader. Wide convolution offers partial placements even when the input is long enough to contain full ones. Its extra opportunities extend to the margins of ordinary sentences. The experiment compares the outcomes of the two systems with their actual handling of short and long inputs.

Folding has its own effect on the graph. Connections across maps can be numerous while each row still draws on the corresponding rows from below. Folding adds a common successor for a pair of rows earlier in the computation. A pooled value derived from their sum can have predecessors in both, and another convolution can build a feature from that value. This explains how the operation makes particular interactions possible without adding trainable coefficients for them. It leaves the predictive advantages of those interactions, and the cost of discarding the separate values, to be assessed together in the configurations that use the operation.

These structural observations differ from a causal account of a particular classification. A route may be present even if its numerical contribution is slight. Several routes could carry related evidence, so the category would stay the same if one vanished. An alteration to an input can also change the selection itself. Following an edge in the original graph therefore establishes a dependency in the computation that actually ran. Learning whether the edge carried decisive evidence would require observations of what happens when the evidence or its route changes.

The analogy with a parse is most informative at this structural level. The graph gives a place in a hierarchy to features assembled from other features. The inputs to a higher response can have distinct extents, and the relationships between them arise during processing. These are properties the architecture can demonstrate directly. A claim that a particular connection corresponds to a grammatical relation needs a way to identify that relation independently. The graph can suggest where to look for it, especially when the responses at its lower nodes have recognizable properties.

What the most responsive windows reveal

The authors look for those recognizable properties at the first layer of the binary movie-review DCNN. The incoming values there still belong to windows of consecutive words, which makes the visual analysis possible. For each of 288 first-layer detectors, the authors rank the 7-grams found in the validation and test material by the response they elicit. The filter width is 7. The illustration supplies the leading five sequences for each of four detectors. It shows text associated with the activations, giving a reader something interpretable alongside what would otherwise be an array of numerical weights.

A ranking of this kind describes a detector from the input side. If the leading windows have similar evaluative language, the reader can see a possible account of what they share. If the windows are lexically varied but contain part of the same construction at corresponding offsets, the commonality can concern arrangement. The detector can respond strongly across such variation because it operates on numbers associated with words and combines them across the window. An exact repeated string is only one possible source of a large response. Interpretability

The authors identify units associated with positive and negative sentiment. That is readily understandable in a network whose training objective is to predict review polarity. Some of the other units are associated with words that affect how evaluative language is read. The paper gives not and too as examples. A response to not can provide a feature extractor with evidence that the evaluation in a nearby phrase may be qualified. A response involving too can draw attention to degree or excess. These are interpretable possibilities for how a later calculation could use the detector, while the inspection itself observes the response to the local window.

The paper also describes responses involving all, or, as … as and with … that. These examples are valuable because they draw attention to recurring structural patterns as well as a vocabulary of attitudes. A window containing a recurring construction can share its arrangement with other windows whose content words differ. One set of weights can give similar responses to different realizations. That is evidence about what the trained detector can be sensitive to, based on the windows the authors examined. The authors’ analysis accordingly treats a detector as potentially concerned with a class of patterns within its field of view.

Several explanations for a high-ranking family can coexist. For example, windows containing the same particle may also contain related adjectives. A detector could respond to the particle, to those adjectives, or to a combination of their relative positions and numerical values. A ranking preserves whatever correlations occur in the observed examples. A grammatical label for the shared pattern is an interpretation of the results. Establishing which elements of the pattern control the response would require cases where those elements vary independently.

There is also a question of how the displayed examples relate to the whole distribution of activations. Several strong responses to constructions containing as give a reader a reason to consider a construction-based explanation. To assess the breadth of that explanation, one would want to know how the detector responds to other instances of the construction and what kinds of examples can elicit a similar response without it. The display is designed around the strongest examples. It offers qualitative evidence of preferences while leaving their frequency and coverage unresolved.

The same distinction holds between the detector’s behavior and the final categories. A word window chosen for the illustration has a large response at a particular point in the network. The study does not select those illustrations by the change they cause in the predicted probability of a sentiment label. A response can meet a stronger competitor in its row, take part in a fold or lead to a feature the final classifier uses weakly. Conversely, an example can be classified correctly through signals that would never appear at the top of an individual detector’s ranking. A detector’s leading windows and a benchmark’s correct predictions provide observations at different levels of the computation.

The scope of negation illustrates what remains between those levels. The appearance of not in windows giving large values is evidence of sensitivity to a cue. Interpreting a review can also require knowing which judgment the cue affects, especially when the sentence contains multiple evaluative expressions. The graph permits a higher feature to receive a response associated with the cue together with evidence from another window. The inspection stops short of tracing particular negations through that graph to a decision. Its firm contribution is evidence that local features with recognizable linguistic content arise under sentiment training, providing plausible material for the higher calculations.

Limitations

Qualifications in the authors’ formulation

The paper specifies which position information the pool preserves. A retained activation has a place among the survivors of its row, so an upper calculation can treat it as earlier or later than another survivor. The original index is absent from the returned sequence. This is important to the way the architecture brings separated evidence within range of a short filter. It also limits the information carried by that sequence. Phrases that produce similarly ordered responses can have different separations in the text, and the upper filter can receive the same input from the row in both cases.

The authors’ description of the feature graph likewise sets the terms on which it can be interpreted. Its edges are dependencies among the network’s own calculations. The graph can bring together evidence that would belong to separate constituents under a syntactic analysis. A node can have significance for a classification even if a reader cannot label it as a particular relation. The authors invoke the resemblance to a syntactic hierarchy to explain how features can be combined at several scales. The resemblance concerns the organization of computation. No parsing standard is part of the definition of a successful path.

The paper presents the pooling schedule as a choice among possible functions. It gives the architecture a simple way to reserve space for detail near the input and to arrive at the desired width near the classifier. Its decisions about capacity depend on length and depth. The actual responses supply the content of that capacity. This is a consequential qualification because a sentence that spends much of its length elaborating one point is allocated the same space as an equally long sentence containing several independent judgments. The rule has a rationale for a design that needs gradually smaller representations. The paper supplies no comparison establishing that its particular rate of compression is uniquely suited to sentence structure.

The authors’ examples of linguistic features at different orders should be read in that context. A local cue may generate useful responses across the input, while a feature for a more elaborate combination may need fewer surviving values to describe it. The number of positions the pool provides expresses this intuition as an allocation. It gives no bound on the number of times a linguistic construction can actually occur. A construction can appear more often than there are available slots, and a single occurrence can generate high responses at several overlapping placements. The relevant unit for the schedule is a response.

There is also a stated prerequisite for the selection operation. The row presented to it has to be long enough to supply the requested number of values. Wide filtering makes a response sequence available even for a nonempty fragment shorter than the filter. A design using different quotas or filter widths would still have to make the pooling requirement and the available widths agree at every stage. The two properties address distinct parts of variable-length processing. The wide scan addresses which input lengths admit a filter placement. The final pool specifies the size of the representation whenever it can make the requested selection.

The treatment of folding indicates another admitted constraint. The paper identifies broader interaction among rows as something that a full matrix could provide. The operation it explores brings together pairs of rows through addition. This gives a definite, inexpensive way to let separate routes meet. It also means the choice of pairs limits where the interactions occur, and the sum carries each contribution only in combination with the other. Any interpretation of a feature after folding has to take that constraint into account.

The authors’ stated comparison on TREC is that the difference from the high-performing alternatives is statistically insignificant. There is a distinction between that description and a demonstration that the systems’ accuracies are equivalent. A test of equivalence would require some account of which differences are small enough to treat as immaterial. The paper’s result concerns competitive performance on the given question benchmark. It allows for systems that have similar overall results but distinct strengths, and it gives no assurance that any of them would retain the same ordering on a different sample.

The implementation report is also qualified in the paper. Its throughput depends chiefly on depth. The rate concerns the Matlab implementation on the hardware the authors describe and illustrates that the calculations can be used on a large collection of inputs. A comparative claim about efficiency would require corresponding measurements for the competing systems under comparable conditions. The experiments primarily compare classification behavior. Readers interested in the practical cost of fitting or using the systems have a throughput observation and an account of the convolution implementation, rather than a full cost comparison.

Consequences of the representation

Further limits follow from the operations even where the authors do not state them separately. One is that absolute position can matter indirectly. Moving an expression changes the windows in which it falls. A phrase moved from the middle to an edge can be presented with padding where it previously had real neighbors. An intervening edit can also introduce responses that compete for selection. The pooled result is insensitive to the old indices of a given set of survivors. The actual act of moving a phrase can change which candidates survive and the values they carry, so the position property has to be stated at the level where the selection is performed.

Input length can influence this effect independently of any new cue. Enlarging a sentence can change the quota of an intermediate pool. A candidate that previously ranked below the cutoff can then survive. This is useful if the longer sentence contains more evidence worth keeping, but it can also change the upper input in a way that reflects the change in allocation. Holding the word sequence in a local window fixed is therefore insufficient to predict what the rest of the system will do with that window across sentences of different lengths.

Another consequence concerns gaps. A higher filter can give useful weight to the order in which two selected responses appear, and the words between their source windows may be relevant to what that order means. If the intervening region has left no usable evidence in the selected values feeding that calculation, the upper filter cannot recover it from the gap between the survivors. The gap has been removed. Other rows or maps can provide information from there, but that is a property of the features learned and retained on the particular sentence. The architecture makes long-range composition possible alongside this selective loss of context.

The selection has no requirement to cover a variety of locations. Many high values in the same row can come from partly overlapping windows. More than one of those windows can owe its high response to the same conspicuous expression. A lower response to another part of the sentence can then lose space to repeated evidence from elsewhere. Keeping a sequence of values has the capacity to convey recurrence better than a single peak, but its output measures strong placements. It does not expose a count of the independent reasons a detector was active or of the distinct spans represented in the pool.

The independence of selections introduces a further interpretive issue when different maps come together. At the start of the network, one can point to the word represented by a column. After pooling, a shared column across maps or rows can have several origins. Two contributions added at an upper position may come from stretches with no proximity in the input, or they may come from almost the same stretch. The weights combine entries with matching coordinates in their current arrays. A reader who wants to give the combination a linguistic interpretation will need to trace the source of each contribution before concluding that the calculation relates particular phrases.

This also affects the interpretation of folding at later stages. A fold uses a common output position in the convolution for the current stage. That is a well-defined alignment for its addition. When the incoming maps already contain selections, the corresponding values can still have different source histories. The calculation supplies a precise arithmetic combination, while a claim about a phrase or a pair of phrases behind it needs more information. The maps retain their convenient rectangular organization through these changes in the meaning of a column.

Tied responses are another consideration for an exact reading of the definition. Equal values near the threshold can leave the positions selected underdetermined. Selecting an earlier or later tied response can change the graph’s predecessors. When another survivor lies between them, the choice can even affect the order of the values given to the next layer. The pool is described by strength and source order, which specifies what to do once the set of survivors is chosen. A reproducible reconstruction of graphs on such cases also needs a convention for which tied position obtains the remaining place.

A higher response can have predecessors in a large portion of a sentence without relying strongly on every part of that span. Some weights at the upper offsets can have small effects for the example. Contributions can reinforce or counteract one another. The relevant class scores can also be mostly determined by features from elsewhere in the representation. A structural span is a description of possible sources of influence on a calculation. Establishing that the observed prediction depends on a distant relationship requires evidence at the level of the decision, including what happens when the purportedly related cues change.

The effect of those changes can be difficult to interpret from the original graph alone. Imagine editing a late phrase while keeping an early one in place. The late phrase’s values can change, leaving its former place in the pool vacant for a different response. The upper filter then reads a sequence with a different set of predecessors. Thus an observed change in prediction can involve a change in evidence and a change in the route by which other evidence enters. The input-dependent graph is part of what gives the architecture flexibility. The same property makes a static image of its paths a partial explanation of behavior under edits.

Finally, the filter inspection is limited by the level at which the authors carry it out. At the first layer, the procedure can associate strong activity with actual contiguous stretches. At a later stage, the equivalent input is a combination of earlier responses, potentially from several maps and separated word windows. An account of what higher features detect would therefore need to connect their high responses to the contributing lower activity and its origins. The paper’s first-layer examples give readers an entry point for such an analysis, with the most linguistically transparent observations concentrated where the network still reads consecutive words.

What the movie-review evaluations establish

The paper’s strongest comparative findings concern aggregate performance of configurations fitted for each review task. This puts a boundary around claims about individual design choices. For example, a higher score can be consistent with a benefit from wider coverage of the sentence ends, with an advantage from keeping more responses, or with a useful interaction between selection and the second convolution. Accuracy gives the same credit whichever route produced the decision. Because the systems differ at several of these points, the effect of replacing just one operation is undetermined.

The presence of phrase labels matters when interpreting what the review classifiers learn. Each labelled subphrase gives the training process a direct target for its interpretation in isolation. A sentence-level label alone would have to provide a learning signal for that phrase indirectly, through the role the phrase plays alongside the rest of the sentence. The DCNN does its actual feature calculation without a supplied tree. The review experiment benefits from annotations at more than one span nonetheless. Its scores therefore answer a question about a parser-independent architecture trained with phrase as well as sentence labels.

This distinction is relevant to the visualization of lower features. Because short labelled passages are used as independent training instances, local sentiment patterns receive supervision in examples where surrounding context is absent. Longer inputs also give the network occasions to learn how such patterns matter together. The behavior of an individual detector is observed after both kinds of training. The rankings cannot determine which type of example taught that detector the recognizable behavior seen in its strongest activations. A claim about learning the same local preferences with whole-sentence labels alone goes beyond the reported comparison.

Fine-grained sentiment raises an additional measurement question. A prediction that lands on the wrong side of neutral and a prediction that gets the orientation right but misses the degree both reduce accuracy. A characterization of how the method understands degree would need the distribution of its predictions across the related categories. The same aggregate accuracy can be compatible with different patterns of error among them. This is a general property of the benchmark measure, especially pertinent when the labels are ordered in meaning even though credit is awarded for exact category matches.

The paper also leaves open how gains are distributed across constructions. An aggregate improvement could come from unusual cases involving distant qualifications or from familiar cases where polarity is readable in a short expression. A first-layer detector associated with not gives some evidence that training yields responses to a useful cue. It says little about accuracy specifically on inputs where a negation has to be assigned the correct scope. Likewise, the structural graph shows a way for such evidence to meet a distant phrase, but the review result does not isolate sentences on which success depends on that meeting.

A length breakdown would answer a different question. On a fragment, the difference between partial and full window placements is particularly easy to describe. On a long sentence, several strong responses in the same row may compete for a quota that grows with length but still compresses the sequence. A useful performance comparison for these mechanisms would reveal where in that range the classifier’s behavior changes most. The paper’s sentence-level results give the aggregate outcome under the actual split. The effects on examples at different lengths, and the relation between those effects and errors near the sentence margins, are left open.

Finally, the two review settings change multiple aspects of the task and architecture at once. The fine-grained configuration has its own filter widths, map counts and top quota. It operates with different labels and on its designated split. The paper thus shows that the same broad architecture can be fitted successfully under either scheme. It does not establish a general rule connecting the number or closeness of categories with a particular filter width or quota. The chosen values describe the networks tested, and their interaction with the finer distinctions would require separate evidence.

What question categories and emoticons can test

Question classification has an output particularly well suited to recognizing cues distributed through a sentence. If a question concerns numerical information, words that describe a quantity can help identify its type even when the topic is unfamiliar. Yet identifying that type says little about whether the representation distinguishes the underlying facts requested by questions in the same category. A correct label can be obtained from a relatively small part of the question. The test establishes capability on the categorization task. More detailed claims about finding the answer or representing the full request would need another evaluation.

The TREC result also has the starting vocabulary representations built into its conditions. Context prediction has already supplied meaningful variation to the initial embeddings by the time the question labels are used. The supervised question set is the source of labels for fitting the task. This permits a comparison with systems supplied with grammar, lexical knowledge or manually specified relations, while leaving open how much of the attained accuracy depends on context-based initialization. The paper provides no counterpart on TREC with the other settings held fixed and the vectors initialized at random.

The relative performance of the question classifiers is consequently best read with attention to the kind of resource each setup supplies. The engineered comparators incorporate explicit linguistic properties of questions. The DCNN obtains information from word contexts through the embeddings and learns its own classification responses during training. Similar test accuracies can conceal differences in the types of evidence the systems exploit. They can also conceal different distributions of errors by category or by wording. The result supports the usefulness of the learned feature representation under those benchmark conditions. It leaves those finer comparisons unevaluated.

In the Twitter experiment, the distinction between training labels and evaluation labels is central to what the result means. Fitting the system on posts labelled through emoticons gives it a large body of examples. Scoring it on a separate set judged by people requires it to learn a relationship that applies to those judgments. The evidence about agreement with human assessments comes from about 400 tweets in the test set. The size of the training collection makes a case for the feasibility of obtaining supervision at scale. The size of the test collection determines how many independently scored decisions are available to describe the comparison.

Automatic labelling combines a choice of which examples enter the training set with a choice of what label to give them. Posts that contain a suitable emoticon offer the information needed by the rule. They can differ from other posts in their wording, style or the explicitness of their attitude. In any individual post, the emoticon can also suggest a different interpretation from the surrounding text. The experiment evaluates the result of using the labels and posts obtained through the rule. It supplies no independent measurement of how often the rule assigns the category a person would choose.

An explanation based on scale alone would require more information. A large supply of training examples gives both a conventional short-pattern classifier and a neural network opportunities to learn reliable cues. The DCNN’s better performance against such a comparator shows a difference in what the systems achieve under the reported supervision. It cannot say how the difference changes with progressively smaller samples, with equally numerous human labels, or with a different automatic signal. Those cases would vary aspects of the data source that remain coupled in the result.

The reported reduction in error also describes a specific comparison. Its reference is the strongest reported baseline relying on individual words and word pairs. The evidence concerns the gain over that system on the held-out posts with human judgments. A different question would be how much of the gain could be obtained with a longer but still strictly local feature extractor. Another would be how much came from pooling in an order that lets a second scan combine distant evidence. The paper’s comparisons support the complete DCNN in a substantial training regime without identifying how frequently either mechanism settled a test decision.

The scope of the sentence representation claim

The authors’ argument for broad language applicability concerns prerequisites. The filters require sequences of word vectors, and the selection acts on numerical responses. A language-specific parser is unnecessary for obtaining the feature graph. That can ease use on inputs for which a parser is hard to supply or for which its groupings would be a poor starting point. The paper’s experiments provide examples of different tasks and kinds of text, with no cross-language comparison. The expected quality of a new application would still depend on the input vocabulary, the available supervision and the patterns the network could learn from it.

The term “sentence representation” can also suggest several different performance claims. The representation can distinguish categories accurately while losing details irrelevant to the label. For a movie review, information about who performed an action and when it occurred can be much less useful to the classifier than the words expressing approval. For TREC, the distinction between subjects of two questions can matter little if both seek the same kind of answer. The tasks supply clear tests of what the learned representation supports. They give a partial view of how much of the content remains accessible.

The authors discuss wider uses such as comparing meanings or conditioning word-by-word generation. These examples help motivate the sentence problem. The evidence in the experiments concerns choosing discrete categories. A representation intended for a different output might need to preserve information about entities, events and relations that can be discarded in a sentiment decision. The architecture offers a way to build features with varying input ranges. Whether a particular training task makes those features preserve the distinctions needed by another task is a separate question.

These limits leave a precise set of findings. The operators give a structural account of how an upper feature can depend on separated regions without first constructing a syntactic tree. The observed rankings show useful learned representations under the evaluated classification conditions. The highest-response windows illustrate some of the local linguistic material available to those representations. Evidence about the frequency of particular higher-order relations, their role in deciding categories and the contribution of the individual operations would require measurements beyond those observations.

What came after

Convolution for sentences, longer texts and pairs

Convolution reappears in later work on the same sentence-level prediction problem. Convolutional Neural Networks for Sentence Classification shares the premise that a learned detector can look for useful evidence at several places in an input. A sentence classifier then has to base a single category on the responses such detectors obtain. The DCNN is a concrete instance of how much can happen between the scan and the final choice. It can preserve a sequence of responses from one detector and extract further evidence from their arrangement. The common subject is how to use a series of local measurements for a decision about the whole input. Convolutional Neural Networks for Sentence Classification

Very Deep Convolutional Networks for Text Classification makes depth a subject of investigation within convolutional text classification. The DCNN gives a reason to consider the number of stages and their input spans separately. Extra stages can construct features from previously calculated responses, while the sequence presented at each stage determines which of those responses can meet. In Kalchbrenner and colleagues’ architecture, a short stack can already create a feature that reaches distant text because intermediate selection changes the sequence. The later study’s focus on very deep convolution concerns another dimension of this design problem: what can be learned when local feature extraction is repeated through a deeper computation. Very Deep Convolutional Networks for Text Classification

ABCNN applies convolution and attention to sentence pairs. A pair brings a new condition on what makes a feature useful. For instance, an expression in one sentence may become relevant because a related expression occurs in the other. A strong response within a sentence is one source of information about its importance, and the relation to the accompanying sentence can supply another. The DCNN’s pools choose among responses to an individual input. ABCNN’s stated combination of attention and convolution puts evidence about the pair into the representation problem. This extends the setting in which learned local responses are useful, with two sentences jointly defining what the computation has to represent. ABCNN

Selection when the output concerns an event or a mention

Event Extraction via Dynamic Multi-Pooling connects convolution to event extraction through a pooling operation designed for that task. It shares the observation that the representation delivered by a convolution depends on how its many responses are reduced. An event description can contain different kinds of evidence in different places. The choice of what to aggregate has to serve the description being extracted, which is a more specific demand than making one judgment about the overall tone or question type. Dynamic multi-pooling names the later work’s approach to aggregation in that setting. The connection to the DCNN is the use of selection between a learned scan and the information needed for a decision. Information extraction · Event Extraction via Dynamic Multi-Pooling

Named Entity Recognition with Bidirectional LSTM-CNNs combines convolution with bidirectional recurrence for identifying entities. Here the position of a name in the input matters to the requested output. A sentence-level sentiment label can be correct even after the classifier has lost the index of the phrase that most influenced it. An entity decision has to be associated with the stretch that expresses the mention. This gives learned local patterns a related but distinct function. They can contribute evidence about particular parts of a sequence, while the later architecture’s use of bidirectional recurrence places convolution within a calculation that processes the sequence in both directions. Named Entity Recognition with Bidirectional LSTM-CNNs

Taken together, these applications help explain why pooling is specific to the output a representation serves. A global label tolerates the loss of some detailed locations, and that loss can even bring useful features together within reach of another scan. Describing an event or locating an entity makes some of those details part of the object being predicted. Convolution addresses how to create responses that can generalize across different passages. What the succeeding computation needs to know about their origins depends on what that application asks it to produce.

Alternative ways to organize composition

Tree-structured recurrent work takes up the question of how a semantic representation is composed from smaller units. Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networks uses a tree to organize the recurrent computation. That arrangement gives a feature a defined set of inputs through its place in the tree. The DCNN gives an upper feature a defined place in the stack while allowing the sources of its inputs to vary with selection. Both approaches make composition across scales part of representation. They supply different answers to where the grouping that governs a particular calculation comes from. Tree-Structured Long Short-Term Memory Networks

Deep Unordered Composition Rivals Syntactic Methods for Text Classification addresses how much structure a text classifier needs by studying unordered composition alongside syntax-based approaches. That question connects to a distinction made clear by the DCNN. Reliance on a supplied tree is one issue. Retaining information about the order of the input is another. A convolutional representation can preserve word order within each window and the precedence of selected responses while forming its own graph. Unordered composition examines classification under a different assumption about how arrangement enters the computation. Both approaches ask what structure a task actually demands from the representation. Deep Unordered Composition

Hierarchical Attention Networks for Document Classification uses attention and hierarchy to address decisions about documents. A document can supply relevant evidence in widely separated passages, so the way lower representations enter larger ones is consequential. The DCNN addresses a version of this problem within the sentence: several local responses can be carried to a further stage, where some become ingredients of a new feature. The document work places attention within a hierarchy for the larger unit of classification. The continuity is the need to give relevant evidence a route through more than one representational scale. Hierarchical Attention Networks

A Structured Self-attentive Sentence Embedding brings the question back to how a representation describes one sentence. Its stated mechanism is self-attention, so the evidence used to construct the embedding comes from attending within the input itself. The DCNN brings a related concern into view by letting a row present several values in succession. A single sentence can supply evidence about more than one region or feature, and the quality of the resulting embedding can depend on how that evidence is organized. This is the representational problem shared by the two works. They locate the organization of the evidence in different operations. A Structured Self-attentive Sentence Embedding

DiSAN makes direction a named property of a self-attentive approach to language understanding. Direction already has a particular role in the DCNN. Earlier and later survivors take different places in the pooled sequence and can act through different filter weights. If their order reverses, a higher feature can respond differently. Directional self-attention pursues the relevance of direction within attention itself. The connection is strongest at the level of the question each mechanism addresses: when evidence comes from different positions, the relative orientation of those positions can change what their combination conveys. DiSAN

Sentiment about a particular target

Effective LSTMs for Target-Dependent Sentiment Classification uses a recurrent approach for sentiment about a specified target. A whole-sentence classifier receives credit for correctly describing the prevailing opinion under its label scheme. In target-dependent classification, a reader can ask for the judgment about one subject even when the sentence praises that subject and criticizes another. A strong response to evaluative wording then provides only part of the evidence. The relation between the wording and the target helps determine its value to the decision. The citing work carries the representation problem into a setting where relevance is conditional on what is being judged. Effective LSTMs for Target-Dependent Sentiment Classification

Aspect Level Sentiment Classification with Deep Memory Network investigates the use of memory for sentiment about an aspect. This makes the problem of assembling evidence more specific still. An opinion about a film’s pacing can be pertinent even when more emphatic language elsewhere describes its performances. A classifier of the whole passage can draw on the aggregate impression. An aspect-level representation has to give useful weight to the language concerning the specified property. The relationship to the DCNN concerns how a system gives different pieces of local evidence a route to the sentiment decision, with the aspect determining which evidence matters. Aspect Level Sentiment Classification with Deep Memory Network

Aspect Based Sentiment Analysis with Gated Convolutional Networks brings learned convolutional features and gating to the aspect-based task. It provides a close point of contact with the DCNN at the level of extracting responses from local language. It also supplies a reason for treating the fate of a response as a separate design problem. A response can indicate emphatic sentiment and have limited use for judging the designated aspect. Gating is the operation named by the later work in a setting where selecting useful sentiment evidence requires attention to what the sentiment concerns. The earlier paper’s ordered pools make visible how decisions about carrying responses forward affect the information that the classifier can use. Aspect Based Sentiment Analysis with Gated Convolutional Networks

Learning sentence features for other uses

Learning Distributed Representations of Sentences from Unlabelled Data changes the source of evidence for learning sentence vectors. The DCNN experiments fit their filters to classification objectives. Even the tweet experiment, where humans do not supply the training categories, gives each training example an assigned sentiment label. The later work places the acquisition of representations from unlabelled sentences at the center of the problem. It thus asks a related question about what useful numerical description a sentence can receive while changing the training signal that shapes that description. Learning Distributed Representations of Sentences from Unlabelled Data

Adversarial Multi-task Learning for Text Classification studies an adversarial approach to learning with multiple classification tasks. The DCNN paper applies its design independently to several problems, so the learned representation in each experiment is shaped by the categories belonging to that experiment. When several tasks participate in learning, it becomes pertinent to ask which distinctions can be useful across decisions and which need to reflect properties of a particular task. The citing work puts that question inside the training problem. Its connection to the DCNN lies in using classification supervision to shape text representations and in asking how broadly the resulting features can serve. Adversarial Multi-task Learning for Text Classification

How to Fine-Tune BERT for Text Classification? treats supervised adaptation for classification as the central question. The TREC experiment gives an earlier example of separating a learned starting point from the features ultimately fitted for a category decision. There, the starting point consists of word vectors obtained through prediction of contexts. The class labels then help shape the usable representation for questions. The later work studies adaptation in the setting named by its title. The shared issue is what a classification task can draw from a previously learned representation and how training can adjust that starting point to the distinctions the labels require. Fine-tuning · How to Fine-Tune BERT for Text Classification?

Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer puts transfer at the center of a common textual input and output formulation. The DCNN experiments show how features can be configured for a particular label space, with the final weights assigning scores to categories. The later formulation makes output text part of a shared way to pose tasks. This extends the question of what information an input representation should preserve and what the learning process can carry from one use to another. The citation connects two ways of approaching that problem, one through task-level classifiers and the other through a common formulation for diverse decisions. Transformer and attention · Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer

The citations establish connections through convolution, selection, hierarchy, sentiment and the conditions under which representations are learned. The later works’ stated methods identify where those questions reappear, with direct inheritance of the specific pooling schedule undetermined. The DCNN’s particular contribution is to expose the decision made between stages of feature extraction. Selecting an ordered set of responses determines what evidence survives and changes which parts of the original input can enter the same calculation. That account remains pertinent whenever a representation has to compress a sequence before reasoning over its remaining parts.

 Institutions

 Fields, topics and concepts

Cite

Cite as Nal Kalchbrenner, Edward Grefenstette and Phil Blunsom. 2014. A Convolutional Neural Network for Modelling Sentences. arXiv:1404.2188.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.48550/arxiv.1404.2188 · arXiv 1404.2188

@misc{kalchbrenner2014convolutional,
  title = {{A Convolutional Neural Network for Modelling Sentences}},
  author = {Nal Kalchbrenner, Edward Grefenstette and Phil Blunsom},
  year = {2014},
  doi = {10.48550/arxiv.1404.2188},
  eprint = {1404.2188},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1404.2188}
}

References

38 references, from the paper's own bibliography.

  1. Marco Baroni and Roberto Zamparelli. 2010. Nouns are vectors, adjectives are matrices: Representing adjective-noun constructions in semantic space. In EMNLP, pages 1183–1193. ACL. OpenAlex ↗ · Scholar ↗
  2. Phil Blunsom, Krystle Kocik, and James R. Curran. 2006. Question classification with log-linear models. In SIGIR '06: Proceedings of the 29th annual international ACM SIGIR conference on Research and development in information retrieval, pages 615–616, New York, NY, USA. ACM. OpenAlex ↗ · Scholar ↗
  3. Daoud Clarke. 2012. A context-theoretic framework for compositionality in distributional semantics. Computational Linguistics, 38(1):41–71. our card
  4. Bob Coecke, Mehrnoosh Sadrzadeh, and Stephen Clark. 2010. Mathematical Foundations for a Compositional Distributional Model of Meaning. March. our card
  5. Ronan Collobert and Jason Weston. 2008. A unified architecture for natural language processing: Deep neural networks with multitask learning. In International Conference on Machine Learning, ICML. OpenAlex ↗ · Scholar ↗
  6. John Duchi, Elad Hazan, and Yoram Singer. 2011. Adaptive subgradient methods for online learning and stochastic optimization. J. Mach. Learn. Res., 12:2121–2159, July. OpenAlex ↗ · Scholar ↗
  7. Katrin Erk and Sebastian Padó. 2008. A structured vector space model for word meaning in context. Proceedings of the Conference on Empirical Methods in Natural Language Processing - EMNLP '08, (October):897. our card
  8. Katrin Erk. 2012. Vector space models of word meaning and phrase meaning: A survey. Language and Linguistics Compass, 6(10):635–653. OpenAlex ↗ · Scholar ↗
  9. Felix A. Gers and JŸrgen Schmidhuber. 2001. Lstm recurrent networks learn simple context-free and context-sensitive languages. IEEE Transactions on Neural Networks, 12(6):1333–1340. OpenAlex ↗ · Scholar ↗
  10. Alec Go, Richa Bhayani, and Lei Huang. 2009. Twitter sentiment classification using distant supervision. Processing, pages 1–6. OpenAlex ↗ · Scholar ↗
  11. Edward Grefenstette and Mehrnoosh Sadrzadeh. 2011. Experimental support for a categorical compositional distributional model of meaning. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, pages 1394–1404. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  12. Edward Grefenstette. 2013. Category-theoretic quantitative compositional distributional models of natural language semantics. arXiv preprint arXiv:1311.1539. OpenAlex ↗ · Scholar ↗
  13. Emiliano Guevara. 2010. Modelling Adjective-Noun Compositionality by Regression. ESSLLI'10 Workshop on Compositionality and Distributional Semantic Models. OpenAlex ↗ · Scholar ↗
  14. Karl Moritz Hermann and Phil Blunsom. 2013. The Role of Syntax in Vector Space Models of Compositional Semantics. In Proceedings of the 51st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Sofia, Bulgaria, August. Association for Computational Linguistics. Forthcoming. OpenAlex ↗ · Scholar ↗
  15. Geoffrey E. Hinton, Nitish Srivastava, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2012. Improving neural networks by preventing co-adaptation of feature detectors. CoRR, abs/1207.0580. our card
  16. Geoffrey E. Hinton. 1989. Connectionist learning procedures. Artif. Intell., 40(1-3):185–234. OpenAlex ↗ · Scholar ↗
  17. Zhiheng Huang, Marcus Thint, and Zengchang Qin. 2008. Question classification using head words and their hypernyms. In Proceedings of the Conference on Empirical Methods in Natural Language Processing, EMNLP '08, pages 927–936, Stroudsburg, PA, USA. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  18. Nal Kalchbrenner and Phil Blunsom. 2013a. Recurrent continuous translation models. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, Seattle, October. Association for Computational Linguistics. our card
  19. Nal Kalchbrenner and Phil Blunsom. 2013b. Recurrent Convolutional Neural Networks for Discourse Compositionality. In Proceedings of the Workshop on Continuous Vector Space Models and their Compositionality, Sofia, Bulgaria, August. Association for Computational Linguistics. our card
  20. Dimitri Kartsaklis and Mehrnoosh Sadrzadeh. 2013. Prior disambiguation of word tensors for constructing sentence vectors. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing (EMNLP), Seattle, USA, October. OpenAlex ↗ · Scholar ↗
  21. Andreas Küchler and Christoph Goller. 1996. Inductive learning in symbolic domains using structure-driven recurrent neural networks. In Günther Görz and Steffen Hölldobler, editors, KI, volume 1137 of Lecture Notes in Computer Science, pages 183–197. Springer. OpenAlex ↗ · Scholar ↗
  22. Yann LeCun, Léon Bottou, Yoshua Bengio, and Patrick Haffner. 1998. Gradient-based learning applied to document recognition. Proceedings of the IEEE, 86(11):2278–2324, November. OpenAlex ↗ · Scholar ↗
  23. Xin Li and Dan Roth. 2002. Learning question classifiers. In Proceedings of the 19th international conference on Computational linguistics-Volume 1, pages 1–7. Association for Computational Linguistics. OpenAlex ↗ · Scholar ↗
  24. Tomas Mikolov and Geoffrey Zweig. 2012. Context dependent recurrent neural network language model. In SLT, pages 234–239. OpenAlex ↗ · Scholar ↗
  25. Tomas Mikolov, Stefan Kombrink, Lukas Burget, Jan Cernocký, and Sanjeev Khudanpur. 2011. Extensions of recurrent neural network language model. In ICASSP, pages 5528–5531. IEEE. OpenAlex ↗ · Scholar ↗
  26. Jeff Mitchell and Mirella Lapata. 2008. Vector-based models of semantic composition. In Proceedings of ACL, volume 8. OpenAlex ↗ · Scholar ↗
  27. Jeff Mitchell and Mirella Lapata. 2010. Composition in distributional models of semantics. Cognitive Science, 34(8):1388–1429. OpenAlex ↗ · Scholar ↗
  28. Jordan B. Pollack. 1990. Recursive distributed representations. Artificial Intelligence, 46:77–105. OpenAlex ↗ · Scholar ↗
  29. Holger Schwenk. 2012. Continuous space translation models for phrase-based statistical machine translation. In COLING (Posters), pages 1071–1080. OpenAlex ↗ · Scholar ↗
  30. Jo‹o Silva, Lu’sa Coheur, AnaCristina Mendes, and Andreas Wichert. 2011. From symbolic to sub-symbolic information in question classification. Artificial Intelligence Review, 35(2):137–154. OpenAlex ↗ · Scholar ↗
  31. Richard Socher, Jeffrey Pennington, Eric H. Huang, Andrew Y. Ng, and Christopher D. Manning. 2011. Semi-Supervised Recursive Autoencoders for Predicting Sentiment Distributions. In Proceedings of the 2011 Conference on Empirical Methods in Natural Language Processing (EMNLP). our card
  32. Richard Socher, Quoc V. Le, Christopher D. Manning, and Andrew Y. Ng. 2013a. Grounded Compositional Semantics for Finding and Describing Images with Sentences. In Transactions of the Association for Computational Linguistics (TACL). our card
  33. Richard Socher, Alex Perelygin, Jean Wu, Jason Chuang, Christopher D. Manning, Andrew Y. Ng, and Christopher Potts. 2013b. Recursive deep models for semantic compositionality over a sentiment treebank. In Proceedings of the 2013 Conference on Empirical Methods in Natural Language Processing, pages 1631–1642, Stroudsburg, PA, October. Association for Computational Linguistics. our card
  34. Joseph Turian, Lev Ratinov, and Yoshua Bengio. 2010. Word representations: a simple and general method for semi-supervised learning. In Proceedings of the 48th Annual Meeting of the Association for Computational Linguistics, pages 384–394. Association for Computational Linguistics. our card
  35. Peter Turney. 2012. Domain and function: A dual-space model of semantic relations and compositions. J. Artif. Intell. Res.(JAIR), 44:533–585. OpenAlex ↗ · Scholar ↗
  36. Alexander Waibel, Toshiyuki Hanazawa, Geofrey Hinton, Kiyohiro Shikano, and Kevin J. Lang. 1990. Readings in speech recognition. chapter Phoneme Recognition Using Time-delay Neural Networks, pages 393–404. Morgan Kaufmann Publishers Inc., San Francisco, CA, USA. OpenAlex ↗ · Scholar ↗
  37. Fabio Massimo Zanzotto, Ioannis Korkontzelos, Francesca Fallucchi, and Suresh Manandhar. 2010. Estimating linear models for compositional distributional semantics. In Proceedings of the 23rd International Conference on Computational Linguistics, pages 1263–1271. Association for Computational Linguistics. our card
  38. Luke S. Zettlemoyer and Michael Collins. 2005. Learning to map sentences to logical form: Structured classification with probabilistic categorial grammars. In UAI, pages 658–666. AUAI Press. our card

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/kalchbrenner-2014-convolutional-neural-network-modelling-sentences/