Search arXiv⌕ Search

arXiv subjects

Hassan Ugail

Publications and source records attributed to Hassan Ugail.

At least 19 recordsLinked to original sources

Einstein-Net: Error-Bounded Initial Data for Binary Black Holes

The generation of numerical simulations of two merging black holes requires one to start with some initial data, which must be solutions to the constraint equations of general relativity. While the fast generators of such data report only a residual, a small residual does not provide information about the distance of the data to the exact solution. We derive explicit bounds that map the Hamiltonian residual of an approximate puncture solution to limits on its error in the conformal factor, mass, and gradient, the last of which reaches quantities measured on a horizon surface. To carry these bounds, we introduce Einstein-Net, a neural network in which only the Hamiltonian constraint can be violated. We use our approach to study the case of two black holes aligned on a common axis but with arbitrary mass ratios, momenta, and aligned spins. In fifteen hundred independent test configurations, our evaluated bounds were always above the actual error. Furthermore, when applied to a classical spectral solver, our bounds tracked its error through ten orders of magnitude.

gr-qc↗

Recovering What Breaks in a Trapped-Ion Quantum Simulation of a Lattice Gauge Theory

A recent trapped-ion experiment realised a lattice gauge theory with the gauge field in the internal states of the ions and bosonic matter in their vibrations. We showed earlier that its noise damage can be predicted. Here, we show that most of it can be undone. The conservation law of the theory is a parity of each vibrational mode, which heating flips, so a heating event leaves a mark that can be read without disturbing the physics. We keep only the runs in which this mark never changed. With equal heating rates and continuous monitoring, the kept runs reproduce the heating-free dynamics exactly, with a closed-form yield. Reading the mark at finite intervals introduces a small bias linear in the interval, which we derive and bound. At the reported rates, a single final check removes most of the heating and preparation damage while accepting eight runs out of ten.

physics.gen-ph↗

Predicting Noise in a Trapped-ion Quantum Simulation of a Lattice Gauge Theory

A recent trapped-ion experiment realised a lattice gauge theory in which the internal states of the ions carry the gauge field and their vibrations carry bosonic matter. In that experiment, a charge moving around a loop was frozen in place by Aharonov--Bohm interference. The noise of such a device is usually simulated after the measurements have been made. Here we show that it can be predicted before the machine is run. For each quantity that the experiment measures, we derive, from the reported noise rates alone, a formula for how it decays together with a bound it can never exceed. The results reveal a simple pattern. The local conservation law of the theory is a parity of the vibrational mode, so heating violates it at a rate that grows as the mode warms, and the violation accelerates rather than accumulating steadily. At zero electric field, each of the three noise processes of the device leaves its own fingerprint. Heating affects only the conservation law, motional dephasing only the interference, and qubit errors only the stored flux and the frozen state. Once the electric field is switched on, the frozen state begins to leak, and we write an exact formula and a guaranteed bound for that leak.

quant-ph↗

Smooth Curves from Curvature-Driven Subdivision

We introduce and analyse an interpolatory subdivision scheme in which each inserted point is defined by a curvature-profile model rather than by an affine combination of its neighbours, and we establish its convergence and geometric regularity. On each edge, curvatures estimated from circumscribed circles prescribe a curvature profile, the segment is reconstructed by Frenet integration with geodesic shooting, and the new point is taken at half arc length. The construction works identically in the plane and on the sphere, reproduces geodesics and circles exactly, and a unique curvature prefilter turns its planar linearisation into the six-point Deslauriers-Dubuc scheme. The straightening condition of Ewald, Reif, and Sabin fails for this scheme. Measuring only the normal part of the relative distortion repairs their theory, and we prove that the refined polygons converge to a regular interpolatory limit curve with continuous tangent direction and curvature, twice continuously differentiable in arc length. Regularity is thus governed by the normal companion scheme alone, as these authors conjectured.

cs.GR↗

Proximity-Preserving Neural Subdivision

