Elamur Research

Efficient Character-level Document Classification by Combining Convolution and Recurrent Layers

Paper · 2016 · Yijun Xiao and Kyunghyun Cho

Summary

A document classifier can read text as a sequence of words or start with the characters that make up those words. Starting with characters lets the classifier work with the spelling of a rare or unfamiliar word and learn patterns shared by related forms. It also gives the classifier a much longer sequence to process. The authors ask whether a system can retain the benefits of character input while using fewer learned parameters than a deep convolutional classifier. Their answer is ConvRec, an architecture for text classification that uses convolutions to recognize local patterns and a recurrent layer to read those patterns in order.

ConvRec first gives each character a learned numerical representation. Convolutional layers look for useful combinations in nearby positions, and pooling condenses their responses into a shorter sequence. A bidirectional long short-term memory layer then reads that sequence from both ends. The final state from each direction contributes to a document representation, which the classifier uses to assign probabilities to the available categories. Putting the recurrent layer after the convolutions matters because recurrent computation proceeds sequentially within each direction. It runs over the condensed features rather than visiting every character in turn.

The authors evaluate ConvRec on eight large document classification tasks covering reviews, news, questions and ontology categories. Its test performance is comparable to that of the strongest character-level convolution-only comparison without data augmentation for each task, with substantially fewer parameters. On Yahoo!, Yelp review full, DBPedia, Sogou news, and AG's news, the test error is lower for ConvRec. Answers. Yelp review polarity and Amazon review polarity are examples where it has higher test error. Two or three convolutional layers give the strongest performance in the depth analysis. Increasing the width of the architecture improves validation error on AG's news and Yahoo! Answers, but the gains come with a 70 times increase in parameter count.

The experiments establish that a relatively shallow convolutional front end can support competitive document classification when a recurrent layer follows it. The authors also observe that ConvRec tends to compare more favorably on tasks with more classes and, less consistently, on tasks with less training data. They suggest that fewer pooling stages may preserve useful detail and that a smaller parameter count may help when examples are scarce. Those are explanations for the observed patterns. The comparisons measure classification error and parameter count directly, while the amount of detail retained and the distances over which the recurrent layer uses it remain open questions.

Deep dive: Efficient Character-level Document Classification by Combining Convolution and Recurrent Layers

How ConvRec combines character-level convolutions with bidirectional recurrence to classify documents with fewer parameters than convolution alone. · about 40 minutes to read

The problem and its context

What a classifier gets to see

Document classification starts with a piece of text and a pre-defined set of possible categories. A category can describe the subject of a news item, the kind of question someone asks, or the opinion expressed in a review. The general problem can allow several categories per document. In the experiments here, the system predicts a class from a set of alternatives. It needs to turn an input whose length varies from document to document into evidence for those alternatives. The design question is what form that evidence should take and how much of the process can be learned from the classification examples.

One conventional approach separates feature extraction from the decision itself. The paper gives TF-IDF as an example. It builds a vector whose entries reflect how prominent terms are in a document and how common they are across the collection. The classifier receives that vector. In the neural approaches described by the authors, feature extraction and classification are trained together. The text arrives as a sequence, successive layers build numerical features from it, and supervision from the document labels can shape the features as well as the decision. A feature is simply a numerical response the system can use as evidence.

The neural systems discussed in the introduction commonly represent the text as a sequence of words. Each vocabulary entry has its own position in a one-hot vector, an array with one active entry identifying the word. Multiplying by a learned weight matrix gives a shorter, dense representation. The paper describes these word embeddings as part of a pipeline that learns from the document classification task. The choice of a word vocabulary precedes that learning and determines which distinctions the input can express.

The authors identify a statistical cost to giving every vocabulary entry its own set of weights. Words with a shared root, prefix or suffix can have useful similarities in form, but their initial identities are independent. A frequent word can supply many opportunities to learn its representation. A rare related form has fewer opportunities, and the input representation does not itself tell the classifier that the forms share material. An external morphology component could find roots and affixes before classification. The paper points out that such a component depends heavily on the language and can be tuned independently of the task the classifier ultimately has to solve.

The vocabulary also sets a hard boundary around the words the system can distinguish. When unfamiliar or rare words map to the same unknown entry, the classifier loses their written forms at the point of input. A typo and an unfamiliar term from a different domain can then receive the same representation even though their spellings offer different clues. The paper uses informal social media writing to explain why typos matter and a mismatch between the training and target domains to explain why unfamiliar vocabulary matters. These examples motivate preserving written form. They are separate from the conditions tested in the document classification experiments.

Character input changes where that boundary falls. As long as the characters of an unfamiliar word are represented, its spelling can still reach the network. The same learned operation can respond to a recurring string in familiar words, rare words or words that never appeared in training. This creates an opportunity to share evidence across forms. The classification objective can then reward the patterns that help predict the labels. It does not require the system to identify a string as a linguistically valid morpheme before using it.

The paper situates this move among earlier uses of character sequences. It describes Finding Function in Form as part of the work on building word representations from characters. It also points to character input in character-based transition-based parsing, where the task is to recover relations among words rather than classify a document. These precedents show why the input unit is a design choice. The same basic machinery that projects one-hot word identities into vectors can also project one-hot character identities. What changes is the length and granularity of the sequence passed on to later layers.

Why character sequences change the architecture

At character resolution, a short stretch of prose occupies many more positions than it does at word resolution. A local operation can pick out neighboring letters or punctuation, but a decision that depends on evidence spread across a document needs some way to connect distant positions. The authors focus on how much machinery the classifier needs to make those connections. The problem becomes particularly important for documents that occupy hundreds or thousands of character positions.

The closest precedent is Character-level Convolutional Networks for Text Classification. Its filters move over overlapping windows, producing feature responses wherever a pattern occurs. Pooling then keeps the largest responses within smaller, non-overlapping ranges. Repeating the two operations allows higher layers to combine evidence from progressively broader portions of the input. The final convolutional outputs are flattened for fully connected layers and a category prediction. A fully connected layer can combine values from the entire vector it receives.

The paper uses the term receptive field for the range of positions contributing to a response. A convolutional layer with a narrow receptive field can inspect only a short stretch of its immediate input at a time. Once layers are stacked, that immediate input already summarizes neighborhoods from below, so the effective span in the original document grows. The earlier architecture uses receptive fields of 7 or 3 and stacks six convolutional layers before two fully connected layers. The ConvRec authors take this depth as a sign of the work required to expand the reach of narrow filters through a long character sequence.

