Amboss on Nostr: Binary search always splits the range in half. That is a fine guess when you know ...
Binary search always splits the range in half. That is a fine guess when you know nothing, but Lightning nodes probing a channel's hidden balance usually know something. Splitting where the balance probably is makes probing 3 to 6% more efficient in production.
Our researchers built Bayesian Binary Search: it learns where balances are likely to sit, then splits the range where the probability is, not at the midpoint.
The paper was published in the peer-reviewed journal Algorithms (MDPI, 2025), in collaboration with Stillmark. It runs in production at Amboss today.
The plain-English overview and the paper are in the reply.
Overview and paper:
https://amboss.tech/blog/bayesian-binary-search
Published at
2026-11-12 19:18:35 UTCEvent JSON
{
"id": "09c7a79e48523cc9ae6ff2cb1a55042232838d645d0dea76049222febe901940",
"pubkey": "2af01e0d6bd1b9fbb9e3d43157d64590fb27dcfbcabe28784a5832e17befb87b",
"created_at": 1794511115,
"kind": 1,
"tags": [
[
"t",
"lightning"
],
[
"t",
"bitcoin"
],
[
"imeta",
"url https://image.nostr.build/828025055f4c6e964487d4b4daf63233a9a1ecfc0ddedfee44bd094c1b7ebd6e.png",
"m image/png",
"dim 1200x630",
"alt Card from Amboss. Amboss Research · Bayesian Binary Search. Headline: Don't split the range in half. Split it where the balance probably is. 3–6%: probing efficiency gain in production; Peer-reviewed: Algorithms, MDPI, 2025. Source: Bayesian Binary Search, Algorithms 18(8):452 (2025), with Stillmark; amboss.tech/research."
]
],
"content": "Binary search always splits the range in half. That is a fine guess when you know nothing, but Lightning nodes probing a channel's hidden balance usually know something. Splitting where the balance probably is makes probing 3 to 6% more efficient in production.\n\nOur researchers built Bayesian Binary Search: it learns where balances are likely to sit, then splits the range where the probability is, not at the midpoint.\n\nThe paper was published in the peer-reviewed journal Algorithms (MDPI, 2025), in collaboration with Stillmark. It runs in production at Amboss today.\n\nThe plain-English overview and the paper are in the reply.\n\nOverview and paper: https://amboss.tech/blog/bayesian-binary-search\n\nhttps://image.nostr.build/828025055f4c6e964487d4b4daf63233a9a1ecfc0ddedfee44bd094c1b7ebd6e.png",
"sig": "cae859c8791ecfe320e1276fc09c1315c8d6f0b504d0ba02bedcf31b6b6740cf71b4b9ded54478d51783479ced75c8ed16e10313f4fb747b496fe92239b2b18d"
}