Classical subdivision schemes are widely used because they are local, repeatable, and analytically tractable. A single stencil defines the entire refinement rule, and the behaviour of the resulting operator under iteration is well understood. This uniformity, however, means that fixed stencils tend to underfit localised geometric features, such as sharp ridges or soft edges, where curvature is concentrated. Neural mesh refinement can adapt to such features, yet unconstrained vertex prediction usually lacks the structural behaviour required of a subdivision operator once the refinement rule is applied to its own output. In this work, we introduce Proximity-Preserving Neural Subdivision, or PNS for short. PNS is a trainable refinement rule that augments Loop subdivision with a small, bounded, curvature-gated correction expressed in a covariant local frame. The construction is designed so that, for any finite network weights, the operator is exactly equivariant under rigid motion, reproduces planar input exactly, and remains inside a quadratic proximity envelope around the Loop stencil. At planar valence-k stars, the linearised operator agrees with Loop, and it therefore inherits Loop's tangent eigenspaces and Reif spectral gap at that reference configuration. All of these properties are architectural and hold before any training takes place. Empirically, PNS improves the approximation of localised ridge features while remaining inside its prescribed proximity envelope under repeated subdivision. An unconstrained neural baseline, in contrast, achieves stronger one-step fitting but develops high-frequency artefacts and leaves the subdivision regime once iterated. The overall message of this work is that learning can be introduced into subdivision without abandoning the structural constraints that make subdivision useful as a geometry-processing primitive.

cs.GR↗

A Heisenberg Lift Descriptor for Order Sensitive Online Handwriting Recognition

Online handwriting recognition systems typically represent pen trajectories through fixed-length Euclidean shape descriptors that capture the spatial outline of each stroke, but are insensitive to the order in which that outline is produced. Two strokes that trace the same region of the plane in opposite directions are indistinguishable to any such order-blind representation, yet their traversal directions may carry decisive class information in characters where loop orientation and stroke sequencing matter. This paper introduces a Heisenberg-lift framework that addresses this gap through a compact, interpretable, order-sensitive augmentation for online pen-trajectory features. The simplest instance is the terminal signed area, a single parameter-free scalar appended to an existing Euclidean descriptor at negligible computational cost. Evaluated on two standard online handwriting benchmarks, this one-scalar addition, consistently raises classifier accuracy over the Euclidean baseline. On the hardest character pair in our study, the letters o and y, the signed area alone achieves perfect separation while the Euclidean baseline falls short. The advantage grows further under additive coordinate noise, a practically relevant degradation in pen-trajectory data. A richer fifteen-dimensional extension, derived from a noncommutative Heisenberg-group subdivision scheme, provides additional gains in noisy and loop-structured conditions. Dimension-matched statistical controls confirm that all improvements reflect geometric information rather than feature-count inflation. The resulting descriptor is lightweight, closed-form, and directly interpretable, making it a practical augmentation for online handwriting and related document-trajectory classification pipelines in which the direction of stroke execution carries discriminative information.

cs.CV↗

Adaptive Interpolatory Curve Subdivision with Learned Local Angles

Curve subdivision is pivotal in computer graphics for generating smooth geometric objects from control polygons. Interpolatory subdivision is especially attractive because the refined curve is guaranteed to pass through the designer's control points. Classical four-point and six-point schemes preserve this property, but their behaviour is governed by a single global tension parameter, limiting their ability to adapt across flat regions, sharp turns and varying local geometries. We introduce an adaptive local-angle formulation that keeps the interpolatory structure intact while learning how each new vertex should be inserted. A compact edge-wise predictor assigns one insertion angle per edge, while the original vertices are copied exactly at every refinement level. Interpolation is therefore a structural property of the operator and does not depend on the trained weights. The same predictor is used with geometry-specific geodesic primitives on the Euclidean plane, the two-sphere and the Poincaré disk. Under a matched-density evaluation protocol, the method reduces nearest-neighbour error by factors of five to seventeen over the best validation-tuned fixed-tension baseline, and by about 1.8 over centripetal Catmull-Rom in the Euclidean case. It also substantially reduces bending energy and tangent roughness, while remaining competitive with separately trained per-geometry models.

cs.CV↗

Reliable Weyl Diagnostics for an Inhomogeneous Universe in Numerical Relativity

The electric and magnetic parts of the Weyl tensor provide a geometric diagnostic for describing the local gravitational structure of an inhomogeneous universe, and they allow us to distinguish tidal, gravitomagnetic, radiative, and silent regimes. However, when these diagnostics are computed from numerical relativity data, their interpretation depends on how well the data satisfy the Einstein constraint equations. A small constraint error can create a spurious magnetic signal, especially near a silent regime, and it may therefore be mistaken for genuine radiative structure. In this work, we treat the Hamiltonian and momentum constraint residuals as reliability gates for the Weyl diagnostics. Rather than imposing a fixed tolerance, we measure how a constraint error affects the corresponding Weyl classification, and we then calibrate the tolerance required to achieve a chosen accuracy. Our noise-induced synthetic tests show that the Hamiltonian residual determines the reliability of the electric Weyl diagnostic, whereas the momentum residual determines the reliability of the magnetic Weyl diagnostic. Furthermore, a real numerical relativity initial-data slice confirms that no universal tolerance is adequate. Thus, the calibration measures the slice-level sensitivity of the diagnostics rather than the truncation error of an evolution.

