whatisgithub

What is gt-bench?

setrf/gt-bench — explained in plain English

Analysis updated 2026-05-18

0PythonAudience · researcherComplexity · 4/5Setup · hard

In one sentence

A verifiable benchmark that tests whether fine-tuning improves a language model's ability to solve game theory problems like Nash equilibria.

Mindmap

mindmap
  root((GT-Bench))
    What it does
      Generates game matrices
      Scores exact answers
      Compares before and after tuning
    Tech stack
      Python
      Tinker
      LoRA fine-tuning
    Use cases
      Test Nash equilibrium reasoning
      Run a fine-tuning sweep
      Score model predictions exactly
    Audience
      ML researchers
      Model evaluators

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Generate synthetic game-theory training data to fine-tune a language model.

USE CASE 2

Measure whether fine-tuning improves a model's ability to find Nash equilibria.

USE CASE 3

Score a model's predictions exactly, with no subjective grading involved.

USE CASE 4

Run a training-size sweep to see how data volume affects reasoning improvement.

What is it built with?

PythonTinkerLoRA

How does it compare?

setrf/gt-bench0xhassaan/nn-from-scratch3ks/embedoc
Stars00
LanguagePythonPythonPython
Last pushed2023-06-08
MaintenanceDormant
Setup difficultyhardmoderatehard
Complexity4/54/51/5
Audienceresearcherdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · hard Time to first run · 1h+

Fine-tuning experiments require a Tinker API key and access to the configured base model.

No license information is provided in the README.

So what is it?

GT-Bench is a research benchmark for testing and improving how AI language models reason about game theory. Game theory is the study of strategic decision making, or how rational players choose actions when the outcome depends on what others do too. The core task is simple and precisely verifiable: given a two player payoff matrix, a grid showing what each player earns for every combination of choices, the model must identify all pure strategy Nash equilibria and briefly explain its reasoning. A Nash equilibrium is a stable outcome where neither player would benefit by switching their choice on their own. Exact scoring means there is no subjective grading, so the benchmark can cleanly measure whether fine tuning a model actually improved that specific skill. The repository generates training, validation, and test datasets, then evaluates a model before and after fine tuning to compare scores. The published experiment uses three training set sizes, 250, 1000, and 5000 examples, on a large language model to measure how data volume affects improvement. Beyond the narrow two player task, a broader suite covers mixed strategy equilibria, larger game matrices, sequential game reasoning solved by backward induction, game descriptions written in plain English that must be mapped to a payoff structure, and repeated round prisoner's dilemma scenarios. Each of these families has its own generator and scoring script, and scoring stays exact throughout. The project is written in Python and was created by a UC Berkeley master's student as part of a Thinking Machines Lab Tinker research grant. It includes scripts to generate datasets, run a baseline model, fine-tune with LoRA through the Tinker service, and score predictions, along with an arXiv-ready research paper describing the results. The full README is longer than what was shown.

Copy-paste prompts

Prompt 1
Help me generate a GT-Bench dataset with generate_dataset.py for the canonical 2x2 task.
Prompt 2
Explain how GT-Bench scores whether a model correctly found all pure-strategy Nash equilibria.
Prompt 3
Walk me through fine-tuning a model on GT-Bench data using the Tinker service.
Prompt 4
Show me how the broader suite's dominance and extensive-form task families work.

Frequently asked questions

What is gt-bench?

A verifiable benchmark that tests whether fine-tuning improves a language model's ability to solve game theory problems like Nash equilibria.

What language is gt-bench written in?

Mainly Python. The stack also includes Python, Tinker, LoRA.

What license does gt-bench use?

No license information is provided in the README.

How hard is gt-bench to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is gt-bench for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.