MCP
AF

Andre Freitas

175 papers in the library

Papers

30
Designing turbulence through hierarchies
Flavio TuteriAndré Freitas
The authors show that a hierarchy of inertia coupled by the purely geometric nonlinearity of rigid constraints is enough to generate turbulence. In a planar chain of rigid pendula with geometrically decreasing lengths and masses, coupled only through nearest-neighbor constraints, a far-from-equilibrium cascade replaces thermal equipartition, yielding statistically local and time-irreversible energy transfer despite intrinsically nonlocal coupling; fluctuations are intermittent, yet a hidden scale symmetry restores self-similarity. As viscosity vanishes, the dissipation rate saturates at a finite value, and thermal noise consistent with fluctuation-dissipation balance is amplified from the smallest to the largest scales within a fraction of a large-scale period. Because the hierarchy is tunable and realizable mechanically or electrically, turbulence becomes a property that can be designed and measured in the laboratory.
arXivarXiv · · November 3, 2026
0
Efficient Learning of Mechanism Designs and Compositionality
João Pedro GandarelaThiago RiosStefan MenzelAndré Freitas
Assur-KB represents planar mechanisms via irreducible modules, interfaces, and solve dependencies, retaining source geometry. The theory characterizes transfer across module interfaces and limits from missing interface information and accumulated sensitivity. Experiments compare matched mechanism-curve pairs within the same multilayer-perceptron family, showing Assur-derived features yield a geometric-mean $1.8\times$ sample-efficiency advantage over flattened inputs across budgets of 50-10,000 mechanisms. Additional tests support invariance under joint relabelings, higher valid-generation with dyadic composition, and a coarser structural index over 10.02 million mechanisms.
arXivarXiv · · October 29, 2026
0
Reflective Compositional Grounding for Natural-Language-to-SPARQL
Isabelle MohrJohn DujanyAndre Freitas
This paper presents an NL2SPARQL framework that centers on conceptual compositionality, using a fixed concept encoder to represent compound expressions and ranking schema candidates by semantic similarity, type compatibility, and hierarchy proximity. Reflective refinement examines how grounded meanings are realized through bindings, joins, and operator scope, guiding revisions when discrepancies are found. A monotone refinement discipline preserves validated interpretations, improving mean schema recall@10 from 0.712 to 0.837 across five benchmarks and adding 2.27-3.33 answer-F1 points via prompt rewriting.
arXivarXiv · · October 15, 2026
0
0
Autoformalization & Mathematical Reasoning
Lan ZhangMarco ValentinoJordan MeadowsAndré Freitas
This tutorial introduces the emerging field of automated mathematical reasoning, centered on autoformalization and neuro-symbolic and agentic approaches. It examines mathematical reasoning from linguistic and conceptual perspectives, decomposing the spectrum from informal discourse to formal proofs, then details core mechanisms—formal representations, autoformalization, theorem provers, critics, refinement loops, and agentic architectures. Connecting foundations to system-building and evaluation, it extends toward physics and identifies capabilities still needed to move from benchmark solving to meaningful participation in verification, reasoning, and discovery.
ACL AnthologyACL Anthology · October 2026
0
MechReasoner: A Simulator and Benchmark for Mechanistic Reasoning in Qualitative Physics
Danilo GusicumaAndré Freitas
MechReasoner, a qualitative physics simulator based on confluence-based modeling, generates 1,120 benchmark items for testing mechanistic inference in LLMs. Each item is derived deterministically from simulations with licensed ambiguity, states, transitions, and repairs across 18 catalog mechanisms. GPT-5.5 accuracy drops from 76.1% to 38.0% as mechanistic complexity increases, even after controlling for prompt and answer length, showing that qualitative simulators enable auditable benchmarks for mechanistic reasoning.
arXivarXiv · · September 28, 2026
0
World Modeling in Transformers
Pierre BeckmannMatthieu QuelozAndre Freitas
A transformer can possess a coherent world model—representing locations, tracking position, and navigating via a goal compass—even when behavioral errors suggest otherwise. Mechanistic analysis of TaxiGPT, trained on Manhattan random walks, traces failures to interference between superposed intersection features that disrupt localization. Affordance packing (grouping intersections with identical legal moves) limits these errors. The authors propose mechanistic indicators to compare models and show that world-modeling capacities emerge non-uniformly during training, motivating a shift from asking whether a model has a world model to studying its interacting representational and behavioral capacities.
arXivarXiv · · September 18, 2026
0
1
Autoformalizing Argumentative Material Inferences
Xin QuanReto GubelmannAndré Freitas
The paper treats autoformalization of argumentative inference as guard completion: given a premise and a claim, the system constructs a guard set of defeasible warrants, background commitments, and exception conditions, then verifies a monotonic formal proof of the claim from the premise and the guard. A completion is accepted only if its proof passes the Isabelle/HOL theorem prover and survives contrastive tests for premise dependence and claim selectivity. The neuro-symbolic GUARD framework implements this, with an LLM generating candidate guards and step-level feedback from the prover enabling iterative refinement. On Debatepedia and ARCT, GUARD improves verified-faithful completion over the prior LLM-theorem-proving baseline by +35.3 and +32.9 points, while reducing leakage by -25.9 and -21.9 points, mostly attributable to the symbolic soft critique and explicit assumption layer.
arXivarXiv · · September 15, 2026
0
1
Effective Graph and Rank-based Contextual Embeddings for Textual and Multimedia Data
Thiago César Castilho AlmeidaGustavo Rosseto LetícioLucas Pascotti ValemAndré FreitasDaniel Carlos Guimarães Pedronette
GRaCE is an unsupervised graph-embedding framework that builds on RaDE's rank-based approach. It improves representative subset selection with robust rank measures, then uses those subsets to produce interpretable low-dimensional node embeddings. On textual and image datasets, with Transformers or Graph Convolutional Networks as feature extractors, GRaCE outperforms RaDE and original features in retrieval, classification, and clustering while keeping dimensions interpretable.
arXivarXiv · · August 29, 2026
0
3
Align, Unify, Suppress, Route: A Coherentist View of Transformer Computation
Nura AljaafariAndre Freitas
The paper proposes Coherentist Probabilistic Compositionalism (CPC), a framework that interprets transformer computation through four operator roles: alignment, unification, suppression, and routing. Across 15 models from five architectures, weight-space signatures for suppression, unification, and routing correlate with activation-level measures above random baselines. Suppression is more task-stable than unification. Ablating alignment heads reduces downstream suppression beyond random-head controls, but similar effects on no-conflict prompts suggest a general upstream dependency. Explicit contradictions shift a layerwise coherence proxy in 14 models; after removing shared residual covariance, the gap shows the predicted direction in every model. The framework provides a shared vocabulary for comparing mechanisms, though depth and geometric expression remain architecture-specific.
arXivarXiv · · August 22, 2026
0
0
FormalScience: Scalable Human-in-the-Loop Autoformalisation of Science with Agentic Code Generation in Lean
Jordan MeadowsLan ZhangAndre Freitas
FormalScience is a human-in-the-loop agentic pipeline that enables a domain expert (without deep formal language experience) to produce syntactically correct and semantically aligned formal proofs of informal scientific reasoning at low economic cost. Applied to physics, it yields FormalPhysics, a dataset of 200 university-level physics problems and solutions (primarily quantum mechanics and electromagnetism) formalized in Lean4. The paper characterizes semantic drift in physics autoformalisation via concepts such as notational collapse and abstraction elevation, revealing what formal language verifies when full semantic preservation is unattainable.
ACL AnthologyACL Anthology · · July 2026
0
Dissecting Clinical Reasoning in Natural Language Inference for Large Language Models
Mael JullienAndre FreitasMarco ValentinoLeonardo Ranaldi
This paper provides the first controlled evaluation of how prompt structure and efficient fine-tuning jointly affect clinical natural language inference (CTNLI). The authors find that prompt type alone accounts for up to 44% of macro-F1 variance, and LoRA fine-tuning yields consistent gains of +8–12 F1, narrowing the gap to GPT-4o-mini within 7.1%. The study demonstrates that prompt structure is a primary driver of CTNLI reasoning, and compact models with strong prompts and LoRA can rival frontier systems.
ACL AnthologyACL Anthology · July 2026
0
3
Emergence and Localisation of Semantic Role Circuits in LLMs
Nura AljaafariDanilo CarvalhoAndre Freitas
This paper investigates whether LLMs develop causally functional representations of semantic roles. Using a causal-temporal method combining contrastive minimal pairs, edge-attribution circuit discovery, and training-time tracking, the authors find that semantic role circuits are highly localised (89–92% attribution within 28 nodes), emerge gradually through structural refinement, and show moderate cross-scale component overlap (24–51%) with high spectral similarity, suggesting compact, causally isolated mechanisms that partially transfer across scales.
ACL AnthologyACL Anthology · · July 2026
0
Compartmentalised Agentic Reasoning for Clinical NLI
Mael JullienAndre FreitasMarco ValentinoLei Xu
Large language models can produce fluent judgments for clinical natural language inference, yet they frequently fail when the decision requires the correct inferential schema rather than surface matching. We introduce CARENLI , a compartmentalised agentic framework that routes each premise–statement pair to a reasoning family and then applies a specialised solver with explicit verification and targeted refinement. We evaluate on an expanded CTNLI benchmark of 200 instances spanning four reasoning families: Causal Attribution, Compositional Grounding, Epistemic Verification, and Risk State Abstraction. Across four contemporary backbones models, CARENLI improves mean accuracy from about 23% with direct prompting to about 57%, a gain of roughly 34 points, with the largest benefits on structurally demanding reasoning types. These results support compartmentalisation plus verification as a practical route to more reliable and auditable clinical inference.
ACL AnthologyACL Anthology · July 2026
0
Learning turbulent transport via Mori--Zwanzig graph neural networks
André FreitasXander M. de WitAlessandro GabbanaMichael WoodwardFederico ToschiYen Ting LinDaniel Livescu
A Mori–Zwanzig graph neural network (MZ–GNN) learns reduced-order Lagrangian dynamics of tracer particles in homogeneous isotropic turbulence. The model expresses particle acceleration as a finite-memory expansion over present and delayed particle-neighborhood graphs, each term parameterized by an equivariant message-passing GNN. This architecture enforces permutation, Galilean, and rotation–reflection equivariance. Trained on DNS data, autoregressive rollouts show that memory is essential for recovering intermittent, heavy-tailed acceleration statistics, and that the learned dynamics accurately reproduce single-particle dispersion, pair-dispersion, and four-particle tetrad geometry.
arXivarXiv · · June 12, 2026
0
0
SciR: A Controllable Benchmark for Scientific Reasoning in LLMs
Pierre BeckmannMarco ValentinoAndre Freitas
SciR is a multi-paradigm scientific-reasoning benchmark that controls both extraction and inference difficulty. It generates verifiable tasks from deduction trees, inductive rule hypotheses, and causal graphs, then renders them into scientific discourse using domain-specific genres. Testing on six large language models shows that both axes independently degrade performance and compound when combined, even affecting neurosymbolic pipelines that delegate inference to a verified solver. This design produces a per-model extraction-versus-inference difficulty profile, revealing that reasoning models such as DeepSeek-R1 primarily outperform instruct models on the inference axis.
arXivarXiv · · June 11, 2026
0
0
Reasoning without Gold Standards: A Proxy-Judge Theory of Autoformalization
Lei XuXin QuanAndré Freitas
This paper introduces a reference-free proxy-judge framework for autoformalization, separating correctness into grounding, statement faithfulness, coverage, and inference. It shows how imperfect checks affect iterative refinement: proxy false-positive and false-negative rates bound pass-but-wrong candidates, harmful revisions arise through specific failure routes, and final pass rate decomposes into refinement, new candidate generation, and check success. Tests on ProofNet, miniF2F, e-SNLI, and ProntoQA confirm predictions, relating proxy reliability to refinement benefits and risks without gold-standard formalizations.
arXivarXiv · · June 8, 2026
0
0
AbstRAG: Learning to Abstract for Retrieval Problems
Lei XuXin QuanDaniel PedronetteAndré Freitas
AbstRAG addresses the abstraction gap—the mismatch in specificity between a query, the evidence, and the user's intent—by treating abstraction as a first-class retrieval object. It decomposes the gap into typed components and scores relevance by combining match quality, a utility prior, and bridge cost. Its core mechanism, reflective refinement, diagnoses failures, localizes the failed abstraction operator, and applies a stage-specific patch under sufficiency and compression controls. On three within-document retrieval benchmarks, AbstRAG outperforms seven baselines on nDCG@10 in 18 of 21 comparisons and improves generation accuracy by 1.9–5.2%.
arXivarXiv · · June 8, 2026
0
0
Principles of Concept Representation in Sentence Encoders
Isabelle MohrJohn DujanyJonathan SouquetAndre Freitas
This paper uses a compositionality framework to identify four principles for concept representation in sentence encoders. Fine-tuning recalibrates, not expands, latent geometry. Pre-training concentrates semantic signal in the final layer, making cross-layer pooling redundant. Hard negatives improve discrimination but not ranking, showing calibration and ranking are separable. Effectiveness of supervision depends on the target concept's composition type: extensional training helps intersective and subsective families but degrades relational and intensional ones, revealing a structural limitation of current paradigms. Two new datasets accompany the study.
arXivarXiv · · June 5, 2026
0
1
R-APS: Compositional Reasoning and In-Context Meta-Learning for Constrained Design via Reflective Adversarial Pareto Search
João Pedro GandarelaThiago RiosStefan MenzelAndré Freitas
Reflective Adversarial Pareto Search (R-APS) decomposes reasoning into distinct modes—each with its own context—to jointly address error propagation, worst-case robustness, and knowledge staleness in LLM-based agents. Operating on a frozen LLM (no fine-tuning), R-APS orchestrates interaction across three timescales: staged compositional reasoning with a typed validation critic, sensitivity-guided counterfactual stress-testing as a Pareto objective, and meta-inductive rule extraction with explicit invalidation. On planar mechanism synthesis, R-APS tightens robustness certificates 3.5x over baselines, reduces iterations-to-first-admission by 46%, and improves Chamfer distance 2.1x over Enum+GA, with 4B models competitive against 70B backbones.
arXivarXiv · · June 3, 2026
0
0
Beyond Topical Similarity: Contrastive Evidence Retrieval with Interpretable Attention Alignment in RAG
Francielle VargasJoão RobiattiDiego AlvesLucas Pascotti ValemMaximilian SeethSebastián FerradaAmeeta AgrawalDaniel PedronetteAndré Freitas
CERA is a retrieval framework for RAG that moves beyond topical similarity by incorporating subjectivity-based hard negative selection and an auxiliary attention alignment loss during contrastive fine-tuning. This loss supervises CLS-to-token attention using a part-of-speech-weighted masking distribution over human-annotated factual rationales. Experiments on clinical trial reports show that CERA improves retrieval effectiveness and faithfulness, making evidence selection more interpretable.
arXivarXiv · · May 31, 2026
0
1
From Circuit Evidence to Mechanistic Theory: An Inductive Logic Approach
Nura AljaafariDanilo S. CarvalhoAndre Freitas
This work advances mechanistic interpretability by formalizing circuit interpretation as inductive theory construction. Each circuit is characterized by a Causal Functional Signature (CFS) grounding behavior in causal evidence, and an architectural signature learned via inductive logic programming from structural predicates. These signatures make mechanistic claims explicit, comparable via $\theta$-subsumption, and portable across model scales. The CFS reveals distinct strategies like attention-mediated copying versus MLP-mediated binding, and ILP signatures achieve better structural separation than baselines, supporting principled cross-scale transfer.
arXivarXiv · · May 20, 2026
0
1
SciR: A Controllable Benchmark for Scientific Reasoning in LLMs
Pierre BeckmannMarco ValentinoAndre Freitas
SciR is a benchmark for evaluating LLMs on three paradigmatic forms of scientific inference—deduction, induction, and causal abduction—that combines multi-paradigm reasoning with controllable scientific rendering. Tasks are generated from formal objects (a deduction tree, inductive rule hypothesis, or causal graph) to guarantee verifiable answers, then rendered into multi-document scientific discourse through domain-tuned genres, allowing two difficulty axes to be varied independently: extraction of key information and the principled inference itself. Testing six models shows both axes hurt every model and compound; rendering even harms neuro-symbolic pipelines that delegate inference to a verified solver, and the axes yield per-model extraction-vs-inference profiles, with reasoning models like deepseek-r1 mostly surpassing non-reasoning instruct models on inference. To our knowledge, SciR is the first multi-paradigm scientific-reasoning benchmark with parametric control on both axes.
OpenReviewOpenReview · · May 4, 2026
0
Language Models Refine Mechanical Linkage Designs Through Symbolic Reflection and Modular Optimisation
João Pedro GandarelaThiago RiosStefan MenzelAndré FreitasJoão Pedro GandarelaAndré Freitas
The paper introduces a modular framework where language models refine mechanical linkage designs by combining symbolic topology exploration with numerical parameter optimization. A symbolic lifting operator converts simulator trajectories into qualitative descriptors that guide iterative improvement. Across six motion targets and three open-source models, the approach reduces geometric error by up to 68% and improves structural validity by up to 134% over monolithic baselines, with 78.6% of refinement trajectories showing measurable improvement. The system diagnoses overconstraint (56.3%) and underconstraint (35.6%) failures without fine-tuning, demonstrating that symbolic abstraction bridges generative AI and engineering precision.
arXivarXiv · · April 30, 2026
0
0
FormalScience: Scalable Human-in-the-Loop Autoformalisation of Science with Agentic Code Generation in Lean
Jordan MeadowsLan ZhangAndre Freitas
FormalScience is a domain-agnostic, human-in-the-loop agentic pipeline that enables a single domain expert (without deep formal language experience) to produce syntactically correct and semantically aligned formal proofs of informal scientific reasoning at low economic cost. Applied to physics, it yields FormalPhysics, a dataset of 200 university-level problems (quantum mechanics and electromagnetism) with Lean4 formal representations. The paper provides the first systematic characterisation of semantic drift in physics autoformalisation, identifying concepts such as notational collapse and abstraction elevation.
arXivarXiv · · April 24, 2026
0
7
Bridging Linguistic Structure and Mechanistic Interpretability for Conceptual Interpretation in Language Models
Nura AljaafariDanilo CarvalhoAndre Freitas
We introduce DSRA (Definitional Semantic Role Analysis), which applies causal tracing to the reverse dictionary task and augments restoration traces with definitional semantic roles grounded in Argument Structure Theory, thereby extending activation patching beyond token-level localisation to conceptual interpretation. Tested on GPT-J-6B and BERTIN GPT-J-6B, it shows MLP layers handle content-bearing tokens in early layers, MHA layers integrate across middle-to-upper layers at the final token, and upper layers aggregate information, with consistent localisation across English and Spanish.
OpenReviewOpenReview · · February 20, 2026
0
Multi-Dimensional Reference-Free Refinement for Autoformalization
Lan ZhangMarco ValentinoAndré Freitas
Full-theorem autoformalization remains largely unexplored, and existing iterative refinement methods for statement autoformalization improve isolated qualities such as syntax but cannot jointly optimize the multiple dimensions it requires. We introduce a reference-free iterative refinement process at inference time that draws complementary feedback from theorem provers and LLM-based judges, without existing formalizations or human intervention, optimizing a masked composite objective over formal validity as a hard dimension and a set of soft dimensions. An acceptance policy monotonically improves the estimated composite objective, with conditional theoretical guarantees on convergence and behavior under judge uncertainty, and a responsiveness map shows how LLMs in different roles preferentially improve these dimensions, enabling principled generator selection. Experiments improve multiple dimensions, scoring 90.27% on miniF2F and 52.45% on ProofNet overall, with 49.18% and 17.74% of instances at maximum across all dimensions.
arXivarXiv · · January 30, 2026
0
0
Reflective Reasoning for SQL Generation
Isabelle MohrJoao GandarelaJohn DujanyAndre Freitas
This paper proposes a controlled text-to-SQL framework that uses reflective refinement to improve robustness. Instead of rewriting the current SQL, the system decomposes generation into typed stages and applies feedback as persistent updates to the stage-level mechanism. A Reflection-Refinement Loop localizes violations to the responsible stage, preserving previously validated constraints and enabling monotonic improvement over a query set without gold SQL. Experiments on Spider and BIRD show consistent gains over strong baselines, robust convergence within a small refinement budget, and improved execution accuracy across frontier and open-weight models.
arXivarXiv · · January 10, 2026
0
2
MASA: LLM-Driven Multi-Agent Systems for Autoformalization
Lan ZhangMarco ValentinoAndre Freitas
Autoformalization serves a crucial role in connecting natural language and formal reasoning. This paper presents MASA, a novel framework for building multi-agent systems for autoformalization driven by Large Language Models (LLMs). MASA leverages collaborative agents to convert natural language statements into their formal representations. The architecture of MASA is designed with a strong emphasis on modularity, flexibility, and extensibility, allowing seamless integration of new agents and tools to adapt to a fast-evolving field. We showcase the effectiveness of MASA through use cases on real-world mathematical definitions and experiments on formal mathematics datasets. This work highlights the potential of multi-agent systems powered by the interaction of LLMs and theorem provers in enhancing the efficiency and reliability of autoformalization, providing valuable insights and support for researchers and practitioners in the field.
ACL AnthologyACL Anthology · November 2025
0
LangVAE and LangSpace: Building and Probing for Language Model VAEs
Danilo CarvalhoYingji ZhangHarriet UnsworthAndre Freitas
LangVAE is a modular framework for building variational autoencoders on top of pretrained large language models, producing compact, semantically disentangled representations. Its companion LangSpace provides probing methods like vector traversal, interpolation, and disentanglement measures. Experiments with different encoder-decoder combinations and annotated inputs reveal interactions across architectures and sizes regarding generalization and disentanglement, offering a systematic approach to understanding textual representations.
ACL AnthologyACL Anthology · · November 2025
0
TRACE: Training and Inference-Time Interpretability Analysis for Language Models
Nura AljaafariDanilo CarvalhoAndre Freitas
Understanding when and how linguistic knowledge emerges during language model training remains a central challenge for interpretability. Most existing tools are post hoc, rely on scalar metrics, or require nontrivial integration effort, making comprehensive interpretability analysis difficult to deploy and maintain. We introduce TRACE, a modular toolkit for training and inference-time interpretability analysis of transformer models. It enables lightweight, in-training analysis of linguistic and representational signals, including features probing, intrinsic dimensionality, Hessian curvature, and output diagnostics. It integrates with ABSynth, a controllable synthetic corpus generator that provides structured annotations for precise evaluation of linguistic feature acquisition. Experiments with autoregressive transformers demonstrate that TRACE reveals developmental phenomena such as early syntactic emergence, delayed semantic acquisition, and representational compression, signals overlooked by traditional scalar metrics such as loss or accuracy. With minimal integration effort, the tool enables layer-wise diagnostics, convergence-based early stopping, and detection of structural errors, making transformer analysis interpretable, actionable, and reproducible.
ACL AnthologyACL Anthology · November 2025
0
Authors with the same name
Andre Freitas · 1 papers
André Freitas · 135 papers
Frequent collaborators
Marco Valentino (66)
Siegfried Handschuh (20)
Danilo S. Carvalho (18)
Jordan Meadows (14)
Danilo Carvalho (14)
Yingji Zhang (13)
Mokanarangan Thayaparan (12)
Lan Zhang (11)
Xin Quan (11)
Oskar Wysocki (11)
Magdalena Wysocka (10)
Julia Rozanova (10)