Outline. GPU for Finance SciFinance SciFinance CUDA Risk Applications Testing. Conclusions. Monte Carlo PDE

Similar documents
Outline. GPU for Finance SciFinance SciFinance CUDA Risk Applications Workstation Testing. Enterprise Testing Dell and NVIDIA solutions Conclusions

Numerix Pricing with CUDA. Ghali BOUKFAOUI Numerix LLC

Financial Mathematics and Supercomputing

Financial Computing with Python

WHITE PAPER THINKING FORWARD ABOUT PRICING AND HEDGING VARIABLE ANNUITIES

Pricing Early-exercise options

Accelerating Quantitative Financial Computing with CUDA and GPUs

Hedging Strategy Simulation and Backtesting with DSLs, GPUs and the Cloud

Financial Risk Modeling on Low-power Accelerators: Experimental Performance Evaluation of TK1 with FPGA

Accelerating Financial Computation

Monte-Carlo Pricing under a Hybrid Local Volatility model

Implementing Models in Quantitative Finance: Methods and Cases

Handbook of Financial Risk Management

F1 Acceleration for Montecarlo: financial algorithms on FPGA

Stochastic Grid Bundling Method

HPC IN THE POST 2008 CRISIS WORLD

Barrier Option. 2 of 33 3/13/2014

Reconfigurable Acceleration for Monte Carlo based Financial Simulation

New GPU Pricing Library

NAG for HPC in Finance

Domokos Vermes. Min Zhao

Contents Critique 26. portfolio optimization 32

Algorithmic Differentiation of a GPU Accelerated Application

Ultimate Control. Maxeler RiskAnalytics

PRICING AMERICAN OPTIONS WITH LEAST SQUARES MONTE CARLO ON GPUS. Massimiliano Fatica, NVIDIA Corporation

Monte Carlo Methods in Financial Engineering

Accelerated Option Pricing Multiple Scenarios

Monte Carlo Methods in Finance

Benchmarks Open Questions and DOL Benchmarks

Numerical software & tools for the actuarial community

Computational Methods in Finance

AMSTERDAM BOSTON HEIDELBERG LONDON NEW YORK OXFORD PARIS SAN DIEGO SAN FRANCISCO SINGAPORE SYDNEY TOKYO Academic Press is an Imprint of Elsevier

NUMERICAL AND SIMULATION TECHNIQUES IN FINANCE

Modeling multi-factor financial derivatives by a Partial Differential Equation approach with efficient implementation on Graphics Processing Units

Introducing LIST. Riccardo Bernini Head of Financial Engineering Enrico Melchioni Head of International Sales. March 2018

Multi-level Stochastic Valuations

Implementing hybrid PDE solvers

Basel 2.5 Model Approval in Germany

Session 174 PD, Nested Stochastic Modeling Research. Moderator: Anthony Dardis, FSA, CERA, FIA, MAAA. Presenters: Runhuan Feng, FSA, CERA

SPEED UP OF NUMERIC CALCULATIONS USING A GRAPHICS PROCESSING UNIT (GPU)

we def ine co nsulti n g MoCA Valuation out of the box

Market Risk Analysis Volume IV. Value-at-Risk Models

Towards efficient option pricing in incomplete markets

Liangzi AUTO: A Parallel Automatic Investing System Based on GPUs for P2P Lending Platform. Gang CHEN a,*

for Finance Python Yves Hilpisch Koln Sebastopol Tokyo O'REILLY Farnham Cambridge Beijing

With Examples Implemented in Python

Cross Asset CVA Application

GPU-Accelerated Quant Finance: The Way Forward

ARM. A commodity risk management system.

Applications of Dataflow Computing to Finance. Florian Widmann

Near Real-Time Risk Simulation of Complex Portfolios on Heterogeneous Computing Systems with OpenCL

Math Option pricing using Quasi Monte Carlo simulation

Assessing Solvency by Brute Force is Computationally Tractable

Many-core Accelerated LIBOR Swaption Portfolio Pricing

