프로필

설정

불러오는 중…

← 홈

도움말·문의

자주 묻는 질문

어떤 기능에 로그인이 필요한가요?

공개 논문의 해설과 논문 정보, 모델 구조, 관련 논문, 용어는 로그인 없이 볼 수 있습니다. 논문 올리기, 내 보관함, 읽기 기록, 논문 평가, 관심 분야 추천, 메일과 알림은 로그인해야 쓸 수 있습니다.

PDF 파일로도 올릴 수 있나요?

논문은 arXiv나 DOI 링크로 올리고, 해설은 모두에게 공개됩니다. 출처와 이용 조건이 확인되지 않아 해설을 공개할 수 없는 논문은 올릴 수 없습니다. PDF 파일 올리기와 나만 보기는 구독 회원만 쓸 수 있고, 파일로 올린 논문은 나만 보기로만 저장합니다. 제목으로 공식 정보를 찾는 검색은 버튼을 누를 때만 합니다.

그림과 AI 해설은 정확한가요?

그림은 논문 원본만 쓰고 이용 허락이 확인된 것만 보여 줍니다. 해설은 AI가 쓴 글이라 틀릴 수 있습니다. 중요한 주장과 수치, 그림의 맥락은 원문 근거로 확인해 주세요.

저작권 문제를 알리고 싶어요.

이용 조건과 원문 출처는 논문 정보 탭에 있습니다. 문제가 있으면 ‘문의하기’에서 ‘논문 내용·그림·저작권’을 골라 논문 링크와 문제가 되는 부분, 권리를 확인할 수 있는 근거를 보내 주세요. 접수만으로 권리가 확정되거나 바로 삭제되지는 않습니다. 검토 결과는 ‘내 문의’에서 볼 수 있습니다.

비밀번호를 잊었어요.

이메일로 가입했다면 로그인 창의 비밀번호 찾기에서 인증한 이메일로 다시 설정할 수 있습니다. Google, 네이버, 카카오로 가입했다면 그 서비스에서 비밀번호를 바꿔 주세요.

문의할 때 무엇을 적어야 하나요?

어느 화면에서 무엇을 하다 생긴 문제인지 논문 링크와 함께 적어 주세요. 비밀번호, API 키, 인증 코드, 전화번호 같은 개인정보는 적지 마세요. 문의와 답변은 Refivu에 저장되고 ‘내 문의’에서 볼 수 있습니다.

회원탈퇴는 어떻게 하나요?

설정의 내 계정에서 회원탈퇴를 누르세요. 지워지는 내용을 확인하고 본인 확인을 마치면 탈퇴됩니다. 다른 요청은 ‘문의하기’에서 ‘계정’을 골라 남겨 주세요.

논문 해설

Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic

맞춤형 데이터 분포와 손실 정규화로 어려운 문제를 더 쉽게 만들기: 모듈러 산술 사례 연구

  • 연구 문제 많은 원소를 mod q로 더하는 모듈러 덧셈은 기존 ML 모델이 잘 학습하지 못하는 과제이며, 이 문제는 LWE 기반 ML 공격의 확장성을 제한합니다.
  • 연구 방법 학습 데이터에 쉬운 희소 예시를 섞는 고정 샘플링 분포와, 원점 예측을 억제하는 정규화 손실을 각도 임베딩 위에서 함께 사용합니다.
  • 주요 결과 제안 방법은 N = 128까지 모듈러 덧셈을 학습하고 LWE 개념 증명에서 Hamming weight 6의 비밀 복구를 보고합니다. 기준선과 커리큘럼 학습보다 높은 정확도 또는 안정성을 보였으나 결과의 적용 범위는 설정에 따라 다릅니다.

모듈러 덧셈이 ML 공격의 병목이 되는 이유

