- 2072 Asoj · 2+8 marks
Machine learning; Boltzmann machines
Short answer
Machine learning improves task performance from data. A Boltzmann machine is a stochastic recurrent network of binary units with symmetric weights and an energy function. Learning involves positive and negative phases to adjust weights by comparing clamped and free equilibrium statistics.
What is machine learning? Explain in detail about Boltzmann machines with suitable algorithm and explanations.
Machine learning
Machine learning is the branch of AI in which a program improves its performance at a task through experience (data) rather than explicit programming. Main kinds: supervised, unsupervised and reinforcement learning.
Boltzmann machine
A Boltzmann machine (Hinton and Sejnowski, 1985) is a stochastic recurrent neural network of binary units (0/1 or ±1) joined by symmetric weights (wij = wji, wii = 0). Units are of two kinds: visible units (input/output) and hidden units. It is the stochastic version of the Hopfield network; simulated annealing lets it escape local minima. It is named after the Boltzmann distribution of statistical mechanics.
hidden: (h1)---(h2)---(h3)
| \ / | \ / |
visible: (v1)---(v2)---(v3)
Energy and probability
- Energy of a state s: E = −Σ_{i<j} w_ij s_i s_j − Σ_i θ_i s_i
- Energy gap for unit i: ΔE_i = Σ_j w_ij s_j + θ_i
- Unit turns on with probability p(s_i = 1) = 1 / (1 + e^(−ΔE_i / T)), T = temperature.
- At high T the units behave almost randomly (exploration); as T→0 the rule becomes the deterministic Hopfield threshold.
- At equilibrium, P(state) ∝ e^(−E/T): low-energy states are more probable.
Algorithm
A. Recall / optimisation (simulated annealing)
- Initialise weights, set the visible units to the input, start with a high temperature T.
- Pick a unit at random; compute ΔE_i and set it on with probability 1/(1 + e^(−ΔE_i/T)).
- Repeat for many updates until equilibrium at this T.
- Lower T gradually (annealing schedule, e.g. T ← 0.9T) and repeat from step 2.
- Stop when the state stops changing at low T; the final state is a low-energy (best) solution.
B. Learning
- Positive phase: clamp the visible units to a training pattern, let the hidden units reach equilibrium, and measure the average co-activation p⁺_ij = ⟨s_i s_j⟩ clamped.
- Negative phase: run the network freely (nothing clamped) to equilibrium and measure p⁻_ij.
- Update each weight: Δw_ij = η (p⁺_ij − p⁻_ij).
- Repeat over all patterns until the model distribution matches the data distribution (the weights stop changing).
Remarks
- Can learn internal representations and solve constraint satisfaction and optimisation problems.
- Training is very slow because equilibrium sampling is needed; restricted Boltzmann machines (RBM), which remove the connections within a layer, make it practical.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Define Boltzmann machine · Artificial Intelligence, chapter 6
- Machine learning, GA, operators, areas · Artificial Intelligence, chapter 6 · asked 2×
- Inductive learning and ID3 · Artificial Intelligence, chapter 6
- GA vs fuzzy based learning · Artificial Intelligence, chapter 6
- Hebbian learning; AND function · Artificial Intelligence, chapter 6
- Back propagation algorithm · Artificial Intelligence, chapter 6 · asked 3×
- Test: soft drink filling machines · Probability and Statistics, chapter 6
- Two proportions: injection-molding machines · Probability and Statistics, chapter 7
- Two machines 11∠0° and 11∠40° kV via j15 Ω · Power System Analysis I, chapter 3
- Reactive power flow between machines via j10 Ω · Power System Analysis I, chapter 3