Papers for

financial software engineers

Papers whose findings have a practical use for this group, as judged from the abstract. Open a paper to read what it means in practice.

Hybrid lstm and xgboost improve multi-horizon stock return forecasts

A Hybrid LSTM-XGBoost Framework for Multi-Horizon Stock Return Prediction Across Diversified Equity Portfolios

Abstract: Accurate prediction of equity returns remains a major challenge in computational finance due to the non-stationary, nonlinear, and low signal-to-noise ratio nature of financial time series. This paper proposes a hybrid two-stage architecture that combines a long short-term memory (LSTM) network with an XGBoost gradient-boosted regressor for multi-horizon stock return prediction across a diversified panel of 14 U.S. equities spanning six industry sectors. The LSTM component, comprising two stacked layers with 64 hidden units, processes 60-day sliding windows of five sequential market features to produce 64-dimensional temporal embeddings that encode learned sequential market dynamics. These embeddings are concatenated with 14 hand-crafted technical indicators to form a 78-dimensional hybrid feature vector, which is subsequently passed to an XGBoost regressor tuned via 3-fold cross-validation grid search. The framework is trained on a multi-stock pooled corpus using strict chronological splits and per-stock MinMaxScaling to prevent look-ahead bias, and evaluated across four prediction horizons of 30, 90, 252, and 365 trading days. Experimental results demonstrate that the hybrid model achieves a test RMSE of 0.0949 on the 30-day horizon, roughly one-third that of the standalone LSTM baseline, while marginally matching or surpassing the XGBoost-Only baseline across the majority of stocks. Directional accuracy rises with horizon length, reaching 97.6% at 365 days; we show, however, that this largely tracks the high base rate of positive long-horizon returns in the sample, and we therefore benchmark directional accuracy against a naive always-positive predictor and treat the above-base-rate gap at short horizons as the more informative signal. A composite investment scoring framework derived from multi-horizon predictions is further proposed to support portfolio ranking and decision support.

Fri 11 SeptArtificial Intelligence
The gist
Predicting stock returns is difficult because financial data is complex and often noisy. The authors combined two types of machine learning models: one that learns patterns over time (LSTM) and one that makes strong predictions from many features (XGBoost). This hybrid approach was tested on 14 different stocks over multiple time frames and showed better accuracy than using either model alone in many cases. They also made a simple scoring system to help rank stocks for investment decisions.
Open 2609.13125v1

Using code to improve clinical calculator accuracy in language models

Towards a Deterministic Math Solver for Clinical Language Models

Abstract: Large language models are unreliable at arithmetic, which is a problem for clinical calculators where a single numerical error changes the recommendation. The standard response is to hardcode each calculator as a validated function, one at a time. We test an alternative: the model does not calculate. Instead, it writes case-specific Python that a restricted local executor runs as a deterministic solver, and the model's task reduces to deciding how to use it. We evaluate this Program-Solve interface on MedCalc-Bench Verified (1,100 cases, 55 calculators) against direct model arithmetic and a hand-written 22-calculator library, using Qwen2.5-7B and Qwen2.5-32B-AWQ, after auditing the benchmark's formulas against current clinical guidelines and flagging 16 of 55 with version, use or coefficient concerns. With formulas and gold variables supplied and both routes reading the whole note, handing off to the solver is not a reliable advantage at 7B (75.31% against 72.02%, a paired +3.29 points with a 95% calculator-cluster interval of [-3.49, 10.38]) but is one at 32B (90.53% against 83.47%, +7.05 [0.47, 14.60], clear of zero). The hand-written library is exact on its 440 supported cases but abstains elsewhere (40.0% overall). Adding an executor thus helps some open-weight models more than others even under matched formula, variable and note access, and is not a substitute for verified formulas or reliable variable extraction either way.

Wed 9 SeptArtificial IntelligenceSoftware Engineering
The gist
Large language models often make mistakes when doing math, which is risky in healthcare where errors can affect patient care. Instead of making the model calculate directly, the authors tested having the model write small pieces of computer code to solve each case, letting a trusted program run that code exactly. They found this approach helps bigger models improve accuracy noticeably, but it’s not perfect and still depends on correct formulas and input numbers. So, writing code for math tasks can make clinical AI tools more dependable but doesn’t replace careful validation.
Open 2609.10728v1

Temporal graph transformer improves credit card fraud risk ranking

Temporal Heterogeneous Graph Transformer for Credit Card Fraud Detection

Abstract: Credit card fraud detection typically relies on tabular features, while repeated attributes can also provide useful relational signals. This paper proposes THGT-FD, a Temporal Heterogeneous Graph Transformer for Fraud Detection. Each transaction is represented using one transaction token and six types of relation tokens and incorporates Time2Vec encoding into the transaction representation. A Transformer learns the interactions among these tokens within each individual transaction and then outputs a fraud probability. Experiments were conducted on 150,000 transactions sampled from the IEEE-CIS Fraud Detection dataset and chronologically partitioned according to TransactionDT. On the test set, THGT-FD achieved an AUC-ROC of 0.8536, an average precision of 0.4164, and a Recall@5% of 0.4708. The class-weighted histogram-based gradient-boosting baseline achieved an AUC-ROC of 0.8722. The results indicate that relation tokens provide useful information for fraud-risk ranking, although the current model does not yet incorporate entity-level historical aggregation.

Mon 7 SeptMachine LearningArtificial Intelligence
The gist
Credit card fraud detection usually looks at simple facts about each transaction, but repeated details across transactions can also help spot fraud. The authors created a new method using a type of AI called a Transformer that looks at transactions and their relationships over time. This method uses special timing signals to understand when transactions happened. Their tests showed this method can help rank fraud risks well, though it did not outperform some existing techniques. This work points to the usefulness of considering relationships between transactions for better fraud detection.
Open 2609.07100v1