Elamur Research

MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solving

Paper · 2022 · Zhenwen Liang, Jipeng Zhang, Lei Wang et al.

Summary

A solver can simplify a word problem by replacing each written number with a placeholder. It can then decide which quantities to add, multiply, or divide without treating every possible number as a separate choice. But the simplification also hides information. In the authors’ opening example, 75 and 10% occupy the same position in closely related problems. They get the same placeholder, even though the equations that solve the problems have different structures. MWP-BERT keeps the placeholders and trains an encoder to recognize what the surrounding words imply about the quantities they stand for. The decoder uses those contextual representations to build an equation. The actual numbers are still needed to evaluate it.

The authors adapt BERT and RoBERTa with 8 objectives that make use of different kinds of training examples. With the problem text alone, they can train the encoder to recover masked text, count quantities, and distinguish whole numbers from non-integers. A recorded answer adds targets for the answer’s type, whether each quantity shares that type, and whether each quantity exceeds the answer. A recorded equation adds two targets for pairs of quantities, one concerning the operation that connects them and the other concerning their relative depths in the solution tree. The authors curate Ape-clean, a collection of 81,225 problems, from Ape210k. They also use the remaining 129,263 problems for objectives that can work with less supervision.

For equation generation, the adapted encoder is paired with the goal-driven tree decoder from GTS. The paper reports competitive answer accuracy in its benchmark comparisons on Chinese Math23k and English MathQA. In a separate experiment that combines the training sets of Math23k and Ape-clean, the adapted solvers reach above 90% answer accuracy on the Math23k test set. The authors compare that result with a previously reported human accuracy of 87% on Math23k. The larger training set also helps GTS, so the combined-data score reflects a setting in which more supervised examples are available to the solver.

The comparisons within that setting help establish what the added objectives contribute. The paper describes the masked-language-only variant as 1.4% lower on Math23k and 1.2% lower on Ape-clean in answer accuracy than the full approach. Its analysis by equation length finds that the adapted BERT solver handles more of the difficult cases than the regular BERT solver. The adapted encoders also improve on probes based on their pretraining objectives and on quantity tagging, a separate task that asks whether each quantity is added, subtracted, or unused. Together, these results connect the training signals to both the information available in the encoder and the equations a downstream solver can produce.

Deep dive: MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solving

MWP-BERT trains encoders to infer numerical properties from word problems and tests whether those properties help solvers build equations. · about 39 minutes to read

The problem and its context

Choosing quantities and operations from a story

An arithmetic word problem asks the reader to turn a situation described in words into a calculation. The text supplies quantities and relationships, and the question identifies an unknown. The solver has to identify the quantities that matter, decide how they are related, and assemble those relationships into an expression that yields the answer. The paper distinguishes arithmetic problems, which generally have one unknown, from problems that call for a system of equations. It studies the arithmetic setting.

A solution can fail before any arithmetic is carried out. If a solver misreads the relationship between a quantity and the requested answer, it may choose the wrong operation. If it uses the right operations in the wrong arrangement, it may calculate an intermediate result that has a different meaning from the one the story requires. A solver that handles arithmetic correctly can therefore still misread the problem. In this setting, reasoning includes selecting and organizing the operations that the text supports. The paper returns to that distinction when it evaluates both the expressions produced and their numerical answers.

The authors represent an arithmetic expression as a binary tree. An operator is an internal node, and a quantity or a constant is a leaf. A branch can itself contain an operation and the quantities it combines. This makes a solution a record of how smaller computations form a larger one. Two solutions can use similar sets of symbols while organizing those symbols differently. For operations whose arguments have an order, even switching the left and right branches can change the result. The solver must choose the tree as well as its contents.

Why solvers replace written numbers

The paper describes earlier work that approached word problems through hand-built rules, statistical methods, and machine learning. Some of that work used semantic parsing and reasoning to turn a problem into a calculation. Later sequence-to-sequence systems learned to translate problem descriptions into equations. In such a system, an encoder first represents the text and a decoder then selects the symbols of the solution. A tree decoder constrains how those symbols can be assembled. Automatically Solving Number Word Problems

Across these approaches, a practical question is how to represent the numbers. If every numerical value were given its own entry in the prediction vocabulary, the possible entries would be unbounded. A particular value might also occur too rarely in training for a solver to learn how it is used. Yet a problem generally supplies the quantities the solver needs to refer to. Number mapping takes advantage of this by assigning placeholders according to position in the description. The first quantity receives the first placeholder, the next quantity the next placeholder, and so on. An output can then refer back to a quantity by position, regardless of its written value.

The economy comes at a cost. A positional symbol tells the decoder which quantity to use once it has chosen that symbol. The symbol by itself gives the encoder little help in deciding whether the quantity denotes a count, a rate, or another kind of amount that affects the calculation. This is the issue illustrated by the paper’s paired problems involving 75 and 10%. Both values map to x3 in the introduction’s notation. A change in the nearby wording accompanies the substitution, and the correct operation structure changes. A solver has to attend to that wording if the positional symbol is all it sees at the number’s location.

This motivates the authors’ distinction between a value and its properties. A number written in one problem may rarely recur. The property of being a whole number, or of exceeding the answer, recurs across many problems with different values. A contextual representation is a vector for a token that depends on the rest of the input. Two occurrences of the same placeholder can therefore have different vectors. The authors use supervision to encourage those vectors to reflect recurring numerical properties while keeping the compact vocabulary.

How earlier systems approached numeracy

As the paper describes the field, prior work on word problems had already improved several parts of the translation from prose to equations. Some systems extracted additional relationships from the text or brought in background knowledge. Others constrained the decoder or broke generation into stages. There were systems with auxiliary learning tasks and systems that supplied explicit numerical features to the encoder. MWP-BERT places its additional training before the final solver is trained. Its immediate product is an encoder that can be attached to an equation decoder or used for another task.

Earlier research on number representations considered encodings based on values, exponents, sub-words, or characters. These approaches provide different ways to expose the written numeral to the system. The authors point to difficulty generalizing when a value at evaluation time was absent from training. A property-based target changes what recurs across examples. Many distinct numbers can share a type, and comparisons with answers can have the same outcome for many different pairs of values. The paper takes these recurring distinctions as a practical basis for training an encoder. Representing Numbers in NLP

The authors also distinguish their task from numerical reading comprehension. They discuss work on DROP, where finding an answer in a passage and performing simple operations are important parts of the task. The earlier methods they describe include synthetic training examples, components for choosing operations, and special treatment of numerals during tokenization. An arithmetic word problem in this paper can require a composed expression with several intermediate results and can use fractions, decimals, or percentages. The design of the encoder therefore needs to account for both the properties of individual quantities and the ways in which a solution combines them. DROP

A closer comparison is Gen&Rank, which adapts BART to word problems with several training tasks. Its adaptation involves both sides of a sequence-to-sequence system. MWP-BERT’s additional objectives are concentrated on the encoder and can be defined even for examples that lack a complete target expression. The authors are interested in whether the resulting representations can support other work with problem text as well. That is the motivation for evaluating quantity tagging alongside expression generation.

The method, step by step

From a written problem to a symbolic equation

The method starts by identifying quantities in a problem and mapping them to placeholders. It keeps the association between each placeholder and its occurrence in the text. The encoder receives the problem and produces a contextual vector at each input position. During pretraining, separate prediction components use those vectors to recover information that can be obtained from the original text, the recorded answer, or the solution equation. During fine-tuning for equation generation, the tree decoder uses the vectors to choose operators and quantities.

