Closed Bug 2060260 Opened 1 month ago Closed 27 days ago

[Models] ATG Improve Clustering Algorithm

Categories

(Core :: Machine Learning: Frontend, task)

task

Tracking

()

VERIFIED FIXED
155 Branch
Tracking Status
firefox154 --- verified
firefox155 --- verified

People

(Reporter: vbaungally, Assigned: vbaungally)

References

(Blocks 1 open bug)

Details

(Whiteboard: [aiaug])

Attachments

(2 files)

Current algorithm uses Kmeans. We previously tested agglomerative clustering against our test set and found quite some improvements there. Do some more evaluations and add method if metrics improve.

Summary: ATG Improve Clustering Algorithm → [Models] ATG Improve Clustering Algorithm

This patch switches the KMeans clustering algorithm used for Auto Tab Grouping to
Agglomerative clustering. The latter is more performant and has better metrics on our
golden dataset. It is also deterministic.

Pushed by vbaungally@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/7d249b9965ab https://hg.mozilla.org/integration/autoland/rev/35ce7d711347 Add agglomerative clustering algorithm for Auto Tab Grouping. r=rrando,jlewis,tabbrowser-reviewers,ai-platform-reviewers,dao,valentinp

This patch switches the KMeans clustering algorithm used for Auto Tab Grouping to
Agglomerative clustering. The latter is more performant and has better metrics on our
golden dataset. It is also deterministic.

Original Revision: https://phabricator.services.mozilla.com/D316350

Attachment #9623827 - Flags: approval-mozilla-beta?

firefox-beta Uplift Approval Request

  • User impact if declined/Reason for urgency: - Lower clustering / grouping quality compared to current version shipping.
  • Code covered by automated testing?: yes
  • Fix verified in Nightly?: yes
  • Needs manual QE testing?: no
  • Steps to reproduce for manual QE testing: Requires smart window to be enabled
This test should take you 1 minute:

- Set `browser.smartwindow.autoTabGrouping.enabled` to true.
- Use Smart Windows in Nightly to browse as you normally would.
- Use the new Auto Tab Grouping feature (by clicking on the "window" icon on the right of the awesome bar).
- This should show a modal with suggested grouped tabs.

  • Risk associated with taking this patch: low
  • Explanation of risk level: It just switches the method used for grouping, so the downstream suggestions from Auto Tab Grouping are more cohesive.
  • String changes made/needed?: No
  • Is Android affected?: no
Status: NEW → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Attachment #9623827 - Flags: approval-mozilla-beta? → approval-mozilla-beta+
Blocks: 2057625
Blocks: 2062514

Verified as fixed in our latest Release 154.0.1, our latest Beta 155.0b2 and our latest Nightly 156.0a1 (2026-08-19)

Status: RESOLVED → VERIFIED
QA Whiteboard: [qa-ver-done-c156/b155]
No longer blocks: 2062514
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: