Blackboard

Escrito por Darjus Kazakevic · revisado el

For problems where nobody knows the full algorithm.

Blackboard is for problems with no fixed algorithm, such as speech recognition, sensor fusion or planning. Several specialists each know part of the answer. They share one data store, the blackboard. When a specialist sees something it can improve, it adds or refines a partial solution.

The controller is the hard part. It decides which specialist runs next and when the answer is good enough. Without it, specialists overwrite each other and the loop ends only by luck. Multi-agent AI systems with a shared scratchpad use the same shape today.

En esencia — Let specialist components read and write a shared store, each adding what it can, while a controller decides who runs next and when to stop.

Cuándo recurrir a él

Recurre a él cuando

  • No known algorithm exists: speech, sensor fusion, planning
  • Several specialists each solve part, and none can finish alone
  • You expect to add or improve specialists over time

Reconsidéralo cuando

  • A known algorithm or a fixed pipeline already solves it
  • Every answer must be traceable to one rule or component
  • Hard real-time limits: the run time depends on the input

The parts

Blackboard
The shared store of partial solutions, often at several levels (sounds, syllables, words, phrases). Each entry carries a confidence score.
Specialist (knowledge source)
An independent component that knows one thing, such as how to turn syllables into words. It reads the board and, when it can help, writes an improvement. Specialists never call each other.
Controller
Chooses the next specialist, usually the one with the highest bid. It also ends the run: at a confidence threshold, when nobody can help, or after a maximum number of rounds.
Confidence
A score on each partial solution that says how sure the system is. The controller uses it to choose work and to decide when the answer is good enough.

Reglas de diseño

Build the controller, not just the board
Something must choose which specialist runs next and decide when the answer is good enough. A shared store that everyone writes to in a loop ends only by luck.
Bound every run
Stop on a confidence threshold, when no specialist bids, or after a maximum number of rounds. Without all three, an unsolvable input loops forever.
Record who wrote what
Store the author and the round with each change on the board. Without this history, nobody can explain a wrong answer, because it came from many small steps.
Keep specialists independent
A specialist reads and writes the board and never calls another specialist. Direct calls turn the system into a hidden pipeline that only works in one order.

Errores habituales

  • No controller: every specialist runs in a loop. Runs never end, or end by luck.
  • No round limit. An unsolvable input runs forever.
  • Specialists overwriting each other's results without checking confidence. The answer flips between two values.