whatisgithub

What is pretraining-tda?

pair-code/pretraining-tda — explained in plain English

Analysis updated 2026-07-18 · repo last pushed 2025-02-11

33JavaScriptAudience · researcherComplexity · 3/5StaleSetup · easy

In one sentence

A research toolkit for tracing which training sentences a language model used to answer factual questions, with pre-computed results from multiple tracing methods and a browser-based data viewer.

Mindmap

mindmap
  root((repo))
    What it does
      Traces model answers to training text
      Identifies proponent passages
      Identifies opponent passages
    Data included
      5400 factual test prompts
      20 million Wikipedia sentences
      Pre-computed tracing results
    Tracing methods
      BM25
      TRAK
      TrackStar
      Side-by-side comparison
    Viewer tool
      Runs in web browser
      No server needed
      Loads results locally
    Audience
      AI researchers
      Engineers studying bias
      Factuality studies

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

Investigate which training passages caused a model to hallucinate a specific fact.

USE CASE 2

Compare different tracing algorithms like BM25, TRAK, and TrackStar on the same queries.

USE CASE 3

Browse proponent and opponent training passages for factual prompts in a local web viewer.

USE CASE 4

Use the included 5,400 test prompts as a benchmark dataset for new tracing methods.

What is it built with?

JavaScriptHTMLCSS

How does it compare?

pair-code/pretraining-tdabrennanconroy/shootrmkmukesh1319-ux/todo-list
Stars333333
LanguageJavaScriptJavaScriptJavaScript
Last pushed2025-02-112022-04-10
MaintenanceStaleDormant
Setup difficultyeasyhardeasy
Complexity3/53/51/5
Audienceresearcherdevelopervibe coder

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

How do you get it running?

Difficulty · easy Time to first run · 5min

The data viewer runs entirely in your web browser with no server or API keys required.

No license information is provided in this repository.

So what is it?

This repository accompanies a research paper on understanding where large language models (LLMs) get their facts. When an AI tells you that "Paris is the capital of France," it likely learned that by reading massive amounts of text during its initial training. This project provides the data and a web tool to help researchers trace a model's answer back to the specific sentences it was trained on. It essentially asks: which passages in the training data were the most influential in making the model give this specific answer? The repo provides pre-computed results from several different tracing methods. These results map test queries, like factual prompts about a person, place, or thing, to "proponents," which are the specific training passages that pushed the model toward its answer. Some methods also identify "opponents," or passages that pushed against the answer. Because these lists of text passages are dense and hard to read in a spreadsheet, the project includes a simple data viewer app. You can load the results directly in your web browser, and the app runs entirely on your computer without sending your data to a server. This tool is primarily for AI researchers and engineers who study model behavior, bias, and factuality. For example, if a model keeps hallucinating a fact, a researcher could use these tools to look at the proponents and see what kind of messy or contradictory training text caused the error. Alongside the tracing results, the repo also provides the raw test queries used to evaluate the AI, including a set of 5,400 factual prompts, and a massive corpus of nearly 20 million Wikipedia sentences used as the search space for the experiments. What's notable about this project is that it acts as a benchmarking package. Rather than just providing one method to trace a model's knowledge, it includes results from multiple different tracing algorithms (like BM25, TRAK, and TrackStar) applied to the same data. This allows researchers to compare how different approaches perform side-by-side using the same test queries and the same viewer tool.

Copy-paste prompts

Prompt 1
Using the pre-computed tracing results from this repo, help me load them into the browser-based viewer and find which training passages are proponents for the query about Paris being the capital of France.
Prompt 2
Compare the BM25, TRAK, and TrackStar tracing results in this repo for the same factual prompts and explain which method surfaces the most relevant training passages.
Prompt 3
I want to extend this repo's benchmarking setup with my own tracing algorithm. Help me format my results to match the existing data structure so I can view them in the included data viewer.
Prompt 4
Walk me through the 5,400 test prompts and 20 million Wikipedia sentences included here so I can run a new experiment tracing where a language model learned a specific fact.

Frequently asked questions

What is pretraining-tda?

A research toolkit for tracing which training sentences a language model used to answer factual questions, with pre-computed results from multiple tracing methods and a browser-based data viewer.

What language is pretraining-tda written in?

Mainly JavaScript. The stack also includes JavaScript, HTML, CSS.

Is pretraining-tda actively maintained?

Stale — no commits in 1-2 years (last push 2025-02-11).

What license does pretraining-tda use?

No license information is provided in this repository.

How hard is pretraining-tda to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is pretraining-tda for?

Mainly researcher.

Open on GitHub → Ask about another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.