Tiny model for tiny system

Tiny model for tiny system

Large model shows us the limitless perspective of what’s possible, but model doesn’t have to be big to do amazing things.

In this post, I am going to share a real example of even with similar level of resource usage as conventional method, better result can be achieved.

This noise suppression example model is fully deployed onto battery powered embedded device, all figures and recording are captured from live running device. Here is the setup.

Some details of the model:

Number of Parameters: 55k

Input & output format: a frame of 64 PCM data, 16kHz sample rate

Processing precision: int16

This is a raw PCM in PCM out model, no external processing required, making it plug-and-play. Following is deployed resource usage figures on two popular processor architectures.

Battery powered embedded device in products nowadays often has 512kB to 1MB of RAM, 100 to 300MHz processor. This model could comfortably fit in, along with other processing and application workload too. In my experience, this level of resource usage is on par with conventional threshold control adaptive filter approach, however, the listening experience is next level up.

Apart from doing what it says on the tin, removing a ton of noise, the NN approach offers couple unique advantages in the way of doing it:

  • Processing is continuous and across the full signal bandwidth, preserving the desired signal to best extend.
  • Immediate reaction, there is no control threshold to build up to, hence no fade-in fade-out distortion.

These result in a more natural listening experience, all within the same resource usage as the conventional method.


If you have the image in mind that NN model is resource monster, I hope this example help turning that around. However, deploying to tiny embedded systems has its unique challenges, it’s an area less looked after. Stay tuned and more of such topics will be covered in future posts.

Merlin Carson

Principal Engineer, Audio DSP Deep Learning at Skyworks Solutions, Inc.

2 个月

Any audio examples?

Didac Jorda

Full-Stack Developer | Audio & DSP Engineering Consultant | Delivering Scalable Solutions to Optimize Sound & Performance

2 个月

Any code available to see?

回复

要查看或添加评论,请登录

Weiming Li的更多文章

  • free trial: integrate NN processing in MCU with 2 lines of C code

    free trial: integrate NN processing in MCU with 2 lines of C code

    Trying is believing. In this post, I would enable everyone to be able to try bringing my example NN processing into…

  • Ray Tracing for sound, the holy grail for data generation?

    Ray Tracing for sound, the holy grail for data generation?

    Ray Tracing (RT) should be a very familiar term in 3D gaming, but what might be less known is its application in…

  • from minimize error to raise quality

    from minimize error to raise quality

    In this post, I am going to share the finding (and audio samples) of applying perceptual quality as training target for…

  • Looking forward to Cortex-M55 + Ethos-U55

    Looking forward to Cortex-M55 + Ethos-U55

    The 50x inference speed up and 25x efficiency jump are very exciting, but what I really look forward to is how it could…

  • SVDF, just give Conv a bit of time

    SVDF, just give Conv a bit of time

    Simply add a dimension of time to standard Conv layer, it becomes the SVDF layer, the core component powering our…

  • Peek into the future

    Peek into the future

    The Devil is in the details, a often hidden small detail that we must not miss when interpreting performance figures…

  • build trust with black box

    build trust with black box

    Putting a black box in a product requires courage, a few ways to turn some of the courage into confidence. A NN model…

  • from batch to streaming

    from batch to streaming

    Unexpected complication I wish I were well aware of from the beginning. If you coming from a conventional DSP…

  • Fuzzy Memory

    Fuzzy Memory

    I don’t mean the kind we have after a hangover, but the kind powering some of the greatest models we know. “But do I…

  • Stochastic Rounding

    Stochastic Rounding

    When comes to digital signal, NN has the same liking as our ears. Rounding a number is a very common operation in DSP…

    1 条评论

社区洞察

其他会员也浏览了