ml4se – Telegram
ml4se
505 subscribers
446 photos
1 file
524 links
Machine Learning for Software Engineering
Download Telegram
ml4se
New LLMs appear regularly. They are available for download or via API. We can't always trust these LLMs (toxicity, unsafe content, etc).

Is there a future for services that check LLMs for these risks? Certification, online testing via API, etc.
garak, LLM vulnerability scanner

garak checks if an LLM can be made to fail in an way we don't want. garak probes for hallucination, data leakage, prompt injection, misinformation, toxicity generation, jailbreaks, and many other weaknesses

Docs: https://docs.garak.ai/garak/
🤔3
AlphaCode 2 Technical Report

AlphaCode 2 is a new and enhanced system, powered by Gemini. AlphaCode 2 relies on the combination of language models and a bespoke search and reranking mechanism.
👍1👏1
Optimum-NVIDIA on Hugging Face enables blazingly fast LLM inference in just 1 line of code

By changing just a single line of code, you can unlock up to 28x faster inference and 1,200 tokens/second on the NVIDIA platform.
Naturalness of Attention: Revisiting Attention in Code Language Models

In this work, the authors have revisited the mathematical definition of multihead attention from prior works in natural language. They performed a layer-wise analysis to study the trends of attention weights and the transformation of input for LM (i.e., CodeBERT) and showed how the attention mechanism is not merely composed of the attention weights.

RQs:
- How do the general trends across layers between attention weights 𝛼 and the scaled transformations norms ∥𝛼 𝑓 (𝑥)∥ compare?
- How does ∥𝛼 𝑓 (𝑥)∥ align with the syntactic structure of source code compared to attention weights?
👍31
promptbase [Microsoft]

promptbase is an evolving collection of resources, best practices, and example noscripts for eliciting the best performance from foundation models like GPT-4

Medprompt blog:
- The Power of Prompting
- Steering at the Frontier: Extending the Power of Prompting
Do you use "please" when communicating with LLMs? Example: https://github.com/microsoft/promptbase/blob/main/src/promptbase/math/math.py#L12
Anonymous Poll
65%
Yes
35%
No
LLM360: Towards Fully Transparent Open-Source LLMs

Most open-source LLMs have only released partial artifacts, such as the final model weights or inference code. The authors present LLM360, an initiative to fully open-source LLMs, which advocates for all training code and data, model checkpoints, and intermediate results to be made available to the community. As a first step of LLM360, they release two 7B parameter LLMs pre-trained from scratch, Amber and CrystalCoder, including their training code, data, intermediate checkpoints, and analyses: https://www.llm360.ai
👍1
RealCode_eval

It is a benchmark to perform execution-based evaluation of LLM code generation for real github repositories.
RealCode is a dataset of 219 Python functions from 22 github repositories published between June and August on 2023. All these functions are covered with tests in their respective repositories.

- Around 60% of the used repositories are related to the field of AI/LLMs/ML.
- The code in RealCode repositories was not be seen during pretraining of starcoder or codellama as these models were trained before the summer 2023. Deepseek-coder may have seen this code in pretraining.
- Repositories are rolled back to a specific commit during data preparation
- Not all the tests are passed in the repositories.
ENASE 2024 (Deadline Extension)

Regular Paper Submission Extension: January 3, 2024
Position Paper Submission: January 25, 2024
Doctoral Consortium Paper Submission: February 29, 2024

The mission of ENASE (Evaluation of Novel Approaches to Software Engineering) is to be a prime international forum to discuss and publish research findings and IT industry experiences with relation to novel approaches to software engineering.
Chain of Code: Reasoning with a Language Model-Augmented Code Emulator

LMs may still produce a valid solution if they not only write code, but also selectively “emulate” the interpreter by generating the expected output and other lines of code that cannot be executed. In this work, the authors propose Chain of Code, a simple extension that improves LM code-driven reasoning. The key idea is to encourage LMs to format semantic sub-tasks in a program as flexible pseudocode that the interpreter can explicitly catch undefined behaviors and hand off to simulate with an LM. Experiments demonstrate that Chain of Code outperforms Chain of Thought and other baselines across a variety of benchmarks; on BIG-Bench Hard, Chain of Code achieves 84%, a gain of 12% over Chain of Thought.

Project: https://chain-of-code.github.io/
Entity-Augmented Code Generation

LLMs are effective in generating high-quality text and encapsulating a broad spectrum of world knowledge. However, these mod-
els are not designed to utilize external information sources. In this paper, the authors use retrieval-augmented LLMs for a new task — code generation using external entities. Existing retrieval-augmented LLMs fail to assign relevance scores between similar entity names, thus the authors propose a novel end-to-end trainable architecture with an scalable entity retriever injected directly into the LLM decoder.
👍1
Adapters: A Unified Library for Parameter-Efficient and Modular Transfer Learning

Adapters is a new open-source library based on the initial version of AdapterHub. It is aimed at unifying parameter-efficient and modular transfer learning. The library integrates 10 diverse adapter methods into a unified interface for easy usage and provides a simple way of leveraging the modularity of adapters by designing composition blocks.

GitHub: https://github.com/adapter-hub/adapters
Building Your Own Product Copilot Challenges Opportunities and Needs

The proliferation of product copilots, driven by advancements in LLMs, has strained existing software engineering processes and tools, leaving software engineers improvising new development practices. The study, involving 26 professional software engineers, revealed critical pain points across the entire engineering process for developing such AI-powered products.
👍1
WaveCoder Widespread And Versatile Enhanced Instruction Tuning with Refined Data Generation

CodeOcean is a dataset comprising 20,000 instruction instances across 4 universal code-related tasks, which is aimed at augmenting the effectiveness of instruction tuning and improving the generalization ability of fine-tuned model.

WaveCoder is a fine-tuned Code LLM with Widespread And Versatile Enhanced instruction tuning. Wavecoder models outperform other open-source models in terms of generalization ability across different code-related tasks at the same level of fine-tuning scale.