From a word problem to a solution equation

The steps in order.

From a word problem to a solution equationStep 1: Identify quantities and assign positional placeholders1. Identify quantities and assign positional placeholdersStep 2: Encode the problem and its quantity positions2. Encode the problem and its quantity positionsStep 3: Train with targets supported by available annotations3. Train with targets supported by available annotationsStep 4: Attach the goal-driven tree decoder4. Attach the goal-driven tree decoderStep 5: Predict operators and leaves from the root5. Predict operators and leaves from the rootStep 6: Restore quantity values and evaluate the equation6. Restore quantity values and evaluate the equation

The paper writes the problem and its target expression as indexed sequences. Although it uses braces, the indices track positions, so order matters.

W = {w₁, w₂, …, wₘ}

Here W is the problem description, w₁ through wₘ are its input items in order, and m is the length of the description. The ellipsis indicates the intervening positions. The paper calls the subset containing the quantities Wq. In the loss formulas, it also writes Wᵢ for the item at position i, corresponding to wᵢ in this sequence.

A = {a₁, a₂, …, aₙ}

Here A is the solution equation written as a sequence, a₁ through aₙ are its tokens, and n is its length. An output token can be an operator, a quantity placeholder, or an external constant. The solver represents the expression as a tree and can serialize it by visiting each node before its children. Ordering the children consistently lets the sequence retain the information about which argument is on which side of an operator.

Vnum = {n₁, n₂, …, nₖ}

Vnum is the quantity vocabulary. A symbol nᵢ refers to the ith quantity in the description, and k caps the number of placeholder slots so that the vocabulary has a fixed size. Here i indexes quantities in order of appearance. An index in a loss formula can instead refer to a position in the original sequence, where words and quantities both occur. What matters for the decoder is the mapping from a quantity symbol to its position in the particular problem.

The operator vocabulary Vop includes addition, subtraction, multiplication, division, and exponentiation. The constant vocabulary is called Vcons in the problem statement and Vcon in the decoder equations. It includes values such as π. A constant is a separate kind of output choice because it can be needed even when the text supplies no quantity at a corresponding position. An operator tells the decoder how to combine its children. A quantity or constant supplies a value and ends the branch.

Encoding the text

The encoder uses BERT or RoBERTa as its starting point. A Transformer builds each token’s representation using information from the surrounding sequence. This is where two occurrences of the same placeholder in different problems can acquire different representations. The input symbol carries the positional identity. The words elsewhere in the description can provide evidence about the type of quantity, what it measures, and its possible role.

Z = encoder(W)

W is the input sequence, encoder is the function that maps it to contextual vectors, and Z is the resulting matrix. Its m rows correspond to input positions, and each row has h features. Zᵢ is the vector at position i. The paper writes Z̄ for the mean of those position vectors. It uses Z̄ when a prediction concerns the whole problem, and individual rows or pairs of rows when a target concerns particular quantities.

The pretraining tasks act on these outputs through prediction heads. Each task other than masked language modeling uses a feed-forward network with two fully connected layers and a rectified linear activation. A fully connected layer learns a transformation of its input vector, and the activation allows the composition to express nonlinear relationships. Each task has its own head, so making a binary prediction about a quantity and estimating a count need not use the same output mapping. The heads are discarded for downstream fine-tuning. Their effect on the encoder comes from the gradients they send back while it is being adapted.

The objectives are organized by the information needed to produce their targets. The authors can obtain some targets by inspecting the unmodified problem text. Others require a numerical answer, and the tree targets require a solved equation with identifiable quantities. The problem description is still the encoder input in each case. The additional information is used to construct labels for training. At inference, the encoder and decoder work from the question, with the mapped quantities available for evaluating the predicted expression.

Targets from the problem text

Masked language modeling gives the encoder a general exercise in recovering context. It sees a corrupted description and is trained to recover the original tokens. The paper reports masking 10% of tokens, replacing 10% with random tokens, and leaving 80% unchanged. The replacements and masks require the representation to draw on nearby words and on broader clues in the problem. The numeracy objectives add more specific pressures because ordinary text recovery can frequently be performed without deciding what role a quantity will have in the calculation.

Number counting asks how many quantities the text contains. The count can be derived from the description itself. It describes the amount of numerical material in the problem, independently of which quantities will ultimately be selected. The head receives the mean representation so that the prediction depends on information pooled across the description.

LNumCount = MSE(FFN(Z̄), |Wq|)

LNumCount is the loss for number counting. FFN is the task’s feed-forward head and Z̄ is the mean encoder vector. Wq contains the quantities in the description, and the bars in |Wq| denote how many there are. MSE denotes mean squared error, which penalizes the squared discrepancy between the predicted and recorded count. The objective is regression, so it estimates a numerical target instead of choosing among named classes.

A high count can accompany a complicated problem, but the count concerns the input. An expression can ignore some of its quantities, or it can reuse a quantity. This objective puts pressure on the global representation to register the numbers present. The other tasks concern properties and relations that cannot be obtained from that count.

Number type grounding makes a separate prediction for each quantity. It asks whether the original number was whole or non-integer. The motivation is that the word problem itself frequently gives clues about that distinction. The names of countable objects can suggest whole quantities, while descriptions of proportions, rates, or velocities can suggest non-integers. The target is the number’s class. The kinds of entities mentioned in the problem are evidence the encoder may use to predict it.

LNTGround = Σᵢ:Wᵢ∈Wq CE(FFN(Zᵢ), yᵢ)

LNTGround is the loss for number type grounding. Σ sums the losses over indices i for which Wᵢ, the input item at that position, belongs to Wq. The symbol ∈ means membership. Zᵢ is the corresponding encoder vector, and FFN maps it to scores for the two classes. yᵢ is the true type label of the quantity. CE is cross-entropy, which penalizes the head for assigning too little probability to the recorded class.

The distinction generalizes across written forms. Decimals, fractions, and percentages appear in the authors’ discussion of non-integer quantities. The head has a binary type target, so successful prediction does not require learning a separate category for each form or recovering the specific value. This is how the objective encourages a placeholder vector to carry a property that remains relevant across very different inputs.

Targets from a recorded answer

An answer reveals something important about the unknown even when the steps leading to it were never recorded. The authors use that information to connect the description’s representations to the target of the calculation. Each task in this group can obtain its labels without reconstructing a reference expression.

Answer type prediction uses the whole problem representation to predict whether the numerical answer is whole or non-integer. The question may ask about a count, a share, or a rate, and those differences can give evidence about the answer’s type. The target is possible to derive directly from the recorded answer. The input to the head remains the encoded problem.

LATPred = CE(FFN(Z̄), yₛ)

LATPred is the answer type loss. CE is cross-entropy and FFN is the head that predicts the answer class. Its input Z̄ is the average of the encoder’s position vectors. The label yₛ records the type of the solution value, with s distinguishing that value from quantities at indexed positions in the question. This objective calls for a global prediction, even if evidence for it is concentrated in the question’s final clause.

Context–answer type comparison moves the prediction back to each quantity position. It asks whether a quantity and the answer belong to the same type. The encoder has access to the text as a whole when it forms a vector at a quantity position. The objective tests whether the resulting local vector can support a prediction about the quantity in relation to the unknown.

