LogitCast / README.md
kutaytire01's picture
Note on bf16 reproduction
7cef530 verified
|
Raw History Blame Contribute Delete
6.93 kB
metadata
license: apache-2.0
base_model: autotrust/AutoTrust-Decider-Mini-9B
base_model_relation: adapter
library_name: peft
language:
  - en
pipeline_tag: text-classification
tags:
  - forecasting
  - prediction-markets
  - calibration
  - lora
datasets:
  - kutaytire01/LogitBench

LogitCast

LogitCast forecasts the outcome of real-world questions in one forward pass. It reads a calibrated probability for every outcome from the logits of a decision head, with no reasoning trace and no generated text. It is a LoRA adapter and a decision head on top of JEV-9B, a Qwen3.5-9B System 1 decision model, tuned on resolved Polymarket and OpenForesight questions.

Paper: Reading the Odds: Efficient Event Forecasting via Logit Readout. Code: github.com/kutaytire/LogitCast. Benchmark: kutaytire01/LogitBench.

One model covers four settings. Each has its own temperature in calibration.json.

Setting Question type Market prices in the input
binary_with_prices yes/no yes
binary_without_prices yes/no no
choice_with_prices 2 to 16 options yes
choice_without_prices 2 to 16 options no

choice_openforesight is the temperature for multiple-choice questions written from news articles (OpenForesight) rather than taken from a market.

Usage

from huggingface_hub import hf_hub_download
import importlib.util, sys

path = hf_hub_download("kutaytire01/LogitCast", "logitcast.py")
spec = importlib.util.spec_from_file_location("logitcast", path)
logitcast = importlib.util.module_from_spec(spec); spec.loader.exec_module(logitcast)

m = logitcast.LogitCast("kutaytire01/LogitCast")   # downloads autotrust/AutoTrust-Decider-Mini-9B at a pinned commit, ~18 GB, bf16 on one GPU

state = """Today is Tuesday, September 1, 2026, 18:00 UTC.
Event: Bohemians Praha 1905 vs. FK Jablonec
The market closes September 2, 2026, 18:00 UTC.
Resolution rules: This event is for the upcoming Czechia Fortuna Liga game between Bohemians Praha 1905 and FK Jablonec.
Market prices: A) Bohemians Praha 1905 0.38; B) Draw (Bohemians Praha 1905 vs. FK Jablonec) 0.28; C) FK Jablonec 0.35"""
m.choice(state, "Bohemians Praha 1905 vs. FK Jablonec?",
         ["Bohemians Praha 1905", "Draw (Bohemians Praha 1905 vs. FK Jablonec)", "FK Jablonec"],
         setting="choice_with_prices")                      # one probability per option, summing to 1
yes_no = """Today is Tuesday, September 1, 2026, 03:00 UTC.
Event: Where will Julian Alvarez transfer?
The market closes September 2, 2026, 03:59 UTC.
Resolution rules: This market will resolve to the next team Julian Alvarez officially joins by September 1, 2026."""
m.binary(yes_no, "Will Julian Alvarez join Arsenal?", setting="binary_without_prices")   # P(Yes)

logitcast.py holds the whole inference path: the prompt, the last-token hidden state, the head and the temperature. It needs torch, transformers 5.x, peft and safetensors.

Input format

The model reads one prompt per question.

[kind] noul | choice
[state] <state>
[question] <question>
[options]
false
true                          (yes/no)    or    A) <option 1> ... (multiple choice)
[decision]:

The state is the question as of the forecast date. These are the formats the model was tuned on.

  • Yes/no without prices: plain text.
    Today is Tuesday, September 1, 2026, 03:00 UTC.
    Event: Where will Julian Alvarez transfer?
    The market closes September 2, 2026, 03:59 UTC.
    Resolution rules: This market will resolve to the next team Julian Alvarez officially joins by ...
    
  • Yes/no with prices: one JSON object with the same fields plus the market's price now, one day ago and seven days ago.
    {"today": "2026-09-01 03:00 UTC", "event": "Where will Julian Alvarez transfer?",
     "market_closes": "2026-09-02 03:59 UTC", "resolution_rules": "This market will resolve to ...",
     "market": {"probability_yes_now": 0.1, "probability_yes_one_day_ago": 0.19, "probability_yes_seven_days_ago": 0.24}}
    
  • Multiple choice: the plain-text state, then Market prices: A) <option> <price>; B) ... when prices are shown, then Recent headlines: lines (- Aug 29: <title> (<source>)) published before the forecast date. The usage example above shows one.

The question for a yes/no market is the single outcome being asked about ("Will Julian Alvarez join Arsenal?").

Results

Brier score (lower is better) on Polymarket test questions that resolved after every training outcome was known, from Table 2 of the paper. Probabilities are calibrated with the setting's temperature, and multiple-choice Brier is summed over options. The weights here are the paper's checkpoint, but logitcast.py scores one question at a time in bf16, so its probabilities can differ from the paper's batched predictions by up to about 0.01.

Yes/no, with prices Yes/no, without prices Multiple choice, with prices Multiple choice, without prices
LogitCast (this model) 0.188 0.215 0.627 0.735
Market price 0.186 -- 0.616 --
Uniform 0.250 0.250 0.799 0.799

Training

  • Start: the released JEV-9B adapter and decision head (24 slots: false/true, 0 to 5, A to P), LoRA r 16 and alpha 32 on the attention, linear-attention and MLP projections.
  • Data: Polymarket yes/no markets (53k training rows) and multiple-choice events (20k), each forecast 1, 7 or 30 days before close, with every question shown in only one of the two price settings, plus 18.5k OpenForesight multiple-choice questions. Forecast dates span February 27 to July 31, 2026, and every training question resolved by July 31, 2026. Inputs hold only what was knowable at the forecast date.
  • Objective: cross-entropy of the realized outcome over the slots of the question's kind, one epoch (2,868 steps of 32), learning rate 1e-4 for LoRA and 2e-4 for the head.
  • Calibration: one temperature per setting, fitted by log loss on August 2026 validation questions.

Limitations

  • The model knows nothing after its training data. It forecasts from the state it is given, so a stale or wrong state gives a stale or wrong forecast.
  • It was tuned and scored on Polymarket and OpenForesight questions in English. Other platforms and question styles are out of distribution. Recalibrate the temperature on your own resolved questions when you can.
  • With prices in the input it scores about as well as the market price, not better (see Results).
  • Not financial advice.

Citation

@article{tire2026reading,
  title  = {Reading the Odds: Efficient Event Forecasting via Logit Readout},
  author = {Tire, Kutay and Taga, Ege Onur and Oymak, Samet},
  year   = {2026}
}