physics.gen-ph↗

A Heisenberg Subdivision Scheme with Central Smoothness Loss

We introduce an interpolatory subdivision scheme for control polygons that take values in the three-dimensional Heisenberg group, the simplest noncommutative model geometry. The scheme keeps existing points at every refinement step and inserts new ones by a coordinate rule whose central correction comes from the group law. The two horizontal coordinates are refined by the classical four-point scheme of Dyn, Gregory and Levin, while the central coordinate acquires a closed-form correction built from a signed area of neighbouring horizontal data. Our main finding concerns the regularity of the limit curve. The horizontal part is exactly the classical four-point limit and inherits its smoothness. The central part behaves very differently. We prove that it converges to a continuous limit that belongs to the Zygmund class, with a logarithmic modulus of continuity. Under an explicit and verifiable condition on the central forcing, this logarithmic bound is sharp, because the scaled first differences then grow linearly with the refinement level, and the limit fails to be continuously differentiable. The effect is confirmed numerically. The correction is harmless at any single refinement step, but its repeated injection at every scale is what impacts smoothness. The example serves as a caution for nonlinear and group-valued subdivision, where a geometrically natural correction can impact regularity.

math.NA↗

Symmetry-Structured Neural Completion of Islamic Geometric Patterns from Sparse Control Geometry

Islamic geometric patterns are governed by exact rotational symmetry and strict construction rules. This paper treats these rules as formal geometric knowledge and embeds them in a neural completion framework, rather than leaving them to be learned statistically from data. Given sparse control geometry and a target symmetry order, the system completes the pattern as a vector graph by predicting edges and refinements of bounded curves over a candidate lattice whose edges are organised into rotational orbits under the cyclic group. Symmetry is enforced either by constraining predictions within these orbits or by projecting them onto them during inference. The orbit-tied variant provides a constructive guarantee: for any input and any orbit-level selection rule, it produces exact N-fold symmetry, preserves anchor points, and keeps all refinements within prescribed bounds. These properties are verified numerically. The study focuses on rotational symmetry, and all quantitative results are obtained from procedurally generated graphs inspired by Islamic geometric design rather than from a historical corpus. On clean inputs, enforcing exact validity produces no measurable loss in fidelity. When control geometry is missing, an unstructured decoder loses fidelity and breaks symmetry; retraining on corrupted inputs recovers much of the fidelity but not exact validity. Symmetry-structured inference, by contrast, keeps violations at zero throughout. The results show that augmentation and symmetry structure address distinct failure modes: augmentation improves fidelity under corruption, while symmetry structure guarantees validity. The framework therefore provides a knowledge-constrained, guarantee-backed approach to neural completion for scalable vector ornaments whose validity depends on exact geometric structure.

cs.CV↗

A Coherence Law for Trainability in Noisy Equivariant Quantum Neural Networks

Symmetry provides a quantum neural network structure, but on its own it does not keep the network trainable once noise is present. We ask which physical quantity decides whether the gradients of an equivariant circuit survive decoherence, and we answer with a compact training law. Working with U(1)-equivariant brickwork circuits that conserve a charge, we find that two distinct effects govern a trainable gradient. Causality fixes where the gradient can live, confining it to the backward light cone of the readout inside the active charge sector. Coherence then determines how fast it decays through the contraction of the off-diagonal sector modes that the projected readout can actually observe. We prove a light-cone reduction that pins the noiseless gradient to the sector-restricted cone with a lower bound independent of the total qubit number, and we define a readout-visible aligned coherence rate as a Rayleigh quotient of the noise generator along the gradient-carrying mode. A perturbative open-system analysis turns this rate into a leading-order training law. Density-matrix simulations then confirm that the finite-noise degradation follows a single accumulated variable built from noise depth and coherence contraction, with a coefficient of determination of 0.979. The sharpest test comes from a correlated-dephasing channel that has a large worst-case rate but a near-zero aligned rate. The law predicts no gradient loss for this channel, and none is seen. Sector coherence outperforms every standard channel diagnostic we compare it against, and the analysis identifies readout-visible sector coherence as the quantity that links equivariant architecture, open-system dynamics and noisy trainability.

quant-ph↗

Geometric Phase-Space Structure in Cosmological Solutions of Einstein's Field Equations