LWE(Learning with Errors)는 후양자 암호에 쓰이는 어려운 문제이며, 비밀 벡터 s를 행렬 A와 b = A·s + e로부터 추정하는 것이 핵심입니다. 비밀이 이진이고 희소할 때 b를 A로부터 계산하는 과정은 mod q 부분합, 즉 모듈러 덧셈 문제가 됩니다. 기존 ML 공격은 b를 A로부터 예측하도록 모델을 학습하며, 비밀의 0이 아닌 원소 수가 늘어날수록 더 많은 원소를 mod q로 더해야 하므로 성능이 떨어진다고 보고됩니다. 따라서 이 논문은 많은 원소의 모듈러 덧셈을 ML 모델이 학습하도록 만드는 방법을 문제로 설정합니다. 기존 연구에서는 N ≤ 6, q ≤ 1000 수준까지만 보고되었습니다.

Table 1: Summary of prior work on ML-enabled modular addition. Best N and q are bold

Table 1 Summary of prior work on ML-enabled modular addition. Best N and q are bold.

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 3쪽에서 그림 영역을 추출했습니다.

희소 벡터를 섞은 학습 데이터 분포

제안 방법의 첫 번째 변경은 학습 데이터의 분포입니다. 기존 연구는 a를 Zq^N에서 균등하게 뽑는 fdefault 분포를 사용하지만, 이 논문은 0의 개수 z에 대해 확률을 1/√(N−z+1)에 비례하도록 정한 finv_sqrt 분포를 사용합니다. 이 분포는 0이 많아 쉬운 원소와 0이 적어 어려운 원소를 함께 생성합니다. 이는 커리큘럼 학습처럼 학습 중 분포를 바꾸는 것이 아니라 생성 분포를 고정한 채 쉬운 예시를 섞는 방식입니다. 저자들은 모델이 희소한 예시를 먼저 익힌 뒤 더 복잡한 합을 학습한다는 관찰로 이 설계를 뒷받침합니다.

각도 임베딩과 원점 억제 손실

제안 방법의 두 번째 변경은 입출력 표현과 손실 함수입니다. 정수 t ∈ Zq는 각도 2πt/q로 바뀌고 단위원 위의 점 (cos ϕ, sin ϕ)로 표현되며, 이로써 0과 q가 같은 점으로 취급됩니다. 저자들은 MSE만 사용하면 어려운 설정에서 모델이 원점 근처의 나쁜 국소 최솟값으로 수렴하는 문제를 관찰했습니다. 이를 막기 위해 예측이 원점에 가까울수록 손실이 커지는 항을 MSE에 더합니다. 이 항은 예측이 단위원 위에 있을 때 최소가 되며, 원문은 α = 10^-4를 사용한다고 보고합니다.

Table 7: Model performance with custom and MSE loss are comparable when trained on modular addition. We train the models
with q = 257and with the best training…

Table 7 Model performance with custom and MSE loss are comparable when trained on modular addition. We train the models with q = 257and with the best training data parameters identified in §4 with angular embeddings and evaluate on the same test set for all.τ = 0.5% Accuracy is percentage of predictions within0.005q of right answer (see §3).

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

모듈러 덧셈의 주요 결과와 기준선 비교

주요 결과에서 인코더 전용 트랜스포머는 N = 16부터 128까지, q = 257부터 974269까지 모듈러 덧셈을 학습합니다. N = 16, q = 257의 τ = 0.5% 정확도는 99.8%로 보고되며, N = 128, q = 257에서는 τ = 0.5% 정확도 96.1%와 MSE 0.04가 보고됩니다. 같은 학습 샘플 수에서 기준선은 1.3%를 보였다고 본문에 쓰여 있으며, Table 3의 fdefault 값은 1.2%로 표시되어 두 값이 함께 존재합니다. 이 비교는 기준선의 분포와 손실이 제안 방법과 다른 조건에서 측정된 결과입니다.

Table 2: Our methods perform consistently well adding N ∈ [16, 32, 64, 128] elements mod q ∈ [257, 3329, 42899, 974269].
All metrics are computed on a held out…

