geekyrakshit commited on
Commit
30442a0
·
verified ·
1 Parent(s): d9a5549

Rename model to chessforge-5m in model card

Browse files
Files changed (1) hide show
  1. README.md +15 -15
README.md CHANGED
@@ -13,7 +13,7 @@ tags:
13
  - chessformer
14
  - uci-engine
15
  model-index:
16
- - name: ChessformerV2-5M-Joint
17
  results:
18
  - task:
19
  type: move-prediction
@@ -55,23 +55,23 @@ model-index:
55
  name: WDL Value Accuracy (%)
56
  ---
57
 
58
- # ChessformerV2-5M-Joint (5.12M Parameters)
59
 
60
  **Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))*
61
- **Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Larger Flagship:** [`chessforge/ChessformerV2-35M-Joint`](https://huggingface.co/chessforge/ChessformerV2-35M-Joint)
62
 
63
- **ChessformerV2-5M-Joint** is a **5,123,809-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Strictly smaller than `MAIA-3-5M` (`5,230,084` parameters), it jointly models **human move selection and normalized thinking time** $p_\theta(a, u \mid s) = p_\theta(u \mid s)\,p_\theta(a \mid s, u)$ across both **Titled Online** (Blitz/Rapid) and **FIDE Over-The-Board (OTB) Classical** chess.
64
 
65
  ### Key Highlights
66
- * **Strictly Parameter-Matched Small-Scale SOTA:** With fewer parameters than `MAIA-3-5M` (`5.12M` vs. `5.23M`), `ChessformerV2-5M-Joint` outperforms `MAIA-3-5M` by **+1.55% Move Accuracy on Titled Online** (`60.55%` vs. `59.00%`, paired McNemar $\chi^2 = 211.11, p = 7.88 \times 10^{-48}$) and **+2.88% on FIDE OTB** (`54.87%` vs. `51.99%`, $\chi^2 = 892.78, p = 3.64 \times 10^{-196}$).
67
- * **Surpasses `MAIA-3-23M` on Classical OTB & `MAIA-3-79M` on Outcome Calibration:** Despite having **4.5× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`), `ChessformerV2-5M-Joint` beats `MAIA-3-23M` on FIDE OTB move prediction (`54.87%` vs. `54.57%`, $p = 7.28 \times 10^{-4}$) and outperforms **`MAIA-3-79M` (`15.4×` larger)** on WDL game-outcome calibration across *both* domains (`61.54%` vs. `60.64%` Online; **`62.21%` vs. `57.08%`** OTB).
68
  * **Joint Move & Cognitive-Effort Factorization:** Predicts a 16-bin HL-Gauss distribution over scale-invariant cognitive effort $u \in [0,1]$ (Pearson $r = 0.6559$, $\text{MAE} = 0.1024$) and conditions move logits on effort via a rank-16 bilinear `EffortMoveResidual` (`+6,464` parameters), capturing fast System-1 intuition vs. slow System-2 calculation ($I(A; U \mid S) = 0.0260\text{ nats}$).
69
 
70
  ---
71
 
72
  ## Architectural Innovations Over Vanilla Chessformer / MAIA-3
73
 
74
- | Component | MAIA-3-5M (`5.23M`) | ChessformerV2-5M-Joint (`5.12M`, Ours) |
75
  | :--- | :--- | :--- |
76
  | **Board State Markovity** | Non-Markov ($8\times 12$ piece planes only) | **Full Markov `v3`**: piece history + relative castling + side-to-move EP square + Zobrist repetitions |
77
  | **Clock & Format Context** | Unconditioned (`Blitz` only) | 6-d masked bilateral log-clocks + `has_clock` gate + `Blitz / Rapid / OTB-Classical` embedding |
@@ -93,7 +93,7 @@ All training shards strictly terminate on or before **July 2025**. Models are ev
93
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
94
  | `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 57.59 ± 0.30 | 85.05 | 3.497 | 59.53 | 0.8571 | 47.69 | 19.14 | 65.14 |
95
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 59.00 ± 0.30 | 86.15 | 3.330 | 59.77 | 0.8553 | 49.51 | 19.16 | 65.69 |
96
- | **`ChessformerV2-5M-Joint` (Ours)** | **5.12M** | **0.51B** | **60.55 ± 0.29** | **87.37** | **3.143** | **61.54** | **0.8258** | **50.63** | **19.12** | **66.44** |
97
  | `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 |
98
  | `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |
99
 
@@ -104,7 +104,7 @@ All training shards strictly terminate on or before **July 2025**. Models are ev
104
  | `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 50.75 ± 0.26 | 79.82 | 4.401 | 55.60 | 1.1035 | 38.02 | 19.89 | 60.62 |
105
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 51.99 ± 0.26 | 81.15 | 4.198 | 55.86 | 1.0988 | 38.90 | 19.88 | 61.22 |
106
  | `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 |
107
- | **`ChessformerV2-5M-Joint` (Ours)** | **5.12M** | **0.51B** | **54.87 ± 0.26** | **83.69** | **3.721** | **62.21** | **0.8273** | **41.63** | 20.81 | **61.80** |
108
  | `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | 20.00 | 62.96 |
109
 
110
  ### 3. Cognitive Effort Prediction & Joint Move–Time Calibration (`Eval-Titled-Online`)
@@ -138,14 +138,14 @@ git clone https://github.com/soumik12345/chessforge.git
138
  cd chessforge
139
  pip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"
140
 
141
- python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/ChessformerV2-5M-Joint', local_dir='./ChessformerV2-5M-Joint')"
142
  ```
143
 
144
  ### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)
145
  ```bash
146
  python -m chessforge.cli.uci \
147
- --config ./ChessformerV2-5M-Joint/config.yaml \
148
- --set workdir=./ChessformerV2-5M-Joint \
149
  --step 250000 --title GM --elo 2550 --format otb
150
  ```
151
 
@@ -164,7 +164,7 @@ from chessforge.config import ModelConfig
164
  from chessforge.models import build_model, forward_model
165
  from chessforge.models.joint_time import sample_joint_move_time
166
 
167
- ckpt_dir = Path("./ChessformerV2-5M-Joint")
168
  meta = json.loads((ckpt_dir / "model_config.json").read_text())
169
  model_cfg = ModelConfig(**meta["model_config"])
170
 
@@ -210,7 +210,7 @@ print("WDL probs [loss, draw, win]:", jax.nn.softmax(logits_value[0]).tolist())
210
  ## Training Provenance & Limitations
211
 
212
  * **Training Corpus (Strictly Pre-Cutoff `<= 2025-07`):** Trained for `250,000` steps at `global_batch_size = 2048` (`512M` positions) on a single Google Cloud TPU `v6e-1` using an exact 1-pass streaming shard iterator (`0%` within-epoch duplicates) and Warmup–Stable–Decay (`WSD`, `lr = 4.0e-4 -> 2.0e-6`, `grad_clip_norm = 2.0`). The first 80% (`200k` steps) trained on **Pool B** (`703.6M` unique positions: Lichess Blitz + Rapid $\ge 1800$ Elo with official title purity enforced $\ge 2350$ Elo + uncapped titled games + FIDE OTB), followed by 20% cosine annealing (`50k` steps) on **Pool C** (`310.6M` unique positions: `88.26%` Pure Titled Online + `11.74%` FIDE OTB Classical).
213
- * **Limitations:** Because ~88% of titled training examples carry online game priors, passing `--mask_titles` during inference on classical OTB games can slightly improve pure classical calibration. This 5.12M checkpoint is Stage-2 WSD-trained (without Stage-3 Anti-Engine DPO); for anti-engine preference-aligned weights, see [`chessforge/ChessformerV2-35M-Joint`](https://huggingface.co/chessforge/ChessformerV2-35M-Joint).
214
 
215
  ---
216
 
@@ -222,6 +222,6 @@ print("WDL probs [loss, draw, win]:", jax.nn.softmax(logits_value[0]).tolist())
222
  author = {Acharya, Rishiraj and Rakshit, Soumik},
223
  year = {2026},
224
  publisher = {Hugging Face},
225
- howpublished = {\url{https://huggingface.co/chessforge/ChessformerV2-5M-Joint}}
226
  }
227
  ```
 
13
  - chessformer
14
  - uci-engine
15
  model-index:
16
+ - name: chessforge-5m
17
  results:
18
  - task:
19
  type: move-prediction
 
55
  name: WDL Value Accuracy (%)
56
  ---
57
 
58
+ # chessforge-5m (5.12M Parameters)
59
 
60
  **Authors:** [Rishiraj Acharya](https://profile.google.com/@rishirajacharya) *(Independent Researcher)* and **Soumik Rakshit** *(Principal Scientist, [eka.care](https://eka.care))*
61
+ **Codebase:** [`chessforge`](https://github.com/soumik12345/chessforge) | **Organization:** [`chessforge`](https://huggingface.co/chessforge) | **Larger Flagship:** [`chessforge/chessforge-35m`](https://huggingface.co/chessforge/chessforge-35m)
62
 
63
+ **chessforge-5m** is a **5,123,809-parameter** searchless human chess behavioral & cognitive-effort foundation model built in **JAX / Flax NNX**. Strictly smaller than `MAIA-3-5M` (`5,230,084` parameters), it jointly models **human move selection and normalized thinking time** $p_\theta(a, u \mid s) = p_\theta(u \mid s)\,p_\theta(a \mid s, u)$ across both **Titled Online** (Blitz/Rapid) and **FIDE Over-The-Board (OTB) Classical** chess.
64
 
65
  ### Key Highlights
66
+ * **Strictly Parameter-Matched Small-Scale SOTA:** With fewer parameters than `MAIA-3-5M` (`5.12M` vs. `5.23M`), `chessforge-5m` outperforms `MAIA-3-5M` by **+1.55% Move Accuracy on Titled Online** (`60.55%` vs. `59.00%`, paired McNemar $\chi^2 = 211.11, p = 7.88 \times 10^{-48}$) and **+2.88% on FIDE OTB** (`54.87%` vs. `51.99%`, $\chi^2 = 892.78, p = 3.64 \times 10^{-196}$).
67
+ * **Surpasses `MAIA-3-23M` on Classical OTB & `MAIA-3-79M` on Outcome Calibration:** Despite having **4.5× fewer parameters and 8× fewer training examples** (`512M` vs. `4.10B`), `chessforge-5m` beats `MAIA-3-23M` on FIDE OTB move prediction (`54.87%` vs. `54.57%`, $p = 7.28 \times 10^{-4}$) and outperforms **`MAIA-3-79M` (`15.4×` larger)** on WDL game-outcome calibration across *both* domains (`61.54%` vs. `60.64%` Online; **`62.21%` vs. `57.08%`** OTB).
68
  * **Joint Move & Cognitive-Effort Factorization:** Predicts a 16-bin HL-Gauss distribution over scale-invariant cognitive effort $u \in [0,1]$ (Pearson $r = 0.6559$, $\text{MAE} = 0.1024$) and conditions move logits on effort via a rank-16 bilinear `EffortMoveResidual` (`+6,464` parameters), capturing fast System-1 intuition vs. slow System-2 calculation ($I(A; U \mid S) = 0.0260\text{ nats}$).
69
 
70
  ---
71
 
72
  ## Architectural Innovations Over Vanilla Chessformer / MAIA-3
73
 
74
+ | Component | MAIA-3-5M (`5.23M`) | chessforge-5m (`5.12M`, Ours) |
75
  | :--- | :--- | :--- |
76
  | **Board State Markovity** | Non-Markov ($8\times 12$ piece planes only) | **Full Markov `v3`**: piece history + relative castling + side-to-move EP square + Zobrist repetitions |
77
  | **Clock & Format Context** | Unconditioned (`Blitz` only) | 6-d masked bilateral log-clocks + `has_clock` gate + `Blitz / Rapid / OTB-Classical` embedding |
 
93
  | :--- | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: | :---: |
94
  | `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 57.59 ± 0.30 | 85.05 | 3.497 | 59.53 | 0.8571 | 47.69 | 19.14 | 65.14 |
95
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 59.00 ± 0.30 | 86.15 | 3.330 | 59.77 | 0.8553 | 49.51 | 19.16 | 65.69 |
96
+ | **`chessforge-5m` (Ours)** | **5.12M** | **0.51B** | **60.55 ± 0.29** | **87.37** | **3.143** | **61.54** | **0.8258** | **50.63** | **19.12** | **66.44** |
97
  | `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 61.33 ± 0.29 | 87.84 | 3.047 | 60.34 | 0.8464 | 51.64 | 19.33 | 66.65 |
98
  | `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 62.52 ± 0.29 | 88.66 | 2.932 | 60.64 | 0.8431 | 52.61 | 19.33 | 67.13 |
99
 
 
104
  | `MAIA-3-3M` | 3.15M | 0.51B–1.02B | 50.75 ± 0.26 | 79.82 | 4.401 | 55.60 | 1.1035 | 38.02 | 19.89 | 60.62 |
105
  | `MAIA-3-5M` | 5.23M | 0.51B–1.02B | 51.99 ± 0.26 | 81.15 | 4.198 | 55.86 | 1.0988 | 38.90 | 19.88 | 61.22 |
106
  | `MAIA-3-23M` *(4.5× larger)* | 22.94M | 4.10B | 54.57 ± 0.26 | 83.45 | 3.809 | 56.75 | 1.0712 | 41.09 | 20.14 | 62.36 |
107
+ | **`chessforge-5m` (Ours)** | **5.12M** | **0.51B** | **54.87 ± 0.26** | **83.69** | **3.721** | **62.21** | **0.8273** | **41.63** | 20.81 | **61.80** |
108
  | `MAIA-3-79M` *(15.4× larger)* | 78.90M | 4.10B | 55.80 ± 0.26 | 84.48 | 3.650 | 57.08 | 1.0598 | 42.50 | 20.00 | 62.96 |
109
 
110
  ### 3. Cognitive Effort Prediction & Joint Move–Time Calibration (`Eval-Titled-Online`)
 
138
  cd chessforge
139
  pip install -e ".[cpu]" # or ".[cuda12]" / ".[tpu]"
140
 
141
+ python -c "from huggingface_hub import snapshot_download; snapshot_download('chessforge/chessforge-5m', local_dir='./chessforge-5m')"
142
  ```
143
 
144
  ### 2. Play as a Human-Like UCI Engine (Nibbler / CuteChess / En Croissant / Lichess-Bot)
145
  ```bash
146
  python -m chessforge.cli.uci \
147
+ --config ./chessforge-5m/config.yaml \
148
+ --set workdir=./chessforge-5m \
149
  --step 250000 --title GM --elo 2550 --format otb
150
  ```
151
 
 
164
  from chessforge.models import build_model, forward_model
165
  from chessforge.models.joint_time import sample_joint_move_time
166
 
167
+ ckpt_dir = Path("./chessforge-5m")
168
  meta = json.loads((ckpt_dir / "model_config.json").read_text())
169
  model_cfg = ModelConfig(**meta["model_config"])
170
 
 
210
  ## Training Provenance & Limitations
211
 
212
  * **Training Corpus (Strictly Pre-Cutoff `<= 2025-07`):** Trained for `250,000` steps at `global_batch_size = 2048` (`512M` positions) on a single Google Cloud TPU `v6e-1` using an exact 1-pass streaming shard iterator (`0%` within-epoch duplicates) and Warmup–Stable–Decay (`WSD`, `lr = 4.0e-4 -> 2.0e-6`, `grad_clip_norm = 2.0`). The first 80% (`200k` steps) trained on **Pool B** (`703.6M` unique positions: Lichess Blitz + Rapid $\ge 1800$ Elo with official title purity enforced $\ge 2350$ Elo + uncapped titled games + FIDE OTB), followed by 20% cosine annealing (`50k` steps) on **Pool C** (`310.6M` unique positions: `88.26%` Pure Titled Online + `11.74%` FIDE OTB Classical).
213
+ * **Limitations:** Because ~88% of titled training examples carry online game priors, passing `--mask_titles` during inference on classical OTB games can slightly improve pure classical calibration. This 5.12M checkpoint is Stage-2 WSD-trained (without Stage-3 Anti-Engine DPO); for anti-engine preference-aligned weights, see [`chessforge/chessforge-35m`](https://huggingface.co/chessforge/chessforge-35m).
214
 
215
  ---
216
 
 
222
  author = {Acharya, Rishiraj and Rakshit, Soumik},
223
  year = {2026},
224
  publisher = {Hugging Face},
225
+ howpublished = {\url{https://huggingface.co/chessforge/chessforge-5m}}
226
  }
227
  ```