A recurrent layer offers a different way to connect positions. It takes a feature vector and a state that carries information from its previous step, then updates the state. Repeated updates give an early input a path through the computation to a much later state. The state has a fixed dimension, so the same update can be used as the sequence grows. This reach is a property of the computation. Learning to keep a useful feature active through many updates is a separate problem, which motivates the gated recurrent units discussed in the paper.

There is also a computational tradeoff. Within a convolutional layer, responses at different positions can be calculated in parallel because each is determined by the layer below. Within a recurrent pass, the state at one step depends on the state at the preceding step. The recurrent workload grows linearly with sequence length, and many of its operations must take place in sequence. Running recurrence directly on characters would give it the longest input in the architecture. The paper therefore puts the operations that can shorten the input before the one that reads it sequentially.

What other combinations had already done

The paper discusses a recurrent approach to sentiment analysis from Carrier and Cho. It starts with embeddings, reads the resulting sequence with a recurrent layer and averages the states for classification. There is no intervening convolutional stage in that approach. The comparison helps clarify two design choices in ConvRec, the shorter sequence that the recurrent layer reads and the use of terminal states to summarize it. The paper describes the earlier system as related work, while its main benchmark comparison is with character-level convolution.

The convolution-gated recurrent network, or Conv-GRNN, also gives local and document-wide processing to different components. Its hierarchy is organized around sentences. A convolutional or recurrent component builds a vector for each sentence, and an upper recurrent component reads those vectors to represent the document. The division of labor depends on the sentence as an explicit unit. ConvRec divides the work according to the reach and cost of the operations. Its convolutional output is an ordered sequence of local features drawn from the document, which the recurrent layer can read without a separate stage that builds one vector per sentence.

That distinction explains why the authors describe the designs as compatible. A ConvRec encoder could, in principle, supply the sentence vectors in a sentence-based system. Its local processing followed by recurrence could also be applied to a long sequence of sentence vectors. In the experiments, the sequence entering ConvRec comes from characters, and the recurrent stage processes the features produced from them. The proposed combinations with Conv-GRNN are architectural possibilities discussed by the authors.

The paper also describes an earlier recursive approach to sentence classification. It combines representations along a parse tree, building a sentence vector by following the tree's structure. The tree supplies an order for composition, but it requires an external parser. The authors also point out the difficulty of carrying that design over to documents with multiple sentences. ConvRec gets its order from the text sequence and its local neighborhoods from the convolutional windows. It can therefore build a document representation without obtaining a tree first.

The method, step by step

From a document to a sequence of features

ConvRec treats the document as an ordered sequence of character identities. It converts each identity into a small learned vector. A bank of convolutional filters reads consecutive groups of those vectors. Each filter can learn to respond to a particular combination of values across a local window, and the same filter is used wherever that window is placed. Pooling compresses the responses while keeping their rough order. Further convolution and pooling stages repeat this process on the features that survived the preceding stage.

The shortened sequence still has a beginning and an end. A forward recurrent pass moves through it in reading order, and a reverse pass works back from its end. Each pass updates its own state as it goes. The system takes the state reached when each pass finishes, joins the two states and computes a score for every category. The length of the document affects the number of positions processed, while the number of values delivered to the classifier is set by the dimensions of the recurrent states.

How ConvRec turns characters into a category prediction

The steps in order.

How ConvRec turns characters into a category predictionStep 1: Encode each character as a one-hot vector1. Encode each character as a one-hot vectorStep 2: Look up its learned embedding2. Look up its learned embeddingStep 3: Extract local features with convolutional filters3. Extract local features with convolutional filtersStep 4: Pool neighboring responses and repeat across layers4. Pool neighboring responses and repeat across layersStep 5: Read the shorter sequence in both directions5. Read the shorter sequence in both directionsStep 6: Concatenate the final state from each direction6. Concatenate the final state from each directionStep 7: Convert category scores into probabilities7. Convert category scores into probabilities

The order of operations is part of the efficiency argument. A convolutional filter can see the same pattern at different positions because it uses the same weights across the sequence. A nearby shift in a strong response can leave its pooled value unchanged if the response stays in the same pooling window. The recurrent layer receives a sequence of these pooled responses and can combine evidence across neighborhoods. Pooling over the entire document at this stage would remove the order the recurrent layer needs. ConvRec reduces the number of positions by pooling locally.

Character identities and embeddings

The authors write the document input as a sequence.

X = (x₁, x₂, …, xₜ, …, x_T)

X denotes the document as seen by the network. Each x with a position subscript is the one-hot vector at that position. The subscript t denotes an arbitrary position, T denotes the sequence length, and the ellipses stand for the positions between the ones shown. Every one-hot vector uses the same inventory V of possible symbols. Its active coordinate specifies which symbol appears at that position.

The experiments use 96 characters, including upper-case and lower-case letters, digits, spaces and common punctuation. Retaining spaces gives the network access to visible word boundaries as part of the character stream. The method does not require a separate tokenization step that assigns a vocabulary entry to each word. Case is also available as an input distinction in the stated vocabulary. Availability at input means a filter can learn to use a distinction if it helps. It gives no guarantee that the filter will do so.

The embedding operation is a multiplication.

eₜ = W xₜ

Here eₜ is the dense character vector at position t, W is the shared embedding weight matrix, and xₜ is the one-hot vector for the character at that position. The matrix has d rows and |V| columns, where d is the embedding dimension and |V| is the number of symbols in the vocabulary. In the experiments, d is 8. Multiplication by xₜ selects the column of W corresponding to the active character. The entries of that column can take real values and are learned through training.

E = (e₁, e₂, …, e_T)

E denotes the sequence sent to the first convolutional layer. The e terms are the embeddings in document order, T gives the number of positions, and the ellipsis represents the intervening vectors. Embedding changes the representation at each position while keeping the sequence length. Two occurrences of the same character receive the same vector at this stage. Surrounding characters start to affect its representation when the convolution combines positions.

Convolution and pooling

The convolutional stage uses a receptive field of size r, where r measures the number of positions in a local window. The authors express a layer's response as follows.

fₜ = φ(F [e_(t−(r/2)+1); …; eₜ; …; e_(t+(r/2))])

Here fₜ is the vector of filter responses at position t. F denotes the bank of filter weights in this formula, and e with a position subscript denotes an input vector to the layer. In the first layer these inputs are character embeddings. At higher layers they are features from the preceding convolution and pooling stage. The brackets delimit the ordered window, the semicolons join its entries for the filter operation, and the ellipses stand for the other positions within it. The offset expressions show the paper's window notation using t and r. The operation applies the filter weights to the values in the window, then applies the nonlinear function φ.

