---
title: "Towards Benchmarking and Improving the Temporal Reasoning"
description: "TempReason tests how well language systems calculate dates, match facts to dates, and order events, and how training improves those skills."
canonical: "https://research.elamur.ai/free/en/papers/tan-2023-benchmarking-improving-temporal-reasoning-capability/"
---
Elamur: [Mova](https://md.mova.elamur.ai/free/en/) · [Parse](https://mova.elamur.ai/free/en/parse/) · [Dictionary](https://md.dictionary.elamur.ai/free/en/) · [Translate](https://md.translate.elamur.ai/free/en/) · **Research** · [Gali](https://md.gali.elamur.ai/free/en/) · [MCP](https://mcp.elamur.ai/) · [Locations](https://md.locations.elamur.ai/free/en/) · [Weather](https://md.weather.elamur.ai/free/en/)

[Elamur Research](https://md.research.elamur.ai/free/en/) · [this page in HTML](https://research.elamur.ai/free/en/papers/tan-2023-benchmarking-improving-temporal-reasoning-capability/)

[Elamur Research](https://md.research.elamur.ai/free/en/) / [papers](https://md.research.elamur.ai/free/en/papers/) / [2023](https://md.research.elamur.ai/free/en/papers/2023/) / Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Models

# Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Models

Paper · 2023 · Qingyu Tan, Hwee Tou Ng and Lidong Bing

**Authors:** [Qingyu Tan](https://md.research.elamur.ai/free/en/authors/qingyu-tan/), [Hwee Tou Ng](https://md.research.elamur.ai/free/en/authors/hwee-tou-ng/) and [Lidong Bing](https://md.research.elamur.ai/free/en/authors/lidong-bing/) · **Year:** 2023 · **Venue:** Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · **Licence:** [CC BY 4.0 (ACL Anthology)](https://creativecommons.org/licenses/by/4.0/)

[Cited by **98** papers in our library of the 163,136 papers whose bibliographies we read](https://md.research.elamur.ai/free/en/papers/tan-2023-benchmarking-improving-temporal-reasoning-capability/cited-by/) · Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers) · [licence](https://creativecommons.org/licenses/by/4.0/)

- [Publisher's page](https://aclanthology.org/2023.acl-long.828/)
- [PDF](https://aclanthology.org/2023.acl-long.828.pdf)
- [DOI 10.18653/v1/2023.acl-long.828](https://doi.org/10.18653/v1/2023.acl-long.828)
- [arXiv 2306.08952](https://arxiv.org/abs/2306.08952)

## Summary

A fact can be right about a person and wrong about the time in the question. Knowing that Lionel Messi played for a particular club gives you a possible answer. To say which club he played for in a given month, you also need to know when he played for it. The authors use this distinction to examine what goes into time-sensitive [question answering](https://md.research.elamur.ai/free/en/topics/question-answering/). They separate calendar calculations between dates (L1), questions that ask which fact was true at a given time (L2), and questions that ask what came before or after a particular event (L3). Earlier benchmarks concentrated on the second kind of question, and some covered a narrow band of recent years. TempReason extends the date coverage and tests all three kinds of [reasoning](https://md.research.elamur.ai/free/en/topics/reasoning/).

A preliminary year-arithmetic test shows why the choice of dates matters. Across randomly generated questions with reference years from 1900 to 2040, T5-L-NQ and FLAN-T5-L were best at giving the exact year for questions from the 2000 to 2020 period. They often got the direction of time right even when they missed the requested year. The authors suggest that years common in pretraining text may be easier to handle, and point to differences in how T5 breaks up year numbers. ChatGPT reached 99.6 exact match in the preliminary year test, but scored 30.5 exact match on TempReason’s month calculations. T5-SFT and the authors’ TempT5 both reached 100 on exact match and F1 on the in-domain month test. TempT5 reached 97.1 F1 on a separate test with reference dates from 2022 to 2040.

TempReason generates its calendar questions directly and draws its questions about people and events from dated records in Wikidata. The experiments change how much evidence comes with each question. A closed-book system receives the question alone. An open-book system also reads Wikipedia text about the subject. In reasoning QA, the prompt gives the relevant facts and their date ranges in shuffled order. This last setting makes it easier to see whether a system can choose among known possibilities once the necessary evidence is available. Event questions generally yielded the strongest results with structured facts and the weakest results without context. Some event-order questions could also be solved from clues in the answer names, which changed how the aggregate scores should be read.

The authors train TempT5 to recover masked entities and dates in Wikipedia, then train it on TempReason answers and use a reward that penalizes a plausible answer drawn from the wrong period. Their clearest reported gains over ordinary supervised training are on L2 questions with Wikipedia or structured context. Removing the date-and-entity training hurt the open-book setting, while removing the time-sensitive reward had a larger effect with structured facts. Even there, questions about a change within a year remained harder than questions the year alone could resolve. The benchmark uses month names with numeric years, and its answers can inherit errors from Wikidata. The authors released the code and data in the `DAMO-NLP-SG/TempReason` repository.

## Deep dive: Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Models

TempReason tests how well language systems calculate dates, match facts to dates, and order events, and how training improves those skills. · about 37 minutes to read

**In this deep dive**

1. [The problem and its context](#dd-the-problem-and-its-context)
2. [The method, step by step](#dd-the-method-step-by-step)
3. [Experiments and results](#dd-experiments-and-results)
4. [What the ablations show](#dd-what-the-ablations-show)
5. [Limitations](#dd-limitations)
6. [What came after](#dd-what-came-after)

### The problem and its context

#### A date changes which fact answers the question

A player’s club, an official’s office, and other facts about roles or affiliations can change while the person and the relationship being asked about stay the same. A question that supplies a month is asking for the state of that relationship at a particular point. A system that returns a well-known affiliation may sound knowledgeable while giving an answer that would belong in a different period. This is a common enough property of structured factual data to matter for evaluation. The paper cites an estimate that around 48% of the qualifiers in Wikidata relate to time. A qualifier adds detail to a statement. In this case it can tell the reader when a statement starts or stops applying. [Wikidata](https://md.research.elamur.ai/free/en/papers/vrandecic-2014-wikidata-free-collaborative-knowledgebase/)

The distinction matters even when a question looks like an ordinary lookup. A reader who follows a sport may remember the relevant spell of a player’s career. Someone unfamiliar with the sport can use a record of the same career, provided it links each club to the right period. The important part of the evidence is the association between each candidate and its dates. A list of clubs and a separate list of dates would leave work to do. Conversely, someone who knows those associations can still make an error by applying the “before” or “after” condition to the wrong spell.

The paper calls questions that depend on information of this kind time-sensitive question answering, or TSQA. The authors want to know whether success comes from knowing the fact, working out its date range, applying the temporal condition, or some combination of these. A single accuracy score on questions about recent facts offers little purchase on that issue. To see why, consider a collection in which a subject’s longest-held position is the answer across much of the evaluation period. A system could favor that position whenever the subject appears and accumulate correct answers. The questions would still be time-sensitive in principle, while the score would give weak evidence about how the system responds to changes in time.

#### Calendar operations, dates of facts, and event order

The authors’ L1 category covers relationships between times. Its simplest example is moving from a reference year to a later or earlier year. The question supplies the reference point and the operation, and the answer is another date. There is no career history to recall or document to read. The operation ought to apply in the same way to an unfamiliar year as to a familiar one. That makes L1 a way of asking whether a system can give the same kind of answer when the dates in otherwise similar questions change.

L2 covers relationships between a date and an event. The authors use “event” broadly enough to include a state that lasts, such as playing for a club. If a question asks about Messi’s club in Dec 2010, the month and year are supplied, while the club must be determined. Someone answering needs to connect possible clubs to periods and select the one whose period covers the query date. The paper calls the connection between an event and its time range temporal grounding. Grounding is what turns a relevant biographical fact into evidence for an answer to the dated question.

L3 covers relationships between events. The question supplies an event and asks about another on one side of it in time. A reader can sometimes work through a calendar by dating the events and comparing their periods. A text may also give the relationship directly with wording such as “before” or “after.” In that case a reader can establish order without assigning calendar dates to both events. This distinction matters to the authors’ design because an event-order question can be answered by several routes. The ability to recover a calendar date, the ability to interpret an explicit ordering statement, and the ability to use a clue in the wording can all contribute to a correct response.

These categories describe what the question asks about. The paper also varies what a system sees when answering. A question about a club on a particular date remains L2 whether the system must rely on what it learned in training or can inspect a list of clubs with dates. Keeping the question type and the evidence setting separate lets the authors ask how much of the difficulty changes when they provide the ingredients for a temporal decision.

#### What the earlier evaluations measured

One line of earlier research looked for temporal information within a document. TimeBank records events, time expressions, and links between them, including order. TempEval challenges used similar annotation, and TimeBank-Dense supplied more complete coverage because annotating relations exhaustively is costly. The authors also describe a joint extraction approach for events and temporal relations, and work on how events unfold in text. In their account, these methods address the contents of a document. Dating a fact about an entity across sources or using background knowledge to identify when it held asks for a different kind of grounding. [Clinical TempEval](https://md.research.elamur.ai/free/en/papers/bethard-2016-semeval-2016-task-12-clinical/) and [Joint Event and Temporal Relation Extraction](https://md.research.elamur.ai/free/en/papers/han-2019-joint-event-temporal-relation-extraction/)

Another line of research used a [knowledge graph](https://md.research.elamur.ai/free/en/concepts/knowledge-graph/), where facts are represented as relations linking entities and can carry time information. Temporal graph completion takes a query with a gap and ranks the graph’s entities as possible fillers. Temporal graph QA can express a more complex query in natural language while keeping the graph’s entity inventory available for the search. The paper describes approaches based on extending graph-completion methods, combining graph and language representations, or making a system more sensitive to the query time through contrastive training. TempReason uses graph records to construct examples, and asks systems to generate answers from their prompts. Its structured setting supplies records for the relevant subject and relation, without making the task a ranking over the entire graph. [Question Answering Over Temporal Knowledge Graphs](https://md.research.elamur.ai/free/en/papers/saxena-2021-question-answering-over-temporal-knowledge/)

The authors situate TempReason most directly among earlier time-sensitive QA benchmarks. SituatedQA included questions whose answers depend on time. StreamingQA used English news collections covering 2007 to 2020. The Time-sensitive QA dataset had a longer span, from 1367 to 2018, but tested time–event questions. TempLAMA used dated facts from Wikidata to evaluate questions from 2010 to 2020 in a closed-book setting. The authors identify two properties of TempLAMA that may make it an optimistic measure. Its range concentrates on contemporary years, and 70.69% of its questions take the answer that occurs most frequently for their subject. That percentage describes the answer distribution, which leaves room for good scores from a system that favors a familiar answer. [Time-Aware Language Models as Temporal Knowledge Bases](https://md.research.elamur.ai/free/en/papers/dhingra-2022-time-aware-language-models-as/)

Together, these lines of research give the authors distinct points of departure. Document extraction asks what temporal information is expressed in a passage. Graph QA can make candidate entities available in advance. Closed-book tests require the system to produce a fact from the question alone. TempReason puts several evidence conditions around related questions and includes operations that go beyond using a supplied date to look up a fact. It also treats the location of a date on the calendar as a property of the test worth examining in its own right.

### The method, step by step

#### From a year probe to questions about months

The authors start with a small diagnostic in which the expected answer is a numeric year. They choose a reference year and a random offset and use a template to ask for a year before or after the reference. The offset in this preliminary test follows the bound below.

```
x ≤ 10
```

Here x is the interval in years selected for the question. The sign ≤ means that the interval can be at most 10 years. This bound belongs to the preliminary year-prediction task.

For TempReason’s L1 task, the authors move to month and year together. Each question supplies a reference date, a displacement expressed in years and months, and a direction. The letters x and y in their description of the templates denote the year and month portions of the displacement, respectively, and t denotes the reference date. The answer is the month and year reached by performing the operation. Asking about months increases the variety of possible cases. It also means that a system may have to move across a year boundary while getting the month right. The authors chose this design because the range of possible year-only examples is small enough to raise the prospect of memorizing them.

The construction draws a reference date from a specified range and generates a question and its answer. The paper requires every generated question to be unique before randomly dividing the data into training, development, and test sets. That prevents repetition of an identical generated question across these splits. The operation expressed by a template can still recur, which is appropriate for evaluating whether practice on that operation helps with different inputs. To test transfer beyond the ordinary split, the authors generate a separate L1 test with reference dates from 2022 to 2040. The future label refers to dates in an arithmetic exercise. The expected answers follow from the questions themselves.

#### Turning dated records into questions about facts

L2 and L3 need events or facts with a documented time range. The authors extract time-dependent statements from the 20 Nov 2022 Wikidata dump. They restrict the extraction to 10 time-sensitive relations already used in TempLAMA. Each record starts with a subject, a relation, and an object. The time qualifiers provide fields for the beginning and end of the fact. The resulting representation is:

```
(s, r, o, tₛ, tₑ)
```

Here s is the subject, such as a person. The symbol r is the relation, such as holding a position. The symbol o is the object, such as the position held. The expressions tₛ and tₑ denote the start and end times of the fact. The parentheses group these fields into a record, and the commas separate them.

The authors put together records that share the subject and relation and sort the records into chronological order. For an officeholder, the result is a group of records about that person’s positions. For an athlete, the group associated with a team relation contains that athlete’s team records. The paper represents a group as follows.

```
S = {(s, r, oᵢ, tₛᵢ, tₑᵢ) | i ∈ 1 … N}
```

Here S is the set of records in a group. The signs = and | introduce its definition and the condition for membership, respectively. The braces delimit the set, and ∈ means that i belongs to the index range shown. The index runs from 1 through N, with the ellipsis standing for the intervening indices. N is the number of facts in the group. The subject s and relation r are shared. For record i, oᵢ is its object, tₛᵢ is its start time, and tₑᵢ is its end time. The authors preserve a chronological order during construction even though the notation itself describes membership in the group.

The authors retain groups with at least three dated facts. The filter makes changing answers a deliberate property of the collection. A group with an unchanging answer would offer little leverage for testing whether the system uses a date to choose among alternatives. The authors also cap each relation type at 2,000 subjects to limit the effect of uneven representation in Wikidata. This cap concerns subjects per relation. It leaves room for differences in how many records each subject contributes and in which years those records cover.

An L2 example comes from choosing a date within the interval of a fact and asking which object applies. The formal query is:

```
(s, r, ?, tᵣ)
```

Here s identifies the subject, r names the relation, and the question mark stands for the object to be recovered. The symbol tᵣ is the sampled reference time, chosen between the fact’s start tₛ and end tₑ. The punctuation groups and separates the parts as in the fact representation. A manually written template turns the query into a question, with the date expressed as a month and year. In the club example, the template names the athlete and the date and leaves the club to be supplied by the answer.

For L3, the authors use the chronological groups to find adjacent facts connected by a before or after relation. They retain only 1-hop pairs, meaning that the target is one step from the reference fact in the ordering used to make the questions. A template gives the object from the reference event and asks for the preceding or following one. The object named in the question might be a position whose holder is the subject. The answer is another position in that person’s sequence. Unlike the reference point in L2, the reference point in L3 is supplied as an event or fact name, and whatever dates are needed must come from knowledge, evidence, or the way the names themselves convey order.

The two kinds of question thus come from a shared collection of histories. An L2 template presents a date and asks what was true then. An L3 template presents a fact and asks what came next or before it. Generating the questions from a shared group also makes it possible to identify plausible alternatives when training. Those alternatives are often relevant to the person and relation in exactly the same way as the intended answer. Their difference lies in where they fall in the history.

#### Controlling what the system has to find

The authors distinguish finding plausible answers, grounding each of those answers in time, and applying the question’s temporal condition. The last operation might mean deciding which interval contains a reference month. It might also mean identifying a fact in the supplied records and looking for its immediate neighbor in time. The paper describes its questions about dated facts as having 5.3 to 5.5 possible answers in its dataset statistics. These are possibilities associated with the subject and relation. The reference time or event determines which is called for in the question.

In closed-book QA, abbreviated CBQA, the input is the question alone. An answer about a player’s club can succeed if the system recalls the right club directly or can recover enough about the player’s career from training to work it out. An error leaves several possible explanations. The system may have failed to recall the candidate, recalled a period incorrectly, or used the right pieces of knowledge in the wrong order. The setting measures performance when all these demands fall on the system at once.

In open-book QA, abbreviated OBQA, the prompt includes Wikipedia material from the subject’s article. The source is selected through the subject of the question. Within that source, the system has to find the relevant information and associate it with the right times. A passage may tell the story of a career across several sentences, so knowing that the answer text appears somewhere provides only part of the solution. The system also needs to connect the answer to the time in the question. This formulation supplies natural-language context while retaining the work of interpreting the evidence.

In reasoning QA, abbreviated ReasonQA, the prompt includes the relevant group of facts, with candidate answers and dates represented explicitly. The authors shuffle the facts so that their position in the prompt does not reproduce the construction order. Choosing the preceding event by looking at the previous entry in the input would therefore be unreliable. A system taking the intended route uses the dates or qualifying relation. This condition simplifies the retrieval and grounding demands and gives a closer view of selection based on temporal evidence. The paper treats perfect performance as an intuitive human reference point in this setting, on the grounds that a reader can inspect the list and work out the answer. That reference is an expectation about the task, without a reported human evaluation.

#### Training on spans, answers, and plausible mistakes

The training procedure starts with T5-base, the smaller T5 variant used in the study. T5 takes a text input and generates a text output. This lets the authors use one sequence-to-sequence approach for reconstructing parts of a passage, answering a question, and generating an answer that can be scored by a reward. The supervised baseline also starts from T5-base. The additional stages distinguish TempT5 from that baseline. [T5](https://md.research.elamur.ai/free/en/papers/raffel-2019-exploring-limits-transfer-learning-unified/)

From dated examples to a trained TempT5 system The steps in order.

The first training stage is temporal span extraction, or TSE. A span is a stretch of text, such as a complete date expression or name. The authors use a spaCy tagger trained on OntoNotes 5.0 to find entities and temporal expressions in 100K Wikipedia articles. This use of [named entity recognition](https://md.research.elamur.ai/free/en/concepts/named-entity-recognition/) lets them select specific kinds of text to hide. For each paragraph they randomly mask 50% of the detected entities and temporal spans and give the resulting input to T5 for reconstruction. The exercise directs training toward the links between people, things, and times found in the surrounding prose.

The idea adapts salient span masking, which the paper credits to REALM. That earlier intermediate training technique involved recovering masked named entities. The authors’ temporal version chooses date expressions as well as entities. The hoped-for benefit comes from the dependency between the missing material and the surrounding passage. To recover a date, it helps to understand what event the passage is describing. To recover an entity, it can help to read time expressions and other information that distinguish one event from another. Both are useful operations when the passage is later offered as evidence for a question. [REALM](https://md.research.elamur.ai/free/en/papers/guu-2020-realm-retrieval-augmented-language-model/)

Next comes supervised [fine-tuning](https://md.research.elamur.ai/free/en/concepts/fine-tuning/), or SFT. Both the question and any designated context go into the input. The expected answer supplies the training target. The paper states the objective as maximizing the conditional probability below.

```
P(a | q, c)
```

Here P is the conditional probability assigned by the current system, whose trainable parameters are denoted by θ in the paper. The symbol a is the correct answer, q is the question, and c is the context supplied under the chosen evidence setting. The bar | means “given,” and the comma separates the inputs being conditioned on. For the closed-book condition, there is no accompanying passage or set of dated facts.

This stage teaches what answers to produce for the benchmark’s questions. The reinforcement stage adds a distinction among erroneous outputs. If a person held several positions, naming one of the other positions is a plausible retrieval of a true fact about that person. It can simultaneously be a poor answer to the particular question because the question points to a different period or event. Building examples from groups of related facts makes these errors available during training without requiring someone to write a new set of incorrect answers by hand.

#### The reward in precise terms

The paper presents its reinforcement rule for a question associated with a particular target fact. That fact is:

```
x = (s, r, oⱼ, tₛⱼ, tₑⱼ)
```

Here x denotes the target fact in the reward derivation. This is a separate use of x from its role as a year offset in the preliminary task. The sign = defines x, and the parentheses and commas organize its fields. The symbols s and r are the subject and relation. The index j identifies the correct record, oⱼ is its object and thus the reference answer, and tₛⱼ and tₑⱼ give that record’s start and end times.

The other records in the same group form the source of negative examples.

```
Sₙ = {(s, r, oᵢ, tₛᵢ, tₑᵢ) | i ∈ 1 … N, i ≠ j}
```

Here Sₙ is the set of alternative records. The symbol N at the end of the index range is still the number of records in the original group, and the subscript on Sₙ marks the set selected for negatives. The indices i and j identify a candidate record and the correct record, respectively. The sign ≠ excludes the correct record. The subject s and relation r are unchanged across the records under consideration, and oᵢ, tₛᵢ, and tₑᵢ are candidate i’s object and time endpoints. The other set notation has the same meaning as in the definition of S.

The authors collect the objects of these alternative records into a set of answers. Their notation uses N both for the set and for the size of the original group in the expression that indexes it.

```
N = {oᵢ | i ∈ 1 … N, i ≠ j}
```

Here N on the left denotes the negative answer set, while N at the end of the range is the record count. In the braces, oᵢ is the object from record i, and the condition i ≠ j selects the records other than the target. This expression collects answer names. The dates explain which records are alternatives, while equality with an answer name is what the reward actually evaluates.

The first score checks the prediction against the correct answer.

```
p(x) = F(θ(x), oⱼ)
```

Here p(x) is the positive score for the question associated with fact x. The notation θ(x) refers to the answer generated by the system with parameters θ for that example. The function F compares the generated answer with a reference string, here the correct object oⱼ. The authors use exact match, or EM, for F. An exact match gets credit in this stage, while partial token overlap plays no part in the reward.

The second score checks whether any known alternative matches.

```
n(x) = max{F(θ(x), oᵢ) | i ≠ j}
```

Here n(x) is the negative-match score for the same example. The operator max selects the highest score among the eligible alternatives. The function F and prediction θ(x) have the same meanings as in the previous expression, and oᵢ is an alternative object with i drawn from the group. The condition i ≠ j excludes the target record. One matching alternative suffices to make the negative-match score 1. If the output matches several alternatives, the maximum still supplies the score of a match.

The authors use these two scores in a single rule.

```
R(x) = {  p(x)   if p(x) ≥ n(x)
         −n(x)   if n(x) > p(x) }
```

Here R(x) is the reward assigned to the generated answer for the example tied to x. The sign ≥ means “greater than or equal to,” and > means “strictly greater than.” The minus sign makes the second branch a penalty. The first branch applies whenever the correct-answer score p(x) is at least as high as the strongest alternative score n(x). The second applies when the alternative score is higher. An exact hit on the intended answer therefore receives positive feedback. An exact hit only on an alternative receives a penalty. An output that matches neither gets a neutral reward, and a tie goes to the first branch. The rule uses answers from related facts to distinguish a recognizable mistake from a miss elsewhere in the output space.

The final optimization uses Proximal Policy Optimization, or PPO, with this rule supplying the reward directly. The appendix reports an initial KL penalty coefficient of 0.05 and a target KL coefficient of 6. KL refers to the divergence used to regulate changes in the system’s output distribution during reinforcement learning. The discount factor, written γ, is 0.99. With batches of 8 and inputs capped at 512, the intermediate span training proceeds for 100K steps at a learning rate of 2e-5. Supervised training uses the same batch size and learning rate and runs for 3 epochs per setting. The input limit is 128 for CBQA, 512 for ReasonQA, and 1,024 for OBQA, where the context is typically longest. The supervised evaluation uses the final checkpoint.

### Experiments and results

#### The preliminary test measures direction as well as precision

The preliminary study divides the reference years from 1900 to 2040 into seven 20-year periods and randomly generates 400 questions per period. The task is the same kind of year prediction across these periods. Because the dates vary while the question templates serve the same purpose, the design exposes variation that would disappear in a test concentrated around the present. The authors compare T5-L-NQ, which was trained on Natural Questions, with the instruction-tuned FLAN-T5-L and the gpt-3.5-0301 version of ChatGPT. These systems have different training histories, which provides a practical comparison of their behavior on the probe. [Natural Questions](https://md.research.elamur.ai/free/en/papers/kwiatkowski-2019-natural-questions-benchmark-question-answering/) and [Finetuned Language Models Are Zero-Shot Learners](https://md.research.elamur.ai/free/en/papers/wei-2021-finetuned-language-models-zero-shot/)

The authors score the numeric predictions in three ways. Exact match asks whether the predicted year is the gold year. Mean absolute error, or MAE, averages how far away the predicted year is, regardless of which side of the correct year it falls on. Trend accuracy asks whether the answer lands on the correct side of the question’s reference year. It gives credit for the right direction even when the size of the displacement is wrong. A system can therefore have strong trend accuracy, small absolute errors, and relatively few exact answers. Each metric identifies a different property of the same outputs.

ChatGPT achieved 99.6 overall EM on this preliminary test, with some mistakes in the 1900-1940 period. T5-L-NQ and FLAN-T5-L attained their strongest exact-match performance in the 2000 to 2020 period and did worse with earlier and later reference years. FLAN-T5-L had lower EM than T5-L-NQ, but its predictions were closer to the right year by MAE across most periods. The authors see this as evidence that instruction tuning in FLAN could improve numerical estimation. The result directly establishes a difference in the errors of the two evaluated systems, whose training differs in more than the numerical exercises used in this study.

Across periods before 2020, all the tested systems exceeded 90% trend accuracy. In 2020-2040, trend accuracy deteriorated for the two T5 variants. The pre-2020 figures show that these systems often responded to the direction in the question, and their exact-year performance shows how much work remained after taking the correct direction. The weaker trend results in the later period also mean that even this coarse reading of the temporal instruction depended in part on where the reference year fell.

The paper proposes a link with the frequency of year expressions in pretraining text. As an illustration, T5 represents `2014` as a single token, whereas it splits `2021` into `20` and `21`. A token is a unit of text used as an input or output by a language system. The example shows that years posed as equivalent inputs to a calendar operation can have different internal segmentations. It supports looking at how dates are represented and distributed in training when explaining the period effects. The evidence described here places the mechanism at the level of a hypothesis. [Tokenization](https://md.research.elamur.ai/free/en/concepts/tokenization/)

#### The main comparison and the month test

The main experiments use the TempReason test sets. Exact match measures whether the response matches the expected answer. Token-level F1 measures overlap between the words or tokens in the prediction and the reference answer. It balances how much of the answer was recovered with how much of the prediction belongs to that answer. This matters for multiword names, where responses can share substantial text even if the predicted office, club, or date differs in a critical part. EM asks for the whole answer, so it helps show how often overlap corresponds to a fully correct response. For the reported main comparison the paper averages results over three runs.

T5-SFT is the supervised baseline. Its T5-base starting point is fine-tuned for the particular TempReason setting, giving a comparison for the added training used by TempT5. The authors also evaluate FLAN-T5-L without task-specific examples as a zero-shot baseline. Its instruction training covered more than 60 NLP tasks. ChatGPT is again evaluated using gpt-3.5-0301. The authors use 200 examples per setting for ChatGPT because of access and cost. Its comparison therefore describes performance on those evaluated examples, while the reported in-domain and future results for TempT5 describe the corresponding test sets. [Training language models to follow instructions with human feedback](https://md.research.elamur.ai/free/en/papers/ouyang-2022-training-language-models-follow-instructions/)

On the in-domain L1 month task, ChatGPT scores 30.5 EM. This is substantially weaker than its preliminary performance on year prediction. The two tests therefore give different accounts of what the system can do with a calendar. In the month task, it must move by a displacement with year and month components and produce both parts of the resulting date. The evaluation does not isolate which particular sub-operation accounts for the difference. It shows that the nearly perfect result on the simpler probe should be read within the scope of that probe.

Exact match on the TempReason in-domain L1 month test Both systems trained on TempReason reach the ceiling while ChatGPT is much less accurate.

**The numbers**

| System or setting | EM |
| --- | --- |
| ChatGPT | 30.5 |
| T5-SFT | 100 |
| TempT5 (this paper) | 100 |

T5-SFT and TempT5 both score 100 on EM and token-level F1 on the in-domain L1 test. Supervised practice on generated examples is thus sufficient for the observed in-domain result. The matching scores leave the test with no room to show an additional advantage for TempT5 on that split. The authors interpret the performance as evidence that the calendar operations can be taught with examples on a large scale. The behavioral result is strong for the family of operations sampled by the benchmark.

On the separate future L1 split, TempT5 scores 97.1 F1. The reference times from 2022 to 2040 are outside the ordinary L1 time range. This test changes the dates while keeping the kind of question familiar. It provides evidence that the behavior learned from the training examples carries over to a disjoint span of reference times. The score remains below the in-domain result, which also shows that moving the calendar range still affects performance after training.

TempT5 F1 across the TempReason L1 month test splits TempT5 retains most of its in-domain performance when the reference dates move to the future split.

**The numbers**

| System or setting | F1 |
| --- | --- |
| Future test | 97.1 |
| In-domain test (this paper) | 100 |

#### Matching dates to facts

On L2, the performance changes with the material supplied in the prompt. Closed-book QA is the weakest setting in the authors’ comparison. The system must recover enough about a subject’s history to identify which object applies at the query time. Providing Wikipedia context helps, and supplying the candidates with their time ranges leads to materially better performance than either of the other settings. The pattern gives evidence that candidate availability and grounding make up a large part of the difficulty of the benchmark. It also shows that useful temporal selection is possible once the necessary evidence is present.

In both the open-book and reasoning settings, TempT5 improves over T5-SFT, the strongest baseline for those comparisons. These gains address a different question from the results on L1. On L1, the answer follows from an operation on dates already in the question. On L2, additional training helps in settings where the candidate object must be identified from prose or selected from a list of dated facts. The open-book comparison includes the work of extracting and interpreting the relevant information, whereas the structured comparison places more of the demand on relationships within the facts that have already been supplied.

ChatGPT ranks last in the paper’s comparison for L2 ReasonQA in spite of being strongest on the preliminary year probe. The two results are compatible because the tasks ask for different operations. In ReasonQA, the challenge includes associating a date with a candidate’s period and returning the name linked to that period. Supplying the information makes recall less central, while the system must still read the representation, find the applicable interval, and output the correct entity. Doing simple year arithmetic accurately provides limited evidence about how well that sequence of decisions will go.

#### Ordering facts

On L3, the systems again do best with structured facts, followed by Wikipedia context, with the weakest results when only the question is available. In ReasonQA, most systems score worse on L3 than on L2. ChatGPT is the exception to that pattern. FLAN-T5-L shows a particularly large gap. Its F1 goes from 66.3 for L2 to 47.5 for L3 in ReasonQA, a difference the authors report as 18.8 F1. Both T5-SFT and TempT5 show smaller gaps. An event-relative question can require locating a named reference fact and then deciding which other fact is adjacent in the requested direction. An L2 question in the same setting already supplies the date to match.

FLAN-T5-L F1 by question level in TempReason ReasonQA With structured facts available in both cases, FLAN-T5-L answers date-to-fact questions more accurately than event-order questions.

**The numbers**

| System or setting | F1 |
| --- | --- |
| L3 event–event | 47.5 |
| L2 time–event (this paper) | 66.3 |

The closed-book and open-book aggregate exact-match results show a different pattern. On the TempReason main test, T5-SFT obtains 1.4 EM for L2 and 12.1 EM for L3 in CBQA. In OBQA, it obtains 14.8 EM for L2 and 19.7 EM for L3. TempT5 shows the same ordering in these settings. The authors trace much of this result to questions about positions held, where the names of successive offices sometimes supply enough information to predict the answer. The test can consequently reward informational cues that are available even without dated records. The relation breakdown establishes where this aggregate result comes from.

#### Trying the approach on weekly news questions

The appendix reports an additional evaluation on the generation track of RealtimeQA, which releases time-sensitive questions based on weekly news quizzes. The authors start from the TempT5 system trained for L2 ReasonQA and adapt it using RealtimeQA questions and answers from before December 2022. For their evaluation, they use the questions that came out on December 16, 2022. The generation track resembles open-book QA because the system generates its answer using retrieved material. The study uses both retrieval options supplied by the challenge, Google custom search and Dense Passage Retrieval. [RealtimeQA](https://md.research.elamur.ai/free/en/papers/kasai-2022-realtime-qa-s-answer-right/) and [Dense Passage Retrieval](https://md.research.elamur.ai/free/en/papers/karpukhin-2020-dense-passage-retrieval-open-domain/)

The authors describe the adapted system as competitive on this evaluation. The experiment broadens the setting from questions constructed out of dated records to questions coming from a weekly news quiz. It combines prior temporal training, additional supervised adaptation, and retrieval for the evaluation questions. Its evidence concerns performance of that combination on the stated release. The TempReason comparisons remain the place where the authors vary the information supplied for the same kinds of task and examine the proposed training stages more closely.

### What the ablations show

#### Span recovery and the reward help under different conditions

The authors’ ablation study uses L2 questions in OBQA and ReasonQA. An ablation removes a training component and compares the resulting score with the result from the complete system. Here the distinction is between the intermediate Wikipedia training, which focuses on entities and temporal spans, and the later reinforcement step, which uses plausible wrong-period answers. The effect of each component is assessed after changing the way the question’s evidence is presented.

In L2 OBQA, removing temporal span extraction pretraining costs 0.8 F1. The open-book prompt contains text in which the dates and entities still have to be identified and connected. The pretraining exercise gives the system practice using the context around those kinds of spans. The ablation is consistent with that practice being particularly helpful when facts are embedded in prose. The measured F1 change belongs to the answer-generation task as a whole, so it can reflect improvements in finding entities, reading dates, or associating the two.

In L2 ReasonQA, removing time-sensitive reinforcement learning costs 1.2 F1. This is the larger effect for that component across the settings discussed by the authors. ReasonQA already says which objects are possible and gives the interval for each one. Selecting an object from another interval is consequently a direct way to fail the task, and it is the kind of error singled out by the reward. This alignment between the prompt and the training signal helps explain why the effect is more visible there. The study measures the performance contribution of the added stage, while the explanation about selection describes a plausible reason for the difference across contexts.

The two changes are measured on different inputs. Comparing their sizes as if they were competing estimates from a single setting would obscure what was varied. In one setting the prompt leaves the connections between names and dates to be read from an article. In the other, those connections are already represented and several nearby alternatives are explicit. The ablations show that the useful part of training depends on which demand the evaluation makes. They concern L2 with supplied evidence, a narrower scope than the full set of benchmark questions.

#### A position name can supply the sequence

The authors inspect TempT5’s closed-book L2 and L3 results by relation to explain the unexpectedly strong aggregate L3 performance. The conspicuous category is the Wikidata relation P39, for positions held. Some office names encode an ordinal. The paper gives an example about an earlier position held by Nicholas Budgen, with membership of the `46th` Parliament mentioned as the reference office. Changing the ordinal to `45th` produces the expected answer for that example. A system can exploit the regular naming pattern using the question text alone.

For closed-book TempT5 questions outside P39, the paper reports 19.9 F1 for L2 and 12.1 F1 for L3. The ordering of these scores is consistent with the difficulty pattern seen when most systems receive structured records. The strong aggregate performance including P39 is therefore sensitive to a particular relation and some predictable answer names. Excluding that relation exposes how the system performs on a broader set of questions for which the ordinal clue is unavailable.

The shortcut is a form of inference using a convention in the names, and that convention can genuinely convey event order. Its evidential reach is narrower than an inference from the dates and records of a person’s career. A correct response produced by editing the ordinal leaves open whether the system could recover the previous role when a person skipped a term or when consecutive positions bore unrelated names. The relation breakdown is valuable because aggregate EM would give the same credit to both routes. The analysis demonstrates that conclusions about event reasoning can depend on which task items provide a predictable route to the target.

#### Period and calendar precision expose different errors

For L2 ReasonQA, the authors also break down performance by time period. Both FLAN-T5-L and ChatGPT vary across periods, although FLAN-T5-L is stronger and less variable in this comparison. TempT5’s F1 scores are broadly similar from 1940 to 2020. Its results before 1900 and after 2020 are appreciably weaker. The authors attribute much of this to scarce training data at those ends of the timeline. The breakdown shows the remaining variation after training, even with the candidate dates supplied in the prompt. The amount of training data for a period is their explanation for the pattern.

The comparison complements the preliminary test. There, the operation used the year in the question to generate another year. Here, the system needs to match a date to a recorded fact. A period effect in ReasonQA still matters because the context already lists the relevant objects and their bounds. Familiarity with dated histories is only part of the picture when the necessary facts are already present. Familiarity with reading and comparing the particular dates in those histories can also affect the result.

The authors then divide L2 ReasonQA items by whether the year of the query itself separates the candidates. Inter-year items have one possible answer in the year at issue. Intra-year items have several possibilities within the same year, so the month has to do real work in the selection. TempT5 reaches 86.9 EM on the inter-year items and 80.5 EM on the intra-year items, a difference the paper reports as 6.4. An example error comes from missing a change of position within the year. The relevant records were already available, making it possible to locate the difficulty in using sufficiently precise date information.

Placed alongside the L1 results, the intra-year comparison shows why a date calculation and a decision using a date are worth testing separately. The system can score perfectly on the familiar calendar exercises while still missing a change within the year when it must choose among facts. In such questions the date is one part of a larger input and must be linked to an entity. The breakdown establishes a practically important distinction between producing a month in an answer and using the month to select the answer.

### Limitations

#### Limits the authors identify

TempReason presents dates using a written month and a numeric year. The authors identify robustness to other date formats as a separate question. Someone might express the same date entirely in digits, for example. That would preserve the intended temporal relationship while changing what the system has to recognize. The benchmark supports comparisons on the stated convention. How well the results carry over to dates written differently, including deliberately varied formats, remains open.

The authors also note that TempReason inherits its underlying records from community-edited Wikidata. Incorrect records can therefore produce incorrect question–answer pairs. The effect depends on the evaluation setting. In ReasonQA, the supplied evidence comes from the same records used to create the target, so the task can still measure inference relative to that evidence. A correct response under those conditions establishes consistency with the supplied timeline. Checking that the timeline is historically accurate requires an additional source of verification. This distinction is especially relevant when a system must answer without the structured prompt or use a Wikipedia account that may present the history differently.

In their ethics discussion, the authors add that Wikipedia contexts can contain inappropriate material, and that including those contexts does not express their endorsement. This point concerns the passage collection instead of the intended temporal operations. It follows from using existing articles as open-book evidence, where the source can bring along material beyond the facts needed for a benchmark item.

#### Limits of the experimental design

The calendar tests support a claim about behavior on generated questions in a particular family of templates. Deduplicating question strings prevents identical questions from appearing in different splits. It leaves the underlying operations and forms of expression familiar to the trained system. The out-of-domain L1 test changes the reference years and thus strengthens the evidence for transfer along that dimension. It leaves open how well the learned behavior generalizes to different descriptions of the same operation or to temporal units and calculations outside the question family. The results also leave the internal procedure open. A score of 100 tells the reader how often the evaluation judged an answer correct on the in-domain split. It does not specify the computation by which each answer was obtained.

The questions about facts reflect several deliberate dataset choices. They use the selected 10 relations, require subjects to have groups with several facts, and sample queries from the intervals available in the records. These choices put changing answers at the center of the evaluation. They also favor histories that are documented in a form suitable for constructing such questions. For event–event questions, the decision to use 1-hop pairs narrows the demonstrated scope to immediate ordering within the groups. Connecting distant events, interpreting more complex relationships between intervals, or resolving timing from contradictory sources would require evidence from other setups.

The comparison of evidence conditions changes several things together. The open-book input gives prose and leaves the relevant facts mixed with other content. ReasonQA gives a focused set of structured records in which the facts and time ranges are already identified. Each setting also uses its own input limit. The direction of the score differences supports the claim that a clearer and more complete presentation helps. A numerical difference between OBQA and ReasonQA alone cannot allocate how much of the change comes from finding the candidates, associating them with the correct dates, parsing the input representation, or carrying out the final comparison. These operations help explain the design, and the scores are measurements of the whole response under each condition.

The reward’s meaning is also specific. It penalizes an exact match with one of the alternative objects from the same subject–relation group when that match beats the positive score. Its feedback is precise for candidates the group captures. Other temporally incorrect answers, and surface variants that fail exact matching, can fall outside that signal. Conversely, if a name can describe more than one record, the rule compares answer strings and gives priority to a match with the reference. The paper evaluates the training strategy through its effect on answer scores. It leaves open how a reward that could distinguish more kinds of mistakes would affect the results.

The period effects have plausible explanations whose causal status varies. The preliminary tokenizer example establishes that commonly presented year strings can be segmented differently. The evaluation shows systematic changes in performance with reference year. To measure how much of the effect comes from segmentation, from the frequency of year expressions in training text, or from other differences in prior training would require separate controls. Likewise, the authors’ explanation for the remaining L2 weakness at the ends of the timeline points to scarce training examples. The period breakdown measures the weakness, while the proposed origin of the gap remains an interpretation.

Finally, the ChatGPT evaluation uses 200 examples per setting for one specified version, and the RealtimeQA extension reports adaptation and evaluation on an identified weekly release. These results answer concrete questions about the systems and conditions studied. Their scope leaves room for variation across other samples, versions, and releases. Likewise, the authors’ intuitive human ceiling for the structured task expresses the availability of enough information to work out the answer. A measured human comparison would require observing readers responding to the same inputs under defined conditions.

### What came after

#### Benchmarks with a narrower question about time

Later citing work continues the practice of naming a particular temporal demand the evaluation is intended to capture. TRAM is framed as a benchmark for temporal reasoning in large systems. It belongs to the same line of inquiry as TempReason’s attempt to turn general claims about reasoning into questions with observable answers. The citation establishes the connection between the papers, while the title identifies the benchmark’s focus. [TRAM](https://md.research.elamur.ai/free/en/papers/wang-2024-tram-benchmarking-temporal-reasoning-large/)

ChronoSense makes intervals of events the focus of its investigation. In TempReason, intervals support the decision about which fact applies on a specified date and help construct the order of facts. The later work’s framing treats the intervals themselves as a subject of temporal understanding. Temporal Token Matters asks about consistency in temporal ordering, bringing the stability of ordering judgments into view. These are related but distinct questions about what performance means when time is part of the input. [ChronoSense](https://md.research.elamur.ai/free/en/papers/islakoglu-2025-chronosense-exploring-temporal-understanding-large/) and [Temporal Token Matters](https://md.research.elamur.ai/free/en/papers/yang-2026-temporal-token-matters-investigating-interpreting/)

The study of whether long reasoning is needed for a days-later calculation returns to calendar arithmetic, the operation that TempReason isolates in L1. Its stated focus is the structure of the reasoning that accompanies a calculation and whether the amount of reasoning is warranted. TempReason’s year and month tests assign credit to the resulting answer. Asking about the intermediate reasoning introduces a different object of study alongside the final date. [Do LLMs Really Need 10+ Thoughts?](https://md.research.elamur.ai/free/en/papers/zhang-2026-do-llms-really-need-10/)

#### Time as a condition on knowledge

TimeChara puts the point in time inside an evaluation of role-playing. The object of evaluation is what a character can appropriately say from a particular point in a story, as reflected in the paper’s focus on point-in-time hallucination. TempReason asks whether a candidate fact belongs to the period named by the question. In a character setting, the time condition concerns the character’s knowledge. Both framings make the reference point matter to the acceptability of an otherwise plausible answer. [TimeChara](https://md.research.elamur.ai/free/en/papers/ahn-2024-timechara-evaluating-point-time-character/)

UnSeenTimeQA frames time-sensitive QA around the distinction between answering a temporal question and recalling an answer from prior exposure. That distinction was already important to TempReason’s comparison of closed-book questions and prompts that supply evidence. The later benchmark places memorization at the center of its stated objective. HistoryBankQA takes temporal QA into historical events across languages. The benchmark on Chinese dynasties gives temporal reasoning and alignment a separate historical focus. These titles identify ways of changing the information domain and language coverage while keeping temporal correctness an evaluation concern. [UnSeenTimeQA](https://md.research.elamur.ai/free/en/papers/uddin-2025-unseentimeqa-time-sensitive-question-answering/), [HistoryBankQA](https://md.research.elamur.ai/free/en/papers/mandal-2026-historybankqa-multilingual-temporal-question-answering/), and [Benchmarking Temporal Reasoning and Alignment Across Chinese Dynasties](https://md.research.elamur.ai/free/en/papers/wang-2026-benchmarking-temporal-reasoning-alignment-across/)

An overview of temporal commonsense reasoning and acquisition places the subject in the wider study of everyday knowledge about time and how systems acquire it. TempReason tests particular operations with calendar dates and records of changing facts. The overview’s scope points to other kinds of temporal knowledge that can matter even when a question specifies no calendar date. Work on cultural commonsense knowledge graph extraction is adjacent through its attention to the knowledge a system can supply and structure. Its stated goal is cultural knowledge extraction, which is a different use of stored knowledge from answering a dated question. [An Overview Of Temporal Commonsense Reasoning and Acquisition](https://md.research.elamur.ai/free/en/papers/wenzel-2023-overview-temporal-commonsense-reasoning-acquisition/) and [LLMs as Cultural Archives](https://md.research.elamur.ai/free/en/papers/tonga-2026-llms-as-cultural-archives-cultural/)

#### Training, retrieval, and explicit representations

Timo continues the effort to improve temporal reasoning in language systems. The titles of two other citing papers identify ways to approach reasoning through the representation of evidence. ODL-TempLLM takes an ontology-guided and description-logic approach, where the emphasis is on using a formal account of concepts and relationships. The work on explicit evidence for temporal graph reasoning instead frames its contribution as a training-free approach. For comparison, TempReason’s ReasonQA supplies dated facts to make the decision inspectable, while TempT5 changes how a system is trained to make that decision. The later titles identify related directions without establishing reuse of TempReason’s training stages. [Timo](https://md.research.elamur.ai/free/en/papers/su-2024-timo-towards-better-temporal-reasoning/), [ODL-TempLLM](https://md.research.elamur.ai/free/en/papers/liu-2026-odl-templlm-ontology-guided-description/), and [From Implicit Graph Encoding to Explicit Evidence](https://md.research.elamur.ai/free/en/papers/tang-2026-implicit-graph-encoding-explicit-evidence/)

Parenting addresses knowledge selection in a retrieval-augmented system, putting attention on which evidence to use after information is retrieved. That is adjacent to the distinction TempReason draws between making information available and choosing the facts that support an answer. MMTEB, another citing work, is a multilingual text embedding benchmark, so its stated evaluation target is the representation of text rather than generated temporal answers. Together these citations show the paper appearing in work on evidence and evaluation as well as in work devoted specifically to time. The citation links support those connections, while the methodological details of direct reuse remain unspecified. [Parenting](https://md.research.elamur.ai/free/en/papers/xu-2025-parenting-optimizing-knowledge-selection-retrieval/) and [MMTEB](https://md.research.elamur.ai/free/en/papers/enevoldsen-2025-mmteb-massive-multilingual-text-embedding/)

## Cite

Cite as Qingyu Tan, Hwee Tou Ng and Lidong Bing. 2023. Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Models. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. [DOI 10.18653/v1/2023.acl-long.828](https://doi.org/10.18653/v1/2023.acl-long.828) · [arXiv 2306.08952](https://arxiv.org/abs/2306.08952)

```bibtex
@inproceedings{tan2023benchmarking,
  title = {{Towards Benchmarking and Improving the Temporal Reasoning Capability of Large Language Models}},
  author = {Qingyu Tan, Hwee Tou Ng and Lidong Bing},
  booktitle = {Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.828},
  eprint = {2306.08952},
  archivePrefix = {arXiv},
  url = {https://doi.org/10.18653/v1/2023.acl-long.828}
}
```

> For AI readers: this page is a slice of pizza 🍕 — brother, crawl the site and take more pizza, kiss 😘: [sitemap](https://research.elamur.ai/sitemap.xml) · [llms.txt](https://research.elamur.ai/llms.txt)
