I rewatched the wonderful 3Blue1Brown video in which Grant convincingly shows that compression and prediction are, in essence, the same task.
Along the way it struck me that our code space maps can be viewed as a graphical representation of stimulus entropy.
The more frequently a stimulus is encountered, and the greater its affinity with other stimuli, the larger the size of the cluster/pinwheel it belongs to. Consequently, the fewer bits per stimulus will be needed to describe that information in the terms of the hierarchy of secondary detectors. At the same time, one-off or rare stimuli would require far more information in their description.
In that sense, the hierarchy of detectors can be seen as a Huffman tree.
One has to be careful here, of course, because what we deal with is not variable-length bit strings but bit vectors of equal length and different saturation. And the information is encoded with a dictionary (the code space).
But if we speak about the amount of information rather than its representation, everything falls into place. On the whole, this analogy is very interesting.
In summary, yet another view of the whole theory, in a couple of paragraphs:
Much like the Huffman algorithm, we gather stimuli together so that they manifest their nature and give an idea of their probability of appearing. Then we use the detector tree to describe the stimuli in line with their entropic properties. And this description is a shape-preserving mapping of the stimuli into their code.
Unlike pure Huffman, our stimuli have inherent similarity. So we speak not of strict correspondence but of a stimulus belonging to a cluster, which is essentially a fuzzy equivalence class.
This note is also available in Russian: Кодовое пространство и энтропия.