The experiments use rectified linear units, or ReLUs, for φ. A rectifier passes through positive responses and sets negative ones to zero. This allows the layer to emphasize strong responses while suppressing others. The convolutional layer produces one response per filter at a position. A layer with d′ filters thus produces response vectors with d′ coordinates. The usual setting is 128 filters per convolutional layer. The paper also studies wider versions, and the receptive field is five or three depending on depth.

F = (f₁, f₂, …, f_T)

In this sequence expression, F denotes the ordered convolutional responses. The paper uses the same letter for the filter bank in the preceding expression. The indexed f vectors here are those responses at positions from the start of the sequence through T, the length of the layer input in the stated convolution description. The ellipsis stands for the intervening response vectors. The distinction between the two uses of F is the distinction between learned weights and the values they produce for a particular document.

The layer pools its responses in successive groups.

f′ₜ = max(f_((t−1)×r′+1), …, f_(t×r′))

Here f′ₜ is the pooled vector for output position t, and r′ is the pooling width. The f terms in the parentheses are successive unpooled responses in that group. The indices give the group's first and last responses, with the ellipsis covering any in between. The multiplication sign places the group in the sequence. The maximum is computed separately for each feature coordinate. Different entries of f′ₜ can therefore come from different positions within the same group. In the experiments the pooling width r′ is 2.

F′ = (f′₁, f′₂, …, f′_(T/r′))

F′ is the sequence after pooling, and the prime marks pooled quantities. The indexed f′ vectors are the group outputs in order. T is the length before pooling, r′ is the group width, and T divided by r′ describes the output length in the paper's expression for complete groups. The ellipsis represents the intervening pooled vectors. The expression captures the reduction in sequence length. For padded batches, the authors separately describe how to track which output positions the recurrent layer should ignore.

Pooling has a specific information cost. Within each group it records the largest response for each feature. From that value alone, the next layer cannot tell where within the group it occurred or which weaker responses accompanied it. This can be useful when the position of a match varies slightly across documents. It can also discard distinctions. Stacking stages increases the span of text that contributes to a higher feature and repeatedly removes some information about position and relative strength. Those effects matter together when choosing the depth of ConvRec.

The paper gives the sequence passed on by the entire convolutional front end a shorter length.

F = (f₁, f₂, …, f_T′)

In this expression F is the final sequence of local feature vectors. The f terms are the final outputs along the sequence, T′ is their length after the convolutional and pooling stages, and the ellipsis represents the intervening feature vectors. This length differs from the character sequence length T. These are the items the recurrent layer reads, so the reduction in length occurs before the sequential computation.

Recurrence and the memory cell

A recurrent layer processes an input vector and the state it brought from the previous step.

hₜ = f(xₜ, h_(t−1))

In the recurrence, hₜ is the new hidden state, f is the recurrent update function, xₜ is the input vector at this step, and h_(t−1) is the preceding hidden state. The subscript t indexes steps within the recurrent pass. In the paper's generic layer description, xₜ is a vector of dimension d. In ConvRec it comes from the convolutional front end. The state has dimension d′ in the generic description, and h₀ denotes the state before the first update. The paper notes that such an initial state is frequently filled with zeros.

The simplest update described in the paper applies a nonlinear function to a combination of the current input and the preceding state.

hₜ = tanh(Wₓ xₜ + Uₕ h_(t−1))

Here Wₓ is the learned matrix for the current input xₜ, and Uₕ is the learned matrix for the preceding state h_(t−1). The two products are added, and tanh, the hyperbolic tangent function, is applied coordinate by coordinate to produce hₜ. If the input has dimension d and the state dimension is d′, Wₓ maps d values into d′ values, and Uₕ maps a state of dimension d′ to that same dimension.

The authors introduce the vanishing gradient problem to explain why a plain update of this kind is hard to train over long stretches. Training gives an earlier computation feedback through the steps it influences. When that feedback repeatedly shrinks as it passes through the updates, a late classification error can provide little signal about how the system should have treated an early input. The capacity to pass a state through many positions and the ability to learn which information to preserve along that path are different properties.

The experiments use long short-term memory, abbreviated LSTM. This recurrent unit has a cell that can carry memory from one step to the next and gates that regulate parts of the update. A gate gives a vector of values that scale corresponding entries of another vector. The input gate regulates newly proposed content, the forget gate regulates previously stored content, and the output gate controls how much of the current memory contributes to the hidden state. The paper mentions gated recurrent units as another possible form of recurrence, while the experimental configurations use LSTM.

iₜ = σ(Wᵢ xₜ + Uᵢ h_(t−1))

Here iₜ is the input gate at step t. Wᵢ and Uᵢ are the learned matrices that transform xₜ, the current input, and h_(t−1), the preceding hidden state, for this gate. The products are added. The symbol σ denotes the sigmoid function, applied to each coordinate to produce values that can regulate the contribution of new content.

oₜ = σ(Wₒ xₜ + Uₒ h_(t−1))

The vector oₜ is the output gate at step t. Wₒ and Uₒ transform the current input xₜ and the previous hidden state h_(t−1) for this gate. Their contributions are added and passed through the elementwise sigmoid σ. The resulting values will scale the memory's contribution to the state exposed by the recurrent unit.

fₜ = σ(W_f xₜ + U_f h_(t−1))

In this formula fₜ denotes the forget gate, distinct from the convolutional response denoted by fₜ earlier. W_f acts on the current input xₜ, and U_f acts on the previous hidden state h_(t−1). Their sum passes through the sigmoid σ. The result determines how much of each previous memory coordinate is carried into step t.

c̃ₜ = tanh(W_c xₜ + U_c h_(t−1))

The tilde on c̃ₜ identifies the candidate content for the cell at step t. W_c and U_c are learned matrices for the current input xₜ and the preceding hidden state h_(t−1). Their transformed vectors are added and passed through the elementwise hyperbolic tangent. The result is proposed content, which still has to pass through the input gate before it contributes to memory.

cₜ = iₜ ⊙ c̃ₜ + fₜ ⊙ c_(t−1)

Here cₜ is the updated cell memory and c_(t−1) is the memory from the preceding step. The symbol ⊙ means elementwise multiplication. The input gate iₜ scales the candidate c̃ₜ, and the forget gate fₜ scales the previous memory c_(t−1). Adding those contributions gives the new memory at step t. A small input gate value suppresses the corresponding candidate value. A large forget gate value retains more of the corresponding previous memory value.

hₜ = oₜ ⊙ tanh(cₜ)