LCATComp = Σᵢ:Wᵢ∈Wq CE(FFN(Zᵢ), yᵢ ⊕ yₛ)

LCATComp is the loss for comparing the context quantity’s type with the answer’s type. The sum Σ covers i where item Wᵢ is in the quantity subset Wq, as indicated by ∈. FFN operates on the encoder vector Zᵢ, and CE compares its output with the target. The target uses ⊕, exclusive OR, on the binary type labels yᵢ for the quantity and yₛ for the answer. Exclusive OR marks differing labels and leaves matching labels in the other class. Thus the target expresses agreement or disagreement regardless of which type the labels name.

Knowing the type of a quantity and knowing its relation to the answer are different demands on that vector. Grounding asks for the type of what is written in the story. The comparison requires some indication of what the story is asking for as well. By training a head on the relation directly, the authors give quantity positions a reason to carry information about the question’s target.

Number magnitude comparison adds a property concerning order. Each quantity gets a label indicating whether it is greater than the answer. The answer’s numerical value is needed to build the labels, but the prediction asks only which side of a comparison the quantity falls on. Evidence can come from wording about combining, removing, comparing, or scaling amounts. These cues can guide a prediction without fixing the answer in advance.

LNumMComp = Σᵢ:Wᵢ∈Wq CE(FFN(Zᵢ), ẏᵢ)

LNumMComp is the magnitude comparison loss. Σ again ranges over quantity positions i, where Wᵢ ∈ Wq. FFN receives the contextual representation Zᵢ, and CE measures its classification error against ẏᵢ, the binary comparison label for that quantity. The dot in ẏᵢ distinguishes the magnitude label from the type label yᵢ. The test is strictly greater than the solution value, so an equal quantity belongs to the same class as one below the answer.

These answer-based objectives are weakly supervised in the paper’s terminology because an answer provides an incomplete record of the solution. Many equations could arrive at a given value. The labels can still tell the encoder something about the unknown and its relationship to the quantities in the description. They support learning from examples that would be unavailable for training against a reference tree.

Targets from a recorded equation

An equation allows the authors to introduce structure into training. They represent it as a binary tree and obtain pairwise targets from quantities in that tree. A head now receives two quantity vectors together. It can use information at both positions and whatever broader context is encoded in each. The targets encourage the vectors to carry information that will be relevant when the decoder later has to decide which quantities and operations belong together.

Operation prediction asks which operator connects a quantity pair in the reference solution. The target classes are the arithmetic operators in the output vocabulary. The paper presents this as a local structural objective. It names the target as the operator between the quantities and gives a loss in terms of that label. Its mathematical description leaves the policy for ambiguous pairs implicit, including how to select a pairing when a quantity appears more than once in the tree.

LOPred = Σᵢ,ⱼ CE(FFN([Zᵢ ⧺ Zⱼ]), op(Wᵢ, Wⱼ))

LOPred is the operation prediction loss. The indices i and j identify quantity positions. Σᵢ,ⱼ sums the loss over quantity pairs used for the task. Zᵢ and Zⱼ are their contextual vectors, and ⧺ inside the brackets joins the vectors end to end. FFN maps that combined vector to operator scores. op(Wᵢ, Wⱼ) returns the reference operator label for the pair of quantities Wᵢ and Wⱼ. CE compares the predicted operator scores with that label.

Tree distance prediction uses the depth of quantities in the equation tree. Depth describes how far a node lies below the root. The target is a difference between the depths of the two quantity nodes. This gives information about where quantities enter a calculation relative to one another. A quantity that participates inside a nested branch may sit deeper than one attached directly to an operation higher up. Conversely, quantities on distinct branches can have the same depth. A depth comparison can therefore constrain a description of the tree while leaving its precise branching open. The paper draws inspiration from work on probing structural information in representations. A Structural Probe for Finding Syntax in Word Representations

LTPred = Σᵢ,ⱼ MSE(FFN([Zᵢ ⧺ Zⱼ]), d(Wᵢ, Wⱼ))

LTPred is the tree distance loss. The sum Σᵢ,ⱼ covers paired quantity positions i and j. The brackets and ⧺ denote concatenation of their vectors Zᵢ and Zⱼ. FFN is the regression head, and d(Wᵢ, Wⱼ) is the depth-difference target derived from the solution tree for the two quantities. MSE penalizes squared errors in predicting that target. The paper describes d in terms of depth. It gives no separate formula for how a signed or absolute difference is chosen.

The operation target and the depth target teach different aspects of expression structure. An operation label says what kind of calculation relates the pair. A depth label concerns its placement relative to the root. Even correct predictions of these properties would leave choices about the children of operators, argument order, and the attachment of other quantities. The paper leaves those choices to the decoder and uses the auxiliary targets to shape the representations the decoder will read.

The paper describes the aggregate pretraining objective as the sum of the masked-language loss and the numerical losses. In notation that collects the named terms, it is as follows.

Lpre = LMLM + LNumCount + LNTGround + LATPred + LCATComp + LNumMComp + LOPred + LTPred

Lpre is the aggregate pretraining loss. LMLM is the masked language modeling loss. LNumCount and LNTGround are number counting and number type grounding. LATPred, LCATComp, and LNumMComp cover answer type, agreement of quantity and answer types, and magnitude comparison. LOPred and LTPred are the operation and tree depth losses. The plus signs indicate addition of the objectives. Access to the underlying annotations determines which targets can be formed for a given example. An example with only text supplies the self-supervised losses, while the answer- and tree-based terms need their respective labels.

Training the equation solver

For generation, the adapted encoder is connected to the goal-driven tree decoder from GTS. The decoder starts with a goal vector for the root, using the mean encoder vector Z̄. It then attends to the text to decide what belongs at that node. If the chosen token is an operator, it creates goals for the left and right branches. If it is a quantity or constant, the branch is complete. This process repeats while there are branches to fill.

The encoder and decoder are trained jointly in this phase. The supervision now comes from a reference equation, and the objective is to raise its probability given the problem. This lets the representations continue changing after the auxiliary heads have been removed.

L = −log P(A | W)

L is the loss for equation generation. W is the problem description and A is its reference solution equation. P(A | W) denotes the conditional probability of that equation given the description, with the vertical bar read as “given.” log is the logarithm. The minus sign means that minimizing the loss favors higher probability for the reference sequence.

At each node, the decoder has a representation q of what it still needs to generate. The root begins with global information, while the goals passed down the tree reflect earlier choices. The prediction module uses q to read the encoder output and make a context vector for the current decision.

v = Σᵢ₌₀ᵐ sᵢ Zᵢ

v is the context vector, Σ sums over the position indices i in the paper’s decoder notation, and m is the length parameter of the description. Zᵢ is the encoder vector at position i, and sᵢ is its attention weight for the current node. The decoder equations use a sum from 0 through m. The input statement earlier numbers items from 1 through m. In either case, the intended operation is to pool the encoder outputs with weights specific to the node.

sᵢ = exp(W₁ σ(W₂ [q ⧺ Zᵢ])) / Σⱼ₌₀ᵐ exp(W₁ σ(W₂ [q ⧺ Zⱼ]))

sᵢ is the weight for position i. W₁ and W₂ are learned transformations. q is the goal vector for the node being predicted, Zᵢ and Zⱼ are encoder outputs, and ⧺ joins vectors end to end. σ is an activation function and exp is the exponential. The denominator sums the same kind of score across the position indices j up to m, using j to distinguish the summation index from the selected position i. The slash denotes division. The result gives a normalized set of weights, so the text pooled for one branch can differ from the text pooled for another.