Einstein field equations allow cosmological dynamics to depart from the Friedmann-Lemaitre-Robertson-Walker (FLRW) idealisation in several physically different ways. Matter may become spatially inhomogeneous, the local expansion scalar may vary across a hypersurface, the expansion may acquire anisotropic components through shear, and the free gravitational field may be encoded in nonzero Weyl curvature. The key question is not only how far a model is from FLRW, but which geometric mechanism is responsible. A single departure from FLRW number cannot distinguish these mechanisms. This paper introduces a compact geometric diagnostic framework that keeps them separate while using standard quantities in general relativity. The framework is observer-explicit and domain-explicit, intended as a practical tool for comparing analytic and numerical solution families rather than as a new invariant classification of spacetime. Buchert's kinematical backreaction is retained as a derived explanatory quantity rather than a separate axis, since it is already fixed by the expansion-variance and shear contributions. A single curvature normalisation is used for all Weyl diagnostics. The method is tested on six benchmarks, namely FLRW, Bianchi-I, Kasner, Lemaitre-Tolman-Bondi dust, scalar-perturbed FLRW, and tensor-perturbed FLRW. These benchmarks occupy distinct regions of the diagnostic space, and the magnetic Weyl contribution appears only in the tensor case. The classification remains stable under changes of perturbation amplitude, spatial resolution, averaging domain, constraint reliability, and a leading-order observer tilt. The curvature expressions for the exact benchmarks are verified symbolically against metric-derived Weyl invariants, and the supporting computer code, numerical results, tables, and figures are publicly available.

physics.gen-ph↗

CapCLIP: A Vision-Language Representation Alignment Approach for Wireless Capsule Endoscopy Analysis

Wireless capsule endoscopy (WCE) enables non-invasive visual assessment of the small bowel, but its clinical utility is constrained by the large volume of frames generated per examination and the difficulty of recognising subtle abnormalities under highly variable imaging conditions. Existing learning-based approaches for WCE are predominantly vision-only, often confined to narrow pathology sets, and show limited transfer across datasets and centres. To address these limitations, this study introduces CapCLIP, a domain-specific vision-language representation learning framework for WCE. CapCLIP aligns capsule endoscopy frames with clinically grounded textual descriptions derived from standardised nomenclature and pathology-aware caption templates, thereby learning embeddings that are both semantically informed and transferable. The proposed framework is evaluated against relevant open-source vision and vision-language foundation models under strict zero-shot conditions using unseen WCE datasets. Evaluation covers three downstream tasks: K-nearest neighbour classification, CLIP-style image-text classification, and text-to-image retrieval. Across these settings, CapCLIP consistently outperforms the compared baselines, with particularly strong gains in zero-shot image-text classification and cross-modal retrieval on out-of-distribution datasets. The results indicate that language-guided representation learning can improve both generalisation and semantic interpretability in WCE analysis. These findings position CapCLIP as a step toward foundation models tailored to capsule endoscopy and support the use of language-grounded WCE analysis.

cs.CV↗

Training Deep Visual Networks Beyond Loss and Accuracy Through a Dynamical Systems Approach

Deep visual recognition models are usually trained and evaluated using metrics such as loss and accuracy. While these measures show whether a model is improving, they reveal very little about how its internal representations change during training. This paper introduces a complementary way to study that process by examining training through the lens of dynamical systems. Drawing on ideas from signal analysis originally used to study biological neural activity, we define three measures from layer activations collected across training epochs: an integration score that reflects long-range coordination across layers, a metastability score that captures how flexibly the network shifts between more and less synchronised states, and a combined dynamical stability index. We apply this framework to nine combinations of model architecture and dataset, including several ResNet variants, DenseNet-121, MobileNetV2, VGG-16, and a pretrained Vision Transformer on CIFAR-10 and CIFAR-100. The results suggest three main patterns. First, the integration measure consistently distinguishes the easier CIFAR-10 setting from the more difficult CIFAR-100 setting. Second, changes in the volatility of the stability index may provide an early sign of convergence before accuracy fully plateaus. Third, the relationship between integration and metastability appears to reflect different styles of training behaviour. Overall, this study offers an exploratory but promising new way to understand deep visual training beyond loss and accuracy.

cs.CV↗

Biharmonic Subdivision on Riemannian Manifolds

This paper introduces a biharmonic interpolatory subdivision framework on Riemannian manifolds. In the Euclidean setting, the six-point Deslauriers-Dubuc stencil is characterised as the unique minimiser of a discrete curvature-variation energy under symmetric six-point support and degree-five polynomial reproduction conditions, linking a classical interpolatory rule to a first-principles fairness criterion. Exact symbol analysis establishes fourth-order smoothness. The construction extends to the two-sphere and the hyperbolic plane via a second-order reduced governing ODE derived from the biharmonic Euler-Lagrange equation on constant-curvature surfaces. This reduced model yields closed-form insertion rules, and proximity analysis confirms that the manifold scheme satisfies the Wallner-Dyn second-order condition, preserving fourth-order smoothness. A hierarchy of biharmonic stencils achieving higher smoothness orders is also described. Numerical experiments demonstrate that the six-point scheme delivers lower fairness energy and smoother curvature profiles than the classical four-point Dyn-Gregory-Levin scheme, while remaining more local and exhibiting less ringing on non-uniform data than the eight-point variant.

