Project Rosetta Linear Algebraic Compilation, Neural Decompilation, and the Physics of Software in a 5-Dimensional Latent Space Project Rosetta aligns three modalities — natural language (NL), Python abstract syntax trees (AST), and compiled bytecode (Binary) — into a shared 64-dimensional latent space, revealing that compilation is a linear operator expressible as a single matrix multiplication, and that the entire semantic space of software lives on a ~5-dimensional manifold. Key Discoveries (48 Phases) Foundation (Phases 1–23) Compilation = Matrix Multiply: AST→Binary captured by a 64×64 matrix (R²=0.965), with 90% of energy in just 4 SVD dimensions. Generative Decompilation: A GRU decoder reconstructs Python source from latent vectors with 100% semantic accuracy. Semantic Code Surgery: SVD-axis interventions alter program semantics in 64% of cases — all outputs are valid Python. Neural CPU: Function embeddings predict execution results at R²=0.924 without running Python. Code Morphing: Linear interpolation produces smooth transitions between programs (e.g., addition → multiplication). Beyond Linearity: The Physics of Software (Phases 24–48) Symbol Grounding: The "fMRI of the compiler" — NL concepts activate specific bytecode dimensions (98.4% bit-level prediction accuracy). Information Preservation Law: Compilation preserves 100% of mutual information (~5300 bits) despite discarding 44/64 dimensions. The Rosetta Paradox: Signal dimensions carry 2.2× higher information density than null dimensions — the compiler is an information concentrator. Neural Operating System: Zero-shot executable synthesis (100% accuracy), LLM brain decompilation, and latent-space evolutionary programming. True Dimensionality = 5: Programs reside on a ~5-dimensional manifold — fewer degrees of freedom than a Rubik's cube. The Five Elements of Code: Five principal axes (data-structure↔computation, numeric↔textual, collection↔string, comparison↔transformation, logic↔operation) account for 86.3% of all program variance. Phase Transitions: Sharp semantic boundaries exist in the code manifold — x + y becomes x != y at just 8% interpolation. Holographic Principle: 5 dimensions capture semantic meaning (cos=0.928); 32 dimensions achieve 100% exact code reconstruction. Semantic Gravity: min/max/len are gravitational wells (mass=39); x + y is the most isolated function (mass=3). The Hidden Highway: Comparison operations (x >= y) serve as the "crossroads" of the code manifold, appearing on 22/45 interpolation routes. What's New in V2 25 new experimental phases (P24–P48) covering information theory, neural OS, dimensionality analysis, topology, and cross-connections New section: "Beyond Linearity: The Physics of Software" 9 new figures including architecture overview, bit-level grounding, and the Software Galaxy map Paper expanded from 12 to 17 pages Acknowledgments This research was conducted entirely independently, without institutional affiliation or corporate funding. The author currently faces financial constraints that make it increasingly difficult to maintain subscriptions to AI services essential for this line of research. To sustain and improve the quality of future work, the author is actively seeking community sponsorship. Details are available at https://github.com/sponsors/hafufu-stack.
Hiroto Funasaki (Wed,) studied this question.