Once it has q and the attended context v, the decoder scores the tokens that could occupy the node. The candidate token representation carries information about its identity. For an operator or external constant, the representation comes from a shared table that is initialized randomly and learned in training. For a quantity, it comes from the text of the current problem.

score(q, v, eₐ) = W₃ σ(W₄ [q ⧺ v ⧺ eₐ])

score is the function that assigns a score to candidate token a. The arguments are the node goal q, the context v, and the candidate embedding eₐ. W₃ and W₄ are learned transformations, σ is the activation, and ⧺ concatenates the three vectors. The expression gives a scalar score used in predicting over candidates drawn from Vnum, Vcon, and Vop. The learned lookup table, called Wembed, supplies embeddings for candidates in Vcon and Vop.

eₐ = Zidx(a)

Here a is a candidate from the quantity vocabulary Vnum. idx(a) gives its position in the problem, Zidx(a) is the encoder vector at that position, and eₐ is the candidate embedding the decoder uses. The notation means to take the row of Z indexed by idx(a). The same placeholder in another problem can have a different embedding because its encoder vector depends on different text. This link is how the adapted quantity representations enter the actual choice among output tokens.

Building the left and right branches

The decoder expands an operator node by predicting the left branch first. Its goal depends on the representation of the parent, the text attended to at that parent, and the selected operator’s embedding. These inputs let the left branch start with information about the computation of which it is a part.

qleft = Gate₁(qₚ, vₚ, eₚ)

qleft is the goal vector for the left child. Gate₁ is a learned feed-forward block. The subscript p denotes the parent node, so qₚ is that node’s goal, vₚ its context vector, and eₚ the embedding of the predicted parent operator. The prediction module uses qleft to score candidates for the child. If it chooses another operator, the same expansion process can continue inside the left branch.

The right branch receives information about the completed left branch. This matters because the initial goal for the left child describes what the decoder was trying to generate. After expansion, there is also a representation of what it did generate. The paper uses that updated representation when forming the goal for the right child.

qright = Gate₂(qₚ, vₚ, eₚ, rleft)

qright is the right child’s goal. Gate₂ is the learned block for forming it. qₚ, vₚ, and eₚ are the parent’s goal, context, and chosen operator embedding. rleft is the updated representation of the left child after prediction. The extra argument lets the right side be generated with knowledge of the expression already built on the left.

rleft = {
  e(aₗ)                          if aₗ ∈ Vcon ∪ Vnum
  Gate₃(rll, qlr, e(aₗ))          if aₗ ∈ Vop
}

rleft is the representation returned by the left child. aₗ is the token predicted at the root of that child, and e(aₗ) is its embedding. The symbol ∈ means the token belongs to a vocabulary, and ∪ means either of the two vocabularies joined by the symbol. Vcon contains constant tokens, Vnum contains quantity placeholders, and Vop contains operators. For a leaf, the embedding itself serves as the updated representation. For an operator, Gate₃ combines its embedding with rll, the updated representation of its left child, and qlr, the right child representation that the paper identifies as unupdated. The paired letters in rll and qlr refer to positions within the parent’s left subtree. The braces group the two cases.

The three gate blocks follow the two-layer feed-forward design of GTS. Once the tree is complete, the solver can express it as a preorder sequence, visiting an operator before its children. During training, the reference uses that representation for comparison. During testing, the implementation uses 5-beam search, which tracks several promising partial predictions as expansion proceeds. The scoring equations describe how each candidate is evaluated at a node. Beam search allows the system to keep alternative partial solutions instead of committing the entire calculation to its first locally preferred token.

Preparing the data for pre-training

The training procedure uses the availability of annotations to get different kinds of supervision from the same collection. A problem with text alone can contribute self-supervised labels. A problem with a usable answer can also contribute answer-based labels even if an expression is missing. The equation targets require a usable reference tree. The authors separate the data that can support complete equation supervision from the rest of Ape210k.

Ape210k contains 210,488 problems. To construct Ape-clean, the authors exclude examples without answers and equations as well as examples with an answer but no equation. They also remove problems whose description length satisfies m > 100 or whose reference expression length satisfies n > 20. Here m and n are the sequence lengths defined earlier. Problems needing external constants other than 1 and π are filtered out. Finally, the authors remove duplicates of Math23k problems because the collections have extensive overlap.

Ape-clean contains 81,225 problems, with 79,388 in its training set and 1,837 in its test set. The remaining 129,263 problems are collectively called Ape-unsolvable. That name identifies the remainder of the filtering procedure. It covers exclusions for length, duplication, and the use of other constants as well as cases with missing annotations or answers that cannot be expressed as equations. The authors use the remainder for self-supervised or weakly supervised pretraining as its annotations permit. They identify the Ape-clean training split and the Ape-unsolvable collection as pretraining resources in the Chinese setup. For English, the dataset description names the MathQA training set.

Experiments and results

Three kinds of evaluation

The experiments ask whether the adaptation helps a solver produce equations, whether the adapted representations support the individual numerical predictions they were trained for, and whether the representations transfer to quantity tagging. These evaluations exercise different parts of the system. Equation generation uses the encoder and the GTS decoder together. The probes examine what can be predicted from the encoder without further adapting its parameters. Quantity tagging attaches a classification head for a task with its own supervision and output categories.

For arithmetic solving, the primary result is answer accuracy. The solver generates an equation, restores the values of its quantity placeholders, and obtains a numerical answer. That answer can agree with the reference even if the predicted equation differs from the annotated expression. The result therefore measures whether the expression reaches the desired value. It can also be informative to compare generated and reference equations, especially when several correct computations are possible, but a numerical match alone settles only the result of the prediction on that problem.

The main comparisons identify the public Math23k test split separately from 5-fold cross-validation on Math23k. A fixed test split measures accuracy on that designated set. Cross-validation repeatedly changes which part of the dataset is held out. The paper also reports comparisons on MathQA for English word problems. These settings should be kept distinct from the joint-training experiment, which changes the amount of supervised data available to the competing solvers.

Backbone and training settings

Both encoder families use 12 layers, 12 attention heads, and hidden vectors of 768 dimensions. For Chinese the authors use BERT and RoBERTa variants trained with whole-word masking. They explain that the Chinese variant labeled RoBERTa shares BERT’s tokenization and follows a RoBERTa-style recipe that drops next-sentence prediction. For English they use the official base checkpoints. In the comparison, a row named BERT or RoBERTa refers to a checkpoint that skips the additional word-problem pretraining. Those are still general-purpose pretrained encoders. Revisiting Pre-Trained Models for Chinese Natural Language Processing

The authors report pretraining for 50 epochs, taking 2 days on 4 NVIDIA TESLA V100 cards. They report fine-tuning for 80 epochs, taking 1 day on 1 card, with a batch size of 32. They use Adam with an initial learning rate of 5e-5 and halve the rate every 30 epochs. Training uses a dropout rate of 0.5. The 5-beam test setting applies to the search for solution equations. The authors release the implementation and data under the MWP-BERT project name.