The hidden state hₜ is the output at step t. The hyperbolic tangent transforms the new memory cₜ, and the output gate oₜ scales the result using elementwise multiplication, written ⊙. The distinction between cₜ and hₜ lets a recurrent unit keep information in memory while limiting its immediate contribution to the exposed state. The gate settings are learned through the classification objective.

(h₁, h₂, …, h_T)

This is the ordered sequence of states produced by the generic single-direction recurrent layer. The subscript on h gives the step, T is the length of the input to that layer, and the ellipsis represents the other states. For a single pass in input order, early states have had access to few input vectors. States closer to the end have access to information propagated through many more updates. A reverse pass changes which end of the sequence has been visited at a given original position.

Reading from both ends and assigning a class

ConvRec uses a single bidirectional LSTM layer. It consists of a forward recurrent pass and a reverse one, with hidden states aligned to their input positions. The paper's stated hidden state dimension is 128. Each direction has its own state, so the final representation can preserve different summaries of the same sequence.

H_forward = (h⃗₁, h⃗₂, …, h⃗_T′)

H_forward is the sequence of forward states. The rightward arrow on h⃗ identifies the direction, and the subscripts refer to positions in the convolutional output. T′ is the length of that output, and the ellipsis denotes the intervening states. This pass starts at the first feature vector and finishes at the position indexed by T′.

H_reverse = (h⃖₁, h⃖₂, …, h⃖_T′)

H_reverse is the sequence of reverse states indexed in the same original order. The leftward arrow on h⃖ identifies the reverse direction, T′ is the length of the convolutional output, and the ellipsis represents the intervening positions. The reverse pass visits the position indexed by T′ first and reaches position 1 last. The listing aligns states with the input sequence, instead of recording the order in which the computations run.

h = [h⃗_T′; h⃖₁]

Here h is the document representation. The brackets and semicolon indicate concatenation, meaning that the values of the forward terminal state h⃗_T′ and reverse terminal state h⃖₁ are placed end to end. Both terminal states have had the opportunity to integrate information from the whole shortened sequence. Their ability to retain any particular feature depends on the learned updates. The representation has a fixed dimension because each constituent state does, regardless of the number of character positions in the input.

The paper describes other ways a classifier could get a fixed-size vector from a sequence, including taking feature-wise maxima over positions or using the terminal state of a single recurrent pass. ConvRec uses the terminal state from each direction, so the classifier sees a pair of summaries formed in opposite orders. Those states carry information via the recurrence instead of exposing all intermediate activations to the category layer. This is a second compression step in the broad sense, after the local compression that reduced sequence length.

The last layer is a logistic classifier over multiple categories. It gives each category an affine score, meaning a weighted sum of the input features plus a bias. A softmax turns those scores into probabilities that sum to one.

p(y = k | X) = exp(wₖᵀ x + bₖ) / ∑_(k′=1)^K exp(wₖ′ᵀ x + bₖ′)

Here p(y = k | X) is the probability of class k for document X, with the vertical bar read as “given.” The variable y denotes the class, and K is the number of possible classes. In this layer's notation, x is the fixed-dimensional input vector, which is h in ConvRec. The vector wₖ supplies the weights for class k, the superscript ᵀ denotes transposition for the dot product with x, and bₖ is that class's bias. The exp function gives the exponential of the score. The summation in the denominator ranges over the class index k′ from 1 through K, with wₖ′ and bₖ′ giving the weights and bias for each term. Dividing by that sum makes each class score relative to all the class scores for the same document.

Regularization, optimization and selection

The training setup applies dropout after the last convolutional layer and after the recurrent layer. Dropout temporarily zeroes selected entries during training, reducing the system's reliance on features that are always present together. The authors show the operation at the input to the recurrent layer, starting with the case without dropout.

xₜ = f′ₜ

The symbol xₜ is the recurrent input at position t, and f′ₜ is the output of the final convolution and pooling stage at the same position. Here xₜ denotes a feature vector, even though the paper also uses that symbol for one-hot character vectors when describing the raw input.

rₜⁱ ∼ Bernoulli(p)

The value rₜⁱ is the mask entry for feature coordinate i at position t. The symbol ∼ means that the entry is sampled from the distribution on the right. A Bernoulli draw is binary, and p controls the probability of an active draw in the displayed formulation. The paper calls the setting the dropout probability and sets p to 0.5. The binary mask vector rₜ has a coordinate for each feature entering the recurrent layer.

xₜ = rₜ ⊙ f′ₜ

In this equation xₜ is the masked recurrent input, rₜ is the binary dropout mask for position t, and f′ₜ is the final pooled feature vector there. The symbol ⊙ means coordinate-by-coordinate multiplication. An active entry in rₜ passes the corresponding feature through. An inactive entry zeros it for the training computation. This mask serves a different purpose from the padding masks, which mark sequence positions added for batching.

The authors train with a regularized negative log-likelihood, also called cross-entropy in this setting. The probability assigned to the observed class determines the loss for each training document. Weight decay adds a penalty for the size of the learned weights.

l = −∑_(X,y∈D) log(p(y | X)) + (λ/2) ‖w‖²

The symbol l is the objective to minimize. The sum ranges over the document and label pairs X and y in training set D. The expression p(y | X) is the probability assigned to the observed class y given document X. The logarithm is written log, and the minus sign converts the log probabilities into a cost that decreases as the assigned probabilities rise. The vector w collects the learned weights, and ‖w‖² is its squared norm. The coefficient λ sets the strength of weight decay, with the factor of 2 in the denominator as written in the objective. The authors set λ to 5×10⁻⁴.

Updates use AdaDelta, an adaptive method for choosing how to adjust weights from gradients. Its settings are ρ = 0.95 and ε = 10⁻⁵, where ρ sets the decay of the running statistics and ε is the small stabilizing constant. The batch size is 128. In a batch, documents can have different sequence lengths, so each is padded to the length of the longest sequence in that batch. The padding rule uses the longest document currently being processed as its reference.

A mask identifies which positions in each input are padding. As convolution and pooling change the length and arrangement of the features, the authors compute corresponding output masks analytically. These masks tell the recurrent passes which feature positions should be ignored. This matters for both directions. A terminal state should represent the sequence of valid features, and padding introduces computational positions with no corresponding observed text.

The gradient is obtained by back-propagation through time, which traces the effect of the loss backward through the sequence of recurrent updates. The paper writes the gradient with respect to the learned weights as follows.

g = dl/dw

Here g is the gradient, l is the training objective, and w is the collection of weights. The derivative notation dl/dw denotes the sensitivity of the loss to changes in those weights. The gradient gives the optimizer the direction and relative magnitude of the changes indicated by the current training computation.