HIGH PERFORMANCE COMPUTING IN THE LEAST SQUARES MONTE CARLO APPROACH. GILLES DESVILLES Consultant, Rationnel Maître de Conférences, CNAM

Remarks on stochastic automatic adjoint differentiation and financial models calibration

MFE Course Details. Financial Mathematics & Statistics

BlitzTrader. Next Generation Algorithmic Trading Platform

Pricing Asian Options

Local Volatility FX Basket Option on CPU and GPU

New Developments in MATLAB for Computational Finance Kevin Shea, CFA Principal Software Developer MathWorks

Analytics in 10 Micro-Seconds Using FPGAs. David B. Thomas Imperial College London

Economic Scenario Generator: Applications in Enterprise Risk Management. Ping Sun Executive Director, Financial Engineering Numerix LLC

Market Risk Analysis Volume II. Practical Financial Econometrics

INTEREST RATES AND FX MODELS

Financial Models with Levy Processes and Volatility Clustering

Callability Features

Option Pricing with the SABR Model on the GPU

GRAPHICAL ASIAN OPTIONS

Efficient Reconfigurable Design for Pricing Asian Options

S4199 Effortless GPU Models for Finance

Math Computational Finance Option pricing using Brownian bridge and Stratified samlping

Pricing Financial Derivatives with High Performance Finite Difference Solvers on GPUs

2.1 Mathematical Basis: Risk-Neutral Pricing

Callable Bond and Vaulation

Calibration Lecture 4: LSV and Model Uncertainty

Modelling Counterparty Exposure and CVA An Integrated Approach

Credit Risk Modeling Using Excel and VBA with DVD O. Gunter Loffler Peter N. Posch. WILEY A John Wiley and Sons, Ltd., Publication

2nd Order Sensis: PnL and Hedging

Modern Derivatives. Pricing and Credit. Exposure Anatysis. Theory and Practice of CSA and XVA Pricing, Exposure Simulation and Backtest!

Puttable Bond and Vaulation

Managing the Newest Derivatives Risks

Computational Finance in CUDA. Options Pricing with Black-Scholes and Monte Carlo

Brooks, Introductory Econometrics for Finance, 3rd Edition

Interest Rate Bermudan Swaption Valuation and Risk

ARM. A commodity risk management system.

Math Computational Finance Double barrier option pricing using Quasi Monte Carlo and Brownian Bridge methods

Monte Carlo Methods in Structuring and Derivatives Pricing

RunnING Risk on GPUs. Answering The Computational Challenges of a New Environment. Tim Wood Market Risk Management Trading - ING Bank

Rapid computation of prices and deltas of nth to default swaps in the Li Model

Interest Rate Cancelable Swap Valuation and Risk

Point De Vue: Operational challenges faced by asset managers to price OTC derivatives Laurent Thuilier, SGSS. Avec le soutien de

Automatic Generation and Optimisation of Reconfigurable Financial Monte-Carlo Simulations

FINANCIAL DERIVATIVE. INVESTMENTS An Introduction to Structured Products. Richard D. Bateson. Imperial College Press. University College London, UK

Numerix Economic Scenario Generator

In physics and engineering education, Fermi problems

Monte Carlo Simulations

Proxy Techniques for Estimating Variable Annuity Greeks. Presenter(s): Aubrey Clayton, Aaron Guimaraes

Interest Rate Models

The Pennsylvania State University. The Graduate School. Department of Industrial Engineering AMERICAN-ASIAN OPTION PRICING BASED ON MONTE CARLO

Transcription:

Outline GPU for Finance SciFinance SciFinance CUDA Risk Applications Testing Monte Carlo PDE Conclusions 2

Why GPU for Finance? Need for effective portfolio/risk management solutions Accurately measuring, managing and hedging derivatives risk exposure in a timely fashion is a primary objective for financial institutions. Fast, accurate derivative pricing models are therefore of key importance GPU-enabled pricing models offer: Accurate derivatives valuation (Reduced reliance on approximations) Broader scenario analysis Alternative or multiple risk assessment and methodologies Real-time risk management Huge reduction in datacenter footprint and power consumed 3