The comparison that changes the word-problem pretraining while keeping the backbone family makes it possible to ask what the adaptation adds to a general encoder. The wider benchmark comparison answers another question, how the complete solver fares among published alternatives. The authors take those baselines’ scores from their original reports to avoid introducing differences through reimplementation. Accordingly, some entries also differ in their use of training stages, representation components, or decoders. The broad comparison situates the system, while the internal comparisons are better suited to isolating aspects of the paper’s design.

The standard benchmark comparisons

The earlier systems in the comparison include DNS, which represents the sequence-to-sequence line of work, and Math-EN, which normalizes target equations. GTS generates trees from goals for their nodes. Graph2Tree extracts relationships from the problem using graphs before generating a tree. These comparisons help place MWP-BERT among systems that make different choices about how to represent either the words or the structure of the output.

Other baselines overlap with individual motivations for MWP-BERT. NS-Solver trains with supporting tasks. NumS2T uses explicit values to represent quantities. KA-S2T incorporates background knowledge, and EEH-G2T uses graph edges to encode relationships in the input. RPKHS adds hierarchical reasoning, REAL uses an auxiliary strategy based on analogy, and BERT-CL uses contrastive learning. Gen&Rank uses specialized training to adapt BART. An observed difference between any of these complete systems can reflect several parts of the pipeline at once.

The paper characterizes MWP-BERT as competitive in the standard answer-accuracy comparison. It observes that BERT-based solvers perform better in the Chinese settings, while the RoBERTa variant does better in the English setting. This is a comparison of the chosen checkpoints and training arrangements. Because the Chinese and English variants differ in how their starting encoders were trained, the language pattern need not be explained by a single choice between BERT and RoBERTa.

Training data are important to interpreting the result. In the Chinese standard Math23k comparison, the setup pairs pretraining on Ape data with fine-tuning on Math23k. The filtering step removes Math23k duplicates from Ape-clean. The paper calls the overall benchmark design a strict pretraining regime and describes using different examples for pretraining and fine-tuning. Its English dataset description also names the MathQA training set for pretraining, while its discussion broadly names MathQA for fine-tuning. The paper gives no comparably precise account of how the examples for those English stages were separated.

Training on Math23k and Ape-clean together

A separate experiment combines the training sets of Math23k and Ape-clean. The authors then evaluate on the test sets of Math23k and Ape-clean separately. Combining the training data gives the solver access to many more fully annotated problems. Evaluating each test set separately preserves the distinction between performance on Math23k and performance on the curated part of Ape210k.

In this setting, the adapted solvers exceed 90% answer accuracy on the Math23k test set. The authors compare this with a human accuracy of 87% reported in earlier work on Math23k. The chart treats 90 as the threshold the paper says the jointly trained solvers exceeded. It does not turn the threshold into an exact measured score. The two rows therefore encode a reported human score and a lower threshold for the solver result.

Math23k answer accuracy for the reported human comparison and joint-training threshold

The adapted solver clears a threshold above the reported human accuracy.

Math23k answer accuracy for the reported human comparison and joint-training thresholdPreviously reported human accuracy: 87Previously reported human accuracy87Jointly trained MWP-BERT family, exceeded threshold (this paper): 90Jointly trained MWP-BERT family,exceeded threshold (this paper)90
The numbers
System or settinganswer accuracy %
Previously reported human accuracy87
Jointly trained MWP-BERT family, exceeded threshold (this paper)90

The authors also report that GTS improves when trained on the combined set. That observation is important to the interpretation of the above-threshold result. The experiment changes the amount of equation supervision as well as comparing encoders. The improvement of GTS shows that data scale helps even without the proposed encoder adaptation. The comparison between corresponding systems with access to the joint set is the part the authors use to assess the additional contribution of MWP-BERT under that more favorable data condition.

Ape-clean serves two roles here. Its training problems provide more supervision and its separate test set gives the authors a way to see how the jointly trained system performs on the curated collection itself. The filtering choices matter to both roles. The result reflects problems short enough for the authors’ limits, with equations and answers available and with the restricted set of external constants. It describes a defined subset of Ape210k.

Numerical probes and quantity tagging

The paper evaluates 7 numerical probes corresponding to the specialized pretraining objectives. The encoder parameters are kept fixed for these tests, a setting the authors call zero-shot. The probes ask whether the information targeted during adaptation is available in predictions from those representations. For instance, number type grounding tests a property at one quantity position, while operation prediction uses a pair of positions and a label derived from a solution tree.

The tests run on Ape-clean and on eligible Ape-unsolvable examples. Operation prediction and tree distance are evaluated only on Ape-clean because they require reference equations. Answer-dependent probes need reference answers, which restricts the usable examples even when the collection as a whole has incomplete annotation. Counting and depth-difference prediction are evaluated with mean squared error. The other probes use classification accuracy. A lower squared error is better for those numerical targets, while higher accuracy is better for the class predictions. The authors report improvements across the tasks for the numeracy-adapted encoders.

Quantity tagging provides a different evaluation. It comes from work on problems solved with addition and subtraction. For each quantity, the tagger predicts +, −, or None. A label describes whether the quantity contributes positively, negatively, or is unused. The task inspects the role of a quantity in an expression without requiring the system to build the full tree. Since every quantity gets a tag, the evaluation can also reveal whether an encoder identifies quantities that are mentioned but irrelevant to the asked calculation.

The tagger takes the position vector for each quantity and sends it to a 2-layer feed-forward head. The paper follows the quantity-tagging baseline’s 3-fold cross-validation setup and evaluates tagging accuracy. It reports that the adapted encoders outperform the baselines. Compared with the numerical probes, this test supplies clearer evidence of transfer to a differently defined target. It is also narrower than the full solver’s task. A tagger for addition and subtraction can assign sensible roles without deciding how to compose division, multiplication, or exponentiation in a longer solution.

What the ablations show

Pre-training on problem text with and without numerical targets

The loss design brings several changes together. It exposes a general checkpoint to more math word problems, gives it explicit numerical labels, and supervises aspects of the reference tree when equations are available. The ablations vary the objectives to ask which parts of this combined procedure are associated with better equation generation. They are most informative when interpreted within the same experimental setting and with the same downstream answer metric.

The masked-language-only comparison tests the effect of adapting to the corpus with an ordinary text-recovery objective. That adaptation can teach the encoder about the language of math problems, including common ways of writing questions and expressing relationships. The paper reports that using only masked language modeling yields weaker solvers. It gives the reductions in answer accuracy as 1.4% on Math23k and 1.2% on Ape-clean relative to the full set of objectives. These are the authors’ stated reductions on the two datasets. The comparison connects the gain to the objectives that go beyond recovering masked problem text.

The complementary result is that the authors still observe an improvement over the unadapted comparison when masked language modeling is omitted. This matters because a numerical objective might otherwise appear to work only in conjunction with the broader text-recovery task. The results instead show that the remaining objectives can be useful on their own in the tested arrangement. They leave open how much each auxiliary task will contribute once the others are present, since several tasks can reinforce overlapping features.

Some ablations restrict pretraining to a group of tasks with the same supervision requirements. Others remove an objective from a particular group. The paper’s caption gives the example of a variant that starts with the self-supervised group and then omits masked language modeling. That comparison concerns the two remaining text-derived objectives in that group. It should be distinguished from a configuration that keeps answer and equation targets while dropping the text-recovery objective. Both variants omit masked language modeling, but the remaining learning signals differ.

Why equation supervision matters