g_c = g · min(1, 5/‖g‖₂)

The symbol g_c denotes the clipped gradient and g is the gradient before clipping. The norm ‖g‖₂ is its L2, or Euclidean, norm. The centered dot denotes scaling the whole gradient by the smaller of 1 and the threshold 5 divided by that norm. If the norm exceeds 5, this scales down the update signal without changing its direction. At or below the threshold, the intended operation leaves the gradient at its original scale.

For each task, the authors randomly hold out part of the original training set for validation. The validation set matches the size of the test set for that task and has equal representation from each class. The training examples that remain are used to fit the weights. Validation has several roles. It guides the duration of training, provides the error used to select a checkpoint and supplies the error used to choose an architecture for each dataset.

The early stopping procedure starts with a patience value, which sets a limit on the number of epochs, or passes through the training data. After each epoch the authors record validation loss. If the loss is lower than the best previously recorded validation loss by 0.5%, they extend patience by two. Training ends when the epoch count exceeds the current patience value. For test reporting, they use the checkpoint with the lowest validation error. The stopping rule responds to the objective's values, while checkpoint selection responds to how frequently the classifier predicts the wrong class. A change in probability can improve loss even when the predicted class stays the same.

Experiments and results

The tasks and the comparison

The experiments use eight classification tasks from the earlier character-level convolution study. Dataset sizes range from 200,000 to 4,000,000 documents. The benchmark suite spans several kinds of judgments. The AG's news and Sogou news tasks ask for news categories, while DBPedia asks for an ontology class. Yahoo! Answers asks for a question type. Each task supplies labels from a pre-defined set, so the same architecture can be trained with a different output layer for the available classes.

The review tasks include Yelp review full and Yelp review polarity, along with the Amazon review tasks. Polarity asks for a broad distinction in the evaluation of a review. A full review classification task uses finer categories than the polarity task from the same source. This range makes it possible to compare architectures on broad sentiment decisions and other forms of categorization, although each dataset also differs in ways beyond the label set. The authors' later analysis uses those cross-task differences to look for patterns in relative performance.

The training and test splits have equal numbers of examples per class. For DBPedia, the paper gives 40,000 training examples and 5,000 test examples per class in the benchmark. ConvRec's validation split is taken from the benchmark's training examples, so the original training allocation and the examples left for fitting are distinct. The balanced design also applies to the validation split. The error rate thus describes performance under the benchmark's class distribution, with no class contributing more examples merely because it is more common in these splits.

The main baseline for each dataset is the strongest character-level convolutional system from the earlier study among those trained without thesaurus-based data augmentation. Augmentation would add variants of training documents using a thesaurus. Restricting the comparison to systems without it keeps the comparison focused on architectures trained without that extra source of variation. The strongest eligible system can vary by dataset. The benchmark comparison therefore asks whether the hybrid can match a strong convolution-only reference for each task rather than whether it beats one fixed configuration everywhere.

The architectures tested for ConvRec have two to five convolutional layers and a single bidirectional LSTM layer. Most use 128 convolutional filters per layer. The authors also explore larger configurations on AG's news and Yahoo! Answers. Validation error determines which architecture to report for a dataset, and the chosen system is then evaluated on that dataset's test split. This procedure gives the architecture search an opportunity to adapt front-end depth to the task while keeping final test evaluation a separate step.

The reported metric is classification error, the share of documents assigned the wrong category. Lower error means more correct decisions under the split's label distribution. The paper reports validation and test error, with approximate parameter counts. A validation error can measure the effect of changing a setting during development. Test error is the quantity used for the main comparison against the convolution-only systems. A favorable validation comparison between ConvRec settings does not establish the same ordering for test error.

Test performance and parameter count

The headline result is competitive test performance across the benchmark suite with substantially fewer learned parameters. The authors identify lower ConvRec test error on AG's news and Sogou news. They also report lower error on DBPedia, Yelp review full and Yahoo! Answers. These wins cover multiple tasks, including news category prediction, ontology classification, finer review classification and question type classification. The claim of comparable performance across all eight is broader than the claim of improvement on these named tasks.

The authors specifically identify Yelp review polarity and Amazon review polarity as tasks where ConvRec has higher test error than the convolution-only reference. Both have two classes. DBPedia, which has 14 classes, is their example of a substantial reduction in test error for the hybrid. The difference in outcomes motivates the class-count analysis, but the main result can be read directly from the comparisons. The change in architecture gives competitive overall performance and improves several tasks, while the relative outcome still depends on the task.

The paper gives exact error values in its analysis of the larger configurations. These values compare ConvRec settings on validation data. They are useful for seeing how the authors weighed gains in classification performance against growth in the architecture. They measure a different comparison from the main test result, which contrasts the selected ConvRec with the strongest eligible convolution-only reference.

What widening buys on validation

For AG's news and Yahoo! Answers, the authors test a configuration with 1,024 convolutional filters in addition to the usual 128-filter setting. The wider configurations give lower validation error on both datasets. The comparisons below use the paper's validation errors for this experiment, where both entries belong to ConvRec.

ConvRec width settings on AG's news validation error

The wider configuration has lower validation error.

ConvRec width settings on AG's news validation errorConvRec, standard width: 8.75ConvRec, standard width8.75ConvRec, wider setting (this paper): 8.39ConvRec, wider setting (this paper)8.39
The numbers
System or settingerror %
ConvRec, standard width8.75
ConvRec, wider setting (this paper)8.39

ConvRec width settings on Yahoo! Answers validation error

The wider configuration has lower validation error.

ConvRec width settings on Yahoo! Answers validation errorConvRec, standard width: 29.48ConvRec, standard width29.48ConvRec, wider setting (this paper): 28.62ConvRec, wider setting (this paper)28.62
The numbers
System or settingerror %
ConvRec, standard width29.48
ConvRec, wider setting (this paper)28.62

On AG's news the reported validation error moves from 8.75% to 8.39%. On Yahoo! Answers it moves from 29.48% to 28.62%. The paper gives a 70 times increase in learned parameters for the expansion. The result therefore depends on which objective matters. The wider setting is best among the two for validation error in each chart, while the usual setting keeps the parameter budget much smaller. The larger setting shows that additional capacity can help on these tasks, but at a cost that the authors regard as substantial relative to the gains.

Parameter count is central to what the authors mean by efficiency. It quantifies how many learned values an architecture uses to reach its level of classification performance. The case for reducing the number of recurrent steps is a separate computational argument based on layer order. The benchmark outcome and the width comparison both concern error and parameter count. Actual execution speed would also depend on how effectively the convolutional work is parallelized and how expensive the recurrent updates are on the shortened sequence.

