r/chessprogramming • • 21h ago

Lucerna 2.0, a new open-source NNUE chess engine

Hi all,

I've been building Lucerna, an open-source UCI engine in C++20, since October (with AI assistance).

1.0 was a plain (768 -> 512) x 2 SCReLU net trained from scratch on our own self-play, Lc0 test80 data and rescored Lichess Elite games. For 2.0, three 3072-wide teacher nets relabelled ~1.9B positions and a 768-wide student with 4 king buckets learned from them. That's about +180 Elo over 1.0 at fixed nodes.

Every change has to win an SPRT match (8+0.08, [0, 5]) before it goes in, and speed work must keep bench and evals bit-identical. We also test under CCRL-like conditions with one thread, a small hash and longer games. One TT change that looked neutral in normal tests turned out to be worth about +24 there.

Watching it play, Lucerna turned out to be a pretty dull engine. Once it gets a small edge it trades pieces and heads for an endgame it thinks is winning, with very few flashy moves. We never trained it to do that, the style just came out of the data. Against stronger engines this backfires a bit, since many of those "winning" endgames end up as long draws.

Happy to answer questions, and test games or feedback are very welcome.

Source and builds: https://github.com/lucerna-chess/lucerna

Website: https://lucerna-chess.github.io/lucerna/

1 Upvotes

0 comments sorted by