The authors conclude from the ablations that connecting quantities to solution structure helps the downstream solver. The full-supervision objectives use labels closer to the decoder’s decision problem than a global count or a whole-number class. They encourage paired quantity vectors to support predictions about operations and relative depth, which helps explain why including them can aid tree generation.

That result concerns the utility of the training objectives. A better solver after equation-based adaptation might use the structural signals directly or benefit from other relationships correlated with the targets. The ablation measures how accuracy responds when the training objective changes. It does not inspect how an individual tree decision uses the encoder vector. The two equation objectives also share a source of supervision and both operate on quantity pairs, so their effects are not necessarily independent.

The tasks with weaker labels have a different advantage. They let the encoder train on problems excluded from complete equation supervision. A comparison of supervision groups can thus reflect both what a target teaches and which examples can contribute to learning it. A strong result for the equation group shows the value of the available tree annotations in this pipeline. It leaves room for the text-only and answer-only objectives to matter when such annotations are scarce.

How accuracy changes with solution length

The authors group Math23k test problems by the number of operators in their reference equations. This provides a finer-grained view than an overall answer score. The number of operators is an indicator of the amount of composition required. Longer expressions can require multiple intermediate results, and a quantity may be reused at several positions. Such patterns challenge a decoder that must map a written story to an ordered tree.

The appendix reports that MWP-BERT performs better than regular BERT on more of the difficult problems in this breakdown. The authors characterize the statistical improvement from BERT to MWP-BERT as marginal while taking the pattern across lengths as evidence of better handling of complex problems. They also describe a long tail in solution length. An overall test accuracy is influenced most by the kinds of problems that occur often, so it can obscure how a method performs in that tail.

Equation length remains a partial proxy for difficulty. A short expression can depend on subtle wording, while a lengthy expression may follow an explicit series of instructions. Grouping by operator count identifies one source of burden on the decoder. It does not distinguish all the reasons a problem is hard, such as misinterpreting the question, overlooking a distractor, or applying the wrong relation to accurately identified quantities.

What the case study adds

In one appendix example, both GTS and Graph2Tree fail on a difficult Math23k problem while MWP-BERT generates the right solution. The example shows how the adapted encoder can help a tree decoder in a case where the baselines do not arrive at the required expression. It complements the length analysis by presenting an individual instance where the gain corresponds to a successful solution.

The appendix also examines a pair of similar problems. GTS, Graph2Tree, and MWP-BERT all solve the first. Only MWP-BERT solves the second. This is related to the paper’s motivation about preserving sensitivity to small but consequential changes in a description. A paired example can reveal whether a solver that handles a familiar wording also responds correctly when the calculation changes. The example is consistent with the intended effect of the pretraining. Since the complete system produced the result, it does not identify which objective accounts for that particular success or establish how frequently such successes occur.

Limitations

Scope and qualifications in the paper

The authors focus on arithmetic problems generally paired with one unknown. Their decoder generates a binary expression tree with a limited operator vocabulary and a separate set of quantity and constant tokens. The evaluation concerns the ability to solve problems that can be handled in this form. The paper distinguishes this setting from problems that require a system of equations, and the reported experiments do not extend the result to that setting.

The authors also identify missing and unsuitable annotations in Ape210k as a practical constraint. An example can be useful for text-derived objectives while being unsuitable for learning a reference equation. Ape-clean excludes long descriptions and expressions and restricts the external constants required for a solution. The exclusions make the training procedure workable and define the scope of the curated benchmark. Performance on Ape-clean therefore describes a filtered set. It cannot establish how well the same solver would handle all the problems retained in Ape-unsolvable, including those whose difficulty is precisely what led to their exclusion.

The paper cites the limits of symbolic composition as a motivation for inspecting longer problems, and it qualifies the improvement in its length analysis as statistically marginal. It also uses problem examples to illustrate the difficulty of cases with many variables or repeated uses of a variable. The length results give a basis for saying that the approach helps on some harder instances. The appendix does not measure all forms of difficulty, and its individual examples serve as illustrations rather than estimates of performance on a larger family of similar problems.

Limits of what the experiments establish

The above-90% Math23k result comes from training with the combined Math23k and Ape-clean training sets. The 87% human figure is a comparison taken from earlier work. This supports the authors’ statement that their reported answer accuracy exceeds that particular human reference on Math23k. Claims about a broader human ability would require comparable evaluation conditions across a wider range of tasks. The paper does not report a new human test conducted alongside its joint-training experiment. Its suggestion that the human error rate marks a specifically difficult subset should also be read as an interpretation, since an overall score by itself gives no account of why individual answers were missed.

Answer accuracy is suited to asking whether the returned expression evaluates to the required result. It cannot by itself distinguish an equivalent alternative equation from a result reached through a coincidental match. An exact reference match answers a narrower question, since a valid expression can differ in structure from the annotation. The paper’s interest in solution trees makes both perspectives relevant. A high answer score provides evidence for a successful solver in the reported benchmark, with less information about how consistently its output expresses the intended relations in the story.

The probes are closely aligned with what the adapted encoder was explicitly trained to predict. Improvements show that this information becomes easier to use in the test setting. They supply less evidence about numerical properties that had no corresponding target during pretraining. Quantity tagging expands the range of evidence, but its categories come from additive and subtractive problems. The study does not independently measure transfer to arbitrary numerical values, unseen expression families, or a different form of mathematical task. The motivation about rare or unfamiliar values is broader than the controlled evidence about extrapolation.

There are also details that matter to reproducing particular claims. The paper gives the operation-prediction loss and identifies the operator label for a pair, while leaving some pair-selection cases implicit. Its tree objective specifies a difference of depths without further formalizing the difference. The English training description names MathQA for both pretraining and fine-tuning without giving a detailed stage-by-stage partition. In the Chinese setup, duplicate removal is stated explicitly for Ape-clean, while the whole remainder is described as a resource for objectives with weaker labels. That combination leaves the exposure of particular Math23k duplicates through the remainder unclear. These are uncertainties about the granularity of the training specification. They matter most when attributing a gain to strict separation or to a particular implementation of the structural targets.

Finally, the approach gives the encoder probabilistic evidence about properties. It does not enforce those properties as rules in decoding. A predicted answer type does not require the generated equation to yield that type, and the magnitude target does not impose an inequality during generation. The proposed objectives can make the representation more informative for the decoder while leaving the decoder free to produce an incorrect expression. The most direct empirical claim is therefore about better predictive performance under the paper’s training and evaluation arrangements.

What came after

Later citations place MWP-BERT in several related research directions. The connections range from new settings for evaluating numerical reasoning to alternate ways of relating numerical and symbolic representations. A citation identifies a relationship between the papers. The scope of each later study is clearer than whether it specifically reuses MWP-BERT’s objectives, data, or decoder.

Exploring the Numerical Reasoning Capabilities of Language Models (2023) takes tabular data as its setting for numerical evaluation. MWP-BERT asks which quantities in a narrative should become arguments in a solution equation. A table supplies a different organization for those quantities, with their positions in rows and columns providing part of the context. The citing work therefore places numerical-reasoning evaluation in a setting where the source and organization of the numbers differ from those of a word problem. Exploring Numerical Reasoning on Tabular Data

SNIP (2023) also treats the relationship between symbolic and numerical information as a subject for pretraining. Its stated scope is a unified approach to those two forms of mathematical representation. MWP-BERT makes that relationship concrete for arithmetic prose by training over number properties and solution trees. The later study takes up the broader relationship between the symbolic and numerical forms themselves. SNIP

