Does a frontier language model forecast prospectively in context?

Open
#179 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
python

Research direction

Read the confirmed pseudocode and the existing AstraClassifier and benchmarks/astra/ work referenced in #185. Start with the one seed of periodic-single to measure tokens and cost, then run seeds 0–2; use the measured cost to decide whether to run linear-drift-steep. Done means a results PR adds the runs and reports them on the pages.

Written by the indexing model from the issue text.

Description

experiment

Question

Does a frontier language model, reading a stream in context, forecast it prospectively? GPT-6.2 Astra reads the history as rows of $t$, $x$ and $y$, and labels each future query. No weights change. On periodic-single and linear-drift-steep, does it leave chance, and does it come near the arms with time features?

Chronos-2, the pretrained forecaster run so far, stays at chance on periodic-single (#115). Astra reads the step $t$ itself, and it can reason over the rows before it answers.

Figure that answers it

The risk-over-time figures of periodic-single, then linear-drift-steep, with an Astra arm added. On each, the Bayes level is 0 and chance is 0.5. The baselines are Chronos-2 on periodic-single, and OMLP on linear-drift-steep. Astra has no FLOPs, so the FLOPs figures leave it out. A table gives its tokens and dollars per run.

Decided

Maintainer, 2026-12-02:

  • Model: gpt-6.2-astra only, with reasoning effort low.
  • Prompt: the bare task. It holds the rows of $t$, $x$ and $y$, then the query rows of $t$ and $x$, and asks for one label of 0 or 1 per query. It gives no hint that the rule changes over time.
  • Evaluation: $K = 100$, as for every other arm. periodic-single runs first. linear-drift-steep runs only after a decision made with periodic-single's cost known.
  • Resources: input, cached input, output and reasoning tokens, and dollars at a price pinned in the result file. FLOPs are null.
  • Bad replies: up to 2 retries of the same call. A query still unlabeled counts as an error, and the result file counts those queries.
  • Reply format (2026-12-03): query rows are numbered i,t,x, and the model answers i,y lines, matched to rows by i. A row skipped or labeled twice with different labels stays unlabeled and counts as an error. A reply is bad only with no usable i,y line, or with tool use. Why: a smoke call on gpt-6-luna gave 194 labels for 200 rows, and under the earlier rule of exactly one label per row, all 200 scored as errors.
  • Access: through codex exec on the maintainer's ChatGPT login, not an API key.

Decided by the agent, under the repo's rules: the arm is named Astra. $x$ is written to 4 significant figures, and $t$ as an integer. Rows come in step order. Each continuation is its own call, so one future's queries never see another's. The calls run as a baseline in benchmarks/astra/, outside the wheel, through WorkerClassifier.

Open

  1. Codex's tools. codex exec is an agent with a shell, not a bare model. Each call also carries about 23k tokens of Codex's own instructions (measured on one probe call). With a shell, Astra could run code on the rows, so the arm would no longer be in context alone. Options:

    • (a) Treat a reply that ran a command as a bad reply, and retry it (recommended).
    • (b) Allow tools, and report how often they ran.

    Answer: (a). A reply that ran a command counts as a bad reply and is retried, so the arm stays in context. Maintainer, 2026-12-02.

Pseudocode

This draft is for a page in the Algorithms section. It needs confirmation before code.

Input: the history $\mathcal D_{1:t}$ of rows $\left(s, x_{s}, y_{s}\right)$, the $K$ futures' query rows $\left(t+\Delta, x_{t+\Delta}^{(k)}\right)$ for $\Delta = 1, \ldots, H$, and a number of retries $R = 2$

Output: a label $\hat y_{t+\Delta}^{(k)} \in \lbrace 0, 1 \rbrace$ for each $k$ and $\Delta$

  1. learn: keep $\mathcal D_{1:t}$. Nothing is trained. # SL: fitting sets weights. Here it only stores rows
  2. for $k = 1, \ldots, K$ do
    1. prompt: write the task, the rows of $\mathcal D_{1:t}$, and the $H$ query rows of future $k$ as text
    2. for $r = 0, 1, \ldots, R$ do
      1. ask: send the prompt to the model, and read one label per query row from its reply
      2. stop if every query row has a label and no command ran
    3. end for
    4. predict: $\hat y_{t+\Delta}^{(k)}$ is the label read for row $t+\Delta$. A row still unlabeled after $R$ retries counts as an error
  3. end for

At $t = 0$ the history is empty, and the prompt holds only the query rows. Instantaneous risk asks once with the history $\mathcal D_{1:t-1}$ and the rows of step $t$ as the queries. On linear-drift-steep each step holds 20 rows, and a future's query rows are all of its samples over the $H$ steps.

Tasks

  • Pseudocode confirmed by the maintainer, 2026-12-02. Code: AstraClassifier and benchmarks/astra/, in #185, awaiting review by a model from another lab.
  • A pilot on one seed of periodic-single, to measure tokens and cost.
  • Runs on periodic-single, seeds 0 to 2, then the cost decision on linear-drift-steep.
  • A results PR that adds the runs and reports them on the pages.

Result

Pending.

🤖 Generated with Claude Code

Dominant language
Python
Stars
0
Forks
0
Avg merge
2h 9m
Merged PRs (30d)
164

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from neurodata/prolearn

All issues in neurodata/prolearn

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.