InseqLib's profile picture. Open-Source Interpretability for Generative Language Models ๐Ÿ”Ž ๐Ÿ›

Inseq

@InseqLib

Open-Source Interpretability for Generative Language Models ๐Ÿ”Ž ๐Ÿ›

Pinned

Hello world! ๐Ÿ›

After a year of restless development, I'm finally happy to announce Inseq, a new tool to democratize post-hoc interpretability of sequence generation models ๐Ÿ› github.com/inseq-team/insโ€ฆ #nlproc #xai Some highlights ๐Ÿ‘‡ 1/



Inseq reposted

Model Internals-based RAG Evaluation (MIRAGE) ๐ŸŒด is accepted to #EMNLP2024 Main! โžก๏ธ To celebrate, here's our new MIRAGE demo combining @InseqLib and Transformers-specific LRP: huggingface.co/spaces/gsarti/โ€ฆ. Reach out if you want to catch up in Miami! ๐Ÿค—๐Ÿ–๏ธ

huggingface.co

MIRAGE - a Hugging Face Space by gsarti

MIRAGE - a Hugging Face Space by gsarti

[1/8] Struggling with verifying the trustworthiness of RAG outputs? Check our latest work where we utilize *model internals* as a powerful and faithful tool for attributing answers to retrieved docs! (w/ @gsarti_ @AriannaBisazza @raquel_dmg) ๐Ÿ“„: arxiv.org/abs/2406.13663 #NLProc

Jirui_Qi's tweet image. [1/8] Struggling with verifying the trustworthiness of RAG outputs? Check our latest work where we utilize *model internals* as a powerful and faithful tool for attributing answers to retrieved docs! (w/ @gsarti_ @AriannaBisazza @raquel_dmg)

๐Ÿ“„: arxiv.org/abs/2406.13663
#NLProc


Inseq reposted

Very hyped for the new beautiful viz that just landed in the @InseqLib main branch! ๐Ÿ”ฅ This will empower users to explore attribution tensors more flexibly and intuitively. h/t to @_ddjohnson for his awesome work on the treescope toolkit powering this release!

Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7 x.com/_ddjohnson/staโ€ฆ

InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ
InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ
InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ


Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7 x.com/_ddjohnson/staโ€ฆ

InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ
InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ
InseqLib's tweet image. Thanks to the new treescope integration, @InseqLib now supports interactive visualizations for multidimensional attributions (show_granular), token highlights (show_tokens) and improved viz for attribute_context CLI! ๐Ÿš€ Install main, will appear in v0.7

x.com/_ddjohnson/staโ€ฆ

By popular demand, the Treescope pretty-printer from the Penzai neural net library can now be installed separately, and supports both JAX and PyTorch! And that's not all: Penzai itself now has less boilerplate and includes more pretrained Transformer models!

_ddjohnson's tweet image. By popular demand, the Treescope pretty-printer from the Penzai neural net library can now be installed separately, and supports both JAX and PyTorch!

And that's not all: Penzai itself now has less boilerplate and includes more pretrained Transformer models!
_ddjohnson's tweet image. By popular demand, the Treescope pretty-printer from the Penzai neural net library can now be installed separately, and supports both JAX and PyTorch!

And that's not all: Penzai itself now has less boilerplate and includes more pretrained Transformer models!


Inseq reposted

๐ŸŽ“ We're thrilled to host Gabriele Sarti (@gsarti_) in our PhD seminar series tomorrow, July 16th, from 12:00-13:00 in Oe67 BU 101! Join us for his talk on interpreting context usage in generative language models, featuring the Inseq toolkit and PECoRe framework. ๐Ÿ•›Don't miss it!

CisLmu's tweet image. ๐ŸŽ“ We're thrilled to host Gabriele Sarti (@gsarti_) in our PhD seminar series tomorrow, July 16th, from 12:00-13:00 in Oe67 BU 101! Join us for his talk on interpreting context usage in generative language models, featuring the Inseq toolkit and PECoRe framework. ๐Ÿ•›Don't miss it!

The ๐Ÿ‘ PECoRe / ๐ŸŒด MIRAGE demo on @huggingface Spaces is powered by our new attribute-context CLI command released in v0.6, and allows to export the code to reproduce your results locally with ๐Ÿ› Inseq. Check it out โžก๏ธ hf.co/spaces/gsarti/โ€ฆ

InseqLib's tweet image. The ๐Ÿ‘ PECoRe / ๐ŸŒด MIRAGE demo on @huggingface Spaces is powered by our new attribute-context CLI command released in v0.6, and allows to export the code to reproduce your results locally with ๐Ÿ› Inseq.

Check it out โžก๏ธ hf.co/spaces/gsarti/โ€ฆ
InseqLib's tweet image. The ๐Ÿ‘ PECoRe / ๐ŸŒด MIRAGE demo on @huggingface Spaces is powered by our new attribute-context CLI command released in v0.6, and allows to export the code to reproduce your results locally with ๐Ÿ› Inseq.

Check it out โžก๏ธ hf.co/spaces/gsarti/โ€ฆ

โš ๏ธ Citations from prompting or NLI seem plausible, but may not faithfully reflect LLM reasoning. ๐Ÿ๏ธ MIRAGE detects context dependence in generations via model internals, producing granular and faithful RAG citations. ๐Ÿš€ Demo: huggingface.co/spaces/gsarti/โ€ฆ Fun collab w/ @Jirui_Qi,โ€ฆ



Inseq reposted

Today, we had the first seminar of our #XAI course! @gsarti_ presented the @InseqLib to interpret LMs and the PECORE framework to identify & attribute context dependence in LMs! ๐Ÿš€๐ŸŒŸ Thank you, it was so interesting! ๐Ÿค— Great start to our series! gsarti.com/talk/polito-inโ€ฆ

eliana__pastor's tweet image. Today, we had the first seminar of our #XAI course!

@gsarti_ presented the @InseqLib to interpret LMs and the PECORE framework to identify & attribute context dependence in LMs! ๐Ÿš€๐ŸŒŸ

Thank you, it was so interesting! ๐Ÿค—
Great start to our series! 

gsarti.com/talk/polito-inโ€ฆ
eliana__pastor's tweet image. Today, we had the first seminar of our #XAI course!

@gsarti_ presented the @InseqLib to interpret LMs and the PECORE framework to identify & attribute context dependence in LMs! ๐Ÿš€๐ŸŒŸ

Thank you, it was so interesting! ๐Ÿค—
Great start to our series! 

gsarti.com/talk/polito-inโ€ฆ

Inseq reposted

[1/4] Introducing โ€œA Primer on the Inner Workings of Transformer-based Language Modelsโ€, a comprehensive survey on interpretability methods and the findings into the functioning of language models they have led to. ArXiv: arxiv.org/pdf/2405.00208

javifer_96's tweet image. [1/4] Introducing โ€œA Primer on the Inner Workings of Transformer-based Language Modelsโ€, a comprehensive survey on interpretability methods and the findings into the functioning of language models they have led to.

ArXiv: arxiv.org/pdf/2405.00208

Today @InseqLib hit 300 โญ๏ธ on Github! A huge thank you to all our awesome users โค๏ธ Onwards to the next 300! ๐Ÿคบ

InseqLib's tweet image. Today @InseqLib hit 300 โญ๏ธ on Github!
A huge thank you to all our awesome users โค๏ธ Onwards to the next 300! ๐Ÿคบ

@InseqLib v0.6 is out now on PyPI! ๐Ÿ”ฅ New CLI command for context attribution (@gsarti_), new perturbation-based methods by @hmohebbi75 & @casszzx and optimizations incl. multi-gpu support! โšก๏ธ Huge shoutout to our contributors! โค๏ธ Release notes โฌ‡๏ธ github.com/inseq-team/insโ€ฆ


Want to learn how to detect and attribute context usage in LMs using @InseqLib? This @Gradio demo using our CLI can teach you how! ๐Ÿ›

The official ๐Ÿ‘ PECoRe ๐Ÿ‘ demo to detect and attribute context dependence in LM generations is now available on @huggingface Spaces! ๐Ÿš€ Includes code examples, a usage guide, useful presets for various dec-only & enc-dec models, and more! Check it out โฌ‡๏ธ huggingface.co/spaces/gsarti/โ€ฆ



Inseq reposted

๐Ÿ‘ PECoRe repository is now public (github.com/gsarti/pecore) and all model/datasets are available on @huggingface (huggingface.co/collections/gsโ€ฆ)! ๐Ÿ‘Interested in using PECoRe on your models? Have a look at the @InseqLib implementation (`inseq attribute-context`)!

huggingface.co

๐Ÿ‘๐Ÿ‘ PECoRe @ ICLR 2024 - a gsarti Collection

๐Ÿ‘๐Ÿ‘ PECoRe @ ICLR 2024 - a gsarti Collection

[1/8] Our new work (w/ @AriannaBisazza @gchrupala @MalvinaNissim) is finally out! ๐ŸŽ‰ We introduce PECoRe, an interpretability framework using model internals to identify & attribute context dependence in language models. ๐Ÿ“„Paper: arxiv.org/abs/2310.01188 #NLProc #neuralempty

gsarti_'s tweet image. [1/8] Our new work (w/ @AriannaBisazza @gchrupala @MalvinaNissim) is finally out! ๐ŸŽ‰

We introduce PECoRe, an interpretability framework using model internals to identify & attribute context dependence in language models.

๐Ÿ“„Paper: arxiv.org/abs/2310.01188

#NLProc #neuralempty


Inseq reposted

Excited to present my recent work on @InseqLib and the #ICLR2024 PECoRe interpretability framework for the @SheffieldNLP group this afternoon! Many thanks @casszzx for inviting me! ๐Ÿค— ๐Ÿ› Inseq: github.com/inseq-team/insโ€ฆ ๐Ÿ‘๐Ÿ‘ PECoRe: openreview.net/forum?id=XTHfNโ€ฆ


Inseq reposted

Wow!! This is great news๐Ÿฅณ Thanks @InseqLib! Iโ€™m excited to try it out!

Value Zeroing, a faithful approach for analyzing context mixing in Transformers, is now available on @InseqLib main branch for all @huggingface text generation models! ๐Ÿ”€ ๐Ÿ”Paper introducing VZ: aclanthology.org/2023.eacl-mainโ€ฆ ๐Ÿ›VZ in Inseq: tinyurl.com/inseq-vz

InseqLib's tweet image. Value Zeroing, a faithful approach for analyzing context mixing in Transformers, is now available on @InseqLib main branch for all @huggingface text generation models! ๐Ÿ”€ 

๐Ÿ”Paper introducing VZ: aclanthology.org/2023.eacl-mainโ€ฆ
๐Ÿ›VZ in Inseq: tinyurl.com/inseq-vz


After two years with Poetry, Inseq just moved to @astral_sh's new blazing fast package manager uv! Our CI installation step is now ~80% faster! ๐Ÿ”ฅ Congrats to @charliermarsh and the team on the release, and godspeed for the cargo-like experience you are planning to build!


Loading...

Something went wrong.


Something went wrong.