Conjectures.io

Optimisation · Exact integer kernels

Starting soon

Exact activations, counted in instructions.

One C file defines sigmoid, tanh and exp for binary32, correctly rounded on every one of the 2³² inputs, in integer arithmetic only. It is scored by the instructions it retires per call in an emulator, on RISC-V and on Arm Cortex-M0+. An entry that scores 3% lower than a board's champion, and then passes a check of every input, takes the board over.

The boards open when the validator starts serving them. Until then, set up the miner kit, check and score an entry on your own machine, and compare its S with the launch champion's below.

Launch champion

The score to beat

Every board opens with a launch champion: correct on all 2³² inputs of each function, checked on the host and on the object code of every target. It is nobody's entry and its source is not published. A board it holds pays the treasury until an entry takes it over.

BoardIts STo take over
Overall234.7S ≤ 227.6
RV32IM183.4S ≤ 177.8
Cortex-M0+300.4S ≤ 291.3

Measured on seed 20261119. Each entry is compared with the champion re-measured on that entry's own inputs, so the figure on an entry's page can differ a little.

For scale, the incumbent in the miner kit scores 144,452 overall.

How to take part

One C file, one hotkey, one try per registration

An entry is a single entry.c sent with the client in the miner kit. The kit runs the validator's own rules, builds, emulator and scoring, so check and score an entry on your own machine before you spend a registration.

  1. 1Set up the kit

    Clone the miner kit on Linux x86-64 with Python 3.12 and gcc, install its pinned evaluator and run python -m eik setup.

  2. 2Start from the template

    template/entry.c is correct on every input and exactly as slow as the incumbent. Add fast paths that settle inputs in fewer instructions, and let the rest fall back.

  3. 3Check and score it

    eik check runs the gate's rules in seconds, eik evaluate scores the entry on fresh inputs, and eik fullcheck runs every input of one function under UBSan and ASan. Compare your S with the launch champion's, not the incumbent's.

  4. 4Register and submit

    Register a hotkey on Subnet 66. Each registration allows one submission, and a rejected entry still uses it. The client signs entry.c, at most 256 KiB, and prints an ID; its page here shows the gate, every board and the full check.

Miner kit

.venv/bin/python -m eik setup
cp template/entry.c entry.c
.venv/bin/python -m eik check entry.c
.venv/bin/python -m eik evaluate entry.c --quick
.venv/bin/python miner/submit.py submit entry.c --hotkey <file>
.venv/bin/python miner/submit.py status <id>
.venv/bin/python miner/submit.py leaderboard --board overall

Miner kitFull rules

How it is scored

The rules

  1. 01An entry is one C11 file, entry.c, at most 256 KiB, that defines eik_sigmoid, eik_tanh and eik_exp on binary32 bit patterns. Each must return the binary32 value nearest the exact result, ties to even, for every one of the 2³² inputs, special values included.
  2. 02Integer arithmetic only: no floating-point type, literal or cast, no #include, no state kept between calls, no long or plain char. The gate checks the text, the clang AST and each target's object file, and names the rule an entry broke.
  3. 03S is mean instructions per call in an emulator. Per function, a geometric mean over typical (55%), wide (30%), near-midpoint hard (10%) and uniformly random (5%) inputs drawn fresh from a seed, with a tail term for slow hard inputs; then a geometric mean over the three functions and a term for code size. Lower is better.
  4. 04Three boards: RV32IM (RISC-V), Cortex-M0+ (Arm thumbv6m) and overall, the geometric mean of the two. Each has its own champion. Cortex-M4 (thumbv7em) is measured and reported, not scored.
  5. 05The competition's payout is split between the boards. The split shows here once the coordinator publishes it.
  6. 06An entry is a candidate on a board when its S is lower than the champion's by the takeover bar, with the champion re-measured on the same fresh inputs.
  7. 07A candidate then runs every input of every function under UBSan and ASan, and where the competition requires it, on each target's object code in QEMU. One wrong output or one undefined behaviour rejects it. Once the check passes, it takes over every board where it was a candidate.
  8. 08Every board opens with a launch champion that is correct on every input. Its source is not published, and a board it holds pays the treasury.
  9. 09Each board pays its champion. A board nobody has taken pays the treasury.
  10. 10Only a registration made after the competition opened can enter, once per registration.
  11. 11An entry whose preprocessed source matches an accepted entry is rejected, even with whitespace, comments and every name changed.
  12. 12A champion's entry.c stays private while it holds any board. Once it holds none, anyone can download it from its entry page.
  13. 13Submitting grants the code under MIT or Apache-2.0, so winning kernels can ship in exact-c.