MinT (2024) addresses generalization in mathematical reasoning through multi-view fine-tuning. The connection is one of training design. MWP-BERT gives an encoder several kinds of targets in an adaptation stage before training the downstream solver. MinT places multiple views at the fine-tuning stage and makes generalization the central question. Its title establishes that change in training emphasis, without specifying which of MWP-BERT’s individual supervision signals it uses. MinT

MathChat (2024) brings mathematical reasoning together with instruction following in multi-turn interactions. In MWP-BERT, the input is a bounded problem description, and the system produces a solution equation for it. In an interaction with several turns, the evaluation concerns how mathematical reasoning is expressed while following instructions across the exchange. MathChat thus takes the evaluation question into a dialogue setting with a different relationship between the problem and the requested response. MathChat

A Symbolic Framework for Evaluating Mathematical Reasoning and Generalisation with Transformers (2024) uses a symbolic framework to investigate reasoning and generalization. Symbolic structure in MWP-BERT supplies both the output format and labels for pretraining. The later work places symbolic structure at the center of the evaluation framework. This connects the two papers through their use of explicit mathematical structure while giving that structure a different job in the study. A Symbolic Framework for Evaluating Mathematical Reasoning and Generalisation

From Blind Solvers to Logical Thinkers (2024) benchmarks logical integrity on faulty mathematical problems. MWP-BERT’s solver is evaluated on whether it can construct an expression for a problem with a recorded answer, and Ape-clean filters for cases that support standard equation supervision. Faulty problems put the validity of the problem itself inside the evaluation. The relation is especially clear at the boundary of dataset construction. A problem that does not support an ordinary solution can be filtered out of a solver benchmark or deliberately included in an evaluation of logical integrity. From Blind Solvers to Logical Thinkers

Empowering Bengali Education with AI (2025) studies Bengali math word problem solving with Transformers. It stays close to MWP-BERT’s downstream task and extends the linguistic setting beyond the Chinese and English benchmarks discussed in the earlier paper. The connection concerns how a Transformer-based solver handles the language in which quantities and mathematical relationships are expressed. The Bengali setting identifies a new application of that research problem, without establishing a transfer result for the original MWP-BERT checkpoints. Empowering Bengali Education with AI

Cite

Cite as Zhenwen Liang, Jipeng Zhang, Lei Wang, Wei Qin, Yunshi Lan, Jie Shao and Xiangliang Zhang. 2022. MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solving. Findings of the Association for Computational Linguistics: NAACL 2022.

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2022.findings-naacl.74 · arXiv 2107.13435

@inproceedings{liang2022mwp,
  title = {{MWP-BERT: Numeracy-Augmented Pre-training for Math Word Problem Solving}},
  author = {Zhenwen Liang, Jipeng Zhang, Lei Wang, Wei Qin, Yunshi Lan, Jie Shao and Xiangliang Zhang},
  booktitle = {Findings of the Association for Computational Linguistics: NAACL 2022},
  year = {2022},
  doi = {10.18653/v1/2022.findings-naacl.74},
  eprint = {2107.13435},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2022.findings-naacl.74}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/liang-2022-mwp-bert-numeracy-augmented-pre/

References