Table 2 Our methods perform consistently well adding N ∈ [16, 32, 64, 128] elements mod q ∈ [257, 3329, 42899, 974269]. All metrics are computed on a held out test set. MSE is mean squared error,τ = 0.5% Accuracy is percentage of predictions within 0.005q of right answer andτ = 1%Accuracy is percentage of predictions within0.01q of right answer (see §3). The models perform with consistently low MSE and very highτ-accuracy.

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 6쪽에서 그림 영역을 추출했습니다.

커리큘럼 학습과의 안정성 비교

저자들은 고정 분포가 커리큘럼 학습보다 안정적이라고 주장합니다. 커리큘럼 학습은 쉬운 샘플로 먼저 학습한 뒤 전체 데이터로 학습하는 방식이며, 8회 시행에서 N = 128, q = 257일 때 제안 방법은 95.8% ± 0.5%, 커리큘럼 학습은 85.1% ± 10.3%를 보고합니다. 이 결과는 해당 설정에서 분산이 줄어든 것을 보여주지만, 커리큘럼 설정 탐색의 전 범위를 대표하지는 않습니다. 원문은 여러 대안 설계가 비슷한 결과를 냈다고도 기록합니다.

Table 4: Our approach is more consistent and stable than CL, especially for larger N . We chose the best performing curriculum
to compare to our approach. We r…

Table 4 Our approach is more consistent and stable than CL, especially for larger N . We chose the best performing curriculum to compare to our approach. We report theaverage τ = 0.5% accuracy (see §3) and the variance across 8 trials.

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

KL 발산과 희소 데이터의 역할

데이터 분포의 효과를 설명하기 위해 저자들은 학습 분포와 테스트 분포 사이의 KL 발산을 계산합니다. fdefault는 KL 발산이 0.0이고 정확도가 0%로 보고되며, 학습 분포가 테스트 분포와 거의 같을 때 모델이 학습하지 못했다고 해석됩니다. 반면 funi는 쉬운 샘플이 지나치게 많아 KL 발산이 크고 정확도가 낮아집니다. 저자들은 중간 범위의 KL 발산을 갖는 finv_sqrt가 가장 잘 작동한다고 해석합니다. 이는 여러 설정에서 관찰된 상관적 해석이며 인과 증명으로 제시되지 않습니다.

Table 3: Sampling the training data from finv_sqrt produces the best accuracy results across N and q. τ = 0.5% Accuracy is
percentage of predictions within0.00…

Table 3 Sampling the training data from finv_sqrt produces the best accuracy results across N and q. τ = 0.5% Accuracy is percentage of predictions within0.005q of right answer (see §3), KL divergence is the level of similarity between the training and testing datasets. With default samplingfdefault, the model does not learn at all. Distributions with a KL divergence that is not too high or too low enable the model to perform best.

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

LWE 비밀 복구 개념 증명

LWE 적용은 개념 증명입니다. 실험에서는 오차 벡터 e를 무시하고, 비밀 s를 이진 희소 벡터로 가정합니다. 모델은 30M개의 서로 다른 예시와 총 1B 예시의 학습 예산으로 b를 A로부터 예측하도록 학습합니다. 원문은 N = 64에서 Hamming weight 6의 비밀을 복구한 결과를 보고하며, 사용자 정의 손실은 20번의 초기화 중 10%에서 20%를 복구했고 MSE 손실은 0%를 보고합니다. 저자들은 이를 기존 ML 공격이 대략 3개 원소의 합까지 다룬다는 보고와 비교해 성능을 높였다고 해석합니다. 이 결과는 제한된 설정의 개념 증명이며 실제 암호 체계 전체의 안전성 판정이 아닙니다.

Table 8: Model performs better when trained with our custom loss on the L W(ithout)E problem. We train the models with the
best data parameters from §4 and eva…

Table 8 Model performs better when trained with our custom loss on the L W(ithout)E problem. We train the models with the best data parameters from §4 and evaluate if the model successfully recovers the secret. Recovery % is the percent of secrets recovered out of 20 different model initialization.

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

다른 과제로의 적용과 한계

