AI Assisted Detector Design for EIC
Karthik Suresh, for AID(2)E Collaboration
Department of Data Science
College of William and Mary
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Outline
2
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization
3
Design space spanned by ‘x’
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization
4
Objectives to optimize
Design space spanned by ‘x’
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization
5
Design space spanned by ‘x’
Constraints
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization
6
Design space spanned by ‘x’
Bounded Design Space
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization : Visual Intro
7
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization : Visual Intro
8
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Optimization through surrogate modelling
9
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Large Scale Experiments : An Ideal MOO problem
GEANT4 – computation intensive.
Curse of dimensionality due to multiple Objectives and multidimensional design space
Each Design point requires multiple physics studies and hence increased computational needs
Estimated simulation requirements based on observed performance in 2021.
https://arxiv.org/pdf/2205.08607.pdf
10
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Workflow for AI Assisted detector design
11
Design Parameters
Objectives
Physics Events
Detector Simulations
Reconstructed Events
Desired kinematic range
Benefits from rapid turnaround time from simulations to analysis of high-level reconstructed observables
The EIC SW stack offers multiple features that facilitate AI-assisted design (e.g., modularity of simulation, reconstruction, analysis, easy access to design parameters, automated checks, etc.)
Leverages heterogeneous computing
Need to develop end to end pipeline
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
The AID(2)E Project
12
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
A roadmap for scalable optimization
13
Monitoring — MLOps
Need for better visualizations
Beyond 3D Pareto visualizations
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
The AID(2)E Project
14
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Project Workflow
15
AID(2)E Pipeline
Thrusts of development
Optimizer
eg. MOBO Algorithm
ePIC Software
Heavy simulations
EIC Analysis
Physics/Detector response
Detector Simulations
EIC-SIM-RECON
Total number of iterations to converge
Computations during an iteration
Distributed Computing
AID(2)E Wrapper
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
So what is AID2E and this boot camp all about
16
Feel free to ask questions….
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Backups
17
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Project workflow
18
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Closure Test 1 – Stress testing SoTA MOBO
19
Acquisition function
qNEHVI – O (M(n + i)M)[2]
Gaussian Process
O(n3)
Bayesian Sampling from posteriors
NUTS – O (Md5/4)[NUTS]
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Closure Test 1 – Stress testing MOBO
20
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Closure Test 2: PanDA/iDDS integration
21
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Current Detector Subsystems for optimization in ePIC
22
d-RICH detector at EIC
Design params: Mirror, sensor placement, gas, mirror material
Objectives: PID performance in bins of momentum, cost
Far Forward – B0 System
Design params: z positions of disks
Objectives: Momentum resolution, Acceptance
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
GP as a Surrogate Model
23
Question: What would be the next point to explore from this?
Choose a region?
Optimization problem:
In practice we do not know the True f.
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
GP as a Surrogate Model
24
The task: To minimize. So should we even care on regions which are not minimum?
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
The Acquisition function
25
*Since evaluations are supposed to be very costly
Widely used Acquisition functions
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Confidence Bound
26
Exploitation
Exploration
Hyper parameter
Can now control where the search will happen in subsequent iterations.
Usually, bias is towards the mean. Since it is optimization
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Probability of Improvement
Choose the point, that has the maximum probability of improvement.
Note: NO consideration of actual value.
27
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Expected Improvement
Considers the Magnitude of improvement along with its probability[1]
28
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
The Summary of MOGA Pipeline
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Multi Objective Evolutionary Algorithms
30
Swarm Algorithms
Ant Colony optimization
Bees algorithm
Particle swarm optimization
Cuckoo search
Differential Evolution
Cellular Automata
Genetic Algorithms
Default Genetic Algorithm
NSGA
NSGA-II
U-NSGA-III
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
31
Elitist Non-Dominated
Sorting Genetic (NSGA)
Population
@(t+1)
Population
@(t)
Offspring
Front
[1] Deb, K., et al. "A fast and elitist multiobjective genetic algorithm" IEEE transactions on evolutionary computation 6.2 (2002): 182-197.
This is one of the most popular approach
(>35k citations on google scholar), characterized by:
The population Rt is classified in non-dominated fronts.
Not all fronts can be accommodated in the N slots of available in the new population Pt+1. We use crowding distance to keep those points in the last front that contribute to the highest diversity.
The crowding distance di of point i is a measure of the objective space around i which is not occupied by any other solution in the population.
This is to illustrate
Binary Cross-over
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
MOEA or MOBO ?
32
MOEA
MOBO
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC
Far Forward Updates
33
Problem | Optimize the momentum resolution subject to the non-homogenous Magnetic field and to increase occupancy at B0 ECAL. | ||
Objective Space = 2 | Objective Parameter | Remarks | |
Momentum resolution (𝑝T) | Momentum range of 80 - 100 GeV/c is of interest and specifically proton tracks | ||
B0 ECAL acceptance | Ratio of number of tracks before 1st tracking disk to the number of showers detected by B0ECAL | ||
Design Space = 4 | Design Parameter | Range [cm] | Least count for variation [cm] |
Z1 | 583.0 - 630.0 | 1.0 | |
𝛥Z2, 𝛥Z3, 𝛥Z4 | 10.0 - 40.0 | 1.0 | |
Constraints = 2 | Z1 + ∑i=2,3,4 𝛥Zi ≤ 685.5 cm | ||
|Zi+1 + Zi| ≥ 10.0 cm | |||
AID2E Boot camp July 8 - 19 2024
AI Assisted Detector Design for EIC