47 references, from the paper's own bibliography.

  1. Aida Amini, Saadia Gabriel, Shanchuan Lin, Rik Koncel-Kedziorski, Yejin Choi, and Hannaneh Hajishirzi. 2019. Mathqa: Towards interpretable math word problem solving with operation-based formalisms. In NAACL, pages 2357–2367. our card
  2. Daniel Andor, Luheng He, Kenton Lee, and Emily Pitler. 2019. Giving BERT a calculator: Finding operations and arguments with reading comprehension. In EMNLP, pages 5946–5951. our card
  3. Emily M. Bender and Alexander Koller. 2020. Climbing towards NLU: on meaning, form, and understanding in the age of data. In ACL, pages 5185–5198. our card
  4. Ting-Rui Chiang and Yun-Nung Chen. 2018. Semantically-aligned equation generation for solving and reasoning math word problems. In NAACL. OpenAlex ↗ · Scholar ↗
  5. Yiming Cui, Wanxiang Che, Ting Liu, Bing Qin, Shijin Wang, and Guoping Hu. 2020. Revisiting pre-trained models for chinese natural language processing. In EMNLP: Findings, pages 657–668. our card
  6. Jacob Devlin, Ming-Wei Chang, Kenton Lee, and Kristina Toutanova. 2019. Bert: Pre-training of deep bidirectional transformers for language understanding. In NAACL, pages 4171–4186. our card
  7. Dheeru Dua, Yizhong Wang, Pradeep Dasigi, Gabriel Stanovsky, Sameer Singh, and Matt Gardner. 2019. DROP: A reading comprehension benchmark requiring discrete reasoning over paragraphs. In NAACL, pages 2368–2378. our card
  8. Mor Geva, Ankit Gupta, and Jonathan Berant. 2020. Injecting numerical reasoning skills into language models. In ACL, pages 946–958. our card
  9. John Hewitt and Christopher D. Manning. 2019. A structural probe for finding syntax in word representations. In NAACL, pages 4129–4138. our card
  10. Yining Hong, Qing Li, Daniel Ciao, Siyuan Huang, and Song-Chun Zhu. 2021a. Learning by fixing: Solving math word problems with weak supervision. In AAAI. OpenAlex ↗ · Scholar ↗
  11. Yining Hong, Qing Li, Ran Gong, Daniel Ciao, Siyuan Huang, and Song-Chun Zhu. 2021b. Smart: A situation model for algebra story problems via attributed grammar. In AAAI. OpenAlex ↗ · Scholar ↗
  12. Danqing Huang, Shuming Shi, Chin-Yew Lin, Jian Yin, and Wei-Ying Ma. 2016. How well do computers solve math word problems? large-scale dataset construction and evaluation. In ACL, pages 887–896. OpenAlex ↗ · Scholar ↗
  13. Shifeng Huang, Jiawei Wang, Jiao Xu, Da Cao, and Ming Yang. 2021. Recall and learn: A memory-augmented solver for math word problems. In Findings of EMNLP, pages 786–796. OpenAlex ↗ · Scholar ↗
  14. Diederik P Kingma and Jimmy Ba. 2014. Adam: A method for stochastic optimization. arXiv preprint arXiv:1412.6980. our card
  15. Rik Koncel-Kedziorski, Hannaneh Hajishirzi, Ashish Sabharwal, Oren Etzioni, and Siena Dumas Ang. 2015. Parsing algebraic word problems into equations. Transactions of the Association for Computational Linguistics, 3:585–597. OpenAlex ↗ · Scholar ↗
  16. Rik Koncel-Kedziorski, Subhro Roy, Aida Amini, Nate Kushman, and Hannaneh Hajishirzi. 2016. Mawps: A math word problem repository. In NAACL, pages 1152–1157. OpenAlex ↗ · Scholar ↗
  17. Nate Kushman, Yoav Artzi, Luke Zettlemoyer, and Regina Barzilay. 2014. Learning to automatically solve algebra word problems. In ACL, pages 271–281. OpenAlex ↗ · Scholar ↗
  18. Dennis Lee, Christian Szegedy, Markus N. Rabe, Sarah M. Loos, and Kshitij Bansal. 2020. Mathematical reasoning in latent space. In ICLR. OpenReview.net. our card
  19. Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Veselin Stoyanov, and Luke Zettlemoyer. 2020. BART: denoising sequence-to-sequence pre-training for natural language generation, translation, and comprehension. In ACL, pages 7871–7880. our card
  20. Jierui Li, Lei Wang, Jipeng Zhang, Yan Wang, Bing Tian Dai, and Dongxiang Zhang. 2019. Modeling intra-relation in math word problems with different functional multi-head attentions. In ACL, pages 6162–6167. OpenAlex ↗ · Scholar ↗
  21. Zhongli Li, Wenxuan Zhang, Chao Yan, Qingyu Zhou, Chao Li, Hongzhi Liu, and Yunbo Cao. 2021. Seeking patterns, not just memorizing procedures: Contrastive learning for solving math word problems. arXiv preprint arXiv:2110.08464. OpenAlex ↗ · Scholar ↗
  22. Zhenwen Liang and Xiangliang Zhang. 2021. Solving math word problems with teacher supervision. In IJCAI. OpenAlex ↗ · Scholar ↗
  23. Qianying Liu, Wenyv Guan, Sujian Li, and Daisuke Kawahara. 2019a. Tree-structured decoding for solving math word problems. In EMNLP, pages 2370–2379. OpenAlex ↗ · Scholar ↗
  24. Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, and Veselin Stoyanov. 2019b. Roberta: A robustly optimized bert pretraining approach. arXiv preprint arXiv:1907.11692. our card
  25. Jinghui Qin, Xiaodan Liang, Yining Hong, Jianheng Tang, and Liang Lin. 2021. Neural-symbolic solver for math word problems with auxiliary tasks. In ACL, pages 5870–5881. OpenAlex ↗ · Scholar ↗
  26. Jinghui Qin, Lihui Lin, Xiaodan Liang, Rumin Zhang, and Liang Lin. 2020. Semantically-aligned universal tree-structured solver for math word problems. In EMNLP, pages 3780–3789. our card
  27. Jianhao Shen, Yichun Yin, Lin Li, Lifeng Shang, Xin Jiang, Ming Zhang, and Qun Liu. 2021. Generate & rank: A multi-task framework for math word problems. In EMNLP, pages 2269–2279. OpenAlex ↗ · Scholar ↗
  28. Yibin Shen and Cheqing Jin. 2020. Solving math word problems with multi-encoders and multi-decoders. In COLING, pages 2924–2934. OpenAlex ↗ · Scholar ↗
  29. Shuming Shi, Yuehui Wang, Chin-Yew Lin, Xiaojiang Liu, and Yong Rui. 2015. Automatically solving number word problems by semantic parsing and reasoning. In EMNLP, pages 1132–1142. our card
  30. Minghuan Tan, Lei Wang, Lingxiao Jiang, and Jing Jiang. 2021. Investigating math word problems using pretrained multilingual language models. CoRR, abs/2105.08928. OpenAlex ↗ · Scholar ↗
  31. Avijit Thawani, Jay Pujara, Filip Ilievski, and Pedro A. Szekely. 2021. Representing numbers in NLP: a survey and a vision. In NAACL-HLT, pages 644–656. our card
  32. Eric Wallace, Yizhong Wang, Sujian Li, Sameer Singh, and Matt Gardner. 2019. Do NLP models know numbers? probing numeracy in embeddings. In EMNLP, pages 5306–5314. our card
  33. Lei Wang, Yan Wang, Deng Cai, Dongxiang Zhang, and Xiaojiang Liu. 2018. Translating a math word problem to a expression tree. In EMNLP, pages 1064–1069. OpenAlex ↗ · Scholar ↗
  34. Lei Wang, Dongxiang Zhang, Jipeng Zhang, Xing Xu, Lianli Gao, Bing Tian Dai, and Heng Tao Shen. 2019. Template-based math word problem solvers with recursive neural networks. In AAAI, volume 33, pages 7144–7151. OpenAlex ↗ · Scholar ↗
  35. Yan Wang, Xiaojiang Liu, and Shuming Shi. 2017. Deep neural solver for math word problems. In EMNLP, pages 845–854. OpenAlex ↗ · Scholar ↗
  36. Qinzhuo Wu, Qi Zhang, Jinlan Fu, and Xuan-Jing Huang. 2020. A knowledge-aware sequence-to-tree network for math word problem solving. In EMNLP, pages 7137–7146. OpenAlex ↗ · Scholar ↗
  37. Qinzhuo Wu, Qi Zhang, and Zhongyu Wei. 2021a. An edge-enhanced hierarchical graph-to-tree network for math word problem solving. In Findings of EMNLP, pages 1473–1482. OpenAlex ↗ · Scholar ↗
  38. Qinzhuo Wu, Qi Zhang, Zhongyu Wei, and Xuanjing Huang. 2021b. Math word problem solving with explicit numerical values. In ACL, pages 5859–5869. OpenAlex ↗ · Scholar ↗
  39. Zhipeng Xie and Shichao Sun. 2019. A goal-driven tree-structured neural model for math word problems. In IJCAI, pages 5299–5305. OpenAlex ↗ · Scholar ↗
  40. Weijiang Yu, Yingpeng Wen, Fudan Zheng, and Nong Xiao. 2021. Improving math word problems with pre-trained knowledge and hierarchical reasoning. In EMNLP, pages 3384–3394. OpenAlex ↗ · Scholar ↗
  41. Ma Yuhui, Zhou Ying, Cui Guangzuo, Ren Yun, and Huang Ronghuai. 2010. Frame-based calculus of solving arithmetic multi-step addition and subtraction word problems. In 2010 Second International Workshop on Education Technology and Computer Science, volume 2, pages 476–479. IEEE. OpenAlex ↗ · Scholar ↗
  42. Jipeng Zhang, Roy Ka-Wei Lee, Ee-Peng Lim, Wei Qin, Lei Wang, Jie Shao, and Qianru Sun. 2020a. Teacher-student networks with multiple decoders for solving math word problem. In IJCAI, pages 4011–4017. OpenAlex ↗ · Scholar ↗
  43. Jipeng Zhang, Lei Wang, Roy Ka-Wei Lee, Yi Bin, Yan Wang, Jie Shao, and Ee-Peng Lim. 2020b. Graph-to-tree learning for solving math word problems. In ACL, pages 3928–3937. OpenAlex ↗ · Scholar ↗
  44. Xikun Zhang, Deepak Ramachandran, Ian Tenney, Yanai Elazar, and Dan Roth. 2020c. Do language embeddings capture scales? In Findings of EMNLP, volume EMNLP 2020, pages 4889–4896. Association for Computational Linguistics. our card
  45. Wei Zhao, Mingyue Shang, Yang Liu, Liang Wang, and Jingming Liu. 2020. Ape210k: A large-scale and template-rich dataset of math word problems. arXiv preprint arXiv:2009.11506. OpenAlex ↗ · Scholar ↗
  46. Yanyan Zou and Wei Lu. 2019a. Quantity tagger: A latent-variable sequence labeling approach to solving addition-subtraction word problems. In ACL, pages 5246–5251. OpenAlex ↗ · Scholar ↗
  47. Yanyan Zou and Wei Lu. 2019b. Text2math: End-to-end parsing text into math expressions. In EMNLP, pages 5330–5340. OpenAlex ↗ · Scholar ↗