Dataset Viewer
The dataset viewer is not available for this subset.
Cannot get the split names for the config 'default' of the dataset.
Exception:    SplitsNotFoundError
Message:      The split names could not be parsed from the dataset config.
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 286, in get_dataset_config_info
                  for split_generator in builder._split_generators(
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      StreamingDownloadManager(base_path=builder.base_path, download_config=download_config)
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/harbor/harbor.py", line 171, in _split_generators
                  raise DataFilesNotFoundError("No task.toml or instruction.md files found")
              datasets.exceptions.DataFilesNotFoundError: No task.toml or instruction.md files found
              
              The above exception was the direct cause of the following exception:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/split_names.py", line 68, in compute_split_names_from_streaming_response
                  for split in get_dataset_split_names(
                               ~~~~~~~~~~~~~~~~~~~~~~~^
                      path=dataset,
                      ^^^^^^^^^^^^^
                      config_name=config,
                      ^^^^^^^^^^^^^^^^^^^
                      token=hf_token,
                      ^^^^^^^^^^^^^^^
                  )
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 340, in get_dataset_split_names
                  info = get_dataset_config_info(
                      path,
                  ...<6 lines>...
                      **config_kwargs,
                  )
                File "/usr/local/lib/python3.14/site-packages/datasets/inspect.py", line 291, in get_dataset_config_info
                  raise SplitsNotFoundError("The split names could not be parsed from the dataset config.") from err
              datasets.inspect.SplitsNotFoundError: The split names could not be parsed from the dataset config.

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

modelless — a tiny language model built by counting

Weights computed from corpus statistics, with no gradient steps on the model being built and no donor model. This repo holds the plan, the Kaggle kernel, the results and the counted weight matrices.

Question

How much of a language model can be assembled by counting words, and where exactly does the quality go missing?

Method

  1. count word co-occurrence in 20k medical abstracts (VietAI/vi_pubmed)
  2. positive PMI + truncated SVD -> embedding matrix
  3. write it into a tiny transformer, add hand-built attention heads and FFN "flashcards"
  4. score bits-per-character on the same med_dev / gen_dev items used by the TFKT work

Only CEIL and the four +FT rows use gradients, as reference points.

Results

Lower is better. med_dev = 200 medical abstracts, gen_dev = 200 wikitext paragraphs.

condition med_dev bpc gen_dev bpc what it is
R 2.4617 2.8866 random init (floor)
E 2.3228 2.7303 counted embeddings, symmetric
E1 2.3650 2.7618 counted embeddings, directional
E1A 2.1909 2.5311 + hand-built prev-token & induction heads
E1AM 2.0314 2.3025 + hand-written FFN flashcards
EAM 2.0017 2.2791 symmetric counts + heads + flashcards
E1AM5 2.4401 2.8577 + closed-form readout (v1, failed)
E1AM5b 2.4332 2.8550 + residual closed-form readout (v2, still failed)
SHUF 2.4683 2.8950 control: shuffled embedding rows
GEN 2.3902 2.7360 control: counted from general text
E1AMFT100 1.8481 2.3073 counted construction + 100 gradient steps
R_FT100 1.8856 2.3298 control: random init + 100 steps
E1AMFT300 1.7283 2.2762 counted construction + 300 gradient steps
R_FT300 1.8300 2.2993 control: random init + 300 steps
CEIL 1.6979 2.2819 trained from scratch, 1000 steps (ceiling)

Best gradient-free condition EAM closes 60.2% of the random→trained gap on med_dev.

Rank sweep (squashing loss, on E1A):

rank med_dev bpc
32 2.1899
64 2.1909
128 2.1909
256 2.1909

Config: {"n_docs": 20000, "vocab": 8192, "d": 128, "layers": 2, "heads": 4, "ff": 512, "ctx": 128, "window": 5, "device": "cpu", "steps_ceil": 1000, "steps_ft": 100, "gain": 6.0, "tau": 0.55, "vocab_actual": 8192, "med_dev_in_vocab_tokens": 32347, "gen_dev_in_vocab_tokens": 13152}

Does a counted head start survive training?

Both models get the same number of gradient steps; only the starting point differs.

steps counted start random start counted advantage
100 1.8481 1.8856 +0.0375
300 1.7283 1.8300 +0.1017

What this shows

  • Counting closes about 60% of the gap to a trained model with zero gradient steps and no donor. The best gradient-free condition reaches 2.00 bpc against 2.46 random and 1.70 trained.
  • The components are additive: counted embeddings, then hand-built attention heads, then hand-written FFN flashcards, each buying real bits per character.
  • The head start compounds rather than washing out. At 100 steps the counted model is 0.04 bpc ahead of random init; at 300 steps it is 0.10 bpc ahead, and it is within 0.03 bpc of the 1000-step ceiling. Counting is a better initialisation, and the advantage grows with training.
  • Squashing is not the bottleneck. The rank sweep is flat from 32 to 256 dims.
  • Controls behave. Shuffled embedding rows land at random-init level, and counting the general corpus instead of the medical one is clearly worse on medical text.

What failed (reported, not hidden)

  • Fix 5 (closed-form readout) is retired. v1 fitted the readout from scratch and scored 2.44 bpc. v2 repaired it by solving only for a correction on top of the counted readout, and it scored 2.43 — still 0.40 bpc worse than using no readout solution at all (2.00). Tried twice, kept as a negative result.
  • Fix 1 (directional counts) is falsified. Symmetric counts beat directional counts both alone (2.32 vs 2.37) and with the full construction (2.00 vs 2.03). The asymmetry is small but consistent in both comparisons.
  • Fix 3 (three-word tensor) was not implemented — see PLAN.md §12.
  • Four of the five pre-registered v2 predictions were right; the one that failed is the interesting one (the warm-start margin was predicted to shrink and it grew). See PLAN.md §13.

Files

  • before/docs/PLAN.md — full protocol, predictions recorded before the run
  • before/docs/*.html — plain-language explanations
  • after/results/ — results.json, results.txt, results.html
  • after/results/W_counted.npz — counted embedding matrices (symmetric, directional, general) + vocab
  • after/modelless_kaggle.ipynb — the Kaggle kernel source (Kaggle's API does not return the executed copy; console output is in after/run.log)
  • after/run.log — raw kernel log

Reproduction

Kaggle: https://www.kaggle.com/code/musaddiqrafi/modelless-counted-weights

Related

Continues tfkt (training-free transfer between Qwen2.5-0.5B variants) by replacing the donor model with arithmetic.

Downloads last month
62