Actuarial Modeling Chihong An Managing Director of Milliman Korea - - PowerPoint PPT Presentation

actuarial modeling
SMART_READER_LITE
LIVE PREVIEW

Actuarial Modeling Chihong An Managing Director of Milliman Korea - - PowerPoint PPT Presentation

Application of GPU in Actuarial Modeling Chihong An Managing Director of Milliman Korea July, 2018 Agenda 1. Technology Trend in Actuarial Modeling (Korea) 2. Introduction to GPU 3. Limitations of GPU and Solutions 4. Case Study and


slide-1
SLIDE 1

Application of GPU in Actuarial Modeling

Chihong An Managing Director of Milliman Korea July, 2018

slide-2
SLIDE 2

Agenda

  • 1. Technology Trend in Actuarial Modeling (Korea)
  • 2. Introduction to GPU
  • 3. Limitations of GPU and Solutions
  • 4. Case Study and Implications
slide-3
SLIDE 3

Technology Trend in Actuarial Modeling (Korea)

slide-4
SLIDE 4

4

Challenges of IFRS 17

Adapting to IFRS 17 in Korea implies a groundbreaking change to the traditional practice of financial reporting which would also significantly increase computing power requirements.

Item Changes Increase in computing requirements Reserve Principle Net Level Premium  Gross Premium x50 Unique Product Characteristics Complex Products with many interdependent benefits, policy-holder options and rider choices Requires Seriatim Projection Model Point Clustered/Grouped (1%)  Seriatim (100%) x100 Scenarios Deterministic (1 Scenario BE or Worst Case)  Stochastic (average of 1000 scenarios) x1000 Movement Analysis Need to isolate the impact of one change from various changes (1 Run  10 Runs) x10 Total Significant increase in computing power requirements x50,000,000

slide-5
SLIDE 5

5

Taxonomy of model efficiency

There are multiple ways of coping with the issue of increased computing requirements. Actuarial and Modeling Techniques Technology Solutions

Scenario Design and Selection Mathematical and/or Model Design Model Data Building Techniques Hardware Design Software Design Proxy Conceptual Model Design: Some impact on model results Model Implementation: No impact on model results

Source: 2017 SOA Life and Annuity Symposium Session 57 PD: Model Efficiency – Part 1

slide-6
SLIDE 6

6

Modeling trends in Korea

Korean insurers are focusing more on technological solutions – especially GPU-computing.

Rank Current SW New SW (IFRS 17) Use of GPU

1

Existing System In-House

2

Existing System Existing System

3

Existing System New System (1) GPU

4

Existing System New System (2) GPU / CPU

5

Existing System New System (2) GPU / CPU

6

Existing System New System (2) GPU / CPU

… … …

5 mid-small companies

Existing System Industry Consortium GPU

slide-7
SLIDE 7

7

Why is Korea taking a different approach?

South Korea is the most innovative country in the world!

slide-8
SLIDE 8

Introduction to the GPU

slide-9
SLIDE 9

9

What is behind the recent IT innovations?

It is becoming increasingly common to apply GPU in areas which require computationally intensive calculations.

Artificial Intelligence Big Data

GPU (Graphic Processing Unit)

Bitcoin / Blockchain

slide-10
SLIDE 10

10

What is the GPU?

The Graphics Processing Unit (GPU) is a type of electronic circuit which is developed to control the pixels of display devices (i.e. rendering images to your screen) – so it’s designed to have many processing units inside the chip.

slide-11
SLIDE 11

11

What makes the GPU so powerful?

GPU’s unique structure with many processing units make it superior for certain calculations.

  • The capacity of a single-core has reached its limit for improving (the end of Moore’s Law: the

number of transistors in a dense, integrated circuit doubles about every two years)

  • CPU developers are instead increasing the number of cores in a processor instead of

increasing the transistors in a core - introducing multi-core technology

CPU (Present) GPU CPU (Past) CPU (Future)

~ ~