math.GM↗

A Neural Tension Operator for Curve Subdivision across Constant Curvature Geometries

Interpolatory subdivision schemes generate smooth curves from piecewise-linear control polygons by repeatedly inserting new vertices. Classical schemes rely on a single global tension parameter and typically require separate formulations in Euclidean, spherical, and hyperbolic geometries. We introduce a shared learned tension predictor that replaces the global parameter with per-edge insertion angles predicted by a single 140K-parameter network. The network takes local intrinsic features and a trainable geometry embedding as input, and the predicted angles drive geometry-specific insertion operators across all three spaces without architectural modification. A constrained sigmoid output head enforces a structural safety bound, guaranteeing that every inserted vertex lies within a valid angular range for any finite weight configuration. Three theoretical results accompany the method: a structural guarantee of tangent-safe insertions; a heuristic motivation for per-edge adaptivity; and a conditional convergence certificate for continuously differentiable limit curves, subject to an explicit Lipschitz constraint verified post hoc. On 240 held-out validation curves, the learned predictor occupies a distinct position on the fidelity--smoothness Pareto frontier, achieving markedly lower bending energy and angular roughness than all fixed-tension and manifold-lift baselines. Riemannian manifold lifts retain a pointwise-fidelity advantage, which this study quantifies directly. On the out-of-distribution ISS orbital ground-track example, bending energy falls by 41% and angular roughness by 68% with only a modest increase in Hausdorff distance, suggesting that the predictor generalises beyond its synthetic training distribution.

cs.LG↗

Handcrafted Feature-Assisted One-Class Learning for Artist Authentication in Historical Drawings

Authentication and attribution of works on paper remain persistent challenges in cultural heritage, particularly when the available reference corpus is small and stylistic cues are primarily expressed through line and limited tonal variation. We present a verification-based computational framework for historical drawing authentication using one-class autoencoders trained on a compact set of interpretable handcrafted features. Ten artist-specific verifiers are trained using authenticated sketches from the Metropolitan Museum of Art open-access collection, the Ashmolean Collections Catalogue, the Morgan Library and Museum, the Royal Collection Trust (UK), the Victoria and Albert Museum Collections, and an online catalogue of the Casa Buonarroti collection and evaluated under a biometric-style protocol with genuine and impostor trials. Feature vectors comprise Fourier-domain energy, Shannon entropy, global contrast, GLCM-based homogeneity, and a box-counting estimate of fractal complexity. Across 900 verification decisions (90 genuine and 810 impostor trials), the pooled system achieves a True Acceptance Rate of 83.3% with a False Acceptance Rate of 9.5% at the chosen operating point. Performance varies substantially by artist, with near-zero false acceptance for some verifiers and elevated confusability for others. A pairwise attribution of false accepts indicates structured error pathways consistent with stylistic proximity and shared drawing conventions, whilst also motivating tighter control of digitisation artefacts and threshold calibration. The proposed methodology is designed to complement, rather than replace, connoisseurship by providing reproducible, quantitative evidence suitable for data-scarce settings common in historical sketch attribution.

cs.CV↗

Dynamical Systems Analysis Reveals Functional Regimes in Large Language Models

Large language models perform text generation through high-dimensional internal dynamics, yet the temporal organisation of these dynamics remains poorly understood. Most interpretability approaches emphasise static representations or causal interventions, leaving temporal structure largely unexplored. Drawing on neuroscience, where temporal integration and metastability are core markers of neural organisation, we adapt these concepts to transformer models and discuss a composite dynamical metric, computed from activation time-series during autoregressive generation. We evaluate this metric in GPT-2-medium across five conditions: structured reasoning, forced repetition, high-temperature noisy sampling, attention-head pruning, and weight-noise injection. Structured reasoning consistently exhibits elevated metric relative to repetitive, noisy, and perturbed regimes, with statistically significant differences confirmed by one-way ANOVA and large effect sizes in key comparisons. These results are robust to layer selection, channel subsampling, and random seeds. Our findings demonstrate that neuroscience-inspired dynamical metrics can reliably characterise differences in computational organisation across functional regimes in large language models. We stress that the proposed metric captures formal dynamical properties and does not imply subjective experience.

cs.AI↗