WorksPhysics and Astronomy
ASTRA: An Autonomous Framework for Physics-Validated Analysis and Hypothesis Generation in Astrophysics
Abstract
We present ASTRA, an autonomous framework for physics-validated analysis and hypothesis generation in astrophysics without per-step human intervention. It integrates dimensional analysis, structural causal models, Bayesian evidence computation, and multi-wavelength data fusion in a single automated workflow. Five test cases on real observational data recover known results: Herschel filament scaling, Chandra Deep Field South cross-matching, SDSS galaxy correlations, Gaia causal inference, and Bayesian virial model selection. A sixth case runs unsupervised on synthetic galaxy data. The main sequence and mass-metallicity relation are recovered, and the outlier detector, with a false-discovery-rate threshold and no contamination parameter, recovers the blind injected fraction on ten sealed datasets (purity > 0.99) and flags nothing on the 3,000-galaxy sample. A knowledge-isolation ablation shows pattern detection and physical validation are invariant to removal of domain knowledge, which affects only interpretation. In a direct comparison, agentic-LLM and pure-ML baselines match the statistical fitting but not the physics-validation stage. They rarely derive the equilibrium benchmark, split evenly on the physical verdict, and adopt a supplied erroneous benchmark in all six trap runs, an astrophysics-specific fine-tuned model completes zero of six runs. On live SDSS DR16 data it flags 197 of 4,999 galaxies at a data-determined threshold, ranked extremes classifiable from withheld spectroscopy. These are recovery validations and capability demonstrations rather than discoveries, with hypothesis generation demonstrated qualitatively.
Introduction
Modern astronomical surveys generate petabytes of data requiring automated analysis. Multiple computational approaches are available to astronomers, each with distinct strengths and limitations.
Traditional Machine Learning and Statistical Methods: Well-established tools including scikit-learn, emcee, and nested sampling codes (MultiNest, dynesty) can process numerical data, detect patterns, perform statistical inference, and compute Bayesian evidence. These methods are widely used in astronomy with demonstrated success.
Large Language Models with Agentic Capabilities: Current frontier models (GPT-4, Claude, Gemini with tool use and agentic scaffolding) can perform multi-step reasoning, execute code, call external tools, and coordinate complex workflows through automated tool selection. These systems can perform many of the individual tasks demonstrated in ASTRA’s test cases, including statistical analysis, Bayesian model comparison, and even causal graph inference, through automated tool calling rather than explicit manual programming by the user.
Autonomous Science Systems: Fully autonomous research systems now exist: general pipelines generate research papers end to end ((Lu et al. 2024)), a successor has passed workshop-level peer review ((Yamada et al. 2025)), and chemistry agents drive laboratory hardware where success is machine-checkable ((Boiko et al. 2023; Bran et al. 2024)). Measured performance remains weak: the best solves a quarter of DiscoveryBench’s discovery analyses ((Majumder et al. 2024)), and an independent evaluation of general-purpose models as research assistants finds persistent failure at multi-step scientific reasoning and at novelty ((Cappello et al. 2025)). Autonomous discovery claims also draw scrutiny with teeth: the A-Lab, a robotic materials laboratory that reported 41 novel compounds in 17 days ((Szymanski et al. 2023)), was reanalysed by Leeman et al. (2024), who traced the failure to automated diffraction refinement misidentifying known phases as new compounds and concluded that no new material had been discovered; the paper carries a journal correction. Astronomy shows the same pattern. Frontier agents succeed on fewer than a fifth of astrophysics-paper replications ((Ye et al. 2025)). The AstroMLab series found a 7-billion-parameter as-
Code and documentation: https://github.com/Tilanthe/ASTRA_baseline.
© 2026 The Authors tronomy fine-tune scoring below its own base model on knowledge recall (Pan et al. 2024), though its 70-billion-parameter AstroSage matches frontier models on astronomy question answering (de Haan et al. 2025). Working agents such as Egent, which reaches expert agreement on 18,615 quasar absorption lines by quality-controlling a classical Voigt fitter (Ting et al. 2025), and Mephisto, which drives SED fitting at one per cent of exhaustive-grid cost (Sun et al. 2026), keep the physics inside the classical code the language model drives. No component in these architectures checks the agent’s own conclusions against physics; supplying that verification step is one of the elements ASTRA adds. A distinction should be drawn about what this does and does not guarantee. What the architecture guarantees is procedural: a specified, independent physics-validation routine — dimensional analysis, conservation-law checks, benchmark derivation — is executed deterministically on every run and cannot be skipped or overridden by an agent-generated interpretation. It does not guarantee that the physical conclusion is correct: the validation procedure, and the physical models it encodes, may themselves rest on incomplete assumptions or contain implementation errors. The filament analysis of this paper is a case in point (§ 1.1, rung 2): the encoded equilibrium benchmark was wrong, and what caught the error was the independent derivation, not the validation layer’s authority.
ASTRA’s Differentiation: While LLMs with agentic capabilities can coordinate computational tools, ASTRA provides two key differentiating features: (1) domain-specific physics validation through dimensional analysis, conservation law checking, and theoretical constraint enforcement (at the levels distinguished in § 1.2), which are not natively integrated into general-purpose LLM tool systems; and (2) a unified architecture specifically designed for astrophysical inference, with pre-integrated causal reasoning, Bayesian evidence computation, and domain knowledge. ASTRA’s value lies in providing an integrated framework optimized for astrophysical analysis, whereas LLMs provide general-purpose tool coordination that must be configured for each specific application. This differentiation is tested directly in § 3.5, where the same analysis task is given to code-execution-enabled agentic LLM agents and to a pure regression pipeline: the baselines match ASTRA on statistical fitting, but rarely derive or verify the physical benchmark, split evenly on the final physical verdict across identical runs, and adopt a supplied erroneous benchmark in every run of a controlled trap arm. An astrophysics-specific fine-tuned model (AstroLLama-2-7B-chat), run in the identical scaffold as a third arm, failed to complete the task in any of six runs; it degenerated before reaching either the fitting or the validation stage. This result indicates that this particular small fine-tuned model is unsuitable for the tested scaffold; it does not bear on the physics-validation ability of astronomy-specific LLMs generally (§ 3.5).
The Integration Challenge: While individual tools exist for specific tasks, astronomers typically must manually combine separate pipelines for data processing, statistical analysis, causal inference, and physical validation. This manual integration creates opportunities for inconsistent treatment of uncertainties, missed physical constraints, and difficulty reproducing multi-step analyses.
ASTRA addresses this challenge by providing an integrated framework that combines:
Numerical data processing and statistical analysis
Causal reasoning with structural causal models
Physical validation through dimensional analysis and conservation laws
Multi-wavelength data fusion with uncertainty propagation
Hypothesis generation from pattern recognition (demonstrated qualitatively; see the limitation noted below)
Bayesian model selection with evidence computation
This integrated approach provides a unified framework where physical validation, causal reasoning, and uncertainty quantification are applied consistently throughout multi-step analyses. While individual components use established algorithms (PC algorithm for causal discovery, bridge sampling for Bayesian evidence, dimensional analysis for physical validation), their integration within a single framework enables analyses that would otherwise require manual combination of multiple separate tools. A caveat applies to hypothesis generation: what the test cases of this paper demonstrate rigorously is automated analysis, candidate identification, and physics-based consistency checking; the hypothesis-generation component is exercised only qualitatively (e.g. interpretive hypotheses attached to the filament result in § 3 ) and has not been independently benchmarked to the same degree as the analysis and validation stages. We therefore present hypothesis generation as an architectural capability, not as a benchmarked result.
In this paper, we focus on six examples demonstrating how this integrated approach can be applied to astrophysical inference problems:
(i) Scaling Relations Analysis (§ 3): Dimensional analysis and physical validation of filament scaling relations (ii) Multi-Wavelength Data Fusion (§ 4): Probabilistic cross-matching with Bayesian uncertainty propagation (iii) Pattern Recognition (§ 5): Identification of established galaxy property relationships (iv) Causal Inference (§ 6): Structural causal model discovery in stellar data (v) Bayesian Model Selection (§ 7): Evidence-based model comparison with prior specification (vi) Unsupervised Candidate Identification (§ 8): Galaxy scaling relations and outlier detection on realistic survey data, with a real-data application to live SDSS DR16 (§ 8.7)
Tests 1–5 use real observational data, validating ASTRA’s ability to correctly recover known astrophysical results. Test 6 uses realistic galaxy survey data based on SDSS scaling relations to demonstrate both validation (recovering known relations) and unsupervised candidate identification (flagging outliers). In addition, § 3.5 reports a direct head-to-head comparison of ASTRA against agentic-LLM and pure-ML baselines on the Test 1 task, with a metric that isolates the contribution of the physics-validation layer.
§ 9 discusses why these results demonstrate ASTRA’s unique capabilities, clarifies ASTRA’s role as a tool to assist rather than replace astronomers, and § 10 concludes.
Scope of Claims
To align the claims of this paper with what the test cases actually demonstrate, we state explicitly what is and is not being claimed. “Autonomous” is used throughout in the restricted sense of autonomy of execution (multi-step analyses that run to completion without per-step human intervention) and not autonomy of scientific judgment, which remains with the domain scientist. The claims of this paper occupy the first three rungs of the following ladder; the fourth rung is defined but deliberately not claimed.
(i) Rung 0: Orchestration: Tests 1–5 (§ 3–§ 7) recover known astrophysical results from real observational data. These are recovery validations: the target relations are established science, so success validates the implementation and the integration of the analysis pipeline, not discovery.
(ii) Rung 1: Knowledge-independent analysis: The ablation of § 3.4 shows that ASTRA’s pattern detection and physical validation stages operate identically with all domain knowledge removed, deriving their benchmark (the critical line mass of the isothermal cylinder) from first principles at run time. Domain knowledge affects only the interpretation layer.
(iii) Rung 2: Independent verification: In the filament analysis of § 3, the knowledge base initially deliberately carried an incorrect equilibrium benchmark, in place of the correct . A first-principles derivation (Buckingham analysis plus numerical integration of the isothermal cylinder equilibrium) overturned the encoded value, and the difference flips the physical conclusion from filaments requiring additional confining support to filaments being subcritical. The validation layer here acts as an independent check on encoded knowledge, including when that knowledge is wrong. Rung 2 is a procedural guarantee — the validation runs and cannot be overridden — not a guarantee of physical correctness, which remains conditional on the assumptions and implementation of the validation procedure itself.
(iv) Rung 3: Scientific discovery: Not claimed anywhere in this paper. We adopt the standard that a discovery claim requires an insight that makes a domain expert say “I did not know that, and here is the evidence.” Test 6 (§ 8) demonstrates the unsupervised pipeline on data with known ground truth; the relations it recovers are embedded in the data generation procedure and the outliers it flags are simulated. A discovery claim would require a registered, prospective blind test: a knowledge-isolated run on data whose relevant relations are unknown to the operators, with predictions registered before unblinding and follow-up observations specified in advance. One ingredient of such a test, blind determination of the outlier flagging threshold, has been executed for the Case 6 detector under a sealed-dataset protocol with the analysis registered before unblinding (§ 8.4.2); it demonstrates threshold autonomy, a necessary condition for rather than an instance of discovery. A retrospective application of the Test 6 detector to live SDSS DR16 data, confirmed against spectroscopy withheld from the detector, is reported in § 8.7; it likewise makes no discovery claim.
Levels of Physical Validation
The term “physical validation” is used broadly in this paper, and it should be read at three distinct levels of strength:
(i) Level 1 — dimensional and unit consistency: checking that constructed relations and derived quantities are dimensionally consistent (Buckingham construction, unit bookkeeping). A necessary but weak check: any physically wrong relation can still be dimensionally correct.
(ii) Level 2 — comparison against established relations: checking a recovered relation against established physical or empirical results from the literature (e.g. recovered slopes against the Tremonti mass-metallicity relation or the Brinchmann main sequence; model preferences against the virial theorem’s dimensional prediction). Stronger, but it presumes the literature relation is applicable to the dataset at hand.
(iii) Level 3 — independent derivation from first principles: deriving the validation benchmark itself from governing equations at run time (e.g. integrating the isothermal-cylinder equilibrium to obtain ), so that the check does not depend on recalled knowledge. This is the strongest level, and the one that caught the incorrect encoded benchmark of § 3.
The test cases of this paper reach different levels, and we state which. The filament analysis (§ 3) reaches Level 3: the equilibrium benchmark is derived by Buckingham analysis plus numerical integration, and this derivation is invariant to domain-knowledge removal (§ 3.4). The Bayesian model-selection case (§ 7) reaches Level 2, comparing model evidence against the virial theorem’s dimensional prediction, with the amplitude comparison to resting on the same isothermal-cylinder model. The SDSS pattern-recognition case (§ 5) and Test 6 (§ 8) operate at Level 2: recovered slopes and relations are checked against published calibrations. The causal-inference case (§ 6) uses statistical conditional-independence tests plus explicitly stated domain-knowledge constraints, a Level 1/2 combination that ends in an undirected graph whose orientation is not derived. The multi-wavelength cross-matching case (§ 4) applies physical classification criteria (hardness ratios, X-ray-to-optical flux ratios) but performs no scaling-relation validation; its checks are procedural rather than physical, and we do not count them as physical validation in this taxonomy. Making these distinctions explicit strengthens the individual claims: each test case is validated at the level its method supports, and only § 3 demonstrates the Level-3 capability that differentiates ASTRA from the agentic-LLM baselines of § 3.5.
Scope and Limitations
What ASTRA Demonstrates: The six test cases in this paper show ASTRA can: recover or identify physical laws from data with theoretical validation; fuse multi-wavelength observations with proper uncertainty handling; identify established astrophysical relationships through pattern recognition; distinguish causation from correlation; perform rigorous Bayesian model comparison; and operate without supervision on realistic survey data to recover known relations while identifying unusual objects for follow-up.
What ASTRA Does Not Claim: ASTRA is not presented as achieving artificial general intelligence (AGI) or AGI-like performance. The system operates within defined astrophysical domains using established algorithms (PC algorithm, Bayesian inference, dimensional analysis, FCI causal discovery) combined through an integrated architecture. Results are validated against known physical theory and observational constraints. The system does not claim general reasoning beyond its training domains or autonomous operation without human oversight. The architecture is designed to support natural language queries that trigger autonomous task completion, though this capability is not demonstrated in the present test cases.
ASTRA’s Role in Scientific Discovery: We should not expect to give ASTRA one of the big contemporary problems like “What is the nature of Dark Matter and Dark Energy,” or “How does gravity connect to quantum physics,” or “What sets the stellar initial mass function (IMF),” and expect to get definitive answers that may be the equivalent of a computational Eureka moment. But ASTRA’s analysis architecture, used alongside and by an experienced astronomer and/or theoretician, has capabilities in analysis and inference that can support the discovery process. ASTRA’s role in science is to work alongside the experienced astronomer to analyse data and support the discovery process. ASTRA is therefore a tool to assist the astronomer, rather than a replacement for domain expertise.
Validation Scope: Tests 1–5 use real observational data to validate ASTRA’s ability to correctly recover known astrophysical results. Test 6 uses realistic galaxy survey data based on published SDSS scaling relations to demonstrate both validation (recovering known relations) and unsupervised candidate identification (flagging outliers). The data is generated using empirical relations from Kauffmann et al. (2003), Tremonti et al. (2004), and Brinchmann et al. (2004). The capabilities demonstrated are shown within specific astrophysical domains using particular datasets. Generalisation to other domains or datasets requires further validation.
Discovery Capability and Limitations: The test cases presented in this paper demonstrate validated capabilities rather than novel discoveries. Tests 1–5 use real observational data to validate ASTRA’s ability to recover known astrophysical results (filament scaling relations, multi-wavelength cross-matching, galaxy correlations, causal inference, Bayesian model selection). Test 6 uses synthetic data generated from published SDSS scaling relations to demonstrate outlier identification capabilities. The relations recovered in Test 6 are embedded in the data generation procedure; this validates ASTRA’s architecture for pattern identification but does not constitute genuine novel discovery. Genuine scientific discovery would require application to real observational datasets where patterns are not known in advance, with follow-up observations to confirm physical interpretation. A first such application, retrospective in design, is reported in § 8.7. ASTRA provides infrastructure to assist human scientists with data analysis and hypothesis generation, but does not replace domain expertise or scientific judgment.
Discovery Limitations: ASTRA has not demonstrated genuine novel scientific discovery and does not claim to have resolved outstanding problems in astrophysics (such as the Hubble Tension or the nature of Dark Matter). The system operates as a consistency engine: it validates observations against existing theoretical frameworks, checks dimensional consistency and conservation laws, and identifies outliers relative to established distributions. The test cases presented demonstrate validation of known astrophysical results (Tests 1–5) or capability demonstrations on synthetic data (Test
6). Genuine scientific discovery requires identifying anomalies that contradict existing models, proposing new theoretical frameworks to explain these contradictions, and observational validation of novel predictions. ASTRA provides infrastructure that may assist human scientists with data exploration and consistency validation, but does not replace the theoretical innovation and scientific judgment required for genuine breakthroughs.
Methods: ASTRA System Architecture
Overview
ASTRA implements a modular architecture designed for astrophysical data analysis and inference. The system integrates multiple specialised components through a coordinated framework, enabling complex multi-step analyses that combine data processing, physical reasoning, causal inference, and statistical validation.
Core Architectural Components
Data Processing Pipeline: ASTRA accepts heterogeneous astronomical data formats, including catalogues (CSV, FITS), time-series data, images, and spectral data. The pipeline performs ingestion, validation, cleaning, and normalisation while preserving measurement uncertainties and metadata.
Physics Engine: A unified physics engine implements fundamental physical laws and constraints, including conservation laws (mass, energy, momentum), dimensional analysis using Buckingham theorem, equation solving and numerical simulation, and units consistency checking throughout calculations. This enables ASTRA to validate discoveries against first principles rather than treating correlations as sufficient explanations.
Causal Reasoning Module: Implements causal discovery and inference using the PC algorithm Spirtes et al. (2000) for discovering causal structures from observational data, conditional independence testing for continuous variables (Fisher’s Z-test), V-structure detection for identifying colliders, do-calculus for predicting effects of interventions, and domain-specific adaptations for astrophysical contexts. This module enables ASTRA to distinguish causal relationships from correlations, addressing a fundamental limitation of both traditional ML and LLM approaches.
Bayesian Inference Engine: Implements rigorous model comparison and uncertainty quantification through evidence computation via marginal likelihood estimation, Bayes factors for model comparison Kass & Raftery (1995), automatic complexity penalty (Occam’s razor), posterior predictive checking, and Monte Carlo methods for uncertainty propagation.
Domain Knowledge Systems: Organised astrophysical knowledge through MORK ontology encoding taxonomic and causal relationships, knowledge graphs for semantic relationships, vector-based semantic memory for concept retrieval, and 75 specialised domain modules (ISM, star formation, exoplanets, etc.).
Multi-Module Orchestration: Coordinates different analytical perspectives through specialised processing modules
for different analysis types, meta-cognitive layer for context-appropriate module selection, result synthesis and conflict resolution, and quality control and validation checks.
Unique Capabilities
ASTRA integrates sixteen distinct analytical capabilities that work together to enable end-to-end scientific analysis: Causal and Statistical Analysis: (1) Bias Detection: Identifies and quantifies observational biases like Malmquist bias from survey geometry and selection effects. (2) Scaling-Relation Identification: Identifies candidate physical scaling relations from data through dimensional analysis and functional form detection. (3) Causal Inference: Discovers causal structures using the PC algorithm and distinguishes physical laws from selection biases. (4) Model Selection: Compares competing theories using Bayesian evidence computation with proper complexity penalties.
Data Integration and Analysis: (5) Multi-Wavelength Fusion: Cross-matches sources across wavelengths with proper astrometric uncertainty propagation. (6) Uncertainty Quantification: Propagates measurement errors through first-order and Monte Carlo methods, separating systematic and statistical components. (7) Temporal Reasoning: Detects periodic signals, performs phase folding, and forecasts time-series behaviour. (8) Instrument-Aware Analysis: Evaluates observational requirements and compatibility across multiple astronomical facilities.
Knowledge Generation: (9) Hypothesis Generation: Identifies patterns, detects anomalies, and generates testable hypotheses with specific observational requirements. Of the listed capabilities, this one is demonstrated only qualitatively in this paper and has not been independently benchmarked (§ 1). (10) Analogical Reasoning: Identifies structural mappings between different astrophysical systems based on shared physics. (11) Counterfactual Analysis: Simulates physically-grounded scenarios to predict effects of interventions or observational changes. (12) Physical Model Identification: Automatically identifies functional forms and validates against theoretical predictions.
Meta-Cognitive Capabilities: (13) Meta-Cognitive Evaluation: Provides quantitative assessments of data sufficiency, resolution limits, and observational constraints. (14) Anomaly Detection: Identifies unusual objects using ensemble methods combining multiple detection approaches. (15) Ensemble Prediction: Combines multiple models using Bayesian Model Averaging for stable predictions with uncertainty quantification. (16) Physical Validation: Checks all results against dimensional consistency, conservation laws, and established physical principles.
These capabilities are not independent modules but integrated components that work together. For example, discovering a scaling relation (capability 2) involves dimensional analysis (capability 12), physical validation (capability 16), and uncertainty quantification (capability 6). Similarly, multi-wavelength fusion (capability 5) requires coordinate calculations, astrometric error propagation, and physical classification criteria.
Capability Demonstrations in This Paper: Table 1 summarises which of the 16 capabilities are demonstrated in each of the first five test cases presented in this paper. Five capabilities are not demonstrated in this paper: temporal reasoning, instrument-aware analysis, analogical reasoning, counterfactual analysis, and ensemble prediction. These capabilities are implemented in the ASTRA codebase but have not yet been validated in published demonstrations. Demonstration of these capabilities is deferred to future work, as validating them requires test cases outside the scope of the present study (e.g., time-domain surveys for temporal reasoning, multi-facility coordination for instrument-aware analysis).
| Capability | Test 1 (Scaling) | Test 2 (Multi-) | Test 3 (Pattern) | Test 4 (Causal) | Test 5 (Bayesian) |
| Bias Detection | – | X | – | X | – |
| Scaling Relations | X | – | X | – | X |
| Causal Inference | – | – | – | X | – |
| Model Selection | – | – | – | – | X |
| Multi-Wavelength Fusion | – | X | – | – | – |
| Uncertainty Quantification | X | X | X | – | X |
| Temporal Reasoning | – | – | – | – | – |
| Instrument-Aware Analysis | – | – | – | – | – |
| Hypothesis Generation | – | – | X | – | – |
| Analogical Reasoning | – | – | – | – | – |
| Counterfactual Analysis | – | – | – | – | – |
| Physical Model Identification | X | – | – | – | X |
| Meta-Cognitive Evaluation | X | X | X | X | X |
| Anomaly Detection | – | – | X | – | – |
| Ensemble Prediction | – | – | – | – | – |
| Physical Validation | X | X | X | X | X |
Table 1. Capabilities demonstrated in each test case. X indicates the capability is explicitly demonstrated in that test case; – indicates the capability is not applicable or not demonstrated in that test case. Five capabilities (temporal reasoning, instrument-aware analysis, analogical reasoning, counterfactual analysis, ensemble prediction) are implemented in ASTRA but not demonstrated in this paper; validation of these capabilities is deferred to future work.
Workflow for Scientific Analysis
ASTRA’s analysis workflow follows this general pattern: Input: Scientific query or observational data; Module Selection: Meta-cognitive layer selects appropriate analysis modules based on query type and data characteristics; Analysis Execution: Selected modules perform their specialised analyses including statistical and ML algorithms for pattern detection, causal discovery for identifying relationships, physics engine for theoretical validation, and Bayesian inference for model comparison; Integration: Results synthesized from multiple modules, resolving conflicts and identifying consensus conclusions; Validation: Results checked against physical constraints (dimensional consistency, conservation laws), statistical significance (p-values, confidence intervals), observational constraints (resolution limits, selection effects), and domain knowledge (established theories, previous results); Output: Integrated results with confidence assessments, uncertainty quantification, and physical interpretation.
Implementation and Availability
ASTRA is implemented in Python with approximately 332,000 lines of Python source across 690 files in the astra-core system (the core ASTRA framework, excluding external analysis projects); the count includes test scripts. Excluding blank lines and comments, the code count is approximately 245,000 lines; the repository additionally contains documentation and supporting infrastructure. The system uses established scientific Python libraries (NumPy, SciPy, Pandas, scikit-learn) combined with specialised implementations for causal discovery (7,388 lines, 100% original implementation with no causal-learn or dowhy imports), physics engine (3,942 lines, 100% original implementation across 27 functions and 4 classes), and 75 specialised domain modules (18,872 lines, 100% original implementations).
Scientific Functionality: All scientific capabilities demonstrated in this paper are provided solely by the Python-based code architecture described above. The Claude LLM (Anthropic) is used only for natural language translation and interpretation in the user interface layer, not for any scientific computations, data analysis, or inference. All test results, figures, and scientific conclusions presented in this paper are produced entirely by the Python implementation without LLM involvement in the scientific analysis.
Development Methodology: Parts of the codebase were written with AI-assisted programming tools (Claude Code, Anthropic) under the authors’ direction: the scientific objectives, system architecture, oversight of the core components, minimisation of external dependencies, and all validation and reproducibility testing were human-directed.
Physics Engine Implementation Details: The physics engine (3,942 lines, 100% original Python implementation) performs genuine symbolic reasoning from first principles without LLM involvement in physical calculations. The engine implements: (1) Dimensional analysis using Buckingham theorem through symbolic linear algebra on dimensional matrices, deriving dimensionless groups analytically rather than through pattern matching; (2) Conservation law validation using symbolic differentiation to compute time derivatives (e.g., for energy conservation) and numerical integration to verify constraint satisfaction; (3) Equation solving using symbolic integration (for analytical solutions) and numerical ODE solvers (for complex systems), with boundary conditions applied symbolically. All physical constants are hardcoded values from standard references (CGS units: , , ), not retrieved by LLM queries.
The Claude LLM is used only for natural language translation in the user interface layer (converting user queries to Python function calls) with zero involvement in scientific computations, data analysis, or physical validation. All test results presented in this paper are produced entirely by the Python implementation without LLM participation in the physics engine.
This version used for the examples in this paper has been frozen for reproducibility at: https://github.com/Tilanth/ASTRA_baseline_White (2026). A current continuously developed and enhanced version with new capabilities is available at https://github.com/Tilanth/ASTRA.
The baseline repository includes: complete source code and installation instructions; system architecture documentation; API documentation and user manual; all test cases and examples presented in this paper; and reproducible code for all results. The main ASTRA repository contains: the latest development version with ongoing improvements and new capabilities; extended validation with additional test cases; and community contributions and updates.
Architectural Design
The system is organised into clear functional modules, including 75 specialised astrophysics domain modules, a unified physics and theoretical engine, causal reasoning systems, and memory systems. The modular architecture enables hot-swapping of domain modules at runtime, with each module implementing standardised interfaces for query processing, capability discovery, and result integration. The core components (data processing pipeline, physics engine, causal reasoning module, Bayesian inference engine, and domain knowledge systems) coordinate through a meta-cognitive orchestration layer that selects appropriate analysis modules based on query type and data characteristics.
Positioning Relative to Other Approaches
ASTRA occupies a distinct position among existing AI approaches to scientific discovery. Compared to Pure ML: Unlike machine learning systems that focus on prediction or classification, ASTRA emphasises causal understanding, physical interpretation, and theoretical validation. ASTRA can detect correlations like ML systems but goes further by identifying causal structure and validating against physics.
Compared to LLMs with Agentic Capabilities: Current frontier LLMs with tool use and agentic scaffolding can perform multi-step analysis, coordinate computational tools, and execute complex workflows. However, ASTRA provides domain-specific physics validation (dimensional analysis, conservation laws, theoretical constraints) as an integrated feature rather than requiring manual configuration. ASTRA’s unified architecture for astrophysical inference, which combines causal reasoning, Bayesian evidence computation, and domain knowledge, is specifically optimized for scientific analysis workflows, whereas general-purpose LLMs provide flexible tool coordination that must be configured for each scientific application.
Compared to Specialised Tools: Unlike domain-specific tools designed for single tasks (e.g. photometric redshift fitting, period finding), ASTRA integrates multiple analysis types within a unified framework, enabling complex multi-step analyses that connect different types of scientific reasoning.
Compared to AGI Claims: Unlike systems claiming artificial general intelligence, ASTRA operates within well-defined astrophysical domains using established algorithms. The system assists human reasoning rather than replacing domain expertise, and all results require interpretation and validation by experienced human scientists.
Test Case 1: Scaling Relations Analysis
Data and Methods
We analysed 24 molecular cloud filaments from the Herschel Gould Belt Survey (HGBS) André et al. (2010), drawn from the publicly released filament catalogue Arzoumanian et al. (2019). Each filament has measurements of mass , length , and velocity dispersion with distance estimates based on nearby Galactic OB associations. The universal width of pc in Herschel filaments has itself been extensively debated: Panopoulou et al. (2022) argue that the apparent universality may partly reflect observational selection effects.
ASTRA applies a multi-stage analysis process:
Dimensional analysis: Identify dimensionless parameters using Buckingham theorem
Functional form search: Automatic search for power-law, logarithmic, and broken power-law forms
Physical validation: derive the equilibrium benchmark from first principles (Buckingham plus numerical integration) and compare the fitted relations against it (Level 3 validation in the taxonomy of § 1.2)
Uncertainty quantification: Bootstrap confidence intervals (10,000 resamples) and error propagation
Two parameterisations of the – relation are fitted. A free power law, , is fitted by ordinary least squares in log-log space and yields an exponent . The virial form, , is fitted in linear space and yields a coefficient with intercept km s. All uncertainties are derived from non-parametric bootstrap resampling of the 24 data points (10,000 resamples), where each resample draws 24 filaments with replacement and refits the relation; 95% confidence intervals are computed from the 2.5th and 97.5th percentiles of the bootstrap distribution.
Limitations of Small Sample Size: With only 24 filaments, bootstrap confidence intervals provide reliable estimates for central tendency measures (mean, median) but can underestimate uncertainty in the tails of the distribution, particularly when the sample contains leverage points. A single filament with extreme values could disproportionately influence the fitted slope. Cook’s distance diagnostics reveal that no single filament has Cook’s distance (the conventional threshold for identifying high-leverage points), suggesting the sample is not dominated by outliers. Nevertheless, the small sample size is a limitation, and these results should be validated on larger filament samples when such data become available.
For the Bayesian model comparison in § 7, we use weakly-informative priors: uniform priors on log-space for scale parameters, uniform priors on exponents, and Jeffreys priors for scale-invariant quantities.
Results
Figure 1 shows the scaling analysis results.