저자들은 모듈러 덧셈 이외의 과제에도 같은 데이터 분포를 적용합니다. Parity 과제의 N = 32에서 finv_sqrt는 100.0%, fdefault는 50.3%를 보고하며, 이 실험은 디코더 전용 모델과 회전 위치 임베딩을 사용하고 사용자 정의 손실은 사용하지 않습니다. 또한 큰 N에서는 MSE가 약간 높고 정확도가 낮아진다고 명시하며, 부록에서 더 긴 학습이나 더 큰 모델이 큰 N의 성능을 개선한다는 추가 실험을 보고합니다. 따라서 큰 N에서의 완전한 견고성은 이 논문에서 확인되지 않았습니다.

Table 16: With our approach, performance declines with
higher N . All metrics are computed on a held out
test set. MSE is mean squared error and τ = 1%
Accurac…

Table 16 With our approach, performance declines with higher N . All metrics are computed on a held out test set. MSE is mean squared error and τ = 1% Accuracy is percentage of predictions within0.01q of right answer (see §3 for details).

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 17: Training 4x longer improves performance on high
N . All metrics are computed on a held out test set.
MSE is mean squared error andτ = 1%Accuracy is
p…

Table 17 Training 4x longer improves performance on high N . All metrics are computed on a held out test set. MSE is mean squared error andτ = 1%Accuracy is percentage of predictions within0.01q of right answer (see §3 for details).

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.
Table 18: A 4x larger model also improves performance
on high N . All metrics are computed on a held out
test set. MSE is mean squared error and τ = 1%
Accurac…

Table 18 A 4x larger model also improves performance on high N . All metrics are computed on a held out test set. MSE is mean squared error and τ = 1% Accuracy is percentage of predictions within0.01q of right answer (see §3 for details).

원문 · CC BY 4.0 · Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter · Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic · 원문 그림 인용 · 원본 PDF 17쪽에서 그림 영역을 추출했습니다.

논문 정보

저자
Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter
학회·저널
arXiv · 프리프린트
최초 공개일
2024년 10월 4일
등록일
2026년 10월 30일
수정일
2025년 8월 25일
버전
v2
arXiv
2410.03569
분류
cs.LG
원문 이용 조건
CC BY 4.0
제공 범위
논문 정보, 해설, 허용된 원문 그림

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

초록

Recent work showed that ML-based attacks on Learning with Errors (LWE), a hard problem used in post-quantum cryptography, outperform classical algebraic attacks in certain settings. Although promising, ML attacks struggle to scale to more complex LWE settings. Prior work connected this issue to the difficulty of training ML models to do modular arithmetic, a core feature of the LWE problem. To address this, we develop techniques that significantly boost the performance of ML models on modular arithmetic tasks, enabling the models to sum up to $N=128$ elements modulo $q \le 974269$. Our core innovation is the use of custom training data distributions and a carefully designed loss function that better represents the problem structure. We apply an initial proof of concept of our techniques to LWE specifically and find that they allow recovery of 2x harder secrets than prior work. Our techniques also help ML models learn other well-studied problems better, including copy, associative recall, and parity, motivating further study.

원문 인용

Eshika Saxena, Alberto Alfarano, François Charton, Zeyuan Allen-Zhu, Emily Wenger, Kristin Lauter (2024). Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic. arXiv:2410.03569v2. https://arxiv.org/abs/2410.03569v2

BibTeX
@misc{saxena2024making,
  title = {{Making Hard Problems Easier with Custom Data Distributions and Loss Regularization: A Case Study in Modular Arithmetic}},
  author = {Eshika Saxena and Alberto Alfarano and François Charton and Zeyuan Allen-Zhu and Emily Wenger and Kristin Lauter},
  year = {2024},
  eprint = {2410.03569},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2410.03569v2}
}

관련 논문 보기다른 논문 둘러보기

논문 미리 보기
계정 보안

Google 계정 연결

Google 계정을 연결하면 그 계정으로도 로그인할 수 있습니다.

Refivu

회원탈퇴

Refivu
Refivu

회원가입