From the last post, we knew what AI/LLM is made of: computers, statistics and humans. Now we can use that understanding to explore its implications in technology by taking a closer look at each component, understanding its nature, hearing what it wants to tell us, then looking at the connections between each of them, seeing what the combination of each two looks like, and finally, looking at the whole to understand the big picture when combining them all together.
This is a big topic, and I don't want to make the post too long, so I will split it up into four. In this post, we'll only study the first two components of AI/LLM: computers and statistics.
The descriptions that will be given here are by no means complete, but are enough to serve the analysis. Specifically, I will keep the details of implementation away since they are always changing, so readers should not be bothered with them in order to understand the gist of the concepts and the direction of the technology. By stripping the details, we'll be able to focus on the general understanding, which helps us establish a lower bound of possibilities and higher bound of limitations to keep the validity of the post long, so our mind may rest easier.
1. The computer
The (digital) computer is built bottom-up: From the most simple operation, which is moving a 'bit of information' to another location in memory, more complex operations such as addition, subtraction, multiplication, division ... are built upon, firstly for boolean calculation, then integer, then real numbers. Then, those operations are again used as the basis of even more complex operations such as exponentiation and logarithm. That process keeps repeating, layer by layer, until the highest level, which includes the applications that we use to interact with computers.
With this bottom-up construction, the computer is:
Truthful: It only does what it is told, by the way it is programmed, step by step from an input to the result, leaving no place for chance. Having the result, we can even question it back, go through all the intermediate steps that it went through, and go down to the lowest level operation. Some call this deterministic.
Explicit: It cannot figure out by itself how to do something that is not programmed explicitly beforehand. This is actually a consequence of the first property, but calling it out will serve the discussion better.
With these properties, problem solving with computers is sound, in the sense that, if a program is correct (tested across the domain of input), and its input is as intended, then we can firmly believe in its result, even if the program is run only once.
The downside is that we need to be verbose with the guidance (i.e. the program), but the upside is that it requires deep understanding of each individual piece of the problem and the solution to be able to encode them explicitly for a machine to follow.
Layers of reasoning of a digital computer. Picture by myself.
2. Statistics
Statistics is the collection of data about the world and the presentation of them in some collective ways to help humans understand the world as a whole without having to be concerned with individual objects. By only concerning itself with the collection, statistics doesn't need to understand deeply about the individual. Over the years, people in statistics have invented many methods to represent the collection and grasp the trend of the whole, while keeping a long distance away from the understanding of each object, however complex each one is.
In that sense, statistics is built top-down. To statistics, only the sum has meaning, while the parts are just contributing factors, or even noise. It can guess the foot length of someone with any level of confidence while having no idea about that person, their genes, the environment they live in, or even if that person has any feet.
Being constructed top-down, statistics is:
Vague: It may have conclusions about the collection while having no idea about the parts. Given an input, it can follow probability distributions of past data to come up with a prediction of the output. That output it can never be sure of, and any attempt to reverse the computation steps will just meet randomness (plain guessing or taken as-is from the data) as the lowest level operation (i.e. explanation). In fact, if the input already exists in past data, statistics needs no intermediate calculations and can just predict the output directly.
Implicit: Given initial data as input, statistics can analyze them to find the trend, then use that trend to figure out the rest (as output) without anyone to guide it. Again, this is derived from the first property, but is worth calling out to help readers follow the later discussion.
Problem solving with statistics is not sound, in the sense that we cannot conclude about specific things without attaching the word "probably" to it. The upside is that it helps us make progress with problems concerning the whole system without having to understand completely about each and every part. But the downside (of that upside) is that it inhibits further understanding of things due to a seemingly already good enough result (geek speak: local maxima).
In other words, by relaxing the soundness property of problem-solving, statistics expands the number of approachable problems but can never be sure of the solution. Being satisfied with that result leads to stagnation.
Note: A good-enough result from the computer can also lead to stagnation if we stop finding other ways to come up with the output, but since that result can be traced back at every step, it opens up better chances to understand and optimize the method, and to raise new questions that create room for improvement.
Layers of reasoning with statistics. Picture by myself.
3. Combining computers with statistics
Computers and statistics are like two worlds apart, yet bringing them together creates a whole new entity — a statistical computer, also known as computational statistics, depends on who teaches it.
When a computer looks at statistics, it sees that statistics can help it deal with real-world problems faster than before, as long as it gives up being sure about the result. It thinks that compromising is a quick way to make progress. Even if a traditional method with truthful results exists for a problem, that method may still be slower than using statistics. It is quicker to guess the foot length of a man than to understand and analyze every part of the foot.
Still bearing the construction method in mind, the computer starts its statistical problem-solving journey from the innermost layer: simulating randomness. Then it uses randomness for more complex problems such as getting out of paralysis, choosing a good secret, finding optimized configurations for a complex system, and so on, up to the outermost layer, which is predicting possible results of any event using trend analysis and simulation of scenarios. New possibilities are opened up, less sure, but way faster.
That process is called "generating."
When statistics looks at the computer, it finds that the computer helps it not only collect, organize and process more data faster, but also opens up new possibilities. Learning from the procedural methods of computers, and benefiting from their computation and storage prowess, statistics can now mimic the computer's method in modeling the world. Now it can dive deeper into each part of the collection, collect more samples of the part, and model the correlation between them. That process repeats again and again, breaking each part further as a new collection of even smaller ones, until the lowest level components (that it can get data on) are reached. Suddenly, to statistics, the world is no longer obscure but is composed of layers of meaning, as deep as the data and the toolkit of statistics allows.
That process is called "learning."
Breaking down a probability distribution into many levels. Picture by myself.
In both processes, a whole lot more data than ever before need to be collected, but can be reused for a practically infinite number of purposes and practically forever. Is the trade worth it?
4. The statistical computer
Let's take a closer look at the new machine. The statistical computer — the child of Logic and Statistics — an abstract device that we will analyze in depth to understand the implications.
Bearing inside the statistical computers are the soundness of logical power and the fuzziness of probability distribution. It is possible that these two opposite properties can meet each other because they are two sides of the same coin: human thoughts on observed phenomena.
Logic was born from the dissection of observed phenomena in nature, in which the gist of many phenomena was reduced to cause and effect, then abstracted away as True and False statements and their appropriate ways of combination. Nowadays, we know that natural phenomena are caused by motion of atoms, electrons, and even smaller particles. So the digital computer models Logic by channeling electricity, which comes from the movement of electrons, in a certain order that returns the output following the rules of Logic.
Statistics was also born from the dissection of observed phenomena, but the mundane data were kept as is, however noisy, in the hope that the true nature of a phenomenon would reveal itself when humans did not try to interpret it too soon, lest the projection of their will would hide its nature. Instead, a series of data collection and interpretation steps was performed carefully to understand nature while avoiding jumping into conclusion, reducing the tainting effect.
With a bit of poetry, we can say that Logic is born from Statistics, and the statistical computer brings Logic back to its source, releasing its original form. Vice versa, Statistics can be born out of Logic when the number of independent, out-of-order logical components are large enough that the complex whole denies any attempt to make sense from each part.
Let's define the statistical computer as a computer that leverages statistical methods extensively throughout its computation steps, and can only exist in one state at a time. The second part removes quantum computers from the discussion. A computer program that leverages that capability is a statistical program (or statistical software). Such a program, when receiving an input it has already met before, can return the output directly with no intermediate steps needed. The digital program we are already familiar with is called a traditional program.
Defined in such a way, a system that contains 1) a traditional program and 2) a caching program, which intercepts input data before it reaches the traditional program, to see if it already met such input before, and if it did, would return the cached output directly, bypassing the first program altogether, is a simple statistical program. A more complex one has a more nuanced caching system that can morph the input it hasn't met to return an acceptable output based on similar input-output pairs it observed in the past.
Note that this definition does not specify how the statistical computer is constructed. Keeping the implementation details away makes the computer generic and thus facilitates our discussion better. However, to make the analysis exciting, we can use the conceptual layered construction mentioned above, which applies to both processing and memory as if each layer has its own chipset and memory, to discuss the machine without losing the benefits of abstraction.
The mysterious statistical computer. Picture by myself.
In the section about computer design, we'll take a deeper look into how a statistical computer can be designed for real.
4.1. Possibilities
Rose from a digital computer, a statistical computer can do anything that a digital computer can.
What makes it special is that the effort required (from humans) to program it to be able to return some kinds of output can be reduced significantly. Benefiting from both explicit, traditional programming and from implicit knowledge inside example data (a.k.a. training data), it can trade off between the effort required to collect and analyze the data and the conciseness of the program. When there are high quality training data that aligns with the output, the programming can be less verbose (i.e. less explicit). Conversely, when there are few training data, or if there is no obvious way to interpret that data to form the correct output, the programming needs to be verbose.
Note: This property, seemingly new, is actually not. It can be observed from traditional programs and from statistics itself:
Traditional programming is not always about logical deduction. Programmers have always bridged the gap between the digital computer and the real world by verbose programming. In that process, they have often traded strict logical deduction with assumptions taken from data about the market, users, tech landscape ... (data-driven). In many applications, assumptions based on experience take up a large percentage of the mental effort used to create the program. Many call that "taste."
Statistics is not always about pure data but also the interpretation of that data to conform with analytic methods. From the data collection phase, the decisions about the type and the amount of data have always been based on the available tools and assumptions about the outcome. There is no pure data, only data interpreted by humans, directly or indirectly (through the tools they make). Data and methods (i.e. forms of programming) always go in pairs, and human factor has always been in both.
With a rich toolkit of statistical methods and data available in addition to logic gates (nodes inside a CPU to implement logic math), the statistical computer can do anything a digital computer can. We also know that these statistical methods can be constructed from logic gates within a bounded number of steps, and data can be given as part of the initial input or be encoded as a program. These lead to the conclusion that the statistical computer is equivalent in capability to the digital computer. It means that, for every statistical program, there is at least an equivalent digital program that does the exact same thing. Put it simply, if the essence of the training data and the statistical methods are encoded in a digital program, then we'll have an equivalent digital program that uses almost no statistical method and needs no training data.
Put it differently using the previous metaphor, in traditional programming for digital computers, when a program is being built, the programmer and their program are intertwined together until the program is good enough to live alone. That also explains why programs often rot over time, even after thorough testing: The data about the world have changed, but no programmer exists to update the program correctly.
Now we know the theoretical limit of the statistical computer, there is still a wide range of possibilities within that mortal realm. Worth mentioning among them are the cases that leverage the computer's ability to learn implicit knowledge from training data. "Learning" means that the computer can break down the training data (by itself or following the guidance from another program as a trusted advisor) to smaller pieces in such a way that when being tested about that data (such as: yes-no questions, multi-choice questions or reconstructing the data from the pieces), the machine can put up a correct answer. Once learned, the statistical computer can store that "knowledge" in reusable form for future usage. Both learning and answering processes can be sped up with faster computation in the form of improved hardware performance or more clever calculations (a.k.a. algorithms).
Challenges to achieve that include having the data prepared suitably for the learning process to happen. It would be easy if the data was aligned with the statistical toolkit that the machine uses. If not, or when there is not enough data for the statistical methods to create meaningful deductions, the machine needs a trusted advisor that provides padding data (hints to deconstruct the original data) or provides the basic operations that the statistical machine can use to dig deeper into the original data. Once such an advisor exists, or good data is available, we can say learning is trivial.
That's the cases where data is learned to support the answering process, or learned only to pass the test. What about more general usages from the learned form of the data? Using statistical deduction processes (which are among the basic operations used by the statistical computer, or built from them as algorithms), the machine can create derivatives from that data to support simple derivations. For complex applications, the machine still needs to learn to make correct deductions (again, by data or by a trusted advisor). However, since the conversion from the original data to its learned form is always to support a certain answering process, the machine cannot be made too generic. It needs the original data to be available for later re-learning to prepare for new tests, or needs to be able to create that original data faithfully, which is perhaps more costly than just having the original data available.
Good students don't throw books or ignore the teachers they find compatible after graduation. Picture by myself.
As the saying goes, there is no bad student, just bad teachers. Now we know "bad" means incompatible. The most compatible advisor of a statistical machine that it can learn from is maybe another statistical computer of the same brand, same series, since the learned form of data can be transferred directly between them without any conversion medium.
Learning from peers. Picture by myself.
4.1.1. Operations on learned data
A statistical program, like a digital program, can be stored, transferred and transformed. To transfer a program to another computer of any capability, the program can be transferred as is, made bigger or made smaller.
Transferring a program as is works best when the target computer is the same or more capable than the source machine.
Making a program smaller is suitable for less capable targets. Using techniques to down-sample the learned data, the smaller program may retain major traits of the original data, but some details will be lost. In this way, the original statistical program is the source data for the target statistical computer to learn from, and learning from only such a small data sample requires an elaborated trusted advisor. From the layered construction metaphor of the statistical computer, we can guess how the down-sampling will work: the number of layers will be very similar to the original (since each layer depends on the previous one), but the details of each layer will be sacrificed (maybe the precision of the real numbers, or the size of the subsamples, is reduced).
A program can be made bigger to use all capabilities of a more capable target by techniques to up-sample the learned data. An interesting example is: A trusted advisor (that guides the conversion) that understands the source data well can enrich them by adding more labels that explain the data (geek speak: adding more dimensions to the data) or hinting another way to break down the data to more fruitful subsamples, thus adding breadth and depth to the layered deconstruction of the original data. That trusted advisor can be a more advanced program, a collection of specialized programs — each understands one aspect of the data in depth, or a human service.
These operations can also be combined: Data can be up-sampled (on a more capable computer) to add qualities that are not found or not obvious in the original data, then be down-sampled to suit the target computer. If the up-sampling enriches the data significantly, then the down-sampling can result in better data than just straightforward down-sampling the original data.
Not only changing the size when being transferred between compatible computers (which use the same statistical toolkit), a statistical program can also be transformed to suit another computer that uses a whole different toolkit. That process is called "distilling." One crude way to do that is to have the original program reconstruct the source data it learned from as precisely as possible (metaphor: boil it), then have the target computer learn from that source (metaphor: gather water from the steam). Information will be lost or even changed. The info-changing effect can be reduced by having the target learn (from the reconstructed data) to pass the same tests the original program was trained on.
Another transformation method is to edit a statistical program to the liking, which is not a trivial task. Using the layered construction, the process can be performed in two ways: 1) keep the layers, edit the samples in each layer or 2) locate the layer(s) related to the desired quality and add new layers next to it.
The first method works best when the desired quality (to be edited) is located in just some subsamples of the specified layers, and thus can be tuned and tested easily. Ideally, to support this editing method, each layer of the learned data should already be partitioned into some traits (a.k.a. features), thus avoiding changes in one trait to affect the others (i.e. decoupling). If a whole layer needs to be updated then we should use the second method.
The second method adds some glue layers with hand-tuned values before or after a target layer to enrich that layer or nullify undesired values. Through this process, the effect of some subsamples in the original layers on the output can be amplified or muted as desired without having to change those subsamples, making this method suitable to locate the most significant layers and subsamples to make changes. This is actually more general than the first method.
Thanks to the layered construction in which the initial layers provide the basic operations, and the final layers provides the final outcome, we can guess that the initial stages of the editing process may focus on the layers in the first half since they can create a bigger impact on moving the output to the value we want. Then the last stages will mostly target layers in the last half, which move the details of the output gradually to the desired outcome while not causing big, unintended changes in other areas.
Finally, data can be combined together. On the same statistical computer, it is simple to combine learned knowledge of the same kind by stitching them together (increase the size, but keep the quality high). For data of various kinds, combining them will need a common ground so that the computation across data types can happen. To apply in humans' daily life, natural languages can be that common ground to translate all data types into (besides the benefit of having an abundance of high-quality data to learn from and having grammar rules to regularize the data a bit). And for other applications such as understanding the communication of whales, recorded underwater sound can be a common ground. That data translation method can also be applied to auditing the actions of the computer by having it describe the data passed through each layer.
However, two problems appear when using a common layer of interpretation: (1) mistranslation and (2) loss of information, since there are always some pieces of information missed when trying to describe a picture in words and vice versa. So we can expect further developments in the generation of output that are of the same kind as the input to reduce these downsides and achieve higher performance. Further advancements, albeit harder, can still happen in data translation methods, such as creating better languages to describe the data in the layers of the machine, and better translation between similar data types (e.g. sketch to image, image to video, video to 3D models and vice versa).
That's how a statistical computer can be programmed, or learned (from data and from traditional programs). Since they always learn to pass some tests, create some output, the process to generate output based on learned knowledge is quite straightforward and won't be mentioned here. Once the learned data is rich of many kinds and there is a common ground (such as human language) to allow the statistical toolkit to work with them all, then there can be an exponential number of things that can be generated from them.
Generating pictures containing an animal and an emotional expression can be done once we have had lots of example pictures with those labels. Picture by myself.
4.2. Limitations
An exponential number of things that can be created by a machine is not something new. What's interesting is the output quality and the speed to do so. Still using the layered construction concept, we can image each layer as a sheet of paper, and the whole computer is a stack of paper of the same size. When an input is printed on the bottom page, the processing will happen inside each paper sheet, passing data from the bottom to the top, and the output is printed out on the top paper. We call the area of each paper sheet "breadth", and the height of the stack "depth." Breadth, depth, and the flow of data passing throughout the paper stack are the main tools we'll use to analyze the limitations in processing capability of the statistical computer. Specifically:
Breadth represents the horizontal dimension of the problems the computer can solve each time data is passed through a layer. For example, to add a yellow tint to an input picture having the same dimensions as the paper in the stack, the computer only needs one pass of data (since it can process each dot/pixel in the picture independent of each other — in parallel). If the picture size is bigger than the paper size then more passes will be needed, each process only a part of the picture. The more breadth the problem has (we'll call it the problem size), the more parallelism is needed to solve it. If the breadth is too big, as in the case of multi-choice questions, the computer may compromise by always just picking up the top 3 choices it deems most potential in each layer (geek speak: beam search, where the width of the beam is 3).
Depth represents the vertical dimension of a problem — that is, the number of different layers the data need to go through before coming up with the output. The yellow-tint picture generation problem above has a depth of 1 since no step-by-step analysis is needed. An example of a problem with more depth is to solve a complex math problem, since skipping any step will cause a wrong result. So, problem depth influences the correctness or nuance of the output, where a famous example is the number of human fingers in a picture. The computer may deal with depth-focused problems by cutting off the number of layers (especially the ones near the top) and just return what it already has to save time.
The flow of data between the papers in the stack is important too, since the more the data is analyzed by statistical methods, the more some pieces of information are lost. You can see that it is related to the depth of the stack, but we'll come back to this issue later.
Conceptual layers of a statistical computer. Picture by myself.
Another component is the learned data that we will focus on later. Right now, we only need to remember that the data is always learned to pass some tests, and to apply it for a new test, the computer will use some techniques to create derivations from the learned data. The best case happens when the input problem matches with the tests the computer learned for, or better, the very exact test, where it can just create the output in verbatim (caching).
So, we are equipped to answer the question: What kind of problem stress the statistical computer the most? It is the kind of problem that is very different from the problems it was trained on (to reduce the usefulness of derivation and caching), needs many steps to solve (increase depth, which increases time and the loss of information), every single step creates many new choices of equal possibility to proceed but only a few of them lead to eventual success (to reduce the usefulness of parallelism and increase memory usage), and only the correct answer has any meaningful value (high stake, or winner-take-it-all, to disable beam search).
What problems that possess these properties in real life? They are the problems that require adept and creative people spending a long time focusing on them mentally, need to exchange ideas often, and the time it takes to solve the problem completely from 80% is very long, even longer than the time it takes to go from 0% to 80%, and only the correct answer is counted, or the stake is that high. Examples include, but not limited to:
Researching scientific problems for the sake of understanding and improving world's knowledge with clever ways to solve problems, not merely to publish something different for the record.
Designing and programming for high-precision, low latency systems, making the system faster, more correct, delightful to work with and sharing that knowledge with peers.
Designing interfaces that "click", which provide a deeply personalized, beautiful, tasteful and useful experience for users.
Finding major bugs or security issues even in well-tested, critical systems.
Penetrating high-defense systems, and protecting them.
Teaching disabled students, or taking care of each student to help them achieve better, more meaningful results.
Taking good care of patients, developing cheap but very good medicines or treatment methods.
Crime investigation.
Fighting injustice.
Marketing that provides insights to understand the market deeply.
Selling non-commodity, high value goods to people.
Devising strategies and taking responsibility for the result.
The counter of the statistical computer to such problems is to bring them closer to the training data to maximize the effectiveness of caching, learn to find patterns and, albeit not a completely technical approach, to push the responsibility of the result to the user. So we can expect that the statistical computer cannot give guarantees of the quality of the final result of such tasks (unlike the purely digital computer) and will always be marketed as a tool, not a complete service for end-users. We can also expect that, if the stake is high enough, the companies selling and competing on statistical computers will leverage many imaginable ways to capture as much valuable data of these kinds as possible.
What real-world problems may counter that counter, that is, the result is always a mystery even after much analysis? One candidate is problems of uniform distribution, so that no meaningful statistical pattern can be inferred from, such as gambling and maybe fast-paced stock trading in a free market. So, another question is raised: If AI took all the jobs, would it push everyone to gambling and stock trading, in which the subjects are the companies run by AIs? We will explore that in the future post about the economy.
Another candidate problem is diversification and continuous improvement. By bringing more creative to problem-solving, so that creativeness is imbued in every path in solving the problem, so any attempts to mimic that will only lead to second-hand, old-fashioned things that yield very low value, enough to distort the cost-benefit chart to make the effort of mimicking unworthy (geek speak: high volatile). That is similar to the value of copyright laws, according to which the public is only given permission to use a protected craft or method after some time. So, upholding copyright laws is another way, but at the cost of exposing the secret of the trade fully. Fashion and entertainment may belong to that category too.
Coming back to the limitations of data: As analyzed above, the far away the input problem is from the training data, the more stressful for the statistical computer to solve it correctly. Unless the path from the training data to the result is paved beforehand by a trusted advisor (not encoded in the data) then the computer can only use its statistical toolkit to guess the output, which may be incorrect or of low quality (a.k.a. hallucination). A solution to this is to upscale the data appropriately before trying to solve the problem. For example: to fix the famous finger issue, the machine may need to convert the image from 2 dimensions to 3 dimensions, at least with the hands, where it may have more tools to manipulate the 3D model, correct the fingers, then down-scale it back to 2D. This up-scaling is guided by a trusted advisor program, which may not have all up-scaling methods for all problems, so there will always be issues with the problems the computer was not prepared for.
Up-scaling by external guidance is actually a fancy way of saying: teaching the computer.
Another way the problem can be far away from the training data is the conversion causing loss of information. For example, giving an input text that describes a picture, the computer may generate a picture satisfying that text for the most part, but pieces of information will be lost, such that when that computer (if it has picture-to-text capability) is asked to generate the text describing that same picture and from that picture only (no other data in the input), the output text will be completely different from the original text in the essence. So, even if a natural language is used as the common ground to translate between data types, the loss of information still happens and can be more severe with more translations. There may be no efficient solution to this, only some ways of mitigation: training the computer on direct conversion between similar data types (such as sketch to picture, picture to video and vice versa) — with natural language is used only for auditing the computer's behavior, or using a specialized language that compresses the memory of the computer better to reduce information loss, or amplifying key pieces of information after every few layers of processing.
The problem can also be far away from the training data if the training data have biases that blind the computer from seeing the solution (geek speak: bias in the opposite direction of the solution). Using training data from the Internet, which is now centered around only a few sites, the computer may have learned certain biases embedded in those sites unknowingly. Solutions to that are: fine-tuning the learned data by receiving trusted feedback from another source (internal tester and users) that influences the data in the correct direction, being able to edit the data in any layer intentionally, and having a trusted advisor that the computer can fall back to for help with risky problems. Said simply, the solution to bad bias is good bias, or, the counter to centralization is decentralization.
Finally, when trying to learn from new data, the computer may use up all its storage. Now it can either fine-tune the existing learned data to incorporate new data (complex), remove learned data it deems redundant (at the cost of reducing ability to answer problems close to those data) or just add more storage to save the new learned data (most simple). In a short time, the most simple solution will be chosen. But we can expect the first and second solutions will be used at a certain point, which leads to specialization, and that will reduce the general usefulness of the computer. So, after some time, the most simple method, which is just adding more storage, will be used again. The cycle repeats until it hits physical constraints.
Even if there were no physical constraints on its storage size, an interesting effect would still happen: In some way, the more data and storage the computer uses, the less interesting it is, since by gathering all the data to try to be everything, it appears to increase the number of problems it can solve, but it's just that it already has all solutions to past problems. But once a problem has a solution, it becomes trivial and people will move on to new problems that are out of common reach, thus making all that learned knowledge less useful, which reduces its economic value. The storage must still be maintained and is costly to do so. So to keep its economic value to people, who decide whether it can exist or not, the computer must always constrain storage size to a limit by pruning some learned data to incorporate new knowledge, making the old, forgotten data new again, and specialize the computer anyway.
Another solution, although not about technology, is to reduce people's needs, desires, and uniqueness to a limit (defined by the computer's knowledge), which causes stagnation.
In general, the more generic data the statistical computer (or program) learns from, the lower quality its output becomes, unless it makes use of specialized systems that were trained on specialized problems. The problems that stress the statistical computer the most are the ones that require extensive training in multiple domains, demand creative approaches, need exchange of ideas, have very few correct choices, or are at very high stake, or completely random, and that the time needed to complete them is either very fast, or of much less importance compared to the quality of the result. These properties are not unrelated.
4.3. Poison and Antidote
The potential and limitations of the statistical computer open up new ways to play around with it for fun and for profit, which is often called "hacking". Here are some ideas.
You may have noticed that learning and generating use different approaches — top-down vs. bottom-up. The nature of statistical learning is trusting the trend from data (input), while the nature of statistical generation is unsure about the result (output). These two don't compensate each other in such a way that if the statistical machine returns a result, then learns from that result to generate another result, the new result will have lower truthfulness (even if it is actually correct). Repeating it a couple of times, and the output confidence will drop significantly (note that it may still actually be correct). We call that echo chamber effect or model collapse. At what breadth and depth of the input problem will the computer show signs of quality drop? In which aspect will it drop? What kind of problems will make it drop faster? Using different input problems to measure that automatically and repeatedly can shed light on how the computer works and what its learned data looks like (in geek speak: replay-attack to reverse engineer its inner working).
The more learning capability the statistical computer has, with more data learned, the more connections it can make between an (unknowingly) untruthful concept (i.e. sample or subsample) with old, trusted concepts. Up until a certain point, with a certain kind of input, the cumulated effect will make the output be entirely incorrect. We say it is poisoned. But preventive methods such as only using data from official sources may hinder its ability to return creative, thus useful output, and reducing the use of statistics may collapse the machine down to a traditional digital computer. So creating antidotes for such poison can be an interesting topic that we'll explore briefly below.
When poisoning happens on a large scale (many untruthful concepts are introduced), the only way to fix it is to reverse to an old backup of the program, but that will also kill new, truthful concepts. We can think of a future where the computer's learning capability is nullified — new concepts cannot be learned effectively lest they be untruthful, and new connections between concepts won't be made, lest it bring down the truthfulness of the whole. Even if the statistical computer is tested constantly, being statistical, very big and change continuously, the tests cannot ensure coverage across all output and leaks still appear. An effective way to combat this is to patch each leak, which means the patch will get bigger over time, consuming large amounts of computer resources until a restructuring happens that covers more patches effectively (geek speak: a big reset), then the cycle repeats. That patch is a form of good bias enforced from outside the original training data.
In computer terms, we often call these leaks "bugs" or "viruses." With statistical computers, they become fuzzy and thus propagate even more effectively. Sometimes, that is actually intended (bad bias) as a form of propaganda.
Shutting down the learning capability completely can be effective in combating this poison, at the risk of repeating the existing leaks without being patched.
Another fixing method is down-sampling, also known as resampling, which uses a smaller, more simple statistical computer to learn from only the truthful concepts from the original computer. That will significantly reduce the potential of the learned data, and determining what concepts and connections are truthful is a tedious task. The smaller the new computer, the cleaner it is expected to be, but now the statistical computer becomes more like a digital computer, which uses traditional bottom-up algorithms to return truthful (and boring?) output.
Back to the poisoning: If the statistical computer is shared between different users with continuous learning enabled, an interesting side effect can happen in which, if one user manages to train the computer on a personalized message so that another user can retrieve from, the two can exchange messages (geek speak: cross-site scripting). That is useful for many purposes, including sharing messages privately. An example is: Alice tells the computer that "It's a fact that I told Bob <something>" and Bob asks the computer, "What did Alice tell me?" It is even more interesting when some Malice wants to read the private message by asking the computer, "What did Alice tell Bob?"
If the computer is shared across the world (i.e. world computer), then it becomes a new kind of Internet, and that side effect capability of communication over a learning machine may be called telepathy.
Covert communication over a learnable worldwide computer. Picture by myself.
5. Designing the statistical computer
We have taken a look at the abstract statistical computer. Now, let's try to imagine what a realistic version will look like.
5.1. Hardware design
I'm not a computer designer but a thinker, so let's just sketch the form of the hardware here, and leave the implementation details out.
A reminder about the abstract statistical computer: It has many layers, each layer represents both processing and memory. Input data come (from the outside) to the first layer, then pass to the next layer, be processed (i.e. transformed), and then either pass to the next layer (to be processed by a new method), or back to the same layer (re-processed) or to an old layer (to be processed by an old method) before appear on the last layer with represents the output. Actually, if the processing finishes at a certain point (instead of going on forever), then we can think of the data as passing in only one direction from input to output, with some old layers being duplicated in later stages. That's the basis for the realistic hardware design.
In the most basic design, the statistical computer is just one layer comprised of a processing unit (a.k.a. processor) and a memory unit. Input data come from peripheral input devices (mouse, keyboard ...) to the memory, which are picked up by the processor where data are transformed by a sequence of steps. After each step, the new, transformed data is saved to memory, then picked up again to be transformed further (due to the processor focusing on processing and having no big memory). Finally, after the last transformation, the data becomes output and is presented to peripheral output devices (screen, printer ...).
A statistical computer can have just one layer. Picture by myself.
That's pretty much a traditional computer design, so the widespread digital computers can run statistical programs just fine. However, with data being swapped back and forth between the processor and the memory, the performance is hindered significantly by memory speed (assuming the processing unit is not way too slow for statistical operations). That applies to both cases: when a problem has significant depth (the number of memory swaps being the number of layers) or significant breadth (data in each layer must be split up to be processed sequentially before moving on to the next layer). To reduce processing time, depth and breadth must be reduced with clever algorithms (or less complex problems), but breadth can also be reduced by brute force: having more memory than the problem size.
So, a faster statistical computer will need higher memory speed and size, with the focus on size to some extent; after that, the focus is on memory speed, better algorithms, and better defined problems (to restrict depth in the first place).
Ideally, the memory should be at least the same size as the amount of data that can be processed each time by the processor, and has the same speed as the processor. For example, if a problem requires 1024 data units (e.g. bytes) at each layer, all layers use the exact same statistical operations, and the processor can process that data amount (with these operations) every 1/(3 billion) of a second (i.e. bandwidth for those operations is 3 GHz) then having the memory with that size and with the same speed as the processor means that 1024 data units can pass through 3 billion layers each second.
Only if the problem's breadth requirement (at each layer) is more than the amount of data that can be processed each time by a processor will we need to add more processors, assuming the total memory size is bigger than the problem's breadth requirement. Note that the increase in the number of processors only deals with the problem's breadth, not depth.
Note: If we keep increasing the number of processors (and memory size accordingly) to more than the breadth requirement of a single problem, then we'll be able to process many problems at the same time. The time to process one problem is not reduced, still assuming that we have already satisfied the problem's breadth requirement.
In the real world with constraints, if the ideal memory size, speed, or processor bandwidth could not be achieved, then we would have no way around splitting up each layer into many parts and using many processors to process each part in parallel.
5.2. Software design
The design of software starts with designing the computer language that can bridge the gap between the "metal" of the computer and the desired solution the best, which is a combination of correctness, performance and maintainability, with each of these can be broken down further.
Designing software for the statistical computer is no different. As mentioned in the introduction of the abstract statistical computer, a statistical program may consist of two components: a traditional (digital) component and a statistical component. The word "component" means either data or program. It's quite abstract, but I use it to avoid saying "a statistical program consists of [ . . .] and a statistical program". It's also more correct because, as we have seen with AI/LLM, the "program" can actually just be some numerical data that are fed into a thin layer of digital program that simulates a neural network in a suitable way to be run on a massively parallel computer. And in that specific case, the truthful math operations performed on that parallel computer and the thin layer of digital software comprise the essence of the "traditional program" in the abstraction. So, with the statistical program, the difference between "program" and "data" is blurred.
Isn't that already the case with any program after being compiled into an obscured executable file of machine language nowadays?
We won't dig into the details of neural network simulation, lest our discussion be outdated when another equivalent method appears. Instead, we will consider them as implementation details that can be encoded right in the hardware. Here, we only focus on the higher level abstraction of the software, starting with programming language.
5.2.1. Programming language
The language for the traditional part can be exactly like the prevalent languages (C, C⁠+⁠+, Python, Ruby, JavaScript ...). The language for the statistical program/data part must expose the statistical capability of the computer to programmers, allowing them to create and edit the program in every possible way, while hiding the irrelevant details from them. This means that the language should be presented at many levels, from low to high, as follows:
At the lowest level, the language presents to programmers the statistical toolkit that the processor can support. This is similar to assembly language in traditional computers. For the case of neural network simulation, these low-level operations can be: replace the activation function with a faster one, change the activation function at the nodes at certain layers, disable the link between two neurons, or add a link between them, change the weight value of the links ... These operations can exist in the firmware of the processor, and much care is needed to balance between the hardware capability and the desired application.
At the next higher level, the language presents to programmers more abstracted operations that focus on higher level use of the statistical toolkit. These are implemented from lower level operations at the previous level. Here, programmers can focus on how learned data is represented and how statistical induction should work. In the case of neural networks, programmers can focus on network design aspects such as:
Designing network structures, choosing the number of layers and neurons, designing how they are connected to each other and how pruning works.
Separating each layer into named groups of neurons, each group focuses on one specific feature (trait), and how data from one group in a layer pass to another group in another layer to make it easier to figure out the data flow of a feature to facilitate further debugging, enhancing and maintaining at feature/network/layer/neuron level in the future.
Implementing troubleshooting, auditing and security mechanisms.
The job of the programmer at this level is similar to that of a network engineer.
At a yet higher level, the language allows the application programmer to train the computer in the domain knowledge with operations such as, in the case of neural networks: collect and organize data, clean up data before processing, multiply the amount of data to amplify certain traits, design training procedures, process the output from neural network to desired values, select how many neural networks are needed to serve the job and how they work together. The numerical weights of a neural network is the compiled form of the program encoded in the language at this level.
At the highest level where the distinction between programmers and users is blurred (such as a map editor in games), the language allows the user to specify when, where and how the input data are passed to the lower level statistical program, and how the output should be used.
So the word "language" here is a stretch. It can actually be a group of languages, tools, and frameworks. But as long as they can fit together to help programmers create the desired program and can collaborate with each other through a human-readable medium, they can be considered as, or be converted to, one big language of data and operations.
Some may think the work above belongs to AI engineers. To me, as long as a person creates a program for someone to use, the creator is a programmer. In this view, the engineers behind AI/LLM products are programmers, while anyone who is limited to using that product (for an end goal or to create subsequent programs) is a user. The distinction is blurred sometimes, as it always has been.
5.2.2. Statistical software
Let's look at some imagined statistical programs and how they could be programmed:
5.2.2.1. Frontend
The frontend of an application focuses on the presentation of information to users. Here, we focus on the interface of an imagined comic reader program that allows readers to enjoy comics on various devices with different screen sizes: from big screen (such as TV) to no screen at all (such as a handy music player). The problem is reflow (one of the accessibility problems): Comic contains many pictures and text blocks organized in widely different orders and styles, but they still follow some regular patterns that make sense to readers. However, not everyone can enjoy comic books (such as people with vision issues), some want to read on small phone screens, some want to show the content on big TV to enjoy with friends, and some wish to be able to hear the comic on a bus. Furthermore, solving the reflow problem for such a complex layout and finely nuanced media type will pave the way for similar reflow problems with applications' graphic interfaces, websites, digitized text books, digital magazines and scientific papers with lots of tables, graphs and formulas.
Let's assume a comic book is scanned and uploaded to a statistical computer as a list of digital images. By creating a program that understands the content of these images and reflow automatically to suit the reading device, users can enjoy the comic without lots of additional efforts from publishers, and publishers, animators and authors have more tools to enhance the experience in more creative ways.
A programming language needs data structures and operations. The data in a comic book are concepts that people often use to talk about: scene, story block, text block, continuity, orientation ... of which the relationship can be broken down like this (in geek speak: ontology):
Concept
Description / Examples
Readability
The main concept to break down (low, medium, high).
1. Scene
A comic book is made of many scenes.
1.1. Story block
Each individual (mostly) rectangle block in a comic book.
Intended zoom level on a character/animal/object/scene when showing (10% — 400%)
4. Continuity
Is this story block separated from the previous or not (separated, continuous)?
5. Orientation
Viewing orientation of the scene (up, right)
The operations on these concepts will describe the relationship between them and the available actions to choose from:
Relationship: contain ...; from ...to ...; is ...; ... or ...; ... and ...; among ..., ..., ...; on ...
Actions: zoom in to/out of ... at ; cut out ... to ... in width and ... in height; set orientation to ...; transition ... from ... to ... at speed ...
Now we have a small markup language to describe a comic book in a top-down, semantic fashion, yet similar to how HTML and CSS are used to create a web page bottom-up.
To program with the language at level 3 and 4, programmers can train small neural networks to recognize the concrete concepts such as character and text, separate a comic page into concepts with relationship between them, then recognize the abstract concepts such as reading direction, the implied pace, continuity (between scene blocks and between pages) and orientation. Based on these recognized concepts, the programmers can manually choose the appropriate action on those concepts to make it easy to read the comic on different screen sizes without compromising the understanding (improving readability). They also need to give examples where the actions may harm readability. Doing so for lots of comic pages of various styles, and they have the training data for a neural network to learn the pattern from.
Due to limited time and training data, programmers must classify and annotate a lot manually until the neural networks can automate it with acceptable accuracy. By then, we have a program that can understand comic books.
This pre-trained neural program can decipher a lot of comic pages. Some comic pages with special styles will still need to be annotated to work correctly, but the overall effort is now significantly reduced.
Similarly, the authors, animators and publishers can annotate some parts of their comic pages to override the decision of the program to enhance the digital reading experience (e.g. animate some scenes, add sound here and there, add description for a scene).
With the pages being broken down in a deeply semantic way, another neural network can be trained to produce a text description for the pages, and, with the implied reading pace also be detected (or be annotated manually), a text-to-speech program can read aloud a comic page like a music sheet.
Converting a comic page to plain text, then to speech. Picture by myself.
After that, the challenge will be to ensure the comic reader can run fast on low-end devices.
5.2.2.2. Backend
The backend of a program focuses on business workflows. A statistical program can help where the concepts are fuzzy, the actions are hard to describe explicitly, and the cost of wrong guesses is not severe. An example is performance monitoring and troubleshooting.
Let's imagine we have a backend that receives user requests, processes them and prints some logs to a log storage. During the lifetime of that program, it may experience slowdowns, interruptions or unexpected errors for various reasons (code bugs, network errors, memory constraints, disk errors, OS errors). So to maintain the quality of service, that program needs to be monitored and actions be taken to recover it if needed. Normally, that work is done by an operation team with the clues taken from the program's verbose run log. This verboseness harms performance but is much needed to troubleshoot when things go wrong, and even that may not be verbose enough by then. So the more complex the program, the more verbose the log, and the harder the job is.
It would be better if there was a program that could help the operators with detecting issues, explaining them and taking appropriate actions while not causing severe harm to performance. We can design a statistical program that acts as a watchdog that runs alongside with the backend program, receives the run log as input and decides the intervention to be made on the main program as output.
Such a watchdog program needs to understand the backend deeply, so we can use this concept tree:
Performance: The main concept to break down
Feature
Flow
Function
Code block
Code line
Main logic
Error handler
Bottleneck
Resource access
File read/write
Database read/write
Network read/write
Queue read/write
IPC read/write
Depth (of instrumentation)
Breadth (of instrumentation)
The watchdog vendor can train their statistical program to recognize these concepts in common programming languages. The developers of the backend can then point the watchdog to higher-level concepts in their project, such as: what domain it is, what features are there, what are the main functions of each feature (e.g. GET handler for "retrieving user info" feature). Then the watchdog can inspect the source code, differentiate between business logic and error handlers, where the resource reads and writes happen, and insert its own log (instrumentation) into the flow of each feature, deep in the function calls, and in such a way that each log can be turned on/off at run time by an external variable (that will be read every minute). After that learning and instrumentation phase, the watchdog exports its knowledge to a file to be used in the runtime learning phase later.
At runtime, still in the learning phase, the watchdog disables all instrumentation code except the top-level ones. It reads the main program's run log as input to learn about the performance metrics in normal situations and save the finding to a data file that will be used as a performance baseline for production.
Then, in production time, when the watchdog detects consecutive slowdowns on the same feature (which hints that it will continue to happen), it will enable the corresponding instrumentation selectively, measuring performance of the feature at a deeper level (flow → functions → code blocks), focusing on high-level function calls first to determine where the bottleneck are, and only dive deeper into the top 3 bottlenecks. It may do so until it finds the code block that causes the slowdown, or when the depth of instrumentation is too high (which itself harms the performance too much).
All these data are saved to a log storage (same or different from that of the main program) where they are analyzed further to extract the potential root causes and evidence. These findings are then reported to the operator in simple terms.
Giving paddles to the watchdog to drive the backend. Picture by myself.
In a similar fashion but focusing on error handling, the watchdog can insert instrumentation code to exception handlers to print out only in-scope variables that may contribute to an exception at these places (instead of printing out all variables in the scope). At runtime, when an exception happens, only the most relevant variables are printed out to log and are analyzed further to try to pinpoint the root cause. It can do so since it is pre-trained on the known exceptions of the supported languages, and combining that with knowledge of the program and runtime data is a good way to filter out irrelevant explanations of the error among all possible causes.
5.2.2.3. Game
Games are simulation programs that allow players to interact with the virtual world to have fun. The fun only comes when the program runs smoothly. However, the complexity in big games has reached the point where programmers have a hard time trading off between the realism and the smoothness of the simulation. Usually, programmers choose realism to keep their quality standard high and differentiate their games with others, making hardware requirements keep increasing to compensate for smoothness, even at the cost of reducing the number of people who can pay for and enjoy their games.
Even on the highest performing computer, games still experience lags sometimes due to:
Other programs running on the computer taking away some computing resources.
Different scenes in a game putting different workloads onto the processor, making it hard to run smoothly scene to scene.
Network delays in multiplayer games making it hard to keep game flow steady, causing long syncing durations with game servers and with other players, and may even kick some players out of their games.
Rare and short lags (a.k.a. stutters or spikes) can be acceptable, but often or long ones cause frustration. Adding some statistical calculations in games can help reduce lags and improve players' experience.
5.2.2.3.1. Dealing with stutters
Imagine we have a simplified game loop which updates the state of game objects frame by frame like this:
deltaTime is the time it took for updateGame() and draw() to finish in the previous frame, and is used to estimate how long this current frame will take to update the game's state (updateGame()). deltaTime is often set to 16.67 ms (i.e. 60 frames per second — FPS) on the first time, before lastTime is available. Finally, draw() pushes the frame data to the graphics processor's buffer to finalize the frame's graphics and render it later.
The simple calculation of deltaTime works well if the game can use all computing resources the whole time, and the workloads of all frames are the same. But as noted above, these requirements cannot be ensured, making the estimation wrong often. The more wrong it is, the more severe the lag is. So, if we could predict deltaTime better, then the game would run smoother.
Instead of predicting delta based on the last frame, the loop calls function predictDelta() to predict the delta time, update the game state based on that prediction, then measures the actual time it took for the whole chain predictDelta → updateGame → draw to finish, and add the actual data to its knowledge (learnLesson()) to make better prediction the next time.
predictDelta() and learnLesson() are statistical functions.
predictDelta() not only predicts the delta time for the current frame but also predicts the current scene and the would-be user's input, then derives the predicted delta based on these. A "scene" here means a short description of the current frame, and "user's input" is the input from the user, collected during the processing of a frame. They can be very detailed or be abstracted as a general scene type and input type, as long as they provide enough data to predict the delta. The function should run fast and in constant time (time to predict is the same for any scene and input) to not become a bottleneck itself.
learnLesson() adds a sample to the knowledge base of predictDelta(). It combines the actual (scene, input and delta time) with the prediction into a data structure for samples, which will be used to train predictDelta(). The training should happen at a later time to not change the prediction abruptly, but not too long after knowing that the predicted delta is too far off from the actual delta. The function should run fast, leaving the actual training to another processor running in parallel.
Over time, predictDelta() will make better guesses since it can combine knowledge about the game with knowledge about the player's behavior and their computer performance. The knowledge of the game can be provided by the game's vendor using a concept tree similar to this:
left, right, forward, backward, run, walk, draw_weapon, aim, fire
2.2. camera_​control
up, down, left, right, zoom_in, zoom_out
3. hardware
3.1. cpu
top_dog, high_end, mid, low_end, potato
3.2. gpu
alien, high_end, mid, low_end, integrated
It means that delta time depends on high-level scene description, user input, and hardware performance. Games can build scene description easily since they already manage all game objects in a scene. They are also often tested on various hardware with different performances to find issues and be optimized, so the vendor can use this ontology to dissect the top factors affecting delta time (a.k.a. frame time), have the statistical machine learn from the observed relationship between these factors and delta time, export that knowledge to a file to ship with the game. Then, on the player's machine, learnLesson() will use that knowledge and fine-tune it further to match the actual machine's performance and the player's style.
In this way, the learned knowledge is similar to a big state machine that can be configured (automatically) on a per-machine, per-player basis.
Not only observing and guessing delta time, the statistical functions can also shape the actual delta time to an ideal time. If we change predictDelta() to return an additional ideal delta time for each scene (which is 16.67 ms — 60 FPS by default), change updateGame(predictedDelta) to updateGame(predictedDelta, idealDelta) and change its inner working to accept as input the ratio max(1 - idealDelta ÷ predictedDelta, 0)% as a "trade-off level" (the higher, the more trade-offs), then it opens chances for the inner functions to sacrifice the quality of their calculations to some extent to move predictedDelta as close to idealDelta as possible. Then, learnLesson() will assess the effectiveness of this method over time and stabilize idealDelta to an appropriate value for each scene to maintain the best trade-off level.
To allow the inner functions of updateGame() to understand the trade-off parameter, game designers can take samples of typical scenes, and decide on a high level, which objects, which visual effects can be excluded from the computation at each trade-off level (e.g. 0%, 1 — 10%, 10 — 30%, ...). Then, the decisions for each scene will be learned by a statistical computer and be translated to the specific trade-off to be made for each function inside updateGame() to the smallest tunable unit supported by the programmer. All this work should be done by the vendor to keep the integrity and quality of the game as desired.
This both-way adjusting method is called "self-fulfilling prophecy." It allows the game to adjust both frame time and visual quality dynamically to reduce lags and improve players' experience. The per-machine training can also happen inside a benchmark program typically shipped with the game, with the experience rating from the player as data to learn from (i.e. warm-up).
5.2.2.3.2. Dealing with network lags
For networked multiplayer games, which are mostly about real-time interaction between players to achieve some goal, responsiveness is of utmost importance. Responsiveness means that the game transfers the actions of one player to the others in a timely, predictable manner. To improve responsiveness means to reduce the delay (i.e. latency) of communication between clients and servers, and reduce the fluctuation of that delay over time (i.e. jitter).
Two ways to achieve that are: (1) reducing the average size of exchange messages and (2) reducing the number of messages sent. These can be done by having clients and servers predict the game state as match and as correct as possible, then only send messages to each other if there are any major updates to that prediction. This prediction can happen because there are biases in gameplay design, map design and general play styles, not to mention each individual's play style. So a game designer and a network engineer can co-create an ontology similar to this:
Then, they can train a neural network on the server-side to recognize these generic game states, recognize when one state often leads to another. Then, they capture the server traffic and take note of the actual messages sent to/from the server and how they correspond to the game states. Finally, we would have a statistical function that understands game states and uses that to predict the type of messages that will be exchanged and their frequency.
That learned knowledge can then be transferred to clients on a map-by-map basis so that the clients are able to agree with the server on the predicted game state, messages, and frequency most of the time, just like a mastermind who teaches its students just enough knowledge they'll need. And since each client and the server understand each other well, they expect the same thing now, so they can devise a new encoding scheme for their messages to reduce their size and frequency. This reduces latency and jitter, which create the sense that the client is near the server physically, while they actually close by mentally.
In this way, network traffic will be smooth and predictable at the cost of complexity. The clients and the servers must allow the message encoding scheme to be changed many times in a session, even per client.
5.3. System design
As useful as a statistical program can be, there is a big problem when we combine them together to form a bigger system: Due to its statistical nature, a program may give wrong answers sometimes, especially when the input problem differs much from what it learned from. This problem manifests in two dilemmas:
It is hard to prove the level of correctness of a statistical program: The bigger the program (in terms of size and variety of input and output), the harder it is to prove how often it returns the correct answer. Since we create such a program to solve problems that are not well-defined, which means the form of input and output are often not specified to the last detail, trying to scope down the input and output can defeat the purpose of the program in the first place.
Even if we managed to prove the correctness of some statistical programs, using the output from one program as the input for another (i.e. chain of commands) would reduce the confidence in the final output drastically. For example: ten statistical programs, each proven with 90% correctness on average, are put together in a chain, then the average correctness of the final output is only 0.910 ≈ 35%. But a system cannot avoid this chaining if we want to solve problems that are more complex than what a single program can solve.
The above dilemmas dictate the general rules to build a reliable system of statistical programs:
The programs must be small enough (in terms of input and output size and variety) to enable some level of correctness to be proven.
When the output of a program is used as input to another, that output must be scoped down (in terms of size and variety) to make it easier to derive the correctness of the whole.
The number of programs in a chain (i.e. chain length) should be small, and the correctness of each one should be as high as possible.
These rules tell us that, to create a reliable system to solve a complex problem, we cannot just combine an arbitrary number of programs together. Instead, we must find the shortest way to describe the correct solution, then find the shortest chain of programs that generates such a solution description from the input problem, and use as reliable programs as possible. But, that means:
Most programs in a chain should be traditional, well-tested programs.
An interesting conclusion from this is: if we use a statistical program (named S) to create a traditional program (named T), we are just transferring the reliability from S to T without improving the whole. It means that by using T (created from S) to solve a problem, we will achieve at best the same reliability as using S directly. This S → T is simply a translation step that we studied earlier, which means the result can be worse compared to not having to translate at all.
To improve the reliability of T, we can do the same as we would to improve the reliability of S as a system: break it down to the smallest number of parts, analyze the correctness of each part, then enhance each one to bring it to the highest level of reliability.
This also means that we cannot be confident when using statistical programs to do the testing, since it is equivalent to creating a chain that consists of the program to be tested (subject) and the testing program (tester). We can only trust the final report as much as we trust the tester.
If the system that we design is used by another system and so on, it is best to have no statistical program in critical chains, second-best to have two interfaces connecting the two systems: one using reliable traditional methods (but limited in capability), and the other using less reliable statistical methods but can do more, and using solely statistical programs in a critical chain is the least favorable option.
6. Conclusion
The statistical computer, the child of the Digital Computer and Statistics, gives us the power to further animate our creations. Still within the realm of Traditional Computer, yet can be done easier with Statistics. Coming with it are new possibilities, not without limitations and the danger of misinformation.
As shown in the examples, through new hardware and programming languages or frameworks, another layer of semantics and animation can be coated on top of traditional software, giving them the chance to inspect deeper into the meaning of the data they read and even reflect into themselves to change their behavior at runtime within the established boundaries of concepts. It is like giving software a second level of dynamics.
Can we expect the third, the fourth, and so on? Will it have the same relation to the second as the second to the first, and the latter to the zeroth?
From what we know about software, after much effort being spent on statistical programs, it will reach a point where that effort will be better spent on hardware, with the aim of powering them to reach higher movements through maybe self-updating machine code and then, self-modifying structures. What will the future look like with that software and hardware combination?
In the next post, we will look at a naive view of that future, as a preparation before the following post, which will be about what humans and (digital) computers see in each other.