Discussing the article: "Neural Networks in Trading: Iterative Forecast Refinement Models (RAFT)"

Check out the new article: Neural Networks in Trading: Iterative Forecast Refinement Models (RAFT).

The RAFT framework offers a fundamentally different approach to forecasting market dynamics — not as a one-time snapshot, but as an iterative refinement of the state in real time. It takes both local and global changes into account, maintaining a high degree of accuracy even with complex price structures.

The RAFT approach (Recurrent All-pairs Field Transforms), which originated in computer vision for optical flow reconstruction, is based not on coarse single-step inference but on iterative refinement of the state. The model does not attempt to predict the future all at once; instead, it builds an initial estimate and repeatedly improves it by referring to the full field of interrelationships among the input data. This principle differs sharply from traditional architectures, in which a prediction is considered a one-time event, and all shortcomings are addressed only during training. The very structure of the model in the RAFT framework involves refinement within a single inference step. And that is precisely what makes it particularly interesting for the financial sector.

The market rarely reveals its intentions right away. A price movement may begin with a false phase, then gain momentum and be blurred by an opposing impulse. Any one-off forecast is forced to make its bet on the very first approximation. The iterative model works differently. It captures a preliminary version of the future and immediately checks it for consistency with the other relationships in the data, much like an experienced trader instantly reassesses the situation at the slightest new signal. This way of thinking is closer to real-world thinking than rigid, static models that don't change their minds until the next call.

The main idea behind RAFT is the explicit construction of a volumetric field of correspondences between all pairs of elements in the data being analyzed. In the optical flow problem, these are pairs of pixels from two frames. In financial data, these take the form of pairs of time-window states, instruments, time horizons, and local microstructural patterns. This provides not an approximate but a complete map of possible interactions. This kind of map allows one not merely to see a trend, but to understand how a single deviation can play out through dozens of other connections. That is the very nature of the financial market: it is not a linear signal, but a multifaceted field of dependencies that cannot be explained by a single direction of movement.


Author: Dmitriy Gizlyk