Searcharxiv⌕ Search

arXiv subjects

Carlos C. N. Kuhn

Publications and source records attributed to Carlos C. N. Kuhn.

18 recordsLinked to original sources

From Evaluation to Optimisation: Hierarchy-Aware Training Signals for CWE Prediction in Python

The original ALPHA benchmark introduced a taxonomy-aware penalty for evaluating CWE-level vulnerability prediction in Python and proposed that the penalty could theoretically also serve as a training signal. This paper provides that validation. We compare three delivery mechanisms: supervised fine-tuning, a dual-head classification loss, and reinforcement learning with a dense reward derived from the normalised penalty. We find that supervised approaches consistently regress below the zero-shot baseline under distribution shift, while GRPO succeeds. Our best policy reduces the cumulative ALPHA penalty of Qwen2.5-Coder-7B on Security Hardening and Adversarial Testing (SVEN) dataset by 27.9% under greedy decoding, and by 25.5% under sampled decoding(p = 0.005, Welch's t-test), reaching statistical parity with its 4.5x larger zero-shot teacher. We conclude that the value of a hierarchical penalty as a training signal depends largely on the directness of its delivery.

cs.LG↗

A Systematic Investigation of Document Chunking Strategies and Embedding Sensitivity

We present the first large-scale, cross-domain evaluation of document chunking strategies for dense retrieval, addressing a critical but underexplored aspect of retrieval-augmented systems. In our study, 36 segmentation methods spanning fixed-size, semantic, structure-aware, hierarchical, adaptive, and LLM-assisted approaches are benchmarked across six diverse knowledge domains using five different embedding models. Retrieval performance is assessed using graded relevance scores from a state-of-the-art LLM evaluator, with Normalised DCG@5 as the primary metric (complemented by Hit@5 and MRR). Our experiments show that content-aware chunking significantly improves retrieval effectiveness over naive fixed-length splitting. The top-performing strategy, Paragraph Group Chunking, achieved the highest overall accuracy (mean nDCG@5~0.459) and substantially better top-rank hit rates (Precision@1~24%, Hit@5~59%). In contrast, simple fixed-size character chunking as baselines performed poorly (nDCG@5 < 0.244, Precision@1~2-3%). We observe pronounced domain-specific differences: dynamic token sizing is strongest in biology, physics and health, while paragraph grouping is strongest in legal and maths. Larger embedding models yield higher absolute scores but remain sensitive to suboptimal segmentation, indicating that better chunking and large embeddings provide complementary benefits. In addition to accuracy gains, we quantify the efficiency trade-offs of advanced chunking. Producing more, smaller chunks can increase index size and latency. Consequently, we identify methods (like dynamic chunking) that approach an optimal balance of effectiveness and efficiency. These findings establish chunking as a vital lever for improving retrieval performance and reliability.

cs.CL↗

Adaptive Hierarchical Evaluation of LLMs and SAST tools for CWE Prediction in Python

Large Language Models have become integral to software development, yet they frequently generate vulnerable code. Existing code vulnerability detection benchmarks employ binary classification, lacking the CWE-level specificity required for actionable feedback in iterative correction systems. We present ALPHA (Adaptive Learning via Penalty in Hierarchical Assessment), the first function-level Python benchmark that evaluates both LLMs and SAST tools using hierarchically aware, CWE-specific penalties. ALPHA distinguishes between over-generalisation, over-specification, and lateral errors, reflecting practical differences in diagnostic utility. Evaluating seven LLMs and two SAST tools, we find LLMs substantially outperform SAST, though SAST demonstrates higher precision when detections occur. Critically, prediction consistency varies dramatically across models (8.26%-81.87% agreement), with significant implications for feedback-driven systems. We further outline a pathway for future work incorporating ALPHA penalties into supervised fine-tuning, which could provide principled hierarchy-aware vulnerability detection pending empirical validation.

cs.SE↗

Towards Autonomous Riding: A Review of Perception, Planning, and Control in Intelligent Two-Wheelers

The rapid adoption of micromobility solutions, particularly two-wheeled vehicles like e-scooters and e-bikes, has created an urgent need for reliable autonomous riding (AR) technologies. While autonomous driving (AD) systems have matured significantly, AR presents unique challenges due to the inherent instability of two-wheeled platforms, limited size, limited power, and unpredictable environments, which pose very serious concerns about road users' safety. This review provides a comprehensive analysis of AR systems by systematically examining their core components, perception, planning, and control, through the lens of AD technologies. We identify critical gaps in current AR research, including a lack of comprehensive perception systems for various AR tasks, limited industry and government support for such developments, and insufficient attention from the research community. The review analyses the gaps of AR from the perspective of AD to highlight promising research directions, such as multimodal sensor techniques for lightweight platforms and edge deep learning architectures. By synthesising insights from AD research with the specific requirements of AR, this review aims to accelerate the development of safe, efficient, and scalable autonomous riding systems for future urban mobility.

cs.RO↗

The Debugging Decay Index: Rethinking Debugging Strategies for Code LLMs

The effectiveness of AI debugging follows a predictable exponential decay pattern; most models lose 60-80% of their debugging capability within just 2-3 attempts, despite iterative debugging being a critical capability for practical code generation systems. We introduce the Debugging Decay Index (DDI), a mathematical framework that quantifies when debugging becomes ineffective and predicts intervention points. Our strategic fresh start approach shifts from exploitation to exploration at strategic points in the debugging process, demonstrating that well-timed interventions can rescue the effectiveness of debugging. DDI reveals a fundamental limitation in current AI debugging and provides the first quantitative framework for optimising iterative code generation strategies.

cs.SE↗

Large Language Model Guided Self-Debugging Code Generation

Automated code generation is gaining significant importance in intelligent computer programming and system deployment. However, current approaches often face challenges in computational efficiency and lack robust mechanisms for code parsing and error correction. In this work, we propose a novel framework, PyCapsule, with a simple yet effective two-agent pipeline and efficient self-debugging modules for Python code generation. PyCapsule features sophisticated prompt inference, iterative error handling, and case testing, ensuring high generation stability, safety, and correctness. Empirically, PyCapsule achieves up to 5.7% improvement of success rate on HumanEval, 10.3% on HumanEval-ET, and 24.4% on BigCodeBench compared to the state-of-art methods. We also observe a decrease in normalized success rate given more self-debugging attempts, potentially affected by limited and noisy error feedback in retention. PyCapsule demonstrates broader impacts on advancing lightweight and efficient code generation for artificial intelligence systems.

cs.SE↗

Revealing Quantum Information Encoded in Classical Images

In this study, we investigate a simple quantum pre-processing filter kernel designed with only two CNOT gates for image feature extraction. We examine the impact of these filters when combined with a classical neural network for image classification tasks. Our main hypothesis is that this circuit can extract pixel correlation information that classical filters cannot. This approach is akin to a convolutional neural network, but with quantum layers replacing convolutional layers to extract spatial pixel entanglement. We found that a small circuit with just two CNOT gates can be engineered in three different spatial symmetries, each affecting classification differently. While the filter improves classification when combined with a simple, narrow network, it does not surpass complex classical methods. However, the filter demonstrates potential to enhance classification performance in more sophisticated architectures. Despite this, our empirical results show no clear correlation between the observed improvements and the level of entanglement in the quantum circuit, as measured by Von Neumann Entropy. The underlying cause of this improvement remains unclear and warrants further investigation.

quant-ph↗

End-to-End Human Pose Reconstruction from Wearable Sensors for 6G Extended Reality Systems

Full 3D human pose reconstruction is a critical enabler for extended reality (XR) applications in future sixth generation (6G) networks, supporting immersive interactions in gaming, virtual meetings, and remote collaboration. However, achieving accurate pose reconstruction over wireless networks remains challenging due to channel impairments, bit errors, and quantization effects. Existing approaches often assume error-free transmission in indoor settings, limiting their applicability to real-world scenarios. To address these challenges, we propose a novel deep learning-based framework for human pose reconstruction over orthogonal frequency-division multiplexing (OFDM) systems. The framework introduces a two-stage deep learning receiver: the first stage jointly estimates the wireless channel and decodes OFDM symbols, and the second stage maps the received sensor signals to full 3D body poses. Simulation results demonstrate that the proposed neural receiver reduces bit error rate (BER), thus gaining a 5 dB gap at $10^{-4}$ BER, compared to the baseline method that employs separate signal detection steps, i.e., least squares channel estimation and linear minimum mean square error equalization. Additionally, our empirical findings show that 8-bit quantization is sufficient for accurate pose reconstruction, achieving a mean squared error of $5\times10^{-4}$ for reconstructed sensor signals, and reducing joint angular error by 37\% for the reconstructed human poses compared to the baseline.

cs.CV↗

Unleashing Artificial Cognition: Integrating Multiple AI Systems

In this study, we present an innovative fusion of language models and query analysis techniques to unlock cognition in artificial intelligence. The introduced open-source AI system seamlessly integrates a Chess engine with a language model, enabling it to predict moves and provide strategic explanations. Leveraging a vector database to achieve retrievable answer generation, our AI system elucidates its decision-making process, bridging the gap between raw computation and human-like understanding. Our choice of Chess as the demonstration environment underscores the versatility of our approach. Beyond Chess, our system holds promise for diverse applications, from medical diagnostics to financial forecasting. Our AI system is available at https://github.com/TheOpenSI/CoSMIC.git

cs.AI↗

Non-destructive shadowgraph imaging of ultracold atoms

An imaging system is presented that is capable of far-detuned non-destructive imaging of a Bose-Einstein condensate with the signal proportional to the second spatial derivative of the density. Whilst demonstrated with application to $^{85}\text{Rb}$, the technique generalizes to other atomic species and is shown to be capable of a signal to noise of ${\sim}25$ at $1$GHz detuning with $100$ in-trap images showing no observable heating or atom loss. The technique is also applied to the observation of individual trajectories of stochastic dynamics inaccessible to single shot imaging. Coupled with a fast optical phase lock loop, the system is capable of dynamically switching to resonant absorption imaging during the experiment.

physics.atom-ph↗

A quantum sensor: simultaneous precision gravimetry and magnetic gradiometry with a Bose-Einstein condensate

A Bose-Einstein condensate is used as an atomic source for a high precision sensor. A $5\times 10^6$ atom F=1 spinor condensate of $^{87}$Rb is released into free fall for up to $750$ms and probed with a Mach-Zehnder atom interferometer based on Bragg transitions. The Bragg interferometer simultaneously addresses the three magnetic states, $\left| m_f=1,0,-1 \right\rangle$, facilitating a simultaneous measurement of the acceleration due to gravity with an asymptotic precision of $2.1\times 10^{-9}$$Δ$g/g and the magnetic field gradient to a precision $8$pT/m.

physics.atom-ph↗

Observation of Breathers in an Attractive Bose Gas

In weakly nonlinear dispersive systems, solitons are spatially localized solutions which propagate without changing shape through a delicate balance between dispersion and self-focusing nonlinear effects. These states have been extensively studied in Bose-Einstein condensates, where interatomic interactions give rise to such nonlinearities. Previous experimental work with matter wave solitons has been limited to static intensity profiles. The creation of matter wave breathers--dispersionless soliton-like states with collective oscillation frequencies driven by attractive mean-field interactions--have been of theoretical interest due to the exotic behaviour of interacting matter wave systems. Here, using an attractively interacting Bose-Einstein condensate, we present the first observation of matter wave breathers. A comparison between experimental data and a cubic-quintic Gross-Pitaevskii equation suggests that previously unobserved three-body interactions may play an important role in this system. The observation of long lived stable breathers in an attractively interacting matter wave system indicates that there is a wide range of previously unobserved, but theoretically predicted, effects that are now experimentally accessible.

cond-mat.quant-gas↗

Space-Time Area in Atom Interferometry

It is a commonly stated that the acceleration sensitivity of an atom interferometer is proportional to the space-time area enclosed between the two interfering arms. Here we derive the interferometric phase shift for an extensive class of interferometers, and explore the circumstances in which only the inertial terms contribute. We then analyse various configurations in light of this geometric interpretation of the interferometric phase shift.

quant-ph↗

A Bright Solitonic Matter-Wave Interferometer

We present the first realisation of a solitonic atom interferometer. A Bose-Einstein condensate of $1\times10^4$ atoms of rubidium-85 is loaded into a horizontal optical waveguide. Through the use of a Feshbach resonance, the $s$-wave scattering length of the $^{85}$Rb atoms is tuned to a small negative value. This attractive atomic interaction then balances the inherent matter-wave dispersion, creating a bright solitonic matter wave. A Mach-Zehnder interferometer is constructed by driving Bragg transitions with the use of an optical lattice co-linear with the waveguide. Matter wave propagation and interferometric fringe visibility are compared across a range of $s$-wave scattering values including repulsive, attractive and non-interacting values. The solitonic matter wave is found to significantly increase fringe visibility even compared with a non-interacting cloud.

quant-ph↗

A faster scaling in acceleration-sensitive atom interferometers

Atom interferometers have been used to measure acceleration with at best a $T^2$ scaling in sensitivity as the interferometer time $T$ is increased. This limits the sensitivity to acceleration which is theoretically achievable by these configurations for a given frequency of acceleration. We predict and experimentally measure the acceleration-sensitive phase shift of a large-momentum-transfer atom interferometer based upon Bloch oscillations. Using this novel interferometric scheme we demonstrate an improved scaling of sensitivity which will scale as $T^3$. This enhanced scaling will allow an increase in achievable sensitivity for any given frequency of an oscillatory acceleration signal, which will be of particular use for inertial and navigational sensors, and proposed gravitational wave detectors. A straight forward extension should allow a $T^4$ scaling in acceleration sensitivity.

cond-mat.quant-gas↗

The Role of Source Coherence in Atom Interferometery

The role of source cloud spatial coherence in a Mach-Zehnder type atom interferometer is experimentally investigated. The visibility and contrast of a Bose-Einstein condensate (BEC) and three thermal sources with varying spatial coherence are compared as a function of interferometer time. At short times, the fringe visibility of a BEC source approaches 100 % nearly independent of pi pulse efficiency, while thermal sources have fringe visibilities limited to the mirror efficiency. More importantly for precision measurement systems, the BEC source maintains interference at interferometer times significantly beyond the thermal source.

physics.atom-ph↗

80hk Momentum Separation with Bloch Oscillations in an Optically Guided Atom Interferometer

We demonstrate phase sensitivity in a horizontally guided, acceleration-sensitive atom interferometer with a momentum separation of 80hk between its arms. A fringe visibility of 7% is observed. Our coherent pulse sequence accelerates the cold cloud in an optical waveguide, an inherently scalable route to large momentum separation and high sensitivity. We maintain coherence at high momentum separation due to both the transverse confinement provided by the guide, and our use of optical delta-kick cooling on our cold-atom cloud. We also construct a horizontal interferometric gradiometer to measure the longitudinal curvature of our optical waveguide.

cond-mat.quant-gas↗

Exactly solvable models and ultracold Fermi gases

Exactly solvable models of ultracold Fermi gases are reviewed via their thermodynamic Bethe Ansatz solution. Analytical and numerical results are obtained for the thermodynamics and ground state properties of two- and three-component one-dimensional attractive fermions with population imbalance. New results for the universal finite temperature corrections are given for the two-component model. For the three-component model, numerical solution of the dressed energy equations confirm that the analytical expressions for the critical fields and the resulting phase diagrams at zero temperature are highly accurate in the strong coupling regime. The results provide a precise description of the quantum phases and universal thermodynamics which are applicable to experiments with cold fermionic atoms confined to one-dimensional tubes.

cond-mat.quant-gas↗