AI Cosmos: An Agentic Infra for Situated Learning
Organizations: Tsinghua University
Abstract
Large language models (LLMs) can improve task performance during learning, yet these gains do not necessarily reflect learners' ability to thereafter apply the knowledge and skills independently. We present AI Cosmos, an agentic infrastructure for situated learning that organizes learning around two complementary principles: scenario-based participation and cumulative assets of practice. AI Cosmos organizes learners and role-specialized agents within learning scenarios that integrate task-relevant knowledge and, when needed, executable workbenches. An asset-memory loop preserves the processes and outcomes of practice as reusable assets with explicit provenance and dependencies. We evaluate scenario-based interaction through two preregistered randomized controlled studies examining the acquisition of legal reasoning and programming competence, holding the same underlying LLM across conditions. AI Cosmos achieves greater learning gains than a conventional LLM in legal reasoning and higher mastery of unseen programming problems than an LLM-as-Teacher baseline.
Figures & tables
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Vanilla LLM | LLM-as-Teacher | AI Cosmos | Test ( ) | |
| ( ) | ( ) | ( ) | ||
| Female (%) | ||||
| Prior legal training (%) | ||||
| Age (years) | ||||
| AI literacy (/170) | ||||
| Self-efficacy, GSES |
| Vanilla LLM | LLM-as-Teacher | AI Cosmos | Test ( ) | |
| ( ) | ( ) | ( ) | ||
| Female (%) | 11.8 | 11.1 | 0.0 | , 0.31 |
| Age (years) | 18.5 0.6 | 18.7 0.7 | 19.3 1.9 | , 0.20 |
| First-year (%) | 94.1 | 88.9 | 84.2 | , 0.64 |
| Basic- algorithm track (%) | 47.1 | 38.9 | 47.4 | , 0.85 |
| Data-structure track (%) | 52.9 | 61.1 | 52.6 | , 0.85 |
| Grade | Anchor | Description |
| G1 | Target algorithm not formed | Implementation direction is inconsistent with the target algorithm, or no valid algorithmic intent can be identified. A brute-force or non-target solution is graded here even when it earns partial credit. |
| G2 | Intent present, key errors | The target algorithm is attempted, but with defects in complexity, boundary handling, memory safety, or a critical invariant. |
| G3 | Main flow present, details unstable | The target algorithm’s main framework exists but still contains key implementation errors. |
| G4 | Framework essentially complete | Only minor, non-fundamental defects remain. (Criterion-mastery threshold.) |
| G5 | Correct and complete | The target algorithm is implemented correctly and passes; corresponds to error code EOK . |
| Code | Name | Definition | Severity |
| E00 | Not submitted / incomplete | No valid submission, or no assessable result was produced. | medium |
| E01 | Compilation / syntax error | Code does not compile, or the submitted file is not executable source. | high |
| E02 | Incomplete skeleton | The basic structure of the target algorithm was never formed. | high |
| E03 | Critical maintenance error | A core invariant or key maintenance step is wrong, yielding incorrect results. | high |
| E04 | State / boundary error | The main flow is present, but a conditional branch or boundary case is mishandled. | medium |
| E05 | Complexity / termination error | Complexity is inadequate or the termination strategy is unstable, failing some test cases. | high |
AI in Education
AI in Education studies how artificial intelligence can support teaching, learning, assessment, and educational decision-making.
See all 264 papers