Research review
Do architecture diagrams reduce cognitive load? What the research says, for people and for agents
1 Dec 2026
Twenty years of diagram experiments and a year of context-engineering papers, read together: pictures help when they are focused and layered, and agents gain from a structured map, not from more prose.
The claim in one paragraph
Nobody has run the experiment that would settle it: a C4 model against a written description of the same system, timed and scored, for people or for agents. What exists is two bodies of work that rarely cite each other. Twenty years of controlled experiments on diagrams say that a picture lowers the effort of understanding when it is focused on one question and at the right level of detail, and does little or costs time when it is a second source to cross-check. A year of context-engineering papers says the same about coding agents: free-text context files barely move task success, while a structured, derived map of the architecture does. Read together, the variable that matters is structure and focus, not whether there is a picture.
What twenty years of diagram experiments found
The UML literature is the closest thing to a controlled record. The results are real and they are mixed. Adding object diagrams to class diagrams improved design comprehension by about 35% across a family of four experiments. Class and sequence diagrams next to source code gave roughly 12% on comprehension tasks in an experiment and its replication. With professional developers, UML documentation made maintenance changes significantly more correct.
The other half of the record matters as much. Analysis-level models, handed over alongside the code, did not improve comprehension or modifiability, and the participants who browsed both took longer. Varying the level of detail across four experiments with 81 students produced no significant difference. Diagrams that answer a question help; diagrams that add a second artefact to reconcile with the first cost time.

Why some diagrams work: the notation itself
Moody’s “Physics” of Notations (IEEE TSE, 2009) gives the mechanism. Its measure is cognitive effectiveness: the speed, ease and accuracy with which a representation is processed. A good notation shifts work from slow, sequential reasoning to fast, parallel perception. By that measure UML scores poorly, which may explain part of the spread above: the same information drawn badly is read slowly. One experiment found that changing only the graphical elements of an architecture view changed comprehension results.
- Complexity management — split a large system into views a reader can hold at once, instead of one diagram with everything.
- Cognitive integration — give the reader explicit ways to move between those views, so splitting does not create a navigation problem.
- Perceptual discriminability — different kinds of thing should look different at a glance, before any label is read.
- Graphic economy — a small vocabulary of shapes a reader can remember beats an expressive one they cannot.
Detail is a dial, not a setting
The level-of-detail experiments did not find a winner, but they leaned in opposite directions: more detail tended to help people understand a system, less detail tended to help them change it. That is the argument for layered views rather than a better single diagram. The C4 model is one concrete form of it: four zoom levels, each answering one question for one audience, with the reader choosing the level instead of the author choosing for them.

What people actually ask about an architecture
Rukmono, Zamfirov, Ochoa and Chaudron interviewed 17 practitioners who explain architectures or have them explained (Empirical Software Engineering, 2026). Good explanations covered the system’s context, how its complexity is managed, and the rationale behind decisions. Quality attributes were the part most often left out. Structure is necessary but not the whole answer: a diagram that shows boxes without the reasons for them leaves the newcomer’s most frequent question open.
Newer tools are consistent with this. RoleViz, which annotates architectural elements with their role, scored better on understanding tasks than a commercial tool in a 16-person study, without raising perceived cognitive load.
Context engineering: the same lesson, for agents
Coding agents now get their own documentation: AGENTS.md, CLAUDE.md and similar files that describe a repository in prose. A study of 466 open-source projects (MSR 2026) found no shared structure for what goes in them. The first rigorous evaluations are sobering. Gloaguen et al. at ETH Zurich found that context files did not significantly improve task success and raised inference cost by more than 20%; developer-written files helped slightly and LLM-generated ones hurt slightly, neither significantly. A later ablation across Claude Code and Codex, 17 tasks and 288 runs, found no measurable effect of context strategy on correctness.
Structure changes the picture. The Repository Intelligence Graph derives a deterministic map of the architecture from build and test artefacts and hands it to the agent as JSON. Across repositories and agents it raised accuracy by 12.2% and cut completion time by 53.9%, a 57.8% reduction in seconds per correct answer. Experience reports such as Codified Context arrive at the same design from practice: a small, stable core of facts, specialised views on demand, and a cold store for the rest.

The two literatures, side by side
Put the human and the agent results in one grid and the dividing line is the same. What helped was focused and structured: a diagram that answers one question, a map derived from the build. What did not help was more material without a job: models to cross-check against code, prose files an agent reads and then ignores.

What to do with it
None of this proves that a particular tool lowers anyone’s cognitive load. It does narrow down what a useful architecture description looks like, for both kinds of reader.
- Layer it — one view per question, with zoom between them, rather than one diagram that tries to serve every reader.
- Keep one source — a model the diagrams are drawn from, not diagrams maintained beside the code; a second source to reconcile is where the experiments lost time.
- Write down why — decisions and quality attributes are what explainees ask about and what diagrams most often omit.
- Give agents the model, not a summary of it — structured, queryable architecture beat prose context files in every comparison so far.
How to read it
The diagram experiments are mostly with students, mostly on UML, and a decade or more old; the agent studies are recent preprints on specific benchmarks. The numbers come from different measures and are not comparable across studies, which is why the charts mark direction rather than share an axis. The gap is the obvious next study: the same system as a layered model and as text, with comprehension time and error rates for people and task success and cost for agents. We would like to run it.
Sources
- The Impact of UML Documentation on Software Maintenance: An Experimental Evaluation — Arisholm et al., IEEE TSE 2006
- Do UML Object Diagrams Affect Design Comprehensibility? Results from a Family of Four Controlled Experiments — Torchiano et al., JVLC 2017
- Source-code comprehension tasks supported by UML design models: a controlled experiment and a differentiated replication — JVLC 2015
- On the Impact of UML Analysis Models on Source-Code Comprehensibility and Modifiability — Scanniello et al., ACM TOSEM 2014
- Does the level of detail of UML diagrams affect the maintainability of source code? A family of experiments — Fernández-Sáez et al., family of experiments
- The “Physics” of Notations: Toward a Scientific Basis for Constructing Visual Notations in Software Engineering — Moody, IEEE TSE 2009
- Interactive Role Stereotype-Based Visualization To Comprehend Software Architecture (RoleViz) — IEEE, 2020
- An Explanation of Software Architecture Explanations (preprint: From Expert to Novice) — Rukmono, Zamfirov, Ochoa, Chaudron, EMSE 2026
- Evaluating AGENTS.md: Are Repository-Level Context Files Helpful for Coding Agents? — Gloaguen et al., ETH Zurich, arXiv 2602.11988
- Do Context Files Help Coding Agents? A Two-Agent Ablation Study on Real Repositories — arXiv 2607.27250
- Context Engineering for AI Agents in Open-Source Software — Mohsenimofidi, Galster, Treude, Baltes, MSR 2026
- Repository Intelligence Graph: Deterministic Architectural Map for LLM Code Assistants — arXiv 2601.10112
- Codified Context: Infrastructure for AI Agents in a Complex Codebase — arXiv 2602.20478