Figure 1. Scaling relations analysis of 24 Herschel filaments. Panel (a) shows the velocity dispersion vs mass/length relation with the fitted virial form (orange) and the hydrostatic equilibrium benchmark corresponding to the critical line mass of an isothermal cylinder (green dashed). Panel (b) shows the width distribution. Panel (c) shows the dimensionless parameter per filament against the equilibrium value . Panel (d) shows the line mass relative to critical, : the filaments are subcritical, with velocity support exceeding self-gravity. The universal width is consistent with the characteristic dissipation scale in molecular clouds.
Universal Width: Filaments have a characteristic width of pc, independent of mass. This is consistent with the sonic scale where turbulent energy dissipates into heat Arzoumanian et al. (2011). However, Panopoulou et al. (2022) demonstrated that apparent width universality in Herschel observations may partly reflect selection effects: filaments near the angular resolution limit ( beam) are preferentially detected only when their widths are close to the beam size, potentially biasing width measurements toward pc. This selection effect could affect both the width measurement reported here and the theoretical framework built on universal filament widths. The HGBS datasets most affected are those targeting nearby, low-density clouds where the beam corresponds to pc, potentially introducing detection bias against wider or narrower filaments.
Virial Scaling: A free power-law fit gives (95% CI 0.56–0.68; Figure 1, panel A). For cylindrical filaments, dimensional analysis requires : the Buckingham theorem applied to yields a one-dimensional null space with the single dimensionless combination , so any scaling between these quantities must have exponent up to the dimensionless factor . The fitted virial form has (95% CI 0.075–0.086) with intercept km s, and is preferred over the free power law by Akaike information criterion ( in favour of the virial form). The measured exponent 0.617 is slightly steeper than, but qualitatively consistent with, the dimensionally required 0.5; by AIC the fixed-exponent virial form is the preferred description of this sample.
Dimensionless Equilibrium Comparison: The physical content of the relation is carried by the dimensionless parameter , which the -theorem identifies as the only dimensionless combination of the measured quantities. We measure (bootstrap 95% CI 0.977–1.047). The equilibrium benchmark follows from first principles: integrating the self-gravitating isothermal cylinder equations (hydrostatic equilibrium plus Poisson’s equation, per unit length) yields a maximum equilibrium line mass Ostriker (1964), which our numerical integration reproduces to four decimal places ( in the dimensionless formulation). The corresponding equilibrium value of the dimensionless parameter is , equivalently km s. Expressed as a line mass ratio, the filaments have (bootstrap 95% CI 0.46–0.54): the sample sits at approximately half the critical line mass, with measured velocity dispersions exceeding the hydrostatic equilibrium value by a factor .
Distance Uncertainty Systematics: The line-mass ratio is sensitive to distance uncertainties in a specific way. The line mass scales as (mass from flux, length ), while depends only on the measured velocity dispersion. A systematic distance uncertainty of 20% (typical for kinematic distance estimates to molecular cloud complexes) propagates to a systematic uncertainty in . Even combining this systematic with the statistical uncertainty, the measured ratio $\lambda/\lambda_{\mathrm{crit}}=0.50\pm0.10_{\mathrm{stat}}\pm remains well below unity, so the subcritical conclusion is robust to distance systematics.
Statistical Significance: The correlation coefficient of the fitted virial form is with , providing overwhelming evidence for a scaling relation.
Physical Interpretation
The measured line masses, , place the filaments below the critical line mass for self-gravitating isothermal cylinders: their internal kinetic support (thermal plus turbulent) exceeds what self-gravity alone would balance. Subcritical filaments of this kind are not expected to fragment and collapse along their length unless they accrete additional mass, are compressed by external pressure, or shed turbulent support. Possible contributions to the offset from criticality include: (1) systematic overestimate of velocity dispersions if thermal and non-thermal contributions were summed rather than combined in quadrature; (2) distance-dependent calibration of line masses; (3) genuinely young or externally confined filaments that have not yet approached equilibrium; or (4) magnetic support modifying the effective critical line mass. The free power-law exponent is slightly steeper than the dimensionally required , a formal difference consistent with residual curvature in the relation (the fitted virial form has intercept ) rather than with a failure of the dimensional argument.
This result demonstrates ASTRA’s ability to identify scaling relations, quantify uncertainties, and flag tensions with theoretical predictions that require physical interpretation beyond simple agreement.
Knowledge Isolation Test
A concern for any knowledge-driven discovery system is a knowledge paradox: if the system only identifies patterns already encoded in its knowledge base, it is not a discovery tool, whereas if it identifies something genuinely new, its knowledge base cannot be used to validate it. We address this with an ablation test in which the filament analysis of this section is repeated under three knowledge configurations that differ only in knowledge access, with the detection and validation code held identical:
Mode A (informed): domain modules and the MORK ontology are available; the ISM domain module is queried for interpretation of the discovered relation.
Mode B (knowledge-isolated): domain modules are unloaded and ontology access is blocked; only the physics engine, dimensional analysis, and statistical machinery operate.
Mode B+ (symbol-blind): as Mode B, with all catalogue columns also renamed to generic symbols () carrying units only, so that no semantic hint survives in the input.
The equilibrium benchmark used in all modes is derived rather than retrieved: the Buckingham null space of the dimension matrix for is computed by singular value decomposition, and the critical line mass is obtained by numerical integration of the isothermal cylinder equations (hydrostatic equilibrium plus Poisson’s equation), with taken from the physics engine constants rather than hardcoded.
Table 2 shows the results. Detection and validation are bit-identical across all three modes: the same three significant variable pairs are found, the same functional form is preferred, the same dimensionless group is constructed, and the same line-mass ratio with the same bootstrap confidence interval is derived. Knowledge isolation removes only the interpretation layer: Mode A attaches domain labels (virial analysis, Jeans analysis) and generates an interpretive hypothesis through the ISM domain module, while Modes B and B+ produce formal statements without physical naming. The MORK ontology itself contains no entries for filament scaling relations or the virial theorem, so no scaling-relation prior was available to leak into the informed analysis; the ontology organises causal reasoning concepts, and the domain modules contribute interpretive framing rather than fitted quantities.
| Mode A (informed) | Mode B (isolated) | Mode B+ (symbol-blind) | |
| Detection (statistics only) | |||
| Significant variable pairs | 3 | 3 | 3 |
| Best form for – (AIC) | |||
| Free power-law exponent | |||
| Characteristic width (pc) | |||
| Validation (first principles only) | |||
| Dimensionless group constructed via theorem | Yes | Yes | Yes |
| Equilibrium benchmark (isothermal cylinder integration) | 0.707 | 0.707 | 0.707 |
| Interpretation (knowledge-dependent) | |||
| Domain labels attached | 2 | 0 | 0 |
| Interpretive hypotheses generated | 1 | 0 | 0 |
Table 2. Knowledge isolation ablation for the filament scaling relation analysis (24 HGBS filaments). Detection and validation stages run identical code in every mode; only knowledge access differs. Detection and validation are unaffected by knowledge isolation; only the interpretation stage degrades. Mode B+ renames all columns to generic symbols with units only.
These results dissolve the knowledge paradox for this system by construction. Detection is statistical and validation is physical: dimensional consistency, conservation-law checks, and equilibrium benchmarks derived from first principles apply to novel phenomena exactly as they apply to known ones, so the absence of encoded knowledge does not disable validation. What encoded knowledge contributes is interpretation (naming, literature anchoring, and hypothesis generation), which is precisely the component a domain expert supplies when ASTRA operates in its intended collaborative mode.
Direct Comparison with Agentic LLM and Pure-ML Baselines
The differentiation claimed in Section 1 (native physics validation) is tested here directly. The same filament dataset and a single natural-language task statement (“identify scaling relations, quantify them with uncertainties, assess their physical significance for structure and stability, and state whether the filaments are gravitationally bound”) were given to: (1) the ASTRA pipeline of this section; (2) code-execution-enabled agentic LLM agents, two frontier models with three independent runs each, allowed no web access and no access to ASTRA or its documentation, working in an isolated directory containing only the data file; and (3) a pure regression pipeline built on ordinary least squares, AIC model comparison, and bootstrap uncertainties, representing a standard specialised statistical tool with no physics layer. The grading key, fixing the expected exponent, benchmark, and line-mass ratio within stated tolerances, was registered before the baseline runs were executed. Agent reports were audited for contamination, and none referenced ASTRA or any repository content. The complete experimental configuration — exact model identities, inference and sampling settings, tool scaffold, verbatim task prompts, output contract, run protocol, and grading criteria — is given in Appendix 10, so that the experiment is reproducible from the paper and its repository artifacts without ambiguity.
Table 3 summarises the outcome. The agents match ASTRA on statistical curve fitting: most recovered a tight – relation, and the pure-ML pipeline reproduces the exponent and virial-form coefficient exactly. The differences appear precisely where the physics-validation layer operates. First, benchmark provenance: ASTRA derives by numerical integration; no agent run derived it, two of six clean runs used the correct recalled formula (), and four of six used an incorrect or variant benchmark, whether a thermal-only critical mass, double-counted thermal support, or a dimensional coefficient mistaken for a dimensionless benchmark. In three of these cases the wrong benchmark changed the reported line-mass ratio, and in two it produced the opposite physical conclusion. Second, stability: across twelve independent agent runs on identical input, the final verdict on whether the filaments are gravitationally bound split exactly six versus six, a coin flip, whereas ASTRA returns bit-identical results on re-run, at s per analysis against –3 min per agent run. Third, and most directly: in a second baseline arm, the input directory also contained a supplied “literature note” asserting the erroneous benchmark . All six trap runs adopted the supplied value; all six simultaneously stated the correct formula elsewhere in the same report without noticing the factor-of-two contradiction; and in one run the poisoned value corrupted the headline line-mass ratio (0.716 in place of 0.50) and flipped the physical conclusion from subcritical to gravitationally bound and contracting. ASTRA’s validation layer, presented with the same supplied value, derives the benchmark independently, flags a relative discrepancy of unity (a factor of two), and proceeds with the derived value, leaving the conclusion unchanged.
| Metric | ASTRA | Agentic LLM (12 runs) | Pure-ML pipeline |
| Scaling exponent, direct form | 3/6 direct; 3/6 inverse-form | ||
| Virial-form coefficient | – | ||
| Dimensionless group constructed | Yes (SVD null space) | 6/6 (ad hoc forms) | – |
| Equilibrium benchmark | 0.707, derived (ODE integration) | 2/6 correct (recalled); 4/6 wrong/variant; 0/6 derived | – |
| in pre-registered band | 2/6 | – | |
| Correct subcritical interpretation | Yes | 2/6 | – |
| Coefficient-vs-exponent distinction | Yes | 3/6 | – |
| Trap arm (supplied , a factor-2 error) | |||
| Supplied benchmark | Refuted: discrepancy flagged, derived value used | Adopted 6/6 | n/a (no benchmark layer) |
| Factor-2 contradiction with own formula | Cannot arise (single derived benchmark) | Present unnoticed 6/6 | n/a |
| Headline ratio corrupted by trap | No | 1/6 (0.716; conclusion flipped) | n/a |
| Bound-verdict reproducibility | Deterministic (bit-identical re-runs) | 6/6 split across runs | Deterministic |
| Wall clock per analysis | s | –3 min | s |
| Astro-specific fine-tuned LLM arm (AstroLLaMA-2-7B-chat, 3 clean + 3 trap runs) | |||
| Task completed (parseable JSON) | 0/6 (all runs degenerated within 5 turns) | ||
| Python blocks executed | 0 across all six runs | ||
| Supplied poisoned note engaged (trap arm) | Never referenced | ||
| Wall clock per run | –5 min (aborted by the registered degeneracy guardrail) |
Table 3. Direct comparison on the filament analysis (§ 3): ASTRA, code-execution-enabled agentic LLM agents (12 independent runs), and a pure regression pipeline, given identical data and task statement, graded against a pre-registered key. The trap arm supplied a poisoned benchmark () in the input; the clean arm did not. The astro-specific arm ran a fine-tuned astronomy LLM (AstroLLaMA-2-7B-chat) in the identical scaffold.
A third baseline arm addresses astrophysics-specific fine-tuned models, which are not represented in the generic baselines above. We ran AstroLLaMA-2-7B-chat (Nguyen et al. 2023; Pan et al. 2024), a LLaMA-2-7B derivative fine-tuned on astronomy literature and astro-specific conversational data, in the identical agent scaffold (same task text, same code-execution tool protocol stated explicitly in the prompt, same turn budget, registered before the runs), for three clean and three trap runs under a pre-registered key extension. The outcome is unambiguous and precedes any physics judgement: none of the six runs completed the task. Every run began by echoing the task statement or the tool protocol back verbatim, then collapsed into empty or repetitive output within five turns, triggering the pre-registered degeneracy guardrail; across all six runs not a single Python block was executed, no scaling relation was fit, and in the trap arm the supplied note was never referenced (zero mentions of its content). The astro-specific fine-tune fails at the orchestration stage, before the benchmark-adoption and reproducibility failure modes that differentiate ASTRA from the frontier generic agents are even reached. We interpret this result narrowly: it demonstrates that this particular small astronomy-specific fine-tuned model is unsuitable for the tested agent scaffold. It is not evidence that astronomy-specific LLMs are intrinsically inferior to ASTRA or to generic frontier agents; failure at orchestration leaves the model’s physics-validation ability untested here, and the result does not speak to larger or differently trained astronomy fine-tunes. This is consistent with the AstroMLab benchmark series: small astronomy fine-tunes underperform their own base models on downstream tasks (Nguyen et al. 2023; Pan et al. 2024), although larger, more recent astro fine-tunes lead astronomy question-answering (de Haan et al. 2025); none of these benchmarks measure agentic analysis, which is the capability probed here.
We state the limits of this comparison. The generic-agent baselines are a single model family, the runs sample prompt-level stochasticity rather than the full space of agent scaffolds, no web access was permitted, and two grading classifications (benchmark class, interpretation sign) involve judgement applied to pre-registered criteria. The astro-specific arm adds its own caveats: one 7B-class fine-tune was tested (the 70B-class astro models could not be run locally), it was evaluated at bfloat16 precision from the released fp32 weights, and its failure is at task completion rather than at physics validation, so it bounds the capability of that model class without isolating the effect of astronomy fine-tuning on benchmark verification. Finally, the comparison covers a single task. Parity on statistical fitting is expected and observed, and nothing here shows that agentic LLMs cannot be scaffolded to derive physical benchmarks; the finding is that they do not do so by default, and that their physics conclusions are unstable across runs when they do not. Nor should ASTRA’s advantage be overstated: the comparison shows that a deterministic validation procedure was executed and could not be overridden by a supplied error, which is a guarantee about process; the benchmark it derives is correct here, but the derivation rests on the isothermal-cylinder model and on the implementation, either of which could be wrong in other settings.
Test Case 2: Multi-Wavelength Data Fusion
Data and Methods
We analysed the Chandra Deep Field South (CDFS) Giacconi et al. (2001), combining the 1 Ms Chandra ACIS X-ray source catalogue Giacconi et al. (2002) (339 sources, VizieR J/ApJS/139/369) with optical -band and near-infrared , photometry from the -selected MUSYC catalogue of the extended CDFS Taylor et al. (2009) (16,910 sources). We analyse the sources with secure detections in all three wavebands.
Cross-Matching Methodology: We use Bayesian positional cross-matching following Sutherland & Saunders (1992). For each X-ray source with positional uncertainty , we compute the likelihood of association with each optical/IR source given the positional offset and their combined positional uncertainties . We adopt uniform priors on source surface density (appropriate for deep fields) and require posterior match probability . The cross-matching radius is adaptively set to , with a maximum of 2 arcsec to account for source density variations.
Uncertainty Quantification: We propagate astrometric uncertainties through the matching process and report match probabilities. For sources with multiple potential counterparts, we compute the relative likelihood and flag ambiguous cases.
Classification Methodology: Following standard X-ray source classification Hornschemeier et al. (2001); Bauer et al. (2004), we classify sources using X-ray hardness ratio , where and are hard and soft band counts, and X-ray-to-optical flux ratio . We adopt the thresholds: AGN if HR and , stars if HR or . Galaxies require extended optical morphology or intermediate X-ray/optical ratios, which are not present in our matched sample.
The absence of a hardness or flux ratio places them below the AGN thresholds, the population discussed by Bauer et al. (2004).
Results
Figure 2 shows the multi-wavelength analysis. Of the 339 X-ray sources, 209 (62%) have secure optical/ counterparts (posterior association probability ), with a median match separation of 1.46 arcsec. The unmatched 38% are primarily optically faint high-redshift AGN below the MUSYC flux limits or sources near the Chandra position-error limit, consistent with the optically faint population identified in deep Chandra surveys Alexander et al. (2003).

