NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

The CHIR Algorithm for Feed Forward Networks with Binary Weights

Tal GrossmanNeurIPS 1989

Introduction

The CHIR (Choice of Internal Representations) algorithm flips the script on neural network training. Instead of treating weights as the primary variables to optimize, it focuses on finding the right "internal representations" (hidden layer states). This paper generalizes CHIR for multi-layer networks and demonstrates its effectiveness in training networks with strictly binary ($\pm1$) weights—a crucial step for efficient hardware implementation.

Standard deep learning relies heavily on backpropagation, which treats weights as continuous values and requires high-precision calculations to minimize a global cost function. However, this approach faces significant hurdles. Digital hardware and specialized AI chips often perform best with discrete or binary weights, which are notoriously difficult to optimize using gradient-based methods. Furthermore, backpropagation requires "global control" and the transmission of precise error signals across the entire network, which lacks biological plausibility. The author seeks a learning rule that is local, works with binary units, and can handle the "credit assignment problem" without traditional gradients.

The CHIR Algorithm

The core of the paper is the CHIR Algorithm, which breaks learning into a four-step cyclic process across the network's layers.

Feed-forward network architecture
  1. SETINREP: The network processes the training set, and the current states of the hidden units (the "internal representations") are recorded.
  2. LEARN23 (Hidden-to-Output): The algorithm treats the hidden layer as the input and the final output as the target. It uses the Perceptron Learning Rule (PLR) to update the weights between them.
  3. CHANGE INREP: This is the "search" phase. If the output is wrong, the algorithm randomly flips bits in the hidden layer's representation. If a flip reduces the total output error, it is kept. This creates a new "target" for the hidden layer.
  4. LEARN12 (Input-to-Hidden): Now, the algorithm treats the input layer as the source and the newly modified internal representations as the target, updating the first-layer weights accordingly.

The Binary Twist: To handle binary weights ($\pm1$), the author replaces the standard PLR with a "directed drift" algorithm. Instead of adding a small increment to a weight, the algorithm identifies weights that contribute to an error and "flips" their sign ($+1 \to -1$ or vice versa) until the unit produces the desired output.

Experimental Setup and Results

The algorithm was evaluated using the "Random Teacher" problem. A "teacher" network is created with random binary weights for a specific architecture (N:N:1). All possible $2^N$ input patterns are fed through the teacher to generate the "correct" labels. The "student" network must then learn to perfectly mimic the teacher using exhaustive learning.

Results table for the Random Teacher problem

The paper provides preliminary results for the binary weight version of CHIR on this architecture for network sizes $N = 3, 4, 5, \text{and } 6$:

  • Success Rate ($S$): For smaller networks ($N=3, 4, 5$), the algorithm achieved a 100% success rate ($S=1.00$) in finding a solution. At $N=6$, the success rate was 71% ($S=0.71$).
  • Efficiency ($t_m$): The median number of sweeps ($t_m$) required to find a solution scaled from 14 sweeps for $N=3$ to 15,000 sweeps for $N=6$.
  • Computational Load: A CHIR training sweep is computationally much "lighter" than a backpropagation sweep because it avoids complex derivative calculations, relying instead on bit-flipping and integer additions.

Key Insights and Limitations

The most radical idea behind CHIR is that weights are secondary. If you can find a set of hidden states that make the mapping from input to output easy, the weights will naturally follow using simple, local rules. Unlike backpropagation, CHIR only needs a "single bit" of feedback (Did that change make the output better or worse?) and thrives on a "minimal disturbance" principle.

However, the algorithm has notable limitations:

  • Memory Overhead: The biggest drawback is the need to store the internal representations for every training pattern. This is biologically implausible and could be a bottleneck for massive datasets.
  • Convergence Guarantees: Unlike the standard Perceptron convergence theorem, CHIR is a search-based heuristic and is not guaranteed to converge for all architectures.
  • Scaling: While successful on small "random teacher" problems, performance on large-scale, real-world datasets remains a subject for future research.

Summary updated

BibTeX
@inproceedings{grossman1989chir,
  author = {Tal Grossman},
  title = {{The CHIR Algorithm for Feed Forward Networks with Binary Weights}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {1989},
}
Figure