Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix to use proper activation function in contextual block conformer e… #5467

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

espnetUser
Copy link
Contributor

…ncoder

What?

#5453: Added missing activation parameter to linear PositionwiseFeedforward layers arguments for contextual block Conformer encoder

Why?

For Conformer encoder linear PositionwiseFeedforward layers typically use Swish rather than ReLU (default) activation function

See also

Original Conformer paper: https://arxiv.org/abs/2005.08100

@mergify mergify bot added the ESPnet2 label Oct 9, 2023
@codecov
Copy link

codecov bot commented Oct 9, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 77.16%. Comparing base (71dc9a3) to head (22c782b).
Report is 1973 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #5467      +/-   ##
==========================================
+ Coverage   77.14%   77.16%   +0.01%     
==========================================
  Files         684      684              
  Lines       62713    62713              
==========================================
+ Hits        48383    48391       +8     
+ Misses      14330    14322       -8     
Flag Coverage Δ
test_configuration_espnet2 ∅ <ø> (∅)
test_integration_espnet1 65.68% <ø> (+0.14%) ⬆️
test_integration_espnet2 49.06% <ø> (ø)
test_python_espnet1 19.94% <ø> (-0.01%) ⬇️
test_python_espnet2 52.31% <ø> (ø)
test_utils 23.09% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@sw005320 sw005320 added Bugfix ASR Automatic speech recogntion Streaming labels Oct 9, 2023
@sw005320 sw005320 added this to the v.202312 milestone Oct 9, 2023
@sw005320
Copy link
Contributor

@espnetUser and @D-Keqi,
I'm not sure I can merge this until we could confirm the performance.
Is it ongoing?

@D-Keqi
Copy link
Contributor

D-Keqi commented Oct 23, 2023

@espnetUser and @D-Keqi, I'm not sure I can merge this until we could confirm the performance. Is it ongoing?

OK, I expect I can test the performance later this week (the GPU server is now under maintenance). If @espnetUser already has some results it would be great to let us know.

@espnetUser
Copy link
Contributor Author

@D-Keqi: I don't have results yet and am currently tied up with other work. I can post results later when I got time to run another training w/wo this fix for the activation function.

@kan-bayashi kan-bayashi modified the milestones: v.202310, v.202312 Oct 25, 2023
@D-Keqi
Copy link
Contributor

D-Keqi commented Oct 29, 2023

@D-Keqi: I don't have results yet and am currently tied up with other work. I can post results later when I got time to run another training w/wo this fix for the activation function.

OK, I expect I might be able to give it a go next week later due to the GPU service maintenance.

@D-Keqi
Copy link
Contributor

D-Keqi commented Nov 3, 2023

I gave it a go on Aishell-1 and found that ReLU actually works better than Swish for the linear PositionwiseFeedforward layer in my case. So we might want to leave the current version unchanged @sw005320. If @espnetUser has other results you'd like to share that's very welcome too.

@kan-bayashi kan-bayashi modified the milestones: v.202312, v.202405 Feb 6, 2024
@Fhrozen Fhrozen modified the milestones: v.202409, v.202412 Oct 1, 2024
@Fhrozen Fhrozen modified the milestones: v.202412, v.202503 Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ASR Automatic speech recogntion Bugfix ESPnet2 Streaming
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants