lava-optimization icon indicating copy to clipboard operation
lava-optimization copied to clipboard

Sparse or Dense connections as per QUBO sparsity

Open GaboFGuerra opened this issue 2 years ago • 1 comments

User Story

As a user of the OptimizationSolver for QUBO problems, I want the solver to chose the most efficient connectivity mode for synaptic connections to get the best EDP performance and scale the workloads to the maximum allowed by the hardware.

Conditions of Satisfaction

  • The solver computes the sparsity of the QUBO matrix and decides whether to implement synaptic connections as Dense or Sparse processes.

Acceptance Tests

  • For QUBO problems with sparsity below 50%, The model of the OptimizationSovler implements the CostMinimizer synapses as Dense processes.
  • For QUBO problems with sparsity above or equalt to 50%, The model of the OptimizationSovler implements the CostMinimizer synapses as Sparse processes

Lava version:

  • [X] 0.3.0 (feature release)

I'm submitting a ...

  • [x] feature request

Other information:

insert the output from lava debug here

GaboFGuerra avatar Jan 17 '23 11:01 GaboFGuerra

Correction:

  • The ideal choice of sparse vs. dense does not only depend on sparsity but also idx and weight bits.
  • For high sparsity (e.g. 0.95, few zeros) we want to use Dense and for low sparsity (e.g. 0.05, many zeros) we want to use Sparse. Not the other way around.

awintel avatar Jan 24 '23 01:01 awintel