How ashy5454/cmp-research works
Purpose and entry points
CMP Research evaluates a proposed sparse, recurrent, pattern-native alternative to attention for converting surface patterns into reusable semantic state. The repository is experiment-first rather than a deployable application. Primary runnable entry points are probe/training scripts under src/, experiment-specific runners under experiments/, and an autonomous research loop under cmp_autoresearch/loop_v2.py.
Core CMP probe suite
The src/ scripts implement the current empirical evidence for learned semantic state, pattern decoding, causal subspaces, and context behavior:
• src/cmp_pattern_probe.py
• src/cmp_meaning_probe_v5.py
• src/cmp_meaning_subspace_ablation_probe_v3.py
• src/cmp_long_context_probe.py
• src/cmp_compute_stats.py
These are the principal boundary between CMP model hypotheses and measurable results. They produce metrics used to decide whether CMP representations encode semantics beyond token-level prediction.
Stage 0: pattern-decoder objective
The first proof gate compares next-vocabulary prediction, sparse-pattern binary prediction, and hybrid objectives. The experiment is organized in:
• experiments/stage0_pattern_decoder/README.md
• src/cmp_pattern_probe.py
• src/cmp_wikitext.py
Dataset handling and training inputs are separated from the core probes through cmp_wikitext.py. This stage determines whether CMP’s distinctive “predict sparse patterns” objective is warranted before scaling.
Matched-model and geometry validation
CMP-specific claims must survive matched controls rather than standalone results. Baseline comparisons and semantic-geometry tests reside in:
• experiments/matched_baselines/README.md
• experiments/matched_semantic_geometry/run_matched_geometry.py
• experiments/matched_semantic_geometry/README.md
The intended controls include GRU/hash-input and hash-attention models, with Mamba/SSM conditional on a clean implementation. This is the key causal boundary between architectural effect and generic trained-sequence-model behavior.
Activation-density sweep
Activation density k is treated as a first-class architectural control variable, tested across planned sparsity levels. The executable sweep and retained curated results are:
• experiments/activation_density/cmp_density_sweep.py
• artifacts/density_sweep/2026-05-16/density_sweep_results.json
• artifacts/density_sweep/2026-05-16/density_sweep_log.txt
This stage links sparse activation configuration to model quality and compute behavior; it gates later architecture and local-learning work.
Autonomous research orchestration
cmp_autoresearch/ is a separate agentic research-control subsystem rather than CMP model code:
• cmp_autoresearch/loop_v2.py
• cmp_autoresearch/hypothesis_council.py
• cmp_autoresearch/challenger.py
• cmp_autoresearch/dashboard/api.py
It appears to coordinate hypothesis generation/challenge, paper reading, narration, and dashboard exposure, configured through cmp_autoresearch/research.yaml. The dashboard has a static frontend at cmp_autoresearch/dashboard/static/index.html.
Research governance and external inputs
Research direction, proof gates, datasets, and source provenance are controlled through documentation rather than an application service:
• docs/team/current_direction.md
• docs/team/datasets.md
• docs/CMP_Research_Log.md
• papers/local_paper_manifest.csv
External dependencies are Python packages listed in requirements.txt, corpus/data sources registered in the dataset documentation, and locally indexed—but uncommitted—papers. Checkpoints, dataset caches, and large pattern files are deliberately outside version control; small reproducible summaries are retained under artifacts/.
Main entry points: loop_v2.py Research loop · cmp_meaning_probe_v5.py Semantic state probe · cmp_pattern_probe.py Pattern decoder probe · cmp_compute_stats.py Compute statistics
Components 20
CMP Probe Suite
Empirical scripts testing learned semantic state and context behavior.
- Training data pipeline · Separates corpus handling from probe logic.
src/cmp_wikitext.py - Pattern decoder probe · Tests vocabulary, sparse-pattern, and hybrid objectives.
src/cmp_pattern_probe.py - Semantic state probe · Measures reusable semantic state beyond token prediction.
src/cmp_meaning_probe_v5.py - Causal subspace ablation · Tests causal semantic subspaces in CMP representations.
src/cmp_meaning_subspace_ablation_probe_v3.py - Long-context probe
src/cmp_long_context_probe.py - Compute statistics · Summarizes quality and compute behavior.
src/cmp_compute_stats.py
Validation Experiments
Stage gates, controls, and architecture sweeps.
- Stage 0 proof gate · Decides whether sparse-pattern prediction is warranted before scaling.
experiments/stage0_pattern_decoder/README.md - Matched baselines · Defines matched sequence-model controls for CMP claims.
experiments/matched_baselines/README.md - Matched geometry runner · Executes semantic-geometry comparisons against controls.
experiments/matched_semantic_geometry/run_matched_geometry.py - Activation-density sweep · Tests activation density k as an architectural control.
experiments/activation_density/cmp_density_sweep.py - Density results · Retained reproducible sweep summary.
artifacts/density_sweep/2026-05-16/density_sweep_results.json
Autonomous Research
Agentic subsystem for directing and exposing research work.
- Research loop · Coordinates autonomous hypothesis-driven research cycles.
cmp_autoresearch/loop_v2.py - Hypothesis council
cmp_autoresearch/hypothesis_council.py - Claim challenger
cmp_autoresearch/challenger.py - Research dashboard API · Exposes research-loop status and narration.
cmp_autoresearch/dashboard/api.py - Research dashboard
cmp_autoresearch/dashboard/static/index.html
Research Governance
Documents and provenance controlling research direction and inputs.
- Current direction · Defines proof gates and research priorities.
docs/team/current_direction.md - Dataset registry · Registers corpus sources and handling guidance.
docs/team/datasets.md - Research log
docs/CMP_Research_Log.md - Paper manifest · Indexes locally available research papers.
papers/local_paper_manifest.csv
Connections 20
- Current direction → Stage 0 proof gate: sets gate
- Current direction → Matched baselines: requires controls
- Dataset registry → Training data pipeline: governs sources
- Training data pipeline → Pattern decoder probe: supplies training inputs
- Stage 0 proof gate → Pattern decoder probe: organizes objective test
- Pattern decoder probe → Semantic state probe: produces candidate representations
- Semantic state probe → Causal subspace ablation: tests semantic geometry
- Semantic state probe → Long-context probe: extends to context behavior
- Pattern decoder probe → Compute statistics: reports metrics
- Long-context probe → Compute statistics: reports metrics
- Matched baselines → Matched geometry runner: specifies matched controls
- Semantic state probe → Matched geometry runner: compares semantic geometry
- Activation-density sweep → Density results: writes curated results
- Activation-density sweep → Compute statistics: relates sparsity to compute
- Research loop → Hypothesis council: solicits hypotheses
- Research loop → Claim challenger: solicits challenges
- Paper manifest → Research loop: provides paper provenance
- Research loop → Research dashboard API: publishes status
- Research dashboard API → Research dashboard: serves research data
- Research loop → Research log: records outcomes