Filtering Irrelevant Numbers in Mathematical Word Problems

21 concepts13 papers1 proposal

When humans solve a math word problem, our brains perform an immediate, almost subconscious act of triage. Consider this problem: "On October 12th, Alice bought 3 apples and 5 oranges. How many pieces of fruit did she buy?" We instantly recognize that "3" and "5" are functional values required for the calculation, while "12" is a descriptive label that can be safely ignored.

For natural language processing (NLP) models, however, this distinction is incredibly difficult. To a standard neural network, "12", "3", and "5" are all just numerical tokens embedded in text. This challenge is not new; as early as 1971, Jack P. Gelb noted in Experiments with a Natural Language Problem-Solving System that linguistic noise and descriptive filler present a major hurdle for automated solvers trying to isolate core semantic constraints.

As math word problem (MWP) solvers transitioned to deep learning, this "distractor noise" became a primary point of failure. Research by Zhipeng Xie et al. in A Goal-Driven Tree-Structured Neural Model for Math Word Problems demonstrated that neural solvers frequently suffer from a high sensitivity to spurious numerical information, leading to incorrect variable selection. When a model relies purely on standard attention mechanisms, it struggles to separate functional data from narrative noise.

As Qi Zhang et al. observed in Math Word Problem Solving with Explicit Numerical Values, attention weights often bleed into irrelevant descriptive numbers, mistakenly incorporating them into the final mathematical equation. This vulnerability is especially pronounced in complex narratives; as Chao-Chun Liang et al. pointed out in A Tag-Based Statistical English Math Word Problem Solver with Understanding, Reasoning and Explanation, models lacking an explicit mechanism to distinguish between essential data and narrative noise are easily misled by irrelevant numbers or sentences that do not contribute to the final calculation. In fact, Yanyan Zou et al. argued in Quantity Tagger: A Latent-Variable Sequence Labeling Approach to Solving Addition-Subtraction Word Problems that the misidentification of irrelevant quantities as active components of an equation is the single primary source of error in sequence-based solvers.

To solve this, a distinct research direction has emerged: instead of expecting a language model to implicitly ignore noise through standard text generation, systems must feature explicit mechanisms to filter out irrelevant information.

Explicit Binary and Global Relevance Filtering

The most direct way to prevent a model from using a distractor number is to explicitly predict whether that number belongs in the equation before generation even begins. This is typically achieved through an auxiliary binary classification or global relevance module.

In Deep Neural Solver for Math Word Problems, Yan Wang et al. pioneered this by introducing a "significant number" filter. This module acts as a gatekeeper: it runs a binary classification over every quantity extracted from the text, separating essential mathematical constants from contextual noise like dates or non-mathematical counts.

Similarly, Subhro Roy et al. utilized a quantity relevance classifier in the Illinois Math Solver: Math Reasoning on the Web to drop distractor numbers prior to operation prediction. The authors previously demonstrated in Reasoning about Quantities in Natural Language that a cascaded strategy—which isolates quantity relevance filtering from operation selection—prevents simpler models from drawing incorrect arithmetic conclusions.

Rather than treating relevance as an isolated binary choice per number, Qi Zhang et al. expanded this into a global relationship prediction mechanism in Math Word Problem Solving with Explicit Numerical Values. By evaluating the global context of how numbers relate to the core question, the model assigns a likelihood of inclusion for each numerical entity. This global filter guides the decoder, ensuring that attention mechanisms are constrained only to mathematically functional values.

Semantic Type Filtering

Another powerful intuition for filtering distractors is grounding numbers in their semantic types. A number in a word problem rarely exists in a vacuum; it is almost always bound to an entity (e.g., "5 apples") or an attribute (e.g., "speed of 60 mph").

Arindam Mitra et al. operationalized this intuition in Learning To Use Formulas To Solve Simple Arithmetic Problems through a technique called semantic type filtering. By extracting the specific attributes and entity types associated with every number, the system can verify whether quantities share compatible semantic categories. If a problem asks for the total number of fruits, a semantic filter can cross-reference the entities and automatically ignore numbers associated with dates or unrelated labels.

This builds on earlier structural insights from Hannaneh Hajishirzi et al. in Learning to Solve Arithmetic Word Problems with Verb Categorization, which emphasized the necessity of separating core entities and quantities from secondary narrative attributes. Similarly, Shyam Upadhyay et al. noted in Equation Parsing : Mapping Sentences to Grounded Equations that mapping text to grounded equations requires explicitly distinguishing between numbers acting as functional constants versus those acting merely as descriptive labels.

Structural and Latent Disentanglement

Instead of filtering numbers post-hoc, some architectures prevent distractor contamination by structurally separating the problem's background narrative from its mathematical objective.

For instance, in Deep Neural Network based system for solving Arithmetic Word problems, Purvanshi Mehta et al. designed a system called DILTON that explicitly splits the text into two parallel processing paths: the "world state" (containing background information) and the "query" (the specific question). By isolating these paths and using context-matching, the network prevents background narrative details from bleeding into the mathematical query.

Taking a sequence-labeling perspective, Yanyan Zou et al. introduced the Quantity Tagger framework in Quantity Tagger: A Latent-Variable Sequence Labeling Approach to Solving Addition-Subtraction Word Problems. Instead of generating an equation token-by-token, the model identifies "latent spans" of text surrounding each number. These spans allow the model to determine whether a number's local context implies it should be added, subtracted, or entirely ignored as background information.

Finally, moving away from standard generative text models altogether, Zhanming Jie et al. reframed the task as complex relation extraction in Learning to Reason Deductively: Math Word Problem Solving as Complex Relation Extraction. By utilizing a dedicated "Rationalizer" module to step-by-step update the model's internal mental state, the system bypasses the vulnerabilities of standard sequence-to-sequence generation, ensuring that irrelevant numerical information cannot easily mislead the relational mapping process. Through these diverse architectural constraints—whether via binary gates, semantic types, or structural paths—modern solvers successfully isolate the mathematical signal from the narrative noise.

Key Foundational Work

Learning to Solve Arithmetic Word Problems with Verb Categorization (2014) — contributed 1 concept elements to this direction.
Experiments with a Natural Language Problem-Solving System (1971) — contributed 1 concept elements to this direction.
History & citationVersion 2 · 2026-10-04

Current · Permanent link

  1. Version 2 (latest) · 2026-10-04 · 13 papers
  2. Version 1 · 2026-10-04 · 18 papers
Cite this direction

Latest version (a living page):

@misc{lacuna_irrelevant_information_filtering_406d6bbe,
  title = {irrelevant information filtering},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/irrelevant-information-filtering/rdr_406d6bbe8f49468bb62d9108fdcc2de1},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-27},
}

This exact version (version 2, frozen text):

@misc{lacuna_irrelevant_information_filtering_406d6bbe_v2,
  title = {irrelevant information filtering},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/irrelevant-information-filtering/rdr_406d6bbe8f49468bb62d9108fdcc2de1/v/2},
  note = {Version 2, frozen 2026-10-04. Accessed 2026-11-27},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake