Launching today

Speall
Open-source ternary inference for microsecond trading paths
1 follower
Open-source ternary inference for microsecond trading paths
1 follower
Speall is an open-source ternary inference engine for paths where microseconds matter. Weights in {-1, 0, +1} skip multipliers and still match dense accuracy on a real market-data task. On a Nasdaq ITCH 5.0 replay (30 Jan 2019, five symbols, 7.2M messages), a QAT ternary mid-price model reached AUC 0.714 vs 0.709 dense and 0.672 for an imbalance rule. Message-to-decision on one CPU core: 0.9 µs p50 and 1.47 µs p99, bit-exact (PR #12). Code and write-ups: github.com/shubhxho/ternary-gemm




Free
Launch Team

AWS Startup AdvisorPersonalized AWS guidance that meets you where you’re already building
Promoted
Hey, I'm Shubh. I'm 18, an Emergent Ventures grantee in India, and I previously exited a robotics startup. I'm building Speall in public.
I wanted to know whether ternary-weight models — weights in {-1, 0, +1}, sometimes called 1.58-bit — can actually do useful work on a path where latency has a cost. Ternary weights skip multipliers, so the same model can run cheaper and faster in tight CPU kernels (and, later, in silicon). That only matters if accuracy holds up on a real task, not just a microbenchmark.
Here's what I measured, all in the open:
On a Nasdaq ITCH 5.0 replay (30 January 2019, five symbols, 7.2 million messages), a quantization-aware-trained ternary mid-price model reached AUC 0.714, against 0.709 for the same architecture in dense, and 0.672 for an order-book imbalance rule.
Latency is message-in to decision-out on one CPU core, and it's bit-exact against the reference. After a follow-up optimization pass (AVX-512 lane-per-row kernel, fused epilogue, a faster ITCH parse path), ternary came in at 0.9 µs p50 and 1.47 µs p99 (PR #12). An earlier session in the same repo (PR #11) also reported dense at 3.9–4.6 µs p50; that dense figure and the 0.9 µs number come from different sessions, so please don't read them as a speedup ratio.
Separately, a contributor measured kernel-only figures on a Blackwell RTX PRO 6000: W2A8 GEMV at 4.4–6.9× versus cuBLAS FP16. Those are contributor-measured and kernel-only, not Speall-run end-to-end numbers.
What this doesn't show yet: it's one day and five symbols, there's no fill model or PnL, and I don't have measured FPGA or GPU numbers of my own. This is an open-source engine, not a shipped product with customers or revenue.
The code is at https://github.com/shubhxho/ternary-gemm — PRs #11 and #12 have the write-ups. Site: https://www.speall.com
I'd love feedback, especially if you work on low-latency inference or trading systems:
How would you stress-test the ITCH result more harshly (more days, regime changes, other targets, realistic queueing)?
What's the most useful next kernel or harness change?
If you want to contribute, the repo is open, and I'll be in the comments all day.
Thanks for taking a look.