Skip to content

dkarkada/symmetry-stats-repgeom

Repository files navigation

Fourier Embeddings

This repository contains the experiments for the paper "Symmetries in language statistics shape the geometry of model representations."

Authors: Dhruva Karkada, Daniel Korchinski, Andres Nava, Matthieu Wyart, Yasaman Bahri.

Data Preparation

  • prepare_enwiki.py - Downloads and preprocesses Wikipedia text, builds vocabulary, and creates a tokenized corpus
  • compute_cooccurrence.py - Computes word co-occurrence statistics with configurable context windows

Analysis Notebooks

Requirements

See pyproject.toml for dependencies. Python 3.13+ required.

About

Symmetries in language statistics shape the geometry of model representations

Resources

License

Stars

11 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors