The black box problem
In simple terms, a black box is any system you can only observe from the outside: you see what goes in and what comes out, but not how one turns into the other. The term comes from engineering and systems theory, and it fits most modern AI. (Blackbox AI is also the name of an unrelated commercial AI product.)
One problem comes from backpropagation itself: we cannot explain what the values inside the network’s weight matrices actually represent.
Modern AI also makes the source code, whether transparent or not, less relevant than other factors in how an algorithm functions. Machine learning algorithms, and especially deep learning algorithms, are typically built on only a few hundred lines of code. Their logic is learned from training data and is rarely reflected in the source code. Some of the most effective algorithms today are also the most obscure.
We know that a black box works by measuring its accuracy on test data, but we cannot explain how it works, so it can be right for the wrong reasons. In the 2016 paper that introduced the LIME method, the authors deliberately trained a classifier to tell wolves from huskies on photos in which every wolf had snow in the background. The explanations showed that the model was detecting snow, not animals.
Why does black box AI exist?
So what exactly causes the black box problem? Some systems are opaque by design: companies keep their models, weights and training data secret to protect intellectual property. Others are opaque by nature, above all artificial neural networks and deep learning.
Artificial neural networks consist of hidden layers of nodes. Each node processes input data and passes its output to the next layer. Deep learning uses large networks with many hidden layers that “learn” by recognizing patterns, and this can become extremely complicated. We see the input and the output, not what happens between the layers, so we cannot know how the nodes analyze the data. Large language models, with billions of parameters and, in the leading commercial cases, private weights and training data, are black boxes in both senses.
Trusting a black box model means trusting not only its equations but also the entire dataset it was built from. Every reasonably complex dataset contains imperfections: missing data, measurement errors, systematic mistakes in collection, or a distribution different from what we assumed.
One common problem with black box models is data leaking, where information about the label y enters the input variables x in a way you would not suspect from the names of the variables. You think the model predicts the future, but it only detects what has already happened, for example clinical notes that reveal an outcome before it is officially recorded.
Some researchers respond by explaining black box models after the fact, usually by mimicking their predictions with a completely different model or with statistics that give incomplete information about how the black box computes. In 2019, Cynthia Rudin argued in Nature Machine Intelligence that for high-stakes decisions this is the wrong approach, and that we should use models that are interpretable from the start.
Black box AI vs white box AI
White box, or glass box, models show their reasoning: a linear model shows the weight of each factor and a decision tree each split. On structured, tabular data they are often nearly as accurate as complex models, which is Rudin’s main point. Black box models, such as deep neural networks and language models, usually win on images, sound and text. The choice is a trade-off between accuracy and explainability, made per decision.
Is black box AI safe, and is it legal?
It depends on the stakes: a wrong song recommendation does little harm, a wrong credit or treatment decision can harm people unnoticed. In 2019, Ziad Obermeyer and colleagues showed in Science that an algorithm used by US hospitals to pick patients for extra care treated past health costs as a measure of need. Less is spent on Black patients at the same level of illness, so it underrated them; correcting it would raise their share in the program from about 18% to 47%.
Black box models are not illegal, but opacity is not an excuse:
- In the US, the Consumer Financial Protection Bureau stated in May 2022 that lenders using complex algorithms must still give specific reasons for a rejection; complexity is no defense.
- In the EU, the GDPR gives people subject to automated decisions a right to “meaningful information about the logic involved”. In February 2025 the EU Court of Justice ruled that the company must describe the procedure and principles actually applied, so that the person understands which data were used and how.
- The EU AI Act requires high-risk systems to be transparent enough for their users to interpret the output (Article 13) and gives affected people a right to “clear and meaningful explanations” of the system’s role in a decision (Article 86). After the Digital Omnibus of July 2026, the main high-risk obligations apply from 2 December 2027.
Technical transparency
Technical transparency, meaning disclosure of the source code and of an algorithm’s inputs and outputs, can build trust in many situations. However, most algorithms are developed by commercial companies that treat them as valuable intellectual property. Some have proposed a compromise: disclose the source code to regulators when a serious problem arises, and let them make sure the process is fair to consumers.
This simply shifts the burden of trust from the algorithm to the regulators, which becomes less acceptable as more personal and social decisions are handed to algorithms. Code alone also does not explain a decision: the EU Court of Justice held in 2025 that the mere communication of an algorithm is not a sufficiently concise and intelligible explanation.
Another problem with technical transparency is that algorithms are susceptible to fraud when attackers know the source code.
Explainable AI: resolving the AI black box problem
Because the black box problem keeps growing, AI developers now pay much more attention to solving it.
The answer is Explainable AI, or XAI for short: a set of tools and frameworks that help you understand and interpret the predictions of machine learning models. It lets you debug and improve a model and helps others understand how it behaves. XAI is often discussed in relation to deep learning and plays an important role in FAT/ML, the field of fairness, accountability and transparency in machine learning.
XAI provides general information on how an AI system makes decisions by disclosing:
- The strengths and weaknesses of the program.
- The specific criteria the program uses to make a decision.
- Why the program makes a specific decision as opposed to the alternatives.
- The level of trust appropriate for different types of decisions.
- What types of errors the program is susceptible to.
- How to correct errors.
Two methods became standard. LIME (2016) explains a single prediction by fitting a simple model in its neighborhood, and SHAP (2017) gives each input feature an importance score for a given prediction, based on Shapley values. A third kind answers the question people actually ask: what would have to change for the decision to be different? The EU Court of Justice named exactly this, how different data would have changed the result, as one appropriate way to explain an automated decision.
As more companies embed AI in their business processes and automate decisions, we need transparency about how these models make an ever larger share of those decisions, including how bias is handled. A good balance between transparency for auditors and transparency for users influences whether a solution is accepted at all.
Opening the box: interpretability research on LLMs
Researchers have also started to look inside large language models. In May 2024, Anthropic extracted millions of features, recurring patterns of neuron activity, from Claude 3 Sonnet; one responded to the Golden Gate Bridge in several languages and in images, and when amplified, it made the model claim to be the bridge. In March 2025, tracing Claude 3.5 Haiku showed that it picks a rhyming word before writing a line of poetry, and that it does mental arithmetic along two parallel paths while describing, when asked, the carrying method taught in school. The method still captures only a fraction of the computation.
A model’s own explanations are not a reliable window either. In an April 2025 study, reasoning models that used a hint mentioned it in their visible reasoning only about 25% of the time (Claude 3.7 Sonnet) and 39% of the time (DeepSeek R1).
So is it true that AI is a black box? For large models in 2026, mostly yes, but no longer completely. The box can be opened in places, and for decisions about people, the law now expects someone to open it.





Any questions? Let's talk!
Write to us,