High Performance Counterparty Risk and CVA Calculations in Risk Management



Similar documents
Applications to Computational Financial and GPU Computing. May 16th. Dr. Daniel Egloff

Programming models for heterogeneous computing. Manuel Ujaldón Nvidia CUDA Fellow and A/Prof. Computer Architecture Department University of Malaga

Potential Future Exposure and Collateral Modelling of the Trading Book Using NVIDIA GPUs

GPU Computing with CUDA Lecture 2 - CUDA Memories. Christopher Cooper Boston University August, 2011 UTFSM, Valparaíso, Chile

OpenPOWER Outlook AXEL KOEHLER SR. SOLUTION ARCHITECT HPC

HPC with Multicore and GPUs

EDF CEA Inria School Systemic Risk and Quantitative Risk Management

Next Generation GPU Architecture Code-named Fermi

GPU Hardware and Programming Models. Jeremy Appleyard, September 2015

ALIGNE Credit Risk Management

Training Agenda. Structuring and Pricing Derivatives using Numerix CrossAsset XL, CrossAsset SDKs & CAIL (C++/Java/C#)

American Monte Carlo for Bermudan CVA. Roland Lichters

CALYPSO ENTERPRISE RISK SYSTEM

Introduction to GP-GPUs. Advanced Computer Architectures, Cristina Silvano, Politecnico di Milano 1

Enterprise Risk Management

Big Data & Analytics. Counterparty Credit Risk Management. Big Data in Risk Analytics

Notes to the consolidated financial statements Part E Information on risks and relative hedging policies

Introduction to GPU Programming Languages

NUCSOFT. Asset Liability Management

TOWARD A STANDARDIZED APPROACH TO RISK AGGREGATION

High performance ETL Benchmark

Lecture 3: Modern GPUs A Hardware Perspective Mohamed Zahran (aka Z) mzahran@cs.nyu.edu

Defining Treasury Success. Establishing and Automating Treasury Metrics

The Evolution of Computer Graphics. SVP, Content & Technology, NVIDIA

Introduction to GPU hardware and to CUDA

CUDA Optimization with NVIDIA Tools. Julien Demouth, NVIDIA

Graphics Cards and Graphics Processing Units. Ben Johnstone Russ Martin November 15, 2011

WHITE PAPER CHALLENGES IN IMPLEMENTING A COUNTERPARTY RISK MANAGEMENT PROCESS. Key data and technology challenges Current trends and best practices

Data Centric Systems (DCS)

OpenCL Optimization. San Jose 10/2/2009 Peng Wang, NVIDIA

Interest Rate Risk Management for the Banking Book: Macro Hedging

Advanced Big Data Analytics with R and Hadoop

Kondor+ 3.3 What s New Enterprise trade and risk management for the new world of finance

Drivers to support the growing business data demand for Performance Management solutions and BI Analytics

Overview. Lecture 1: an introduction to CUDA. Hardware view. Hardware view. hardware view software view CUDA programming

Final Project Report. Trading Platform Server

CVA, Hedging and Best Practices Denny Yu, CFA

MONTE-CARLO SIMULATION OF AMERICAN OPTIONS WITH GPUS. Julien Demouth, NVIDIA

GPUs for Scientific Computing

CITIGROUP INC. BASEL II.5 MARKET RISK DISCLOSURES AS OF AND FOR THE PERIOD ENDED MARCH 31, 2013

Jornadas Economicas del Banco de Guatemala. Managing Market Risk. Max Silberberg

Contents. List of Figures. List of Tables. List of Examples. Preface to Volume IV

Ground up Introduction to In-Memory Data (Grids)

An Oracle White Paper March Load Testing Best Practices for Oracle E- Business Suite using Oracle Application Testing Suite

AVANTGARD Treasury, liquidity risk, and cash management. White Paper FINANCIAL RISK MANAGEMENT IN TREASURY

Risk analysis with depth. Software, Services and. XVA Capital IM Limits Adjoint

With the derivative markets having changed dramatically since the 2008 financial crisis,

Portfolio Replication Variable Annuity Case Study. Curt Burmeister Senior Director Algorithmics

ARMS Counterparty Credit Risk

Market Risk Capital Disclosures Report. For the Quarter Ended March 31, 2013

This Unit: Putting It All Together. CIS 501 Computer Architecture. Sources. What is Computer Architecture?

ANDROID DEVELOPER TOOLS TRAINING GTC Sébastien Dominé, NVIDIA

NVIDIA Tools For Profiling And Monitoring. David Goodwin

A quick tutorial on Intel's Xeon Phi Coprocessor

Scalable Data Analysis in R. Lee E. Edlefsen Chief Scientist UserR! 2011

Measurement of Banks Exposure to Interest Rate Risk and Principles for the Management of Interest Rate Risk respectively.

Effective Techniques for Stress Testing and Scenario Analysis

Accelerating variant calling

Zadara Storage Cloud A

IBM Algo Asset Liability Management

The High Performance Internet of Things: using GVirtuS for gluing cloud computing and ubiquitous connected devices

GPU Computing. The GPU Advantage. To ExaScale and Beyond. The GPU is the Computer

Practical Performance Understanding the Performance of Your Application

up to 1 year 2, to 5 years 3, to 10 years 3, to 20 years 1, over 20 years 62, TOTAL 73,

Guidance Note: Stress Testing Class 2 Credit Unions. November, Ce document est également disponible en français

WHITE PAPER. Governance, Risk and Compliance (GRC) - IT perspective

Credit Risk Stress Testing

Guided Performance Analysis with the NVIDIA Visual Profiler

Corporate Financial Risk Management

How To Write A Credit Risk Book

GPU System Architecture. Alan Gray EPCC The University of Edinburgh

BENCHMARKING CLOUD DATABASES CASE STUDY on HBASE, HADOOP and CASSANDRA USING YCSB

Introduction to GPU Architecture

GPU File System Encryption Kartik Kulkarni and Eugene Linkov

CUDA SKILLS. Yu-Hang Tang. June 23-26, 2015 CSRC, Beijing

State Farm Bank, F.S.B.

NVIDIA CUDA GETTING STARTED GUIDE FOR MICROSOFT WINDOWS

Find the Hidden Signal in Market Data Noise

HIGH PERFORMANCE CONSULTING COURSE OFFERINGS

CVA in Derivatives Trading

Financial Risk Management

Delivering Quality in Software Performance and Scalability Testing

CUDA programming on NVIDIA GPUs

(Part.1) FOUNDATIONS OF RISK MANAGEMENT

SAP HANA - Main Memory Technology: A Challenge for Development of Business Applications. Jürgen Primsch, SAP AG July 2011

Solutions for Balance Sheet Management

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

CVA on an ipad Mini Part 3: XVA Algorithms

Data Centers and Cloud Computing

Evaluation of CUDA Fortran for the CFD code Strukti

This guideline takes effect for fiscal years commencing on or after January 1, 2011.

Enterprise Infrastructure for Consistent Pricing and Risk Analytics

STORAGE HIGH SPEED INTERCONNECTS HIGH PERFORMANCE COMPUTING VISUALISATION GPU COMPUTING

Experimental Evaluation of Distributed Middleware with a Virtualized Java Environment

Portfolio Management for Banks

NVIDIA CUDA GETTING STARTED GUIDE FOR MAC OS X

Managing Counterparty Credit Risk through CVA. Karin Bergeron Director, CVA Trading

x64 Servers: Do you want 64 or 32 bit apps with that server?

GPU Hardware Performance. Fall 2015

Computer Graphics Hardware An Overview

Transcription:

High Performance Counterparty Risk and CVA Calculations in Risk Management Dominique Delarue Azim Siddiqi 20 th March 2013 Title of presentation

Overview Counterparty Risk Primer The Problem Scale Scale Explosion The Solution Challenges Pricing Ecosystem Breaking the Cube Moving to Kepler Summary March 2013 4

Counterparty Risk for Dummies Market data & Calibration parameters Market Scenarios (2) Revaluation of deals Deal data - mostly full reval t - Norms for exotics Netting, Collateral & Referential data (1) Market Parameter Simulation FX rates, interest rates, equities, commodities, credit spreads and ratings (3) Aggregation & Collateral Simulation - by Global Credit Line Simulated Deal PVs (4) Front-End Analysis Tools - risk monitoring - credit adjustments - stress analysis March 2013 Aggregated PVs 7

Monte Carlo Process Market parameter (for ex. Euribor 3 months) Simulation process ( Monte Carlo ) Paths (values for different future dates) are simulated for all the market parameters that influence the value of the transaction Correlation against other market parameters (IR and FX) is taken into account during the simulation process. Today time Re-pricing of the transaction The interest rate swap value is recalculated for the future dates of all the scenarios In some scenarios, the value will be positive (typically when the interest rates increase), in others, the value will be negative March 2013 7

Problem - Scale For all counterparties and for each scenario 1,000,000 x 5,000 x 400 = 2 trillion calculations (8TB of floats) and 500 TB of simulations were consumed in this process But that s ONE scenario. We need HUNDREDS!!! 5

Problem Scale Explosion Regulatory Requirements More stress testing Detection of Wrong Way Risk (e.g. stressing Turkish Lira to assess impact on Turkish banks) Risk Management Exposure Explained Incremental Stress Scenarios for Complex Stress Scenario Add/Remove deals from counterparties March 2013 7

CVA Calculation is simple in itself Problem Scale Explosion But CVA needs to be hedged 10 Shocks Model 40 currencies 400 Stress Scenarios 7

5

Solution - Challenges Current Counterparty Risk System CPU Compute Farm (a few thousand cores) Low level of Parallelization C++ Code Objective Do at least 50 x more for the same cost Re-think of the whole solution Parallelization on multiple levels (counterparty, deal, instrument, market data, time point, path) Re examining data, calculation and latency problems 9

Solution - Overview Compute Engine REST Services CPU Servers GPU Servers Persistent Data In-Memory Data 10

Solution - Calculation Engine Java Negligible performance penalty compared to C++ Development Productivity Maturity of Java for large applications JNA (Java Native Access) Integration of native libraries and java Stubs generated by the C# module No measurable footprint NIO (New IO) Market Data is managed outside the JVM (native) Manage dozens of GB outside the JVM heap 15

Solution - Beyond Hybrid Two Operating Systems Single File Source Code Multiple Runtime Platforms 9

Solution - Pricing Ecosystem 12

Solution - Pricing Ecosystem High Level Language for pricing and simulation C# used Rationale Higher Productivity (Managed language) Learning Curve (Different level of abstractions) Integration (Java, Excel, Python) Hybridizer Technology Product from Altimesh (Florent Duguet) Generate C++/OpenMP and Cuda/C code from C# 11

Example: Fixed Cash Flow nb of CF PV i, j = Notional k YearFraction Rate k D j (t i, T k ) k 11

Solution - Pricing Ecosystem Work distribution is done using cuda concepts Blocks : maps to OMP threads or cuda blocks Thread : maps to FPU register unit and/or cudathreads C# to Cuda Use of different types of memory (shared, global, registers) Access to library functions and existing code snippets C# to OMP Basic C/C++ code generation Code Vectorisation (SSE and AVX) 14

Back to the Cube Problem Don t slice the cube, break it up. 14

Breaking the Cube up Netted Set Huge Gain in Compute and Bandwidth In-Memory Aggregation Pricer Maximize parallelization Maximize Kernel Work Simulation Higher Accuracy Higher Accuracy Bandwidth CPU and GPU Memory Bandwidth GPU Memory and Cuda Cores Huge Gain in Compute and Bandwidth 17

Calculating Big Counterparties LCH Clearing House Mainly IR Swaps 161,025 deals, 5.5 M. Cash Flows Cube 161,025 x 1,000 x 400 = 64,4 Billion calculations Calculation 161,025 deals 1,000 simulations 400 time points 1 M2090 Performance Overall (262s) T0 Pricing (150s) 1,075 deals/s MC Pricing (49s) 3,300 deals/s 113,000 CF/s 18

Current Hardware Dual NVIDIA M2090 Running large calculations Production like environment Continuous Approach Can constantly test and verify Not afraid of changing code/trying things out High level of confidence in our approach Moving to Kepler We have been able to try out Kepler BUT our initial tests did not match expected performance What was the limiting factor? 18

How bound are you? Problems are split into two categories: Compute Bound Limited by the compute power Memory Bound Limited by the cuda cores to gpu memory bandwidth 19

How bound are you? Problems are split into two categories: Compute Bound Limited by the compute power Memory Bound Limited by the cuda cores to gpu memory bandwidth And a more subtle one Latency Bound Limited by the latency between cuda cores and GPU memory 19

Nvidia Kepler Collaboration with Nvidia John Ashley and Thomas Bradley (and his team) Nvidia identified our problem was latency bound LDG Simple use of Texture Memory (from memory address) Keyword ldg Impact on pricing code Vectorization on GPU Use of float4 instead of float Allow to pack memory reads into one request (128 bits) Impact on pricing code (much heavier, on going work) 20

LDG, float4 on Fermi and Kepler Fermi 1.75x 1.16x 1.87x Kepler 3x 16 LOADS 8 STORES 4 LOADS 2 STORES ALU SFU MEMORY READ MEMORY WRITE 20

Calculation Results nb of CF PV i, j = Notional k YearFraction Rate k D j (t i, T k ) Fixed Cash Flow Pricing 500 cash flows 1,000 path k time (ms) AVX (dual E5-2640) 40.3 CUDA (M2090) 7.5 CUDA (K20) 4.0 X5.3 22

Nightly runs 12x more runs than current system Cost is 5x less than current setup 60x more calculations for the same cost And the boat can get even bigger Less sensitive to the number of deals Scale linearly with number of instruments Reuse of data for different instruments Is the boat bigger? 23

Summary Counterparty Risk and Stress Scenario is A Big Problem Had to rethink the solution Use a hybrid technology stack The Cube is broken, not sliced Continuous approach 18

Summary Kepler can allow us to run 2x as many scenarios as Fermi Kepler investigation has helped us gain new insights Can now do massive parallel computations Well positioned to leverage future improvements in processor technology 18

The End Thank You QA 23

BNP Paribas No.17 European group all sectors (1) 190,000 employees representing more than 150 nationalities Present in nearly 80 countries 94.4bn of consolidated equity as at 31/12/2012 23 million clients and more than 7,000 branches across its retail network A leading global bank BNP Paribas - Crédits photos - LaCompany - PASQUIER Jean-Erick (1) Based on the Group s FY11 net income, a European ranking in the Stoxx 600 index universe March 2013 2

Group Risk Management Risk Coverage Risk Cycle Credit risk Corporate Retail Market & Counterparty risk Liquidity risk Insurance risk Operational Risk and Reputation risk are placed under the responsibility of Conformity Main Missions To advise Bank Management on risk policy definition To contribute as a second pair of eyes that risks taken on by the Bank align with its policies To report and alert Bank Management of the status of risks to which the Bank is exposed March 2013 31