GPU Deployment in Finance 4

CUDA development approaches Hand-coding pricing model in CUDA Requires CUDA programming expertise Re-thinking pricing model implementation, and experimentation Re-assess underlying numerical routines and methodologies Automatically generate CUDA-enabled pricing model source code Harness the benefits of GPU computing without manual porting of each model to CUDA C/C++ Follows the best practice guidelines for CUDA C/C++ 5

SciFinance Overview Automatically generates C/C++ pricing model source code from concise, high-level model specifications NVIDIA GPU (CUDA C/C++) and multi-core CPU (OpenMP) support SciFinance is not a scripting language for assembling a set of black-box components Stand alone cross-platform C/C++ code Support for any financial derivative valued using any system of partial differential equations (PDEs, Finite Differences) or stochastic differential equations (SDEs, Monte Carlo simulations) SciFinance has been developed over 15 years with the input and guidance of practitioners at top tier institutions worldwide SciFinance generated pricing model source code is yours in perpetuity No run-time licenses or links to vendor binary libraries 6

SciFinance Description SciFinance is a flexible/extensible financial language/compiler with a high-level, keyword rich language End users have full modeling control over: Contract terms Instrument features Underlying dynamics Numerical routines and methodologies No imposed data model Hundreds of example model specifications included, covering all asset classes and popular models, all of which are completely customizable and composable SciCalibrator is a cross asset calibration framework for generating C/C++ model calibration routines 7

SciPDE features Any number of PDEs, arbitrary dimensionality Fast Craig-Sneyd ADI solvers Any linear PDE s and PIDE s - many non-linear e.g., transaction costs and HJB (in development) Complete control over discretizations, grid building, boundary conditions, etc Sensitivity measures calculated on any model parameter (FD or automatic differentiation of pricing PDE) 8

SciMC features Arbitrary form and number of stochastic processes Expressed as SDEs (stochastic differential equations) May include state-dependent parameters and jumps (arbitrary distributions) Sensitivity functions for any parameter of SDEs Finite Difference standard Hybrid FD-Likelihood method American/Bermudan exercise Choice of high-quality (pass TestU01 and DIEHARD statistical test suites) pseudo- random number generators Quasi-random number generators (Sobol, Faure, Halton) 9

SciFinance Cross Asset Support Convertible Bonds Cross Currency Hybrid Instruments Equity Interest Rate FX Credit Commodity Energy SciFinance 10

SciFinance Work Flow example.s (SciFinance specification, ASPEN) (* European option *) der[v,t] + 1/2 sigma^2 S^2 der[v,{s,2}] + (r-q) S der[v,s] - r V = 0; Payoff[Max[K-S,0]]; Output[V, S=Spot]; ASPEN Specification language Mathematica-like syntax High level description Direct SDE/PDE expressions Access external proprietary functions/classes Synthesized C/C++ code has NO EXTERNAL DEPENDENCIES NO BINARIES, pure source code Compile on ANY TARGET MACHINE with any C/C++ compiler *.cpp/.cu *.h *.vcproj, *.sln Makefile *.Main.cpp *.xml C/C++ (CUDA C/C++, OpenMP) source code Build scripts test harness Configuration/ Interface info 11

SciFinance code integration *.cpp *.h C/C++ source code *.xml Configuration/ Interface info SciPython SciNET SciCOM SciJava SciXLL.Net wrapper (managed code) COM wrapper Excel Add-In (XLL) Java wrapper (JNI) Python wrapper (Python C API) C#, Java, Python test harnesses MS Excel spreadsheets Build scripts 12

SciFinance - CUDA Code Synthesis automatically generates CUDA pricing and risk model source code Create an ASPEN specification for the pricing model Synthesize the serial source code and test it Add keyword CUDA to the specification Re-synthesize to get CUDA-enabled code No CUDA/parallel programming expertise is required 13

