Skip to content

Bring Lasso coordinate descent into a competitive performance range #209

Description

@godofecht

Parent: #202

Problem

The architecture audit identifies Lasso as one of the clearest sklearn-owned compiled-code gaps. sklearn uses mature Cython coordinate descent; Flow's current end-to-end canonical path is materially slower.

Work

Profile the Flow Lasso implementation at inner-loop level and compare against sklearn coordinate-descent semantics:

  • feature update order
  • residual maintenance strategy
  • convergence test / dual-gap calculation
  • memory layout and cache behavior
  • vectorization opportunities
  • allocation inside iterations
  • warm-start behavior

Match algorithmic semantics before claiming compiler/code-generation gains.

Add focused deterministic microbenchmarks around coordinate updates and residual maintenance in addition to the canonical Diabetes end-to-end row.

Acceptance criteria

The primary runtime bottleneck is identified with profiler/code-generation evidence.

The canonical Lasso implementation preserves or improves current numerical disparity while materially reducing the performance gap.

The native-hotspot audit records whether the remaining limitation is algorithmic, generated-code/vectorization related, or a Flow compiler/runtime blocker.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions