Skip to main content

ACE Experiment Framework

A boundary-discovery and anti-self-deception framework for AI efficiency research.

ACE makes an optimization claim earn its evidence before it earns a chart.

Start here

If you have an optimization result you want to trust, start with docs/USING_ACE.md. It explains the three commands, who benefits, how to read a preflight, and what ACE does not claim.

Who ACE helps

ACE helps the engineer who has a promising optimization but needs to know whether it is safe to act on, the research lead who needs a reviewable decision record, and the platform team that wants to stop a one-off benchmark from becoming an overbroad production claim.

In a few minutes, ACE turns an experiment YAML into three useful things:

  • A preflight that names missing seeds, telemetry provenance, and the exact work required before measurement.
  • A provenance-bearing, overwrite-protected run record that binds the baseline, split plan, rules, runtime, and config digest.
  • A plain-language claim boundary so a reviewer can distinguish “ready to measure” from “measured” and “ready to deploy.”

It does not replace a benchmark runner. It makes the decision around a benchmark more trustworthy.

Why this is better than the usual workflow

The usual optimization workflow is fast but fragile: change a setting, run a benchmark, keep the best chart, then try to reconstruct what changed when someone asks whether the result transfers. That approach makes it easy to tune against the holdout set, compare against a moving baseline, omit failed trials or overhead, and turn one favorable run into a broad claim.

ACE reverses the order:

  • Usual workflow: result first, methodology reconstructed later.
  • ACE workflow: baseline, allowed changes, holdout split, trial plan, acceptance rules, and evidence-retention plan are declared before measurement.
  • Usual output: a score or chart that needs explanation.
  • ACE output: a score can be accompanied by a compact decision record showing what was tested, what was held constant, what remains uncertain, and whether the result is ready to act on.

ACE is not better because it produces a higher benchmark score. It is better when the cost of a false win is high: it makes a weak result easier to reject early and a real win easier to defend.

The core value is not any individual finding. It is the capacity to tell when an optimization claim is true, false, or only conditionally true — with traceable evidence at every verdict.


Research context

Optimization claims in AI systems are routinely reported as global improvements — even when they are valid only in narrow operating conditions. Average-case benchmarks hide regime boundaries. Single-run results get promoted. Overheads get omitted. False wins compound.

The result: teams deploy optimizations that collapse under production load.


Research-system capabilities

ACE is a systematic, closed-loop research program that searches the design space of AI compute efficiency and enforces the conditions necessary to trust what it finds.

Every experiment runs inside a fixed harness that enforces:

  • Immutable baselines — no moving goalposts
  • Declared mutation scope — no uncontrolled experiments
  • Split-aware execution — development, validation, and holdout sets run independently
  • Repeated trials with statistical gating — no single-run acceptance
  • Skeptic agent review — adversarial challenge of every apparent win
  • Full overhead accounting — conversion, orchestration, and complexity costs included

Each validated result is evidence of the method working. Each honest rejection is equally valuable.


North-Star Metric: Effective Compute Density (ECD)

ECD = Quality-Adjusted Throughput / (Energy × Area)

ECD is most useful in situations where simpler metrics mislead — where throughput gains are achieved at hidden cost to quality or energy, or where benchmark-average improvements mask per-condition collapse. It is a tool for catching what aggregate reporting misses, not a replacement for supporting metrics.


First Validated Result: Token Pruning Has a Hard Failure Boundary

Token pruning is a widely cited inference optimization. ACE's first completed boundary analysis produced a concrete deployment-risk finding.

Thesis: Token pruning ECD gains are regime-bounded by sequence length and batch size. Outside the validated envelope, ECD degrades deterministically. This is a systems-boundary failure, not noise.

Region Sequence Length Batch Size ECD Outcome
Strong positive ≤ 256 ≤ 4 Consistent gain
Edge of viability 384 ≤ 2 Marginal
Boundary 128–512 3–6 Mixed
Collapse > 512 > 4 Deterministic loss

Deployment implication: Token pruning should not be accepted or rejected on average. Rollout should be gated on sequence-length and batch-size ceilings, not aggregate ECD.

Telemetry caveat: This result was produced under simulated power telemetry (ACE_DIRECT_POWER_WATTS override). Native device telemetry would strengthen provenance but is unlikely to reverse the dominant boundary pattern.

Full analysis: docs/RESEARCH_PAPER_TOKEN_PRUNING_BOUNDARY_ANALYSIS.md | Decision memo: docs/VALIDATED_RESULTS.md


Research Portfolio

Active Lane: Near-Term Software Optimizations

Software and systems work on existing hardware — the lane where ACE has produced validated results. Quantization, token pruning, kernel fusion, memory traffic reduction.

Exploratory Lanes

Mid-term — Alternative numeric representations and execution models: residue number systems, logarithmic arithmetic, heterogeneous pipelines, FPGA proxies. These experiments are exploratory; none have produced validated results yet.

Moonshot — Unconventional compute substrates: analog MAC, photonic linear algebra, in-memory compute, neuromorphic temporal coding. This lane is strategically tracked, not active.

The three-horizon structure exists to prevent near-term work from cannibalizing long-cycle research. The external narrative rests on the near-term validated results until the exploratory lanes produce confirmed findings.


Repository Structure

ace-experiment-framework/
├── src/ace_lab/                 # Installable stable package
│   ├── decision_engine.py       # Single verdict source with explicit gate traces
│   ├── near_term_telemetry.py   # Runtime, power, and energy provenance
│   ├── benchmark_quality.py     # Benchmark-specific quality scoring
│   ├── experiment_runner.py     # Config-driven split-aware orchestration
│   ├── stats_evaluator.py       # Effect size, confidence intervals, significance
│   ├── baseline_manager.py      # Immutable baseline snapshots and integrity checks
│   ├── benchmark_registry.py    # Dev / validation / holdout separation
│   ├── metrics_collector.py     # Unified trial and split metrics with provenance
│   ├── results_store.py         # Queryable result persistence
│   └── report_generator.py      # Markdown and HTML reporting
├── agents/
│   ├── skeptic/                 # Adversarial win challenger
│   └── build/                   # Experiment wiring and executors
├── configs/                     # Benchmark, hardware, and policy configs
├── experiments/                 # Experiment definitions by horizon
│   ├── near_term/               # Active
│   ├── mid_term/                # Exploratory
│   └── moonshot/                # Tracked
├── baselines/                   # Immutable baseline snapshots
├── results/                     # Raw trial data
├── reports/                     # Generated experiment and portfolio reports
└── docs/                        # Research papers, validated results, and protocols
    ├── VALIDATED_RESULTS.md                           ← start here
    ├── RESEARCH_PAPER_TOKEN_PRUNING_BOUNDARY_ANALYSIS.md
    ├── PROJECT_CLOSEOUT.md
    └── telemetry_variance_protocol.md

Verdict System

Every experiment produces one of five verdicts — automatically, from pre-declared rules:

Verdict Meaning
ACCEPTED Repeatable gain, quality preserved, holdout confirmed
REJECTED No meaningful gain after full overhead accounting
INCONCLUSIVE Signal too noisy or benchmark set too narrow
PROMISING_BUT_COMPLEX Gain exists but engineering overhead is too high
INTERESTING_FOR_MOONSHOT Not product-ready; worth strategic tracking

All gates are explicit and traceable. No subjective pass decisions.


Anti-Self-Deception Controls

This domain is systematically vulnerable to false positives. ACE encodes institutional skepticism:

  1. Holdout benchmarks are write-protected — never seen during optimization
  2. Skeptic agent challenges every apparent win before acceptance
  3. Complexity penalty discounts orchestration-heavy approaches
  4. Full overhead accounting — no kernel-only celebrations
  5. Baseline refresh checks prevent silent drift
  6. All accepted results require reproducibility metadata
  7. Telemetry provenance is declared and caveated in every report

Quickstart