SciFinance CUDA-enabled pricing models Features: Cross-platform (MS Windows, Linux and OS X) Support CUDA Compute Capability 1.x, 2.x and 3.x Multi-GPU support via OpenMP threading Mixed single/double precision or full double precision Typical CUDA accelerations: Monte Carlo pricing models: 20X* - 60X* faster than CPU code (single GPU, double precision) PDE pricing models: 10X* - 40X* faster than CPU code (single GPU, double precision) * 4 core Intel Xeon W5580@3.2GHz vs 1 NVIDIA Tesla K20 (Kepler) 14

Example GPU risk computation : PFE Portfolio of 1000 swaps 1 -> 20yr maturities Mixture of Vanilla, CMS/Libor, and CMS/CMS 2yr, 5yr, 10yr CMS, random start dates 60 Counterparties - 1 to 50 swaps per counterparty Half subject to netting agreements, half not Evolution under multi-factor Gaussian model 95% PFE daily for 1 month, then weekly for 1 year Full double precision: 50X* for paths > 1024 Mixed single/double precision: 90X* for paths > 1024 * 4 core Intel Xeon W5580@3.2GHz vs 1 NVIDIA Tesla K20 (Kepler) 15

Benchmarking: Dell Workstation 1 GPU Hardware specifications: Dell Precision T5500 NVIDIA Tesla K20 (Kepler), 1 GPU Intel Xeon W5580 (4 cores) @ 3.2 GHz Testing environment: Windows 7 Enterprise 64-bit MS Visual C++ 9.0 (2008 SP1) 64-bit CUDA 5.0 64-bit Timing for the entire pricer code (initialization + memory transfers + GPU kernels) Full double precision code Error-Correcting Code (ECC) memory is ON 16

Monte Carlo Basket Option with Greeks 10 assets Deltas and diagonal Gammas Monte Carlo, Sobol sequence 17

Monte Carlo Callable Range Accrual Note Two-factor LIBOR market Model Monte Carlo, Sobol sequence Regression dominates Valuation dominates 18

Misc Monte Carlo Model Results CPU CPU 19X CPU 21X 30X GPU GPU GPU 19

PDE: The challenges 1D PDEs: Already very fast on the CPU: <1ms for Crank-Nicolson/Penalty Method American option solution. Finite difference schemes -> low order banded matrix. Discrete path dependency, e.g. Asian, soft call, range accrual features add additional pseudo-dimensions, PDE unchanged. Multi-D PDEs: ADI (Alternating Direction Implicit) usually optimal. Reduces to a series of 1D banded matrices. For ADI parallelization in the 2 nd, 3 rd, dimension and/or path quasi-dimensions is trivial BUT This easy parallelization is usually insufficient for an architecture like CUDA which requires 1000 s of threads for optimal performance. Must parallelize the basic 1D banded solver itself in addition to the multi-d and path factors. Possibilities include Cyclic Reduction and Recursive Doubling solvers (designed for fine-grained parallelism). 20

3D PDE examples Algorithm: Predictor-Corrector ADI (Craig-Sneyd) 2nd order accuracy, unconditional stability Any positive definite correlation matrix Non-uniform (conforming) grids via coordinate transformations 21

PDE Three Asset Option ADI Penalty Method for American exercise Grid dimensions 22

PDE Cancellable Knockout PRDC Swap Gaussian IR Lognormal FX Term structure of vols Speedup (X) 1 GPU vs 1 CPU core Number of grid points for the FX exchange rate Number of grid points for each interest rate factor 23

Conclusions State-of-the art solution for derivatives management: Automated CUDA programming for derivatives pricing models Faster derivatives pricing and risk management Energy Efficient: huge reduction in datacenter footprint and power consumed Cost effective technologies Higher performance/price ratio than for a CPU cluster 24

SciFinance evaluation SciFinance evaluations are available Test the performance of your own GPU-enabled pricing models and the ease with which they can be developed with SciFinance SciComp Sales Representative (Europe) Dick Verkerk verkerk@scicomp.com http://www.scicomp.com 25