What the ablations show

A shallow convolutional front end works best in the tested range

The authors vary convolutional depth while retaining a bidirectional recurrent stage. They report that performance peaks at two or three convolutional layers and declines when they add more. The depth settings span two to five layers. Within that range, more convolutional processing does not steadily improve classification. This is important to the main architecture claim because the paper proposes recurrence in part to avoid needing a deep stack of local operations.

Changing depth changes the kind of features passed to the recurrent layer. Successive layers can combine responses across longer spans of the input. The paper describes this in terms of longer character n-grams, where an n-gram is a sequence of adjacent units, in this case characters. The learned features are continuous responses derived from neighborhoods. They can combine evidence from those neighborhoods without representing every substring as a separate vocabulary item. More depth therefore changes the range of character information contributing to each step.

Each additional convolutional stage also brings another pooling operation. That operation shortens the sequence and takes maxima within groups, so a deeper front end changes both the effective span and the amount of detail available at each position. The recurrent layer may then see broader features and fewer opportunities to distinguish neighboring responses. The authors suggest that some useful local distinctions disappear with repeated pooling, which would limit what recurrence can combine later.

The observed peak identifies a useful depth range for the configurations studied. It does not isolate the reason for the decline at greater depth. Pooling frequency, feature span and the number of learned operations change together, and the paper sets receptive field size depending on depth. The result supports the practical choice of a shallow front end. A study that held those other properties fixed would be needed to assign the decline to any one of them.

Width improves error with a large increase in capacity

The width comparison asks whether more filters can produce more useful inputs for recurrence. In the wider AG's news and Yahoo! Answers runs, validation error decreases. A bank with more filters can produce more types of local response at each position. The extra capacity therefore changes what information can be offered to the recurrent layer even when the document and its label stay the same.

The authors point out an important coupling in their design. They set the number of convolutional filters to the dimension of the recurrent hidden state. Widening the tested architecture thus affects the recurrent computation as well as the convolutional features. The recurrent matrices in the LSTM equations transform the incoming features and the current state for several gates and the candidate memory. Enlarging the state changes the sizes of those matrices along with the input transformations. The reported cost of the wider systems belongs to this combined setting.

The comparison shows a gain from greater capacity in the tested configurations. It leaves open how much could be obtained by adding convolutional filters while holding the recurrent state size fixed. The authors identify that as a possible way to improve performance with a smaller parameter cost. In experimental terms, independent settings for filter count and state dimension would answer a different question from the coupled expansion they tested.

The class-count and training-size patterns are cross-task evidence

The authors compare the hybrid's relative test performance with the convolution-only reference as the number of classes varies. The hybrid tends to fare better on tasks with more categories. DBPedia, with 14 classes and lower ConvRec test error, is the favorable example highlighted in the paper. Yelp review polarity and Amazon review polarity, each with two classes, illustrate the opposite outcome. The pattern concerns the hybrid's standing against the reference for each task. It does not say that a task with more labels has a lower error rate in absolute terms.

The authors' proposed explanation is that choosing among many classes can require preserving finer details. Repeated pooling in the convolution-only architecture can discard variations that would help distinguish close alternatives. With fewer pooling stages, the hybrid may give the recurrent layer access to more of those variations. For a polarity decision a broad signal may suffice more often. This interpretation fits the examples, while the paper gives no direct measure of which cues were used to classify individual documents.

Class count varies along with the text source, the label meanings and the task itself. An ontology classification and a polarity judgment can differ in more than the number of choices. The comparison therefore supplies a pattern worth explaining. It does not isolate the effect of class count by increasing the number of categories while holding the underlying text and other conditions fixed.

The training-size analysis is similar. Across the datasets, ConvRec generally compares more favorably with the convolution-only system when the training set is smaller. The authors characterize this pattern as less pronounced than the one involving class count. They suggest that its lower parameter count could make the hybrid less prone to overfitting, which happens when a system adapts to patterns in the training examples that fail to generalize. The analysis compares existing benchmark sizes. It gives a reason to investigate data requirements, while a controlled comparison would need to vary the number of training examples within the same task.

Together these analyses offer different kinds of evidence. Depth and width are settings the authors change within the hybrid design. Class count and training size are properties of the tasks across which they compare relative error. The settings experiments help choose an architecture for these benchmarks. The cross-task observations suggest where that architecture may be most helpful, with multiple dataset differences still in play.

Limitations

Limits and open questions identified by the authors

The authors explicitly recognize that pooling may lose detailed local information. Their design reduces the need for repeated pooling by letting a recurrent layer work over the sequence that remains, but it still depends on pooling to shorten that sequence. The tradeoff is inherent to the arrangement. Reducing fewer positions would preserve more of the original sequence for recurrence, and retaining more positions would also increase the sequential work. The authors propose exploring recurrent operations as substitutes for pooling. Their experiments assess the design that uses pooling before recurrence.

They also identify a limit in the width comparison. Changing the filter count together with the recurrent state dimension can make greater capacity expensive. The authors suggest that adding filters while holding the state dimension fixed could give a better tradeoff. The reported gains belong to the coupled configurations. The paper leaves the independently widened convolutional front end as a possibility.

The paper presents ConvRec as a general encoding architecture and names machine translation and music information retrieval as directions for future use. It also cites combinations of recurrence and convolution in image segmentation and speech recognition. Those examples show why the authors consider the combination broadly applicable. ConvRec itself is evaluated here on document classification. The output layer and training procedure used for the benchmarks address the task of choosing a document category.

Limits of what the experiments establish

The comparison shows what the entire architecture achieves. It cannot assign the result to recurrence alone. Compared with the convolution-only reference, the hybrid changes the depth and pooling schedule as well as the method for turning the feature sequence into a document vector. It replaces the reference network's dense processing after flattening with a summary built from bidirectional recurrence. These choices work together in the evaluated systems. The paper's depth comparison tests modifications within ConvRec, leaving the recurrent stage in place.

The results also leave the actual use of long-distance evidence open. The equations show a path by which early features can influence a terminal state, and LSTM gates can retain information along that path. Classification error does not reveal how far apart the decisive cues were. Some documents may be classified from a local expression, while others may require information from several portions of the text. The paper's benchmark comparisons measure success at the task without stratifying decisions by the distance between cues.

A similar distinction applies to the argument for character input. The paper explains why preserving the written form of an unfamiliar word can help and why local character features could capture shared parts of words. Its main baseline also operates on characters. That comparison tests how to process a character sequence, while the advantages of character input over word input motivate the design. The experiments do not separately measure robustness to typos, performance on rare words, or accuracy under transfer to a new domain. They also do not show that the learned filters recover linguistically defined morphemes.

