arXiv Science⌕ Search

arXiv subjects

Sophia Simeng Han

Publications and source records attributed to Sophia Simeng Han.

3 recordsLinked to original sources

Transformer Connectomics: Structural and Functional Connectivity as a Network-Level Lens on Attention Heads

Mechanistic interpretability has made substantial progress in identifying circuits responsible for specific behaviors in transformer language models, but offers comparatively few tools for characterizing the global organization of a model before a task or circuit is known. In this work, we adapt techniques from network neuroscience and introduce transformer connectomics, a network-level framework that applies the statistical methodology of structural and functional connectomics to attention heads. We treat attention heads as the nodes of a directed graph, define structural connectivity (SC) from weight-composition pathways and functional connectivity (FC) from correlations of head activity during inference, and analyze the resulting connectomes using permutation-based hypothesis tests, community detection, and structure-function coupling. We validate the framework along three complementary dimensions: recovering architectural organization, recovering known mechanistic structure, and distinguishing learned organization across models. Across these settings, transformer connectomics identifies meaningful head communities, captures established model structure without supervision, and reveals model-specific organizational patterns beyond architecture alone. Transformer connectomics complements existing circuit-discovery and feature-based approaches by providing a task-agnostic statistical description of head organization that can generate hypotheses for downstream mechanistic analysis.

cs.AI↗

Law And Order: Tax Law Autoformalization

Legal systems are increasingly implemented through software, yet scalable methods for translating legal texts into accurate symbolic representations remain underdeveloped. We study this problem through tax law, where forms and filing instructions define large computational structures involving arithmetic, branching, recursion, and tabular reasoning. We propose Law&Order, a neuro-symbolic framework for automatically formalizing tax forms and instructions into executable symbolic programs. Our approach establishes two forms of correspondence between law and logic: structural correspondence, which aligns legal and symbolic components such as cells and schedules, and denotational correspondence, which requires symbolic components to implement the computations specified by their legal counterparts. We combine large language model synthesis with cell-level verification and iterative localized error repair using human-written OpenTaxSolver tax returns. We then evaluate the resulting formalizations on independently authored, held-out TaxCalcBench returns, that are never exposed during generation or repair. Although the most advanced LLM achieves only 66% accuracy, Law&Order achieves 100% cell-level and form-level accuracy on 51 held-out returns, demonstrating the effectiveness of combining LLM-based synthesis with symbolic verification for scalable and verifiable large-scale legal autoformalization compared with using an LLM alone.

cs.AI↗

Omanic: Towards Step-wise Evaluation of Multi-hop Reasoning in Large Language Models

Evaluating the reasoning abilities of large language models (LLMs) solely from final answers can obscure failures in intermediate steps, especially in multi-hop QA benchmarks without step-level annotations. To address this gap, we introduce Omanic, an open-domain 4-hop QA benchmark designed not only to measure final-answer accuracy but also to diagnose where reasoning breaks down. Omanic contains 10,296 machine-generated training examples (OmanicSynth) and 967 expert-reviewed human-annotated evaluation examples (OmanicBench), with each evaluation question decomposed into single-hop sub-questions, intermediate answers, and structured graph topologies. Experiments with proprietary and open-source LLMs show that Omanic is challenging, while step-wise analysis reveals a later-hop bottleneck, factual knowledge floor, and error propagation along reasoning chains. Fine-tuning on OmanicSynth transfers to six reasoning and mathematics benchmarks, yielding a 7.41-point average gain and validating its effectiveness as supervision for reasoning-capability transfer. We release the data at https://huggingface.co/datasets/li-lab/Omanic and the code at https://github.com/XiaojieGu/Omanic.

cs.CL↗