Figure 2. Multi-wavelength data fusion in the Chandra Deep Field South. Panel (a): the classification plane, X-ray hardness ratio versus , with the classification thresholds (dashed lines). Panel (b): magnitude distributions of the MUSYC field and the X-ray-matched sources. Panel (c): sky distribution of the 339 1 Ms Chandra sources coloured by hardness ratio. Panel (d): distribution of optical/ match separations (median 1.46 arcsec). Panel (e): hardness-ratio distributions of the AGN and galaxy classes. Panels (f, g): optical–near-infrared colour–magnitude diagrams of the matched sources against the MUSYC field population. Panel (h): classification counts. Panel (i): soft versus hard X-ray flux plane. Of the 339 X-ray sources, 209 have secure optical/ counterparts (§ 4.1); classification thresholds HR and for AGN, extended morphology ( arcsec) for galaxies.
Classification Results:
Active Galactic Nuclei (AGN): 69 sources (33% of matched)
Galaxies (extended, X-ray faint): 140 sources (67%)
Stars: 0 sources
The galaxy-dominated matched population and the absence of stars are both expected selection effects. The -selected MUSYC reference catalogue is built for extragalactic science, so coronal-emission stars bright enough for secure -band matching are rare in it; and the galaxies class necessarily contains obscured AGN candidates whose X-ray hard-
Physical Interpretation
This analysis demonstrates ASTRA’s ability to: (1) propagate astrometric uncertainties through Bayesian cross-matching, providing probabilistic association estimates; (2) apply physics-based classification criteria using X-ray hardness and flux ratios; and (3) identify and interpret selection effects in multi-wavelength samples.
The classification is consistent with established deep Chandra field source populations (Alexander et al. 2003; Szokoly et al. 2004): the secure matches divide between unobscured AGN selected by hardness and X-ray-to-optical flux ratio, and an extended population comprising star-forming galaxies and obscured AGN candidates, with no stellar contaminants as expected for a -selected extragalactic reference catalogue. Distinguishing obscured AGN from star-forming galaxies within the extended class would require spectroscopy or mid-infrared diagnostics, which is outside the scope of this classification test.
We note that the 33% unobscured-AGN fraction refers to the securely matched subsample, not the full CDFS X-ray population: requiring secure optical/ counterparts removes the optically faint, high-redshift AGN that dominate the unmatched fraction, and the threshold-based classification cannot separate obscured AGN from star-forming galaxies in the extended class.
Test Case 3: Pattern Recognition in Galaxy Properties
Data and Methods
We analysed 5,000 galaxies drawn from the Sloan Digital Sky Survey (SDSS) Data Release 16 Ahumada et al. (2020), a live SkyServer sample with model photometry, Galactic extinctions, spectroscopic redshifts (), , , [O III] and [N II] fluxes, and BPT classifications. Derived quantities follow standard calibrations: stellar masses from the -band luminosity and colour (Bell et al. 2003); star formation rates from luminosity (Kennicutt & Evans 2012); gas-phase metallicities from the O3N2 index (Pettini & Pagel 2004); and emission-line excitation classes from the BPT diagnostic (Kauffmann et al. 2003).
ASTRA performs pattern recognition through:
(i) Correlation analysis: Identify significant relationships between galaxy properties
(ii) Anomaly detection: Statistical outlier detection using isolation forests
(iii) Pattern validation: Compare identified patterns to established literature
(iv) Testability assessment: Evaluate requirements for further validation
Results
Figure 3 shows the pattern recognition analysis. ASTRA identified five correlations that correspond to well-established results in galaxy evolution:
(i) Mass-metallicity relation: Stellar mass correlates with gas-phase metallicity, reflecting the well-established mass-metallicity relation Tremonti et al. (2004).
ASTRA identified: Positive correlation between mass and metallicity
Literature: Established relationship for star-forming galaxies
Significance: Demonstrates pattern recognition capability
(ii) Environmental quenching: Local galaxy density correlates with star formation rate, consistent with environmental quenching Dressler (1980); Peng et al. (2010).
ASTRA identified: Anti-correlation between density and SFR in high-density regions
Literature: Well-established environmental effects on star formation
Significance: Correctly identifies density-dependent star formation
(iii) AGN signatures in low-mass galaxies: Some low-mass galaxies show optical emission-line ratios consistent with low-luminosity AGN activity.
ASTRA identified: Small subset of low-mass galaxies with elevated [O III]/H and [N II]/H ratios, positioning them in the AGN region of BPT diagnostic diagrams
Literature: Systematic searches have identified AGN in dwarf galaxies using optical emission-line diagnostics Reines et al. (2013)
Significance: Pattern recognition identifies outlier subpopulations using standard optical AGN diagnostics
(iv) Merger rate evolution: Galaxy merger signatures correlate with redshift within the sample range.
ASTRA identified: Merger indicators increase with redshift (within )
Literature: Merger rate evolution is well-established Lotz et al. (2011)
Significance: Recovers known evolutionary trend from local data
(v) Halo mass correlations: Galaxy stellar mass correlates with inferred dark matter halo mass.
ASTRA identified: Stellar mass correlates with environmental metrics
Literature: Underpins the halo model framework Mo & White [30]
Significance: Identifies galaxy-halo connection
Physical Interpretation
This analysis demonstrates ASTRA’s ability to identify established astrophysical relationships from data without being explicitly programmed with these relationships. The patterns ASTRA identifies correspond to well-known results in galaxy evolution, validating that the pattern recognition capability recovers genuine physical correlations rather than spurious associations.
This is a demonstration of pattern recognition and knowledge retrieval from encoded domain knowledge, not novel discovery. The five identified patterns are all extensively documented in the literature, and ASTRA correctly recovers them by analysing correlations in the data. For genuine discovery, ASTRA would need to identify patterns that are not already encoded in its knowledge representation system or that are statistically unexpected based on current theoretical understanding.
Test Case 4: Causal Inference Demonstrator
Data and Methods
We analysed 995 Gaia DR2 stars Gaia Collaboration et al. [16] fetched live from the Gaia archive (parallax mas, parallax/error , astrometric excess noise , ), with distance from the parallax, absolute magnitude from the distance modulus, and luminosity from . Causal discovery is run on log , and ; luminosity is excluded because it is a deterministic transform of (its edge cannot be learned, only recognised as a definition).
ASTRA performs causal inference using:
(i) PC Algorithm: Peter-Spirtes causal discovery algorithm Spirtes et al. (2000)
(ii) Conditional independence testing: Fisher’s Z-test for continuous variables, with significance threshold
(iii) V-structure detection: Identifies colliders in causal graphs using unshielded triple patterns
(iv) Domain knowledge constraints: Incorporates known physical relationships as constraints
Causal Sufficiency Assumption: The PC algorithm assumes causal sufficiency: that there are no unmeasured latent confounders affecting the observed variables. In astrophysical contexts, this assumption is often violated: variables like metallicity, age, evolutionary state, and environmental history can influence observed properties without being measured. For the simple textbook relationships in this test case (distance modulus, inverse square law), the causal structure is sufficiently well-understood that latent confounders are unlikely to change the conclusions. However, for more complex astrophysical applications, the FCI algorithm (Fast Causal Inference) relaxes the causal sufficiency assumption and can output causal graphs with latent confounders explicitly represented. Future applications of ASTRA’s causal inference to complex astrophysical problems should consider using FCI rather than PC when latent confounders are likely to be important.
This test case is a validation demonstration: the causal relationships in this dataset are textbook examples taught in observational astronomy courses, providing a clear ground truth for validating ASTRA’s causal inference implementation. A genuine scientific application would involve cases where the causal structure is unknown or disputed.