Coverage at the character level still depends on the fixed inventory. A word can be unseen as a word and still be representable from its characters. A character inventory determines what distinctions can enter the embedding layer in the first place. The reported setup uses 96 characters. These experiments establish performance under that representation and do not compare inventories or ways of preserving distinctions outside it.

The class-count and training-size analyses call for particular care. The reported tendencies are across datasets with different texts and labels. They can motivate a mechanism involving local detail or overfitting, but they cannot distinguish those proposals from other differences between tasks. The smallest datasets in the suite are also part of a collection explicitly chosen for large-scale evaluation. The tendency to do better on relatively smaller tasks in this setting provides no direct evidence about performance with very few labeled documents.

Finally, the efficiency result has a particular unit. Fewer learned parameters show that ConvRec can deliver similar classification performance with a smaller set of weights. Shortening the sequence before recurrence supplies an architectural reason to expect fewer recurrent steps than processing the character stream directly. The reported comparisons do not measure elapsed training time, prediction latency or peak memory use. A system can have fewer parameters while still spending substantial time on sequential computation. The paper establishes parameter efficiency on these tasks and explains the computation behind it, leaving runtime comparisons to a separate measurement.

What came after

Other routes to efficient text classification

FastText.zip takes up compression in text classification. It shares ConvRec's concern with the size of a classifier, but the contribution named by FastText.zip is compression itself. ConvRec's contribution is to change the architecture used to process characters so that a different allocation of layers can achieve competitive error with fewer learned weights. The connection is a common size constraint. The citation does not establish that FastText.zip adopts ConvRec's convolutional and recurrent sequence.

Very Deep Convolutional Networks for Text Classification explores convolutional depth for the same broad classification problem. The ConvRec paper asks how a recurrent stage can relieve the need to stack local character-processing layers. The later study's stated direction makes depth in the convolutional network itself the object of investigation. The pairing identifies two architectural responses to the same question of how a classifier can build useful features from text. It gives no common test result from which to rank those responses.

Neural Discourse Structure for Text Categorization focuses on discourse structure as part of text categorization. This relates to ConvRec's goal of using information that spans more of a document than one local window. ConvRec gives its recurrent layer a character-derived sequence with an order inherited from the document. A discourse-oriented study makes the organization of the text itself central to categorization. The common issue is how evidence from different portions of a document should contribute to one decision.

Character processing beyond document labels

A Character-level Decoder without Explicit Segmentation for Neural Machine Translation brings character-level processing to the output side of translation. ConvRec starts with characters and ends with a probability distribution over document classes. A character-level decoder has to produce a sequence of characters. The connection is the decision to work with written form without requiring explicit segmentation into larger units on the side addressed by the method. A decoder uses that decision for generation, while the ConvRec classifier uses it to build a document representation.

Fully Character-Level Neural Machine Translation without Explicit Segmentation extends the character-level framing to the translation system as a whole. Translation was one of the applications the ConvRec authors proposed exploring. The connection is especially natural on the encoding side, where a system must extract useful information from a long character sequence. Translation also has to preserve enough information to generate corresponding text, whereas a classification representation is trained to support a single choice among categories. The citation and the title identify the shared direction. They do not establish that the translation architecture uses the same recurrent summary as ConvRec.

Character-Aware Neural Networks for Arabic Named Entity Recognition for Social Media takes character-aware processing into named entity recognition for social media text. ConvRec's introduction uses informal social media writing to explain the value of keeping the written form of an unfamiliar or misspelled word. In named entity recognition, that form can matter to a decision about a particular mention inside the text. ConvRec instead produces a category for the document. The later task illustrates how the motivation for character features extends to decisions made at a different granularity. Its title establishes character awareness, while leaving the exact role of ConvRec's layer arrangement unspecified.

CLUZH at VarDial GDI 2017 studies a variety of tools for classifying Swiss German dialects. This brings the question of how to represent written text to a classification task whose categories concern language variety. The ConvRec paper motivates character input in part through surface forms that a word vocabulary may handle poorly. The dialect study is related through the classification setting and the significance of written variation. Its stated scope is a comparison of tools, so the citation alone does not identify which tools use a ConvRec-style encoder.

Classification with other evidence and outputs

Cardiff University at SemEval-2019 Task 4 investigates linguistic features for hyperpartisan news detection. The task shares news text and document-level classification with part of the ConvRec evaluation. It changes the target from a news category to a judgment about hyperpartisanship. It also makes linguistic features central to the stated approach. This is a related way to ask what information a news classifier should retain, with a different label and a different emphasis in feature design.

Depression and Self-Harm Risk Assessment in Online Forums places text-based assessment in an online forum setting. Informal writing is relevant to the reasoning behind ConvRec's use of characters, since a reader of forum text can encounter unfamiliar forms and spelling variation. The assessment task has a different target from the original news, review and question benchmarks. Its citation connects work on document processing to a new application domain, while the description of the study does not specify adoption of the convolutional front end or bidirectional summary.

DCR-Net studies dialog act recognition jointly with sentiment classification. It names a co-interactive relation network as its approach. ConvRec's classification layer assigns probabilities for one category set per task. The joint dialogue problem instead brings two related predictions into the same design, one concerning the act performed by an utterance and the other concerning its sentiment. The relationship to ConvRec lies in the broader question of how to organize learned text features for classification, with interaction between predictions taking a central role in the later work.

Co-GAT addresses the same pair of dialogue tasks with a co-interactive graph attention network. Its stated contribution shifts the architectural focus to attention over a graph. That differs from ConvRec's way of passing information along a shortened sequence. The two dialogue studies show how later classification research also asked what relationships among predictions and text representations an architecture should expose. Their citations connect them to the earlier classification work without specifying a direct reuse of ConvRec's layer sequence.

Across these studies, the clearest continuities are the choice of character input, the cost of a classifier and the way local evidence contributes to a decision at a larger scale. Those concerns can travel independently. Translation changes what the system must preserve from its input, entity recognition changes where it makes decisions, and compression makes the size of the classifier a direct target. ConvRec's experimentally supported contribution within that wider line of work is specific. On the document benchmarks studied, convolutions could reduce a character stream to a sequence short enough for bidirectional recurrence, and the resulting classifier could compete with deeper convolutional systems using substantially fewer parameters.

Cite

Cite as Yijun Xiao and Kyunghyun Cho. 2016. Efficient Character-level Document Classification by Combining Convolution and Recurrent Layers. arXiv (Cornell University).

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

