---
title: "Unit Dependency Graph and its Application to — Roy 2017"
description: "The paper adds explicit reasoning about units of measure to an arithmetic word-problem solver. It introduces the Unit Dependency Graph (UDG): one node per…"
authors: ["Subhro Roy", "Dan Roth"]
year: 2017
venue: "AAAI 2017 (arXiv 1612.00969)"
source: "https://doi.org/10.1609/aaai.v31i1.10959"
doi: "10.1609/aaai.v31i1.10959"
arxiv: "1612.00969"
licence: "CC BY 4.0 (arXiv)"
licence_url: "https://creativecommons.org/licenses/by/4.0/"
summary_licence: "Elamur Cosmic License"
canonical: "https://research.elamur.ai/free/en/papers/roy-2017-unit-dependency-graph-arithmetic/"
---
[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/roy-2017-unit-dependency-graph-arithmetic/)

[home](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2017](https://md.research.elamur.ai/free/en/papers/2017/page/4/) / Unit Dependency Graph and its Application to Arithmetic Word Problem Solving

# Unit Dependency Graph and its Application to Arithmetic Word Problem Solving

**Authors:** [Subhro Roy](https://md.research.elamur.ai/free/en/authors/subhro-roy/), [Dan Roth](https://md.research.elamur.ai/free/en/authors/dan-roth/) · **Year:** 2017 · **Venue:** AAAI 2017 **Link:** [arxiv.org/abs/1612.00969](https://arxiv.org/abs/1612.00969) (arXiv 1612.00969) **License of the paper:** [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/) (arXiv) — [creativecommons.org/licenses/by/4.0](https://creativecommons.org/licenses/by/4.0/)

[**90** citations](https://openalex.org/works?filter=cites:W2962970011) OpenAlex · 2026-10-14 · [**40** citations in our library](https://md.research.elamur.ai/free/en/papers/roy-2017-unit-dependency-graph-arithmetic/cited-by/) of the 140673 papers whose bibliographies we read · [AAAI 2017 (arXiv 1612.00969)](https://openalex.org/S4210191458) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://doi.org/10.1609/aaai.v31i1.10959)
- [PDF](https://arxiv.org/pdf/1612.00969)
- [DOI 10.1609/aaai.v31i1.10959](https://doi.org/10.1609/aaai.v31i1.10959)
- [arXiv 1612.00969](https://arxiv.org/abs/1612.00969)
- [OpenAlex](https://openalex.org/W2962970011)

**Authors (2)**

1. [Subhro Roy](https://openalex.org/A5041779935) [Semantic Scholar](https://www.semanticscholar.org/author/2248453) · h 14 · 1252 citations · 34 works
2. [Dan Roth](https://openalex.org/A5023802054) [ORCID](https://orcid.org/0009-0002-1447-5173) · [Semantic Scholar](https://www.semanticscholar.org/author/144590225) · h 84 · 30401 citations · 729 works

Citations and author metrics: OpenAlex, 2026-10-14; authors with the same name are not always told apart.

## Summary

The paper adds explicit reasoning about units of measure to an arithmetic word-problem solver. It introduces the Unit Dependency Graph (UDG): one node per quantity plus one for the question, where a node can be marked as a rate ("40 miles per hour", or implicitly "each student has 3 books") with a numerator and a denominator unit. Edges state that two nodes share a unit, or that a rate's numerator or denominator matches another node's unit. Two classifiers (for nodes and for edges) predict the graph under joint constrained inference; edge labels are derived automatically from gold solution trees, so only the rate/non-rate decision needed manual annotation for a small set of problems. The graph and the expression tree are then searched jointly with a beam, so that a candidate tree must agree with the units: same units combine by addition or subtraction, a rate links to the question through multiplication or division. The resulting solver (UnitDep) outperformed the systems of its time and was more robust when lexical and template overlap between training and test was reduced.

## How Mova uses it

- [global/seeds/shortcuts/units.md](https://mova.elamur.ai/free/en/docs/global/seeds/shortcuts/units/): a first-level knowledge "seed" that states the core rule (a "X per Y" quantity is a rate; total = rate × number of units; equal units combine only by addition/subtraction) and links concepts such as `rate -> multiply`, `total -> add`.
- `math/src/steps.rs`: the word-problem solver extracts a unit and a "per" (rate) marker for each number from the dependency tree and uses them as non-lexical features of the transition model (`rate:…`, unit agreement between operands, binding to the question).
- A hard version of the constraint was also tried (`MATH_UNITHARD=1`): search forbids ± between different units and × between equal units without a rate.
- Unlike the paper, there are no trained unit/rate classifiers; units come from simple tree heuristics.

## Effectiveness in Mova

- Non-lexical features (verb classes, rates, binding to the question; together with Roy & Roth 2018): SVAMP 44.7% → 48.0% (improvement).
- Hard unit constraint (`MATH_UNITHARD=1`): SVAMP 57.3% → 46.7% — harmful. Cases like "more cups of flour than sugar" subtract different things measured in the same unit, and the unit extraction is too coarse for a hard ban (the paper uses a trained classifier of units and rates). The idea works only as soft features.

---

👨‍🔬💥

## Cite

The paper itself, not this card. BibTeX from the library's record of the work. [DOI 10.1609/aaai.v31i1.10959](https://doi.org/10.1609/aaai.v31i1.10959) · [arXiv 1612.00969](https://arxiv.org/abs/1612.00969)

```bibtex
@misc{roy2017unit,
  title = {{Unit Dependency Graph and its Application to Arithmetic Word Problem Solving}},
  author = {Roy, Subhro and Roth, Dan},
  year = {2017},
  doi = {10.1609/aaai.v31i1.10959},
  eprint = {1612.00969},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.1609/aaai.v31i1.10959}
}
```

- [← previous Understanding Black-box Predictions via Influence Functions](https://md.research.elamur.ai/free/en/papers/koh-2017-understanding-black-box-predictions-influence/)
- [next → Universal Dependencies for Arabic](https://md.research.elamur.ai/free/en/papers/ud-2017-taji-universal-dependencies-arabic/)
- [↑ back to papers of 2017](https://md.research.elamur.ai/free/en/papers/2017/page/4/)

## References

1 references, 0 of them with a card of ours. ↗ leads to the work, «find» searches for one we have no id for yet.

1. [Hosseini et al. 2014] Hosseini, M. J.; Hajishirzi, H.; Etzioni, O.; and Kushman, N. 2014. Learning to solve arithmetic word problems with verb categorization. In EMNLP. [Koncel-Kedziorski et al. 2015] Koncel-Kedziorski, R.; Hajishirzi, H.; Sabharwal, A.; Etzioni, O.; and Ang, S. 2015. Parsing Algeb… [find](https://scholar.google.com/scholar?q=%5BHosseini+et+al%2E+2014%5D+Hosseini%2C+M%2E+J%2E%3B+Hajishirzi%2C+H%2E%3B+Etzioni%2C+O%2E%3B+and+Kushman%2C+N%2E+2014%2E+Learning+to+solve+arithmetic+word+problems+with+verb+categorization%2E+In+EMNLP%2E+%5BKoncel%2DKedziorski+et+al%2E+2015)