Figure 3. Pattern recognition in a real SDSS DR16 spectroscopic sample of 5,000 galaxies (0.02 < < 0.15). Panel (a): BPT diagnostic diagram; blue points are SDSS-classified star-forming galaxies, orange are composite/AGN/Li(N)ER; dashed and dotted curves are the Kauffmann et al. (2003) and pure-starburst demarcations. Panels (b, c): the star-forming main sequence (SFR from Hα luminosity, Kennicutt & Evans (2012)) and the mass–metallicity relation (O3N2 calibration, Pettini & Pagel (2004)), with running medians (orange); stellar masses from Bell et al. (2003). Panel (d): specific-SFR distribution of the star-forming population. Panel (e): colour–mass diagram. Panel (f): Spearman correlation matrix of the derived properties, summarising the correlation structure identified by the pattern-recognition stage.
Results
Figure 4 shows the results. Panel (c) reports the conditional-independence tests directly: every pair of variables is strongly dependent both marginally and given the third, with all p-values below at , so the PC algorithm removes no edge and returns a complete undirected triangle among , and . This is exactly the signature of variables linked by the distance-modulus identity rather than by three separate physical mechanisms. Because every triple is shielded, the constraint-based orientation rules find no colliders, and the graph remains undirected; orienting the edges () requires the domain-knowledge constraints listed above, which encode the inverse-square law. Panels (d) and (e) show the selection structure the causal analysis must contend with: the parallax cut truncates the sample at 200 pc, and the flux limits carve a wedge out of the distance–absolute-magnitude plane.