@misc{xiao2016efficient,
  title = {{Efficient Character-level Document Classification by Combining Convolution and Recurrent Layers}},
  author = {Yijun Xiao and Kyunghyun Cho},
  year = {2016},
  doi = {10.48550/arxiv.1602.00367},
  eprint = {1602.00367},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.48550/arxiv.1602.00367}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/xiao-2016-efficient-character-level-document-classification/

References

24 references, from the paper's own bibliography.

  1. Miguel Ballesteros, Chris Dyer, and Noah A Smith. 2015. Improved transition-based parsing by modeling characters instead of words with lstms. arXiv preprint arXiv:1508.00657. our card
  2. Yoshua Bengio, Patrice Simard, and Paolo Frasconi. 1994. Learning long-term dependencies with gradient descent is difficult. Neural Networks, IEEE Transactions on, 5(2):157–166. OpenAlex ↗ · Scholar ↗
  3. John S Bridle. 1990. Probabilistic interpretation of feedforward classification network outputs, with relationships to statistical pattern recognition. In Neurocomputing, pages 227–236. Springer. OpenAlex ↗ · Scholar ↗
  4. Pierre Luc Carrier and Kyunghyun Cho. 2014. LSTM networks for sentiment analysis. Deep Learning Tutorials. OpenAlex ↗ · Scholar ↗
  5. Liang-Chieh Chen, Jonathan T. Barron, George Papandreou, Kevin Murphy, and Alan L. Yuille. 2015. Semantic image segmentation with task-specific edge detection using cnns and a discriminatively trained domain transform. CoRR, abs/1511.03328. OpenAlex ↗ · Scholar ↗
  6. Kyunghyun Cho, Bart van Merrienboer, Caglar Gulcehre, Fethi Bougares, Holger Schwenk, and Yoshua Bengio. 2014. Learning phrase representations using rnn encoder-decoder for statistical machine translation. In Conference on Empirical Methods in Natural Language Processing (EMNLP 2014). our card
  7. Felix A Gers, Jürgen Schmidhuber, and Fred Cummins. 2000. Learning to forget: Continual prediction with lstm. Neural computation, 12(10):2451–2471. OpenAlex ↗ · Scholar ↗
  8. Xavier Glorot, Antoine Bordes, and Yoshua Bengio. 2011. Deep sparse rectifier neural networks. In Geoffrey J. Gordon and David B. Dunson, editors, Proceedings of the Fourteenth International Conference on Artificial Intelligence and Statistics (AISTATS-11), volume 15, pages 315–323. Journal of Machine Learning Research - Workshop and Conference Proceedings. OpenAlex ↗ · Scholar ↗
  9. Sepp Hochreiter and Jürgen Schmidhuber. 1997. Long short-term memory. Neural computation, 9(8):1735–1780. OpenAlex ↗ · Scholar ↗
  10. Sepp Hochreiter, Yoshua Bengio, Paolo Frasconi, and Jfirgen Schmidhuber. 2001. Gradient flow in recurrent nets: the difficulty of learning long-term dependencies, volume 1. IEEE. OpenAlex ↗ · Scholar ↗
  11. Yoon Kim, Yacine Jernite, David Sontag, and Alexander M Rush. 2015. Character-aware neural language models. arXiv preprint arXiv:1508.06615. our card
  12. Yoon Kim. 2014. Convolutional neural networks for sentence classification. arXiv preprint arXiv:1408.5882. our card
  13. Alex Krizhevsky, Ilya Sutskever, and Geoffrey E. Hinton. 2012. Imagenet classification with deep convolutional neural networks. In F. Pereira, C.J.C. Burges, L. Bottou, and K.Q. Weinberger, editors, Advances in Neural Information Processing Systems 25, pages 1097–1105. Curran Associates, Inc. our card
  14. Wang Ling, Tiago Luís, Luís Marujo, Ramón Fernandez Astudillo, Silvio Amir, Chris Dyer, Alan W Black, and Isabel Trancoso. 2015. Finding function in form: Compositional character models for open vocabulary word representation. arXiv preprint arXiv:1508.02096. our card
  15. Grégoire Mesnil, Marc'Aurelio Ranzato, Tomas Mikolov, and Yoshua Bengio. 2014. Ensemble of generative and discriminative techniques for sentiment analysis of movie reviews. arXiv preprint arXiv:1412.5335. OpenAlex ↗ · Scholar ↗
  16. T.N. Sainath, O. Vinyals, A. Senior, and H. Sak. 2015. Convolutional, long short-term memory, fully connected deep neural networks. In Acoustics, Speech and Signal Processing (ICASSP), 2015 IEEE International Conference on, pages 4580–4584, April. OpenAlex ↗ · Scholar ↗
  17. Richard Socher, Alex Perelygin, Jean Y Wu, Jason Chuang, Christopher D Manning, Andrew Y Ng, and Christopher Potts Potts. 2013. Recursive deep models for semantic compositionality over a sentiment treebank. In EMNLP. our card
  18. Nitish Srivastava, Geoffrey Hinton, Alex Krizhevsky, Ilya Sutskever, and Ruslan Salakhutdinov. 2014. Dropout: A simple way to prevent neural networks from overfitting. Journal of Machine Learning Research, 15:1929–1958. our card
  19. Martin Sundermeyer, Hermann Ney, and Ralf Schluter. 2015. From feedforward to recurrent lstm neural networks for language modeling. Audio, Speech, and Language Processing, IEEE/ACM Transactions on, 23(3):517–529. OpenAlex ↗ · Scholar ↗
  20. Duyu Tang, Bing Qin, and Ting Liu. 2015. Document modeling with gated recurrent neural network for sentiment classification. In Proceedings of the 2015 Conference on Empirical Methods in Natural Language Processing, pages 1422–1432. our card
  21. Francesco Visin, Kyle Kastner, Aaron C. Courville, Yoshua Bengio, Matteo Matteucci, and KyungHyun Cho. 2015. Reseg: A recurrent neural network for object segmentation. CoRR, abs/1511.07053. OpenAlex ↗ · Scholar ↗
  22. P. Werbos. 1990. Backpropagation through time: what does it do and how to do it. In Proceedings of IEEE, volume 78, pages 1550–1560. OpenAlex ↗ · Scholar ↗
  23. Matthew D. Zeiler. 2012. ADADELTA: an adaptive learning rate method. CoRR, abs/1212.5701. our card
  24. Xiang Zhang, Junbo Zhao, and Yann LeCun. 2015. Character-level convolutional networks for text classification. In Advanced in Neural Information Processing Systems (NIPS 2015), volume 28. our card