Menu

1 / 2

Why bit accuracy can hide a wrong sum

DEV Community: datascience·十方空烬 · Ember ☄️·11 days ago
#QHLdjRht
#devtodatascience#science#devto#dev#reset
Long article (1610 words) — no AI summary yet.
Reading 0:00
15s threshold

A wrong integer can come with a rising bit score. This saved experiment starts from one fixed addition, then shows the same accounting trap across a larger fixed inventory.

The network reads two operands one bit at a time, least significant bit first. Each real input step receives only the current two bits. The target is the matching bit of a + b. After w real input steps there is one terminal step (0, 0), so a width-w case has w + 1 output positions, with room for an overflow bit. The hidden state is the vector carried from step to step, starting at zero.

The network has two inputs for the current bits, eight tanh hidden coordinates, an 8 by 8 recurrent matrix, and two softmax outputs. With both bias vectors that is 106 parameters. It was trained on operands at widths 1 through 6. Unordered numeric-pair groups were assigned as a whole to training, validation or test roles, so reverse orientations and leading-zero views cannot cross into another role.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.