arXiv Science⌕ Search

arXiv subjects

Longxiang Yan

Publications and source records attributed to Longxiang Yan.

2 recordsLinked to original sources

Fast and Accurate Boys Function Evaluation Using Nonuniform Gridded Taylor Expansions

Efficient Boys function evaluation is important for Gaussian integral calculations on both central processing units (CPUs) and graphics processing units (GPUs). Gridded Taylor expansion provides a simple evaluation procedure, but a uniformly spaced reference table requires substantial storage over a wide argument range. We address this limitation using a nonuniform grid whose spacing increases with the argument. For large arguments, we introduce a normalized auxiliary function whose scaling and derivative properties allow it to be evaluated using the same Taylor procedure as the main-domain Boys functions. The main-domain and large-argument reference tables are constructed jointly, with polynomial degrees and grid parameters selected under accuracy and storage constraints. Low-part corrections to the reference values are included to improve the accuracy of the Taylor evaluation. The resulting method is implemented in the Fast and Accurate BOys (FABO) library and evaluated in QUICK and NWChem-Simint. FABO gives the smallest maximum and mean errors among the tested implementations for all three reported error measures, with the largest sampled error being approximately 1.067 units in the last place (ULPs). In application benchmarks, FABO reduces the Fock-build time relative to the original Boys evaluators in both applications and is competitive with the other tested implementations.

physics.chem-ph↗

FAST: A Synergistic Framework of Attention and State-space Models for Spatiotemporal Traffic Prediction

Traffic forecasting requires modeling complex temporal dynamics and long-range spatial dependencies over large sensor networks. Existing methods typically face a trade-off between expressiveness and efficiency: Transformer-based models capture global dependencies well but suffer from quadratic complexity, while recent selective state-space models are computationally efficient yet less effective at modeling spatial interactions in graph-structured traffic data. We propose FAST, a unified framework that combines attention and state-space modeling for scalable spatiotemporal traffic forecasting. FAST adopts a Temporal-Spatial-Temporal architecture, where temporal attention modules capture both short- and long-term temporal patterns, and a Mamba-based spatial module models long-range inter-sensor dependencies with linear complexity. To better represent heterogeneous traffic contexts, FAST further introduces a learnable multi-source spatiotemporal embedding that integrates historical traffic flow, temporal context, and node-level information, together with a multi-level skip prediction mechanism for hierarchical feature fusion. Experiments on PeMS04, PeMS07, and PeMS08 show that FAST consistently outperforms strong baselines from Transformer-, GNN-, attention-, and Mamba-based families. In particular, FAST achieves the best MAE and RMSE on all three benchmarks, with up to 4.3\% lower RMSE and 2.8\% lower MAE than the strongest baseline, demonstrating a favorable balance between accuracy, scalability, and generalization.

cs.LG↗