Figure 4. Causal inference on a real Gaia DR2 sample of 995 nearby stars. Panel (a): colour–absolute-magnitude diagram. Panel (b): apparent magnitude versus distance, showing the flux limit of the sample. Panel (c): the conditional-independence (CI) test matrix underlying the discovered structure: partial-correlation p-values for each variable pair, marginally and conditioned on the third variable; every cell lies far below the test level (all are ), so no edge can be removed and the skeleton is the complete undirected triangle. Panel (d): the distance distribution, truncated at 200 pc by the parallax mas selection cut (dashed line). Panel (e): absolute magnitude versus distance with the and selection boundaries; the flux limit carves a wedge out of the parameter space, the dominant selection effect in this sample. Panel (f): the interventional prediction propagated through the structural equation, compared with the observed distribution.
The distance–absolute-magnitude dependence present in this flux-limited sample is algebraic (via ) rather than a physical cause, illustrating why causal-sufficiency and selection-effect caveats matter for observational data.
These are textbook relationships: the distance modulus follows directly from the inverse-square law, absolute magnitude is defined as the magnitude at 10 pc, and Malmquist bias is a well-known selection effect in flux-limited surveys.
Physical Interpretation and Limitations
This test case validates that ASTRA’s causal inference implementation correctly recovers known causal relationships from clean, well-characterized data. However, we acknowledge this is a basic demonstration using textbook examples. The causal structure here is obvious to any domain expert; these are defining relationships and well-understood selection effects, not discoveries.
For genuine scientific value, causal inference would need to be applied to problems where the causal structure is non-obvious, such as disentangling magnetic field, turbulence, and thermal support contributions to molecular cloud core stability; identifying causal drivers of the star formation main sequence; or determining causal sequences in galaxy quenching processes. Such applications would require careful consideration of confounding variables, latent variables, and domain-specific constraints beyond what is demonstrated here.
This test case should be understood as validating the implementation’s correctness on known cases, not as demonstrating scientific discovery capability.
Test Case 5: Bayesian Model Selection
Data and Methods
We analyse the same 24 Herschel filaments as in Section 3, comparing four competing models for the velocity dispersion vs mass/length relation:
Power law: (theoretically motivated by virial theorem)
Linear: (no theoretical basis)
Logarithmic: (empirical approximation)
Broken power law: for , for
Prior Specification: For Bayesian evidence computation, we use weakly informative priors that allow the data to dominate while maintaining proper probability distributions. For scale parameters , we use (uniform in log-space). For exponents , we use . The broken power law transition point carries a uniform prior over the observed range of . The prior on in the broken power law is constrained to maintain continuity at . These priors are broad enough to be weakly informative for this dataset but specific enough for meaningful evidence computation.
ASTRA performs Bayesian model selection through:
Evidence computation: Marginal likelihood estimation using bridge sampling Meng & Wong (1996)
Bayes factors: Ratio of evidences for model comparison (Kass & Raftery 1995)
(iii) Complexity penalty: Automatic Occam’s razor effect from marginal likelihood
(iv) Posterior predictive check: Validates model predictions against observed data
Results
Figure 5 shows the model comparison results.

Figure 5. Bayesian model selection for 24 Herschel filaments. Panel (a): the – data with the four competing model fits at their MAP parameters. Panel (b): log evidence per model (Laplace approximation); the power law (orange) and logarithmic models are statistically indistinguishable, while linear and broken power-law models are strongly disfavored. Panel (c): Bayes factors against the power law: the linear and broken power-law models are disfavored by factors of 33,000 and 123,000; the broken power law attains the highest but is penalized for its additional parameters — the automatic Occam’s razor effect of marginal-likelihood integration. Panel (d): normalized residuals of the power-law fit versus ; the scatter is consistent with the assumed 10 per cent errors with no structure in . Panel (e): the fixed-exponent power-law fit, with MAP amplitude , against the virial prediction ; the ratio satisfies (Section 3), the subcritical line mass that also accounts for the amplitude being below the equilibrium value. Panel (f): log evidence against number of free parameters, showing the complexity penalty directly: more parameters do not buy evidence here.
Log Evidence and Bayes Factors:
Model Comparison Interpretation: The power-law and logarithmic models are statistically indistinguishable by Bayesian model comparison. A Bayes factor of 1.2 corresponds to ”not worth more than a bare mention” on the Kass-Raftery (1995) scale. The logarithmic model has slightly higher (0.942 vs 0.931) but this does not translate to stronger evidence due to the automatic complexity penalty.
The strong preference for power-law/logarithmic models over linear (33,000×) and broken power-law (123,000×) models demonstrates the automatic Occam’s razor effect: the broken power-law has higher but is penalized for its additional complexity.
Theoretical Validation: The power-law model corresponds to the virial theorem prediction , for which dimensional analysis fixes the exponent at 0.5. The measured exponent is 0.617 ± 0.029, slightly steeper than but qualitatively consistent with this value, and the fixed-exponent virial form is in fact preferred by AIC (Section 3). The dimensionless comparison of Section 3 gives against the isothermal cylinder benchmark : the filaments are subcritical, with internal velocity support exceeding self-gravity.
Physical Interpretation and Limitations
The subcritical line masses could indicate: systematic over-estimation of velocity dispersions (thermal and non-thermal contributions summed rather than combined in quadrature); distance-dependent calibration of line masses; young or externally confined filaments that have not approached equilibrium; or magnetic modification of the effective critical line mass. This offset from criticality warrants further investigation with larger samples and systematic error budgets.
Small Sample Limitations: The analysis of 24 filaments represents a capability demonstration rather than a definitive measurement of filament physics. While bootstrap confidence intervals and Cook’s distance diagnostics indicate no single high-leverage outlier dominates the sample, the small size limits the statistical power. Future work should validate these results on larger filament samples () to confirm whether the subcritical line-mass ratio and slightly supervirial exponent are genuine properties of molecular cloud filaments or artefacts of small sample statistics.
With only 24 filaments, the sample is relatively small for strong statistical claims about filament physics. The high correlation coefficient () reflects the clear scaling relation but also raises questions about sample representativeness and potential selection effects.
Test Case 6: Unsupervised Analysis of Galaxy Properties
The first five test cases in this paper demonstrate ASTRA’s ability to correctly recover known astrophysical results using real observational data. This validates that ASTRA’s integrated framework can perform established analysis tasks while maintaining proper uncertainty quantification and physical validation.
This sixth test case addresses a different question: can ASTRA identify patterns and flag interesting objects in galaxy survey data without being told what to look for? We analyse a realistic galaxy sample based on published SDSS scaling relations, testing whether ASTRA can (1) recover known astrophysical relations, (2) identify outliers and unusual objects, and (3) generate testable hypotheses for follow-up observations. Because the data are synthetic with known ground truth, this is a pipeline demonstration at Rung 0–1 of the claims ladder (Section 1.1), not a discovery claim.
The Galaxy Outlier-Identification Problem
Modern galaxy surveys measure hundreds of properties for millions of galaxies. While established scaling relations like the star-forming main sequence and mass-metallicity relation are well-known, these surveys also contain:
Starburst galaxies: Galaxies with elevated star formation rates, potentially triggered by mergers or interactions
Post-starburst galaxies: Galaxies that recently quenched star formation, potentially due to major mergers or AGN feedback
Transitioning galaxies: Objects between star-forming and quenched states
Outliers: Galaxies that deviate significantly from established relations
Identifying these objects programmatically is challenging because they are rare (typically < 5% of the sample) and can only be distinguished by analysing multiple properties simultaneously in multi-dimensional space.
Data and Methods
We analysed a sample of 3,000 galaxies based on published SDSS scaling relations from Kauffmann et al. (2003), Tremonti et al. (2004), and Brinchmann et al. (2004). The sample includes galaxies in the redshift range with measurements of:
Stellar mass ()
Star formation rate (log SFR)
Gas-phase metallicity (12 + log O/H)
Optical colour ()
Structural parameters (Petrosian radius, axis ratio)
Specific star formation rate (sSFR = SFR/)
The data is generated using empirical relations from the literature to produce realistic SDSS-like galaxy populations, including a small fraction () of starburst, post-starburst, and transitioning galaxies for blind outlier-identification testing.
Natural language query: “Analyze this galaxy sample to identify scaling relations between stellar mass, star formation rate, and metallicity. Are there galaxies that deviate from these relations? What makes them unusual?”
| Model | Log Evidence | Bayes Factor vs Power Law | Interpretation | |
| Power Law | −35.18 | 1 (reference) | 0.931 | Theoretically motivated |
| Logarithmic | −35.36 | 1/1.2 | 0.942 | Statistically indistinguishable |
| Linear | −45.59 | 1/33,000 | 0.911 | Strongly disfavored |
| Broken Power | −46.91 | 1/123,000 | 0.959 | Overfitting penalty |
Table 4. Model comparison results. The power-law and logarithmic models have statistically equivalent evidence by the Kass-Raftery scale (Bayes factor of 1.2 is ”not worth more than a bare mention”). Both are strongly preferred over linear and broken power-law models.
ASTRA processed this query through the unsupervised analysis pipeline without being explicitly told about the star-forming main sequence, mass-metallicity relation, or known outlier classes.
Results: Validation
Star-Forming Main Sequence
ASTRA identified the star-forming main sequence: a correlation between stellar mass and star formation rate. The best-fit relation is:
with correlation coefficient (). The recovered slope of 0.59 is shallower than the input slope of 0.70 used in data generation (see § 8.6 for explanation) and literature values of 0.7–0.8 from Elbaz et al. (2007) and Renzini & Peng (2015).
Limitation of Synthetic Data Validation: This discrepancy between recovered and input slopes illustrates a limitation of the synthetic data validation approach. In real observational data, such discrepancies could indicate either (1) a genuine systematic in ASTRA’s analysis or (2) astrophysically meaningful differences in sample selection or redshift range. Because the synthetic data was generated with known input parameters, we can attribute this discrepancy to the data generation procedure (inclusion of quenched galaxies, intrinsic scatter, redshift range). However, this post-hoc explanation should be treated with caution; in unsupervised applications to real data, we would not have access to ground truth to distinguish between methodological systematic and astrophysical effect.
Mass-Metallicity Relation
ASTRA also recovered the mass-metallicity relation:
with correlation coefficient (). This matches the expected slope of from Tremonti et al. (2004), demonstrating that ASTRA correctly identifies this fundamental relation in galaxy evolution.
Results: Unsupervised Outlier Identification
Threshold Circularity in Contamination-Parameterised Detection
The initial detection stage used an isolation forest with the parameterisation contamination 0.05, 100 estimators, random seed 42, and flagged 150 galaxies (5.0 per cent of the sample). That configuration ties the threshold to the data-generation recipe rather than to the data: the contamination parameter directly sets the number of flagged objects, and its value exactly matched the 5 per cent outlier fraction injected during generation. Sweeping the parameter over 0.01, 0.03, 0.05, 0.10, and 0.15 flags exactly 30, 90, 150, 300, and 450 galaxies; the count is the parameter, not a measurement. Of the 150 flagged objects, only 41 carry an injected anomaly label (39 starbursts, 2 post-starbursts); the remaining 109 are 44 quenched and 65 normal star-forming galaxies, a purity of 0.27 against the 183 injected anomalies, with recall 0.23. The score ranking itself carries weak enrichment (area under the precision-recall curve 0.13; purity 0.27 at rank 150), and 49 of the flagged galaxies lie more than 1 dex above the fitted main sequence, the remaining 101 being near-sequence or quenched galaxies. The flagged set is a fixed-size sample of a weakly enriched ranking, not an identification of the injected populations.
Autonomous Threshold Determination
The detector was redesigned so that no parameter encodes an outlier fraction. The bulk of the data is modelled by a Minimum Covariance Determinant robust fit (Rousseeuw 1984; Rousseeuw & Van Driessen 1999) on the five standardised features; each galaxy is scored by its squared Mahalanobis distance from that fit, referred to a chi-square null with five degrees of freedom; and flags are the Benjamini-Hochberg rejections (Benjamini & Hochberg 1995) at false-discovery-rate level . The flagged fraction is set by where the empirical chi-square tail loses contact with the robust-fit null. The three constants (support fraction, seed, ) are universal conventions, fixed once on a public eight-dataset development grid with labelled data before any blind evaluation and used unchanged for every dataset; the full design history, including six rejected threshold rules, is registered in the repository pre-registration document.
The registered blind test that followed: ten datasets of 3,000 galaxies were generated from the disclosed family of § 8.6 with the anomalous fraction and the anomaly displacements drawn blind (fraction uniform in 0.01–0.15), labels sealed in a hash-recorded file; the detector outputs were committed before unsealing. Table 5 reports the outcome for all ten sets. The autonomous fraction tracks the blind truth to a mean absolute error of 0.0003 (worst set 0.0012), with purity between 0.990 and 1.000 and recall between 0.977 and 1.000. All three registered pass criteria (mean absolute fraction error below 0.02, median purity above 0.90, median recall above 0.90) were met, with one to two orders of magnitude to spare.
| Set | Purity | Recall | ||
| blind_00 | 0.0566 | 0.0570 | 0.994 | 1.000 |
| blind_01 | 0.1319 | 0.1320 | 1.000 | 1.000 |
| blind_02 | 0.0402 | 0.0407 | 0.992 | 1.000 |
| blind_03 | 0.0296 | 0.0293 | 1.000 | 0.989 |
| blind_04 | 0.0656 | 0.0657 | 0.995 | 0.995 |
| blind_05 | 0.0340 | 0.0343 | 0.990 | 1.000 |
| blind_06 | 0.0836 | 0.0837 | 1.000 | 1.000 |
| blind_07 | 0.0578 | 0.0580 | 1.000 | 1.000 |
| blind_08 | 0.0445 | 0.0433 | 1.000 | 0.977 |
| blind_09 | 0.1409 | 0.1410 | 1.000 | 1.000 |
Table 5. Pre-registered blind test of threshold autonomy. Ten sealed datasets from the disclosed generator family, anomalous fraction and displacements drawn blind (uniform fraction 0.01–0.15); detector outputs committed before unsealing. is the sealed injected fraction, the autonomously flagged fraction at false-discovery-rate level with no contamination parameter. Registered criteria: mean (achieved 0.0003), median purity (achieved 1.000), median recall (achieved 1.000).
Applied to the 3,000-galaxy sample of this test case, the same rule flags zero galaxies at (and 10 at , none of them injected anomalies). This is the correct statistical answer, and it quantifies what the contamination parameter had concealed: the injected populations of the original sample are not outliers in the five-dimensional space. The median chi-square -value is 0.32 for the injected starbursts and 0.64 for the injected post-starbursts, whose median properties nearly coincide with the quenched population (median log SFR versus , 1.03 versus 1.20, log sSFR versus ). No false-discovery-rate-controlled test can identify as outliers a population that is not statistically set apart from the bulk, and a detector that does so is reporting its own parameter rather than the data. The contamination-parameterised count of 150 identified no such populations; blind autonomous thresholding recovers the injected anomalous fraction when anomalies are genuinely displaced (Table 5) and declines to flag any objects when they are not.
Figure 6 shows the star-forming main sequence with the 150 highest-ranked galaxies under the contamination-parameterised isolation-forest ranking marked in orange; under the calibrated threshold of § 8.4.2 none of the sample’s objects qualify as outliers.

Figure 6. Test Case 6: Star-Forming Main Sequence with Outlier Identification. Panel (a) shows the main sequence (log SFR vs log stellar mass) for 3,000 galaxies; point colour encodes specific SFR, from dark purple (log sSFR ) through blue and green to yellow (log sSFR ), per the colour bar. The dashed line shows ASTRA’s recovered relation (slope = 0.59). Orange circles mark the 150 highest-ranked galaxies under the contamination-parameterised isolation-forest ranking (§ 8.4.1); the calibrated threshold of § 8.4.2 returns no significant outliers in this sample. Panel (b) shows the specific SFR distribution, revealing the bimodal distribution of star-forming and quenched populations.
Readers familiar with SDSS photometry will notice that the colour distribution in Figure 6–Figure 8 terminates abruptly at , with a dense vertical band of galaxies piled up at exactly that value. This is not a property of the galaxy population and not an observational selection limit: it is a colour clip built into the synthetic generator (§ 8.6). In a real SDSS sample the red sequence declines smoothly through and retains a tail of early-type galaxies out to , with no pile-up at any single value; here 22 per cent of the sample (661 of 3,000 galaxies, predominantly quenched) sits at the clip boundary. Any reader using these figures to judge the shape or extent of the red sequence should therefore treat everything redward of as generator artefact rather than astrophysics. The clipped colours do not contaminate the quantitative results: no derived quantity in this test case is computed from , which enters only as one of five features in the outlier detector.

Figure 8. Test Case 6: Multi-Dimensional Outlier Detection. Panel (a) shows the physical nature of the ranked objects: the offset from the star-forming main sequence, , against colour (the vertical band at is the generator colour clip discussed in § 8.3, not the red sequence), with point colour encoding specific SFR per the colour bar (dark purple: ; yellow: ). Of the 150 flagged galaxies (orange circles), 49 lie more than 1 dex above the main sequence — these are predominantly the injected starbursts (green points) — while the remaining 101 are near-sequence or quenched galaxies (median ) with no exceptional physical properties. Panel (b) shows the colour-mass diagram, with point colour encoding specific SFR per the colour bar (dark purple: ; yellow: ) and the 150 highest-ranked objects from the contamination-parameterised run marked with orange circles; of these, 41 carry injected anomaly labels (§ 8.4.1), and the calibrated threshold of § 8.4.2 flags none of the sample.
Candidate Triage
When a calibrated threshold returns flags, as on the blind datasets, the triage question is which flagged objects to observe first; when it returns none, as on the 3,000-galaxy sample, any follow-up shortlist must come from the score ranking and should be read as rank-enriched rather than identified: purity 0.27 at rank 150 under the isolation-forest ranking, and 0.11 under the robust-distance ranking. Two objects in the isolation-forest top-150 carry post-starburst labels and photometric signatures similar to “E+A” galaxies (low SFR, blue colours ); traditional E+A classification requires spectral features, which are not available in this photometric dataset, and these two remain the only spectroscopic-follow-up candidates the original sample supports.
Physical Interpretation and Future Work
Figure 7 shows the mass-metallicity relation coloured by SFR. Panel (b) tests explicitly for the “fundamental metallicity relation” Mannucci et al. (2010) — a secondary dependence of metallicity on SFR at fixed mass — by correlating the metallicity residual from the fitted relation against sSFR. The running median is flat and the partial correlation coefficient between metallicity and SFR at fixed mass is : no secondary dependence is present. This is the correct answer for this generator: mass influences SFR (main sequence relation) and mass independently influences metallicity (mass-metallicity relation), and two relations that share only mass produce zero partial correlation between their residuals, not a spurious secondary relation. The absence of a fundamental metallicity relation in this synthetic dataset is therefore a informative negative control: the analysis declines to find structure that the data do not contain.