slide-12
SLIDE 12

12

GPU vs CPU

Both chips have a very different structure and hence have distinct pros and cons.

Structure Strength CPU GPU Weakness

  • Serial calculations (small number of complex order-

dependent calc.)

  • Relatively easy to program
  • Relatively large size of memory per cores (efficient

to handle large inputs)

  • Parallel calculations (many numbers of short

independent calculations – TVOG/GMxB)

  • Less Expensive (Best per-Dollar Performance)
  • A few number (4-16) of high-performing cores
  • Many numbers (5000+) of low-performing ALUs
  • Relatively expensive to acquire thousands of cores
  • Relatively difficult to use (because not developed for

general purpose)

  • Relatively small size of memory per cores (not efficient

to handle large input data)

Control ALU ALU ALU ALU Memory Memory

slide-13
SLIDE 13

Limitations of the GPU and Solutions

slide-14
SLIDE 14

14

  • 1. High Programming Difficulty
  • Impractical for actuaries to learn CUDA C for

daily modeling tasks. Both C and CUDA C are difficult languages for even veteran programmers.

  • Solution: A GPU-based system should

provide users (actuaries) with a simple language (like VBA) for model development but should be translated into CUDA C when code is executed.

Excel/VBA Python C++ C CUDA C Assembly Machine Code

Runtime Performance Programmer Productivity

slide-15
SLIDE 15

CPU GPU

15

  • 2. Memory Issue - Limited Size and Slow Data Transfer
  • Since GPU’s memory has to be shared by

5000+ cores during parallel processing, the size of memory potentially allocated to each core is very limited.

  • If the calculation of each core requires more

computing power than they are allocated, GPU cores would have to take data I/O to CPU’s memory through PCI-Express channel which is going to be a lot slower than GPU’s internal memory I/O.

Control ALU ALU ALU ALU Memory Memory

PCIe

Disk

slide-16
SLIDE 16

16

  • 2. Memory Issue – Affects the Level of Parallelization
  • In this respect, GPU is most efficient to process
  • ne model point’s multi-(inner) scenarios in
  • parallel. However, the level of parallelization is

limited, also limiting the performance enhancement through the parallelization.

  • To increase the level parallelization, the

information for all or more model-points (for ALM’s) would have to be held in memory. However, this would fall exceed the size of GPU’s memory, causing extra data transfers.

Logic Flow for Typical Actuarial Projection

Public Sub Main() Call Import_Global_Inputs For Outer_Scenario(ALM) = 1 to 1000 For Policy = 1 To N Call Import_ModelPoint_And_Inputs For Inner_Scenario (Val’n) = 1 To 1000 Call Projection (Calculation) Next Inner_Scenario Next Policy Next Outer_Scenario Call Export_Results End Sub

(Inner) Scen Loop has a limited parallelization but requires only small memory during calculation Outer Scen Loop has a higher level

  • f parallelization

but requires much more memory

slide-17
SLIDE 17

17

  • 2. Memory Issue (Example) - Dynamic ALM Projection
  • Dynamic ALM’s period-by-period projections (unlike independent liability run’s record-by-record

projections) requires all model points’ interim variables to be held in memory during throughout the whole projection. This requirement often incurs memory overflow in CPU-based computing and will incur even bigger problem with GPU.

Liabilities Assets 1yr 2yr …. …. Projection

∑ Asset CF & Valuation Rebalancing & New Rates Crediting rate ∑ Asset CF & Valuation ∑ LIAB CF & Valuation Rebalancing & New Rates ∑ LIAB CF & Valuation

t yr

Dynamic A&L Projection Independent A&L Projection

1yr 2yr …. t yr

∑ LIAB CF & Valuation ∑ Asset CF & Valuation Rebalancing & P&L ∑ Asset CF & Valuation Rebalancing & P&L

slide-18
SLIDE 18

18

  • 3. Not Efficient with Complex Sequential Logics
  • Complex actuarial logic may significantly slow down the performance of GPU.
  • Due to the native structure with massive cores, all GPU cores have to process the same command at the

same time and cannot process different logic like CPU cores.

  • This does not fit well with typical actuarial calculation logic, having many “IF” and “ELSE IF” statements
  • 1. Simple Case (CPU vs GPU)

CPU 1 … CPU 4 GPU1 … GPU1000 Do 1 Process Process Process Process Number of total processes 1 1 1 1 1 1

  • 2. Typical Actuarial Calculation (Complex Condition Checks)

CPU 1 … CPU 4 GPU1 … GPU1000 A=TRUE A=FALSE A=TRUE A=FALSE B=TRUE C=FALSE B=TRUE C=FALSE IF Condition A = True Process Process Process Process THEN IF Condition B = TRUE Process Process Wait THEN Do 1 Process Process Wait ELSE THEN Do 2 Wait Wait ELSE THEN IF Condition C = TRUE Process Wait Process THEN Do 3 Wait Wait ELSE THEN Do 4 Process Wait Process Number of total processes 3 3 3 7 7 7

slide-19
SLIDE 19

19

  • 3. Not efficient with Complex Sequential Logics
  • Solution: GPU-based solution should provide advanced modular code management features which can

populate many sets of simple/efficient code (with less conditions) instead of a single set of complex code (with a lot of conditions)

Lx

Code Manager

Type 1

Execution Codes

Type 2 Type N

Code Organizer

Independent Set of Complete Codes by Logic Types

M01_MainRun M02_LoadInput M03_LoadMP M04_Pricing M05_CashFlow M06_Output Cx Mx Premium Reserves PremIncome CredRate Claims 1 2 9 … 1 2 9 … 1 2 9 … 1 2 9 … 1 2 9 … 1 2 9 … 1 2 9 … 1 2 9 … … Lx M01_Main Run M02_Load Input M03_Load MP M04_Pricing M05_CashFlow M06_Output Cx Mx Premium Reserve AV CSV Benefits 1 2 1 9 1 9 1 9 Lx M01_Main Run M02_Load Input M03_Load MP M04_Pricing M05_CashFlow M06_Output Cx Mx Premium Reserve AV CSV Benefits 9 9 2 2 9 2 2 1 1 2 1 9 1 9 1 9 Lx M01_Main Run M02_Load Input M03_Load MP M04_Pricing M05_CashFlow M06_Output Cx Mx Premium Reserve AV CSV Benefits 9 1 1 9 9 2 1 9

Modularized Code Blocks Code by Cases

slide-20
SLIDE 20

Case Study and Implications

slide-21
SLIDE 21

21

Actual Implementation Results (GMxB Reserving)

GPU-accelerated computing can significantly boost up the speed of actuarial calculations but most of them are realized by improving the efficiency of the model logic itself (optimizing data I/O, calculation and etc).

  • Considering the scalability of the hardware, GPU would still have best per-dollar performance.

Existing System Phase 1 Migration

260 Hrs

(24 Cores)

3.5 Hrs 4.5 Hrs

CPU

(24 Cores)

+GPU

(2496 Cores)

Final Results

x 58 x 74

2 Hrs

x 130

slide-22
SLIDE 22

22

Implication for the future of actuarial modeling

Hardware (CPU vs GPU)

  • Both have very distinct pros and cons

– the key is to use where appropriate

  • Both will continue to challenge each other
  • GPU: larger memory and faster data I/O.
  • CPU: more cores

Modeling Technology

  • Eventually move from proxy modeling techniques

to full modeling approaches based on evolving SW/HW technologies.

  • Seriatim nested-stochastic with dynamic ALM

interaction modeling will be the norm someday. Actuaries need to keep on eye on various current IT technologies which are rapidly evolving

slide-23
SLIDE 23

Chihong An

Thank you

Chihong.An@Milliman.com Managing Director – Seoul +82-10 3789 2193