pip install .
ace validate experiments/near_term/exp_002_token_pruning.yaml
ace preflight experiments/near_term/exp_002_token_pruning.yaml
ace run experiments/near_term/exp_002_token_pruning.yaml --output ./ace-artifacts
ace assess experiment.yaml retained-trials.json --output ./ace-assessment

ace run records a validated contract, provenance manifest, and Markdown run record. It does not generate workload measurements or an optimization claim. The repository's simulation agents, demo scripts, and experimental kernels remain research tooling rather than the public package API.

ace assess is the post-run counterpart: it imports retained JSON or CSV trial evidence and checks it against the exact contract. It produces an ACCEPTED, REJECTED, or INCONCLUSIVE decision pack, but never creates measurements, fills missing evidence, or independently verifies collection. See the worked assessment example.

The package is a complement to standardized benchmark suites, not a replacement for them. See docs/PACKAGE_POSITIONING.md for its category, boundaries, and release posture.

See GETTING_STARTED.md for the full seven-element experiment walkthrough.


Documentation

Document Purpose
docs/VALIDATED_RESULTS.md Validated findings with theses, caveats, and deployment implications
GETTING_STARTED.md Quickstart and 7-element experiment walkthrough
docs/USING_ACE.md Plain-language guide to what ACE helps people do
docs/TRIAL_EVIDENCE_FORMAT.md JSON/CSV evidence contract for ace assess
docs/PACKAGE_POSITIONING.md Category, before/after workflow, and claim boundaries
docs/RESEARCH_PAPER_TOKEN_PRUNING_BOUNDARY_ANALYSIS.md Token pruning boundary study (peer-review format)
docs/PROJECT_CLOSEOUT.md Phase 1 and 2 closeout, known limits, recommended next work
docs/telemetry_variance_protocol.md Telemetry hardening and variance protocol
reports/token_pruning_decision_memo.md Deployment-risk memo: envelope, collapse boundaries, telemetry caveats
reports/portfolio_dashboard.md Full experiment portfolio summary

Design Principles

  1. Method over findings — the framework's credibility compounds across experiments; individual results are evidence of the method working
  2. Boundary-first deployment policy — optimizations are accepted with operating envelopes, not as universal improvements
  3. Honest accounting — telemetry provenance, overhead costs, and result caveats are declared, not omitted
  4. Artifact-first reporting — every verdict is backed by traceable artifacts
  5. Config-driven reproducibility — every experiment is replayable from its config

License

MIT


The lab is honest. The rules are enforced.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ace_experiment_framework-0.1.0.tar.gz (54.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ace_experiment_framework-0.1.0-py3-none-any.whl (59.5 kB view details)

Uploaded Python 3

File details

Details for the file ace_experiment_framework-0.1.0.tar.gz.

File metadata

  • Download URL: ace_experiment_framework-0.1.0.tar.gz
  • Upload date:
  • Size: 54.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for ace_experiment_framework-0.1.0.tar.gz
Algorithm Hash digest
SHA256 06a051a5dc6fccbc8b00a728e1371fcc1c843dbedc46d46ae61cf1fdf4314749
MD5 0bf09f4084dffe5e9783c9116ccab776
BLAKE2b-256 26617b4174665e73c60476a3ea7f2d721616f34a51d29732bc8ee2ed6428cbd2

See more details on using hashes here.

Provenance

The following attestation bundles were made for ace_experiment_framework-0.1.0.tar.gz:

Publisher: publish-pypi.yml on msaleme/ace-experiment-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file ace_experiment_framework-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for ace_experiment_framework-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 60f7817b4b880c9bfde3c1bd7889eceee719afa16f692d3db86effb3e15ce571
MD5 983a6f9a86b840d8dfaf4fe4cc2ae163
BLAKE2b-256 f6f8c904298b019555534276dab8548ae472eb379e269f99dfdc77ce87bf4438

See more details on using hashes here.

Provenance

The following attestation bundles were made for ace_experiment_framework-0.1.0-py3-none-any.whl:

Publisher: publish-pypi.yml on msaleme/ace-experiment-framework

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page