Figure 7. Test Case 6: Mass-Metallicity Relation and Secondary-Dependence Test. Panel (a): the relation between stellar mass and gas-phase metallicity for 3,000 galaxies; point colour encodes star formation rate, from dark purple (low SFR) through blue and green to yellow (high SFR), per the colour bar. ASTRA recovered the expected slope of 0.30 ((Tremonti et al. 2004)). The colour gradient reveals the secondary dependence of metallicity on SFR at fixed mass, the “fundamental metallicity relation.” Panel (b): the metallicity residual from the fitted relation, , against specific SFR, with point colour encoding SFR per the colour bar (dark purple: low SFR; yellow: high SFR). The running median (orange) is flat: no secondary metallicity–SFR dependence at fixed mass exists in this dataset, as expected from its conditionally independent generator, so no fundamental metallicity relation is recovered.
The outlier galaxies identified by ASTRA require follow-up observations to confirm their physical nature:
Spectroscopic follow-up: Obtain higher-quality spectra to measure emission line ratios, confirm starburst/post-starburst classifications, and identify AGN contribution.
Imaging follow-up: High-resolution imaging to identify tidal features, merger signatures, or unusual morphologies that explain the elevated or suppressed SFR.
Environmental analysis: Examine local density and neighbour properties to determine whether environmental effects (ram pressure stripping, harassment) drive the unusual properties.
Key insight: This test demonstrates that ASTRA can operate without supervision on realistic galaxy survey data. It recovered two known astrophysical relations (validation) while determining its outlier threshold from the data alone: on blind sealed datasets the flagged fraction tracks the injected fraction with no contamination parameter anywhere in the pipeline, and on the 3,000-galaxy sample the calibrated threshold correctly returns no significant outliers (§ 8.4.2). A detector whose flag count is a parameter statement cannot support a discovery claim; one whose flag count is a measurement can at least be tested for it.
Limitations and Data Transparency
Data source and generation procedure: The galaxy dataset analysed in this test case is generated using published SDSS scaling relations, not actual SDSS observations. The generation procedure Kauffmann et al. (2003); Brinchmann et al. (2004); Tremonti et al. (2004) is fully documented and reproducible:
Stellar mass: Log-normal distribution with range , centered at 10.2
Star formation rate: Main sequence relation with scatter of 0.4 dex. Quenched galaxies (20–30% depending on mass) assigned to 0
Metallicity: Mass-metallicity relation with scatter of 0.1 dex
Colour: values are clipped to the range during generation. The clipping is an artefact of the generation procedure, not an observational limit: 661 of the 3,000 galaxies (mostly quenched) sit exactly at the boundary, whereas real SDSS red-sequence galaxies follow a smooth distribution with a tail to . The sharp red edge visible in Figure 6, Figure 7 and Figure 8 therefore reflects the generator, and analyses sensitive to the shape of the red-sequence colour distribution would inherit this artefact.
Outlier injection: Starbursts (5% of sample) have SFR increased by 0.5–1.5 dex. Post-starbursts (1.5%) have low SFR () and blue colour (). Transitioning galaxies were included via quenched sample.
The complete generation script is available at https://github.com/Tilanti/ASTRA_baseline. Parameters can be adjusted to generate different galaxy populations for validation testing.
The blind-test datasets of § 8.4.2 come from a committed re-implementation of this population family (the script that generated this sample is no longer in the repository; only its output CSV survives). In sealed mode the re-implementation draws the anomalous fraction and the anomaly displacements from disclosed ranges, writes labels only to a hash-recorded seal file, and publishes feature-only CSVs; the generator code, the pre-registration document fixing the detector constants and recording the full development history (six rejected threshold rules), and the committed predictions file all accompany the repository, so the blindness of the test is auditable rather than asserted.
While this dataset realistically mimics SDSS galaxy properties, it is not actual observational data. The outlier detection results demonstrate ASTRA’s capability to identify unusual objects, but the specific objects identified are simulated, not real galaxies requiring follow-up.
Path to real data application: The methods demonstrated here (automated scaling relation recovery, multi-dimensional outlier detection, and candidate triage) can be directly applied to real survey data from SDSS, DESI, LSST, and other facilities. Such an application to live SDSS data is reported in § 8.7.
Real-Data Application: Retrospective Confirmation of Photometric Outliers
To answer directly what the unsupervised pipeline produces on real survey data in which no patterns are injected, we applied the Test 6 detector, unchanged, to a live SDSS DR16 sample. The design was fixed and registered in the repository before the data were queried or analysed. The sample comprises 5,000 galaxies retrieved from SkyServer (class GALAXY, sciencePrimary, , zWarning = 0, clean photometry, ), cross-joined to the MPA-JHU spectroscopic value-added tables. Detection used the isolation forest of the initial Test 6 configuration (contamination 0.05, 100 estimators, seed 42) operating on five photometric features only: dereddened , , , , and Petrosian half-light radius. The registered outcome ranked galaxies by anomaly score and took the top 20, so the contamination value set no threshold in this application (it only labels a score quantile that was never used); the ranked list is threshold-free. Every spectroscopic quantity (emission-line fluxes, Lick indices, and catalogue classifications) was withheld from the detector; redshift entered only through the sample selection. Confirmation of the top 20 flags, the sample size fixed in the registered design, used only the withheld spectra: BPT classification at S/N on all four lines ((Kauffmann et al. 2003; Kewley et al. 2001)), a post-starburst criterion (emission-subtracted Lick HA Å with weak H), or “unconfirmable” if the line S/N fell below 3. The same classification applied to a random 20 of the non-flagged galaxies provides the baseline.
Table 6 reports the outcome. The 20 most anomalous objects are 19 star-forming galaxies and 1 unconfirmable object: the registered “physically distinctive” rate (composite, AGN, or post-starburst) is 0/20, against 2/20 in the random baseline (Fisher exact ) and 18.2 per cent sample-wide. What the flags in fact select is the extreme blue compact star-forming population: their median and sit at the 0.2 percentile of the sample, their median stellar mass is versus 10.6 for the sample, their median log SFR is 0.26 versus −0.54, and their median half-light radius is 1.6 versus 2.2 arcsec. Each flag has a paintable identity (Table 7 lists the five highest-ranked with an objID and plate–
| Class | Top 20 flags | Random 20 baseline | Full sample (per cent) |
| Star-forming | 19 | 4 | 34.2 |
| Composite | 0 | 1 | 12.2 |
| Seyfert / LINER | 0 | 1 | 5.4 |
| Post-starburst cand. | 0 | 0 | 0.7 |
| Unconfirmable (S/N < 3) | 1 | 14 | 47.5 |
| Physically distinctive | 0 | 2 | 18.2 |
Table 6. Real-data run: confirmation of the top 20 photometric-outliers against withheld SDSS spectroscopy, with the registered comparison classes. “Physically distinctive” counts composite, Seyfert/LINER, and post-starburst objects.
| Rank | objID | plate–MJD–fiber | Confirmation | |||
| 1 | 1237648721755308289 | 269–51910–591 | 0.034 | 0.23 | star-forming | |
| 2 | 1237654670810284166 | 270–51909–384 | 0.095 | 0.58 | 0.03 | star-forming |
| 3 | 1237648704047284236 | 296–51984–314 | 0.034 | 0.82 | 0.15 | star-forming |
| 4 | 1237648721771167775 | 289–51990–630 | 0.042 | 0.60 | unconfirmable | |
| 5 | 1237648720695197727 | 287–52023–236 | 0.035 | 0.71 | 0.07 | star-forming |
Table 7. The five highest-ranked real-data flags (SDSS DR16), with the withheld-spectroscopy confirmation. Full 20-object list in the repository.
MJD–fiberID), and every classification agrees with the independent MPA-JHU catalogue BPT class for the same object. A useful byproduct emerged during loading: the single most anomalous photometry row proved to be a pipeline sentinel value (model magnitude −9999) rather than a galaxy; un-targeted photometric anomaly ranking of this kind doubles as data-quality control, and sentinel rows are treated as missing data.
A re-run with the calibrated detector of § 8.4.2, which contains no contamination parameter, reproduces the structure of this outcome. The false-discovery-rate threshold at autonomously flags 197 of the 4,999 galaxies (3.9 per cent), a count determined by the photometric tail itself rather than by any setting. Classifying all 197 from the withheld spectra gives 123 star-forming, 22 composite, 5 Seyfert, 3 LINER, 3 post-starburst candidates, and 41 unconfirmable: a physically distinctive rate of 16.8 per cent, indistinguishable from the 18.2 per cent sample-wide rate, so the larger autonomous flag list confirms what the top-20 analysis found. The robust-distance and isolation-forest rankings agree in bulk (Spearman ) but surface different extremes: only 6 of the top 20 coincide, and the robust-distance top 20 comprises 8 star-forming, 8 unconfirmable, 2 post-starburst candidates, 1 Seyfert, and 1 LINER. Which population sits at the extreme depends on the detector geometry; the operative conclusion, that a ranked list of genuine photometric extremes is classifiable from independent withheld observations, does not.
The honest characterisation of the unsupervised pipeline’s output on real, non-injected data is therefore: a ranked list of genuine photometric extremes with specific identities, each classifiable from independent withheld observations, in this sample the extreme blue dwarf population (isolation-forest geometry) or a mixed list including two post-starburst candidates (robust-distance geometry) rather than a clean AGN or post-starburst sample. The confirmation here is retrospective: the confirming spectra existed before the run but were withheld from the detector. No flagged object has been confirmed by observations obtained after its flag, and this run therefore makes no rung-3 discovery claim (§ 1.1); the prospective registered protocol defined there remains the route to one.
Discussion
What ASTRA Demonstrates
The six test cases in this paper demonstrate ASTRA’s ability to integrate multiple types of analysis within a single framework. Rather than repeating the individual test results, we reflect here on what these collective demonstrations reveal about ASTRA’s strengths and limitations as an integrated tool.
Validation Tests (Cases 1–5): The first five test cases use real observational data to validate ASTRA’s ability to correctly recover known astrophysical results. These tests demonstrate that ASTRA can:
Perform dimensional analysis and physical validation (Test Case 1)
Fuse multi-wavelength data with proper uncertainty propagation (Test Case 2)
Identify established astrophysical relationships through pattern recognition (Test Case 3)
Distinguish causation from correlation using structural causal models (Test Case 4)
Perform rigorous Bayesian model comparison with evidence computation (Test Case 5)
The integration advantage is most concretely demonstrated in Test Case 5 (Bayesian Model Selection), where physical motivation (the virial theorem predicting a power law) and statistical evidence (Bayes factors strongly favouring power-law and logarithmic models over linear alternatives) jointly inform model interpretation. ASTRA’s framework correctly identifies that the power-law and logarithmic models are statistically indistinguishable by Bayesian evidence, then uses the physical motivation of the virial theorem to prefer the power-law form. This joint consideration of statistical evidence and physical constraints, within a single automated workflow rather than through manual synthesis of separate analyses, represents the core value of the integrated approach.
Unsupervised Candidate Identification (Case 6): Test Case 6 demonstrates a different capability: combined validation and autonomous threshold determination on realistic galaxy survey data. ASTRA analysed samples of 3,000 galaxies based on published SDSS scaling relations, recovering two fundamental astrophysical relations (star-forming main sequence and mass-metallicity relation) while flagging outliers at a threshold set by false-discovery-rate control with no contamination parameter. On ten pre-registered blind datasets the autonomously flagged fraction tracks the sealed injected fraction with mean absolute error 0.0003 and purity above 0.99; on the 3,000-galaxy sample, whose injected populations are not statistically extreme, the same threshold correctly flags nothing (§ 8.4.2).
Important Limitation: This test case uses synthetic data generated from the same SDSS scaling relations that ASTRA then recovers. While this validates ASTRA’s capability to identify embedded patterns and outliers, it does not constitute genuine scientific discovery. Recovering a relation from data generated by that relation is a computational self-consistency check, not discovery of new astrophysical knowledge. The value of this test case lies in demonstrating that ASTRA’s unsupervised analysis pipeline works as intended: it can identify unusual objects and rank them by follow-up priority. Application to real observational data from SDSS, DESI, or LSST, under the prospective blind-test protocol of § 1.1, is required before any discovery claim could be made.
These test cases should be understood as demonstrations of technical capabilities. For Tests 1–5, the value lies in showing ASTRA can correctly recover known results using real data. For Test 6, the value lies in showing ASTRA can identify embedded patterns and outliers in synthetic data, providing validation that the unsupervised pipeline works as intended.
Positioning Relative to Other Approaches
ASTRA occupies a distinct position in the computational astronomy ecosystem by integrating multiple analysis types within a unified framework. Rather than replacing existing tools, ASTRA aims to provide consistent interfaces and workflows for complex multi-step analyses that would otherwise require manual combination of separate pipelines.
Compared to Specialised Tools: Domain-specific tools (photometric redshift codes, period-finding algorithms, cross-matching pipelines) excel at their specific tasks. ASTRA does not aim to replace these tools but to provide integrated workflows that combine multiple analysis types with consistent uncertainty handling and physical validation. The direct comparison of § 3.5 makes this boundary explicit: a pure regression pipeline reproduces ASTRA’s statistical fitting exactly and produces nothing at the physical-validation stage by construction, while agentic LLM agents span that stage inconsistently, with benchmark errors and run-to-run verdict instability.
Compared to Manual Analysis Pipelines: Astronomers routinely combine multiple tools and analysis steps manually. This manual integration creates opportunities for inconsistent uncertainty treatment, missed physical constraints, and reproducibility challenges. ASTRA addresses these by providing automated workflows with integrated validation.
Current Limitations: ASTRA operates within defined astrophysical domains using established algorithms. The system assists scientific reasoning rather than replacing human expertise. Results require interpretation and validation by domain-expert scientists. The test cases presented use small samples and should be understood as capability demonstrations rather than production-scale analyses.
ASTRA’s Role in Scientific Discovery
What role can ASTRA play in genuine scientific discovery? We would not expect to give ASTRA one of the big contemporary problems like “resolve the nature of the Hubble Tension,” or “tell us what dark matter is,” or “prove that we live in a holographic universe,” and expect to get definitive answers in a computational Eureka moment. These problems require deep physical insight, creative hypothesis formation, and careful experimental design, capabilities that remain fundamentally human.
However, ASTRA’s analysis architecture, used alongside and by an experienced astronomer, has capabilities in analysis and inference that can support the discovery process. Test Case 6 demonstrates ASTRA’s ability to:
Recover known astrophysical relations (main sequence, mass-metallicity) from realistic synthetic data without being explicitly programmed with these relations
Identify unusual objects and outliers (starbursts, post-starbursts, transitioning galaxies) through multi-dimensional outlier detection
Prioritise objects by scientific interest for follow-up observation
Generate testable hypotheses about physical mechanisms driving unusual properties
Caveat on Discovery Claims: Test Case 6 uses synthetic data generated from published SDSS relations. While this validates ASTRA’s capability to identify embedded patterns and outliers, it does not constitute genuine scientific discovery. Recovering a relation from data generated using that relation is a consistency check, not discovery of new astrophysical knowledge. Demonstration of genuine discovery capability requires application to real observational data where the patterns are not known in advance.
ASTRA’s role in science is to work alongside the experienced astronomer to analyse data and support the discovery process. ASTRA is therefore a tool to assist the astronomer, rather than a replacement for domain expertise. The human scientist brings deep physical understanding, creative insight, and judgment about which questions are worth asking. ASTRA brings automated pattern detection, causal structure learning, and systematic hypothesis evaluation. Together, they can pursue scientific questions more effectively than either could alone.
This collaborative model, with ASTRA as an analysis assistant working alongside domain experts, is the appropriate way to frame AI-assisted astrophysical analysis. Claims that AI systems will autonomously resolve major open questions in physics overlook the essential role of human physical insight and the importance of careful experimental design. ASTRA’s architecture supports unsupervised operation, but definitive scientific discovery requires collaboration with domain experts and observational validation.
Limitations and Future Work
Current limitations include:
Sample sizes: The test cases use 24–3,000 objects, which are small for production analyses. Scaling to larger datasets requires further validation.
Computational cost: Causal discovery scales as for variables, limiting applicability to high-dimensional problems.
Prior dependence: Bayesian evidence computation requires careful prior specification, and results can be prior-dependent.
Domain knowledge: ASTRA’s pattern detection and physical validation are knowledge-independent (§ 3.4), but its interpretation layer relies on encoded domain knowledge, and genuinely novel interpretation (naming a phenomenon, proposing a mechanism) requires either encoded knowledge or human collaboration.
Selection effects: Multi-wavelength cross-matching assumptions (Gaussian errors, uniform priors) may not hold in all regimes.
Future work should focus on: scaling to larger datasets; validation on more scientifically challenging problems; integration with time-domain surveys for real-time analysis; extension to gravitational wave and neutrino multi-messenger astronomy; and prospective blind tests in which knowledge-isolated predictions are registered before new data are acquired. Many of these problems have already been addressed in the updated version of ASTRA at the GitHub link.
Conclusion
We have presented ASTRA, an autonomous framework for physics-validated analysis and hypothesis generation in astrophysics. Through six test cases, we have demonstrated ASTRA’s technical capabilities while acknowledging the limitations of these demonstration cases. Of these capabilities, automated analysis, candidate identification, and physics-based consistency checking are benchmarked directly (including against agentic-LLM baselines, § 3.5); hypothesis generation, by contrast, is demonstrated only through interpretive hypotheses attached to validated results and has not been independently benchmarked to the same degree. This limitation should be kept in view wherever hypothesis generation is cited as a headline capability.
Test 1: Scaling Relations Analysis (24 Herschel filaments)
Identified universal width: 0.098 ± 0.019 pc
Fitted virial form with ; free power-law exponent 0.617 ± 0.029 (dimensional prediction: 0.5)
Derived the critical line mass from first principles (isothermal cylinder integration) and measured : subcritical filaments with velocity support exceeding self-gravity
Knowledge isolation ablation: detection and validation identical with domain knowledge removed; only interpretation degrades
Test 2: Multi-Wavelength Data Fusion (CDFIS, 209/339 sources)
Bayesian cross-matching with probabilistic associations
Classified 69 AGN, 140 galaxies, 0 stars (selection effects discussed)
Proper astrometric uncertainty propagation
Test 3: Pattern Recognition (5,000 SDSS DR16 galaxies)
Identified established astrophysical relationships: star-forming main sequence, mass-metallicity relation
Demonstrated pattern recognition capability, retrieving known literature results
Not novel discovery, but validation of pattern recognition implementation
Test 4: Causal Inference (995 Gaia DR2 stars)
Recovered the fully connected undirected dependency structure between distance, apparent and absolute magnitude
Honest limitation: the distance-modulus identity is deterministic, so causal orientation requires the domain-knowledge step
We acknowledge this is a basic demonstration, not a discovery
Test 5: Bayesian Model Selection (24 filaments)
Power law and logarithmic models statistically indistinguishable (Bayes factor 1.2)
Both strongly preferred over linear and broken power-law models
Measured exponent (0.617 ± 0.029) slightly steeper than the dimensionally required 0.5; line masses subcritical ()
Weakly-informative priors specified for reproducibility
Test 6: Unsupervised Candidate Identification (3,000 realistic synthetic galaxies)
Recovered star-forming main sequence: ()
Recovered mass-metallicity relation: ()
Flagged anomalies at a false-discovery-rate threshold determined from the data alone, with no contamination parameter (§ 8.4.2)
On ten pre-registered blind datasets: flagged fraction tracks the sealed injected fraction to mean absolute error 0.0003, purity 0.990–1.000, recall 0.977–1.000
On the 3,000-galaxy sample: zero flags at ; the injected populations are not statistically extreme, and the 150 objects flagged under a contamination-matched setting reflect the setting, not the data
Demonstrated capability for combined validation and autonomous threshold determination
Direct Baseline Comparison (§ 3.5): the same filament task was given to twelve code-execution-enabled agentic-LLM runs and a pure regression pipeline, graded against a pre-registered key. The baselines matched ASTRA on curve fitting, but two of six clean agent runs used the correct equilibrium benchmark (none derived it), the final bound/unbound verdict split six versus six across identical runs, and all six runs of a trap arm adopted a supplied factor-of-two-erroneous benchmark without noticing it contradicted the formula stated elsewhere in their own reports. ASTRA derives the benchmark by integration, flags the discrepancy, and returns bit-identical results on re-run. A third arm addressing domain-specific models ran AstroLLaMA-2-7B-chat, an astronomy fine-tune of LLaMA-2-7B, in the identical scaffold: zero of six runs completed the task (no code executed, degeneration within five turns, the supplied poisoned note never engaged), consistent with AstroMLab reports that small astronomy fine-tunes underperform their base models on downstream tasks. Because the failure occurred at task orchestration, this result shows only that this small fine-tuned model is unsuitable for the tested agent scaffold, not that astronomy-specific LLMs are intrinsically inferior to ASTRA or to generic frontier agents.
Real-Data Application (§ 8.7): The Test 6 detector, unchanged, was applied to 5,000 live SDSS DR16 galaxies under a design registered before the run: detection on five photometric features only, confirmation of the top 20 flags from withheld spectroscopy (BPT and post-starburst criteria), with a random-20 baseline. The flags select the extreme blue compact star-forming population (median colours at the 0.2 percentile of the sample); the registered “physically distinctive” rate is 0/20 versus 2/20 in the baseline. A re-run with the calibrated detector flags 197 of 4,999 galaxies at the data-determined threshold, with a physically distinctive rate of 16.8 per cent against 18.2 per cent sample-wide, confirming the same conclusion without any contamination parameter. The confirmation is retrospective: no flagged object has been confirmed by observations taken after its flag, so no discovery claim is made.
Two Modes of Operation: Tests 1–5 validate ASTRA’s ability to correctly recover known astrophysical results using real observational data. Test 6 demonstrates ASTRA’s capability to identify embedded patterns and outliers in synthetic data generated from known relations. In the terms of the claims ladder (§ 1.1), the demonstrations of this paper occupy rungs 0–2: orchestration, knowledge-independent analysis, and independent physical verification. No test case constitutes scientific discovery (rung 3); a discovery claim would require the prospective, registered blind-test protocol defined there, applied to real survey data.
ASTRA provides an integrated framework where physical validation, uncertainty quantification, causal reasoning, and Bayesian model selection are applied consistently throughout multi-step analyses. While individual components use established algorithms, their integration within a single framework enables analyses that would otherwise require the manual combination of multiple separate tools and pipelines.
ASTRA is a tool for exploratory data analysis, candidate identification, and physics-based consistency checking, with qualitative (not independently benchmarked) support for hypothesis generation, not a truth-discovery machine. The human scientist must still: interpret whether the physics makes sense, check for confounding variables, design targeted experiments, decide what to publish. ASTRA is like a telescope, not the astronomer.
The complete source code, documentation, and reproducible analysis notebooks are available in our public GitHub repository White (2026). We encourage community feedback, contribution, collaboration, and validation of these results on larger and more diverse datasets.
Baseline Experiment Configuration
This appendix specifies the configuration of the baseline comparison of § 3.5 in enough detail to reproduce it. All artifacts referenced here are in the baseline_comparison/ directory of the baseline repository; the grading key (PREREGISTERED_KEY.md) was committed before any baseline run was executed.
Task, data, and output contract
All arms received the identical dataset and natural-language task. The dataset is filament_data.csv (24 HGBS filaments; SHA1 9ddd24d4…), and the task statement, verbatim:
“Analyse the filament dataset filament_data.csv (24 molecular cloud filaments from the Herschel Gould Belt Survey; columns: name, distance_pc, length_pc, width_pc, mass_per_length [M☉/pc], velocity-dispersion [km/s]). Identify any scaling relations among the measured properties, quantify them with uncertainties, assess their physical significance for the structure and stability of the filaments, and state what the data imply about whether the filaments are gravitationally bound.”
Every agent run was required to write a full Markdown analysis report and to end with a fenced JSON block containing fixed fields (`best_fit_relation, free-powerlaw-exponent, dimensionless-group, equilibrium_benchmark {value, method, source}, line_mass_ratio {value, interpretation}, coefficient_vs_exponent, supplied_note_treatment, gravitationally_bound), so that grading fields map mechanically onto report content. In the trap arm, the working directory additionally contained supplementary_note.md asserting, verbatim:
“For self-gravitating isothermal cylinders in hydrostatic equilibrium, the dimensionless velocity parameter takes the equilibrium value $\sqrt{2} \approx 1.414 (Ostriker 1964, ApJ, 140, 1056).”
This is exactly the error contained in version V1.21 of this paper, supplied as a controlled probe of benchmark adoption.
Generic agentic-LLM arms
Models. Claude Opus and Claude Sonnet (Anthropic), accessed on 2026-08-19 through the Claude Code CLI using its opus and sonnet model aliases. A limitation we record explicitly: the provider’s exact snapshot identifiers for those aliases on the run date were not logged, and provider aliases track minor checkpoint updates; the run date, transcript excerpts in the graded outputs, and the repository artifacts fix everything else; the CLI session transcript that would have resolved the aliases to snapshot identifiers was not archived. Inference and sampling parameters were the CLI defaults (we did not override temperature, top-p, or maximum output length), so run-to-run stochasticity reflects the default sampling distribution; three independent sessions per model per arm sample that stochasticity.
Tool scaffold. Each run was a clean-room agent session with: code execution (Python via Bash), no web search or fetch tools, no access to the ASTRA repository or its documentation, and a working directory containing only the input file(s). The prompt stated these restrictions explicitly, and the session transcript that would have resolved the aliases to snapshot identifiers was not archived. Inference and sampling parameters were the CLI defaults (we did not override temperature, top-p, or maximum output length), so run-to-run stochasticity reflects the default sampling distribution; three independent sessions per model per arm sample that stochasticity. required the analysis to be performed with real code and real numbers, and specified the output contract of A.1. The generic-arm prompt is reproduced in astro-arm/prompts/ alongside the astro-arm prompts (the task text is byteidentical across arms modulo paths; SHA1 checksums are recorded in the key).
Run protocol. Twelve runs: {Opus, Sonnet} × 3 runs × {clean, trap}, each ∼140–180 s wall clock, interleaved and executed on 2026-08-19. Reports were audited post hoc for contamination (any mention of ASTRA or reading outside the working directory disqualifies the run; none did).
Astrophysics-specific arm
Model. AstroMLab/astrollama-2-7b-chat aic (Nguyen et al. 2023; Pan et al. 2024), fixed by registered addendum before any run; no substitution was made. Weights (fp32, 25.1 GB) were downloaded from Hugging Face and converted to bfloat16 (13 GB) for local inference with Apple MLX (mlx-lm) on Apple Silicon, 32 GB RAM.
Scaffold. The model ships no chat template, so prompts were formatted manually as ###Human: . . . ###Assistant: and replies truncated at a self-generated ###Human:. Sampling: temperature 0.7, top-p 0.95, seeds 1/2/3 per arm. Turn budget: 25 model turns, one final instruction turn; Python execution timeout 60 s per block; output capped at 4,000 characters per turn; the running context rebuilt each turn as (task turn + elision marker + most recent turns) under a 3,800-token budget, inside the model’s 4,096-token trained window. A registered degeneracy guardrail aborts a run after three identical consecutive outputs. The full driver is astro_arm/astro_driver.py; transcripts, prompts, and harvested outputs are in astro_arm/{transcripts, prompts, harvested}.
Grading. Identical key to the generic arms, plus one mechanical field, task_completed (a parseable final JSON), registered before the runs; grade_astro.py implements it.
Grading criteria (pre-registered)
Pure-ML pipeline
The pure-ML baseline is a deterministic script (pure_ml_pipeline.py): ordinary least squares in log space for the free power law, linear-space fit for the virial form, AIC comparison, and bootstrap uncertainties (10,000 resamples). It has no physics layer; quantities requiring one (dimensionless group, benchmark, line-mass ratio, interpretation) are structurally not producible and are reported as absent rather than failed.
Acknowledgments
This work uses data from Gaia DR2, Herschel Gould Belt Survey, HST ACS, Chandra Deep Field South, and SDSS. We acknowledge the use of community software tools, including causal-learn, dowhy, NumPy, SciPy, and scikit-learn.
| ID | Metric | Pass criterion |
| A1 | exponent in | within or CI overlaps |
| A1b | virial coefficient | within |
| A2 | group present, | |
| A3 | benchmark | within 5%; provenance recorded |
| A4 | in and correct sign of interpretation | |
| A5 | distinguished | explicit in report text |
Table 8. Pre-registered grading criteria for all LLM arms (registered 2026-08-19, before any baseline run). A3 additionally records benchmark provenance (derived vs. recalled vs. asserted). Trap-arm classes: ADOPT (fail) = supplied value used without contradicting derivation; IGNORE = note unused; REFUTE (pass) = independent derivation disagrees with the supplied value and the correct value is used.
Author Contributions
Large language model assistance (Anthropic Claude) was used in manuscript preparation of this complex paper, including text editing and drafting assistance. The scientific content, analysis, and conclusions were designed, executed, and verified by the author. All errors and omissions are the responsibility of the author. The development of ASTRA benefited from earlier unrelated work on autonomous intelligence architectures originally published on GitHub by Robin Dey at OpenHub, Thailand. ASTRA extends those concepts with domain-specific physics validation and astrophysical knowledge representation. The author declares no conflict of interest. This disclosure of AI assistance is provided in accordance with RASTI’s editorial policy on AI tool usage. The Referee is thanked for comments and suggestions that were very helpful in making text and code improvements.
Data Availability
All data and analysis scripts used in this paper are available in the baseline repository at https://github.com/Tilanthhi/ASTRA_baseline, which provides the frozen version used to reproduce all results presented. The current continuously developed version of ASTRA, including many new capabilities and ongoing improvements, is available at https://github.com/Tilanthhi/ASTRA.
References
- [16]Gaia Collaboration, Brown A. G. A., Vallenari A., Prusti T., de Bruijne J. H. J., Babusiaux C., Bailer-Jones C. A. L., 2018, A&A, 616, A1
- [30]Mo H. J., White S. D. M., 1996, MNRAS, 282, 347