Use the four-input parity network. Let . Four hidden units each receive all inputs with weight one and have thresholds . Thus
where for and zero otherwise. The output receives weights and has threshold :
The computation depends only on input count, so the following table checks all sixteen patterns at once:
The output is one exactly for an odd input count. The hidden features detect nested count thresholds, whose alternating sum extracts odd parity.
This representation does not make learning automatically easy. Hard binary threshold units have no usable ordinary derivative; backpropagation normally uses smooth approximations. With uniformly sampled parity patterns, each individual input has zero correlation with the target, so simple first-order features provide no direct cue to the required interaction. The desired output also flips between neighboring count classes. A smooth network has sufficient capacity, but its training can be sensitive to initialization, saturation and local optimization; representability and trainability are different issues.