Page MenuHomePhabricator

[XL] Let the model that learns section alignments consume section topics output
Closed, DeclinedPublic

Description

As part of an effort to centralize and consolidate similar logic, Section-Topics can provide the section alignment learning project with part of the input required to train the model that aligns section titles of Wikipedia articles.

Tasks

  • integrate extraction logic from SEAL's sections.py into section topics' parse function
  • remove sections.py
  • let embeddings.py take as input relevant fields of section topic's main dataset
  • let features.py (which uses blue links as input) take relevant inputs (blue links) from section topic's main dataset
  • make the release CI job build a working package - try bumping sentence_transformers first, issues stem from conda/pip installing wrong direct dependencies, e.g., nltk and scipy. - done in T389323: seal_dag.py's encode_embeddings task fails.

Update

We have two callers of a wikitext parsing function, so the initial goal was to simplify that.
However, It looks like cons are more than pros:

  • the only pro is to remove one Spark job - sections.py
  • cons
    • introduce a DAG dependency cycle that needs to be broken - SEAL would depend on section topics, which depends on section titles denylist, which depends on SEAL
    • the cycle could be broken if section topics generated an intermediate dataset for SEAL, by waiting for Wikidata and wikitext only. This would introduce a new job
    • section topics filters badly parsed pages upstream, so we'd need to adapt this behavior for SEAL
    • SEAL processes less languages than section topics

Differences seem large enough to keep the implementation separate.

Event Timeline

mfossati updated the task description. (Show Details)
mfossati updated the task description. (Show Details)

Hi! Is there anything that the ML team needs to do? (just to organize the work etc..)

Ciao @elukey , not really. I thought it would be useful to keep you folks in the loop, since in the long term we'd like to productionize the mentioned model, see T325316: [XL] Productionize section alignment model training.

@mfossati hey Marco, I am removing the Research Tag for now here, but if this requires further collaboration with Research please add it back or create a subtask! thank you!

MarkTraceur renamed this task from Let the model that learns section alignments consume section topics output to [XL] Let the model that learns section alignments consume section topics output.Jul 10 2024, 8:38 PM
mfossati changed the task status from Open to In Progress.Jan 13 2025, 4:10 PM
mfossati claimed this task.
mfossati changed the task status from In Progress to Open.Jan 13 2025, 5:22 PM
mfossati removed mfossati as the assignee of this task.
mfossati changed the task status from Open to In Progress.Apr 8 2025, 2:37 PM
mfossati claimed this task.
mfossati updated the task description. (Show Details)

Closing as declined, see update in the task description.