Skip to content

Fix the frameworks #250

Open
Open

Description

@willow-ahrens

Check the current competition logs for failures in any of the frameworks we have run. If a framework isn't in the competition logs but it should be, we need to add it. For each failure, we need to figure out whether it's our fault (install issues, bad framework code, etc), vs their fault (oom, timeout).

Activity

  1. JoelMathewC commented on Oct 2, 2026

    @JoelMathewC
    Collaborator

    Error Analysis

    Benchmark Numpy Scipy Pytorch PyDataSparse
    Bellman Ford oom/timeout non-zero fill not supported non-zero fill not supported oom/timeout
    Transitive Closure oom/timeout asarray not supported logical_or not supported oom/timeout
    Floyd Warshall oom/timeout non-zero fill not supported non-zero fill not supported oom/timeout
    BFS oom/timeout oom/timeout logical_{and,or,not} not supported oom/timeout
    Connected Components oom/timeout asarray not supported logical_or not supported oom/timeout
    Centrality oom/timeout asarray not supported != between tensor and scalar not supported oom/timeout
    PageRank oom/timeout asarray not supported == between tensor and scalar not supported oom/timeout + .matmul() only support zero fill value
    Transitive reduction oom/timeout non-zero fill non-zero fill and logical_and not supported oom/timeout + (*uint64 → int64 cast errors)
    FastSV oom/timeout .where() not supported on sparse != between tensor and scalar not supported timeout
    Four Clique Counting oom/timeout scipy cant broadcast beyond 2D doesnt support elementwise ops of this nature oom/timeout + (*coordinate-size errors)
    mcl * * * *
    subgraph matching oom/timeout scipy cant broadcast beyond 2D + custom tensor cant be converted to scipy doesnt support elementwise ops of this nature oom/timeout + (*coordinate-size errors)
    triangle counting oom/timeout scipy cant broadcast beyond 2D doesnt support elementwise ops of this nature oom/timeout + (*coordinate-size errors)
    Model Counting passes passes passes passes
    Weighted Model Counting passes passes passes passes
    CP-ALS 3D/4D/5D timeout/oom, COO-index overflow CustomTensor to SciPy input conversion unsupported linalg.pinv not supported timeout/oom, COO linear-index overflow
    HOSVD 3D/4D oom/timeout CustomTensor to SciPy input conversion unsupported linalg.svd not supported sparse-SVD receives nonnumeric unfolded data; overflow/timeouts
    Finite Difference 1D timeout/oom passes sparse Double matrix × Float vector mismatch timeout/oom
    Finite Difference 2D timeout/oom passes timeout timeout
    Masked MRI edge passes passes passes passes
    MRI Sobel edge passes passes passes passes
    CG timeout/oom passes integer sparse × floating vectors: dtype errors timeout
    Preconditioned CG oom timeout integer sparse × floating vectors: dtype errors timeout
    GMRES oom passes integer sparse × floating vectors: dtype errors timeout
    LSQR oom/timeout passes timeout timeout
    Jacobi-preconditioned CG oom/timeout passes integer sparse × floating vectors: dtype errors timeout
    Jacobi oom/timeout passes .diagonal() not supported timeout
    Simplex passes .eye() generates dense, leading to sparse dense concat dtype mismatch for matmul passes
    Forward Euler * * * *
    Backward Euler * * * *
    Runge–Kutta * * * *
    SLICOT DAE/BDF passes passes passes passes
    GCN oom passes timeout timeout
    GCN backward oom timeout timeout timeout
    RP K-means Netflix: timeout Netflix: timeout .astype is absent on Torch tensors; Netflix also affected Netflix: timeout
    SimHash Approx-NN OpenML: oom; Netflix: killed OpenML: oom; Netflix timeout OpenML: oom; Netflix dense: killed; sparse: CSR reshape requires contiguous tensor OpenML/Netflix: timeout
    Particle simulation timeout timeout timeout unsupported sparse/dense operation
    Quantum statevector passes passes passes passes
    Coupled cluster / CCSD passes passes passes passes
    Tic-tac-toe minimax passes sparse matrix reshape to 4-D unsupported timeout unsupported sparse/dense operation
  2. hameerabbasi commented on Oct 2, 2026

    @hameerabbasi

    As for asarray being used for casts; we can use arr.astype(xp.uint64) for example.

    That's also supported by the array API. Whoops, it isn't. asarray(arr, dtype=...) IS the canonical way to convert. Maybe we can override asarray for SciPy?

  3. JoelMathewC commented on Oct 2, 2026

    @JoelMathewC
    Collaborator

    Summary

    1. Pytorch fails because it does not support the following

      • non-zero fill
      • expressions like S[] += A[i,j] * A[i,k] * A[i,l] * A[j,k] * A[j,l] * A[k,l]. Because it leads to elementwise ops that it doesnt support.
      • logical_{or,and,not} / linalg.pinv / != scalar / == scalar / linalg.svd / .diagonal() / .astype()
    2. Scipy fails because it does not support the following

      • non-zero fill
      • asarray()/.where()/.eye() defers to numpy which fails when called on sparse matrix
      • scipy cant broadcast beyond 2D
      • scipy framework doesn't support converting from CustomTensor

    TODOs

    Framework related

    1. Should we have scipy/pytorch fallback to dense for benchmarks with non-zero fill asarray issues
    2. Scipy Framework needs to support converting from CustomTensor

    Benchmark related

    1. Centrality/Connected Components/Page Rank/Transitive Closure: we need to switch array() -> asarray() to be in accordance with the array API. Additionally, in many cases where we did use this it was mostly for setting types.
    2. Floyd warshall: we generate a dense G which we isnt the right thing to do - G = np.full((n, n), np.inf, dtype=np.float64)
    3. mcl: some were timeout/oom but a bunch of cases across frameworks could not support: array_api.finfo(matrix.dtype).eps
    4. HOSVD 3D/4D uses .transpose() which isnt supported by the array API
    5. CP-ALS 3D/4D/5D runs into COO linear-index overflow during input conversion
    6. Finite Difference 1D / CG / Preconditioned CG / Jacobi-preconditioned CG / Simplex - there is a matmul dtype mismatch
    7. Forward Euler / Backward Euler / Runge Kutta - The benchmark uses numpy instead of using a generic array api
  4. hameerabbasi commented on Oct 2, 2026

    @hameerabbasi

    See my edit to the comment above.

    Also for 4, we could in theory use xp.permute_dims.

  5. added this to the v0.1 milestone on Oct 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions